File "index.js"
Full Path: /home/qrafawbu/qrafiqxcreativeagency.com/assets/index.js
File size: 1.37 MB
MIME-type: text/plain
Charset: utf-8
/*! For license information please see index.js.LICENSE.txt */
(()=>{var __webpack_modules__={9069:function(t){t.exports=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e,i){return(a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&s(r,i.prototype),r}).apply(null,arguments)}function o(t){var e="function"==typeof Map?new Map:void 0;return(o=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!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return a(t,arguments,r(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s(i,t)})(t)}function l(t,e){try{var i=t()}catch(t){return e(t)}return i&&i.then?i.then(void 0,e):i}"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var u;!function(t){t[t.off=0]="off",t[t.error=1]="error",t[t.warning=2]="warning",t[t.info=3]="info",t[t.debug=4]="debug"}(u||(u={}));var c=u.off,h=function(){function t(t){this.t=t}t.getLevel=function(){return c},t.setLevel=function(t){return c=u[t]};var e=t.prototype;return e.error=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.i(console.error,u.error,e)},e.warn=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.i(console.warn,u.warning,e)},e.info=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.i(console.info,u.info,e)},e.debug=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.i(console.log,u.debug,e)},e.i=function(e,i,n){i<=t.getLevel()&&e.apply(console,["["+this.t+"] "].concat(n))},t}(),d=E,p=b,f=_,m=x,g=S,y="/",v=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function _(t,e){for(var i,n=[],r=0,s=0,a="",o=e&&e.delimiter||y,l=e&&e.whitelist||void 0,u=!1;null!==(i=v.exec(t));){var c=i[0],h=i[1],d=i.index;if(a+=t.slice(s,d),s=d+c.length,h)a+=h[1],u=!0;else{var p="",f=i[2],m=i[3],g=i[4],_=i[5];if(!u&&a.length){var b=a.length-1,x=a[b];(!l||l.indexOf(x)>-1)&&(p=x,a=a.slice(0,b))}a&&(n.push(a),a="",u=!1);var k=m||g,S=p||o;n.push({name:f||r++,prefix:p,delimiter:S,optional:"?"===_||"*"===_,repeat:"+"===_||"*"===_,pattern:k?w(k):"[^"+T(S===o?S:S+o)+"]+?"})}}return(a||s<t.length)&&n.push(a+t.substr(s)),n}function b(t,e){return function(i,n){var r=t.exec(i);if(!r)return!1;for(var s=r[0],a=r.index,o={},l=n&&n.decode||decodeURIComponent,u=1;u<r.length;u++)if(void 0!==r[u]){var c=e[u-1];o[c.name]=c.repeat?r[u].split(c.delimiter).map((function(t){return l(t,c)})):l(r[u],c)}return{path:s,index:a,params:o}}}function x(t,e){for(var i=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(i[n]=new RegExp("^(?:"+t[n].pattern+")$",k(e)));return function(e,n){for(var r="",s=n&&n.encode||encodeURIComponent,a=!n||!1!==n.validate,o=0;o<t.length;o++){var l=t[o];if("string"!=typeof l){var u,c=e?e[l.name]:void 0;if(Array.isArray(c)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but got array');if(0===c.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<c.length;h++){if(u=s(c[h],l),a&&!i[o].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'"');r+=(0===h?l.prefix:l.delimiter)+u}}else if("string"!=typeof c&&"number"!=typeof c&&"boolean"!=typeof c){if(!l.optional)throw new TypeError('Expected "'+l.name+'" to be '+(l.repeat?"an array":"a string"))}else{if(u=s(String(c),l),a&&!i[o].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but got "'+u+'"');r+=l.prefix+u}}else r+=l}return r}}function T(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function w(t){return t.replace(/([=!:$/()])/g,"\\$1")}function k(t){return t&&t.sensitive?"":"i"}function S(t,e,i){for(var n=(i=i||{}).strict,r=!1!==i.start,s=!1!==i.end,a=i.delimiter||y,o=[].concat(i.endsWith||[]).map(T).concat("$").join("|"),l=r?"^":"",u=0;u<t.length;u++){var c=t[u];if("string"==typeof c)l+=T(c);else{var h=c.repeat?"(?:"+c.pattern+")(?:"+T(c.delimiter)+"(?:"+c.pattern+"))*":c.pattern;e&&e.push(c),l+=c.optional?c.prefix?"(?:"+T(c.prefix)+"("+h+"))?":"("+h+")?":T(c.prefix)+"("+h+")"}}if(s)n||(l+="(?:"+T(a)+")?"),l+="$"===o?"$":"(?="+o+")";else{var d=t[t.length-1],p="string"==typeof d?d[d.length-1]===a:void 0===d;n||(l+="(?:"+T(a)+"(?="+o+"))?"),p||(l+="(?="+T(a)+"|"+o+")")}return new RegExp(l,k(i))}function E(t,e,i){return t instanceof RegExp?function(t,e){if(!e)return t;var i=t.source.match(/\((?!\?)/g);if(i)for(var n=0;n<i.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return t}(t,e):Array.isArray(t)?function(t,e,i){for(var n=[],r=0;r<t.length;r++)n.push(E(t[r],e,i).source);return new RegExp("(?:"+n.join("|")+")",k(i))}(t,e,i):function(t,e,i){return S(_(t,i),e,i)}(t,e,i)}d.match=function(t,e){var i=[];return b(E(t,i,e),i)},d.regexpToFunction=p,d.parse=f,d.compile=function(t,e){return x(_(t,e),e)},d.tokensToFunction=m,d.tokensToRegExp=g;var D={container:"container",history:"history",namespace:"namespace",prefix:"data-barba",prevent:"prevent",wrapper:"wrapper"},C=new(function(){function t(){this.o=D,this.u=new DOMParser}var e=t.prototype;return e.toString=function(t){return t.outerHTML},e.toDocument=function(t){return this.u.parseFromString(t,"text/html")},e.toElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e},e.getHtml=function(t){return void 0===t&&(t=document),this.toString(t.documentElement)},e.getWrapper=function(t){return void 0===t&&(t=document),t.querySelector("["+this.o.prefix+'="'+this.o.wrapper+'"]')},e.getContainer=function(t){return void 0===t&&(t=document),t.querySelector("["+this.o.prefix+'="'+this.o.container+'"]')},e.removeContainer=function(t){document.body.contains(t)&&t.parentNode.removeChild(t)},e.addContainer=function(t,e){var i=this.getContainer();i?this.s(t,i):e.appendChild(t)},e.getNamespace=function(t){void 0===t&&(t=document);var e=t.querySelector("["+this.o.prefix+"-"+this.o.namespace+"]");return e?e.getAttribute(this.o.prefix+"-"+this.o.namespace):null},e.getHref=function(t){if(t.tagName&&"a"===t.tagName.toLowerCase()){if("string"==typeof t.href)return t.href;var e=t.getAttribute("href")||t.getAttribute("xlink:href");if(e)return this.resolveUrl(e.baseVal||e)}return null},e.resolveUrl=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e.length;if(0===n)throw new Error("resolveUrl requires at least one argument; got none.");var r=document.createElement("base");if(r.href=arguments[0],1===n)return r.href;var s=document.getElementsByTagName("head")[0];s.insertBefore(r,s.firstChild);for(var a,o=document.createElement("a"),l=1;l<n;l++)o.href=arguments[l],r.href=a=o.href;return s.removeChild(r),a},e.s=function(t,e){e.parentNode.insertBefore(t,e.nextSibling)},t}()),P=new(function(){function t(){this.h=[],this.v=-1}var n=t.prototype;return n.init=function(t,e){this.l="barba";var i={ns:e,scroll:{x:window.scrollX,y:window.scrollY},url:t};this.h.push(i),this.v=0;var n={from:this.l,index:0,states:[].concat(this.h)};window.history&&window.history.replaceState(n,"",t)},n.change=function(t,e,i){if(i&&i.state){var n=i.state,r=n.index;e=this.m(this.v-r),this.replace(n.states),this.v=r}else this.add(t,e);return e},n.add=function(t,e){var i=this.size,n=this.p(e),r={ns:"tmp",scroll:{x:window.scrollX,y:window.scrollY},url:t};this.h.push(r),this.v=i;var s={from:this.l,index:i,states:[].concat(this.h)};switch(n){case"push":window.history&&window.history.pushState(s,"",t);break;case"replace":window.history&&window.history.replaceState(s,"",t)}},n.update=function(t,e){var n=e||this.v,r=i({},this.get(n),{},t);this.set(n,r)},n.remove=function(t){t?this.h.splice(t,1):this.h.pop(),this.v--},n.clear=function(){this.h=[],this.v=-1},n.replace=function(t){this.h=t},n.get=function(t){return this.h[t]},n.set=function(t,e){return this.h[t]=e},n.p=function(t){var e="push",i=t,n=D.prefix+"-"+D.history;return i.hasAttribute&&i.hasAttribute(n)&&(e=i.getAttribute(n)),e},n.m=function(t){return Math.abs(t)>1?t>0?"forward":"back":0===t?"popstate":t>0?"back":"forward"},e(t,[{key:"current",get:function(){return this.h[this.v]}},{key:"state",get:function(){return this.h[this.h.length-1]}},{key:"previous",get:function(){return this.v<1?null:this.h[this.v-1]}},{key:"size",get:function(){return this.h.length}}]),t}()),A=function(t,e){try{var i=function(){if(!e.next.html)return Promise.resolve(t).then((function(t){var i=e.next;if(t){var n=C.toElement(t);i.namespace=C.getNamespace(n),i.container=C.getContainer(n),i.html=t,P.update({ns:i.namespace});var r=C.toDocument(t);document.title=r.title}}))}();return Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},M=d,I={__proto__:null,update:A,nextTick:function(){return new Promise((function(t){window.requestAnimationFrame(t)}))},pathToRegexp:M},L=function(){return window.location.origin},O=function(t){return void 0===t&&(t=window.location.href),F(t).port},F=function(t){var e,i=t.match(/:\d+/);if(null===i)/^http/.test(t)&&(e=80),/^https/.test(t)&&(e=443);else{var n=i[0].substring(1);e=parseInt(n,10)}var r,s=t.replace(L(),""),a={},o=s.indexOf("#");o>=0&&(r=s.slice(o+1),s=s.slice(0,o));var l=s.indexOf("?");return l>=0&&(a=R(s.slice(l+1)),s=s.slice(0,l)),{hash:r,path:s,port:e,query:a}},R=function(t){return t.split("&").reduce((function(t,e){var i=e.split("=");return t[i[0]]=i[1],t}),{})},B=function(t){return void 0===t&&(t=window.location.href),t.replace(/(\/#.*|\/|#.*)$/,"")},N={__proto__:null,getHref:function(){return window.location.href},getOrigin:L,getPort:O,getPath:function(t){return void 0===t&&(t=window.location.href),F(t).path},parse:F,parseQuery:R,clean:B};function H(t,e,i){return void 0===e&&(e=2e3),new Promise((function(n,r){var s=new XMLHttpRequest;s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE)if(200===s.status)n(s.responseText);else if(s.status){var e={status:s.status,statusText:s.statusText};i(t,e),r(e)}},s.ontimeout=function(){var n=new Error("Timeout error ["+e+"]");i(t,n),r(n)},s.onerror=function(){var e=new Error("Fetch error");i(t,e),r(e)},s.open("GET",t),s.timeout=e,s.setRequestHeader("Accept","text/html,application/xhtml+xml,application/xml"),s.setRequestHeader("x-barba","yes"),s.send()}))}function V(t,e){return void 0===e&&(e={}),function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var s=!1,a=new Promise((function(i,r){e.async=function(){return s=!0,function(t,e){t?r(t):i(e)}};var a=t.apply(e,n);s||(function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}(a)?a.then(i,r):i(a))}));return a}}var j=new(function(t){function e(){var e;return(e=t.call(this)||this).logger=new h("@barba/core"),e.all=["ready","page","reset","currentAdded","currentRemoved","nextAdded","nextRemoved","beforeOnce","once","afterOnce","before","beforeLeave","leave","afterLeave","beforeEnter","enter","afterEnter","after"],e.registered=new Map,e.init(),e}n(e,t);var i=e.prototype;return i.init=function(){var t=this;this.registered.clear(),this.all.forEach((function(e){t[e]||(t[e]=function(i,n){t.registered.has(e)||t.registered.set(e,new Set),t.registered.get(e).add({ctx:n||{},fn:i})})}))},i.do=function(t){for(var e=this,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];if(this.registered.has(t)){var s=Promise.resolve();return this.registered.get(t).forEach((function(t){s=s.then((function(){return V(t.fn,t.ctx).apply(void 0,n)}))})),s.catch((function(i){e.logger.debug("Hook error ["+t+"]"),e.logger.error(i)}))}return Promise.resolve()},i.clear=function(){var t=this;this.all.forEach((function(e){delete t[e]})),this.init()},i.help=function(){this.logger.info("Available hooks: "+this.all.join(","));var t=[];this.registered.forEach((function(e,i){return t.push(i)})),this.logger.info("Registered hooks: "+t.join(","))},e}((function(){}))),U=function(){function t(t){if(this.P=[],"boolean"==typeof t)this.g=t;else{var e=Array.isArray(t)?t:[t];this.P=e.map((function(t){return M(t)}))}}return t.prototype.checkHref=function(t){if("boolean"==typeof this.g)return this.g;var e=F(t).path;return this.P.some((function(t){return null!==t.exec(e)}))},t}(),z=function(t){function e(e){var i;return(i=t.call(this,e)||this).k=new Map,i}n(e,t);var r=e.prototype;return r.set=function(t,e,i){return this.k.set(t,{action:i,request:e}),{action:i,request:e}},r.get=function(t){return this.k.get(t)},r.getRequest=function(t){return this.k.get(t).request},r.getAction=function(t){return this.k.get(t).action},r.has=function(t){return!this.checkHref(t)&&this.k.has(t)},r.delete=function(t){return this.k.delete(t)},r.update=function(t,e){var n=i({},this.k.get(t),{},e);return this.k.set(t,n),n},e}(U),q=function(){return!window.history.pushState},G=function(t){return!t.el||!t.href},W=function(t){var e=t.event;return e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey},X=function(t){var e=t.el;return e.hasAttribute("target")&&"_blank"===e.target},$=function(t){var e=t.el;return void 0!==e.protocol&&window.location.protocol!==e.protocol||void 0!==e.hostname&&window.location.hostname!==e.hostname},Y=function(t){var e=t.el;return void 0!==e.port&&O()!==O(e.href)},K=function(t){var e=t.el;return e.getAttribute&&"string"==typeof e.getAttribute("download")},Q=function(t){return t.el.hasAttribute(D.prefix+"-"+D.prevent)},Z=function(t){return Boolean(t.el.closest("["+D.prefix+"-"+D.prevent+'="all"]'))},J=function(t){var e=t.href;return B(e)===B()&&O(e)===O()},tt=function(t){function e(e){var i;return(i=t.call(this,e)||this).suite=[],i.tests=new Map,i.init(),i}n(e,t);var i=e.prototype;return i.init=function(){this.add("pushState",q),this.add("exists",G),this.add("newTab",W),this.add("blank",X),this.add("corsDomain",$),this.add("corsPort",Y),this.add("download",K),this.add("preventSelf",Q),this.add("preventAll",Z),this.add("sameUrl",J,!1)},i.add=function(t,e,i){void 0===i&&(i=!0),this.tests.set(t,e),i&&this.suite.push(t)},i.run=function(t,e,i,n){return this.tests.get(t)({el:e,event:i,href:n})},i.checkLink=function(t,e,i){var n=this;return this.suite.some((function(r){return n.run(r,t,e,i)}))},e}(U),et=function(t){function e(i,n){var r;void 0===n&&(n="Barba error");for(var s=arguments.length,a=new Array(s>2?s-2:0),o=2;o<s;o++)a[o-2]=arguments[o];return(r=t.call.apply(t,[this].concat(a))||this).error=i,r.label=n,Error.captureStackTrace&&Error.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r),e),r.name="BarbaError",r}return n(e,t),e}(o(Error)),it=function(){function t(t){void 0===t&&(t=[]),this.logger=new h("@barba/core"),this.all=[],this.page=[],this.once=[],this.A=[{name:"namespace",type:"strings"},{name:"custom",type:"function"}],t&&(this.all=this.all.concat(t)),this.update()}var e=t.prototype;return e.add=function(t,e){"rule"===t?this.A.splice(e.position||0,0,e.value):this.all.push(e),this.update()},e.resolve=function(t,e){var i=this;void 0===e&&(e={});var n=e.once?this.once:this.page;n=n.filter(e.self?function(t){return t.name&&"self"===t.name}:function(t){return!t.name||"self"!==t.name});var r=new Map,s=n.find((function(n){var s=!0,a={};return!(!e.self||"self"!==n.name)||(i.A.reverse().forEach((function(e){s&&(s=i.R(n,e,t,a),n.from&&n.to&&(s=i.R(n,e,t,a,"from")&&i.R(n,e,t,a,"to")),n.from&&!n.to&&(s=i.R(n,e,t,a,"from")),!n.from&&n.to&&(s=i.R(n,e,t,a,"to")))})),r.set(n,a),s)})),a=r.get(s),o=[];if(o.push(e.once?"once":"page"),e.self&&o.push("self"),a){var l,u=[s];Object.keys(a).length>0&&u.push(a),(l=this.logger).info.apply(l,["Transition found ["+o.join(",")+"]"].concat(u))}else this.logger.info("No transition found ["+o.join(",")+"]");return s},e.update=function(){var t=this;this.all=this.all.map((function(e){return t.T(e)})).sort((function(t,e){return t.priority-e.priority})).reverse().map((function(t){return delete t.priority,t})),this.page=this.all.filter((function(t){return void 0!==t.leave||void 0!==t.enter})),this.once=this.all.filter((function(t){return void 0!==t.once}))},e.R=function(t,e,i,n,r){var s=!0,a=!1,o=t,l=e.name,u=l,c=l,h=l,d=r?o[r]:o,p="to"===r?i.next:i.current;if(r?d&&d[l]:d[l]){switch(e.type){case"strings":default:var f=Array.isArray(d[u])?d[u]:[d[u]];p[u]&&-1!==f.indexOf(p[u])&&(a=!0),-1===f.indexOf(p[u])&&(s=!1);break;case"object":var m=Array.isArray(d[c])?d[c]:[d[c]];p[c]?(p[c].name&&-1!==m.indexOf(p[c].name)&&(a=!0),-1===m.indexOf(p[c].name)&&(s=!1)):s=!1;break;case"function":d[h](i)?a=!0:s=!1}a&&(r?(n[r]=n[r]||{},n[r][l]=o[r][l]):n[l]=o[l])}return s},e.O=function(t,e,i){var n=0;return(t[e]||t.from&&t.from[e]||t.to&&t.to[e])&&(n+=Math.pow(10,i),t.from&&t.from[e]&&(n+=1),t.to&&t.to[e]&&(n+=2)),n},e.T=function(t){var e=this;t.priority=0;var i=0;return this.A.forEach((function(n,r){i+=e.O(t,n.name,r+1)})),t.priority=i,t},t}(),nt=function(){function t(t){void 0===t&&(t=[]),this.logger=new h("@barba/core"),this.S=!1,this.store=new it(t)}var i=t.prototype;return i.get=function(t,e){return this.store.resolve(t,e)},i.doOnce=function(t){var e=t.data,i=t.transition;try{var n=function(){r.S=!1},r=this,s=i||{};r.S=!0;var a=l((function(){return Promise.resolve(r.j("beforeOnce",e,s)).then((function(){return Promise.resolve(r.once(e,s)).then((function(){return Promise.resolve(r.j("afterOnce",e,s)).then((function(){}))}))}))}),(function(t){r.S=!1,r.logger.debug("Transition error [before/after/once]"),r.logger.error(t)}));return Promise.resolve(a&&a.then?a.then(n):n())}catch(t){return Promise.reject(t)}},i.doPage=function(t){var e=t.data,i=t.transition,n=t.page,r=t.wrapper;try{var s=function(t){if(a)return t;o.S=!1},a=!1,o=this,u=i||{},c=!0===u.sync||!1;o.S=!0;var h=l((function(){function t(){return Promise.resolve(o.j("before",e,u)).then((function(){function t(t){return Promise.resolve(o.remove(e)).then((function(){return Promise.resolve(o.j("after",e,u)).then((function(){}))}))}var i=function(){if(c)return l((function(){return Promise.resolve(o.add(e,r)).then((function(){return Promise.resolve(o.j("beforeLeave",e,u)).then((function(){return Promise.resolve(o.j("beforeEnter",e,u)).then((function(){return Promise.resolve(Promise.all([o.leave(e,u),o.enter(e,u)])).then((function(){return Promise.resolve(o.j("afterLeave",e,u)).then((function(){return Promise.resolve(o.j("afterEnter",e,u)).then((function(){}))}))}))}))}))}))}),(function(t){if(o.M(t))throw new et(t,"Transition error [sync]")}));var t=function(t){return l((function(){var t=function(){if(!1!==i)return Promise.resolve(o.add(e,r)).then((function(){return Promise.resolve(o.j("beforeEnter",e,u)).then((function(){return Promise.resolve(o.enter(e,u,i)).then((function(){return Promise.resolve(o.j("afterEnter",e,u)).then((function(){}))}))}))}))}();if(t&&t.then)return t.then((function(){}))}),(function(t){if(o.M(t))throw new et(t,"Transition error [before/after/enter]")}))},i=!1,s=l((function(){return Promise.resolve(o.j("beforeLeave",e,u)).then((function(){return Promise.resolve(Promise.all([o.leave(e,u),A(n,e)]).then((function(t){return t[0]}))).then((function(t){return i=t,Promise.resolve(o.j("afterLeave",e,u)).then((function(){}))}))}))}),(function(t){if(o.M(t))throw new et(t,"Transition error [before/after/leave]")}));return s&&s.then?s.then(t):t()}();return i&&i.then?i.then(t):t()}))}var i=function(){if(c)return Promise.resolve(A(n,e)).then((function(){}))}();return i&&i.then?i.then(t):t()}),(function(t){if(o.S=!1,t.name&&"BarbaError"===t.name)throw o.logger.debug(t.label),o.logger.error(t.error),t;throw o.logger.debug("Transition error [page]"),o.logger.error(t),t}));return Promise.resolve(h&&h.then?h.then(s):s(h))}catch(t){return Promise.reject(t)}},i.once=function(t,e){try{return Promise.resolve(j.do("once",t,e)).then((function(){return e.once?V(e.once,e)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},i.leave=function(t,e){try{return Promise.resolve(j.do("leave",t,e)).then((function(){return e.leave?V(e.leave,e)(t):Promise.resolve()}))}catch(t){return Promise.reject(t)}},i.enter=function(t,e,i){try{return Promise.resolve(j.do("enter",t,e)).then((function(){return e.enter?V(e.enter,e)(t,i):Promise.resolve()}))}catch(t){return Promise.reject(t)}},i.add=function(t,e){try{return C.addContainer(t.next.container,e),j.do("nextAdded",t),Promise.resolve()}catch(t){return Promise.reject(t)}},i.remove=function(t){try{return C.removeContainer(t.current.container),j.do("currentRemoved",t),Promise.resolve()}catch(t){return Promise.reject(t)}},i.M=function(t){return t.message?!/Timeout error|Fetch error/.test(t.message):!t.status},i.j=function(t,e,i){try{return Promise.resolve(j.do(t,e,i)).then((function(){return i[t]?V(i[t],i)(e):Promise.resolve()}))}catch(t){return Promise.reject(t)}},e(t,[{key:"isRunning",get:function(){return this.S},set:function(t){this.S=t}},{key:"hasOnce",get:function(){return this.store.once.length>0}},{key:"hasSelf",get:function(){return this.store.all.some((function(t){return"self"===t.name}))}},{key:"shouldWait",get:function(){return this.store.all.some((function(t){return t.to&&!t.to.route||t.sync}))}}]),t}(),rt=function(){function t(t){var e=this;this.names=["beforeLeave","afterLeave","beforeEnter","afterEnter"],this.byNamespace=new Map,0!==t.length&&(t.forEach((function(t){e.byNamespace.set(t.namespace,t)})),this.names.forEach((function(t){j[t](e.L(t))})))}return t.prototype.L=function(t){var e=this;return function(i){var n=t.match(/enter/i)?i.next:i.current,r=e.byNamespace.get(n.namespace);return r&&r[t]?V(r[t],r)(i):Promise.resolve()}},t}();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var e=this;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var st={container:null,html:"",namespace:"",url:{hash:"",href:"",path:"",port:null,query:{}}};return new(function(){function t(){this.version="2.9.7",this.schemaPage=st,this.Logger=h,this.logger=new h("@barba/core"),this.plugins=[],this.hooks=j,this.dom=C,this.helpers=I,this.history=P,this.request=H,this.url=N}var n=t.prototype;return n.use=function(t,e){var i=this.plugins;i.indexOf(t)>-1?this.logger.warn("Plugin ["+t.name+"] already installed."):"function"==typeof t.install?(t.install(this,e),i.push(t)):this.logger.warn("Plugin ["+t.name+'] has no "install" method.')},n.init=function(t){var e=void 0===t?{}:t,n=e.transitions,r=void 0===n?[]:n,s=e.views,a=void 0===s?[]:s,o=e.schema,l=void 0===o?D:o,u=e.requestError,c=e.timeout,d=void 0===c?2e3:c,p=e.cacheIgnore,f=void 0!==p&&p,m=e.prefetchIgnore,g=void 0!==m&&m,y=e.preventRunning,v=void 0!==y&&y,_=e.prevent,b=void 0===_?null:_,x=e.debug,T=e.logLevel;if(h.setLevel(!0===(void 0!==x&&x)?"debug":void 0===T?"off":T),this.logger.info(this.version),Object.keys(l).forEach((function(t){D[t]&&(D[t]=l[t])})),this.$=u,this.timeout=d,this.cacheIgnore=f,this.prefetchIgnore=g,this.preventRunning=v,this._=this.dom.getWrapper(),!this._)throw new Error("[@barba/core] No Barba wrapper found");this._.setAttribute("aria-live","polite"),this.q();var w=this.data.current;if(!w.container)throw new Error("[@barba/core] No Barba container found");if(this.cache=new z(f),this.prevent=new tt(g),this.transitions=new nt(r),this.views=new rt(a),null!==b){if("function"!=typeof b)throw new Error("[@barba/core] Prevent should be a function");this.prevent.add("preventCustom",b)}this.history.init(w.url.href,w.namespace),this.B=this.B.bind(this),this.U=this.U.bind(this),this.D=this.D.bind(this),this.F(),this.plugins.forEach((function(t){return t.init()}));var k=this.data;k.trigger="barba",k.next=k.current,k.current=i({},this.schemaPage),this.hooks.do("ready",k),this.once(k),this.q()},n.destroy=function(){this.q(),this.H(),this.history.clear(),this.hooks.clear(),this.plugins=[]},n.force=function(t){window.location.assign(t)},n.go=function(t,e,i){var n;if(void 0===e&&(e="barba"),this.transitions.isRunning)this.force(t);else if(!(n="popstate"===e?this.history.current&&this.url.getPath(this.history.current.url)===this.url.getPath(t):this.prevent.run("sameUrl",null,null,t))||this.transitions.hasSelf)return e=this.history.change(t,e,i),i&&(i.stopPropagation(),i.preventDefault()),this.page(t,e,n)},n.once=function(t){try{var e=this;return Promise.resolve(e.hooks.do("beforeEnter",t)).then((function(){function i(){return Promise.resolve(e.hooks.do("afterEnter",t)).then((function(){}))}var n=function(){if(e.transitions.hasOnce){var i=e.transitions.get(t,{once:!0});return Promise.resolve(e.transitions.doOnce({transition:i,data:t})).then((function(){}))}}();return n&&n.then?n.then(i):i()}))}catch(t){return Promise.reject(t)}},n.page=function(t,e,n){try{var r=function(){var t=s.data;return Promise.resolve(s.hooks.do("page",t)).then((function(){var e=l((function(){var e=s.transitions.get(t,{once:!1,self:n});return Promise.resolve(s.transitions.doPage({data:t,page:a,transition:e,wrapper:s._})).then((function(){s.q()}))}),(function(){0===h.getLevel()&&s.force(t.current.url.href)}));if(e&&e.then)return e.then((function(){}))}))},s=this;s.data.next.url=i({href:t},s.url.parse(t)),s.data.trigger=e;var a=s.cache.has(t)?s.cache.update(t,{action:"click"}).request:s.cache.set(t,s.request(t,s.timeout,s.onRequestError.bind(s,e)),"click").request,o=function(){if(s.transitions.shouldWait)return Promise.resolve(A(a,s.data)).then((function(){}))}();return Promise.resolve(o&&o.then?o.then(r):r())}catch(t){return Promise.reject(t)}},n.onRequestError=function(t){this.transitions.isRunning=!1;for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var r=i[0],s=i[1],a=this.cache.getAction(r);return this.cache.delete(r),!(this.$&&!1===this.$(t,a,r,s)||("click"===a&&this.force(r),1))},n.prefetch=function(t){var e=this;this.cache.has(t)||this.cache.set(t,this.request(t,this.timeout,this.onRequestError.bind(this,"barba")).catch((function(t){e.logger.error(t)})),"prefetch")},n.F=function(){!0!==this.prefetchIgnore&&(document.addEventListener("mouseover",this.B),document.addEventListener("touchstart",this.B)),document.addEventListener("click",this.U),window.addEventListener("popstate",this.D)},n.H=function(){!0!==this.prefetchIgnore&&(document.removeEventListener("mouseover",this.B),document.removeEventListener("touchstart",this.B)),document.removeEventListener("click",this.U),window.removeEventListener("popstate",this.D)},n.B=function(t){var e=this,i=this.I(t);if(i){var n=this.dom.getHref(i);this.prevent.checkHref(n)||this.cache.has(n)||this.cache.set(n,this.request(n,this.timeout,this.onRequestError.bind(this,i)).catch((function(t){e.logger.error(t)})),"enter")}},n.U=function(t){var e=this.I(t);if(e)return this.transitions.isRunning&&this.preventRunning?(t.preventDefault(),void t.stopPropagation()):void this.go(this.dom.getHref(e),e,t)},n.D=function(t){this.go(this.url.getHref(),"popstate",t)},n.I=function(t){for(var e=t.target;e&&!this.dom.getHref(e);)e=e.parentNode;if(e&&!this.prevent.checkLink(e,t,this.dom.getHref(e)))return e},n.q=function(){var t=this.url.getHref(),e={container:this.dom.getContainer(),html:this.dom.getHtml(),namespace:this.dom.getNamespace(),url:i({href:t},this.url.parse(t))};this.C={current:e,next:i({},this.schemaPage),trigger:void 0},this.hooks.do("reset",this.data)},e(t,[{key:"data",get:function(){return this.C}},{key:"wrapper",get:function(){return this._}}]),t}())}()},3490:(t,e,i)=>{"use strict";var n=i(8908);t.exports=function(t,e){return void 0===e&&(e=!1),function(i,r,s){if(i)t(i);else if(r.statusCode>=400&&r.statusCode<=599){var a=s;if(e)if(n.TextDecoder){var o=(void 0===(l=r.headers&&r.headers["content-type"])&&(l=""),l.toLowerCase().split(";").reduce((function(t,e){var i=e.split("="),n=i[0],r=i[1];return"charset"===n.trim()?r.trim():t}),"utf-8"));try{a=new TextDecoder(o).decode(s)}catch(t){}}else a=String.fromCharCode.apply(null,new Uint8Array(s));t({cause:a})}else t(null,s);var l}}},9603:(t,e,i)=>{"use strict";var n=i(8908),r=i(434),s=i(7376);l.httpHandler=i(3490);var a=function(t){var e={};return t?(t.trim().split("\n").forEach((function(t){var i=t.indexOf(":"),n=t.slice(0,i).trim().toLowerCase(),r=t.slice(i+1).trim();void 0===e[n]?e[n]=r:Array.isArray(e[n])?e[n].push(r):e[n]=[e[n],r]})),e):e};function o(t,e,i){var n=t;return s(e)?(i=e,"string"==typeof t&&(n={uri:t})):n=r({},e,{uri:t}),n.callback=i,n}function l(t,e,i){return u(e=o(t,e,i))}function u(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,i=function(i,n,r){e||(e=!0,t.callback(i,n,r))};function n(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){try{if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML}catch(t){}return null}(c),y)try{t=JSON.parse(t)}catch(t){}return t}function r(t){return clearTimeout(h),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,i(t,v)}function s(){if(!u){var e;clearTimeout(h),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=v,s=null;return 0!==e?(r={body:n(),statusCode:e,method:p,headers:{},url:d,rawRequest:c},c.getAllResponseHeaders&&(r.headers=a(c.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),i(s,r,r.body)}}var o,u,c=t.xhr||null;c||(c=t.cors||t.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var h,d=c.url=t.uri||t.url,p=c.method=t.method||"GET",f=t.body||t.data,m=c.headers=t.headers||{},g=!!t.sync,y=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:d,rawRequest:c};if("json"in t&&!1!==t.json&&(y=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===t.json?f:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(s,0)},c.onload=s,c.onerror=r,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=r,c.open(p,d,!g,t.username,t.password),g||(c.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(h=setTimeout((function(){if(!u){u=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",r(t)}}),t.timeout)),c.setRequestHeader)for(o in m)m.hasOwnProperty(o)&&c.setRequestHeader(o,m[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(f||null),c}t.exports=l,t.exports.default=l,l.XMLHttpRequest=n.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:n.XDomainRequest,function(t,e){for(var i=0;i<t.length;i++)e(t[i])}(["get","put","post","patch","head","delete"],(function(t){l["delete"===t?"del":t]=function(e,i,n){return(i=o(e,i,n)).method=t.toUpperCase(),u(i)}}))},2167:(t,e)=>{"use strict";function i(t,e){return void 0===e&&(e=Object),e&&"function"==typeof e.freeze?e.freeze(t):t}var n=i({HTML:"text/html",isHTML:function(t){return t===n.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),r=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===r.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});e.find=function(t,e,i){if(void 0===i&&(i=Array.prototype),t&&"function"==typeof i.find)return i.find.call(t,e);for(var n=0;n<t.length;n++)if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];if(e.call(void 0,r,n,t))return r}},e.freeze=i,e.MIME_TYPE=n,e.NAMESPACE=r},6129:(t,e,i)=>{var n=i(2167),r=i(1146),s=i(1045),a=i(6925),o=r.DOMImplementation,l=n.NAMESPACE,u=a.ParseError,c=a.XMLReader;function h(t){this.options=t||{locator:{}}}function d(){this.cdata=!1}function p(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function f(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function m(t,e,i){return"string"==typeof t?t.substr(e,i):t.length>=e+i||e?new java.lang.String(t,e,i)+"":t}function g(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}h.prototype.parseFromString=function(t,e){var i=this.options,n=new c,r=i.domBuilder||new d,a=i.errorHandler,o=i.locator,u=i.xmlns||{},h=/\/x?html?$/.test(e),p=h?s.HTML_ENTITIES:s.XML_ENTITIES;return o&&r.setDocumentLocator(o),n.errorHandler=function(t,e,i){if(!t){if(e instanceof d)return e;t=e}var n={},r=t instanceof Function;function s(e){var s=t[e];!s&&r&&(s=2==t.length?function(i){t(e,i)}:t),n[e]=s&&function(t){s("[xmldom "+e+"]\t"+t+f(i))}||function(){}}return i=i||{},s("warning"),s("error"),s("fatalError"),n}(a,r,o),n.domBuilder=i.domBuilder||r,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML,t&&"string"==typeof t?n.parse(t,u,p):n.errorHandler.error("invalid doc source"),r.doc},d.prototype={startDocument:function(){this.doc=(new o).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,i,n){var r=this.doc,s=r.createElementNS(t,i||e),a=n.length;g(this,s),this.currentElement=s,this.locator&&p(this.locator,s);for(var o=0;o<a;o++){t=n.getURI(o);var l=n.getValue(o),u=(i=n.getQName(o),r.createAttributeNS(t,i));this.locator&&p(n.getLocator(o),u),u.value=u.nodeValue=l,s.setAttributeNode(u)}},endElement:function(t,e,i){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var i=this.doc.createProcessingInstruction(t,e);this.locator&&p(this.locator,i),g(this,i)},ignorableWhitespace:function(t,e,i){},characters:function(t,e,i){if(t=m.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(t);else n=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(t)&&this.doc.appendChild(n),this.locator&&p(this.locator,n)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,i){t=m.apply(this,arguments);var n=this.doc.createComment(t);this.locator&&p(this.locator,n),g(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,i){var n=this.doc.implementation;if(n&&n.createDocumentType){var r=n.createDocumentType(t,e,i);this.locator&&p(this.locator,r),g(this,r),this.doc.doctype=r}},warning:function(t){console.warn("[xmldom warning]\t"+t,f(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,f(this.locator))},fatalError:function(t){throw new u(t,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(t){d.prototype[t]=function(){return null}})),e.DOMParser=h,r.DOMImplementation,r.XMLSerializer},1146:(t,e,i)=>{var n=i(2167),r=n.find,s=n.NAMESPACE;function a(t){return""!==t}function o(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function l(t){if(!t)return[];var e=function(t){return t?t.split(/[\t\n\f\r ]+/).filter(a):[]}(t);return Object.keys(e.reduce(o,{}))}function u(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function c(t,e){var i=t.prototype;if(!(i instanceof e)){function n(){}n.prototype=e.prototype,u(i,n=new n),t.prototype=i=n}i.constructor!=t&&("function"!=typeof t&&console.error("unknown Class:"+t),i.constructor=t)}var h={},d=h.ELEMENT_NODE=1,p=h.ATTRIBUTE_NODE=2,f=h.TEXT_NODE=3,m=h.CDATA_SECTION_NODE=4,g=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,v=h.PROCESSING_INSTRUCTION_NODE=7,_=h.COMMENT_NODE=8,b=h.DOCUMENT_NODE=9,x=h.DOCUMENT_TYPE_NODE=10,T=h.DOCUMENT_FRAGMENT_NODE=11,w=h.NOTATION_NODE=12,k={},S={},E=(k.INDEX_SIZE_ERR=(S[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2),k.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3)),D=(k.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7),k.NOT_FOUND_ERR=(S[8]="Not found",8)),C=(k.NOT_SUPPORTED_ERR=(S[9]="Not supported",9),k.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10));function P(t,e){if(e instanceof Error)var i=e;else i=this,Error.call(this,S[t]),this.message=S[t],Error.captureStackTrace&&Error.captureStackTrace(this,P);return i.code=t,e&&(this.message=this.message+": "+e),i}function A(){}function M(t,e){this._node=t,this._refresh=e,I(this)}function I(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var i=t._refresh(t._node);if(vt(t,"length",i.length),!t.$$length||i.length<t.$$length)for(var n=i.length;n in t;n++)Object.prototype.hasOwnProperty.call(t,n)&&delete t[n];u(i,t),t._inc=e}}function L(){}function O(t,e){for(var i=t.length;i--;)if(t[i]===e)return i}function F(t,e,i,n){if(n?e[O(e,n)]=i:e[e.length++]=i,t){i.ownerElement=t;var r=t.ownerDocument;r&&(n&&U(r,t,n),function(t,e,i){t&&t._inc++,i.namespaceURI===s.XMLNS&&(e._nsMap[i.prefix?i.localName:""]=i.value)}(r,t,i))}}function R(t,e,i){var n=O(e,i);if(!(n>=0))throw new P(D,new Error(t.tagName+"@"+i));for(var r=e.length-1;n<r;)e[n]=e[++n];if(e.length=r,t){var s=t.ownerDocument;s&&(U(s,t,i),i.ownerElement=null)}}function B(){}function N(){}function H(t){return("<"==t?"<":">"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function V(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(V(t,e))return!0}while(t=t.nextSibling)}function j(){this.ownerDocument=this}function U(t,e,i,n){t&&t._inc++,i.namespaceURI===s.XMLNS&&delete e._nsMap[i.prefix?i.localName:""]}function z(t,e,i){if(t&&t._inc){t._inc++;var n=e.childNodes;if(i)n[n.length++]=i;else{for(var r=e.firstChild,s=0;r;)n[s++]=r,r=r.nextSibling;n.length=s,delete n[n.length]}}}function q(t,e){var i=e.previousSibling,n=e.nextSibling;return i?i.nextSibling=n:t.firstChild=n,n?n.previousSibling=i:t.lastChild=i,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,z(t.ownerDocument,t),e}function G(t){return t&&t.nodeType===N.DOCUMENT_TYPE_NODE}function W(t){return t&&t.nodeType===N.ELEMENT_NODE}function X(t){return t&&t.nodeType===N.TEXT_NODE}function $(t,e){var i=t.childNodes||[];if(r(i,W)||G(e))return!1;var n=r(i,G);return!(e&&n&&i.indexOf(n)>i.indexOf(e))}function Y(t,e){var i=t.childNodes||[];if(r(i,(function(t){return W(t)&&t!==e})))return!1;var n=r(i,G);return!(e&&n&&i.indexOf(n)>i.indexOf(e))}function K(t,e,i){var n=t.childNodes||[],s=e.childNodes||[];if(e.nodeType===N.DOCUMENT_FRAGMENT_NODE){var a=s.filter(W);if(a.length>1||r(s,X))throw new P(E,"More than one element or text in fragment");if(1===a.length&&!$(t,i))throw new P(E,"Element in fragment can not be inserted before doctype")}if(W(e)&&!$(t,i))throw new P(E,"Only one element can be added and only after doctype");if(G(e)){if(r(n,G))throw new P(E,"Only one doctype is allowed");var o=r(n,W);if(i&&n.indexOf(o)<n.indexOf(i))throw new P(E,"Doctype can only be inserted before an element");if(!i&&o)throw new P(E,"Doctype can not be appended since element is present")}}function Q(t,e,i){var n=t.childNodes||[],s=e.childNodes||[];if(e.nodeType===N.DOCUMENT_FRAGMENT_NODE){var a=s.filter(W);if(a.length>1||r(s,X))throw new P(E,"More than one element or text in fragment");if(1===a.length&&!Y(t,i))throw new P(E,"Element in fragment can not be inserted before doctype")}if(W(e)&&!Y(t,i))throw new P(E,"Only one element can be added and only after doctype");if(G(e)){if(r(n,(function(t){return G(t)&&t!==i})))throw new P(E,"Only one doctype is allowed");var o=r(n,W);if(i&&n.indexOf(o)<n.indexOf(i))throw new P(E,"Doctype can only be inserted before an element")}}function Z(t,e,i,n){(function(t,e,i){if(!function(t){return t&&(t.nodeType===N.DOCUMENT_NODE||t.nodeType===N.DOCUMENT_FRAGMENT_NODE||t.nodeType===N.ELEMENT_NODE)}(t))throw new P(E,"Unexpected parent node type "+t.nodeType);if(i&&i.parentNode!==t)throw new P(D,"child not in parent");if(!function(t){return t&&(W(t)||X(t)||G(t)||t.nodeType===N.DOCUMENT_FRAGMENT_NODE||t.nodeType===N.COMMENT_NODE||t.nodeType===N.PROCESSING_INSTRUCTION_NODE)}(e)||G(e)&&t.nodeType!==N.DOCUMENT_NODE)throw new P(E,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)})(t,e,i),t.nodeType===N.DOCUMENT_NODE&&(n||K)(t,e,i);var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===T){var s=e.firstChild;if(null==s)return e;var a=e.lastChild}else s=a=e;var o=i?i.previousSibling:t.lastChild;s.previousSibling=o,a.nextSibling=i,o?o.nextSibling=s:t.firstChild=s,null==i?t.lastChild=a:i.previousSibling=a;do{s.parentNode=t}while(s!==a&&(s=s.nextSibling));return z(t.ownerDocument||t,t),e.nodeType==T&&(e.firstChild=e.lastChild=null),e}function J(){this._nsMap={}}function tt(){}function et(){}function it(){}function nt(){}function rt(){}function st(){}function at(){}function ot(){}function lt(){}function ut(){}function ct(){}function ht(){}function dt(t,e){var i=[],n=9==this.nodeType&&this.documentElement||this,r=n.prefix,s=n.namespaceURI;if(s&&null==r&&null==(r=n.lookupPrefix(s)))var a=[{namespace:s,prefix:null}];return mt(this,i,t,e,a),i.join("")}function pt(t,e,i){var n=t.prefix||"",r=t.namespaceURI;if(!r)return!1;if("xml"===n&&r===s.XML||r===s.XMLNS)return!1;for(var a=i.length;a--;){var o=i[a];if(o.prefix===n)return o.namespace!==r}return!0}function ft(t,e,i){t.push(" ",e,'="',i.replace(/[<&"]/g,H),'"')}function mt(t,e,i,n,r){if(r||(r=[]),n){if(!(t=n(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case d:var a=t.attributes,o=a.length,l=t.firstChild,u=t.tagName,c=u;if(!(i=s.isHTML(t.namespaceURI)||i)&&!t.prefix&&t.namespaceURI){for(var h,y=0;y<a.length;y++)if("xmlns"===a.item(y).name){h=a.item(y).value;break}if(!h)for(var w=r.length-1;w>=0;w--)if(""===(k=r[w]).prefix&&k.namespace===t.namespaceURI){h=k.namespace;break}if(h!==t.namespaceURI)for(w=r.length-1;w>=0;w--){var k;if((k=r[w]).namespace===t.namespaceURI){k.prefix&&(c=k.prefix+":"+u);break}}}e.push("<",c);for(var S=0;S<o;S++)"xmlns"==(E=a.item(S)).prefix?r.push({prefix:E.localName,namespace:E.value}):"xmlns"==E.nodeName&&r.push({prefix:"",namespace:E.value});for(S=0;S<o;S++){var E,D,C;pt(E=a.item(S),0,r)&&(ft(e,(D=E.prefix||"")?"xmlns:"+D:"xmlns",C=E.namespaceURI),r.push({prefix:D,namespace:C})),mt(E,e,i,n,r)}if(u===c&&pt(t,0,r)&&(ft(e,(D=t.prefix||"")?"xmlns:"+D:"xmlns",C=t.namespaceURI),r.push({prefix:D,namespace:C})),l||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(e.push(">"),i&&/^script$/i.test(u))for(;l;)l.data?e.push(l.data):mt(l,e,i,n,r.slice()),l=l.nextSibling;else for(;l;)mt(l,e,i,n,r.slice()),l=l.nextSibling;e.push("</",c,">")}else e.push("/>");return;case b:case T:for(l=t.firstChild;l;)mt(l,e,i,n,r.slice()),l=l.nextSibling;return;case p:return ft(e,t.name,t.value);case f:return e.push(t.data.replace(/[<&]/g,H).replace(/]]>/g,"]]>"));case m:return e.push("<![CDATA[",t.data,"]]>");case _:return e.push("\x3c!--",t.data,"--\x3e");case x:var P=t.publicId,A=t.systemId;if(e.push("<!DOCTYPE ",t.name),P)e.push(" PUBLIC ",P),A&&"."!=A&&e.push(" ",A),e.push(">");else if(A&&"."!=A)e.push(" SYSTEM ",A,">");else{var M=t.internalSubset;M&&e.push(" [",M,"]"),e.push(">")}return;case v:return e.push("<?",t.target," ",t.data,"?>");case g:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function gt(t,e,i){var n;switch(e.nodeType){case d:(n=e.cloneNode(!1)).ownerDocument=t;case T:break;case p:i=!0}if(n||(n=e.cloneNode(!1)),n.ownerDocument=t,n.parentNode=null,i)for(var r=e.firstChild;r;)n.appendChild(gt(t,r,i)),r=r.nextSibling;return n}function yt(t,e,i){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var s=e[r];"object"!=typeof s&&s!=n[r]&&(n[r]=s)}switch(e.childNodes&&(n.childNodes=new A),n.ownerDocument=t,n.nodeType){case d:var a=e.attributes,o=n.attributes=new L,l=a.length;o._ownerElement=n;for(var u=0;u<l;u++)n.setAttributeNode(yt(t,a.item(u),!0));break;case p:i=!0}if(i)for(var c=e.firstChild;c;)n.appendChild(yt(t,c,i)),c=c.nextSibling;return n}function vt(t,e,i){t[e]=i}k.INVALID_STATE_ERR=(S[11]="Invalid state",11),k.SYNTAX_ERR=(S[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),k.NAMESPACE_ERR=(S[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(S[15]="Invalid access",15),P.prototype=Error.prototype,u(k,P),A.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var i=[],n=0;n<this.length;n++)mt(this[n],i,t,e);return i.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}},M.prototype.item=function(t){return I(this),this[t]||null},c(M,A),L.prototype={length:0,item:A.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var i=this[e];if(i.nodeName==t)return i}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new P(C);var i=this.getNamedItem(t.nodeName);return F(this._ownerElement,this,t,i),i},setNamedItemNS:function(t){var e,i=t.ownerElement;if(i&&i!=this._ownerElement)throw new P(C);return e=this.getNamedItemNS(t.namespaceURI,t.localName),F(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return R(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var i=this.getNamedItemNS(t,e);return R(this._ownerElement,this,i),i},getNamedItemNS:function(t,e){for(var i=this.length;i--;){var n=this[i];if(n.localName==e&&n.namespaceURI==t)return n}return null}},B.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,i){var n=new j;if(n.implementation=this,n.childNodes=new A,n.doctype=i||null,i&&n.appendChild(i),e){var r=n.createElementNS(t,e);n.appendChild(r)}return n},createDocumentType:function(t,e,i){var n=new st;return n.name=t,n.nodeName=t,n.publicId=e||"",n.systemId=i||"",n}},N.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return Z(this,t,e)},replaceChild:function(t,e){Z(this,t,e,Q),e&&this.removeChild(e)},removeChild:function(t){return q(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return yt(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==f&&t.nodeType==f?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var i=e._nsMap;if(i)for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&i[n]===t)return n;e=e.nodeType==p?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var i=e._nsMap;if(i&&t in i&&Object.prototype.hasOwnProperty.call(i,t))return i[t];e=e.nodeType==p?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},u(h,N),u(h,N.prototype),j.prototype={nodeName:"#document",nodeType:b,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==T){for(var i=t.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,e),i=n}return t}return Z(this,t,e),t.ownerDocument=this,null===this.documentElement&&t.nodeType===d&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),q(this,t)},replaceChild:function(t,e){Z(this,t,e,Q),t.ownerDocument=this,e&&this.removeChild(e),W(t)&&(this.documentElement=t)},importNode:function(t,e){return gt(this,t,e)},getElementById:function(t){var e=null;return V(this.documentElement,(function(i){if(i.nodeType==d&&i.getAttribute("id")==t)return e=i,!0})),e},getElementsByClassName:function(t){var e=l(t);return new M(this,(function(i){var n=[];return e.length>0&&V(i.documentElement,(function(r){if(r!==i&&r.nodeType===d){var s=r.getAttribute("class");if(s){var a=t===s;if(!a){var o=l(s);a=e.every((u=o,function(t){return u&&-1!==u.indexOf(t)}))}a&&n.push(r)}}var u})),n}))},createElement:function(t){var e=new J;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new A,(e.attributes=new L)._ownerElement=e,e},createDocumentFragment:function(){var t=new ut;return t.ownerDocument=this,t.childNodes=new A,t},createTextNode:function(t){var e=new it;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new nt;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new rt;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var i=new ct;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=t,i.nodeValue=i.data=e,i},createAttribute:function(t){var e=new tt;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new lt;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var i=new J,n=e.split(":"),r=i.attributes=new L;return i.childNodes=new A,i.ownerDocument=this,i.nodeName=e,i.tagName=e,i.namespaceURI=t,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=e,r._ownerElement=i,i},createAttributeNS:function(t,e){var i=new tt,n=e.split(":");return i.ownerDocument=this,i.nodeName=e,i.name=e,i.namespaceURI=t,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=e,i}},c(j,N),J.prototype={nodeType:d,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var i=this.ownerDocument.createAttribute(t);i.value=i.nodeValue=""+e,this.setAttributeNode(i)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===T?this.insertBefore(t,null):function(t,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,z(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var i=this.getAttributeNodeNS(t,e);i&&this.removeAttributeNode(i)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var i=this.getAttributeNodeNS(t,e);return i&&i.value||""},setAttributeNS:function(t,e,i){var n=this.ownerDocument.createAttributeNS(t,e);n.value=n.nodeValue=""+i,this.setAttributeNode(n)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new M(this,(function(e){var i=[];return V(e,(function(n){n===e||n.nodeType!=d||"*"!==t&&n.tagName!=t||i.push(n)})),i}))},getElementsByTagNameNS:function(t,e){return new M(this,(function(i){var n=[];return V(i,(function(r){r===i||r.nodeType!==d||"*"!==t&&r.namespaceURI!==t||"*"!==e&&r.localName!=e||n.push(r)})),n}))}},j.prototype.getElementsByTagName=J.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,c(J,N),tt.prototype.nodeType=p,c(tt,N),et.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(S[E])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,i){i=this.data.substring(0,t)+i+this.data.substring(t+e),this.nodeValue=this.data=i,this.length=i.length}},c(et,N),it.prototype={nodeName:"#text",nodeType:f,splitText:function(t){var e=this.data,i=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var n=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},c(it,et),nt.prototype={nodeName:"#comment",nodeType:_},c(nt,et),rt.prototype={nodeName:"#cdata-section",nodeType:m},c(rt,et),st.prototype.nodeType=x,c(st,N),at.prototype.nodeType=w,c(at,N),ot.prototype.nodeType=y,c(ot,N),lt.prototype.nodeType=g,c(lt,N),ut.prototype.nodeName="#document-fragment",ut.prototype.nodeType=T,c(ut,N),ct.prototype.nodeType=v,c(ct,N),ht.prototype.serializeToString=function(t,e,i){return dt.call(t,e,i)},N.prototype.toString=dt;try{if(Object.defineProperty){function _t(t){switch(t.nodeType){case d:case T:var e=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&e.push(_t(t)),t=t.nextSibling;return e.join("");default:return t.nodeValue}}Object.defineProperty(M.prototype,"length",{get:function(){return I(this),this.$$length}}),Object.defineProperty(N.prototype,"textContent",{get:function(){return _t(this)},set:function(t){switch(this.nodeType){case d:case T:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),vt=function(t,e,i){t["$$"+e]=i}}}catch(bt){}e.DocumentType=st,e.DOMException=P,e.DOMImplementation=B,e.Element=J,e.Node=N,e.NodeList=A,e.XMLSerializer=ht},1045:(t,e,i)=>{"use strict";var n=i(2167).freeze;e.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=n({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES},3969:(t,e,i)=>{var n=i(1146);n.DOMImplementation,n.XMLSerializer,e.DOMParser=i(6129).DOMParser},6925:(t,e,i)=>{var n=i(2167).NAMESPACE,r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+r.source+s.source+"*(?::"+r.source+s.source+"*)?$");function o(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,o)}function l(){}function u(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function c(t,e,i,r,s,a){function o(t,e,n){i.attributeNames.hasOwnProperty(t)&&a.fatalError("Attribute "+t+" redefined"),i.addValue(t,e,n)}for(var l,u=++e,c=0;;){var h=t.charAt(u);switch(h){case"=":if(1===c)l=t.slice(e,u),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(a.warning('attribute value must after "="'),l=t.slice(e,u)),e=u+1,!((u=t.indexOf(h,e))>0))throw new Error("attribute value no end '"+h+"' match");o(l,d=t.slice(e,u).replace(/&#?\w+;/g,s),e-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');o(l,d=t.slice(e,u).replace(/&#?\w+;/g,s),e),a.warning('attribute "'+l+'" missed start quot('+h+")!!"),e=u+1,c=5}break;case"/":switch(c){case 0:i.setTagName(t.slice(e,u));case 5:case 6:case 7:c=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==c&&i.setTagName(t.slice(e,u)),u;case">":switch(c){case 0:i.setTagName(t.slice(e,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(d=t.slice(e,u)).slice(-1)&&(i.closed=!0,d=d.slice(0,-1));case 2:2===c&&(d=l),4==c?(a.warning('attribute "'+d+'" missed quot(")!'),o(l,d.replace(/&#?\w+;/g,s),e)):(n.isHTML(r[""])&&d.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),o(d,d,e));break;case 3:throw new Error("attribute value missed!!")}return u;case"":h=" ";default:if(h<=" ")switch(c){case 0:i.setTagName(t.slice(e,u)),c=6;break;case 1:l=t.slice(e,u),c=2;break;case 4:var d=t.slice(e,u).replace(/&#?\w+;/g,s);a.warning('attribute "'+d+'" missed quot(")!!'),o(l,d,e);case 5:c=6}else switch(c){case 2:i.tagName,n.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,e),e=u,c=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:c=1,e=u;break;case 3:c=4,e=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function h(t,e,i){for(var r=t.tagName,s=null,a=t.length;a--;){var o=t[a],l=o.qName,u=o.value;if((p=l.indexOf(":"))>0)var c=o.prefix=l.slice(0,p),h=l.slice(p+1),d="xmlns"===c&&h;else h=l,c=null,d="xmlns"===l&&"";o.localName=h,!1!==d&&(null==s&&(s={},f(i,i={})),i[d]=s[d]=u,o.uri=n.XMLNS,e.startPrefixMapping(d,u))}for(a=t.length;a--;)(c=(o=t[a]).prefix)&&("xml"===c&&(o.uri=n.XML),"xmlns"!==c&&(o.uri=i[c||""]));var p;(p=r.indexOf(":"))>0?(c=t.prefix=r.slice(0,p),h=t.localName=r.slice(p+1)):(c=null,h=t.localName=r);var m=t.uri=i[c||""];if(e.startElement(m,h,r,t),!t.closed)return t.currentNSMap=i,t.localNSMap=s,!0;if(e.endElement(m,h,r),s)for(c in s)Object.prototype.hasOwnProperty.call(s,c)&&e.endPrefixMapping(c)}function d(t,e,i,n,r){if(/^(?:script|textarea)$/i.test(i)){var s=t.indexOf("</"+i+">",e),a=t.substring(e+1,s);if(/[&<]/.test(a))return/^script$/i.test(i)?(r.characters(a,0,a.length),s):(a=a.replace(/&#?\w+;/g,n),r.characters(a,0,a.length),s)}return e+1}function p(t,e,i,n){var r=n[i];return null==r&&((r=t.lastIndexOf("</"+i+">"))<e&&(r=t.lastIndexOf("</"+i)),n[i]=r),r<e}function f(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}function m(t,e,i,n){if("-"===t.charAt(e+2))return"-"===t.charAt(e+3)?(r=t.indexOf("--\x3e",e+4))>e?(i.comment(t,e+4,r-e-4),r+3):(n.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var r=t.indexOf("]]>",e+9);return i.startCDATA(),i.characters(t,e+9,r-e-9),i.endCDATA(),r+3}var s=function(t,e){var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=e,r.exec(t);i=r.exec(t);)if(n.push(i),i[1])return n}(t,e),a=s.length;if(a>1&&/!doctype/i.test(s[0][0])){var o=s[1][0],l=!1,u=!1;a>3&&(/^public$/i.test(s[2][0])?(l=s[3][0],u=a>4&&s[4][0]):/^system$/i.test(s[2][0])&&(u=s[3][0]));var c=s[a-1];return i.startDTD(o,l,u),i.endDTD(),c.index+c[0].length}return-1}function g(t,e,i){var n=t.indexOf("?>",e);if(n){var r=t.substring(e,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,i.processingInstruction(r[1],r[2]),n+2):-1}return-1}function y(){this.attributeNames={}}o.prototype=new Error,o.prototype.name=o.name,l.prototype={parse:function(t,e,i){var r=this.domBuilder;r.startDocument(),f(e,e={}),function(t,e,i,r,s){function a(t){var e=t.slice(1,-1);return e in i?i[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),i=56320+(1023&t);return String.fromCharCode(e,i)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(s.error("entity not found:"+t),t)}function l(e){if(e>k){var i=t.substring(k,e).replace(/&#?\w+;/g,a);x&&f(k),r.characters(i,0,e-k),k=e}}function f(e,i){for(;e>=_&&(i=b.exec(t));)v=i.index,_=v+i[0].length,x.lineNumber++;x.columnNumber=e-v+1}for(var v=0,_=0,b=/.*(?:\r\n?|\n)|.*$/g,x=r.locator,T=[{currentNSMap:e}],w={},k=0;;){try{var S=t.indexOf("<",k);if(S<0){if(!t.substr(k).match(/^\s*$/)){var E=r.doc,D=E.createTextNode(t.substr(k));E.appendChild(D),r.currentElement=D}return}switch(S>k&&l(S),t.charAt(S+1)){case"/":var C=t.indexOf(">",S+3),P=t.substring(S+2,C).replace(/[ \t\n\r]+$/g,""),A=T.pop();C<0?(P=t.substring(S+2).replace(/[\s<].*/,""),s.error("end tag name: "+P+" is not complete:"+A.tagName),C=S+1+P.length):P.match(/\s</)&&(P=P.replace(/[\s<].*/,""),s.error("end tag name: "+P+" maybe not complete"),C=S+1+P.length);var M=A.localNSMap,I=A.tagName==P;if(I||A.tagName&&A.tagName.toLowerCase()==P.toLowerCase()){if(r.endElement(A.uri,A.localName,P),M)for(var L in M)Object.prototype.hasOwnProperty.call(M,L)&&r.endPrefixMapping(L);I||s.fatalError("end tag name: "+P+" is not match the current start tagName:"+A.tagName)}else T.push(A);C++;break;case"?":x&&f(S),C=g(t,S,r);break;case"!":x&&f(S),C=m(t,S,r,s);break;default:x&&f(S);var O=new y,F=T[T.length-1].currentNSMap,R=(C=c(t,S,O,F,a,s),O.length);if(!O.closed&&p(t,C,O.tagName,w)&&(O.closed=!0,i.nbsp||s.warning("unclosed xml attribute")),x&&R){for(var B=u(x,{}),N=0;N<R;N++){var H=O[N];f(H.offset),H.locator=u(x,{})}r.locator=B,h(O,r,F)&&T.push(O),r.locator=x}else h(O,r,F)&&T.push(O);n.isHTML(O.uri)&&!O.closed?C=d(t,C,O.tagName,a,r):C++}}catch(t){if(t instanceof o)throw t;s.error("element parse error: "+t),C=-1}C>k?k=C:l(Math.max(S,k)+1)}}(t,e,i,r,this.errorHandler),r.endDocument()}},y.prototype={setTagName:function(t){if(!a.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,i){if(!a.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:i}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},e.XMLReader=l,e.ParseError=o},7158:function(t){var e,i;e="undefined"!=typeof window?window:this,i=function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},n=i[t]=i[t]||[];return n.includes(e)||n.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let n=i.indexOf(e);return-1!=n&&i.splice(n,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let n=this._onceEvents&&this._onceEvents[t];for(let r of i)n&&n[r]&&(this.off(t,r),delete n[r]),r.apply(this,e);return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t},t.exports?t.exports=i():e.EvEmitter=i()},6729:t=>{"use strict";var e=Object.prototype.hasOwnProperty,i="~";function n(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function s(t,e,n,s,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new r(n,s||t,a),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function o(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),o.prototype.eventNames=function(){var t,n,r=[];if(0===this._eventsCount)return r;for(n in t=this._events)e.call(t,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},o.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,s=n.length,a=new Array(s);r<s;r++)a[r]=n[r].fn;return a},o.prototype.listenerCount=function(t){var e=i?i+t:t,n=this._events[e];return n?n.fn?1:n.length:0},o.prototype.emit=function(t,e,n,r,s,a){var o=i?i+t:t;if(!this._events[o])return!1;var l,u,c=this._events[o],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,r),!0;case 5:return c.fn.call(c.context,e,n,r,s),!0;case 6:return c.fn.call(c.context,e,n,r,s,a),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,r);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},o.prototype.on=function(t,e,i){return s(this,t,e,i,!1)},o.prototype.once=function(t,e,i){return s(this,t,e,i,!0)},o.prototype.removeListener=function(t,e,n,r){var s=i?i+t:t;if(!this._events[s])return this;if(!e)return a(this,s),this;var o=this._events[s];if(o.fn)o.fn!==e||r&&!o.once||n&&o.context!==n||a(this,s);else{for(var l=0,u=[],c=o.length;l<c;l++)(o[l].fn!==e||r&&!o[l].once||n&&o[l].context!==n)&&u.push(o[l]);u.length?this._events[s]=1===u.length?u[0]:u:a(this,s)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=i,o.EventEmitter=o,t.exports=o},9047:function(t){var e,i;e=this,i=function(t){let e={extend:function(t,e){return Object.assign(t,e)},modulo:function(t,e){return(t%e+e)%e},makeArray:function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?[...t]:[t]},removeFrom:function(t,e){let i=t.indexOf(e);-1!=i&&t.splice(i,1)},getParent:function(t,e){for(;t.parentNode&&t!=document.body;)if((t=t.parentNode).matches(e))return t},getQueryElement:function(t){return"string"==typeof t?document.querySelector(t):t},handleEvent:function(t){let e="on"+t.type;this[e]&&this[e](t)},filterFindElements:function(t,i){return(t=e.makeArray(t)).filter((t=>t instanceof HTMLElement)).reduce(((t,e)=>{if(!i)return t.push(e),t;e.matches(i)&&t.push(e);let n=e.querySelectorAll(i);return t.concat(...n)}),[])},debounceMethod:function(t,e,i){i=i||100;let n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){clearTimeout(this[r]);let t=arguments;this[r]=setTimeout((()=>{n.apply(this,t),delete this[r]}),i)}},docReady:function(t){let e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},toDashed:function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()}},i=t.console;return e.htmlInit=function(n,r){e.docReady((function(){let s="data-"+e.toDashed(r),a=document.querySelectorAll(`[${s}]`),o=t.jQuery;[...a].forEach((t=>{let e,a=t.getAttribute(s);try{e=a&&JSON.parse(a)}catch(e){return void(i&&i.error(`Error parsing ${s} on ${t.className}: ${e}`))}let l=new n(t,e);o&&o.data(t,r,l)}))}))},e},t.exports?t.exports=i(e):e.fizzyUIUtils=i(e)},3031:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(2442),i(9047)):n(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.Slide;i.prototype.renderFadePosition=function(){},i.prototype.setOpacity=function(t){this.cells.forEach((e=>{e.element.style.opacity=t}))},t.create.fade=function(){this.fadeIndex=this.selectedIndex,this.prevSelectedIndex=this.selectedIndex,this.on("select",this.onSelectFade),this.on("dragEnd",this.onDragEndFade),this.on("settle",this.onSettleFade),this.on("activate",this.onActivateFade),this.on("deactivate",this.onDeactivateFade)};let n=t.prototype,r=n.updateSlides;n.updateSlides=function(){r.apply(this,arguments),this.options.fade&&this.slides.forEach(((t,e)=>{let i=t.target-t.x,n=t.cells[0].x;t.cells.forEach((t=>{let e=t.x-n-i;this._renderCellPosition(t,e)}));let r=e===this.selectedIndex?1:0;t.setOpacity(r)}))},n.onSelectFade=function(){this.fadeIndex=Math.min(this.prevSelectedIndex,this.slides.length-1),this.prevSelectedIndex=this.selectedIndex},n.onSettleFade=function(){delete this.didDragEnd,this.options.fade&&(this.selectedSlide.setOpacity(1),this.slides[this.fadeIndex]&&this.fadeIndex!==this.selectedIndex&&this.slides[this.fadeIndex].setOpacity(0))},n.onDragEndFade=function(){this.didDragEnd=!0},n.onActivateFade=function(){this.options.fade&&this.element.classList.add("is-fade")},n.onDeactivateFade=function(){this.options.fade&&(this.element.classList.remove("is-fade"),this.slides.forEach((t=>{t.setOpacity("")})))};let s=n.positionSlider;n.positionSlider=function(){this.options.fade?(this.fadeSlides(),this.dispatchScrollEvent()):s.apply(this,arguments)};let a=n.positionSliderAtSelected;n.positionSliderAtSelected=function(){this.options.fade&&this.setTranslateX(0),a.apply(this,arguments)},n.fadeSlides=function(){if(this.slides.length<2)return;let t=this.getFadeIndexes(),e=this.slides[t.a],i=this.slides[t.b],n=this.wrapDifference(e.target,i.target),r=this.wrapDifference(e.target,-this.x);r/=n,e.setOpacity(1-r),i.setOpacity(r);let s=t.a;this.isDragging&&(s=r>.5?t.a:t.b),void 0!==this.fadeHideIndex&&this.fadeHideIndex!==s&&this.fadeHideIndex!==t.a&&this.fadeHideIndex!==t.b&&this.slides[this.fadeHideIndex].setOpacity(0),this.fadeHideIndex=s},n.getFadeIndexes=function(){return this.isDragging||this.didDragEnd?this.options.wrapAround?this.getFadeDragWrapIndexes():this.getFadeDragLimitIndexes():{a:this.fadeIndex,b:this.selectedIndex}},n.getFadeDragWrapIndexes=function(){let t=this.slides.map((function(t,e){return this.getSlideDistance(-this.x,e)}),this),i=t.map((function(t){return Math.abs(t)})),n=Math.min(...i),r=i.indexOf(n),s=t[r],a=this.slides.length,o=s>=0?1:-1;return{a:r,b:e.modulo(r+o,a)}},n.getFadeDragLimitIndexes=function(){let t=0;for(let e=0;e<this.slides.length-1;e++){let i=this.slides[e];if(-this.x<i.target)break;t=e}return{a:t,b:t+1}},n.wrapDifference=function(t,e){let i=e-t;if(!this.options.wrapAround)return i;let n=i+this.slideableWidth,r=i-this.slideableWidth;return Math.abs(n)<Math.abs(i)&&(i=n),Math.abs(r)<Math.abs(i)&&(i=r),i};let o=n._updateWrapShiftCells;n._updateWrapShiftCells=function(){this.options.fade?this.isWrapping=this.getIsWrapping():o.apply(this,arguments)};let l=n.shiftWrapCells;return n.shiftWrapCells=function(){this.options.fade||l.apply(this,arguments)},t}))},3597:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(9047)):n(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.prototype;return i.insert=function(t,e){let i=this._makeCells(t);if(!i||!i.length)return;let n=this.cells.length;e=void 0===e?n:e;let r=function(t){let e=document.createDocumentFragment();return t.forEach((t=>e.appendChild(t.element))),e}(i),s=e===n;if(s)this.slider.appendChild(r);else{let t=this.cells[e].element;this.slider.insertBefore(r,t)}if(0===e)this.cells=i.concat(this.cells);else if(s)this.cells=this.cells.concat(i);else{let t=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(t)}this._sizeCells(i),this.cellChange(e),this.positionSliderAtSelected()},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){let i=this.getCells(t);if(!i||!i.length)return;let n=this.cells.length-1;i.forEach((t=>{t.remove();let i=this.cells.indexOf(t);n=Math.min(i,n),e.removeFrom(this.cells,t)})),this.cellChange(n),this.positionSliderAtSelected()},i.cellSizeChange=function(t){let e=this.getCell(t);if(!e)return;e.getSize();let i=this.cells.indexOf(e);this.cellChange(i)},i.cellChange=function(t){let e=this.selectedElement;this._positionCells(t),this._updateWrapShiftCells(),this.setGallerySize();let i=this.getCell(e);i&&(this.selectedIndex=this.getCellSlideIndex(i)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex)},t}))},7880:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(9047)):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=n(e.fizzyUIUtils))}("undefined"!=typeof window?window:this,(function(t){return{startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();let t=this.x;this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating&&requestAnimationFrame((()=>this.animate()))},positionSlider:function(){let e=this.x;this.isWrapping&&(e=t.modulo(e,this.slideableWidth)-this.slideableWidth,this.shiftWrapCells(e)),this.setTranslateX(e,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,this.options.rightToLeft&&(t=-t);let i=this.getPositionValue(t);this.slider.style.transform=e?`translate3d(${i},0,0)`:`translateX(${i})`},dispatchScrollEvent:function(){let t=this.slides[0];if(!t)return;let e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){!this.isPointerDown&&Math.round(100*this.x)===Math.round(100*t)&&this.restingFrames++,this.restingFrames>2&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){let e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);let i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){t.forEach((t=>{let n=e>0?i:0;this._wrapShiftCell(t,n),e-=t.size.outerWidth}))},_unshiftCells:function(t){t&&t.length&&t.forEach((t=>this._wrapShiftCell(t,0)))},_wrapShiftCell:function(t,e){this._renderCellPosition(t,t.x+this.slideableWidth*e)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(!this.isDraggable||!this.isPointerDown)return;let t=this.dragX-this.x-this.velocity;this.applyForce(t)},applySelectedAttraction:function(){if(this.isDraggable&&this.isPointerDown||this.isFreeScrolling||!this.slides.length)return;let t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}}))},7229:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6131)):(e.Flickity=e.Flickity||{},e.Flickity.Cell=n(e.getSize))}("undefined"!=typeof window?window:this,(function(t){const e="flickity-cell";function i(t){this.element=t,this.element.classList.add(e),this.x=0,this.unselect()}let n=i.prototype;return n.destroy=function(){this.unselect(),this.element.classList.remove(e),this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=t(this.element)},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.remove=function(){this.element.remove()},i}))},6680:function(t,e,i){!function(e,n){if(t.exports)t.exports=n(e,i(7158),i(6131),i(9047),i(7229),i(9714),i(7880));else{let t=e.Flickity;e.Flickity=n(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}}("undefined"!=typeof window?window:this,(function(t,e,i,n,r,s,a){const{getComputedStyle:o,console:l}=t;let{jQuery:u}=t,c=0,h={};function d(t,e){let i=n.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){let t=h[this.element.flickityGUID];return t&&t.option(e),t}u&&(this.$element=u(this.element)),this.options={...this.constructor.defaults},this.option(e),this._create()}else l&&l.error(`Bad element for Flickity: ${i||t}`)}d.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},d.create={};let p=d.prototype;Object.assign(p,e.prototype),p._create=function(){let{resize:e,watchCSS:i,rightToLeft:n}=this.options,r=this.guid=++c;this.element.flickityGUID=r,h[r]=this,this.selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.beginMargin=n?"marginRight":"marginLeft",this.endMargin=n?"marginLeft":"marginRight",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),this.focusableElems=[this.element],(e||i)&&t.addEventListener("resize",this);for(let t in this.options.on){let e=this.options.on[t];this.on(t,e)}for(let t in d.create)d.create[t].call(this);i?this.watchCSS():this.activate()},p.option=function(t){Object.assign(this.options,t)},p.activate=function(){if(this.isActive)return;this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();let t=this._filterFindCellElements(this.element.children);this.slider.append(...t),this.viewport.append(this.slider),this.element.append(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")},p._createSlider=function(){let t=document.createElement("div");t.className="flickity-slider",this.slider=t},p._filterFindCellElements=function(t){return n.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map((t=>new r(t)))},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;let e=0;if(t>0){let i=this.cells[t-1];e=i.x+i.size.outerWidth}this.cells.slice(t).forEach((t=>{t.x=e,this._renderCellPosition(t,e),e+=t.size.outerWidth,this.maxCellHeight=Math.max(t.size.outerHeight,this.maxCellHeight)})),this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=this.cells.length?this.getLastSlide().target-this.slides[0].target:0},p._renderCellPosition=function(t,e){let i=e*(this.options.rightToLeft?-1:1);this.options.percentPosition&&(i*=this.size.innerWidth/t.size.width);let n=this.getPositionValue(i);t.element.style.transform=`translateX( ${n} )`},p._sizeCells=function(t){t.forEach((t=>t.getSize()))},p.updateSlides=function(){if(this.slides=[],!this.cells.length)return;let{beginMargin:t,endMargin:e}=this,i=new s(t,e,this.cellAlign);this.slides.push(i);let n=this._getCanCellFit();this.cells.forEach(((r,a)=>{if(!i.cells.length)return void i.addCell(r);let o=i.outerWidth-i.firstMargin+(r.size.outerWidth-r.size[e]);n(a,o)||(i.updateTarget(),i=new s(t,e,this.cellAlign),this.slides.push(i)),i.addCell(r)})),i.updateTarget(),this.updateSelectedSlide()},p._getCanCellFit=function(){let{groupCells:t}=this.options;if(!t)return()=>!1;if("number"==typeof t){let e=parseInt(t,10);return t=>t%e!=0}let e=1,i="string"==typeof t&&t.match(/^(\d+)%$/);i&&(e=parseInt(i[1],10)/100);let n=(this.size.innerWidth+1)*e;return(t,e)=>e<=n},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=i(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};let f={left:0,center:.5,right:1};p.setCellAlign=function(){let{cellAlign:t,rightToLeft:e}=this.options,i=f[t];this.cellAlign=void 0!==i?i:t,e&&(this.cellAlign=1-this.cellAlign)},p.setGallerySize=function(){if(!this.options.setGallerySize)return;let t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=`${t}px`},p._updateWrapShiftCells=function(){if(this.isWrapping=this.getIsWrapping(),!this.isWrapping)return;this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);let t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1);let i=this.size.innerWidth-this.cursorPosition;this.afterShiftCells=this._getGapCells(i,0,1)},p.getIsWrapping=function(){let{wrapAround:t}=this.options;if(!t||this.slides.length<2)return!1;if("fill"!==t)return!0;let e=this.slideableWidth-this.size.innerWidth;if(e>this.size.innerWidth)return!0;for(let t of this.cells)if(t.size.outerWidth>e)return!1;return!0},p._getGapCells=function(t,e,i){let n=[];for(;t>0;){let r=this.cells[e];if(!r)break;n.push(r),e+=i,t-=r.size.outerWidth}return n},p._containSlides=function(){if(!this.options.contain||this.isWrapping||!this.cells.length)return;let t=this.slideableWidth-this.getLastCell().size[this.endMargin];if(t<this.size.innerWidth)this.slides.forEach((e=>{e.target=t*this.cellAlign}));else{let e=this.cursorPosition+this.cells[0].size[this.beginMargin],i=t-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach((t=>{t.target=Math.max(t.target,e),t.target=Math.min(t.target,i)}))}},p.dispatchEvent=function(t,e,i){let n=e?[e].concat(i):i;if(this.emitEvent(t,n),u&&this.$element){let n=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){let i=new u.Event(e);i.type=t,n=i}this.$element.trigger(n,i)}};const m=["dragStart","dragMove","dragEnd","pointerDown","pointerMove","pointerEnd","staticClick"];let g=p.emitEvent;p.emitEvent=function(t,e){if("staticClick"===t){let t=this.getParentCell(e[0].target),i=t&&t.element,n=t&&this.cells.indexOf(t);e=e.concat(i,n)}if(g.call(this,t,e),!m.includes(t)||!u||!this.$element)return;t+=this.options.namespaceJQueryEvents?".flickity":"";let i=e.shift(0),n=new u.Event(i);n.type=t,this.$element.trigger(n,e)},p.select=function(t,e,i){if(!this.isActive)return;if(t=parseInt(t,10),this._wrapSelect(t),(this.isWrapping||e)&&(t=n.modulo(t,this.slides.length)),!this.slides[t])return;let r=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!==r&&this.dispatchEvent("change",null,[t])},p._wrapSelect=function(t){if(!this.isWrapping)return;const{selectedIndex:e,slideableWidth:i,slides:{length:r}}=this;if(!this.isDragSelect){let i=n.modulo(t,r),s=Math.abs(i-e),a=Math.abs(i+r-e),o=Math.abs(i-r-e);a<s?t+=r:o<s&&(t-=r)}t<0?this.x-=i:t>=r&&(this.x+=i)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){let t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),this.selectedSlide=t,t.select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){let t=this.options.initialIndex;if(this.isInitActivated)return void this.select(this.selectedIndex,!1,!0);if(t&&"string"==typeof t&&this.queryCell(t))return void this.selectCell(t,!1,!0);let e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)},p.selectCell=function(t,e,i){let n=this.queryCell(t);if(!n)return;let r=this.getCellSlideIndex(n);this.select(r,e,i)},p.getCellSlideIndex=function(t){let e=this.slides.find((e=>e.cells.includes(t)));return this.slides.indexOf(e)},p.getCell=function(t){for(let e of this.cells)if(e.element===t)return e},p.getCells=function(t){return(t=n.makeArray(t)).map((t=>this.getCell(t))).filter(Boolean)},p.getCellElements=function(){return this.cells.map((t=>t.element))},p.getParentCell=function(t){let e=this.getCell(t);if(e)return e;let i=t.closest(".flickity-slider > *");return this.getCell(i)},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;let i=this.slides.length;if(1+2*t>=i)return this.getCellElements();let r=[];for(let s=e-t;s<=e+t;s++){let t=this.isWrapping?n.modulo(s,i):s,e=this.slides[t];e&&(r=r.concat(e.getCellElements()))}return r},p.queryCell=function(t){return"number"==typeof t?this.cells[t]:("string"==typeof t&&!t.match(/^[#.]?[\d/]/)&&(t=this.element.querySelector(t)),this.getCell(t))},p.uiChange=function(){this.emitEvent("uiChange")},p.onresize=function(){this.watchCSS(),this.resize()},n.debounceMethod(d,"onresize",150),p.resize=function(){if(!this.isActive||this.isAnimating||this.isDragging)return;this.getSize(),this.isWrapping&&(this.x=n.modulo(this.x,this.slideableWidth)),this.positionCells(),this._updateWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");let t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)},p.watchCSS=function(){this.options.watchCSS&&(o(this.element,":after").content.includes("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){let{activeElement:e}=document,i=d.keyboardHandlers[t.key];this.options.accessibility&&e&&i&&this.focusableElems.some((t=>e===t))&&i.call(this)},d.keyboardHandlers={ArrowLeft:function(){this.uiChange(),this[this.options.rightToLeft?"next":"previous"]()},ArrowRight:function(){this.uiChange(),this[this.options.rightToLeft?"previous":"next"]()}},p.focus=function(){this.element.focus({preventScroll:!0})},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach((t=>t.destroy())),this.viewport.remove(),this.element.append(...this.slider.children),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),t.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),u&&this.$element&&u.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete h[this.guid]},Object.assign(p,a),d.data=function(t){if(t=n.getQueryElement(t))return h[t.flickityGUID]},n.htmlInit(d,"flickity");let{jQueryBridget:y}=t;return u&&y&&y("flickity",d,u),d.setJQuery=function(t){u=t},d.Cell=r,d.Slide=s,d}))},9690:function(t,e,i){!function(e,n){t.exports?t.exports=n(e,i(6680),i(4842),i(9047)):e.Flickity=n(e,e.Flickity,e.Unidragger,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e,i,n){Object.assign(e.defaults,{draggable:">1",dragThreshold:3});let r=e.prototype;function s(){return{x:t.pageXOffset,y:t.pageYOffset}}return Object.assign(r,i.prototype),r.touchActionValue="",e.create.drag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("pointerDown",this.handlePointerDone),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.on("staticClick",this.handleStaticClick)},r.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},r.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},r.updateDraggable=function(){">1"===this.options.draggable?this.isDraggable=this.slides.length>1:this.isDraggable=this.options.draggable,this.element.classList.toggle("is-draggable",this.isDraggable)},r._uiChangeDrag=function(){delete this.isFreeScrolling},r.handlePointerDown=function(e){if(!this.isDraggable)return void this.bindActivePointerEvents(e);let i="touchstart"===e.type,n="touch"===e.pointerType,r=e.target.matches("input, textarea, select");i||n||r||e.preventDefault(),r||this.focus(),document.activeElement!==this.element&&document.activeElement.blur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=s(),t.addEventListener("scroll",this),this.bindActivePointerEvents(e)},r.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},r.handlePointerUp=function(){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down")},r.handlePointerDone=function(){t.removeEventListener("scroll",this),delete this.pointerDownScroll},r.handleDragStart=function(){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),t.removeEventListener("scroll",this))},r.handleDragMove=function(t,e,i){if(!this.isDraggable)return;t.preventDefault(),this.previousDragX=this.dragX;let n=this.options.rightToLeft?-1:1;this.isWrapping&&(i.x%=this.slideableWidth);let r=this.dragStartPosition+i.x*n;if(!this.isWrapping){let t=Math.max(-this.slides[0].target,this.dragStartPosition);r=r>t?.5*(r+t):r;let e=Math.min(-this.getLastSlide().target,this.dragStartPosition);r=r<e?.5*(r+e):r}this.dragX=r,this.dragMoveTime=new Date},r.handleDragEnd=function(){if(!this.isDraggable)return;let{freeScroll:t}=this.options;t&&(this.isFreeScrolling=!0);let e=this.dragEndRestingSelect();if(t&&!this.isWrapping){let t=this.getRestingPosition();this.isFreeScrolling=-t>this.slides[0].target&&-t<this.getLastSlide().target}else t||e!==this.selectedIndex||(e+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.isWrapping,this.select(e),delete this.isDragSelect},r.dragEndRestingSelect=function(){let t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},r._getClosestResting=function(t,e,i){let n=this.selectedIndex,r=1/0,s=this.options.contain&&!this.isWrapping?(t,e)=>t<=e:(t,e)=>t<e;for(;s(e,r)&&(n+=i,r=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:r,index:n-i}},r.getSlideDistance=function(t,e){let i=this.slides.length,r=this.options.wrapAround&&i>1,s=r?n.modulo(e,i):e,a=this.slides[s];if(!a)return null;let o=r?this.slideableWidth*Math.floor(e/i):0;return t-(a.target+o)},r.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||new Date-this.dragMoveTime>100)return 0;let t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return t>0&&e>0?1:t<0&&e<0?-1:0},r.onscroll=function(){let t=s(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(Math.abs(e)>3||Math.abs(i)>3)&&this.pointerDone()},e}))},2835:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(7564)):n(e.Flickity,e.imagesLoaded)}("undefined"!=typeof window?window:this,(function(t,e){return t.create.imagesLoaded=function(){this.on("activate",this.imagesLoaded)},t.prototype.imagesLoaded=function(){this.options.imagesLoaded&&e(this.slider).on("progress",((t,e)=>{let i=this.getParentCell(e.img);this.cellSizeChange(i&&i.element),this.options.freeScroll||this.positionSliderAtSelected()}))},t}))},2442:(t,e,i)=>{if(t.exports){const e=i(6680);i(9690),i(2410),i(7573),i(8516),i(3597),i(7227),i(2835),t.exports=e}},7227:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(9047)):n(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e){const i="data-flickity-lazyload",n=`${i}-src`,r=`${i}-srcset`,s=`img[${i}], img[${n}], img[${r}], source[${r}]`;t.create.lazyLoad=function(){this.on("select",this.lazyLoad),this.handleLazyLoadComplete=this.onLazyLoadComplete.bind(this)};let a=t.prototype;function o(t){if(t.matches("img")){let e=t.getAttribute(i),s=t.getAttribute(n),a=t.getAttribute(r);if(e||s||a)return t}return[...t.querySelectorAll(s)]}function l(t,e){this.img=t,this.onComplete=e,this.load()}return a.lazyLoad=function(){let{lazyLoad:t}=this.options;if(!t)return;let e="number"==typeof t?t:0;this.getAdjacentCellElements(e).map(o).flat().forEach((t=>new l(t,this.handleLazyLoadComplete)))},a.onLazyLoadComplete=function(t,e){let i=this.getParentCell(t),n=i&&i.element;this.cellSizeChange(n),this.dispatchEvent("lazyLoad",e,n)},l.prototype.handleEvent=e.handleEvent,l.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);let t=this.img.getAttribute(i)||this.img.getAttribute(n),e=this.img.getAttribute(r);this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute(i),this.img.removeAttribute(n),this.img.removeAttribute(r)},l.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},l.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},l.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this),(this.img.parentNode.matches("picture")?this.img.parentNode:this.img).classList.add(e),this.onComplete(this.img,t)},t.LazyLoader=l,t}))},7573:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680),i(9047)):n(e.Flickity,e.fizzyUIUtils)}("undefined"!=typeof window?window:this,(function(t,e){function i(){this.holder=document.createElement("div"),this.holder.className="flickity-page-dots",this.dots=[]}i.prototype.setDots=function(t){let e=t-this.dots.length;e>0?this.addDots(e):e<0&&this.removeDots(-e)},i.prototype.addDots=function(t){let e=new Array(t).fill().map(((t,e)=>{let i=document.createElement("button");i.setAttribute("type","button");let n=e+1+this.dots.length;return i.className="flickity-page-dot",i.textContent=`View slide ${n}`,i}));this.holder.append(...e),this.dots=this.dots.concat(e)},i.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach((t=>t.remove()))},i.prototype.updateSelected=function(t){this.selectedDot&&(this.selectedDot.classList.remove("is-selected"),this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[t],this.selectedDot.classList.add("is-selected"),this.selectedDot.setAttribute("aria-current","step"))},t.PageDots=i,Object.assign(t.defaults,{pageDots:!0}),t.create.pageDots=function(){this.options.pageDots&&(this.pageDots=new i,this.handlePageDotsClick=this.onPageDotsClick.bind(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))};let n=t.prototype;return n.activatePageDots=function(){this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots),this.pageDots.holder.addEventListener("click",this.handlePageDotsClick),this.element.append(this.pageDots.holder)},n.onPageDotsClick=function(t){let e=this.pageDots.dots.indexOf(t.target);-1!==e&&(this.uiChange(),this.select(e))},n.updateSelectedPageDots=function(){this.pageDots.updateSelected(this.selectedIndex)},n.updatePageDots=function(){this.pageDots.dots.forEach((t=>{e.removeFrom(this.focusableElems,t)})),this.pageDots.setDots(this.slides.length),this.focusableElems.push(...this.pageDots.dots)},n.deactivatePageDots=function(){this.pageDots.holder.remove(),this.pageDots.holder.removeEventListener("click",this.handlePageDotsClick)},t.PageDots=i,t}))},8516:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680)):n(e.Flickity)}("undefined"!=typeof window?window:this,(function(t){function e(t,e){this.autoPlay=t,this.onTick=e,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}e.prototype.play=function(){"playing"!==this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},e.prototype.tick=function(){if("playing"!==this.state)return;let t="number"==typeof this.autoPlay?this.autoPlay:3e3;this.clear(),this.timeout=setTimeout((()=>{this.onTick(),this.tick()}),t)},e.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},e.prototype.clear=function(){clearTimeout(this.timeout)},e.prototype.pause=function(){"playing"===this.state&&(this.state="paused",this.clear())},e.prototype.unpause=function(){"paused"===this.state&&this.play()},e.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},e.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},Object.assign(t.defaults,{pauseAutoPlayOnHover:!0}),t.create.player=function(){this.player=new e(this.options.autoPlay,(()=>{this.next(!0)})),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)};let i=t.prototype;return i.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},i.playPlayer=function(){this.player.play()},i.stopPlayer=function(){this.player.stop()},i.pausePlayer=function(){this.player.pause()},i.unpausePlayer=function(){this.player.unpause()},i.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},i.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},i.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},t.Player=e,t}))},2410:function(t,e,i){!function(e,n){t.exports?t.exports=n(i(6680)):n(e.Flickity)}("undefined"!=typeof window?window:this,(function(t){const e="http://www.w3.org/2000/svg";function i(t,e,i){this.increment=t,this.direction=e,this.isPrevious="previous"===t,this.isLeft="left"===e,this._create(i)}i.prototype._create=function(t){let e=this.element=document.createElement("button");e.className=`flickity-button flickity-prev-next-button ${this.increment}`;let i=this.isPrevious?"Previous":"Next";e.setAttribute("type","button"),e.setAttribute("aria-label",i),this.disable();let n=this.createSVG(i,t);e.append(n)},i.prototype.createSVG=function(t,i){let n=document.createElementNS(e,"svg");n.setAttribute("class","flickity-button-icon"),n.setAttribute("viewBox","0 0 100 100");let r=document.createElementNS(e,"title");r.append(t);let s=document.createElementNS(e,"path"),a=function(t){if("string"==typeof t)return t;let{x0:e,x1:i,x2:n,x3:r,y1:s,y2:a}=t;return`M ${e}, 50\n L ${i}, ${s+50}\n L ${n}, ${a+50}\n L ${r}, 50\n L ${n}, ${50-a}\n L ${i}, ${50-s}\n Z`}(i);return s.setAttribute("d",a),s.setAttribute("class","arrow"),this.isLeft||s.setAttribute("transform","translate(100, 100) rotate(180)"),n.append(r,s),n},i.prototype.enable=function(){this.element.removeAttribute("disabled")},i.prototype.disable=function(){this.element.setAttribute("disabled",!0)},Object.assign(t.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),t.create.prevNextButtons=function(){if(!this.options.prevNextButtons)return;let{rightToLeft:t,arrowShape:e}=this.options,n=t?"right":"left",r=t?"left":"right";this.prevButton=new i("previous",n,e),this.nextButton=new i("next",r,e),this.focusableElems.push(this.prevButton.element),this.focusableElems.push(this.nextButton.element),this.handlePrevButtonClick=()=>{this.uiChange(),this.previous()},this.handleNextButtonClick=()=>{this.uiChange(),this.next()},this.on("activate",this.activatePrevNextButtons),this.on("select",this.updatePrevNextButtons)};let n=t.prototype;return n.updatePrevNextButtons=function(){let t=this.slides.length?this.slides.length-1:0;this.updatePrevNextButton(this.prevButton,0),this.updatePrevNextButton(this.nextButton,t)},n.updatePrevNextButton=function(t,e){if(this.isWrapping&&this.slides.length>1)return void t.enable();let i=this.selectedIndex!==e;t[i?"enable":"disable"](),!i&&document.activeElement===t.element&&this.focus()},n.activatePrevNextButtons=function(){this.prevButton.element.addEventListener("click",this.handlePrevButtonClick),this.nextButton.element.addEventListener("click",this.handleNextButtonClick),this.element.append(this.prevButton.element,this.nextButton.element),this.on("deactivate",this.deactivatePrevNextButtons)},n.deactivatePrevNextButtons=function(){this.prevButton.element.remove(),this.nextButton.element.remove(),this.prevButton.element.removeEventListener("click",this.handlePrevButtonClick),this.nextButton.element.removeEventListener("click",this.handleNextButtonClick),this.off("deactivate",this.deactivatePrevNextButtons)},t.PrevNextButton=i,t}))},9714:function(t){!function(e,i){t.exports?t.exports=i():(e.Flickity=e.Flickity||{},e.Flickity.Slide=i())}("undefined"!=typeof window?window:this,(function(){function t(t,e,i){this.beginMargin=t,this.endMargin=e,this.cellAlign=i,this.cells=[],this.outerWidth=0,this.height=0}let e=t.prototype;return e.addCell=function(t){this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1===this.cells.length&&(this.x=t.x,this.firstMargin=t.size[this.beginMargin])},e.updateTarget=function(){let t=this.getLastCell(),e=t?t.size[this.endMargin]:0,i=this.outerWidth-(this.firstMargin+e);this.target=this.x+this.firstMargin+i*this.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach((t=>t.select()))},e.unselect=function(){this.cells.forEach((t=>t.unselect()))},e.getCellElements=function(){return this.cells.map((t=>t.element))},t}))},6131:t=>{!function(e,i){t.exports?t.exports=i():e.getSize=i()}(window,(function(){function t(t){let e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}let e=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];return e.length,function(i){if("string"==typeof i&&(i=document.querySelector(i)),!i||"object"!=typeof i||!i.nodeType)return;let n=getComputedStyle(i);if("none"==n.display)return function(){let t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return e.forEach((e=>{t[e]=0})),t}();let r={};r.width=i.offsetWidth,r.height=i.offsetHeight;let s=r.isBorderBox="border-box"==n.boxSizing;e.forEach((t=>{let e=n[t],i=parseFloat(e);r[t]=isNaN(i)?0:i}));let a=r.paddingLeft+r.paddingRight,o=r.paddingTop+r.paddingBottom,l=r.marginLeft+r.marginRight,u=r.marginTop+r.marginBottom,c=r.borderLeftWidth+r.borderRightWidth,h=r.borderTopWidth+r.borderBottomWidth,d=t(n.width);!1!==d&&(r.width=d+(s?0:a+c));let p=t(n.height);return!1!==p&&(r.height=p+(s?0:o+h)),r.innerWidth=r.width-(a+c),r.innerHeight=r.height-(o+h),r.outerWidth=r.width+l,r.outerHeight=r.height+u,r}}))},9144:(t,e,i)=>{var n,r=void 0!==i.g?i.g:"undefined"!=typeof window?window:{},s=i(5893);"undefined"!=typeof document?n=document:(n=r["__GLOBAL_DOCUMENT_CACHE@4"])||(n=r["__GLOBAL_DOCUMENT_CACHE@4"]=s),t.exports=n},8908:(t,e,i)=>{var n;n="undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},t.exports=n},7564:function(t,e,i){!function(e,n){t.exports?t.exports=n(e,i(7158)):e.imagesLoaded=n(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,n=t.console;function r(t,e,s){if(!(this instanceof r))return new r(t,e,s);let a=t;var o;"string"==typeof t&&(a=document.querySelectorAll(t)),a?(this.elements=(o=a,Array.isArray(o)?o:"object"==typeof o&&"number"==typeof o.length?[...o]:[o]),this.options={},"function"==typeof e?s=e:Object.assign(this.options,e),s&&this.on("always",s),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error(`Bad element for imagesLoaded ${a||t}`)}r.prototype=Object.create(e.prototype),r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const s=[1,9,11];r.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!s.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const a=/url\((['"])?(.*?)\1\)/gi;function o(t){this.img=t}function l(t,e){this.url=t,this.element=e,this.img=new Image}return r.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=a.exec(e.backgroundImage);for(;null!==i;){let n=i&&i[2];n&&this.addBackground(n,t),i=a.exec(e.backgroundImage)}},r.prototype.addImage=function(t){let e=new o(t);this.images.push(e)},r.prototype.addBackground=function(t,e){let i=new l(t,e);this.images.push(i)},r.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},r.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&n&&n.log(`progress: ${i}`,t,e)},r.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},o.prototype=Object.create(e.prototype),o.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},o.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},o.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,n="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,n,e])},o.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},o.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},o.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},o.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype=Object.create(o.prototype),l.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},l.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},l.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},r.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new r(this,t,e).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}))},7376:t=>{t.exports=function(t){if(!t)return!1;var i=e.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString},9988:t=>{window,t.exports=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return 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=9)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(2);Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var r=i(20);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(22);Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var r=i(25);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var s=i(26);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var a=i(27);Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}));var o=i(28);Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Multimap=void 0;var n=i(4);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,r=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw s}}return i}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.valuesByKey=new Map}var e,i;return e=t,(i=[{key:"add",value:function(t,e){(0,n.add)(this.valuesByKey,t,e)}},{key:"delete",value:function(t,e){(0,n.del)(this.valuesByKey,t,e)}},{key:"has",value:function(t,e){var i=this.valuesByKey.get(t);return i&&i.has(e)}},{key:"hasKey",value:function(t){return this.valuesByKey.has(t)}},{key:"hasValue",value:function(t){return Array.from(this.valuesByKey.values()).some((function(e){return e.has(t)}))}},{key:"getValuesForKey",value:function(t){var e=this.valuesByKey.get(t);return e?Array.from(e):[]}},{key:"getKeysForValue",value:function(t){return Array.from(this.valuesByKey).filter((function(e){return r(e,2)[1].has(t)})).map((function(t){return r(t,1)[0]}))}},{key:"values",get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t.concat(Array.from(e))}),[])}},{key:"size",get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t+e.size}),0)}}])&&s(e.prototype,i),t}();e.Multimap=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(19);Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var r=i(21);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,i){"use strict";function n(t,e){var i=t.get(e);return i||(i=new Set,t.set(e,i)),i}function r(t,e){var i=t.get(e);null!==i&&0===i.size&&t.delete(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.add=function(t,e,i){n(t,e).add(i)},e.del=function(t,e,i){n(t,e).delete(i),r(t,e)},e.fetch=n,e.prune=r},function(t,e,i){"use strict";var n;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})(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function o(t,e,i){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ee=void 0;var c=new(function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=a(this,l(e).call(this)))._logs=new Set,t}var i,n;return function(t,e){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}}),e&&u(t,e)}(e,t),i=e,(n=[{key:"emit",value:function(){for(var t,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var s=n[0],a=n.slice(1);this._logs.has(s)&&console.info("💁♂️️",s,a),(t=o(l(e.prototype),"emit",this)).call.apply(t,[this].concat(n))}},{key:"add",value:function(t){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this._logs.add(t)}},{key:"remove",value:function(t){this._logs.has(t)&&this._logs.delete(t)}}])&&s(i.prototype,n),e}(((n=i(23))&&n.__esModule?n:{default:n}).default));e.ee=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CustomEvent=void 0;var n=i(7);function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.capitalizedName=(0,n.ucfirst)(e),this.scope="global",this.log=i,this.eventByElement=new Map}var e,i;return e=t,(i=[{key:"bind",value:function(t,e){var i=t.context.element;this.eventByElement.set(i,this.listener(t)),e.on(this.name,this.eventByElement.get(i))}},{key:"unbind",value:function(t,e){var i=t.context.element;e.off(this.name,this.eventByElement.get(i))}},{key:"listener",value:function(t){var e="on".concat(this.capitalizedName);return function(){t[e].apply(t,arguments)}}}])&&r(e.prototype,i),t}();e.CustomEvent=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(8);Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var r=i(24);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}))},function(t,e,i){"use strict";function n(t,e,i){var n=function(t,e){var i=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,r=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw s}}return i}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t.match(/^(?:\.\/)?([A-Z]{1}[A-Za-z]+|[a-z-/]+\/[A-Z]{1}[A-Za-z]+)(?:\.js?)$/)||[],2)[1];if(i){for(var n=0;n<e;n++)i=i.replace(/^([a-zA-Z]+\/)/,"");return i.replace(/([A-Z])/g,"-$1").replace(/^-/,"").replace(/\/-/g,"/").replace(/\//g,"--").toLowerCase()}return!1}(e,i.stripFolders);return!!n&&function(t,e){var i=t.default;return"function"==typeof i&&{slug:e,ComponentConstructor:i}}(t(e),n)}Object.defineProperty(e,"__esModule",{value:!0}),e.autoLoad=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{stripFolders:1};return t.keys().map((function(i){return n(t,i,e)})).filter((function(t){return t}))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(10);Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var r=i(34);Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var s=i(35);Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var a=i(5);Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}));var o=i(6);Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}));var l=i(8);Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})}));var u=i(2);Object.keys(u).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}})}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Application=void 0;var n,r=(n=i(11))&&n.__esModule?n:{default:n},s=i(13),a=i(14),o=i(1);function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,i){return e&&l(t.prototype,e),i&&l(t,i),t}var c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.defaultSchema,n=arguments.length>2?arguments[2]:void 0;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this.element=e,this.schema=i,this.props=n,this.manager=new a.Manager(this),this.customEvents=o.customEvents,this.plugins=new Set}return u(t,null,[{key:"start",value:function(e,i,n){var r=new t(e,i,n);return r.start(),r}}]),u(t,[{key:"start",value:function(){this.manager.start()}},{key:"stop",value:function(){this.manager.stop()}},{key:"register",value:function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];this.manager.addModule({slug:t,ComponentConstructor:e},!1,n)}},{key:"load",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach((function(t){return e.manager.addModule(t)}))}},{key:"init",value:function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return this.manager.addModule({slug:t,ComponentConstructor:e},!0,n),this.components.find((function(t){return t instanceof e}))}},{key:"unload",value:function(t){var e=this;(Array.isArray(t)?t:[t]).forEach((function(t){return e.manager.removeModule(t)}))}},{key:"instanceByElement",value:function(t){return this._getInstanceByElement(t)}},{key:"instanceByElementAsync",value:function(t){var e=this;return this._nextTask().then((function(){return e._getInstanceByElement(t)}))}},{key:"_getInstanceByElement",value:function(t){return this.components.find((function(e){return e.$el===t}))}},{key:"instancesByComponent",value:function(t){return this._getInstancesByComponent(t)}},{key:"instancesByComponentAsync",value:function(t){var e=this;return this._nextTask().then((function(){return e._getInstancesByComponent(t)}))}},{key:"_getInstancesByComponent",value:function(t){return this.components.filter((function(e){return e instanceof t}))}},{key:"_nextTask",value:function(){return new Promise((function(t){setTimeout((function(){t()}),0)}))}},{key:"use",value:function(t,e,i){this.customEvents.types.has(t)&&this.handleError("oups","This event type already exists [".concat(t,"]")),this.customEvents.add(t,e,i)}},{key:"extend",value:function(t){t.init(),this.plugins.add(t)}},{key:"handleError",value:function(t,e){throw new Error("🤦 ".concat(r.default.random(),"! ").concat(e," \n ").concat(t))}},{key:"components",get:function(){return this.manager.contexts.map((function(t){return t.component}))}},{key:"events",get:function(){return this.customEvents.events}}]),t}();e.Application=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,r=(n=i(12))&&n.__esModule?n:{default:n},s={all:r.default,random:function(){return r.default[Math.floor(Math.random()*r.default.length)]}};e.default=s},function(t){t.exports=JSON.parse('["Holy Agility","Holy Almost","Holy Alphabet","Holy Alps","Holy Alter Ego","Holy Anagram","Holy Apparition","Holy Armadillo","Holy Armour Plate","Holy Ashtray","Holy Asp","Holy Astronomy","Holy Astringent Plum-like Fruit","Holy Audubon","Holy Backfire","Holy Ball And Chain","Holy Bank Balance","Holy Bankruptcy","Holy Banks","Holy Bargain Basements","Holy Barracuda","Holy Bat Logic","Holy Bat Trap","Holy Batman","Holy Benedict Arnold","Holy Bijou","Holy Bikini","Holy Bill Of Rights","Holy Birthday Cake","Holy Black Beard","Holy Blackout","Holy Blank Cartridge","Holy Blizzard","Holy Blonde Mackerel Ash","Holy Bluebeard","Holy Bouncing Boiler Plate","Holy Bowler","Holy Bullseye","Holy Bunions","Holy Caffeine","Holy Camouflage","Holy Captain Nemo","Holy Caruso","Holy Catastrophe","Holy Cat(s)","Holy Chicken Coop","Holy Chilblains","Holy Chocolate Eclair","Holy Cinderella","Holy Cinemascope","Holy Cliche","Holy Cliffhangers","Holy Clockwork","Holy Clockworks","Holy Cofax You Mean","Holy Coffin Nails","Holy Cold Creeps","Holy Complications","Holy Conflagration","Holy Contributing to the Delinquency of Minors","Holy Corpuscles","Holy Cosmos","Holy Costume Party","Holy Crack Up","Holy Crickets","Holy Crossfire","Holy Crucial Moment","Holy Cryptology","Holy D\'artagnan","Holy Davy Jones","Holy Detonator","Holy Disappearing Act","Holy Distortion","Holy Diversionary Tactics","Holy Dr. Jekyll and Mr. Hyde","Holy Egg Shells","Holy Encore","Holy Endangered Species","Holy Epigrams","Holy Escape-hatch","Holy Explosion","Holy Fate-worse-than-death","Holy Felony","Holy Finishing-touches","Holy Fireworks","Holy Firing Squad","Holy Fishbowl","Holy Flight Plan","Holy Flip-flop","Holy Flood Gate","Holy Floor Covering","Holy Flypaper","Holy Fly Trap","Holy Fog","Holy Forecast","Holy Fork In The Road","Holy Fourth Amendment","Holy Fourth Of July","Holy Frankenstein","Holy Frankenstein It\'s Alive","Holy Fratricide","Holy Frogman","Holy Fruit Salad","Holy Frying Towels","Holy Funny Bone","Holy Gall","Holy Gambles","Holy Gemini","Holy Geography","Holy Ghost Writer","Holy Giveaways","Holy Glow Pot","Holy Golden Gate","Holy Graf Zeppelin","Holy Grammar","Holy Graveyards","Holy Greed","Holy Green Card","Holy Greetings-cards","Holy Guacamole","Holy Guadalcanal","Holy Gullibility","Holy Gunpowder","Holy Haberdashery","Holy Hailstorm","Holy Hairdo","Holy Hallelujah","Holy Halloween","Holy Hallucination","Holy Hamburger","Holy Hamlet","Holy Hamstrings","Holy Happenstance","Holy Hardest Metal In The World","Holy Harem","Holy Harshin","Holy Haziness","Holy Headache","Holy Headline","Holy Heart Failure","Holy Heartbreak","Holy Heidelberg","Holy Helmets","Holy Helplessness","Holy Here We Go Again","Holy Hi-fi","Holy Hieroglyphic","Holy High-wire","Holy Hijack","Holy Hijackers","Holy History","Holy Hoaxes","Holy Hole In A Donut","Holy Hollywood","Holy Holocaust","Holy Homecoming","Holy Homework","Holy Homicide","Holy Hoodwink","Holy Hoof Beats","Holy Hors D\'Oeuvre","Holy Horseshoes","Holy Hostage","Holy Hot Foot","Holy Houdini","Holy Human Collectors Item","Holy Human Pearls","Holy Human Pressure Cookers","Holy Human Surfboards","Holy Hunting Horn","Holy Hurricane","Holy Hutzpa","Holy Hydraulics","Holy Hypnotism","Holy Hypodermics","Holy Ice Picks","Holy Ice Skates","Holy Iceberg","Holy Impossibility","Holy Impregnability","Holy Incantation","Holy Inquisition","Holy Interplanetary Yardstick","Holy Interruptions","Holy Iodine","Holy IT and T","Holy Jack In The Box","Holy Jackpot","Holy Jail Break","Holy Jaw Breaker","Holy Jelly Molds","Holy Jet Set","Holy Jigsaw Puzzles","Holy Jitter Bugs","Holy Joe","Holy Journey To The Center Of The Earth","Holy Jumble","Holy Jumpin\' Jiminy","Holy Karats","Holy Key Hole","Holy Key Ring","Holy Kilowatts","Holy Kindergarten","Holy Knit One Purl Two","Holy Knock Out Drops","Holy Known Unknown Flying Objects","Holy Kofax","Holy Las Vegas","Holy Leopard","Holy Levitation","Holy Liftoff","Holy Living End","Holy Lodestone","Holy Long John Silver","Holy Looking Glass","Holy Love Birds","Holy Luther Burbank","Holy Madness","Holy Magic Lantern","Holy Magician","Holy Main Springs","Holy Marathon","Holy Mashed Potatoes","Holy Masquerade","Holy Matador","Holy Mechanical Armies","Holy Memory Bank","Holy Merlin Magician","Holy Mermaid","Holy Merry Go Around","Holy Mesmerism","Holy Metronome","Holy Miracles","Holy Miscast","Holy Missing Relatives","Holy Molars","Holy Mole Hill","Holy Mucilage","Holy Multitudes","Holy Murder","Holy Mush","Holy Naive","Holy New Year\'s Eve","Holy Nick Of Time","Holy Nightmare","Holy Non Sequiturs","Holy Oleo","Holy Olfactory","Holy One Track Bat Computer Mind","Holy Oversight","Holy Oxygen","Holy Paderewski","Holy Paraffin","Holy Perfect Pitch","Holy Pianola","Holy Pin Cushions","Holy Polar Front","Holy Polar Ice Sheet","Holy Polaris","Holy Popcorn","Holy Potluck","Holy Pressure Cooker","Holy Priceless Collection of Etruscan Snoods","Holy Pseudonym","Holy Purple Cannibals","Holy Puzzlers","Holy Rainbow","Holy Rats In A Trap","Holy Ravioli","Holy Razors Edge","Holy Recompense","Holy Red Herring","Holy Red Snapper","Holy Reincarnation","Holy Relief","Holy Remote Control Robot","Holy Reshevsky","Holy Return From Oblivion","Holy Reverse Polarity","Holy Rheostat","Holy Ricochet","Holy Rip Van Winkle","Holy Rising Hemlines","Holy Roadblocks","Holy Robert Louis Stevenson","Holy Rock Garden","Holy Rocking Chair","Holy Romeo And Juliet","Holy Rudder","Holy Safari","Holy Sarcophagus","Holy Sardine","Holy Scalding","Holy Schizophrenia","Holy Sedatives","Holy Self Service","Holy Semantics","Holy Serpentine","Holy Sewer Pipe","Holy Shamrocks","Holy Sherlock Holmes","Holy Show-Ups","Holy Showcase","Holy Shrinkage","Holy Shucks","Holy Skull Tap","Holy Sky Rocket","Holy Slipped Disc","Holy Smoke","Holy Smokes","Holy Smokestack","Holy Snowball","Holy Sonic Booms","Holy Special Delivery","Holy Spider Webs","Holy Split Seconds","Holy Squirrel Cage","Holy Stalactites","Holy Stampede","Holy Standstills","Holy Steam Valve","Holy Stew Pot","Holy Stomach Aches","Holy Stratosphere","Holy Stuffing","Holy Subliminal","Holy Sudden Incapacitation","Holy Sundials","Holy Surprise Party","Holy Switch A Roo","Holy Taj Mahal","Holy Tartars","Holy Taxation","Holy Taxidermy","Holy Tee Shot","Holy Ten Toes","Holy Terminology","Holy Time Bomb","Holy Tintinnabulation","Holy Tipoffs","Holy Titanic","Holy Tome","Holy Toreador","Holy Trampoline","Holy Transistors","Holy Travel Agent","Holy Trickery","Holy Triple Feature","Holy Trolls And Goblins","Holy Tuxedo","Holy Uncanny Photographic Mental Processes","Holy Understatements","Holy Underwritten Metropolis","Holy Unlikelihood","Holy Unrefillable Prescriptions","Holy Vat","Holy Venezuela","Holy Vertebrae","Holy Voltage","Holy Waste Of Energy","Holy Wayne Manor","Holy Weaponry","Holy Wedding Cake","Holy Wernher von Braun","Holy Whiskers","Holy Wigs","Holy Zorro"]')},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSchema=void 0,e.defaultSchema={componentAttribute:"data-component",refAttribute:"data-ref"}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Manager=void 0;var n=i(15),r=i(3);function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.application=e,this.observer=new r.TokenObserver(this.element,this.componentAttribute,this),this.modulesBySlug=new Map}var e,i;return e=t,(i=[{key:"start",value:function(){this.observer.start()}},{key:"stop",value:function(){this.observer.stop()}},{key:"addModule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,r=t.slug;this.removeModule(r);var s=new n.Module(this.application,t,i);this.modulesBySlug.set(r,s),this._initModule(s,e)}},{key:"removeModule",value:function(t){var e=this.modulesBySlug.get(t);e&&(this.modulesBySlug.delete(t),this._destroyModule(e))}},{key:"elementMatchedToken",value:function(t,e){this._initModuleBySlug(e,t)}},{key:"elementUnmatchedToken",value:function(t,e){this._destroyModuleBySlug(e,t)}},{key:"_initModule",value:function(t,e){var i=this.observer.getElementsMatchingToken(t.slug);if(e)t.initNoElement(t.slug,t.args);else{var n=!0,r=!1,s=void 0;try{for(var a,o=i[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var l=a.value;t.initElement(l,t.args)}}catch(t){r=!0,s=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw s}}}}},{key:"_destroyModule",value:function(t){var e=t.contexts,i=!0,n=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var o=s.value.element;t.destroyElement(o)}}catch(t){n=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(n)throw r}}}},{key:"_initModuleBySlug",value:function(t,e){var i=this.modulesBySlug.get(t);i&&i.initElement(e,i.args)}},{key:"_destroyModuleBySlug",value:function(t,e){var i=this.modulesBySlug.get(t);i&&i.destroyElement(e)}},{key:"schema",get:function(){return this.application.schema}},{key:"element",get:function(){return this.application.element}},{key:"componentAttribute",get:function(){return this.schema.componentAttribute}},{key:"modules",get:function(){return Array.from(this.modulesBySlug.values())}},{key:"contexts",get:function(){return this.modules.reduce((function(t,e){return t.concat(Array.from(e.contexts))}),[])}}])&&s(e.prototype,i),t}();e.Manager=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Module=void 0;var n=i(16);function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.application=e,this.definition=i,this.args=n,this.contextsByElement=new WeakMap,this.contextsByNoElement=new Map,this.initializedContexts=new Set}var e,i;return e=t,(i=[{key:"initElement",value:function(t,e){var i=this._fetchContextForElement(t,e);i&&!this.initializedContexts.has(i)&&(this.initializedContexts.add(i),i.init(),i.bindAll())}},{key:"initNoElement",value:function(t,e){var i=this._fetchContextForNoElement(t,e);i&&!this.initializedContexts.has(i)&&(this.initializedContexts.add(i),i.bindAll())}},{key:"destroyElement",value:function(t){var e=this._fetchContextForElement(t);e&&this.initializedContexts.has(e)&&(this.initializedContexts.delete(e),e.unbindAll(),e.unsubscribeAll(),e.destroy())}},{key:"destroyNoElement",value:function(t){var e=this._fetchContextForNoElement(t);e&&this.initializedContexts.has(e)&&(this.initializedContexts.delete(e),e.unbindAll(),e.unsubscribeAll(),e.destroy())}},{key:"_fetchContextForElement",value:function(t,e){var i=this.contextsByElement.get(t);return i||(i=new n.Context(this,t,e),this.contextsByElement.set(t,i)),i}},{key:"_fetchContextForNoElement",value:function(t,e){var i=this.contextsByNoElement.get(t);return i||(i=new n.Context(this,null,e),this.contextsByNoElement.set(t,i)),i}},{key:"slug",get:function(){return this.definition.slug}},{key:"ComponentConstructor",get:function(){return this.definition.ComponentConstructor}},{key:"contexts",get:function(){return Array.from(this.initializedContexts)}}])&&r(e.prototype,i),t}();e.Module=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Context=void 0;var n=i(17);function r(t,e,i){return(r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&s(r,i.prototype),r}).apply(null,arguments)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var l=function(){function t(e,i,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.module=e,this.element=i;var o=s||[null],l=this.module.application.props;if(this.scope=new n.Scope(this.schema,this.slug,i,l),i)try{this.component=r(e.ComponentConstructor,[this].concat(a(o))),this.component.load()}catch(t){this.handleError(t,"loading component [".concat(this.slug,"]"))}else this.component=r(e.ComponentConstructor,[this].concat(a(o))),this.init()}var e,i;return e=t,(i=[{key:"init",value:function(){try{this.component.init()}catch(t){this.handleError(t,"initializing component [".concat(this.slug,"]"))}}},{key:"destroy",value:function(){try{this.component.destroy()}catch(t){this.handleError(t,"destroying component [".concat(this.slug,"]"))}}},{key:"bindAll",value:function(){try{this.component.bindAll()}catch(t){this.handleError(t,"binding component [".concat(this.slug,"]"))}}},{key:"unbindAll",value:function(){try{this.component.unbindAll()}catch(t){this.handleError(t,"unbinding component [".concat(this.slug,"]"))}}},{key:"unsubscribeAll",value:function(){try{this.component.unsubscribeAll()}catch(t){this.handleError(t,"unsubscribing component [".concat(this.slug,"]"))}}},{key:"handleError",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.identifier,r=this.component,s=this.element;i=Object.assign({identifier:n,component:r,element:s},i),this.application.handleError(t,e,i)}},{key:"application",get:function(){return this.module.application}},{key:"slug",get:function(){return this.module.slug}},{key:"schema",get:function(){return this.application.schema}}])&&o(e.prototype,i),t}();e.Context=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scope=void 0;var n=i(18);function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var s=function(){function t(e,i,r,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.schema=e,this.slug=i,this.element=r,this.props=s,this.data=new n.Data(this)}var e,i;return e=t,(i=[{key:"getRefs",value:function(){for(var t={},e=this.element.querySelectorAll(this.refSelector),i=0,n=Array.from(e);i<n.length;i++){var r=n[i],s=this.getRefName(r);t[s]?Array.isArray(t[s])?t[s].push(r):t[s]=[t[s],r]:t[s]=r}return t}},{key:"getRefName",value:function(t){var e=this;return t.getAttribute(this.refAttribute).split(" ").find((function(t){return t.match("".concat(e.slug,"."))})).replace("".concat(this.slug,"."),"")}},{key:"refs",get:function(){return this.getRefs()}},{key:"refAttribute",get:function(){return this.schema.refAttribute}},{key:"refSelector",get:function(){return"[".concat(this.refAttribute,"*='").concat(this.slug,".']")}}])&&r(e.prototype,i),t}();e.Scope=s},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.Data=void 0;var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scope=e}var e,i;return e=t,(i=[{key:"get",value:function(t){var e=this._getFormattedKey(t);return this.element.getAttribute(e)}},{key:"set",value:function(t,e){var i=this._getFormattedKey(t);return this.element.setAttribute(i,e),this.get(t)}},{key:"has",value:function(t){var e=this._getFormattedKey(t);return this.element.hasAttribute(e)}},{key:"delete",value:function(t){if(this.has(t)){var e=this._getFormattedKey(t);return this.element.removeAttribute(e),!0}return!1}},{key:"_getFormattedKey",value:function(t){return"data-".concat(this.slug,"-").concat(t.toString().replace(/([A-Z])/g,(function(t,e){return"-".concat(e.toLowerCase())})))}},{key:"element",get:function(){return this.scope.element}},{key:"slug",get:function(){return this.scope.slug}}])&&n(e.prototype,i),t}();e.Data=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenObserver=void 0;var n=i(3),r=i(0);function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=function(){function t(e,i,s){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.attributeName=i,this.delegate=s,this.elementObserver=new n.ElementObserver(e,this),this.tokensByElement=new r.IndexedMultimap}var e,i;return e=t,(i=[{key:"start",value:function(){this.elementObserver.start()}},{key:"stop",value:function(){this.elementObserver.stop()}},{key:"refresh",value:function(){this.elementObserver.refresh()}},{key:"getElementsMatchingToken",value:function(t){return this.tokensByElement.getKeysForValue(t)}},{key:"matchElement",value:function(t){return t.hasAttribute(this.attributeName)}},{key:"matchElementsInTree",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element,e=this.matchElement(t)?[t]:[],i=Array.from(t.querySelectorAll(this.selector));return e.concat(i)}},{key:"elementMatched",value:function(t){for(var e=0,i=Array.from(this._readTokenSetForElement(t));e<i.length;e++){var n=i[e];this._elementMatchedToken(t,n)}}},{key:"elementUnmatched",value:function(t){var e=this._getTokensForElement(t),i=!0,n=!1,r=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var o=s.value;this._elementUnmatchedToken(t,o)}}catch(t){n=!0,r=t}finally{try{i||null==a.return||a.return()}finally{if(n)throw r}}}},{key:"elementAttributeChanged",value:function(t){for(var e=this._readTokenSetForElement(t),i=0,n=Array.from(e);i<n.length;i++){var r=n[i];this.elementMatched(t,r)}var s=!0,a=!1,o=void 0;try{for(var l,u=this._getTokensForElement(t)[Symbol.iterator]();!(s=(l=u.next()).done);s=!0){var c=l.value;e.has(c)||this.elementUnmatched(t,c)}}catch(t){a=!0,o=t}finally{try{s||null==u.return||u.return()}finally{if(a)throw o}}}},{key:"_elementMatchedToken",value:function(t,e){this.tokensByElement.has(t,e)||(this.tokensByElement.add(t,e),this.delegate.elementMatchedToken&&this.delegate.elementMatchedToken(t,e,this.attributeName))}},{key:"_elementUnmatchedToken",value:function(t,e){this.tokensByElement.has(t,e)&&(this.tokensByElement.delete(t,e),this.delegate.elementUnmatchedToken&&this.delegate.elementUnmatchedToken(t,e,this.attributeName))}},{key:"_getTokensForElement",value:function(t){return this.tokensByElement.getValuesForKey(t)}},{key:"_readTokenSetForElement",value:function(t){var e=new Set,i=t.getAttribute(this.attributeName)||"",n=!0,r=!1,s=void 0;try{for(var a,o=i.split(/\s+/)[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var l=a.value;l.length&&e.add(l)}}catch(t){r=!0,s=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw s}}return e}},{key:"selector",get:function(){return"[".concat(this.attributeName,"]")}}])&&s(e.prototype,i),t}();e.TokenObserver=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndexedMultimap=void 0;var n=i(2),r=i(4);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t,e,i){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=u(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}})(t,e,i||t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=o(this,u(e).call(this))).keysByValue=new Map,t}var i,n;return function(t,e){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}}),e&&c(t,e)}(e,t),i=e,(n=[{key:"add",value:function(t,i){l(u(e.prototype),"add",this).call(this,t,i),(0,r.add)(this.keysByValue,i,t)}},{key:"delete",value:function(t,i){l(u(e.prototype),"delete",this).call(this,t,i),(0,r.del)(this.keysByValue,i,t)}},{key:"hasValue",value:function(t){return this.keysByValue.has(t)}},{key:"getKeysForValue",value:function(t){var e=this.keysByValue.get(t);return e?Array.from(e):[]}},{key:"values",get:function(){return Array.from(this.keysByValue.keys())}}])&&a(i.prototype,n),e}(n.Multimap);e.IndexedMultimap=h},function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.ElementObserver=void 0;var r=function(){function t(e,i){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.delegate=i,this.started=!1,this.elements=new Set,this.mutationObserver=new MutationObserver((function(t){return n._processMutations(t)}))}var e,i,r;return e=t,r=[{key:"elementFromNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE&&t}}],(i=[{key:"start",value:function(){this.started||(this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,subtree:!0}),this.started=!0,this.refresh())}},{key:"stop",value:function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}},{key:"refresh",value:function(){if(this.started){for(var t=new Set(this._matchElementsInTree()),e=0,i=Array.from(this.elements);e<i.length;e++){var n=i[e];t.has(n)||this._removeElement(n)}for(var r=0,s=Array.from(t);r<s.length;r++){var a=s[r];this._addElement(a)}}}},{key:"_matchElement",value:function(t){return this.delegate.matchElement(t)}},{key:"_matchElementsInTree",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;return this.delegate.matchElementsInTree(t)}},{key:"_processMutations",value:function(t){var e=!0,i=!1,n=void 0;try{for(var r,s=t[Symbol.iterator]();!(e=(r=s.next()).done);e=!0){var a=r.value;this._processMutation(a)}}catch(t){i=!0,n=t}finally{try{e||null==s.return||s.return()}finally{if(i)throw n}}}},{key:"_processMutation",value:function(t){"attributes"===t.type?this._processAttributeChange(t.target,t.attributeName):"childList"===t.type&&(this._processRemovedNodes(t.removedNodes),this._processAddedNodes(t.addedNodes))}},{key:"_processAttributeChange",value:function(t,e){var i=t;this.elements.has(i)?this.delegate.elementAttributeChanged&&this._matchElement(i)?this.delegate.elementAttributeChanged(i,e):this._removeElement(i):this._matchElement(i)&&this._addElement(i)}},{key:"_processRemovedNodes",value:function(t){for(var e=0,i=Array.from(t);e<i.length;e++){var n=i[e];this._processNode(n,this._removeElement)}}},{key:"_processAddedNodes",value:function(t){for(var e=0,i=Array.from(t);e<i.length;e++){var n=i[e];this._processNode(n,this._addElement)}}},{key:"_processNode",value:function(e,i){var n=t.elementFromNode(e);if(n){var r=!0,s=!1,a=void 0;try{for(var o,l=this._matchElementsInTree(n)[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var u=o.value;i.call(this,u)}}catch(t){s=!0,a=t}finally{try{r||null==l.return||l.return()}finally{if(s)throw a}}}}},{key:"_addElement",value:function(t){this.elements.has(t)||(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))}},{key:"_removeElement",value:function(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))}}])&&n(e.prototype,i),r&&n(e,r),t}();e.ElementObserver=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.customEvents=void 0;var n=i(0),r=i(5),s=i(6);function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._types=new Set,this._typesByScope=new n.Multimap,this._eventByType=new Map,this._componentsByType=new n.Multimap}var e,i;return e=t,(i=[{key:"getScope",value:function(t){return this._typesByScope.getKeysForValue(t)[0]}},{key:"getEvent",value:function(t){return this._eventByType.get(t)}},{key:"add",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=e||new s.CustomEvent(t,i),a=n.scope||"component";this._types.add(t),this._typesByScope.add(a,t),this._eventByType.set(t,n),"global"===a&&r.ee.add(t,n.log)}},{key:"bind",value:function(t,e,i){var n=this.getScope(t),s=this.getEvent(t);"global"===n?(this._componentsByType.getValuesForKey(t).includes(e)||s.bind(e,r.ee,i),this._componentsByType.add(t,e)):s.bind(e,r.ee,i)}},{key:"unbind",value:function(t,e){var i=this.getScope(t),n=this.getEvent(t);"global"===i?(this._componentsByType.delete(t,e),this._componentsByType.hasValue(e)||n.unbind(e,r.ee)):n.unbind(e,r.ee)}},{key:"events",get:function(){return Array.from(this.types)}},{key:"types",get:function(){return this._types}}])&&a(e.prototype,i),t}());e.customEvents=o},function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function s(){}function a(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function o(t,e,i,n,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new a(i,n||t,s),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new s:delete t._events[e]}function u(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},u.prototype.listeners=function(t){var e=r?r+t:t,i=this._events[e];if(!i)return[];if(i.fn)return[i.fn];for(var n=0,s=i.length,a=new Array(s);n<s;n++)a[n]=i[n].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,i=this._events[e];return i?i.fn?1:i.length:0},u.prototype.emit=function(t,e,i,n,s,a){var o=r?r+t:t;if(!this._events[o])return!1;var l,u,c=this._events[o],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,i),!0;case 4:return c.fn.call(c.context,e,i,n),!0;case 5:return c.fn.call(c.context,e,i,n,s),!0;case 6:return c.fn.call(c.context,e,i,n,s,a),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,i);break;case 4:c[u].fn.call(c[u].context,e,i,n);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(t,e,i){return o(this,t,e,i,!1)},u.prototype.once=function(t,e,i){return o(this,t,e,i,!0)},u.prototype.removeListener=function(t,e,i,n){var s=r?r+t:t;if(!this._events[s])return this;if(!e)return l(this,s),this;var a=this._events[s];if(a.fn)a.fn!==e||n&&!a.once||i&&a.context!==i||l(this,s);else{for(var o=0,u=[],c=a.length;o<c;o++)(a[o].fn!==e||n&&!a[o].once||i&&a[o].context!==i)&&u.push(a[o]);u.length?this._events[s]=1===u.length?u[0]:u:l(this,s)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&l(this,e)):(this._events=new s,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ucfirst=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},e.lcfirst=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.$parent=function t(e,i){if(e.parentNode&&"function"==typeof e.parentNode.matches)return e.parentNode.matches(i)?e.parentNode:t(e.parentNode,i)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mixedEvents=void 0;var n=i(0),r={enter:["mouseenter","touchstart"],leave:["mouseleave","touchend"],move:["mousemove","touchmove"],over:["mouseover","touchmove"],out:["mouseout","touchmove"]},s=new n.Multimap;e.mixedEvents=s,Object.keys(r).forEach((function(t){r[t].forEach((function(e){s.add(t,e)}))}))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.passiveEvents=void 0,e.passiveEvents=["scroll","wheel","touchstart","touchmove","touchend"]},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.subscribers=void 0;var n=i(0);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&s(t.prototype,e),i&&s(t,i),t}var o=function(){function t(e){r(this,t),this._component=e,this._callbacksByName=new n.Multimap}return a(t,[{key:"on",value:function(t,e){return this._callbacksByName.add(t,e),this}},{key:"trigger",value:function(t){for(var e=this,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this._callbacksByName.getValuesForKey(t).forEach((function(t){t.apply.apply(t,[e._component].concat(n))}))}},{key:"component",get:function(){return this._component}}]),t}(),l=new(function(){function t(){r(this,t),this._componentsBySlug=new n.Multimap,this._subscribersBySlug=new n.Multimap}return a(t,[{key:"add",value:function(t,e){if(this._componentsBySlug.has(e,t))return this._subscribersBySlug.getValuesForKey(e).filter((function(e){return e.component===t}))[0];var i=new o(t);return this._componentsBySlug.add(e,t),this._subscribersBySlug.add(e,i),i}},{key:"remove",value:function(t){var e=this;this._componentsBySlug.hasValue(t)&&this._componentsBySlug.getKeysForValue(t).forEach((function(i){e._componentsBySlug.delete(i,t),e._subscribersBySlug.getValuesForKey(i).forEach((function(n){n.component===t&&e._subscribersBySlug.delete(i,n)}))}))}},{key:"emit",value:function(t){for(var e=t.slug,i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];var s=n[0],a=n.slice(1);this._subscribersBySlug.hasKey(e)&&this._subscribersBySlug.getValuesForKey(e).forEach((function(t){t.trigger(s,a)}))}}]),t}());e.subscribers=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Handler=void 0;var n,r=(n=i(29))&&n.__esModule?n:{default:n},s=i(7),a=i(1);function o(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,e,i){return e&&l(t.prototype,e),i&&l(t,i),t}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.context=e,this.plugins=e.module.application.plugins}return u(t,null,[{key:"events",get:function(){return this._events||Object.defineProperty(this,"_events",{value:Object.getOwnPropertyNames(this.prototype).filter((function(t){return/^on/.test(t)})).map((function(t){return(0,s.lcfirst)(t.slice(2))}))})._events}}]),u(t,[{key:"getMethod",value:function(t){var e=t;a.mixedEvents.hasValue(t)&&this.constructor.events.includes(a.mixedEvents.getKeysForValue(t)[0])&&(e=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,r=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw s}}return i}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(a.mixedEvents.getKeysForValue(t),1)[0]);var i=(0,s.ucfirst)(e);return"on".concat(i)}},{key:"getCustomOptions",value:function(t){return this["options".concat((0,s.ucfirst)(t))]||!1}},{key:"getCategory",value:function(t){return a.customEvents.getScope(t)?"custom":a.mixedEvents.hasKey(t)?"mixed":!!this[this.getMethod(t)]&&"native"}},{key:"_bindEvent",value:function(e){var i=this,n=this.getCategory(e);switch(n||this.context.handleError(new Error,"Unknown event type [".concat(e,"]")),n){case"custom":a.customEvents.bind(e,this,this.getCustomOptions(e));break;case"mixed":a.mixedEvents.getValuesForKey(e).forEach((function(e){i.context.element.addEventListener(e,i,t.getOptions(e))}));break;default:this.context.element.addEventListener(e,this,t.getOptions(e))}}},{key:"_unbindEvent",value:function(e){var i=this,n=this.getCategory(e);switch(n||this.context.handleError(new Error,"Unknown event type [".concat(e,"]")),n){case"custom":a.customEvents.unbind(e,this);break;case"mixed":a.mixedEvents.getValuesForKey(e).forEach((function(e){i.context.element.removeEventListener(e,i,t.getOptions(e))}));break;default:this.context.element.removeEventListener(e,this,t.getOptions(e))}}},{key:"handleEvent",value:function(t){var e=this,i=a.mixedEvents.getKeysForValue(t.type)[0]||t.type,n=this["delegate".concat((0,s.ucfirst)(i))];if(n){var r=!1,l=null;if("string"==typeof n){var u=o(this.context.element.querySelectorAll(n));l=t.target.matches(n)?t.target:(0,s.$parent)(t.target,n),r=u.indexOf(l)>=0}else r=(Array.isArray(n)||n instanceof NodeList?o(n):[n]).some((function(e){return!(e!==t.target&&!e.contains(t.target)||(l=e,0))}));r&&(this[this.getMethod(t.type)](t,l),this.plugins.forEach((function(i){i.handleEvent&&i.handleEvent(e,t)})))}else this[this.getMethod(t.type)](t),this.plugins.forEach((function(i){i.handleEvent&&i.handleEvent(e,t)}))}},{key:"bindAll",value:function(){var t=this,e=this.constructor.events||[];e.forEach((function(e){t._bindEvent(e)})),this.plugins.forEach((function(i){i.bindAll&&i.bindAll(t,e)}))}},{key:"unbindAll",value:function(){var t=this,e=this.constructor.events;e.forEach((function(e){t._unbindEvent(e)})),this.plugins.forEach((function(i){i.unbindAll&&i.unbindAll(t,e)}))}},{key:"bind",value:function(t){this._bindEvent(t)}},{key:"unbind",value:function(t){this._unbindEvent(t)}},{key:"subscribe",value:function(t){return a.subscribers.add(this,t)}},{key:"emit",value:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];a.subscribers.emit.apply(a.subscribers,[this].concat(e))}},{key:"unsubscribeAll",value:function(){a.subscribers.remove(this)}}],[{key:"getOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{capture:!1};return a.passiveEvents.includes(t)&&(e.passive=!0),!0===r.default.passiveEvents?e:e.capture}}]),t}();e.Handler=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(i(30)),r=o(i(31)),s=o(i(32)),a=o(i(33));function o(t){return t&&t.__esModule?t:{default:t}}var l={state:{detectHover:n.default,detectPointer:r.default,detectTouchEvents:s.default,detectPassiveEvents:a.default},update:function(){l.state.detectHover.update(),l.state.detectPointer.update(),l.state.detectTouchEvents.update(),l.state.detectPassiveEvents.update(),l.updateOnlyOwnProperties()},updateOnlyOwnProperties:function(){var t,e,i,n,r;"undefined"!=typeof window&&(l.passiveEvents=l.state.detectPassiveEvents.hasSupport||!1,l.hasTouch=l.state.detectTouchEvents.hasSupport||!1,l.deviceType=(e=l.hasTouch,i=l.state.detectHover.anyHover,n=l.state.detectPointer.anyFine,r=l.state,e&&(i||n)?"hybrid":e&&Object.keys(r.detectHover).filter((function(t){return"update"!==t})).every((function(t){return!1===r.detectHover[t]}))&&Object.keys(r.detectPointer).filter((function(t){return"update"!==t})).every((function(t){return!1===r.detectPointer[t]}))?window.navigator&&/android/.test(window.navigator.userAgent.toLowerCase())?"touchOnly":"hybrid":e?"touchOnly":"mouseOnly"),l.hasMouse="touchOnly"!==l.deviceType,l.primaryInput=("mouseOnly"===l.deviceType?"mouse":"touchOnly"===l.deviceType&&"touch")||l.state.detectPointer.fine&&"mouse"||l.state.detectPointer.coarse&&"touch"||"mouse",/windows/.test(window.navigator.userAgent.toLowerCase())&&/chrome/.test(window.navigator.userAgent.toLowerCase())&&(t=parseInt(/Chrome\/([0-9.]+)/.exec(navigator.userAgent)[1],10))>=59&&t<62&&l.hasTouch&&(l.deviceType="hybrid",l.hasMouse=!0,l.primaryInput="mouse"))}};l.updateOnlyOwnProperties(),e.default=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(n.hover=window.matchMedia("(hover: hover)").matches,n.none=window.matchMedia("(hover: none)").matches||window.matchMedia("(hover: on-demand)").matches,n.anyHover=window.matchMedia("(any-hover: hover)").matches,n.anyNone=window.matchMedia("(any-hover: none)").matches||window.matchMedia("(any-hover: on-demand)").matches)}};n.update(),e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&"function"==typeof window.matchMedia&&(n.fine=window.matchMedia("(pointer: fine)").matches,n.coarse=window.matchMedia("(pointer: coarse)").matches,n.none=window.matchMedia("(pointer: none)").matches,n.anyFine=window.matchMedia("(any-pointer: fine)").matches,n.anyCoarse=window.matchMedia("(any-pointer: coarse)").matches,n.anyNone=window.matchMedia("(any-pointer: none)").matches)}};n.update(),e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={update:function(){"undefined"!=typeof window&&(n.hasSupport="ontouchstart"in window,n.browserSupportsApi=Boolean(window.TouchEvent))}};n.update(),e.default=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}}),i=function(){};window.addEventListener("testPassiveEventSupport",i,e),window.removeEventListener("testPassiveEventSupport",i,e),n.hasSupport=t}}};n.update(),e.default=n},function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,i){return(r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&h(r,i.prototype),r}).apply(null,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){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}}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.mixComponent=e.Component=void 0;var d=function(t){function e(t){var i;s(this,e),(i=o(this,u(e).call(this,t))).context=t;var n=i.scope.props;if(n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]?i.context.handleError("[".concat(r,"] already exists!"),"initializing props"):i[r]=n[r]);return i}var i,n;return c(e,t),i=e,(n=[{key:"load",value:function(){}},{key:"init",value:function(){}},{key:"destroy",value:function(){}},{key:"scope",get:function(){return this.context.scope}},{key:"$el",get:function(){return this.scope.element}},{key:"$refs",get:function(){return this.scope.refs}},{key:"slug",get:function(){return this.scope.slug}},{key:"data",get:function(){return this.scope.data}}])&&a(i.prototype,n),e}(i(1).Handler);e.Component=d,e.mixComponent=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=function(t){function i(){var t;s(this,i);for(var n=arguments.length,c=new Array(n),h=0;h<n;h++)c[h]=arguments[h];var d=c[0],p=c.slice(1);return t=o(this,u(i).call(this,d)),e.forEach((function(e){a(l(t),r(e,function(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(p)))})),t}return c(i,t),i}(d),a=function(t,e){Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)).forEach((function(i){i.match(/^(?:constructor|prototype|arguments|caller|name|bind|call|apply|toString|length)$/)||Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))};return e.forEach((function(t){a(n.prototype,t.prototype),a(n,t)})),n}},function(t,e,i){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,i){return(r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&h(r,i.prototype),r}).apply(null,arguments)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){return!e||"object"!==n(e)&&"function"!=typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){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}}),e&&h(t,e)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.mixNoComponent=e.NoComponent=void 0;var d=function(t){function e(t){var i;s(this,e),(i=o(this,u(e).call(this,t))).context=t;var n=i.scope.props;if(n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]?i.context.handleError("[".concat(r,"] already exists!"),"initializing props"):i[r]=n[r]);return i}var i,n;return c(e,t),i=e,(n=[{key:"remove",value:function(){this.context.module.destroyNoElement(this.slug)}},{key:"init",value:function(){}},{key:"destroy",value:function(){}},{key:"scope",get:function(){return this.context.scope}},{key:"slug",get:function(){return this.scope.slug}}])&&a(i.prototype,n),e}(i(1).Handler);e.NoComponent=d,e.mixNoComponent=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=function(t){function i(){var t;s(this,i);for(var n=arguments.length,c=new Array(n),h=0;h<n;h++)c[h]=arguments[h];var d=c[0],p=c.slice(1);return t=o(this,u(i).call(this,d)),e.forEach((function(e){a(l(t),r(e,function(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(p)))})),t}return c(i,t),i}(d),a=function(t,e){Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)).forEach((function(i){i.match(/^(?:constructor|prototype|arguments|caller|name|bind|call|apply|toString|length)$/)||Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))};return e.forEach((function(t){a(n.prototype,t.prototype),a(n,t)})),n}}])},7537:(t,e)=>{function i(t){if(t&&"object"==typeof t){var e=t.which||t.keyCode||t.charCode;e&&(t=e)}if("number"==typeof t)return a[t];var i,s=String(t);return(i=n[s.toLowerCase()])?i:(i=r[s.toLowerCase()])||(1===s.length?s.charCodeAt(0):void 0)}i.isEventKey=function(t,e){if(t&&"object"==typeof t){var i=t.which||t.keyCode||t.charCode;if(null==i)return!1;if("string"==typeof e){var s;if(s=n[e.toLowerCase()])return s===i;if(s=r[e.toLowerCase()])return s===i}else if("number"==typeof e)return e===i;return!1}};var n=(e=t.exports=i).code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(s=97;s<123;s++)n[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)n[s-48]=s;for(s=1;s<13;s++)n["f"+s]=s+111;for(s=0;s<10;s++)n["numpad "+s]=s+96;var a=e.names=e.title={};for(s in n)a[n[s]]=s;for(var o in r)n[o]=r[o]},7090:t=>{!function(e,i){var n=function(t,e,i){"use strict";var n,r;if(function(){var e,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(e in r=t.lazySizesConfig||t.lazysizesConfig||{},i)e in r||(r[e]=i[e])}(),!e||!e.getElementsByClassName)return{init:function(){},cfg:r,noSupport:!0};var s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b,x,T,w,k,S,E,D,C,P,A,M,I,L,O,F,R,B,N,H,V,j,U,z,q,G,W,X,$,Y=e.documentElement,K=t.HTMLPictureElement,Q="addEventListener",Z="getAttribute",J=t[Q].bind(t),tt=t.setTimeout,et=t.requestAnimationFrame||tt,it=t.requestIdleCallback,nt=/^picture$/i,rt=["load","error","lazyincluded","_lazyloaded"],st={},at=Array.prototype.forEach,ot=function(t,e){return st[e]||(st[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),st[e].test(t[Z]("class")||"")&&st[e]},lt=function(t,e){ot(t,e)||t.setAttribute("class",(t[Z]("class")||"").trim()+" "+e)},ut=function(t,e){var i;(i=ot(t,e))&&t.setAttribute("class",(t[Z]("class")||"").replace(i," "))},ct=function(t,e,i){var n=i?Q:"removeEventListener";i&&ct(t,e),rt.forEach((function(i){t[n](i,e)}))},ht=function(t,i,r,s,a){var o=e.createEvent("Event");return r||(r={}),r.instance=n,o.initEvent(i,!s,!a),o.detail=r,t.dispatchEvent(o),o},dt=function(e,i){var n;!K&&(n=t.picturefill||r.pf)?(i&&i.src&&!e[Z]("srcset")&&e.setAttribute("srcset",i.src),n({reevaluate:!0,elements:[e]})):i&&i.src&&(e.src=i.src)},pt=function(t,e){return(getComputedStyle(t,null)||{})[e]},ft=function(t,e,i){for(i=i||t.offsetWidth;i<r.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},mt=(G=[],W=q=[],$=function(t,i){U&&!i?t.apply(this,arguments):(W.push(t),z||(z=!0,(e.hidden?tt:et)(X)))},$._lsFlush=X=function(){var t=W;for(W=q.length?G:q,U=!0,z=!1;t.length;)t.shift()();U=!1},$),gt=function(t,e){return e?function(){mt(t)}:function(){var e=this,i=arguments;mt((function(){t.apply(e,i)}))}},yt=function(t){var e,n,r=function(){e=null,t()},s=function(){var t=i.now()-n;t<99?tt(s,99-t):(it||r)(r)};return function(){n=i.now(),e||(e=tt(s,99))}},vt=(x=/^img$/i,T=/^iframe$/i,w="onscroll"in t&&!/(gle|ing)bot/.test(navigator.userAgent),0,k=0,S=0,E=-1,D=function(t){S--,(!t||S<0||!t.target)&&(S=0)},C=function(t){return null==b&&(b="hidden"==pt(e.body,"visibility")),b||!("hidden"==pt(t.parentNode,"visibility")&&"hidden"==pt(t,"visibility"))},P=function(t,i){var n,r=t,s=C(t);for(g-=i,_+=i,y-=i,v+=i;s&&(r=r.offsetParent)&&r!=e.body&&r!=Y;)(s=(pt(r,"opacity")||1)>0)&&"visible"!=pt(r,"overflow")&&(n=r.getBoundingClientRect(),s=v>n.left&&y<n.right&&_>n.top-1&&g<n.bottom+1);return s},M=function(t){var e,n=0,s=r.throttleDelay,a=r.ricTimeout,o=function(){e=!1,n=i.now(),t()},l=it&&a>49?function(){it(o,{timeout:a}),a!==r.ricTimeout&&(a=r.ricTimeout)}:gt((function(){tt(o)}),!0);return function(t){var r;(t=!0===t)&&(a=33),e||(e=!0,(r=s-(i.now()-n))<0&&(r=0),t||r<9?l():tt(l,r))}}(A=function(){var t,i,s,a,o,l,h,p,x,T,D,A,M=n.elements;if((d=r.loadMode)&&S<8&&(t=M.length)){for(i=0,E++;i<t;i++)if(M[i]&&!M[i]._lazyRace)if(!w||n.prematureUnveil&&n.prematureUnveil(M[i]))N(M[i]);else if((p=M[i][Z]("data-expand"))&&(l=1*p)||(l=k),T||(T=!r.expand||r.expand<1?Y.clientHeight>500&&Y.clientWidth>500?500:370:r.expand,n._defEx=T,D=T*r.expFactor,A=r.hFac,b=null,k<D&&S<1&&E>2&&d>2&&!e.hidden?(k=D,E=0):k=d>1&&E>1&&S<6?T:0),x!==l&&(f=innerWidth+l*A,m=innerHeight+l,h=-1*l,x=l),s=M[i].getBoundingClientRect(),(_=s.bottom)>=h&&(g=s.top)<=m&&(v=s.right)>=h*A&&(y=s.left)<=f&&(_||v||y||g)&&(r.loadHidden||C(M[i]))&&(c&&S<3&&!p&&(d<3||E<4)||P(M[i],l))){if(N(M[i]),o=!0,S>9)break}else!o&&c&&!a&&S<4&&E<4&&d>2&&(u[0]||r.preloadAfterLoad)&&(u[0]||!p&&(_||v||y||g||"auto"!=M[i][Z](r.sizesAttr)))&&(a=u[0]||M[i]);a&&!o&&N(a)}}),L=gt(I=function(t){var e=t.target;e._lazyCache?delete e._lazyCache:(D(t),lt(e,r.loadedClass),ut(e,r.loadingClass),ct(e,O),ht(e,"lazyloaded"))}),O=function(t){L({target:t.target})},F=function(t,e){var i=t.getAttribute("data-load-mode")||r.iframeLoadMode;0==i?t.contentWindow.location.replace(e):1==i&&(t.src=e)},R=function(t){var e,i=t[Z](r.srcsetAttr);(e=r.customMedia[t[Z]("data-media")||t[Z]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)},B=gt((function(t,e,i,n,s){var a,o,l,u,c,d;(c=ht(t,"lazybeforeunveil",e)).defaultPrevented||(n&&(i?lt(t,r.autosizesClass):t.setAttribute("sizes",n)),o=t[Z](r.srcsetAttr),a=t[Z](r.srcAttr),s&&(u=(l=t.parentNode)&&nt.test(l.nodeName||"")),d=e.firesLoad||"src"in t&&(o||a||u),c={target:t},lt(t,r.loadingClass),d&&(clearTimeout(h),h=tt(D,2500),ct(t,O,!0)),u&&at.call(l.getElementsByTagName("source"),R),o?t.setAttribute("srcset",o):a&&!u&&(T.test(t.nodeName)?F(t,a):t.src=a),s&&(o||u)&&dt(t,{src:a})),t._lazyRace&&delete t._lazyRace,ut(t,r.lazyClass),mt((function(){var e=t.complete&&t.naturalWidth>1;d&&!e||(e&<(t,r.fastLoadedClass),I(c),t._lazyCache=!0,tt((function(){"_lazyCache"in t&&delete t._lazyCache}),9)),"lazy"==t.loading&&S--}),!0)})),N=function(t){if(!t._lazyRace){var e,i=x.test(t.nodeName),n=i&&(t[Z](r.sizesAttr)||t[Z]("sizes")),s="auto"==n;(!s&&c||!i||!t[Z]("src")&&!t.srcset||t.complete||ot(t,r.errorClass)||!ot(t,r.lazyClass))&&(e=ht(t,"lazyunveilread").detail,s&&_t.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,S++,B(t,e,s,n,i))}},H=yt((function(){r.loadMode=3,M()})),j=function(){c||(i.now()-p<999?tt(j,999):(c=!0,r.loadMode=3,M(),J("scroll",V,!0)))},{_:function(){p=i.now(),n.elements=e.getElementsByClassName(r.lazyClass),u=e.getElementsByClassName(r.lazyClass+" "+r.preloadClass),J("scroll",M,!0),J("resize",M,!0),J("pageshow",(function(t){if(t.persisted){var i=e.querySelectorAll("."+r.loadingClass);i.length&&i.forEach&&et((function(){i.forEach((function(t){t.complete&&N(t)}))}))}})),t.MutationObserver?new MutationObserver(M).observe(Y,{childList:!0,subtree:!0,attributes:!0}):(Y[Q]("DOMNodeInserted",M,!0),Y[Q]("DOMAttrModified",M,!0),setInterval(M,999)),J("hashchange",M,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(t){e[Q](t,M,!0)})),/d$|^c/.test(e.readyState)?j():(J("load",j),e[Q]("DOMContentLoaded",M),tt(j,2e4)),n.elements.length?(A(),mt._lsFlush()):M()},checkElems:M,unveil:N,_aLSL:V=function(){3==r.loadMode&&(r.loadMode=2),H()}}),_t=(a=gt((function(t,e,i,n){var r,s,a;if(t._lazysizesWidth=n,n+="px",t.setAttribute("sizes",n),nt.test(e.nodeName||""))for(s=0,a=(r=e.getElementsByTagName("source")).length;s<a;s++)r[s].setAttribute("sizes",n);i.detail.dataAttr||dt(t,i.detail)})),o=function(t,e,i){var n,r=t.parentNode;r&&(i=ft(t,r,i),(n=ht(t,"lazybeforesizes",{width:i,dataAttr:!!e})).defaultPrevented||(i=n.detail.width)&&i!==t._lazysizesWidth&&a(t,r,n,i))},{_:function(){s=e.getElementsByClassName(r.autosizesClass),J("resize",l)},checkElems:l=yt((function(){var t,e=s.length;if(e)for(t=0;t<e;t++)o(s[t])})),updateElem:o}),bt=function(){!bt.i&&e.getElementsByClassName&&(bt.i=!0,_t._(),vt._())};return tt((function(){r.init&&bt()})),n={cfg:r,autoSizer:_t,loader:vt,init:bt,uP:dt,aC:lt,rC:ut,hC:ot,fire:ht,gW:ft,rAF:mt}}(e,e.document,Date);e.lazySizes=n,t.exports&&(t.exports=n)}("undefined"!=typeof window?window:{})},82:(t,e,i)=>{var n,r,s;!function(a,o){o=o.bind(null,a,a.document),t.exports?o(i(7090)):(r=[i(7090)],void 0===(s="function"==typeof(n=o)?n.apply(e,r):n)||(t.exports=s))}(window,(function(t,e,i){"use strict";var n,r,s={};function a(t,i,n){if(!s[t]){var r=e.createElement(i?"link":"script"),a=e.getElementsByTagName("script")[0];i?(r.rel="stylesheet",r.href=t):(r.onload=function(){r.onerror=null,r.onload=null,n()},r.onerror=r.onload,r.src=t),s[t]=!0,s[r.src||r.href]=!0,a.parentNode.insertBefore(r,a)}}e.addEventListener&&(r=/\(|\)|\s|'/,n=function(t,i){var n=e.createElement("img");n.onload=function(){n.onload=null,n.onerror=null,n=null,i()},n.onerror=n.onload,n.src=t,n&&n.complete&&n.onload&&n.onload()},addEventListener("lazybeforeunveil",(function(t){var e,s,o;if(t.detail.instance==i&&!t.defaultPrevented){var l=t.target;if("none"==l.preload&&(l.preload=l.getAttribute("data-preload")||"auto"),null!=l.getAttribute("data-autoplay"))if(l.getAttribute("data-expand")&&!l.autoplay)try{l.play()}catch(t){}else requestAnimationFrame((function(){l.setAttribute("data-expand","-10"),i.aC(l,i.cfg.lazyClass)}));(e=l.getAttribute("data-link"))&&a(e,!0),(e=l.getAttribute("data-script"))&&(t.detail.firesLoad=!0,a(e,null,(function(){t.detail.firesLoad=!1,i.fire(l,"_lazyloaded",{},!0,!0)}))),(e=l.getAttribute("data-require"))&&(i.cfg.requireJs?i.cfg.requireJs([e]):a(e)),(s=l.getAttribute("data-bg"))&&(t.detail.firesLoad=!0,n(s,(function(){l.style.backgroundImage="url("+(r.test(s)?JSON.stringify(s):s)+")",t.detail.firesLoad=!1,i.fire(l,"_lazyloaded",{},!0,!0)}))),(o=l.getAttribute("data-poster"))&&(t.detail.firesLoad=!0,n(o,(function(){l.poster=o,t.detail.firesLoad=!1,i.fire(l,"_lazyloaded",{},!0,!0)})))}}),!1))}))},6267:(t,e,i)=>{"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function u(t,e){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}}),e&&h(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=c(t);if(e){var r=c(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?d(t):e}(this,i)}}function f(t,e,i){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(n){var r=Object.getOwnPropertyDescriptor(n,e);return r.get?r.get.call(i):r.value}},f(t,e,i||t)}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,r=!1,s=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){r=!0,s=t}finally{try{n||null==o.return||o.return()}finally{if(r)throw s}}return i}}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return y(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)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}i.d(e,{ZP:()=>rt});var v={el:document,name:"scroll",offset:[0,0],repeat:!1,smooth:!1,initPosition:{x:0,y:0},direction:"vertical",gestureDirection:"vertical",reloadOnContextChange:!1,lerp:.1,class:"is-inview",scrollbarContainer:!1,scrollbarClass:"c-scrollbar",scrollingClass:"has-scroll-scrolling",draggingClass:"has-scroll-dragging",smoothClass:"has-scroll-smooth",initClass:"has-scroll-init",getSpeed:!1,getDirection:!1,scrollFromAnywhere:!1,multiplier:1,firefoxMultiplier:50,touchMultiplier:2,resetNativeScroll:!0,tablet:{smooth:!1,direction:"vertical",gestureDirection:"vertical",breakpoint:1024},smartphone:{smooth:!1,direction:"vertical",gestureDirection:"vertical"}},_=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,t),Object.assign(this,v,e),this.smartphone=v.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=v.tablet,e.tablet&&Object.assign(this.tablet,e.tablet),this.namespace="locomotive",this.html=document.documentElement,this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.els={},this.currentElements={},this.listeners={},this.hasScrollTicking=!1,this.hasCallEventSet=!1,this.checkScroll=this.checkScroll.bind(this),this.checkResize=this.checkResize.bind(this),this.checkEvent=this.checkEvent.bind(this),this.instance={scroll:{x:0,y:0},limit:{x:this.html.offsetWidth,y:this.html.offsetHeight},currentElements:this.currentElements},this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",this.isMobile&&(this.direction=this[this.context].direction),"horizontal"===this.direction?this.directionAxis="x":this.directionAxis="y",this.getDirection&&(this.instance.direction=null),this.getDirection&&(this.instance.speed=0),this.html.classList.add(this.initClass),window.addEventListener("resize",this.checkResize,!1)}return s(t,[{key:"init",value:function(){this.initEvents()}},{key:"checkScroll",value:function(){this.dispatchScroll()}},{key:"checkResize",value:function(){var t=this;this.resizeTick||(this.resizeTick=!0,requestAnimationFrame((function(){t.resize(),t.resizeTick=!1})))}},{key:"resize",value:function(){}},{key:"checkContext",value:function(){if(this.reloadOnContextChange){this.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||this.windowWidth<this.tablet.breakpoint,this.isTablet=this.isMobile&&this.windowWidth>=this.tablet.breakpoint;var t=this.context;this.isMobile?this.isTablet?this.context="tablet":this.context="smartphone":this.context="desktop",t!=this.context&&("desktop"==t?this.smooth:this[t].smooth)!=("desktop"==this.context?this.smooth:this[this.context].smooth)&&window.location.reload()}}},{key:"initEvents",value:function(){var t=this;this.scrollToEls=this.el.querySelectorAll("[data-".concat(this.name,"-to]")),this.setScrollTo=this.setScrollTo.bind(this),this.scrollToEls.forEach((function(e){e.addEventListener("click",t.setScrollTo,!1)}))}},{key:"setScrollTo",value:function(t){t.preventDefault(),this.scrollTo(t.currentTarget.getAttribute("data-".concat(this.name,"-href"))||t.currentTarget.getAttribute("href"),{offset:t.currentTarget.getAttribute("data-".concat(this.name,"-offset"))})}},{key:"addElements",value:function(){}},{key:"detectElements",value:function(t){var e=this,i=this.instance.scroll.y,n=i+this.windowHeight,r=this.instance.scroll.x,s=r+this.windowWidth;Object.entries(this.els).forEach((function(a){var o=m(a,2),l=o[0],u=o[1];if(!u||u.inView&&!t||("horizontal"===e.direction?s>=u.left&&r<u.right&&e.setInView(u,l):n>=u.top&&i<u.bottom&&e.setInView(u,l)),u&&u.inView)if("horizontal"===e.direction){var c=u.right-u.left;u.progress=(e.instance.scroll.x-(u.left-e.windowWidth))/(c+e.windowWidth),(s<u.left||r>u.right)&&e.setOutOfView(u,l)}else{var h=u.bottom-u.top;u.progress=(e.instance.scroll.y-(u.top-e.windowHeight))/(h+e.windowHeight),(n<u.top||i>u.bottom)&&e.setOutOfView(u,l)}})),this.hasScrollTicking=!1}},{key:"setInView",value:function(t,e){this.els[e].inView=!0,t.el.classList.add(t.class),this.currentElements[e]=t,t.call&&this.hasCallEventSet&&(this.dispatchCall(t,"enter"),t.repeat||(this.els[e].call=!1))}},{key:"setOutOfView",value:function(t,e){var i=this;this.els[e].inView=!1,Object.keys(this.currentElements).forEach((function(t){t===e&&delete i.currentElements[t]})),t.call&&this.hasCallEventSet&&this.dispatchCall(t,"exit"),t.repeat&&t.el.classList.remove(t.class)}},{key:"dispatchCall",value:function(t,e){this.callWay=e,this.callValue=t.call.split(",").map((function(t){return t.trim()})),this.callObj=t,1==this.callValue.length&&(this.callValue=this.callValue[0]);var i=new Event(this.namespace+"call");this.el.dispatchEvent(i)}},{key:"dispatchScroll",value:function(){var t=new Event(this.namespace+"scroll");this.el.dispatchEvent(t)}},{key:"setEvents",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]);var i=this.listeners[t];i.push(e),1===i.length&&this.el.addEventListener(this.namespace+t,this.checkEvent,!1),"call"===t&&(this.hasCallEventSet=!0,this.detectElements(!0))}},{key:"unsetEvents",value:function(t,e){if(this.listeners[t]){var i=this.listeners[t],n=i.indexOf(e);n<0||(i.splice(n,1),0===i.index&&this.el.removeEventListener(this.namespace+t,this.checkEvent,!1))}}},{key:"checkEvent",value:function(t){var e=this,i=t.type.replace(this.namespace,""),n=this.listeners[i];n&&0!==n.length&&n.forEach((function(t){switch(i){case"scroll":return t(e.instance);case"call":return t(e.callValue,e.callWay,e.callObj);default:return t()}}))}},{key:"startScroll",value:function(){}},{key:"stopScroll",value:function(){}},{key:"setScroll",value:function(t,e){this.instance.scroll={x:0,y:0}}},{key:"destroy",value:function(){var t=this;window.removeEventListener("resize",this.checkResize,!1),Object.keys(this.listeners).forEach((function(e){t.el.removeEventListener(t.namespace+e,t.checkEvent,!1)})),this.listeners={},this.scrollToEls.forEach((function(e){e.removeEventListener("click",t.setScrollTo,!1)})),this.html.classList.remove(this.initClass)}}]),t}(),b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function x(t,e){return t(e={exports:{}},e.exports),e.exports}var T=x((function(t,e){t.exports={polyfill:function(){var t=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===t.__forceSmoothScrollPolyfill__){var i,n=t.HTMLElement||t.Element,r=468,s={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:n.prototype.scroll||l,scrollIntoView:n.prototype.scrollIntoView},a=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now,o=(i=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(i)?1:0);t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==u(arguments[0])?f.call(t,e.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):s.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(u(arguments[0])?s.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(t,e.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==u(arguments[0])){var t=arguments[0].left,e=arguments[0].top;f.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===e?this.scrollTop:~~e)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==u(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):s.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0!==u(arguments[0])){var i=function(t){for(;t!==e.body&&!1===d(t);)t=t.parentNode||t.host;return t}(this),n=i.getBoundingClientRect(),r=this.getBoundingClientRect();i!==e.body?(f.call(this,i,i.scrollLeft+r.left-n.left,i.scrollTop+r.top-n.top),"fixed"!==t.getComputedStyle(i).position&&t.scrollBy({left:n.left,top:n.top,behavior:"smooth"})):t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})}else s.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(t,e){this.scrollLeft=t,this.scrollTop=e}function u(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(t,e){return"Y"===e?t.clientHeight+o<t.scrollHeight:"X"===e?t.clientWidth+o<t.scrollWidth:void 0}function h(e,i){var n=t.getComputedStyle(e,null)["overflow"+i];return"auto"===n||"scroll"===n}function d(t){var e=c(t,"Y")&&h(t,"Y"),i=c(t,"X")&&h(t,"X");return e||i}function p(e){var i,n,s,o,l=(a()-e.startTime)/r;o=l=l>1?1:l,i=.5*(1-Math.cos(Math.PI*o)),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(p.bind(t,e))}function f(i,n,r){var o,u,c,h,d=a();i===e.body?(o=t,u=t.scrollX||t.pageXOffset,c=t.scrollY||t.pageYOffset,h=s.scroll):(o=i,u=i.scrollLeft,c=i.scrollTop,h=l),p({scrollable:o,method:h,startTime:d,startX:u,startY:c,x:n,y:r})}}}})),w=(T.polyfill,function(t){u(i,t);var e=p(i);function i(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(t=e.call(this,r)).resetNativeScroll&&(history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0)),window.addEventListener("scroll",t.checkScroll,!1),void 0===window.smoothscrollPolyfill&&(window.smoothscrollPolyfill=T,window.smoothscrollPolyfill.polyfill()),t}return s(i,[{key:"init",value:function(){this.instance.scroll.y=window.pageYOffset,this.addElements(),this.detectElements(),f(c(i.prototype),"init",this).call(this)}},{key:"checkScroll",value:function(){var t=this;f(c(i.prototype),"checkScroll",this).call(this),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.instance.scroll.y=window.pageYOffset,Object.entries(this.els).length&&(this.hasScrollTicking||(requestAnimationFrame((function(){t.detectElements()})),this.hasScrollTicking=!0))}},{key:"addDirection",value:function(){window.pageYOffset>this.instance.scroll.y?"down"!==this.instance.direction&&(this.instance.direction="down"):window.pageYOffset<this.instance.scroll.y&&"up"!==this.instance.direction&&(this.instance.direction="up")}},{key:"addSpeed",value:function(){window.pageYOffset!=this.instance.scroll.y?this.instance.speed=(window.pageYOffset-this.instance.scroll.y)/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"resize",value:function(){Object.entries(this.els).length&&(this.windowHeight=window.innerHeight,this.updateElements())}},{key:"addElements",value:function(){var t=this;this.els={},this.el.querySelectorAll("[data-"+this.name+"]").forEach((function(e,i){e.getBoundingClientRect();var n,r,s,a=e.dataset[t.name+"Class"]||t.class,o="string"==typeof e.dataset[t.name+"Id"]?e.dataset[t.name+"Id"]:i,l="string"==typeof e.dataset[t.name+"Offset"]?e.dataset[t.name+"Offset"].split(","):t.offset,u=e.dataset[t.name+"Repeat"],c=e.dataset[t.name+"Call"],h=e.dataset[t.name+"Target"],d=(s=void 0!==h?document.querySelector("".concat(h)):e).getBoundingClientRect();n=d.top+t.instance.scroll.y,r=d.left+t.instance.scroll.x;var p=n+s.offsetHeight,f=r+s.offsetWidth;u="false"!=u&&(null!=u||t.repeat);var m=t.getRelativeOffset(l),g={el:e,targetEl:s,id:o,class:a,top:n+=m[0],bottom:p-=m[1],left:r,right:f,offset:l,progress:0,repeat:u,inView:!1,call:c};t.els[o]=g,e.classList.contains(a)&&t.setInView(t.els[o],o)}))}},{key:"updateElements",value:function(){var t=this;Object.entries(this.els).forEach((function(e){var i=m(e,2),n=i[0],r=i[1],s=r.targetEl.getBoundingClientRect().top+t.instance.scroll.y,a=s+r.targetEl.offsetHeight,o=t.getRelativeOffset(r.offset);t.els[n].top=s+o[0],t.els[n].bottom=a-o[1]})),this.hasScrollTicking=!1}},{key:"getRelativeOffset",value:function(t){var e=[0,0];if(t)for(var i=0;i<t.length;i++)"string"==typeof t[i]?t[i].includes("%")?e[i]=parseInt(t[i].replace("%","")*this.windowHeight/100):e[i]=parseInt(t[i]):e[i]=t[i];return e}},{key:"scrollTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=parseInt(e.offset)||0,n=!!e.callback&&e.callback;if("string"==typeof t){if("top"===t)t=this.html;else if("bottom"===t)t=this.html.offsetHeight-window.innerHeight;else if(!(t=document.querySelector(t)))return}else if("number"==typeof t)t=parseInt(t);else if(!t||!t.tagName)return void console.warn("`target` parameter is not valid");i="number"!=typeof t?t.getBoundingClientRect().top+i+this.instance.scroll.y:t+i;var r=function(){return parseInt(window.pageYOffset)===parseInt(i)};if(n){if(r())return void n();window.addEventListener("scroll",(function t(){r()&&(window.removeEventListener("scroll",t),n())}))}window.scrollTo({top:i,behavior:0===e.duration?"auto":"smooth"})}},{key:"update",value:function(){this.addElements(),this.detectElements()}},{key:"destroy",value:function(){f(c(i.prototype),"destroy",this).call(this),window.removeEventListener("scroll",this.checkScroll,!1)}}]),i}(_)),k=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,D=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,n,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var a in i=Object(arguments[s]))S.call(i,a)&&(r[a]=i[a]);if(k){n=k(i);for(var o=0;o<n.length;o++)E.call(i,n[o])&&(r[n[o]]=i[n[o]])}}return r};function C(){}C.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function r(){n.off(t,r),e.apply(i,arguments)}return r._=e,this.on(t,r,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,r=i.length;n<r;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],r=[];if(n&&e)for(var s=0,a=n.length;s<a;s++)n[s].fn!==e&&n[s].fn._!==e&&r.push(n[s]);return r.length?i[t]=r:delete i[t],this}};var P=C,A=x((function(t,e){(function(){(null!==e?e:this).Lethargy=function(){function t(t,e,i,n){this.stability=null!=t?Math.abs(t):8,this.sensitivity=null!=e?1+Math.abs(e):100,this.tolerance=null!=i?1+Math.abs(i):1.1,this.delay=null!=n?n:150,this.lastUpDeltas=function(){var t,e,i;for(i=[],t=1,e=2*this.stability;1<=e?t<=e:t>=e;1<=e?t++:t--)i.push(null);return i}.call(this),this.lastDownDeltas=function(){var t,e,i;for(i=[],t=1,e=2*this.stability;1<=e?t<=e:t>=e;1<=e?t++:t--)i.push(null);return i}.call(this),this.deltasTimestamp=function(){var t,e,i;for(i=[],t=1,e=2*this.stability;1<=e?t<=e:t>=e;1<=e?t++:t--)i.push(null);return i}.call(this)}return t.prototype.check=function(t){var e;return null!=(t=t.originalEvent||t).wheelDelta?e=t.wheelDelta:null!=t.deltaY?e=-40*t.deltaY:null==t.detail&&0!==t.detail||(e=-40*t.detail),this.deltasTimestamp.push(Date.now()),this.deltasTimestamp.shift(),e>0?(this.lastUpDeltas.push(e),this.lastUpDeltas.shift(),this.isInertia(1)):(this.lastDownDeltas.push(e),this.lastDownDeltas.shift(),this.isInertia(-1))},t.prototype.isInertia=function(t){var e,i,n,r,s,a,o;return null===(e=-1===t?this.lastDownDeltas:this.lastUpDeltas)[0]?t:!(this.deltasTimestamp[2*this.stability-2]+this.delay>Date.now()&&e[0]===e[2*this.stability-1])&&(n=e.slice(0,this.stability),i=e.slice(this.stability,2*this.stability),o=n.reduce((function(t,e){return t+e})),s=i.reduce((function(t,e){return t+e})),a=o/n.length,r=s/i.length,Math.abs(a)<Math.abs(r*this.tolerance)&&this.sensitivity<Math.abs(r)&&t)},t.prototype.showLastUpDeltas=function(){return this.lastUpDeltas},t.prototype.showLastDownDeltas=function(){return this.lastDownDeltas},t}()}).call(b)})),M="onwheel"in document,I="onmousewheel"in document,L="ontouchstart"in window||window.TouchEvent||window.DocumentTouch&&document instanceof DocumentTouch,O=navigator.msMaxTouchPoints&&navigator.msMaxTouchPoints>1,F=!!window.navigator.msPointerEnabled,R="onkeydown"in document,B=navigator.userAgent.indexOf("Firefox")>-1,N=Object.prototype.toString,H=Object.prototype.hasOwnProperty;function V(t,e){return function(){return t.apply(e,arguments)}}var j=A.Lethargy,U="virtualscroll",z=q;function q(t){!function(t){if(!t)return console.warn("bindAll requires at least one argument.");var e=Array.prototype.slice.call(arguments,1);if(0===e.length)for(var i in t)H.call(t,i)&&"function"==typeof t[i]&&"[object Function]"==N.call(t[i])&&e.push(i);for(var n=0;n<e.length;n++){var r=e[n];t[r]=V(t[r],t)}}(this,"_onWheel","_onMouseWheel","_onTouchStart","_onTouchMove","_onKeyDown"),this.el=window,t&&t.el&&(this.el=t.el,delete t.el),this.options=D({mouseMultiplier:1,touchMultiplier:2,firefoxMultiplier:15,keyStep:120,preventTouch:!1,unpreventTouchClass:"vs-touchmove-allowed",limitInertia:!1,useKeyboard:!0,useTouch:!0},t),this.options.limitInertia&&(this._lethargy=new j),this._emitter=new P,this._event={y:0,x:0,deltaX:0,deltaY:0},this.touchStartX=null,this.touchStartY=null,this.bodyTouchAction=null,void 0!==this.options.passive&&(this.listenerOptions={passive:this.options.passive})}function G(t,e,i){return(1-i)*t+i*e}function W(t){var e={};if(window.getComputedStyle){var i=getComputedStyle(t),n=i.transform||i.webkitTransform||i.mozTransform,r=n.match(/^matrix3d\((.+)\)$/);return r?(e.x=r?parseFloat(r[1].split(", ")[12]):0,e.y=r?parseFloat(r[1].split(", ")[13]):0):(r=n.match(/^matrix\((.+)\)$/),e.x=r?parseFloat(r[1].split(", ")[4]):0,e.y=r?parseFloat(r[1].split(", ")[5]):0),e}}function X(t){for(var e=[];t&&t!==document;t=t.parentNode)e.push(t);return e}q.prototype._notify=function(t){var e=this._event;e.x+=e.deltaX,e.y+=e.deltaY,this._emitter.emit(U,{x:e.x,y:e.y,deltaX:e.deltaX,deltaY:e.deltaY,originalEvent:t})},q.prototype._onWheel=function(t){var e=this.options;if(!this._lethargy||!1!==this._lethargy.check(t)){var i=this._event;i.deltaX=t.wheelDeltaX||-1*t.deltaX,i.deltaY=t.wheelDeltaY||-1*t.deltaY,B&&1==t.deltaMode&&(i.deltaX*=e.firefoxMultiplier,i.deltaY*=e.firefoxMultiplier),i.deltaX*=e.mouseMultiplier,i.deltaY*=e.mouseMultiplier,this._notify(t)}},q.prototype._onMouseWheel=function(t){if(!this.options.limitInertia||!1!==this._lethargy.check(t)){var e=this._event;e.deltaX=t.wheelDeltaX?t.wheelDeltaX:0,e.deltaY=t.wheelDeltaY?t.wheelDeltaY:t.wheelDelta,this._notify(t)}},q.prototype._onTouchStart=function(t){var e=t.targetTouches?t.targetTouches[0]:t;this.touchStartX=e.pageX,this.touchStartY=e.pageY},q.prototype._onTouchMove=function(t){var e=this.options;e.preventTouch&&!t.target.classList.contains(e.unpreventTouchClass)&&t.preventDefault();var i=this._event,n=t.targetTouches?t.targetTouches[0]:t;i.deltaX=(n.pageX-this.touchStartX)*e.touchMultiplier,i.deltaY=(n.pageY-this.touchStartY)*e.touchMultiplier,this.touchStartX=n.pageX,this.touchStartY=n.pageY,this._notify(t)},q.prototype._onKeyDown=function(t){var e=this._event;e.deltaX=e.deltaY=0;var i=window.innerHeight-40;switch(t.keyCode){case 37:case 38:e.deltaY=this.options.keyStep;break;case 39:case 40:e.deltaY=-this.options.keyStep;break;case t.shiftKey:e.deltaY=i;break;case 32:e.deltaY=-i;break;default:return}this._notify(t)},q.prototype._bind=function(){M&&this.el.addEventListener("wheel",this._onWheel,this.listenerOptions),I&&this.el.addEventListener("mousewheel",this._onMouseWheel,this.listenerOptions),L&&this.options.useTouch&&(this.el.addEventListener("touchstart",this._onTouchStart,this.listenerOptions),this.el.addEventListener("touchmove",this._onTouchMove,this.listenerOptions)),F&&O&&(this.bodyTouchAction=document.body.style.msTouchAction,document.body.style.msTouchAction="none",this.el.addEventListener("MSPointerDown",this._onTouchStart,!0),this.el.addEventListener("MSPointerMove",this._onTouchMove,!0)),R&&this.options.useKeyboard&&document.addEventListener("keydown",this._onKeyDown)},q.prototype._unbind=function(){M&&this.el.removeEventListener("wheel",this._onWheel),I&&this.el.removeEventListener("mousewheel",this._onMouseWheel),L&&(this.el.removeEventListener("touchstart",this._onTouchStart),this.el.removeEventListener("touchmove",this._onTouchMove)),F&&O&&(document.body.style.msTouchAction=this.bodyTouchAction,this.el.removeEventListener("MSPointerDown",this._onTouchStart,!0),this.el.removeEventListener("MSPointerMove",this._onTouchMove,!0)),R&&this.options.useKeyboard&&document.removeEventListener("keydown",this._onKeyDown)},q.prototype.on=function(t,e){this._emitter.on(U,t,e);var i=this._emitter.e;i&&i[U]&&1===i[U].length&&this._bind()},q.prototype.off=function(t,e){this._emitter.off(U,t,e);var i=this._emitter.e;(!i[U]||i[U].length<=0)&&this._unbind()},q.prototype.reset=function(){var t=this._event;t.x=0,t.y=0},q.prototype.destroy=function(){this._emitter.off(),this._unbind()};var $=.1,Y="function"==typeof Float32Array;function K(t,e){return 1-3*e+3*t}function Q(t,e){return 3*e-6*t}function Z(t){return 3*t}function J(t,e,i){return((K(e,i)*t+Q(e,i))*t+Z(e))*t}function tt(t,e,i){return 3*K(e,i)*t*t+2*Q(e,i)*t+Z(e)}function et(t){return t}var it=function(t,e,i,n){if(!(0<=t&&t<=1&&0<=i&&i<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&i===n)return et;for(var r=Y?new Float32Array(11):new Array(11),s=0;s<11;++s)r[s]=J(s*$,t,i);return function(s){return 0===s?0:1===s?1:J(function(e){for(var n=0,s=1;10!==s&&r[s]<=e;++s)n+=$;--s;var a=n+(e-r[s])/(r[s+1]-r[s])*$,o=tt(a,t,i);return o>=.001?function(t,e,i,n){for(var r=0;r<4;++r){var s=tt(e,i,n);if(0===s)return e;e-=(J(e,i,n)-t)/s}return e}(e,a,t,i):0===o?a:function(t,e,i,n,r){var s,a,o=0;do{(s=J(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a}while(Math.abs(s)>1e-7&&++o<10);return a}(e,n,n+$,t,i)}(s),e,n)}},nt=function(t){u(i,t);var e=p(i);function i(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),history.scrollRestoration&&(history.scrollRestoration="manual"),window.scrollTo(0,0),(t=e.call(this,r)).inertia&&(t.lerp=.1*t.inertia),t.isScrolling=!1,t.isDraggingScrollbar=!1,t.isTicking=!1,t.hasScrollTicking=!1,t.parallaxElements={},t.stop=!1,t.scrollbarContainer=r.scrollbarContainer,t.checkKey=t.checkKey.bind(d(t)),window.addEventListener("keydown",t.checkKey,!1),t}return s(i,[{key:"init",value:function(){var t=this;this.html.classList.add(this.smoothClass),this.html.setAttribute("data-".concat(this.name,"-direction"),this.direction),this.instance=l({delta:{x:this.initPosition.x,y:this.initPosition.y},scroll:{x:this.initPosition.x,y:this.initPosition.y}},this.instance),this.vs=new z({el:this.scrollFromAnywhere?document:this.el,mouseMultiplier:navigator.platform.indexOf("Win")>-1?1:.4,firefoxMultiplier:this.firefoxMultiplier,touchMultiplier:this.touchMultiplier,useKeyboard:!1,passive:!0}),this.vs.on((function(e){t.stop||t.isDraggingScrollbar||requestAnimationFrame((function(){t.updateDelta(e),t.isScrolling||t.startScrolling()}))})),this.setScrollLimit(),this.initScrollBar(),this.addSections(),this.addElements(),this.checkScroll(!0),this.transformElements(!0,!0),f(c(i.prototype),"init",this).call(this)}},{key:"setScrollLimit",value:function(){if(this.instance.limit.y=this.el.offsetHeight-this.windowHeight,"horizontal"===this.direction){for(var t=0,e=this.el.children,i=0;i<e.length;i++)t+=e[i].offsetWidth;this.instance.limit.x=t-this.windowWidth}}},{key:"startScrolling",value:function(){this.startScrollTs=Date.now(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}},{key:"stopScrolling",value:function(){cancelAnimationFrame(this.checkScrollRaf),this.startScrollTs=void 0,this.scrollToRaf&&(cancelAnimationFrame(this.scrollToRaf),this.scrollToRaf=null),this.isScrolling=!1,this.instance.scroll.y=Math.round(this.instance.scroll.y),this.html.classList.remove(this.scrollingClass)}},{key:"checkKey",value:function(t){var e=this;if(this.stop)9==t.keyCode&&requestAnimationFrame((function(){e.html.scrollTop=0,document.body.scrollTop=0,e.html.scrollLeft=0,document.body.scrollLeft=0}));else{switch(t.keyCode){case 9:requestAnimationFrame((function(){e.html.scrollTop=0,document.body.scrollTop=0,e.html.scrollLeft=0,document.body.scrollLeft=0,e.scrollTo(document.activeElement,{offset:-window.innerHeight/2})}));break;case 38:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]-=240);break;case 40:this.isActiveElementScrollSensitive()&&(this.instance.delta[this.directionAxis]+=240);break;case 33:this.instance.delta[this.directionAxis]-=window.innerHeight;break;case 34:this.instance.delta[this.directionAxis]+=window.innerHeight;break;case 36:this.instance.delta[this.directionAxis]-=this.instance.limit[this.directionAxis];break;case 35:this.instance.delta[this.directionAxis]+=this.instance.limit[this.directionAxis];break;case 32:this.isActiveElementScrollSensitive()&&(t.shiftKey?this.instance.delta[this.directionAxis]-=window.innerHeight:this.instance.delta[this.directionAxis]+=window.innerHeight);break;default:return}this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis]),this.stopScrolling(),this.isScrolling=!0,this.checkScroll(),this.html.classList.add(this.scrollingClass)}}},{key:"isActiveElementScrollSensitive",value:function(){return!(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||document.activeElement instanceof HTMLButtonElement||document.activeElement instanceof HTMLSelectElement)}},{key:"checkScroll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.isScrolling||this.isDraggingScrollbar){this.hasScrollTicking||(this.checkScrollRaf=requestAnimationFrame((function(){return t.checkScroll()})),this.hasScrollTicking=!0),this.updateScroll();var n=Math.abs(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis]),r=Date.now()-this.startScrollTs;if(!this.animatingScroll&&r>100&&(n<.5&&0!=this.instance.delta[this.directionAxis]||n<.5&&0==this.instance.delta[this.directionAxis])&&this.stopScrolling(),Object.entries(this.sections).forEach((function(i){var n=m(i,2),r=(n[0],n[1]);r.persistent||t.instance.scroll[t.directionAxis]>r.offset[t.directionAxis]&&t.instance.scroll[t.directionAxis]<r.limit[t.directionAxis]?("horizontal"===t.direction?t.transform(r.el,-t.instance.scroll[t.directionAxis],0):t.transform(r.el,0,-t.instance.scroll[t.directionAxis]),r.inView||(r.inView=!0,r.el.style.opacity=1,r.el.style.pointerEvents="all",r.el.setAttribute("data-".concat(t.name,"-section-inview"),""))):((r.inView||e)&&(r.inView=!1,r.el.style.opacity=0,r.el.style.pointerEvents="none",r.el.removeAttribute("data-".concat(t.name,"-section-inview"))),t.transform(r.el,0,0))})),this.getDirection&&this.addDirection(),this.getSpeed&&(this.addSpeed(),this.speedTs=Date.now()),this.detectElements(),this.transformElements(),this.hasScrollbar){var s=this.instance.scroll[this.directionAxis]/this.instance.limit[this.directionAxis]*this.scrollBarLimit[this.directionAxis];"horizontal"===this.direction?this.transform(this.scrollbarThumb,s,0):this.transform(this.scrollbarThumb,0,s)}f(c(i.prototype),"checkScroll",this).call(this),this.hasScrollTicking=!1}}},{key:"resize",value:function(){this.windowHeight=window.innerHeight,this.windowWidth=window.innerWidth,this.checkContext(),this.windowMiddle={x:this.windowWidth/2,y:this.windowHeight/2},this.update()}},{key:"updateDelta",value:function(t){var e,i=this[this.context]&&this[this.context].gestureDirection?this[this.context].gestureDirection:this.gestureDirection;e="both"===i?t.deltaX+t.deltaY:"vertical"===i?t.deltaY:"horizontal"===i?t.deltaX:t.deltaY,this.instance.delta[this.directionAxis]-=e*this.multiplier,this.instance.delta[this.directionAxis]<0&&(this.instance.delta[this.directionAxis]=0),this.instance.delta[this.directionAxis]>this.instance.limit[this.directionAxis]&&(this.instance.delta[this.directionAxis]=this.instance.limit[this.directionAxis])}},{key:"updateScroll",value:function(t){this.isScrolling||this.isDraggingScrollbar?this.instance.scroll[this.directionAxis]=G(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis],this.lerp):this.instance.scroll[this.directionAxis]>this.instance.limit[this.directionAxis]?this.setScroll(this.instance.scroll[this.directionAxis],this.instance.limit[this.directionAxis]):this.instance.scroll.y<0?this.setScroll(this.instance.scroll[this.directionAxis],0):this.setScroll(this.instance.scroll[this.directionAxis],this.instance.delta[this.directionAxis])}},{key:"addDirection",value:function(){this.instance.delta.y>this.instance.scroll.y?"down"!==this.instance.direction&&(this.instance.direction="down"):this.instance.delta.y<this.instance.scroll.y&&"up"!==this.instance.direction&&(this.instance.direction="up"),this.instance.delta.x>this.instance.scroll.x?"right"!==this.instance.direction&&(this.instance.direction="right"):this.instance.delta.x<this.instance.scroll.x&&"left"!==this.instance.direction&&(this.instance.direction="left")}},{key:"addSpeed",value:function(){this.instance.delta[this.directionAxis]!=this.instance.scroll[this.directionAxis]?this.instance.speed=(this.instance.delta[this.directionAxis]-this.instance.scroll[this.directionAxis])/Math.max(1,Date.now()-this.speedTs):this.instance.speed=0}},{key:"initScrollBar",value:function(){if(this.scrollbar=document.createElement("span"),this.scrollbarThumb=document.createElement("span"),this.scrollbar.classList.add("".concat(this.scrollbarClass)),this.scrollbarThumb.classList.add("".concat(this.scrollbarClass,"_thumb")),this.scrollbar.append(this.scrollbarThumb),this.scrollbarContainer?this.scrollbarContainer.append(this.scrollbar):document.body.append(this.scrollbar),this.getScrollBar=this.getScrollBar.bind(this),this.releaseScrollBar=this.releaseScrollBar.bind(this),this.moveScrollBar=this.moveScrollBar.bind(this),this.scrollbarThumb.addEventListener("mousedown",this.getScrollBar),window.addEventListener("mouseup",this.releaseScrollBar),window.addEventListener("mousemove",this.moveScrollBar),this.hasScrollbar=!1,"horizontal"==this.direction){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,"horizontal"===this.direction?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"reinitScrollBar",value:function(){if(this.hasScrollbar=!1,"horizontal"==this.direction){if(this.instance.limit.x+this.windowWidth<=this.windowWidth)return}else if(this.instance.limit.y+this.windowHeight<=this.windowHeight)return;this.hasScrollbar=!0,this.scrollbarBCR=this.scrollbar.getBoundingClientRect(),this.scrollbarHeight=this.scrollbarBCR.height,this.scrollbarWidth=this.scrollbarBCR.width,"horizontal"===this.direction?this.scrollbarThumb.style.width="".concat(this.scrollbarWidth*this.scrollbarWidth/(this.instance.limit.x+this.scrollbarWidth),"px"):this.scrollbarThumb.style.height="".concat(this.scrollbarHeight*this.scrollbarHeight/(this.instance.limit.y+this.scrollbarHeight),"px"),this.scrollbarThumbBCR=this.scrollbarThumb.getBoundingClientRect(),this.scrollBarLimit={x:this.scrollbarWidth-this.scrollbarThumbBCR.width,y:this.scrollbarHeight-this.scrollbarThumbBCR.height}}},{key:"destroyScrollBar",value:function(){this.scrollbarThumb.removeEventListener("mousedown",this.getScrollBar),window.removeEventListener("mouseup",this.releaseScrollBar),window.removeEventListener("mousemove",this.moveScrollBar),this.scrollbar.remove()}},{key:"getScrollBar",value:function(t){this.isDraggingScrollbar=!0,this.checkScroll(),this.html.classList.remove(this.scrollingClass),this.html.classList.add(this.draggingClass)}},{key:"releaseScrollBar",value:function(t){this.isDraggingScrollbar=!1,this.isScrolling&&this.html.classList.add(this.scrollingClass),this.html.classList.remove(this.draggingClass)}},{key:"moveScrollBar",value:function(t){var e=this;this.isDraggingScrollbar&&requestAnimationFrame((function(){var i=100*(t.clientX-e.scrollbarBCR.left)/e.scrollbarWidth*e.instance.limit.x/100,n=100*(t.clientY-e.scrollbarBCR.top)/e.scrollbarHeight*e.instance.limit.y/100;n>0&&n<e.instance.limit.y&&(e.instance.delta.y=n),i>0&&i<e.instance.limit.x&&(e.instance.delta.x=i)}))}},{key:"addElements",value:function(){var t=this;this.els={},this.parallaxElements={},this.el.querySelectorAll("[data-".concat(this.name,"]")).forEach((function(e,i){var n,r,s,a=X(e),o=Object.entries(t.sections).map((function(t){var e=m(t,2);return e[0],e[1]})).find((function(t){return a.includes(t.el)})),l=e.dataset[t.name+"Class"]||t.class,u="string"==typeof e.dataset[t.name+"Id"]?e.dataset[t.name+"Id"]:"el"+i,c=e.dataset[t.name+"Repeat"],h=e.dataset[t.name+"Call"],d=e.dataset[t.name+"Position"],p=e.dataset[t.name+"Delay"],f=e.dataset[t.name+"Direction"],g="string"==typeof e.dataset[t.name+"Sticky"],y=!!e.dataset[t.name+"Speed"]&&parseFloat(e.dataset[t.name+"Speed"])/10,v="string"==typeof e.dataset[t.name+"Offset"]?e.dataset[t.name+"Offset"].split(","):t.offset,_=e.dataset[t.name+"Target"],b=(s=void 0!==_?document.querySelector("".concat(_)):e).getBoundingClientRect();null===o||o.inView?(n=b.top+t.instance.scroll.y-W(s).y,r=b.left+t.instance.scroll.x-W(s).x):(n=b.top-W(o.el).y-W(s).y,r=b.left-W(o.el).x-W(s).x);var x=n+s.offsetHeight,T=r+s.offsetWidth,w={x:(T-r)/2+r,y:(x-n)/2+n};if(g){var k=e.getBoundingClientRect(),S=k.top,E=k.left,D={x:E-r,y:S-n};n+=window.innerHeight,r+=window.innerWidth,x=S+s.offsetHeight-e.offsetHeight-D[t.directionAxis],w={x:((T=E+s.offsetWidth-e.offsetWidth-D[t.directionAxis])-r)/2+r,y:(x-n)/2+n}}c="false"!=c&&(null!=c||t.repeat);var C=[0,0];if(v)if("horizontal"===t.direction){for(var P=0;P<v.length;P++)"string"==typeof v[P]?v[P].includes("%")?C[P]=parseInt(v[P].replace("%","")*t.windowWidth/100):C[P]=parseInt(v[P]):C[P]=v[P];r+=C[0],T-=C[1]}else{for(P=0;P<v.length;P++)"string"==typeof v[P]?v[P].includes("%")?C[P]=parseInt(v[P].replace("%","")*t.windowHeight/100):C[P]=parseInt(v[P]):C[P]=v[P];n+=C[0],x-=C[1]}var A={el:e,id:u,class:l,section:o,top:n,middle:w,bottom:x,left:r,right:T,offset:v,progress:0,repeat:c,inView:!1,call:h,speed:y,delay:p,position:d,target:s,direction:f,sticky:g};t.els[u]=A,e.classList.contains(l)&&t.setInView(t.els[u],u),(!1!==y||g)&&(t.parallaxElements[u]=A)}))}},{key:"addSections",value:function(){var t=this;this.sections={};var e=this.el.querySelectorAll("[data-".concat(this.name,"-section]"));0===e.length&&(e=[this.el]),e.forEach((function(e,i){var n="string"==typeof e.dataset[t.name+"Id"]?e.dataset[t.name+"Id"]:"section"+i,r=e.getBoundingClientRect(),s={x:r.left-1.5*window.innerWidth-W(e).x,y:r.top-1.5*window.innerHeight-W(e).y},a={x:s.x+r.width+2*window.innerWidth,y:s.y+r.height+2*window.innerHeight},o="string"==typeof e.dataset[t.name+"Persistent"];e.setAttribute("data-scroll-section-id",n);var l={el:e,offset:s,limit:a,inView:!1,persistent:o,id:n};t.sections[n]=l}))}},{key:"transform",value:function(t,e,i,n){var r;if(n){var s=W(t),a=G(s.x,e,n),o=G(s.y,i,n);r="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(a,",").concat(o,",0,1)")}else r="matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0,".concat(e,",").concat(i,",0,1)");t.style.webkitTransform=r,t.style.msTransform=r,t.style.transform=r}},{key:"transformElements",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.instance.scroll.x+this.windowWidth,r=this.instance.scroll.y+this.windowHeight,s={x:this.instance.scroll.x+this.windowMiddle.x,y:this.instance.scroll.y+this.windowMiddle.y};Object.entries(this.parallaxElements).forEach((function(a){var o=m(a,2),l=(o[0],o[1]),u=!1;if(t&&(u=0),l.inView||i)switch(l.position){case"top":case"left":u=e.instance.scroll[e.directionAxis]*-l.speed;break;case"elementTop":u=(r-l.top)*-l.speed;break;case"bottom":u=(e.instance.limit[e.directionAxis]-r+e.windowHeight)*l.speed;break;case"elementLeft":u=(n-l.left)*-l.speed;break;case"right":u=(e.instance.limit[e.directionAxis]-n+e.windowHeight)*l.speed;break;default:u=(s[e.directionAxis]-l.middle[e.directionAxis])*-l.speed}l.sticky&&(u=l.inView?"horizontal"===e.direction?e.instance.scroll.x-l.left+window.innerWidth:e.instance.scroll.y-l.top+window.innerHeight:"horizontal"===e.direction?e.instance.scroll.x<l.left-window.innerWidth&&e.instance.scroll.x<l.left-window.innerWidth/2?0:e.instance.scroll.x>l.right&&e.instance.scroll.x>l.right+100&&l.right-l.left+window.innerWidth:e.instance.scroll.y<l.top-window.innerHeight&&e.instance.scroll.y<l.top-window.innerHeight/2?0:e.instance.scroll.y>l.bottom&&e.instance.scroll.y>l.bottom+100&&l.bottom-l.top+window.innerHeight),!1!==u&&("horizontal"===l.direction||"horizontal"===e.direction&&"vertical"!==l.direction?e.transform(l.el,u,0,!t&&l.delay):e.transform(l.el,0,u,!t&&l.delay))}))}},{key:"scrollTo",value:function(t){var e,i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=parseInt(n.offset)||0,s=isNaN(parseInt(n.duration))?1e3:parseInt(n.duration),a=n.easing||[.25,0,.35,1],o=!!n.disableLerp,l=!!n.callback&&n.callback;if(a=it.apply(void 0,function(t){if(Array.isArray(t))return y(t)}(e=a)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),"string"==typeof t){if("top"===t)t=0;else if("bottom"===t)t=this.instance.limit.y;else if("left"===t)t=0;else if("right"===t)t=this.instance.limit.x;else if(!(t=document.querySelector(t)))return}else if("number"==typeof t)t=parseInt(t);else if(!t||!t.tagName)return void console.warn("`target` parameter is not valid");if("number"!=typeof t){if(!X(t).includes(this.el))return;var u,c=t.getBoundingClientRect(),h=c.top,d=c.left,p=X(t).find((function(t){return Object.entries(i.sections).map((function(t){var e=m(t,2);return e[0],e[1]})).find((function(e){return e.el==t}))}));u=p?W(p)[this.directionAxis]:-this.instance.scroll[this.directionAxis],r="horizontal"===this.direction?d+r-u:h+r-u}else r=t+r;var f=parseFloat(this.instance.delta[this.directionAxis]),v=Math.max(0,Math.min(r,this.instance.limit[this.directionAxis]))-f,_=function(t){o?"horizontal"===i.direction?i.setScroll(f+v*t,i.instance.delta.y):i.setScroll(i.instance.delta.x,f+v*t):i.instance.delta[i.directionAxis]=f+v*t};this.animatingScroll=!0,this.stopScrolling(),this.startScrolling();var b=Date.now();!function t(){var e=(Date.now()-b)/s;e>1?(_(1),i.animatingScroll=!1,0==s&&i.update(),l&&l()):(i.scrollToRaf=requestAnimationFrame(t),_(a(e)))}()}},{key:"update",value:function(){this.setScrollLimit(),this.addSections(),this.addElements(),this.detectElements(),this.updateScroll(),this.transformElements(!0),this.reinitScrollBar(),this.checkScroll(!0)}},{key:"startScroll",value:function(){this.stop=!1}},{key:"stopScroll",value:function(){this.stop=!0}},{key:"setScroll",value:function(t,e){this.instance=l(l({},this.instance),{},{scroll:{x:t,y:e},delta:{x:t,y:e},speed:0})}},{key:"destroy",value:function(){f(c(i.prototype),"destroy",this).call(this),this.stopScrolling(),this.html.classList.remove(this.smoothClass),this.vs.destroy(),this.destroyScrollBar(),window.removeEventListener("keydown",this.checkKey,!1)}}]),i}(_);const rt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,t),this.options=e,Object.assign(this,v,e),this.smartphone=v.smartphone,e.smartphone&&Object.assign(this.smartphone,e.smartphone),this.tablet=v.tablet,e.tablet&&Object.assign(this.tablet,e.tablet),this.smooth||"horizontal"!=this.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible"),this.tablet.smooth||"horizontal"!=this.tablet.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (tablet)"),this.smartphone.smooth||"horizontal"!=this.smartphone.direction||console.warn("🚨 `smooth:false` & `horizontal` direction are not yet compatible (smartphone)"),this.init()}return s(t,[{key:"init",value:function(){if(this.options.isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1||window.innerWidth<this.tablet.breakpoint,this.options.isTablet=this.options.isMobile&&window.innerWidth>=this.tablet.breakpoint,this.smooth&&!this.options.isMobile||this.tablet.smooth&&this.options.isTablet||this.smartphone.smooth&&this.options.isMobile&&!this.options.isTablet?this.scroll=new nt(this.options):this.scroll=new w(this.options),this.scroll.init(),window.location.hash){var t=window.location.hash.slice(1,window.location.hash.length),e=document.getElementById(t);e&&this.scroll.scrollTo(e)}}},{key:"update",value:function(){this.scroll.update()}},{key:"start",value:function(){this.scroll.startScroll()}},{key:"stop",value:function(){this.scroll.stopScroll()}},{key:"scrollTo",value:function(t,e){this.scroll.scrollTo(t,e)}},{key:"setScroll",value:function(t,e){this.scroll.setScroll(t,e)}},{key:"on",value:function(t,e){this.scroll.setEvents(t,e)}},{key:"off",value:function(t,e){this.scroll.unsetEvents(t,e)}},{key:"destroy",value:function(){this.scroll.destroy()}}]),t}()},1095:function(module,exports,__webpack_require__){var e;"undefined"!=typeof navigator&&(e=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,n,r=t.length;for(i=0;i<r;i+=1)for(var s in n=t[i].prototype)Object.prototype.hasOwnProperty.call(n,s)&&(e.prototype[s]=n[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,n=0,r=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<e;n+=1)r.push(i);return r}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!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<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),n=t.length;for(e=0;e<n;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,n){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=n<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,n){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=n<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var n,r,s,a,o,l,u,c;switch(l=i*(1-e),u=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),c=i*(1-(1-o)*e),a%6){case 0:n=i,r=c,s=l;break;case 1:n=u,r=i,s=l;break;case 2:n=l,r=i,s=c;break;case 3:n=l,r=u,s=i;break;case 4:n=c,r=l,s=i;break;case 5:n=i,r=l,s=u}return[n,r,s]}function RGBtoHSV(t,e,i){var n,r=Math.max(t,e,i),s=Math.min(t,e,i),a=r-s,o=0===r?0:a/r,l=r/255;switch(r){case s:n=0;break;case t:n=e-i+a*(e<i?6:0),n/=6*a;break;case e:n=i-t+2*a,n/=6*a;break;case i:n=t-e+4*a,n/=6*a}return[n,o,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,n){return t<0&&(t=0),e<0&&(e=0),n<0&&(n=0),"#"+i[t]+i[e]+i[n]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,i=1,n=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){r.onmessage({data:t})}};function a(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),n=URL.createObjectURL(i);return new Worker(n)}return t=e,r}((function(t){if(s.dataManager||(s.dataManager=function(){function t(r,s){var a,o,l,u,c,d,p=r.length;for(o=0;o<p;o+=1)if("ks"in(a=r[o])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(u=f.length,l=0;l<u;l+=1)if(f[l].pt.k.i)n(f[l].pt.k);else for(d=f[l].pt.k.length,c=0;c<d;c+=1)f[l].pt.k[c].s&&n(f[l].pt.k[c].s[0]),f[l].pt.k[c].e&&n(f[l].pt.k[c].e[0])}0===a.ty?(a.layers=e(a.refId,s),t(a.layers,s)):4===a.ty?i(a.shapes):5===a.ty&&h(a)}}function e(t,e){var i=function(t,e){for(var i=0,n=e.length;i<n;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,r,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)n(t[e].ks.k);else for(s=t[e].ks.k.length,r=0;r<s;r+=1)t[e].ks.k[r].s&&n(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&n(t[e].ks.k[r].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function n(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var s,a=function(){var t=[4,4,14];function e(t){var e,i,n,r=t.length;for(e=0;e<r;e+=1)5===t[e].ty&&(n=(i=t[e]).t.d,i.t.d={k:[{s:n,t:0}]})}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var n,s=i.assets.length;for(n=0;n<s;n+=1)i.assets[n].layers&&e(i.assets[n].layers)}}}(),o=(s=[4,7,99],function(t){if(t.chars&&!r(s,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(i(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var t=[5,7,15];function e(t){var e,i,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(i=void 0,"number"==typeof(i=t[e].t.p).a&&(i.a={a:0,k:i.a}),"number"==typeof i.p&&(i.p={a:0,k:i.p}),"number"==typeof i.r&&(i.r={a:0,k:i.r}))}return function(i){if(r(t,i.v)&&(e(i.layers),i.assets)){var n,s=i.assets.length;for(n=0;n<s;n+=1)i.assets[n].layers&&e(i.assets[n].layers)}}}(),u=function(){var t=[4,1,9];function e(t){var i,n,r,s=t.length;for(i=0;i<s;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(r=t[i].c.k.length,n=0;n<r;n+=1)t[i].c.k[n].s&&(t[i].c.k[n].s[0]/=255,t[i].c.k[n].s[1]/=255,t[i].c.k[n].s[2]/=255,t[i].c.k[n].s[3]/=255),t[i].c.k[n].e&&(t[i].c.k[n].e[0]/=255,t[i].c.k[n].e[1]/=255,t[i].c.k[n].e[2]/=255,t[i].c.k[n].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,n=t.length;for(i=0;i<n;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,n,r;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=t[i].ks.k.length,n=0;n<r;n+=1)t[i].ks.k[n].s&&(t[i].ks.k[n].s[0].c=t[i].closed),t[i].ks.k[n].e&&(t[i].ks.k[n].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,n,r,s,a,o,l=t.length;for(n=0;n<l;n+=1){if((i=t[n]).hasMask){var u=i.masksProperties;for(s=u.length,r=0;r<s;r+=1)if(u[r].pt.k.i)u[r].pt.k.c=u[r].cl;else for(o=u[r].pt.k.length,a=0;a<o;a+=1)u[r].pt.k[a].s&&(u[r].pt.k[a].s[0].c=u[r].cl),u[r].pt.k[a].e&&(u[r].pt.k[a].e[0].c=u[r].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(r(t,e.v)&&(i(e.layers),e.assets)){var n,s=e.assets.length;for(n=0;n<s;n+=1)e.assets[n].layers&&i(e.assets[n].layers)}}}();function h(t){0===t.t.a.length&&t.t.p}var d={completeData:function(i){i.__complete||(u(i),a(i),o(i),l(i),c(i),t(i.layers,i.assets),function(i,n){if(i){var r=0,s=i.length;for(r=0;r<s;r+=1)1===i[r].t&&(i[r].data.layers=e(i[r].data.refId,n),t(i[r].data.layers,n))}}(i.chars,i.assets),i.__complete=!0)}};return d.checkColors=u,d.checkChars=o,d.checkPathProperties=l,d.checkShapes=c,d.completeLayers=t,d}()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,n,r){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)s=t(a),n(s);else try{s=t(a),n(s)}catch(t){r&&r(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,i=e.id,r=n[i];n[i]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function o(t,e){var r="processId_"+(i+=1);return n[r]={onComplete:t,onError:e},r}return{loadAnimation:function(t,i,n){a();var r=o(i,n);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},loadData:function(t,i,n){a();var r=o(i,n);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})},completeAnimation:function(t,i,n){a();var r=o(i,n);e.postMessage({type:"complete",animation:t,id:r})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(t,e,i){var n="";if(t.e)n=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),n=e+r}else n=i,n+=t.u?t.u:"",n+=t.p;return n}function r(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function s(t){var e={assetData:t},i=n(t,this.assetsPath,this.path);return dataManager.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var n=t.length;for(i=0;i<n;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var i=n(e,this.assetsPath,this.path),r=createTag("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.src=i;var s={img:r,assetData:e};return s},createImageData:function(e){var i=n(e,this.assetsPath,this.path),r=createNS("image");isSafari?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var s={img:r,assetData:e};return s},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],n=0;n<i.length;n+=1)i[n](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,n=this._cbs[t].length;i<n;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,n-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),n={},r=0,s=0;s<i.length;s+=1)2===(e=i[s].split(":")).length&&(n[e[0]]=e[1].trim(),r+=1);if(0===r)throw new Error;return n}return function(e){for(var i=[],n=0;n<e.length;n+=1){var r=e[n],s={time:r.tm,duration:r.dr};try{s.payload=JSON.parse(e[n].cm)}catch(i){try{s.payload=t(e[n].cm)}catch(t){s.payload={name:e[n].cm}}}i.push(s)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},n=t.attributes;i.path=n.getNamedItem("data-animation-path")?n.getNamedItem("data-animation-path").value:n.getNamedItem("data-bm-path")?n.getNamedItem("data-bm-path").value:n.getNamedItem("bm-path")?n.getNamedItem("bm-path").value:"",i.animType=n.getNamedItem("data-anim-type")?n.getNamedItem("data-anim-type").value:n.getNamedItem("data-bm-type")?n.getNamedItem("data-bm-type").value:n.getNamedItem("bm-type")?n.getNamedItem("bm-type").value:n.getNamedItem("data-bm-renderer")?n.getNamedItem("data-bm-renderer").value:n.getNamedItem("bm-renderer")?n.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=n.getNamedItem("data-anim-loop")?n.getNamedItem("data-anim-loop").value:n.getNamedItem("data-bm-loop")?n.getNamedItem("data-bm-loop").value:n.getNamedItem("bm-loop")?n.getNamedItem("bm-loop").value:"";"false"===r?i.loop=!1:"true"===r?i.loop=!0:""!==r&&(i.loop=parseInt(r,10));var s=n.getNamedItem("data-anim-autoplay")?n.getNamedItem("data-anim-autoplay").value:n.getNamedItem("data-bm-autoplay")?n.getNamedItem("data-bm-autoplay").value:!n.getNamedItem("bm-autoplay")||n.getNamedItem("bm-autoplay").value;i.autoplay="false"!==s,i.name=n.getNamedItem("data-name")?n.getNamedItem("data-name").value:n.getNamedItem("data-bm-name")?n.getNamedItem("data-bm-name").value:n.getNamedItem("bm-name")?n.getNamedItem("bm-name").value:"","false"===(n.getNamedItem("data-anim-prerender")?n.getNamedItem("data-anim-prerender").value:n.getNamedItem("data-bm-prerender")?n.getNamedItem("data-bm-prerender").value:n.getNamedItem("bm-prerender")?n.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,n=this.animationData.layers,r=n.length,s=t.layers,a=s.length;for(i=0;i<a;i+=1)for(e=0;e<r;){if(n[e].id===s[i].id){n[e]=s[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,n="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,n)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var n=Number(t);if(isNaN(n)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(n,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=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"))}},AnimationItem.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[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,n=t.length;for(i=0;i<n;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,n=0,r=0,s=!0,a=!1;function o(t){for(var i=0,r=t.target;i<n;)e[i].animation===r&&(e.splice(i,1),i-=1,n-=1,r.isPaused||c()),i+=1}function l(t,i){if(!t)return null;for(var r=0;r<n;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var s=new AnimationItem;return h(s,t),s.setData(t,i),s}function u(){r+=1,f()}function c(){r-=1}function h(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",u),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),n+=1}function d(t){var o,l=t-i;for(o=0;o<n;o+=1)e[o].animation.advanceTime(l);i=t,r&&!a?window.requestAnimationFrame(d):s=!0}function p(t){i=t,window.requestAnimationFrame(d)}function f(){!a&&r&&s&&(window.requestAnimationFrame(p),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return h(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setSpeed(t,i)},t.setDirection=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(t,e,i){var n,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(n=0;n<s;n+=1)i&&r[n].setAttribute("data-bm-type",i),l(r[n],t);if(e&&0===s){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),a.appendChild(o),l(o,t)}},t.resize=function(){var t;for(t=0;t<n;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,r){var s;for(s=0;s<n;s+=1)e[s].animation.goToAndStop(t,i,r)},t.destroy=function(t){var i;for(i=n-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,f()},t.setVolume=function(t,i){var r;for(r=0;r<n;r+=1)e[r].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<n;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,n=[];for(t=0;t<i;t+=1)n.push(e[t].animation);return n},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,i,n,r,s){var a=s||("bez_"+t+"_"+i+"_"+n+"_"+r).replace(/\./g,"p");if(e[a])return e[a];var o=new u([t,i,n,r]);return e[a]=o,o}},e={},i=.1,n="function"==typeof Float32Array;function r(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function a(t){return 3*t}function o(t,e,i){return((r(e,i)*t+s(e,i))*t+a(e))*t}function l(t,e,i){return 3*r(e,i)*t*t+2*s(e,i)*t+a(e)}function u(t){this._p=t,this._mSampleValues=n?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(t){var e=this._p[0],i=this._p[1],n=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===i&&n===r?t:0===t?0:1===t?1:o(this._getTForX(t),i,r)},_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],r=this._mSampleValues,s=0,a=1;10!==a&&r[a]<=t;++a)s+=i;var u=s+(t-r[--a])/(r[a+1]-r[a])*i,c=l(u,e,n);return c>=.001?function(t,e,i,n){for(var r=0;r<4;++r){var s=l(e,i,n);if(0===s)return e;e-=(o(e,i,n)-t)/s}return e}(t,u,e,n):0===c?u:function(t,e,i,n,r){var s,a,l=0;do{(s=o(a=e+(i-e)/2,n,r)-t)>0?i=a:e=a}while(Math.abs(s)>1e-7&&++l<10);return a}(t,s,s+i,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var n=0,r=t,s=createSizedArray(r);return{newElement:function(){return n?s[n-=1]:e()},release:function(t){n===r&&(s=pooling.double(s),r*=2),i&&i(t),s[n]=t,n+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,i,n,r,s){var a=t*n+e*r+i*s-r*n-s*t-i*e;return a>-.001&&a<.001}var i=function(t,e,i,n){var r,s,a,o,l,u,c=getDefaultCurveSegments(),h=0,d=[],p=[],f=bezierLengthPool.newElement();for(a=i.length,r=0;r<c;r+=1){for(l=r/(c-1),u=0,s=0;s<a;s+=1)o=bmPow(1-l,3)*t[s]+3*bmPow(1-l,2)*l*i[s]+3*(1-l)*bmPow(l,2)*n[s]+bmPow(l,3)*e[s],d[s]=o,null!==p[s]&&(u+=bmPow(d[s]-p[s],2)),p[s]=d[s];u&&(h+=u=bmSqrt(u)),f.percents[r]=l,f.lengths[r]=h}return f.addedLength=h,f};function n(t){this.segmentLength=0,this.points=new Array(t)}function r(t,e){this.partialLength=t,this.point=e}var s,a=(s={},function(t,i,a,o){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[l]){var u,c,h,d,p,f,m,g=getDefaultCurveSegments(),y=0,v=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(g=2);var _=new n(g);for(h=a.length,u=0;u<g;u+=1){for(m=createSizedArray(h),p=u/(g-1),f=0,c=0;c<h;c+=1)d=bmPow(1-p,3)*t[c]+3*bmPow(1-p,2)*p*(t[c]+a[c])+3*(1-p)*bmPow(p,2)*(i[c]+o[c])+bmPow(p,3)*i[c],m[c]=d,null!==v&&(f+=bmPow(m[c]-v[c],2));y+=f=bmSqrt(f),_.points[u]=new r(f,m),v=m}_.segmentLength=y,s[l]=_}return s[l]});function o(t,e){var i=e.percents,n=e.lengths,r=i.length,s=bmFloor((r-1)*t),a=t*e.addedLength,o=0;if(s===r-1||0===s||a===n[s])return i[s];for(var l=n[s]>a?-1:1,u=!0;u;)if(n[s]<=a&&n[s+1]>a?(o=(a-n[s])/(n[s+1]-n[s]),u=!1):s+=l,s<0||s>=r-1){if(s===r-1)return i[s];u=!1}return i[s]+(i[s+1]-i[s])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,n=segmentsLengthPool.newElement(),r=t.c,s=t.v,a=t.o,o=t.i,l=t._length,u=n.lengths,c=0;for(e=0;e<l-1;e+=1)u[e]=i(s[e],s[e+1],a[e],o[e+1]),c+=u[e].addedLength;return r&&l&&(u[e]=i(s[e],s[0],a[e],o[0]),c+=u[e].addedLength),n.totalLength=c,n},getNewSegment:function(e,i,n,r,s,a,u){s<0?s=0:s>1&&(s=1);var c,h=o(s,u),d=o(a=a>1?1:a,u),p=e.length,f=1-h,m=1-d,g=f*f*f,y=h*f*f*3,v=h*h*f*3,_=h*h*h,b=f*f*m,x=h*f*m+f*h*m+f*f*d,T=h*h*m+f*h*d+h*f*d,w=h*h*d,k=f*m*m,S=h*m*m+f*d*m+f*m*d,E=h*d*m+f*d*d+h*m*d,D=h*d*d,C=m*m*m,P=d*m*m+m*d*m+m*m*d,A=d*d*m+m*d*d+d*m*d,M=d*d*d;for(c=0;c<p;c+=1)l[4*c]=t.round(1e3*(g*e[c]+y*n[c]+v*r[c]+_*i[c]))/1e3,l[4*c+1]=t.round(1e3*(b*e[c]+x*n[c]+T*r[c]+w*i[c]))/1e3,l[4*c+2]=t.round(1e3*(k*e[c]+S*n[c]+E*r[c]+D*i[c]))/1e3,l[4*c+3]=t.round(1e3*(C*e[c]+P*n[c]+A*r[c]+M*i[c]))/1e3;return l},getPointInSegment:function(e,i,n,r,s,a){var l=o(s,a),u=1-l;return[t.round(1e3*(u*u*u*e[0]+(l*u*u+u*l*u+u*u*l)*n[0]+(l*l*u+u*l*l+l*u*l)*r[0]+l*l*l*i[0]))/1e3,t.round(1e3*(u*u*u*e[1]+(l*u*u+u*l*u+u*u*l)*n[1]+(l*l*u+u*l*l+l*u*l)*r[1]+l*l*l*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,n,r,s,a,o,l,u,c){if(0===r&&0===o&&0===c)return e(i,n,s,a,l,u);var h,d=t.sqrt(t.pow(s-i,2)+t.pow(a-n,2)+t.pow(o-r,2)),p=t.sqrt(t.pow(l-i,2)+t.pow(u-n,2)+t.pow(c-r,2)),f=t.sqrt(t.pow(l-s,2)+t.pow(u-a,2)+t.pow(c-o,2));return(h=d>p?d>f?d-p-f:f-p-d:f>p?f-p-d:p-d-f)>-1e-4&&h<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,n=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var r,s,a,o,l,u,c,h,d,p=e.lastIndex,f=p,m=this.keyframes.length-1,g=!0;g;){if(r=this.keyframes[f],s=this.keyframes[f+1],f===m-1&&t>=s.t-n){r.h&&(r=s),p=0;break}if(s.t-n>t){p=f;break}f<m-1?f+=1:(p=0,g=!1)}a=this.keyframesMetadata[f]||{};var y,v=s.t-n,_=r.t-n;if(r.to){a.bezierData||(a.bezierData=bez.buildBezierData(r.s,s.s||r.e,r.to,r.ti));var b=a.bezierData;if(t>=v||t<_){var x=t>=v?b.points.length-1:0;for(l=b.points[x].point.length,o=0;o<l;o+=1)i[o]=b.points[x].point[o]}else{a.__fnct?d=a.__fnct:(d=BezierFactory.getBezierEasing(r.o.x,r.o.y,r.i.x,r.i.y,r.n).get,a.__fnct=d),u=d((t-_)/(v-_));var T,w=b.segmentLength*u,k=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLength:0;for(h=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,g=!0,c=b.points.length;g;){if(k+=b.points[h].partialLength,0===w||0===u||h===b.points.length-1){for(l=b.points[h].point.length,o=0;o<l;o+=1)i[o]=b.points[h].point[o];break}if(w>=k&&w<k+b.points[h+1].partialLength){for(T=(w-k)/b.points[h+1].partialLength,l=b.points[h].point.length,o=0;o<l;o+=1)i[o]=b.points[h].point[o]+(b.points[h+1].point[o]-b.points[h].point[o])*T;break}h<c-1?h+=1:g=!1}e._lastPoint=h,e._lastAddedLength=k-b.points[h].partialLength,e._lastKeyframeIndex=f}}else{var S,E,D,C,P;if(m=r.s.length,y=s.s||r.e,this.sh&&1!==r.h)t>=v?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=_?(i[0]=r.s[0],i[1]=r.s[1],i[2]=r.s[2]):quaternionToEuler(i,slerp(createQuaternion(r.s),createQuaternion(y),(t-_)/(v-_)));else for(f=0;f<m;f+=1)1!==r.h&&(t>=v?u=1:t<_?u=0:(r.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[f]?d=a.__fnct[f]:(S=void 0===r.o.x[f]?r.o.x[0]:r.o.x[f],E=void 0===r.o.y[f]?r.o.y[0]:r.o.y[f],D=void 0===r.i.x[f]?r.i.x[0]:r.i.x[f],C=void 0===r.i.y[f]?r.i.y[0]:r.i.y[f],d=BezierFactory.getBezierEasing(S,E,D,C).get,a.__fnct[f]=d)):a.__fnct?d=a.__fnct:(S=r.o.x,E=r.o.y,D=r.i.x,C=r.i.y,d=BezierFactory.getBezierEasing(S,E,D,C).get,r.keyframeMetadata=d),u=d((t-_)/(v-_)))),y=s.s||r.e,P=1===r.h?r.s[f]:r.s[f]+(y[f]-r.s[f])*u,"multidimensional"===this.propType?i[f]=P:i=P}return e.lastIndex=p,i}function slerp(t,e,i){var n,r,s,a,o,l=[],u=t[0],c=t[1],h=t[2],d=t[3],p=e[0],f=e[1],m=e[2],g=e[3];return(r=u*p+c*f+h*m+d*g)<0&&(r=-r,p=-p,f=-f,m=-m,g=-g),1-r>1e-6?(n=Math.acos(r),s=Math.sin(n),a=Math.sin((1-i)*n)/s,o=Math.sin(i*n)/s):(a=1-i,o=i),l[0]=a*u+o*p,l[1]=a*c+o*f,l[2]=a*h+o*m,l[3]=a*d+o*g,l}function quaternionToEuler(t,e){var i=e[0],n=e[1],r=e[2],s=e[3],a=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r),o=Math.asin(2*i*n+2*r*s),l=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,n=t[2]*degToRads,r=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(n/2),o=Math.sin(e/2),l=Math.sin(i/2),u=Math.sin(n/2);return[o*l*a+r*s*u,o*s*a+r*l*u,r*l*a-o*s*u,r*s*a-o*l*u]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var n=this.interpolateValue(t,this._caching);this.pv=n}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,n=this.v.length;i<n;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,n){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,n){var r;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=n,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=e.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),r=0;r<s;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,n){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,n){var r;this.propType="multidimensional";var s,a,o,l,u=e.k.length;for(r=0;r<u-1;r+=1)e.k[r].to&&e.k[r].s&&e.k[r+1]&&e.k[r+1].s&&(s=e.k[r].s,a=e.k[r+1].s,o=e.k[r].to,l=e.k[r].ti,(2===s.length&&(s[0]!==a[0]||s[1]!==a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+o[0],s[1]+o[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===s.length&&(s[0]!==a[0]||s[1]!==a[1]||s[2]!==a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+o[0],s[1]+o[1],s[2]+o[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(e.k[r].to=null,e.k[r].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===s.length||s[2]===a[2]&&0===o[2]&&0===l[2])&&(e.k[r].to=null,e.k[r].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=n,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),r=0;r<c;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory={getProp:function(t,e,i,n,r){var s;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])s=new MultiDimensionalProperty(t,e,n,r);else switch(i){case 0:s=new KeyframedValueProperty(t,e,n,r);break;case 1:s=new KeyframedMultidimensionalProperty(t,e,n,r)}else s=new ValueProperty(t,e,n,r);return s.effectsSequence.length&&r.addDynamicProperty(s),s}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,n,r){var s;switch(this._length=Math.max(this._length,n+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[n]||s[n]&&!r)&&(s[n]=pointPool.newElement()),s[n][0]=t,s[n][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,n,r,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,n,"o",a,o),this.setXYAt(r,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,n=this.i,r=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),r=1);var s,a=this._length-1,o=this._length;for(s=r;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],n[a][0],n[a][1],i[a][0],i[a][1],s,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1})),factory.clone=function(t){var e,i=factory.newElement(),n=void 0===t._length?t.v.length:t._length;for(i.setLength(n),i.c=t.c,e=0;e<n;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var n,r,s,a,o,l,u,c,h,d=i.lastIndex,p=this.keyframes;if(t<p[0].t-this.offsetTime)n=p[0].s[0],s=!0,d=0;else if(t>=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],s=!0;else{for(var f,m,g,y=d,v=p.length-1,_=!0;_&&(f=p[y],!((m=p[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:_=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(s=1===f.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var b;g.__fnct?b=g.__fnct:(b=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=b),c=b((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}r=m.s?m.s[0]:f.e[0]}n=f.s[0]}for(l=e._length,u=n.i[0].length,i.lastIndex=d,a=0;a<l;a+=1)for(o=0;o<u;o+=1)h=s?n.i[a][o]:n.i[a][o]+(r.i[a][o]-n.i[a][o])*c,e.i[a][o]=h,h=s?n.o[a][o]:n.o[a][o]+(r.o[a][o]-n.o[a][o])*c,e.o[a][o]=h,h=s?n.v[a][o]:n.v[a][o]+(r.v[a][o]-n.v[a][o])*c,e.v[a][o]=h}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<i&&e<i||r>n&&e>n)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function n(){this.paths=this.localShapeCollection}function r(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,n=t._length;for(i=0;i<n;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,r,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=n,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=r,a.prototype.addEffect=o,l.prototype.getValue=s,l.prototype.interpolateShape=e,l.prototype.setVValue=r,l.prototype.addEffect=o;var u=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-r,a.v[1][0]=s?e+n:e-n,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+r,a.v[3][0]=s?e-n:e+n,a.v[3][1]=i,a.i[0][0]=s?e-n*t:e+n*t,a.i[0][1]=i-r,a.i[1][0]=s?e+n:e-n,a.i[1][1]=i-r*t,a.i[2][0]=s?e+n*t:e-n*t,a.i[2][1]=i+r,a.i[3][0]=s?e-n:e+n,a.i[3][1]=i+r*t,a.o[0][0]=s?e+n*t:e-n*t,a.o[0][1]=i-r,a.o[1][0]=s?e+n:e-n,a.o[1][1]=i+r*t,a.o[2][0]=s?e-n*t:e+n*t,a.o[2][1]=i+r,a.o[3][0]=s?e-n:e+n,a.o[3][1]=i-r*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,n,r=2*Math.floor(this.pt.v),s=2*Math.PI/r,a=!0,o=this.or.v,l=this.ir.v,u=this.os.v,c=this.is.v,h=2*Math.PI*o/(2*r),d=2*Math.PI*l/(2*r),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){i=a?u:c,n=a?h:d;var m=(e=a?o:l)*Math.cos(p),g=e*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*n*i*f,g-v*n*i*f,m+y*n*i*f,g+v*n*i*f,t,!0),a=!a,p+=s*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,n=this.or.v,r=this.os.v,s=2*Math.PI*n/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=n*Math.cos(a),u=n*Math.sin(a),c=0===l&&0===u?0:u/Math.sqrt(l*l+u*u),h=0===l&&0===u?0:-l/Math.sqrt(l*l+u*u);l+=+this.p.v[0],u+=+this.p.v[1],this.v.setTripleAt(l,u,l-c*s*r*o,u-h*s*r*o,l+c*s*r*o,u+h*s*r*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,n=this.s.v[1]/2,r=bmMin(i,n,this.r.v),s=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+r,t+i,e-n+s,0,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-s,t+i,e+n-r,1,!0),0!==r?(this.v.setTripleAt(t+i-r,e+n,t+i-r,e+n,t+i-s,e+n,2,!0),this.v.setTripleAt(t-i+r,e+n,t-i+s,e+n,t-i+r,e+n,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-r,t-i,e+n-s,4,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+s,t-i,e-n+r,5,!0),this.v.setTripleAt(t-i+r,e-n,t-i+r,e-n,t-i+s,e-n,6,!0),this.v.setTripleAt(t+i-r,e-n,t+i-s,e-n,t+i-r,e-n,7,!0)):(this.v.setTripleAt(t-i,e+n,t-i+s,e+n,t-i,e+n,2),this.v.setTripleAt(t-i,e-n,t-i,e-n+s,t-i,e-n,3))):(this.v.setTripleAt(t+i,e-n+r,t+i,e-n+s,t+i,e-n+r,0,!0),0!==r?(this.v.setTripleAt(t+i-r,e-n,t+i-r,e-n,t+i-s,e-n,1,!0),this.v.setTripleAt(t-i+r,e-n,t-i+s,e-n,t-i+r,e-n,2,!0),this.v.setTripleAt(t-i,e-n+r,t-i,e-n+r,t-i,e-n+s,3,!0),this.v.setTripleAt(t-i,e+n-r,t-i,e+n-s,t-i,e+n-r,4,!0),this.v.setTripleAt(t-i+r,e+n,t-i+r,e+n,t-i+s,e+n,5,!0),this.v.setTripleAt(t+i-r,e+n,t+i-s,e+n,t+i-r,e+n,6,!0),this.v.setTripleAt(t+i,e+n-r,t+i,e+n-r,t+i,e+n-s,7,!0)):(this.v.setTripleAt(t-i,e-n,t-i+s,e-n,t-i,e-n,1,!0),this.v.setTripleAt(t-i,e+n,t-i,e+n-s,t-i,e+n,2,!0),this.v.setTripleAt(t+i,e+n,t+i-s,e+n,t+i,e+n,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}(),d={getShapeProp:function(t,e,i){var n;return 3===i||4===i?n=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?n=new h(t,e):6===i?n=new u(t,e):7===i&&(n=new c(t,e)),n.k&&t.addDynamicProperty(n),n},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return d}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,n=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(1,0,0,0,0,n,-r,0,0,r,n,0,0,0,0,1)}function o(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,0,r,0,0,1,0,0,-r,0,n,0,0,0,0,1)}function l(i){if(0===i)return this;var n=t(i),r=e(i);return this._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function u(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(i(t),i(e))}function h(n,r){var s=t(r),a=e(r);return this._t(s,a,0,0,-a,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(n),1,0,0,0,0,1,0,0,0,0,1)._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function d(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function p(t,e,i,n,r,s,a,o,l,u,c,h,d,p,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=n,this.props[4]=r,this.props[5]=s,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=u,this.props[10]=c,this.props[11]=h,this.props[12]=d,this.props[13]=p,this.props[14]=f,this.props[15]=m,this}function f(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,n,r,s,a,o,l,u,c,h,d,p,f,m){var g=this.props;if(1===t&&0===e&&0===i&&0===n&&0===r&&1===s&&0===a&&0===o&&0===l&&0===u&&1===c&&0===h)return g[12]=g[12]*t+g[15]*d,g[13]=g[13]*s+g[15]*p,g[14]=g[14]*c+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],_=g[2],b=g[3],x=g[4],T=g[5],w=g[6],k=g[7],S=g[8],E=g[9],D=g[10],C=g[11],P=g[12],A=g[13],M=g[14],I=g[15];return g[0]=y*t+v*r+_*l+b*d,g[1]=y*e+v*s+_*u+b*p,g[2]=y*i+v*a+_*c+b*f,g[3]=y*n+v*o+_*h+b*m,g[4]=x*t+T*r+w*l+k*d,g[5]=x*e+T*s+w*u+k*p,g[6]=x*i+T*a+w*c+k*f,g[7]=x*n+T*o+w*h+k*m,g[8]=S*t+E*r+D*l+C*d,g[9]=S*e+E*s+D*u+C*p,g[10]=S*i+E*a+D*c+C*f,g[11]=S*n+E*o+D*h+C*m,g[12]=P*t+A*r+M*l+I*d,g[13]=P*e+A*s+M*u+I*p,g[14]=P*i+A*a+M*c+I*f,g[15]=P*n+A*o+M*h+I*m,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function _(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function T(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function w(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function k(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,n=-this.props[4]/t,r=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=n,o.props[5]=r,o.props[12]=s,o.props[13]=a,o}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function D(t){var e,i=t.length,n=[];for(e=0;e<i;e+=1)n[e]=E(t[e]);return n}function C(t,e,i){var n=createTypedArray("float32",6);if(this.isIdentity())n[0]=t[0],n[1]=t[1],n[2]=e[0],n[3]=e[1],n[4]=i[0],n[5]=i[1];else{var r=this.props[0],s=this.props[1],a=this.props[4],o=this.props[5],l=this.props[12],u=this.props[13];n[0]=t[0]*r+t[1]*a+l,n[1]=t[0]*s+t[1]*o+u,n[2]=e[0]*r+e[1]*a+l,n[3]=e[0]*s+e[1]*o+u,n[4]=i[0]*r+i[1]*a+l,n[5]=i[0]*s+i[1]*o+u}return n}function P(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function A(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function M(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=n(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function I(t){return t<1e-6&&t>0||t>-1e-6&&t<0?n(1e4*t)/1e4:t}function L(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=h,this.shear=u,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=x,this.applyToX=T,this.applyToY=w,this.applyToZ=k,this.applyToPointArray=P,this.applyToTriplePoints=C,this.applyToPointStringified=A,this.toCSS=M,this.to2dCSS=L,this.clone=_,this.cloneFromProps=b,this.equals=v,this.inversePoints=D,this.inversePoint=E,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var n=e[i].split("=");if(decodeURIComponent(n[0])==t)return decodeURIComponent(n[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"===_typeof$3(exports)||__webpack_require__.amdO}catch(t){}var ShapeModifiers=(t={},e={},t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,n){return new e[t](i,n)},t),t,e;function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,n,r){var s=[];e<=1?s.push({s:t,e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],u=s.length;for(a=0;a<u;a+=1){var c,h;(o=s[a]).e*r<n||o.s*r>n+i||(c=o.s*r<=n?0:(o.s*r-n)/i,h=o.e*r>=n+i?1:(o.e*r-n)/i,l.push([c,h]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,n,r;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(i=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,l,u,c,h,d=this.shapes.length,p=0;if(i===e)for(r=0;r<d;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(r=0;r<d;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var f,m,g=[];for(r=0;r<d;r+=1)if((f=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(l=(n=f.shape.paths)._length,h=0,!f.shape._mdf&&f.pathsData.length)h=f.totalShapeLength;else{for(u=this.releasePathsData(f.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(n.shapes[o]),u.push(c),h+=c.totalLength;f.totalShapeLength=h,f.pathsData=u}p+=h,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=e,_=i,b=0;for(r=d-1;r>=0;r-=1)if((f=this.shapes[r]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(e,i,f.totalShapeLength,b,p),b+=f.totalShapeLength):y=[[v,_]],l=y.length,o=0;o<l;o+=1){v=y[o][0],_=y[o][1],g.length=0,_<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*_}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(_-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(_-1)}));var x=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var T=x.pop();this.addPaths(x,m),x=this.addShapes(f,g[1],T)}else this.addPaths(x,m),x=this.addShapes(f,g[1]);this.addPaths(x,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,n,r,s,a){r.setXYAt(e[0],e[1],"o",s),r.setXYAt(i[0],i[1],"i",s+1),a&&r.setXYAt(t[0],t[1],"v",s),r.setXYAt(n[0],n[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,n){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),n&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var n,r,s,a,o,l,u,c,h=t.pathsData,d=t.shape.paths.shapes,p=t.shape.paths._length,f=0,m=[],g=!0;for(i?(o=i._length,c=i._length):(i=shapePool.newElement(),o=0,c=0),m.push(i),n=0;n<p;n+=1){for(l=h[n].lengths,i.c=d[n].c,s=d[n].c?l.length:l.length+1,r=1;r<s;r+=1)if(f+(a=l[r-1]).addedLength<e.s)f+=a.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[r],d[n].v[r],i,o,g),g=!1):(u=bez.getNewSegment(d[n].v[r-1],d[n].v[r],d[n].o[r-1],d[n].i[r],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,l[r-1]),this.addSegmentFromArray(u,i,o,g),g=!1,i.c=!1),f+=a.addedLength,o+=1}if(d[n].c&&l.length){if(a=l[r-1],f<=e.e){var y=l[r-1].addedLength;e.s<=f&&e.e>=f+y?(this.addSegment(d[n].v[r-1],d[n].o[r-1],d[n].i[0],d[n].v[0],i,o,g),g=!1):(u=bez.getNewSegment(d[n].v[r-1],d[n].v[0],d[n].o[r-1],d[n].i[0],(e.s-f)/y,(e.e-f)/y,l[r-1]),this.addSegmentFromArray(u,i,o,g),g=!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<p-1&&(i=shapePool.newElement(),g=!0,m.push(i),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i=e/100,n=[0,0],r=t._length,s=0;for(s=0;s<r;s+=1)n[0]+=t.v[s][0],n[1]+=t.v[s][1];n[0]/=r,n[1]/=r;var a,o,l,u,c,h,d=shapePool.newElement();for(d.c=t.c,s=0;s<r;s+=1)a=t.v[s][0]+(n[0]-t.v[s][0])*i,o=t.v[s][1]+(n[1]-t.v[s][1])*i,l=t.o[s][0]+(n[0]-t.o[s][0])*-i,u=t.o[s][1]+(n[1]-t.o[s][1])*-i,c=t.i[s][0]+(n[0]-t.i[s][0])*-i,h=t.i[s][1]+(n[1]-t.i[s][1])*-i,d.setTripleAt(a,o,l,u,c,h,s);return d},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var n,r=e.or.k.length;for(n=0;n<r;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var n,r;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,r=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=[],r=[];var s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(n[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[0]=s.getValueAtTime(s.keyframes[0].t/i,0),r[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(n[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(n=[s.pv,a.pv],r[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),r[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else n=r=t;this.v.rotate(-Math.atan2(n[1]-r[1],n[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,n){return new e(t,i,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var n=e*e-4*t*i;if(n<0)return[];var r=-e/(2*t);if(0===n)return[r];var s=Math.sqrt(n)/(2*t);return[r-s,r+s]}function polynomialCoefficients(t,e,i,n){return[3*e-t-3*i+n,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,n,r){r&&pointEqual(t,e)&&(e=lerpPoint(t,n,1/3)),r&&pointEqual(i,n)&&(i=lerpPoint(t,n,2/3));var s=polynomialCoefficients(t[0],e[0],i[0],n[0]),a=polynomialCoefficients(t[1],e[1],i[1],n[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,i,n]}function extrema(t,e){var i=t.points[0][e],n=t.points[t.points.length-1][e];if(i>n){var r=n;n=i,i=r}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<i?i=o:o>n&&(n=o)}return{min:i,max:n}}function intersectData(t,e,i){var n=t.boundingBox();return{cx:n.cx,cy:n.cy,width:n.width,height:n.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,n,r,s){if(boxIntersect(t,e))if(i>=s||t.width<=n&&t.height<=n&&e.width<=n&&e.height<=n)r.push([t.t,e.t]);else{var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],i+1,n,r,s),intersectsImpl(a[0],o[1],i+1,n,r,s),intersectsImpl(a[1],o[0],i+1,n,r,s),intersectsImpl(a[1],o[1],i+1,n,r,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,n){var r=[t[0],t[1],1],s=[e[0],e[1],1],a=[i[0],i[1],1],o=[n[0],n[1],1],l=crossProduct(crossProduct(r,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,n,r,s,a){var o=i-Math.PI/2,l=i+Math.PI/2,u=e[0]+Math.cos(i)*n*r,c=e[1]-Math.sin(i)*n*r;t.setTripleAt(u,c,u+Math.cos(o)*s,c-Math.sin(o)*s,u+Math.cos(l)*a,c-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],n=.5*-Math.PI;return[Math.cos(n)*i[0]-Math.sin(n)*i[1],Math.sin(n)*i[0]+Math.cos(n)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,n=(e+1)%t.length(),r=getPerpendicularVector(t.v[i],t.v[n]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function zigZagCorner(t,e,i,n,r,s,a){var o=getProjectingAngle(e,i),l=e.v[i%e._length],u=e.v[0===i?e._length-1:i-1],c=e.v[(i+1)%e._length],h=2===s?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,d=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[i%e._length],o,a,n,d/(2*(r+1)),h/(2*(r+1)),s)}function zigZagSegment(t,e,i,n,r,s){for(var a=0;a<n;a+=1){var o=(a+1)/(n+1),l=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,u=e.normalAngle(o);setPoint(t,e.point(o),u,s,i,l/(2*(n+1)),l/(2*(n+1)),r),s=-s}return s}function linearOffset(t,e,i){var n=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,n,i),polarOffset(e,n,i)]}function offsetSegment(t,e){var i,n,r,s,a,o,l;i=(l=linearOffset(t.points[0],t.points[1],e))[0],n=l[1],r=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],o=l[1];var u=lineIntersection(i,n,r,s);null===u&&(u=n);var c=lineIntersection(a,o,r,s);return null===c&&(c=a),new PolynomialBezier(i,u,c,o)}function joinLines(t,e,i,n,r){var s=e.points[3],a=i.points[0];if(3===n)return s;if(pointEqual(s,a))return s;if(2===n){var o=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,u=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),c=u?pointDistance(u,s):pointDistance(s,a)/2,h=polarOffset(s,o,2*c*roundCorner);return t.setXYAt(h[0],h[1],"o",t.length()-1),h=polarOffset(a,l,2*c*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],h[0],h[1],t.length()),a}var d=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,a,pointEqual(a,i.points[1])?i.points[3]:i.points[1]);return d&&pointDistance(d,s)<r?(t.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],t.length()),d):s}function getIntersection(t,e){var i=t.intersections(e);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),n=e.slice(),r=getIntersection(t[t.length-1],e[0]);return r&&(i[t.length-1]=t[t.length-1].split(r[0])[0],n[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=getIntersection(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[i,n]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,n,r,s,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return i=(r=t.split(a[0]))[0],n=r[1],[offsetSegment(i,e),offsetSegment(n,e)];i=(r=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(r=r[1].split(o))[0],n=r[1],[offsetSegment(i,e),offsetSegment(s,e),offsetSegment(n,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",n="normal",r=e.length,s=0;s<r;s+=1)switch(e[s].toLowerCase()){case"italic":n="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:n,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,n,r,s){var a=s?-1:1,o=n.s.v[0]+(1-n.s.v[0])*(1-r),l=n.s.v[1]+(1-n.s.v[1])*(1-r);t.translate(n.p.v[0]*a*r,n.p.v[1]*a*r,n.p.v[2]),e.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),e.rotate(-n.r.v*a*r),e.translate(n.a.v[0],n.a.v[1],n.a.v[2]),i.translate(-n.a.v[0],-n.a.v[1],n.a.v[2]),i.scale(s?1/o:o,s?1/l:l),i.translate(n.a.v[0],n.a.v[1],n.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,n){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=n,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,n=t.length;for(i=0;i<n;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,n,r,s,a=!1;if(this._mdf||t){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var u={it:this.cloneElements(this._elements),ty:"gr"};u.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,u),this._groups.splice(0,0,u),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,n=0;n<=this._groups.length-1;n+=1){if(o=s<l,this._groups[n]._render=o,this.changeGroupRender(this._groups[n].it,o),!o){var c=this.elemsData[n].it,h=c[c.length-1];0!==h.transform.op.v?(h.transform.op._mdf=!0,h.transform.op.v=0):h.transform.op._mdf=!1}s+=1}this._currentCopies=l;var d=this.o.v,p=d%1,f=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,_,b=0;if(d>0){for(;b<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),b+=p)}else if(d<0){for(;b>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),b-=p)}for(n=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;s;){if(_=(i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==b){for((0!==n&&1===r||n!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<_;v+=1)i[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<_;v+=1)i[v]=this.matrix.props[v];b+=1,s-=1,n+=r}}else for(s=this._currentCopies,n=0,r=1;s;)i=(e=this.elemsData[n].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,n+=r;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,n=shapePool.newElement();n.c=t.c;var r,s,a,o,l,u,c,h,d,p,f,m,g=t._length,y=0;for(i=0;i<g;i+=1)r=t.v[i],a=t.o[i],s=t.i[i],r[0]===a[0]&&r[1]===a[1]&&r[0]===s[0]&&r[1]===s[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],u=(l=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=f=r[0]+(o[0]-r[0])*u,h=m=r[1]-(r[1]-o[1])*u,d=c-(c-r[0])*roundCorner,p=h-(h-r[1])*roundCorner,n.setTripleAt(c,h,d,p,f,m,y),y+=1,o=i===g-1?t.v[0]:t.v[i+1],u=(l=Math.sqrt(Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=d=r[0]+(o[0]-r[0])*u,h=p=r[1]+(o[1]-r[1])*u,f=c-(c-r[0])*roundCorner,m=h-(h-r[1])*roundCorner,n.setTripleAt(c,h,d,p,f,m,y),y+=1):(n.setTripleAt(r[0],r[1],a[0],a[1],s[0],s[1],y),y+=1):(n.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var n=Math.sqrt(i);return floatZero(n)?n>0&&n<1?[e]:[]:[e-n,e+n].filter((function(t){return t>0&&t<1}))},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),n=lerpPoint(this.points[2],this.points[3],t),r=lerpPoint(e,i,t),s=lerpPoint(i,n,t),a=lerpPoint(r,s,t);return[new PolynomialBezier(this.points[0],e,r,a,!0),new PolynomialBezier(a,s,n,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var n=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,n,i),n},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,n){var r=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(r-=1),0===r)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,i,n,a);for(var l=0;l<r;l+=1)a=zigZagSegment(s,o,e,i,n,-a),o=l!==r-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%r):null,zigZagCorner(s,t,l+1,e,i,n,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.amplitude.v,u=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l,u,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,n){var r=shapePool.newElement();r.c=t.c;var s,a,o,l=t.length();t.c||(l-=1);var u=[];for(s=0;s<l;s+=1)o=PolynomialBezier.shapeSegment(t,s),u.push(offsetSegmentSplit(o,e));if(!t.c)for(s=l-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),u.push(offsetSegmentSplit(o,e));u=pruneIntersections(u);var c=null,h=null;for(s=0;s<u.length;s+=1){var d=u[s];for(h&&(c=joinLines(r,h,d[0],i,n)),h=d[d.length-1],a=0;a<d.length;a+=1)o=d[a],c&&pointEqual(o.points[0],c)?r.setXYAt(o.points[1][0],o.points[1][1],"o",r.length()-1):r.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],r.length()),r.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],r.length()),c=o.points[3]}return u.length&&joinLines(r,h,u[0][0],i,n),r},OffsetPathModifier.prototype.processShapes=function(t){var e,i,n,r,s,a,o=this.shapes.length,l=this.amount.v,u=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,n=0;n<r;n+=1)a.addShape(this.processPath(e[n],l,c,u));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,n=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function r(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var n=createTag("span");n.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(n),document.body.appendChild(i);var r=n.offsetWidth;return n.style.fontFamily=function(t){var e,i=t.split(","),n=i.length,r=[];for(e=0;e<n;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&r.push(i[e]);return r.join(",")}(t)+", "+e,{node:n,w:r,parent:i}}function s(t,e){var i,n=document.body&&e?"svg":"canvas",r=getFontProperties(t);if("svg"===n){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",r.style),s.setAttribute("font-weight",r.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),i=s}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=r.style+" "+r.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===n?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function a(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var n=t.charCodeAt(1);n>=56320&&n<=57343&&(e=1024*(i-55296)+n-56320+65536)}return e}function o(t){var e=a(t);return e>=127462&&e<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==n.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return o(t.substr(0,2))&&o(t.substr(2,2))},l.isRegionalCode=o,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var n=a(t.substr(e,2));if(n!==i)return!1;var r=0;for(e+=2;r<5;){if((n=a(t.substr(e,2)))<917601||n>917626)return!1;r+=1,e+=2}return 917631===a(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i;var u={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var i,n,r=t.length,s=this.chars.length;for(e=0;e<r;e+=1){for(i=0,n=!1;i<s;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(n=!0),i+=1;n||(this.chars.push(t[e]),s+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=s(t),t.cache={}})),void(this.fonts=t.list);var i,n=t.list,a=n.length,o=a;for(i=0;i<a;i+=1){var l,u,c=!0;if(n[i].loaded=!1,n[i].monoCase=r(n[i].fFamily,"monospace"),n[i].sansCase=r(n[i].fFamily,"sans-serif"),n[i].fPath){if("p"===n[i].fOrigin||3===n[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+n[i].fFamily+'"], style[f-origin="3"][f-family="'+n[i].fFamily+'"]')).length>0&&(c=!1),c){var h=createTag("style");h.setAttribute("f-forigin",n[i].fOrigin),h.setAttribute("f-origin",n[i].origin),h.setAttribute("f-family",n[i].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+n[i].fFamily+"; font-style: normal; src: url('"+n[i].fPath+"');}",e.appendChild(h)}}else if("g"===n[i].fOrigin||1===n[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<l.length;u+=1)-1!==l[u].href.indexOf(n[i].fPath)&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",n[i].fOrigin),d.setAttribute("f-origin",n[i].origin),d.type="text/css",d.rel="stylesheet",d.href=n[i].fPath,document.body.appendChild(d)}}else if("t"===n[i].fOrigin||2===n[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<l.length;u+=1)n[i].fPath===l[u].src&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",n[i].fOrigin),p.setAttribute("f-origin",n[i].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",n[i].fPath),e.appendChild(p)}}}else n[i].loaded=!0,o-=1;n[i].helper=s(n[i],e),n[i].cache={},this.fonts.push(n[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,n){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===e&&this.chars[r].style===i&&this.chars[r].fFamily===n)return this.chars[r];r+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,n)),t},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var n=this.getFontByName(e),r=t;if(!n.cache[r]){var s=n.helper;if(" "===t){var a=s.measureText("|"+t+"|"),o=s.measureText("||");n.cache[r]=(a-o)/100}else n.cache[r]=s.measureText(t)/100}return n.cache[r]*i},checkLoadedFonts:function(){var t,e,i,n=this.fonts.length,r=n;for(t=0;t<n;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(r-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=u,l}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,n=t.ef||[];this.effectElements=[];var r,s=n.length;for(i=0;i<s;i+=1)r=new GroupEffect(n[i],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var n=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(n),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,r=this.data.ef.length,s=this.data.ef;for(i=0;i<r;i+=1){switch(n=null,s[i].ty){case 0:n=new SliderEffect(s[i],e,this);break;case 1:n=new AngleEffect(s[i],e,this);break;case 2:n=new ColorEffect(s[i],e,this);break;case 3:n=new PointEffect(s[i],e,this);break;case 4:case 7:n=new CheckboxEffect(s[i],e,this);break;case 10:n=new LayerIndexEffect(s[i],e,this);break;case 11:n=new MaskIndexEffect(s[i],e,this);break;case 5:n=new EffectsManager(s[i],e,this);break;default:n=new NoValueEffect(s[i],e,this)}n&&this.effectElements.push(n)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),n=t("shape"),r=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=r(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,n=this.dynamicProperties.length;for(i=0;i<n;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,n=this.layers.length;for(this.completeLayers=!0,e=n-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3: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)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,n=t.length,r=this.layers.length;for(e=0;e<n;e+=1)for(i=0;i<r;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var n=this.elements,r=this.layers,s=0,a=r.length;s<a;)r[s].ind==e&&(n[s]&&!0!==n[s]?(i.push(n[s]),n[s].setAsParent(),void 0!==r[s].parent?this.buildElementParenting(t,r[s].parent,i):t.setHierarchy(i)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e]);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var n,r=this.elements.length;for(n=0;n<r;n+=1)if(this.elements[n].data.nm===i){e=this.elements[n];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var n,r,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,u,c,h,d,p=this.masksProperties,f=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(n=0;n<a;n+=1)if(("a"!==p[n].mode&&"n"!==p[n].mode||p[n].inv||100!==p[n].o.k||p[n].o.x)&&(y="mask",v="mask"),"s"!==p[n].mode&&"i"!==p[n].mode||0!==f?u=null:((u=createNS("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),m.push(u)),r=createNS("path"),"n"===p[n].mode)this.viewData[n]={op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),elem:r,lastPath:""},s.appendChild(r);else{var _;if(f+=1,r.setAttribute("fill","s"===p[n].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==p[n].x.k?(y="mask",v="mask",d=PropertyFactory.getProp(this.element,p[n].x,0,null,this.element),_=createElementID(),(c=createNS("filter")).setAttribute("id",_),(h=createNS("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),c.appendChild(h),s.appendChild(c),r.setAttribute("stroke","s"===p[n].mode?"#000000":"#ffffff")):(h=null,d=null),this.storedData[n]={elem:r,x:d,expan:h,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},"i"===p[n].mode){l=m.length;var b=createNS("g");for(o=0;o<l;o+=1)b.appendChild(m[o]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",g+"_"+f),x.appendChild(r),s.appendChild(x),b.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(b)}else m.push(r);p[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:r,lastPath:"",op:PropertyFactory.getProp(this.element,p[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[n],3),invRect:u},this.viewData[n].prop.k||this.drawPath(p[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(y),a=m.length,n=0;n<a;n+=1)this.maskElement.appendChild(m[n]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<n;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<n;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var n=this.localTransforms[t].matrix;i.multiply(n)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var r=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)r*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=r}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,n=!0,r=this.comp;n;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):n=!1;var s,a=e.length;for(i=0;i<a;i+=1)s=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,n=this.masksProperties.length;for(e=0;e<n;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,i){var n,r,s=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,n=1;n<r;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&r>1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,i,n="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],e=0;e<r;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects[l]&&(i=new(0,registeredEffects[l].effect)(a,t.effectsManager.effectElements[e],t,idPrefix+o,n),n=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,i){registeredEffects[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,n=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&n.push(this.filters[e]);return n},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=createElementID();if(i.setAttribute("id",r),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,n,r,s=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(n),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(n),a.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),e=createElementID(),i=filtersFactory.createFilter(e);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),i.appendChild(u);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),u.appendChild(c),this.globalData.defs.appendChild(i);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(h),(n=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),l.appendChild(h),r.appendChild(this.layerElement),l.appendChild(r)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,n=e.length;i<n;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,n=i.length;n;)if(i[n-=1].elem===t)return void(i[n].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var n=0,r=t.length;n<r;){if(t[n].mProps.dynamicProperties.length){this._isAnimated=!0;break}n+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,n){var r;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(n);var s,a=e.length||0;for(r=0;r<a;r+=1)s=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=s.k||this.k,this.dataProps[r]={n:e[r].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var n=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",n),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=n,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,n=this.o.length/2;i<n;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,n,r=4*this.data.p;for(e=0;e<r;e+=1)i=e%4==0?100:255,n=Math.round(this.prop.v[e]*i),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)i=e%2==0?100:1,n=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==n&&(this.o[e-4*this.data.p]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),n=createNS(1===e.t?"linearGradient":"radialGradient");n.setAttribute("id",i),n.setAttribute("spreadMethod","pad"),n.setAttribute("gradientUnits","userSpaceOnUse");var r,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)r=createNS("stop"),n.appendChild(r),o.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=n,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,n,r,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var u=createNS(1===t.t?"linearGradient":"radialGradient");u.setAttribute("id",o),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(n=4*t.g.p;n<r;n+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(i),c.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=u,this.ms=s,this.ost=c,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,n){if(0===e)return"";var r,s=t.o,a=t.i,o=t.v,l=" M"+n.applyToPointStringified(o[0][0],o[0][1]);for(r=1;r<e;r+=1)l+=" C"+n.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+n.applyToPointStringified(a[r][0],a[r][1])+" "+n.applyToPointStringified(o[r][0],o[r][1]);return i&&e&&(l+=" C"+n.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+n.applyToPointStringified(a[0][0],a[0][1])+" "+n.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(){}function r(i,n,r){var s,a,o,l,u,c,h,d,p,f,m=n.styles.length,g=n.lvl;for(c=0;c<m;c+=1){if(l=n.sh._mdf||r,n.styles[c].lvl<g){for(d=e.reset(),p=g-n.styles[c].lvl,f=n.transformers.length-1;!l&&p>0;)l=n.transformers[f].mProps._mdf||l,p-=1,f-=1;if(l)for(p=g-n.styles[c].lvl,f=n.transformers.length-1;p>0;)d.multiply(n.transformers[f].mProps.v),p-=1,f-=1}else d=t;if(a=(h=n.sh.paths)._length,l){for(o="",s=0;s<a;s+=1)(u=h.shapes[s])&&u._length&&(o+=buildShapeString(u,u._length,u.c,d));n.caches[c]=o}else o=n.caches[c];n.styles[c].d+=!0===i.hd?"":o,n.styles[c]._mdf=l||n.styles[c]._mdf}}function s(t,e,i){var n=e.style;(e.c._mdf||i)&&n.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),l(0,e,i)}function o(t,e,i){var n,r,s,a,o,l=e.gf,u=e.g._hasOpacity,c=e.s.v,h=e.e.v;if(e.o._mdf||i){var d="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(d,e.o.v)}if(e.s._mdf||i){var p=1===t.t?"x1":"cx",f="x1"===p?"y1":"cy";l.setAttribute(p,c[0]),l.setAttribute(f,c[1]),u&&!e.g._collapsable&&(e.of.setAttribute(p,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||i){n=e.cst;var m=e.g.c;for(s=n.length,r=0;r<s;r+=1)(a=n[r]).setAttribute("offset",m[4*r]+"%"),a.setAttribute("stop-color","rgb("+m[4*r+1]+","+m[4*r+2]+","+m[4*r+3]+")")}if(u&&(e.g._omdf||i)){var g=e.g.o;for(s=(n=e.g._collapsable?e.cst:e.ost).length,r=0;r<s;r+=1)a=n[r],e.g._collapsable||a.setAttribute("offset",g[2*r]+"%"),a.setAttribute("stop-opacity",g[2*r+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",h[0]),l.setAttribute("y2",h[1]),u&&!e.g._collapsable&&(e.of.setAttribute("x2",h[0]),e.of.setAttribute("y2",h[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)),l.setAttribute("r",o),u&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(c[0]-h[0],2)+Math.pow(c[1]-h[1],2)));var y=Math.atan2(h[1]-c[1],h[0]-c[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var _=o*v,b=Math.cos(y+e.a.v)*_+c[0],x=Math.sin(y+e.a.v)*_+c[1];l.setAttribute("fx",b),l.setAttribute("fy",x),u&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",x))}}function l(t,e,i){var n=e.style,r=e.d;r&&(r._mdf||i)&&r.dashStr&&(n.pElem.setAttribute("stroke-dasharray",r.dashStr),n.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||i)&&n.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&n.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(n.pElem.setAttribute("stroke-width",e.w.v),n.msElem&&n.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return r;case"tr":return i;case"no":return n;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,n,r,s){this.o=t,this.sw=e,this.sc=i,this.fc=n,this.m=r,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!n,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,n,r=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(i=0;i<s;i+=1){for(n=this.stylesList[i],o=!1,a.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(n)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,n=new SVGStyleData(t,e),r=n.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,n):"fl"===t.ty?i=new SVGFillStyleData(this,t,n):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,n),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),r.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,n)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(n),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),n=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7);var r=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,n,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,n=this.animatedContents.length;i<n;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,n,r,s,a){var o,l,u,c,h,d,p=[].concat(s),f=t.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((d=this.searchProcessedElement(t[o]))?e[o]=i[d-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)d?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],r),t[o]._render&&e[o].style.pElem.parentNode!==n&&n.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(d)for(u=e[o].it.length,l=0;l<u;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,r+1,p,a),t[o]._render&&e[o].gr.parentNode!==n&&n.appendChild(e[o].gr)}else"tr"===t[o].ty?(d||(e[o]=this.createTransformElement(t[o],n)),c=e[o].transform,p.push(c)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(d||(e[o]=this.createShapeElement(t[o],p,r)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(d?(h=e[o]).closed=!1:((h=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=h,this.shapeModifiers.push(h)),g.push(h)):"rp"===t[o].ty&&(d?(h=e[o]).closed=!0:(h=ShapeModifiers.getModifier(t[o].ty),e[o]=h,h.init(this,t,o,e),this.shapeModifiers.push(h),a=!1),g.push(h));this.addProcessedElement(t[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,n,r,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==n&&(this.fc=n,this._mdf.fc=!0,a=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var n;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(n=0;n<r;n+=1)s=i!==this.keysIndex?this.effectsSequence[n](s,s.t):this.effectsSequence[n](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,n=t.length;i<=n-1&&!(i===n-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,n=[],r=0,s=t.length,a=!1,o=!1,l="";r<s;)a=o,o=!1,e=t.charCodeAt(r),l=t.charAt(r),FontManager.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,r)?l=t.substr(r,14):(i=t.charCodeAt(r+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(r,2),a=!0):l=FontManager.isFlagEmoji(t.substr(r,4))?t.substr(r,4):t.substr(r,2)):e>56319?(i=t.charCodeAt(r+1),FontManager.isVariationSelector(e)&&(a=!0)):FontManager.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(n[n.length-1]+=l,a=!1):n.push(l),r+=l.length;return n},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,n,r,s,a,o,l=this.elem.globalData.fontManager,u=this.data,c=[],h=0,d=u.m.g,p=0,f=0,m=0,g=[],y=0,v=0,_=l.getFontByName(t.f),b=0,x=getFontProperties(_);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var T,w=t.tr/1e3*t.finalSize;if(t.sz)for(var k,S,E=!0,D=t.sz[0],C=t.sz[1];E;){k=0,y=0,i=(S=this.buildFinalText(t.t)).length,w=t.tr/1e3*t.finalSize;var P=-1;for(e=0;e<i;e+=1)T=S[e].charCodeAt(0),n=!1," "===S[e]?P=e:13!==T&&3!==T||(y=0,n=!0,k+=t.finalLineHeight||1.2*t.finalSize),l.chars?(o=l.getCharData(S[e],_.fStyle,_.fFamily),b=n?0:o.w*t.finalSize/100):b=l.measureText(S[e],t.f,t.finalSize),y+b>D&&" "!==S[e]?(-1===P?i+=1:e=P,k+=t.finalLineHeight||1.2*t.finalSize,S.splice(e,P===e?1:0,"\r"),P=-1,y=0):(y+=b,y+=w);k+=_.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&C<k?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=S,i=t.finalText.length,E=!1)}y=-w,b=0;var A,M=0;for(e=0;e<i;e+=1)if(n=!1,13===(T=(A=t.finalText[e]).charCodeAt(0))||3===T?(M=0,g.push(y),v=y>v?y:v,y=-2*w,r="",n=!0,m+=1):r=A,l.chars?(o=l.getCharData(A,_.fStyle,l.getFontByName(t.f).fFamily),b=n?0:o.w*t.finalSize/100):b=l.measureText(r,t.f,t.finalSize)," "===A?M+=b+w:(y+=b+w+M,M=0),c.push({l:b,an:b,add:p,n,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==d){if(p+=b,""===r||" "===r||e===i-1){for(""!==r&&" "!==r||(p-=b);f<=e;)c[f].an=p,c[f].ind=h,c[f].extra=b,f+=1;h+=1,p=0}}else if(3==d){if(p+=b,""===r||e===i-1){for(""===r&&(p-=b);f<=e;)c[f].an=p,c[f].ind=h,c[f].extra=b,f+=1;p=0,h+=1}}else c[h].ind=h,c[h].extra=0,h+=1;if(t.l=c,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var I,L,O,F,R=u.a;a=R.length;var B=[];for(s=0;s<a;s+=1){for((I=R[s]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),F=0,O=I.s.b,e=0;e<i;e+=1)(L=c[e]).anIndexes[s]=F,(1==O&&""!==L.val||2==O&&""!==L.val&&" "!==L.val||3==O&&(L.n||" "==L.val||e==i-1)||4==O&&(L.n||e==i-1))&&(1===I.s.rn&&B.push(F),F+=1);u.a[s].s.totalChars=F;var N,H=-1;if(1===I.s.rn)for(e=0;e<i;e+=1)H!=(L=c[e]).anIndexes[s]&&(H=L.anIndexes[s],N=B.splice(Math.floor(Math.random()*B.length),1)[0]),L.anIndexes[s]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=_.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function n(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return n.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,s=0,a=1,o=1;this.ne.v>0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(r,s,a,o).get,u=0,c=this.finalS,h=this.finalE,d=this.data.sh;if(2===d)u=l(u=h===c?n>=h?1:0:t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(3===d)u=l(u=h===c?n>=h?0:1:1-t(0,e(.5/(h-c)+(n-c)/(h-c),1)));else if(4===d)h===c?u=0:(u=t(0,e(.5/(h-c)+(n-c)/(h-c),1)))<.5?u*=2:u=1-2*(u-.5),u=l(u);else if(5===d){if(h===c)u=0;else{var p=h-c,f=-p/2+(n=e(t(0,n+.5-c),h-c)),m=p/2;u=Math.sqrt(1-f*f/(m*m))}u=l(u)}else 6===d?(h===c?u=0:(n=e(t(0,n+.5-c),h-c),u=(1+Math.cos(Math.PI+2*Math.PI*n/(h-c)))/2),u=l(u)):(n>=i(c)&&(u=t(0,e(n-c<0?e(h,1)-(c-n):h-n,1))),u=l(u));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;u<y?u=0:(u=(u-y)/g)>1&&(u=1)}return u*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,n=this.s.v/e+i,r=this.e.v/e+i;if(n>r){var s=n;n=r,r=s}this.finalS=n,this.finalE=r}},extendPrototype([DynamicPropertyContainer],n),{getTextSelectorProp:function(t,e,i){return new n(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var n={propType:!1},r=PropertyFactory.getProp,s=e.a;this.a={r:s.r?r(t,s.r,0,degToRads,i):n,rx:s.rx?r(t,s.rx,0,degToRads,i):n,ry:s.ry?r(t,s.ry,0,degToRads,i):n,sk:s.sk?r(t,s.sk,0,degToRads,i):n,sa:s.sa?r(t,s.sa,0,degToRads,i):n,s:s.s?r(t,s.s,1,.01,i):n,a:s.a?r(t,s.a,1,0,i):n,o:s.o?r(t,s.o,0,.01,i):n,p:s.p?r(t,s.p,1,0,i):n,sw:s.sw?r(t,s.sw,0,0,i):n,sc:s.sc?r(t,s.sc,1,0,i):n,fc:s.fc?r(t,s.fc,1,0,i):n,fh:s.fh?r(t,s.fh,0,0,i):n,fs:s.fs?r(t,s.fs,0,.01,i):n,fb:s.fb?r(t,s.fb,0,.01,i):n,t:s.t?r(t,s.t,0,0,i):n},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,n=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:n(this._elem,this._textData.p.a,0,0,this),f:n(this._elem,this._textData.p.f,0,0,this),l:n(this._elem,this._textData.p.l,0,0,this),r:n(this._elem,this._textData.p.r,0,0,this),p:n(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=n(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,n,r,s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b,x=this._moreOptions.alignment.v,T=this._animatorsData,w=this._textData,k=this.mHelper,S=this._renderType,E=this.renderedLetters.length,D=t.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var C,P=b.v;for(this._pathData.r.v&&(P=P.reverse()),a={tLength:0,segments:[]},s=P._length-1,y=0,r=0;r<s;r+=1)C=bez.buildBezierData(P.v[r],P.v[r+1],[P.o[r][0]-P.v[r][0],P.o[r][1]-P.v[r][1]],[P.i[r+1][0]-P.v[r+1][0],P.i[r+1][1]-P.v[r+1][1]]),a.tLength+=C.segmentLength,a.segments.push(C),y+=C.segmentLength;r=s,b.v.c&&(C=bez.buildBezierData(P.v[r],P.v[0],[P.o[r][0]-P.v[r][0],P.o[r][1]-P.v[r][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),a.tLength+=C.segmentLength,a.segments.push(C),y+=C.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,d=0,h=1,u=0,c=!0,m=a.segments,o<0&&b.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),h=(f=m[d=m.length-1].points).length-1;o<0;)o+=f[h].partialLength,(h-=1)<0&&(h=(f=m[d-=1].points).length-1);p=(f=m[d].points)[h-1],g=(l=f[h]).partialLength}s=D.length,i=0,n=0;var A,M,I,L,O,F=1.2*t.finalSize*.714,R=!0;I=T.length;var B,N,H,V,j,U,z,q,G,W,X,$,Y=-1,K=o,Q=d,Z=h,J=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,nt=0,rt=2===t.j?-.5:-1,st=0,at=!0;for(r=0;r<s;r+=1)if(D[r].n){for(it&&(it+=nt);st<r;)D[st].animatorJustifyOffset=it,st+=1;it=0,at=!0}else{for(M=0;M<I;M+=1)(A=T[M].a).t.propType&&(at&&2===t.j&&(nt+=A.t.v*rt),(O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars)).length?it+=A.t.v*O[0]*rt:it+=A.t.v*O*rt);at=!1}for(it&&(it+=nt);st<r;)D[st].animatorJustifyOffset=it,st+=1}for(r=0;r<s;r+=1){if(k.reset(),V=1,D[r].n)i=0,n+=t.yOffset,n+=R?1:0,o=K,R=!1,this._hasMaskedPath&&(h=Z,p=(f=m[d=Q].points)[h-1],g=(l=f[h]).partialLength,u=0),tt="",X="",G="",$="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==D[r].line){switch(t.j){case 1:o+=y-t.lineWidths[D[r].line];break;case 2:o+=(y-t.lineWidths[D[r].line])/2}J=D[r].line}Y!==D[r].ind&&(D[Y]&&(o+=D[Y].extra),o+=D[r].an/2,Y=D[r].ind),o+=x[0]*D[r].an*.005;var ot=0;for(M=0;M<I;M+=1)(A=T[M].a).p.propType&&((O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars)).length?ot+=A.p.v[0]*O[0]:ot+=A.p.v[0]*O),A.a.propType&&((O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars)).length?ot+=A.a.v[0]*O[0]:ot+=A.a.v[0]*O);for(c=!0,this._pathData.a.v&&(o=.5*D[0].an+(y-this._pathData.f.v-.5*D[0].an-.5*D[D.length-1].an)*Y/(s-1),o+=this._pathData.f.v);c;)u+g>=o+ot||!f?(v=(o+ot-u)/l.partialLength,N=p.point[0]+(l.point[0]-p.point[0])*v,H=p.point[1]+(l.point[1]-p.point[1])*v,k.translate(-x[0]*D[r].an*.005,-x[1]*F*.01),c=!1):f&&(u+=l.partialLength,(h+=1)>=f.length&&(h=0,m[d+=1]?f=m[d].points:b.v.c?(h=0,f=m[d=0].points):(u-=l.partialLength,f=null)),f&&(p=l,g=(l=f[h]).partialLength));B=D[r].an/2-D[r].add,k.translate(-B,0,0)}else B=D[r].an/2-D[r].add,k.translate(-B,0,0),k.translate(-x[0]*D[r].an*.005,-x[1]*F*.01,0);for(M=0;M<I;M+=1)(A=T[M].a).t.propType&&(O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?O.length?o+=A.t.v*O[0]:o+=A.t.v*O:O.length?i+=A.t.v*O[0]:i+=A.t.v*O));for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(j=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(z=[t.fc[0],t.fc[1],t.fc[2]]),M=0;M<I;M+=1)(A=T[M].a).a.propType&&((O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars)).length?k.translate(-A.a.v[0]*O[0],-A.a.v[1]*O[1],A.a.v[2]*O[2]):k.translate(-A.a.v[0]*O,-A.a.v[1]*O,A.a.v[2]*O));for(M=0;M<I;M+=1)(A=T[M].a).s.propType&&((O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars)).length?k.scale(1+(A.s.v[0]-1)*O[0],1+(A.s.v[1]-1)*O[1],1):k.scale(1+(A.s.v[0]-1)*O,1+(A.s.v[1]-1)*O,1));for(M=0;M<I;M+=1){if(A=T[M].a,O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars),A.sk.propType&&(O.length?k.skewFromAxis(-A.sk.v*O[0],A.sa.v*O[1]):k.skewFromAxis(-A.sk.v*O,A.sa.v*O)),A.r.propType&&(O.length?k.rotateZ(-A.r.v*O[2]):k.rotateZ(-A.r.v*O)),A.ry.propType&&(O.length?k.rotateY(A.ry.v*O[1]):k.rotateY(A.ry.v*O)),A.rx.propType&&(O.length?k.rotateX(A.rx.v*O[0]):k.rotateX(A.rx.v*O)),A.o.propType&&(O.length?V+=(A.o.v*O[0]-V)*O[0]:V+=(A.o.v*O-V)*O),t.strokeWidthAnim&&A.sw.propType&&(O.length?U+=A.sw.v*O[0]:U+=A.sw.v*O),t.strokeColorAnim&&A.sc.propType)for(q=0;q<3;q+=1)O.length?j[q]+=(A.sc.v[q]-j[q])*O[0]:j[q]+=(A.sc.v[q]-j[q])*O;if(t.fillColorAnim&&t.fc){if(A.fc.propType)for(q=0;q<3;q+=1)O.length?z[q]+=(A.fc.v[q]-z[q])*O[0]:z[q]+=(A.fc.v[q]-z[q])*O;A.fh.propType&&(z=O.length?addHueToRGB(z,A.fh.v*O[0]):addHueToRGB(z,A.fh.v*O)),A.fs.propType&&(z=O.length?addSaturationToRGB(z,A.fs.v*O[0]):addSaturationToRGB(z,A.fs.v*O)),A.fb.propType&&(z=O.length?addBrightnessToRGB(z,A.fb.v*O[0]):addBrightnessToRGB(z,A.fb.v*O))}}for(M=0;M<I;M+=1)(A=T[M].a).p.propType&&(O=T[M].s.getMult(D[r].anIndexes[M],w.a[M].s.totalChars),this._hasMaskedPath?O.length?k.translate(0,A.p.v[1]*O[0],-A.p.v[2]*O[1]):k.translate(0,A.p.v[1]*O,-A.p.v[2]*O):O.length?k.translate(A.p.v[0]*O[0],A.p.v[1]*O[1],-A.p.v[2]*O[2]):k.translate(A.p.v[0]*O,A.p.v[1]*O,-A.p.v[2]*O));if(t.strokeWidthAnim&&(G=U<0?0:U),t.strokeColorAnim&&(W="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),t.fillColorAnim&&t.fc&&(X="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(k.translate(0,-t.ls),k.translate(0,x[1]*F*.01+n,0),this._pathData.p.v){_=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var lt=180*Math.atan(_)/Math.PI;l.point[0]<p.point[0]&&(lt+=180),k.rotate(-lt*Math.PI/180)}k.translate(N,H,0),o-=x[0]*D[r].an*.005,D[r+1]&&Y!==D[r+1].ind&&(o+=D[r].an/2,o+=.001*t.tr*t.finalSize)}else{switch(k.translate(i,n,0),t.ps&&k.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:k.translate(D[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[r].line]),0,0);break;case 2:k.translate(D[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[D[r].line])/2,0,0)}k.translate(0,-t.ls),k.translate(B,0,0),k.translate(x[0]*D[r].an*.005,x[1]*F*.01,0),i+=D[r].l+.001*t.tr*t.finalSize}"html"===S?tt=k.toCSS():"svg"===S?tt=k.to2dCSS():et=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],$=V}E<=r?(L=new LetterProps($,G,W,X,tt,et),this.renderedLetters.push(L),E+=1,this.lettersChangedFlag=!0):(L=this.renderedLetters[r],this.lettersChangedFlag=L.update($,G,W,X,tt,et)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,n,r=e.length,s="";for(i=0;i<r;i+=1)"sh"===e[i].ty&&(n=e[i].ks.k,s+=buildShapeString(n,n.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,n,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(n,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var n=createNS("title"),r=createElementID();n.setAttribute("id",r),n.textContent=e.title,this.svgElement.appendChild(n),i+=r}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,n=[],r="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(n.push(r),r=""):r+=t[e],e+=1;return n.push(r),n},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var n=i.it[i.it.length-1];n.s&&(n.s.k[0]=e,n.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var n=this.globalData.fontManager.getFontByName(i.f);if(n.fClass)this.layerElement.setAttribute("class",n.fClass);else{this.layerElement.setAttribute("font-family",n.fFamily);var r=i.fWeight,s=i.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],l=!!this.globalData.fontManager.chars;e=o.length;var u=this.mHelper,c=this.data.singleShape,h=0,d=0,p=!0,f=.001*i.tr*i.finalSize;if(!c||l||i.sz){var m,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(a=g>t?this.textSpans[t].span:createNS(l?"g":"text"),g<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(u.reset(),c&&(o[t].n&&(h=-f,d+=i.yOffset,d+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(i,u,o[t].line,h,d),h+=o[t].l||0,h+=f),l){var v;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[t],n.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var _=emptyShapeData;m.data&&m.data.shapes&&(_=this.buildShapeData(m.data,i.finalSize)),v=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[t].glyph){var b=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var x=this.textContainer,T="start";switch(i.j){case 1:T="end";break;case 2:T="middle";break;default:T="start"}x.setAttribute("text-anchor",T),x.setAttribute("letter-spacing",f);var w=this.buildTextContents(i.finalText);for(e=w.length,d=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=w[t],a.setAttribute("x",0),a.setAttribute("y",d),a.style.display="inherit",x.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,d+=i.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,n,r,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(i=s[t],n=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),i._mdf.m&&n.setAttribute("transform",i.m),i._mdf.o&&n.setAttribute("opacity",i.o),i._mdf.sw&&n.setAttribute("stroke-width",i.sw),i._mdf.sc&&n.setAttribute("stroke",i.sc),i._mdf.fc&&n.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),n=createNS("rect");n.setAttribute("width",t.w),n.setAttribute("height",t.h),n.setAttribute("x",0),n.setAttribute("y",0);var r=createElementID();i.setAttribute("id",r),i.appendChild(n),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var n="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===n)return;if(this.elements[n]&&!0!==this.elements[n]){var r=e[n].getMatte(this.layers[t].tt);i.setMatte(r)}else this.buildItem(n),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var n="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[n].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var n,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(i,n):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,n=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=n-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier);var CompExpressionInterface=function(t){function e(e){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e};function _typeof$2(t){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}function seedRandom(t,e){var i=this,n=256,r=e.pow(n,6),s=e.pow(2,52),a=2*s,o=255;function l(t){var e,i=t.length,r=this,s=0,a=r.i=r.j=0,l=r.S=[];for(i||(t=[i++]);s<n;)l[s]=s++;for(s=0;s<n;s++)l[s]=l[a=o&a+t[s%i]+(e=l[s])],l[a]=e;r.g=function(t){for(var e,i=0,s=r.i,a=r.j,l=r.S;t--;)e=l[s=o&s+1],i=i*n+l[o&(l[s]=l[a=o&a+e])+(l[a]=e)];return r.i=s,r.j=a,i}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function c(t,e){var i,n=[],r=_typeof$2(t);if(e&&"object"==r)for(i in t)try{n.push(c(t[i],e-1))}catch(t){}return n.length?n:"string"==r?t:t+"\0"}function h(t,e){for(var i,n=t+"",r=0;r<n.length;)e[o&r]=o&(i^=19*e[o&r])+n.charCodeAt(r++);return d(e)}function d(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(o,p,f){var m=[],g=h(c((p=!0===p?{entropy:!0}:p||{}).entropy?[o,d(t)]:null===o?function(){try{var e=new Uint8Array(n);return(i.crypto||i.msCrypto).getRandomValues(e),d(e)}catch(e){var r=i.navigator,s=r&&r.plugins;return[+new Date,i,s,i.screen,d(t)]}}():o,3),m),y=new l(m),v=function(){for(var t=y.g(6),e=r,i=0;t<s;)t=(t+i)*n,e*=n,i=y.g(1);for(;t>=a;)t/=2,e/=2,i>>>=1;return(t+i)/e};return v.int32=function(){return 0|y.g(4)},v.quick=function(){return y.g(4)/4294967296},v.double=v,h(d(y.S),t),(p.pass||f||function(t,i,n,r){return r&&(r.S&&u(r,y),t.state=function(){return u(y,{})}),n?(e.random=t,i):t})(v,g,"global"in p?p.global:this==e,p.state)},h(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var i,n=t.length,r=[];for(i=0;i<n;i+=1)r[i]=-t[i];return r}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),n=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(n,e)||"string"===i||"string"===n)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,s=t.length,a=e.length,o=[];r<s||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]+e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),n=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(n,e))return"string"===i&&(t=parseInt(t,10)),"string"===n&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,s=t.length,a=e.length,o=[];r<s||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?o[r]=t[r]-e[r]:o[r]=void 0===e[r]?t[r]:t[r]||e[r],r+=1;return o}return 0}function mul(t,e){var i,n,r,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(r=t.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t[n]*e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t*e[n];return i}return 0}function div(t,e){var i,n,r,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(r=t.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t[n]/e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=e.length,i=createTypedArray("float32",r),n=0;n<r;n+=1)i[n]=t/e[n];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var n=i;i=e,e=n}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var i;e||(e=helperLengthArray);var n=Math.min(t.length,e.length),r=0;for(i=0;i<n;i+=1)r+=Math.pow(e[i]-t[i],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,n=t[0],r=t[1],s=t[2],a=Math.max(n,r,s),o=Math.min(n,r,s),l=(a+o)/2;if(a===o)e=0,i=0;else{var u=a-o;switch(i=l>.5?u/(2-a-o):u/(a+o),a){case n:e=(r-s)/u+(r<s?6:0);break;case r:e=(s-n)/u+2;break;case s:e=(n-r)/u+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,n,r=t[0],s=t[1],a=t[2];if(0===s)e=a,n=a,i=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,r+1/3),i=hue2rgb(l,o,r),n=hue2rgb(l,o,r-1/3)}return[e,i,n,t[3]]}function linear(t,e,i,n,r){if(void 0!==n&&void 0!==r||(n=e,r=i,e=0,i=1),i<e){var s=i;i=e,e=s}if(t<=e)return n;if(t>=i)return r;var a,o=i===e?0:(t-e)/(i-e);if(!n.length)return n+(r-n)*o;var l=n.length,u=createTypedArray("float32",l);for(a=0;a<l;a+=1)u[a]=n[a]+(r[a]-n[a])*o;return u}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,n=e.length;t||(t=createTypedArray("float32",n));var r=createTypedArray("float32",n),s=BMMath.random();for(i=0;i<n;i+=1)r[i]=t[i]+s*(e[i]-t[i]);return r}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,n){var r,s=t.length,a=shapePool.newElement();a.setPathData(!!n,s);var o,l,u=[0,0];for(r=0;r<s;r+=1)o=e&&e[r]?e[r]:u,l=i&&i[r]?i[r]:u,a.setTripleAt(t[r][0],t[r][1],l[0]+t[r][0],l[1]+t[r][1],o[0]+t[r][0],o[1]+t[r][1],r,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var i,n,r=this.pv.length?this.pv.length:1,s=createTypedArray("float32",r),a=Math.floor(5*time);for(i=0,n=0;i<a;){for(n=0;n<r;n+=1)s[n]+=-e+2*e*BMMath.random();i+=1}var o=5*time,l=o-Math.floor(o),u=createTypedArray("float32",r);if(r>1){for(n=0;n<r;n+=1)u[n]=this.pv[n]+s[n]+(-e+2*e*BMMath.random())*l;return u}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],n=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,n,0]}function easeOut(t,e,i,n,r){return applyEase(easeOutBez,t,e,i,n,r)}function easeIn(t,e,i,n,r){return applyEase(easeInBez,t,e,i,n,r)}function ease(t,e,i,n,r){return applyEase(easeInOutBez,t,e,i,n,r)}function applyEase(t,e,i,n,r,s){void 0===r?(r=i,s=n):e=(e-i)/(n-i),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(r)){var o,l=r.length,u=createTypedArray("float32",l);for(o=0;o<l;o+=1)u[o]=(s[o]-r[o])*a+r[o];return u}return(s-r)*a+r}function nearestKey(t){var e,i,n,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,n=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){i=e+1,n=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,n=data.k[e+1].t):(i=e+1,n=data.k[e].t);break}}-1===i&&(i=e+1,n=data.k[e].t)}else i=0,n=0;var s={};return s.index=i,s.time=n/elem.comp.globalData.frameRate,s}function key(t){var e,i,n;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(n=r.length,i=0;i<n;i+=1)e[i]=r[i],e.value[i]=r[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,n=createSizedArray(e.viewData.length),r=e.viewData.length;for(i=0;i<r;i+=1)n[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<r;){if(e.masksProperties[i].nm===t)return n[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(n){if(!t.numKeys)return 0;var r;r="s"in e.keyframes[n-1]?e.keyframes[n-1].s:"e"in e.keyframes[n-2]?e.keyframes[n-2].e:e.keyframes[n-2].s;var s="unidimensional"===i?new Number(r):Object.assign({},r);return s.time=e.keyframes[n-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===i?r[0]:r,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function n(){return t}return function(r){return r?"unidimensional"===r.propType?function(e){e&&"pv"in e||(e=t);var n=1/e.mult,r=e.pv*n,s=new Number(r);return s.value=r,i(s,e,"unidimensional"),function(){return e.k&&e.getValue(),r=e.v*n,s.value!==r&&((s=new Number(r)).value=r,i(s,e,"unidimensional")),s}}(r):function(t){t&&"pv"in t||(t=e);var n=1/t.mult,r=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",r),a=createTypedArray("float32",r);return s.value=a,i(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<r;e+=1)a[e]=t.v[e]*n,s[e]=a[e];return s}}(r):n}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,n,r,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),n=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[i(),n(),r?r():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function n(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,n=this._elem.hierarchy.length;for(i=0;i<n;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(u){var c;function h(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return h.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return h.effect;case"ADBE Text Properties":return h.textInterface;default:return null}}h.getMatrix=t,h.invertPoint=a,h.applyPoint=s,h.toWorld=i,h.toWorldVec=e,h.fromWorld=r,h.fromWorldVec=n,h.toComp=i,h.fromComp=o,h.sampleImage=l,h.sourceRectAtTime=u.sourceRectAtTime.bind(u),h._elem=u;var d=getDescriptor(c=TransformExpressionInterface(u.finalTransform.mProp),"anchorPoint");return Object.defineProperties(h,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return c}},active:{get:function(){return u.isInRange}}}),h.startTime=u.data.st,h.index=u.data.ind,h.source=u.data.refId,h.height=0===u.data.ty?u.data.h:100,h.width=0===u.data.ty?u.data.w:100,h.inPoint=u.data.ip/u.comp.globalData.frameRate,h.outPoint=u.data.op/u.comp.globalData.frameRate,h._name=u.data.nm,h.registerMaskInterface=function(t){h.mask=new MaskManagerInterface(t,u)},h.registerEffectsInterface=function(t){h.effect=t},h}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=function(){function t(i,n,r,s){function a(t){for(var e=i.ef,n=0,r=e.length;n<r;){if(t===e[n].nm||t===e[n].mn||t===e[n].ix)return 5===e[n].ty?u[n]:u[n]();n+=1}throw new Error}var o,l=propertyGroupFactory(a,r),u=[],c=i.ef.length;for(o=0;o<c;o+=1)5===i.ef[o].ty?u.push(t(i.ef[o],n.effectElements[o],n.effectElements[o].propertyGroup,s)):u.push(e(n.effectElements[o],i.ef[o].ty,s,l));return"ADBE Color Control"===i.mn&&Object.defineProperty(a,"color",{get:function(){return u[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:l}}),a.enabled=0!==i.en,a.active=a.enabled,a}function e(t,e,i,n){var r=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",n)),function(){return 10===e?i.comp.compInterface(t.p.v):r()}}return{createEffectsInterface:function(e,i){if(e.effectsManager){var n,r=[],s=e.data.ef,a=e.effectsManager.effectElements.length;for(n=0;n<a;n+=1)r.push(t(s[n],e.effectsManager.effectElements[n],i,e));var o=e.data.ef||[],l=function(t){for(n=0,a=o.length;n<a;){if(t===o[n].nm||t===o[n].mn||t===o[n].ix)return r[n];n+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(t,e,i){var n=e.sh;function r(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?r.path:null}var s=propertyGroupFactory(r,i);return n.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(r,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),r},ShapeExpressionInterface=function(){function t(t,a,d){var p,f=[],m=t?t.length:0;for(p=0;p<m;p+=1)"gr"===t[p].ty?f.push(e(t[p],a[p],d)):"fl"===t[p].ty?f.push(i(t[p],a[p],d)):"st"===t[p].ty?f.push(r(t[p],a[p],d)):"tm"===t[p].ty?f.push(s(t[p],a[p],d)):"tr"===t[p].ty||("el"===t[p].ty?f.push(o(t[p],a[p],d)):"sr"===t[p].ty?f.push(l(t[p],a[p],d)):"sh"===t[p].ty?f.push(ShapePathInterface(t[p],a[p],d)):"rc"===t[p].ty?f.push(u(t[p],a[p],d)):"rd"===t[p].ty?f.push(c(t[p],a[p],d)):"rp"===t[p].ty?f.push(h(t[p],a[p],d)):"gf"===t[p].ty?f.push(n(t[p],a[p],d)):f.push((t[p],a[p],function(){return null})));return f}function e(e,i,n){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=propertyGroupFactory(r,n);var s=function(e,i,n){var r,s=function(t){for(var e=0,i=r.length;e<i;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}return"number"==typeof t?r[t-1]:null};s.propertyGroup=propertyGroupFactory(s,n),r=t(e.it,i.it,s.propertyGroup),s.numProperties=r.length;var o=a(e.it[e.it.length-1],i.it[i.it.length-1],s.propertyGroup);return s.transform=o,s.propertyIndex=e.cix,s._name=e.nm,s}(e,i,r.propertyGroup),o=a(e.it[e.it.length-1],i.it[i.it.length-1],r.propertyGroup);return r.content=s,r.transform=o,Object.defineProperty(r,"_name",{get:function(){return e.nm}}),r.numProperties=e.np,r.propertyIndex=e.ix,r.nm=e.nm,r.mn=e.mn,r}function i(t,e,i){function n(t){return"Color"===t||"color"===t?n.color:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),n}function n(t,e,i){function n(t){return"Start Point"===t||"start point"===t?n.startPoint:"End Point"===t||"end point"===t?n.endPoint:"Opacity"===t||"opacity"===t?n.opacity:null}return Object.defineProperties(n,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),n}function r(t,e,i){var n,r=propertyGroupFactory(u,i),s=propertyGroupFactory(l,r);function a(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,l={};for(n=0;n<o;n+=1)a(n),e.d.dataProps[n].p.setGroupProperty(s);function u(t){return"Color"===t||"color"===t?u.color:"Opacity"===t||"opacity"===t?u.opacity:"Stroke Width"===t||"stroke width"===t?u.strokeWidth:null}return Object.defineProperties(u,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),e.w.setGroupProperty(PropertyInterface("Stroke Width",r)),u}function s(t,e,i){function n(e){return e===t.e.ix||"End"===e||"end"===e?n.end:e===t.s.ix?n.start:e===t.o.ix?n.offset:null}var r=propertyGroupFactory(n,i);return n.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",r)),e.e.setGroupProperty(PropertyInterface("End",r)),e.o.setGroupProperty(PropertyInterface("Offset",r)),n.propertyIndex=t.ix,n.propertyGroup=i,Object.defineProperties(n,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),n.mn=t.mn,n}function a(t,e,i){function n(e){return t.a.ix===e||"Anchor Point"===e?n.anchorPoint:t.o.ix===e||"Opacity"===e?n.opacity:t.p.ix===e||"Position"===e?n.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?n.rotation:t.s.ix===e||"Scale"===e?n.scale:t.sk&&t.sk.ix===e||"Skew"===e?n.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?n.skewAxis:null}var r=propertyGroupFactory(n,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",r)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",r)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",r)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",r)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",r)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",r)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",r))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",r)),Object.defineProperties(n,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),n.ty="tr",n.mn=t.mn,n.propertyGroup=i,n}function o(t,e,i){function n(e){return t.p.ix===e?n.position:t.s.ix===e?n.size:null}var r=propertyGroupFactory(n,i);n.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",r)),s.p.setGroupProperty(PropertyInterface("Position",r)),Object.defineProperties(n,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),n.mn=t.mn,n}function l(t,e,i){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.rotation:t.pt.ix===e?n.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?n.outerRadius:t.os.ix===e?n.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?n.innerRoundness:null:n.innerRadius}var r=propertyGroupFactory(n,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",r)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",r)),s.pt.setGroupProperty(PropertyInterface("Points",r)),s.p.setGroupProperty(PropertyInterface("Position",r)),s.r.setGroupProperty(PropertyInterface("Rotation",r)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",r)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",r))),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),n.mn=t.mn,n}function u(t,e,i){function n(e){return t.p.ix===e?n.position:t.r.ix===e?n.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?n.size:null}var r=propertyGroupFactory(n,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return n.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",r)),s.s.setGroupProperty(PropertyInterface("Size",r)),s.r.setGroupProperty(PropertyInterface("Rotation",r)),Object.defineProperties(n,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),n.mn=t.mn,n}function c(t,e,i){function n(e){return t.r.ix===e||"Round Corners 1"===e?n.radius:null}var r=propertyGroupFactory(n,i),s=e;return n.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",r)),Object.defineProperties(n,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),n.mn=t.mn,n}function h(t,e,i){function n(e){return t.c.ix===e||"Copies"===e?n.copies:t.o.ix===e||"Offset"===e?n.offset:null}var r=propertyGroupFactory(n,i),s=e;return n.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",r)),s.o.setGroupProperty(PropertyInterface("Offset",r)),Object.defineProperties(n,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),n.mn=t.mn,n}return function(e,i,n){var r;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?n:r[t-1];for(var e=0,i=r.length;e<i;){if(r[e]._name===t)return r[e];e+=1}return null}return s.propertyGroup=propertyGroupFactory(s,(function(){return n})),r=t(e,i,s.propertyGroup),s.numProperties=r.length,s._name="Contents",s}}(),TextExpressionInterface=function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i};function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function n(t){if(i[t])return e=t,"object"===_typeof(i=i[t])?n:i;var r=t.indexOf(e);if(-1!==r){var s=parseInt(t.substr(r+e.length),10);return"object"===_typeof(i=i[s])?n:i}return""}return function(){return e="",i=t.getFootageData(),n}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),n=0;if(e.length){var r;for(r=0;r<e.length;r+=1)n+=Math.pow(i[r]-e[r],2);n=100*Math.sqrt(n)}else n=0;return n},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,n=-.001,r=this.getValueAtTime(t),s=this.getValueAtTime(t+n);if(r.length)for(e=createTypedArray("float32",r.length),i=0;i<r.length;i+=1)e[i]=(s[i]-r[i])/n;else e=(s-r)/n;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var n,r,s,a,o,l=this.comp.renderedFrame,u=this.keyframes,c=u[u.length-1].t;if(l<=c)return this.pv;if(i?r=c-(n=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>u.length-1)&&(e=u.length-1),n=c-(r=u[u.length-1-e].t)),"pingpong"===t){if(Math.floor((l-r)/n)%2!=0)return this.getValueAtTime((n-(l-r)%n+r)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(r/this.comp.globalData.frameRate,0),d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0),f=Math.floor((l-r)/n);if(this.pv.length){for(a=(o=new Array(h.length)).length,s=0;s<a;s+=1)o[s]=(d[s]-h[s])*f+p[s];return o}return(d-h)*f+p}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*((l-c)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-r)%n+r)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var n,r,s,a,o,l=this.comp.renderedFrame,u=this.keyframes,c=u[0].t;if(l>=c)return this.pv;if(i?r=c+(n=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>u.length-1)&&(e=u.length-1),n=(r=u[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/n)%2==0)return this.getValueAtTime(((c-l)%n+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var h=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(r/this.comp.globalData.frameRate,0),p=this.getValueAtTime((n-(c-l)%n+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/n)+1;if(this.pv.length){for(a=(o=new Array(h.length)).length,s=0;s<a;s+=1)o[s]=p[s]-(d[s]-h[s])*f;return o}return p-(d-h)*f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*(c-l)/.001;return o}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((n-((c-l)%n+c))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var i,n,r=this.comp.renderedFrame/this.comp.globalData.frameRate,s=r-t,a=e>1?(r+t-s)/(e-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(n=this.getValueAtTime(s+o*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=n[l];else i+=n;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=e;else i/=e;return i}function n(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var n=this.s.getValueAtTime(t);e.scale(n[0]*this.s.mult,n[1]*this.s.mult,n[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var r=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-r*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),u=this.rx.getValueAtTime(t),c=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(u*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var h=this.px.getValueAtTime(t),d=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);e.translate(h*this.px.mult,d*this.py.mult,-p*this.pz.mult)}else e.translate(h*this.px.mult,d*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return e}function r(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var a=s(t,e,i);return a.dynamicProperties.length?a.getValueAtTime=n.bind(a):a.getValueAtTime=r.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(n,r,s,o,l){var u=a(n,r,s,o,l);u.kf?u.getValueAtTime=expressionHelpers.getValueAtTime.bind(u):u.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(u),u.setGroupProperty=expressionHelpers.setGroupProperty,u.loopOut=t,u.loopIn=e,u.smooth=i,u.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(u),u.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(u),u.numKeys=1===r.a?r.k.length:0,u.propertyIndex=r.ix;var c=0;return 0!==s&&(c=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),u._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(n,r,u),u.k&&l.addDynamicProperty(u),u};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(t,e){this.k&&this.getValue();var i,n=this.v;void 0!==e&&(n=this.getValueAtTime(e,0));var r=n._length,s=n[t],a=n.v,o=createSizedArray(r);for(i=0;i<r;i+=1)o[i]="i"===t||"o"===t?[s[i][0]-a[i][0],s[i][1]-a[i][1]]:[s[i][0],s[i][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var n,r=this._segmentsLength,s=r.lengths,a=r.totalLength*t,o=0,l=s.length,u=0;o<l;){if(u+s[o].addedLength>a){var c=o,h=i.c&&o===l-1?0:o+1,d=(a-u)/s[o].addedLength;n=bez.getPointInSegment(i.v[c],i.v[h],i.o[c],i.i[h],d,s[o]);break}u+=s[o].addedLength,o+=1}return n||(n=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),n},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var n=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),s=r[0]-n[0],a=r[1]-n[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===i?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],o),extendPrototype([u],l),l.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,n,r){var s=c(t,e,i,n,r);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var n={};return this.copyData(n,t),n.t=i.toString(),n.__complete=!1,n}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,n,r=createNS("feMerge");for(r.setAttribute("result",t),n=0;n<e.length;n+=1)(i=createNS("feMergeNode")).setAttribute("in",e[n]),r.appendChild(i),r.appendChild(i);return r}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,i,n,r){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",n+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",n+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(n,[r,n+"_tint_1",n+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,i,n){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",n),t.appendChild(r),this.matrixFilter=r}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,n){this.filterManager=e;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(r);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",n),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,i,n){this.filterManager=e;var r=this.filterManager.effectElements,s=createNS("feComponentTransfer");(r[10].p.k||0!==r[10].p.v||r[11].p.k||1!==r[11].p.v||r[12].p.k||1!==r[12].p.v||r[13].p.k||0!==r[13].p.v||r[14].p.k||1!==r[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(r[17].p.k||0!==r[17].p.v||r[18].p.k||1!==r[18].p.v||r[19].p.k||1!==r[19].p.v||r[20].p.k||0!==r[20].p.v||r[21].p.k||1!==r[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(r[24].p.k||0!==r[24].p.v||r[25].p.k||1!==r[25].p.v||r[26].p.k||1!==r[26].p.v||r[27].p.k||0!==r[27].p.v||r[28].p.k||1!==r[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(r[31].p.k||0!==r[31].p.v||r[32].p.k||1!==r[32].p.v||r[33].p.k||1!==r[33].p.v||r[34].p.k||0!==r[34].p.v||r[35].p.k||1!==r[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(r[3].p.k||0!==r[3].p.v||r[4].p.k||1!==r[4].p.v||r[5].p.k||1!==r[5].p.v||r[6].p.k||0!==r[6].p.v||r[7].p.k||1!==r[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",n),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,i,n,r){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",n+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",n+"_drop_shadow_1"),l.setAttribute("result",n+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",n+"_drop_shadow_3"),this.feFlood=u,t.appendChild(u);var c=createNS("feComposite");c.setAttribute("in",n+"_drop_shadow_3"),c.setAttribute("in2",n+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",n+"_drop_shadow_4"),t.appendChild(c);var h=this.createMergeNode(n,[n+"_drop_shadow_4",r]);t.appendChild(h)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+n+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,n,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(n=this.elem.maskManager.masksProperties.length,i=0):n=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<n;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");r[0];)o.appendChild(r[0]);this.elem.layerElement.appendChild(o),this.masker=s,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var i,n,r=this.paths.length;for(e=0;e<r;e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&n.setAttribute("d",i.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=n.getTotalLength();s="0 0 0 "+l*a+" ";var u,c=l*(o-a),h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(c/h);for(u=0;u<d;u+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=this.filterManager.effectElements[2].p.v,r=n[0]+" "+i[0]+" "+e[0],s=n[1]+" "+i[1]+" "+e[1],a=n[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,n,r){for(var s,a,o=0,l=Math.min(t,e),u=Math.max(t,e),c=Array.call(null,{length:256}),h=0,d=r-n,p=e-t;o<=256;)a=(s=o/256)<=l?p<0?r:n:s>=u?p<0?n:r:n+d*Math.pow((s-t)/p,1/i),c[h]=a,h+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,n=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=i*Math.cos(n),s=i*Math.sin(n);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,n){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var r=createNS("feGaussianBlur");r.setAttribute("result",n),t.appendChild(r),this.feGaussianBlur=r}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var n,r=i.children,s=0,a=r.length;s<a&&r[s]!==t.layerElement;)s+=1;s<=a-2&&(n=r[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),n?i.insertBefore(o,n):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),n=createNS("mask");n.setAttribute("id",e.layerId),n.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(n);var s=createNS("symbol");s.setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),r.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+i),n.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,n=e.length;i<n;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,n=3==i?0:e,r=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+r);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,n=e[1].p.v,r=1===e[2].p.v,s=e[3].p.v,a=r?s:e[4].p.v,o=e[5].p.v,l=e[6].p.v,u=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*a,.01*s,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(n[0],n[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),registerEffect(35,SVGTransformEffect,!1),lottie},module.exports=e())},4221:(t,e,i)=>{var n=i(6894).getUint64;t.exports=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=e.getUint32(r),i.firstOffset=e.getUint32(r+4),r+=8):(i.earliestPresentationTime=n(t.subarray(r)),i.firstOffset=n(t.subarray(r+8)),r+=16),r+=2;var s=e.getUint16(r);for(r+=2;s>0;r+=12,s--)i.references.push({referenceType:(128&t[r])>>>7,referencedSize:2147483647&e.getUint32(r),subsegmentDuration:e.getUint32(r+4),startsWithSap:!!(128&t[r+8]),sapType:(112&t[r+8])>>>4,sapDeltaTime:268435455&e.getUint32(r+8)});return i}},1489:t=>{var e,i,n,r,s,a,o,l=9e4;e=function(t){return t*l},i=function(t,e){return t*e},n=function(t){return t/l},r=function(t,e){return t/e},s=function(t,i){return e(r(t,i))},a=function(t,e){return i(n(t),e)},o=function(t,e,i){return n(i?t:t-e)},t.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:e,secondsToAudioTs:i,videoTsToSeconds:n,audioTsToSeconds:r,audioTsToVideoTs:s,videoTsToAudioTs:a,metadataTsToSeconds:o}},6894:t=>{var e=Math.pow(2,32);t.exports={getUint64:function(t){var i,n=new DataView(t.buffer,t.byteOffset,t.byteLength);return n.getBigUint64?(i=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(i):i:n.getUint32(0)*e+n.getUint32(4)},MAX_UINT32:e}},5974:t=>{t.exports=function(t,e){var i,n=null;try{i=JSON.parse(t,e)}catch(t){n=t}return[n,i]}},4842:function(t,e,i){!function(e,n){t.exports?t.exports=n(e,i(7158)):e.Unidragger=n(e,e.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){function i(){}let n,r,s=i.prototype=Object.create(e.prototype);s.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},"ontouchstart"in t?(n="touchstart",r=["touchmove","touchend","touchcancel"]):t.PointerEvent?(n="pointerdown",r=["pointermove","pointerup","pointercancel"]):(n="mousedown",r=["mousemove","mouseup"]),s.touchActionValue="none",s.bindHandles=function(){this._bindHandles("addEventListener",this.touchActionValue)},s.unbindHandles=function(){this._bindHandles("removeEventListener","")},s._bindHandles=function(e,i){this.handles.forEach((r=>{r[e](n,this),r[e]("click",this),t.PointerEvent&&(r.style.touchAction=i)}))},s.bindActivePointerEvents=function(){r.forEach((e=>{t.addEventListener(e,this)}))},s.unbindActivePointerEvents=function(){r.forEach((e=>{t.removeEventListener(e,this)}))},s.withPointer=function(t,e){e.pointerId===this.pointerIdentifier&&this[t](e,e)},s.withTouch=function(t,e){let i;for(let t of e.changedTouches)t.identifier===this.pointerIdentifier&&(i=t);i&&this[t](e,i)},s.onmousedown=function(t){this.pointerDown(t,t)},s.ontouchstart=function(t){this.pointerDown(t,t.changedTouches[0])},s.onpointerdown=function(t){this.pointerDown(t,t)};const a=["TEXTAREA","INPUT","SELECT","OPTION"],o=["radio","checkbox","button","submit","image","file"];return s.pointerDown=function(t,e){let i=a.includes(t.target.nodeName),n=o.includes(t.target.type),r=!i||n;!this.isPointerDown&&!t.button&&r&&(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this.bindActivePointerEvents(),this.emitEvent("pointerDown",[t,e]))},s.onmousemove=function(t){this.pointerMove(t,t)},s.onpointermove=function(t){this.withPointer("pointerMove",t)},s.ontouchmove=function(t){this.withTouch("pointerMove",t)},s.pointerMove=function(t,e){let i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};this.emitEvent("pointerMove",[t,e,i]),!this.isDragging&&this.hasDragStarted(i)&&this.dragStart(t,e),this.isDragging&&this.dragMove(t,e,i)},s.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},s.dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent("dragStart",[t,e])},s.dragMove=function(t,e,i){this.emitEvent("dragMove",[t,e,i])},s.onmouseup=function(t){this.pointerUp(t,t)},s.onpointerup=function(t){this.withPointer("pointerUp",t)},s.ontouchend=function(t){this.withTouch("pointerUp",t)},s.pointerUp=function(t,e){this.pointerDone(),this.emitEvent("pointerUp",[t,e]),this.isDragging?this.dragEnd(t,e):this.staticClick(t,e)},s.dragEnd=function(t,e){this.isDragging=!1,setTimeout((()=>delete this.isPreventingClicks)),this.emitEvent("dragEnd",[t,e])},s.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent("pointerDone")},s.onpointercancel=function(t){this.withPointer("pointerCancel",t)},s.ontouchcancel=function(t){this.withTouch("pointerCancel",t)},s.pointerCancel=function(t,e){this.pointerDone(),this.emitEvent("pointerCancel",[t,e])},s.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},s.staticClick=function(t,e){let i="mouseup"===t.type;i&&this.isIgnoringMouseUp||(this.emitEvent("staticClick",[t,e]),i&&(this.isIgnoringMouseUp=!0,setTimeout((()=>{delete this.isIgnoringMouseUp}),400)))},i}))},9945:function(t){var e,i,n,r,s;e=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var r=s.parseURL(t);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):e;var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=i.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var u={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var c=o.path,h=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=s.normalizePath(h)}else u.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(u)},parseURL:function(t){var i=e.exec(t);return i?{scheme:i[1]||"",netLoc:i[2]||"",path:i[3]||"",params:i[4]||"",query:i[5]||"",fragment:i[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(n,"");t.length!==(t=t.replace(r,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=s},3407:(t,e,i)=>{var n=i(8908),r=t.exports={WebVTT:i(3706),VTTCue:i(2230),VTTRegion:i(3710)};n.vttjs=r,n.WebVTT=r.WebVTT;var s=r.VTTCue,a=r.VTTRegion,o=n.VTTCue,l=n.VTTRegion;r.shim=function(){n.VTTCue=s,n.VTTRegion=a},r.restore=function(){n.VTTCue=o,n.VTTRegion=l},n.VTTCue||r.shim()},3706:(t,e,i)=>{var n=i(9144),r=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function s(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function a(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}function o(){this.values=r(null)}function l(t,e,i,n){var r=n?t.split(n):[t];for(var s in r)if("string"==typeof r[s]){var a=r[s].split(i);2===a.length&&e(a[0].trim(),a[1].trim())}}function u(t,e,i){var n=t;function r(){var e=a(t);if(null===e)throw new s(s.Errors.BadTimeStamp,"Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function u(){t=t.replace(/^\s+/,"")}if(u(),e.startTime=r(),u(),"--\x3e"!==t.substr(0,3))throw new s(s.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),u(),e.endTime=r(),u(),function(t,e){var n=new o;l(t,(function(t,e){switch(t){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===e){n.set(t,i[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var s=e.split(","),a=s[0];n.integer(t,a),n.percent(t,a)&&n.set("snapToLines",!1),n.alt(t,a,["auto"]),2===s.length&&n.alt("lineAlign",s[1],["start","center","end"]);break;case"position":s=e.split(","),n.percent(t,s[0]),2===s.length&&n.alt("positionAlign",s[1],["start","center","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","center","end","left","right"])}}),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");try{e.line=n.get("line","auto")}catch(t){}e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100);try{e.align=n.get("align","center")}catch(t){e.align=n.get("align","middle")}try{e.position=n.get("position","auto")}catch(t){e.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},e.align)}e.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},e.align)}(t,e)}s.prototype=r(Error.prototype),s.prototype.constructor=s,s.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n<i.length;++n)if(e===i[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var c=n.createElement&&n.createElement("textarea"),h={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(t,e){function i(){if(!e)return null;var t,i=e.match(/^([^<]*)(<[^>]*>?)?/);return t=i[1]?i[1]:i[2],e=e.substr(t.length),t}function n(t,e){return!f[e.localName]||f[e.localName]===t.localName}function r(e,i){var n=h[e];if(!n)return null;var r=t.document.createElement(n),s=p[e];return s&&i&&(r[s]=i.trim()),r}for(var s,o,l=t.document.createElement("div"),u=l,m=[];null!==(s=i());)if("<"!==s[0])u.appendChild(t.document.createTextNode((o=s,c.innerHTML=o,o=c.textContent,c.textContent="",o)));else{if("/"===s[1]){m.length&&m[m.length-1]===s.substr(2).replace(">","")&&(m.pop(),u=u.parentNode);continue}var g,y=a(s.substr(1,s.length-2));if(y){g=t.document.createProcessingInstruction("timestamp",y),u.appendChild(g);continue}var v=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(!(g=r(v[1],v[3])))continue;if(!n(u,g))continue;if(v[2]){var _=v[2].split(".");_.forEach((function(t){var e=/^bg_/.test(t),i=e?t.slice(3):t;if(d.hasOwnProperty(i)){var n=e?"background-color":"color",r=d[i];g.style[n]=r}})),g.className=_.join(" ")}m.push(v[1]),u.appendChild(g),u=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(t){for(var e=0;e<g.length;e++){var i=g[e];if(t>=i[0]&&t<=i[1])return!0}return!1}function v(t){var e=[],i="";if(!t||!t.childNodes)return"ltr";function n(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function r(t){if(!t||!t.length)return null;var e=t.pop(),i=e.textContent||e.innerText;if(i){var s=i.match(/^.*(\n|\r)/);return s?(t.length=0,s[0]):i}return"ruby"===e.tagName?r(t):e.childNodes?(n(t,e),r(t)):void 0}for(n(e,t);i=r(e);)for(var s=0;s<i.length;s++)if(y(i.charCodeAt(s)))return"rtl";return"ltr"}function _(){}function b(t,e,i){_.call(this),this.cue=e,this.cueDiv=m(t,e.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=t.document.createElement("div"),n={direction:v(this.cueDiv),writingMode:""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===e.align?"center":e.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":case"line-left":r=e.position;break;case"center":r=e.position-e.size/2;break;case"end":case"line-right":r=e.position-e.size}""===e.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(t){this.applyStyles({top:this.formatStyle(t.top,"px"),bottom:this.formatStyle(t.bottom,"px"),left:this.formatStyle(t.left,"px"),right:this.formatStyle(t.right,"px"),height:this.formatStyle(t.height,"px"),width:this.formatStyle(t.width,"px")})}}function x(t){var e,i,n,r;if(t.div){i=t.div.offsetHeight,n=t.div.offsetWidth,r=t.div.offsetTop;var s=(s=t.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();t=t.div.getBoundingClientRect(),e=s?Math.max(s[0]&&s[0].height||0,t.height/s.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||i,this.bottom=t.bottom||r+(t.height||i),this.width=t.width||n,this.lineHeight=void 0!==e?e:t.lineHeight}function T(t,e,i,n){var r=new x(e),s=e.cue,a=function(t){if("number"==typeof t.line&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,i=e.textTrackList,n=0,r=0;r<i.length&&i[r]!==e;r++)"showing"===i[r].mode&&n++;return-1*++n}(s),o=[];if(s.snapToLines){var l;switch(s.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(a),h=i[l]+u,d=o[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),a<0&&(c+=""===s.vertical?i.height:i.width,o=o.reverse()),r.move(d,c)}else{var p=r.lineHeight/i.height*100;switch(s.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(s.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}o=["+y","-x","+x","-y"],r=new x(e)}var f=function(t,e){for(var r,s=new x(t),a=1,o=0;o<e.length;o++){for(;t.overlapsOppositeAxis(i,e[o])||t.within(i)&&t.overlapsAny(n);)t.move(e[o]);if(t.within(i))return t;var l=t.intersectPercentage(i);a>l&&(r=new x(t),a=l),t=new x(s)}return r||s}(r,o);e.move(f.toCSSCompatValues(i))}function w(){}_.prototype.applyStyles=function(t,e){for(var i in e=e||this.div,t)t.hasOwnProperty(i)&&(e.style[i]=t[i])},_.prototype.formatStyle=function(t,e){return 0===t?0:t+e},b.prototype=r(_.prototype),b.prototype.constructor=b,x.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},x.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top},x.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1},x.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},x.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}},x.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},x.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},x.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,i=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||i}},w.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},w.convertCueToDOMTree=function(t,e){return t&&e?m(t,e):null},w.processCues=function(t,e,i){if(!t||!e||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(t){for(var e=0;e<t.length;e++)if(t[e].hasBeenReset||!t[e].displayState)return!0;return!1}(e)){var r=[],s=x.getSimpleBoxPosition(n),a={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var i,o,l=0;l<e.length;l++)o=e[l],i=new b(t,o,a),n.appendChild(i.div),T(0,i,s,r),o.displayState=i.div,r.push(x.getSimpleBoxPosition(i))}()}else for(var o=0;o<e.length;o++)n.appendChild(e[o].displayState)},w.Parser=function(t,e,i){i||(i=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(t){if(!(t instanceof s))throw t;this.onparsingerror&&this.onparsingerror(t)},parse:function(t){var e,i=this;function n(){for(var t=i.buffer,e=0;e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var n=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,i.buffer=t.substr(e),n}t&&(i.buffer+=i.decoder.decode(t,{stream:!0}));try{var r;if("INITIAL"===i.state){if(!/\r\n|\n/.test(i.buffer))return this;var c=(r=n()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new s(s.Errors.BadSignature);i.state="HEADER"}for(var h=!1;i.buffer;){if(!/\r\n|\n/.test(i.buffer))return this;switch(h?h=!1:r=n(),i.state){case"HEADER":/:/.test(r)?(e=r).match(/X-TIMESTAMP-MAP/)?l(e,(function(t,e){"X-TIMESTAMP-MAP"===t&&function(t){var e=new o;l(t,(function(t,i){switch(t){case"MPEGT":e.integer(t+"S",i);break;case"LOCA":e.set(t+"L",a(i))}}),/[^\d]:/,/,/),i.ontimestampmap&&i.ontimestampmap({MPEGTS:e.get("MPEGTS"),LOCAL:e.get("LOCAL")})}(e)}),/=/):l(e,(function(t,e){"Region"===t&&function(t){var e=new o;if(l(t,(function(t,i){switch(t){case"id":e.set(t,i);break;case"width":e.percent(t,i);break;case"lines":e.integer(t,i);break;case"regionanchor":case"viewportanchor":var n=i.split(",");if(2!==n.length)break;var r=new o;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;e.set(t+"X",r.get("x")),e.set(t+"Y",r.get("y"));break;case"scroll":e.alt(t,i,["up"])}}),/=/,/\s/),e.has("id")){var n=new(i.vttjs.VTTRegion||i.window.VTTRegion);n.width=e.get("width",100),n.lines=e.get("lines",3),n.regionAnchorX=e.get("regionanchorX",0),n.regionAnchorY=e.get("regionanchorY",100),n.viewportAnchorX=e.get("viewportanchorX",0),n.viewportAnchorY=e.get("viewportanchorY",100),n.scroll=e.get("scroll",""),i.onregion&&i.onregion(n),i.regionList.push({id:e.get("id"),region:n})}}(e)}),/:/):r||(i.state="ID");continue;case"NOTE":r||(i.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){i.state="NOTE";break}if(!r)continue;i.cue=new(i.vttjs.VTTCue||i.window.VTTCue)(0,0,"");try{i.cue.align="center"}catch(t){i.cue.align="middle"}if(i.state="CUE",-1===r.indexOf("--\x3e")){i.cue.id=r;continue}case"CUE":try{u(r,i.cue,i.regionList)}catch(t){i.reportOrThrowError(t),i.cue=null,i.state="BADCUE";continue}i.state="CUETEXT";continue;case"CUETEXT":var d=-1!==r.indexOf("--\x3e");if(!r||d&&(h=!0)){i.oncue&&i.oncue(i.cue),i.cue=null,i.state="ID";continue}i.cue.text&&(i.cue.text+="\n"),i.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(i.state="ID");continue}}}catch(t){i.reportOrThrowError(t),"CUETEXT"===i.state&&i.cue&&i.oncue&&i.oncue(i.cue),i.cue=null,i.state="INITIAL"===i.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new s(s.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.exports=w},2230:t=>{var e={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(t){return"string"==typeof t&&!!i[t.toLowerCase()]&&t.toLowerCase()}function r(t,i,r){this.hasBeenReset=!1;var s="",a=!1,o=t,l=i,u=r,c=null,h="",d=!0,p="auto",f="start",m="auto",g="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(t){s=""+t}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(t){a=!!t}},startTime:{enumerable:!0,get:function(){return o},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");o=t,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");l=t,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(t){u=""+t,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(t){c=t,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(t){var i=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===i)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=i,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(t){d=!!t,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=t,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(t){var e=n(t);e?(f=e,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(t){var e=n(t);e?(g=e,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(t){var e=n(t);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=e,this.hasBeenReset=!0}}}),this.displayState=void 0}r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.exports=r},3710:t=>{var e={"":!0,up:!0};function i(t){return"number"==typeof t&&t>=0&&t<=100}t.exports=function(){var t=100,n=3,r=0,s=100,a=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!i(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return n},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");n=t}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!i(t))throw new Error("RegionAnchorX must be between 0 and 100.");s=t}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!i(t))throw new Error("RegionAnchorY must be between 0 and 100.");r=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!i(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!i(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var i=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===i?console.warn("Scroll: an invalid or illegal string was specified."):l=i}}})}},2248:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>o});var n=i(9988),r=i(3409),s=i(100);r.p8.registerPlugin(r.t_);const a=r.t_.create("custom","M0,0 C0.2,0 0,1 1,1 "),o=class extends n.Component{load(){this.openClass="is-active",this.delegateClick=this.$refs.header}onClick(t){const e=t.target.closest('[data-ref="accordion.item"]'),i=e.querySelector("[data-accordion-body]");e.classList.contains(this.openClass)?(window.newScrollbar&&window.newScrollbar.stop(),s.Z.instance.stop(),r.p8.to(i,{duration:.75,height:0,ease:a,onComplete:()=>{s.Z.instance.update(),s.Z.instance.start(),window.newScrollbar&&(window.newScrollbar.update(),window.newScrollbar.start())}}),e.classList.remove(this.openClass)):(window.newScrollbar&&window.newScrollbar.stop(),s.Z.instance.stop(),r.p8.set(i,{height:"auto"}),r.p8.from(i,{duration:.75,height:0,ease:a,onComplete:()=>{r.p8.set(i,{height:"auto"}),s.Z.instance.update(),s.Z.instance.start(),window.newScrollbar&&(window.newScrollbar.update(),window.newScrollbar.start())}}),e.classList.add(this.openClass))}destroy(){r.p8.killTweensOf(this.$refs.content)}}},1877:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>r});var n=i(9988);i(100);const r=class extends n.Component{load(){this.previousScrollPosition=0}onScrollProgress(t){this.$el.style.setProperty("--slide-amount",.4*t)}}},6036:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var n=i(9988),r=i(7390);const s=class extends n.Component{load(){if(!r.Z.isMobile){this.text=this.$el.innerText;const t=document.createElement("span");t.innerText=this.text,this.$el.innerHTML="",this.$el.appendChild(t)}}onClick(){r.Z.isMobile||(this.timeout&&window.clearTimeout(this.timeout),navigator.clipboard.writeText(this.text),this.$el.classList.add("clicked"),this.timeout=window.setTimeout((()=>{this.$el.classList.remove("clicked")}),2e3))}}},7795:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(2442),s=i.n(r);i(3031);const a=class extends n.Component{load(){this.flickity=new(s())(this.$el,{percentPosition:!1,prevNextButtons:!1,pageDots:!1,autoPlay:5e3,fade:!0})}destroy(){this.flickity.destroy()}}},6484:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(2442),s=i.n(r);const a=class extends n.Component{load(){this.flickity=new(s())(this.$el,{freeScroll:!0,wrapAround:!0,cellAlign:"left",percentPosition:!1,prevNextButtons:!1,pageDots:!1})}destroy(){this.flickity.destroy()}}},5897:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(3409);i(7390),r.p8.registerPlugin(r.BW),r.p8.registerPlugin(r.C2),r.p8.registerPlugin(r.t_);const s=r.t_.create("custom","M0,0 C0,0 0,0 0,0 0.874,0 0.12,1 1,1"),a=class extends n.Component{load(){this.barbaListener=this.subscribe("barba"),this.introListener=this.subscribe("intro"),this.split=new r.C2(this.$el,{type:"words"}),this.barbaListener.on("after-enter",(()=>{this.startAnimation()})),this.introListener.on("transitionEnd",(()=>{this.startAnimation()}))}removeSplit(){this.split&&(this.split.revert(),this.split=null)}onResize({widthIsChanged:t}){t&&this.removeSplit()}startAnimation(){this.state=r.BW.getState(this.split.words),this.$el.style.textAlign="right",r.BW.from(this.state,{duration:2,ease:s})}}},8611:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(3409),s=i(7390);r.p8.registerPlugin(r.t_),r.t_.create("custom","M0,0 C0.798,0 0.148,1 1,1");const a=class extends n.Component{load(){this.introListener=this.subscribe("intro"),this.barbaListener=this.subscribe("barba"),this.hasScrolled=!1,this.siteHeader=document.querySelector(".c-site-header"),this.halfHeight=this.siteHeader.getBoundingClientRect().height/2,this.$refs.video&&(this.boundPlayVideo=this.playVideo.bind(this),this.$refs.video.addEventListener("play",this.boundPlayVideo),s.Z.isMobile?this.$refs.video.src=this.$refs.video.dataset.srcMobile:this.$refs.video.src=this.$refs.video.dataset.srcDesktop,this.introListener.on("transitionEnd",(()=>{window.setTimeout((()=>{this.$refs.video.play()}),1e3)}))),this.introListener.on("transitionEnd",(()=>{this.initRollText()})),this.barbaListener.on("enter",(()=>{r.p8.delayedCall(1,(()=>{this.initRollText()}))}))}initRollText(){this.rollText=r.p8.timeline({repeat:this.$refs.word.length-2,repeatRefresh:!0,onComplete:()=>{this.rollText.invalidate(),r.p8.set(this.$refs.word,{y:"0%"}),this.rollText.restart()}}),this.rollText.to(this.$refs.word,{y:"-=100%",duration:1.5,ease:"custom"})}onScroll(t){window.innerHeight-this.halfHeight<=t.scroll.y&&!this.hasScrolled&&null!=this.hasScrolled&&(document.documentElement.classList.add("change-color"),this.hasScrolled=!0),window.innerHeight-this.halfHeight>t.scroll.y&&this.hasScrolled&&null!=this.hasScrolled&&(document.documentElement.classList.remove("change-color"),this.hasScrolled=!1)}onResize(){this.halfHeight=this.siteHeader.getBoundingClientRect().height/2}playVideo(t){document.documentElement.classList.contains("intro-complete")?this.$el.classList.add("video-playing"):(this.$refs.video.removeEventListener("play",this.boundPlayVideo),t.target.pause(),t.target.currentTime=0,this.introListener.on("transitionEnd",(()=>{t.target.play(),this.$el.classList.add("video-playing")})))}destroy(){this.$refs.video&&(this.$refs.video.removeEventListener("play",this.boundPlayVideo),this.$refs.video.src=""),window.setTimeout((()=>{document.documentElement.classList.remove("change-color")}),100),this.hasScrolled=null}}},9865:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>u});var n=i(9988);const r='{"v":"5.10.2","fr":25,"ip":0,"op":50,"w":720,"h":590,"nm":"Pre-comp 2","ddd":0,"assets":[{"id":"comp_0","nm":"Pre-comp 3","fr":25,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 6","parent":3,"tt":1,"tp":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-13.945,-2.447,0],"ix":2,"l":2},"a":{"a":0,"k":[-271.75,-127.375,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-10.682,2.037],[-16.736,7.92],[-6.51,14.19]],"o":[[11.08,-2.113],[17.48,-8.272],[13.858,-30.207]],"v":[[-335.526,-81.918],[-267.817,-101.037],[-201.939,-148.321]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":26,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.203],"y":[1]},"o":{"x":[0.59],"y":[0]},"t":1,"s":[100]},{"t":25,"s":[0]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100.864,109.781],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[17.952,-39.863],[-18.637,-14.324],[-36.578,56.959],[-5.743,6.233]],"o":[[0,0],[-15.732,34.932],[26.013,19.993],[5.958,-9.278],[13.841,-15.022]],"v":[[-197.25,-160.25],[-240.676,-80.692],[-258.5,-11.5],[-156.586,-149.377],[-139,-173]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":33.2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.203],"y":[1]},"o":{"x":[0.777],"y":[0]},"t":1,"s":[0]},{"t":25,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-36.967,-9.471],[-12.5,14]],"o":[[0,0],[60.5,15.5],[11.731,-13.139]],"v":[[-147.75,-155.75],[-171,-28.5],[-54.5,-225]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":34,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":19.97,"s":[0]},{"t":47,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 5","parent":3,"tt":1,"tp":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-13.945,-2.447,0],"ix":2,"l":2},"a":{"a":0,"k":[-271.75,-127.375,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-10.682,2.037],[-16.736,7.92],[-6.51,14.19]],"o":[[11.08,-2.113],[17.48,-8.272],[13.858,-30.207]],"v":[[-335.526,-81.918],[-267.817,-101.037],[-201.939,-148.321]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.532294060202,0.04723628175,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":26,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.203],"y":[1]},"o":{"x":[0.59],"y":[0]},"t":0,"s":[100]},{"t":24,"s":[0]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100.864,109.781],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[17.952,-39.863],[-18.637,-14.324],[-36.578,56.959],[-5.743,6.233]],"o":[[0,0],[-15.732,34.932],[26.013,19.993],[5.958,-9.278],[13.841,-15.022]],"v":[[-197.25,-160.25],[-240.676,-80.692],[-258.5,-11.5],[-156.586,-149.377],[-139,-173]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.532294060202,0.04723628175,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":33.2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.203],"y":[1]},"o":{"x":[0.777],"y":[0]},"t":0,"s":[0]},{"t":24,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":3,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-36.967,-9.471],[-12.5,14]],"o":[[0,0],[60.5,15.5],[11.731,-13.139]],"v":[[-147.75,-155.75],[-171,-28.5],[-54.5,-225]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.532294060202,0.04723628175,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":34,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":18.97,"s":[0]},{"t":46,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Layer 6","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.077],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0],"y":[1]},"o":{"x":[0.804],"y":[0]},"t":21,"s":[18]},{"t":44,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.077,"y":1},"o":{"x":0.914,"y":0},"t":0,"s":[346.899,426.424,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0,"y":1},"o":{"x":0.804,"y":0},"t":21,"s":[336.899,378.424,0],"to":[0,0,0],"ti":[0,0,0]},{"t":44,"s":[346.899,426.424,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[564,564,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":22,"nm":"Stroke","np":13,"mn":"ADBE Stroke","ix":1,"en":1,"ef":[{"ty":10,"nm":"Path","mn":"ADBE Stroke-0001","ix":1,"v":{"a":0,"k":0,"ix":1}},{"ty":7,"nm":"All Masks","mn":"ADBE Stroke-0010","ix":2,"v":{"a":0,"k":0,"ix":2}},{"ty":7,"nm":"Stroke Sequentially","mn":"ADBE Stroke-0011","ix":3,"v":{"a":0,"k":1,"ix":3}},{"ty":2,"nm":"Color","mn":"ADBE Stroke-0002","ix":4,"v":{"a":0,"k":[1,1,1,1],"ix":4}},{"ty":0,"nm":"Brush Size","mn":"ADBE Stroke-0003","ix":5,"v":{"a":0,"k":2,"ix":5}},{"ty":0,"nm":"Brush Hardness","mn":"ADBE Stroke-0004","ix":6,"v":{"a":0,"k":0.75,"ix":6}},{"ty":0,"nm":"Opacity","mn":"ADBE Stroke-0005","ix":7,"v":{"a":0,"k":1,"ix":7}},{"ty":0,"nm":"Start","mn":"ADBE Stroke-0008","ix":8,"v":{"a":0,"k":0,"ix":8}},{"ty":0,"nm":"End","mn":"ADBE Stroke-0009","ix":9,"v":{"a":0,"k":100,"ix":9}},{"ty":7,"nm":"Spacing","mn":"ADBE Stroke-0006","ix":10,"v":{"a":0,"k":15,"ix":10}},{"ty":7,"nm":"Paint Style","mn":"ADBE Stroke-0007","ix":11,"v":{"a":0,"k":1,"ix":11}}]}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,-2.409],[-2.367,0],[-2.928,5.508],[0,-0.791],[-2.647,0],[-6.406,20.449],[0.161,0.096],[0,0],[0.161,-0.473],[3.693,0],[0,0.887],[-5.056,10.794],[-0.126,0.318],[0.221,0.096],[0,0],[0.096,-0.222],[0,0],[3.311,0],[0,0.887],[-1.99,4.052],[0,0],[0.257,0.126],[0,0],[0.221,-0.318],[5.492,-1.205],[0,0],[-0.221,-0.312],[0,0],[-0.155,0.03],[0,0],[-1.996,1.846]],"o":[[0,0],[-3.819,6.994],[0,2.847],[3.854,0],[-0.257,1.013],[0,2.913],[6.532,0],[0.066,-0.156],[0,0],[-0.317,-0.222],[-5.271,17.662],[-0.855,0],[0,-2.625],[0.126,-0.252],[0.096,-0.252],[0,0],[-0.251,-0.126],[0,0],[-4.577,9.907],[-0.663,0],[0,-3.416],[0,0],[0.155,-0.288],[0,0],[-0.191,-0.096],[-3,4.273],[0,0],[-0.317,0.066],[0,0],[0.096,0.126],[0,0],[2.367,-0.569],[0,0]],"v":[[-7.81,-1.154],[-9.376,1.717],[-14.204,15.933],[-10.26,20.362],[0.532,9.958],[0.06,12.733],[4.13,17.198],[25.721,-17.941],[25.625,-18.415],[22.948,-20.219],[22.189,-19.967],[5.05,13.332],[3.819,11.78],[10.608,-7.627],[11.02,-8.544],[10.829,-9.113],[8.02,-10.444],[7.357,-10.252],[4.925,-4.996],[-9.089,16.407],[-10.254,15.076],[-3.752,-1.292],[-0.657,-7.591],[-0.848,-8.316],[-3.31,-9.455],[-3.973,-9.233],[-16.601,-0.051],[-25.475,1.909],[-25.63,2.508],[-23.897,5.043],[-23.455,5.139],[-14.587,2.988],[-7.81,-1.148]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.537254929543,0.537254929543,0.51372551918,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 7","parent":6,"tt":1,"tp":6,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[11,-19],[-25.785,3.956],[-1.75,6.5]],"o":[[-11,19],[44,-6.75],[0.977,-3.629]],"v":[[125.75,-191.75],[101.5,-81.5],[181.5,-203]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":29,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":20,"s":[0]},{"t":47,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 4","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-18.825,-12.484],[-10.06,19.564],[0,0]],"o":[[-8.25,8.5],[14.155,9.387],[6.818,-13.26],[0,0]],"v":[[68,-179.5],[32,-71.5],[72.025,-105.494],[91.5,-112]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":29,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":7,"s":[0]},{"t":40,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-2.533,10.239],[-19.705,0.985]],"o":[[3,-12.125],[10,-0.5]],"v":[[4.75,-111.625],[72.25,-185.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":24.8,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.74],"y":[0]},"t":1,"s":[0]},{"t":27,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[47.5,-43.25],[-5.25,-7.5],[-11.051,7.842],[-1.75,43.5]],"o":[[0,0],[-37.254,33.921],[4,3.25],[15.5,-11],[0.596,-14.814]],"v":[[-6.25,-114.75],[-37,-137.25],[-66.75,-53],[-41.75,-51.75],[0.25,-143]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":1,"s":[0]},{"t":27,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Shape Layer 4","parent":6,"tt":1,"tp":6,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[11,-19],[-25.785,3.956],[-1.75,6.5]],"o":[[-11,19],[44,-6.75],[0.977,-3.629]],"v":[[125.75,-191.75],[101.5,-81.5],[181.5,-203]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":29,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":19,"s":[0]},{"t":46,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 4","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-18.825,-12.484],[-10.06,19.564],[0,0]],"o":[[-8.25,8.5],[14.155,9.387],[6.818,-13.26],[0,0]],"v":[[68,-179.5],[32,-71.5],[72.025,-105.494],[91.5,-112]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":29,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":6,"s":[0]},{"t":39,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-2.533,10.239],[-19.705,0.985]],"o":[[3,-12.125],[10,-0.5]],"v":[[4.75,-111.625],[72.25,-185.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":24.8,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.74],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[47.5,-43.25],[-5.25,-7.5],[-11.051,7.842],[-1.75,43.5]],"o":[[0,0],[-37.254,33.921],[4,3.25],[15.5,-11],[0.596,-14.814]],"v":[[-6.25,-114.75],[-37,-137.25],[-66.75,-53],[-41.75,-51.75],[0.25,-143]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Layer 1","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.077],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.061],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":21,"s":[-13]},{"t":44,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.077,"y":1},"o":{"x":0.914,"y":0},"t":0,"s":[540,540,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.061,"y":1},"o":{"x":0.914,"y":0},"t":21,"s":[581,481,0],"to":[0,0,0],"ti":[0,0,0]},{"t":44,"s":[540,540,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[564,564,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,-1.013],[2.653,0],[0,0.947],[-2.115,0]],"o":[[0.693,0],[0,4.147],[-0.633,0],[0,-5.286],[0,0]],"v":[[-2.834,-25.001],[-1.854,-23.005],[-9.461,-10.216],[-10.405,-11.924],[-2.828,-24.995]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[-1.046,6.635],[0,0],[-1.273,1.288],[0,-2.625],[-1.829,0],[-2.492,4.339],[0,-0.479],[-1.673,0],[-5.803,15.673],[0.347,0.222],[0,0],[0.155,-0.414],[2.432,0],[0,0.857],[-1.542,3.32],[0,0],[0.347,0.258],[0,0],[0.191,-0.378],[2.277,0],[0,0.725],[-1.422,2.625],[0,0],[0.317,0.222],[0,0],[0.251,-0.252],[8.217,-5.268],[2.348,0],[0,-6.203],[-2.211,0]],"o":[[5.474,0],[0,0],[3.083,-1.924],[-3,5.604],[0,1.93],[2.821,0],[-0.054,0.515],[0,1.96],[4.195,0],[0.155,-0.378],[0,0],[-0.376,-0.252],[-3.819,10.824],[-0.663,0],[0,-2.817],[0,0],[0.155,-0.348],[0,0],[-0.347,-0.252],[-5.492,11.747],[-0.693,0],[0,-2.883],[0,0],[0.191,-0.348],[0,0],[-0.317,-0.222],[-0.55,0.611],[-0.221,-2.331],[-5.02,0],[0,3.009],[0,0]],"v":[[-10.25,-6.799],[1.296,-21.267],[1.75,-21.549],[8.09,-26.482],[3.644,-14.015],[6.77,-10.467],[14.998,-17.551],[14.915,-16.041],[18.04,-12.685],[33.536,-33.865],[33.285,-34.752],[31.235,-36.017],[30.416,-35.729],[18.99,-16.419],[18.046,-17.845],[23.251,-31.264],[23.442,-31.678],[23.191,-32.535],[21.393,-33.835],[20.538,-33.584],[8.132,-13.956],[7.248,-15.22],[13.182,-29.4],[13.373,-29.748],[13.182,-30.605],[11.413,-31.84],[10.594,-31.714],[1.457,-24.714],[-2.129,-28.831],[-14.062,-11.642],[-10.244,-6.799]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.537254929543,0.537254929543,0.51372551918,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Shape Layer 8","parent":9,"tt":1,"tp":9,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-29.376,0.844,0],"ix":2,"l":2},"a":{"a":0,"k":[-224.75,84.777,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[44.238,18.855],[8.5,38.5]],"o":[[0,0],[-30.5,-13],[-4.864,-22.03]],"v":[[-189,58],[-253,108],[-319.5,38.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.015],"y":[1]},"o":{"x":[0.788],"y":[0]},"t":1,"s":[0]},{"t":27,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":23,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-313.25,49],[206,-62.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":18,"s":[0]},{"t":47,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,-0.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-213,229],[-97.5,-28.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[0.972]},"o":{"x":[0.788],"y":[0]},"t":18,"s":[0]},{"t":46,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":30,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Shape Layer 1","parent":9,"tt":1,"tp":9,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-29.376,0.844,0],"ix":2,"l":2},"a":{"a":0,"k":[-224.75,84.777,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[44.238,18.855],[8.5,38.5]],"o":[[0,0],[-30.5,-13],[-4.864,-22.03]],"v":[[-189,58],[-253,108],[-319.5,38.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.015],"y":[1]},"o":{"x":[0.788],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":23,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-313.25,49],[206,-62.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":17,"s":[0]},{"t":46,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,-0.5],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-213,229],[-97.5,-28.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[0.972]},"o":{"x":[0.788],"y":[0]},"t":17,"s":[0]},{"t":45,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":30,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Layer 4","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.077],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.061],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":21,"s":[-18]},{"t":44,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.077,"y":1},"o":{"x":0.914,"y":0},"t":0,"s":[480.929,620.015,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.061,"y":1},"o":{"x":0.914,"y":0},"t":21,"s":[422.929,658.015,0],"to":[0,0,0],"ti":[0,0,0]},{"t":44,"s":[480.929,620.015,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[564,564,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.412,0.378],[0,0],[0.221,-0.03],[0,0],[0,0],[0.281,0.222],[0,0],[0.161,-0.378],[0,0],[0,0],[0,0],[0.066,-0.192],[0,0],[-0.066,-0.222],[-5.014,0],[-3.502,7.504],[0.383,0.282],[0,0],[0.185,-0.348],[1.518,0],[1.99,3.902],[0,0],[0,0],[-0.287,-0.252],[0,0],[-0.191,0.443],[0,0],[0,0]],"o":[[0.538,-0.126],[0,0],[-0.155,-0.126],[0,0],[0,0],[0.155,-0.348],[0,0],[-0.347,-0.252],[0,0],[0,0],[0,0],[-0.191,0.03],[0,0],[-0.066,0.222],[1.518,5.16],[3.723,0],[0.155,-0.348],[0,0],[-0.317,-0.252],[-3.598,7.03],[-2.833,0],[0,0],[0,0],[-0.155,0.318],[0,0],[0.347,0.318],[0,0],[0,0],[0,0]],"v":[[46.561,-23.396],[46.686,-24.187],[44.732,-26.087],[44.135,-26.309],[-6.637,-15.527],[-6.021,-16.941],[-6.272,-17.828],[-7.945,-19.033],[-8.8,-18.811],[-9.051,-18.242],[-10.712,-14.663],[-45.731,-7.22],[-46.143,-6.872],[-46.932,-4.595],[-46.932,-3.995],[-32.225,7.242],[-22.126,-1.4],[-22.413,-2.317],[-24.212,-3.708],[-24.935,-3.516],[-31.849,3.64],[-43.036,-4.355],[-12.487,-10.846],[-28.186,22.981],[-27.995,23.868],[-25.503,26.115],[-24.648,25.924],[-8.286,-11.745],[46.555,-23.396]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.537254929543,0.537254929543,0.51372551918,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Shape Layer 9","parent":12,"tt":1,"tp":12,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-11.842,14.004,0],"ix":2,"l":2},"a":{"a":0,"k":[-66.789,78.983,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0]],"o":[[0,0]],"v":[[203,94]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 4","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-33,13],[6.2,-63.77],[2,50.5]],"o":[[0,0],[41.194,-16.228],[-7,72],[-0.835,-21.084]],"v":[[-27.5,35],[-48,131],[78.5,27],[8.5,90.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":17,"s":[0]},{"t":44,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-52,215],[41,-7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":14,"s":[0]},{"t":46,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.162,5.481],[33.5,-45],[-18.54,-2.181],[0,0]],"o":[[-0.75,-25.375],[-20.964,28.161],[17,2],[0,0]],"v":[[-52.5,65.625],[-98,69.25],[-110.5,143],[-14.75,13.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":1,"s":[0]},{"t":27,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Shape Layer 2","parent":12,"tt":1,"tp":12,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[-11.842,14.004,0],"ix":2,"l":2},"a":{"a":0,"k":[-66.789,78.983,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0]],"o":[[0,0]],"v":[[203,94]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 4","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-33,13],[6.2,-63.77],[2,50.5]],"o":[[0,0],[41.194,-16.228],[-7,72],[-0.835,-21.084]],"v":[[-27.5,35],[-48,131],[78.5,27],[8.5,90.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":16,"s":[0]},{"t":43,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[-52,215],[41,-7]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":13,"s":[0]},{"t":45,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.162,5.481],[33.5,-45],[-18.54,-2.181],[0,0]],"o":[[-0.75,-25.375],[-20.964,28.161],[17,2],[0,0]],"v":[[-52.5,65.625],[-98,69.25],[-110.5,143],[-14.75,13.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Layer 2","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.077],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.061],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":21,"s":[-9]},{"t":44,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.077,"y":1},"o":{"x":0.914,"y":0},"t":0,"s":[540,540,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.061,"y":1},"o":{"x":0.914,"y":0},"t":21,"s":[526,582,0],"to":[0,0,0],"ti":[0,0,0]},{"t":44,"s":[540,540,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[564,564,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.241,0],[0.58,1.079],[-1.207,0],[0,-0.731]],"o":[[-0.98,0],[4.016,-8.6],[0.412,0],[0,3.386]],"v":[[5.06,18.27],[2.485,16.023],[11.311,3.832],[12.034,4.941]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0.731],[-2.432,0],[-0.508,-1.157],[1.255,0]],"o":[[-0.412,0],[0,-3.416],[0.92,0],[-4.524,8.768],[0,0]],"v":[[-18.425,23.491],[-19.148,22.382],[-11.541,8.927],[-9.15,11.426],[-18.419,23.485]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[2.576,-3.476],[0,0],[0.317,0.222],[0,0],[0.191,-0.378],[0,0],[1.422,0],[0,0.438],[-2.366,4.849],[0,0],[0.287,0.222],[0,0],[0.191,-0.378],[0,0],[1.554,0],[0,-5.67],[-1.924,0],[-3.526,5.214],[0,-0.479],[-1.518,0],[-2.833,4.189],[0,0],[-0.281,-0.288],[0,0],[-0.191,0.443],[0,0],[-1.703,0],[0,5.64],[1.924,0]],"o":[[-1.47,0],[0,0],[0.191,-0.378],[0,0],[-0.347,-0.222],[0,0],[-4.799,10.542],[-0.376,0],[0,-2.182],[0,0],[0.126,-0.288],[0,0],[-0.317,-0.252],[0,0],[-0.436,-2.11],[-4.828,0],[0,2.403],[1.733,0],[-0.108,0.617],[0,1.738],[2.032,0],[0,0],[-0.155,0.348],[0,0],[0.347,0.348],[0,0],[0.609,1.906],[4.452,0],[0,-2.403],[0,0]],"v":[[12.727,0.254],[6.626,5.025],[8.407,1.423],[8.156,0.566],[6.512,-0.513],[5.658,-0.291],[2.849,5.882],[-8.009,21.015],[-8.517,20.29],[-2.583,5.852],[-1.764,4.174],[-2.051,3.317],[-3.695,2.016],[-4.579,2.172],[-7.698,8.477],[-11.051,5.271],[-23.015,23.095],[-19.859,27.051],[-12.126,20.662],[-12.318,22.37],[-9.856,24.965],[-2.075,18.36],[-9.886,34.686],[-9.76,35.543],[-7.549,37.599],[-6.694,37.443],[1.218,18.834],[4.857,21.902],[15.871,4.204],[12.715,0.248]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.537254929543,0.537254929543,0.51372551918,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Shape Layer 10","parent":15,"tt":1,"tp":15,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[31.964,4.918,0],"ix":2,"l":2},"a":{"a":0,"k":[180.278,27.736,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[195.25,45.75],[341.75,11.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.198],"y":[1]},"o":{"x":[0.049],"y":[0.19]},"t":29,"s":[0]},{"t":47,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[55.994,-7.636],[0,0]],"o":[[0,0],[-38.5,5.25],[0,0]],"v":[[266.75,-41.5],[221.25,72.75],[189.75,36.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":21.4,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":21,"s":[0]},{"t":37,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-18.234,11.823],[50.5,-12.5],[12.395,-28.77],[-28.756,12.78],[0,0]],"o":[[54.75,-35.5],[-22.967,5.685],[-11.447,26.57],[51.75,-23],[0,0]],"v":[[113.375,69.875],[154.25,-10],[105.855,46.52],[137.5,89.5],[259.25,-52.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":1,"s":[0]},{"t":27,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882536764706,0.882536764706,0.882536764706,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":23,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Shape Layer 3","parent":15,"tt":1,"tp":15,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[31.964,4.918,0],"ix":2,"l":2},"a":{"a":0,"k":[180.278,27.736,0],"ix":1,"l":2},"s":{"a":0,"k":[17.73,17.73,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[195.25,45.75],[341.75,11.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":25,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.198],"y":[1]},"o":{"x":[0.049],"y":[0.19]},"t":28,"s":[0]},{"t":46,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[55.994,-7.636],[0,0]],"o":[[0,0],[-38.5,5.25],[0,0]],"v":[[266.75,-41.5],[221.25,72.75],[189.75,36.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":21.4,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":20,"s":[0]},{"t":36,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-18.234,11.823],[50.5,-12.5],[12.395,-28.77],[-28.756,12.78],[0,0]],"o":[[54.75,-35.5],[-22.967,5.685],[-11.447,26.57],[51.75,-23],[0,0]],"v":[[113.375,69.875],[154.25,-10],[105.855,46.52],[137.5,89.5],[259.25,-52.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.875],"y":[0]},"t":0,"s":[0]},{"t":26,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.882352941176,0.533333333333,0.047058823529,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":23,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":15,"ty":4,"nm":"Layer 3","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.077],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":0,"s":[0]},{"i":{"x":[0.061],"y":[1]},"o":{"x":[0.914],"y":[0]},"t":21,"s":[13]},{"t":44,"s":[0]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.077,"y":1},"o":{"x":0.914,"y":0},"t":0,"s":[540,540,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.061,"y":1},"o":{"x":0.914,"y":0},"t":21,"s":[542,574,0],"to":[0,0,0],"ti":[0,0,0]},{"t":44,"s":[540,540,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[564,564,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0.251,1.444],[-0.173,0.204],[0,0],[1.924,0]],"o":[[-1.398,0],[0.173,-0.198],[0,0],[-1.452,3.152],[0,0]],"v":[[38.418,11.211],[35.4,9.041],[35.914,8.436],[43.969,6.788],[38.418,11.205]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0.359,-1.588],[0,0],[-2.468,3.728]],"o":[[0,0],[-0.03,2.194],[0,0],[2.301,-2.985],[0,0]],"v":[[45.648,-4.899],[45.619,-2.016],[45.015,3.641],[38.507,5.224],[45.654,-4.899]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[0,-0.725],[4.817,-2.182],[-2.361,0]],"o":[[0.759,0],[0,2.032],[0.914,-5.035],[0,0]],"v":[[28.48,-0.692],[29.555,0.543],[20.006,10.03],[28.486,-0.692]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0.317,-0.066],[0,0],[-0.017,1.684],[0,0],[0.317,0.252],[0,0],[0.191,-0.282],[4.357,0],[0.299,1.402],[0,4.465],[2.145,0],[0,-7.126],[-2.773,0],[-4.076,4.225],[-2.582,0],[-1.799,5.694],[0,0],[0.311,0.378]],"o":[[0,0],[-0.221,-0.252],[0,0],[0.233,-1.444],[0,0],[0,-0.318],[0,0],[-0.251,-0.222],[-11.838,17.632],[-1.285,0],[6.747,-1.966],[0,-2.056],[-6.06,0],[0,3.86],[3.586,0],[0.508,1.99],[4.661,0],[0,0],[0.473,-0.096],[0,0]],"v":[[59.823,2.79],[58.216,0.89],[57.361,0.639],[48.744,2.736],[49.126,-1.956],[49.156,-5.247],[48.714,-5.972],[45.559,-8.693],[44.77,-8.537],[22.611,14.507],[19.952,12.332],[33.123,-0.302],[29.46,-3.91],[16.552,12.14],[21.757,18.121],[33.23,11.439],[37.76,14.795],[47.985,5.979],[59.542,3.617],[59.829,2.796]],"c":true},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.537254929543,0.537254929543,0.51372551918,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":50,"st":0,"ct":1,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Pre-comp 3","refId":"comp_0","sr":-1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[360,295,0],"ix":2,"l":2},"a":{"a":0,"k":[540,540,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":1080,"h":1080,"ip":99.9916666666667,"op":49.9916666666667,"st":100,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Pre-comp 3","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[380,277,0],"ix":2,"l":2},"a":{"a":0,"k":[540,540,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":1080,"h":1080,"ip":0,"op":50,"st":0,"bm":0}],"markers":[]}';var s=i(1095),a=i.n(s),o=i(100),l=i(3409);const u=class extends n.Component{load(){window.skipIntro&&(this.onTransitionQuasiEnd(),this.onTransitionEnd()),window.setTimeout((()=>{this.start()}),300)}start(){this.totalWorks=[...document.querySelectorAll(".c-mouse-move__media-image")].length,this.imageLoader(),this.animationComplete=!1,this.loadingComplete=!1,a().loadAnimation({container:this.$refs.logoWrapper,renderer:"svg",loop:!1,autoplay:!0,animationData:this.jsonParse(r)}).addEventListener("complete",(()=>{this.animationComplete=!0,this.animationComplete&&this.loadingComplete&&this.introStart()}))}jsonParse(t){return JSON.parse(t.replace(/\n/g,""))}imageLoader(){let t=0;this.$refs.image.forEach((e=>{const i=new Image;i.src=e.dataset.bg,i.addEventListener("load",(()=>{t++,this.$refs.line.style.transform=`scaleX(${this.makeProportion(t,this.$refs.image.length,this.totalWorks)/this.totalWorks})`,e.style.backgroundImage=`url(${e.dataset.bg})`,this.$refs.counterLeft.innerText=this.addLeadingZero(this.makeProportion(t,this.$refs.image.length,this.totalWorks)),t==this.$refs.image.length&&(this.loadingComplete=!0,this.animationComplete&&this.loadingComplete&&this.introStart())}))}))}makeProportion(t,e,i){const n=t/e;return Math.trunc(i*n)}introStart(){const t=this.$refs.items.getBoundingClientRect();this.$refs.items.style.setProperty("--translate-container",-t.height+window.innerHeight+"px"),document.documentElement.classList.add("intro-start"),l.p8.delayedCall(2,(()=>{this.onTransitionAfterStart()})),l.p8.delayedCall(2.775,(()=>{this.textReveal()})),l.p8.delayedCall(3,(()=>{this.onTransitionQuasiEnd()})),l.p8.delayedCall(4,(()=>{this.onTransitionEnd()}))}onTransitionAfterStart(){document.documentElement.classList.add("intro-after-start")}textReveal(){document.documentElement.classList.add("intro-text-reveal")}onTransitionQuasiEnd(){document.documentElement.classList.add("intro-quasi-complete")}onTransitionEnd(){document.documentElement.classList.remove("intro-start"),document.documentElement.classList.remove("intro-after-start"),document.documentElement.classList.add("intro-complete"),this.$refs.items.style.transitionDuration="0s",this.$refs.itemsWrapper.style.transitionDuration="0s",this.emit("transitionEnd"),this.$el.remove(),o.Z.instance.start(),o.Z.instance.update()}onResize(){const t=this.$refs.items.getBoundingClientRect();this.$refs.items.style.setProperty("--translate-container",-t.height+window.innerHeight+"px")}addLeadingZero(t){return t<10?"0"+t:t}}},8325:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var n=i(9988),r=i(3409);r.p8.registerPlugin(r.C2);const s=class extends n.Component{load(){this.$items=this.$refs.item,this.splitText=new r.C2(this.$items,{type:"lines",linesClass:"o-reveal"}),this.splitText.lines.forEach(((t,e)=>{t.style.setProperty("--index",e)}))}}},6547:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>Hu});var n=i(9988),r=i(8908),s=i.n(r),a=i(9144),o=i.n(a);function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},l.apply(this,arguments)}var u=i(7537),c=i.n(u);function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e)}var f=i(5974),m=i.n(f),g=i(9603),y=i.n(g),v=i(3407),_=i.n(v);function b(t,e,i){return b=function(){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}}()?Reflect.construct.bind():function(t,e,i){var n=[null];n.push.apply(n,e);var r=new(Function.bind.apply(t,n));return i&&d(r,i.prototype),r},b.apply(null,arguments)}var x=i(9945),T=i.n(x);const w=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=s().location&&s().location.href||"");var i="function"==typeof s().URL,n=/^\/\//.test(t),r=!s().location&&!/\/\//i.test(t);if(i?t=new(s().URL)(t,s().location||"http://example.com"):/\/\//i.test(t)||(t=T().buildAbsoluteURL(s().location&&s().location.href||"",t)),i){var a=new URL(e,t);return r?a.href.slice(18):n?a.href.slice(a.protocol.length):a.href}return T().buildAbsoluteURL(t,e)};var k=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(i,1),i>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var i=e.length,n=0;n<i;++n)e[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=e.length,a=0;a<s;++a)e[a].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",(function(e){t.push(e)}))},t}();function S(t){for(var e,i=(e=t,s().atob?s().atob(e):Buffer.from(e,"base64").toString("binary")),n=new Uint8Array(i.length),r=0;r<i.length;r++)n[r]=i.charCodeAt(r);return n}var E,D,C,P=function(t){function e(){var e;return(e=t.call(this)||this).buffer="",e}return p(e,t),e.prototype.push=function(t){var e;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)},e}(k),A=String.fromCharCode(9),M=function(t){var e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),i={};return e[1]&&(i.length=parseInt(e[1],10)),e[2]&&(i.offset=parseInt(e[2],10)),i},I=function(t){for(var e,i=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((e=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=e[0].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^\s+|\s+$/g,""),e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1"),n[e[0]]=e[1]);return n},L=function(t){function e(){var e;return(e=t.call(this)||this).customParsers=[],e.tagMappers=[],e}p(e,t);var i=e.prototype;return i.push=function(t){var e,i,n=this;0!==(t=t.trim()).length&&("#"===t[0]?this.tagMappers.reduce((function(e,i){var n=i(t);return n===t?e:e.concat([n])}),[t]).forEach((function(t){for(var r=0;r<n.customParsers.length;r++)if(n.customParsers[r].call(n,t))return;if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))n.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return i={type:"tag",tagType:"inf"},e[1]&&(i.duration=parseFloat(e[1])),e[2]&&(i.title=e[2]),void n.trigger("data",i);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"targetduration"},e[1]&&(i.duration=parseInt(e[1],10)),void n.trigger("data",i);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"version"},e[1]&&(i.version=parseInt(e[1],10)),void n.trigger("data",i);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"media-sequence"},e[1]&&(i.number=parseInt(e[1],10)),void n.trigger("data",i);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(i.number=parseInt(e[1],10)),void n.trigger("data",i);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return i={type:"tag",tagType:"playlist-type"},e[1]&&(i.playlistType=e[1]),void n.trigger("data",i);if(e=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(t))return i=l(M(e[1]),{type:"tag",tagType:"byterange"}),void n.trigger("data",i);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return i={type:"tag",tagType:"allow-cache"},e[1]&&(i.allowed=!/NO/.test(e[1])),void n.trigger("data",i);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"map"},e[1]){var s=I(e[1]);s.URI&&(i.uri=s.URI),s.BYTERANGE&&(i.byterange=M(s.BYTERANGE))}n.trigger("data",i)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"stream-inf"},e[1]){if(i.attributes=I(e[1]),i.attributes.RESOLUTION){var a=i.attributes.RESOLUTION.split("x"),o={};a[0]&&(o.width=parseInt(a[0],10)),a[1]&&(o.height=parseInt(a[1],10)),i.attributes.RESOLUTION=o}i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}n.trigger("data",i)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return i={type:"tag",tagType:"media"},e[1]&&(i.attributes=I(e[1])),void n.trigger("data",i);if(e=/^#EXT-X-ENDLIST/.exec(t))n.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))n.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return i={type:"tag",tagType:"program-date-time"},e[1]&&(i.dateTimeString=e[1],i.dateTimeObject=new Date(e[1])),void n.trigger("data",i);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return i={type:"tag",tagType:"key"},e[1]&&(i.attributes=I(e[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void n.trigger("data",i);if(e=/^#EXT-X-START:?(.*)$/.exec(t))return i={type:"tag",tagType:"start"},e[1]&&(i.attributes=I(e[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void n.trigger("data",i);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out-cont"},e[1]?i.data=e[1]:i.data="",void n.trigger("data",i);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out"},e[1]?i.data=e[1]:i.data="",void n.trigger("data",i);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-in"},e[1]?i.data=e[1]:i.data="",void n.trigger("data",i);if((e=/^#EXT-X-SKIP:(.*)$/.exec(t))&&e[1])return(i={type:"tag",tagType:"skip"}).attributes=I(e[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(A)),void n.trigger("data",i);if((e=/^#EXT-X-PART:(.*)$/.exec(t))&&e[1])return(i={type:"tag",tagType:"part"}).attributes=I(e[1]),["DURATION"].forEach((function(t){i.attributes.hasOwnProperty(t)&&(i.attributes[t]=parseFloat(i.attributes[t]))})),["INDEPENDENT","GAP"].forEach((function(t){i.attributes.hasOwnProperty(t)&&(i.attributes[t]=/YES/.test(i.attributes[t]))})),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=M(i.attributes.BYTERANGE)),void n.trigger("data",i);if((e=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(t))&&e[1])return(i={type:"tag",tagType:"server-control"}).attributes=I(e[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(t){i.attributes.hasOwnProperty(t)&&(i.attributes[t]=parseFloat(i.attributes[t]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(t){i.attributes.hasOwnProperty(t)&&(i.attributes[t]=/YES/.test(i.attributes[t]))})),void n.trigger("data",i);if((e=/^#EXT-X-PART-INF:(.*)$/.exec(t))&&e[1])return(i={type:"tag",tagType:"part-inf"}).attributes=I(e[1]),["PART-TARGET"].forEach((function(t){i.attributes.hasOwnProperty(t)&&(i.attributes[t]=parseFloat(i.attributes[t]))})),void n.trigger("data",i);if((e=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(t))&&e[1])return(i={type:"tag",tagType:"preload-hint"}).attributes=I(e[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(t){if(i.attributes.hasOwnProperty(t)){i.attributes[t]=parseInt(i.attributes[t],10);var e="BYTERANGE-LENGTH"===t?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[e]=i.attributes[t],delete i.attributes[t]}})),void n.trigger("data",i);if((e=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(t))&&e[1])return(i={type:"tag",tagType:"rendition-report"}).attributes=I(e[1]),["LAST-MSN","LAST-PART"].forEach((function(t){i.attributes.hasOwnProperty(t)&&(i.attributes[t]=parseInt(i.attributes[t],10))})),void n.trigger("data",i);n.trigger("data",{type:"tag",data:t.slice(4)})}}}else n.trigger("data",{type:"comment",text:t.slice(1)})})):this.trigger("data",{type:"uri",uri:t}))},i.addParser=function(t){var e=this,i=t.expression,n=t.customType,r=t.dataParser,s=t.segment;"function"!=typeof r&&(r=function(t){return t}),this.customParsers.push((function(t){if(i.exec(t))return e.trigger("data",{type:"custom",data:r(t),customType:n,segment:s}),!0}))},i.addTagMapper=function(t){var e=t.expression,i=t.map;this.tagMappers.push((function(t){return e.test(t)?i(t):t}))},e}(k),O=function(t){var e={};return Object.keys(t).forEach((function(i){var n;e[(n=i,n.toLowerCase().replace(/-(\w)/g,(function(t){return t[1].toUpperCase()})))]=t[i]})),e},F=function(t){var e=t.serverControl,i=t.targetDuration,n=t.partTargetDuration;if(e){var r="#EXT-X-SERVER-CONTROL",s="holdBack",a="partHoldBack",o=i&&3*i,l=n&&2*n;i&&!e.hasOwnProperty(s)&&(e[s]=o,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})),o&&e[s]<o&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+e[s]+") to targetDuration * 3 ("+o+")"}),e[s]=o),n&&!e.hasOwnProperty(a)&&(e[a]=3*n,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+e[a]+")."})),n&&e[a]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+e[a]+") to partTargetDuration * 2 ("+l+")."}),e[a]=l)}},R=function(t){function e(){var e;(e=t.call(this)||this).lineStream=new P,e.parseStream=new L,e.lineStream.pipe(e.parseStream);var i,n,r=h(e),s=[],a={},o=!1,u=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var p=0,f=0;return e.on("end",(function(){a.uri||!a.parts&&!a.preloadHints||(!a.map&&i&&(a.map=i),!a.key&&n&&(a.key=n),a.timeline||"number"!=typeof d||(a.timeline=d),e.manifest.preloadSegment=a)})),e.parseStream.on("data",(function(t){var e,h;({tag:function(){({version:function(){t.version&&(this.manifest.version=t.version)},"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(a.byterange=e,e.length=t.length,"offset"in t||(t.offset=p)),"offset"in t&&(a.byterange=e,e.offset=t.offset),p=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.duration>0&&(a.duration=t.duration),0===t.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=s},key:function(){if(t.attributes)if("NONE"!==t.attributes.METHOD)if(t.attributes.URI){if("com.apple.streamingkeydelivery"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:t.attributes});if("com.microsoft.playready"===t.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:t.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===t.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(t.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===t.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==t.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):t.attributes.KEYID&&"0x"===t.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:t.attributes.KEYFORMAT,keyId:t.attributes.KEYID.substring(2)},pssh:S(t.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(n.iv=t.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,d=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){i={},t.uri&&(i.uri=t.uri),t.byterange&&(i.byterange=t.byterange),n&&(i.key=n)},"stream-inf":function(){this.manifest.playlists=s,this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes?(a.attributes||(a.attributes={}),l(a.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var i=this.manifest.mediaGroups[t.attributes.TYPE];i[t.attributes["GROUP-ID"]]=i[t.attributes["GROUP-ID"]]||{},e=i[t.attributes["GROUP-ID"]],(h={default:/yes/i.test(t.attributes.DEFAULT)}).default?h.autoselect=!0:h.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(h.language=t.attributes.LANGUAGE),t.attributes.URI&&(h.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(h.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(h.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(h.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=h}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){d+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(s.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject),a.dateTimeString=t.dateTimeString,a.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):(this.manifest.targetDuration=t.duration,F.call(this,this.manifest))},start:function(){t.attributes&&!isNaN(t.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:t.attributes["TIME-OFFSET"],precise:t.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=t.data},"cue-out-cont":function(){a.cueOutCont=t.data},"cue-in":function(){a.cueIn=t.data},skip:function(){this.manifest.skip=O(t.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",t.attributes,["SKIPPED-SEGMENTS"])},part:function(){var e=this;o=!0;var i=this.manifest.segments.length,n=O(t.attributes);a.parts=a.parts||[],a.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=f),f=n.byterange.offset+n.byterange.length);var r=a.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+i,t.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(t,i){t.hasOwnProperty("lastPart")||e.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var e=this.manifest.serverControl=O(t.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),F.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,i=O(t.attributes),n=i.type&&"PART"===i.type;a.preloadHints=a.preloadHints||[],a.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=n?f:0,n&&(f=i.byterange.offset+i.byterange.length)));var r=a.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+e,t.attributes,["TYPE","URI"]),i.type)for(var s=0;s<a.preloadHints.length-1;s++){var o=a.preloadHints[s];o.type&&o.type===i.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+e+" has the same TYPE "+i.type+" as preload hint #"+s})}},"rendition-report":function(){var e=O(t.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);var i=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];o&&n.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+i,t.attributes,n)},"part-inf":function(){this.manifest.partInf=O(t.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",t.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),F.call(this,this.manifest)}}[t.tagType]||u).call(r)},uri:function(){a.uri=t.uri,s.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),n&&(a.key=n),a.timeline=d,i&&(a.map=i),f=0,a={}},comment:function(){},custom:function(){t.segment?(a.custom=a.custom||{},a.custom[t.customType]=t.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[t.customType]=t.data)}})[t.type].call(r)})),e}p(e,t);var i=e.prototype;return i.warnOnMissingAttributes_=function(t,e,i){var n=[];i.forEach((function(t){e.hasOwnProperty(t)||n.push(t)})),n.length&&this.trigger("warn",{message:t+" lacks required attribute(s): "+n.join(", ")})},i.push=function(t){this.lineStream.push(t)},i.end=function(){this.lineStream.push("\n"),this.trigger("end")},i.addParser=function(t){this.parseStream.addParser(t)},i.addTagMapper=function(t){this.parseStream.addTagMapper(t)},e}(k),B={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},N=["video","audio","text"],H=["Video","Audio","Text"],V=function(t){return t?t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,i){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)})):t},j=function(t){void 0===t&&(t="");var e=t.split(","),i=[];return e.forEach((function(t){var e;t=t.trim(),N.forEach((function(n){var r=B[n].exec(t.toLowerCase());if(r&&!(r.length<=1)){e=n;var s=t.substring(0,r[1].length),a=t.replace(s,"");i.push({type:s,details:a,mediaType:n})}})),e||i.push({type:t,details:"",mediaType:"unknown"})})),i},U=function(t){return void 0===t&&(t=""),B.audio.test(t.trim().toLowerCase())},z=function(t){if(t&&"string"==typeof t){var e,i=t.toLowerCase().split(",").map((function(t){return V(t.trim())})),n="video";1===i.length&&U(i[0])?n="audio":1===i.length&&(void 0===(e=i[0])&&(e=""),B.text.test(e.trim().toLowerCase()))&&(n="application");var r="mp4";return i.every((function(t){return B.mp4.test(t)}))?r="mp4":i.every((function(t){return B.webm.test(t)}))?r="webm":i.every((function(t){return B.ogg.test(t)}))&&(r="ogg"),n+"/"+r+';codecs="'+t+'"'}},q=function(t){return void 0===t&&(t=""),s().MediaSource&&s().MediaSource.isTypeSupported&&s().MediaSource.isTypeSupported(z(t))||!1},G=function(t){return void 0===t&&(t=""),t.toLowerCase().split(",").every((function(t){t=t.trim();for(var e=0;e<H.length;e++)if(B["muxer"+H[e]].test(t))return!0;return!1}))},W="mp4a.40.2",X=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,$=/^application\/dash\+xml/i,Y=function(t){return X.test(t)?"hls":$.test(t)?"dash":"application/vnd.videojs.vhs+json"===t?"vhs-json":null},K=function(t){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},Q=function(t){return t instanceof Uint8Array?t:(Array.isArray(t)||K(t)||t instanceof ArrayBuffer||(t="number"!=typeof t||"number"==typeof t&&t!=t?0:[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},Z=s().BigInt||Number,J=[Z("0x1"),Z("0x100"),Z("0x10000"),Z("0x1000000"),Z("0x100000000"),Z("0x10000000000"),Z("0x1000000000000"),Z("0x100000000000000"),Z("0x10000000000000000")],tt=(E=new Uint16Array([65484]),255===(D=new Uint8Array(E.buffer,E.byteOffset,E.byteLength))[0]||D[0],function(t,e){var i=void 0===e?{}:e,n=i.signed,r=void 0!==n&&n,s=i.le,a=void 0!==s&&s;t=Q(t);var o=a?"reduce":"reduceRight",l=(t[o]?t[o]:Array.prototype[o]).call(t,(function(e,i,n){var r=a?n:Math.abs(n+1-t.length);return e+Z(i)*J[r]}),Z(0));if(r){var u=J[t.length]/Z(2)-Z(1);(l=Z(l))>u&&(l-=u,l-=u,l-=Z(2))}return Number(l)}),et=function(t,e){if("string"!=typeof t&&t&&"function"==typeof t.toString&&(t=t.toString()),"string"!=typeof t)return new Uint8Array;e||(t=unescape(encodeURIComponent(t)));for(var i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i},it=function(t,e,i){var n=void 0===i?{}:i,r=n.offset,s=void 0===r?0:r,a=n.mask,o=void 0===a?[]:a;t=Q(t);var l=(e=Q(e)).every?e.every:Array.prototype.every;return e.length&&t.length-s>=e.length&&l.call(e,(function(e,i){return e===(o[i]?o[i]&t[s+i]:t[s+i])}))},nt=i(3969),rt=function(t){return!!t&&"object"==typeof t},st=function t(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.reduce((function(e,i){return"object"!=typeof i||Object.keys(i).forEach((function(n){Array.isArray(e[n])&&Array.isArray(i[n])?e[n]=e[n].concat(i[n]):rt(e[n])&&rt(i[n])?e[n]=t(e[n],i[n]):e[n]=i[n]})),e}),{})},at=function(t){return Object.keys(t).map((function(e){return t[e]}))},ot=function(t){return t.reduce((function(t,e){return t.concat(e)}),[])},lt=function(t){if(!t.length)return[];for(var e=[],i=0;i<t.length;i++)e.push(t[i]);return e},ut=function(t,e){for(var i=0;i<t.length;i++)if(e(t[i]))return i;return-1},ct=function(t){var e=t.baseUrl,i=void 0===e?"":e,n=t.source,r=void 0===n?"":n,a=t.range,o=void 0===a?"":a,l=t.indexRange,u=void 0===l?"":l,c={uri:r,resolvedUri:w(i||"",r)};if(o||u){var h,d=(o||u).split("-"),p=s().BigInt?s().BigInt(d[0]):parseInt(d[0],10),f=s().BigInt?s().BigInt(d[1]):parseInt(d[1],10);p<Number.MAX_SAFE_INTEGER&&"bigint"==typeof p&&(p=Number(p)),f<Number.MAX_SAFE_INTEGER&&"bigint"==typeof f&&(f=Number(f)),"bigint"==typeof(h="bigint"==typeof f||"bigint"==typeof p?s().BigInt(f)-s().BigInt(p)+s().BigInt(1):f-p+1)&&h<Number.MAX_SAFE_INTEGER&&(h=Number(h)),c.byterange={length:h,offset:p}}return c},ht=function(t){return t&&"number"!=typeof t&&(t=parseInt(t,10)),isNaN(t)?null:t},dt={static:function(t){var e=t.duration,i=t.timescale,n=void 0===i?1:i,r=t.sourceDuration,s=t.periodDuration,a=ht(t.endNumber),o=e/n;return"number"==typeof a?{start:0,end:a}:"number"==typeof s?{start:0,end:s/o}:{start:0,end:r/o}},dynamic:function(t){var e=t.NOW,i=t.clientOffset,n=t.availabilityStartTime,r=t.timescale,s=void 0===r?1:r,a=t.duration,o=t.periodStart,l=void 0===o?0:o,u=t.minimumUpdatePeriod,c=void 0===u?0:u,h=t.timeShiftBufferDepth,d=void 0===h?1/0:h,p=ht(t.endNumber),f=(e+i)/1e3,m=n+l,g=f+c-m,y=Math.ceil(g*s/a),v=Math.floor((f-m-d)*s/a),_=Math.floor((f-m)*s/a);return{start:Math.max(0,v),end:"number"==typeof p?p:Math.min(y,_)}}},pt=function(t){var e=t.type,i=t.duration,n=t.timescale,r=void 0===n?1:n,s=t.periodDuration,a=t.sourceDuration,o=dt[e](t),l=function(t,e){for(var i=[],n=t;n<e;n++)i.push(n);return i}(o.start,o.end).map(function(t){return function(e){var i=t.duration,n=t.timescale,r=void 0===n?1:n,s=t.periodStart,a=t.startNumber;return{number:(void 0===a?1:a)+e,duration:i/r,timeline:s,time:e*i}}}(t));if("static"===e){var u=l.length-1,c="number"==typeof s?s:a;l[u].duration=c-i/r*u}return l},ft=function(t){var e=t.baseUrl,i=t.initialization,n=void 0===i?{}:i,r=t.sourceDuration,s=t.indexRange,a=void 0===s?"":s,o=t.periodStart,l=t.presentationTime,u=t.number,c=void 0===u?0:u,h=t.duration;if(!e)throw new Error("NO_BASE_URL");var d=ct({baseUrl:e,source:n.sourceURL,range:n.range}),p=ct({baseUrl:e,source:e,indexRange:a});if(p.map=d,h){var f=pt(t);f.length&&(p.duration=f[0].duration,p.timeline=f[0].timeline)}else r&&(p.duration=r,p.timeline=o);return p.presentationTime=l||o,p.number=c,[p]},mt=function(t,e,i){var n,r=t.sidx.map?t.sidx.map:null,a=t.sidx.duration,o=t.timeline||0,l=t.sidx.byterange,u=l.offset+l.length,c=e.timescale,h=e.references.filter((function(t){return 1!==t.referenceType})),d=[],p=t.endList?"static":"dynamic",f=t.sidx.timeline,m=f,g=t.mediaSequence||0;n="bigint"==typeof e.firstOffset?s().BigInt(u)+e.firstOffset:u+e.firstOffset;for(var y=0;y<h.length;y++){var v,_=e.references[y],b=_.referencedSize,x=_.subsegmentDuration;v="bigint"==typeof n?n+s().BigInt(b)-s().BigInt(1):n+b-1;var T=ft({baseUrl:i,timescale:c,timeline:o,periodStart:f,presentationTime:m,number:g,duration:x,sourceDuration:a,indexRange:n+"-"+v,type:p})[0];r&&(T.map=r),d.push(T),n+="bigint"==typeof n?s().BigInt(b):b,m+=x/c,g++}return t.segments=d,t},gt=["AUDIO","SUBTITLES"],yt=function(t){return(e=t,i=function(t){return t.timeline},at(e.reduce((function(t,e){return e.forEach((function(e){t[i(e)]=e})),t}),{}))).sort((function(t,e){return t.timeline>e.timeline?1:-1}));var e,i},vt=function(t){var e,i,n=[];return e=t,i=function(t,e,i,r){n=n.concat(t.playlists||[])},gt.forEach((function(t){for(var n in e.mediaGroups[t])for(var r in e.mediaGroups[t][n]){var s=e.mediaGroups[t][n][r];i(s)}})),n},_t=function(t){var e=t.playlist,i=t.mediaSequence;e.mediaSequence=i,e.segments.forEach((function(t,i){t.number=e.mediaSequence+i}))},bt=function(t){return t&&t.uri+"-"+(i="bigint"==typeof(e=t.byterange).offset||"bigint"==typeof e.length?s().BigInt(e.offset)+s().BigInt(e.length)-s().BigInt(1):e.offset+e.length-1,e.offset+"-"+i);var e,i},xt=function(t){return at(t.reduce((function(t,e){var i,n=e.attributes.id+(e.attributes.lang||"");t[n]?(e.segments&&(e.segments[0]&&(e.segments[0].discontinuity=!0),(i=t[n].segments).push.apply(i,e.segments)),e.attributes.contentProtection&&(t[n].attributes.contentProtection=e.attributes.contentProtection)):(t[n]=e,t[n].attributes.timelineStarts=[]);return t[n].attributes.timelineStarts.push({start:e.attributes.periodStart,timeline:e.attributes.periodStart}),t}),{})).map((function(t){var e;return t.discontinuityStarts=(e=t.segments||[],"discontinuity",e.reduce((function(t,e,i){return e.discontinuity&&t.push(i),t}),[])),t}))},Tt=function(t,e){var i=bt(t.sidx),n=i&&e[i]&&e[i].sidx;return n&&mt(t,n,t.sidx.resolvedUri),t},wt=function(t,e){if(void 0===e&&(e={}),!Object.keys(e).length)return t;for(var i in t)t[i]=Tt(t[i],e);return t},kt=function(t){var e,i=t.attributes,n=t.segments,r=t.sidx,s=t.discontinuityStarts,a={attributes:(e={NAME:i.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:i.width,height:i.height},CODECS:i.codecs,BANDWIDTH:i.bandwidth},e["PROGRAM-ID"]=1,e),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuityStarts:s,timelineStarts:i.timelineStarts,segments:n};return i.contentProtection&&(a.contentProtection=i.contentProtection),r&&(a.sidx=r),a},St=function(t){var e=t.attributes;return"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},Et=function(t){var e=t.attributes;return"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},Dt=function(t){var e=t.attributes;return"text/vtt"===e.mimeType||"text"===e.contentType},Ct=function(t){return t?Object.keys(t).reduce((function(e,i){var n=t[i];return e.concat(n.playlists)}),[]):[]},Pt=function(t){var e,i=t.dashPlaylists,n=t.locations,r=t.sidxMapping,s=void 0===r?{}:r,a=t.previousManifest;if(!i.length)return{};var o=i[0].attributes,l=o.sourceDuration,u=o.type,c=o.suggestedPresentationDelay,h=o.minimumUpdatePeriod,d=xt(i.filter(St)).map(kt),p=xt(i.filter(Et)),f=xt(i.filter(Dt)),m=i.map((function(t){return t.attributes.captionServices})).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(e={AUDIO:{},VIDEO:{}},e["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:l,playlists:wt(d,s)};h>=0&&(g.minimumUpdatePeriod=1e3*h),n&&(g.locations=n),"dynamic"===u&&(g.suggestedPresentationDelay=c);var y,v,_,b,x,T,w,k=0===g.playlists.length,S=p.length?function(t,e,i){var n;void 0===e&&(e={}),void 0===i&&(i=!1);var r=t.reduce((function(t,r){var s=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"",o=r.attributes.label||"main";if(a&&!r.attributes.label){var l=s?" ("+s+")":"";o=""+r.attributes.lang+l}t[o]||(t[o]={language:a,autoselect:!0,default:"main"===s,playlists:[],uri:""});var u=Tt(function(t,e){var i,n=t.attributes,r=t.segments,s=t.sidx,a=t.mediaSequence,o=t.discontinuitySequence,l=t.discontinuityStarts,u={attributes:(i={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},i["PROGRAM-ID"]=1,i),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuitySequence:o,discontinuityStarts:l,timelineStarts:n.timelineStarts,mediaSequence:a,segments:r};return n.contentProtection&&(u.contentProtection=n.contentProtection),s&&(u.sidx=s),e&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u}(r,i),e);return t[o].playlists.push(u),void 0===n&&"main"===s&&((n=r).default=!0),t}),{});return n||(r[Object.keys(r)[0]].default=!0),r}(p,s,k):null,E=f.length?function(t,e){return void 0===e&&(e={}),t.reduce((function(t,i){var n=i.attributes.lang||"text";return t[n]||(t[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),t[n].playlists.push(Tt(function(t){var e,i=t.attributes,n=t.segments,r=t.mediaSequence,s=t.discontinuityStarts,a=t.discontinuitySequence;void 0===n&&(n=[{uri:i.baseUrl,timeline:i.periodStart,resolvedUri:i.baseUrl||"",duration:i.sourceDuration,number:0}],i.duration=i.sourceDuration);var o=((e={NAME:i.id,BANDWIDTH:i.bandwidth})["PROGRAM-ID"]=1,e);return i.codecs&&(o.CODECS=i.codecs),{attributes:o,uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:i.baseUrl||"",targetDuration:i.duration,timelineStarts:i.timelineStarts,discontinuityStarts:s,discontinuitySequence:a,mediaSequence:r,segments:n}}(i),e)),t}),{})}(f,s):null,D=d.concat(Ct(S),Ct(E)),C=D.map((function(t){return t.timelineStarts}));return g.timelineStarts=yt(C),y=D,v=g.timelineStarts,y.forEach((function(t){t.mediaSequence=0,t.discontinuitySequence=ut(v,(function(e){return e.timeline===t.timeline})),t.segments&&t.segments.forEach((function(t,e){t.number=e}))})),S&&(g.mediaGroups.AUDIO.audio=S),E&&(g.mediaGroups.SUBTITLES.subs=E),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=m.reduce((function(t,e){return e?(e.forEach((function(e){var i=e.channel,n=e.language;t[n]={autoselect:!1,default:!1,instreamId:i,language:n},e.hasOwnProperty("aspectRatio")&&(t[n].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(t[n].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(t[n]["3D"]=e["3D"])})),t):t}),{})),a?(b=(_={oldManifest:a,newManifest:g}).oldManifest,x=_.newManifest,T=b.playlists.concat(vt(b)),w=x.playlists.concat(vt(x)),x.timelineStarts=yt([b.timelineStarts,x.timelineStarts]),function(t){var e=t.oldPlaylists,i=t.timelineStarts;t.newPlaylists.forEach((function(t){t.discontinuitySequence=ut(i,(function(e){return e.timeline===t.timeline}));var n=function(t,e){for(var i=0;i<t.length;i++)if(t[i].attributes.NAME===e)return t[i];return null}(e,t.attributes.NAME);if(n&&!t.sidx){var r=t.segments[0],s=ut(n.segments,(function(t){return Math.abs(t.presentationTime-r.presentationTime)<.016666666666666666}));if(-1===s)return _t({playlist:t,mediaSequence:n.mediaSequence+n.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!n.segments.length&&t.timeline>n.timeline||n.segments.length&&t.timeline>n.segments[n.segments.length-1].timeline)&&t.discontinuitySequence--);n.segments[s].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),_t({playlist:t,mediaSequence:n.segments[s].number})}}))}({oldPlaylists:T,newPlaylists:w,timelineStarts:x.timelineStarts}),x):g},At=function(t,e,i){var n=t.NOW,r=t.clientOffset,s=t.availabilityStartTime,a=t.timescale,o=void 0===a?1:a,l=t.periodStart,u=void 0===l?0:l,c=t.minimumUpdatePeriod,h=(n+r)/1e3+(void 0===c?0:c)-(s+u);return Math.ceil((h*o-e)/i)},Mt=function(t,e){for(var i=t.type,n=t.minimumUpdatePeriod,r=void 0===n?0:n,s=t.media,a=void 0===s?"":s,o=t.sourceDuration,l=t.timescale,u=void 0===l?1:l,c=t.startNumber,h=void 0===c?1:c,d=t.periodStart,p=[],f=-1,m=0;m<e.length;m++){var g=e[m],y=g.d,v=g.r||0,_=g.t||0;f<0&&(f=_),_&&_>f&&(f=_);var b=void 0;if(v<0){var x=m+1;b=x===e.length?"dynamic"===i&&r>0&&a.indexOf("$Number$")>0?At(t,f,y):(o*u-f)/y:(e[x].t-f)/y}else b=v+1;for(var T=h+p.length+b,w=h+p.length;w<T;)p.push({number:w,duration:y/u,time:f,timeline:d}),f+=y,w++}return p},It=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Lt=function(t,e){return t.replace(It,function(t){return function(e,i,n,r){if("$$"===e)return"$";if(void 0===t[i])return e;var s=""+t[i];return"RepresentationID"===i?s:(r=n?parseInt(r,10):1,s.length>=r?s:""+new Array(r-s.length+1).join("0")+s)}}(e))},Ot=function(t,e){var i={RepresentationID:t.id,Bandwidth:t.bandwidth||0},n=t.initialization,r=void 0===n?{sourceURL:"",range:""}:n,s=ct({baseUrl:t.baseUrl,source:Lt(r.sourceURL,i),range:r.range}),a=function(t,e){return t.duration||e?t.duration?pt(t):Mt(t,e):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]}(t,e);return a.map((function(e){i.Number=e.number,i.Time=e.time;var n=Lt(t.media||"",i),r=t.timescale||1,a=t.presentationTimeOffset||0,o=t.periodStart+(e.time-a)/r;return{uri:n,timeline:e.timeline,duration:e.duration,resolvedUri:w(t.baseUrl||"",n),map:s,number:e.number,presentationTime:o}}))},Ft=function(t,e){var i=t.duration,n=t.segmentUrls,r=void 0===n?[]:n,s=t.periodStart;if(!i&&!e||i&&e)throw new Error("SEGMENT_TIME_UNSPECIFIED");var a,o=r.map((function(e){return function(t,e){var i=t.baseUrl,n=t.initialization,r=void 0===n?{}:n,s=ct({baseUrl:i,source:r.sourceURL,range:r.range}),a=ct({baseUrl:i,source:e.media,range:e.mediaRange});return a.map=s,a}(t,e)}));return i&&(a=pt(t)),e&&(a=Mt(t,e)),a.map((function(e,i){if(o[i]){var n=o[i],r=t.timescale||1,a=t.presentationTimeOffset||0;return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n.presentationTime=s+(e.time-a)/r,n}})).filter((function(t){return t}))},Rt=function(t){var e,i,n=t.attributes,r=t.segmentInfo;r.template?(i=Ot,e=st(n,r.template)):r.base?(i=ft,e=st(n,r.base)):r.list&&(i=Ft,e=st(n,r.list));var s={attributes:n};if(!i)return s;var a=i(e,r.segmentTimeline);if(e.duration){var o=e,l=o.duration,u=o.timescale,c=void 0===u?1:u;e.duration=l/c}else a.length?e.duration=a.reduce((function(t,e){return Math.max(t,Math.ceil(e.duration))}),0):e.duration=0;return s.attributes=e,s.segments=a,r.base&&e.indexRange&&(s.sidx=a[0],s.segments=[]),s},Bt=function(t,e){return lt(t.childNodes).filter((function(t){return t.tagName===e}))},Nt=function(t){return t.textContent.trim()},Ht=function(t){var e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;var i=e.slice(1),n=i[0],r=i[1],s=i[2],a=i[3],o=i[4],l=i[5];return 31536e3*parseFloat(n||0)+2592e3*parseFloat(r||0)+86400*parseFloat(s||0)+3600*parseFloat(a||0)+60*parseFloat(o||0)+parseFloat(l||0)},Vt={mediaPresentationDuration:function(t){return Ht(t)},availabilityStartTime:function(t){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=t)&&(e+="Z"),Date.parse(e)/1e3;var e},minimumUpdatePeriod:function(t){return Ht(t)},suggestedPresentationDelay:function(t){return Ht(t)},type:function(t){return t},timeShiftBufferDepth:function(t){return Ht(t)},start:function(t){return Ht(t)},width:function(t){return parseInt(t,10)},height:function(t){return parseInt(t,10)},bandwidth:function(t){return parseInt(t,10)},startNumber:function(t){return parseInt(t,10)},timescale:function(t){return parseInt(t,10)},presentationTimeOffset:function(t){return parseInt(t,10)},duration:function(t){var e=parseInt(t,10);return isNaN(e)?Ht(t):e},d:function(t){return parseInt(t,10)},t:function(t){return parseInt(t,10)},r:function(t){return parseInt(t,10)},DEFAULT:function(t){return t}},jt=function(t){return t&&t.attributes?lt(t.attributes).reduce((function(t,e){var i=Vt[e.name]||Vt.DEFAULT;return t[e.name]=i(e.value),t}),{}):{}},Ut={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},zt=function(t,e){return e.length?ot(t.map((function(t){return e.map((function(e){return w(t,Nt(e))}))}))):t},qt=function(t){var e=Bt(t,"SegmentTemplate")[0],i=Bt(t,"SegmentList")[0],n=i&&Bt(i,"SegmentURL").map((function(t){return st({tag:"SegmentURL"},jt(t))})),r=Bt(t,"SegmentBase")[0],s=i||e,a=s&&Bt(s,"SegmentTimeline")[0],o=i||r||e,l=o&&Bt(o,"Initialization")[0],u=e&&jt(e);u&&l?u.initialization=l&&jt(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var c={template:u,segmentTimeline:a&&Bt(a,"S").map((function(t){return jt(t)})),list:i&&st(jt(i),{segmentUrls:n,initialization:jt(l)}),base:r&&st(jt(r),{initialization:jt(l)})};return Object.keys(c).forEach((function(t){c[t]||delete c[t]})),c},Gt=function(t,e){return function(i,n){var r=zt(e,Bt(i.node,"BaseURL")),s=st(t,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(s.periodDuration=i.attributes.duration);var a=Bt(i.node,"AdaptationSet"),o=qt(i.node);return ot(a.map(function(t,e,i){return function(n){var r,s=jt(n),a=zt(e,Bt(n,"BaseURL")),o=Bt(n,"Role")[0],l={role:jt(o)},u=st(t,s,l),c=Bt(n,"Accessibility")[0],h="urn:scte:dash:cc:cea-608:2015"===(r=jt(c)).schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(t){var e,i;if(i=t,/^CC\d=/.test(t)){var n=t.split("=");e=n[0],i=n[1]}else/^CC\d$/.test(t)&&(e=t);return{channel:e,language:i}})):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(t){var e={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(t)){var i=t.split("="),n=i[0],r=i[1],s=void 0===r?"":r;e.channel=n,e.language=t,s.split(",").forEach((function(t){var i=t.split(":"),n=i[0],r=i[1];"lang"===n?e.language=r:"er"===n?e.easyReader=Number(r):"war"===n?e.aspectRatio=Number(r):"3D"===n&&(e["3D"]=Number(r))}))}else e.language=t;return e.channel&&(e.channel="SERVICE"+e.channel),e})):void 0;h&&(u=st(u,{captionServices:h}));var d=Bt(n,"Label")[0];if(d&&d.childNodes.length){var p=d.childNodes[0].nodeValue.trim();u=st(u,{label:p})}var f=Bt(n,"ContentProtection").reduce((function(t,e){var i=jt(e);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());var n=Ut[i.schemeIdUri];if(n){t[n]={attributes:i};var r=Bt(e,"cenc:pssh")[0];if(r){var s=Nt(r);t[n].pssh=s&&S(s)}}return t}),{});Object.keys(f).length&&(u=st(u,{contentProtection:f}));var m=qt(n),g=Bt(n,"Representation"),y=st(i,m);return ot(g.map(function(t,e,i){return function(n){var r=Bt(n,"BaseURL"),s=zt(e,r),a=st(t,jt(n)),o=qt(n);return s.map((function(t){return{segmentInfo:st(i,o),attributes:st(a,{baseUrl:t})}}))}}(u,a,y)))}}(s,r,o)))}},Wt=function(t){if(""===t)throw new Error("DASH_EMPTY_MANIFEST");var e,i,n=new nt.DOMParser;try{i=(e=n.parseFromString(t,"application/xml"))&&"MPD"===e.documentElement.tagName?e.documentElement:null}catch(t){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return i},Xt=i(4221),$t=i.n(Xt),Yt=Q([73,68,51]),Kt=function t(e,i){return void 0===i&&(i=0),(e=Q(e)).length-i<10||!it(e,Yt,{offset:i})?i:(i+=function(t,e){void 0===e&&(e=0);var i=(t=Q(t))[e+5],n=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&i)>>4?n+20:n+10}(e,i),t(e,i))},Qt=(new Uint8Array([79,112,117,115,72,101,97,100]),function(t){return"string"==typeof t?et(t):t}),Zt=function(t){t=Q(t);for(var e=[],i=0;t.length>i;){var n=t[i],r=0,s=0,a=t[++s];for(s++;128&a;)r=(127&a)<<7,a=t[s],s++;r+=127&a;for(var o=0;o<C.length;o++){var l=C[o],u=l.id,c=l.parser;if(n===u){e.push(c(t.subarray(s,s+r)));break}}i+=r+s}return e};C=[{id:3,parser:function(t){var e={tag:3,id:t[0]<<8|t[1],flags:t[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&e.flags&&(e.dependsOnEsId=t[e.size]<<8|t[e.size+1],e.size+=2),64&e.flags){var i=t[e.size];e.url=function(t){if(!t)return"";t=Array.prototype.slice.call(t);var e=String.fromCharCode.apply(null,Q(t));try{return decodeURIComponent(escape(e))}catch(t){}return e}(t.subarray(e.size+1,e.size+1+i)),e.size+=i}return 32&e.flags&&(e.ocrEsId=t[e.size]<<8|t[e.size+1],e.size+=2),e.descriptors=Zt(t.subarray(e.size))||[],e}},{id:4,parser:function(t){return{tag:4,oti:t[0],streamType:t[1],bufferSize:t[2]<<16|t[3]<<8|t[4],maxBitrate:t[5]<<24|t[6]<<16|t[7]<<8|t[8],avgBitrate:t[9]<<24|t[10]<<16|t[11]<<8|t[12],descriptors:Zt(t.subarray(13))}}},{id:5,parser:function(t){return{tag:5,bytes:t}}},{id:6,parser:function(t){return{tag:6,bytes:t}}}];var Jt=function t(e,i,n){void 0===n&&(n=!1),i=function(t){return Array.isArray(t)?t.map((function(t){return Qt(t)})):[Qt(t)]}(i),e=Q(e);var r=[];if(!i.length)return r;for(var s=0;s<e.length;){var a=(e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3])>>>0,o=e.subarray(s+4,s+8);if(0===a)break;var l=s+a;if(l>e.length){if(n)break;l=e.length}var u=e.subarray(s+8,l);it(o,i[0])&&(1===i.length?r.push(u):r.push.apply(r,t(u,i.slice(1),n))),s=l}return r},te={EBML:Q([26,69,223,163]),DocType:Q([66,130]),Segment:Q([24,83,128,103]),SegmentInfo:Q([21,73,169,102]),Tracks:Q([22,84,174,107]),Track:Q([174]),TrackNumber:Q([215]),DefaultDuration:Q([35,227,131]),TrackEntry:Q([174]),TrackType:Q([131]),FlagDefault:Q([136]),CodecID:Q([134]),CodecPrivate:Q([99,162]),VideoTrack:Q([224]),AudioTrack:Q([225]),Cluster:Q([31,67,182,117]),Timestamp:Q([231]),TimestampScale:Q([42,215,177]),BlockGroup:Q([160]),BlockDuration:Q([155]),Block:Q([161]),SimpleBlock:Q([163])},ee=[128,64,32,16,8,4,2,1],ie=function(t,e,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1);var r=function(t){for(var e=1,i=0;i<ee.length&&!(t&ee[i]);i++)e++;return e}(t[e]),s=t.subarray(e,e+r);return i&&((s=Array.prototype.slice.call(t,e,e+r))[0]^=ee[r-1]),{length:r,value:tt(s,{signed:n}),bytes:s}},ne=function t(e){return"string"==typeof e?e.match(/.{1,2}/g).map((function(e){return t(e)})):"number"==typeof e?function(t,e){var i=(void 0===e?{}:e).le,n=void 0!==i&&i;("bigint"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)&&(t=0);for(var r,s=(r=t=Z(t),Math.ceil(function(t){return t.toString(2).length}(r)/8)),a=new Uint8Array(new ArrayBuffer(s)),o=0;o<s;o++){var l=n?o:Math.abs(o+1-a.length);a[l]=Number(t/J[o]&Z(255)),t<0&&(a[l]=Math.abs(~a[l]),a[l]-=0===o?1:2)}return a}(e):e},re=function t(e,i,n){if(n>=i.length)return i.length;var r=ie(i,n,!1);if(it(e.bytes,r.bytes))return n;var s=ie(i,n+r.length);return t(e,i,n+s.length+s.value+r.length)},se=function t(e,i){i=function(t){return Array.isArray(t)?t.map((function(t){return ne(t)})):[ne(t)]}(i),e=Q(e);var n=[];if(!i.length)return n;for(var r=0;r<e.length;){var s=ie(e,r,!1),a=ie(e,r+s.length),o=r+s.length+a.length;127===a.value&&(a.value=re(s,e,o),a.value!==e.length&&(a.value-=o));var l=o+a.value>e.length?e.length:o+a.value,u=e.subarray(o,l);it(i[0],s.bytes)&&(1===i.length?n.push(u):n=n.concat(t(u,i.slice(1)))),r+=s.length+a.length+u.length}return n},ae=Q([0,0,0,1]),oe=Q([0,0,1]),le=Q([0,0,3]),ue=function(t){for(var e=[],i=1;i<t.length-2;)it(t.subarray(i,i+3),le)&&(e.push(i+2),i++),i++;if(0===e.length)return t;var n=t.length-e.length,r=new Uint8Array(n),s=0;for(i=0;i<n;s++,i++)s===e[0]&&(s++,e.shift()),r[i]=t[s];return r},ce=function(t,e,i,n){void 0===n&&(n=1/0),t=Q(t),i=[].concat(i);for(var r,s=0,a=0;s<t.length&&(a<n||r);){var o=void 0;if(it(t.subarray(s),ae)?o=4:it(t.subarray(s),oe)&&(o=3),o){if(a++,r)return ue(t.subarray(r,s));var l=void 0;"h264"===e?l=31&t[s+o]:"h265"===e&&(l=t[s+o]>>1&63),-1!==i.indexOf(l)&&(r=s+o),s+=o+("h264"===e?1:2)}else s++}return t.subarray(0,0)},he={webm:Q([119,101,98,109]),matroska:Q([109,97,116,114,111,115,107,97]),flac:Q([102,76,97,67]),ogg:Q([79,103,103,83]),ac3:Q([11,119]),riff:Q([82,73,70,70]),avi:Q([65,86,73]),wav:Q([87,65,86,69]),"3gp":Q([102,116,121,112,51,103]),mp4:Q([102,116,121,112]),fmp4:Q([115,116,121,112]),mov:Q([102,116,121,112,113,116]),moov:Q([109,111,111,118]),moof:Q([109,111,111,102])},de={aac:function(t){var e=Kt(t);return it(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=Kt(t);return it(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=se(t,[te.EBML,te.DocType])[0];return it(e,he.webm)},mkv:function(t){var e=se(t,[te.EBML,te.DocType])[0];return it(e,he.matroska)},mp4:function(t){return!de["3gp"](t)&&!de.mov(t)&&(!(!it(t,he.mp4,{offset:4})&&!it(t,he.fmp4,{offset:4}))||!(!it(t,he.moof,{offset:4})&&!it(t,he.moov,{offset:4}))||void 0)},mov:function(t){return it(t,he.mov,{offset:4})},"3gp":function(t){return it(t,he["3gp"],{offset:4})},ac3:function(t){var e=Kt(t);return it(t,he.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return 71===t[0];for(var e=0;e+188<t.length&&e<188;){if(71===t[e]&&71===t[e+188])return!0;e+=1}return!1},flac:function(t){var e=Kt(t);return it(t,he.flac,{offset:e})},ogg:function(t){return it(t,he.ogg)},avi:function(t){return it(t,he.riff)&&it(t,he.avi,{offset:8})},wav:function(t){return it(t,he.riff)&&it(t,he.wav,{offset:8})},h264:function(t){return function(t,e,i){return ce(t,"h264",7,3)}(t).length},h265:function(t){return function(t,e,i){return ce(t,"h265",[32,33],3)}(t).length}},pe=Object.keys(de).filter((function(t){return"ts"!==t&&"h264"!==t&&"h265"!==t})).concat(["ts","h264","h265"]);pe.forEach((function(t){var e=de[t];de[t]=function(t){return e(Q(t))}}));for(var fe,me=de,ge=function(t){t=Q(t);for(var e=0;e<pe.length;e++){var i=pe[e];if(me[i](t))return i}return""},ye=i(1489),ve="7.20.3",_e={},be=function(t,e){return _e[t]=_e[t]||[],e&&(_e[t]=_e[t].concat(e)),_e[t]},xe=function(t,e){var i=be(t).indexOf(e);return!(i<=-1||(_e[t]=_e[t].slice(),_e[t].splice(i,1),0))},Te={prefixed:!0},we=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],ke=we[0],Se=0;Se<we.length;Se++)if(we[Se][1]in o()){fe=we[Se];break}if(fe){for(var Ee=0;Ee<fe.length;Ee++)Te[ke[Ee]]=fe[Ee];Te.prefixed=fe[0]!==ke[0]}var De=[],Ce=function t(e){var i,n="info",r=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];i("log",n,e)};return i=function(t,e){return function(i,n,r){var a=e.levels[n],o=new RegExp("^("+a+")$");if("log"!==i&&r.unshift(i.toUpperCase()+":"),r.unshift(t+":"),De){De.push([].concat(r));var l=De.length-1e3;De.splice(0,l>0?l:0)}if(s().console){var u=s().console[i];u||"debug"!==i||(u=s().console.info||s().console.log),u&&a&&o.test(i)&&u[Array.isArray(r)?"apply":"call"](s().console,r)}}}(e,r),r.createLogger=function(i){return t(e+": "+i)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(t){if("string"==typeof t){if(!r.levels.hasOwnProperty(t))throw new Error('"'+t+'" in not a valid log level');n=t}return n},(r.history=function(){return De?[].concat(De):[]}).filter=function(t){return(De||[]).filter((function(e){return new RegExp(".*"+t+".*").test(e[0])}))},r.history.clear=function(){De&&(De.length=0)},r.history.disable=function(){null!==De&&(De.length=0,De=null)},r.history.enable=function(){null===De&&(De=[])},r.error=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return i("error",n,e)},r.warn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return i("warn",n,e)},r.debug=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return i("debug",n,e)},r}("VIDEOJS"),Pe=Ce.createLogger,Ae=Object.prototype.toString,Me=function(t){return Oe(t)?Object.keys(t):[]};function Ie(t,e){Me(t).forEach((function(i){return e(t[i],i)}))}function Le(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return Object.assign?l.apply(void 0,[t].concat(i)):(i.forEach((function(e){e&&Ie(e,(function(e,i){t[i]=e}))})),t)}function Oe(t){return!!t&&"object"==typeof t}function Fe(t){return Oe(t)&&"[object Object]"===Ae.call(t)&&t.constructor===Object}function Re(t,e){if(!t||!e)return"";if("function"==typeof s().getComputedStyle){var i;try{i=s().getComputedStyle(t)}catch(t){return""}return i?i.getPropertyValue(e)||i[e]:""}return""}var Be,Ne,He,Ve=s().navigator&&s().navigator.userAgent||"",je=/AppleWebKit\/([\d.]+)/i.exec(Ve),Ue=je?parseFloat(je.pop()):null,ze=/iPod/i.test(Ve),qe=(Be=Ve.match(/OS (\d+)_/i))&&Be[1]?Be[1]:null,Ge=/Android/i.test(Ve),We=function(){var t=Ve.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;var e=t[1]&&parseFloat(t[1]),i=t[2]&&parseFloat(t[2]);return e&&i?parseFloat(t[1]+"."+t[2]):e||null}(),Xe=Ge&&We<5&&Ue<537,$e=/Firefox/i.test(Ve),Ye=/Edg/i.test(Ve),Ke=!Ye&&(/Chrome/i.test(Ve)||/CriOS/i.test(Ve)),Qe=function(){var t=Ve.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),Ze=(Ne=/MSIE\s(\d+)\.\d/.exec(Ve),!(He=Ne&&parseFloat(Ne[1]))&&/Trident\/7.0/i.test(Ve)&&/rv:11.0/.test(Ve)&&(He=11),He),Je=/Safari/i.test(Ve)&&!Ke&&!Ge&&!Ye,ti=/Windows/i.test(Ve),ei=Boolean(ui()&&("ontouchstart"in s()||s().navigator.maxTouchPoints||s().DocumentTouch&&s().document instanceof s().DocumentTouch)),ii=/iPad/i.test(Ve)||Je&&ei&&!/iPhone/i.test(Ve),ni=/iPhone/i.test(Ve)&&!ii,ri=ni||ii||ze,si=(Je||ri)&&!Ke,ai=Object.freeze({__proto__:null,IS_IPOD:ze,IOS_VERSION:qe,IS_ANDROID:Ge,ANDROID_VERSION:We,IS_NATIVE_ANDROID:Xe,IS_FIREFOX:$e,IS_EDGE:Ye,IS_CHROME:Ke,CHROME_VERSION:Qe,IE_VERSION:Ze,IS_SAFARI:Je,IS_WINDOWS:ti,TOUCH_ENABLED:ei,IS_IPAD:ii,IS_IPHONE:ni,IS_IOS:ri,IS_ANY_SAFARI:si});function oi(t){return"string"==typeof t&&Boolean(t.trim())}function li(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function ui(){return o()===s().document}function ci(t){return Oe(t)&&1===t.nodeType}function hi(){try{return s().parent!==s().self}catch(t){return!0}}function di(t){return function(e,i){if(!oi(e))return o()[t](null);oi(i)&&(i=o().querySelector(i));var n=ci(i)?i:o();return n[t]&&n[t](e)}}function pi(t,e,i,n){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===i&&(i={});var r=o().createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var i=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Ce.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+t+" to "+i+"."),r.setAttribute(t,i)):"textContent"===t?fi(r,i):r[t]===i&&"tabIndex"!==t||(r[t]=i)})),Object.getOwnPropertyNames(i).forEach((function(t){r.setAttribute(t,i[t])})),n&&Li(r,n),r}function fi(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function mi(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function gi(t,e){return li(e),t.classList?t.classList.contains(e):(i=e,new RegExp("(^|\\s)"+i+"($|\\s)")).test(t.className);var i}function yi(t,e){return t.classList?t.classList.add(e):gi(t,e)||(t.className=(t.className+" "+e).trim()),t}function vi(t,e){return t?(t.classList?t.classList.remove(e):(li(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t):(Ce.warn("removeClass was called with an element that doesn't exist"),null)}function _i(t,e,i){var n=gi(t,e);if("function"==typeof i&&(i=i(t,e)),"boolean"!=typeof i&&(i=!n),i!==n)return i?yi(t,e):vi(t,e),t}function bi(t,e){Object.getOwnPropertyNames(e).forEach((function(i){var n=e[i];null==n||!1===n?t.removeAttribute(i):t.setAttribute(i,!0===n?"":n)}))}function xi(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var i=t.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,s=i[n].value;"boolean"!=typeof t[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(s=null!==s),e[r]=s}return e}function Ti(t,e){return t.getAttribute(e)}function wi(t,e,i){t.setAttribute(e,i)}function ki(t,e){t.removeAttribute(e)}function Si(){o().onselectstart=function(){return!1}}function Ei(){o().onselectstart=function(){return!0}}function Di(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(i[t]=e[t])})),i.height||(i.height=parseFloat(Re(t,"height"))),i.width||(i.width=parseFloat(Re(t,"width"))),i}}function Ci(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};for(var e=t.offsetWidth,i=t.offsetHeight,n=0,r=0;t.offsetParent&&t!==o()[Te.fullscreenElement];)n+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:n,top:r,width:e,height:i}}function Pi(t,e){var i={x:0,y:0};if(ri)for(var n=t;n&&"html"!==n.nodeName.toLowerCase();){var r=Re(n,"transform");if(/^matrix/.test(r)){var s=r.slice(7,-1).split(/,\s/).map(Number);i.x+=s[4],i.y+=s[5]}else if(/^matrix3d/.test(r)){var a=r.slice(9,-1).split(/,\s/).map(Number);i.x+=a[12],i.y+=a[13]}n=n.parentNode}var o={},l=Ci(e.target),u=Ci(t),c=u.width,h=u.height,d=e.offsetY-(u.top-l.top),p=e.offsetX-(u.left-l.left);return e.changedTouches&&(p=e.changedTouches[0].pageX-u.left,d=e.changedTouches[0].pageY+u.top,ri&&(p-=i.x,d-=i.y)),o.y=1-Math.max(0,Math.min(1,d/h)),o.x=Math.max(0,Math.min(1,p/c)),o}function Ai(t){return Oe(t)&&3===t.nodeType}function Mi(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function Ii(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),ci(t)||Ai(t)?t:"string"==typeof t&&/\S/.test(t)?o().createTextNode(t):void 0})).filter((function(t){return t}))}function Li(t,e){return Ii(e).forEach((function(e){return t.appendChild(e)})),t}function Oi(t,e){return Li(Mi(t),e)}function Fi(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||"mouseup"===t.type&&0===t.button&&0===t.buttons||0===t.button&&1===t.buttons}var Ri,Bi=di("querySelector"),Ni=di("querySelectorAll"),Hi=Object.freeze({__proto__:null,isReal:ui,isEl:ci,isInFrame:hi,createEl:pi,textContent:fi,prependTo:mi,hasClass:gi,addClass:yi,removeClass:vi,toggleClass:_i,setAttributes:bi,getAttributes:xi,getAttribute:Ti,setAttribute:wi,removeAttribute:ki,blockTextSelection:Si,unblockTextSelection:Ei,getBoundingClientRect:Di,findPosition:Ci,getPointerPosition:Pi,isTextNode:Ai,emptyEl:Mi,normalizeContent:Ii,appendContent:Li,insertContent:Oi,isSingleLeftClick:Fi,$:Bi,$$:Ni}),Vi=!1,ji=function(){if(!1!==Ri.options.autoSetup){var t=Array.prototype.slice.call(o().getElementsByTagName("video")),e=Array.prototype.slice.call(o().getElementsByTagName("audio")),i=Array.prototype.slice.call(o().getElementsByTagName("video-js")),n=t.concat(e,i);if(n&&n.length>0)for(var r=0,s=n.length;r<s;r++){var a=n[r];if(!a||!a.getAttribute){Ui(1);break}void 0===a.player&&null!==a.getAttribute("data-setup")&&Ri(a)}else Vi||Ui(1)}};function Ui(t,e){ui()&&(e&&(Ri=e),s().setTimeout(ji,t))}function zi(){Vi=!0,s().removeEventListener("load",zi)}ui()&&("complete"===o().readyState?zi():s().addEventListener("load",zi));var qi,Gi=function(t){var e=o().createElement("style");return e.className=t,e},Wi=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e},Xi=3;function $i(){return Xi++}s().WeakMap||(qi=function(){function t(){this.vdata="vdata"+Math.floor(s().performance&&s().performance.now()||Date.now()),this.data={}}var e=t.prototype;return e.set=function(t,e){var i=t[this.vdata]||$i();return t[this.vdata]||(t[this.vdata]=i),this.data[i]=e,this},e.get=function(t){var e=t[this.vdata];if(e)return this.data[e];Ce("We have no data for this element",t)},e.has=function(t){return t[this.vdata]in this.data},e.delete=function(t){var e=t[this.vdata];e&&(delete this.data[e],delete t[this.vdata])},t}());var Yi,Ki=s().WeakMap?new WeakMap:new qi;function Qi(t,e){if(Ki.has(t)){var i=Ki.get(t);0===i.handlers[e].length&&(delete i.handlers[e],t.removeEventListener?t.removeEventListener(e,i.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&Ki.delete(t)}}function Zi(t,e,i,n){i.forEach((function(i){t(e,i,n)}))}function Ji(t){if(t.fixed_)return t;function e(){return!0}function i(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){var n=t||s().event;for(var r in t={},n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&"path"!==r&&("returnValue"===r&&n.preventDefault||(t[r]=n[r]));if(t.target||(t.target=t.srcElement||o()),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){n.preventDefault&&n.preventDefault(),t.returnValue=!1,n.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),t.cancelBubble=!0,n.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=i,t.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=i,null!==t.clientX&&void 0!==t.clientX){var a=o().documentElement,l=o().body;t.pageX=t.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),t.pageY=t.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t.fixed_=!0,t}var tn=function(){if("boolean"!=typeof Yi){Yi=!1;try{var t=Object.defineProperty({},"passive",{get:function(){Yi=!0}});s().addEventListener("test",null,t),s().removeEventListener("test",null,t)}catch(t){}}return Yi},en=["touchstart","touchmove"];function nn(t,e,i){if(Array.isArray(e))return Zi(nn,t,e,i);Ki.has(t)||Ki.set(t,{});var n=Ki.get(t);if(n.handlers||(n.handlers={}),n.handlers[e]||(n.handlers[e]=[]),i.guid||(i.guid=$i()),n.handlers[e].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(e,i){if(!n.disabled){e=Ji(e);var r=n.handlers[e.type];if(r)for(var s=r.slice(0),a=0,o=s.length;a<o&&!e.isImmediatePropagationStopped();a++)try{s[a].call(t,e,i)}catch(t){Ce.error(t)}}}),1===n.handlers[e].length)if(t.addEventListener){var r=!1;tn()&&en.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,n.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,n.dispatcher)}function rn(t,e,i){if(Ki.has(t)){var n=Ki.get(t);if(n.handlers){if(Array.isArray(e))return Zi(rn,t,e,i);var r=function(t,e){n.handlers[e]=[],Qi(t,e)};if(void 0!==e){var s=n.handlers[e];if(s)if(i){if(i.guid)for(var a=0;a<s.length;a++)s[a].guid===i.guid&&s.splice(a--,1);Qi(t,e)}else r(t,e)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(t,o)}}}function sn(t,e,i){var n=Ki.has(t)?Ki.get(t):{},r=t.parentNode||t.ownerDocument;if("string"==typeof e?e={type:e,target:t}:e.target||(e.target=t),e=Ji(e),n.dispatcher&&n.dispatcher.call(t,e,i),r&&!e.isPropagationStopped()&&!0===e.bubbles)sn.call(null,r,e,i);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){Ki.has(e.target)||Ki.set(e.target,{});var s=Ki.get(e.target);e.target[e.type]&&(s.disabled=!0,"function"==typeof e.target[e.type]&&e.target[e.type](),s.disabled=!1)}return!e.defaultPrevented}function an(t,e,i){if(Array.isArray(e))return Zi(an,t,e,i);var n=function n(){rn(t,e,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||$i(),nn(t,e,n)}function on(t,e,i){var n=function n(){rn(t,e,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||$i(),nn(t,e,n)}var ln,un=Object.freeze({__proto__:null,fixEvent:Ji,on:nn,off:rn,trigger:sn,one:an,any:on}),cn=30,hn=function(t,e,i){e.guid||(e.guid=$i());var n=e.bind(t);return n.guid=i?i+"_"+e.guid:e.guid,n},dn=function(t,e){var i=s().performance.now();return function(){var n=s().performance.now();n-i>=e&&(t.apply(void 0,arguments),i=n)}},pn=function(){};pn.prototype.allowedEvents_={},pn.prototype.on=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},nn(this,t,e),this.addEventListener=i},pn.prototype.addEventListener=pn.prototype.on,pn.prototype.off=function(t,e){rn(this,t,e)},pn.prototype.removeEventListener=pn.prototype.off,pn.prototype.one=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},an(this,t,e),this.addEventListener=i},pn.prototype.any=function(t,e){var i=this.addEventListener;this.addEventListener=function(){},on(this,t,e),this.addEventListener=i},pn.prototype.trigger=function(t){var e=t.type||t;"string"==typeof t&&(t={type:e}),t=Ji(t),this.allowedEvents_[e]&&this["on"+e]&&this["on"+e](t),sn(this,t)},pn.prototype.dispatchEvent=pn.prototype.trigger,pn.prototype.queueTrigger=function(t){var e=this;ln||(ln=new Map);var i=t.type||t,n=ln.get(this);n||(n=new Map,ln.set(this,n));var r=n.get(i);n.delete(i),s().clearTimeout(r);var a=s().setTimeout((function(){0===n.size&&(n=null,ln.delete(e)),e.trigger(t)}),0);n.set(i,a)};var fn=function(t){return"function"==typeof t.name?t.name():"string"==typeof t.name?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t},mn=function(t){return t instanceof pn||!!t.eventBusEl_&&["on","one","off","trigger"].every((function(e){return"function"==typeof t[e]}))},gn=function(t){return"string"==typeof t&&/\S/.test(t)||Array.isArray(t)&&!!t.length},yn=function(t,e,i){if(!t||!t.nodeName&&!mn(t))throw new Error("Invalid target for "+fn(e)+"#"+i+"; must be a DOM node or evented object.")},vn=function(t,e,i){if(!gn(t))throw new Error("Invalid event type for "+fn(e)+"#"+i+"; must be a non-empty string or array.")},_n=function(t,e,i){if("function"!=typeof t)throw new Error("Invalid listener for "+fn(e)+"#"+i+"; must be a function.")},bn=function(t,e,i){var n,r,s,a=e.length<3||e[0]===t||e[0]===t.eventBusEl_;return a?(n=t.eventBusEl_,e.length>=3&&e.shift(),r=e[0],s=e[1]):(n=e[0],r=e[1],s=e[2]),yn(n,t,i),vn(r,t,i),_n(s,t,i),{isTargetingSelf:a,target:n,type:r,listener:s=hn(t,s)}},xn=function(t,e,i,n){yn(t,t,e),t.nodeName?un[e](t,i,n):t[e](i,n)},Tn={on:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=bn(this,i,"on"),s=r.isTargetingSelf,a=r.target,o=r.type,l=r.listener;if(xn(a,"on",o,l),!s){var u=function(){return t.off(a,o,l)};u.guid=l.guid;var c=function(){return t.off("dispose",u)};c.guid=l.guid,xn(this,"on","dispose",u),xn(a,"on","dispose",c)}},one:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=bn(this,i,"one"),s=r.isTargetingSelf,a=r.target,o=r.type,l=r.listener;if(s)xn(a,"one",o,l);else{var u=function e(){t.off(a,o,e);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];l.apply(null,n)};u.guid=l.guid,xn(a,"one",o,u)}},any:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=bn(this,i,"any"),s=r.isTargetingSelf,a=r.target,o=r.type,l=r.listener;if(s)xn(a,"any",o,l);else{var u=function e(){t.off(a,o,e);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];l.apply(null,n)};u.guid=l.guid,xn(a,"any",o,u)}},off:function(t,e,i){if(!t||gn(t))rn(this.eventBusEl_,t,e);else{var n=t,r=e;yn(n,this,"off"),vn(r,this,"off"),_n(i,this,"off"),i=hn(this,i),this.off("dispose",i),n.nodeName?(rn(n,r,i),rn(n,"dispose",i)):mn(n)&&(n.off(r,i),n.off("dispose",i))}},trigger:function(t,e){yn(this.eventBusEl_,this,"trigger");var i=t&&"string"!=typeof t?t.type:t;if(!gn(i)){var n="Invalid event type for "+fn(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!t)throw new Error(n);(this.log||Ce).error(n)}return sn(this.eventBusEl_,t,e)}};function wn(t,e){void 0===e&&(e={});var i=e.eventBusKey;if(i){if(!t[i].nodeName)throw new Error('The eventBusKey "'+i+'" does not refer to an element.');t.eventBusEl_=t[i]}else t.eventBusEl_=pi("span",{className:"vjs-event-bus"});return Le(t,Tn),t.eventedCallbacks&&t.eventedCallbacks.forEach((function(t){t()})),t.on("dispose",(function(){t.off(),[t,t.el_,t.eventBusEl_].forEach((function(t){t&&Ki.has(t)&&Ki.delete(t)})),s().setTimeout((function(){t.eventBusEl_=null}),0)})),t}var kn={state:{},setState:function(t){var e,i=this;return"function"==typeof t&&(t=t()),Ie(t,(function(t,n){i.state[n]!==t&&((e=e||{})[n]={from:i.state[n],to:t}),i.state[n]=t})),e&&mn(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function Sn(t,e){return Le(t,kn),t.state=Le({},t.state,e),"function"==typeof t.handleStateChanged&&mn(t)&&t.on("statechanged",t.handleStateChanged),t}var En=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toLowerCase()}))},Dn=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))};function Cn(){for(var t={},e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return i.forEach((function(e){e&&Ie(e,(function(e,i){Fe(e)?(Fe(t[i])||(t[i]={}),t[i]=Cn(t[i],e)):t[i]=e}))})),t}var Pn=function(){function t(){this.map_={}}var e=t.prototype;return e.has=function(t){return t in this.map_},e.delete=function(t){var e=this.has(t);return delete this.map_[t],e},e.set=function(t,e){return this.map_[t]=e,this},e.forEach=function(t,e){for(var i in this.map_)t.call(e,this.map_[i],i,this)},t}(),An=s().Map?s().Map:Pn,Mn=function(){function t(){this.set_={}}var e=t.prototype;return e.has=function(t){return t in this.set_},e.delete=function(t){var e=this.has(t);return delete this.set_[t],e},e.add=function(t){return this.set_[t]=1,this},e.forEach=function(t,e){for(var i in this.set_)t.call(e,i,i,this)},t}(),In=s().Set?s().Set:Mn,Ln=function(){function t(t,e,i){var n=this;if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Cn({},this.options_),e=this.options_=Cn(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+$i()}this.name_=e.name||null,e.el?this.el_=e.el:!1!==e.createEl&&(this.el_=this.createEl()),e.className&&this.el_&&e.className.split(" ").forEach((function(t){return n.addClass(t)})),!1!==e.evented&&(wn(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Sn(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new In,this.setIntervalIds_=new In,this.rafIds_=new In,this.namedRafs_=new An,this.clearingTimersOnDispose_=!1,!1!==e.initChildren&&this.initChildren(),this.ready(i),!1!==e.reportTouchActivity&&this.enableTouchActivity()}var e=t.prototype;return e.dispose=function(t){if(void 0===t&&(t={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(t.restoreEl?this.el_.parentNode.replaceChild(t.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(t){return t?(this.options_=Cn(this.options_,t),this.options_):this.options_},e.el=function(){return this.el_},e.createEl=function(t,e,i){return pi(t,e,i)},e.localize=function(t,e,i){void 0===i&&(i=t);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[n],a=n&&n.split("-")[0],o=r&&r[a],l=i;return s&&s[t]?l=s[t]:o&&o[t]&&(l=o[t]),e&&(l=l.replace(/\{(\d+)\}/g,(function(t,i){var n=e[i-1],r=n;return void 0===n&&(r=t),r}))),l},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(t){return this.childIndex_[t]},e.getChild=function(t){if(t)return this.childNameIndex_[t]},e.getDescendant=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e=e.reduce((function(t,e){return t.concat(e)}),[]);for(var n=this,r=0;r<e.length;r++)if(!(n=n.getChild(e[r]))||!n.getChild)return;return n},e.addChild=function(e,i,n){var r,s;if(void 0===i&&(i={}),void 0===n&&(n=this.children_.length),"string"==typeof e){s=Dn(e);var a=i.componentClass||s;i.name=s;var o=t.getComponent(a);if(!o)throw new Error("Component "+a+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,i)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(n,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(s=s||r.name&&Dn(r.name()))&&(this.childNameIndex_[s]=r,this.childNameIndex_[En(s)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[n+1]&&(this.children_[n+1].el_?l=this.children_[n+1].el_:ci(this.children_[n+1])&&(l=this.children_[n+1])),this.contentEl().insertBefore(r.el(),l)}return r},e.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===t){e=!0,this.children_.splice(i,1);break}if(e){t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[Dn(t.name())]=null,this.childNameIndex_[En(t.name())]=null;var n=t.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},e.initChildren=function(){var e=this,i=this.options_.children;if(i){var n,r=this.options_,s=t.getComponent("Tech");(n=Array.isArray(i)?i:Object.keys(i)).concat(Object.keys(this.options_).filter((function(t){return!n.some((function(e){return"string"==typeof e?t===e:t===e.name}))}))).map((function(t){var n,r;return"string"==typeof t?r=i[n=t]||e.options_[n]||{}:(n=t.name,r=t),{name:n,opts:r}})).filter((function(e){var i=t.getComponent(e.opts.componentClass||Dn(e.name));return i&&!s.isTech(i)})).forEach((function(t){var i=t.name,n=t.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=e.options_.playerOptions;var s=e.addChild(i,n);s&&(e[i]=s)}}))}},e.buildCSSClass=function(){return""},e.ready=function(t,e){if(void 0===e&&(e=!1),t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach((function(t){t.call(this)}),this),this.trigger("ready")}),1)},e.$=function(t,e){return Bi(t,e||this.contentEl())},e.$$=function(t,e){return Ni(t,e||this.contentEl())},e.hasClass=function(t){return gi(this.el_,t)},e.addClass=function(t){yi(this.el_,t)},e.removeClass=function(t){vi(this.el_,t)},e.toggleClass=function(t,e){_i(this.el_,t,e)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(t){return Ti(this.el_,t)},e.setAttribute=function(t,e){wi(this.el_,t,e)},e.removeAttribute=function(t){ki(this.el_,t)},e.width=function(t,e){return this.dimension("width",t,e)},e.height=function(t,e){return this.dimension("height",t,e)},e.dimensions=function(t,e){this.width(t,!0),this.height(e)},e.dimension=function(t,e,i){if(void 0!==e)return null!==e&&e==e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[t],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+Dn(t)],10)},e.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if(e=Re(this.el_,t),0===(e=parseFloat(e))||isNaN(e)){var i="offset"+Dn(t);e=this.el_[i]}return e},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(t){this.player_&&(c().isEventKey(t,"Tab")||t.stopPropagation(),this.player_.handleKeyDown(t))},e.handleKeyPress=function(t){this.handleKeyDown(t)},e.emitTapEvents=function(){var t,e=0,i=null;this.on("touchstart",(function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=s().performance.now(),t=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)t=!1;else if(i){var n=e.touches[0].pageX-i.pageX,r=e.touches[0].pageY-i.pageY;Math.sqrt(n*n+r*r)>10&&(t=!1)}}));var n=function(){t=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",(function(n){i=null,!0===t&&s().performance.now()-e<200&&(n.preventDefault(),this.trigger("tap"))}))},e.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t,e=hn(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}},e.setTimeout=function(t,e){var i,n=this;return t=hn(this,t),this.clearTimersOnDispose_(),i=s().setTimeout((function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),t()}),e),this.setTimeoutIds_.add(i),i},e.clearTimeout=function(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),s().clearTimeout(t)),t},e.setInterval=function(t,e){t=hn(this,t),this.clearTimersOnDispose_();var i=s().setInterval(t,e);return this.setIntervalIds_.add(i),i},e.clearInterval=function(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),s().clearInterval(t)),t},e.requestAnimationFrame=function(t){var e,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),t=hn(this,t),e=s().requestAnimationFrame((function(){i.rafIds_.has(e)&&i.rafIds_.delete(e),t()})),this.rafIds_.add(e),e):this.setTimeout(t,1e3/60)},e.requestNamedAnimationFrame=function(t,e){var i=this;if(!this.namedRafs_.has(t)){this.clearTimersOnDispose_(),e=hn(this,e);var n=this.requestAnimationFrame((function(){e(),i.namedRafs_.has(t)&&i.namedRafs_.delete(t)}));return this.namedRafs_.set(t,n),t}},e.cancelNamedAnimationFrame=function(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))},e.cancelAnimationFrame=function(t){return this.supportsRaf_?(this.rafIds_.has(t)&&(this.rafIds_.delete(t),s().cancelAnimationFrame(t)),t):this.clearTimeout(t)},e.clearTimersOnDispose_=function(){var t=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(e){var i=e[0],n=e[1];t[i].forEach((function(e,i){return t[n](i)}))})),t.clearingTimersOnDispose_=!1})))},t.registerComponent=function(e,i){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var n=t.getComponent("Tech"),r=n&&n.isTech(i),s=t===i||t.prototype.isPrototypeOf(i.prototype);if(r||!s)throw new Error('Illegal component, "'+e+'"; '+(r?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");e=Dn(e),t.components_||(t.components_={});var a=t.getComponent("Player");if("Player"===e&&a&&a.players){var o=a.players,l=Object.keys(o);if(o&&l.length>0&&l.map((function(t){return o[t]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return t.components_[e]=i,t.components_[En(e)]=i,i},t.getComponent=function(e){if(e&&t.components_)return t.components_[e]},t}();function On(t,e,i,n){return function(t,e,i){if("number"!=typeof e||e<0||e>i)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+i+").")}(t,n,i.length-1),i[n][e]}function Fn(t){var e;return e=void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:On.bind(null,"start",0,t),end:On.bind(null,"end",1,t)},s().Symbol&&s().Symbol.iterator&&(e[s().Symbol.iterator]=function(){return(t||[]).values()}),e}function Rn(t,e){return Array.isArray(t)?Fn(t):void 0===t||void 0===e?Fn():Fn([[t,e]])}function Bn(t,e){var i,n,r=0;if(!e)return 0;t&&t.length||(t=Rn(0,0));for(var s=0;s<t.length;s++)i=t.start(s),(n=t.end(s))>e&&(n=e),r+=n-i;return r/e}function Nn(t){if(t instanceof Nn)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:Oe(t)&&("number"==typeof t.code&&(this.code=t.code),Le(this,t)),this.message||(this.message=Nn.defaultMessages[this.code]||"")}Ln.prototype.supportsRaf_="function"==typeof s().requestAnimationFrame&&"function"==typeof s().cancelAnimationFrame,Ln.registerComponent("Component",Ln),Nn.prototype.code=0,Nn.prototype.message="",Nn.prototype.status=null,Nn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Nn.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Hn=0;Hn<Nn.errorTypes.length;Hn++)Nn[Nn.errorTypes[Hn]]=Hn,Nn.prototype[Nn.errorTypes[Hn]]=Hn;function Vn(t){return null!=t&&"function"==typeof t.then}function jn(t){Vn(t)&&t.then(null,(function(t){}))}var Un=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(e,i,n){return t[i]&&(e[i]=t[i]),e}),{cues:t.cues&&Array.prototype.map.call(t.cues,(function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}}))})},zn="vjs-modal-dialog",qn=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handleKeyDown_=function(t){return n.handleKeyDown(t)},n.close_=function(t){return n.close(t)},n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=pi("div",{className:zn+"-content"},{role:"document"}),n.descEl_=pi("p",{className:zn+"-description vjs-control-text",id:n.el().getAttribute("aria-describedby")}),fi(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},i.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,t.prototype.dispose.call(this)},i.buildCSSClass=function(){return zn+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},i.label=function(){return this.localize(this.options_.label||"Modal Window")},i.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},i.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},i.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},i.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},i.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,i=this.getChild("closeButton");if(e&&!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close_)}!e&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_},i.fill=function(){this.fillWith(this.content())},i.fillWith=function(t){var e=this.contentEl(),i=e.parentNode,n=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(e),this.empty(),Oi(e,t),this.trigger("modalfill"),n?i.insertBefore(e,n):i.appendChild(e);var r=this.getChild("closeButton");r&&i.appendChild(r.el_)},i.empty=function(){this.trigger("beforemodalempty"),Mi(this.contentEl()),this.trigger("modalempty")},i.content=function(t){return void 0!==t&&(this.content_=t),this.content_},i.conditionalFocus_=function(){},i.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_=null)},i.handleKeyDown=function(t){if(t.stopPropagation(),c().isEventKey(t,"Escape")&&this.closeable())return t.preventDefault(),void this.close();if(c().isEventKey(t,"Tab")){for(var e=this.focusableEls_(),i=this.el_.querySelector(":focus"),n=0;n<e.length&&i!==e[n];n++);o().activeElement,this.el_,t.shiftKey,t.shiftKey||undefined!==e.length-1||t.preventDefault()}},i.focusableEls_=function(){},e}(Ln);qn.prototype.options_={pauseOnOpen:!0,temporary:!0},Ln.registerComponent("ModalDialog",qn);var Gn=function(t){function e(e){var i;void 0===e&&(e=[]),(i=t.call(this)||this).tracks_=[],Object.defineProperty(h(i),"length",{get:function(){return this.tracks_.length}});for(var n=0;n<e.length;n++)i.addTrack(e[n]);return i}p(e,t);var i=e.prototype;return i.addTrack=function(t){var e=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-1===this.tracks_.indexOf(t)&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=function(){e.trigger({track:t,type:"labelchange",target:e})},mn(t)&&t.addEventListener("labelchange",t.labelchange_)},i.removeTrack=function(t){for(var e,i=0,n=this.length;i<n;i++)if(this[i]===t){(e=this[i]).off&&e.off(),this.tracks_.splice(i,1);break}e&&this.trigger({track:e,type:"removetrack",target:this})},i.getTrackById=function(t){for(var e=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},e}(pn);for(var Wn in Gn.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Gn.prototype.allowedEvents_)Gn.prototype["on"+Wn]=null;var Xn=function(t,e){for(var i=0;i<t.length;i++)Object.keys(t[i]).length&&e.id!==t[i].id&&(t[i].enabled=!1)},$n=function(t){function e(e){var i;void 0===e&&(e=[]);for(var n=e.length-1;n>=0;n--)if(e[n].enabled){Xn(e,e[n]);break}return(i=t.call(this,e)||this).changing_=!1,i}p(e,t);var i=e.prototype;return i.addTrack=function(e){var i=this;e.enabled&&Xn(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){i.changing_||(i.changing_=!0,Xn(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},i.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Gn),Yn=function(t,e){for(var i=0;i<t.length;i++)Object.keys(t[i]).length&&e.id!==t[i].id&&(t[i].selected=!1)},Kn=function(t){function e(e){var i;void 0===e&&(e=[]);for(var n=e.length-1;n>=0;n--)if(e[n].selected){Yn(e,e[n]);break}return(i=t.call(this,e)||this).changing_=!1,Object.defineProperty(h(i),"selectedIndex",{get:function(){for(var t=0;t<this.length;t++)if(this[t].selected)return t;return-1},set:function(){}}),i}p(e,t);var i=e.prototype;return i.addTrack=function(e){var i=this;e.selected&&Yn(this,e),t.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){i.changing_||(i.changing_=!0,Yn(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},i.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Gn),Qn=function(t){function e(){return t.apply(this,arguments)||this}p(e,t);var i=e.prototype;return i.addTrack=function(e){var i=this;t.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return i.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return i.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},i.removeTrack=function(e){t.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Gn),Zn=function(){function t(t){void 0===t&&(t=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var e=0,i=t.length;e<i;e++)this.addTrackElement_(t[e])}var e=t.prototype;return e.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),-1===this.trackElements_.indexOf(t)&&this.trackElements_.push(t)},e.getTrackElementByTrack_=function(t){for(var e,i=0,n=this.trackElements_.length;i<n;i++)if(t===this.trackElements_[i].track){e=this.trackElements_[i];break}return e},e.removeTrackElement_=function(t){for(var e=0,i=this.trackElements_.length;e<i;e++)if(t===this.trackElements_[e]){this.trackElements_[e].track&&"function"==typeof this.trackElements_[e].track.off&&this.trackElements_[e].track.off(),"function"==typeof this.trackElements_[e].off&&this.trackElements_[e].off(),this.trackElements_.splice(e,1);break}},t}(),Jn=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(t){var e=this.length||0,i=0,n=t.length;this.cues_=t,this.length_=t.length;var r=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e<n)for(i=e;i<n;i++)r.call(this,i)},e.getCueById=function(t){for(var e=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===t){e=r;break}}return e},t}(),tr={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},er={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ir={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},nr={disabled:"disabled",hidden:"hidden",showing:"showing"},rr=function(t){function e(e){var i;void 0===e&&(e={}),i=t.call(this)||this;var n={id:e.id||"vjs_track_"+$i(),kind:e.kind||"",language:e.language||""},r=e.label||"",s=function(t){Object.defineProperty(h(i),t,{get:function(){return n[t]},set:function(){}})};for(var a in n)s(a);return Object.defineProperty(h(i),"label",{get:function(){return r},set:function(t){t!==r&&(r=t,this.trigger("labelchange"))}}),i}return p(e,t),e}(pn),sr=function(t){var e=["protocol","hostname","port","pathname","search","hash","host"],i=o().createElement("a");i.href=t;for(var n={},r=0;r<e.length;r++)n[e[r]]=i[e[r]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),n.protocol||(n.protocol=s().location.protocol),n.host||(n.host=s().location.host),n},ar=function(t){if(!t.match(/^https?:\/\//)){var e=o().createElement("a");e.href=t,t=e.href}return t},or=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},lr=function(t,e){void 0===e&&(e=s().location);var i=sr(t);return(":"===i.protocol?e.protocol:i.protocol)+i.host!==e.protocol+e.host},ur=Object.freeze({__proto__:null,parseUrl:sr,getAbsoluteURL:ar,getFileExtension:or,isCrossOrigin:lr}),cr=function(t,e){var i=new(s().WebVTT.Parser)(s(),s().vttjs,s().WebVTT.StringDecoder()),n=[];i.oncue=function(t){e.addCue(t)},i.onparsingerror=function(t){n.push(t)},i.onflush=function(){e.trigger({type:"loadeddata",target:e})},i.parse(t),n.length>0&&(s().console&&s().console.groupCollapsed&&s().console.groupCollapsed("Text Track parsing errors for "+e.src),n.forEach((function(t){return Ce.error(t)})),s().console&&s().console.groupEnd&&s().console.groupEnd()),i.flush()},hr=function(t,e){var i={uri:t},n=lr(t);n&&(i.cors=n);var r="use-credentials"===e.tech_.crossOrigin();r&&(i.withCredentials=r),y()(i,hn(this,(function(t,i,n){if(t)return Ce.error(t,i);e.loaded_=!0,"function"!=typeof s().WebVTT?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],(function(t){if("vttjserror"!==t.type)return cr(n,e);Ce.error("vttjs failed to load, stopping trying to process "+e.src)})):cr(n,e)})))},dr=function(t){function e(e){var i;if(void 0===e&&(e={}),!e.tech)throw new Error("A tech was not provided.");var n=Cn(e,{kind:ir[e.kind]||"subtitles",language:e.language||e.srclang||""}),r=nr[n.mode]||"disabled",s=n.default;"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden"),(i=t.call(this,n)||this).tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var a=new Jn(i.cues_),o=new Jn(i.activeCues_),l=!1;return i.timeupdateHandler=hn(h(i),(function(t){void 0===t&&(t={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),"timeupdate"!==t.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==t.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))})),i.tech_.one("dispose",(function(){i.stopTracking()})),"disabled"!==r&&i.startTracking(),Object.defineProperties(h(i),{default:{get:function(){return s},set:function(){}},mode:{get:function(){return r},set:function(t){nr[t]&&r!==t&&(r=t,this.preload_||"disabled"===r||0!==this.cues.length||hr(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var t=this.tech_.currentTime(),e=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];(r.startTime<=t&&r.endTime>=t||r.startTime===r.endTime&&r.startTime<=t&&r.startTime+.5>=t)&&e.push(r)}if(l=!1,e.length!==this.activeCues_.length)l=!0;else for(var s=0;s<e.length;s++)-1===this.activeCues_.indexOf(e[s])&&(l=!0);return this.activeCues_=e,o.setCues_(this.activeCues_),o},set:function(){}}}),n.src?(i.src=n.src,i.preload_||(i.loaded_=!0),(i.preload_||"subtitles"!==n.kind&&"captions"!==n.kind)&&hr(i.src,h(i))):i.loaded_=!0,i}p(e,t);var i=e.prototype;return i.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},i.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},i.addCue=function(t){var e=t;if(s().vttjs&&!(t instanceof s().vttjs.VTTCue)){for(var i in e=new(s().vttjs.VTTCue)(t.startTime,t.endTime,t.text),t)i in e||(e[i]=t[i]);e.id=t.id,e.originalCue_=t}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(e);this.cues_.push(e),this.cues.setCues_(this.cues_)},i.removeCue=function(t){for(var e=this.cues_.length;e--;){var i=this.cues_[e];if(i===t||i.originalCue_&&i.originalCue_===t){this.cues_.splice(e,1),this.cues.setCues_(this.cues_);break}}},e}(rr);dr.prototype.allowedEvents_={cuechange:"cuechange"};var pr=function(t){function e(e){var i;void 0===e&&(e={});var n=Cn(e,{kind:er[e.kind]||""});i=t.call(this,n)||this;var r=!1;return Object.defineProperty(h(i),"enabled",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("enabledchange"))}}),n.enabled&&(i.enabled=n.enabled),i.loaded_=!0,i}return p(e,t),e}(rr),fr=function(t){function e(e){var i;void 0===e&&(e={});var n=Cn(e,{kind:tr[e.kind]||""});i=t.call(this,n)||this;var r=!1;return Object.defineProperty(h(i),"selected",{get:function(){return r},set:function(t){"boolean"==typeof t&&t!==r&&(r=t,this.trigger("selectedchange"))}}),n.selected&&(i.selected=n.selected),i}return p(e,t),e}(rr),mr=function(t){function e(e){var i,n;void 0===e&&(e={}),i=t.call(this)||this;var r=new dr(e);return i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i.default=r.default,Object.defineProperties(h(i),{readyState:{get:function(){return n}},track:{get:function(){return r}}}),n=0,r.addEventListener("loadeddata",(function(){n=2,i.trigger({type:"load",target:h(i)})})),i}return p(e,t),e}(pn);mr.prototype.allowedEvents_={load:"load"},mr.NONE=0,mr.LOADING=1,mr.LOADED=2,mr.ERROR=3;var gr={audio:{ListClass:$n,TrackClass:pr,capitalName:"Audio"},video:{ListClass:Kn,TrackClass:fr,capitalName:"Video"},text:{ListClass:Qn,TrackClass:dr,capitalName:"Text"}};Object.keys(gr).forEach((function(t){gr[t].getterName=t+"Tracks",gr[t].privateName=t+"Tracks_"}));var yr={remoteText:{ListClass:Qn,TrackClass:dr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Zn,TrackClass:mr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},vr=l({},gr,yr);yr.names=Object.keys(yr),gr.names=Object.keys(gr),vr.names=[].concat(yr.names).concat(gr.names);var _r=function(t){function e(e,i){var n;return void 0===e&&(e={}),void 0===i&&(i=function(){}),e.reportTouchActivity=!1,(n=t.call(this,null,e,i)||this).onDurationChange_=function(t){return n.onDurationChange(t)},n.trackProgress_=function(t){return n.trackProgress(t)},n.trackCurrentTime_=function(t){return n.trackCurrentTime(t)},n.stopTrackingCurrentTime_=function(t){return n.stopTrackingCurrentTime(t)},n.disposeSourceHandler_=function(t){return n.disposeSourceHandler(t)},n.queuedHanders_=new Set,n.hasStarted_=!1,n.on("playing",(function(){this.hasStarted_=!0})),n.on("loadstart",(function(){this.hasStarted_=!1})),vr.names.forEach((function(t){var i=vr[t];e&&e[i.getterName]&&(n[i.privateName]=e[i.getterName])})),n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(t){!1===e["native"+t+"Tracks"]&&(n["featuresNative"+t+"Tracks"]=!1)})),!1===e.nativeCaptions||!1===e.nativeTextTracks?n.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(n.featuresNativeTextTracks=!0),n.featuresNativeTextTracks||n.emulateTextTracks(),n.preloadTextTracks=!1!==e.preloadTextTracks,n.autoRemoteTextTracks_=new vr.text.ListClass,n.initTrackListeners(),e.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.name_=n.constructor.name||"Unknown Tech"),n}p(e,t);var i=e.prototype;return i.triggerSourceset=function(t){var e=this;this.isReady_||this.one("ready",(function(){return e.setTimeout((function(){return e.triggerSourceset(t)}),1)})),this.trigger({src:t,type:"sourceset"})},i.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},i.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},i.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(hn(this,(function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()})),500)},i.onDurationChange=function(t){this.duration_=this.duration()},i.buffered=function(){return Rn(0,0)},i.bufferedPercent=function(){return Bn(this.buffered(),this.duration_)},i.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},i.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},i.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},i.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},i.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.dispose=function(){this.clearTracks(gr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},i.clearTracks=function(t){var e=this;(t=[].concat(t)).forEach((function(t){for(var i=e[t+"Tracks"]()||[],n=i.length;n--;){var r=i[n];"text"===t&&e.removeRemoteTextTrack(r),i.removeTrack(r)}}))},i.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var i=t[e];this.removeRemoteTextTrack(i)}},i.reset=function(){},i.crossOrigin=function(){},i.setCrossOrigin=function(){},i.error=function(t){return void 0!==t&&(this.error_=new Nn(t),this.trigger("error")),this.error_},i.played=function(){return this.hasStarted_?Rn(0,0):Rn()},i.play=function(){},i.setScrubbing=function(){},i.scrubbing=function(){},i.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},i.initTrackListeners=function(){var t=this;gr.names.forEach((function(e){var i=gr[e],n=function(){t.trigger(e+"trackchange")},r=t[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),t.on("dispose",(function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)}))}))},i.addWebVttScript_=function(){var t=this;if(!s().WebVTT)if(o().body.contains(this.el())){if(!this.options_["vtt.js"]&&Fe(_())&&Object.keys(_()).length>0)return void this.trigger("vttjsloaded");var e=o().createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),s().WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)},i.emulateTextTracks=function(){var t=this,e=this.textTracks(),i=this.remoteTextTracks(),n=function(t){return e.addTrack(t.track)},r=function(t){return e.removeTrack(t.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var s=function(){return t.trigger("texttrackchange")},a=function(){s();for(var t=0;t<e.length;t++){var i=e[t];i.removeEventListener("cuechange",s),"showing"===i.mode&&i.addEventListener("cuechange",s)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",(function(){i.off("addtrack",n),i.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(var t=0;t<e.length;t++)e[t].removeEventListener("cuechange",s)}))},i.addTextTrack=function(t,e,i){if(!t)throw new Error("TextTrack kind is required but was not provided");return function(t,e,i,n,r){void 0===r&&(r={});var s=t.textTracks();r.kind=e,i&&(r.label=i),n&&(r.language=n),r.tech=t;var a=new vr.text.TrackClass(r);return s.addTrack(a),a}(this,t,e,i)},i.createRemoteTextTrack=function(t){var e=Cn(t,{tech:this});return new yr.remoteTextEl.TrackClass(e)},i.addRemoteTextTrack=function(t,e){var i=this;void 0===t&&(t={});var n=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(Ce.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==e&&this.ready((function(){return i.autoRemoteTextTracks_.addTrack(n.track)})),n},i.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)},i.getVideoPlaybackQuality=function(){return{}},i.requestPictureInPicture=function(){var t=this.options_.Promise||s().Promise;if(t)return t.reject()},i.disablePictureInPicture=function(){return!0},i.setDisablePictureInPicture=function(){},i.requestVideoFrameCallback=function(t){var e=this,i=$i();return!this.isReady_||this.paused()?(this.queuedHanders_.add(i),this.one("playing",(function(){e.queuedHanders_.has(i)&&(e.queuedHanders_.delete(i),t())}))):this.requestNamedAnimationFrame(i,t),i},i.cancelVideoFrameCallback=function(t){this.queuedHanders_.has(t)?this.queuedHanders_.delete(t):this.cancelNamedAnimationFrame(t)},i.setPoster=function(){},i.playsinline=function(){},i.setPlaysinline=function(){},i.overrideNativeAudioTracks=function(){},i.overrideNativeVideoTracks=function(){},i.canPlayType=function(){return""},e.canPlayType=function(){return""},e.canPlaySource=function(t,i){return e.canPlayType(t.type)},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,i){if(e.techs_||(e.techs_={}),!e.isTech(i))throw new Error("Tech "+t+" must be a Tech");if(!e.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!e.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=Dn(t),e.techs_[t]=i,e.techs_[En(t)]=i,"Tech"!==t&&e.defaultTechOrder_.push(t),i},e.getTech=function(t){if(t)return e.techs_&&e.techs_[t]?e.techs_[t]:(t=Dn(t),s()&&s().videojs&&s().videojs[t]?(Ce.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),s().videojs[t]):void 0)},e}(Ln);vr.names.forEach((function(t){var e=vr[t];_r.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}})),_r.prototype.featuresVolumeControl=!0,_r.prototype.featuresMuteControl=!0,_r.prototype.featuresFullscreenResize=!1,_r.prototype.featuresPlaybackRate=!1,_r.prototype.featuresProgressEvents=!1,_r.prototype.featuresSourceset=!1,_r.prototype.featuresTimeupdateEvents=!1,_r.prototype.featuresNativeTextTracks=!1,_r.prototype.featuresVideoFrameCallback=!1,_r.withSourceHandlers=function(t){t.registerSourceHandler=function(e,i){var n=t.sourceHandlers;n||(n=t.sourceHandlers=[]),void 0===i&&(i=n.length),n.splice(i,0,e)},t.canPlayType=function(e){for(var i,n=t.sourceHandlers||[],r=0;r<n.length;r++)if(i=n[r].canPlayType(e))return i;return""},t.selectSourceHandler=function(e,i){for(var n=t.sourceHandlers||[],r=0;r<n.length;r++)if(n[r].canHandleSource(e,i))return n[r];return null},t.canPlaySource=function(e,i){var n=t.selectSourceHandler(e,i);return n?n.canHandleSource(e,i):""},["seekable","seeking","duration"].forEach((function(t){var e=this[t];"function"==typeof e&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})}),t.prototype),t.prototype.setSource=function(e){var i=t.selectSourceHandler(e,this.options_);i||(t.nativeSourceHandler?i=t.nativeSourceHandler:Ce.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=i.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Ln.registerComponent("Tech",_r),_r.registerTech("Tech",_r),_r.defaultTechOrder_=[];var br={},xr={},Tr={};function wr(t,e,i){t.setTimeout((function(){return Pr(e,br[e.type],i,t)}),1)}function kr(t,e,i,n){void 0===n&&(n=null);var r="call"+Dn(i),s=t.reduce(Cr(r),n),a=s===Tr,o=a?null:e[i](s);return function(t,e,i,n){for(var r=t.length-1;r>=0;r--){var s=t[r];s[e]&&s[e](n,i)}}(t,i,o,a),o}var Sr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Er={setCurrentTime:1,setMuted:1,setVolume:1},Dr={play:1,pause:1};function Cr(t){return function(e,i){return e===Tr?Tr:i[t]?i[t](e):e}}function Pr(t,e,i,n,r,s){void 0===t&&(t={}),void 0===e&&(e=[]),void 0===r&&(r=[]),void 0===s&&(s=!1);var a=e,o=a[0],l=a.slice(1);if("string"==typeof o)Pr(t,br[o],i,n,r,s);else if(o){var u=function(t,e){var i=xr[t.id()],n=null;if(null==i)return n=e(t),xr[t.id()]=[[e,n]],n;for(var r=0;r<i.length;r++){var s=i[r],a=s[0],o=s[1];a===e&&(n=o)}return null===n&&(n=e(t),i.push([e,n])),n}(n,o);if(!u.setSource)return r.push(u),Pr(t,l,i,n,r,s);u.setSource(Le({},t),(function(e,a){if(e)return Pr(t,l,i,n,r,s);r.push(u),Pr(a,t.type===a.type?l:br[a.type],i,n,r,s)}))}else l.length?Pr(t,l,i,n,r,s):s?i(t,r):Pr(t,br["*"],i,n,r,!0)}var Ar={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Mr=function(t){void 0===t&&(t="");var e=or(t);return Ar[e.toLowerCase()]||""},Ir=function t(e){if(Array.isArray(e)){var i=[];e.forEach((function(e){e=t(e),Array.isArray(e)?i=i.concat(e):Oe(e)&&i.push(e)})),e=i}else e="string"==typeof e&&e.trim()?[Lr({src:e})]:Oe(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[Lr(e)]:[];return e};function Lr(t){if(!t.type){var e=Mr(t.src);e&&(t.type=e)}return t}var Or=function(t){function e(e,i,n){var r,s=Cn({createEl:!1},i);if(r=t.call(this,e,s,n)||this,i.playerOptions.sources&&0!==i.playerOptions.sources.length)e.src(i.playerOptions.sources);else for(var a=0,o=i.playerOptions.techOrder;a<o.length;a++){var l=Dn(o[a]),u=_r.getTech(l);if(l||(u=Ln.getComponent(l)),u&&u.isSupported()){e.loadTech_(l);break}}return r}return p(e,t),e}(Ln);Ln.registerComponent("MediaLoader",Or);var Fr=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).options_.controlText&&n.controlText(n.options_.controlText),n.handleMouseOver_=function(t){return n.handleMouseOver(t)},n.handleMouseOut_=function(t){return n.handleMouseOut(t)},n.handleClick_=function(t){return n.handleClick(t)},n.handleKeyDown_=function(t){return n.handleKeyDown(t)},n.emitTapEvents(),n.enable(),n}p(e,t);var i=e.prototype;return i.createEl=function(t,e,i){void 0===t&&(t="div"),void 0===e&&(e={}),void 0===i&&(i={}),e=Le({className:this.buildCSSClass(),tabIndex:0},e),"button"===t&&Ce.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=Le({role:"button"},i),this.tabIndex_=e.tabIndex;var n=pi(t,e,i);return n.appendChild(pi("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n},i.dispose=function(){this.controlTextEl_=null,t.prototype.dispose.call(this)},i.createControlTextEl=function(t){return this.controlTextEl_=pi("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},i.controlText=function(t,e){if(void 0===e&&(e=this.el()),void 0===t)return this.controlText_||"Need Text";var i=this.localize(t);this.controlText_=t,fi(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||e.setAttribute("title",i)},i.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},i.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},i.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},i.handleLanguagechange=function(){this.controlText(this.controlText_)},i.handleClick=function(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},i.handleKeyDown=function(e){c().isEventKey(e,"Space")||c().isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(Ln);Ln.registerComponent("ClickableComponent",Fr);var Rr=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).update(),n.update_=function(t){return n.update(t)},e.on("posterchange",n.update_),n}p(e,t);var i=e.prototype;return i.dispose=function(){this.player().off("posterchange",this.update_),t.prototype.dispose.call(this)},i.createEl=function(){return pi("div",{className:"vjs-poster",tabIndex:-1})},i.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},i.setSrc=function(t){var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e},i.handleClick=function(t){this.player_.controls()&&(this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length,this.player_.tech(!0),this.player_.paused()?jn(this.player_.play()):this.player_.pause())},e}(Fr);Ln.registerComponent("PosterImage",Rr);var Br="#222",Nr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Hr(t,e){var i;if(4===t.length)i=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else{if(7!==t.length)throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");i=t.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+e+")"}function Vr(t,e,i){try{t.style[e]=i}catch(t){return}}var jr=function(t){function e(e,i,n){var r;r=t.call(this,e,i,n)||this;var a=function(t){return r.updateDisplay(t)};return e.on("loadstart",(function(t){return r.toggleDisplay(t)})),e.on("texttrackchange",a),e.on("loadedmetadata",(function(t){return r.preselectTrack(t)})),e.ready(hn(h(r),(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)this.hide();else{e.on("fullscreenchange",a),e.on("playerresize",a),s().addEventListener("orientationchange",a),e.on("dispose",(function(){return s().removeEventListener("orientationchange",a)}));for(var t=this.options_.playerOptions.tracks||[],i=0;i<t.length;i++)this.player_.addRemoteTextTrack(t[i],!0);this.preselectTrack()}}))),r}p(e,t);var i=e.prototype;return i.preselectTrack=function(){for(var t,e,i,n={captions:1,subtitles:1},r=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=0;a<r.length;a++){var o=r[a];s&&s.enabled&&s.language&&s.language===o.language&&o.kind in n?o.kind===s.kind?i=o:i||(i=o):s&&!s.enabled?(i=null,t=null,e=null):o.default&&("descriptions"!==o.kind||t?o.kind in n&&!e&&(e=o):t=o)}i?i.mode="showing":e?e.mode="showing":t&&(t.mode="showing")},i.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},i.clearDisplay=function(){"function"==typeof s().WebVTT&&s().WebVTT.processCues(s(),[],this.el_)},i.updateDisplay=function(){var t=this.player_.textTracks(),e=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),e){for(var i=[],n=0;n<t.length;++n){var r=t[n];"showing"===r.mode&&i.push(r)}this.updateForTrack(i)}else{for(var s=null,a=null,o=t.length;o--;){var l=t[o];"showing"===l.mode&&("descriptions"===l.kind?s=l:a=l)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):s&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}},i.updateDisplayState=function(t){for(var e=this.player_.textTrackSettings.getValues(),i=t.activeCues,n=i.length;n--;){var r=i[n];if(r){var a=r.displayState;if(e.color&&(a.firstChild.style.color=e.color),e.textOpacity&&Vr(a.firstChild,"color",Hr(e.color||"#fff",e.textOpacity)),e.backgroundColor&&(a.firstChild.style.backgroundColor=e.backgroundColor),e.backgroundOpacity&&Vr(a.firstChild,"backgroundColor",Hr(e.backgroundColor||"#000",e.backgroundOpacity)),e.windowColor&&(e.windowOpacity?Vr(a,"backgroundColor",Hr(e.windowColor,e.windowOpacity)):a.style.backgroundColor=e.windowColor),e.edgeStyle&&("dropshadow"===e.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+Br:"raised"===e.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+Br:"depressed"===e.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+Br:"uniform"===e.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+Br)),e.fontPercent&&1!==e.fontPercent){var o=s().parseFloat(a.style.fontSize);a.style.fontSize=o*e.fontPercent+"px",a.style.height="auto",a.style.top="auto"}e.fontFamily&&"default"!==e.fontFamily&&("small-caps"===e.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Nr[e.fontFamily])}}},i.updateForTrack=function(t){if(Array.isArray(t)||(t=[t]),"function"==typeof s().WebVTT&&!t.every((function(t){return!t.activeCues}))){for(var e=[],i=0;i<t.length;++i)for(var n=t[i],r=0;r<n.activeCues.length;++r)e.push(n.activeCues[r]);s().WebVTT.processCues(s(),e,this.el_);for(var a=0;a<t.length;++a){for(var o=t[a],l=0;l<o.activeCues.length;++l){var u=o.activeCues[l].displayState;yi(u,"vjs-text-track-cue"),yi(u,"vjs-text-track-cue-"+(o.language?o.language:a)),o.language&&wi(u,"lang",o.language)}this.player_.textTrackSettings&&this.updateDisplayState(o)}}},e}(Ln);Ln.registerComponent("TextTrackDisplay",jr);var Ur=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e.prototype.createEl=function(){var e=this.player_.isAudio(),i=this.localize(e?"Audio Player":"Video Player"),n=pi("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[i])}),r=t.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r},e}(Ln);Ln.registerComponent("LoadingSpinner",Ur);var zr=function(t){function e(){return t.apply(this,arguments)||this}p(e,t);var i=e.prototype;return i.createEl=function(t,e,i){void 0===e&&(e={}),void 0===i&&(i={});var n=pi("button",e=Le({className:this.buildCSSClass()},e),i=Le({type:"button"},i));return n.appendChild(pi("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n},i.addChild=function(t,e){void 0===e&&(e={});var i=this.constructor.name;return Ce.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),Ln.prototype.addChild.call(this,t,e)},i.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyDown=function(e){c().isEventKey(e,"Space")||c().isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(Fr);Ln.registerComponent("Button",zr);var qr=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).mouseused_=!1,n.on("mousedown",(function(t){return n.handleMouseDown(t)})),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-big-play-button"},i.handleClick=function(t){var e=this.player_.play();if(this.mouseused_&&t.clientX&&t.clientY)return this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length,jn(e),void this.player_.tech(!0);var i=this.player_.getChild("controlBar");i&&i.getChild("playToggle")&&Vn(e)},i.handleKeyDown=function(e){this.mouseused_=!1,t.prototype.handleKeyDown.call(this,e)},i.handleMouseDown=function(t){this.mouseused_=!0},e}(zr);qr.prototype.controlText_="Play Video",Ln.registerComponent("BigPlayButton",qr);var Gr=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).controlText(i&&i.controlText||n.localize("Close")),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},i.handleClick=function(t){this.trigger({type:"close",bubbles:!1})},i.handleKeyDown=function(e){c().isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):t.prototype.handleKeyDown.call(this,e)},e}(zr);Ln.registerComponent("CloseButton",Gr);var Wr=function(t){function e(e,i){var n;return void 0===i&&(i={}),n=t.call(this,e,i)||this,i.replay=void 0===i.replay||i.replay,n.on(e,"play",(function(t){return n.handlePlay(t)})),n.on(e,"pause",(function(t){return n.handlePause(t)})),i.replay&&n.on(e,"ended",(function(t){return n.handleEnded(t)})),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},i.handleClick=function(t){this.player_.paused()?jn(this.player_.play()):this.player_.pause()},i.handleSeeked=function(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)},i.handlePlay=function(t){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},i.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},i.handleEnded=function(t){var e=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(t){return e.handleSeeked(t)}))},e}(zr);Wr.prototype.controlText_="Play",Ln.registerComponent("PlayToggle",Wr);var Xr=function(t,e){t=t<0?0:t;var i=Math.floor(t%60),n=Math.floor(t/60%60),r=Math.floor(t/3600),s=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=n=i="-"),(r=r>0||a>0?r+":":"")+(n=((r||s>=10)&&n<10?"0"+n:n)+":")+(i<10?"0"+i:i)},$r=Xr;function Yr(t,e){return void 0===e&&(e=t),$r(t,e)}var Kr=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).on(e,["timeupdate","ended"],(function(t){return n.updateContent(t)})),n.updateTextNode_(),n}p(e,t);var i=e.prototype;return i.createEl=function(){var e=this.buildCSSClass(),i=t.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"}),n=pi("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return i.appendChild(n),this.contentEl_=pi("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),i.appendChild(this.contentEl_),i},i.dispose=function(){this.contentEl_=null,this.textNode_=null,t.prototype.dispose.call(this)},i.updateTextNode_=function(t){var e=this;void 0===t&&(t=0),t=Yr(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,Ce.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=o().createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}})))},i.updateContent=function(t){},e}(Ln);Kr.prototype.labelText_="Time",Kr.prototype.controlText_="Time",Ln.registerComponent("TimeDisplay",Kr);var Qr=function(t){function e(){return t.apply(this,arguments)||this}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(t){var e;e=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(e)},e}(Kr);Qr.prototype.labelText_="Current Time",Qr.prototype.controlText_="Current Time",Ln.registerComponent("CurrentTimeDisplay",Qr);var Zr=function(t){function e(e,i){var n,r=function(t){return n.updateContent(t)};return(n=t.call(this,e,i)||this).on(e,"durationchange",r),n.on(e,"loadstart",r),n.on(e,"loadedmetadata",r),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-duration"},i.updateContent=function(t){var e=this.player_.duration();this.updateTextNode_(e)},e}(Kr);Zr.prototype.labelText_="Duration",Zr.prototype.controlText_="Duration",Ln.registerComponent("DurationDisplay",Zr);var Jr=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=t.prototype.createEl.call(this,"div"),n=t.prototype.createEl.call(this,"span",{textContent:"/"});return i.appendChild(n),e.appendChild(i),e},e}(Ln);Ln.registerComponent("TimeDivider",Jr);var ts=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).on(e,"durationchange",(function(t){return n.updateContent(t)})),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-remaining-time"},i.createEl=function(){var e=t.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&e.insertBefore(pi("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},i.updateContent=function(t){var e;"number"==typeof this.player_.duration()&&(e=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(e))},e}(Kr);ts.prototype.labelText_="Remaining Time",ts.prototype.controlText_="Remaining Time",Ln.registerComponent("RemainingTimeDisplay",ts);var es=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).updateShowing(),n.on(n.player(),"durationchange",(function(t){return n.updateShowing(t)})),n}p(e,t);var i=e.prototype;return i.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=pi("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(pi("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(o().createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e},i.dispose=function(){this.contentEl_=null,t.prototype.dispose.call(this)},i.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(Ln);Ln.registerComponent("LiveDisplay",es);var is=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(t){return n.updateLiveEdgeStatus(t)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}p(e,t);var i=e.prototype;return i.createEl=function(){var e=t.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=pi("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},i.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},i.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},i.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,t.prototype.dispose.call(this)},e}(zr);is.prototype.controlText_="Seek to live, currently playing live",Ln.registerComponent("SeekToLive",is);var ns=function(t,e,i){return t=Number(t),Math.min(i,Math.max(e,isNaN(t)?e:t))},rs=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handleMouseDown_=function(t){return n.handleMouseDown(t)},n.handleMouseUp_=function(t){return n.handleMouseUp(t)},n.handleKeyDown_=function(t){return n.handleKeyDown(t)},n.handleClick_=function(t){return n.handleClick(t)},n.handleMouseMove_=function(t){return n.handleMouseMove(t)},n.update_=function(t){return n.update(t)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}p(e,t);var i=e.prototype;return i.enabled=function(){return this.enabled_},i.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},i.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},i.createEl=function(e,i,n){return void 0===i&&(i={}),void 0===n&&(n={}),i.className=i.className+" vjs-slider",i=Le({tabIndex:0},i),n=Le({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},n),t.prototype.createEl.call(this,e,i,n)},i.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;"mousedown"===t.type&&t.preventDefault(),"touchstart"!==t.type||Ke||t.preventDefault(),Si(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove_),this.on(e,"mouseup",this.handleMouseUp_),this.on(e,"touchmove",this.handleMouseMove_),this.on(e,"touchend",this.handleMouseUp_),this.handleMouseMove(t,!0)},i.handleMouseMove=function(t){},i.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;Ei(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()},i.update=function(){var t=this;if(this.el_&&this.bar){var e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(function(){var i=t.vertical()?"height":"width";t.bar.el().style[i]=(100*e).toFixed(2)+"%"}))),e}},i.getProgress=function(){return Number(ns(this.getPercent(),0,1).toFixed(4))},i.calculateDistance=function(t){var e=Pi(this.el_,t);return this.vertical()?e.y:e.x},i.handleKeyDown=function(e){c().isEventKey(e,"Left")||c().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):c().isEventKey(e,"Right")||c().isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):t.prototype.handleKeyDown.call(this,e)},i.handleClick=function(t){t.stopPropagation(),t.preventDefault()},i.vertical=function(t){if(void 0===t)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(Ln);Ln.registerComponent("Slider",rs);var ss=function(t,e){return ns(t/e*100,0,100).toFixed(2)+"%"},as=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).partEls_=[],n.on(e,"progress",(function(t){return n.update(t)})),n}p(e,t);var i=e.prototype;return i.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),i=pi("span",{className:"vjs-control-text"}),n=pi("span",{textContent:this.localize("Loaded")}),r=o().createTextNode(": ");return this.percentageEl_=pi("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(i),i.appendChild(n),i.appendChild(r),i.appendChild(this.percentageEl_),e},i.dispose=function(){this.partEls_=null,this.percentageEl_=null,t.prototype.dispose.call(this)},i.update=function(t){var e=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var t=e.player_.liveTracker,i=e.player_.buffered(),n=t&&t.isLive()?t.seekableEnd():e.player_.duration(),r=e.player_.bufferedEnd(),s=e.partEls_,a=ss(r,n);e.percent_!==a&&(e.el_.style.width=a,fi(e.percentageEl_,a),e.percent_=a);for(var o=0;o<i.length;o++){var l=i.start(o),u=i.end(o),c=s[o];c||(c=e.el_.appendChild(pi()),s[o]=c),c.dataset.start===l&&c.dataset.end===u||(c.dataset.start=l,c.dataset.end=u,c.style.left=ss(l,r),c.style.width=ss(u-l,r))}for(var h=s.length;h>i.length;h--)e.el_.removeChild(s[h-1]);s.length=i.length}))},e}(Ln);Ln.registerComponent("LoadProgressBar",as);var os=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).update=dn(hn(h(n),n.update),cn),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},i.update=function(t,e,i){var n=Ci(this.el_),r=Di(this.player_.el()),s=t.width*e;if(r&&n){var a=t.left-r.left+s,o=t.width-s+(r.right-t.right),l=n.width/2;a<l?l+=l-a:o<l&&(l=o),l<0?l=0:l>n.width&&(l=n.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(i)}},i.write=function(t){fi(this.el_,t)},i.updateTime=function(t,e,i,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var s,a=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-e*o;s=(l<1?"":"-")+Yr(l,o)}else s=Yr(i,a);r.update(t,e,s),n&&n()}))},e}(Ln);Ln.registerComponent("TimeTooltip",os);var ls=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).update=dn(hn(h(n),n.update),cn),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},i.update=function(t,e){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(t,e,n)}},e}(Ln);ls.prototype.options_={children:[]},ri||Ge||ls.prototype.options_.children.push("timeTooltip"),Ln.registerComponent("PlayProgressBar",ls);var us=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).update=dn(hn(h(n),n.update),cn),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(t,e){var i=this,n=e*this.player_.duration();this.getChild("timeTooltip").updateTime(t,e,n,(function(){i.el_.style.left=t.width*e+"px"}))},e}(Ln);us.prototype.options_={children:["timeTooltip"]},Ln.registerComponent("MouseTimeDisplay",us);var cs=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).setEventHandlers_(),n}p(e,t);var i=e.prototype;return i.setEventHandlers_=function(){var t=this;this.update_=hn(this,this.update),this.update=dn(this.update_,cn),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.on(o(),"visibilitychange",this.toggleVisibility_)},i.toggleVisibility_=function(t){"hidden"===o().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},i.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,cn))},i.disableInterval_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&"ended"!==t.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.update=function(e){var i=this;if("hidden"!==o().visibilityState){var n=t.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var t=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),e=i.player_.liveTracker,r=i.player_.duration();e&&e.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),i.currentTime_===t&&i.duration_===r||(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[Yr(t,r),Yr(r,r)],"{1} of {2}")),i.currentTime_=t,i.duration_=r),i.bar&&i.bar.update(Di(i.el()),i.getProgress())})),n}},i.userSeek_=function(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)},i.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.getPercent=function(){var t,e=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t},i.handleMouseDown=function(e){Fi(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e))},i.handleMouseMove=function(t,e){if(void 0===e&&(e=!1),Fi(t)){var i;e||this.player_.scrubbing()||this.player_.scrubbing(!0);var n=this.calculateDistance(t),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var s=r.seekableStart(),a=r.liveCurrentTime();if((i=s+n*r.liveWindow())>=a&&(i=a),i<=s&&(i=s+.1),i===1/0)return}else(i=n*this.player_.duration())===this.player_.duration()&&(i-=.1);this.userSeek_(i)}},i.enable=function(){t.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},i.disable=function(){t.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},i.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?jn(this.player_.play()):this.update_()},i.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},i.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},i.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},i.handleKeyDown=function(e){var i=this.player_.liveTracker;if(c().isEventKey(e,"Space")||c().isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(c().isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(c().isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(c()(e))){e.preventDefault(),e.stopPropagation();var n=10*(c().codes[c()(e)]-c().codes[0])/100;i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else c().isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):c().isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):t.prototype.handleKeyDown.call(this,e)},i.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.off(o(),"visibilitychange",this.toggleVisibility_),t.prototype.dispose.call(this)},e}(rs);cs.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},ri||Ge||cs.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Ln.registerComponent("SeekBar",cs);var hs=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handleMouseMove=dn(hn(h(n),n.handleMouseMove),cn),n.throttledHandleMouseSeek=dn(hn(h(n),n.handleMouseSeek),cn),n.handleMouseUpHandler_=function(t){return n.handleMouseUp(t)},n.handleMouseDownHandler_=function(t){return n.handleMouseDown(t)},n.enable(),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var i=e.getChild("playProgressBar"),n=e.getChild("mouseTimeDisplay");if(i||n){var r=e.el(),s=Ci(r),a=Pi(r,t).x;a=ns(a,0,1),n&&n.update(s,a),i&&i.update(s,e.getProgress())}}},i.handleMouseSeek=function(t){var e=this.getChild("seekBar");e&&e.handleMouseMove(t)},i.enabled=function(){return this.enabled_},i.disable=function(){if(this.children().forEach((function(t){return t.disable&&t.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&jn(this.player_.play())}},i.enable=function(){this.children().forEach((function(t){return t.enable&&t.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},i.removeListenersAddedOnMousedownAndTouchstart=function(){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},i.handleMouseDown=function(t){var e=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(t),this.on(e,"mousemove",this.throttledHandleMouseSeek),this.on(e,"touchmove",this.throttledHandleMouseSeek),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(t){var e=this.getChild("seekBar");e&&e.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()},e}(Ln);hs.prototype.options_={children:["seekBar"]},Ln.registerComponent("ProgressControl",hs);var ds=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).on(e,["enterpictureinpicture","leavepictureinpicture"],(function(t){return n.handlePictureInPictureChange(t)})),n.on(e,["disablepictureinpicturechanged","loadedmetadata"],(function(t){return n.handlePictureInPictureEnabledChange(t)})),n.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===e.currentType().substring(0,5)||e.audioPosterMode()||e.audioOnlyMode()?(e.isInPictureInPicture()&&e.exitPictureInPicture(),n.hide()):n.show()})),n.disable(),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-picture-in-picture-control "+t.prototype.buildCSSClass.call(this)},i.handlePictureInPictureEnabledChange=function(){o().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},i.handlePictureInPictureChange=function(t){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},i.handleClick=function(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(zr);ds.prototype.controlText_="Picture-in-Picture",Ln.registerComponent("PictureInPictureToggle",ds);var ps=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).on(e,"fullscreenchange",(function(t){return n.handleFullscreenChange(t)})),!1===o()[e.fsApi_.fullscreenEnabled]&&n.disable(),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-fullscreen-control "+t.prototype.buildCSSClass.call(this)},i.handleFullscreenChange=function(t){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},i.handleClick=function(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(zr);ps.prototype.controlText_="Fullscreen",Ln.registerComponent("FullscreenToggle",ps);var fs=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return e.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),e},e}(Ln);Ln.registerComponent("VolumeLevel",fs);var ms=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).update=dn(hn(h(n),n.update),cn),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},i.update=function(t,e,i,n){if(!i){var r=Di(this.el_),s=Di(this.player_.el()),a=t.width*e;if(!s||!r)return;var o=t.left-s.left+a,l=t.width-a+(s.right-t.right),u=r.width/2;o<u?u+=u-o:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(n+"%")},i.write=function(t){fi(this.el_,t)},i.updateVolume=function(t,e,i,n,r){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){s.update(t,e,i,n.toFixed(0)),r&&r()}))},e}(Ln);Ln.registerComponent("VolumeLevelTooltip",ms);var gs=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).update=dn(hn(h(n),n.update),cn),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.update=function(t,e,i){var n=this,r=100*e;this.getChild("volumeLevelTooltip").updateVolume(t,e,i,r,(function(){i?n.el_.style.bottom=t.height*e+"px":n.el_.style.left=t.width*e+"px"}))},e}(Ln);gs.prototype.options_={children:["volumeLevelTooltip"]},Ln.registerComponent("MouseVolumeLevelDisplay",gs);var ys=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).on("slideractive",(function(t){return n.updateLastVolume_(t)})),n.on(e,"volumechange",(function(t){return n.updateARIAAttributes(t)})),e.ready((function(){return n.updateARIAAttributes()})),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},i.handleMouseDown=function(e){Fi(e)&&t.prototype.handleMouseDown.call(this,e)},i.handleMouseMove=function(t){var e=this.getChild("mouseVolumeLevelDisplay");if(e){var i=this.el(),n=Di(i),r=this.vertical(),s=Pi(i,t);s=r?s.y:s.x,s=ns(s,0,1),e.update(n,s,r)}Fi(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},i.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},i.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},i.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},i.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},i.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},i.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},i.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",(function(){0===t.player_.volume()&&t.player_.lastVolume_(e)}))},e}(rs);ys.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ri||Ge||ys.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),ys.prototype.playerEvent="volumechange",Ln.registerComponent("VolumeBar",ys);var vs=function(t){function e(e,i){var n;return void 0===i&&(i={}),i.vertical=i.vertical||!1,(void 0===i.volumeBar||Fe(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical),function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(h(n=t.call(this,e,i)||this),e),n.throttledHandleMouseMove=dn(hn(h(n),n.handleMouseMove),cn),n.handleMouseUpHandler_=function(t){return n.handleMouseUp(t)},n.on("mousedown",(function(t){return n.handleMouseDown(t)})),n.on("touchstart",(function(t){return n.handleMouseDown(t)})),n.on("mousemove",(function(t){return n.handleMouseMove(t)})),n.on(n.volumeBar,["focus","slideractive"],(function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")})),n.on(n.volumeBar,["blur","sliderinactive"],(function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")})),n}p(e,t);var i=e.prototype;return i.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},i.handleMouseDown=function(t){var e=this.el_.ownerDocument;this.on(e,"mousemove",this.throttledHandleMouseMove),this.on(e,"touchmove",this.throttledHandleMouseMove),this.on(e,"mouseup",this.handleMouseUpHandler_),this.on(e,"touchend",this.handleMouseUpHandler_)},i.handleMouseUp=function(t){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseMove),this.off(e,"touchmove",this.throttledHandleMouseMove),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},i.handleMouseMove=function(t){this.volumeBar.handleMouseMove(t)},e}(Ln);vs.prototype.options_={children:["volumeBar"]},Ln.registerComponent("VolumeControl",vs);var _s=function(t){function e(e,i){var n;return function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",(function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")}))}(h(n=t.call(this,e,i)||this),e),n.on(e,["loadstart","volumechange"],(function(t){return n.update(t)})),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-mute-control "+t.prototype.buildCSSClass.call(this)},i.handleClick=function(t){var e=this.player_.volume(),i=this.player_.lastVolume_();if(0===e){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},i.update=function(t){this.updateIcon_(),this.updateControlText_()},i.updateIcon_=function(){var t=this.player_.volume(),e=3;ri&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===t||this.player_.muted()?e=0:t<.33?e=1:t<.67&&(e=2);for(var i=0;i<4;i++)vi(this.el_,"vjs-vol-"+i);yi(this.el_,"vjs-vol-"+e)},i.updateControlText_=function(){var t=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},e}(zr);_s.prototype.controlText_="Mute",Ln.registerComponent("MuteToggle",_s);var bs=function(t){function e(e,i){var n;return void 0===i&&(i={}),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||Fe(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline),(n=t.call(this,e,i)||this).handleKeyPressHandler_=function(t){return n.handleKeyPress(t)},n.on(e,["loadstart"],(function(t){return n.volumePanelState_(t)})),n.on(n.muteToggle,"keyup",(function(t){return n.handleKeyPress(t)})),n.on(n.volumeControl,"keyup",(function(t){return n.handleVolumeControlKeyUp(t)})),n.on("keydown",(function(t){return n.handleKeyPress(t)})),n.on("mouseover",(function(t){return n.handleMouseOver(t)})),n.on("mouseout",(function(t){return n.handleMouseOut(t)})),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}p(e,t);var i=e.prototype;return i.sliderActive_=function(){this.addClass("vjs-slider-active")},i.sliderInactive_=function(){this.removeClass("vjs-slider-active")},i.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},i.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),t.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},i.dispose=function(){this.handleMouseOut(),t.prototype.dispose.call(this)},i.handleVolumeControlKeyUp=function(t){c().isEventKey(t,"Esc")},i.handleMouseOver=function(t){this.addClass("vjs-hover"),nn(o(),"keyup",this.handleKeyPressHandler_)},i.handleMouseOut=function(t){this.removeClass("vjs-hover"),rn(o(),"keyup",this.handleKeyPressHandler_)},i.handleKeyPress=function(t){c().isEventKey(t,"Esc")&&this.handleMouseOut()},e}(Ln);bs.prototype.options_={children:["muteToggle","volumeControl"]},Ln.registerComponent("VolumePanel",bs);var xs=function(t){function e(e,i){var n;return n=t.call(this,e,i)||this,i&&(n.menuButton_=i.menuButton),n.on("keydown",(function(t){return n.handleKeyDown(t)})),n.boundHandleBlur_=function(t){return n.handleBlur(t)},n.boundHandleTapClick_=function(t){return n.handleTapClick(t)},n}p(e,t);var i=e.prototype;return i.addEventListenerForItem=function(t){t instanceof Ln&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))},i.removeEventListenerForItem=function(t){t instanceof Ln&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))},i.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),t.prototype.removeChild.call(this,e)},i.addItem=function(t){var e=this.addChild(t);e&&this.addEventListenerForItem(e)},i.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=pi(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),nn(i,"click",(function(t){t.preventDefault(),t.stopImmediatePropagation()})),i},i.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,t.prototype.dispose.call(this)},i.handleBlur=function(t){var e=t.relatedTarget||o().activeElement;if(!this.children().some((function(t){return t.el()===e}))){var i=this.menuButton_;i&&i.buttonPressed_&&e!==i.el().firstChild&&i.unpressButton()}},i.handleTapClick=function(t){if(this.menuButton_){this.menuButton_.unpressButton();var e=this.children();if(!Array.isArray(e))return;var i=e.filter((function(e){return e.el()===t.target}))[0];if(!i)return;i.name()}},i.handleKeyDown=function(t){c().isEventKey(t,"Left")||c().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(c().isEventKey(t,"Right")||c().isEventKey(t,"Up"))&&(t.preventDefault(),t.stopPropagation(),this.stepBack())},i.stepForward=function(){this.focusedChild_},i.stepBack=function(){this.focusedChild_},i.focus=function(t){void 0===t&&(t=0);var e=this.children().slice();e.length&&e[0].hasClass("vjs-menu-title")&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(Ln);Ln.registerComponent("Menu",xs);var Ts=function(t){function e(e,i){var n;void 0===i&&(i={}),(n=t.call(this,e,i)||this).menuButton_=new zr(e,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=zr.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var s=function(t){return n.handleClick(t)};return n.handleMenuKeyUp_=function(t){return n.handleMenuKeyUp(t)},n.on(n.menuButton_,"tap",s),n.on(n.menuButton_,"click",s),n.on(n.menuButton_,"keydown",(function(t){return n.handleKeyDown(t)})),n.on(n.menuButton_,"mouseenter",(function(){n.addClass("vjs-hover"),n.menu.show(),nn(o(),"keyup",n.handleMenuKeyUp_)})),n.on("mouseleave",(function(t){return n.handleMouseLeave(t)})),n.on("keydown",(function(t){return n.handleSubmenuKeyDown(t)})),n}p(e,t);var i=e.prototype;return i.update=function(){var t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},i.createMenu=function(){var t=new xs(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var e=pi("li",{className:"vjs-menu-title",textContent:Dn(this.options_.title),tabIndex:-1}),i=new Ln(this.player_,{el:e});t.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},i.createItems=function(){},i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},i.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+zr.prototype.buildCSSClass()+" "+t.prototype.buildCSSClass.call(this)},i.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},i.controlText=function(t,e){return void 0===e&&(e=this.menuButton_.el()),this.menuButton_.controlText(t,e)},i.dispose=function(){this.handleMouseLeave(),t.prototype.dispose.call(this)},i.handleClick=function(t){this.buttonPressed_?this.unpressButton():this.pressButton()},i.handleMouseLeave=function(t){this.removeClass("vjs-hover"),rn(o(),"keyup",this.handleMenuKeyUp_)},i.focus=function(){this.menuButton_.focus()},i.blur=function(){this.menuButton_.blur()},i.handleKeyDown=function(t){c().isEventKey(t,"Esc")||c().isEventKey(t,"Tab")?(this.buttonPressed_&&this.unpressButton(),c().isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus())):(c().isEventKey(t,"Up")||c().isEventKey(t,"Down"))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))},i.handleMenuKeyUp=function(t){(c().isEventKey(t,"Esc")||c().isEventKey(t,"Tab"))&&this.removeClass("vjs-hover")},i.handleSubmenuKeyPress=function(t){this.handleSubmenuKeyDown(t)},i.handleSubmenuKeyDown=function(t){(c().isEventKey(t,"Esc")||c().isEventKey(t,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),c().isEventKey(t,"Tab")||(t.preventDefault(),this.menuButton_.focus()))},i.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),ri&&hi())return;this.menu.focus()}},i.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},i.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},i.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(Ln);Ln.registerComponent("MenuButton",Ts);var ws=function(t){function e(e,i){var n,r=i.tracks;if((n=t.call(this,e,i)||this).items.length<=1&&n.hide(),!r)return h(n);var s=hn(h(n),n.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),r.addEventListener("labelchange",s),n.player_.on("ready",s),n.player_.on("dispose",(function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s),r.removeEventListener("labelchange",s)})),n}return p(e,t),e}(Ts);Ln.registerComponent("TrackButton",ws);var ks=["Tab","Esc","Up","Down","Right","Left"],Ss=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).selectable=i.selectable,n.isSelected_=i.selected||!1,n.multiSelectable=i.multiSelectable,n.selected(n.isSelected_),n.selectable?n.multiSelectable?n.el_.setAttribute("role","menuitemcheckbox"):n.el_.setAttribute("role","menuitemradio"):n.el_.setAttribute("role","menuitem"),n}p(e,t);var i=e.prototype;return i.createEl=function(e,i,n){this.nonIconControl=!0;var r=t.prototype.createEl.call(this,"li",Le({className:"vjs-menu-item",tabIndex:-1},i),n);return r.replaceChild(pi("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},i.handleKeyDown=function(e){ks.some((function(t){return c().isEventKey(e,t)}))||t.prototype.handleKeyDown.call(this,e)},i.handleClick=function(t){this.selected(!0)},i.selected=function(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(Fr);Ln.registerComponent("MenuItem",Ss);var Es=function(t){function e(e,i){var n,r=i.track,a=e.textTracks();i.label=r.label||r.language||"Unknown",i.selected="showing"===r.mode,(n=t.call(this,e,i)||this).track=r,n.kinds=(i.kinds||[i.kind||n.track.kind]).filter(Boolean);var l,u=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];n.handleTracksChange.apply(h(n),e)},c=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];n.handleSelectedLanguageChange.apply(h(n),e)};return e.on(["loadstart","texttrackchange"],u),a.addEventListener("change",u),a.addEventListener("selectedlanguagechange",c),n.on("dispose",(function(){e.off(["loadstart","texttrackchange"],u),a.removeEventListener("change",u),a.removeEventListener("selectedlanguagechange",c)})),void 0===a.onchange&&n.on(["tap","click"],(function(){if("object"!=typeof s().Event)try{l=new(s().Event)("change")}catch(t){}l||(l=o().createEvent("Event")).initEvent("change",!0,!0),a.dispatchEvent(l)})),n.handleTracksChange(),n}p(e,t);var i=e.prototype;return i.handleClick=function(e){var i=this.track,n=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),n)for(var r=0;r<n.length;r++){var s=n[r];-1!==this.kinds.indexOf(s.kind)&&(s===i?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled"))}},i.handleTracksChange=function(t){var e="showing"===this.track.mode;e!==this.isSelected_&&this.selected(e)},i.handleSelectedLanguageChange=function(t){if("showing"===this.track.mode){var e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},i.dispose=function(){this.track=null,t.prototype.dispose.call(this)},e}(Ss);Ln.registerComponent("TextTrackMenuItem",Es);var Ds=function(t){function e(e,i){return i.track={player:e,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,t.call(this,e,i)||this}p(e,t);var i=e.prototype;return i.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n<r;n++){var s=e[n];if(this.options_.kinds.indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},i.handleSelectedLanguageChange=function(t){for(var e=this.player().textTracks(),i=!0,n=0,r=e.length;n<r;n++){var s=e[n];if(["captions","descriptions","subtitles"].indexOf(s.kind)>-1&&"showing"===s.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(Es);Ln.registerComponent("OffTextTrackMenuItem",Ds);var Cs=function(t){function e(e,i){return void 0===i&&(i={}),i.tracks=e.textTracks(),t.call(this,e,i)||this}return p(e,t),e.prototype.createItems=function(t,e){var i;void 0===t&&(t=[]),void 0===e&&(e=Es),this.label_&&(i=this.label_+" off"),t.push(new Ds(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var s=n[r];if(this.kinds_.indexOf(s.kind)>-1){var a=new e(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+s.kind+"-menu-item"),t.push(a)}}return t},e}(ws);Ln.registerComponent("TextTrackButton",Cs);var Ps=function(t){function e(e,i){var n,r=i.track,s=i.cue,a=e.currentTime();return i.selectable=!0,i.multiSelectable=!1,i.label=s.text,i.selected=s.startTime<=a&&a<s.endTime,(n=t.call(this,e,i)||this).track=r,n.cue=s,n}return p(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},e}(Ss);Ln.registerComponent("ChaptersTrackMenuItem",Ps);var As=function(t){function e(e,i,n){var r;return(r=t.call(this,e,i,n)||this).selectCurrentItem_=function(){r.items.forEach((function(t){t.selected(r.track_.activeCues[0]===t.cue)}))},r}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildWrapperCSSClass.call(this)},i.update=function(e){if(!e||!e.track||"chapters"===e.track.kind){var i=this.findChaptersTrack();i!==this.track_?(this.setTrack(i),t.prototype.update.call(this)):(!this.items||i&&i.cues&&i.cues.length!==this.items.length)&&t.prototype.update.call(this)}},i.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&&i.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},i.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var i=t[e];if(i.kind===this.kind_)return i}},i.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Dn(this.kind_))},i.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},i.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var i=0,n=e.length;i<n;i++){var r=e[i],s=new Ps(this.player_,{track:this.track_,cue:r});t.push(s)}return t},e}(Cs);As.prototype.kind_="chapters",As.prototype.controlText_="Chapters",Ln.registerComponent("ChaptersButton",As);var Ms=function(t){function e(e,i,n){var r;r=t.call(this,e,i,n)||this;var s=e.textTracks(),a=hn(h(r),r.handleTracksChange);return s.addEventListener("change",a),r.on("dispose",(function(){s.removeEventListener("change",a)})),r}p(e,t);var i=e.prototype;return i.handleTracksChange=function(t){for(var e=this.player().textTracks(),i=!1,n=0,r=e.length;n<r;n++){var s=e[n];if(s.kind!==this.kind_&&"showing"===s.mode){i=!0;break}}i?this.disable():this.enable()},i.buildCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Cs);Ms.prototype.kind_="descriptions",Ms.prototype.controlText_="Descriptions",Ln.registerComponent("DescriptionsButton",Ms);var Is=function(t){function e(e,i,n){return t.call(this,e,i,n)||this}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+t.prototype.buildWrapperCSSClass.call(this)},e}(Cs);Is.prototype.kind_="subtitles",Is.prototype.controlText_="Subtitles",Ln.registerComponent("SubtitlesButton",Is);var Ls=function(t){function e(e,i){var n;return i.track={player:e,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem",(n=t.call(this,e,i)||this).addClass("vjs-texttrack-settings"),n.controlText(", opens "+i.kind+" settings dialog"),n}return p(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").open()},e}(Es);Ln.registerComponent("CaptionSettingsMenuItem",Ls);var Os=function(t){function e(e,i,n){return t.call(this,e,i,n)||this}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-captions-button "+t.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Ls(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(Cs);Os.prototype.kind_="captions",Os.prototype.controlText_="Captions",Ln.registerComponent("CaptionsButton",Os);var Fs=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e.prototype.createEl=function(e,i,n){var r=t.prototype.createEl.call(this,e,i,n),s=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(s.appendChild(pi("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(pi("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},e}(Es);Ln.registerComponent("SubsCapsMenuItem",Fs);var Rs=function(t){function e(e,i){var n;return void 0===i&&(i={}),(n=t.call(this,e,i)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)>-1&&(n.label_="captions"),n.menuButton_.controlText(Dn(n.label_)),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+t.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new Ls(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e,Fs)},e}(Cs);Rs.prototype.kinds_=["captions","subtitles"],Rs.prototype.controlText_="Subtitles",Ln.registerComponent("SubsCapsButton",Rs);var Bs=function(t){function e(e,i){var n,r=i.track,s=e.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled,(n=t.call(this,e,i)||this).track=r,n.addClass("vjs-"+r.kind+"-menu-item");var a=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];n.handleTracksChange.apply(h(n),e)};return s.addEventListener("change",a),n.on("dispose",(function(){s.removeEventListener("change",a)})),n}p(e,t);var i=e.prototype;return i.createEl=function(e,i,n){var r=t.prototype.createEl.call(this,e,i,n),s=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(s.appendChild(pi("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(pi("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},i.handleClick=function(e){if(t.prototype.handleClick.call(this,e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var i=this.player_.audioTracks(),n=0;n<i.length;n++){var r=i[n];r!==this.track&&(r.enabled=r===this.track)}},i.handleTracksChange=function(t){this.selected(this.track.enabled)},e}(Ss);Ln.registerComponent("AudioTrackMenuItem",Bs);var Ns=function(t){function e(e,i){return void 0===i&&(i={}),i.tracks=e.audioTracks(),t.call(this,e,i)||this}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-audio-button "+t.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(t){void 0===t&&(t=[]),this.hideThreshold_=1;for(var e=this.player_.audioTracks(),i=0;i<e.length;i++){var n=e[i];t.push(new Bs(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return t},e}(ws);Ns.prototype.controlText_="Audio Track",Ln.registerComponent("AudioTrackButton",Ns);var Hs=function(t){function e(e,i){var n,r=i.rate,s=parseFloat(r,10);return i.label=r,i.selected=s===e.playbackRate(),i.selectable=!0,i.multiSelectable=!1,(n=t.call(this,e,i)||this).label=r,n.rate=s,n.on(e,"ratechange",(function(t){return n.update(t)})),n}p(e,t);var i=e.prototype;return i.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},i.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(Ss);Hs.prototype.contentElType="button",Ln.registerComponent("PlaybackRateMenuItem",Hs);var Vs=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).menuButton_.el_.setAttribute("aria-describedby",n.labelElId_),n.updateVisibility(),n.updateLabel(),n.on(e,"loadstart",(function(t){return n.updateVisibility(t)})),n.on(e,"ratechange",(function(t){return n.updateLabel(t)})),n.on(e,"playbackrateschange",(function(t){return n.handlePlaybackRateschange(t)})),n}p(e,t);var i=e.prototype;return i.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=pi("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e},i.dispose=function(){this.labelEl_=null,t.prototype.dispose.call(this)},i.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},i.buildWrapperCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildWrapperCSSClass.call(this)},i.createItems=function(){for(var t=this.playbackRates(),e=[],i=t.length-1;i>=0;i--)e.push(new Hs(this.player(),{rate:t[i]+"x"}));return e},i.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},i.handleClick=function(t){var e=this.player().playbackRate(),i=this.playbackRates(),n=(i.indexOf(e)+1)%i.length;this.player().playbackRate(i[n])},i.handlePlaybackRateschange=function(t){this.update()},i.playbackRates=function(){var t=this.player();return t.playbackRates&&t.playbackRates()||[]},i.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},i.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},i.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(Ts);Vs.prototype.controlText_="Playback Rate",Ln.registerComponent("PlaybackRateMenuButton",Vs);var js=function(t){function e(){return t.apply(this,arguments)||this}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},i.createEl=function(e,i,n){return void 0===e&&(e="div"),void 0===i&&(i={}),void 0===n&&(n={}),i.className||(i.className=this.buildCSSClass()),t.prototype.createEl.call(this,e,i,n)},e}(Ln);Ln.registerComponent("Spacer",js);var Us=function(t){function e(){return t.apply(this,arguments)||this}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},i.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},e}(js);Ln.registerComponent("CustomControlSpacer",Us);var zs=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},e}(Ln);zs.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in o()&&zs.prototype.options_.children.splice(zs.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Ln.registerComponent("ControlBar",zs);var qs=function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).on(e,"error",(function(t){return n.open(t)})),n}p(e,t);var i=e.prototype;return i.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},i.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(qn);qs.prototype.options_=l({},qn.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Ln.registerComponent("ErrorDisplay",qs);var Gs="vjs-text-track-settings",Ws=["#000","Black"],Xs=["#00F","Blue"],$s=["#0FF","Cyan"],Ys=["#0F0","Green"],Ks=["#F0F","Magenta"],Qs=["#F00","Red"],Zs=["#FFF","White"],Js=["#FF0","Yellow"],ta=["1","Opaque"],ea=["0.5","Semi-Transparent"],ia=["0","Transparent"],na={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Ws,Zs,Qs,Ys,Xs,Js,Ks,$s]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[ta,ea,ia]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Zs,Ws,Qs,Ys,Xs,Js,Ks,$s]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[ta,ea]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[ia,ea,ta]}};function ra(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}na.windowColor.options=na.backgroundColor.options;var sa=function(t){function e(e,i){var n;return i.temporary=!1,(n=t.call(this,e,i)||this).updateDisplay=n.updateDisplay.bind(h(n)),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=pi("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",(function(){n.saveSettings(),n.close()})),n.on(n.$(".vjs-default-button"),"click",(function(){n.setDefaults(),n.updateDisplay()})),Ie(na,(function(t){n.on(n.$(t.selector),"change",n.updateDisplay)})),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}p(e,t);var i=e.prototype;return i.dispose=function(){this.endDialog=null,t.prototype.dispose.call(this)},i.createElSelect_=function(t,e,i){var n=this;void 0===e&&(e=""),void 0===i&&(i="label");var r=na[t],s=r.id.replace("%s",this.id_),a=[e,s].join(" ").trim();return["<"+i+' id="'+s+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+a+'">'].concat(r.options.map((function(t){var e=s+"-"+t[1].replace(/\W+/g,"");return['<option id="'+e+'" value="'+t[0]+'" ','aria-labelledby="'+a+" "+e+'">',n.localize(t[1]),"</option>"].join("")}))).concat("</select>").join("")},i.createElFgColor_=function(){var t="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",t),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",t),"</span>","</fieldset>"].join("")},i.createElBgColor_=function(){var t="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",t),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",t),"</span>","</fieldset>"].join("")},i.createElWinColor_=function(){var t="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+t+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",t),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",t),"</span>","</fieldset>"].join("")},i.createElColors_=function(){return pi("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},i.createElFont_=function(){return pi("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},i.createElControls_=function(){var t=this.localize("restore all settings to the default values");return pi("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+t+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+t+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},i.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},i.label=function(){return this.localize("Caption Settings Dialog")},i.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},i.buildCSSClass=function(){return t.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},i.getValues=function(){var t,e,i,n=this;return e=function(t,e,i){var r,s,a=(r=n.$(e.selector),s=e.parser,ra(r.options[r.options.selectedIndex].value,s));return void 0!==a&&(t[i]=a),t},void 0===(i={})&&(i=0),Me(t=na).reduce((function(i,n){return e(i,t[n],n)}),i)},i.setValues=function(t){var e=this;Ie(na,(function(i,n){!function(t,e,i){if(e)for(var n=0;n<t.options.length;n++)if(ra(t.options[n].value,i)===e){t.selectedIndex=n;break}}(e.$(i.selector),t[n],i.parser)}))},i.setDefaults=function(){var t=this;Ie(na,(function(e){var i=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=i}))},i.restoreSettings=function(){var t;try{t=JSON.parse(s().localStorage.getItem(Gs))}catch(t){Ce.warn(t)}t&&this.setValues(t)},i.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?s().localStorage.setItem(Gs,JSON.stringify(t)):s().localStorage.removeItem(Gs)}catch(t){Ce.warn(t)}}},i.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},i.conditionalBlur_=function(){this.previouslyActiveEl_=null;var t=this.player_.controlBar;t&&t.subsCapsButton,t&&t.captionsButton},e}(qn);Ln.registerComponent("TextTrackSettings",sa);var aa=function(t){function e(e,i){var n,r=i.ResizeObserver||s().ResizeObserver;null===i.ResizeObserver&&(r=!1);var a=Cn({createEl:!r,reportTouchActivity:!1},i);return(n=t.call(this,e,a)||this).ResizeObserver=i.ResizeObserver||s().ResizeObserver,n.loadListener_=null,n.resizeObserver_=null,n.debouncedHandler_=function(t,e,i,n){var r;void 0===n&&(n=s());var a=function(){var e=this,i=arguments,s=function(){r=null,s=null,t.apply(e,i)};n.clearTimeout(r),r=n.setTimeout(s,100)};return a.cancel=function(){n.clearTimeout(r),r=null},a}((function(){n.resizeHandler()}),0,0,h(n)),r?(n.resizeObserver_=new n.ResizeObserver(n.debouncedHandler_),n.resizeObserver_.observe(e.el())):(n.loadListener_=function(){if(n.el_&&n.el_.contentWindow){var t=n.debouncedHandler_,e=n.unloadListener_=function(){rn(this,"resize",t),rn(this,"unload",e),e=null};nn(n.el_.contentWindow,"unload",e),nn(n.el_.contentWindow,"resize",t)}},n.one("load",n.loadListener_)),n}p(e,t);var i=e.prototype;return i.createEl=function(){return t.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},i.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},i.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,t.prototype.dispose.call(this)},e}(Ln);Ln.registerComponent("ResizeManager",aa);var oa={trackingThreshold:20,liveTolerance:15},la=function(t){function e(e,i){var n,r=Cn(oa,i,{createEl:!1});return(n=t.call(this,e,r)||this).handleVisibilityChange_=function(t){return n.handleVisibilityChange(t)},n.trackLiveHandler_=function(){return n.trackLive_()},n.handlePlay_=function(t){return n.handlePlay(t)},n.handleFirstTimeupdate_=function(t){return n.handleFirstTimeupdate(t)},n.handleSeeked_=function(t){return n.handleSeeked(t)},n.seekToLiveEdge_=function(t){return n.seekToLiveEdge(t)},n.reset_(),n.on(n.player_,"durationchange",(function(t){return n.handleDurationchange(t)})),n.on(n.player_,"canplay",(function(){return n.toggleTracking()})),Ze&&"hidden"in o()&&"visibilityState"in o()&&n.on(o(),"visibilitychange",n.handleVisibilityChange_),n}p(e,t);var i=e.prototype;return i.handleVisibilityChange=function(){this.player_.duration()===1/0&&(o().hidden?this.stopTracking():this.startTracking())},i.trackLive_=function(){var t=this.player_.seekable();if(t&&t.length){var e=Number(s().performance.now().toFixed(4)),i=-1===this.lastTime_?0:(e-this.lastTime_)/1e3;this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+i;var n=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-r)>this.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},i.handleDurationchange=function(){this.toggleTracking()},i.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},i.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,cn),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},i.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},i.handleSeeked=function(){var t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2,this.nextSeekedFromUser_=!1,this.trackLive_()},i.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},i.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},i.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},i.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},i.seekableEnd=function(){for(var t=this.player_.seekable(),e=[],i=t?t.length:0;i--;)e.push(t.end(i));return e.length?e.sort()[e.length-1]:1/0},i.seekableStart=function(){for(var t=this.player_.seekable(),e=[],i=t?t.length:0;i--;)e.push(t.start(i));return e.length?e.sort()[0]:0},i.liveWindow=function(){var t=this.liveCurrentTime();return t===1/0?0:t-this.seekableStart()},i.isLive=function(){return this.isTracking()},i.atLiveEdge=function(){return!this.behindLiveEdge()},i.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},i.pastSeekEnd=function(){var t=this.seekableEnd();return-1!==this.lastSeekEnd_&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_},i.behindLiveEdge=function(){return this.behindLiveEdge_},i.isTracking=function(){return"number"==typeof this.trackingInterval_},i.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},i.dispose=function(){this.off(o(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),t.prototype.dispose.call(this)},e}(Ln);Ln.registerComponent("LiveTracker",la);var ua,ca=function(t){var e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;var i=t.$$("source"),n=[],r="";if(!i.length)return!1;for(var s=0;s<i.length;s++){var a=i[s].src;a&&-1===n.indexOf(a)&&n.push(a)}return!!n.length&&(1===n.length&&(r=n[0]),t.triggerSourceset(r),!0)},ha=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(t){var e=o().createElement(this.nodeName.toLowerCase());e.innerHTML=t;for(var i=o().createDocumentFragment();e.childNodes.length;)i.appendChild(e.childNodes[0]);return this.innerText="",s().Element.prototype.appendChild.call(this,i),this.innerHTML}}),da=function(t,e){for(var i={},n=0;n<t.length&&!((i=Object.getOwnPropertyDescriptor(t[n],e))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i},pa=function(t){var e=t.el();if(!e.resetSourceWatch_){var i={},n=function(t){return da([t.el(),s().HTMLMediaElement.prototype,s().Element.prototype,ha],"innerHTML")}(t),r=function(i){return function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];var a=i.apply(e,r);return ca(t),a}};["append","appendChild","insertAdjacentHTML"].forEach((function(t){e[t]&&(i[t]=e[t],e[t]=r(i[t]))})),Object.defineProperty(e,"innerHTML",Cn(n,{set:r(n.set)})),e.resetSourceWatch_=function(){e.resetSourceWatch_=null,Object.keys(i).forEach((function(t){e[t]=i[t]})),Object.defineProperty(e,"innerHTML",n)},t.one("sourceset",e.resetSourceWatch_)}},fa=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?ar(s().Element.prototype.getAttribute.call(this,"src")):""},set:function(t){return s().Element.prototype.setAttribute.call(this,"src",t),t}}),ma=function(t,e,i,n){void 0===n&&(n=!0);var r=function(i){return Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0})},s={configurable:!0,enumerable:!0,get:function(){var t=i();return r(t),t}};return n&&(s.set=r),Object.defineProperty(t,e,s)},ga=function(t){function e(e,i){var n;n=t.call(this,e,i)||this;var r=e.source,s=!1;if(n.featuresVideoFrameCallback=n.featuresVideoFrameCallback&&"VIDEO"===n.el_.tagName,r&&(n.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?n.setSource(r):n.handleLateInit_(n.el_),e.enableSourceset&&n.setupSourcesetHandling_(),n.isScrubbing_=!1,n.el_.hasChildNodes()){for(var a=n.el_.childNodes,o=a.length,l=[];o--;){var u=a[o];"track"===u.nodeName.toLowerCase()&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().addTrackElement_(u),n.remoteTextTracks().addTrack(u.track),n.textTracks().addTrack(u.track),s||n.el_.hasAttribute("crossorigin")||!lr(u.src)||(s=!0)):l.push(u))}for(var c=0;c<l.length;c++)n.el_.removeChild(l[c])}return n.proxyNativeTracks_(),n.featuresNativeTextTracks&&s&&Ce.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),n.restoreMetadataTracksInIOSNativePlayer_(),(ei||ni||Xe)&&!0===e.nativeControlsForTouch&&n.setControls(!0),n.proxyWebkitFullscreen_(),n.triggerReady(),n}p(e,t);var i=e.prototype;return i.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),e.disposeMediaElement(this.el_),this.options_=null,t.prototype.dispose.call(this)},i.setupSourcesetHandling_=function(){!function(t){if(t.featuresSourceset){var e=t.el();if(!e.resetSourceset_){var i=function(t){return da([t.el(),s().HTMLMediaElement.prototype,fa],"src")}(t),n=e.setAttribute,r=e.load;Object.defineProperty(e,"src",Cn(i,{set:function(n){var r=i.set.call(e,n);return t.triggerSourceset(e.src),r}})),e.setAttribute=function(i,r){var s=n.call(e,i,r);return/src/i.test(i)&&t.triggerSourceset(e.src),s},e.load=function(){var i=r.call(e);return ca(t)||(t.triggerSourceset(""),pa(t)),i},e.currentSrc?t.triggerSourceset(e.currentSrc):ca(t)||pa(t),e.resetSourceset_=function(){e.resetSourceset_=null,e.load=r,e.setAttribute=n,Object.defineProperty(e,"src",i),e.resetSourceWatch_&&e.resetSourceWatch_()}}}}(this)},i.restoreMetadataTracksInIOSNativePlayer_=function(){var t,e=this.textTracks(),i=function(){t=[];for(var i=0;i<e.length;i++){var n=e[i];"metadata"===n.kind&&t.push({track:n,storedMode:n.mode})}};i(),e.addEventListener("change",i),this.on("dispose",(function(){return e.removeEventListener("change",i)}));var n=function i(){for(var n=0;n<t.length;n++){var r=t[n];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",i)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",i),e.removeEventListener("change",n),e.addEventListener("change",n)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",n)}))},i.overrideNative_=function(t,e){var i=this;if(e===this["featuresNative"+t+"Tracks"]){var n=t.toLowerCase();this[n+"TracksListeners_"]&&Object.keys(this[n+"TracksListeners_"]).forEach((function(t){i.el()[n+"Tracks"].removeEventListener(t,i[n+"TracksListeners_"][t])})),this["featuresNative"+t+"Tracks"]=!e,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n)}},i.overrideNativeAudioTracks=function(t){this.overrideNative_("Audio",t)},i.overrideNativeVideoTracks=function(t){this.overrideNative_("Video",t)},i.proxyNativeTracksForType_=function(t){var e=this,i=gr[t],n=this.el()[i.getterName],r=this[i.getterName]();if(this["featuresNative"+i.capitalName+"Tracks"]&&n&&n.addEventListener){var s={change:function(i){var n={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(n),"text"===t&&e[yr.remoteText.getterName]().trigger(n)},addtrack:function(t){r.addTrack(t.track)},removetrack:function(t){r.removeTrack(t.track)}},a=function(){for(var t=[],e=0;e<r.length;e++){for(var i=!1,s=0;s<n.length;s++)if(n[s]===r[e]){i=!0;break}i||t.push(r[e])}for(;t.length;)r.removeTrack(t.shift())};this[i.getterName+"Listeners_"]=s,Object.keys(s).forEach((function(t){var i=s[t];n.addEventListener(t,i),e.on("dispose",(function(e){return n.removeEventListener(t,i)}))})),this.on("loadstart",a),this.on("dispose",(function(t){return e.off("loadstart",a)}))}},i.proxyNativeTracks_=function(){var t=this;gr.names.forEach((function(e){t.proxyNativeTracksForType_(e)}))},i.createEl=function(){var t=this.options_.tag;if(!t||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(t){var i=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(i,t),e.disposeMediaElement(t),t=i}else{t=o().createElement("video");var n=Cn({},this.options_.tag&&xi(this.options_.tag));ei&&!0===this.options_.nativeControlsForTouch||delete n.controls,bi(t,Le(n,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}void 0!==this.options_.preload&&wi(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],s=0;s<r.length;s++){var a=r[s],l=this.options_[a];void 0!==l&&(l?wi(t,a,a):ki(t,a),t[a]=l)}return t},i.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,i=function(){e=!0};this.on("loadstart",i);var n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready((function(){this.off("loadstart",i),this.off("loadedmetadata",n),e||this.trigger("loadstart")}))}var r=["loadstart"];r.push("loadedmetadata"),t.readyState>=2&&r.push("loadeddata"),t.readyState>=3&&r.push("canplay"),t.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(t){this.trigger(t)}),this)}))}},i.setScrubbing=function(t){this.isScrubbing_=t},i.scrubbing=function(){return this.isScrubbing_},i.setCurrentTime=function(t){try{this.isScrubbing_&&this.el_.fastSeek&&si?this.el_.fastSeek(t):this.el_.currentTime=t}catch(t){Ce(t,"Video is not ready. (Video.js)")}},i.duration=function(){var t=this;return this.el_.duration===1/0&&Ge&&Ke&&0===this.el_.currentTime?(this.on("timeupdate",(function e(){t.el_.currentTime>0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))})),NaN):this.el_.duration||NaN},i.width=function(){return this.el_.offsetWidth},i.height=function(){return this.el_.offsetHeight},i.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",(function(){t.off("webkitbeginfullscreen",i),t.off("webkitendfullscreen",e)}))}},i.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=s().navigator&&s().navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},i.enterFullScreen=function(){var t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)jn(this.el_.play()),this.setTimeout((function(){t.pause();try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{t.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},i.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},i.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},i.requestVideoFrameCallback=function(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):t.prototype.requestVideoFrameCallback.call(this,e)},i.cancelVideoFrameCallback=function(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):t.prototype.cancelVideoFrameCallback.call(this,e)},i.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},i.reset=function(){e.resetMediaElement(this.el_)},i.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},i.setControls=function(t){this.el_.controls=!!t},i.addTextTrack=function(e,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,i,n):t.prototype.addTextTrack.call(this,e,i,n)},i.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var i=o().createElement("track");return e.kind&&(i.kind=e.kind),e.label&&(i.label=e.label),(e.language||e.srclang)&&(i.srclang=e.language||e.srclang),e.default&&(i.default=e.default),e.id&&(i.id=e.id),e.src&&(i.src=e.src),i},i.addRemoteTextTrack=function(e,i){var n=t.prototype.addRemoteTextTrack.call(this,e,i);return this.featuresNativeTextTracks&&this.el().appendChild(n),n},i.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)e!==i[n]&&e!==i[n].track||this.el().removeChild(i[n])},i.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var t={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),s().performance&&"function"==typeof s().performance.now?t.creationTime=s().performance.now():s().performance&&s().performance.timing&&"number"==typeof s().performance.timing.navigationStart&&(t.creationTime=s().Date.now()-s().performance.timing.navigationStart),t},e}(_r);ma(ga,"TEST_VID",(function(){if(ui()){var t=o().createElement("video"),e=o().createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t}})),ga.isSupported=function(){try{ga.TEST_VID.volume=.5}catch(t){return!1}return!(!ga.TEST_VID||!ga.TEST_VID.canPlayType)},ga.canPlayType=function(t){return ga.TEST_VID.canPlayType(t)},ga.canPlaySource=function(t,e){return ga.canPlayType(t.type)},ga.canControlVolume=function(){try{var t=ga.TEST_VID.volume;ga.TEST_VID.volume=t/2+.1;var e=t!==ga.TEST_VID.volume;return e&&ri?(s().setTimeout((function(){ga&&ga.prototype&&(ga.prototype.featuresVolumeControl=t!==ga.TEST_VID.volume)})),!1):e}catch(t){return!1}},ga.canMuteVolume=function(){try{var t=ga.TEST_VID.muted;return ga.TEST_VID.muted=!t,ga.TEST_VID.muted?wi(ga.TEST_VID,"muted","muted"):ki(ga.TEST_VID,"muted"),t!==ga.TEST_VID.muted}catch(t){return!1}},ga.canControlPlaybackRate=function(){if(Ge&&Ke&&Qe<58)return!1;try{var t=ga.TEST_VID.playbackRate;return ga.TEST_VID.playbackRate=t/2+.1,t!==ga.TEST_VID.playbackRate}catch(t){return!1}},ga.canOverrideAttributes=function(){try{var t=function(){};Object.defineProperty(o().createElement("video"),"src",{get:t,set:t}),Object.defineProperty(o().createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(o().createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(o().createElement("audio"),"innerHTML",{get:t,set:t})}catch(t){return!1}return!0},ga.supportsNativeTextTracks=function(){return si||ri&&Ke},ga.supportsNativeVideoTracks=function(){return!(!ga.TEST_VID||!ga.TEST_VID.videoTracks)},ga.supportsNativeAudioTracks=function(){return!(!ga.TEST_VID||!ga.TEST_VID.audioTracks)},ga.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(t){var e=t[0],i=t[1];ma(ga.prototype,e,(function(){return ga[i]()}),!0)})),ga.prototype.featuresVolumeControl=ga.canControlVolume(),ga.prototype.movingMediaElementInDOM=!ri,ga.prototype.featuresFullscreenResize=!0,ga.prototype.featuresProgressEvents=!0,ga.prototype.featuresTimeupdateEvents=!0,ga.prototype.featuresVideoFrameCallback=!(!ga.TEST_VID||!ga.TEST_VID.requestVideoFrameCallback),ga.patchCanPlayType=function(){We>=4&&!$e&&!Ke&&(ua=ga.TEST_VID&&ga.TEST_VID.constructor.prototype.canPlayType,ga.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(t)?"maybe":ua.call(this,t)})},ga.unpatchCanPlayType=function(){var t=ga.TEST_VID.constructor.prototype.canPlayType;return ua&&(ga.TEST_VID.constructor.prototype.canPlayType=ua),t},ga.patchCanPlayType(),ga.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},ga.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),i=e.length;i--;)t.removeChild(e[i]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(t){ga.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(t){ga.prototype["set"+Dn(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(t){ga.prototype[t]=function(){return this.el_[t]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(t){ga.prototype["set"+Dn(t)]=function(e){this.el_[t]=e}})),["pause","load","play"].forEach((function(t){ga.prototype[t]=function(){return this.el_[t]()}})),_r.withSourceHandlers(ga),ga.nativeSourceHandler={},ga.nativeSourceHandler.canPlayType=function(t){try{return ga.TEST_VID.canPlayType(t)}catch(t){return""}},ga.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return ga.nativeSourceHandler.canPlayType(t.type);if(t.src){var i=or(t.src);return ga.nativeSourceHandler.canPlayType("video/"+i)}return""},ga.nativeSourceHandler.handleSource=function(t,e,i){e.setSrc(t.src)},ga.nativeSourceHandler.dispose=function(){},ga.registerSourceHandler(ga.nativeSourceHandler),_r.registerTech("Html5",ga);var ya=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],va={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},_a=["tiny","xsmall","small","medium","large","xlarge","huge"],ba={};_a.forEach((function(t){var e="x"===t.charAt(0)?"x-"+t.substring(1):t;ba[t]="vjs-layout-"+e}));var xa={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Ta=function(t){function e(i,n,r){var s;if(i.id=i.id||n.id||"vjs_video_"+$i(),(n=Le(e.getTagSettings(i),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language)if("function"==typeof i.closest){var a=i.closest("[lang]");a&&a.getAttribute&&(n.language=a.getAttribute("lang"))}else for(var l=i;l&&1===l.nodeType;){if(xi(l).hasOwnProperty("lang")){n.language=l.getAttribute("lang");break}l=l.parentNode}if((s=t.call(this,null,n,r)||this).boundDocumentFullscreenChange_=function(t){return s.documentFullscreenChange_(t)},s.boundFullWindowOnEscKey_=function(t){return s.fullWindowOnEscKey(t)},s.boundUpdateStyleEl_=function(t){return s.updateStyleEl_(t)},s.boundApplyInitTime_=function(t){return s.applyInitTime_(t)},s.boundUpdateCurrentBreakpoint_=function(t){return s.updateCurrentBreakpoint_(t)},s.boundHandleTechClick_=function(t){return s.handleTechClick_(t)},s.boundHandleTechDoubleClick_=function(t){return s.handleTechDoubleClick_(t)},s.boundHandleTechTouchStart_=function(t){return s.handleTechTouchStart_(t)},s.boundHandleTechTouchMove_=function(t){return s.handleTechTouchMove_(t)},s.boundHandleTechTouchEnd_=function(t){return s.handleTechTouchEnd_(t)},s.boundHandleTechTap_=function(t){return s.handleTechTap_(t)},s.isFullscreen_=!1,s.log=Pe(s.id_),s.fsApi_=Te,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,s.audioOnlyMode_=!1,s.audioPosterMode_=!1,s.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!s.options_||!s.options_.techOrder||!s.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(s.tag=i,s.tagAttributes=i&&xi(i),s.language(s.options_.language),n.languages){var u={};Object.getOwnPropertyNames(n.languages).forEach((function(t){u[t.toLowerCase()]=n.languages[t]})),s.languages_=u}else s.languages_=e.prototype.options_.languages;s.resetCache_(),s.poster_=n.poster||"",s.controls_=!!n.controls,i.controls=!1,i.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],i.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach((function(t){if("function"!=typeof s[t])throw new Error('plugin "'+t+'" does not exist')})),s.scrubbing_=!1,s.el_=s.createEl(),wn(h(s),{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(nn(o(),s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var c=Cn(s.options_);n.plugins&&Object.keys(n.plugins).forEach((function(t){s[t](n.plugins[t])})),n.debug&&s.debug(!0),s.options_.playerOptions=c,s.middleware_=[],s.playbackRates(n.playbackRates),s.initChildren(),s.isAudio("audio"===i.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),s.flexNotSupported_()&&s.addClass("vjs-no-flex"),ei&&s.addClass("vjs-touch-enabled"),ri||s.addClass("vjs-workinghover"),e.players[s.id_]=h(s);var d=ve.split(".")[0];return s.addClass("vjs-v"+d),s.userActive(!0),s.reportUserActivity(),s.one("play",(function(t){return s.listenForUserActivity_(t)})),s.on("stageclick",(function(t){return s.handleStageClick_(t)})),s.on("keydown",(function(t){return s.handleKeyDown(t)})),s.on("languagechange",(function(t){return s.handleLanguagechange(t)})),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s.on("ready",(function(){s.audioPosterMode(s.options_.audioPosterMode),s.audioOnlyMode(s.options_.audioOnlyMode)})),s}p(e,t);var i=e.prototype;return i.dispose=function(){var i=this;this.trigger("dispose"),this.off("dispose"),rn(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),rn(o(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),xr[this.id()]=null,vr.names.forEach((function(t){var e=vr[t],n=i[e.getterName]();n&&n.off&&n.off()})),t.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},i.createEl=function(){var e,i=this.tag,n=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?e=this.el_=i.parentNode:r||(e=this.el_=t.prototype.createEl.call(this,"div"));var a=xi(i);if(r){for(e=this.el_=i,i=this.tag=o().createElement("video");e.children.length;)i.appendChild(e.firstChild);gi(e,"video-js")||yi(e,"video-js"),e.appendChild(i),n=this.playerElIngest_=e,Object.keys(e).forEach((function(t){try{i[t]=e[t]}catch(t){}}))}if(i.setAttribute("tabindex","-1"),a.tabindex="-1",(Ze||Ke&&ti)&&(i.setAttribute("role","application"),a.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach((function(t){r&&"class"===t||e.setAttribute(t,a[t]),r&&i.setAttribute(t,a[t])})),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",i.player=e.player=this,this.addClass("vjs-paused"),!0!==s().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Gi("vjs-styles-dimensions");var l=Bi(".vjs-styles-defaults"),u=Bi("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var c=i.getElementsByTagName("a"),h=0;h<c.length;h++){var d=c.item(h);yi(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return i.initNetworkState_=i.networkState,i.parentNode&&!n&&i.parentNode.insertBefore(e,i),mi(i,e),this.children_.unshift(i),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e},i.crossOrigin=function(t){if(!t)return this.techGet_("crossOrigin");"anonymous"===t||"use-credentials"===t?this.techCall_("setCrossOrigin",t):Ce.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+t+'"')},i.width=function(t){return this.dimension("width",t)},i.height=function(t){return this.dimension("height",t)},i.dimension=function(t,e){var i=t+"_";if(void 0===e)return this[i]||0;if(""===e||"auto"===e)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(e);isNaN(n)?Ce.error('Improper value "'+e+'" supplied for for '+t):(this[i]=n,this.updateStyleEl_())},i.fluid=function(t){var e,i,n=this;if(void 0===t)return!!this.fluid_;this.fluid_=!!t,mn(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),i=function(){n.on(["playerreset","resize"],n.boundUpdateStyleEl_)},mn(e=this)?i():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(i))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},i.fill=function(t){if(void 0===t)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},i.aspectRatio=function(t){if(void 0===t)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()},i.updateStyleEl_=function(){if(!0!==s().VIDEOJS_NO_DYNAMIC_STYLE){var t,e,i,n=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=n[1]/n[0];t=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,e=void 0!==this.height_?this.height_:t*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Wi(this.styleEl_,"\n ."+i+" {\n width: "+t+"px;\n height: "+e+"px;\n }\n\n ."+i+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*r+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,o="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(a>=0&&(l.width=a),o>=0&&(l.height=o))}},i.loadTech_=function(t,e){var i=this;this.tech_&&this.unloadTech_();var n=Dn(t),r=t.charAt(0).toLowerCase()+t.slice(1);"Html5"!==n&&this.tag&&(_r.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);var a={source:e,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};vr.names.forEach((function(t){var e=vr[t];a[e.getterName]=i[e.privateName]})),Le(a,this.options_[n]),Le(a,this.options_[r]),Le(a,this.options_[t.toLowerCase()]),this.tag&&(a.tag=this.tag),e&&e.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);var o,l,u=_r.getTech(t);if(!u)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new u(a),this.tech_.ready(hn(this,this.handleTechReady_),!0),o=this.textTracksJson_||[],l=this.tech_,o.forEach((function(t){var e=l.addRemoteTextTrack(t).track;!t.src&&t.cues&&t.cues.forEach((function(t){return e.addCue(t)}))})),l.textTracks(),ya.forEach((function(t){i.on(i.tech_,t,(function(e){return i["handleTech"+Dn(t)+"_"](e)}))})),Object.keys(va).forEach((function(t){i.on(i.tech_,t,(function(e){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+va[t]+"_"].bind(i),event:e}):i["handleTech"+va[t]+"_"](e)}))})),this.on(this.tech_,"loadstart",(function(t){return i.handleTechLoadStart_(t)})),this.on(this.tech_,"sourceset",(function(t){return i.handleTechSourceset_(t)})),this.on(this.tech_,"waiting",(function(t){return i.handleTechWaiting_(t)})),this.on(this.tech_,"ended",(function(t){return i.handleTechEnded_(t)})),this.on(this.tech_,"seeking",(function(t){return i.handleTechSeeking_(t)})),this.on(this.tech_,"play",(function(t){return i.handleTechPlay_(t)})),this.on(this.tech_,"firstplay",(function(t){return i.handleTechFirstPlay_(t)})),this.on(this.tech_,"pause",(function(t){return i.handleTechPause_(t)})),this.on(this.tech_,"durationchange",(function(t){return i.handleTechDurationChange_(t)})),this.on(this.tech_,"fullscreenchange",(function(t,e){return i.handleTechFullscreenChange_(t,e)})),this.on(this.tech_,"fullscreenerror",(function(t,e){return i.handleTechFullscreenError_(t,e)})),this.on(this.tech_,"enterpictureinpicture",(function(t){return i.handleTechEnterPictureInPicture_(t)})),this.on(this.tech_,"leavepictureinpicture",(function(t){return i.handleTechLeavePictureInPicture_(t)})),this.on(this.tech_,"error",(function(t){return i.handleTechError_(t)})),this.on(this.tech_,"posterchange",(function(t){return i.handleTechPosterChange_(t)})),this.on(this.tech_,"textdata",(function(t){return i.handleTechTextData_(t)})),this.on(this.tech_,"ratechange",(function(t){return i.handleTechRateChange_(t)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||mi(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},i.unloadTech_=function(){var t,e,i,n=this;vr.names.forEach((function(t){var e=vr[t];n[e.privateName]=n[e.getterName]()})),this.textTracksJson_=(t=this.tech_,e=t.$$("track"),i=Array.prototype.map.call(e,(function(t){return t.track})),Array.prototype.map.call(e,(function(t){var e=Un(t.track);return t.src&&(e.src=t.src),e})).concat(Array.prototype.filter.call(t.textTracks(),(function(t){return-1===i.indexOf(t)})).map(Un))),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},i.tech=function(t){return void 0===t&&Ce.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},i.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},i.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},i.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},i.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},i.manualAutoplay_=function(t){var e=this;if(this.tech_&&"string"==typeof t){var i,n=function(){var t=e.muted();e.muted(!0);var i=function(){e.muted(t)};e.playTerminatedQueue_.push(i);var n=e.play();if(Vn(n))return n.catch((function(t){throw i(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(t||""))}))};if("any"!==t||this.muted()?i="muted"!==t||this.muted()?this.play():n():Vn(i=this.play())&&(i=i.catch(n)),Vn(i))return i.then((function(){e.trigger({type:"autoplay-success",autoplay:t})})).catch((function(){e.trigger({type:"autoplay-failure",autoplay:t})}))}},i.updateSourceCaches_=function(t){void 0===t&&(t="");var e=t,i="";"string"!=typeof e&&(e=t.src,i=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],e&&!i&&(i=function(t,e){if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;var i=t.cache_.sources.filter((function(t){return t.src===e}));if(i.length)return i[0].type;for(var n=t.$$("source"),r=0;r<n.length;r++){var s=n[r];if(s.type&&s.src&&s.src===e)return s.type}return Mr(e)}(this,e)),this.cache_.source=Cn({},t,{src:e,type:i});for(var n=this.cache_.sources.filter((function(t){return t.src&&t.src===e})),r=[],s=this.$$("source"),a=[],o=0;o<s.length;o++){var l=xi(s[o]);r.push(l),l.src&&l.src===e&&a.push(l.src)}a.length&&!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=e},i.handleTechSourceset_=function(t){var e=this;if(!this.changingSrc_){var i=function(t){return e.updateSourceCaches_(t)},n=this.currentSource().src,r=t.src;n&&!/^blob:/.test(n)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==n)&&(i=function(){}),i(r),t.src||this.tech_.any(["sourceset","loadstart"],(function(t){if("sourceset"!==t.type){var i=e.techGet("currentSrc");e.lastSource_.tech=i,e.updateSourceCaches_(i)}}))}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})},i.hasStarted=function(t){if(void 0===t)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},i.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},i.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(t){return t.callback(t.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},i.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var e=this.currentTime();this.on("timeupdate",(function i(){e!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",i))}))},i.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},i.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},i.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},i.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},i.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},i.handleTechFirstPlay_=function(){this.options_.starttime&&(Ce.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},i.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},i.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},i.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},i.handleTechClick_=function(t){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,t):this.paused()?jn(this.play()):this.pause()))},i.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(e){return e.contains(t.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},i.handleTechTap_=function(){this.userActive(!this.userActive())},i.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},i.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},i.handleTechTouchEnd_=function(t){t.cancelable&&t.preventDefault()},i.handleStageClick_=function(){this.reportUserActivity()},i.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},i.documentFullscreenChange_=function(t){var e=t.target.player;if(!e||e===this){var i=this.el(),n=o()[this.fsApi_.fullscreenElement]===i;!n&&i.matches?n=i.matches(":"+this.fsApi_.fullscreen):!n&&i.msMatchesSelector&&(n=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}},i.handleTechFullscreenChange_=function(t,e){var i=this;e&&(e.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){i.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(e.isFullscreen))},i.handleTechFullscreenError_=function(t,e){this.trigger("fullscreenerror",e)},i.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},i.handleTechEnterPictureInPicture_=function(t){this.isInPictureInPicture(!0)},i.handleTechLeavePictureInPicture_=function(t){this.isInPictureInPicture(!1)},i.handleTechError_=function(){var t=this.tech_.error();this.error(t)},i.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},i.getCache=function(){return this.cache_},i.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},i.techCall_=function(t,e){this.ready((function(){if(t in Er)return function(t,e,i,n){return e[i](t.reduce(Cr(i),n))}(this.middleware_,this.tech_,t,e);if(t in Dr)return kr(this.middleware_,this.tech_,t,e);try{this.tech_&&this.tech_[t](e)}catch(t){throw Ce(t),t}}),!0)},i.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in Sr)return function(t,e,i){return t.reduceRight(Cr(i),e[i]())}(this.middleware_,this.tech_,t);if(t in Dr)return kr(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw Ce("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw Ce("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw Ce(e),e}}},i.play=function(){var t=this,e=this.options_.Promise||s().Promise;return e?new e((function(e){t.play_(e)})):this.play_()},i.play_=function(t){var e=this;void 0===t&&(t=jn),this.playCallbacks_.push(t);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(i||!si&&!ri||this.load());var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)},i.runPlayTerminatedQueue_=function(){var t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach((function(t){t()}))},i.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach((function(e){e(t)}))},i.pause=function(){this.techCall_("pause")},i.paused=function(){return!1!==this.techGet_("paused")},i.played=function(){return this.techGet_("played")||Rn(0,0)},i.scrubbing=function(t){if(void 0===t)return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},i.currentTime=function(t){return void 0!==t?(t<0&&(t=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",t),void(this.cache_.initTime=0)):(this.cache_.initTime=t,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},i.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},i.duration=function(t){if(void 0===t)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(t=parseFloat(t))<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))},i.remainingTime=function(){return this.duration()-this.currentTime()},i.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},i.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=Rn(0,0)),t},i.bufferedPercent=function(){return Bn(this.buffered(),this.duration())},i.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),i=t.end(t.length-1);return i>e&&(i=e),i},i.volume=function(t){var e;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),void(e>0&&this.lastVolume_(e))):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},i.muted=function(t){if(void 0===t)return this.techGet_("muted")||!1;this.techCall_("setMuted",t)},i.defaultMuted=function(t){return void 0!==t?this.techCall_("setDefaultMuted",t):this.techGet_("defaultMuted")||!1},i.lastVolume_=function(t){if(void 0===t||0===t)return this.cache_.lastVolume;this.cache_.lastVolume=t},i.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},i.isFullscreen=function(t){if(void 0!==t){var e=this.isFullscreen_;return this.isFullscreen_=Boolean(t),this.isFullscreen_!==e&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},i.requestFullscreen=function(t){var e=this.options_.Promise||s().Promise;if(e){var i=this;return new e((function(e,n){function r(){i.off("fullscreenerror",a),i.off("fullscreenchange",s)}function s(){r(),e()}function a(t,e){r(),n(e)}i.one("fullscreenchange",s),i.one("fullscreenerror",a);var o=i.requestFullscreenHelper_(t);o&&(o.then(r,r),o.then(e,n))}))}return this.requestFullscreenHelper_()},i.requestFullscreenHelper_=function(t){var e,i=this;if(this.fsApi_.prefixed||(e=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==t&&(e=t)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](e);return n&&n.then((function(){return i.isFullscreen(!0)}),(function(){return i.isFullscreen(!1)})),n}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},i.exitFullscreen=function(){var t=this.options_.Promise||s().Promise;if(t){var e=this;return new t((function(t,i){function n(){e.off("fullscreenerror",s),e.off("fullscreenchange",r)}function r(){n(),t()}function s(t,e){n(),i(e)}e.one("fullscreenchange",r),e.one("fullscreenerror",s);var a=e.exitFullscreenHelper_();a&&(a.then(n,n),a.then(t,i))}))}return this.exitFullscreenHelper_()},i.exitFullscreenHelper_=function(){var t=this;if(this.fsApi_.requestFullscreen){var e=o()[this.fsApi_.exitFullscreen]();return e&&jn(e.then((function(){return t.isFullscreen(!1)}))),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},i.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o().documentElement.style.overflow,nn(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow="hidden",yi(o().body,"vjs-full-window"),this.trigger("enterFullWindow")},i.fullWindowOnEscKey=function(t){c().isEventKey(t,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},i.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,rn(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow=this.docOrigOverflow,vi(o().body,"vjs-full-window"),this.trigger("exitFullWindow")},i.disablePictureInPicture=function(t){if(void 0===t)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")},i.isInPictureInPicture=function(t){return void 0!==t?(this.isInPictureInPicture_=!!t,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},i.requestPictureInPicture=function(){if("pictureInPictureEnabled"in o()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},i.exitPictureInPicture=function(){if("pictureInPictureEnabled"in o())return o().exitPictureInPicture()},i.handleKeyDown=function(t){var e,i,n=this.options_.userActions;n&&n.hotkeys&&(e=this.el_.ownerDocument.activeElement,i=e.tagName.toLowerCase(),e.isContentEditable||("input"===i?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(i))||("function"==typeof n.hotkeys?n.hotkeys.call(this,t):this.handleHotkeys(t)))},i.handleHotkeys=function(t){var e=this.options_.userActions?this.options_.userActions.hotkeys:{},i=e.fullscreenKey,n=void 0===i?function(t){return c().isEventKey(t,"f")}:i,r=e.muteKey,s=void 0===r?function(t){return c().isEventKey(t,"m")}:r,a=e.playPauseKey,l=void 0===a?function(t){return c().isEventKey(t,"k")||c().isEventKey(t,"Space")}:a;if(n.call(this,t)){t.preventDefault(),t.stopPropagation();var u=Ln.getComponent("FullscreenToggle");!1!==o()[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,t)}else s.call(this,t)?(t.preventDefault(),t.stopPropagation(),Ln.getComponent("MuteToggle").prototype.handleClick.call(this,t)):l.call(this,t)&&(t.preventDefault(),t.stopPropagation(),Ln.getComponent("PlayToggle").prototype.handleClick.call(this,t))},i.canPlayType=function(t){for(var e,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],s=_r.getTech(r);if(s||(s=Ln.getComponent(r)),s){if(s.isSupported()&&(e=s.canPlayType(t)))return e}else Ce.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},i.selectSource=function(t){var e,i,n=this,r=this.options_.techOrder.map((function(t){return[t,_r.getTech(t)]})).filter((function(t){var e=t[0],i=t[1];return i?i.isSupported():(Ce.error('The "'+e+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),s=function(t,e,i){var n;return t.some((function(t){return e.some((function(e){if(n=i(t,e))return!0}))})),n},a=function(t,e){var i=t[0];if(t[1].canPlaySource(e,n.options_[i.toLowerCase()]))return{source:e,tech:i}};return e=this.options_.sourceOrder?s(t,r,(i=a,function(t,e){return i(e,t)})):s(r,t,a),e||!1},i.handleSrc_=function(t,e){var i=this;if(void 0===t)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var n=Ir(t);if(n.length){if(this.changingSrc_=!0,e||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),wr(this,n[0],(function(t,r){var s,a;if(i.middleware_=r,e||(i.cache_.sources=n),i.updateSourceCaches_(t),i.src_(t))return n.length>1?i.handleSrc_(n.slice(1)):(i.changingSrc_=!1,i.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void i.triggerReady());s=r,a=i.tech_,s.forEach((function(t){return t.setTech&&t.setTech(a)}))})),this.options_.retryOnError&&n.length>1){var r=function(){i.error(null),i.handleSrc_(n.slice(1),!0)},s=function(){i.off("error",r)};this.one("error",r),this.one("playing",s),this.resetRetryOnError_=function(){i.off("error",r),i.off("playing",s)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},i.src=function(t){return this.handleSrc_(t,!1)},i.src_=function(t){var e,i,n=this,r=this.selectSource([t]);return!r||(e=r.tech,i=this.techName_,Dn(e)!==Dn(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){n.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1}),!0),!1))},i.load=function(){this.techCall_("load")},i.reset=function(){var t=this,e=this.options_.Promise||s().Promise;this.paused()||!e?this.doReset_():jn(this.play().then((function(){return t.doReset_()})))},i.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),mn(this)&&this.trigger("playerreset")},i.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},i.resetProgressBar_=function(){this.currentTime(0);var t=this.controlBar||{},e=t.durationDisplay,i=t.remainingTimeDisplay;e&&e.updateContent(),i&&i.updateContent()},i.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},i.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},i.currentSources=function(){var t=this.currentSource(),e=[];return 0!==Object.keys(t).length&&e.push(t),this.cache_.sources||e},i.currentSource=function(){return this.cache_.source||{}},i.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},i.currentType=function(){return this.currentSource()&&this.currentSource().type||""},i.preload=function(t){return void 0!==t?(this.techCall_("setPreload",t),void(this.options_.preload=t)):this.techGet_("preload")},i.autoplay=function(t){if(void 0===t)return this.options_.autoplay||!1;var e;"string"==typeof t&&/(any|play|muted)/.test(t)||!0===t&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_("string"==typeof t?t:"play"),e=!1):this.options_.autoplay=!!t,e=void 0===e?this.options_.autoplay:e,this.tech_&&this.techCall_("setAutoplay",e)},i.playsinline=function(t){return void 0!==t?(this.techCall_("setPlaysinline",t),this.options_.playsinline=t,this):this.techGet_("playsinline")},i.loop=function(t){return void 0!==t?(this.techCall_("setLoop",t),void(this.options_.loop=t)):this.techGet_("loop")},i.poster=function(t){if(void 0===t)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))},i.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},i.controls=function(t){if(void 0===t)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},i.usingNativeControls=function(t){if(void 0===t)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},i.error=function(t){var e=this;if(void 0===t)return this.error_||null;if(be("beforeerror").forEach((function(i){var n=i(e,t);Oe(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n?t=n:e.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&t&&4===t.code){var i=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],i),void this.one("loadstart",(function(){this.off(["click","touchstart"],i)}))}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Nn(t),this.addClass("vjs-error"),Ce.error("(CODE:"+this.error_.code+" "+Nn.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),be("error").forEach((function(t){return t(e,e.error_)}))},i.reportUserActivity=function(t){this.userActivity_=!0},i.userActive=function(t){if(void 0===t)return this.userActive_;if((t=!!t)!==this.userActive_){if(this.userActive_=t,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(t){t.stopPropagation(),t.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},i.listenForUserActivity_=function(){var t,e,i,n=hn(this,this.reportUserActivity),r=function(e){n(),this.clearInterval(t)};this.on("mousedown",(function(){n(),this.clearInterval(t),t=this.setInterval(n,250)})),this.on("mousemove",(function(t){t.screenX===e&&t.screenY===i||(e=t.screenX,i=t.screenY,n())})),this.on("mouseup",r),this.on("mouseleave",r);var s,a=this.getChild("controlBar");!a||ri||Ge||(a.on("mouseenter",(function(t){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),a.on("mouseleave",(function(t){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",n),this.on("keyup",n),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var t=this.options_.inactivityTimeout;t<=0||(s=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),t))}}),250)},i.playbackRate=function(t){if(void 0===t)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",t)},i.defaultPlaybackRate=function(t){return void 0!==t?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},i.isAudio=function(t){if(void 0===t)return!!this.isAudio_;this.isAudio_=!!t},i.enableAudioOnlyUI_=function(){var t=this;this.addClass("vjs-audio-only-mode");var e=this.children(),i=this.getChild("ControlBar"),n=i&&i.currentHeight();e.forEach((function(e){e!==i&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),t.audioOnlyCache_.hiddenChildren.push(e))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")},i.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(t){return t.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},i.audioOnlyMode=function(t){var e=this;if("boolean"!=typeof t||t===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=t;var i=this.options_.Promise||s().Promise;if(i){if(t){var n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),i.all(n).then((function(){return e.enableAudioOnlyUI_()}))}return i.resolve().then((function(){return e.disableAudioOnlyUI_()}))}t?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},i.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},i.audioPosterMode=function(t){var e=this;if("boolean"!=typeof t||t===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=t;var i=this.options_.Promise||s().Promise;return i?t?this.audioOnlyMode()?this.audioOnlyMode(!1).then((function(){e.enablePosterModeUI_()})):i.resolve().then((function(){e.enablePosterModeUI_()})):i.resolve().then((function(){e.disablePosterModeUI_()})):t?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},i.addTextTrack=function(t,e,i){if(this.tech_)return this.tech_.addTextTrack(t,e,i)},i.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},i.removeRemoteTextTrack=function(t){void 0===t&&(t={});var e=t.track;if(e||(e=t),this.tech_)return this.tech_.removeRemoteTextTrack(e)},i.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},i.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},i.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},i.language=function(t){if(void 0===t)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),mn(this)&&this.trigger("languagechange"))},i.languages=function(){return Cn(e.prototype.options_.languages,this.languages_)},i.toJSON=function(){var t=Cn(this.options_),e=t.tracks;t.tracks=[];for(var i=0;i<e.length;i++){var n=e[i];(n=Cn(n)).player=void 0,t.tracks[i]=n}return t},i.createModal=function(t,e){var i=this;(e=e||{}).content=t||"";var n=new qn(this,e);return this.addChild(n),n.on("dispose",(function(){i.removeChild(n)})),n.open(),n},i.updateCurrentBreakpoint_=function(){if(this.responsive())for(var t=this.currentBreakpoint(),e=this.currentWidth(),i=0;i<_a.length;i++){var n=_a[i];if(e<=this.breakpoints_[n]){if(t===n)return;t&&this.removeClass(ba[t]),this.addClass(ba[n]),this.breakpoint_=n;break}}},i.removeCurrentBreakpoint_=function(){var t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)},i.breakpoints=function(t){return void 0===t||(this.breakpoint_="",this.breakpoints_=Le({},xa,t),this.updateCurrentBreakpoint_()),Le(this.breakpoints_)},i.responsive=function(t){return void 0===t?this.responsive_:(t=Boolean(t))!==this.responsive_?(this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t):void 0},i.currentBreakpoint=function(){return this.breakpoint_},i.currentBreakpointClass=function(){return ba[this.breakpoint_]||""},i.loadMedia=function(t,e){var i=this;if(t&&"object"==typeof t){this.reset(),this.cache_.media=Cn(t);var n=this.cache_.media,r=n.artwork,s=n.poster,a=n.src,o=n.textTracks;!r&&s&&(this.cache_.media.artwork=[{src:s,type:Mr(s)}]),a&&this.src(a),s&&this.poster(s),Array.isArray(o)&&o.forEach((function(t){return i.addRemoteTextTrack(t,!1)})),this.ready(e)}},i.getMedia=function(){if(!this.cache_.media){var t=this.poster(),e={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(t){return{kind:t.kind,label:t.label,language:t.language,src:t.src}}))};return t&&(e.poster=t,e.artwork=[{src:e.poster,type:Mr(e.poster)}]),e}return Cn(this.cache_.media)},e.getTagSettings=function(t){var e={sources:[],tracks:[]},i=xi(t),n=i["data-setup"];if(gi(t,"vjs-fill")&&(i.fill=!0),gi(t,"vjs-fluid")&&(i.fluid=!0),null!==n){var r=m()(n||"{}"),s=r[0],a=r[1];s&&Ce.error(s),Le(i,a)}if(Le(e,i),t.hasChildNodes())for(var o=t.childNodes,l=0,u=o.length;l<u;l++){var c=o[l],h=c.nodeName.toLowerCase();"source"===h?e.sources.push(xi(c)):"track"===h&&e.tracks.push(xi(c))}return e},i.flexNotSupported_=function(){var t=o().createElement("i");return!("flexBasis"in t.style||"webkitFlexBasis"in t.style||"mozFlexBasis"in t.style||"msFlexBasis"in t.style||"msFlexOrder"in t.style)},i.debug=function(t){if(void 0===t)return this.debugEnabled_;t?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},i.playbackRates=function(t){if(void 0===t)return this.cache_.playbackRates;Array.isArray(t)&&t.every((function(t){return"number"==typeof t}))&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))},e}(Ln);vr.names.forEach((function(t){var e=vr[t];Ta.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}})),Ta.prototype.crossorigin=Ta.prototype.crossOrigin,Ta.players={};var wa=s().navigator;Ta.prototype.options_={techOrder:_r.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:wa&&(wa.languages&&wa.languages[0]||wa.userLanguage||wa.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(t){Ta.prototype[t]=function(){return this.techGet_(t)}})),ya.forEach((function(t){Ta.prototype["handleTech"+Dn(t)+"_"]=function(){return this.trigger(t)}})),Ln.registerComponent("Player",Ta);var ka="plugin",Sa="activePlugins_",Ea={},Da=function(t){return Ea.hasOwnProperty(t)},Ca=function(t){return Da(t)?Ea[t]:void 0},Pa=function(t,e){t[Sa]=t[Sa]||{},t[Sa][e]=!0},Aa=function(t,e,i){var n=(i?"before":"")+"pluginsetup";t.trigger(n,e),t.trigger(n+":"+e.name,e)},Ma=function(t,e){return e.prototype.name=t,function(){Aa(this,{name:t,plugin:e,instance:null},!0);for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var s=b(e,[this].concat(n));return this[t]=function(){return s},Aa(this,s.getEventHash()),s}},Ia=function(){function t(e){if(this.constructor===t)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),wn(this),delete this.trigger,Sn(this,this.constructor.defaultState),Pa(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=t.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(t){return void 0===t&&(t={}),t.name=this.name,t.plugin=this.constructor,t.instance=this,t},e.trigger=function(t,e){return void 0===e&&(e={}),sn(this.eventBusEl_,t,this.getEventHash(e))},e.handleStateChanged=function(t){},e.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[Sa][t]=!1,this.player=this.state=null,e[t]=Ma(t,Ea[t])},t.isBasic=function(e){var i="string"==typeof e?Ca(e):e;return"function"==typeof i&&!t.prototype.isPrototypeOf(i.prototype)},t.registerPlugin=function(e,i){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(Da(e))Ce.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(Ta.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof i)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof i+".");return Ea[e]=i,e!==ka&&(t.isBasic(i)?Ta.prototype[e]=function(t,e){var i=function(){Aa(this,{name:t,plugin:e,instance:null},!0);var i=e.apply(this,arguments);return Pa(this,t),Aa(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach((function(t){i[t]=e[t]})),i}(e,i):Ta.prototype[e]=Ma(e,i)),i},t.deregisterPlugin=function(t){if(t===ka)throw new Error("Cannot de-register base plugin.");Da(t)&&(delete Ea[t],delete Ta.prototype[t])},t.getPlugins=function(t){var e;return void 0===t&&(t=Object.keys(Ea)),t.forEach((function(t){var i=Ca(t);i&&((e=e||{})[t]=i)})),e},t.getPluginVersion=function(t){var e=Ca(t);return e&&e.VERSION||""},t}();Ia.getPlugin=Ca,Ia.BASE_PLUGIN_NAME=ka,Ia.registerPlugin(ka,Ia),Ta.prototype.usingPlugin=function(t){return!!this[Sa]&&!0===this[Sa][t]},Ta.prototype.hasPlugin=function(t){return!!Da(t)};var La=function(t){return 0===t.indexOf("#")?t.slice(1):t};function Oa(t,e,i){var n=Oa.getPlayer(t);if(n)return e&&Ce.warn('Player "'+t+'" is already initialised. Options will not be applied.'),i&&n.ready(i),n;var r="string"==typeof t?Bi("#"+La(t)):t;if(!ci(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||Ce.warn("The element supplied is not included in the DOM"),!0===(e=e||{}).restoreEl&&(e.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),be("beforesetup").forEach((function(t){var i=t(r,Cn(e));Oe(i)&&!Array.isArray(i)?e=Cn(e,i):Ce.error("please return an object in beforesetup hooks")}));var s=Ln.getComponent("Player");return n=new s(r,e,i),be("setup").forEach((function(t){return t(n)})),n}if(Oa.hooks_=_e,Oa.hooks=be,Oa.hook=function(t,e){be(t,e)},Oa.hookOnce=function(t,e){be(t,[].concat(e).map((function(e){return function i(){return xe(t,i),e.apply(void 0,arguments)}})))},Oa.removeHook=xe,!0!==s().VIDEOJS_NO_DYNAMIC_STYLE&&ui()){var Fa=Bi(".vjs-styles-defaults");if(!Fa){Fa=Gi("vjs-styles-defaults");var Ra=Bi("head");Ra&&Ra.insertBefore(Fa,Ra.firstChild),Wi(Fa,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}Ui(1,Oa),Oa.VERSION=ve,Oa.options=Ta.prototype.options_,Oa.getPlayers=function(){return Ta.players},Oa.getPlayer=function(t){var e,i=Ta.players;if("string"==typeof t){var n=La(t),r=i[n];if(r)return r;e=Bi("#"+n)}else e=t;if(ci(e)){var s=e,a=s.player,o=s.playerId;if(a||i[o])return a||i[o]}},Oa.getAllPlayers=function(){return Object.keys(Ta.players).map((function(t){return Ta.players[t]})).filter(Boolean)},Oa.players=Ta.players,Oa.getComponent=Ln.getComponent,Oa.registerComponent=function(t,e){_r.isTech(e)&&Ce.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Ln.registerComponent.call(Ln,t,e)},Oa.getTech=_r.getTech,Oa.registerTech=_r.registerTech,Oa.use=function(t,e){br[t]=br[t]||[],br[t].push(e)},Object.defineProperty(Oa,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Oa.middleware,"TERMINATOR",{value:Tr,writeable:!1,enumerable:!0}),Oa.browser=ai,Oa.TOUCH_ENABLED=ei,Oa.extend=function(t,e){void 0===e&&(e={});var i=function(){t.apply(this,arguments)},n={};for(var r in"object"==typeof e?(e.constructor!==Object.prototype.constructor&&(i=e.constructor),n=e):"function"==typeof e&&(i=e),function(t,e){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)}(i,t),t&&(i.super_=t),n)n.hasOwnProperty(r)&&(i.prototype[r]=n[r]);return i},Oa.mergeOptions=Cn,Oa.bind=hn,Oa.registerPlugin=Ia.registerPlugin,Oa.deregisterPlugin=Ia.deregisterPlugin,Oa.plugin=function(t,e){return Ce.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Ia.registerPlugin(t,e)},Oa.getPlugins=Ia.getPlugins,Oa.getPlugin=Ia.getPlugin,Oa.getPluginVersion=Ia.getPluginVersion,Oa.addLanguage=function(t,e){var i;return t=(""+t).toLowerCase(),Oa.options.languages=Cn(Oa.options.languages,((i={})[t]=e,i)),Oa.options.languages[t]},Oa.log=Ce,Oa.createLogger=Pe,Oa.createTimeRange=Oa.createTimeRanges=Rn,Oa.formatTime=Yr,Oa.setFormatTime=function(t){$r=t},Oa.resetFormatTime=function(){$r=Xr},Oa.parseUrl=sr,Oa.isCrossOrigin=lr,Oa.EventTarget=pn,Oa.on=nn,Oa.one=an,Oa.off=rn,Oa.trigger=sn,Oa.xhr=y(),Oa.TextTrack=dr,Oa.AudioTrack=pr,Oa.VideoTrack=fr,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(t){Oa[t]=function(){return Ce.warn("videojs."+t+"() is deprecated; use videojs.dom."+t+"() instead"),Hi[t].apply(null,arguments)}})),Oa.computedStyle=Re,Oa.dom=Hi,Oa.url=ur,Oa.defineLazyProperty=ma,Oa.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var Ba=w,Na=function(t,e,i){return t&&i&&i.responseURL&&e!==i.responseURL?i.responseURL:e},Ha=function(t){return Oa.log.debug?Oa.log.debug.bind(Oa,"VHS:",t+" >"):function(){}},Va=1/30,ja=.1,Ua=function(t,e){var i,n=[];if(t&&t.length)for(i=0;i<t.length;i++)e(t.start(i),t.end(i))&&n.push([t.start(i),t.end(i)]);return Oa.createTimeRanges(n)},za=function(t,e){return Ua(t,(function(t,i){return t-ja<=e&&i+ja>=e}))},qa=function(t,e){return Ua(t,(function(t){return t-Va>=e}))},Ga=function(t){var e=[];if(!t||!t.length)return"";for(var i=0;i<t.length;i++)e.push(t.start(i)+" => "+t.end(i));return e.join(", ")},Wa=function(t){for(var e=[],i=0;i<t.length;i++)e.push({start:t.start(i),end:t.end(i)});return e},Xa=function(t){if(t&&t.length&&t.end)return t.end(t.length-1)},$a=function(t,e){var i=0;if(!t||!t.length)return i;for(var n=0;n<t.length;n++){var r=t.start(n),s=t.end(n);e>s||(i+=e>r&&e<=s?s-e:s-r)}return i},Ya=Oa.createTimeRange,Ka=function(t,e){if(!e.preload)return e.duration;var i=0;return(e.parts||[]).forEach((function(t){i+=t.duration})),(e.preloadHints||[]).forEach((function(e){"PART"===e.type&&(i+=t.partTargetDuration)})),i},Qa=function(t){return(t.segments||[]).reduce((function(t,e,i){return e.parts?e.parts.forEach((function(n,r){t.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:e})})):t.push({duration:e.duration,segmentIndex:i,partIndex:null,segment:e,part:null}),t}),[])},Za=function(t){var e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},Ja=function(t){var e=t.preloadSegment;if(e){var i=e.parts;return(e.preloadHints||[]).reduce((function(t,e){return t+("PART"===e.type?1:0)}),0)+(i&&i.length?i.length:0)}},to=function(t,e){if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;var i=Za(e).length>0;return i&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:i&&e.partTargetDuration?3*e.partTargetDuration:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?3*e.targetDuration:0},eo=function(t,e,i){if(void 0===e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;var n=function(t,e){var i=0,n=e-t.mediaSequence,r=t.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(void 0!==(r=t.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=Ka(t,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(t,e);if(n.precise)return n.result;var r=function(t,e){for(var i,n=0,r=e-t.mediaSequence;r<t.segments.length;r++){if(void 0!==(i=t.segments[r]).start)return{result:i.start-n,precise:!0};if(n+=Ka(t,i),void 0!==i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}}(t,e);return r.precise?r.result:n.result+i},io=function(t,e,i){if(!t)return 0;if("number"!=typeof i&&(i=0),void 0===e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return s()[1/0]}return eo(t,e,i)},no=function(t){var e=t.defaultDuration,i=t.durationList,n=t.startIndex,r=t.endIndex,s=0;if(n>r){var a=[r,n];n=a[0],r=a[1]}if(n<0){for(var o=n;o<Math.min(0,r);o++)s+=e;n=0}for(var l=n;l<r;l++)s+=i[l].duration;return s},ro=function(t,e,i,n){if(!t||!t.segments)return null;if(t.endList)return io(t);if(null===e)return null;e=e||0;var r=eo(t,t.mediaSequence+t.segments.length,e);return i&&(r-=n="number"==typeof n?n:to(null,t)),Math.max(0,r)},so=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},ao=function(t){return t.excludeUntil&&t.excludeUntil===1/0},oo=function(t){var e=so(t);return!t.disabled&&!e},lo=function(t,e){return e.attributes&&e.attributes[t]},uo=function(t,e){if(1===t.playlists.length)return!0;var i=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter((function(t){return!!oo(t)&&(t.attributes.BANDWIDTH||0)<i})).length},co=function(t,e){return!(!t&&!e||!t&&e||t&&!e||t!==e&&(!t.id||!e.id||t.id!==e.id)&&(!t.resolvedUri||!e.resolvedUri||t.resolvedUri!==e.resolvedUri)&&(!t.uri||!e.uri||t.uri!==e.uri))},ho=function(t,e){var i=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{},n=!1;for(var r in i){for(var s in i[r])if(n=e(i[r][s]))break;if(n)break}return!!n},po=function(t){if(!t||!t.playlists||!t.playlists.length)return ho(t,(function(t){return t.playlists&&t.playlists.length||t.uri}));for(var e=function(e){var i=t.playlists[e],n=i.attributes&&i.attributes.CODECS;return n&&n.split(",").every((function(t){return U(t)}))||ho(t,(function(t){return co(i,t)}))?"continue":{v:!1}},i=0;i<t.playlists.length;i++){var n=e(i);if("continue"!==n&&"object"==typeof n)return n.v}return!0},fo={liveEdgeDelay:to,duration:io,seekable:function(t,e,i){var n=e||0,r=ro(t,e,!0,i);return null===r?Ya():Ya(n,r)},getMediaInfoForTime:function(t){for(var e=t.playlist,i=t.currentTime,n=t.startingSegmentIndex,r=t.startingPartIndex,s=t.startTime,a=t.experimentalExactManifestTimings,o=i-s,l=Qa(e),u=0,c=0;c<l.length;c++){var h=l[c];if(n===h.segmentIndex&&("number"!=typeof r||"number"!=typeof h.partIndex||r===h.partIndex)){u=c;break}}if(o<0){if(u>0)for(var d=u-1;d>=0;d--){var p=l[d];if(o+=p.duration,a){if(o<0)continue}else if(o+Va<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:s-no({defaultDuration:e.targetDuration,durationList:l,startIndex:u,endIndex:d})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(u<0){for(var f=u;f<0;f++)if((o-=e.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};u=0}for(var m=u;m<l.length;m++){var g=l[m];if(o-=g.duration,a){if(o>0)continue}else if(o-Va>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:s+no({defaultDuration:e.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},isEnabled:oo,isDisabled:function(t){return t.disabled},isBlacklisted:so,isIncompatible:ao,playlistEnd:ro,isAes:function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},hasAttribute:lo,estimateSegmentRequestTime:function(t,e,i,n){return void 0===n&&(n=0),lo("BANDWIDTH",i)?(t*i.attributes.BANDWIDTH-8*n)/e:NaN},isLowestEnabledRendition:uo,isAudioOnly:po,playlistMatch:co,segmentDurationWithParts:Ka},mo=Oa.log,go=function(t,e){return t+"-"+e},yo=function(t,e){t.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(i){if(t.mediaGroups[i])for(var n in t.mediaGroups[i])for(var r in t.mediaGroups[i][n]){var s=t.mediaGroups[i][n][r];e(s,i,n,r)}}))},vo=function(t){var e=t.playlist,i=t.uri,n=t.id;e.id=n,e.playlistErrors_=0,i&&(e.uri=i),e.attributes=e.attributes||{}},_o=function(t,e){t.uri=e;for(var i=0;i<t.playlists.length;i++)if(!t.playlists[i].uri){var n="placeholder-uri-"+i;t.playlists[i].uri=n}var r=po(t);yo(t,(function(e,i,n,s){var a="placeholder-uri-"+i+"-"+n+"-"+s;if(!e.playlists||!e.playlists.length){if(r&&"AUDIO"===i&&!e.uri)for(var o=0;o<t.playlists.length;o++){var u=t.playlists[o];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===n)return}e.playlists=[l({},e)]}e.playlists.forEach((function(e,i){var n=go(i,a);e.uri?e.resolvedUri=e.resolvedUri||Ba(t.uri,e.uri):(e.uri=0===i?a:n,e.resolvedUri=e.uri),e.id=e.id||n,e.attributes=e.attributes||{},t.playlists[e.id]=e,t.playlists[e.uri]=e}))})),function(t){for(var e=t.playlists.length;e--;){var i=t.playlists[e];vo({playlist:i,id:go(e,i.uri)}),i.resolvedUri=Ba(t.uri,i.uri),t.playlists[i.id]=i,t.playlists[i.uri]=i,i.attributes.BANDWIDTH||mo.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(t),function(t){yo(t,(function(e){e.uri&&(e.resolvedUri=Ba(t.uri,e.uri))}))}(t)},bo=Oa.mergeOptions,xo=Oa.EventTarget,To=function(t,e){if(!t)return e;var i=bo(t,e);if(t.preloadHints&&!e.preloadHints&&delete i.preloadHints,t.parts&&!e.parts)delete i.parts;else if(t.parts&&e.parts)for(var n=0;n<e.parts.length;n++)t.parts&&t.parts[n]&&(i.parts[n]=bo(t.parts[n],e.parts[n]));return!t.skipped&&e.skipped&&(i.skipped=!1),t.preload&&!e.preload&&(i.preload=!1),i},wo=function(t,e){!t.resolvedUri&&t.uri&&(t.resolvedUri=Ba(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=Ba(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=Ba(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=Ba(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach((function(t){t.resolvedUri||(t.resolvedUri=Ba(e,t.uri))})),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach((function(t){t.resolvedUri||(t.resolvedUri=Ba(e,t.uri))}))},ko=function(t){var e=t.segments||[],i=t.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(var n=0;n<i.preloadHints.length;n++)if("MAP"===i.preloadHints[n].type)return e;i.duration=t.targetDuration,i.preload=!0,e.push(i)}return e},So=function(t,e){return t===e||t.segments&&e.segments&&t.segments.length===e.segments.length&&t.endList===e.endList&&t.mediaSequence===e.mediaSequence&&t.preloadSegment===e.preloadSegment},Eo=function(t,e,i){void 0===i&&(i=So);var n=bo(t,{}),r=n.playlists[e.id];if(!r)return null;if(i(r,e))return null;e.segments=ko(e);var s=bo(r,e);if(s.preloadSegment&&!e.preloadSegment&&delete s.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(var a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}s.segments=function(t,e,i){var n=t.slice(),r=e.slice();i=i||0;for(var s,a=[],o=0;o<r.length;o++){var l=n[o+i],u=r[o];l?(s=l.map||s,a.push(To(l,u))):(s&&!u.map&&(u.map=s),a.push(u))}return a}(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}s.segments.forEach((function(t){wo(t,s.resolvedUri)}));for(var o=0;o<n.playlists.length;o++)n.playlists[o].id===e.id&&(n.playlists[o]=s);return n.playlists[e.id]=s,n.playlists[e.uri]=s,yo(t,(function(t,i,n,r){if(t.playlists)for(var a=0;a<t.playlists.length;a++)e.id===t.playlists[a].id&&(t.playlists[a]=s)})),n},Do=function(t,e){var i=t.segments||[],n=i[i.length-1],r=n&&n.parts&&n.parts[n.parts.length-1],s=r&&r.duration||n&&n.duration;return e&&s?1e3*s:500*(t.partTargetDuration||t.targetDuration||10)},Co=function(t){function e(e,i,n){var r;if(void 0===n&&(n={}),r=t.call(this)||this,!e)throw new Error("A non-empty playlist URL or object is required");r.logger_=Ha("PlaylistLoader");var s=n,a=s.withCredentials,o=void 0!==a&&a,l=s.handleManifestRedirects,u=void 0!==l&&l;r.src=e,r.vhs_=i,r.withCredentials=o,r.handleManifestRedirects=u;var c=i.options_;return r.customTagParsers=c&&c.customTagParsers||[],r.customTagMappers=c&&c.customTagMappers||[],r.experimentalLLHLS=c&&c.experimentalLLHLS||!1,Oa.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(h(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}p(e,t);var i=e.prototype;return i.handleMediaupdatetimeout_=function(){var t=this;if("HAVE_METADATA"===this.state){var e=this.media(),i=Ba(this.master.uri,e.uri);this.experimentalLLHLS&&(i=function(t,e){if(e.endList||!e.serverControl)return t;var i={};if(e.serverControl.canBlockReload){var n=e.preloadSegment,r=e.mediaSequence+e.segments.length;if(n){var a=n.parts||[],o=Ja(e)-1;o>-1&&o!==a.length-1&&(i._HLS_part=o),(o>-1||a.length)&&r--}i._HLS_msn=r}if(e.serverControl&&e.serverControl.canSkipUntil&&(i._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){var l=new(s().URL)(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(t){i.hasOwnProperty(t)&&l.searchParams.set(t,i[t])})),t=l.toString()}return t}(i,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:i,withCredentials:this.withCredentials},(function(e,i){if(t.request)return e?t.playlistRequestError(t.request,t.media(),"HAVE_METADATA"):void t.haveMetadata({playlistString:t.request.responseText,url:t.media().uri,id:t.media().id})}))}},i.playlistRequestError=function(t,e,i){var n=e.uri,r=e.id;this.request=null,i&&(this.state=i),this.error={playlist:this.master.playlists[r],status:t.status,message:"HLS playlist request error at URL: "+n+".",responseText:t.responseText,code:t.status>=500?4:2},this.trigger("error")},i.parseManifest_=function(t){var e=this,i=t.url;return function(t){var e=t.onwarn,i=t.oninfo,n=t.manifestString,r=t.customTagParsers,s=void 0===r?[]:r,a=t.customTagMappers,o=void 0===a?[]:a,l=t.experimentalLLHLS,u=new R;e&&u.on("warn",e),i&&u.on("info",i),s.forEach((function(t){return u.addParser(t)})),o.forEach((function(t){return u.addTagMapper(t)})),u.push(n),u.end();var c=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(t){c.hasOwnProperty(t)&&delete c[t]})),c.segments&&c.segments.forEach((function(t){["parts","preloadHints"].forEach((function(e){t.hasOwnProperty(e)&&delete t[e]}))}))),!c.targetDuration){var h=10;c.segments&&c.segments.length&&(h=c.segments.reduce((function(t,e){return Math.max(t,e.duration)}),0)),e&&e("manifest has no targetDuration defaulting to "+h),c.targetDuration=h}var d=Za(c);if(d.length&&!c.partTargetDuration){var p=d.reduce((function(t,e){return Math.max(t,e.duration)}),0);e&&(e("manifest has no partTargetDuration defaulting to "+p),mo.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),c.partTargetDuration=p}return c}({onwarn:function(t){var n=t.message;return e.logger_("m3u8-parser warn for "+i+": "+n)},oninfo:function(t){var n=t.message;return e.logger_("m3u8-parser info for "+i+": "+n)},manifestString:t.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},i.haveMetadata=function(t){var e=t.playlistString,i=t.playlistObject,n=t.url,r=t.id;this.request=null,this.state="HAVE_METADATA";var s=i||this.parseManifest_({url:n,manifestString:e});s.lastRequest=Date.now(),vo({playlist:s,uri:n,id:r});var a=Eo(this.master,s);this.targetDuration=s.partTargetDuration||s.targetDuration,this.pendingMedia_=null,a?(this.master=a,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Do(this.media(),!!a)),this.trigger("loadedplaylist")},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),s().clearTimeout(this.mediaUpdateTimeout),s().clearTimeout(this.finalRenditionTimeout),this.off()},i.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},i.media=function(t,e){var i=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof t){if(!this.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.master.playlists[t]}if(s().clearTimeout(this.finalRenditionTimeout),e){var n=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=s().setTimeout(this.media.bind(this,t,!1),n)}else{var r=this.state,a=!this.media_||t.id!==this.media_.id,o=this.master.playlists[t.id];if(o&&o.endList||t.endList&&t.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,void(a&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Do(t,!0)),a){if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=t,this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials},(function(e,n){if(i.request){if(t.lastRequest=Date.now(),t.resolvedUri=Na(i.handleManifestRedirects,t.resolvedUri,n),e)return i.playlistRequestError(i.request,t,r);i.haveMetadata({playlistString:n.responseText,url:t.uri,id:t.id}),"HAVE_MASTER"===r?i.trigger("loadedmetadata"):i.trigger("mediachange")}}))}}},i.pause=function(){this.mediaUpdateTimeout&&(s().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},i.load=function(t){var e=this;this.mediaUpdateTimeout&&(s().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();if(t){var n=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=s().setTimeout((function(){e.mediaUpdateTimeout=null,e.load()}),n)}else this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},i.updateMediaUpdateTimeout_=function(t){var e=this;this.mediaUpdateTimeout&&(s().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=s().setTimeout((function(){e.mediaUpdateTimeout=null,e.trigger("mediaupdatetimeout"),e.updateMediaUpdateTimeout_(t)}),t))},i.start=function(){var t=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=s().location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){t.setupInitialPlaylist(t.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(e,i){if(t.request){if(t.request=null,e)return t.error={status:i.status,message:"HLS playlist request error at URL: "+t.src+".",responseText:i.responseText,code:2},"HAVE_NOTHING"===t.state&&(t.started=!1),t.trigger("error");t.src=Na(t.handleManifestRedirects,t.src,i);var n=t.parseManifest_({manifestString:i.responseText,url:t.src});t.setupInitialPlaylist(n)}}))},i.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},i.setupInitialPlaylist=function(t){if(this.state="HAVE_MASTER",t.playlists)return this.master=t,_o(this.master,this.srcUri()),t.playlists.forEach((function(t){t.segments=ko(t),t.segments.forEach((function(e){wo(e,t.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var e=this.srcUri()||s().location.href;this.master=function(t,e){var i=go(0,e),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:s().location.href,resolvedUri:s().location.href,playlists:[{uri:e,id:i,resolvedUri:e,attributes:{}}]};return n.playlists[i]=n.playlists[0],n.playlists[e]=n.playlists[0],n}(0,e),this.haveMetadata({playlistObject:t,url:e,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},e}(xo),Po=Oa.xhr,Ao=Oa.mergeOptions,Mo=function(t,e,i,n){var r="arraybuffer"===t.responseType?t.response:t.responseText;!e&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),i.headers&&(t.responseHeaders=i.headers),e&&"ETIMEDOUT"===e.code&&(t.timedout=!0),e||t.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(e=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),n(e,t)},Io=function(){var t=function t(e,i){e=Ao({timeout:45e3},e);var n=t.beforeRequest||Oa.Vhs.xhr.beforeRequest;if(n&&"function"==typeof n){var r=n(e);r&&(e=r)}var s=(!0===Oa.Vhs.xhr.original?Po:Oa.Vhs.xhr)(e,(function(t,e){return Mo(s,t,e,i)})),a=s.abort;return s.abort=function(){return s.aborted=!0,a.apply(s,arguments)},s.uri=e.uri,s.requestTime=Date.now(),s};return t.original=!0,t},Lo=function(t){var e,i={};return t.byterange&&(i.Range="bytes="+(e=t.byterange).offset+"-"+("bigint"==typeof e.offset||"bigint"==typeof e.length?s().BigInt(e.offset)+s().BigInt(e.length)-s().BigInt(1):e.offset+e.length-1)),i},Oo=function(t,e){return t.start(e)+"-"+t.end(e)},Fo=function(t,e){var i=t.toString(16);return"00".substring(0,2-i.length)+i+(e%2?" ":"")},Ro=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},Bo=function(t){var e={};return Object.keys(t).forEach((function(i){var n=t[i];K(n)?e[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:e[i]=n})),e},No=function(t){var e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},Ho=function(t){return t.resolvedUri},Vo=function(t){for(var e=Array.prototype.slice.call(t),i=16,n="",r=0;r<e.length/i;r++)n+=e.slice(r*i,r*i+i).map(Fo).join("")+" "+e.slice(r*i,r*i+i).map(Ro).join("")+"\n";return n},jo=Object.freeze({__proto__:null,createTransferableMessage:Bo,initSegmentId:No,segmentKeyId:Ho,hexDump:Vo,tagDump:function(t){var e=t.bytes;return Vo(e)},textRanges:function(t){var e,i="";for(e=0;e<t.length;e++)i+=Oo(t,e)+" ";return i}}),Uo=function t(e){var i=e.programTime,n=e.playlist,r=e.retryCount,s=void 0===r?2:r,a=e.seekTo,o=e.pauseAfterSeek,l=void 0===o||o,u=e.tech,c=e.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if(void 0===i||!n||!a)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!function(t){if(!t.segments||0===t.segments.length)return!1;for(var e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0}(n))return c({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var h=function(t,e){var i;try{i=new Date(t)}catch(t){return null}if(!e||!e.segments||0===e.segments.length)return null;var n=e.segments[0];if(i<n.dateTimeObject)return null;for(var r=0;r<e.segments.length-1&&(n=e.segments[r],!(i<e.segments[r+1].dateTimeObject));r++);var s,a=e.segments[e.segments.length-1],o=a.dateTimeObject,l=a.videoTimingInfo?(s=a.videoTimingInfo).transmuxedPresentationEnd-s.transmuxedPresentationStart-s.transmuxerPrependedSeconds:a.duration+.25*a.duration;return i>new Date(o.getTime()+1e3*l)?null:(i>o&&(n=a),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:fo.duration(e,e.mediaSequence+e.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})}(i,n);if(!h)return c({message:i+" was not found in the stream"});var d=h.segment,p=function(t,e){var i,n;try{i=new Date(t),n=new Date(e)}catch(t){}var r=i.getTime();return(n.getTime()-r)/1e3}(d.dateTimeObject,i);if("estimate"===h.type)return 0===s?c({message:i+" is not buffered yet. Try again"}):(a(h.estimatedStart+p),void u.one("seeked",(function(){t({programTime:i,playlist:n,retryCount:s-1,seekTo:a,pauseAfterSeek:l,tech:u,callback:c})})));var f=d.start+p;u.one("seeked",(function(){return c(null,u.currentTime())})),l&&u.pause(),a(f)},zo=function(t,e){if(4===t.readyState)return e()},qo=Oa.EventTarget,Go=Oa.mergeOptions,Wo=function(t,e){if(!So(t,e))return!1;if(t.sidx&&e.sidx&&(t.sidx.offset!==e.sidx.offset||t.sidx.length!==e.sidx.length))return!1;if(!t.sidx&&e.sidx||t.sidx&&!e.sidx)return!1;if(t.segments&&!e.segments||!t.segments&&e.segments)return!1;if(!t.segments&&!e.segments)return!0;for(var i=0;i<t.segments.length;i++){var n=t.segments[i],r=e.segments[i];if(n.uri!==r.uri)return!1;if(n.byterange||r.byterange){var s=n.byterange,a=r.byterange;if(s&&!a||!s&&a)return!1;if(s.offset!==a.offset||s.length!==a.length)return!1}}return!0},Xo=function(t,e){return(Boolean(!t.map&&!e.map)||Boolean(t.map&&e.map&&t.map.byterange.offset===e.map.byterange.offset&&t.map.byterange.length===e.map.byterange.length))&&t.uri===e.uri&&t.byterange.offset===e.byterange.offset&&t.byterange.length===e.byterange.length},$o=function(t,e){var i={};for(var n in t){var r=t[n].sidx;if(r){var s=bt(r);if(!e[s])break;var a=e[s].sidxInfo;Xo(a,r)&&(i[s]=e[s])}}return i},Yo=function(t){function e(e,i,n,r){var s;void 0===n&&(n={}),(s=t.call(this)||this).masterPlaylistLoader_=r||h(s),r||(s.isMaster_=!0);var a=n,o=a.withCredentials,l=void 0!==o&&o,u=a.handleManifestRedirects,c=void 0!==u&&u;if(s.vhs_=i,s.withCredentials=l,s.handleManifestRedirects=c,!e)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",(function(){s.refreshXml_()})),s.on("mediaupdatetimeout",(function(){s.refreshMedia_(s.media().id)})),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=Ha("DashPlaylistLoader"),s.isMaster_?(s.masterPlaylistLoader_.srcUrl=e,s.masterPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=e,s}p(e,t);var i=e.prototype;return i.requestErrored_=function(t,e,i){return!this.request||(this.request=null,t?(this.error="object"!=typeof t||t instanceof Error?{status:e.status,message:"DASH request error at URL: "+e.uri,response:e.response,code:2}:t,i&&(this.state=i),this.trigger("error"),!0):void 0)},i.addSidxSegments_=function(t,e,i){var n=this,r=t.sidx&&bt(t.sidx);if(t.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var a=Na(this.handleManifestRedirects,t.sidx.resolvedUri),o=function(s,a){if(!n.requestErrored_(s,a,e)){var o,l=n.masterPlaylistLoader_.sidxMapping_;try{o=$t()(Q(a.response).subarray(8))}catch(t){return void n.requestErrored_(t,a,e)}return l[r]={sidxInfo:t.sidx,sidx:o},mt(t,o,t.sidx.resolvedUri),i(!0)}};this.request=function(t,e,i){var n,r=[],s=!1,a=function(t,e,n,r){return e.abort(),s=!0,i(t,e,n,r)},o=function(t,e){if(!s){if(t)return a(t,e,"",r);var i=e.responseText.substring(r&&r.byteLength||0,e.responseText.length);if(r=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];if(e=e.filter((function(t){return t&&(t.byteLength||t.length)&&"string"!=typeof t})),e.length<=1)return Q(e[0]);var n=e.reduce((function(t,e,i){return t+(e.byteLength||e.length)}),0),r=new Uint8Array(n),s=0;return e.forEach((function(t){t=Q(t),r.set(t,s),s+=t.byteLength})),r}(r,et(i,!0)),n=n||Kt(r),r.length<10||n&&r.length<n+2)return zo(e,(function(){return a(t,e,"",r)}));var o=ge(r);return"ts"===o&&r.length<188||!o&&r.length<376?zo(e,(function(){return a(t,e,"",r)})):a(null,e,o,r)}},l={uri:t,beforeSend:function(t){t.overrideMimeType("text/plain; charset=x-user-defined"),t.addEventListener("progress",(function(e){return e.total,e.loaded,Mo(t,null,{statusCode:t.status},o)}))}},u=e(l,(function(t,e){return Mo(u,t,e,o)}));return u}(a,this.vhs_.xhr,(function(e,i,r,s){if(e)return o(e,i);if(!r||"mp4"!==r)return o({status:i.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+a,response:"",playlist:t,internal:!0,blacklistDuration:1/0,code:2},i);var l=t.sidx.byterange,u=l.offset,c=l.length;if(s.length>=c+u)return o(e,{response:s.subarray(u,u+c),status:i.status,uri:i.uri});n.request=n.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:Lo({byterange:t.sidx.byterange})},o)}))}else this.mediaRequest_=s().setTimeout((function(){return i(!1)}),0)},i.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},s().clearTimeout(this.minimumUpdatePeriodTimeout_),s().clearTimeout(this.mediaRequest_),s().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},i.hasPendingRequest=function(){return this.request||this.mediaRequest_},i.stopRequest=function(){if(this.request){var t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}},i.media=function(t){var e=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=this.state;if("string"==typeof t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var n=!this.media_||t.id!==this.media_.id;if(n&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList)return this.state="HAVE_METADATA",this.media_=t,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,i,(function(n){e.haveMetadata({startingState:i,playlist:t})})))},i.haveMetadata=function(t){var e=t.startingState,i=t.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MASTER"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")},i.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),s().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(s().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},i.load=function(t){var e=this;s().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(t){var n=i?i.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=s().setTimeout((function(){return e.load()}),n)}else this.started?i&&!i.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},i.start=function(){var t=this;this.started=!0,this.isMaster_?this.requestMaster_((function(e,i){t.haveMaster_(),t.hasPendingRequest()||t.media_||t.media(t.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=s().setTimeout((function(){return t.haveMaster_()}),0)},i.requestMaster_=function(t){var e=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(i,n){if(!e.requestErrored_(i,n)){var r=n.responseText!==e.masterPlaylistLoader_.masterXml_;return e.masterPlaylistLoader_.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?e.masterLoaded_=Date.parse(n.responseHeaders.date):e.masterLoaded_=Date.now(),e.masterPlaylistLoader_.srcUrl=Na(e.handleManifestRedirects,e.masterPlaylistLoader_.srcUrl,n),r?(e.handleMaster_(),void e.syncClientServerClock_((function(){return t(n,r)}))):t(n,r)}"HAVE_NOTHING"===e.state&&(e.started=!1)}))},i.syncClientServerClock_=function(t){var e,i=this,n=(e=this.masterPlaylistLoader_.masterXml_,function(t){var e=Bt(t,"UTCTiming")[0];if(!e)return null;var i=jt(e);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;default:throw new Error("UNSUPPORTED_UTC_TIMING_SCHEME")}return i}(Wt(e)));return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),t()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),t()):void(this.request=this.vhs_.xhr({uri:Ba(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(e,r){if(i.request){if(e)return i.masterPlaylistLoader_.clientOffset_=i.masterLoaded_-Date.now(),t();var s;s="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):i.masterLoaded_:Date.parse(r.responseText),i.masterPlaylistLoader_.clientOffset_=s-Date.now(),t()}})))},i.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},i.handleMaster_=function(){this.mediaRequest_=null;var t,e,i,n=this.masterPlaylistLoader_.master,r=(i=function(t,e){void 0===e&&(e={});var i=function(t,e){void 0===e&&(e={});var i=e,n=i.manifestUri,r=void 0===n?"":n,s=i.NOW,a=void 0===s?Date.now():s,o=i.clientOffset,l=void 0===o?0:o,u=Bt(t,"Period");if(!u.length)throw new Error("INVALID_NUMBER_OF_PERIOD");var c=Bt(t,"Location"),h=jt(t),d=zt([r],Bt(t,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=a,h.clientOffset=l,c.length&&(h.locations=c.map(Nt));var p=[];return u.forEach((function(t,e){var i=jt(t),n=p[e-1];i.start=function(t){var e=t.attributes,i=t.priorPeriodAttributes,n=t.mpdType;return"number"==typeof e.start?e.start:i&&"number"==typeof i.start&&"number"==typeof i.duration?i.start+i.duration:i||"static"!==n?null:0}({attributes:i,priorPeriodAttributes:n?n.attributes:null,mpdType:h.type}),p.push({node:t,attributes:i})})),{locations:h.locations,representationInfo:ot(p.map(Gt(h,d)))}}(Wt(t),e),n=i.representationInfo.map(Rt);return Pt({dashPlaylists:n,locations:i.locations,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest})}((t={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:n}).masterXml,{manifestUri:e=t.srcUrl,clientOffset:t.clientOffset,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest}),_o(i,e),i);n&&(r=function(t,e,i){for(var n=!0,r=Go(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts}),s=0;s<e.playlists.length;s++){var a=e.playlists[s];if(a.sidx){var o=bt(a.sidx);i&&i[o]&&i[o].sidx&&mt(a,i[o].sidx,a.sidx.resolvedUri)}var l=Eo(r,a,Wo);l&&(r=l,n=!1)}return yo(e,(function(t,e,i,s){if(t.playlists&&t.playlists.length){var a=t.playlists[0].id,o=Eo(r,t.playlists[0],Wo);o&&((r=o).mediaGroups[e][i][s].playlists[0]=r.playlists[a],n=!1)}})),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(n=!1),n?null:r}(n,r,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=r||n;var s=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return s&&s!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=s),(!n||r&&r.minimumUpdatePeriod!==n.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(r)},i.updateMinimumUpdatePeriodTimeout_=function(){var t=this.masterPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(s().clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);var e=t.master&&t.master.minimumUpdatePeriod;0===e&&(t.media()?e=1e3*t.media().targetDuration:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),"number"!=typeof e||e<=0?e<0&&this.logger_("found invalid minimumUpdatePeriod of "+e+", not setting a timeout"):this.createMUPTimeout_(e)},i.createMUPTimeout_=function(t){var e=this.masterPlaylistLoader_;e.minimumUpdatePeriodTimeout_=s().setTimeout((function(){e.minimumUpdatePeriodTimeout_=null,e.trigger("minimumUpdatePeriod"),e.createMUPTimeout_(t)}),t)},i.refreshXml_=function(){var t=this;this.requestMaster_((function(e,i){var n,r,s;i&&(t.media_&&(t.media_=t.masterPlaylistLoader_.master.playlists[t.media_.id]),t.masterPlaylistLoader_.sidxMapping_=(n=t.masterPlaylistLoader_.master,r=t.masterPlaylistLoader_.sidxMapping_,s=$o(n.playlists,r),yo(n,(function(t,e,i,n){if(t.playlists&&t.playlists.length){var a=t.playlists;s=Go(s,$o(a,r))}})),s),t.addSidxSegments_(t.media(),t.state,(function(e){t.refreshMedia_(t.media().id)})))}))},i.refreshMedia_=function(t){var e=this;if(!t)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[t];n?this.media_=i[t]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function t(){e.media().endList||(e.mediaUpdateTimeout=s().setTimeout((function(){e.trigger("mediaupdatetimeout"),t()}),Do(e.media(),Boolean(n))))}(),this.trigger("loadedplaylist")},e}(qo),Ko={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},Qo=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},Zo=function(t){return function(){var e=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(i){var e=new BlobBuilder;return e.append(t),URL.createObjectURL(e.getBlob())}}(t),i=Qo(new Worker(e));i.objURL=e;var n=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(e),n.call(this)},i}},Jo=function(t){return"var browserWorkerPolyFill = "+Qo.toString()+";\nbrowserWorkerPolyFill(self);\n"+t},tl=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},el=Jo(tl((function(){var t=function(){this.init=function(){var t={};this.on=function(e,i){t[e]||(t[e]=[]),t[e]=t[e].concat(i)},this.off=function(e,i){var n;return!!t[e]&&(n=t[e].indexOf(i),t[e]=t[e].slice(),t[e].splice(n,1),n>-1)},this.trigger=function(e){var i,n,r,s;if(i=t[e])if(2===arguments.length)for(r=i.length,n=0;n<r;++n)i[n].call(this,arguments[1]);else{for(s=[],n=arguments.length,n=1;n<arguments.length;++n)s.push(arguments[n]);for(r=i.length,n=0;n<r;++n)i[n].apply(this,s)}},this.dispose=function(){t={}}}};t.prototype.pipe=function(t){return this.on("data",(function(e){t.push(e)})),this.on("done",(function(e){t.flush(e)})),this.on("partialdone",(function(e){t.partialFlush(e)})),this.on("endedtimeline",(function(e){t.endTimeline(e)})),this.on("reset",(function(e){t.reset(e)})),t},t.prototype.push=function(t){this.trigger("data",t)},t.prototype.flush=function(t){this.trigger("done",t)},t.prototype.partialFlush=function(t){this.trigger("partialdone",t)},t.prototype.endTimeline=function(t){this.trigger("endedtimeline",t)},t.prototype.reset=function(t){this.trigger("reset",t)};var e,n,r,s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b,x,T,w,k,S,E,D,C,P,A,M,I,L,O,F,R,B,N,H,V,j,U=t,z=Math.pow(2,32),q={getUint64:function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength);return i.getBigUint64?(e=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(e):e:i.getUint32(0)*z+i.getUint32(4)},MAX_UINT32:z},G=q.MAX_UINT32;!function(){var t;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in w)w.hasOwnProperty(t)&&(w[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),E=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),S=new Uint8Array([0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),C=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),P={video:D,audio:C},I=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),M=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),O=L,F=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=L,A=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),e=function(t){var e,i,n=[],r=0;for(e=1;e<arguments.length;e++)n.push(arguments[e]);for(e=n.length;e--;)r+=n[e].byteLength;for(i=new Uint8Array(r+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(t,4),e=0,r=8;e<n.length;e++)i.set(n[e],r),r+=n[e].byteLength;return i},n=function(){return e(w.dinf,e(w.dref,I))},r=function(t){return e(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},g=function(t){return e(w.hdlr,P[t])},m=function(t){var i=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(i[12]=t.samplerate>>>24&255,i[13]=t.samplerate>>>16&255,i[14]=t.samplerate>>>8&255,i[15]=255&t.samplerate),e(w.mdhd,i)},f=function(t){return e(w.mdia,m(t),g(t.type),o(t))},a=function(t){return e(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},o=function(t){return e(w.minf,"video"===t.type?e(w.vmhd,A):e(w.smhd,M),n(),v(t))},l=function(t,i){for(var n=[],r=i.length;r--;)n[r]=b(i[r]);return e.apply(null,[w.moof,a(t)].concat(n))},u=function(t){for(var i=t.length,n=[];i--;)n[i]=d(t[i]);return e.apply(null,[w.moov,h(4294967295)].concat(n).concat(c(t)))},c=function(t){for(var i=t.length,n=[];i--;)n[i]=x(t[i]);return e.apply(null,[w.mvex].concat(n))},h=function(t){var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(w.mvhd,i)},y=function(t){var i,n,r=t.samples||[],s=new Uint8Array(4+r.length);for(n=0;n<r.length;n++)i=r[n].flags,s[n+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return e(w.sdtp,s)},v=function(t){return e(w.stbl,_(t),e(w.stts,R),e(w.stsc,O),e(w.stsz,F),e(w.stco,L))},_=function(t){return e(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?B(t):N(t))},B=function(t){var i,n,r=t.sps||[],s=t.pps||[],a=[],o=[];for(i=0;i<r.length;i++)a.push((65280&r[i].byteLength)>>>8),a.push(255&r[i].byteLength),a=a.concat(Array.prototype.slice.call(r[i]));for(i=0;i<s.length;i++)o.push((65280&s[i].byteLength)>>>8),o.push(255&s[i].byteLength),o=o.concat(Array.prototype.slice.call(s[i]));if(n=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(w.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],a,[s.length],o))),e(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio){var l=t.sarRatio[0],u=t.sarRatio[1];n.push(e(w.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return e.apply(null,n)},N=function(t){return e(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),r(t))},p=function(t){var i=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return e(w.tkhd,i)},b=function(t){var i,n,r,s,a,o;return i=e(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(t.baseMediaDecodeTime/G),o=Math.floor(t.baseMediaDecodeTime%G),n=e(w.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),"audio"===t.type?(r=T(t,92),e(w.traf,i,n,r)):(s=y(t),r=T(t,s.length+92),e(w.traf,i,n,r,s))},d=function(t){return t.duration=t.duration||4294967295,e(w.trak,p(t),f(t))},x=function(t){var i=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(i[i.length-1]=0),e(w.trex,i)},j=function(t,e){var i=0,n=0,r=0,s=0;return t.length&&(void 0!==t[0].duration&&(i=1),void 0!==t[0].size&&(n=2),void 0!==t[0].flags&&(r=4),void 0!==t[0].compositionTimeOffset&&(s=8)),[0,0,i|n|r|s,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},V=function(t,i){var n,r,s,a,o,l;for(i+=20+16*(a=t.samples||[]).length,s=j(a,i),(r=new Uint8Array(s.length+16*a.length)).set(s),n=s.length,l=0;l<a.length;l++)o=a[l],r[n++]=(4278190080&o.duration)>>>24,r[n++]=(16711680&o.duration)>>>16,r[n++]=(65280&o.duration)>>>8,r[n++]=255&o.duration,r[n++]=(4278190080&o.size)>>>24,r[n++]=(16711680&o.size)>>>16,r[n++]=(65280&o.size)>>>8,r[n++]=255&o.size,r[n++]=o.flags.isLeading<<2|o.flags.dependsOn,r[n++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[n++]=61440&o.flags.degradationPriority,r[n++]=15&o.flags.degradationPriority,r[n++]=(4278190080&o.compositionTimeOffset)>>>24,r[n++]=(16711680&o.compositionTimeOffset)>>>16,r[n++]=(65280&o.compositionTimeOffset)>>>8,r[n++]=255&o.compositionTimeOffset;return e(w.trun,r)},H=function(t,i){var n,r,s,a,o,l;for(i+=20+8*(a=t.samples||[]).length,s=j(a,i),(n=new Uint8Array(s.length+8*a.length)).set(s),r=s.length,l=0;l<a.length;l++)o=a[l],n[r++]=(4278190080&o.duration)>>>24,n[r++]=(16711680&o.duration)>>>16,n[r++]=(65280&o.duration)>>>8,n[r++]=255&o.duration,n[r++]=(4278190080&o.size)>>>24,n[r++]=(16711680&o.size)>>>16,n[r++]=(65280&o.size)>>>8,n[r++]=255&o.size;return e(w.trun,n)},T=function(t,e){return"audio"===t.type?H(t,e):V(t,e)},s=function(){return e(w.ftyp,k,S,k,E)};var W,X,$,Y,K,Q,Z,J,tt=function(t){return e(w.mdat,t)},et=l,it=function(t,e){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=e,i.compositionTimeOffset=t.pts-t.dts,i.duration=t.duration,i.size=4*t.length,i.size+=t.byteLength,t.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},nt=[33,16,5,32,164,27],rt=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],st=function(t){for(var e=[];t--;)e.push(0);return e},at=9e4;Q=function(t,e){return X(K(t,e))},Z=function(t,e){return $(Y(t),e)},J=function(t,e,i){return Y(i?t:t-e)};var ot=at,lt=X=function(t){return t*at},ut=($=function(t,e){return t*e},Y=function(t){return t/at}),ct=(K=function(t,e){return t/e},Q),ht=Z,dt=J,pt=function(t,e,i,n){var r,s,a,o,l,u=0,c=0,h=0;if(e.length&&(r=ct(t.baseMediaDecodeTime,t.samplerate),s=Math.ceil(ot/(t.samplerate/1024)),i&&n&&(u=r-Math.max(i,n),h=(c=Math.floor(u/s))*s),!(c<1||h>45e3))){for((a=function(){if(!W){var t={96e3:[nt,[227,64],st(154),[56]],88200:[nt,[231],st(170),[56]],64e3:[nt,[248,192],st(240),[56]],48e3:[nt,[255,192],st(268),[55,148,128],st(54),[112]],44100:[nt,[255,192],st(268),[55,163,128],st(84),[112]],32e3:[nt,[255,192],st(268),[55,234],st(226),[112]],24e3:[nt,[255,192],st(268),[55,255,128],st(268),[111,112],st(126),[224]],16e3:[nt,[255,192],st(268),[55,255,128],st(268),[111,255],st(269),[223,108],st(195),[1,192]],12e3:[rt,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,253,128],st(259),[56]],11025:[rt,st(268),[3,127,248],st(268),[6,255,240],st(268),[13,255,224],st(268),[27,255,192],st(268),[55,175,128],st(108),[112]],8e3:[rt,st(268),[3,121,16],st(47),[7]]};e=t,W=Object.keys(e).reduce((function(t,i){return t[i]=new Uint8Array(e[i].reduce((function(t,e){return t.concat(e)}),[])),t}),{})}var e;return W}()[t.samplerate])||(a=e[0].data),o=0;o<c;o++)l=e[0],e.splice(0,0,{data:a,dts:l.dts-s,pts:l.pts-s});return t.baseMediaDecodeTime-=Math.floor(ht(h,t.samplerate)),h}},ft=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},mt=function(t,e){var i,n=t.minSegmentDts;return e||(n-=t.timelineStartInfo.dts),i=t.timelineStartInfo.baseMediaDecodeTime,i+=n,i=Math.max(0,i),"audio"===t.type&&(i*=t.samplerate/9e4,i=Math.floor(i)),i},gt=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},yt=function t(e){e=e||{},t.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Dt(0,0),new Dt(0,1),new Dt(1,0),new Dt(1,1)],this.parse708captions_&&(this.cc708Stream_=new Tt({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("partialdone",this.trigger.bind(this,"partialdone")),t.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(yt.prototype=new U).push=function(t){var e,i,n;if("sei_rbsp"===t.nalUnitType&&(e=function(t){for(var e=0,i={payloadType:-1,payloadSize:0},n=0,r=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)n+=255,e++;for(n+=t[e++];255===t[e];)r+=255,e++;if(r+=t[e++],!i.payload&&4===n){if("GA94"===String.fromCharCode(t[e+3],t[e+4],t[e+5],t[e+6])){i.payloadType=n,i.payloadSize=r,i.payload=t.subarray(e,e+r);break}i.payload=void 0}e+=r,n=0,r=0}return i}(t.escapedRBSP)).payload&&4===e.payloadType&&(i=function(t){return 181!==t.payload[0]||49!=(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)}(e)))if(t.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(t.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=function(t,e){var i,n,r,s,a=[];if(!(64&e[0]))return a;for(n=31&e[0],i=0;i<n;i++)s={type:3&e[2+(r=3*i)],pts:t},4&e[r+2]&&(s.ccData=e[r+3]<<8|e[r+4],a.push(s));return a}(t.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==t.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=t.dts}},yt.prototype.flushCCStreams=function(t){this.ccStreams_.forEach((function(e){return"flush"===t?e.flush():e.partialFlush()}),this)},yt.prototype.flushStream=function(t){this.captionPackets_.length?(this.captionPackets_.forEach((function(t,e){t.presortIndex=e})),this.captionPackets_.sort((function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts})),this.captionPackets_.forEach((function(t){t.type<2?this.dispatchCea608Packet(t):this.dispatchCea708Packet(t)}),this),this.captionPackets_.length=0,this.flushCCStreams(t)):this.flushCCStreams(t)},yt.prototype.flush=function(){return this.flushStream("flush")},yt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},yt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},yt.prototype.dispatchCea608Packet=function(t){this.setsTextOrXDSActive(t)?this.activeCea608Channel_[t.type]=null:this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},yt.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},yt.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)},yt.prototype.setsTextOrXDSActive=function(t){return 256==(28928&t.ccData)||4138==(30974&t.ccData)||6186==(30974&t.ccData)},yt.prototype.dispatchCea708Packet=function(t){this.parse708captions_&&this.cc708Stream_.push(t)};var vt={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},_t=function(t){return 32<=t&&t<=127||160<=t&&t<=255},bt=function(t){this.windowNum=t,this.reset()};bt.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},bt.prototype.getText=function(){return this.rows.join("\n")},bt.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},bt.prototype.newLine=function(t){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(t),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},bt.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},bt.prototype.addText=function(t){this.rows[this.rowIdx]+=t},bt.prototype.backspace=function(){if(!this.isEmpty()){var t=this.rows[this.rowIdx];this.rows[this.rowIdx]=t.substr(0,t.length-1)}};var xt=function(t,e,i){this.serviceNum=t,this.text="",this.currentWindow=new bt(-1),this.windows=[],this.stream=i,"string"==typeof e&&this.createTextDecoder(e)};xt.prototype.init=function(t,e){this.startPts=t;for(var i=0;i<8;i++)this.windows[i]=new bt(i),"function"==typeof e&&(this.windows[i].beforeRowOverflow=e)},xt.prototype.setCurrentWindow=function(t){this.currentWindow=this.windows[t]},xt.prototype.createTextDecoder=function(t){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(t)}catch(e){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+t+" encoding. "+e})}};var Tt=function t(e){e=e||{},t.prototype.init.call(this);var i,n=this,r=e.captionServices||{},s={};Object.keys(r).forEach((function(t){i=r[t],/^SERVICE/.test(t)&&(s[t]=i.encoding)})),this.serviceEncodings=s,this.current708Packet=null,this.services={},this.push=function(t){3===t.type?(n.new708Packet(),n.add708Bytes(t)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(t))}};Tt.prototype=new U,Tt.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Tt.prototype.add708Bytes=function(t){var e=t.ccData,i=e>>>8,n=255&e;this.current708Packet.ptsVals.push(t.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(n)},Tt.prototype.push708Packet=function(){var t=this.current708Packet,e=t.data,i=null,n=null,r=0,s=e[r++];for(t.seq=s>>6,t.sizeCode=63&s;r<e.length;r++)n=31&(s=e[r++]),7==(i=s>>5)&&n>0&&(i=s=e[r++]),this.pushServiceBlock(i,r,n),n>0&&(r+=n-1)},Tt.prototype.pushServiceBlock=function(t,e,i){var n,r=e,s=this.current708Packet.data,a=this.services[t];for(a||(a=this.initService(t,r));r<e+i&&r<s.length;r++)n=s[r],_t(n)?r=this.handleText(r,a):24===n?r=this.multiByteCharacter(r,a):16===n?r=this.extendedCommands(r,a):128<=n&&n<=135?r=this.setCurrentWindow(r,a):152<=n&&n<=159?r=this.defineWindow(r,a):136===n?r=this.clearWindows(r,a):140===n?r=this.deleteWindows(r,a):137===n?r=this.displayWindows(r,a):138===n?r=this.hideWindows(r,a):139===n?r=this.toggleWindows(r,a):151===n?r=this.setWindowAttributes(r,a):144===n?r=this.setPenAttributes(r,a):145===n?r=this.setPenColor(r,a):146===n?r=this.setPenLocation(r,a):143===n?a=this.reset(r,a):8===n?a.currentWindow.backspace():12===n?a.currentWindow.clearText():13===n?a.currentWindow.pendingNewLine=!0:14===n?a.currentWindow.clearText():141===n&&r++},Tt.prototype.extendedCommands=function(t,e){var i=this.current708Packet.data[++t];return _t(i)&&(t=this.handleText(t,e,{isExtended:!0})),t},Tt.prototype.getPts=function(t){return this.current708Packet.ptsVals[Math.floor(t/2)]},Tt.prototype.initService=function(t,e){var i,n,r=this;return(i="SERVICE"+t)in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[t]=new xt(t,n,r),this.services[t].init(this.getPts(e),(function(e){r.flushDisplayed(e,r.services[t])})),this.services[t]},Tt.prototype.handleText=function(t,e,i){var n,r,s,a,o=i&&i.isExtended,l=i&&i.isMultiByte,u=this.current708Packet.data,c=o?4096:0,h=u[t],d=u[t+1],p=e.currentWindow;return e.textDecoder_&&!o?(l?(r=[h,d],t++):r=[h],n=e.textDecoder_.decode(new Uint8Array(r))):(a=vt[s=c|h]||s,n=4096&s&&s===a?"":String.fromCharCode(a)),p.pendingNewLine&&!p.isEmpty()&&p.newLine(this.getPts(t)),p.pendingNewLine=!1,p.addText(n),t},Tt.prototype.multiByteCharacter=function(t,e){var i=this.current708Packet.data,n=i[t+1],r=i[t+2];return _t(n)&&_t(r)&&(t=this.handleText(++t,e,{isMultiByte:!0})),t},Tt.prototype.setCurrentWindow=function(t,e){var i=7&this.current708Packet.data[t];return e.setCurrentWindow(i),t},Tt.prototype.defineWindow=function(t,e){var i=this.current708Packet.data,n=i[t],r=7&n;e.setCurrentWindow(r);var s=e.currentWindow;return n=i[++t],s.visible=(32&n)>>5,s.rowLock=(16&n)>>4,s.columnLock=(8&n)>>3,s.priority=7&n,n=i[++t],s.relativePositioning=(128&n)>>7,s.anchorVertical=127&n,n=i[++t],s.anchorHorizontal=n,n=i[++t],s.anchorPoint=(240&n)>>4,s.rowCount=15&n,n=i[++t],s.columnCount=63&n,n=i[++t],s.windowStyle=(56&n)>>3,s.penStyle=7&n,s.virtualRowCount=s.rowCount+1,t},Tt.prototype.setWindowAttributes=function(t,e){var i=this.current708Packet.data,n=i[t],r=e.currentWindow.winAttr;return n=i[++t],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++t],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++t],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++t],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,t},Tt.prototype.flushDisplayed=function(t,e){for(var i=[],n=0;n<8;n++)e.windows[n].visible&&!e.windows[n].isEmpty()&&i.push(e.windows[n].getText());e.endPts=t,e.text=i.join("\n\n"),this.pushCaption(e),e.startPts=t},Tt.prototype.pushCaption=function(t){""!==t.text&&(this.trigger("data",{startPts:t.startPts,endPts:t.endPts,text:t.text,stream:"cc708_"+t.serviceNum}),t.text="",t.startPts=t.endPts)},Tt.prototype.displayWindows=function(t,e){var i=this.current708Packet.data[++t],n=this.getPts(t);this.flushDisplayed(n,e);for(var r=0;r<8;r++)i&1<<r&&(e.windows[r].visible=1);return t},Tt.prototype.hideWindows=function(t,e){var i=this.current708Packet.data[++t],n=this.getPts(t);this.flushDisplayed(n,e);for(var r=0;r<8;r++)i&1<<r&&(e.windows[r].visible=0);return t},Tt.prototype.toggleWindows=function(t,e){var i=this.current708Packet.data[++t],n=this.getPts(t);this.flushDisplayed(n,e);for(var r=0;r<8;r++)i&1<<r&&(e.windows[r].visible^=1);return t},Tt.prototype.clearWindows=function(t,e){var i=this.current708Packet.data[++t],n=this.getPts(t);this.flushDisplayed(n,e);for(var r=0;r<8;r++)i&1<<r&&e.windows[r].clearText();return t},Tt.prototype.deleteWindows=function(t,e){var i=this.current708Packet.data[++t],n=this.getPts(t);this.flushDisplayed(n,e);for(var r=0;r<8;r++)i&1<<r&&e.windows[r].reset();return t},Tt.prototype.setPenAttributes=function(t,e){var i=this.current708Packet.data,n=i[t],r=e.currentWindow.penAttr;return n=i[++t],r.textTag=(240&n)>>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++t],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,t},Tt.prototype.setPenColor=function(t,e){var i=this.current708Packet.data,n=i[t],r=e.currentWindow.penColor;return n=i[++t],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++t],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++t],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,t},Tt.prototype.setPenLocation=function(t,e){var i=this.current708Packet.data,n=i[t],r=e.currentWindow.penLoc;return e.currentWindow.pendingNewLine=!0,n=i[++t],r.row=15&n,n=i[++t],r.column=63&n,t},Tt.prototype.reset=function(t,e){var i=this.getPts(t);return this.flushDisplayed(i,e),this.initService(e.serviceNum,t)};var wt={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},kt=function(t){return null===t?"":(t=wt[t]||t,String.fromCharCode(t))},St=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Et=function(){for(var t=[],e=15;e--;)t.push("");return t},Dt=function t(e,i){t.prototype.init.call(this),this.field_=e||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,i,n,r,s;if((e=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),n=e>>>8,r=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(t.pts),this.flushDisplayed(t.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(t.pts);else if(e===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(t.pts);else if(e===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(t.pts);else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=Et();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Et();else if(e===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(t.pts),this.displayed_=Et()),this.mode_="paintOn",this.startPts_=t.pts;else if(this.isSpecialCharacter(n,r))s=kt((n=(3&n)<<8)|r),this[this.mode_](t.pts,s),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),s=kt((n=(3&n)<<8)|r),this[this.mode_](t.pts,s),this.column_++;else if(this.isMidRowCode(n,r))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&r)&&this.addFormatting(t.pts,["i"]),1==(1&r)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var a=St.indexOf(7968&e);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(t.pts,a)),a!==this.row_&&(this.clearFormatting(t.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),s=kt(n),s+=kt(r),this[this.mode_](t.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};Dt.prototype=new U,Dt.prototype.flushDisplayed=function(t){var e=this.displayed_.map((function(t,e){try{return t.trim()}catch(t){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},Dt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Et(),this.nonDisplayed_=Et(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Dt.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Dt.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},Dt.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},Dt.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},Dt.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},Dt.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},Dt.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},Dt.prototype.isNormalChar=function(t){return t>=32&&t<=127},Dt.prototype.setRollUp=function(t,e){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(t),this.nonDisplayed_=Et(),this.displayed_=Et()),void 0!==e&&e!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[e-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===e&&(e=this.row_),this.topRow_=e-this.rollUpRows_+1},Dt.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var i=e.reduce((function(t,e){return t+"<"+e+">"}),"");this[this.mode_](t,i)},Dt.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce((function(t,e){return t+"</"+e+">"}),"");this.formatting_=[],this[this.mode_](t,e)}},Dt.prototype.popOn=function(t,e){var i=this.nonDisplayed_[this.row_];i+=e,this.nonDisplayed_[this.row_]=i},Dt.prototype.rollUp=function(t,e){var i=this.displayed_[this.row_];i+=e,this.displayed_[this.row_]=i},Dt.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.row_+1;t<15;t++)this.displayed_[t]="";for(t=this.topRow_;t<this.row_;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[this.row_]=""},Dt.prototype.paintOn=function(t,e){var i=this.displayed_[this.row_];i+=e,this.displayed_[this.row_]=i};var Ct={CaptionStream:yt,Cea608Stream:Dt,Cea708Stream:Tt},Pt={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},At="shared",Mt=function(t,e){var i=1;for(t>e&&(i=-1);Math.abs(e-t)>4294967296;)t+=8589934592*i;return t},It=function t(e){var i,n;t.prototype.init.call(this),this.type_=e||At,this.push=function(t){this.type_!==At&&t.type!==this.type_||(void 0===n&&(n=t.dts),t.dts=Mt(t.dts,n),t.pts=Mt(t.pts,n),i=t.dts,this.trigger("data",t))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};It.prototype=new U;var Lt,Ot=It,Ft=Mt,Rt=function(t,e,i){var n,r="";for(n=e;n<i;n++)r+="%"+("00"+t[n].toString(16)).slice(-2);return r},Bt=function(t,e,i){return decodeURIComponent(Rt(t,e,i))},Nt=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},Ht={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Bt(t.data,1,e),t.value=Bt(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=Bt(t.data,1,e),t.url=Bt(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,i;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=(i=t.data,unescape(Rt(i,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};Lt=function(t){var e,i={descriptor:t&&t.descriptor},n=0,r=[],s=0;if(Lt.prototype.init.call(this),this.dispatchType=Pt.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(e=0;e<i.descriptor.length;e++)this.dispatchType+=("00"+i.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,i,a,o,l;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(s=0,r.length=0),0===r.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(t),s+=t.data.byteLength,1===r.length&&(n=Nt(t.data.subarray(6,10)),n+=10),!(s<n)){for(e={data:new Uint8Array(n),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<n;)e.data.set(r[0].data.subarray(0,n-l),l),l+=r[0].data.byteLength,s-=r[0].data.byteLength,r.shift();i=10,64&e.data[5]&&(i+=4,i+=Nt(e.data.subarray(10,14)),n-=Nt(e.data.subarray(16,20)));do{if((a=Nt(e.data.subarray(i+4,i+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((o={id:String.fromCharCode(e.data[i],e.data[i+1],e.data[i+2],e.data[i+3]),data:e.data.subarray(i+10,i+a+10)}).key=o.id,Ht[o.id]&&(Ht[o.id](o),"com.apple.streaming.transportStreamTimestamp"===o.owner)){var u=o.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],o.timeStamp=c,void 0===e.pts&&void 0===e.dts&&(e.pts=o.timeStamp,e.dts=o.timeStamp),this.trigger("timestamp",o)}e.frames.push(o),i+=10,i+=a}while(i<n);this.trigger("data",e)}}},Lt.prototype=new U;var Vt,jt,Ut,zt=Lt,qt=Ot,Gt=188;(Vt=function(){var t=new Uint8Array(Gt),e=0;Vt.prototype.init.call(this),this.push=function(i){var n,r=0,s=Gt;for(e?((n=new Uint8Array(i.byteLength+e)).set(t.subarray(0,e)),n.set(i,e),e=0):n=i;s<n.byteLength;)71!==n[r]||71!==n[s]?(r++,s++):(this.trigger("data",n.subarray(r,s)),r+=Gt,s+=Gt);r<n.byteLength&&(t.set(n.subarray(r),0),e=n.byteLength-r)},this.flush=function(){e===Gt&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){e=0,this.trigger("reset")}}).prototype=new U,jt=function(){var t,e,i,n;jt.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,n){var r=0;n.payloadUnitStartIndicator&&(r+=t[r]+1),"pat"===n.type?e(t.subarray(r),n):i(t.subarray(r),n)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],n.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=n.pmtPid},i=function(t,e){var i,r;if(1&t[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&t[1])<<8|t[2])-4,r=12+((15&t[10])<<8|t[11]);r<i;){var s=t[r],a=(31&t[r+1])<<8|t[r+2];s===Pt.H264_STREAM_TYPE&&null===n.programMapTable.video?n.programMapTable.video=a:s===Pt.ADTS_STREAM_TYPE&&null===n.programMapTable.audio?n.programMapTable.audio=a:s===Pt.METADATA_STREAM_TYPE&&(n.programMapTable["timed-metadata"][a]=s),r+=5+((15&t[r+3])<<8|t[r+4])}e.programMapTable=n.programMapTable}},this.push=function(e){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&e[1]),i.pid=31&e[1],i.pid<<=8,i.pid|=e[2],(48&e[3])>>>4>1&&(n+=e[n]+1),0===i.pid)i.type="pat",t(e.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",t(e.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,n,i]):this.processPes_(e,n,i)},this.processPes_=function(t,e,i){i.pid===this.programMapTable.video?i.streamType=Pt.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=Pt.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=t.subarray(e),this.trigger("data",i)}},jt.prototype=new U,jt.STREAM_TYPES={h264:27,adts:15},Ut=function(){var t,e=this,i=!1,n={data:[],size:0},r={data:[],size:0},s={data:[],size:0},a=function(t,i,n){var r,s,a=new Uint8Array(t.size),o={type:i},l=0,u=0;if(t.data.length&&!(t.size<9)){for(o.trackId=t.data[0].pid,l=0;l<t.data.length;l++)s=t.data[l],a.set(s.data,u),u+=s.data.byteLength;var c,h,d,p;h=o,p=(c=a)[0]<<16|c[1]<<8|c[2],h.data=new Uint8Array,1===p&&(h.packetLength=6+(c[4]<<8|c[5]),h.dataAlignmentIndicator=0!=(4&c[6]),192&(d=c[7])&&(h.pts=(14&c[9])<<27|(255&c[10])<<20|(254&c[11])<<12|(255&c[12])<<5|(254&c[13])>>>3,h.pts*=4,h.pts+=(6&c[13])>>>1,h.dts=h.pts,64&d&&(h.dts=(14&c[14])<<27|(255&c[15])<<20|(254&c[16])<<12|(255&c[17])<<5|(254&c[18])>>>3,h.dts*=4,h.dts+=(6&c[18])>>>1)),h.data=c.subarray(9+c[8])),r="video"===i||o.packetLength<=t.size,(n||r)&&(t.size=0,t.data.length=0),r&&e.trigger("data",o)}};Ut.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var t,e;switch(o.streamType){case Pt.H264_STREAM_TYPE:t=n,e="video";break;case Pt.ADTS_STREAM_TYPE:t=r,e="audio";break;case Pt.METADATA_STREAM_TYPE:t=s,e="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&a(t,e,!0),t.data.push(o),t.size+=o.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};null!==(t=o.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),i=!0,e.trigger("data",n)}})[o.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){a(n,"video"),a(r,"audio"),a(s,"timed-metadata")},this.flush=function(){if(!i&&t){var n={type:"metadata",tracks:[]};null!==t.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),e.trigger("data",n)}i=!1,this.flushStreams_(),this.trigger("done")}},Ut.prototype=new U;var Wt={PAT_PID:0,MP2T_PACKET_LENGTH:Gt,TransportPacketStream:Vt,TransportParseStream:jt,ElementaryStream:Ut,TimestampRolloverStream:qt,CaptionStream:Ct.CaptionStream,Cea608Stream:Ct.Cea608Stream,Cea708Stream:Ct.Cea708Stream,MetadataStream:zt};for(var Xt in Pt)Pt.hasOwnProperty(Xt)&&(Wt[Xt]=Pt[Xt]);var $t,Yt=Wt,Kt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];$t=function(t){var e,i=0;$t.prototype.init.call(this),this.skipWarn_=function(t,e){this.trigger("log",{level:"warn",message:"adts skiping bytes "+t+" to "+e+" in frame "+i+" outside syncword"})},this.push=function(n){var r,s,a,o,l,u=0;if(t||(i=0),"audio"===n.type){var c;for(e&&e.length?(a=e,(e=new Uint8Array(a.byteLength+n.data.byteLength)).set(a),e.set(n.data,a.byteLength)):e=n.data;u+7<e.length;)if(255===e[u]&&240==(246&e[u+1])){if("number"==typeof c&&(this.skipWarn_(c,u),c=null),s=2*(1&~e[u+1]),r=(3&e[u+3])<<11|e[u+4]<<3|(224&e[u+5])>>5,l=9e4*(o=1024*(1+(3&e[u+6])))/Kt[(60&e[u+2])>>>2],e.byteLength-u<r)break;this.trigger("data",{pts:n.pts+i*l,dts:n.dts+i*l,sampleCount:o,audioobjecttype:1+(e[u+2]>>>6&3),channelcount:(1&e[u+2])<<2|(192&e[u+3])>>>6,samplerate:Kt[(60&e[u+2])>>>2],samplingfrequencyindex:(60&e[u+2])>>>2,samplesize:16,data:e.subarray(u+7+s,u+r)}),i++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),e=e.subarray(u)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){e=void 0,this.trigger("reset")},this.endTimeline=function(){e=void 0,this.trigger("endedtimeline")}},$t.prototype=new U;var Qt,Zt,Jt,te=$t,ee=function(t){var e=t.byteLength,i=0,n=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+n},this.loadWord=function(){var r=t.byteLength-e,s=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error("no bytes available");s.set(t.subarray(r,r+a)),i=new DataView(s.buffer).getUint32(0),n=8*a,e-=a},this.skipBits=function(t){var r;n>t?(i<<=t,n-=t):(t-=n,t-=8*(r=Math.floor(t/8)),e-=r,this.loadWord(),i<<=t,n-=t)},this.readBits=function(t){var r=Math.min(n,t),s=i>>>32-r;return(n-=r)>0?i<<=r:e>0&&this.loadWord(),(r=t-r)>0?s<<r|this.readBits(r):s},this.skipLeadingZeros=function(){var t;for(t=0;t<n;++t)if(0!=(i&2147483648>>>t))return i<<=t,n-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};Zt=function(){var t,e,i=0;Zt.prototype.init.call(this),this.push=function(n){var r;e?((r=new Uint8Array(e.byteLength+n.data.byteLength)).set(e),r.set(n.data,e.byteLength),e=r):e=n.data;for(var s=e.byteLength;i<s-3;i++)if(1===e[i+2]){t=i+5;break}for(;t<s;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}i+3!==t-2&&this.trigger("data",e.subarray(i+3,t-2));do{t++}while(1!==e[t]&&t<s);i=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(i+3,t-2)),i=t-2,t+=3;break;default:t+=3}e=e.subarray(i),t-=i,i=0},this.reset=function(){e=null,i=0,this.trigger("reset")},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(i+3)),e=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},Zt.prototype=new U,Jt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Qt=function(){var t,e,i,n,r,s,a,o=new Zt;Qt.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,i=t.pts,n=t.dts,o.push(t))},o.on("data",(function(a){var o={trackId:e,pts:i,dts:n,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(a.subarray(1)),o.config=s(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",o)})),o.on("done",(function(){t.trigger("done")})),o.on("partialdone",(function(){t.trigger("partialdone")})),o.on("reset",(function(){t.trigger("reset")})),o.on("endedtimeline",(function(){t.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(t,e){var i,n=8,r=8;for(i=0;i<t;i++)0!==r&&(r=(n+e.readExpGolomb()+256)%256),n=0===r?n:r},r=function(t){for(var e,i,n=t.byteLength,r=[],s=1;s<n-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var a=0;for(s=0;s<e;a++,s++)a===r[0]&&(a++,r.shift()),i[s]=t[a];return i},s=function(t){var e,i,n,r,s,o,l,u,c,h,d,p,f=0,m=0,g=0,y=0,v=[1,1];if(i=(e=new ee(t)).readUnsignedByte(),r=e.readUnsignedByte(),n=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),Jt[i]&&(3===(s=e.readUnsignedExpGolomb())&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(d=3!==s?8:12,p=0;p<d;p++)e.readBoolean()&&a(p<6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(o=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===o)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),l=e.readUnsignedExpGolomb(),p=0;p<l;p++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),u=e.readUnsignedExpGolomb(),c=e.readUnsignedExpGolomb(),0===(h=e.readBits(1))&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(f=e.readUnsignedExpGolomb(),m=e.readUnsignedExpGolomb(),g=e.readUnsignedExpGolomb(),y=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(e.readUnsignedByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()]}v&&(v[0],v[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:16*(u+1)-2*f-2*m,height:(2-h)*(c+1)*16-2*g-2*y,sarRatio:v}}},Qt.prototype=new U;var ie,ne={H264Stream:Qt,NalByteStream:Zt},re=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],se=function(t,e){var i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return i=i>=0?i:0,(16&t[e+5])>>4?i+20:i+10},ae=function t(e,i){return e.length-i<10||e[i]!=="I".charCodeAt(0)||e[i+1]!=="D".charCodeAt(0)||e[i+2]!=="3".charCodeAt(0)?i:t(e,i+=se(e,i))},oe=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},le={isLikelyAacData:function(t){var e=ae(t,0);return t.length>=e+2&&255==(255&t[e])&&240==(240&t[e+1])&&16==(22&t[e+1])},parseId3TagSize:se,parseAdtsSize:function(t,e){var i=(224&t[e+5])>>5,n=t[e+4]<<3;return 6144&t[e+3]|n|i},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5<t.length;){if(255===t[e]&&240==(246&t[e+1]))return re[(60&t[e+2])>>>2];e++}return null},parseAacTimestamp:function(t){var e,i,n;e=10,64&t[5]&&(e+=4,e+=oe(t.subarray(10,14)));do{if((i=oe(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){n=t.subarray(e+10,e+i+10);for(var r=0;r<n.byteLength;r++)if(0===n[r]){var s=unescape(function(t,e,i){var n,r="";for(n=0;n<i;n++)r+="%"+("00"+t[n].toString(16)).slice(-2);return r}(n,0,r));if("com.apple.streaming.transportStreamTimestamp"===s){var a=n.subarray(r+1),o=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return(o*=4)+(3&a[7])}break}}e+=10,e+=i}while(e<t.byteLength);return null}};(ie=function(){var t=new Uint8Array,e=0;ie.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.push=function(i){var n,r,s,a,o=0,l=0;for(t.length?(a=t.length,(t=new Uint8Array(i.byteLength+a)).set(t.subarray(0,a)),t.set(i,a)):t=i;t.length-l>=3;)if(t[l]!=="I".charCodeAt(0)||t[l+1]!=="D".charCodeAt(0)||t[l+2]!=="3".charCodeAt(0))if(255!=(255&t[l])||240!=(240&t[l+1]))l++;else{if(t.length-l<7)break;if(l+(o=le.parseAdtsSize(t,l))>t.length)break;s={type:"audio",data:t.subarray(l,l+o),pts:e,dts:e},this.trigger("data",s),l+=o}else{if(t.length-l<10)break;if(l+(o=le.parseId3TagSize(t,l))>t.length)break;r={type:"timed-metadata",data:t.subarray(l,l+o)},this.trigger("data",r),l+=o}n=t.length-l,t=n>0?t.subarray(l):new Uint8Array},this.reset=function(){t=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){t=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new U;var ue,ce,he,de,pe=ie,fe=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],me=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],ge=ne.H264Stream,ye=le.isLikelyAacData,ve=function(t,e){e.stream=t,this.trigger("log",e)},_e=function(t,e){for(var i=Object.keys(e),n=0;n<i.length;n++){var r=i[n];"headOfPipeline"!==r&&e[r].on&&e[r].on("log",ve.bind(t,r))}},be=function(t,e){var i;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0},xe=function(t,e,i,n,r,s){return{start:{dts:t,pts:t+(i-e)},end:{dts:t+(n-e),pts:t+(r-i)},prependedContentDuration:s,baseMediaDecodeTime:t}};ce=function(t,e){var i,n=[],r=0,s=0,a=1/0;i=(e=e||{}).firstSequenceNumber||0,ce.prototype.init.call(this),this.push=function(e){gt(t,e),t&&fe.forEach((function(i){t[i]=e[i]})),n.push(e)},this.setEarliestDts=function(t){r=t},this.setVideoBaseMediaDecodeTime=function(t){a=t},this.setAudioAppendStart=function(t){s=t},this.flush=function(){var o,l,u,c,h,d,p;0!==n.length?(o=function(t,e,i){return e.minSegmentDts>=i?t:(e.minSegmentDts=1/0,t.filter((function(t){return t.dts>=i&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)})))}(n,t,r),t.baseMediaDecodeTime=mt(t,e.keepOriginalTimestamps),p=pt(t,o,s,a),t.samples=function(t){var e,i,n=[];for(e=0;e<t.length;e++)i=t[e],n.push({size:i.data.byteLength,duration:1024});return n}(o),u=tt(function(t){var e,i,n=0,r=new Uint8Array(function(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e].data.byteLength;return i}(t));for(e=0;e<t.length;e++)i=t[e],r.set(i.data,n),n+=i.data.byteLength;return r}(o)),n=[],l=et(i,[t]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),ft(t),h=Math.ceil(9216e4/t.samplerate),o.length&&(d=o.length*h,this.trigger("segmentTimingInfo",xe(ct(t.baseMediaDecodeTime,t.samplerate),o[0].dts,o[0].pts,o[0].dts+d,o[0].pts+d,p||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+d})),this.trigger("data",{track:t,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){ft(t),n=[],this.trigger("reset")}},ce.prototype=new U,ue=function(t,e){var i,n,r,s=[],a=[];i=(e=e||{}).firstSequenceNumber||0,ue.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){gt(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.config,t.sps=[e.data],me.forEach((function(e){t[e]=n[e]}),this)),"pic_parameter_set_rbsp"!==e.nalUnitType||r||(r=e.data,t.pps=[e.data]),s.push(e)},this.flush=function(){for(var n,r,o,l,u,c,h,d,p=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=function(t){var e,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0,e=0;e<t.length;e++)"access_unit_delimiter_rbsp"===(i=t[e]).nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r}(s),(o=function(t){var e,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=t[0].pts,n.dts=t[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=t[0].pts,r.dts=t[0].dts,e=0;e<t.length;e++)(i=t[e]).keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r}(n))[0][0].keyFrame||((r=this.getGopForFusion_(s[0],t))?(p=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t}(o)),a.length){var f;if(!(f=e.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");ft(t),o=f}gt(t,o),t.samples=function(t,e){var i,n,r,s,a,o=e||0,l=[];for(i=0;i<t.length;i++)for(s=t[i],n=0;n<s.length;n++)a=s[n],o+=(r=it(a,o)).size,l.push(r);return l}(o),u=tt(function(t){var e,i,n,r,s,a,o=0,l=t.byteLength,u=t.nalCount,c=new Uint8Array(l+4*u),h=new DataView(c.buffer);for(e=0;e<t.length;e++)for(r=t[e],i=0;i<r.length;i++)for(s=r[i],n=0;n<s.length;n++)a=s[n],h.setUint32(o,a.data.byteLength),o+=4,c.set(a.data,o),o+=a.data.byteLength;return c}(o)),t.baseMediaDecodeTime=mt(t,e.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map((function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}}))),h=o[0],d=o[o.length-1],this.trigger("segmentTimingInfo",xe(t.baseMediaDecodeTime,h.dts,h.pts,d.dts+d.duration,d.pts+d.duration,p)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),l=et(i,[t]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:t,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){ft(t),n=void 0,r=void 0},this.getGopForFusion_=function(e){var i,n,r,s,a,o=1/0;for(a=0;a<this.gopCache_.length;a++)r=(s=this.gopCache_[a]).gop,t.pps&&be(t.pps[0],s.pps[0])&&t.sps&&be(t.sps[0],s.sps[0])&&(r.dts<t.timelineStartInfo.dts||(i=e.dts-r.dts-r.duration)>=-1e4&&i<=45e3&&(!n||o>i)&&(n=s,o=i));return n?n.gop:null},this.alignGopsAtStart_=function(t){var e,i,n,r,s,o,l,u;for(s=t.byteLength,o=t.nalCount,l=t.duration,e=i=0;e<a.length&&i<t.length&&(n=a[e],r=t[i],n.pts!==r.pts);)r.pts>n.pts?e++:(i++,s-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?t:i===t.length?null:((u=t.slice(i)).byteLength=s,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(t){var e,i,n,r,s,o,l;for(e=a.length-1,i=t.length-1,s=null,o=!1;e>=0&&i>=0;){if(n=a[e],r=t[i],n.pts===r.pts){o=!0;break}n.pts>r.pts?e--:(e===a.length-1&&(s=i),i--)}if(!o&&null===s)return null;if(0===(l=o?i:s))return t;var u=t.slice(l),c=u.reduce((function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(t){a=t}},ue.prototype=new U,de=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==(t=t||{}).remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,"boolean"==typeof t.keepOriginalTimestamps?this.keepOriginalTimestamps=t.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,de.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track,this.pendingBoxes.push(t.boxes)),void("audio"===t.track.type&&(this.audioTrack=t.track,this.pendingBoxes.unshift(t.boxes))))}},de.prototype=new U,de.prototype.flush=function(t){var e,i,n,r,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},l=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(l=this.videoTrack.timelineStartInfo.pts,me.forEach((function(t){o.info[t]=this.videoTrack[t]}),this)):this.audioTrack&&(l=this.audioTrack.timelineStartInfo.pts,fe.forEach((function(t){o.info[t]=this.audioTrack[t]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,n=function(t){var e,i=s(),n=u(t);return(e=new Uint8Array(i.byteLength+n.byteLength)).set(i),e.set(n,i.byteLength),e}(this.pendingTracks),o.initSegment=new Uint8Array(n.byteLength),o.initSegment.set(n),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(e=this.pendingCaptions[r]).startTime=dt(e.startPts,l,this.keepOriginalTimestamps),e.endTime=dt(e.endPts,l,this.keepOriginalTimestamps),o.captionStreams[e.stream]=!0,o.captions.push(e);for(r=0;r<this.pendingMetadata.length;r++)(i=this.pendingMetadata[r]).cueTime=dt(i.pts,l,this.keepOriginalTimestamps),o.metadata.push(i);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),r=0;r<o.captions.length;r++)e=o.captions[r],this.trigger("caption",e);for(r=0;r<o.metadata.length;r++)i=o.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},de.prototype.setRemux=function(t){this.remuxTracks=t},he=function(t){var e,i,n=this,r=!0;he.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new Yt.MetadataStream,r.aacStream=new pe,r.audioTimestampRolloverStream=new Yt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Yt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new te,r.coalesceStream=new de(t,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(t){r.aacStream.setTimestamp(t.timeStamp)})),r.aacStream.on("data",(function(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ce(i,t),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!e}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),_e(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Yt.MetadataStream,r.packetStream=new Yt.TransportPacketStream,r.parseStream=new Yt.TransportParseStream,r.elementaryStream=new Yt.ElementaryStream,r.timestampRolloverStream=new Yt.TimestampRolloverStream,r.adtsStream=new te,r.h264Stream=new ge,r.captionStream=new Yt.CaptionStream(t),r.coalesceStream=new de(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(s){var a;if("metadata"===s.type){for(a=s.tracks.length;a--;)e||"video"!==s.tracks[a].type?i||"audio"!==s.tracks[a].type||((i=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(e=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime;e&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new ue(e,t),r.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(e){i&&!t.keepOriginalTimestamps&&(i.timelineStartInfo=e,r.audioSegmentStream.setEarliestDts(e.dts-n.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(t){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)})),r.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ce(i,t),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!e})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(t){t.dispatchType=r.metadataStream.dispatchType,n.trigger("id3Frame",t)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),_e(this,r)},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;t.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,ft(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),e&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,ft(e),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.setRemux=function(e){var i=this.transmuxPipeline_;t.remux=e,i&&i.coalesceStream&&i.coalesceStream.setRemux(e)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.getLogTrigger_=function(t){var e=this;return function(i){i.stream=t,e.trigger("log",i)}},this.push=function(t){if(r){var e=ye(t);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},he.prototype=new U;var Te,we,ke,Se={Transmuxer:he,VideoSegmentStream:ue,AudioSegmentStream:ce,AUDIO_PROPERTIES:fe,VIDEO_PROPERTIES:me,generateSegmentTimingInfo:xe},Ee=function(t){return t>>>0},De=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),(e+=String.fromCharCode(t[2]))+String.fromCharCode(t[3])},Ce=Ee,Pe=function t(e,i){var n,r,s,a,o,l=[];if(!i.length)return null;for(n=0;n<e.byteLength;)r=Ce(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),s=De(e.subarray(n+4,n+8)),a=r>1?n+r:e.byteLength,s===i[0]&&(1===i.length?l.push(e.subarray(n+8,a)):(o=t(e.subarray(n+8,a),i.slice(1))).length&&(l=l.concat(o))),n=a;return l},Ae=Ee,Me=q.getUint64,Ie=function(t){return{isLeading:(12&t[0])>>>2,dependsOn:3&t[0],isDependedOn:(192&t[1])>>>6,hasRedundancy:(48&t[1])>>>4,paddingValue:(14&t[1])>>>1,isNonSyncSample:1&t[1],degradationPriority:t[2]<<8|t[3]}},Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},Oe="undefined"!=typeof window?window:void 0!==Le?Le:"undefined"!=typeof self?self:{},Fe=function(t){for(var e,i,n=t.byteLength,r=[],s=1;s<n-2;)0===t[s]&&0===t[s+1]&&3===t[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var a=0;for(s=0;s<e;a++,s++)a===r[0]&&(a++,r.shift()),i[s]=t[a];return i},Re=Ct.CaptionStream,Be=function(t,e){for(var i=t,n=0;n<e.length;n++){var r=e[n];if(i<r.size)return r;i-=r.size}return null},Ne=function(t,e){var i=Pe(t,["moof","traf"]),n=Pe(t,["mdat"]),r={},s=[];return n.forEach((function(t,e){var n=i[e];s.push({mdat:t,traf:n})})),s.forEach((function(t){var i,n,s=t.mdat,a=t.traf,o=function(t){var e,i=new DataView(t.buffer,t.byteOffset,t.byteLength),n={version:t[0],flags:new Uint8Array(t.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],s=2&n.flags[2],a=8&n.flags[2],o=16&n.flags[2],l=32&n.flags[2],u=65536&n.flags[0],c=131072&n.flags[0];return e=8,r&&(e+=4,n.baseDataOffset=i.getUint32(12),e+=4),s&&(n.sampleDescriptionIndex=i.getUint32(e),e+=4),a&&(n.defaultSampleDuration=i.getUint32(e),e+=4),o&&(n.defaultSampleSize=i.getUint32(e),e+=4),l&&(n.defaultSampleFlags=i.getUint32(e)),u&&(n.durationIsEmpty=!0),!r&&c&&(n.baseDataOffsetIsMoof=!0),n}(Pe(a,["tfhd"])[0]),l=o.trackId,u=Pe(a,["tfdt"]),c=u.length>0?function(t){var e={version:t[0],flags:new Uint8Array(t.subarray(1,4))};return 1===e.version?e.baseMediaDecodeTime=Me(t.subarray(4)):e.baseMediaDecodeTime=Ae(t[4]<<24|t[5]<<16|t[6]<<8|t[7]),e}(u[0]).baseMediaDecodeTime:0,h=Pe(a,["trun"]);e===l&&h.length>0&&(i=function(t,e,i){var n=e,r=i.defaultSampleDuration||0,s=i.defaultSampleSize||0,a=i.trackId,o=[];return t.forEach((function(t){var e=function(t){var e,i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),samples:[]},n=new DataView(t.buffer,t.byteOffset,t.byteLength),r=1&i.flags[2],s=4&i.flags[2],a=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],c=n.getUint32(4),h=8;for(r&&(i.dataOffset=n.getInt32(h),h+=4),s&&c&&(e={flags:Ie(t.subarray(h,h+4))},h+=4,a&&(e.duration=n.getUint32(h),h+=4),o&&(e.size=n.getUint32(h),h+=4),u&&(1===i.version?e.compositionTimeOffset=n.getInt32(h):e.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(e),c--);c--;)e={},a&&(e.duration=n.getUint32(h),h+=4),o&&(e.size=n.getUint32(h),h+=4),l&&(e.flags=Ie(t.subarray(h,h+4)),h+=4),u&&(1===i.version?e.compositionTimeOffset=n.getInt32(h):e.compositionTimeOffset=n.getUint32(h),h+=4),i.samples.push(e);return i}(t).samples;e.forEach((function(t){void 0===t.duration&&(t.duration=r),void 0===t.size&&(t.size=s),t.trackId=a,t.dts=n,void 0===t.compositionTimeOffset&&(t.compositionTimeOffset=0),"bigint"==typeof n?(t.pts=n+Oe.BigInt(t.compositionTimeOffset),n+=Oe.BigInt(t.duration)):(t.pts=n+t.compositionTimeOffset,n+=t.duration)})),o=o.concat(e)})),o}(h,c,o),n=function(t,e,i){var n,r,s,a,o=new DataView(t.buffer,t.byteOffset,t.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<t.length;r+=s)if(s=o.getUint32(r),r+=4,!(s<=0))switch(31&t[r]){case 6:var u=t.subarray(r+1,r+1+s),c=Be(r,e);if(n={nalUnitType:"sei_rbsp",size:s,data:u,escapedRBSP:Fe(u),trackId:i},c)n.pts=c.pts,n.dts=c.dts,a=c;else{if(!a){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+i+". See mux.js#223."});break}n.pts=a.pts,n.dts=a.dts}l.seiNals.push(n)}return l}(s,i,l),r[l]||(r[l]={seiNals:[],logs:[]}),r[l].seiNals=r[l].seiNals.concat(n.seiNals),r[l].logs=r[l].logs.concat(n.logs))})),r},He=function(){var t,e,i,n,r,s,a=!1;this.isInitialized=function(){return a},this.init=function(e){t=new Re,a=!0,s=!!e&&e.isPartial,t.on("data",(function(t){t.startTime=t.startPts/n,t.endTime=t.endPts/n,r.captions.push(t),r.captionStreams[t.stream]=!0})),t.on("log",(function(t){r.logs.push(t)}))},this.isNewInit=function(t,e){return!(t&&0===t.length||e&&"object"==typeof e&&0===Object.keys(e).length||i===t[0]&&n===e[i])},this.parse=function(t,s,a){var o;if(!this.isInitialized())return null;if(!s||!a)return null;if(this.isNewInit(s,a))i=s[0],n=a[i];else if(null===i||!n)return e.push(t),null;for(;e.length>0;){var l=e.shift();this.parse(l,s,a)}return o=function(t,e,i){if(null===e)return null;var n=Ne(t,e)[e]||{};return{seiNals:n.seiNals,logs:n.logs,timescale:i}}(t,i,n),o&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach((function(e){t.push(e)}))},this.flushStream=function(){if(!this.isInitialized())return null;s?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){e=[],i=null,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Ve=Ee,je=function(t){return("00"+t.toString(16)).slice(-2)},Ue=q.getUint64;Te=function(t,e){var i=Pe(e,["moof","traf"]).reduce((function(e,i){var n,r,s=Pe(i,["tfhd"])[0],a=Ve(s[4]<<24|s[5]<<16|s[6]<<8|s[7]),o=t[a]||9e4,l=Pe(i,["tfdt"])[0],u=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"==typeof(n=1===l[0]?Ue(l.subarray(4,12)):u.getUint32(4))?r=n/Oe.BigInt(o):"number"!=typeof n||isNaN(n)||(r=n/o),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<e&&(e=r),e}),1/0);return"bigint"==typeof i||isFinite(i)?i:0},ke=function(t){var e=0===t[0]?12:20;return Ve(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])},we=function(t){var e=Pe(t,["moov","trak"]),i=[];return e.forEach((function(t){var e,n,r={},s=Pe(t,["tkhd"])[0];s&&(n=(e=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),r.id=0===n?e.getUint32(12):e.getUint32(20));var a=Pe(t,["mdia","hdlr"])[0];if(a){var o=De(a.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=Pe(t,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=De(u.subarray(4,8));var c,h=Pe(u,[r.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(r.codec)?(c=h.subarray(78),"avcC"===De(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=je(c[9]),r.codec+=je(c[10]),r.codec+=je(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=h.subarray(28),"esds"===De(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+je(c[19]),r.codec+="."+je(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var d=Pe(t,["mdia","mdhd"])[0];d&&(r.timescale=ke(d)),i.push(r)})),i};var ze=Te,qe=we,Ge=function(t){var e=31&t[1];return(e<<=8)|t[2]},We=function(t){return!!(64&t[1])},Xe=function(t){var e=0;return(48&t[3])>>>4>1&&(e+=t[4]+1),e},$e=function(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Ye={parseType:function(t,e){var i=Ge(t);return 0===i?"pat":i===e?"pmt":e?"pes":null},parsePat:function(t){var e=We(t),i=4+Xe(t);return e&&(i+=t[i]+1),(31&t[i+10])<<8|t[i+11]},parsePmt:function(t){var e={},i=We(t),n=4+Xe(t);if(i&&(n+=t[n]+1),1&t[n+5]){var r;r=3+((15&t[n+1])<<8|t[n+2])-4;for(var s=12+((15&t[n+10])<<8|t[n+11]);s<r;){var a=n+s;e[(31&t[a+1])<<8|t[a+2]]=t[a],s+=5+((15&t[a+3])<<8|t[a+4])}return e}},parsePayloadUnitStartIndicator:We,parsePesType:function(t,e){switch(e[Ge(t)]){case Pt.H264_STREAM_TYPE:return"video";case Pt.ADTS_STREAM_TYPE:return"audio";case Pt.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!We(t))return null;var e=4+Xe(t);if(e>=t.byteLength)return null;var i,n=null;return 192&(i=t[e+7])&&((n={}).pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,n.pts*=4,n.pts+=(6&t[e+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,n.dts*=4,n.dts+=(6&t[e+18])>>>1)),n},videoPacketContainsKeyFrame:function(t){for(var e=4+Xe(t),i=t.subarray(e),n=0,r=0,s=!1;r<i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}r+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===$e(31&i[r+3])&&(s=!0);do{n++}while(1!==i[n]&&n<i.length);r=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===$e(31&i[r+3])&&(s=!0),r=n-2,n+=3;break;default:n+=3}return i=i.subarray(r),n-=r,r=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===$e(31&i[r+3])&&(s=!0),s}},Ke=Ft,Qe={};Qe.ts=Ye,Qe.aac=le;var Ze=ot,Je=188,ti=71,ei=function(t,e,i){for(var n,r,s,a,o=0,l=Je,u=!1;l<=t.byteLength;)if(t[o]!==ti||t[l]!==ti&&l!==t.byteLength)o++,l++;else{if(n=t.subarray(o,l),"pes"===Qe.ts.parseType(n,e.pid)&&(r=Qe.ts.parsePesType(n,e.table),s=Qe.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&s&&(a=Qe.ts.parsePesTime(n))&&(a.type="audio",i.audio.push(a),u=!0)),u)break;o+=Je,l+=Je}for(o=(l=t.byteLength)-Je,u=!1;o>=0;)if(t[o]!==ti||t[l]!==ti&&l!==t.byteLength)o--,l--;else{if(n=t.subarray(o,l),"pes"===Qe.ts.parseType(n,e.pid)&&(r=Qe.ts.parsePesType(n,e.table),s=Qe.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&s&&(a=Qe.ts.parsePesTime(n))&&(a.type="audio",i.audio.push(a),u=!0)),u)break;o-=Je,l-=Je}},ii=function(t,e,i){for(var n,r,s,a,o,l,u,c=0,h=Je,d=!1,p={data:[],size:0};h<t.byteLength;)if(t[c]!==ti||t[h]!==ti)c++,h++;else{if(n=t.subarray(c,h),"pes"===Qe.ts.parseType(n,e.pid)&&(r=Qe.ts.parsePesType(n,e.table),s=Qe.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(s&&!d&&(a=Qe.ts.parsePesTime(n))&&(a.type="video",i.video.push(a),d=!0),!i.firstKeyFrame))){if(s&&0!==p.size){for(o=new Uint8Array(p.size),l=0;p.data.length;)u=p.data.shift(),o.set(u,l),l+=u.byteLength;if(Qe.ts.videoPacketContainsKeyFrame(o)){var f=Qe.ts.parsePesTime(o);f?(i.firstKeyFrame=f,i.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(n),p.size+=n.byteLength}if(d&&i.firstKeyFrame)break;c+=Je,h+=Je}for(c=(h=t.byteLength)-Je,d=!1;c>=0;)if(t[c]!==ti||t[h]!==ti)c--,h--;else{if(n=t.subarray(c,h),"pes"===Qe.ts.parseType(n,e.pid)&&(r=Qe.ts.parsePesType(n,e.table),s=Qe.ts.parsePayloadUnitStartIndicator(n),"video"===r&&s&&(a=Qe.ts.parsePesTime(n))&&(a.type="video",i.video.push(a),d=!0)),d)break;c-=Je,h-=Je}},ni=function(t,e){var i;return i=Qe.aac.isLikelyAacData(t)?function(t){for(var e,i=!1,n=0,r=null,s=null,a=0,o=0;t.length-o>=3;){switch(Qe.aac.parseType(t,o)){case"timed-metadata":if(t.length-o<10){i=!0;break}if((a=Qe.aac.parseId3TagSize(t,o))>t.length){i=!0;break}null===s&&(e=t.subarray(o,o+a),s=Qe.aac.parseAacTimestamp(e)),o+=a;break;case"audio":if(t.length-o<7){i=!0;break}if((a=Qe.aac.parseAdtsSize(t,o))>t.length){i=!0;break}null===r&&(e=t.subarray(o,o+a),r=Qe.aac.parseSampleRate(e)),n++,o+=a;break;default:o++}if(i)return null}if(null===r||null===s)return null;var l=Ze/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*n*l,pts:s+1024*n*l}]}}(t):function(t){var e={pid:null,table:null},i={};for(var n in function(t,e){for(var i,n=0,r=Je;r<t.byteLength;)if(t[n]!==ti||t[r]!==ti)n++,r++;else{switch(i=t.subarray(n,r),Qe.ts.parseType(i,e.pid)){case"pat":e.pid=Qe.ts.parsePat(i);break;case"pmt":var s=Qe.ts.parsePmt(i);e.table=e.table||{},Object.keys(s).forEach((function(t){e.table[t]=s[t]}))}n+=Je,r+=Je}}(t,e),e.table)if(e.table.hasOwnProperty(n))switch(e.table[n]){case Pt.H264_STREAM_TYPE:i.video=[],ii(t,e,i),0===i.video.length&&delete i.video;break;case Pt.ADTS_STREAM_TYPE:i.audio=[],ei(t,e,i),0===i.audio.length&&delete i.audio}return i}(t),i&&(i.audio||i.video)?(function(t,e){if(t.audio&&t.audio.length){var i=e;(void 0===i||isNaN(i))&&(i=t.audio[0].dts),t.audio.forEach((function(t){t.dts=Ke(t.dts,i),t.pts=Ke(t.pts,i),t.dtsTime=t.dts/Ze,t.ptsTime=t.pts/Ze}))}if(t.video&&t.video.length){var n=e;if((void 0===n||isNaN(n))&&(n=t.video[0].dts),t.video.forEach((function(t){t.dts=Ke(t.dts,n),t.pts=Ke(t.pts,n),t.dtsTime=t.dts/Ze,t.ptsTime=t.pts/Ze})),t.firstKeyFrame){var r=t.firstKeyFrame;r.dts=Ke(r.dts,n),r.pts=Ke(r.pts,n),r.dtsTime=r.dts/Ze,r.ptsTime=r.pts/Ze}}}(i,e),i):null},ri=function(){function t(t,e){this.options=e||{},this.self=t,this.init()}var e=t.prototype;return e.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Se.Transmuxer(this.options),function(t,e){e.on("data",(function(e){var i=e.initSegment;e.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=e.data;e.data=n.buffer,t.postMessage({action:"data",segment:e,byteOffset:n.byteOffset,byteLength:n.byteLength},[e.data])})),e.on("done",(function(e){t.postMessage({action:"done"})})),e.on("gopInfo",(function(e){t.postMessage({action:"gopInfo",gopInfo:e})})),e.on("videoSegmentTimingInfo",(function(e){var i={start:{decode:ut(e.start.dts),presentation:ut(e.start.pts)},end:{decode:ut(e.end.dts),presentation:ut(e.end.pts)},baseMediaDecodeTime:ut(e.baseMediaDecodeTime)};e.prependedContentDuration&&(i.prependedContentDuration=ut(e.prependedContentDuration)),t.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})})),e.on("audioSegmentTimingInfo",(function(e){var i={start:{decode:ut(e.start.dts),presentation:ut(e.start.pts)},end:{decode:ut(e.end.dts),presentation:ut(e.end.pts)},baseMediaDecodeTime:ut(e.baseMediaDecodeTime)};e.prependedContentDuration&&(i.prependedContentDuration=ut(e.prependedContentDuration)),t.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})})),e.on("id3Frame",(function(e){t.postMessage({action:"id3Frame",id3Frame:e})})),e.on("caption",(function(e){t.postMessage({action:"caption",caption:e})})),e.on("trackinfo",(function(e){t.postMessage({action:"trackinfo",trackInfo:e})})),e.on("audioTimingInfo",(function(e){t.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ut(e.start),end:ut(e.end)}})})),e.on("videoTimingInfo",(function(e){t.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ut(e.start),end:ut(e.end)}})})),e.on("log",(function(e){t.postMessage({action:"log",log:e})}))}(this.self,this.transmuxer)},e.pushMp4Captions=function(t){this.captionParser||(this.captionParser=new He,this.captionParser.init());var e=new Uint8Array(t.data,t.byteOffset,t.byteLength),i=this.captionParser.parse(e,t.trackIds,t.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:e.buffer},[e.buffer])},e.probeMp4StartTime=function(t){var e=t.timescales,i=t.data,n=ze(e,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])},e.probeMp4Tracks=function(t){var e=t.data,i=qe(e);this.self.postMessage({action:"probeMp4Tracks",tracks:i,data:e},[e.buffer])},e.probeTs=function(t){var e=t.data,i=t.baseStartTime,n="number"!=typeof i||isNaN(i)?void 0:i*ot,r=ni(e,n),s=null;r&&((s={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(s.videoStart=r.video[0].ptsTime),s.hasAudio&&(s.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:s,data:e},[e.buffer])},e.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},e.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},e.push=function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)},e.reset=function(){this.transmuxer.reset()},e.setTimestampOffset=function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(lt(e)))},e.setAudioAppendStart=function(t){this.transmuxer.setAudioAppendStart(Math.ceil(lt(t.appendStart)))},e.setRemux=function(t){this.transmuxer.setRemux(t.remux)},e.flush=function(t){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},e.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},e.alignGopsWith=function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())},t}();self.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new ri(self,t.data.options):(this.messageHandlers||(this.messageHandlers=new ri(self)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}))),il=Zo(el),nl=function(t){var e=t.transmuxer,i=t.bytes,n=t.audioAppendStart,r=t.gopsToAlignWith,s=t.remux,a=t.onData,o=t.onTrackInfo,l=t.onAudioTimingInfo,u=t.onVideoTimingInfo,c=t.onVideoSegmentTimingInfo,h=t.onAudioSegmentTimingInfo,d=t.onId3,p=t.onCaptions,f=t.onDone,m=t.onEndedTimeline,g=t.onTransmuxerLog,y=t.isEndOfTimeline,v={buffer:[]},_=y;if(e.onmessage=function(i){e.currentTransmux===t&&("data"===i.data.action&&function(t,e,i){var n=t.data.segment,r=n.type,s=n.initSegment,a=n.captions,o=n.captionStreams,l=n.metadata,u=n.videoFrameDtsTime,c=n.videoFramePtsTime;e.buffer.push({captions:a,captionStreams:o,metadata:l});var h=t.data.segment.boxes||{data:t.data.segment.data},d={type:r,data:new Uint8Array(h.data,h.data.byteOffset,h.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};void 0!==u&&(d.videoFrameDtsTime=u),void 0!==c&&(d.videoFramePtsTime=c),i(d)}(i,v,a),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&function(t,e){e.gopInfo=t.data.gopInfo}(i,v),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&c(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&h(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&d([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(_=!1,m()),"log"===i.data.action&&g(i.data.log),"transmuxed"===i.data.type&&(_||(e.onmessage=null,function(t){var e=t.transmuxedData,i=t.callback;e.buffer=[],i(e)}({transmuxedData:v,callback:f}),rl(e))))},n&&e.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&e.postMessage({action:"setRemux",remux:s}),i.byteLength){var b=i instanceof ArrayBuffer?i:i.buffer,x=i instanceof ArrayBuffer?0:i.byteOffset;e.postMessage({action:"push",data:b,byteOffset:x,byteLength:i.byteLength},[b])}y&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},rl=function(t){t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),"function"==typeof t.currentTransmux?t.currentTransmux():nl(t.currentTransmux))},sl=function(t,e){t.postMessage({action:e}),rl(t)},al=function(t){!function(t,e){if(!e.currentTransmux)return e.currentTransmux=t,void sl(e,t);e.transmuxQueue.push(sl.bind(null,e,t))}("reset",t)},ol=function(t){var e=t.transmuxer,i=t.endAction||t.action,n=t.callback,r=l({},t,{endAction:null,transmuxer:null,callback:null});if(e.addEventListener("message",(function r(s){s.data.action===i&&(e.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,t.byteOffset||0,t.byteLength||s.data.data.byteLength),t.data&&(t.data=s.data.data)),n(s.data))})),t.data){var s=t.data instanceof ArrayBuffer;r.byteOffset=s?0:t.data.byteOffset,r.byteLength=t.data.byteLength;var a=[s?t.data:t.data.buffer];e.postMessage(r,a)}else e.postMessage(r)},ll=-101,ul=-102,cl=function(t){t.forEach((function(t){t.abort()}))},hl=function(t,e){return e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:ll,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:ul,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:2,xhr:e}:"arraybuffer"===e.responseType&&0===e.response.byteLength?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:2,xhr:e}:null},dl=function(t,e,i){return function(n,r){var s=r.response,a=hl(n,r);if(a)return i(a,t);if(16!==s.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:2,xhr:r},t);for(var o=new DataView(s),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),u=0;u<e.length;u++)e[u].bytes=l;return i(null,t)}},pl=function(t,e){var i=ge(t.map.bytes);if("mp4"!==i){var n=t.map.resolvedUri||t.map.uri;return e({internal:!0,message:"Found unsupported "+(i||"unknown")+" container for initialization segment at URL: "+n,code:2})}ol({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:function(i){var n=i.tracks,r=i.data;return t.map.bytes=r,n.forEach((function(e){t.map.tracks=t.map.tracks||{},t.map.tracks[e.type]||(t.map.tracks[e.type]=e,"number"==typeof e.id&&e.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[e.id]=e.timescale))})),e(null)}})},fl=function(t){var e=t.segment,i=t.bytes,n=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,l=t.captionsFn,u=t.isEndOfTimeline,c=t.endedTimelineFn,h=t.dataFn,d=t.doneFn,p=t.onTransmuxerLog,f=e.map&&e.map.tracks||{},m=Boolean(f.audio&&f.video),g=r.bind(null,e,"audio","start"),y=r.bind(null,e,"audio","end"),v=r.bind(null,e,"video","start"),_=r.bind(null,e,"video","end");ol({action:"probeTs",transmuxer:e.transmuxer,data:i,baseStartTime:e.baseStartTime,callback:function(t){e.bytes=i=t.data;var r=t.result;r&&(n(e,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),n=null,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&v(r.videoStart),g=null,v=null),function(t){if(!t.transmuxer.currentTransmux)return t.transmuxer.currentTransmux=t,void nl(t);t.transmuxer.transmuxQueue.push(t)}({bytes:i,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:m,onData:function(t){t.type="combined"===t.type?"video":t.type,h(e,t)},onTrackInfo:function(t){n&&(m&&(t.isMuxed=!0),n(e,t))},onAudioTimingInfo:function(t){g&&void 0!==t.start&&(g(t.start),g=null),y&&void 0!==t.end&&y(t.end)},onVideoTimingInfo:function(t){v&&void 0!==t.start&&(v(t.start),v=null),_&&void 0!==t.end&&_(t.end)},onVideoSegmentTimingInfo:function(t){s(t)},onAudioSegmentTimingInfo:function(t){a(t)},onId3:function(t,i){o(e,t,i)},onCaptions:function(t){l(e,[t])},isEndOfTimeline:u,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(t){d&&(t.type="combined"===t.type?"video":t.type,d(null,e,t))}})}})},ml=function(t){var e=t.segment,i=t.bytes,n=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,l=t.captionsFn,u=t.isEndOfTimeline,c=t.endedTimelineFn,h=t.dataFn,d=t.doneFn,p=t.onTransmuxerLog,f=new Uint8Array(i);if(function(t){return Jt(t,["moof"]).length>0}(f)){e.isFmp4=!0;var m=e.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),n(e,g);var y=function(t){h(e,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),t&&t.length&&l(e,t),d(null,e,{})};ol({action:"probeMp4StartTime",timescales:e.map.timescales,data:f,transmuxer:e.transmuxer,callback:function(t){var n=t.data,s=t.startTime;i=n.buffer,e.bytes=f=n,g.hasAudio&&!g.isMuxed&&r(e,"audio","start",s),g.hasVideo&&r(e,"video","start",s),m.video&&n.byteLength&&e.transmuxer?ol({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:f,timescales:e.map.timescales,trackIds:[m.video.id],callback:function(t){i=t.data.buffer,e.bytes=f=t.data,t.logs.forEach((function(t){p(Oa.mergeOptions(t,{stream:"mp4CaptionParser"}))})),y(t.captions)}}):y()}})}else if(e.transmuxer){if(void 0===e.container&&(e.container=ge(f)),"ts"!==e.container&&"aac"!==e.container)return n(e,{hasAudio:!1,hasVideo:!1}),void d(null,e,{});fl({segment:e,bytes:i,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:d,onTransmuxerLog:p})}else d(null,e,{})},gl=function(t,e){var i,n=t.id,r=t.key,s=t.encryptedBytes,a=t.decryptionWorker;a.addEventListener("message",(function t(i){if(i.data.source===n){a.removeEventListener("message",t);var r=i.data.decrypted;e(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}})),i=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),a.postMessage(Bo({source:n,encrypted:s,key:i,iv:r.iv}),[s.buffer,i.buffer])},yl=function(t){var e=t.xhr,i=t.xhrOptions,n=t.decryptionWorker,r=t.segment,s=t.abortFn,a=t.progressFn,o=t.trackInfoFn,l=t.timingInfoFn,u=t.videoSegmentTimingInfoFn,c=t.audioSegmentTimingInfoFn,h=t.id3Fn,d=t.captionsFn,p=t.isEndOfTimeline,f=t.endedTimelineFn,m=t.dataFn,g=t.doneFn,y=t.onTransmuxerLog,v=[],_=function(t){var e=t.activeXhrs,i=t.decryptionWorker,n=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,l=t.captionsFn,u=t.isEndOfTimeline,c=t.endedTimelineFn,h=t.dataFn,d=t.doneFn,p=t.onTransmuxerLog,f=0,m=!1;return function(t,g){if(!m){if(t)return m=!0,cl(e),d(t,g);if((f+=1)===e.length){var y=function(){if(g.encryptedBytes)return function(t){var e=t.decryptionWorker,i=t.segment,n=t.trackInfoFn,r=t.timingInfoFn,s=t.videoSegmentTimingInfoFn,a=t.audioSegmentTimingInfoFn,o=t.id3Fn,l=t.captionsFn,u=t.isEndOfTimeline,c=t.endedTimelineFn,h=t.dataFn,d=t.doneFn,p=t.onTransmuxerLog;gl({id:i.requestId,key:i.key,encryptedBytes:i.encryptedBytes,decryptionWorker:e},(function(t){i.bytes=t,ml({segment:i,bytes:i.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:d,onTransmuxerLog:p})}))}({decryptionWorker:i,segment:g,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:d,onTransmuxerLog:p});ml({segment:g,bytes:g.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:h,doneFn:d,onTransmuxerLog:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return gl({decryptionWorker:i,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(function(t){g.map.bytes=t,pl(g,(function(t){if(t)return cl(e),d(t,g);y()}))}));y()}}}}({activeXhrs:v,decryptionWorker:n,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:g,onTransmuxerLog:y});if(r.key&&!r.key.bytes){var b=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&b.push(r.map.key);var x=e(Oa.mergeOptions(i,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),dl(r,b,_));v.push(x)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var T=e(Oa.mergeOptions(i,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),dl(r,[r.map.key],_));v.push(T)}var w=Oa.mergeOptions(i,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Lo(r.map)}),k=function(t){var e=t.segment,i=t.finishProcessingFn;return function(t,n){var r=hl(t,n);if(r)return i(r,e);var s=new Uint8Array(n.response);if(e.map.key)return e.map.encryptedBytes=s,i(null,e);e.map.bytes=s,pl(e,(function(t){if(t)return t.xhr=n,t.status=n.status,i(t,e);i(null,e)}))}}({segment:r,finishProcessingFn:_}),S=e(w,k);v.push(S)}var E=Oa.mergeOptions(i,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Lo(r)}),D=e(E,function(t){var e=t.segment,i=t.finishProcessingFn,n=t.responseType;return function(t,r){var s=hl(t,r);if(s)return i(s,e);var a="arraybuffer"!==n&&r.responseText?function(t){for(var e=new Uint8Array(new ArrayBuffer(t.length)),i=0;i<t.length;i++)e[i]=t.charCodeAt(i);return e.buffer}(r.responseText.substring(e.lastReachedChar||0)):r.response;return e.stats=function(t){return{bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}}(r),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),i(null,e)}}({segment:r,finishProcessingFn:_,responseType:E.responseType}));D.addEventListener("progress",function(t){var e=t.segment,i=t.progressFn;return t.trackInfoFn,t.timingInfoFn,t.videoSegmentTimingInfoFn,t.audioSegmentTimingInfoFn,t.id3Fn,t.captionsFn,t.isEndOfTimeline,t.endedTimelineFn,t.dataFn,function(t){if(!t.target.aborted)return e.stats=Oa.mergeOptions(e.stats,(r=(n=t).target,(s={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-r.requestTime||0}).bytesReceived=n.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),i(t,e);var n,r,s}}({segment:r,progressFn:a,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:h,captionsFn:d,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m})),v.push(D);var C={};return v.forEach((function(t){t.addEventListener("loadend",function(t){var e=t.loadendState,i=t.abortFn;return function(t){t.target.aborted&&i&&!e.calledAbortFn&&(i(),e.calledAbortFn=!0)}}({loadendState:C,abortFn:s}))})),function(){return cl(v)}},vl=Ha("CodecUtils"),_l=function(t,e){var i=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&i.AUDIO&&t.mediaGroups.AUDIO[i.AUDIO]},bl=function(t){var e={};return t.forEach((function(t){var i=t.mediaType,n=t.type,r=t.details;e[i]=e[i]||[],e[i].push(V(""+n+r))})),Object.keys(e).forEach((function(t){if(e[t].length>1)return vl("multiple "+t+" codecs found as attributes: "+e[t].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(e[t]=null);e[t]=e[t][0]})),e},xl=function(t){var e=0;return t.audio&&e++,t.video&&e++,e},Tl=function(t,e){var i=e.attributes||{},n=bl(function(t){var e=t.attributes||{};if(e.CODECS)return j(e.CODECS)}(e)||[]);if(_l(t,e)&&!n.audio&&!function(t,e){if(!_l(t,e))return!0;var i=e.attributes||{},n=t.mediaGroups.AUDIO[i.AUDIO];for(var r in n)if(!n[r].uri&&!n[r].playlists)return!0;return!1}(t,e)){var r=bl(function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var i=t.mediaGroups.AUDIO[e];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return j(r.playlists[0].attributes.CODECS)}return null}(t,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n},wl=Ha("PlaylistSelector"),kl=function(t){if(t&&t.playlist){var e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})}},Sl=function(t,e){if(!t)return"";var i=s().getComputedStyle(t);return i?i[e]:""},El=function(t,e){var i=t.slice();t.sort((function(t,n){var r=e(t,n);return 0===r?i.indexOf(t)-i.indexOf(n):r}))},Dl=function(t,e){var i,n;return t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||s().Number.MAX_VALUE,e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),i-(n||s().Number.MAX_VALUE)},Cl=function(t,e,i,n,r,a){if(t){var o={bandwidth:e,width:i,height:n,limitRenditionByPlayerDimensions:r},l=t.playlists;fo.isAudioOnly(t)&&(l=a.getAudioTrackPlaylists_(),o.audioOnly=!0);var u=l.map((function(t){var e=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,i=t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height;return{bandwidth:t.attributes&&t.attributes.BANDWIDTH||s().Number.MAX_VALUE,width:e,height:i,playlist:t}}));El(u,(function(t,e){return t.bandwidth-e.bandwidth}));var c=(u=u.filter((function(t){return!fo.isIncompatible(t.playlist)}))).filter((function(t){return fo.isEnabled(t.playlist)}));c.length||(c=u.filter((function(t){return!fo.isDisabled(t.playlist)})));var h=c.filter((function(t){return t.bandwidth*Ko.BANDWIDTH_VARIANCE<e})),d=h[h.length-1],p=h.filter((function(t){return t.bandwidth===d.bandwidth}))[0];if(!1===r){var f=p||c[0]||u[0];if(f&&f.playlist){var m="sortedPlaylistReps";return p&&(m="bandwidthBestRep"),c[0]&&(m="enabledPlaylistReps"),wl("choosing "+kl(f)+" using "+m+" with options",o),f.playlist}return wl("could not choose a playlist with options",o),null}var g=h.filter((function(t){return t.width&&t.height}));El(g,(function(t,e){return t.width-e.width}));var y=g.filter((function(t){return t.width===i&&t.height===n}));d=y[y.length-1];var v,_,b,x,T=y.filter((function(t){return t.bandwidth===d.bandwidth}))[0];if(T||(_=(v=g.filter((function(t){return t.width>i||t.height>n}))).filter((function(t){return t.width===v[0].width&&t.height===v[0].height})),d=_[_.length-1],b=_.filter((function(t){return t.bandwidth===d.bandwidth}))[0]),a.experimentalLeastPixelDiffSelector){var w=g.map((function(t){return t.pixelDiff=Math.abs(t.width-i)+Math.abs(t.height-n),t}));El(w,(function(t,e){return t.pixelDiff===e.pixelDiff?e.bandwidth-t.bandwidth:t.pixelDiff-e.pixelDiff})),x=w[0]}var k=x||b||T||p||c[0]||u[0];if(k&&k.playlist){var S="sortedPlaylistReps";return x?S="leastPixelDiffRep":b?S="resolutionPlusOneRep":T?S="resolutionBestRep":p?S="bandwidthBestRep":c[0]&&(S="enabledPlaylistReps"),wl("choosing "+kl(k)+" using "+S+" with options",o),k.playlist}return wl("could not choose a playlist with options",o),null}},Pl=function(){var t=this.useDevicePixelRatio&&s().devicePixelRatio||1;return Cl(this.playlists.master,this.systemBandwidth,parseInt(Sl(this.tech_.el(),"width"),10)*t,parseInt(Sl(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Al=function(t,e,i){var n,r;if(i&&i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime>=t&&r.endTime<=e&&i.removeCue(r)},Ml=function(t){return"number"==typeof t&&isFinite(t)},Il=1/60,Ll=function(t){var e=t.startOfSegment,i=t.duration,n=t.segment,r=t.part,s=t.playlist,a=s.mediaSequence,o=s.id,l=s.segments,u=void 0===l?[]:l,c=t.mediaIndex,h=t.partIndex,d=t.timeline,p=u.length-1,f="mediaIndex/partIndex increment";t.getMediaInfoForTime?f="getMediaInfoForTime ("+t.getMediaInfoForTime+")":t.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),t.independent&&(f+=" with independent "+t.independent);var m="number"==typeof h,g=t.segment.uri?"segment":"pre-segment",y=m?Ja({preloadSegment:n})-1:0;return g+" ["+(a+c)+"/"+(a+p)+"]"+(m?" part ["+h+"/"+y+"]":"")+" segment start/end ["+n.start+" => "+n.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+e+"] duration ["+i+"] timeline ["+d+"] selected by ["+f+"] playlist ["+o+"]"},Ol=function(t){return t+"TimingInfo"},Fl=function(t){var e=t.timelineChangeController,i=t.currentTimeline,n=t.segmentTimeline,r=t.loaderType,s=t.audioDisabled;if(i===n)return!1;if("audio"===r){var a=e.lastTimelineChange({type:"main"});return!a||a.to!==n}if("main"===r&&s){var o=e.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1},Rl=function(t){var e=t.segmentDuration,i=t.maxDuration;return!!e&&Math.round(e)>i+Va},Bl=function(t){function e(e,i){var n;if(n=t.call(this)||this,!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=e.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.partIndex=null,n.hasPlayed_=e.hasPlayed,n.currentTime_=e.currentTime,n.seekable_=e.seekable,n.seeking_=e.seeking,n.duration_=e.duration,n.mediaSource_=e.mediaSource,n.vhs_=e.vhs,n.loaderType_=e.loaderType,n.currentMediaInfo_=void 0,n.startingMediaInfo_=void 0,n.segmentMetadataTrack_=e.segmentMetadataTrack,n.goalBufferLength_=e.goalBufferLength,n.sourceType_=e.sourceType,n.sourceUpdater_=e.sourceUpdater,n.inbandTextTracks_=e.inbandTextTracks,n.state_="INIT",n.timelineChangeController_=e.timelineChangeController,n.shouldSaveSegmentTimingInfo_=!0,n.parse708captions_=e.parse708captions,n.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,n.captionServices_=e.captionServices,n.experimentalExactManifestTimings=e.experimentalExactManifestTimings,n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.xhrOptions_=null,n.pendingSegments_=[],n.audioDisabled_=!1,n.isPendingTimestampOffset_=!1,n.gopBuffer_=[],n.timeMapping_=0,n.safeAppend_=Oa.browser.IE_VERSION>=11,n.appendInitSegment_={audio:!0,video:!0},n.playlistOfLastInitSegment_={audio:null,video:null},n.callQueue_=[],n.loadQueue_=[],n.metadataQueue_={id3:[],caption:[]},n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=e.cacheEncryptionKeys,n.keyCache_={},n.decrypter_=e.decrypter,n.syncController_=e.syncController,n.syncPoint_={segmentIndex:0,time:0},n.transmuxer_=n.createTransmuxer_(),n.triggerSyncInfoUpdate_=function(){return n.trigger("syncinfoupdate")},n.syncController_.on("syncinfoupdate",n.triggerSyncInfoUpdate_),n.mediaSource_.addEventListener("sourceopen",(function(){n.isEndOfStream_()||(n.ended_=!1)})),n.fetchAtBuffer_=!1,n.logger_=Ha("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(h(n),"state",{get:function(){return this.state_},set:function(t){t!==this.state_&&(this.logger_(this.state_+" -> "+t),this.state_=t,this.trigger("statechange"))}}),n.sourceUpdater_.on("ready",(function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),"main"===n.loaderType_&&n.timelineChangeController_.on("pendingtimelinechange",(function(){n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),"audio"===n.loaderType_&&n.timelineChangeController_.on("timelinechange",(function(){n.hasEnoughInfoToLoad_()&&n.processLoadQueue_(),n.hasEnoughInfoToAppend_()&&n.processCallQueue_()})),n}p(e,t);var i=e.prototype;return i.createTransmuxer_=function(){return function(t){var e=new il;e.currentTransmux=null,e.transmuxQueue=[];var i=e.terminate;return e.terminate=function(){return e.currentTransmux=null,e.transmuxQueue.length=0,i.call(e)},e.postMessage({action:"init",options:t}),e}({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},i.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},i.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&s().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},i.setAudio=function(t){this.audioDisabled_=!t,t?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},i.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},i.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,s().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},i.checkForAbort_=function(t){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==t:(this.state="READY",!0)},i.error=function(t){return void 0!==t&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_},i.endOfStream=function(){this.ended_=!0,this.transmuxer_&&al(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},i.buffered_=function(){var t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return Oa.createTimeRanges();if("main"===this.loaderType_){var e=t.hasAudio,i=t.hasVideo,n=t.isMuxed;if(i&&e&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},i.initSegmentForMap=function(t,e){if(void 0===e&&(e=!1),!t)return null;var i=No(t),n=this.initSegments_[i];return e&&!n&&t.bytes&&(this.initSegments_[i]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}),n||t},i.segmentKey=function(t,e){if(void 0===e&&(e=!1),!t)return null;var i=Ho(t),n=this.keyCache_[i];this.cacheEncryptionKeys_&&e&&!n&&t.bytes&&(this.keyCache_[i]=n={resolvedUri:t.resolvedUri,bytes:t.bytes});var r={resolvedUri:(n||t).resolvedUri};return n&&(r.bytes=n.bytes),r},i.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},i.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},i.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},i.playlist=function(t,e){if(void 0===e&&(e={}),t){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=e,"INIT"===this.state&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(t));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r+" => "+(t.id||t.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==t.uri)return null!==this.mediaIndex&&(t.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var s=t.mediaSequence-i.mediaSequence;if(this.logger_("live window shift ["+s+"]"),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var a=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!a.parts||!a.parts.length||!a.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}n&&(n.mediaIndex-=s,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=t.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,t)}},i.pause=function(){this.checkBufferTimeout_&&(s().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},i.paused=function(){return null===this.checkBufferTimeout_},i.resetEverything=function(t){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},i.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},i.resyncLoader=function(){this.transmuxer_&&al(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},i.remove=function(t,e,i,n){if(void 0===i&&(i=function(){}),void 0===n&&(n=!1),e===1/0&&(e=this.duration_()),e<=t)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,s=function(){0==--r&&i()};for(var a in!n&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(t,e,s)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=function(t,e,i,n){for(var r=Math.ceil((e-n)*ye.ONE_SECOND_IN_TS),s=Math.ceil((i-n)*ye.ONE_SECOND_IN_TS),a=t.slice(),o=t.length;o--&&!(t[o].pts<=s););if(-1===o)return a;for(var l=o+1;l--&&!(t[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a}(this.gopBuffer_,t,e,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(t,e,s)),this.inbandTextTracks_)Al(t,e,this.inbandTextTracks_[a]);Al(t,e,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},i.monitorBuffer_=function(){this.checkBufferTimeout_&&s().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=s().setTimeout(this.monitorBufferTick_.bind(this),1)},i.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&s().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=s().setTimeout(this.monitorBufferTick_.bind(this),500)},i.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var t=this.chooseNextRequest_();t&&("number"==typeof t.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t))}},i.isEndOfStream_=function(t,e,i){if(void 0===t&&(t=this.mediaIndex),void 0===e&&(e=this.playlist_),void 0===i&&(i=this.partIndex),!e||!this.mediaSource_)return!1;var n="number"==typeof t&&e.segments[t],r=t+1===e.segments.length,s=!n||!n.parts||i+1===n.parts.length;return e.endList&&"open"===this.mediaSource_.readyState&&r&&s},i.chooseNextRequest_=function(){var t=this.buffered_(),e=Xa(t)||0,i=$a(t,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),s=this.playlist_.segments;if(!s.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(a.isSyncRequest)a.mediaIndex=function(t,e,i){e=e||[];for(var n=[],r=0,s=0;s<e.length;s++){var a=e[s];if(t===a.timeline&&(n.push(s),(r+=a.duration)>i))return s}return 0===n.length?0:n[n.length-1]}(this.currentTimeline_,s,e);else if(null!==this.mediaIndex){var o=s[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;a.startOfSegment=o.end?o.end:e,o.parts&&o.parts[l+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=l+1):a.mediaIndex=this.mediaIndex+1}else{var u=fo.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?e:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=u.segmentIndex,h=u.startTime,d=u.partIndex;a.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+e:"currentTime "+this.currentTime_(),a.mediaIndex=c,a.startOfSegment=h,a.partIndex=d}var p=s[a.mediaIndex],f=p&&"number"==typeof a.partIndex&&p.parts&&p.parts[a.partIndex];if(!p||"number"==typeof a.partIndex&&!f)return null;if("number"!=typeof a.partIndex&&p.parts&&(a.partIndex=0,f=p.parts[0]),!i&&f&&!f.independent)if(0===a.partIndex){var m=s[a.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(a.mediaIndex-=1,a.partIndex=m.parts.length-1,a.independent="previous segment")}else p.parts[a.partIndex-1].independent&&(a.partIndex-=1,a.independent="previous part");var y=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return a.mediaIndex>=s.length-1&&y&&!this.seeking_()?null:this.generateSegmentInfo_(a)},i.generateSegmentInfo_=function(t){var e=t.independent,i=t.playlist,n=t.mediaIndex,r=t.startOfSegment,s=t.isSyncRequest,a=t.partIndex,o=t.forceTimestampOffset,l=t.getMediaInfoForTime,u=i.segments[n],c="number"==typeof a&&u.parts[a],h={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:c?a:null,isSyncRequest:s,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:e},d=void 0!==o?o:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:d});var p=Xa(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(h.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=function(t,e,i){if(null==e||!t.length)return[];var n,r=Math.ceil((e-i+3)*ye.ONE_SECOND_IN_TS);for(n=0;n<t.length&&!(t[n].pts>r);n++);return t.slice(n)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h},i.timestampOffsetForSegment_=function(t){return i=(e=t).segmentTimeline,n=e.currentTimeline,r=e.startOfSegment,s=e.buffered,e.overrideCheck||i!==n?i<n?r:s.length?s.end(s.length-1):r:null;var e,i,n,r,s},i.earlyAbortWhenNeeded_=function(t){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)){var e=this.currentTime_(),i=t.bandwidth,n=this.pendingSegment_.duration,r=fo.estimateSegmentRequestTime(n,i,this.playlist_,t.bytesReceived),s=function(t,e,i){return void 0===i&&(i=1),((t.length?t.end(t.length-1):0)-e)/i}(this.buffered_(),e,this.vhs_.tech_.playbackRate())-1;if(!(r<=s)){var a=function(t){var e=t.currentTime,i=t.bandwidth,n=t.duration,r=t.segmentDuration,s=t.timeUntilRebuffer,a=t.currentTimeline,o=t.syncController,l=t.master.playlists.filter((function(t){return!fo.isIncompatible(t)})),u=l.filter(fo.isEnabled);u.length||(u=l.filter((function(t){return!fo.isDisabled(t)})));var c=u.filter(fo.hasAttribute.bind(null,"BANDWIDTH")).map((function(t){var l=o.getSyncPoint(t,n,a,e)?1:2;return{playlist:t,rebufferingImpact:fo.estimateSegmentRequestTime(r,i,t)*l-s}})),h=c.filter((function(t){return t.rebufferingImpact<=0}));return El(h,(function(t,e){return Dl(e.playlist,t.playlist)})),h.length?h[0]:(El(c,(function(t,e){return t.rebufferingImpact-e.rebufferingImpact})),c[0]||null)}({master:this.vhs_.playlists.master,currentTime:e,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var o=r-s-a.rebufferingImpact,l=.5;s<=Va&&(l=1),!a.playlist||a.playlist.uri===this.playlist_.uri||o<l||(this.bandwidth=a.playlist.attributes.BANDWIDTH*Ko.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},i.handleAbort_=function(t){this.logger_("Aborting "+Ll(t)),this.mediaRequestsAborted+=1},i.handleProgress_=function(t,e){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.trigger("progress")},i.handleTrackInfo_=function(t,e){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.checkForIllegalMediaSwitch(e)||(e=e||{},function(t,e){if(!t&&!e||!t&&e||t&&!e)return!1;if(t===e)return!0;var i=Object.keys(t).sort(),n=Object.keys(e).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var s=i[r];if(s!==n[r])return!1;if(t[s]!==e[s])return!1}return!0}(this.currentMediaInfo_,e)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=e,this.currentMediaInfo_=e,this.logger_("trackinfo update",e),this.trigger("trackinfo")),this.checkForAbort_(t.requestId)||(this.pendingSegment_.trackInfo=e,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},i.handleTimingInfo_=function(t,e,i,n){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)){var r=this.pendingSegment_,s=Ol(e);r[s]=r[s]||{},r[s][i]=n,this.logger_("timinginfo: "+e+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},i.handleCaptions_=function(t,e){var i=this;if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(0!==e.length)if(this.pendingSegment_.hasAppendedData_){var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};e.forEach((function(t){r[t.stream]=r[t.stream]||{startTime:1/0,captions:[],endTime:0};var e=r[t.stream];e.startTime=Math.min(e.startTime,t.startTime+n),e.endTime=Math.max(e.endTime,t.endTime+n),e.captions.push(t)})),Object.keys(r).forEach((function(t){var e=r[t],a=e.startTime,o=e.endTime,l=e.captions,u=i.inbandTextTracks_;i.logger_("adding cues from "+a+" -> "+o+" for "+t),function(t,e,i){if(!t[i]){e.trigger({type:"usage",name:"vhs-608"}),e.trigger({type:"usage",name:"hls-608"});var n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);var r=e.textTracks().getTrackById(n);if(r)t[i]=r;else{var s=i,a=i,o=!1,l=(e.options_.vhs&&e.options_.vhs.captionServices||{})[n];l&&(s=l.label,a=l.language,o=l.default),t[i]=e.addRemoteTextTrack({kind:"captions",id:n,default:o,label:s,language:a},!1).track}}}(u,i.vhs_.tech_,t),Al(a,o,u[t]),function(t){var e=t.inbandTextTracks,i=t.captionArray,n=t.timestampOffset;if(i){var r=s().WebKitDataCue||s().VTTCue;i.forEach((function(t){var i=t.stream;e[i].addCue(new r(t.startTime+n,t.endTime+n,t.text))}))}}({captionArray:l,inbandTextTracks:u,timestampOffset:n})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,e));else this.logger_("SegmentLoader received no captions from a caption event")},i.handleId3_=function(t,e,i){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(this.pendingSegment_.hasAppendedData_){var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(t,e,i){t.metadataTrack_||(t.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=e)}(this.inbandTextTracks_,i,this.vhs_.tech_),function(t){var e=t.inbandTextTracks,i=t.metadataArray,n=t.timestampOffset,r=t.videoDuration;if(i){var a=s().WebKitDataCue||s().VTTCue,o=e.metadataTrack_;if(o&&(i.forEach((function(t){var e=t.cueTime+n;!("number"!=typeof e||s().isNaN(e)||e<0)&&e<1/0&&t.frames.forEach((function(t){var i=new a(e,e,t.value||t.url||t.data||"");i.frame=t,i.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return Oa.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return Oa.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return Oa.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(i),o.addCue(i)}))})),o.cues&&o.cues.length)){for(var l=o.cues,u=[],c=0;c<l.length;c++)l[c]&&u.push(l[c]);var h=u.reduce((function(t,e){var i=t[e.startTime]||[];return i.push(e),t[e.startTime]=i,t}),{}),d=Object.keys(h).sort((function(t,e){return Number(t)-Number(e)}));d.forEach((function(t,e){var i=h[t],n=Number(d[e+1])||r;i.forEach((function(t){t.endTime=n}))}))}}}({inbandTextTracks:this.inbandTextTracks_,metadataArray:e,timestampOffset:n,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,e,i))},i.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(t){return t()})),this.metadataQueue_.caption.forEach((function(t){return t()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},i.processCallQueue_=function(){var t=this.callQueue_;this.callQueue_=[],t.forEach((function(t){return t()}))},i.processLoadQueue_=function(){var t=this.loadQueue_;this.loadQueue_=[],t.forEach((function(t){return t()}))},i.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var t=this.pendingSegment_;return!(!t||this.getCurrentMediaInfo_()&&Fl({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.getCurrentMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),t&&t.trackInfo||this.currentMediaInfo_},i.getMediaInfo_=function(t){return void 0===t&&(t=this.pendingSegment_),this.getCurrentMediaInfo_(t)||this.startingMediaInfo_},i.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var t=this.pendingSegment_,e=this.getCurrentMediaInfo_();if(!t||!e)return!1;var i=e.hasAudio,n=e.hasVideo,r=e.isMuxed;return!(n&&!t.videoTimingInfo||i&&!this.audioDisabled_&&!r&&!t.audioTimingInfo||Fl({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},i.handleData_=function(t,e){if(this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(t.map&&(t.map=this.initSegmentForMap(t.map,!0),i.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),i.isFmp4=t.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[Ol(e.type)].start;else{var n,r=this.getCurrentMediaInfo_(),s="main"===this.loaderType_&&r&&r.hasVideo;s&&(n=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:s,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,e.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});var a=this.chooseNextRequest_();if(a.mediaIndex!==i.mediaIndex||a.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,e)}}else this.callQueue_.push(this.handleData_.bind(this,t,e))},i.updateAppendInitSegmentStatus=function(t,e){"main"!==this.loaderType_||"number"!=typeof t.timestampOffset||t.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[e]!==t.playlist&&(this.appendInitSegment_[e]=!0)},i.getInitSegmentAndUpdateState_=function(t){var e=t.type,i=t.initSegment,n=t.map,r=t.playlist;if(n){var s=No(n);if(this.activeInitSegmentId_===s)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=s}return i&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,i):null},i.handleQuotaExceededError_=function(t,e){var i=this,n=t.segmentInfo,r=t.type,a=t.bytes,o=this.sourceUpdater_.audioBuffered(),l=this.sourceUpdater_.videoBuffered();o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Wa(o).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Wa(l).join(", "));var u=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0,h=l.length?l.start(0):0,d=l.length?l.end(l.length-1):0;if(c-u<=1&&d-h<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+Wa(o).join(", ")+", video buffer: "+Wa(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:a}));var p=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+p),this.remove(0,p,(function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=s().setTimeout((function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()}),1e3)}),!0)},i.handleAppendError_=function(t,e){var i=t.segmentInfo,n=t.type,r=t.bytes;e&&(22!==e.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",e),this.error(n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r}))},i.appendToSourceBuffer_=function(t){var e,i,n,r=t.segmentInfo,s=t.type,a=t.initSegment,o=t.data,l=t.bytes;if(!l){var u=[o],c=o.byteLength;a&&(u.unshift(a),c+=a.byteLength),n=0,(e={bytes:c,segments:u}).bytes&&(i=new Uint8Array(e.bytes),e.segments.forEach((function(t){i.set(t,n),n+=t.byteLength}))),l=i}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:s,bytes:l},this.handleAppendError_.bind(this,{segmentInfo:r,type:s,bytes:l}))},i.handleSegmentTimingInfo_=function(t,e,i){if(this.pendingSegment_&&e===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=t+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}},i.appendData_=function(t,e){var i=e.type,n=e.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:i,initSegment:e.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:i,initSegment:r,data:n})}},i.loadSegment_=function(t){var e=this;this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),"number"==typeof t.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(t):this.loadQueue_.push((function(){var i=l({},t,{forceTimestampOffset:!0});l(t,e.generateSegmentInfo_(i)),e.isPendingTimestampOffset_=!1,e.updateTransmuxerAndRequestSegment_(t)}))},i.updateTransmuxerAndRequestSegment_=function(t){var e=this;this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));var i=this.createSimplifiedSegmentObj_(t),n=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex),r=null!==this.mediaIndex,s=t.timeline!==this.currentTimeline_&&t.timeline>0,a=n||r&&s;this.logger_("Requesting "+Ll(t)),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=yl({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:function(){e.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(i){var n=i.message,r=i.level,s=i.stream;e.logger_(Ll(t)+" logged from transmuxer stream "+s+" as a "+r+": "+n)}})},i.trimBackBuffer_=function(t){var e=function(t,e,i){var n=e-Ko.BACK_BUFFER_LENGTH;t.length&&(n=Math.max(n,t.start(0)));var r=e-i;return Math.min(r,n)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);e>0&&this.remove(0,e)},i.createSimplifiedSegmentObj_=function(t){var e=t.segment,i=t.part,n={resolvedUri:i?i.resolvedUri:e.resolvedUri,byterange:i?i.byterange:e.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part},r=t.playlist.segments[t.mediaIndex-1];if(r&&r.timeline===e.timeline&&(r.videoTimingInfo?n.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(n.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),e.key){var s=e.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);n.key=this.segmentKey(e.key),n.key.iv=s}return e.map&&(n.map=this.initSegmentForMap(e.map)),n},i.saveTransferStats_=function(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)},i.saveBandwidthRelatedStats_=function(t,e){this.pendingSegment_.byteLength=e.bytesReceived,t<Il?this.logger_("Ignoring segment's bandwidth because its duration of "+t+" is less than the min to record "+Il):(this.bandwidth=e.bandwidth,this.roundTrip=e.roundTripTime)},i.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},i.segmentRequestFinished_=function(t,e,i){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,e,i));else if(this.saveTransferStats_(e.stats),this.pendingSegment_&&e.requestId===this.pendingSegment_.requestId){if(t){if(this.pendingSegment_=null,this.state="READY",t.code===ul)return;return this.pause(),t.code===ll?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(t),void this.trigger("error"))}var n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,e.stats),n.endOfAllRequests=e.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=function(t,e,i){if(!e.length)return t;if(i)return e.slice();for(var n=e[0].pts,r=0;r<t.length&&!(t[r].pts>=n);r++);return t.slice(0,r).concat(e)}(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}},i.setTimeMapping_=function(t){var e=this.syncController_.mappingForTimeline(t);null!==e&&(this.timeMapping_=e)},i.updateMediaSecondsLoaded_=function(t){"number"==typeof t.start&&"number"==typeof t.end?this.mediaSecondsLoaded+=t.end-t.start:this.mediaSecondsLoaded+=t.duration},i.shouldUpdateTransmuxerTimestampOffset_=function(t){return null!==t&&("main"===this.loaderType_&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset())},i.trueSegmentStart_=function(t){var e=t.currentStart,i=t.playlist,n=t.mediaIndex,r=t.firstVideoFrameTimeForData,s=t.currentVideoTimestampOffset,a=t.useVideoTimingInfo,o=t.videoTimingInfo,l=t.audioTimingInfo;if(void 0!==e)return e;if(!a)return l.start;var u=i.segments[n-1];return 0!==n&&u&&void 0!==u.start&&u.end===r+s?o.start:r},i.waitForAppendsToComplete_=function(t){var e=this.getCurrentMediaInfo_(t);if(!e)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var i=e.hasAudio,n=e.hasVideo,r=e.isMuxed,s="main"===this.loaderType_&&n,a=!this.audioDisabled_&&i&&!r;if(t.waitingOnAppends=0,!t.hasAppendedData_)return t.timingInfo||"number"!=typeof t.timestampOffset||(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),void this.checkAppendsDone_(t);s&&t.waitingOnAppends++,a&&t.waitingOnAppends++,s&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))},i.checkAppendsDone_=function(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,0===t.waitingOnAppends&&this.handleAppendsDone_())},i.checkForIllegalMediaSwitch=function(t){var e=function(t,e,i){return"main"===t&&e&&i?i.hasAudio||i.hasVideo?e.hasVideo&&!i.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.hasVideo&&i.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),t);return!!e&&(this.error({message:e,blacklistDuration:1/0}),this.trigger("error"),!0)},i.updateSourceBufferTimestampOffset_=function(t){if(null!==t.timestampOffset&&"number"==typeof t.timingInfo.start&&!t.changedTimestampOffset&&"main"===this.loaderType_){var e=!1;t.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t.segment.videoTimingInfo,audioTimingInfo:t.segment.audioTimingInfo,timingInfo:t.timingInfo}),t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),e=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),e=!0),e&&this.trigger("timestampoffset")}},i.getSegmentStartTimeForTimestampOffsetCalculation_=function(t){var e=t.videoTimingInfo,i=t.audioTimingInfo,n=t.timingInfo;return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:i&&"number"==typeof i.transmuxedDecodeStart?i.transmuxedDecodeStart:n.start:n.start},i.updateTimingInfoEnd_=function(t){t.timingInfo=t.timingInfo||{};var e=this.getMediaInfo_(),i="main"===this.loaderType_&&e&&e.hasVideo&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;i&&(t.timingInfo.end="number"==typeof i.end?i.end:i.start+t.duration)},i.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var t=this.pendingSegment_;this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:"main"===this.loaderType_});var e=function(t,e){if("hls"!==e)return null;var i,n,r=(i={audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo},n=0,["video","audio"].forEach((function(t){var e=i[t+"TimingInfo"];if(e){var r,a=e.start,o=e.end;"bigint"==typeof a||"bigint"==typeof o?r=s().BigInt(o)-s().BigInt(a):"number"==typeof a&&"number"==typeof o&&(r=o-a),void 0!==r&&r>n&&(n=r)}})),"bigint"==typeof n&&n<Number.MAX_SAFE_INTEGER&&(n=Number(n)),n);if(!r)return null;var a=t.playlist.targetDuration,o=Rl({segmentDuration:r,maxDuration:2*a}),l=Rl({segmentDuration:r,maxDuration:a}),u="Segment with index "+t.mediaIndex+" from playlist "+t.playlist.id+" has a duration of "+r+" when the reported duration is "+t.duration+" and the target duration is "+a+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return o||l?{severity:o?"warn":"info",message:u}:null}(t,this.sourceType_);if(e&&("warn"===e.severity?Oa.log.warn(e.message):this.logger_(e.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",!t.isSyncRequest||(this.trigger("syncinfoupdate"),t.hasAppendedData_)){this.logger_("Appended "+Ll(t)),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");var i=t.segment,n=t.part,r=i.end&&this.currentTime_()-i.end>3*t.playlist.targetDuration,a=n&&n.end&&this.currentTime_()-n.end>3*t.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Ll(t)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Ll(t))},i.recordThroughput_=function(t){if(t.duration<Il)this.logger_("Ignoring segment's throughput because its duration of "+t.duration+" is less than the min to record "+Il);else{var e=this.throughput.rate,i=Date.now()-t.endOfAllRequests+1,n=Math.floor(t.byteLength/i*8*1e3);this.throughput.rate+=(n-e)/++this.throughput.count}},i.addSegmentMetadataCue_=function(t){if(this.segmentMetadataTrack_){var e=t.segment,i=e.start,n=e.end;if(Ml(i)&&Ml(n)){Al(i,n,this.segmentMetadataTrack_);var r=s().WebKitDataCue||s().VTTCue,a={custom:e.custom,dateTimeObject:e.dateTimeObject,dateTimeString:e.dateTimeString,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:i,end:n},o=new r(i,n,JSON.stringify(a));o.value=a,this.segmentMetadataTrack_.addCue(o)}}},e}(Oa.EventTarget);function Nl(){}var Hl,Vl=function(t){return"string"!=typeof t?t:t.replace(/./,(function(t){return t.toUpperCase()}))},jl=["video","audio"],Ul=function(t,e){var i=e[t+"Buffer"];return i&&i.updating||e.queuePending[t]},zl=function t(e,i){if(0!==i.queue.length){var n=0,r=i.queue[n];if("mediaSource"!==r.type){if("mediaSource"!==e&&i.ready()&&"closed"!==i.mediaSource.readyState&&!Ul(e,i)){if(r.type!==e){if(n=function(t,e){for(var i=0;i<e.length;i++){var n=e[i];if("mediaSource"===n.type)return null;if(n.type===t)return i}return null}(e,i.queue),null===n)return;r=i.queue[n]}return i.queue.splice(n,1),i.queuePending[e]=r,r.action(e,i),r.doneFn?void 0:(i.queuePending[e]=null,void t(e,i))}}else i.updating()||"closed"===i.mediaSource.readyState||(i.queue.shift(),r.action(i),r.doneFn&&r.doneFn(),t("audio",i),t("video",i))}},ql=function(t,e){var i=e[t+"Buffer"],n=Vl(t);i&&(i.removeEventListener("updateend",e["on"+n+"UpdateEnd_"]),i.removeEventListener("error",e["on"+n+"Error_"]),e.codecs[t]=null,e[t+"Buffer"]=null)},Gl=function(t,e){return t&&e&&-1!==Array.prototype.indexOf.call(t.sourceBuffers,e)},Wl=function(t,e,i){return function(n,r){var s=r[n+"Buffer"];if(Gl(r.mediaSource,s)){r.logger_("Appending segment "+e.mediaIndex+"'s "+t.length+" bytes to "+n+"Buffer");try{s.appendBuffer(t)}catch(t){r.logger_("Error with code "+t.code+" "+(22===t.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+e.mediaIndex+" to "+n+"Buffer"),r.queuePending[n]=null,i(t)}}}},Xl=function(t,e){return function(i,n){var r=n[i+"Buffer"];if(Gl(n.mediaSource,r)){n.logger_("Removing "+t+" to "+e+" from "+i+"Buffer");try{r.remove(t,e)}catch(r){n.logger_("Remove "+t+" to "+e+" from "+i+"Buffer failed")}}}},$l=function(t){return function(e,i){var n=i[e+"Buffer"];Gl(i.mediaSource,n)&&(i.logger_("Setting "+e+"timestampOffset to "+t),n.timestampOffset=t)}},Yl=function(t){return function(e,i){t()}},Kl=function(t){return function(e){if("open"===e.mediaSource.readyState){e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(t){Oa.log.warn("Failed to call media source endOfStream",t)}}}},Ql=function(t,e){return function(i){var n=Vl(t),r=z(e);i.logger_("Adding "+t+"Buffer with codec "+e+" to mediaSource");var s=i.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",i["on"+n+"UpdateEnd_"]),s.addEventListener("error",i["on"+n+"Error_"]),i.codecs[t]=e,i[t+"Buffer"]=s}},Zl=function(t){return function(e){var i=e[t+"Buffer"];if(ql(t,e),Gl(e.mediaSource,i)){e.logger_("Removing "+t+"Buffer with codec "+e.codecs[t]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(i)}catch(e){Oa.log.warn("Failed to removeSourceBuffer "+t+"Buffer",e)}}}},Jl=function(t){return function(e,i){var n=i[e+"Buffer"],r=z(t);Gl(i.mediaSource,n)&&i.codecs[e]!==t&&(i.logger_("changing "+e+"Buffer codec from "+i.codecs[e]+" to "+t),n.changeType(r),i.codecs[e]=t)}},tu=function(t){var e=t.type,i=t.sourceUpdater,n=t.action,r=t.doneFn,s=t.name;i.queue.push({type:e,action:n,doneFn:r,name:s}),zl(e,i)},eu=function(t,e){return function(i){if(e.queuePending[t]){var n=e.queuePending[t].doneFn;e.queuePending[t]=null,n&&n(e[t+"Error_"])}zl(t,e)}},iu=function(t){function e(e){var i;return(i=t.call(this)||this).mediaSource=e,i.sourceopenListener_=function(){return zl("mediaSource",h(i))},i.mediaSource.addEventListener("sourceopen",i.sourceopenListener_),i.logger_=Ha("SourceUpdater"),i.audioTimestampOffset_=0,i.videoTimestampOffset_=0,i.queue=[],i.queuePending={audio:null,video:null},i.delayedAudioAppendQueue_=[],i.videoAppendQueued_=!1,i.codecs={},i.onVideoUpdateEnd_=eu("video",h(i)),i.onAudioUpdateEnd_=eu("audio",h(i)),i.onVideoError_=function(t){i.videoError_=t},i.onAudioError_=function(t){i.audioError_=t},i.createdSourceBuffers_=!1,i.initializedEme_=!1,i.triggeredReady_=!1,i}p(e,t);var i=e.prototype;return i.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},i.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},i.hasInitializedAnyEme=function(){return this.initializedEme_},i.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},i.createSourceBuffers=function(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},i.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},i.addSourceBuffer=function(t,e){tu({type:"mediaSource",sourceUpdater:this,action:Ql(t,e),name:"addSourceBuffer"})},i.abort=function(t){tu({type:t,sourceUpdater:this,action:function(t,e){if("open"===e.mediaSource.readyState){var i=e[t+"Buffer"];if(Gl(e.mediaSource,i)){e.logger_("calling abort on "+t+"Buffer");try{i.abort()}catch(e){Oa.log.warn("Failed to abort on "+t+"Buffer",e)}}}},name:"abort"})},i.removeSourceBuffer=function(t){this.canRemoveSourceBuffer()?tu({type:"mediaSource",sourceUpdater:this,action:Zl(t),name:"removeSourceBuffer"}):Oa.log.error("removeSourceBuffer is not supported!")},i.canRemoveSourceBuffer=function(){return!Oa.browser.IE_VERSION&&!Oa.browser.IS_FIREFOX&&s().MediaSource&&s().MediaSource.prototype&&"function"==typeof s().MediaSource.prototype.removeSourceBuffer},e.canChangeType=function(){return s().SourceBuffer&&s().SourceBuffer.prototype&&"function"==typeof s().SourceBuffer.prototype.changeType},i.canChangeType=function(){return this.constructor.canChangeType()},i.changeType=function(t,e){this.canChangeType()?tu({type:t,sourceUpdater:this,action:Jl(e),name:"changeType"}):Oa.log.error("changeType is not supported!")},i.addOrChangeSourceBuffers=function(t){var e=this;if(!t||"object"!=typeof t||0===Object.keys(t).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach((function(i){var n=t[i];if(!e.hasCreatedSourceBuffers())return e.addSourceBuffer(i,n);e.canChangeType()&&e.changeType(i,n)}))},i.appendBuffer=function(t,e){var i=this,n=t.segmentInfo,r=t.type,s=t.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([t,e]),void this.logger_("delayed audio append of "+s.length+" until video append");if(tu({type:r,sourceUpdater:this,action:Wl(s,n||{mediaIndex:-1},e),doneFn:e,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var a=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+a.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,a.forEach((function(t){i.appendBuffer.apply(i,t)}))}},i.audioBuffered=function(){return Gl(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Oa.createTimeRange()},i.videoBuffered=function(){return Gl(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Oa.createTimeRange()},i.buffered=function(){var t=Gl(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,e=Gl(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return e&&!t?this.audioBuffered():t&&!e?this.videoBuffered():function(t,e){var i=null,n=null,r=0,s=[],a=[];if(!(t&&t.length&&e&&e.length))return Oa.createTimeRange();for(var o=t.length;o--;)s.push({time:t.start(o),type:"start"}),s.push({time:t.end(o),type:"end"});for(o=e.length;o--;)s.push({time:e.start(o),type:"start"}),s.push({time:e.end(o),type:"end"});for(s.sort((function(t,e){return t.time-e.time})),o=0;o<s.length;o++)"start"===s[o].type?2==++r&&(i=s[o].time):"end"===s[o].type&&1==--r&&(n=s[o].time),null!==i&&null!==n&&(a.push([i,n]),i=null,n=null);return Oa.createTimeRanges(a)}(this.audioBuffered(),this.videoBuffered())},i.setDuration=function(t,e){var i;void 0===e&&(e=Nl),tu({type:"mediaSource",sourceUpdater:this,action:(i=t,function(t){t.logger_("Setting mediaSource duration to "+i);try{t.mediaSource.duration=i}catch(t){Oa.log.warn("Failed to set media source duration",t)}}),name:"duration",doneFn:e})},i.endOfStream=function(t,e){void 0===t&&(t=null),void 0===e&&(e=Nl),"string"!=typeof t&&(t=void 0),tu({type:"mediaSource",sourceUpdater:this,action:Kl(t),name:"endOfStream",doneFn:e})},i.removeAudio=function(t,e,i){void 0===i&&(i=Nl),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?tu({type:"audio",sourceUpdater:this,action:Xl(t,e),doneFn:i,name:"remove"}):i()},i.removeVideo=function(t,e,i){void 0===i&&(i=Nl),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?tu({type:"video",sourceUpdater:this,action:Xl(t,e),doneFn:i,name:"remove"}):i()},i.updating=function(){return!(!Ul("audio",this)&&!Ul("video",this))},i.audioTimestampOffset=function(t){return void 0!==t&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(tu({type:"audio",sourceUpdater:this,action:$l(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_},i.videoTimestampOffset=function(t){return void 0!==t&&this.videoBuffer&&this.videoTimestampOffset!==t&&(tu({type:"video",sourceUpdater:this,action:$l(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_},i.audioQueueCallback=function(t){this.audioBuffer&&tu({type:"audio",sourceUpdater:this,action:Yl(t),name:"callback"})},i.videoQueueCallback=function(t){this.videoBuffer&&tu({type:"video",sourceUpdater:this,action:Yl(t),name:"callback"})},i.dispose=function(){var t=this;this.trigger("dispose"),jl.forEach((function(e){t.abort(e),t.canRemoveSourceBuffer()?t.removeSourceBuffer(e):t[e+"QueueCallback"]((function(){return ql(e,t)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(Oa.EventTarget),nu=function(t){return decodeURIComponent(escape(String.fromCharCode.apply(null,t)))},ru=new Uint8Array("\n\n".split("").map((function(t){return t.charCodeAt(0)}))),su=function(t){function e(e,i){var n;return void 0===i&&(i={}),(n=t.call(this,e,i)||this).mediaSource_=null,n.subtitlesTrack_=null,n.loaderType_="subtitle",n.featuresNativeTextTracks_=e.featuresNativeTextTracks,n.shouldSaveSegmentTimingInfo_=!1,n}p(e,t);var i=e.prototype;return i.createTransmuxer_=function(){return null},i.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Oa.createTimeRanges();var t=this.subtitlesTrack_.cues,e=t[0].startTime,i=t[t.length-1].startTime;return Oa.createTimeRanges([[e,i]])},i.initSegmentForMap=function(t,e){if(void 0===e&&(e=!1),!t)return null;var i=No(t),n=this.initSegments_[i];if(e&&!n&&t.bytes){var r=ru.byteLength+t.bytes.byteLength,s=new Uint8Array(r);s.set(t.bytes),s.set(ru,t.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:s}}return n||t},i.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},i.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},i.track=function(t){return void 0===t||(this.subtitlesTrack_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},i.remove=function(t,e){Al(t,e,this.subtitlesTrack_)},i.fillBuffer_=function(){var t=this,e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline))return this.syncController_.one("timestampoffset",(function(){t.state="READY",t.paused()||t.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(e)}},i.timestampOffsetForSegment_=function(){return null},i.chooseNextRequest_=function(){return this.skipEmptySegments_(t.prototype.chooseNextRequest_.call(this))},i.skipEmptySegments_=function(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t},i.stopForError=function(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")},i.segmentRequestFinished_=function(t,e,i){var n=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(e.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(t)return t.code===ll&&this.handleTimeout_(),t.code===ul?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(t);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,e.stats),e.key&&this.segmentKey(e.key,!0),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=e.map.bytes),r.bytes=e.bytes,"function"!=typeof s().WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o,l=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",o),n.stopForError({message:"Error loading vtt.js"})};return o=function(){n.subtitlesTrack_.tech_.off("vttjserror",l),n.segmentRequestFinished_(t,e,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",l)}a.requested=!0;try{this.parseVTTCues_(r)}catch(t){return void this.stopForError({message:t.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach((function(t){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new(s().VTTCue)(t.startTime,t.endTime,t.text):t)})),function(t){var e=t.cues;if(e)for(var i=0;i<e.length;i++){for(var n=[],r=0,s=0;s<e.length;s++)e[i].startTime===e[s].startTime&&e[i].endTime===e[s].endTime&&e[i].text===e[s].text&&++r>1&&n.push(e[s]);n.length&&n.forEach((function(e){return t.removeCue(e)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},i.handleData_=function(){},i.updateTimingInfoEnd_=function(){},i.parseVTTCues_=function(t){var e,i=!1;"function"==typeof s().TextDecoder?e=new(s().TextDecoder)("utf8"):(e=s().WebVTT.StringDecoder(),i=!0);var n=new(s().WebVTT.Parser)(s(),s().vttjs,e);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=t.cues.push.bind(t.cues),n.ontimestampmap=function(e){t.timestampmap=e},n.onparsingerror=function(t){Oa.log.warn("Error encountered when parsing cues: "+t.message)},t.segment.map){var r=t.segment.map.bytes;i&&(r=nu(r)),n.parse(r)}var a=t.bytes;i&&(a=nu(a)),n.parse(a),n.flush()},i.updateTimeMapping_=function(t,e,i){var n=t.segment;if(e)if(t.cues.length){var r=t.timestampmap,s=r.MPEGTS/ye.ONE_SECOND_IN_TS-r.LOCAL+e.mapping;if(t.cues.forEach((function(t){t.startTime+=s,t.endTime+=s})),!i.syncInfo){var a=t.cues[0].startTime,o=t.cues[t.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+t.mediaIndex,time:Math.min(a,o-n.duration)}}}else n.empty=!0},e}(Bl),au=function(t,e){for(var i=t.cues,n=0;n<i.length;n++){var r=i[n];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},ou=[{name:"VOD",run:function(t,e,i,n,r){return i!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(t,e,i,n,r){if(!Object.keys(t.timelineToDatetimeMappings).length)return null;var s=null,a=null,o=Qa(e);r=r||0;for(var l=0;l<o.length;l++){var u=o[e.endList||0===r?l:o.length-(l+1)],c=u.segment,h=t.timelineToDatetimeMappings[c.timeline];if(h&&c.dateTimeObject){var d=c.dateTimeObject.getTime()/1e3+h;if(c.parts&&"number"==typeof u.partIndex)for(var p=0;p<u.partIndex;p++)d+=c.parts[p].duration;var f=Math.abs(r-d);if(null!==a&&(0===f||a<f))break;a=f,s={time:d,segmentIndex:u.segmentIndex,partIndex:u.partIndex}}}return s}},{name:"Segment",run:function(t,e,i,n,r){var s=null,a=null;r=r||0;for(var o=Qa(e),l=0;l<o.length;l++){var u=o[e.endList||0===r?l:o.length-(l+1)],c=u.segment,h=u.part&&u.part.start||c&&c.start;if(c.timeline===n&&void 0!==h){var d=Math.abs(r-h);if(null!==a&&a<d)break;(!s||null===a||a>=d)&&(a=d,s={time:h,segmentIndex:u.segmentIndex,partIndex:u.partIndex})}}return s}},{name:"Discontinuity",run:function(t,e,i,n,r){var s=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length)for(var a=null,o=0;o<e.discontinuityStarts.length;o++){var l=e.discontinuityStarts[o],u=e.discontinuitySequence+o+1,c=t.discontinuities[u];if(c){var h=Math.abs(r-c.time);if(null!==a&&a<h)break;(!s||null===a||a>=h)&&(a=h,s={time:c.time,segmentIndex:l,partIndex:null})}}return s}},{name:"Playlist",run:function(t,e,i,n,r){return e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}}],lu=function(t){function e(e){var i;return(i=t.call(this)||this).timelines=[],i.discontinuities=[],i.timelineToDatetimeMappings={},i.logger_=Ha("SyncController"),i}p(e,t);var i=e.prototype;return i.getSyncPoint=function(t,e,i,n){var r=this.runStrategies_(t,e,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null},i.getExpiredTime=function(t,e){if(!t||!t.segments)return null;var i=this.runStrategies_(t,e,t.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+no({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:n.segmentIndex,endIndex:0}))},i.runStrategies_=function(t,e,i,n){for(var r=[],s=0;s<ou.length;s++){var a=ou[s],o=a.run(this,t,e,i,n);o&&(o.strategy=a.name,r.push({strategy:a.name,syncPoint:o}))}return r},i.selectSyncPoint_=function(t,e){for(var i=t[0].syncPoint,n=Math.abs(t[0].syncPoint[e.key]-e.value),r=t[0].strategy,s=1;s<t.length;s++){var a=Math.abs(t[s].syncPoint[e.key]-e.value);a<n&&(n=a,i=t[s].syncPoint,r=t[s].strategy)}return this.logger_("syncPoint for ["+e.key+": "+e.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+("number"==typeof i.partIndex?",partIndex:"+i.partIndex:"")+"]"),i},i.saveExpiredSegmentInfo=function(t,e){var i=e.mediaSequence-t.mediaSequence;if(i>86400)Oa.log.warn("Not saving expired segment info. Media sequence gap "+i+" is too large.");else for(var n=i-1;n>=0;n--){var r=t.segments[n];if(r&&void 0!==r.start){e.syncInfo={mediaSequence:t.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+e.syncInfo.time+", mediaSequence: "+e.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},i.setDateTimeMappingForStart=function(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){var e=t.segments[0],i=e.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[e.timeline]=-i}},i.saveSegmentTimingInfo=function(t){var e=t.segmentInfo,i=t.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(e,e.timingInfo,i),r=e.segment;n&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));var s=r.dateTimeObject;r.discontinuity&&i&&s&&(this.timelineToDatetimeMappings[r.timeline]=-s.getTime()/1e3)},i.timestampOffsetForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].time},i.mappingForTimeline=function(t){return void 0===this.timelines[t]?null:this.timelines[t].mapping},i.calculateSegmentTimeMapping_=function(t,e,i){var n,r,s=t.segment,a=t.part,o=this.timelines[t.timeline];if("number"==typeof t.timestampOffset)o={time:t.startOfSegment,mapping:t.startOfSegment-e.start},i&&(this.timelines[t.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+t.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),n=t.startOfSegment,r=e.end+o.mapping;else{if(!o)return!1;n=e.start+o.mapping,r=e.end+o.mapping}return a&&(a.start=n,a.end=r),(!s.start||n<s.start)&&(s.start=n),s.end=r,!0},i.saveDiscontinuitySyncInfo_=function(t){var e=t.playlist,i=t.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(e.discontinuityStarts&&e.discontinuityStarts.length)for(var n=0;n<e.discontinuityStarts.length;n++){var r=e.discontinuityStarts[n],s=e.discontinuitySequence+n+1,a=r-t.mediaIndex,o=Math.abs(a);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>o){var l;l=a<0?i.start-no({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex,endIndex:r}):i.end+no({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.mediaIndex+1,endIndex:r}),this.discontinuities[s]={time:l,accuracy:o}}}},i.dispose=function(){this.trigger("dispose"),this.off()},e}(Oa.EventTarget),uu=function(t){function e(){var e;return(e=t.call(this)||this).pendingTimelineChanges_={},e.lastTimelineChanges_={},e}p(e,t);var i=e.prototype;return i.clearPendingTimelineChange=function(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(t){var e=t.type,i=t.from,n=t.to;return"number"==typeof i&&"number"==typeof n&&(this.pendingTimelineChanges_[e]={type:e,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]},i.lastTimelineChange=function(t){var e=t.type,i=t.from,n=t.to;return"number"==typeof i&&"number"==typeof n&&(this.lastTimelineChanges_[e]={type:e,from:i,to:n},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(Oa.EventTarget),cu=Jo(tl((function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function e(t,e,i){return t(i={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&i.path)}},i.exports),i.exports}var n=e((function(t){function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0})),r=e((function(t){function e(i,n){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(i,n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),s=e((function(t){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0})),a=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(i,1),i>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var i=e.length,n=0;n<i;++n)e[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),s=e.length,a=0;a<s;++a)e[a].apply(this,r)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",(function(e){t.push(e)}))},t}(),o=null,l=function(){function t(t){var e,i,n;o||(o=function(){var t,e,i,n,r,s,a,o,l=[[[],[],[],[],[]],[[],[],[],[],[]]],u=l[0],c=l[1],h=u[4],d=c[4],p=[],f=[];for(t=0;t<256;t++)f[(p[t]=t<<1^283*(t>>7))^t]=t;for(e=i=0;!h[e];e^=n||1,i=f[i]||1)for(s=(s=i^i<<1^i<<2^i<<3^i<<4)>>8^255&s^99,h[e]=s,d[s]=e,o=16843009*p[r=p[n=p[e]]]^65537*r^257*n^16843008*e,a=257*p[s]^16843008*s,t=0;t<4;t++)u[t][e]=a=a<<24^a>>>8,c[t][s]=o=o<<24^o>>>8;for(t=0;t<5;t++)u[t]=u[t].slice(0),c[t]=c[t].slice(0);return l}()),this._tables=[[o[0][0].slice(),o[0][1].slice(),o[0][2].slice(),o[0][3].slice(),o[0][4].slice()],[o[1][0].slice(),o[1][1].slice(),o[1][2].slice(),o[1][3].slice(),o[1][4].slice()]];var r=this._tables[0][4],s=this._tables[1],a=t.length,l=1;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size");var u=t.slice(0),c=[];for(this._key=[u,c],e=a;e<4*a+28;e++)n=u[e-1],(e%a==0||8===a&&e%a==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],e%a==0&&(n=n<<8^n>>>24^l<<24,l=l<<1^283*(l>>7))),u[e]=u[e-a]^n;for(i=0;e;i++,e--)n=u[3&i?e:e-4],c[i]=e<=4||i<4?n:s[0][r[n>>>24]]^s[1][r[n>>16&255]]^s[2][r[n>>8&255]]^s[3][r[255&n]]}return t.prototype.decrypt=function(t,e,i,n,r,s){var a,o,l,u,c=this._key[1],h=t^c[0],d=n^c[1],p=i^c[2],f=e^c[3],m=c.length/4-2,g=4,y=this._tables[1],v=y[0],_=y[1],b=y[2],x=y[3],T=y[4];for(u=0;u<m;u++)a=v[h>>>24]^_[d>>16&255]^b[p>>8&255]^x[255&f]^c[g],o=v[d>>>24]^_[p>>16&255]^b[f>>8&255]^x[255&h]^c[g+1],l=v[p>>>24]^_[f>>16&255]^b[h>>8&255]^x[255&d]^c[g+2],f=v[f>>>24]^_[h>>16&255]^b[d>>8&255]^x[255&p]^c[g+3],g+=4,h=a,d=o,p=l;for(u=0;u<4;u++)r[(3&-u)+s]=T[h>>>24]<<24^T[d>>16&255]<<16^T[p>>8&255]<<8^T[255&f]^c[g++],a=h,h=d,d=p,p=f,f=a},t}(),u=function(t){function e(){var e;return(e=t.call(this,a)||this).jobs=[],e.delay=1,e.timeout_=null,e}s(e,t);var i=e.prototype;return i.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.push=function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(a),c=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},h=function(){function t(e,i,n,r){var s=t.STEP,a=new Int32Array(e.buffer),o=new Uint8Array(e.byteLength),l=0;for(this.asyncStream_=new u,this.asyncStream_.push(this.decryptChunk_(a.subarray(l,l+s),i,n,o)),l=s;l<a.length;l+=s)n=new Uint32Array([c(a[l-4]),c(a[l-3]),c(a[l-2]),c(a[l-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(l,l+s),i,n,o));this.asyncStream_.push((function(){var t;r(null,(t=o).subarray(0,t.byteLength-t[t.byteLength-1]))}))}return t.prototype.decryptChunk_=function(t,e,i,n){return function(){var r=function(t,e,i){var n,r,s,a,o,u,h,d,p,f=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),m=new l(Array.prototype.slice.call(e)),g=new Uint8Array(t.byteLength),y=new Int32Array(g.buffer);for(n=i[0],r=i[1],s=i[2],a=i[3],p=0;p<f.length;p+=4)o=c(f[p]),u=c(f[p+1]),h=c(f[p+2]),d=c(f[p+3]),m.decrypt(o,u,h,d,y,p),y[p]=c(y[p]^n),y[p+1]=c(y[p+1]^r),y[p+2]=c(y[p+2]^s),y[p+3]=c(y[p+3]^a),n=o,r=u,s=h,a=d;return g}(t,e,i);n.set(r,t.byteOffset)}},n(t,null,[{key:"STEP",get:function(){return 32e3}}]),t}(),d=("undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{}).BigInt||Number;d("0x1"),d("0x100"),d("0x10000"),d("0x1000000"),d("0x100000000"),d("0x10000000000"),d("0x1000000000000"),d("0x100000000000000"),d("0x10000000000000000");self.onmessage=function(t){var e=t.data,i=new Uint8Array(e.encrypted.bytes,e.encrypted.byteOffset,e.encrypted.byteLength),n=new Uint32Array(e.key.bytes,e.key.byteOffset,e.key.byteLength/4),r=new Uint32Array(e.iv.bytes,e.iv.byteOffset,e.iv.byteLength/4);new h(i,n,r,(function(t,i){var n,r;self.postMessage((n={source:e.source,decrypted:i},r={},Object.keys(n).forEach((function(t){var e,i=n[t];e=i,("function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer)?r[t]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:r[t]=i})),r),[i.buffer])}))}}))),hu=Zo(cu),du=function(t){var e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},pu=function(t,e){t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},fu=function(t,e){e.activePlaylistLoader=t,t.load()},mu={AUDIO:function(t,e){return function(){var i=e.segmentLoaders[t],n=e.mediaTypes[t],r=e.blacklistCurrentPlaylist;pu(i,n);var s=n.activeTrack(),a=n.activeGroup(),o=(a.filter((function(t){return t.default}))[0]||a[0]).id,l=n.tracks[o];if(s!==l){for(var u in Oa.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),n.tracks)n.tracks[u].enabled=n.tracks[u]===l;n.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(t,e){return function(){var i=e.segmentLoaders[t],n=e.mediaTypes[t];Oa.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),pu(i,n);var r=n.activeTrack();r&&(r.mode="disabled"),n.onTrackChanged()}}},gu={AUDIO:function(t,e,i){if(e){var n=i.tech,r=i.requestOptions,s=i.segmentLoaders[t];e.on("loadedmetadata",(function(){var t=e.media();s.playlist(t,r),(!n.paused()||t.endList&&"none"!==n.preload())&&s.load()})),e.on("loadedplaylist",(function(){s.playlist(e.media(),r),n.paused()||s.load()})),e.on("error",mu[t](t,i))}},SUBTITLES:function(t,e,i){var n=i.tech,r=i.requestOptions,s=i.segmentLoaders[t],a=i.mediaTypes[t];e.on("loadedmetadata",(function(){var t=e.media();s.playlist(t,r),s.track(a.activeTrack()),(!n.paused()||t.endList&&"none"!==n.preload())&&s.load()})),e.on("loadedplaylist",(function(){s.playlist(e.media(),r),n.paused()||s.load()})),e.on("error",mu[t](t,i))}},yu={AUDIO:function(t,e){var i=e.vhs,n=e.sourceType,r=e.segmentLoaders[t],s=e.requestOptions,a=e.master.mediaGroups,o=e.mediaTypes[t],l=o.groups,u=o.tracks,c=o.logger_,h=e.masterPlaylistLoader,d=po(h.master);for(var p in a[t]&&0!==Object.keys(a[t]).length||(a[t]={main:{default:{default:!0}}},d&&(a[t].main.default.playlists=h.master.playlists)),a[t])for(var f in l[p]||(l[p]=[]),a[t][p]){var m=a[t][p][f],g=void 0;if(d?(c("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===n&&m.playlists?new Co(m.playlists[0],i,s):m.resolvedUri?new Co(m.resolvedUri,i,s):m.playlists&&"dash"===n?new Yo(m.playlists[0],i,s,h):null,m=Oa.mergeOptions({id:f,playlistLoader:g},m),gu[t](t,m.playlistLoader,e),l[p].push(m),void 0===u[f]){var y=new Oa.AudioTrack({id:f,kind:du(m),enabled:!1,language:m.language,default:m.default,label:f});u[f]=y}}r.on("error",mu[t](t,e))},SUBTITLES:function(t,e){var i=e.tech,n=e.vhs,r=e.sourceType,s=e.segmentLoaders[t],a=e.requestOptions,o=e.master.mediaGroups,l=e.mediaTypes[t],u=l.groups,c=l.tracks,h=e.masterPlaylistLoader;for(var d in o[t])for(var p in u[d]||(u[d]=[]),o[t][d])if(!o[t][d][p].forced){var f=o[t][d][p],m=void 0;if("hls"===r)m=new Co(f.resolvedUri,n,a);else if("dash"===r){if(!f.playlists.filter((function(t){return t.excludeUntil!==1/0})).length)return;m=new Yo(f.playlists[0],n,a,h)}else"vhs-json"===r&&(m=new Co(f.playlists?f.playlists[0]:f.resolvedUri,n,a));if(f=Oa.mergeOptions({id:p,playlistLoader:m},f),gu[t](t,f.playlistLoader,e),u[d].push(f),void 0===c[p]){var g=i.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track;c[p]=g}}s.on("error",mu[t](t,e))},"CLOSED-CAPTIONS":function(t,e){var i=e.tech,n=e.master.mediaGroups,r=e.mediaTypes[t],s=r.groups,a=r.tracks;for(var o in n[t])for(var l in s[o]||(s[o]=[]),n[t][o]){var u=n[t][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var c=i.options_.vhs&&i.options_.vhs.captionServices||{},h={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(c[h.instreamId]&&(h=Oa.mergeOptions(h,c[h.instreamId])),void 0===h.default&&delete h.default,s[o].push(Oa.mergeOptions({id:l},u)),void 0===a[l]){var d=i.addRemoteTextTrack({id:h.instreamId,kind:"captions",default:h.default,language:h.language,label:h.label},!1).track;a[l]=d}}}}},vu=function t(e,i){for(var n=0;n<e.length;n++){if(co(i,e[n]))return!0;if(e[n].playlists&&t(e[n].playlists,i))return!0}return!1},_u={AUDIO:function(t,e){return function(){var i=e.mediaTypes[t].tracks;for(var n in i)if(i[n].enabled)return i[n];return null}},SUBTITLES:function(t,e){return function(){var i=e.mediaTypes[t].tracks;for(var n in i)if("showing"===i[n].mode||"hidden"===i[n].mode)return i[n];return null}}},bu=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],xu=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Tu=function(t){function e(e){var i;i=t.call(this)||this;var n=e.src,r=e.handleManifestRedirects,a=e.withCredentials,o=e.tech,l=e.bandwidth,u=e.externVhs,c=e.useCueTags,d=e.blacklistDuration,p=e.enableLowInitialPlaylist,f=e.sourceType,m=e.cacheEncryptionKeys,g=e.experimentalBufferBasedABR,y=e.experimentalLeastPixelDiffSelector,v=e.captionServices;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");var _=e.maxPlaylistRetries;null==_&&(_=1/0),Hl=u,i.experimentalBufferBasedABR=Boolean(g),i.experimentalLeastPixelDiffSelector=Boolean(y),i.withCredentials=a,i.tech_=o,i.vhs_=o.vhs,i.sourceType_=f,i.useCueTags_=c,i.blacklistDuration=d,i.maxPlaylistRetries=_,i.enableLowInitialPlaylist=p,i.useCueTags_&&(i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues"),i.cueTagsTrack_.inBandMetadataTrackDispatchType=""),i.requestOptions_={withCredentials:a,handleManifestRedirects:r,maxPlaylistRetries:_,timeout:null},i.on("error",i.pauseLoading),i.mediaTypes_=function(){var t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Nl,activeTrack:Nl,getActiveGroup:Nl,onGroupChanged:Nl,onTrackChanged:Nl,lastTrack_:null,logger_:Ha("MediaGroups["+e+"]")}})),t}(),i.mediaSource=new(s().MediaSource),i.handleDurationChange_=i.handleDurationChange_.bind(h(i)),i.handleSourceOpen_=i.handleSourceOpen_.bind(h(i)),i.handleSourceEnded_=i.handleSourceEnded_.bind(h(i)),i.mediaSource.addEventListener("durationchange",i.handleDurationChange_),i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_),i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_),i.seekable_=Oa.createTimeRanges(),i.hasPlayed_=!1,i.syncController_=new lu(e),i.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,i.decrypter_=new hu,i.sourceUpdater_=new iu(i.mediaSource),i.inbandTextTracks_={},i.timelineChangeController_=new uu;var b={vhs:i.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:v,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.duration()},hasPlayed:function(){return i.hasPlayed_},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:l,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_,experimentalExactManifestTimings:e.experimentalExactManifestTimings};i.masterPlaylistLoader_="dash"===i.sourceType_?new Yo(n,i.vhs_,i.requestOptions_):new Co(n,i.vhs_,i.requestOptions_),i.setupMasterPlaylistLoaderListeners_(),i.mainSegmentLoader_=new Bl(Oa.mergeOptions(b,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),e),i.audioSegmentLoader_=new Bl(Oa.mergeOptions(b,{loaderType:"audio"}),e),i.subtitleSegmentLoader_=new su(Oa.mergeOptions(b,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),e),i.setupSegmentLoaderListeners_(),i.experimentalBufferBasedABR&&(i.masterPlaylistLoader_.one("loadedplaylist",(function(){return i.startABRTimer_()})),i.tech_.on("pause",(function(){return i.stopABRTimer_()})),i.tech_.on("play",(function(){return i.startABRTimer_()}))),bu.forEach((function(t){i[t+"_"]=xu.bind(h(i),t)})),i.logger_=Ha("MPC"),i.triggeredFmp4Usage=!1,"none"===i.tech_.preload()?(i.loadOnPlay_=function(){i.loadOnPlay_=null,i.masterPlaylistLoader_.load()},i.tech_.one("play",i.loadOnPlay_)):i.masterPlaylistLoader_.load(),i.timeToLoadedData__=-1,i.mainAppendsToLoadedData__=-1,i.audioAppendsToLoadedData__=-1;var x="none"===i.tech_.preload()?"play":"loadstart";return i.tech_.one(x,(function(){var t=Date.now();i.tech_.one("loadeddata",(function(){i.timeToLoadedData__=Date.now()-t,i.mainAppendsToLoadedData__=i.mainSegmentLoader_.mediaAppends,i.audioAppendsToLoadedData__=i.audioSegmentLoader_.mediaAppends}))})),i}p(e,t);var i=e.prototype;return i.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},i.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},i.appendsToLoadedData_=function(){var t=this.mainAppendsToLoadedData_(),e=this.audioAppendsToLoadedData_();return-1===t||-1===e?-1:t+e},i.timeToLoadedData_=function(){return this.timeToLoadedData__},i.checkABR_=function(){var t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,"abr")},i.switchMedia_=function(t,e,i){var n=this.media(),r=n&&(n.id||n.uri),s=t.id||t.uri;r&&r!==s&&(this.logger_("switch media "+r+" -> "+s+" from "+e),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+e})),this.masterPlaylistLoader_.media(t,i)},i.startABRTimer_=function(){var t=this;this.stopABRTimer_(),this.abrTimer_=s().setInterval((function(){return t.checkABR_()}),250)},i.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(s().clearInterval(this.abrTimer_),this.abrTimer_=null)},i.getAudioTrackPlaylists_=function(){var t=this.master(),e=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return e;var i,n=t.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{var s=n.main||r.length&&n[r[0]];for(var a in s)if(s[a].default){i={label:a};break}}if(!i)return e;var o=[];for(var l in n)if(n[l][i.label]){var u=n[l][i.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(t.playlists.length)for(var c=0;c<t.playlists.length;c++){var h=t.playlists[c];h.attributes&&h.attributes.AUDIO&&h.attributes.AUDIO===l&&o.push(h)}}return o.length?o:e},i.setupMasterPlaylistLoaderListeners_=function(){var t=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var e=t.masterPlaylistLoader_.media(),i=1.5*e.targetDuration*1e3;uo(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=i,e.endList&&"none"!==t.tech_.preload()&&(t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load()),function(t){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){yu[e](e,t)}));var e=t.mediaTypes,i=t.masterPlaylistLoader,n=t.tech,r=t.vhs,s=t.segmentLoaders,a=s.AUDIO,o=s.main;["AUDIO","SUBTITLES"].forEach((function(i){e[i].activeGroup=function(t,e){return function(i){var n=e.masterPlaylistLoader,r=e.mediaTypes[t].groups,s=n.media();if(!s)return null;var a=null;s.attributes[t]&&(a=r[s.attributes[t]]);var o=Object.keys(r);if(!a)if("AUDIO"===t&&o.length>1&&po(e.master))for(var l=0;l<o.length;l++){var u=r[o[l]];if(vu(u,s)){a=u;break}}else r.main?a=r.main:1===o.length&&(a=r[o[0]]);return void 0===i?a:null!==i&&a&&a.filter((function(t){return t.id===i.id}))[0]||null}}(i,t),e[i].activeTrack=_u[i](i,t),e[i].onGroupChanged=function(t,e){return function(){var i=e.segmentLoaders,n=i[t],r=i.main,s=e.mediaTypes[t],a=s.activeTrack(),o=s.getActiveGroup(),l=s.activePlaylistLoader,u=s.lastGroup_;o&&u&&o.id===u.id||(s.lastGroup_=o,s.lastTrack_=a,pu(n,s),o&&!o.isMasterPlaylist&&(o.playlistLoader?(n.resyncLoader(),fu(o.playlistLoader,s)):l&&r.resetEverything()))}}(i,t),e[i].onGroupChanging=function(t,e){return function(){var i=e.segmentLoaders[t];e.mediaTypes[t].lastGroup_=null,i.abort(),i.pause()}}(i,t),e[i].onTrackChanged=function(t,e){return function(){var i=e.masterPlaylistLoader,n=e.segmentLoaders,r=n[t],s=n.main,a=e.mediaTypes[t],o=a.activeTrack(),l=a.getActiveGroup(),u=a.activePlaylistLoader,c=a.lastTrack_;if((!c||!o||c.id!==o.id)&&(a.lastGroup_=l,a.lastTrack_=o,pu(r,a),l)){if(l.isMasterPlaylist){if(!o||!c||o.id===c.id)return;var h=e.vhs.masterPlaylistController_,d=h.selectPlaylist();if(h.media()===d)return;return a.logger_("track change. Switching master audio from "+c.id+" to "+o.id),i.pause(),s.resetEverything(),void h.fastQualityChange_(d)}if("AUDIO"===t){if(!l.playlistLoader)return s.setAudio(!0),void s.resetEverything();r.setAudio(!0),s.setAudio(!1)}u!==l.playlistLoader?(r.track&&r.track(o),r.resetEverything(),fu(l.playlistLoader,a)):fu(l.playlistLoader,a)}}}(i,t),e[i].getActiveGroup=function(t,e){var i=e.mediaTypes;return function(){var e=i[t].activeTrack();return e?i[t].activeGroup(e):null}}(i,t)}));var l=e.AUDIO.activeGroup();if(l){var u=(l.filter((function(t){return t.default}))[0]||l[0]).id;e.AUDIO.tracks[u].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),a.setAudio(!0)):o.setAudio(!0)}i.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return e[t].onGroupChanged()}))})),i.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(t){return e[t].onGroupChanging()}))}));var c=function(){e.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"}),n.trigger({type:"usage",name:"hls-audio-change"})};for(var h in n.audioTracks().addEventListener("change",c),n.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",(function(){n.audioTracks().removeEventListener("change",c),n.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)})),n.clearTracks("audio"),e.AUDIO.tracks)n.audioTracks().addTrack(e.AUDIO.tracks[h])}({sourceType:t.sourceType_,segmentLoaders:{AUDIO:t.audioSegmentLoader_,SUBTITLES:t.subtitleSegmentLoader_,main:t.mainSegmentLoader_},tech:t.tech_,requestOptions:t.requestOptions_,masterPlaylistLoader:t.masterPlaylistLoader_,vhs:t.vhs_,master:t.master(),mediaTypes:t.mediaTypes_,blacklistCurrentPlaylist:t.blacklistCurrentPlaylist.bind(t)}),t.triggerPresenceUsage_(t.master(),e),t.setupFirstPlay(),!t.mediaTypes_.AUDIO.activePlaylistLoader||t.mediaTypes_.AUDIO.activePlaylistLoader.media()?t.trigger("selectedinitialmedia"):t.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){t.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){t.loadOnPlay_&&t.tech_.off("play",t.loadOnPlay_);var e=t.masterPlaylistLoader_.media();if(!e){var i;if(t.excludeUnsupportedVariants_(),t.enableLowInitialPlaylist&&(i=t.selectInitialPlaylist()),i||(i=t.selectPlaylist()),!i||!t.shouldSwitchToMedia_(i))return;if(t.initialMedia_=i,t.switchMedia_(t.initialMedia_,"initial"),"vhs-json"!==t.sourceType_||!t.initialMedia_.segments)return;e=t.initialMedia_}t.handleUpdatedMediaPlaylist(e)})),this.masterPlaylistLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){t.mainSegmentLoader_.abort(),t.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var e=t.masterPlaylistLoader_.media(),i=1.5*e.targetDuration*1e3;uo(t.masterPlaylistLoader_.master,t.masterPlaylistLoader_.media())?t.requestOptions_.timeout=0:t.requestOptions_.timeout=i,t.mainSegmentLoader_.playlist(e,t.requestOptions_),t.mainSegmentLoader_.load(),t.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var e=t.masterPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&t.stuckAtPlaylistEnd_(e)&&(t.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),t.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){t.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),t.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},i.handleUpdatedMediaPlaylist=function(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},i.triggerPresenceUsage_=function(t,e){var i=t.mediaGroups||{},n=!0,r=Object.keys(i.AUDIO);for(var s in i.AUDIO)for(var a in i.AUDIO[s])i.AUDIO[s][a].uri||(n=!1);n&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(i.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Hl.Playlist.isAes(e)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},i.shouldSwitchToMedia_=function(t){var e=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function(t){var e=t.currentPlaylist,i=t.buffered,n=t.currentTime,r=t.nextPlaylist,s=t.bufferLowWaterLine,a=t.bufferHighWaterLine,o=t.duration,l=t.experimentalBufferBasedABR,u=t.log;if(!r)return Oa.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch "+(e&&e.id||"null")+" -> "+r.id;if(!e)return u(c+" as current playlist is not set"),!0;if(r.id===e.id)return!1;var h=Boolean(za(i,n).length);if(!e.endList)return h||"number"!=typeof e.partTargetDuration?(u(c+" as current playlist is live"),!0):(u("not "+c+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var d=$a(i,n),p=l?Ko.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Ko.MAX_BUFFER_LOW_WATER_LINE;if(o<p)return u(c+" as duration < max low water line ("+o+" < "+p+")"),!0;var f=r.attributes.BANDWIDTH,m=e.attributes.BANDWIDTH;if(f<m&&(!l||d<a)){var g=c+" as next bandwidth < current bandwidth ("+f+" < "+m+")";return l&&(g+=" and forwardBuffer < bufferHighWaterLine ("+d+" < "+a+")"),u(g),!0}if((!l||f>m)&&d>=s){var y=c+" as forwardBuffer >= bufferLowWaterLine ("+d+" >= "+s+")";return l&&(y+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(y),!0}return u("not "+c+" as no switching criteria met"),!1}({buffered:this.tech_.buffered(),currentTime:i,currentPlaylist:e,nextPlaylist:t,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},i.setupSegmentLoaderListeners_=function(){var t=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var e=t.selectPlaylist();t.shouldSwitchToMedia_(e)&&t.switchMedia_(e,"bandwidthupdate"),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){t.logger_("main segment loader ended"),t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var e=function(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()}))},i.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},i.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},i.smoothQualityChange_=function(t){void 0===t&&(t=this.selectPlaylist()),this.fastQualityChange_(t)},i.fastQualityChange_=function(t){var e=this;void 0===t&&(t=this.selectPlaylist()),t!==this.masterPlaylistLoader_.media()?(this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Oa.browser.IE_VERSION||Oa.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},i.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var t=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0)?this.tech_.setCurrentTime(t.end(t.length-1)):void 0}},i.setupFirstPlay=function(){var t=this,e=this.masterPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList){var i=this.seekable();if(!i.length)return!1;if(Oa.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){t.trigger("firstplay"),t.tech_.setCurrentTime(i.end(0)),t.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(i.end(0))}return this.hasPlayed_=!0,this.load(),!0},i.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var t=this.tech_.play();void 0!==t&&"function"==typeof t.then&&t.then(null,(function(t){}))}this.trigger("sourceopen")},i.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var t=this.inbandTextTracks_.metadataTrack_.cues;if(t&&t.length){var e=this.duration();t[t.length-1].endTime=isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e}}},i.handleDurationChange_=function(){this.tech_.trigger("durationchange")},i.onEndOfStream=function(){var t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var e=this.mainSegmentLoader_.getCurrentMediaInfo_();t=!e||e.hasVideo?t&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},i.stuckAtPlaylistEnd_=function(t){if(!this.seekable().length)return!1;var e=this.syncController_.getExpiredTime(t,this.duration());if(null===e)return!1;var i=Hl.Playlist.playlistEnd(t,e),n=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-n<=ja;var s=r.end(r.length-1);return s-n<=ja&&i-s<=ja},i.blacklistCurrentPlaylist=function(t,e){void 0===t&&(t={});var i=t.playlist||this.masterPlaylistLoader_.media();if(e=e||t.blacklistDuration||this.blacklistDuration,!i)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));i.playlistErrors_++;var n,r=this.masterPlaylistLoader_.master.playlists,s=r.filter(oo),a=1===s.length&&s[0]===i;if(1===r.length&&e!==1/0)return Oa.log.warn("Problem encountered with playlist "+i.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(a);if(a){var o=!1;r.forEach((function(t){if(t!==i){var e=t.excludeUntil;void 0!==e&&e!==1/0&&(o=!0,delete t.excludeUntil)}})),o&&(Oa.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}n=i.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*e,i.excludeUntil=n,t.reason&&(i.lastExcludeReason_=t.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=t.internal?this.logger_:Oa.log.warn,c=t.message?" "+t.message:"";u((t.internal?"Internal problem":"Problem")+" encountered with playlist "+i.id+"."+c+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==i.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==i.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var h=l.targetDuration/2*1e3||5e3,d="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=h;return this.switchMedia_(l,"exclude",a||d)},i.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},i.delegateLoaders_=function(t,e){var i=this,n=[],r="all"===t;(r||"main"===t)&&n.push(this.masterPlaylistLoader_);var s=[];(r||"audio"===t)&&s.push("AUDIO"),(r||"subtitle"===t)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach((function(t){var e=i.mediaTypes_[t]&&i.mediaTypes_[t].activePlaylistLoader;e&&n.push(e)})),["main","audio","subtitle"].forEach((function(e){var r=i[e+"SegmentLoader_"];!r||t!==e&&"all"!==t||n.push(r)})),n.forEach((function(t){return e.forEach((function(e){"function"==typeof t[e]&&t[e]()}))}))},i.setCurrentTime=function(t){var e=za(this.tech_.buffered(),t);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?e&&e.length?t:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},i.duration=function(){if(!this.masterPlaylistLoader_)return 0;var t=this.masterPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:Hl.Playlist.duration(t):1/0:0},i.seekable=function(){return this.seekable_},i.onSyncInfoUpdate_=function(){var t;if(this.masterPlaylistLoader_){var e=this.masterPlaylistLoader_.media();if(e){var i=this.syncController_.getExpiredTime(e,this.duration());if(null!==i){var n=this.masterPlaylistLoader_.master,r=Hl.Playlist.seekable(e,i,Hl.Playlist.liveEdgeDelay(n,e));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(e=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(e,this.duration())))return;if(0===(t=Hl.Playlist.seekable(e,i,Hl.Playlist.liveEdgeDelay(n,e))).length)return}var s,a;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),a=this.seekable_.start(0)),t?t.start(0)>r.end(0)||r.start(0)>t.end(0)?this.seekable_=r:this.seekable_=Oa.createTimeRanges([[t.start(0)>r.start(0)?t.start(0):r.start(0),t.end(0)<r.end(0)?t.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===s&&this.seekable_.start(0)===a||(this.logger_("seekable updated ["+Ga(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},i.updateDuration=function(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,t),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(t){var e=this.seekable();if(!e.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1))}else{var i=this.tech_.buffered(),n=Hl.Playlist.duration(this.masterPlaylistLoader_.media());i.length>0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}},i.dispose=function(){var t=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(e){var i=t.mediaTypes_[e].groups;for(var n in i)i[n].forEach((function(t){t.playlistLoader&&t.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},i.master=function(){return this.masterPlaylistLoader_.master},i.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},i.areMediaTypesKnown_=function(){var t=!!this.mediaTypes_.AUDIO.activePlaylistLoader,e=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!t||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!e||!i)},i.getCodecsOrExclude_=function(){var t=this,e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};e.video=e.main;var i=Tl(this.master(),this.media()),n={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(n.video=i.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(n.video+=","+(i.audio||e.main.audioCodec||W)),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(n.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||W,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),n.audio||n.video){var s,a={};if(["video","audio"].forEach((function(t){if(n.hasOwnProperty(t)&&(r=e[t].isFmp4,o=n[t],!(r?q(o):G(o)))){var i=e[t].isFmp4?"browser":"muxer";a[i]=a[i]||[],a[i].push(n[t]),"audio"===t&&(s=i)}var r,o})),r&&s&&this.media().attributes.AUDIO){var o=this.media().attributes.AUDIO;this.master().playlists.forEach((function(e){(e.attributes&&e.attributes.AUDIO)===o&&e!==t.media()&&(e.excludeUntil=1/0)})),this.logger_("excluding audio group "+o+" as "+s+' does not support codec(s): "'+n.audio+'"')}if(!Object.keys(a).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var l=[];if(["video","audio"].forEach((function(e){var i=(j(t.sourceUpdater_.codecs[e]||"")[0]||{}).type,r=(j(n[e]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&l.push('"'+t.sourceUpdater_.codecs[e]+'" -> "'+n[e]+'"')})),l.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return n}var u=Object.keys(a).reduce((function(t,e){return t&&(t+=", "),t+(e+' does not support codec(s): "')+a[e].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:u,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},i.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var t=this.getCodecsOrExclude_();if(t){this.sourceUpdater_.createSourceBuffers(t);var e=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(e)}}},i.excludeUnsupportedVariants_=function(){var t=this,e=this.master().playlists,i=[];Object.keys(e).forEach((function(n){var r=e[n];if(-1===i.indexOf(r.id)){i.push(r.id);var s=Tl(t.master,r),a=[];!s.audio||G(s.audio)||q(s.audio)||a.push("audio codec "+s.audio),!s.video||G(s.video)||q(s.video)||a.push("video codec "+s.video),s.text&&"stpp.ttml.im1t"===s.text&&a.push("text codec "+s.text),a.length&&(r.excludeUntil=1/0,t.logger_("excluding "+r.id+" for unsupported: "+a.join(", ")))}}))},i.excludeIncompatibleVariants_=function(t){var e=this,i=[],n=this.master().playlists,r=bl(j(t)),s=xl(r),a=r.video&&j(r.video)[0]||null,o=r.audio&&j(r.audio)[0]||null;Object.keys(n).forEach((function(t){var r=n[t];if(-1===i.indexOf(r.id)&&r.excludeUntil!==1/0){i.push(r.id);var l=[],u=Tl(e.masterPlaylistLoader_.master,r),c=xl(u);if(u.audio||u.video){if(c!==s&&l.push('codec count "'+c+'" !== "'+s+'"'),!e.sourceUpdater_.canChangeType()){var h=u.video&&j(u.video)[0]||null,d=u.audio&&j(u.audio)[0]||null;h&&a&&h.type.toLowerCase()!==a.type.toLowerCase()&&l.push('video codec "'+h.type+'" !== "'+a.type+'"'),d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+d.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,e.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}}))},i.updateAdCues_=function(t){var e=0,i=this.seekable();i.length&&(e=i.start(0)),function(t,e,i){if(void 0===i&&(i=0),t.segments)for(var n,r=i,a=0;a<t.segments.length;a++){var o=t.segments[a];if(n||(n=au(e,r+o.duration/2)),n){if("cueIn"in o){n.endTime=r,n.adEndTime=r,r+=o.duration,n=null;continue}if(r<n.endTime){r+=o.duration;continue}n.endTime+=o.duration}else if("cueOut"in o&&((n=new(s().VTTCue)(r,r+o.duration,o.cueOut)).adStartTime=r,n.adEndTime=r+parseFloat(o.cueOut),e.addCue(n)),"cueOutCont"in o){var l=o.cueOutCont.split("/").map(parseFloat),u=l[0],c=l[1];(n=new(s().VTTCue)(r,r+o.duration,"")).adStartTime=r-u,n.adEndTime=n.adStartTime+c,e.addCue(n)}r+=o.duration}}(t,this.cueTagsTrack_,e)},i.goalBufferLength=function(){var t=this.tech_.currentTime(),e=Ko.GOAL_BUFFER_LENGTH,i=Ko.GOAL_BUFFER_LENGTH_RATE,n=Math.max(e,Ko.MAX_GOAL_BUFFER_LENGTH);return Math.min(e+t*i,n)},i.bufferLowWaterLine=function(){var t=this.tech_.currentTime(),e=Ko.BUFFER_LOW_WATER_LINE,i=Ko.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(e,Ko.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(e,Ko.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(e+t*i,this.experimentalBufferBasedABR?r:n)},i.bufferHighWaterLine=function(){return Ko.BUFFER_HIGH_WATER_LINE},e}(Oa.EventTarget),wu=function(t,e,i){var n,r,s,a=t.masterPlaylistController_,o=a[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(a);if(e.attributes){var l=e.attributes.RESOLUTION;this.width=l&&l.width,this.height=l&&l.height,this.bandwidth=e.attributes.BANDWIDTH}this.codecs=Tl(a.master(),e),this.playlist=e,this.id=i,this.enabled=(n=t.playlists,r=e.id,s=o,function(t){var e=n.master.playlists[r],i=ao(e),a=oo(e);return void 0===t?a:(t?delete e.disabled:e.disabled=!0,t===a||i||(s(),t?n.trigger("renditionenabled"):n.trigger("renditiondisabled")),t)})},ku=["seeking","seeked","pause","playing","error"],Su=function(){function t(t){var e=this;this.masterPlaylistController_=t.masterPlaylistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Ha("PlaybackWatcher"),this.logger_("initialize");var i=function(){return e.monitorCurrentTime_()},n=function(){return e.monitorCurrentTime_()},r=function(){return e.techWaiting_()},a=function(){return e.cancelTimer_()},o=this.masterPlaylistController_,l=["main","subtitle","audio"],u={};l.forEach((function(t){u[t]={reset:function(){return e.resetSegmentDownloads_(t)},updateend:function(){return e.checkSegmentDownloads_(t)}},o[t+"SegmentLoader_"].on("appendsdone",u[t].updateend),o[t+"SegmentLoader_"].on("playlistupdate",u[t].reset),e.tech_.on(["seeked","seeking"],u[t].reset)}));var c=function(t){["main","audio"].forEach((function(i){o[i+"SegmentLoader_"][t]("appended",e.seekingAppendCheck_)}))};this.seekingAppendCheck_=function(){e.fixesBadSeeks_()&&(e.consecutiveUpdates=0,e.lastRecordedTime=e.tech_.currentTime(),c("off"))},this.clearSeekingAppendCheck_=function(){return c("off")},this.watchForBadSeeking_=function(){e.clearSeekingAppendCheck_(),c("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(ku,a),this.tech_.on("canplay",n),this.tech_.one("play",i),this.dispose=function(){e.clearSeekingAppendCheck_(),e.logger_("dispose"),e.tech_.off("waiting",r),e.tech_.off(ku,a),e.tech_.off("canplay",n),e.tech_.off("play",i),e.tech_.off("seeking",e.watchForBadSeeking_),e.tech_.off("seeked",e.clearSeekingAppendCheck_),l.forEach((function(t){o[t+"SegmentLoader_"].off("appendsdone",u[t].updateend),o[t+"SegmentLoader_"].off("playlistupdate",u[t].reset),e.tech_.off(["seeked","seeking"],u[t].reset)})),e.checkCurrentTimeTimeout_&&s().clearTimeout(e.checkCurrentTimeTimeout_),e.cancelTimer_()}}var e=t.prototype;return e.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&s().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=s().setTimeout(this.monitorCurrentTime_.bind(this),250)},e.resetSegmentDownloads_=function(t){var e=this.masterPlaylistController_[t+"SegmentLoader_"];this[t+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+t+" loader"),this[t+"StalledDownloads_"]=0,this[t+"Buffered_"]=e.buffered_()},e.checkSegmentDownloads_=function(t){var e=this.masterPlaylistController_,i=e[t+"SegmentLoader_"],n=i.buffered_(),r=function(t,e){if(t===e)return!1;if(!t&&e||!e&&t)return!0;if(t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t.start(i)!==e.start(i)||t.end(i)!==e.end(i))return!0;return!1}(this[t+"Buffered_"],n);this[t+"Buffered_"]=n,r?this.resetSegmentDownloads_(t):(this[t+"StalledDownloads_"]++,this.logger_("found #"+this[t+"StalledDownloads_"]+" "+t+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:Wa(n)}),this[t+"StalledDownloads_"]<10||(this.logger_(t+" loader stalled download exclusion"),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:"vhs-"+t+"-download-exclusion"}),"subtitle"!==t&&e.blacklistCurrentPlaylist({message:"Excessive "+t+" segment downloading detected."},1/0)))},e.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var t=this.tech_.currentTime(),e=this.tech_.buffered();if(this.lastRecordedTime===t&&(!e.length||t+ja>=e.end(e.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&t===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):t===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=t)}},e.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},e.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var t,e=this.seekable(),i=this.tech_.currentTime();if(this.afterSeekableWindow_(e,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(t=e.end(e.length-1)),this.beforeSeekableWindow_(e,i)){var n=e.start(0);t=n+(n===e.end(0)?0:ja)}if(void 0!==t)return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+Ga(e)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,s=this.tech_.buffered(),a=r.audioBuffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,l=this.media(),u=l.partTargetDuration?l.partTargetDuration:2*(l.targetDuration-Va),c=[a,o],h=0;h<c.length;h++)if(c[h]&&$a(c[h],i)<u)return!1;var d=qa(s,i);return 0!==d.length&&(t=d.start(0)+ja,this.logger_("Buffered region starts ("+d.start(0)+") just beyond seek point ("+i+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},e.waiting_=function(){if(!this.techWaiting_()){var t=this.tech_.currentTime(),e=this.tech_.buffered(),i=za(e,t);return i.length&&t+3<=i.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.logger_("Stopped at "+t+" while inside a buffered region ["+i.start(0)+" -> "+i.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},e.techWaiting_=function(){var t=this.seekable(),e=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(t,e)){var i=t.end(t.length-1);return this.logger_("Fell out of live window at time "+e+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var n=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:e}))return this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var s=qa(r,e);if(s.length>0){var a=s.start(0)-e;return this.logger_("Stopped at "+e+", setting timer for "+a+", seeking to "+s.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,e),!0}return!1},e.afterSeekableWindow_=function(t,e,i,n){if(void 0===n&&(n=!1),!t.length)return!1;var r=t.end(t.length-1)+ja;return!i.endList&&n&&(r=t.end(t.length-1)+3*i.targetDuration),e>r},e.beforeSeekableWindow_=function(t,e){return!!(t.length&&t.start(0)>0&&e<t.start(0)-this.liveRangeSafeTimeDelta)},e.videoUnderflow_=function(t){var e=t.videoBuffered,i=t.audioBuffered,n=t.currentTime;if(e){var r;if(e.length&&i.length){var s=za(e,n-3),a=za(e,n),o=za(i,n);o.length&&!a.length&&s.length&&(r={start:s.end(0),end:o.end(0)})}else qa(e,n).length||(r=this.gapFromVideoUnderflow_(e,n));return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+n),!0)}},e.skipTheGap_=function(t){var e=this.tech_.buffered(),i=this.tech_.currentTime(),n=qa(e,i);this.cancelTimer_(),0!==n.length&&i===t&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",t,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+Va),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},e.gapFromVideoUnderflow_=function(t,e){for(var i=function(t){if(t.length<2)return Oa.createTimeRanges();for(var e=[],i=1;i<t.length;i++){var n=t.end(i-1),r=t.start(i);e.push([n,r])}return Oa.createTimeRanges(e)}(t),n=0;n<i.length;n++){var r=i.start(n),s=i.end(n);if(e-r<4&&e-r>2)return{start:r,end:s}}return null},t}(),Eu={errorInterval:30,getSource:function(t){return t(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Du=function t(e,i){var n=0,r=0,s=Oa.mergeOptions(Eu,i);e.ready((function(){e.trigger({type:"usage",name:"vhs-error-reload-initialized"}),e.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var a=function(){r&&e.currentTime(r)},o=function(t){null!=t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},l=function(){return Date.now()-n<1e3*s.errorInterval?(e.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void e.trigger({type:"usage",name:"hls-error-reload-canceled"})):s.getSource&&"function"==typeof s.getSource?(n=Date.now(),s.getSource.call(e,o)):void Oa.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function t(){e.off("loadedmetadata",a),e.off("error",l),e.off("dispose",t)};e.on("error",l),e.on("dispose",u),e.reloadSourceOnError=function(i){u(),t(e,i)}},Cu="2.14.3",Pu={PlaylistLoader:Co,Playlist:fo,utils:jo,STANDARD_PLAYLIST_SELECTOR:Pl,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,e=this.playlists.master.playlists.filter(fo.isEnabled);return El(e,(function(t,e){return Dl(t,e)})),e.filter((function(e){return!!Tl(t.playlists.master,e).video}))[0]||null},lastBandwidthSelector:Pl,movingAverageBandwidthSelector:function(t){var e=-1,i=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var n=this.useDevicePixelRatio&&s().devicePixelRatio||1;return e<0&&(e=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(e=t*this.systemBandwidth+(1-t)*e,i=this.systemBandwidth),Cl(this.playlists.master,e,parseInt(Sl(this.tech_.el(),"width"),10)*n,parseInt(Sl(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Dl,comparePlaylistResolution:function(t,e){var i,n;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),i=i||s().Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),i===(n=n||s().Number.MAX_VALUE)&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:i-n},xhr:Io()};Object.keys(Ko).forEach((function(t){Object.defineProperty(Pu,t,{get:function(){return Oa.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),Ko[t]},set:function(e){Oa.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?Oa.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):Ko[t]=e}})}));var Au="videojs-vhs",Mu=function(t,e){for(var i=e.media(),n=-1,r=0;r<t.length;r++)if(t[r].id===i.id){n=r;break}t.selectedIndex_=n,t.trigger({selectedIndex:n,type:"change"})};Pu.canPlaySource=function(){return Oa.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Iu=function(){if(!s().localStorage)return null;var t=s().localStorage.getItem(Au);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}};Pu.supportsNativeHls=function(){if(!o()||!o().createElement)return!1;var t=o().createElement("video");return!!Oa.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(e){return/maybe|probably/i.test(t.canPlayType(e))}))}(),Pu.supportsNativeDash=!!(o()&&o().createElement&&Oa.getTech("Html5").isSupported())&&/maybe|probably/i.test(o().createElement("video").canPlayType("application/dash+xml")),Pu.supportsTypeNatively=function(t){return"hls"===t?Pu.supportsNativeHls:"dash"===t&&Pu.supportsNativeDash},Pu.isSupported=function(){return Oa.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Lu=function(t){function e(e,i,n){var r;if(r=t.call(this,i,Oa.mergeOptions(n.hls,n.vhs))||this,n.hls&&Object.keys(n.hls).length&&Oa.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof n.initialBandwidth&&(r.options_.bandwidth=n.initialBandwidth),r.logger_=Ha("VhsHandler"),i.options_&&i.options_.playerId){var s=Oa(i.options_.playerId);s.hasOwnProperty("hls")||Object.defineProperty(s,"hls",{get:function(){return Oa.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),i.trigger({type:"usage",name:"hls-player-access"}),h(r)},configurable:!0}),s.hasOwnProperty("vhs")||Object.defineProperty(s,"vhs",{get:function(){return Oa.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),i.trigger({type:"usage",name:"vhs-player-access"}),h(r)},configurable:!0}),s.hasOwnProperty("dash")||Object.defineProperty(s,"dash",{get:function(){return Oa.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),h(r)},configurable:!0}),r.player_=s}if(r.tech_=i,r.source_=e,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks)i.overrideNativeAudioTracks(!0),i.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(o(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(t){var e=o().fullscreenElement||o().webkitFullscreenElement||o().mozFullScreenElement||o().msFullscreenElement;e&&e.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}p(e,t);var i=e.prototype;return i.setOptions_=function(){var t=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var e=Iu();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Ko.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Ko.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},i.src=function(t,e){var i=this;if(t){var n;this.setOptions_(),this.options_.src=0===(n=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(n.substring(n.indexOf(",")+1)):n,this.options_.tech=this.tech_,this.options_.externVhs=Pu,this.options_.sourceType=Y(e),this.options_.seekTo=function(t){i.tech_.setCurrentTime(t)},this.options_.smoothQualityChange&&Oa.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Tu(this.options_);var r=Oa.mergeOptions({liveRangeSafeTimeDelta:ja},this.options_,{seekable:function(){return i.seekable()},media:function(){return i.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Su(r),this.masterPlaylistController_.on("error",(function(){var t=Oa.players[i.tech_.options_.playerId],e=i.masterPlaylistController_.error;"object"!=typeof e||e.code?"string"==typeof e&&(e={message:e,code:3}):e.code=3,t.error(e)}));var a=this.options_.experimentalBufferBasedABR?Pu.movingAverageBandwidthSelector(.55):Pu.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):a.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Pu.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(t){this.masterPlaylistController_.selectPlaylist=t.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=t,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var t=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,e=s().navigator.connection||s().navigator.mozConnection||s().navigator.webkitConnection,i=1e7;if(this.options_.useNetworkInformationApi&&e){var n=1e3*e.downlink*1e3;t=n>=i&&t>=i?Math.max(t,n):n}return t},set:function(t){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=t,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var t,e=1/(this.bandwidth||1);return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){Oa.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return i.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return i.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return i.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return i.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return i.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Wa(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},master:{get:function(){return i.playlists.master},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Wa(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){i.options_.useBandwidthFromLocalStorage&&function(t){if(!s().localStorage)return!1;var e=Iu();e=e?Oa.mergeOptions(e,t):t;try{s().localStorage.setItem(Au,JSON.stringify(e))}catch(t){return!1}}({bandwidth:i.bandwidth,throughput:Math.round(i.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t;(t=i).representations=function(){var e=t.masterPlaylistController_.master(),i=po(e)?t.masterPlaylistController_.getAudioTrackPlaylists_():e.playlists;return i?i.filter((function(t){return!ao(t)})).map((function(e,i){return new wu(t,e,e.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){i.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=s().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},i.createKeySessions_=function(){var t=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),function(t){var e=t.player,i=t.sourceKeySystems,n=t.audioMedia,r=t.mainPlaylists;if(!e.eme.initializeMediaKeys)return Promise.resolve();var s,a,o=(s=n?r.concat([n]):r,a=Object.keys(i),s.reduce((function(t,e){if(!e.contentProtection)return t;var i=a.reduce((function(t,i){var n=e.contentProtection[i];return n&&n.pssh&&(t[i]={pssh:n.pssh}),t}),{});return Object.keys(i).length&&t.push(i),t}),[])),l=[],u=[];return o.forEach((function(t){u.push(new Promise((function(t,i){e.tech_.one("keysessioncreated",t)}))),l.push(new Promise((function(i,n){e.eme.initializeMediaKeys({keySystems:t},(function(t){t?n(t):i()}))})))})),Promise.race([Promise.all(l),Promise.race(u)])}({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){t.logger_("created EME key session"),t.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(e){t.logger_("error while creating EME key session",e),t.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},i.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},i.setupEme_=function(){var t,e,i,n=this,r=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,s=(t={player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:r&&r.media()},e=t.player,!(!(i=function(t,e,i){if(!t)return t;var n={};e&&e.attributes&&e.attributes.CODECS&&(n=bl(j(e.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(n.audio=i.attributes.CODECS);var r=z(n.video),s=z(n.audio),a={};for(var o in t)a[o]={},s&&(a[o].audioContentType=s),r&&(a[o].videoContentType=r),e.contentProtection&&e.contentProtection[o]&&e.contentProtection[o].pssh&&(a[o].pssh=e.contentProtection[o].pssh),"string"==typeof t[o]&&(a[o].url=t[o]);return Oa.mergeOptions(t,a)}(t.sourceKeySystems,t.media,t.audioMedia))||(e.currentSource().keySystems=i,i&&!e.eme&&(Oa.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1))));this.player_.tech_.on("keystatuschange",(function(t){if("output-restricted"===t.status){var e=n.masterPlaylistController_.master();if(e&&e.playlists){var i,r=[];e.playlists.forEach((function(t){t&&t.attributes&&t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height>=720&&(!t.excludeUntil||t.excludeUntil<1/0)&&(t.excludeUntil=1/0,r.push(t))})),r.length&&((i=Oa.log).warn.apply(i,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),n.masterPlaylistController_.fastQualityChange_())}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==Oa.browser.IE_VERSION&&s?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},i.setupQualityLevels_=function(){var t=this,e=Oa.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e,i;e=t.qualityLevels_,(i=t).representations().forEach((function(t){e.addQualityLevel(t)})),Mu(e,i.playlists)})),this.playlists.on("mediachange",(function(){Mu(t.qualityLevels_,t.playlists)})))},e.version=function(){return{"@videojs/http-streaming":Cu,"mux.js":"6.0.1","mpd-parser":"0.21.1","m3u8-parser":"4.7.1","aes-decrypter":"3.1.3"}},i.version=function(){return this.constructor.version()},i.canChangeType=function(){return iu.canChangeType()},i.play=function(){this.masterPlaylistController_.play()},i.setCurrentTime=function(t){this.masterPlaylistController_.setCurrentTime(t)},i.duration=function(){return this.masterPlaylistController_.duration()},i.seekable=function(){return this.masterPlaylistController_.seekable()},i.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&s().URL.revokeObjectURL&&(s().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),t.prototype.dispose.call(this)},i.convertToProgramTime=function(t,e){return function(t){var e=t.playlist,i=t.time,n=void 0===i?void 0:i,r=t.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===n)return r({message:"getProgramTime: playlist and time must be provided"});var s=function(t,e){if(!e||!e.segments||0===e.segments.length)return null;for(var i,n=0,r=0;r<e.segments.length&&!(t<=(n=(i=e.segments[r]).videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration));r++);var s=e.segments[e.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>n){if(t>n+.25*s.duration)return null;i=s}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}}(n,e);if(!s)return r({message:"valid programTime was not found"});if("estimate"===s.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});var a={mediaSeconds:n},o=function(t,e){if(!e.dateTimeObject)return null;var i=e.videoTimingInfo.transmuxerPrependedSeconds,n=t-(e.videoTimingInfo.transmuxedPresentationStart+i);return new Date(e.dateTimeObject.getTime()+1e3*n)}(n,s.segment);return o&&(a.programDateTime=o.toISOString()),r(null,a)}({playlist:this.masterPlaylistController_.media(),time:t,callback:e})},i.seekToProgramTime=function(t,e,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),Uo({programTime:t,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:e})},e}(Oa.getComponent("Component")),Ou={name:"videojs-http-streaming",VERSION:Cu,canHandleSource:function(t,e){void 0===e&&(e={});var i=Oa.mergeOptions(Oa.options,e);return Ou.canPlayType(t.type,i)},handleSource:function(t,e,i){void 0===i&&(i={});var n=Oa.mergeOptions(Oa.options,i);return e.vhs=new Lu(t,e,n),Oa.hasOwnProperty("hls")||Object.defineProperty(e,"hls",{get:function(){return Oa.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),e.vhs},configurable:!0}),e.vhs.xhr=Io(),e.vhs.src(t.src,t.type),e.vhs},canPlayType:function(t,e){void 0===e&&(e={});var i=Oa.mergeOptions(Oa.options,e),n=i.vhs,r=(n=void 0===n?{}:n).overrideNative,s=void 0===r?!Oa.browser.IS_ANY_SAFARI:r,a=i.hls,o=(a=void 0===a?{}:a).overrideNative,l=void 0!==o&&o,u=Y(t);return u&&(!Pu.supportsTypeNatively(u)||l||s)?"maybe":""}};q("avc1.4d400d,mp4a.40.2")&&Oa.getTech("Html5").registerSourceHandler(Ou,0),Oa.VhsHandler=Lu,Object.defineProperty(Oa,"HlsHandler",{get:function(){return Oa.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Lu},configurable:!0}),Oa.VhsSourceHandler=Ou,Object.defineProperty(Oa,"HlsSourceHandler",{get:function(){return Oa.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Ou},configurable:!0}),Oa.Vhs=Pu,Object.defineProperty(Oa,"Hls",{get:function(){return Oa.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Pu},configurable:!0}),Oa.use||(Oa.registerComponent("Hls",Pu),Oa.registerComponent("Vhs",Pu)),Oa.options.vhs=Oa.options.vhs||{},Oa.options.hls=Oa.options.hls||{},Oa.getPlugin&&Oa.getPlugin("reloadSourceOnError")||(Oa.registerPlugin||Oa.plugin)("reloadSourceOnError",(function(t){Du(this,t)}));const Fu=Oa;var Ru=i(7390),Bu=i(100),Nu=i(5684);const Hu=class extends n.Component{load(){this.$refs.video&&(this.barbaListener=this.subscribe("barba"),this.$el.classList.add("has-player"),this.initPlayer(),this.$refs.text&&this.$refs.text.remove()),this.$refs.videoLoop&&(this.playLoopBinded=this.playLoop.bind(this),this.$refs.videoLoop.addEventListener("play",this.playLoopBinded),Ru.Z.isMobile?this.$refs.videoLoop.src=this.$refs.videoLoop.dataset.srcMobile:this.$refs.videoLoop.src=this.$refs.videoLoop.dataset.srcDesktop)}initPlayer(){this.player=Fu(this.$refs.video,{sources:[{src:this.$refs.video.dataset.src,type:"video/mp4"}],controls:!0,autoplay:!1,restoreEl:!0,preferFullWindow:!0,bigPlayButton:!0,controlBar:{progressControl:{seekBar:{mouseTimeDisplay:!1}},playbackRateMenuButton:!1,fullscreenToggle:!0,pictureInPictureToggle:!1}},(()=>{this.addLables(".vjs-play-control","play","pause"),this.addLables(".vjs-mute-control","on","off")})),Ru.Z.isIos&&this.player.on("fullscreenchange",(()=>{this.player.isFullscreen()||(this.player.dispose(),this.player=null,this.initPlayer())})),this.player.on("ready",(()=>{this.$el.classList.add("player-ready")})),Nu.Z.on("open",(()=>{this.player&&!this.player.paused()&&this.player.pause()})),this.barbaListener&&this.barbaListener.on("before",(()=>{this.player&&!this.player.paused()&&this.player.pause()})),Nu.Z.on("close",(()=>{this.player&&!this.player.paused()&&(this.player.pause(),window.setTimeout((()=>{this.destroy()}),1e3))}))}playLoop(){this.$el.classList.add("loop-playing")}onClick(){if(this.$refs.video&&!Ru.Z.isMobile&&!document.documentElement.classList.contains("overlay-active")){this.$el.classList.add("clicked");const t=this.$el.getBoundingClientRect(),e=Bu.Z.instance.scroll.instance.delta.y,i=(window.innerHeight-t.height)/2;Bu.Z.instance.scrollTo(t.top+e-i,{duration:200})}if(this.$refs.video&&!Ru.Z.isMobile&&window.newScrollbar&&document.documentElement.classList.contains("overlay-active")){this.$el.classList.add("clicked");const t=this.$el.getBoundingClientRect(),e=window.newScrollbar.scroll.instance.delta.y,i=(window.innerHeight-t.height)/2;window.newScrollbar.scrollTo(t.top+e-i,{duration:200})}}addLables(t,e,i){const n=this.$el.querySelector(t).querySelector(".vjs-icon-placeholder"),r=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div");s.innerText=e,a.innerText=i,r.classList.add("vjs-label-text"),r.appendChild(s),r.appendChild(a),n.parentElement.insertBefore(r,n.nextSibling)}destroyPlayer(){this.$refs.video&&this.player&&(this.player.dispose(),this.player=null)}destroy(){this.$refs.videoLoop&&this.$refs.videoLoop.removeEventListener("play",this.playLoopBinded),this.destroyPlayer()}}},2310:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(3409),s=(i(9069),i(7390));const a=class extends n.Component{load(){s.Z._isMobile||this.setup()}setup(){this.mouseMoved=!1,this.speed=.1,this.xContainerSet=r.p8.quickSetter(this.$refs.mediaWrapper,"x","px"),this.yContainerSet=r.p8.quickSetter(this.$refs.mediaWrapper,"y","px"),this.innerWrapper_overflowHidden=this.$refs.mediaOverflow,this.setupWrappers(),this.pos={x:window.innerWidth/2,y:window.innerHeight/2},this.mouse={x:this.pos.x,y:this.pos.y},document.addEventListener("mouseover",(t=>{if(t.target.classList.contains("c-works__item")){document.documentElement.classList.add("works-hover");const e=t.target.dataset.id;this.$refs.imageWrapper.forEach((t=>{const i=t.dataset.id;e==i&&this.$el.setAttribute("show",t.dataset.id)}))}else document.documentElement.classList.remove("works-hover")})),document.addEventListener("mousemove",(t=>{this.mouse.x=t.clientX,this.mouse.y=t.clientY,this.mouseMoved||(document.documentElement.classList.add("mouse-move"),this.mouseMoved=!0)})),r.p8.ticker.add((()=>{const t=1-Math.pow(1-this.speed,r.p8.ticker.deltaRatio());this.pos.x+=(this.mouse.x-this.pos.x)*t,this.pos.y+=(this.mouse.y-this.pos.y)*t,this.xContainerSet(this.pos.x),this.yContainerSet(this.pos.y)}))}setupWrappers(){const t=-10,{width:e,height:i}=this.$refs.mediaWrapper.getBoundingClientRect(),n=e,r=i;this.$refs.mediaWrapper.style.setProperty("--rotate","-10deg"),this.innerWrapper_overflowHidden.style.width=`calc(${n}px * ${Math.abs(Math.cos(t*Math.PI/180))} + ${r}px * ${Math.abs(Math.sin(t*Math.PI/180))})`,this.innerWrapper_overflowHidden.style.height=`calc(${n}px * ${Math.abs(Math.sin(t*Math.PI/180))} + ${r}px * ${Math.abs(Math.cos(t*Math.PI/180))})`}onResize(){s.Z._isMobile||this.setupWrappers()}}},8151:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var n=i(9988),r=i(5684);const s=class extends n.Component{onClick(t){t.preventDefault(),t.stopPropagation(),r.Z.open(this.$el.getAttribute("href"))}}},678:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var n=i(9988),r=i(3409);r.p8.registerPlugin(r.t_),r.t_.create("custom","M0,0 C0.798,0 0.148,1 1,1");const s=class extends n.Component{load(){this.isInview=!1}onScrollProgress(t){this.isInview||(this.isInview=!0,this.initRollText())}initRollText(){window.setTimeout((()=>{this.words=[...this.$el.querySelector(".c-site-footer__roll").children],this.rollText=r.p8.timeline({repeat:this.words.length-2,repeatRefresh:!0,onComplete:()=>{this.rollText.invalidate(),r.p8.set(this.words,{y:"0%"}),this.rollText.restart()}}),this.rollText.to(this.words,{y:"-=100%",duration:1.5,ease:"custom"})}),750)}removeTimeline(){this.rollText&&(this.rollText.kill(),this.rollText=null)}onResize({widthIsChanged:t}){t&&this.isInview&&window.setTimeout((()=>{this.removeTimeline(),this.initRollText()}),100)}destroy(){window.setTimeout((()=>{this.removeTimeline()}),10)}}},9495:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>o});var n=i(9988),r=i(7390),s=i(9069),a=i.n(s);const o=class extends n.Component{load(){this.subscribe("enhance-dom").on("a-href-equals-location-href",(()=>{this.closeMenu()})),this.state={menuOpen:!1},r.Z.isMobile?this.handleMenuMobile():this.handleMenuDesktop(),a().hooks.before((()=>{this.$el.classList.remove("menu-active"),this.state.menuOpen=!1}))}handleMenuMobile(){this.$refs.menuButton.addEventListener("click",(()=>{this.toggleMenu()}))}handleMenuDesktop(){this.$refs.menuButton.addEventListener("mouseenter",(()=>{this.openMenu()})),this.$refs.menu.addEventListener("mouseleave",(()=>{this.closeMenu()}))}toggleMenu(){this.state.menuOpen?(this.$el.classList.remove("menu-active"),this.state.menuOpen=!1):(this.$el.classList.add("menu-active"),this.state.menuOpen=!0)}openMenu(){this.$el.classList.add("menu-active"),this.state.menuOpen=!0}closeMenu(){this.$el.classList.remove("menu-active"),this.state.menuOpen=!1}}},3392:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>r});var n=i(9988);const r=class extends n.Component{load(){this.$infoTexts=[],this.$refs.space.forEach(((t,e)=>{this.$infoTexts.push(document.createElement("p")),this.$infoTexts[e].innerText=Math.round(100*t.getBoundingClientRect().width)/100,this.$refs.wrapper[e].appendChild(this.$infoTexts[e])}))}updateTexts(){this.$refs.space.forEach(((t,e)=>{this.$infoTexts[e].innerText=t.getBoundingClientRect().width}))}onResize(){this.updateTexts()}}},518:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var n=i(9988),r=i(3409);i(7390),r.p8.registerPlugin(r.C2);const s=class extends n.Component{load(){this.runSplit()}runSplit(){this.$items=this.$refs.item?this.$refs.item:this.$el,this.splitText=new r.C2(this.$items,{type:"lines",linesClass:"o-reveal"}),this.splitText.lines.forEach(((t,e)=>{t.style.setProperty("--index",e)}))}onResize({widthIsChanged:t}){t&&(this.splitText.revert(),this.runSplit())}}},1749:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var n=i(9988),r=i(3409);r.p8.registerPlugin(r.C2);const s=class extends n.Component{load(){this.runSplit(),this.$el.classList.add("has-split-text")}removeSplit(){this.split&&(this.split.revert(),this.split=null)}runSplit(){const t=this.$refs.item?this.$refs.item:this.$el;this.split=new r.C2(t,{type:"lines",linesClass:"o-text-reveal__wrapper"}),this.split.lines.forEach(((t,e)=>{t.innerHTML='<div class="o-text-reveal__item">'+t.innerHTML+"</div>",t.style.setProperty("--index",e)}))}onResize({widthIsChanged:t}){t&&(this.removeSplit(),this.runSplit())}destroy(){this.removeSplit()}}},2987:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>r});var n=i(9988);const r=class extends n.Component{load(){this.blackThemeActive=!1,this.trigger=this.data.get("trigger")?this.data.get("trigger"):.5}onScrollProgress(t){t>this.trigger&&!this.blackThemeActive?this.addTheme():t<this.trigger&&this.blackThemeActive&&this.removeTheme()}addTheme(){document.documentElement.classList.add("theme-black"),this.blackThemeActive=!0}removeTheme(){document.documentElement.classList.remove("theme-black"),this.blackThemeActive=!1}}},8375:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(3409),s=i(7390);r.p8.registerPlugin(r.C2);const a=class extends n.Component{load(){this.$items=this.$refs.item,this.splitText=new r.C2(this.$items,{type:"lines",linesClass:"o-reveal"}),this.splitText.lines.forEach(((t,e)=>{t.style.setProperty("--index",e)}))}onResize(){this.splitText.isSplit&&!s.Z.isMobile&&(this.splitText.revert(),this.$el.classList.add("has-resize"))}}},6543:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(100),s=i(7390);const a=class extends n.Component{load(){this.delegateClick=this.$refs.button,document.documentElement.classList.contains("list-layout")&&(document.querySelector(".c-works__header-nav").firstElementChild.classList.remove("is-active"),document.querySelector(".c-works__header-nav").lastElementChild.classList.add("is-active")),s.Z.isMobile?[...document.querySelectorAll(".c-works__item-video")].forEach((t=>{t.remove()})):this.handleVideos(),document.addEventListener("click",(()=>{document.documentElement.classList.toggle("test")}))}handleVideos(){this.$refs.video.forEach((t=>{let e;t.pause(),t.currentTime=0,t.addEventListener("mouseenter",(()=>{t.play(),clearTimeout(e)})),t.addEventListener("mouseleave",(()=>{e=window.setTimeout((()=>{t.pause(),t.currentTime=0}),500)}))}))}resetState(){this.$refs.button.forEach((t=>{t.classList.remove("is-active")})),document.documentElement.classList.remove("grid-layout"),document.documentElement.classList.remove("list-layout"),this.timeout&&clearTimeout(this.timeout)}onClick(t,e){r.Z.instance.stop();const i=e.getAttribute("data-works-type");this.resetState(),document.documentElement.classList.add(`${i}-layout`),e.classList.add("is-active"),this.timeout=window.setTimeout((()=>{r.Z.instance.start(),r.Z.instance.update()}),1e3)}onResize(){}destroy(){}}},5077:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});var n=i(9988),r=i(7390);const s=class extends n.Component{load(){r.Z.isMobile?[...document.querySelectorAll(".c-works-cta__item-video")].forEach((t=>{t.remove()})):this.handleVideos()}handleVideos(){this.$refs.video.forEach((t=>{let e;t.pause(),t.currentTime=0,t.addEventListener("mouseenter",(()=>{t.play(),clearTimeout(e)})),t.addEventListener("mouseleave",(()=>{e=window.setTimeout((()=>{t.pause(),t.currentTime=0}),500)}))}))}}},2405:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>a});var n=i(9988),r=i(3409),s=i(7390);r.p8.registerPlugin(r.C2);const a=class extends n.Component{init(){if(this.introListener=this.subscribe("intro"),s.Z.isMobile)this.$el.remove();else{this.delegateMove=this.$refs.sticker,this.delegateClick=this.$refs.sticker,this.isStickerAnimating=!0,this.isMouseHoveringSticker=!1,this.shortLerp=.15,this.longLerp=.075,this.changingLerp=this.shortLerp,this.$refs.sticker.style.top=75*Math.random()+12.5+"%",this.$refs.sticker.style.left=75*Math.random()+12.5+"%",this.$el.style.setProperty("--sticker-rotation",(Math.random()>.5?10:-10)+"deg"),this.stickerData={pointerFromTop:.5,pointerFromLeft:.5,pointerFromCenter:0,rotateX:0,rotateY:0,backgroundX:50,backgroundY:50,pointerFromTopLerp:.5,pointerFromLeftLerp:.5,pointerFromCenterLerp:0,rotateXLerp:0,rotateYLerp:0,backgroundXLerp:50,backgroundYLerp:50},this.loadImage(this.$refs.stickerImage,"bg"),this.loadImage(this.$refs.stickerMask,"mask"),window.setTimeout((()=>{this.generateGifs()}),1e4);const t=10*Math.random()+10*Math.random()+20;this.introListener.on("transitionEnd",(()=>{window.setTimeout((()=>{this.initSetup()}),1e3*t)})),document.addEventListener("keypress",(t=>{t.keyCode})),document.addEventListener("keypress",(t=>{t.keyCode}))}}onResize(){this.elData=this.$refs.sticker.getBoundingClientRect()}deleteAll(){this.$el.remove(),this.isStickerAnimating=!1,document.documentElement.classList.remove("show-sticker"),document.documentElement.classList.remove("trigger-wow-layer"),document.documentElement.classList.remove("wow-layer-visible")}onClick(){document.documentElement.classList.add("trigger-wow-layer"),this.isStickerAnimating=!1,window.setTimeout((()=>{this.deleteAll()}),5e3)}onMove(t){this.stickerData.pointerFromLeft=Math.min(Math.max(0,(t.clientX-this.elData.x)/this.elData.width),1),this.stickerData.pointerFromTop=Math.min(Math.max(0,(t.clientY-this.elData.y)/this.elData.height),1),this.stickerData.pointerFromCenter=Math.min(2*Math.sqrt(Math.pow(this.stickerData.pointerFromLeft-.5,2)+Math.pow(this.stickerData.pointerFromTop-.5,2)),1),this.stickerData.rotateX=25*(this.stickerData.pointerFromLeft-.5),this.stickerData.rotateY=25*(this.stickerData.pointerFromTop-.5),this.stickerData.backgroundX=this.lerp(34,66,this.stickerData.pointerFromLeft),this.stickerData.backgroundY=this.lerp(34,66,this.stickerData.pointerFromTop)}initSetup(){document.documentElement.classList.add("wow-layer-visible"),window.setTimeout((()=>{document.documentElement.classList.add("show-sticker")}),100),this.splitText=new r.C2(this.$refs.text,{type:"chars",linesClass:"char"});const t=this.$refs.text;this.applyGradientToLetters(t,["#FFA858","#FFA858","#d7c436","#7dc940","#89a1ff","#b06acc","#FCA659"]),this.wCounter=0,this.letterCounter=1,this.splitText.chars.forEach(((t,e)=>{e>2&&("w"==t.innerText&&this.wCounter++,this.wCounter%2==0?t.style.setProperty("--size",this.letterCounter++):t.style.setProperty("--size",this.letterCounter--))})),this.handleSticker()}handleSticker(){this.elData=this.$refs.sticker.getBoundingClientRect(),this.$el.addEventListener("mouseleave",(()=>{this.mouseLeaveTimer=window.setTimeout((()=>{this.isMouseHoveringSticker=!1}),300)})),this.$el.addEventListener("mouseenter",(()=>{window.clearTimeout(this.mouseLeaveTimer),this.isMouseHoveringSticker=!0})),this.animateSticker()}animateSticker(){if(this.isStickerAnimating){const t=this.stickerData;t.pointerFromLeftLerp=this.lerp(t.pointerFromLeftLerp,t.pointerFromLeft,this.longLerp),t.pointerFromTopLerp=this.lerp(t.pointerFromTopLerp,t.pointerFromTop,this.longLerp),t.pointerFromCenterLerp=this.lerp(t.pointerFromCenterLerp,t.pointerFromCenter,this.longLerp),t.backgroundXLerp=this.lerp(t.backgroundXLerp,t.backgroundX,this.longLerp),t.backgroundYLerp=this.lerp(t.backgroundYLerp,t.backgroundY,this.longLerp),t.rotateXLerp=this.lerp(t.rotateXLerp,t.rotateX,this.longLerp),t.rotateYLerp=this.lerp(t.rotateYLerp,t.rotateY,this.longLerp),this.isMouseHoveringSticker||(t.rotateX=.5,t.rotateY=.5),this.$el.style.setProperty("--rotate-x",-t.rotateXLerp+"deg"),this.$el.style.setProperty("--rotate-y",t.rotateYLerp+"deg"),this.$el.style.setProperty("--pointer-x",100*t.pointerFromLeftLerp+"%"),this.$el.style.setProperty("--pointer-y",100*t.pointerFromTopLerp+"%"),this.$el.style.setProperty("--pointer-from-center",t.pointerFromCenterLerp),this.$el.style.setProperty("--background-y",t.backgroundXLerp+"%"),this.$el.style.setProperty("--background-x",t.backgroundYLerp+"%")}requestAnimationFrame(this.animateSticker.bind(this))}generateGifs(){const t=this.shuffleArray([...window.aviableGifUrls]).slice(0,5);t.forEach(((e,i)=>{const n=new Image;n.src=t[i],n.addEventListener("load",(()=>{this.$refs.gif[i].style.backgroundImage=`url(${n.src})`,this.$refs.gif[i].style.width=15*Math.random()+10+"vw",this.$refs.gif[i].style.height=15*Math.random()+10+"vw"}))}))}applyGradientToLetters(t,e){if(!t||!e||0===e.length)return void console.error("Invalid container or color array");const i=t.children.length,n=[];for(let t=0;t<i;t++){const r=(e.length-1)*t/(i-1),s=Math.floor(r),a=r-s,o=this.hexToRgb(e[s]),l=this.hexToRgb(e[Math.min(s+1,e.length-1)]),u=this.interpolateColor(o,l,a);n.push(`rgb(${u.join(", ")})`)}Array.from(t.children).forEach(((t,e)=>{"DIV"===t.tagName&&(t.style.color=n[e])}))}loadImage(t,e){const i=new Image;i.src=t.dataset.image,i.addEventListener("load",(()=>{"bg"==e?t.style.backgroundImage=`url(${t.dataset.image})`:(t.style.maskImage=`url(${t.dataset.image})`,t.style.webkitMaskImage=`url(${t.dataset.image})`)}))}interpolateColor(t,e,i){arguments.length<3&&(i=.5);const n=t.slice();for(let r=0;r<3;r++)n[r]=Math.round(n[r]+i*(e[r]-t[r]));return n}hexToRgb(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:null}lerp(t,e,i){return t+i*(e-t)}shuffleArray(t){for(let e=t.length-1;e>0;e--){const i=Math.floor(Math.random()*(e+1));[t[e],t[i]]=[t[i],t[e]]}return t}}},2943:(t,e,i)=>{var n={"./Accordion.js":2248,"./Clients.js":1877,"./Email.js":6036,"./GalleryBannerHp.js":7795,"./GalleryPeople.js":6484,"./HeaderAbout.js":5897,"./HeaderHp.js":8611,"./Intro.js":9865,"./IntroText.js":8325,"./Media.js":6547,"./MouseMove.js":2310,"./Overlay.js":8151,"./SiteFooterRoll.js":678,"./SiteHeader.js":9495,"./Spaces.js":3392,"./SplitParagraph.js":518,"./SplitText.js":1749,"./SwitchTheme.js":2987,"./Text.js":8375,"./Works.js":6543,"./WorksCta.js":5077,"./WowLayer.js":2405};function r(t){var e=s(t);return i(e)}function s(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=s,t.exports=r,r.id=2943},7390:(t,e,i)=>{"use strict";i.d(e,{Z:()=>n});const n=new class{constructor(){this._isMobile=/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._isMobile&&document.documentElement.classList.add("is-mobile"),this._isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),this._isIos=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,this._isIos&&document.documentElement.classList.add("is-ios")}get isMobile(){return this._isMobile}get isSafari(){return this._isSafari}get isIos(){return this._isIos}}},3409:(t,e,i)=>{"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}i.d(e,{t_:()=>qc,BW:()=>Vd,C2:()=>Hg,p8:()=>Vg});var s,a,o,l,u,c,h,d,p,f,m,g,y,v={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_={duration:.5,overwrite:!1,delay:0},b=1e8,x=1e-8,T=2*Math.PI,w=T/4,k=0,S=Math.sqrt,E=Math.cos,D=Math.sin,C=function(t){return"string"==typeof t},P=function(t){return"function"==typeof t},A=function(t){return"number"==typeof t},M=function(t){return void 0===t},I=function(t){return"object"==typeof t},L=function(t){return!1!==t},O=function(){return"undefined"!=typeof window},F=function(t){return P(t)||C(t)},R="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},B=Array.isArray,N=/(?:-?\.?\d|\.)+/gi,H=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,V=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,j=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,U=/[+-]=-?[.\d]+/,z=/[^,'"\[\]\s]+/gi,q=/[\d.+\-=]+(?:e[-+]\d*)*/i,G={},W={},X=function(t){return(W=_t(t,G))&&ni},$=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Y=function(t,e){return!e&&console.warn(t)},K=function(t,e){return t&&(G[t]=e)&&W&&(W[t]=e)||G},Q=function(){return 0},Z={},J=[],tt={},et={},it={},nt=30,rt=[],st="",at=function(t){var e,i,n=t[0];if(I(n)||P(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(i=rt.length;i--&&!rt[i].targetTest(n););e=rt[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ce(t[i],e)))||t.splice(i,1);return t},ot=function(t){return t._gsap||at($t(t))[0]._gsap},lt=function(t,e,i){return(i=t[e])&&P(i)?t[e]():M(i)&&t.getAttribute&&t.getAttribute(e)||i},ut=function(t,e){return(t=t.split(",")).forEach(e)||t},ct=function(t){return Math.round(1e5*t)/1e5||0},ht=function(t){return Math.round(1e7*t)/1e7||0},dt=function(t,e){for(var i=e.length,n=0;t.indexOf(e[n])<0&&++n<i;);return n<i},pt=function(){var t,e,i=J.length,n=J.slice(0);for(tt={},J.length=0,t=0;t<i;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},ft=function(t,e,i,n){J.length&&pt(),t.render(e,i,n),J.length&&pt()},mt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(z).length<2?e:C(t)?t.trim():t},gt=function(t){return t},yt=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},vt=function(t,e){for(var i in e)i in t||"duration"===i||"ease"===i||(t[i]=e[i])},_t=function(t,e){for(var i in e)t[i]=e[i];return t},bt=function t(e,i){for(var n in i)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=I(i[n])?t(e[n]||(e[n]={}),i[n]):i[n]);return e},xt=function(t,e){var i,n={};for(i in t)i in e||(n[i]=t[i]);return n},Tt=function(t){var e=t.parent||a,i=t.keyframes?vt:yt;if(L(t.inherit))for(;e;)i(t,e.vars.defaults),e=e.parent||e._dp;return t},wt=function(t,e,i,n){void 0===i&&(i="_first"),void 0===n&&(n="_last");var r=e._prev,s=e._next;r?r._next=s:t[i]===e&&(t[i]=s),s?s._prev=r:t[n]===e&&(t[n]=r),e._next=e._prev=e.parent=null},kt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},St=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Et=function t(e){return!e||e._ts&&t(e.parent)},Dt=function(t){return t._repeat?Ct(t._tTime,t=t.duration()+t._rDelay)*t:0},Ct=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},Pt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},At=function(t){return t._end=ht(t._start+(t._tDur/Math.abs(t._ts||t._rts||x)||0))},Mt=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=ht(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),At(t),i._dirty||St(i,t)),t},It=function(t,e){var i;if((e._time||e._initted&&!e._dur)&&(i=Pt(t.rawTime(),e),(!e._dur||qt(0,e.totalDuration(),i)-e._tTime>x)&&e.render(i,!0)),St(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-1e-8}},Lt=function(t,e,i,n){return e.parent&&kt(e),e._start=ht((A(i)?i:i||t!==a?jt(t,i,e):t._time)+e._delay),e._end=ht(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,i,n,r){void 0===i&&(i="_first"),void 0===n&&(n="_last");var s,a=t[n];if(r)for(s=e[r];a&&a[r]>s;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),Bt(e)||(t._recent=e),n||It(t,e),t},Ot=function(t,e){return(G.ScrollTrigger||$("scrollTrigger",e))&&G.ScrollTrigger.create(e,t)},Ft=function(t,e,i,n){return Fe(t,e),t._initted?!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&h!==me.frame?(J.push(t),t._lazy=[e,n],1):void 0:1},Rt=function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))},Bt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Nt=function(t,e,i,n){var r=t._repeat,s=ht(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=r?r<0?1e10:ht(s*(r+1)+t._rDelay*r):s,a&&!n?Mt(t,t._tTime=t._tDur*a):t.parent&&At(t),i||St(t.parent,t),t},Ht=function(t){return t instanceof Ae?St(t):Nt(t,t._dur)},Vt={_start:0,endTime:Q,totalDuration:Q},jt=function t(e,i,n){var r,s,a,o=e.labels,l=e._recent||Vt,u=e.duration()>=b?l.endTime(!1):e._dur;return C(i)&&(isNaN(i)||i in o)?(s=i.charAt(0),a="%"===i.substr(-1),r=i.indexOf("="),"<"===s||">"===s?(r>=0&&(i=i.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(a?(r<0?l:n).totalDuration()/100:1)):r<0?(i in o||(o[i]=u),o[i]):(s=parseFloat(i.charAt(r-1)+i.substr(r+1)),a&&n&&(s=s/100*(B(n)?n[0]:n).totalDuration()),r>1?t(e,i.substr(0,r-1),n)+s:u+s)):null==i?u:+i},Ut=function(t,e,i){var n,r,s=A(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=i,t){for(n=o,r=i;r&&!("immediateRender"in n);)n=r.vars.defaults||{},r=L(r.vars.inherit)&&r.parent;o.immediateRender=L(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new He(e[0],o,e[a+1])},zt=function(t,e){return t||0===t?e(t):e},qt=function(t,e,i){return i<t?t:i>e?e:i},Gt=function(t){if("string"!=typeof t)return"";var e=q.exec(t);return e?t.substr(e.index+e[0].length):""},Wt=[].slice,Xt=function(t,e){return t&&I(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&I(t[0]))&&!t.nodeType&&t!==o},$t=function(t,e,i){return!C(t)||i||!l&&ge()?B(t)?function(t,e,i){return void 0===i&&(i=[]),t.forEach((function(t){var n;return C(t)&&!e||Xt(t,1)?(n=i).push.apply(n,$t(t)):i.push(t)}))||i}(t,i):Xt(t)?Wt.call(t,0):t?[t]:[]:Wt.call((e||u).querySelectorAll(t),0)},Yt=function(t){return t.sort((function(){return.5-Math.random()}))},Kt=function(t){if(P(t))return t;var e=I(t)?t:{each:t},i=we(e.ease),n=e.from||0,r=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,l=e.axis,u=n,c=n;return C(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(u=n[0],c=n[1]),function(t,a,h){var d,p,f,m,g,y,v,_,x,T=(h||e).length,w=s[T];if(!w){if(!(x="auto"===e.grid?0:(e.grid||[1,b])[1])){for(v=-b;v<(v=h[x++].getBoundingClientRect().left)&&x<T;);x--}for(w=s[T]=[],d=o?Math.min(x,T)*u-.5:n%x,p=o?T*c/x-.5:n/x|0,v=0,_=b,y=0;y<T;y++)f=y%x-d,m=p-(y/x|0),w[y]=g=l?Math.abs("y"===l?m:f):S(f*f+m*m),g>v&&(v=g),g<_&&(_=g);"random"===n&&Yt(w),w.max=v-_,w.min=_,w.v=T=(parseFloat(e.amount)||parseFloat(e.each)*(x>T?T-1:l?"y"===l?T/x:x:Math.max(x,T/x))||0)*("edges"===n?-1:1),w.b=T<0?r-T:r,w.u=Gt(e.amount||e.each)||0,i=i&&T<0?xe(i):i}return T=(w[t]-w.min)/w.max||0,ht(w.b+(i?i(T):T)*w.v)+w.u}},Qt=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var n=Math.round(parseFloat(i)/t)*t*e;return(n-n%1)/e+(A(i)?0:Gt(i))}},Zt=function(t,e){var i,n,r=B(t);return!r&&I(t)&&(i=r=t.radius||b,t.values?(t=$t(t.values),(n=!A(t[0]))&&(i*=i)):t=Qt(t.increment)),zt(e,r?P(t)?function(e){return n=t(e),Math.abs(n-e)<=i?n:e}:function(e){for(var r,s,a=parseFloat(n?e.x:e),o=parseFloat(n?e.y:0),l=b,u=0,c=t.length;c--;)(r=n?(r=t[c].x-a)*r+(s=t[c].y-o)*s:Math.abs(t[c]-a))<l&&(l=r,u=c);return u=!i||l<=i?t[u]:e,n||u===e||A(e)?u:u+Gt(e)}:Qt(t))},Jt=function(t,e,i,n){return zt(B(t)?!e:!0===i?!!(i=0):!n,(function(){return B(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(n=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+.99*i))/i)*i*n)/n}))},te=function(t,e,i){return zt(i,(function(i){return t[~~e(i)]}))},ee=function(t){for(var e,i,n,r,s=0,a="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),r="["===t.charAt(e+7),i=t.substr(e+7,n-e-7).match(r?z:N),a+=t.substr(s,e-s)+Jt(r?i:+i[0],r?0:+i[1],+i[2]||1e-5),s=n+1;return a+t.substr(s,t.length-s)},ie=function(t,e,i,n,r){var s=e-t,a=n-i;return zt(r,(function(e){return i+((e-t)/s*a||0)}))},ne=function(t,e,i){var n,r,s,a=t.labels,o=b;for(n in a)(r=a[n]-e)<0==!!i&&r&&o>(r=Math.abs(r))&&(s=n,o=r);return s},re=function(t,e,i){var n,r,s=t.vars,a=s[e];if(a)return n=s[e+"Params"],r=s.callbackScope||t,i&&J.length&&pt(),n?a.apply(r,n):a.call(r)},se=function(t){return kt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&re(t,"onInterrupt"),t},ae=255,oe={aqua:[0,ae,ae],lime:[0,ae,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ae],navy:[0,0,128],white:[ae,ae,ae],olive:[128,128,0],yellow:[ae,ae,0],orange:[ae,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ae,0,0],pink:[ae,192,203],cyan:[0,ae,ae],transparent:[ae,ae,ae,0]},le=function(t,e,i){return(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*ae+.5|0},ue=function(t,e,i){var n,r,s,a,o,l,u,c,h,d,p=t?A(t)?[t>>16,t>>8&ae,t&ae]:0:oe.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),oe[t])p=oe[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),r=t.charAt(2),s=t.charAt(3),t="#"+n+n+r+r+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&ae,p&ae,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&ae,t&ae]}else if("hsl"===t.substr(0,3))if(p=d=t.match(N),e){if(~t.indexOf("="))return p=t.match(H),i&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,n=2*(l=+p[2]/100)-(r=l<=.5?l*(o+1):l+o-l*o),p.length>3&&(p[3]*=1),p[0]=le(a+1/3,n,r),p[1]=le(a,n,r),p[2]=le(a-1/3,n,r);else p=t.match(N)||oe.transparent;p=p.map(Number)}return e&&!d&&(n=p[0]/ae,r=p[1]/ae,s=p[2]/ae,l=((u=Math.max(n,r,s))+(c=Math.min(n,r,s)))/2,u===c?a=o=0:(h=u-c,o=l>.5?h/(2-u-c):h/(u+c),a=u===n?(r-s)/h+(r<s?6:0):u===r?(s-n)/h+2:(n-r)/h+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*l+.5)),i&&p.length<4&&(p[3]=1),p},ce=function(t){var e=[],i=[],n=-1;return t.split(de).forEach((function(t){var r=t.match(V)||[];e.push.apply(e,r),i.push(n+=r.length+1)})),e.c=i,e},he=function(t,e,i){var n,r,s,a,o="",l=(t+o).match(de),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map((function(t){return(t=ue(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),i&&(s=ce(t),(n=i.c).join(o)!==s.c.join(o)))for(a=(r=t.replace(de,"1").split(V)).length-1;c<a;c++)o+=r[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!r)for(a=(r=t.split(de)).length-1;c<a;c++)o+=r[c]+l[c];return o+r[a]},de=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in oe)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),pe=/hsl[a]?\(/,fe=function(t){var e,i=t.join(" ");if(de.lastIndex=0,de.test(i))return e=pe.test(i),t[1]=he(t[1],e),t[0]=he(t[0],e,ce(t[1])),!0},me=function(){var t,e,i,n,r,s,a=Date.now,h=500,d=33,f=a(),m=f,g=1e3/240,y=g,v=[],_=function i(o){var l,u,c,p,_=a()-m,b=!0===o;if(_>h&&(f+=_-d),((l=(c=(m+=_)-f)-y)>0||b)&&(p=++n.frame,r=c-1e3*n.time,n.time=c/=1e3,y+=l+(l>=g?4:g-l),u=1),b||(t=e(i)),u)for(s=0;s<v.length;s++)v[s](c,r,p,o)};return n={time:0,frame:0,tick:function(){_(!0)},deltaRatio:function(t){return r/(1e3/(t||60))},wake:function(){c&&(!l&&O()&&(o=l=window,u=o.document||{},G.gsap=ni,(o.gsapVersions||(o.gsapVersions=[])).push(ni.version),X(W||o.GreenSockGlobals||!o.gsap&&o||{}),i=o.requestAnimationFrame),t&&n.sleep(),e=i||function(t){return setTimeout(t,y-1e3*n.time+1|0)},p=1,_(2))},sleep:function(){(i?o.cancelAnimationFrame:clearTimeout)(t),p=0,e=Q},lagSmoothing:function(t,e){h=t||1e8,d=Math.min(e,h,0)},fps:function(t){g=1e3/(t||240),y=1e3*n.time+g},add:function(t){v.indexOf(t)<0&&v.push(t),ge()},remove:function(t){var e;~(e=v.indexOf(t))&&v.splice(e,1)&&s>=e&&s--},_listeners:v},n}(),ge=function(){return!p&&me.wake()},ye={},ve=/^[\d.\-M][\d.\-,\s]/,_e=/["']/g,be=function(t){for(var e,i,n,r={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,l=s.length;o<l;o++)i=s[o],e=o!==l-1?i.lastIndexOf(","):i.length,n=i.substr(0,e),r[a]=isNaN(n)?n.replace(_e,"").trim():+n,a=i.substr(e+1).trim();return r},xe=function(t){return function(e){return 1-t(1-e)}},Te=function t(e,i){for(var n,r=e._first;r;)r instanceof Ae?t(r,i):!r.vars.yoyoEase||r._yoyo&&r._repeat||r._yoyo===i||(r.timeline?t(r.timeline,i):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=i)),r=r._next},we=function(t,e){return t&&(P(t)?t:ye[t]||function(t){var e,i,n,r,s=(t+"").split("("),a=ye[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[be(s[1])]:(e=t,i=e.indexOf("(")+1,n=e.indexOf(")"),r=e.indexOf("(",i),e.substring(i,~r&&r<n?e.indexOf(")",n+1):n)).split(",").map(mt)):ye._CE&&ve.test(t)?ye._CE("",t):a}(t))||e},ke=function(t,e,i,n){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var r,s={easeIn:e,easeOut:i,easeInOut:n};return ut(t,(function(t){for(var e in ye[t]=G[t]=s,ye[r=t.toLowerCase()]=i,s)ye[r+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=ye[t+"."+e]=s[e]})),s},Se=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ee=function t(e,i,n){var r=i>=1?i:1,s=(n||(e?.3:.45))/(i<1?i:1),a=s/T*(Math.asin(1/r)||0),o=function(t){return 1===t?1:r*Math.pow(2,-10*t)*D((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Se(o);return s=T/s,l.config=function(i,n){return t(e,i,n)},l},De=function t(e,i){void 0===i&&(i=1.70158);var n=function(t){return t?--t*t*((i+1)*t+i)+1:0},r="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Se(n);return r.config=function(i){return t(e,i)},r};ut("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var i=e<5?e+1:e;ke(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},(function(t){return 1-Math.pow(1-t,i)}),(function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2}))})),ye.Linear.easeNone=ye.none=ye.Linear.easeIn,ke("Elastic",Ee("in"),Ee("out"),Ee()),f=7.5625,g=1/(m=2.75),y=function(t){return t<g?f*t*t:t<.7272727272727273?f*Math.pow(t-1.5/m,2)+.75:t<.9090909090909092?f*(t-=2.25/m)*t+.9375:f*Math.pow(t-2.625/m,2)+.984375},ke("Bounce",(function(t){return 1-y(1-t)}),y),ke("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),ke("Circ",(function(t){return-(S(1-t*t)-1)})),ke("Sine",(function(t){return 1===t?1:1-E(t*w)})),ke("Back",De("in"),De("out"),De()),ye.SteppedEase=ye.steps=G.SteppedEase={config:function(t,e){void 0===t&&(t=1);var i=1/t,n=t+(e?0:1),r=e?1:0;return function(t){return((n*qt(0,.99999999,t)|0)+r)*i}}},_.ease=ye["quad.out"],ut("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return st+=t+","+t+"Params,"}));var Ce=function(t,e){this.id=k++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:lt,this.set=e?e.getSetter:qe},Pe=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Nt(this,+t.duration,1,1),this.data=t.data,p||me.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Nt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ge(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Mt(this,t),!i._dp||i.parent||It(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Lt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===x||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ft(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Dt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Dt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?Ct(this._tTime,i)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Pt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent}(this.totalTime(qt(-this._delay,this._tDur,e),!0)),At(this),this},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ge(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==x&&(this._tTime-=x)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Lt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(L(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Pt(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(e._ts||1),e=e._dp;return i},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Ht(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ht(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(jt(this,t),L(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,L(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-x))},e.eventCallback=function(t,e,i){var n=this.vars;return arguments.length>1?(e?(n[t]=e,i&&(n[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(i){var n=P(t)?t:gt,r=function(){var t=e.then;e.then=null,P(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),i(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?r():e._prom=r}))},e.kill=function(){se(this)},t}();yt(Pe.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ae=function(t){function e(e,i){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=L(e.sortChildren),a&&Lt(e.parent||a,n(r),i),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Ot(n(r),e.scrollTrigger),r}r(e,t);var i=e.prototype;return i.to=function(t,e,i){return Ut(0,arguments,this),this},i.from=function(t,e,i){return Ut(1,arguments,this),this},i.fromTo=function(t,e,i,n){return Ut(2,arguments,this),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,Tt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new He(t,e,jt(this,i),1),this},i.call=function(t,e,i){return Lt(this,He.delayedCall(0,t,e),i)},i.staggerTo=function(t,e,i,n,r,s,a){return i.duration=e,i.stagger=i.stagger||n,i.onComplete=s,i.onCompleteParams=a,i.parent=this,new He(t,i,jt(this,r)),this},i.staggerFrom=function(t,e,i,n,r,s,a){return i.runBackwards=1,Tt(i).immediateRender=L(i.immediateRender),this.staggerTo(t,e,i,n,r,s,a)},i.staggerFromTo=function(t,e,i,n,r,s,a,o){return n.startAt=i,Tt(n).immediateRender=L(n.immediateRender),this.staggerTo(t,e,n,r,s,a,o)},i.render=function(t,e,i){var n,r,s,o,l,u,c,h,d,p,f,m,g=this._time,y=this._dirty?this.totalDuration():this._tDur,v=this._dur,_=t<=0?0:ht(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==a&&_>y&&t>=0&&(_=y),_!==this._tTime||i||b){if(g!==this._time&&v&&(_+=this._time-g,t+=this._time-g),n=_,d=this._start,u=!(h=this._ts),b&&(v||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,l=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*l+t,e,i);if(n=ht(_%l),_===y?(o=this._repeat,n=v):((o=~~(_/l))&&o===_/l&&(n=v,o--),n>v&&(n=v)),p=Ct(this._tTime,l),!g&&this._tTime&&p!==o&&(p=o),f&&1&o&&(n=v-n,m=1),o!==p&&!this._lock){var T=f&&1&p,w=T===(f&&1&o);if(o<p&&(T=!T),g=T?0:v,this._lock=1,this.render(g||(m?0:ht(o*l)),e,!v)._lock=0,this._tTime=_,!e&&this.parent&&re(this,"onRepeat"),this.vars.repeatRefresh&&!m&&(this.invalidate()._lock=1),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,y=this._tDur,w&&(this._lock=2,g=T?v:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!m&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Te(this,m)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,i){var n;if(i>e)for(n=t._first;n&&n._start<=i;){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=i;){if(!n._dur&&"isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,ht(g),ht(n)),c&&(_-=n-(n=c._start))),this._tTime=_,this._time=n,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&n&&!e&&(re(this,"onStart"),this._tTime!==_))return this;if(n>=g&&t>=0)for(r=this._first;r;){if(s=r._next,(r._act||n>=r._start)&&r._ts&&c!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(n-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(n-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!u){c=0,s&&(_+=this._zTime=-1e-8);break}}r=s}else{r=this._last;for(var k=t<0?t:n;r;){if(s=r._prev,(r._act||k<=r._end)&&r._ts&&c!==r){if(r.parent!==this)return this.render(t,e,i);if(r.render(r._ts>0?(k-r._start)*r._ts:(r._dirty?r.totalDuration():r._tDur)+(k-r._start)*r._ts,e,i),n!==this._time||!this._ts&&!u){c=0,s&&(_+=this._zTime=k?-1e-8:x);break}}r=s}}if(c&&!e&&(this.pause(),c.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=d,At(this),this.render(t,e,i);this._onUpdate&&!e&&re(this,"onUpdate",!0),(_===y&&y>=this.totalDuration()||!_&&g)&&(d!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!v)&&(_===y&&this._ts>0||!_&&this._ts<0)&&kt(this,1),e||t<0&&!g||!_&&!g&&y||(re(this,_===y&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_<y&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(A(e)||(e=jt(this,e,t)),!(t instanceof Pe)){if(B(t))return t.forEach((function(t){return i.add(t,e)})),this;if(C(t))return this.addLabel(t,e);if(!P(t))return this;t=He.delayedCall(0,t)}return this!==t?Lt(this,t,e):this},i.getChildren=function(t,e,i,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=-b);for(var r=[],s=this._first;s;)s._start>=n&&(s instanceof He?e&&r.push(s):(i&&r.push(s),t&&r.push.apply(r,s.getChildren(!0,e,i)))),s=s._next;return r},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return C(t)?this.removeLabel(t):P(t)?this.killTweensOf(t):(wt(this,t),t===this._recent&&(this._recent=this._last),St(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ht(me.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=jt(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var n=He.delayedCall(0,e||Q,i);return n.data="isPause",this._hasPause=1,Lt(this,n,jt(this,t))},i.removePause=function(t){var e=this._first;for(t=jt(this,t);e;)e._start===t&&"isPause"===e.data&&kt(e),e=e._next},i.killTweensOf=function(t,e,i){for(var n=this.getTweensOf(t,i),r=n.length;r--;)Me!==n[r]&&n[r].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,n=[],r=$t(t),s=this._first,a=A(e);s;)s instanceof He?dt(s._targets,r)&&(a?(!Me||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(i=s.getTweensOf(r,e)).length&&n.push.apply(n,i),s=s._next;return n},i.tweenTo=function(t,e){e=e||{};var i,n=this,r=jt(n,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,u=s.immediateRender,c=He.to(n,yt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:r,overwrite:"auto",duration:e.duration||Math.abs((r-(a&&"time"in a?a.time:n._time))/n.timeScale())||x,onStart:function(){if(n.pause(),!i){var t=e.duration||Math.abs((r-(a&&"time"in a?a.time:n._time))/n.timeScale());c._dur!==t&&Nt(c,t,0,1).render(c._time,!0,!0),i=1}o&&o.apply(c,l||[])}},e));return u?c.render(0):c},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,yt({startAt:{time:jt(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),ne(this,jt(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),ne(this,jt(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+x)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var n,r=this._first,s=this.labels;r;)r._start>=i&&(r._start+=t,r._end+=t),r=r._next;if(e)for(n in s)s[n]>=i&&(s[n]+=t);return St(this)},i.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),St(this)},i.totalDuration=function(t){var e,i,n,r=0,s=this,o=s._last,l=b;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(i=o._start)>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,Lt(s,o,i-o._delay,1)._lock=0):l=i,i<0&&o._ts&&(r-=i,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),l=0),o._end>r&&o._ts&&(r=o._end),o=e;Nt(s,s===a&&s._time>r?s._time:r,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(a._ts&&(ft(a,Pt(t,a)),h=me.frame),me.frame>=nt){nt+=v.autoSleep||120;var e=a._first;if((!e||!e._ts)&&v.autoSleep&&me._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||me.sleep()}}},e}(Pe);yt(Ae.prototype,{_lock:0,_hasPause:0,_forcing:0});var Me,Ie=function(t,e,i,n,r,s,a){var o,l,u,c,h,d,p,f,m=new Je(this._pt,t,e,0,1,Xe,null,r),g=0,y=0;for(m.b=i,m.e=n,i+="",(p=~(n+="").indexOf("random("))&&(n=ee(n)),s&&(s(f=[i,n],t,e),i=f[0],n=f[1]),l=i.match(j)||[];o=j.exec(n);)c=o[0],h=n.substring(g,o.index),u?u=(u+1)%5:"rgba("===h.substr(-5)&&(u=1),c!==l[y++]&&(d=parseFloat(l[y-1])||0,m._pt={_next:m._pt,p:h||1===y?h:",",s:d,c:"="===c.charAt(1)?parseFloat(c.substr(2))*("-"===c.charAt(0)?-1:1):parseFloat(c)-d,m:u&&u<4?Math.round:0},g=j.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=a,(U.test(n)||p)&&(m.e=0),this._pt=m,m},Le=function(t,e,i,n,r,s,a,o,l){P(n)&&(n=n(r||0,t,s));var u,c=t[e],h="get"!==i?i:P(c)?l?t[e.indexOf("set")||!P(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,d=P(c)?l?Ue:je:Ve;if(C(n)&&(~n.indexOf("random(")&&(n=ee(n)),"="===n.charAt(1)&&((u=parseFloat(h)+parseFloat(n.substr(2))*("-"===n.charAt(0)?-1:1)+(Gt(h)||0))||0===u)&&(n=u)),h!==n)return isNaN(h*n)||""===n?(!c&&!(e in t)&&$(e,n),Ie.call(this,t,e,h,n,d,o||v.stringFilter,l)):(u=new Je(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof c?We:Ge,0,d),l&&(u.fp=l),a&&u.modifier(a,this,t),this._pt=u)},Oe=function(t,e,i,n,r,s){var a,o,l,u;if(et[t]&&!1!==(a=new et[t]).init(r,a.rawVars?e[t]:function(t,e,i,n,r){if(P(t)&&(t=Re(t,r,e,i,n)),!I(t)||t.style&&t.nodeType||B(t)||R(t))return C(t)?Re(t,r,e,i,n):t;var s,a={};for(s in t)a[s]=Re(t[s],r,e,i,n);return a}(e[t],n,r,s,i),i,n,s)&&(i._pt=o=new Je(i._pt,r,t,0,1,a.render,a,0,a.priority),i!==d))for(l=i._ptLookup[i._targets.indexOf(r)],u=a._props.length;u--;)l[a._props[u]]=o;return a},Fe=function t(e,i){var n,r,o,l,u,c,h,d,p,f,m,g,y,v=e.vars,b=v.ease,T=v.startAt,w=v.immediateRender,k=v.lazy,S=v.onUpdate,E=v.onUpdateParams,D=v.callbackScope,C=v.runBackwards,P=v.yoyoEase,A=v.keyframes,M=v.autoRevert,I=e._dur,O=e._startAt,F=e._targets,R=e.parent,B=R&&"nested"===R.data?R.parent._targets:F,N="auto"===e._overwrite&&!s,H=e.timeline;if(H&&(!A||!b)&&(b="none"),e._ease=we(b,_.ease),e._yEase=P?xe(we(!0===P?b:P,_.ease)):0,P&&e._yoyo&&!e._repeat&&(P=e._yEase,e._yEase=e._ease,e._ease=P),e._from=!H&&!!v.runBackwards,!H){if(g=(d=F[0]?ot(F[0]).harness:0)&&v[d.prop],n=xt(v,Z),O&&O.render(-1,!0).kill(),T)if(kt(e._startAt=He.set(F,yt({data:"isStart",overwrite:!1,parent:R,immediateRender:!0,lazy:L(k),startAt:null,delay:0,onUpdate:S,onUpdateParams:E,callbackScope:D,stagger:0},T))),i<0&&!w&&!M&&e._startAt.render(-1,!0),w){if(i>0&&!M&&(e._startAt=0),I&&i<=0)return void(i&&(e._zTime=i))}else!1===M&&(e._startAt=0);else if(C&&I)if(O)!M&&(e._startAt=0);else if(i&&(w=!1),o=yt({overwrite:!1,data:"isFromStart",lazy:w&&L(k),immediateRender:w,stagger:0,parent:R},n),g&&(o[d.prop]=g),kt(e._startAt=He.set(F,o)),i<0&&e._startAt.render(-1,!0),w){if(!i)return}else t(e._startAt,x);for(e._pt=0,k=I&&L(k)||k&&!I,r=0;r<F.length;r++){if(h=(u=F[r])._gsap||at(F)[r]._gsap,e._ptLookup[r]=f={},tt[h.id]&&J.length&&pt(),m=B===F?r:B.indexOf(u),d&&!1!==(p=new d).init(u,g||n,e,m,B)&&(e._pt=l=new Je(e._pt,u,p.name,0,1,p.render,p,0,p.priority),p._props.forEach((function(t){f[t]=l})),p.priority&&(c=1)),!d||g)for(o in n)et[o]&&(p=Oe(o,n,e,m,u,B))?p.priority&&(c=1):f[o]=l=Le.call(e,u,o,"get",n[o],m,B,0,v.stringFilter);e._op&&e._op[r]&&e.kill(u,e._op[r]),N&&e._pt&&(Me=e,a.killTweensOf(u,f,e.globalTime(i)),y=!e.parent,Me=0),e._pt&&k&&(tt[h.id]=1)}c&&Ze(e),e._onInit&&e._onInit(e)}e._onUpdate=S,e._initted=(!e._op||e._pt)&&!y},Re=function(t,e,i,n,r){return P(t)?t.call(e,i,n,r):C(t)&&~t.indexOf("random(")?ee(t):t},Be=st+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Ne=(Be+",id,stagger,delay,duration,paused,scrollTrigger").split(","),He=function(t){function e(e,i,r,o){var l;"number"==typeof i&&(r.duration=i,i=r,r=null);var u,c,h,d,p,f,m,g,y=(l=t.call(this,o?i:Tt(i))||this).vars,_=y.duration,b=y.delay,x=y.immediateRender,T=y.stagger,w=y.overwrite,k=y.keyframes,S=y.defaults,E=y.scrollTrigger,D=y.yoyoEase,C=i.parent||a,P=(B(e)||R(e)?A(e[0]):"length"in i)?[e]:$t(e);if(l._targets=P.length?at(P):Y("GSAP target "+e+" not found. https://greensock.com",!v.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=w,k||T||F(_)||F(b)){if(i=l.vars,(u=l.timeline=new Ae({data:"nested",defaults:S||{}})).kill(),u.parent=u._dp=n(l),u._start=0,k)Tt(yt(u.vars.defaults,{ease:"none"})),T?P.forEach((function(t,e){return k.forEach((function(i,n){return u.to(t,i,n?">":e*T)}))})):k.forEach((function(t){return u.to(P,t,">")}));else{if(d=P.length,m=T?Kt(T):Q,I(T))for(p in T)~Be.indexOf(p)&&(g||(g={}),g[p]=T[p]);for(c=0;c<d;c++){for(p in h={},i)Ne.indexOf(p)<0&&(h[p]=i[p]);h.stagger=0,D&&(h.yoyoEase=D),g&&_t(h,g),f=P[c],h.duration=+Re(_,n(l),c,f,P),h.delay=(+Re(b,n(l),c,f,P)||0)-l._delay,!T&&1===d&&h.delay&&(l._delay=b=h.delay,l._start+=b,h.delay=0),u.to(f,h,m(c,f,P))}u.duration()?_=b=0:l.timeline=0}_||l.duration(_=u.duration())}else l.timeline=0;return!0!==w||s||(Me=n(l),a.killTweensOf(P),Me=0),Lt(C,n(l),r),i.reversed&&l.reverse(),i.paused&&l.paused(!0),(x||!_&&!k&&l._start===ht(C._time)&&L(x)&&Et(n(l))&&"nested"!==C.data)&&(l._tTime=-1e-8,l.render(Math.max(0,-b))),E&&Ot(n(l),E),l}r(e,t);var i=e.prototype;return i.render=function(t,e,i){var n,r,s,a,o,l,u,c,h,d=this._time,p=this._tDur,f=this._dur,m=t>p-x&&t>=0?p:t<x?0:t;if(f){if(m!==this._tTime||!t||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!=t<0){if(n=m,c=this.timeline,this._repeat){if(a=f+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,i);if(n=ht(m%a),m===p?(s=this._repeat,n=f):((s=~~(m/a))&&s===m/a&&(n=f,s--),n>f&&(n=f)),(l=this._yoyo&&1&s)&&(h=this._yEase,n=f-n),o=Ct(this._tTime,a),n===d&&!i&&this._initted)return this;s!==o&&(c&&this._yEase&&Te(c,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=i=1,this.render(ht(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(Ft(this,t<0?t:n,i,e))return this._tTime=0,this;if(f!==this._dur)return this.render(t,e,i)}if(this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(h||this._ease)(n/f),this._from&&(this.ratio=u=1-u),n&&!d&&!e&&(re(this,"onStart"),this._tTime!==m))return this;for(r=this._pt;r;)r.r(u,r.d),r=r._next;c&&c.render(t<0?t:!n&&l?-1e-8:c._dur*u,e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,i),re(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&re(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!f)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&kt(this,1),e||t<0&&!d||!m&&!d||(re(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,i,n){var r,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&Rt(t)&&(t._initted||!Bt(t))||(t._ts<0||t._dp._ts<0)&&!Bt(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=qt(0,t._tDur,e),s=Ct(c,u),a=Ct(t._tTime,u),t._yoyo&&1&s&&(l=1-l),s!==a&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||n||t._zTime===x||!e&&t._zTime){if(!t._initted&&Ft(t,e,n,i))return;for(a=t._zTime,t._zTime=e||(i?x:0),i||(i=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,r=t._pt;r;)r.r(l,r.d),r=r._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!i&&re(t,"onUpdate"),c&&t._repeat&&!i&&t.parent&&re(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&kt(t,1),i||(re(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?se(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Me&&!0!==Me.vars.overwrite)._first||se(this),this.parent&&i!==this.timeline.totalDuration()&&Nt(this,this._dur*this.timeline._tDur/i,0,1),this}var n,r,s,a,o,l,u,c=this._targets,h=t?$t(t):c,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,n=i===e.length;n&&i--&&t[i]===e[i];);return i<0}(c,h))return"all"===e&&(this._pt=0),se(this);for(n=this._op=this._op||[],"all"!==e&&(C(e)&&(o={},ut(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var i,n,r,s,a=t[0]?ot(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in i=_t({},e),o)if(n in i)for(r=(s=o[n].split(",")).length;r--;)i[s[r]]=i[n];return i}(c,e)),u=c.length;u--;)if(~h.indexOf(c[u]))for(o in r=d[u],"all"===e?(n[u]=e,a=r,s={}):(s=n[u]=n[u]||{},a=e),a)(l=r&&r[o])&&("kill"in l.d&&!0!==l.d.kill(o)||wt(this,l,"_pt"),delete r[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&p&&se(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,e){return Ut(1,arguments)},e.delayedCall=function(t,i,n,r){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:r})},e.fromTo=function(t,e,i){return Ut(2,arguments)},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return a.killTweensOf(t,e,i)},e}(Pe);yt(He.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ut("staggerTo,staggerFrom,staggerFromTo",(function(t){He[t]=function(){var e=new Ae,i=Wt.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}}));var Ve=function(t,e,i){return t[e]=i},je=function(t,e,i){return t[e](i)},Ue=function(t,e,i,n){return t[e](n.fp,i)},ze=function(t,e,i){return t.setAttribute(e,i)},qe=function(t,e){return P(t[e])?je:M(t[e])&&t.setAttribute?ze:Ve},Ge=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},We=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Xe=function(t,e){var i=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;i;)n=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+n,i=i._next;n+=e.c}e.set(e.t,e.p,n,e)},$e=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},Ye=function(t,e,i,n){for(var r,s=this._pt;s;)r=s._next,s.p===n&&s.modifier(t,e,i),s=r},Ke=function(t){for(var e,i,n=this._pt;n;)i=n._next,n.p===t&&!n.op||n.op===t?wt(this,n,"_pt"):n.dep||(e=1),n=i;return!e},Qe=function(t,e,i,n){n.mSet(t,e,n.m.call(n.tween,i,n.mt),n)},Ze=function(t){for(var e,i,n,r,s=t._pt;s;){for(e=s._next,i=n;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:r)?s._prev._next=s:n=s,(s._next=i)?i._prev=s:r=s,s=e}t._pt=n},Je=function(){function t(t,e,i,n,r,s,a,o,l){this.t=e,this.s=n,this.c=r,this.p=i,this.r=s||Ge,this.d=a||this,this.set=o||Ve,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=Qe,this.m=t,this.mt=i,this.tween=e},t}();ut(st+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Z[t]=1})),G.TweenMax=G.TweenLite=He,G.TimelineLite=G.TimelineMax=Ae,a=new Ae({sortChildren:!1,defaults:_,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),v.stringFilter=fe;var ti={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach((function(t){return function(t){var e=(t=!t.name&&t.default||t).name,i=P(t),n=e&&!i&&t.init?function(){this._props=[]}:t,r={init:Q,render:$e,add:Le,kill:Ke,modifier:Ye,rawVars:0},s={targetTest:0,get:0,getSetter:qe,aliases:{},register:0};if(ge(),t!==n){if(et[e])return;yt(n,yt(xt(t,r),s)),_t(n.prototype,_t(r,xt(t,s))),et[n.prop=e]=n,t.targetTest&&(rt.push(n),Z[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}K(e,n),t.register&&t.register(ni,n,Je)}(t)}))},timeline:function(t){return new Ae(t)},getTweensOf:function(t,e){return a.getTweensOf(t,e)},getProperty:function(t,e,i,n){C(t)&&(t=$t(t)[0]);var r=ot(t||{}).get,s=i?gt:mt;return"native"===i&&(i=""),t?e?s((et[e]&&et[e].get||r)(t,e,i,n)):function(e,i,n){return s((et[e]&&et[e].get||r)(t,e,i,n))}:t},quickSetter:function(t,e,i){if((t=$t(t)).length>1){var n=t.map((function(t){return ni.quickSetter(t,e,i)})),r=n.length;return function(t){for(var e=r;e--;)n[e](t)}}t=t[0]||{};var s=et[e],a=ot(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;d._pt=0,n.init(t,i?e+i:e,d,0,[t]),n.render(1,n),d._pt&&$e(1,d)}:a.set(t,o);return s?l:function(e){return l(t,o,i?e+i:e,a,1)}},isTweening:function(t){return a.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=we(t.ease,_.ease)),bt(_,t||{})},config:function(t){return bt(v,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,n=t.plugins,r=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!et[t]&&!G[t]&&Y(e+" effect requires "+t+" plugin.")})),it[e]=function(t,e,n){return i($t(t),yt(e||{},r),n)},s&&(Ae.prototype[e]=function(t,i,n){return this.add(it[e](t,I(i)?i:(n=i)&&{},this),n)})},registerEase:function(t,e){ye[t]=we(e)},parseEase:function(t,e){return arguments.length?we(t,e):ye},getById:function(t){return a.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,n,r=new Ae(t);for(r.smoothChildTiming=L(t.smoothChildTiming),a.remove(r),r._dp=0,r._time=r._tTime=a._time,i=a._first;i;)n=i._next,!e&&!i._dur&&i instanceof He&&i.vars.onComplete===i._targets[0]||Lt(r,i,i._start-i._delay),i=n;return Lt(a,r,0),r},utils:{wrap:function t(e,i,n){var r=i-e;return B(e)?te(e,t(0,e.length),i):zt(n,(function(t){return(r+(t-e)%r)%r+e}))},wrapYoyo:function t(e,i,n){var r=i-e,s=2*r;return B(e)?te(e,t(0,e.length-1),i):zt(n,(function(t){return e+((t=(s+(t-e)%s)%s||0)>r?s-t:t)}))},distribute:Kt,random:Jt,snap:Zt,normalize:function(t,e,i){return ie(t,e,0,1,i)},getUnit:Gt,clamp:function(t,e,i){return zt(i,(function(i){return qt(t,e,i)}))},splitColor:ue,toArray:$t,selector:function(t){return t=$t(t)[0]||Y("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return $t(e,i.querySelectorAll?i:i===t?Y("Invalid scope")||u.createElement("div"):t)}},mapRange:ie,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(i){return t(parseFloat(i))+(e||Gt(i))}},interpolate:function t(e,i,n,r){var s=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!s){var a,o,l,u,c,h=C(e),d={};if(!0===n&&(r=1)&&(n=null),h)e={p:e},i={p:i};else if(B(e)&&!B(i)){for(l=[],u=e.length,c=u-2,o=1;o<u;o++)l.push(t(e[o-1],e[o]));u--,s=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},n=i}else r||(e=_t(B(e)?[]:{},e));if(!l){for(a in i)Le.call(d,e,a,"get",i[a]);s=function(t){return $e(t,d)||(h?e.p:e)}}}return zt(n,s)},shuffle:Yt},install:X,effects:it,ticker:me,updateRoot:Ae.updateRoot,plugins:et,globalTimeline:a,core:{PropTween:Je,globals:K,Tween:He,Timeline:Ae,Animation:Pe,getCache:ot,_removeLinkedListItem:wt,suppressOverwrites:function(t){return s=t}}};ut("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return ti[t]=He[t]})),me.add(Ae.updateRoot),d=ti.to({},{duration:0});var ei=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},ii=function(t,e){return{name:t,rawVars:1,init:function(t,i,n){n._onInit=function(t){var n,r;if(C(i)&&(n={},ut(i,(function(t){return n[t]=1})),i=n),e){for(r in n={},i)n[r]=e(i[r]);i=n}!function(t,e){var i,n,r,s=t._targets;for(i in e)for(n=s.length;n--;)(r=t._ptLookup[n][i])&&(r=r.d)&&(r._pt&&(r=ei(r,i)),r&&r.modifier&&r.modifier(e[i],t,s[n],i))}(t,i)}}}},ni=ti.registerPlugin({name:"attr",init:function(t,e,i,n,r){var s,a;for(s in e)(a=this.add(t,"setAttribute",(t.getAttribute(s)||0)+"",e[s],n,r,0,0,s))&&(a.op=s),this._props.push(s)}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i])}},ii("roundProps",Qt),ii("modifiers"),ii("snap",Zt))||ti;He.version=Ae.version=ni.version="3.8.0",c=1,O()&&ge(),ye.Power0,ye.Power1,ye.Power2,ye.Power3,ye.Power4,ye.Linear,ye.Quad,ye.Cubic,ye.Quart,ye.Quint,ye.Strong,ye.Elastic,ye.Back,ye.SteppedEase,ye.Bounce,ye.Sine,ye.Expo,ye.Circ;var ri,si,ai,oi,li,ui,ci,hi={},di=180/Math.PI,pi=Math.PI/180,fi=Math.atan2,mi=/([A-Z])/g,gi=/(?:left|right|width|margin|padding|x)/i,yi=/[\s,\(]\S/,vi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},_i=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},bi=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},xi=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Ti=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},wi=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},ki=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Si=function(t,e,i){return t.style[e]=i},Ei=function(t,e,i){return t.style.setProperty(e,i)},Di=function(t,e,i){return t._gsap[e]=i},Ci=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},Pi=function(t,e,i,n,r){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},Ai=function(t,e,i,n,r){var s=t._gsap;s[e]=i,s.renderTransform(r,s)},Mi="transform",Ii=Mi+"Origin",Li=function(t,e){var i=si.createElementNS?si.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):si.createElement(t);return i.style?i:si.createElement(t)},Oi=function t(e,i,n){var r=getComputedStyle(e);return r[i]||r.getPropertyValue(i.replace(mi,"-$1").toLowerCase())||r.getPropertyValue(i)||!n&&t(e,Ri(i)||i,1)||""},Fi="O,Moz,ms,Ms,Webkit".split(","),Ri=function(t,e,i){var n=(e||li).style,r=5;if(t in n&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);r--&&!(Fi[r]+t in n););return r<0?null:(3===r?"ms":r>=0?Fi[r]:"")+t},Bi=function(){"undefined"!=typeof window&&window.document&&(ri=window,si=ri.document,ai=si.documentElement,li=Li("div")||{style:{}},Li("div"),Mi=Ri(Mi),Ii=Mi+"Origin",li.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ci=!!Ri("perspective"),oi=1)},Ni=function t(e){var i,n=Li("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,s=this.nextSibling,a=this.style.cssText;if(ai.appendChild(n),n.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return r&&(s?r.insertBefore(this,s):r.appendChild(this)),ai.removeChild(n),this.style.cssText=a,i},Hi=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},Vi=function(t){var e;try{e=t.getBBox()}catch(i){e=Ni.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ni||(e=Ni.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Hi(t,["x","cx","x1"])||0,y:+Hi(t,["y","cy","y1"])||0,width:0,height:0}},ji=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Vi(t))},Ui=function(t,e){if(e){var i=t.style;e in hi&&e!==Ii&&(e=Mi),i.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty(e.replace(mi,"-$1").toLowerCase())):i.removeAttribute(e)}},zi=function(t,e,i,n,r,s){var a=new Je(t._pt,e,i,0,1,s?ki:wi);return t._pt=a,a.b=n,a.e=r,t._props.push(i),a},qi={deg:1,rad:1,turn:1},Gi=function t(e,i,n,r){var s,a,o,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",h=li.style,d=gi.test(i),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===r,y="%"===r;return r===c||!u||qi[r]||qi[c]?u:("px"!==c&&!g&&(u=t(e,i,n,"px")),l=e.getCTM&&ji(e),!y&&"%"!==c||!hi[i]&&!~i.indexOf("adius")?(h[d?"width":"height"]=m+(g?c:r),a=~i.indexOf("adius")||"em"===r&&e.appendChild&&!p?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==si&&a.appendChild||(a=si.body),(o=a._gsap)&&y&&o.width&&d&&o.time===me.time?ct(u/o.width*m):((y||"%"===c)&&(h.position=Oi(e,"position")),a===e&&(h.position="static"),a.appendChild(li),s=li[f],a.removeChild(li),h.position="absolute",d&&y&&((o=ot(a)).time=me.time,o.width=a[f]),ct(g?s*u/m:s&&u?m/s*u:0))):(s=l?e.getBBox()[d?"width":"height"]:e[f],ct(y?u/s*m:u/100*s)))},Wi=function(t,e,i,n){var r;return oi||Bi(),e in vi&&"transform"!==e&&~(e=vi[e]).indexOf(",")&&(e=e.split(",")[0]),hi[e]&&"transform"!==e?(r=rn(t,n),r="transformOrigin"!==e?r[e]:r.svg?r.origin:sn(Oi(t,Ii))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=Ki[e]&&Ki[e](t,e,i)||Oi(t,e)||lt(t,e)||("opacity"===e?1:0)),i&&!~(r+"").trim().indexOf(" ")?Gi(t,e,r,i)+i:r},Xi=function(t,e,i,n){if(!i||"none"===i){var r=Ri(e,t,1),s=r&&Oi(t,r,1);s&&s!==i?(e=r,i=s):"borderColor"===e&&(i=Oi(t,"borderTopColor"))}var a,o,l,u,c,h,d,p,f,m,g,y,_=new Je(this._pt,t.style,e,0,1,Xe),b=0,x=0;if(_.b=i,_.e=n,i+="","auto"==(n+="")&&(t.style[e]=n,n=Oi(t,e)||n,t.style[e]=i),fe(a=[i,n]),n=a[1],l=(i=a[0]).match(V)||[],(n.match(V)||[]).length){for(;o=V.exec(n);)d=o[0],f=n.substring(b,o.index),c?c=(c+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(c=1),d!==(h=l[x++]||"")&&(u=parseFloat(h)||0,g=h.substr((u+"").length),(y="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),p=parseFloat(d),m=d.substr((p+"").length),b=V.lastIndex-m.length,m||(m=m||v.units[e]||g,b===n.length&&(n+=m,_.e+=m)),g!==m&&(u=Gi(t,e,h,m)||0),_._pt={_next:_._pt,p:f||1===x?f:",",s:u,c:y?y*p:p-u,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=b<n.length?n.substring(b,n.length):""}else _.r="display"===e&&"none"===n?ki:wi;return U.test(n)&&(_.e=0),this._pt=_,_},$i={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Yi=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,n,r,s=e.t,a=s.style,o=e.u,l=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(r=(o=o.split(",")).length;--r>-1;)i=o[r],hi[i]&&(n=1,i="transformOrigin"===i?Ii:Mi),Ui(s,i);n&&(Ui(s,Mi),l&&(l.svg&&s.removeAttribute("transform"),rn(s,1),l.uncache=1))}},Ki={clearProps:function(t,e,i,n,r){if("isFromStart"!==r.data){var s=t._pt=new Je(t._pt,e,i,0,0,Yi);return s.u=n,s.pr=-10,s.tween=r,t._props.push(i),1}}},Qi=[1,0,0,1,0,0],Zi={},Ji=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},tn=function(t){var e=Oi(t,Mi);return Ji(e)?Qi:e.substr(7).match(H).map(ct)},en=function(t,e){var i,n,r,s,a=t._gsap||ot(t),o=t.style,l=tn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?Qi:l:(l!==Qi||t.offsetParent||t===ai||a.svg||(r=o.display,o.display="block",(i=t.parentNode)&&t.offsetParent||(s=1,n=t.nextSibling,ai.appendChild(t)),l=tn(t),r?o.display=r:Ui(t,"display"),s&&(n?i.insertBefore(t,n):i?i.appendChild(t):ai.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},nn=function(t,e,i,n,r,s){var a,o,l,u=t._gsap,c=r||en(t,!0),h=u.xOrigin||0,d=u.yOrigin||0,p=u.xOffset||0,f=u.yOffset||0,m=c[0],g=c[1],y=c[2],v=c[3],_=c[4],b=c[5],x=e.split(" "),T=parseFloat(x[0])||0,w=parseFloat(x[1])||0;i?c!==Qi&&(o=m*v-g*y)&&(l=T*(-g/o)+w*(m/o)-(m*b-g*_)/o,T=T*(v/o)+w*(-y/o)+(y*b-v*_)/o,w=l):(T=(a=Vi(t)).x+(~x[0].indexOf("%")?T/100*a.width:T),w=a.y+(~(x[1]||x[0]).indexOf("%")?w/100*a.height:w)),n||!1!==n&&u.smooth?(_=T-h,b=w-d,u.xOffset=p+(_*m+b*y)-_,u.yOffset=f+(_*g+b*v)-b):u.xOffset=u.yOffset=0,u.xOrigin=T,u.yOrigin=w,u.smooth=!!n,u.origin=e,u.originIsAbsolute=!!i,t.style[Ii]="0px 0px",s&&(zi(s,u,"xOrigin",h,T),zi(s,u,"yOrigin",d,w),zi(s,u,"xOffset",p,u.xOffset),zi(s,u,"yOffset",f,u.yOffset)),t.setAttribute("data-svg-origin",T+" "+w)},rn=function(t,e){var i=t._gsap||new Ce(t);if("x"in i&&!e&&!i.uncache)return i;var n,r,s,a,o,l,u,c,h,d,p,f,m,g,y,_,b,x,T,w,k,S,E,D,C,P,A,M,I,L,O,F,R=t.style,B=i.scaleX<0,N="px",H="deg",V=Oi(t,Ii)||"0";return n=r=s=l=u=c=h=d=p=0,a=o=1,i.svg=!(!t.getCTM||!ji(t)),g=en(t,i.svg),i.svg&&(D=(!i.uncache||"0px 0px"===V)&&!e&&t.getAttribute("data-svg-origin"),nn(t,D||V,!!D||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==Qi&&(x=g[0],T=g[1],w=g[2],k=g[3],n=S=g[4],r=E=g[5],6===g.length?(a=Math.sqrt(x*x+T*T),o=Math.sqrt(k*k+w*w),l=x||T?fi(T,x)*di:0,(h=w||k?fi(w,k)*di+l:0)&&(o*=Math.abs(Math.cos(h*pi))),i.svg&&(n-=f-(f*x+m*w),r-=m-(f*T+m*k))):(F=g[6],L=g[7],A=g[8],M=g[9],I=g[10],O=g[11],n=g[12],r=g[13],s=g[14],u=(y=fi(F,I))*di,y&&(D=S*(_=Math.cos(-y))+A*(b=Math.sin(-y)),C=E*_+M*b,P=F*_+I*b,A=S*-b+A*_,M=E*-b+M*_,I=F*-b+I*_,O=L*-b+O*_,S=D,E=C,F=P),c=(y=fi(-w,I))*di,y&&(_=Math.cos(-y),O=k*(b=Math.sin(-y))+O*_,x=D=x*_-A*b,T=C=T*_-M*b,w=P=w*_-I*b),l=(y=fi(T,x))*di,y&&(D=x*(_=Math.cos(y))+T*(b=Math.sin(y)),C=S*_+E*b,T=T*_-x*b,E=E*_-S*b,x=D,S=C),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),a=ct(Math.sqrt(x*x+T*T+w*w)),o=ct(Math.sqrt(E*E+F*F)),y=fi(S,E),h=Math.abs(y)>2e-4?y*di:0,p=O?1/(O<0?-O:O):0),i.svg&&(D=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!Ji(Oi(t,Mi)),D&&t.setAttribute("transform",D))),Math.abs(h)>90&&Math.abs(h)<270&&(B?(a*=-1,h+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,h+=h<=0?180:-180)),i.x=n-((i.xPercent=n&&(i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+N,i.y=r-((i.yPercent=r&&(i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+N,i.z=s+N,i.scaleX=ct(a),i.scaleY=ct(o),i.rotation=ct(l)+H,i.rotationX=ct(u)+H,i.rotationY=ct(c)+H,i.skewX=h+H,i.skewY=d+H,i.transformPerspective=p+N,(i.zOrigin=parseFloat(V.split(" ")[2])||0)&&(R[Ii]=sn(V)),i.xOffset=i.yOffset=0,i.force3D=v.force3D,i.renderTransform=i.svg?dn:ci?hn:on,i.uncache=0,i},sn=function(t){return(t=t.split(" "))[0]+" "+t[1]},an=function(t,e,i){var n=Gt(e);return ct(parseFloat(e)+parseFloat(Gi(t,"x",i+"px",n)))+n},on=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,hn(t,e)},ln="0deg",un="0px",cn=") ",hn=function(t,e){var i=e||this,n=i.xPercent,r=i.yPercent,s=i.x,a=i.y,o=i.z,l=i.rotation,u=i.rotationY,c=i.rotationX,h=i.skewX,d=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,y=i.target,v=i.zOrigin,_="",b="auto"===g&&t&&1!==t||!0===g;if(v&&(c!==ln||u!==ln)){var x,T=parseFloat(u)*pi,w=Math.sin(T),k=Math.cos(T);T=parseFloat(c)*pi,x=Math.cos(T),s=an(y,s,w*x*-v),a=an(y,a,-Math.sin(T)*-v),o=an(y,o,k*x*-v+v)}m!==un&&(_+="perspective("+m+cn),(n||r)&&(_+="translate("+n+"%, "+r+"%) "),(b||s!==un||a!==un||o!==un)&&(_+=o!==un||b?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+cn),l!==ln&&(_+="rotate("+l+cn),u!==ln&&(_+="rotateY("+u+cn),c!==ln&&(_+="rotateX("+c+cn),h===ln&&d===ln||(_+="skew("+h+", "+d+cn),1===p&&1===f||(_+="scale("+p+", "+f+cn),y.style[Mi]=_||"translate(0, 0)"},dn=function(t,e){var i,n,r,s,a,o=e||this,l=o.xPercent,u=o.yPercent,c=o.x,h=o.y,d=o.rotation,p=o.skewX,f=o.skewY,m=o.scaleX,g=o.scaleY,y=o.target,v=o.xOrigin,_=o.yOrigin,b=o.xOffset,x=o.yOffset,T=o.forceCSS,w=parseFloat(c),k=parseFloat(h);d=parseFloat(d),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),d+=f),d||p?(d*=pi,p*=pi,i=Math.cos(d)*m,n=Math.sin(d)*m,r=Math.sin(d-p)*-g,s=Math.cos(d-p)*g,p&&(f*=pi,a=Math.tan(p-f),r*=a=Math.sqrt(1+a*a),s*=a,f&&(a=Math.tan(f),i*=a=Math.sqrt(1+a*a),n*=a)),i=ct(i),n=ct(n),r=ct(r),s=ct(s)):(i=m,s=g,n=r=0),(w&&!~(c+"").indexOf("px")||k&&!~(h+"").indexOf("px"))&&(w=Gi(y,"x",c,"px"),k=Gi(y,"y",h,"px")),(v||_||b||x)&&(w=ct(w+v-(v*i+_*r)+b),k=ct(k+_-(v*n+_*s)+x)),(l||u)&&(a=y.getBBox(),w=ct(w+l/100*a.width),k=ct(k+u/100*a.height)),a="matrix("+i+","+n+","+r+","+s+","+w+","+k+")",y.setAttribute("transform",a),T&&(y.style[Mi]=a)},pn=function(t,e,i,n,r,s){var a,o,l=360,u=C(r),c=parseFloat(r)*(u&&~r.indexOf("rad")?di:1),h=s?c*s:c-n,d=n+h+"deg";return u&&("short"===(a=r.split("_")[1])&&(h%=l)!=h%180&&(h+=h<0?l:-360),"cw"===a&&h<0?h=(h+36e9)%l-~~(h/l)*l:"ccw"===a&&h>0&&(h=(h-36e9)%l-~~(h/l)*l)),t._pt=o=new Je(t._pt,e,i,n,h,bi),o.e=d,o.u="deg",t._props.push(i),o},fn=function(t,e){for(var i in e)t[i]=e[i];return t},mn=function(t,e,i){var n,r,s,a,o,l,u,c=fn({},i._gsap),h=i.style;for(r in c.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),h[Mi]=e,n=rn(i,1),Ui(i,Mi),i.setAttribute("transform",s)):(s=getComputedStyle(i)[Mi],h[Mi]=e,n=rn(i,1),h[Mi]=s),hi)(s=c[r])!==(a=n[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(o=Gt(s)!==(u=Gt(a))?Gi(i,r,s,u):parseFloat(s),l=parseFloat(a),t._pt=new Je(t._pt,n,r,o,l-o,_i),t._pt.u=u||0,t._props.push(r));fn(n,c)};ut("padding,margin,Width,Radius",(function(t,e){var i="Top",n="Right",r="Bottom",s="Left",a=(e<3?[i,n,r,s]:[i+s,i+n,r+n,r+s]).map((function(i){return e<2?t+i:"border"+i+t}));Ki[e>1?"border"+t:t]=function(t,e,i,n,r){var s,o;if(arguments.length<4)return s=a.map((function(e){return Wi(t,e,i)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(n+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,r)}}));var gn,yn,vn={name:"css",register:Bi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,r){var s,a,o,l,u,c,h,d,p,f,m,g,y,_,b,x,T,w,k,S=this._props,E=t.style,D=i.vars.startAt;for(h in oi||Bi(),e)if("autoRound"!==h&&(a=e[h],!et[h]||!Oe(h,e,i,n,t,r)))if(u=typeof a,c=Ki[h],"function"===u&&(u=typeof(a=a.call(i,n,t,r))),"string"===u&&~a.indexOf("random(")&&(a=ee(a)),c)c(this,t,h,a,i)&&(b=1);else if("--"===h.substr(0,2))s=(getComputedStyle(t).getPropertyValue(h)+"").trim(),a+="",de.lastIndex=0,de.test(s)||(d=Gt(s),p=Gt(a)),p?d!==p&&(s=Gi(t,h,s,p)+p):d&&(a+=d),this.add(E,"setProperty",s,a,n,r,0,0,h),S.push(h);else if("undefined"!==u){if(D&&h in D?(s="function"==typeof D[h]?D[h].call(i,n,t,r):D[h],h in v.units&&!Gt(s)&&(s+=v.units[h]),C(s)&&~s.indexOf("random(")&&(s=ee(s)),"="===(s+"").charAt(1)&&(s=Wi(t,h))):s=Wi(t,h),l=parseFloat(s),(f="string"===u&&"="===a.charAt(1)?+(a.charAt(0)+"1"):0)&&(a=a.substr(2)),o=parseFloat(a),h in vi&&("autoAlpha"===h&&(1===l&&"hidden"===Wi(t,"visibility")&&o&&(l=0),zi(this,E,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=vi[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in hi)if(g||((y=t._gsap).renderTransform&&!e.parseTransform||rn(t,e.parseTransform),_=!1!==e.smoothOrigin&&y.smooth,(g=this._pt=new Je(this._pt,E,Mi,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===h)this._pt=new Je(this._pt,y,"scaleY",y.scaleY,(f?f*o:o-y.scaleY)||0),S.push("scaleY",h),h+="X";else{if("transformOrigin"===h){T=void 0,w=void 0,k=void 0,w=(T=(x=a).split(" "))[0],k=T[1]||"50%","top"!==w&&"bottom"!==w&&"left"!==k&&"right"!==k||(x=w,w=k,k=x),T[0]=$i[w]||w,T[1]=$i[k]||k,a=T.join(" "),y.svg?nn(t,a,0,_,0,this):((p=parseFloat(a.split(" ")[2])||0)!==y.zOrigin&&zi(this,y,"zOrigin",y.zOrigin,p),zi(this,E,h,sn(s),sn(a)));continue}if("svgOrigin"===h){nn(t,a,1,_,0,this);continue}if(h in Zi){pn(this,y,h,l,a,f);continue}if("smoothOrigin"===h){zi(this,y,"smooth",y.smooth,a);continue}if("force3D"===h){y[h]=a;continue}if("transform"===h){mn(this,a,t);continue}}else h in E||(h=Ri(h)||h);if(m||(o||0===o)&&(l||0===l)&&!yi.test(a)&&h in E)o||(o=0),(d=(s+"").substr((l+"").length))!==(p=Gt(a)||(h in v.units?v.units[h]:d))&&(l=Gi(t,h,s,p)),this._pt=new Je(this._pt,m?y:E,h,l,f?f*o:o-l,m||"px"!==p&&"zIndex"!==h||!1===e.autoRound?_i:Ti),this._pt.u=p||0,d!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=xi);else if(h in E)Xi.call(this,t,h,s,a);else{if(!(h in t)){$(h,a);continue}this.add(t,h,s||t[h],a,n,r)}S.push(h)}b&&Ze(this)},get:Wi,aliases:vi,getSetter:function(t,e,i){var n=vi[e];return n&&n.indexOf(",")<0&&(e=n),e in hi&&e!==Ii&&(t._gsap.x||Wi(t,"x"))?i&&ui===i?"scale"===e?Ci:Di:(ui=i||{})&&("scale"===e?Pi:Ai):t.style&&!M(t.style[e])?Si:~e.indexOf("-")?Ei:qe(t,e)},core:{_removeProperty:Ui,_getMatrix:en}};ni.utils.checkPrefix=Ri,yn=ut("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(gn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){hi[t]=1})),ut(gn,(function(t){v.units[t]="deg",Zi[t]=1})),vi[yn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+gn,ut("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");vi[e[1]]=yn[e[0]]})),ut("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){v.units[t]="px"})),ni.registerPlugin(vn);var _n,bn,xn,Tn,wn,kn,Sn,En,Dn,Cn="transform",Pn=Cn+"Origin",An=function(t){var e=t.ownerDocument||t;!(Cn in t.style)&&"msTransform"in t.style&&(Pn=(Cn="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(bn=window,Sn=new Vn,e){_n=e,xn=e.documentElement,Tn=e.body,(En=_n.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),n=e.createElement("div");Tn.appendChild(i),i.appendChild(n),i.style.position="static",i.style[Cn]="translate3d(0,0,1px)",Dn=n.offsetParent!==i,Tn.removeChild(i)}return e},Mn=[],In=[],Ln=function(){return bn.pageYOffset||_n.scrollTop||xn.scrollTop||Tn.scrollTop||0},On=function(){return bn.pageXOffset||_n.scrollLeft||xn.scrollLeft||Tn.scrollLeft||0},Fn=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},Rn=function t(e){return"fixed"===bn.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},Bn=function t(e,i){if(e.parentNode&&(_n||An(e))){var n=Fn(e),r=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?i?"rect":"g":"div",a=2!==i?0:100,o=3===i?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=_n.createElementNS?_n.createElementNS(r.replace(/^https/,"http"),s):_n.createElement(s);return i&&(n?(kn||(kn=t(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+a+","+o+")"),kn.appendChild(u)):(wn||((wn=t(e)).style.cssText=l),u.style.cssText=l+"width:0.1px;height:0.1px;top:"+o+"px;left:"+a+"px",wn.appendChild(u))),u}throw"Need document and parent."},Nn=function(t){var e,i=t.getCTM();return i||(e=t.style[Cn],t.style[Cn]="none",t.appendChild(En),i=En.getCTM(),t.removeChild(En),e?t.style[Cn]=e:t.style.removeProperty(Cn.replace(/([A-Z])/g,"-$1").toLowerCase())),i||Sn.clone()},Hn=function(t,e,i,n,r,s,a){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=s,t.f=a,t},Vn=function(){function t(t,e,i,n,r,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===s&&(s=0),Hn(this,t,e,i,n,r,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,s=this.f,a=t*n-e*i||1e-10;return Hn(this,n/a,-e/a,-i/a,t/a,(i*s-n*r)/a,-(t*s-e*r)/a)},e.multiply=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f,o=t.a,l=t.c,u=t.b,c=t.d,h=t.e,d=t.f;return Hn(this,o*e+u*n,o*i+u*r,l*e+c*n,l*i+c*r,s+h*e+d*n,a+h*i+d*r)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&s===t.e&&a===t.f},e.apply=function(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,s=this.b,a=this.c,o=this.d,l=this.e,u=this.f;return e.x=i*r+n*a+l||0,e.y=i*s+n*o+u||0,e},t}();function jn(t,e,i,n){if(!t||!t.parentNode||(_n||An(t)).documentElement===t)return new Vn;var r=function(t){for(var e,i;t&&t!==Tn;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(t),s=Fn(t)?Mn:In,a=function(t,e){var i,n,r,s,a,o,l=Fn(t),u=t===l,c=l?Mn:In,h=t.parentNode;if(t===bn)return t;if(c.length||c.push(Bn(t,1),Bn(t,2),Bn(t,3)),i=l?kn:wn,l)u?(s=-(r=Nn(t)).e/r.a,a=-r.f/r.d,n=Sn):(r=t.getBBox(),n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?function(t){for(var e=new Vn,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(n):n.getItem(0).matrix:Sn,s=n.a*r.x+n.c*r.y,a=n.b*r.x+n.d*r.y),e&&"g"===t.tagName.toLowerCase()&&(s=a=0),(u?l:h).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+s)+","+(n.f+a)+")");else{if(s=a=0,Dn)for(n=t.offsetParent,r=t;r&&(r=r.parentNode)&&r!==n&&r.parentNode;)(bn.getComputedStyle(r)[Cn]+"").length>4&&(s=r.offsetLeft,a=r.offsetTop,r=0);if("absolute"!==(o=bn.getComputedStyle(t)).position&&"fixed"!==o.position)for(n=t.offsetParent;h&&h!==n;)s+=h.scrollLeft||0,a+=h.scrollTop||0,h=h.parentNode;(r=i.style).top=t.offsetTop-a+"px",r.left=t.offsetLeft-s+"px",r[Cn]=o[Cn],r[Pn]=o[Pn],r.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}(t,i),o=s[0].getBoundingClientRect(),l=s[1].getBoundingClientRect(),u=s[2].getBoundingClientRect(),c=a.parentNode,h=!n&&Rn(t),d=new Vn((l.left-o.left)/100,(l.top-o.top)/100,(u.left-o.left)/100,(u.top-o.top)/100,o.left+(h?0:On()),o.top+(h?0:Ln()));if(c.removeChild(a),r)for(o=r.length;o--;)(l=r[o]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?d.inverse():d}var Un,zn,qn,Gn,Wn,Xn,$n,Yn,Kn,Qn,Zn,Jn,tr,er,ir,nr,rr,sr,ar,or,lr,ur=function(){return"undefined"!=typeof window},cr=function(){return Un||ur()&&(Un=window.gsap)&&Un.registerPlugin&&Un},hr=function(t){return"function"==typeof t},dr=function(t){return"object"==typeof t},pr=function(t){return void 0===t},fr=function(){return!1},mr="transform",gr="transformOrigin",yr=function(t){return Math.round(1e4*t)/1e4},vr=Array.isArray,_r=function(t,e){var i=qn.createElementNS?qn.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):qn.createElement(t);return i.style?i:qn.createElement(t)},br=180/Math.PI,xr=1e20,Tr=new Vn,wr=Date.now||function(){return(new Date).getTime()},kr=[],Sr={},Er=0,Dr=/^(?:a|input|textarea|button|select)$/i,Cr=0,Pr={},Ar={},Mr=function(t,e){var i,n={};for(i in t)n[i]=e?t[i]*e:t[i];return n},Ir=function t(e,i){for(var n,r=e.length;r--;)i?e[r].style.touchAction=i:e[r].style.removeProperty("touch-action"),(n=e[r].children)&&n.length&&t(n,i)},Lr=function(){return kr.forEach((function(t){return t()}))},Or=function(){return!kr.length&&Un.ticker.remove(Lr)},Fr=function(t){for(var e=kr.length;e--;)kr[e]===t&&kr.splice(e,1);Un.to(Or,{overwrite:!0,delay:15,duration:0,onComplete:Or,data:"_draggable"})},Rr=function(t,e,i,n){if(t.addEventListener){var r=tr[e];n=n||(Zn?{passive:!1}:null),t.addEventListener(r||e,i,n),r&&e!==r&&t.addEventListener(e,i,n)}},Br=function(t,e,i){if(t.removeEventListener){var n=tr[e];t.removeEventListener(n||e,i),n&&e!==n&&t.removeEventListener(e,i)}},Nr=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},Hr=function t(e){ir=e.touches&&er<e.touches.length,Br(e.target,"touchend",t)},Vr=function(t){ir=t.touches&&er<t.touches.length,Rr(t.target,"touchend",Hr)},jr=function(t){return zn.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},Ur=function(t){return zn.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},zr=function t(e,i){Rr(e,"scroll",i),Gr(e.parentNode)||t(e.parentNode,i)},qr=function t(e,i){Br(e,"scroll",i),Gr(e.parentNode)||t(e.parentNode,i)},Gr=function(t){return!(t&&t!==Gn&&9!==t.nodeType&&t!==qn.body&&t!==zn&&t.nodeType&&t.parentNode)},Wr=function(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,r="client"+i;return Math.max(0,Gr(t)?Math.max(Gn[n],Wn[n])-(zn["inner"+i]||Gn[r]||Wn[r]):t[n]-t[r])},Xr=function t(e,i){var n=Wr(e,"x"),r=Wr(e,"y");Gr(e)?e=Ar:t(e.parentNode,i),e._gsMaxScrollX=n,e._gsMaxScrollY=r,i||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},$r=function(t,e,i){var n=t.style;n&&(pr(n[e])&&(e=Kn(e,t)||e),null==i?n.removeProperty&&n.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):n[e]=i)},Yr=function(t){return zn.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Kr={},Qr=function(t){if(t===zn)return Kr.left=Kr.top=0,Kr.width=Kr.right=Gn.clientWidth||t.innerWidth||Wn.clientWidth||0,Kr.height=Kr.bottom=(t.innerHeight||0)-20<Gn.clientHeight?Gn.clientHeight:t.innerHeight||Wn.clientHeight||0,Kr;var e=t.ownerDocument||qn,i=pr(t.pageX)?t.nodeType||pr(t.left)||pr(t.top)?Qn(t)[0].getBoundingClientRect():t:{left:t.pageX-Ur(e),top:t.pageY-jr(e),right:t.pageX-Ur(e)+1,bottom:t.pageY-jr(e)+1};return pr(i.right)&&!pr(i.width)?(i.right=i.left+i.width,i.bottom=i.top+i.height):pr(i.width)&&(i={width:i.right-i.left,height:i.bottom-i.top,right:i.right,left:i.left,bottom:i.bottom,top:i.top}),i},Zr=function(t,e,i){var n,r=t.vars,s=r[i],a=t._listeners[e];return hr(s)&&(n=s.apply(r.callbackScope||t,r[i+"Params"]||[t.pointerEvent])),a&&!1===t.dispatchEvent(e)&&(n=!1),n},Jr=function(t,e){var i,n,r,s=Qn(t)[0];return s.nodeType||s===zn?es(s,e):pr(t.left)?{left:n=t.min||t.minX||t.minRotation||0,top:i=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-n,height:(t.max||t.maxY||0)-i}:(r={x:0,y:0},{left:t.left-r.x,top:t.top-r.y,width:t.width,height:t.height})},ts={},es=function(t,e){e=Qn(e)[0];var i,n,r,s,a,o,l,u,c,h,d,p,f,m,g=t.getBBox&&t.ownerSVGElement,y=t.ownerDocument||qn;if(t===zn)r=jr(y),n=(i=Ur(y))+(y.documentElement.clientWidth||t.innerWidth||y.body.clientWidth||0),s=r+((t.innerHeight||0)-20<y.documentElement.clientHeight?y.documentElement.clientHeight:t.innerHeight||y.body.clientHeight||0);else{if(e===zn||pr(e))return t.getBoundingClientRect();i=r=0,g?(d=(h=t.getBBox()).width,p=h.height):(t.viewBox&&(h=t.viewBox.baseVal)&&(i=h.x||0,r=h.y||0,d=h.width,p=h.height),d||(h="border-box"===(f=Yr(t)).boxSizing,d=(parseFloat(f.width)||t.clientWidth||0)+(h?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),p=(parseFloat(f.height)||t.clientHeight||0)+(h?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),n=d,s=p}return t===e?{left:i,top:r,width:n-i,height:s-r}:(o=(a=jn(e,!0).multiply(jn(t))).apply({x:i,y:r}),l=a.apply({x:n,y:r}),u=a.apply({x:n,y:s}),c=a.apply({x:i,y:s}),i=Math.min(o.x,l.x,u.x,c.x),r=Math.min(o.y,l.y,u.y,c.y),{left:i+((m=e.parentNode||{}).scrollLeft||0),top:r+(m.scrollTop||0),width:Math.max(o.x,l.x,u.x,c.x)-i,height:Math.max(o.y,l.y,u.y,c.y)-r})},is=function(t,e,i,n,r,s){var a,o,l,u={};if(e)if(1!==r&&e instanceof Array){if(u.end=a=[],l=e.length,dr(e[0]))for(o=0;o<l;o++)a[o]=Mr(e[o],r);else for(o=0;o<l;o++)a[o]=e[o]*r;i+=1.1,n-=1.1}else hr(e)?u.end=function(i){var n,s,a=e.call(t,i);if(1!==r)if(dr(a)){for(s in n={},a)n[s]=a[s]*r;a=n}else a*=r;return a}:u.end=e;return(i||0===i)&&(u.max=i),(n||0===n)&&(u.min=n),s&&(u.velocity=0),u},ns=function t(e){var i;return!(!e||!e.getAttribute||e===Wn)&&(!("true"!==(i=e.getAttribute("data-clickable"))&&("false"===i||!e.onclick&&!Dr.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||t(e.parentNode))},rs=function(t,e){for(var i,n=t.length;n--;)(i=t[n]).ondragstart=i.onselectstart=e?null:fr,Un.set(i,{lazy:!0,userSelect:e?"text":"none"})},ss=function t(e){return"fixed"===Yr(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},as=function(t,e){t=Un.utils.toArray(t)[0],e=e||{};var i,n,r,s,a,o,l=document.createElement("div"),u=l.style,c=t.firstChild,h=0,d=0,p=t.scrollTop,f=t.scrollLeft,m=t.scrollWidth,g=t.scrollHeight,y=0,v=0,_=0;or&&!1!==e.force3D?(a="translate3d(",o="px,0px)"):mr&&(a="translate(",o="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(i,n){if(!arguments.length)return-(t.scrollLeft+d);var r=t.scrollLeft-f,s=d;if((r>2||r<-2)&&!n)return f=t.scrollLeft,Un.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-f),void(e.onKill&&e.onKill());(i=-i)<0?(d=i-.5|0,i=0):i>v?(d=i-v|0,i=v):d=0,(d||s)&&(this._skip||(u[mr]=a+-d+"px,"+-h+o),d+y>=0&&(u.paddingRight=d+y+"px")),t.scrollLeft=0|i,f=t.scrollLeft},this.top=function(i,n){if(!arguments.length)return-(t.scrollTop+h);var r=t.scrollTop-p,s=h;if((r>2||r<-2)&&!n)return p=t.scrollTop,Un.killTweensOf(this,{top:1,scrollTop:1}),this.top(-p),void(e.onKill&&e.onKill());(i=-i)<0?(h=i-.5|0,i=0):i>_?(h=i-_|0,i=_):h=0,(h||s)&&(this._skip||(u[mr]=a+-d+"px,"+-h+o)),t.scrollTop=0|i,p=t.scrollTop},this.maxScrollTop=function(){return _},this.maxScrollLeft=function(){return v},this.disable=function(){for(c=l.firstChild;c;)s=c.nextSibling,t.appendChild(c),c=s;t===l.parentNode&&t.removeChild(l)},this.enable=function(){if((c=t.firstChild)!==l){for(;c;)s=c.nextSibling,l.appendChild(c),c=s;t.appendChild(l),this.calibrate()}},this.calibrate=function(e){var s,a,o,c=t.clientWidth===i;p=t.scrollTop,f=t.scrollLeft,c&&t.clientHeight===n&&l.offsetHeight===r&&m===t.scrollWidth&&g===t.scrollHeight&&!e||((h||d)&&(a=this.left(),o=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),s=Yr(t),c&&!e||(u.display="block",u.width="auto",u.paddingRight="0px",(y=Math.max(0,t.scrollWidth-t.clientWidth))&&(y+=parseFloat(s.paddingLeft)+(lr?parseFloat(s.paddingRight):0))),u.display="inline-block",u.position="relative",u.overflow="visible",u.verticalAlign="top",u.boxSizing="content-box",u.width="100%",u.paddingRight=y+"px",lr&&(u.paddingBottom=s.paddingBottom),i=t.clientWidth,n=t.clientHeight,m=t.scrollWidth,g=t.scrollHeight,v=t.scrollWidth-i,_=t.scrollHeight-n,r=l.offsetHeight,u.display="block",(a||o)&&(this.left(a),this.top(o)))},this.content=l,this.element=t,this._skip=!1,this.enable()},os=function(t){if(ur()&&document.body){var e=window&&window.navigator;zn=window,qn=document,Gn=qn.documentElement,Wn=qn.body,Xn=_r("div"),ar=!!window.PointerEvent,($n=_r("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",sr="grab"===$n.style.cursor?"grab":"move",nr=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),Jn="ontouchstart"in Gn&&"orientation"in zn||e&&(e.MaxTouchPoints>0||e.msMaxTouchPoints>0),n=_r("div"),s=(r=_r("div")).style,a=Wn,s.display="inline-block",s.position="relative",n.style.cssText=r.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(r),a.appendChild(n),i=r.offsetHeight+18>n.scrollHeight,a.removeChild(n),lr=i,tr=function(t){for(var e=t.split(","),i=(("onpointerdown"in Xn?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Xn?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(",")),n={},r=4;--r>-1;)n[e[r]]=i[r],n[i[r]]=e[r];try{Gn.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){Zn=1}}))}catch(t){}return n}("touchstart,touchmove,touchend,touchcancel"),Rr(qn,"touchcancel",fr),Rr(zn,"touchmove",fr),Wn&&Wn.addEventListener("touchstart",fr),Rr(qn,"contextmenu",(function(){for(var t in Sr)Sr[t].isPressed&&Sr[t].endDrag()})),Un=Yn=cr()}var i,n,r,s,a;Un?(rr=Un.plugins.inertia,Kn=Un.utils.checkPrefix,mr=Kn(mr),gr=Kn(gr),Qn=Un.utils.toArray,or=!!Kn("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},ls=function(){function t(t){this._listeners={},this.target=t||this}var e=t.prototype;return e.addEventListener=function(t,e){var i=this._listeners[t]||(this._listeners[t]=[]);~i.indexOf(e)||i.push(e)},e.removeEventListener=function(t,e){var i=this._listeners[t],n=i&&i.indexOf(e)||-1;n>-1&&i.splice(n,1)},e.dispatchEvent=function(t){var e,i=this;return(this._listeners[t]||[]).forEach((function(n){return!1===n.call(i,{type:t,target:i.target})&&(e=!1)})),e},t}(),us=function(t){var e,i;function n(e,i){var r;r=t.call(this)||this,Yn||os(1),e=Qn(e)[0],rr||(rr=Un.plugins.inertia),r.vars=i=Mr(i||{}),r.target=e,r.x=r.y=r.rotation=0,r.dragResistance=parseFloat(i.dragResistance)||0,r.edgeResistance=isNaN(i.edgeResistance)?1:parseFloat(i.edgeResistance)||0,r.lockAxis=i.lockAxis,r.autoScroll=i.autoScroll||0,r.lockedAxis=null,r.allowEventDefault=!!i.allowEventDefault,Un.getProperty(e,"x");var s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b,x,T,w,k,S,E,D,C,P,A,M,I,L,O,F,R,B=(i.type||"x,y").toLowerCase(),N=~B.indexOf("x")||~B.indexOf("y"),H=-1!==B.indexOf("rotation"),V=H?"rotation":N?"x":"left",j=N?"y":"top",U=!(!~B.indexOf("x")&&!~B.indexOf("left")&&"scroll"!==B),z=!(!~B.indexOf("y")&&!~B.indexOf("top")&&"scroll"!==B),q=i.minimumMovement||2,G=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r),W=Qn(i.trigger||i.handle||e),X={},$=0,Y=!1,K=i.autoScrollMarginTop||40,Q=i.autoScrollMarginRight||40,Z=i.autoScrollMarginBottom||40,J=i.autoScrollMarginLeft||40,tt=i.clickableTest||ns,et=0,it=e._gsap||Un.core.getCache(e),nt=ss(e),rt=function(t,i){return parseFloat(it.get(e,t,i))},st=e.ownerDocument||qn,at=function(t){return Nr(t),t.stopImmediatePropagation&&t.stopImmediatePropagation(),!1},ot=function t(i){if(G.autoScroll&&G.isDragging&&(Y||x)){var n,r,s,o,l,u,c,h,p=e,f=15*G.autoScroll;for(Y=!1,Ar.scrollTop=null!=zn.pageYOffset?zn.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,Ar.scrollLeft=null!=zn.pageXOffset?zn.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft,o=G.pointerX-Ar.scrollLeft,l=G.pointerY-Ar.scrollTop;p&&!r;)n=(r=Gr(p.parentNode))?Ar:p.parentNode,s=r?{bottom:Math.max(Gn.clientHeight,zn.innerHeight||0),right:Math.max(Gn.clientWidth,zn.innerWidth||0),left:0,top:0}:n.getBoundingClientRect(),u=c=0,z&&((h=n._gsMaxScrollY-n.scrollTop)<0?c=h:l>s.bottom-Z&&h?(Y=!0,c=Math.min(h,f*(1-Math.max(0,s.bottom-l)/Z)|0)):l<s.top+K&&n.scrollTop&&(Y=!0,c=-Math.min(n.scrollTop,f*(1-Math.max(0,l-s.top)/K)|0)),c&&(n.scrollTop+=c)),U&&((h=n._gsMaxScrollX-n.scrollLeft)<0?u=h:o>s.right-Q&&h?(Y=!0,u=Math.min(h,f*(1-Math.max(0,s.right-o)/Q)|0)):o<s.left+J&&n.scrollLeft&&(Y=!0,u=-Math.min(n.scrollLeft,f*(1-Math.max(0,o-s.left)/J)|0)),u&&(n.scrollLeft+=u)),r&&(u||c)&&(zn.scrollTo(n.scrollLeft,n.scrollTop),bt(G.pointerX+u,G.pointerY+c)),p=n}if(x){var m=G.x,g=G.y;H?(G.deltaX=m-parseFloat(it.rotation),G.rotation=m,it.rotation=m+"deg",it.renderTransform(1,it)):a?(z&&(G.deltaY=g-a.top(),a.top(g)),U&&(G.deltaX=m-a.left(),a.left(m))):N?(z&&(G.deltaY=g-parseFloat(it.y),it.y=g+"px"),U&&(G.deltaX=m-parseFloat(it.x),it.x=m+"px"),it.renderTransform(1,it)):(z&&(G.deltaY=g-parseFloat(e.style.top||0),e.style.top=g+"px"),U&&(G.deltaX=m-parseFloat(e.style.left||0),e.style.left=m+"px")),!d||i||I||(I=!0,!1===Zr(G,"drag","onDrag")&&(U&&(G.x-=G.deltaX),z&&(G.y-=G.deltaY),t(!0)),I=!1)}x=!1},lt=function(t,i){var n,r,s=G.x,o=G.y;e._gsap||(it=Un.core.getCache(e)),it.uncache&&Un.getProperty(e,"x"),N?(G.x=parseFloat(it.x),G.y=parseFloat(it.y)):H?G.x=G.rotation=parseFloat(it.rotation):a?(G.y=a.top(),G.x=a.left()):(G.y=parseFloat(e.style.top||(r=Yr(e))&&r.top)||0,G.x=parseFloat(e.style.left||(r||{}).left)||0),(w||k||S)&&!i&&(G.isDragging||G.isThrowing)&&(S&&(Pr.x=G.x,Pr.y=G.y,(n=S(Pr)).x!==G.x&&(G.x=n.x,x=!0),n.y!==G.y&&(G.y=n.y,x=!0)),w&&(n=w(G.x))!==G.x&&(G.x=n,H&&(G.rotation=n),x=!0),k&&((n=k(G.y))!==G.y&&(G.y=n),x=!0)),x&&ot(!0),t||(G.deltaX=G.x-s,G.deltaY=G.y-o,Zr(G,"throwupdate","onThrowUpdate"))},ut=function(t,e,i,n){return null==e&&(e=-xr),null==i&&(i=xr),hr(t)?function(r){var s=G.isPressed?1-G.edgeResistance:1;return t.call(G,r>i?i+(r-i)*s:r<e?e+(r-e)*s:r)*n}:vr(t)?function(n){for(var r,s,a=t.length,o=0,l=xr;--a>-1;)(s=(r=t[a])-n)<0&&(s=-s),s<l&&r>=e&&r<=i&&(o=a,l=s);return t[o]}:isNaN(t)?function(t){return t}:function(){return t*n}},ct=function(){var t,n,r,s;h=!1,a?(a.calibrate(),G.minX=m=-a.maxScrollLeft(),G.minY=y=-a.maxScrollTop(),G.maxX=f=G.maxY=g=0,h=!0):i.bounds&&(t=Jr(i.bounds,e.parentNode),H?(G.minX=m=t.left,G.maxX=f=t.left+t.width,G.minY=y=G.maxY=g=0):pr(i.bounds.maxX)&&pr(i.bounds.maxY)?(n=Jr(e,e.parentNode),G.minX=m=Math.round(rt(V,"px")+t.left-n.left-.5),G.minY=y=Math.round(rt(j,"px")+t.top-n.top-.5),G.maxX=f=Math.round(m+(t.width-n.width)),G.maxY=g=Math.round(y+(t.height-n.height))):(t=i.bounds,G.minX=m=t.minX,G.minY=y=t.minY,G.maxX=f=t.maxX,G.maxY=g=t.maxY),m>f&&(G.minX=f,G.maxX=f=m,m=G.minX),y>g&&(G.minY=g,G.maxY=g=y,y=G.minY),H&&(G.minRotation=m,G.maxRotation=f),h=!0),i.liveSnap&&(r=!0===i.liveSnap?i.snap||{}:i.liveSnap,s=vr(r)||hr(r),H?(w=ut(s?r:r.rotation,m,f,1),k=null):r.points?S=function(t,e,i,n,r,s,a){return s=s&&s<xr?s*s:xr,hr(t)?function(o){var l,u,c,h=G.isPressed?1-G.edgeResistance:1,d=o.x,p=o.y;return o.x=d=d>i?i+(d-i)*h:d<e?e+(d-e)*h:d,o.y=p=p>r?r+(p-r)*h:p<n?n+(p-n)*h:p,(l=t.call(G,o))!==o&&(o.x=l.x,o.y=l.y),1!==a&&(o.x*=a,o.y*=a),s<xr&&(u=o.x-d)*u+(c=o.y-p)*c>s&&(o.x=d,o.y=p),o}:vr(t)?function(e){for(var i,n,r,a,o=t.length,l=0,u=xr;--o>-1;)(a=(i=(r=t[o]).x-e.x)*i+(n=r.y-e.y)*n)<u&&(l=o,u=a);return u<=s?t[l]:e}:function(t){return t}}(s?r:r.points,m,f,y,g,r.radius,a?-1:1):(U&&(w=ut(s?r:r.x||r.left||r.scrollLeft,m,f,a?-1:1)),z&&(k=ut(s?r:r.y||r.top||r.scrollTop,y,g,a?-1:1))))},ht=function(){G.isThrowing=!1,Zr(G,"throwcomplete","onThrowComplete")},dt=function(){G.isThrowing=!1},pt=function(t,n){var r,s,o,l;t&&rr?(!0===t&&(r=i.snap||i.liveSnap||{},s=vr(r)||hr(r),t={resistance:(i.throwResistance||i.resistance||1e3)/(H?10:1)},H?t.rotation=is(G,s?r:r.rotation,f,m,1,n):(U&&(t[V]=is(G,s?r:r.points||r.x||r.left,f,m,a?-1:1,n||"x"===G.lockedAxis)),z&&(t[j]=is(G,s?r:r.points||r.y||r.top,g,y,a?-1:1,n||"y"===G.lockedAxis)),(r.points||vr(r)&&dr(r[0]))&&(t.linkedProps=V+","+j,t.radius=r.radius))),G.isThrowing=!0,l=isNaN(i.overshootTolerance)?1===i.edgeResistance?0:1-G.edgeResistance+.2:i.overshootTolerance,t.duration||(t.duration={max:Math.max(i.minDuration||0,"maxDuration"in i?i.maxDuration:2),min:isNaN(i.minDuration)?0===l||dr(t)&&t.resistance>1e3?0:.5:i.minDuration,overshoot:l}),G.tween=o=Un.to(a||e,{inertia:t,data:"_draggable",onComplete:ht,onInterrupt:dt,onUpdate:i.fastMode?Zr:lt,onUpdateParams:i.fastMode?[G,"onthrowupdate","onThrowUpdate"]:r&&r.radius?[!1,!0]:[]}),i.fastMode||(a&&(a._skip=!0),o.render(1e9,!0,!0),lt(!0,!0),G.endX=G.x,G.endY=G.y,H&&(G.endRotation=G.x),o.play(0),lt(!0,!0),a&&(a._skip=!1))):h&&G.applyBounds()},ft=function(t){var i,n=C;C=jn(e.parentNode,!0),t&&G.isPressed&&!C.equals(n||new Vn)&&(i=n.inverse().apply({x:o,y:l}),C.apply(i,i),o=i.x,l=i.y),C.equals(Tr)&&(C=null)},mt=function(){var t,i,n,r=1-G.edgeResistance,s=nt?Ur(st):0,d=nt?jr(st):0;ft(!1),ts.x=G.pointerX-s,ts.y=G.pointerY-d,C&&C.apply(ts,ts),o=ts.x,l=ts.y,x&&(bt(G.pointerX,G.pointerY),ot(!0)),R=jn(e),a?(ct(),c=a.top(),u=a.left()):(gt()?(lt(!0,!0),ct()):G.applyBounds(),H?(t=e.ownerSVGElement?[it.xOrigin-e.getBBox().x,it.yOrigin-e.getBBox().y]:(Yr(e)[gr]||"0 0").split(" "),b=G.rotationOrigin=jn(e).apply({x:parseFloat(t[0])||0,y:parseFloat(t[1])||0}),lt(!0,!0),i=G.pointerX-b.x-s,n=b.y-G.pointerY+d,u=G.x,c=G.y=Math.atan2(n,i)*br):(c=rt(j,"px"),u=rt(V,"px"))),h&&r&&(u>f?u=f+(u-f)/r:u<m&&(u=m-(m-u)/r),H||(c>g?c=g+(c-g)/r:c<y&&(c=y-(y-c)/r))),G.startX=u=yr(u),G.startY=c=yr(c)},gt=function(){return G.tween&&G.tween.isActive()},yt=function(){!$n.parentNode||gt()||G.isDragging||$n.parentNode.removeChild($n)},vt=function(t,r){var u;if(!s||G.isPressed||!t||!("mousedown"!==t.type&&"pointerdown"!==t.type||r)&&wr()-et<30&&tr[G.pointerEvent.type])F&&t&&s&&Nr(t);else{if(P=gt(),G.pointerEvent=t,tr[t.type]?(D=~t.type.indexOf("touch")?t.currentTarget||t.target:st,Rr(D,"touchend",xt),Rr(D,"touchmove",_t),Rr(D,"touchcancel",xt),Rr(st,"touchstart",Vr)):(D=null,Rr(st,"mousemove",_t)),M=null,ar&&D||(Rr(st,"mouseup",xt),t&&t.target&&Rr(t.target,"mouseup",xt)),E=tt.call(G,t.target)&&!1===i.dragClickables&&!r)return Rr(t.target,"change",xt),Zr(G,"pressInit","onPressInit"),Zr(G,"press","onPress"),rs(W,!0),void(F=!1);var c;if(A=!(!D||U===z||!1===G.vars.allowNativeTouchScrolling||G.vars.allowContextMenu&&t&&(t.ctrlKey||t.which>2))&&(U?"y":"x"),(F=!A&&!G.allowEventDefault)&&(Nr(t),Rr(zn,"touchforcechange",Nr)),t.changedTouches?(t=v=t.changedTouches[0],_=t.identifier):t.pointerId?_=t.pointerId:v=_=null,er++,c=ot,kr.push(c),1===kr.length&&Un.ticker.add(Lr),l=G.pointerY=t.pageY,o=G.pointerX=t.pageX,Zr(G,"pressInit","onPressInit"),(A||G.autoScroll)&&Xr(e.parentNode),!e.parentNode||!G.autoScroll||a||H||!e.parentNode._gsMaxScrollX||$n.parentNode||e.getBBox||($n.style.width=e.parentNode.scrollWidth+"px",e.parentNode.appendChild($n)),mt(),G.tween&&G.tween.kill(),G.isThrowing=!1,Un.killTweensOf(a||e,X,!0),a&&Un.killTweensOf(e,{scrollTo:1},!0),G.tween=G.lockedAxis=null,(i.zIndexBoost||!H&&!a&&!1!==i.zIndexBoost)&&(e.style.zIndex=n.zIndex++),G.isPressed=!0,d=!(!i.onDrag&&!G._listeners.drag),p=!(!i.onMove&&!G._listeners.move),!1!==i.cursor||i.activeCursor)for(u=W.length;--u>-1;)Un.set(W[u],{cursor:i.activeCursor||i.cursor||("grab"===sr?"grabbing":sr)});Zr(G,"press","onPress")}},_t=function(t){var i,n,r,a,u,c,h=t;if(s&&!ir&&G.isPressed&&t){if(G.pointerEvent=t,i=t.changedTouches){if((t=i[0])!==v&&t.identifier!==_){for(a=i.length;--a>-1&&(t=i[a]).identifier!==_&&t.target!==e;);if(a<0)return}}else if(t.pointerId&&_&&t.pointerId!==_)return;D&&A&&!M&&(ts.x=t.pageX-(nt?Ur(st):0),ts.y=t.pageY-(nt?jr(st):0),C&&C.apply(ts,ts),n=ts.x,r=ts.y,((u=Math.abs(n-o))!==(c=Math.abs(r-l))&&(u>q||c>q)||nr&&A===M)&&(M=u>c&&U?"x":"y",A&&M!==A&&Rr(zn,"touchforcechange",Nr),!1!==G.vars.lockAxisOnTouchScroll&&U&&z&&(G.lockedAxis="x"===M?"y":"x",hr(G.vars.onLockAxis)&&G.vars.onLockAxis.call(G,h)),nr&&A===M))?xt(h):(G.allowEventDefault||A&&(!M||A===M)||!1===h.cancelable?F&&(F=!1):(Nr(h),F=!0),G.autoScroll&&(Y=!0),bt(t.pageX,t.pageY,p))}else F&&t&&s&&Nr(t)},bt=function(t,e,i){var n,r,s,a,d,p,v=1-G.dragResistance,_=1-G.edgeResistance,T=G.pointerX,E=G.pointerY,D=c,P=G.x,A=G.y,M=G.endX,I=G.endY,L=G.endRotation,O=x;G.pointerX=t,G.pointerY=e,nt&&(t-=Ur(st),e-=jr(st)),H?(a=Math.atan2(b.y-e,t-b.x)*br,(d=G.y-a)>180?(c-=360,G.y=a):d<-180&&(c+=360,G.y=a),G.x!==u||Math.abs(c-a)>q?(G.y=a,s=u+(c-a)*v):s=u):(C&&(p=t*C.a+e*C.c+C.e,e=t*C.b+e*C.d+C.f,t=p),(r=e-l)<q&&r>-q&&(r=0),(n=t-o)<q&&n>-q&&(n=0),(G.lockAxis||G.lockedAxis)&&(n||r)&&((p=G.lockedAxis)||(G.lockedAxis=p=U&&Math.abs(n)>Math.abs(r)?"y":z?"x":null,p&&hr(G.vars.onLockAxis)&&G.vars.onLockAxis.call(G,G.pointerEvent)),"y"===p?r=0:"x"===p&&(n=0)),s=yr(u+n*v),a=yr(c+r*v)),(w||k||S)&&(G.x!==s||G.y!==a&&!H)&&(S&&(Pr.x=s,Pr.y=a,p=S(Pr),s=yr(p.x),a=yr(p.y)),w&&(s=yr(w(s))),k&&(a=yr(k(a)))),h&&(s>f?s=f+Math.round((s-f)*_):s<m&&(s=m+Math.round((s-m)*_)),H||(a>g?a=Math.round(g+(a-g)*_):a<y&&(a=Math.round(y+(a-y)*_)))),(G.x!==s||G.y!==a&&!H)&&(H?(G.endRotation=G.x=G.endX=s,x=!0):(z&&(G.y=G.endY=a,x=!0),U&&(G.x=G.endX=s,x=!0)),i&&!1===Zr(G,"move","onMove")?(G.pointerX=T,G.pointerY=E,c=D,G.x=P,G.y=A,G.endX=M,G.endY=I,G.endRotation=L,x=O):!G.isDragging&&G.isPressed&&(G.isDragging=!0,Zr(G,"dragstart","onDragStart")))},xt=function t(n,r){if(s&&G.isPressed&&(!n||null==_||r||!(n.pointerId&&n.pointerId!==_&&n.target!==e||n.changedTouches&&!function(t,e){for(var i=t.length;i--;)if(t[i].identifier===e)return!0}(n.changedTouches,_)))){G.isPressed=!1;var a,o,l,u,c,h=n,d=G.isDragging,p=G.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),f=Un.delayedCall(.001,yt);if(D?(Br(D,"touchend",t),Br(D,"touchmove",_t),Br(D,"touchcancel",t),Br(st,"touchstart",Vr)):Br(st,"mousemove",_t),Br(zn,"touchforcechange",Nr),ar&&D||(Br(st,"mouseup",t),n&&n.target&&Br(n.target,"mouseup",t)),x=!1,d&&($=Cr=wr(),G.isDragging=!1),E&&!p)return n&&(Br(n.target,"change",t),G.pointerEvent=h),rs(W,!1),Zr(G,"release","onRelease"),Zr(G,"click","onClick"),void(E=!1);for(Fr(ot),o=W.length;--o>-1;)$r(W[o],"cursor",i.cursor||(!1!==i.cursor?sr:null));if(er--,n){if((a=n.changedTouches)&&(n=a[0])!==v&&n.identifier!==_){for(o=a.length;--o>-1&&(n=a[o]).identifier!==_&&n.target!==e;);if(o<0)return}G.pointerEvent=h,G.pointerX=n.pageX,G.pointerY=n.pageY}return p&&h?(Nr(h),F=!0,Zr(G,"release","onRelease")):h&&!d?(F=!1,P&&(i.snap||i.bounds)&&pt(i.inertia||i.throwProps),Zr(G,"release","onRelease"),nr&&"touchmove"===h.type||-1!==h.type.indexOf("cancel")||(Zr(G,"click","onClick"),wr()-et<300&&Zr(G,"doubleclick","onDoubleClick"),u=h.target||e,et=wr(),c=function(){et===L||!G.enabled()||G.isPressed||h.defaultPrevented||(u.click?u.click():st.createEvent&&((l=st.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,zn,1,G.pointerEvent.screenX,G.pointerEvent.screenY,G.pointerX,G.pointerY,!1,!1,!1,!1,0,null),u.dispatchEvent(l)))},nr||h.defaultPrevented||Un.delayedCall(.05,c))):(pt(i.inertia||i.throwProps),G.allowEventDefault||!h||!1===i.dragClickables&&tt.call(G,h.target)||!d||A&&(!M||A!==M)||!1===h.cancelable?F=!1:(F=!0,Nr(h)),Zr(G,"release","onRelease")),gt()&&f.duration(G.tween.duration()),d&&Zr(G,"dragend","onDragEnd"),!0}F&&n&&s&&Nr(n)},Tt=function(t){if(t&&G.isDragging&&!a){var i=t.target||e.parentNode,n=i.scrollLeft-i._gsScrollX,r=i.scrollTop-i._gsScrollY;(n||r)&&(C?(o-=n*C.a+r*C.c,l-=r*C.d+n*C.b):(o-=n,l-=r),i._gsScrollX+=n,i._gsScrollY+=r,bt(G.pointerX,G.pointerY))}},wt=function(t){var e=wr(),i=e-et<100,n=e-$<50,r=i&&L===et,s=G.pointerEvent&&G.pointerEvent.defaultPrevented,a=i&&O===et,o=t.isTrusted||null==t.isTrusted&&i&&r;if((r||n&&!1!==G.vars.suppressClickOnDrag)&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),i&&(!G.pointerEvent||!G.pointerEvent.defaultPrevented)&&(!r||o&&!a))return o&&r&&(O=et),void(L=et);(G.isPressed||n||i)&&(o&&t.detail&&i&&!s||Nr(t)),i||n||(t&&t.target&&(G.pointerEvent=t),Zr(G,"click","onClick"))},kt=function(t){return C?{x:t.x*C.a+t.y*C.c+C.e,y:t.x*C.b+t.y*C.d+C.f}:{x:t.x,y:t.y}};return(T=n.get(e))&&T.kill(),r.startDrag=function(t,i){var n,r,s,a;vt(t||G.pointerEvent,!0),i&&!G.hitTest(t||G.pointerEvent)&&(n=Qr(t||G.pointerEvent),r=Qr(e),s=kt({x:n.left+n.width/2,y:n.top+n.height/2}),a=kt({x:r.left+r.width/2,y:r.top+r.height/2}),o-=s.x-a.x,l-=s.y-a.y),G.isDragging||(G.isDragging=!0,Zr(G,"dragstart","onDragStart"))},r.drag=_t,r.endDrag=function(t){return xt(t||G.pointerEvent,!0)},r.timeSinceDrag=function(){return G.isDragging?0:(wr()-$)/1e3},r.timeSinceClick=function(){return(wr()-et)/1e3},r.hitTest=function(t,e){return n.hitTest(G.target,t,e)},r.getDirection=function(t,i){var n,r,s,a,o,l,h="velocity"===t&&rr?t:dr(t)&&!H?"element":"start";return"element"===h&&(o=Qr(G.target),l=Qr(t)),n="start"===h?G.x-u:"velocity"===h?rr.getVelocity(e,V):o.left+o.width/2-(l.left+l.width/2),H?n<0?"counter-clockwise":"clockwise":(i=i||2,r="start"===h?G.y-c:"velocity"===h?rr.getVelocity(e,j):o.top+o.height/2-(l.top+l.height/2),a=(s=Math.abs(n/r))<1/i?"":n<0?"left":"right",s<i&&(""!==a&&(a+="-"),a+=r<0?"up":"down"),a)},r.applyBounds=function(t,n){var r,s,a,o,l,u;if(t&&i.bounds!==t)return i.bounds=t,G.update(!0,n);if(lt(!0),ct(),h&&!gt()){if(r=G.x,s=G.y,r>f?r=f:r<m&&(r=m),s>g?s=g:s<y&&(s=y),(G.x!==r||G.y!==s)&&(a=!0,G.x=G.endX=r,H?G.endRotation=r:G.y=G.endY=s,x=!0,ot(!0),G.autoScroll&&!G.isDragging))for(Xr(e.parentNode),o=e,Ar.scrollTop=null!=zn.pageYOffset?zn.pageYOffset:null!=st.documentElement.scrollTop?st.documentElement.scrollTop:st.body.scrollTop,Ar.scrollLeft=null!=zn.pageXOffset?zn.pageXOffset:null!=st.documentElement.scrollLeft?st.documentElement.scrollLeft:st.body.scrollLeft;o&&!u;)l=(u=Gr(o.parentNode))?Ar:o.parentNode,z&&l.scrollTop>l._gsMaxScrollY&&(l.scrollTop=l._gsMaxScrollY),U&&l.scrollLeft>l._gsMaxScrollX&&(l.scrollLeft=l._gsMaxScrollX),o=l;G.isThrowing&&(a||G.endX>f||G.endX<m||G.endY>g||G.endY<y)&&pt(i.inertia||i.throwProps,a)}return G},r.update=function(t,i,n){if(i&&G.isPressed){var r=jn(e),s=R.apply({x:G.x-u,y:G.y-c}),a=jn(e.parentNode,!0);a.apply({x:r.e-s.x,y:r.f-s.y},s),G.x-=s.x-a.e,G.y-=s.y-a.f,ot(!0),mt()}var o=G.x,l=G.y;return ft(!i),t?G.applyBounds():(x&&n&&ot(!0),lt(!0)),i&&(bt(G.pointerX,G.pointerY),x&&ot(!0)),G.isPressed&&!i&&(U&&Math.abs(o-G.x)>.01||z&&Math.abs(l-G.y)>.01&&!H)&&mt(),G.autoScroll&&(Xr(e.parentNode,G.isDragging),Y=G.isDragging,ot(!0),qr(e,Tt),zr(e,Tt)),G},r.enable=function(t){var n,r,o,l={lazy:!0};if(!1!==i.cursor&&(l.cursor=i.cursor||sr),Un.utils.checkPrefix("touchCallout")&&(l.touchCallout="none"),"soft"!==t){for(Ir(W,U===z?"none":i.allowNativeTouchScrolling&&e.scrollHeight===e.clientHeight==(e.scrollWidth===e.clientHeight)||i.allowEventDefault?"manipulation":U?"pan-y":"pan-x"),r=W.length;--r>-1;)o=W[r],ar||Rr(o,"mousedown",vt),Rr(o,"touchstart",vt),Rr(o,"click",wt,!0),Un.set(o,l),o.getBBox&&o.ownerSVGElement&&Un.set(o.ownerSVGElement,{touchAction:U===z?"none":i.allowNativeTouchScrolling||i.allowEventDefault?"manipulation":U?"pan-y":"pan-x"}),i.allowContextMenu||Rr(o,"contextmenu",at);rs(W,!1)}return zr(e,Tt),s=!0,rr&&"soft"!==t&&rr.track(a||e,N?"x,y":H?"rotation":"top,left"),e._gsDragID=n="d"+Er++,Sr[n]=G,a&&(a.enable(),a.element._gsDragID=n),(i.bounds||H)&&mt(),i.bounds&&G.applyBounds(),G},r.disable=function(t){for(var i,n=G.isDragging,r=W.length;--r>-1;)$r(W[r],"cursor",null);if("soft"!==t){for(Ir(W,null),r=W.length;--r>-1;)i=W[r],$r(i,"touchCallout",null),Br(i,"mousedown",vt),Br(i,"touchstart",vt),Br(i,"click",wt),Br(i,"contextmenu",at);rs(W,!0),D&&(Br(D,"touchcancel",xt),Br(D,"touchend",xt),Br(D,"touchmove",_t)),Br(st,"mouseup",xt),Br(st,"mousemove",_t)}return qr(e,Tt),s=!1,rr&&"soft"!==t&&rr.untrack(a||e,N?"x,y":H?"rotation":"top,left"),a&&a.disable(),Fr(ot),G.isDragging=G.isPressed=E=!1,n&&Zr(G,"dragend","onDragEnd"),G},r.enabled=function(t,e){return arguments.length?t?G.enable(e):G.disable(e):s},r.kill=function(){return G.isThrowing=!1,G.tween&&G.tween.kill(),G.disable(),Un.set(W,{clearProps:"userSelect"}),delete Sr[e._gsDragID],G},~B.indexOf("scroll")&&(a=r.scrollProxy=new as(e,function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t}({onKill:function(){G.isPressed&&xt(null)}},i)),e.style.overflowY=z&&!Jn?"auto":"hidden",e.style.overflowX=U&&!Jn?"auto":"hidden",e=a.content),H?X.rotation=1:(U&&(X[V]=1),z&&(X[j]=1)),it.force3D=!("force3D"in i)||i.force3D,r.enable(),r}return i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n.register=function(t){Un=t,os()},n.create=function(t,e){return Yn||os(!0),Qn(t).map((function(t){return new n(t,e)}))},n.get=function(t){return Sr[(Qn(t)[0]||{})._gsDragID]},n.timeSinceDrag=function(){return(wr()-Cr)/1e3},n.hitTest=function(t,e,i){if(t===e)return!1;var n,r,s,a=Qr(t),o=Qr(e),l=a.top,u=a.left,c=a.right,h=a.bottom,d=a.width,p=a.height,f=o.left>c||o.right<u||o.top>h||o.bottom<l;return f||!i?!f:(s=-1!==(i+"").indexOf("%"),i=parseFloat(i)||0,(n={left:Math.max(u,o.left),top:Math.max(l,o.top)}).width=Math.min(c,o.right)-n.left,n.height=Math.min(h,o.bottom)-n.top,!(n.width<0||n.height<0)&&(s?(i*=.01,(r=n.width*n.height)>=d*p*i||r>=o.width*o.height*i):n.width>i&&n.height>i))},n}(ls);!function(t,e){for(var i in e)i in t||(t[i]=e[i])}(us.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),us.zIndex=1e3,us.version="3.8.0",cr()&&Un.registerPlugin(us);var cs,hs,ds,ps,fs=function(){return"undefined"!=typeof window},ms=function(){return cs||fs()&&(cs=window.gsap)&&cs.registerPlugin&&cs},gs=function(){return hs||(ys(),ps||console.warn("Please gsap.registerPlugin(CSSPlugin, CSSRulePlugin)")),hs},ys=function(t){cs=t||ms(),fs()&&(window,ds=document),cs&&(ps=cs.plugins.css)&&(hs=1)},vs={version:"3.8.0",name:"cssRule",init:function(t,e,i,n,r){if(!gs()||void 0===t.cssText)return!1;var s=t._gsProxy=t._gsProxy||ds.createElement("div");this.ss=t,this.style=s.style,s.style.cssText=t.cssText,ps.prototype.init.call(this,s,e,i,n,r)},render:function(t,e){for(var i,n=e._pt,r=e.style,s=e.ss;n;)n.r(t,n.d),n=n._next;for(i=r.length;--i>-1;)s[r[i]]=r[r[i]]},getRule:function(t){gs();var e,i,n,r,s=ds.all?"rules":"cssRules",a=ds.styleSheets,o=a.length,l=":"===t.charAt(0);for(t=(l?"":",")+t.split("::").join(":").toLowerCase()+",",l&&(r=[]);o--;){try{if(!(i=a[o][s]))continue;e=i.length}catch(t){console.warn(t);continue}for(;--e>-1;)if((n=i[e]).selectorText&&-1!==(","+n.selectorText.split("::").join(":").toLowerCase()+",").indexOf(t)){if(!l)return n.style;r.push(n.style)}}return r},register:ys};ms()&&cs.registerPlugin(vs);var _s,bs,xs,Ts,ws,ks,Ss="redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier,redOffset,greenOffset,blueOffset,alphaOffset".split(","),Es=function(){return"undefined"!=typeof window},Ds=function(){return _s||Es()&&(_s=window.gsap)&&_s.registerPlugin&&_s},Cs=function(){return Ts||xs&&xs.createjs||xs||{}},Ps=function(t){return console.warn(t)},As=function(t){var e=t.getBounds&&t.getBounds();e||(e=t.nominalBounds||{x:0,y:0,width:100,height:100},t.setBounds&&t.setBounds(e.x,e.y,e.width,e.height)),t.cache&&t.cache(e.x,e.y,e.width,e.height),Ps("EaselPlugin: for filters to display in EaselJS, you must call the object's cache() method first. GSAP attempted to use the target's getBounds() for the cache but that may not be completely accurate. "+t)},Ms=function(t,e,i){ws||(ws=Cs().ColorFilter)||Ps("EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.");for(var n,r,s,a,o,l,u=t.filters||[],c=u.length;c--;)if(u[c]instanceof ws){r=u[c];break}if(r||(r=new ws,u.push(r),t.filters=u),s=r.clone(),null!=e.tint)n=_s.utils.splitColor(e.tint),a=null!=e.tintAmount?+e.tintAmount:1,s.redOffset=+n[0]*a,s.greenOffset=+n[1]*a,s.blueOffset=+n[2]*a,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-a;else for(o in e)"exposure"!==o&&"brightness"!==o&&(s[o]=+e[o]);for(null!=e.exposure?(s.redOffset=s.greenOffset=s.blueOffset=255*(+e.exposure-1),s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1):null!=e.brightness&&(a=+e.brightness-1,s.redOffset=s.greenOffset=s.blueOffset=a>0?255*a:0,s.redMultiplier=s.greenMultiplier=s.blueMultiplier=1-Math.abs(a)),c=8;c--;)r[o=Ss[c]]!==s[o]&&(l=i.add(r,o,r[o],s[o]))&&(l.op="easel_colorFilter");i._props.push("easel_colorFilter"),t.cacheID||As(t)},Is=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],Ls=.212671,Os=.71516,Fs=.072169,Rs=function(t,e){if(!(t instanceof Array&&e instanceof Array))return e;var i,n,r=[],s=0,a=0;for(i=0;i<4;i++){for(n=0;n<5;n++)a=4===n?t[s+4]:0,r[s+n]=t[s]*e[n]+t[s+1]*e[n+5]+t[s+2]*e[n+10]+t[s+3]*e[n+15]+a;s+=5}return r},Bs=function(t,e,i){ks||(ks=Cs().ColorMatrixFilter)||Ps("EaselPlugin: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.");for(var n,r,s,a,o=t.filters||[],l=o.length;--l>-1;)if(o[l]instanceof ks){s=o[l];break}for(s||(s=new ks(Is.slice()),o.push(s),t.filters=o),r=s.matrix,n=Is.slice(),null!=e.colorize&&(n=function(t,e,i){isNaN(i)&&(i=1);var n=_s.utils.splitColor(e),r=n[0]/255,s=n[1]/255,a=n[2]/255,o=1-i;return Rs([o+i*r*Ls,i*r*Os,i*r*Fs,0,0,i*s*Ls,o+i*s*Os,i*s*Fs,0,0,i*a*Ls,i*a*Os,o+i*a*Fs,0,0,0,0,0,1,0],t)}(n,e.colorize,Number(e.colorizeAmount))),null!=e.contrast&&(n=function(t,e){return isNaN(e)?t:Rs([e+=.01,0,0,0,128*(1-e),0,e,0,0,128*(1-e),0,0,e,0,128*(1-e),0,0,0,1,0],t)}(n,Number(e.contrast))),null!=e.hue&&(n=function(t,e){if(isNaN(e))return t;e*=Math.PI/180;var i=Math.cos(e),n=Math.sin(e);return Rs([Ls+i*(1-Ls)+n*-Ls,Os+i*-Os+n*-Os,Fs+i*-Fs+n*(1-Fs),0,0,Ls+i*-Ls+.143*n,Os+.28484*i+.14*n,Fs+i*-Fs+-.283*n,0,0,Ls+i*-Ls+-.787329*n,Os+i*-Os+n*Os,Fs+i*(1-Fs)+n*Fs,0,0,0,0,0,1,0,0,0,0,0,1],t)}(n,Number(e.hue))),null!=e.saturation&&(n=function(t,e){if(isNaN(e))return t;var i=1-e,n=i*Ls,r=i*Os,s=i*Fs;return Rs([n+e,r,s,0,0,n,r+e,s,0,0,n,r,s+e,0,0,0,0,0,1,0],t)}(n,Number(e.saturation))),l=n.length;--l>-1;)n[l]!==r[l]&&(a=i.add(r,l,r[l],n[l]))&&(a.op="easel_colorMatrixFilter");i._props.push("easel_colorMatrixFilter"),t.cacheID||As(),i._matrix=r},Ns=function(t){_s=t||Ds(),Es()&&(xs=window),_s&&(bs=1)},Hs={version:"3.8.0",name:"easel",init:function(t,e,i,n,r){var s,a,o,l,u,c,h;for(s in bs||(Ns(),_s||Ps("Please gsap.registerPlugin(EaselPlugin)")),this.target=t,e)if(u=e[s],"colorFilter"===s||"tint"===s||"tintAmount"===s||"exposure"===s||"brightness"===s)o||(Ms(t,e.colorFilter||e,this),o=!0);else if("saturation"===s||"contrast"===s||"hue"===s||"colorize"===s||"colorizeAmount"===s)l||(Bs(t,e.colorMatrixFilter||e,this),l=!0);else if("frame"===s){if("string"==typeof u&&"="!==u.charAt(1)&&(c=t.labels))for(h=0;h<c.length;h++)c[h].label===u&&(u=c[h].position);(a=this.add(t,"gotoAndStop",t.currentFrame,u,n,r,Math.round))&&(a.op=s)}else null!=t[s]&&this.add(t,s,"get",u)},render:function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next;e.target.cacheID&&e.target.updateCache()},register:Ns,registerCreateJS:function(t){Ts=t}};Ds()&&_s.registerPlugin(Hs);var Vs,js,Us=function(){return Vs||"undefined"!=typeof window&&(Vs=window.gsap)&&Vs.registerPlugin&&Vs},zs=function(t,e){return!!(void 0===t?e:t&&!~(t+"").indexOf("false"))},qs=function(t){if(Vs=t||Us()){js=Vs.registerEase;var e,i=Vs.parseEase(),n=function(t){return function(e){var i=.5+e/2;t.config=function(e){return t(2*(1-e)*e*i+e*e)}}};for(e in i)i[e].config||n(i[e]);for(e in js("slow",Ys),js("expoScale",Ks),js("rough",Qs),Zs)"version"!==e&&Vs.core.globals(e,Zs[e])}},Gs=function(t,e,i){var n=(t=Math.min(1,t||.7))<1?e||0===e?e:.7:0,r=(1-t)/2,s=r+t,a=zs(i);return function(t){var e=t+(.5-t)*n;return t<r?a?1-(t=1-t/r)*t:e-(t=1-t/r)*t*t*t*e:t>s?a?1===t?0:1-(t=(t-s)/r)*t:e+(t-e)*(t=(t-s)/r)*t*t*t:a?1:e}},Ws=function(t,e,i){var n=Math.log(e/t),r=e-t;return i&&(i=Vs.parseEase(i)),function(e){return(t*Math.exp(n*(i?i(e):e))-t)/r}},Xs=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},$s=function(t){"object"!=typeof t&&(t={points:+t||20});for(var e,i,n,r,s,a,o,l=t.taper||"none",u=[],c=0,h=0|(+t.points||20),d=h,p=zs(t.randomize,!0),f=zs(t.clamp),m=Vs?Vs.parseEase(t.template):0,g=.4*(+t.strength||1);--d>-1;)e=p?Math.random():1/h*d,i=m?m(e):e,n="none"===l?g:"out"===l?(r=1-e)*r*g:"in"===l?e*e*g:e<.5?(r=2*e)*r*.5*g:(r=2*(1-e))*r*.5*g,p?i+=Math.random()*n-.5*n:d%2?i+=.5*n:i-=.5*n,f&&(i>1?i=1:i<0&&(i=0)),u[c++]={x:e,y:i};for(u.sort((function(t,e){return t.x-e.x})),a=new Xs(1,1,null),d=h;d--;)s=u[d],a=new Xs(s.x,s.y,a);return o=new Xs(0,0,a.t?a:a.next),function(t){var e=o;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&t<=e.t;)e=e.prev;return o=e,e.v+(t-e.t)/e.gap*e.c}},Ys=Gs(.7);Ys.ease=Ys,Ys.config=Gs;var Ks=Ws(1,2);Ks.config=Ws;var Qs=$s();Qs.ease=Qs,Qs.config=$s;var Zs={SlowMo:Ys,RoughEase:Qs,ExpoScaleEase:Ks};for(var Js in Zs)Zs[Js].register=qs,Zs[Js].version="3.8.0";Us()&&Vs.registerPlugin(Ys);var ta,ea=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,ia=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,na=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,ra=/(^[#\.][a-z]|[a-y][a-z])/i,sa=Math.PI/180,aa=180/Math.PI,oa=Math.sin,la=Math.cos,ua=Math.abs,ca=Math.sqrt,ha=Math.atan2,da=1e8,pa=function(t){return"string"==typeof t},fa=function(t){return"number"==typeof t},ma={},ga={},ya=1e5,va=function(t){return Math.round((t+da)%1*ya)/ya||(t<0?0:1)},_a=function(t){return Math.round(t*ya)/ya||0},ba=function(t){return Math.round(1e10*t)/1e10||0},xa=function(t,e,i,n){var r=t[e],s=1===n?6:Oa(r,i,n);if(s&&s+i+2<r.length)return t.splice(e,0,r.slice(0,i+s+2)),r.splice(0,i+s),1},Ta=function(t,e,i){var n=t.length,r=~~(i*n);if(t[r]>e)for(;--r&&t[r]>e;);else for(;t[++r]<e&&r<n;);return r<n?r:n-1},wa=function(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e},ka=function(t,e){var i=t.length,n=t[i-1]||[],r=n.length;i&&e[0]===n[r-2]&&e[1]===n[r-1]&&(e=n.concat(e.slice(2)),i--),t[i]=e};function Sa(t){var e,i=(t=pa(t)&&ra.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return i&&(t=t.getAttribute("d"))?(i._gsPath||(i._gsPath={}),(e=i._gsPath[t])&&!e._dirty?e:i._gsPath[t]=Ha(t)):t?pa(t)?Ha(t):fa(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function Ea(t){for(var e=[],i=0;i<t.length;i++)e[i]=wa(t[i],t[i].slice(0));return wa(t,e)}function Da(t){var e,i=0;for(t.reverse();i<t.length;i+=2)e=t[i],t[i]=t[i+1],t[i+1]=e;t.reversed=!t.reversed}var Ca={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function Pa(t,e){var i,n,r,s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b,x,T,w,k=t.tagName.toLowerCase(),S=.552284749831;return"path"!==k&&t.getBBox?(o=function(t,e){var i,n=document.createElementNS("http://www.w3.org/2000/svg","path"),r=[].slice.call(t.attributes),s=r.length;for(e=","+e+",";--s>-1;)i=r[s].nodeName.toLowerCase(),e.indexOf(","+i+",")<0&&n.setAttributeNS(null,i,r[s].nodeValue);return n}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),w=function(t,e){for(var i=e?e.split(","):[],n={},r=i.length;--r>-1;)n[i[r]]=+t.getAttribute(i[r])||0;return n}(t,Ca[k]),"rect"===k?(s=w.rx,a=w.ry||s,n=w.x,r=w.y,h=w.width-2*s,d=w.height-2*a,i=s||a?"M"+(y=(m=(f=n+s)+h)+s)+","+(_=r+a)+" V"+(b=_+d)+" C"+[y,x=b+a*S,g=m+s*S,T=b+a,m,T,m-(m-f)/3,T,f+(m-f)/3,T,f,T,p=n+s*(1-S),T,n,x,n,b,n,b-(b-_)/3,n,_+(b-_)/3,n,_,n,v=r+a*(1-S),p,r,f,r,f+(m-f)/3,r,m-(m-f)/3,r,m,r,g,r,y,v,y,_].join(",")+"z":"M"+(n+h)+","+r+" v"+d+" h"+-h+" v"+-d+" h"+h+"z"):"circle"===k||"ellipse"===k?("circle"===k?u=(s=a=w.r)*S:(s=w.rx,u=(a=w.ry)*S),i="M"+((n=w.cx)+s)+","+(r=w.cy)+" C"+[n+s,r+u,n+(l=s*S),r+a,n,r+a,n-l,r+a,n-s,r+u,n-s,r,n-s,r-u,n-l,r-a,n,r-a,n+l,r-a,n+s,r-u,n+s,r].join(",")+"z"):"line"===k?i="M"+w.x1+","+w.y1+" L"+w.x2+","+w.y2:"polyline"!==k&&"polygon"!==k||(i="M"+(n=(c=(t.getAttribute("points")+"").match(ia)||[]).shift())+","+(r=c.shift())+" L"+c.join(","),"polygon"===k&&(i+=","+n+","+r+"z")),o.setAttribute("d",Wa(o._gsRawPath=Ha(i))),e&&t.parentNode&&(t.parentNode.insertBefore(o,t),t.parentNode.removeChild(t)),o):t}function Aa(t,e,i){var n,r=t[e],s=t[e+2],a=t[e+4];return r+=(s-r)*i,r+=((s+=(a-s)*i)-r)*i,n=s+(a+(t[e+6]-a)*i-s)*i-r,r=t[e+1],r+=((s=t[e+3])-r)*i,r+=((s+=((a=t[e+5])-s)*i)-r)*i,_a(ha(s+(a+(t[e+7]-a)*i-s)*i-r,n)*aa)}function Ma(t,e,i){i=void 0===i?1:ba(i)||0,e=ba(e)||0;var n=Math.max(0,~~(ua(i-e)-1e-8)),r=Ea(t);if(e>i&&(e=1-e,i=1-i,function(t,e){var i=t.length;for(t.reverse();i--;)t[i].reversed||Da(t[i])}(r),r.totalLength=0),e<0||i<0){var s=Math.abs(~~Math.min(e,i))+1;e+=s,i+=s}r.totalLength||La(r);var a,o,l,u,c,h,d,p,f=i>1,m=Fa(r,e,ma,!0),g=Fa(r,i,ga),y=g.segment,v=m.segment,_=g.segIndex,b=m.segIndex,x=g.i,T=m.i,w=b===_,k=x===T&&w;if(f||n){for(a=_<b||w&&x<T||k&&g.t<m.t,xa(r,b,T,m.t)&&(b++,a||(_++,k?(g.t=(g.t-m.t)/(1-m.t),x=0):w&&(x-=T))),1-(i-e)<1e-5?_=b-1:!g.t&&_?_--:xa(r,_,x,g.t)&&a&&b++,1===m.t&&(b=(b+1)%r.length),c=[],d=1+(h=r.length)*n,p=b,d+=(h-b+_)%h,u=0;u<d;u++)ka(c,r[p++%h]);r=c}else if(l=1===g.t?6:Oa(y,x,g.t),e!==i)for(o=Oa(v,T,k?m.t/g.t:m.t),w&&(l+=o),y.splice(x+l+2),(o||T)&&v.splice(0,T+o),u=r.length;u--;)(u<b||u>_)&&r.splice(u,1);else y.angle=Aa(y,x+l,0),m=y[x+=l],g=y[x+1],y.length=y.totalLength=0,y.totalPoints=r.totalPoints=8,y.push(m,g,m,g,m,g,m,g);return r.totalLength=0,r}function Ia(t,e,i){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var n,r,s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b=~~t.resolution||12,x=1/b,T=i?e+6*i+1:t.length,w=t[e],k=t[e+1],S=e?e/6*b:0,E=t.samples,D=t.lookup,C=(e?t.minLength:da)||da,P=E[S+i*b-1],A=e?E[S-1]:0;for(E.length=D.length=0,r=e+2;r<T;r+=6){if(s=t[r+4]-w,a=t[r+2]-w,o=t[r]-w,c=t[r+5]-k,h=t[r+3]-k,d=t[r+1]-k,l=u=p=f=0,ua(s)<.01&&ua(c)<.01&&ua(o)+ua(d)<.01)t.length>8&&(t.splice(r,6),r-=6,T-=6);else for(n=1;n<=b;n++)l=u-(u=((g=x*n)*g*s+3*(m=1-g)*(g*a+m*o))*g),p=f-(f=(g*g*c+3*m*(g*h+m*d))*g),(v=ca(p*p+l*l))<C&&(C=v),A+=v,E[S++]=A;w+=s,k+=c}if(P)for(P-=A;S<E.length;S++)E[S]+=P;if(E.length&&C){if(t.totalLength=_=E[E.length-1]||0,t.minLength=C,_/C<9999)for(v=y=0,n=0;n<_;n+=C)D[v++]=E[y]<n?++y:y}else t.totalLength=E[0]=0;return e?A-E[e/2-1]:A}function La(t,e){var i,n,r;for(r=i=n=0;r<t.length;r++)t[r].resolution=~~e||12,n+=t[r].length,i+=Ia(t[r]);return t.totalPoints=n,t.totalLength=i,t}function Oa(t,e,i){if(i<=0||i>=1)return 0;var n=t[e],r=t[e+1],s=t[e+2],a=t[e+3],o=t[e+4],l=t[e+5],u=n+(s-n)*i,c=s+(o-s)*i,h=r+(a-r)*i,d=a+(l-a)*i,p=u+(c-u)*i,f=h+(d-h)*i,m=o+(t[e+6]-o)*i,g=l+(t[e+7]-l)*i;return c+=(m-c)*i,d+=(g-d)*i,t.splice(e+2,4,_a(u),_a(h),_a(p),_a(f),_a(p+(c-p)*i),_a(f+(d-f)*i),_a(c),_a(d),_a(m),_a(g)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function Fa(t,e,i,n){i=i||{},t.totalLength||La(t),(e<0||e>1)&&(e=va(e));var r,s,a,o,l,u,c,h=0,d=t[0];if(e)if(1===e)c=1,u=(d=t[h=t.length-1]).length-8;else{if(t.length>1){for(a=t.totalLength*e,l=u=0;(l+=t[u++].totalLength)<a;)h=u;e=(a-(o=l-(d=t[h]).totalLength))/(l-o)||0}r=d.samples,s=d.resolution,a=d.totalLength*e,o=(u=d.lookup.length?d.lookup[~~(a/d.minLength)]||0:Ta(r,a,e))?r[u-1]:0,(l=r[u])<a&&(o=l,l=r[++u]),c=1/s*((a-o)/(l-o)+u%s),u=6*~~(u/s),n&&1===c&&(u+6<d.length?(u+=6,c=0):h+1<t.length&&(u=c=0,d=t[++h]))}else c=u=h=0,d=t[0];return i.t=c,i.i=u,i.path=t,i.segment=d,i.segIndex=h,i}function Ra(t,e,i,n){var r,s,a,o,l,u,c,h,d,p=t[0],f=n||{};if((e<0||e>1)&&(e=va(e)),t.length>1){for(a=t.totalLength*e,l=u=0;(l+=t[u++].totalLength)<a;)p=t[u];e=(a-(o=l-p.totalLength))/(l-o)||0}return r=p.samples,s=p.resolution,a=p.totalLength*e,o=(u=p.lookup.length?p.lookup[e<1?~~(a/p.minLength):p.lookup.length-1]||0:Ta(r,a,e))?r[u-1]:0,(l=r[u])<a&&(o=l,l=r[++u]),d=1-(c=1/s*((a-o)/(l-o)+u%s)||0),h=p[u=6*~~(u/s)],f.x=_a((c*c*(p[u+6]-h)+3*d*(c*(p[u+4]-h)+d*(p[u+2]-h)))*c+h),f.y=_a((c*c*(p[u+7]-(h=p[u+1]))+3*d*(c*(p[u+5]-h)+d*(p[u+3]-h)))*c+h),i&&(f.angle=p.totalLength?Aa(p,u,c>=1?1-1e-9:c||1e-9):p.angle||0),f}function Ba(t,e,i,n,r,s,a){for(var o,l,u,c,h,d=t.length;--d>-1;)for(l=(o=t[d]).length,u=0;u<l;u+=2)c=o[u],h=o[u+1],o[u]=c*e+h*n+s,o[u+1]=c*i+h*r+a;return t._dirty=1,t}function Na(t,e,i,n,r,s,a,o,l){if(t!==o||e!==l){i=ua(i),n=ua(n);var u=r%360*sa,c=la(u),h=oa(u),d=Math.PI,p=2*d,f=(t-o)/2,m=(e-l)/2,g=c*f+h*m,y=-h*f+c*m,v=g*g,_=y*y,b=v/(i*i)+_/(n*n);b>1&&(i=ca(b)*i,n=ca(b)*n);var x=i*i,T=n*n,w=(x*T-x*_-T*v)/(x*_+T*v);w<0&&(w=0);var k=(s===a?-1:1)*ca(w),S=k*(i*y/n),E=k*(-n*g/i),D=(t+o)/2+(c*S-h*E),C=(e+l)/2+(h*S+c*E),P=(g-S)/i,A=(y-E)/n,M=(-g-S)/i,I=(-y-E)/n,L=P*P+A*A,O=(A<0?-1:1)*Math.acos(P/ca(L)),F=(P*I-A*M<0?-1:1)*Math.acos((P*M+A*I)/ca(L*(M*M+I*I)));isNaN(F)&&(F=d),!a&&F>0?F-=p:a&&F<0&&(F+=p),O%=p,F%=p;var R,B=Math.ceil(ua(F)/(p/4)),N=[],H=F/B,V=4/3*oa(H/2)/(1+la(H/2)),j=c*i,U=h*i,z=h*-n,q=c*n;for(R=0;R<B;R++)g=la(r=O+R*H),y=oa(r),P=la(r+=H),A=oa(r),N.push(g-V*y,y+V*g,P+V*A,A-V*P,P,A);for(R=0;R<N.length;R+=2)g=N[R],y=N[R+1],N[R]=g*j+y*z+D,N[R+1]=g*U+y*q+C;return N[R-2]=o,N[R-1]=l,N}}function Ha(t){var e,i,n,r,s,a,o,l,u,c,h,d,p,f,m,g=(t+"").replace(na,(function(t){var e=+t;return e<1e-4&&e>-1e-4?0:e})).match(ea)||[],y=[],v=0,_=0,b=2/3,x=g.length,T=0,w="ERROR: malformed path: "+t,k=function(t,e,i,n){c=(i-t)/3,h=(n-e)/3,o.push(t+c,e+h,i-c,n-h,i,n)};if(!t||!isNaN(g[0])||isNaN(g[1]))return console.log(w),y;for(e=0;e<x;e++)if(p=s,isNaN(g[e])?a=(s=g[e].toUpperCase())!==g[e]:e--,n=+g[e+1],r=+g[e+2],a&&(n+=v,r+=_),e||(l=n,u=r),"M"===s)o&&(o.length<8?y.length-=1:T+=o.length),v=l=n,_=u=r,o=[n,r],y.push(o),e+=2,s="L";else if("C"===s)o||(o=[0,0]),a||(v=_=0),o.push(n,r,v+1*g[e+3],_+1*g[e+4],v+=1*g[e+5],_+=1*g[e+6]),e+=6;else if("S"===s)c=v,h=_,"C"!==p&&"S"!==p||(c+=v-o[o.length-4],h+=_-o[o.length-3]),a||(v=_=0),o.push(c,h,n,r,v+=1*g[e+3],_+=1*g[e+4]),e+=4;else if("Q"===s)c=v+(n-v)*b,h=_+(r-_)*b,a||(v=_=0),v+=1*g[e+3],_+=1*g[e+4],o.push(c,h,v+(n-v)*b,_+(r-_)*b,v,_),e+=4;else if("T"===s)c=v-o[o.length-4],h=_-o[o.length-3],o.push(v+c,_+h,n+(v+1.5*c-n)*b,r+(_+1.5*h-r)*b,v=n,_=r),e+=2;else if("H"===s)k(v,_,v=n,_),e+=1;else if("V"===s)k(v,_,v,_=n+(a?_-v:0)),e+=1;else if("L"===s||"Z"===s)"Z"===s&&(n=l,r=u,o.closed=!0),("L"===s||ua(v-n)>.5||ua(_-r)>.5)&&(k(v,_,n,r),"L"===s&&(e+=2)),v=n,_=r;else if("A"===s){if(f=g[e+4],m=g[e+5],c=g[e+6],h=g[e+7],i=7,f.length>1&&(f.length<3?(h=c,c=m,i--):(h=m,c=f.substr(2),i-=2),m=f.charAt(1),f=f.charAt(0)),d=Na(v,_,+g[e+1],+g[e+2],+g[e+3],+f,+m,(a?v:0)+1*c,(a?_:0)+1*h),e+=i,d)for(i=0;i<d.length;i++)o.push(d[i]);v=o[o.length-2],_=o[o.length-1]}else console.log(w);return(e=o.length)<6?(y.pop(),e=0):o[0]===o[e-2]&&o[1]===o[e-1]&&(o.closed=!0),y.totalPoints=T+e,y}function Va(t,e,i,n,r,s,a,o,l,u,c){var h,d=(t+i)/2,p=(e+n)/2,f=(i+r)/2,m=(n+s)/2,g=(r+a)/2,y=(s+o)/2,v=(d+f)/2,_=(p+m)/2,b=(f+g)/2,x=(m+y)/2,T=(v+b)/2,w=(_+x)/2,k=a-t,S=o-e,E=ua((i-a)*S-(n-o)*k),D=ua((r-a)*S-(s-o)*k);return u||(u=[t,e,a,o],c=2),u.splice(c||u.length-2,0,T,w),(E+D)*(E+D)>l*(k*k+S*S)&&(h=u.length,Va(t,e,d,p,v,_,T,w,l,u,c),Va(T,w,b,x,g,y,a,o,l,u,c+2+(u.length-h))),u}function ja(t,e){void 0===e&&(e=1);for(var i=t[0],n=0,r=[i,n],s=2;s<t.length;s+=2)r.push(i,n,t[s],n=(t[s]-i)*e/2,i=t[s],-n);return r}function Ua(t,e,i){ua(t[0]-t[2])<1e-4&&ua(t[1]-t[3])<1e-4&&(t=t.slice(2));var n,r,s,a,o,l,u,c,h,d,p,f,m,g,y=t.length-2,v=+t[0],_=+t[1],b=+t[2],x=+t[3],T=[v,_,v,_],w=b-v,k=x-_,S=Math.abs(t[y]-v)<.001&&Math.abs(t[y+1]-_)<.001;for(isNaN(i)&&(i=Math.PI/10),S&&(t.push(b,x),b=v,x=_,v=t[y-2],_=t[y-1],t.unshift(v,_),y+=4),e=e||0===e?+e:1,o=2;o<y;o+=2)n=v,r=_,v=b,_=x,b=+t[o+2],x=+t[o+3],v===b&&_===x||(f=(l=w)*l+(c=k)*c,m=(w=b-v)*w+(k=x-_)*k,g=(u=b-n)*u+(h=x-r)*h,p=(s=Math.acos((f+m-g)/ca(4*f*m)))/Math.PI*e,d=ca(f)*p,p*=ca(m),v===n&&_===r||(s>i?(a=ha(h,u),T.push(_a(v-la(a)*d),_a(_-oa(a)*d),_a(v),_a(_),_a(v+la(a)*p),_a(_+oa(a)*p))):(a=ha(c,l),T.push(_a(v-la(a)*d),_a(_-oa(a)*d)),a=ha(k,w),T.push(_a(v),_a(_),_a(v+la(a)*p),_a(_+oa(a)*p)))));return v!==b||_!==x||T.length<4?T.push(_a(b),_a(x),_a(b),_a(x)):T.length-=2,S&&(T.splice(0,6),T.length=T.length-6),T}function za(t,e,i,n,r){var s,a,o,l,u,c,h,d,p,f,m,g,y=n,v=t[e],_=t[e+1],b=t[i],x=t[i+1];for(a=e+2;a<i;a+=2)l=t[a],u=t[a+1],f=void 0,void 0,void 0,g=(p=x)-(h=_),((m=(d=b)-(c=v))||g)&&((f=((l-c)*m+(u-h)*g)/(m*m+g*g))>1?(c=d,h=p):f>0&&(c+=m*f,h+=g*f)),(o=Math.pow(l-c,2)+Math.pow(u-h,2))>y&&(s=a,y=o);y>n&&(s-e>2&&za(t,e,s,n,r),r.push(t[s],t[s+1]),i-s>2&&za(t,s,i,n,r))}function qa(t,e){var i,n,r,s,a,o,l,u=parseFloat(t[0]),c=parseFloat(t[1]),h=[u,c],d=t.length-2;for(e=Math.pow(e||1,2),i=2;i<d;i+=2)(s=u-(n=parseFloat(t[i])))*s+(a=c-(r=parseFloat(t[i+1])))*a>e&&(h.push(n,r),u=n,c=r);return h.push(parseFloat(t[d]),parseFloat(t[d+1])),za(h,0,l=h.length-2,e,o=[h[0],h[1]]),o.push(h[l],h[l+1]),o}function Ga(t,e,i,n,r,s,a,o,l,u,c,h,d,p){var f,m,g,y,v=(r-n)/s,_=0,b=n;for(ta=da;b<=r;)(f=(m=(y=1-b)*y*y*a+3*y*y*b*l+3*y*b*b*c+b*b*b*d-e)*m+(g=y*y*y*o+3*y*y*b*u+3*y*b*b*h+b*b*b*p-i)*g)<ta&&(ta=f,_=b),b+=v;return t>1?Ga(t-1,e,i,Math.max(_-v,0),Math.min(_+v,1),s,a,o,l,u,c,h,d,p):_}function Wa(t){fa(t[0])&&(t=[t]);var e,i,n,r,s="",a=t.length;for(i=0;i<a;i++){for(r=t[i],s+="M"+_a(r[0])+","+_a(r[1])+" C",e=r.length,n=2;n<e;n++)s+=_a(r[n++])+","+_a(r[n++])+" "+_a(r[n++])+","+_a(r[n++])+" "+_a(r[n++])+","+_a(r[n])+" ";r.closed&&(s+="z")}return s}var Xa,$a,Ya,Ka,Qa="x,translateX,left,marginLeft,xPercent".split(","),Za="y,translateY,top,marginTop,yPercent".split(","),Ja=Math.PI/180,to=function(t,e,i,n){for(var r=e.length,s=2===n?0:n,a=0;a<r;a++)t[s]=parseFloat(e[a][i]),2===n&&(t[s+1]=0),s+=2;return t},eo=function(t,e,i){return parseFloat(t._gsap.get(t,e,i||"px"))||0},io=function(t){var e,i=t[0],n=t[1];for(e=2;e<t.length;e+=2)i=t[e]+=i,n=t[e+1]+=n},no=function(t,e,i,n,r,s,a,o,l){return"cubic"===a.type?e=[e]:(!1!==a.fromCurrent&&e.unshift(eo(i,n,o),r?eo(i,r,l):0),a.relative&&io(e),e=[(r?Ua:ja)(e,a.curviness)]),e=s(lo(e,i,a)),uo(t,i,n,e,"x",o),r&&uo(t,i,r,e,"y",l),La(e,a.resolution||(0===a.curviness?20:12))},ro=function(t){return t},so=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,ao=function(t,e,i){var n,r=jn(t),s=0,a=0;return"svg"===(t.tagName+"").toLowerCase()?(n=t.viewBox.baseVal).width||(n={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):n=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(s=e.push?e[0]*(n?n.width:t.offsetWidth||0):e.x,a=e.push?e[1]*(n?n.height:t.offsetHeight||0):e.y),i.apply(s||a?r.apply({x:s,y:a}):{x:r.e,y:r.f})},oo=function(t,e,i,n){var r,s=jn(t.parentNode,!0,!0),a=s.clone().multiply(jn(e)),o=ao(t,i,s),l=ao(e,n,s),u=l.x,c=l.y;return a.e=a.f=0,"auto"===n&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(r=e.getAttribute("d").match(so)||[],u+=(r=a.apply({x:+r[0],y:+r[1]})).x,c+=r.y),(r||e.getBBox&&t.getBBox&&e.ownerSVGElement===t.ownerSVGElement)&&(u-=(r=a.apply(e.getBBox())).x,c-=r.y),a.e=u-o.x,a.f=c-o.y,a},lo=function(t,e,i){var n,r,s,a=i.align,o=i.matrix,l=i.offsetX,u=i.offsetY,c=i.alignOrigin,h=t[0][0],d=t[0][1],p=eo(e,"x"),f=eo(e,"y");return t&&t.length?(a&&("self"===a||(n=Ka(a)[0]||e)===e?Ba(t,1,0,0,1,p-h,f-d):(c&&!1!==c[2]?Xa.set(e,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[eo(e,"xPercent")/-100,eo(e,"yPercent")/-100],s=(r=oo(e,n,c,"auto")).apply({x:h,y:d}),Ba(t,r.a,r.b,r.c,r.d,p+r.e-(s.x-r.e),f+r.f-(s.y-r.f)))),o?Ba(t,o.a,o.b,o.c,o.d,o.e,o.f):(l||u)&&Ba(t,1,0,0,1,l||0,u||0),t):Sa("M0,0L0,0")},uo=function(t,e,i,n,r,s){var a=e._gsap,o=a.harness,l=o&&o.aliases&&o.aliases[i],u=l&&l.indexOf(",")<0?l:i,c=t._pt=new $a(t._pt,e,u,0,0,ro,0,a.set(e,u,t));c.u=Ya(a.get(e,u,s))||0,c.path=n,c.pp=r,t._props.push(u)},co={version:"3.8.0",name:"motionPath",register:function(t,e,i){Ya=(Xa=t).utils.getUnit,Ka=Xa.utils.toArray,$a=i},init:function(t,e){if(!Xa)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var i,n,r,s,a=[],o=e,l=o.path,u=o.autoRotate,c=o.unitX,h=o.unitY,d=o.x,p=o.y,f=l[0],m=(r=e.start,s="end"in e?e.end:1,function(t){return r||1!==s?Ma(t,r,s):t});if(this.rawPaths=a,this.target=t,(this.rotate=u||0===u)&&(this.rOffset=parseFloat(u)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=Ya(t._gsap.get(t,this.rProp))||0),Array.isArray(l)&&!("closed"in l)&&"number"!=typeof f){for(n in f)!d&&~Qa.indexOf(n)?d=n:!p&&~Za.indexOf(n)&&(p=n);for(n in d&&p?a.push(no(this,to(to([],l,d,0),l,p,1),t,d,p,m,e,c||Ya(l[0][d]),h||Ya(l[0][p]))):d=p=0,f)n!==d&&n!==p&&a.push(no(this,to([],l,n,2),t,n,0,m,e,Ya(l[0][n])))}else La(i=m(lo(Sa(e.path),t,e)),e.resolution),a.push(i),uo(this,t,e.x||"x",i,"x",e.unitX||"px"),uo(this,t,e.y||"y",i,"y",e.unitY||"px")},render:function(t,e){var i=e.rawPaths,n=i.length,r=e._pt;for(t>1?t=1:t<0&&(t=0);n--;)Ra(i[n],t,!n&&e.rotate,i[n]);for(;r;)r.set(r.t,r.p,r.path[r.pp]+r.u,r.d,t),r=r._next;e.rotate&&e.rSet(e.target,e.rProp,i[0].angle*(e.radians?Ja:1)+e.rOffset+e.ru,e,t)},getLength:function(t){return La(Sa(t)).totalLength},sliceRawPath:Ma,getRawPath:Sa,pointsToSegment:Ua,stringToRawPath:Ha,rawPathToString:Wa,transformRawPath:Ba,getGlobalMatrix:jn,getPositionOnPath:Ra,cacheRawPathMeasurements:La,convertToPath:function(t,e){return Ka(t).map((function(t){return Pa(t,!1!==e)}))},convertCoordinates:function(t,e,i){var n=jn(e,!0,!0).multiply(jn(t));return i?n.apply(i):n},getAlignMatrix:oo,getRelativePosition:function(t,e,i,n){var r=oo(t,e,i,n);return{x:r.e,y:r.f}},arrayToRawPath:function(t,e){var i=to(to([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&io(i),["cubic"===e.type?i:Ua(i,e.curviness)]}};(Xa||"undefined"!=typeof window&&(Xa=window.gsap)&&Xa.registerPlugin&&Xa)&&Xa.registerPlugin(co);var ho,po,fo,mo,go,yo,vo,_o,bo,xo=function(){return"undefined"!=typeof window},To=function(){return ho||xo()&&(ho=window.gsap)&&ho.registerPlugin&&ho},wo=function(t){return"function"==typeof t},ko=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],So=.212671,Eo=.71516,Do=.072169,Co=function(t,e){var i,n,r=[],s=0,a=0;for(i=0;i<4;i++){for(n=0;n<5;n++)a=4===n?t[s+4]:0,r[s+n]=t[s]*e[n]+t[s+1]*e[n+5]+t[s+2]*e[n+10]+t[s+3]*e[n+15]+a;s+=5}return r},Po=function(t,e){var i=1-e,n=i*So,r=i*Eo,s=i*Do;return Co([n+e,r,s,0,0,n,r+e,s,0,0,n,r,s+e,0,0,0,0,0,1,0],t)},Ao=function(t,e,i){var n=fo(e),r=n[0]/255,s=n[1]/255,a=n[2]/255,o=1-i;return Co([o+i*r*So,i*r*Eo,i*r*Do,0,0,i*s*So,o+i*s*Eo,i*s*Do,0,0,i*a*So,i*a*Eo,o+i*a*Do,0,0,0,0,0,1,0],t)},Mo=function(t,e){e*=Math.PI/180;var i=Math.cos(e),n=Math.sin(e);return Co([So+.787329*i+-.212671*n,Eo+-.71516*i+-.71516*n,Do+-.072169*i+.927831*n,0,0,So+-.212671*i+.143*n,Eo+.28484*i+.14*n,Do+-.072169*i+-.283*n,0,0,So+-.212671*i+-.787329*n,Eo+-.71516*i+n*Eo,Do+.927831*i+n*Do,0,0,0,0,0,1,0,0,0,0,0,1],t)},Io=function(t,e){return Co([e,0,0,0,.5*(1-e),0,e,0,0,.5*(1-e),0,0,e,0,.5*(1-e),0,0,0,1,0],t)},Lo=function(t,e){var i,n,r=mo.filters[e],s=t.filters||[],a=s.length;for(r||(n=e+" not found. PixiPlugin.registerPIXI(PIXI)",console.warn(n));--a>-1;)if(s[a]instanceof r)return s[a];return i=new r,"BlurFilter"===e&&(i.blur=0),s.push(i),t.filters=s,i},Oo=function(t,e,i,n){e.add(i,t,i[t],n[t]),e._props.push(t)},Fo=function(t,e){var i=new mo.filters.ColorMatrixFilter;return i.matrix=e,i.brightness(t,!0),i.matrix},Ro={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},Bo=function(t,e,i){var n,r,s,a=Lo(t,"ColorMatrixFilter"),o=t._gsColorMatrixFilter=t._gsColorMatrixFilter||function(t){var e,i={};for(e in t)i[e]=t[e];return i}(Ro),l=e.combineCMF&&!("colorMatrixFilter"in e&&!e.colorMatrixFilter);s=a.matrix,e.resolution&&(a.resolution=e.resolution),e.matrix&&e.matrix.length===s.length?(r=e.matrix,1!==o.contrast&&Oo("contrast",i,o,Ro),o.hue&&Oo("hue",i,o,Ro),1!==o.brightness&&Oo("brightness",i,o,Ro),o.colorizeAmount&&(Oo("colorize",i,o,Ro),Oo("colorizeAmount",i,o,Ro)),1!==o.saturation&&Oo("saturation",i,o,Ro)):(r=ko.slice(),null!=e.contrast?(r=Io(r,+e.contrast),Oo("contrast",i,o,e)):1!==o.contrast&&(l?r=Io(r,o.contrast):Oo("contrast",i,o,Ro)),null!=e.hue?(r=Mo(r,+e.hue),Oo("hue",i,o,e)):o.hue&&(l?r=Mo(r,o.hue):Oo("hue",i,o,Ro)),null!=e.brightness?(r=Fo(+e.brightness,r),Oo("brightness",i,o,e)):1!==o.brightness&&(l?r=Fo(o.brightness,r):Oo("brightness",i,o,Ro)),null!=e.colorize?(e.colorizeAmount="colorizeAmount"in e?+e.colorizeAmount:1,r=Ao(r,e.colorize,e.colorizeAmount),Oo("colorize",i,o,e),Oo("colorizeAmount",i,o,e)):o.colorizeAmount&&(l?r=Ao(r,o.colorize,o.colorizeAmount):(Oo("colorize",i,o,Ro),Oo("colorizeAmount",i,o,Ro))),null!=e.saturation?(r=Po(r,+e.saturation),Oo("saturation",i,o,e)):1!==o.saturation&&(l?r=Po(r,o.saturation):Oo("saturation",i,o,Ro))),n=r.length;for(;--n>-1;)r[n]!==s[n]&&i.add(s,n,s[n],r[n],"colorMatrixFilter");i._props.push("colorMatrixFilter")},No=function(t,e){var i=e.t,n=e.p,r=e.color;(0,e.set)(i,n,r[0]<<16|r[1]<<8|r[2])},Ho=function(t,e){var i=e.g;i&&(i.dirty++,i.clearDirty++)},Vo=function(t,e){e.t.visible=!!e.t.alpha},jo=function(t,e,i,n){var r=t[e],s=fo(wo(r)?t[e.indexOf("set")||!wo(t["get"+e.substr(3)])?e:"get"+e.substr(3)]():r),a=fo(i);n._pt=new go(n._pt,t,e,0,0,No,{t,p:e,color:s,set:yo(t,e)}),n.add(s,0,s[0],a[0]),n.add(s,1,s[1],a[1]),n.add(s,2,s[2],a[2])},Uo={tint:1,lineColor:1,fillColor:1},zo="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),qo={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},Go={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},Wo=Math.PI/180,Xo=function(t){return"string"==typeof t},$o=function(t){return Xo(t)&&"="===t.charAt(1)?t.substr(0,2)+parseFloat(t.substr(2))*Wo:t*Wo},Yo=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e5*(e.s+e.c*t))/1e5,e)},Ko=function(t,e,i,n,r,s){var a,o,l=360*(s?Wo:1),u=Xo(r),c=u&&"="===r.charAt(1)?+(r.charAt(0)+"1"):0,h=parseFloat(c?r.substr(2):r)*(s?Wo:1),d=c?h*c:h-n,p=n+d;return u&&("short"===(a=r.split("_")[1])&&(d%=l)!=d%(l/2)&&(d+=d<0?l:-l),"cw"===a&&d<0?d=(d+1e10*l)%l-~~(d/l)*l:"ccw"===a&&d>0&&(d=(d-1e10*l)%l-~~(d/l)*l)),t._pt=o=new go(t._pt,e,i,n,d,Yo),o.e=p,o},Qo=function(){xo()&&(po=window,ho=To(),mo=mo||po.PIXI,vo=mo&&mo.VERSION&&"4"===mo.VERSION.charAt(0),fo=function(t){return ho.utils.splitColor("0x"===(t+"").substr(0,2)?"#"+t.substr(2):t)})};for(_o=0;_o<zo.length;_o++)bo=zo[_o],qo[bo+"X"]=bo,qo[bo+"Y"]=bo;var Zo={version:"3.8.0",name:"pixi",register:function(t,e,i){ho=t,go=i,yo=e.getSetter,Qo()},registerPIXI:function(t){mo=t},init:function(t,e,i,n,r){if(mo||Qo(),!(mo&&t instanceof mo.DisplayObject))return console.warn(t,"is not a DisplayObject or PIXI was not found. PixiPlugin.registerPIXI(PIXI);"),!1;var s,a,o,l,u,c,h,d,p;for(c in e){if(s=qo[c],o=e[c],s)a=~c.charAt(c.length-1).toLowerCase().indexOf("x")?"x":"y",this.add(t[s],a,t[s][a],"skew"===s?$o(o):o);else if("scale"===c||"anchor"===c||"pivot"===c||"tileScale"===c)this.add(t[c],"x",t[c].x,o),this.add(t[c],"y",t[c].y,o);else if("rotation"===c||"angle"===c)Ko(this,t,c,t[c],o,"rotation"===c);else if(Go[c])l||(Bo(t,e.colorMatrixFilter||e,this),l=!0);else if("blur"===c||"blurX"===c||"blurY"===c||"blurPadding"===c){if(u=Lo(t,"BlurFilter"),this.add(u,c,u[c],o),0!==e.blurPadding)for(h=e.blurPadding||2*Math.max(u[c],o),d=t.filters.length;--d>-1;)t.filters[d].padding=Math.max(t.filters[d].padding,h)}else if(Uo[c])if(("lineColor"===c||"fillColor"===c)&&t instanceof mo.Graphics)for(p=(t.geometry||t).graphicsData,this._pt=new go(this._pt,t,c,0,0,Ho,{g:t.geometry||t}),d=p.length;--d>-1;)jo(vo?p[d]:p[d][c.substr(0,4)+"Style"],vo?c:"color",o,this);else jo(t,c,o,this);else"autoAlpha"===c?(this._pt=new go(this._pt,t,"visible",0,0,Vo),this.add(t,"alpha",t.alpha,o),this._props.push("alpha","visible")):"resolution"!==c&&this.add(t,c,"get",o);this._props.push(c)}}};To()&&ho.registerPlugin(Zo);var Jo,tl,el,il,nl,rl,sl,al=function(){return"undefined"!=typeof window},ol=function(){return Jo||al()&&(Jo=window.gsap)&&Jo.registerPlugin&&Jo},ll=function(t){return"string"==typeof t},ul=function(t){return"function"==typeof t},cl=function(t,e){var i="x"===e?"Width":"Height",n="scroll"+i,r="client"+i;return t===el||t===il||t===nl?Math.max(il[n],nl[n])-(el["inner"+i]||il[r]||nl[r]):t[n]-t["offset"+i]},hl=function(t,e){var i="scroll"+("x"===e?"Left":"Top");return t===el&&(null!=t.pageXOffset?i="page"+e.toUpperCase()+"Offset":t=null!=il[i]?il:nl),function(){return t[i]}},dl=function(t,e){if(!(t=rl(t)[0])||!t.getBoundingClientRect)return console.warn("scrollTo target doesn't exist. Using 0")||{x:0,y:0};var i=t.getBoundingClientRect(),n=!e||e===el||e===nl,r=n?{top:il.clientTop-(el.pageYOffset||il.scrollTop||nl.scrollTop||0),left:il.clientLeft-(el.pageXOffset||il.scrollLeft||nl.scrollLeft||0)}:e.getBoundingClientRect(),s={x:i.left-r.left,y:i.top-r.top};return!n&&e&&(s.x+=hl(e,"x")(),s.y+=hl(e,"y")()),s},pl=function(t,e,i,n,r){return isNaN(t)||"object"==typeof t?ll(t)&&"="===t.charAt(1)?parseFloat(t.substr(2))*("-"===t.charAt(0)?-1:1)+n-r:"max"===t?cl(e,i)-r:Math.min(cl(e,i),dl(t,e)[i]-r):parseFloat(t)-r},fl=function(){Jo=ol(),al()&&Jo&&document.body&&(el=window,nl=document.body,il=document.documentElement,rl=Jo.utils.toArray,Jo.config({autoKillThreshold:7}),sl=Jo.config(),tl=1)},ml={version:"3.8.0",name:"scrollTo",rawVars:1,register:function(t){Jo=t,fl()},init:function(t,e,i,n,r){tl||fl();var s=this,a=Jo.getProperty(t,"scrollSnapType");s.isWin=t===el,s.target=t,s.tween=i,e=function(t,e,i,n){if(ul(t)&&(t=t(e,i,n)),"object"!=typeof t)return ll(t)&&"max"!==t&&"="!==t.charAt(1)?{x:t,y:t}:{y:t};if(t.nodeType)return{y:t,x:t};var r,s={};for(r in t)s[r]="onAutoKill"!==r&&ul(t[r])?t[r](e,i,n):t[r];return s}(e,n,t,r),s.vars=e,s.autoKill=!!e.autoKill,s.getX=hl(t,"x"),s.getY=hl(t,"y"),s.x=s.xPrev=s.getX(),s.y=s.yPrev=s.getY(),a&&"none"!==a&&(s.snap=1,s.snapInline=t.style.scrollSnapType,t.style.scrollSnapType="none"),null!=e.x?(s.add(s,"x",s.x,pl(e.x,t,"x",s.x,e.offsetX||0),n,r),s._props.push("scrollTo_x")):s.skipX=1,null!=e.y?(s.add(s,"y",s.y,pl(e.y,t,"y",s.y,e.offsetY||0),n,r),s._props.push("scrollTo_y")):s.skipY=1},render:function(t,e){for(var i,n,r,s,a,o=e._pt,l=e.target,u=e.tween,c=e.autoKill,h=e.xPrev,d=e.yPrev,p=e.isWin,f=e.snap,m=e.snapInline;o;)o.r(t,o.d),o=o._next;i=p||!e.skipX?e.getX():h,r=(n=p||!e.skipY?e.getY():d)-d,s=i-h,a=sl.autoKillThreshold,e.x<0&&(e.x=0),e.y<0&&(e.y=0),c&&(!e.skipX&&(s>a||s<-a)&&i<cl(l,"x")&&(e.skipX=1),!e.skipY&&(r>a||r<-a)&&n<cl(l,"y")&&(e.skipY=1),e.skipX&&e.skipY&&(u.kill(),e.vars.onAutoKill&&e.vars.onAutoKill.apply(u,e.vars.onAutoKillParams||[]))),p?el.scrollTo(e.skipX?i:e.x,e.skipY?n:e.y):(e.skipY||(l.scrollTop=e.y),e.skipX||(l.scrollLeft=e.x)),!f||1!==t&&0!==t||(n=l.scrollTop,i=l.scrollLeft,m?l.style.scrollSnapType=m:l.style.removeProperty("scroll-snap-type"),l.scrollTop=n+1,l.scrollLeft=i+1,l.scrollTop=n,l.scrollLeft=i),e.xPrev=e.x,e.yPrev=e.y},kill:function(t){var e="scrollTo"===t;(e||"scrollTo_x"===t)&&(this.skipX=1),(e||"scrollTo_y"===t)&&(this.skipY=1)}};ml.max=cl,ml.getOffset=dl,ml.buildGetter=hl,ol()&&Jo.registerPlugin(ml);var gl,yl,vl,_l,bl,xl,Tl,wl,kl,Sl,El,Dl,Cl,Pl,Al,Ml,Il,Ll,Ol,Fl,Rl,Bl,Nl,Hl,Vl,jl,Ul,zl,ql=1,Gl=[],Wl=[],Xl=Date.now,$l=Xl(),Yl=0,Kl=1,Ql=function(t){return t},Zl=function(t){return El(t)[0]||(lu(t)?console.warn("Element not found:",t):null)},Jl=function(t){return Math.round(1e5*t)/1e5||0},tu=function(){return"undefined"!=typeof window},eu=function(){return gl||tu()&&(gl=window.gsap)&&gl.registerPlugin&&gl},iu=function(t){return!!~Tl.indexOf(t)},nu=function(t,e){return~Gl.indexOf(t)&&Gl[Gl.indexOf(t)+1][e]},ru=function(t,e){var i=e.s,n=e.sc,r=Wl.indexOf(t),s=n===Fu.sc?1:2;return!~r&&(r=Wl.push(t)-1),Wl[r+s]||(Wl[r+s]=nu(t,i)||(iu(t)?n:function(e){return arguments.length?t[i]=e:t[i]}))},su=function(t){return nu(t,"getBoundingClientRect")||(iu(t)?function(){return Tc.width=vl.innerWidth,Tc.height=vl.innerHeight,Tc}:function(){return Nu(t)})},au=function(t,e){var i=e.s,n=e.d2,r=e.d,s=e.a;return(i="scroll"+n)&&(s=nu(t,i))?s()-su(t)()[r]:iu(t)?(xl[i]||bl[i])-(vl["inner"+n]||bl["client"+n]||xl["client"+n]):t[i]-t["offset"+n]},ou=function(t,e){for(var i=0;i<Rl.length;i+=3)(!e||~e.indexOf(Rl[i+1]))&&t(Rl[i],Rl[i+1],Rl[i+2])},lu=function(t){return"string"==typeof t},uu=function(t){return"function"==typeof t},cu=function(t){return"number"==typeof t},hu=function(t){return"object"==typeof t},du=function(t){return uu(t)&&t()},pu=function(t,e){return function(){var i=du(t),n=du(e);return function(){du(i),du(n)}}},fu=function(t,e,i){return t&&t.progress(e?0:1)&&i&&t.pause()},mu=function(t,e){var i=e(t);i&&i.totalTime&&(t.callbackAnimation=i)},gu=Math.abs,yu="scrollLeft",vu="scrollTop",_u="left",bu="top",xu="right",Tu="bottom",wu="width",ku="height",Su="Right",Eu="Left",Du="Top",Cu="Bottom",Pu="padding",Au="margin",Mu="Width",Iu="Height",Lu="px",Ou={s:yu,p:_u,p2:Eu,os:xu,os2:Su,d:wu,d2:Mu,a:"x",sc:function(t){return arguments.length?vl.scrollTo(t,Fu.sc()):vl.pageXOffset||_l[yu]||bl[yu]||xl[yu]||0}},Fu={s:vu,p:bu,p2:Du,os:Tu,os2:Cu,d:ku,d2:Iu,a:"y",op:Ou,sc:function(t){return arguments.length?vl.scrollTo(Ou.sc(),t):vl.pageYOffset||_l[vu]||bl[vu]||xl[vu]||0}},Ru=function(t){return vl.getComputedStyle(t)},Bu=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},Nu=function(t,e){var i=e&&"matrix(1, 0, 0, 1, 0, 0)"!==Ru(t)[Il]&&gl.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return i&&i.progress(0).kill(),n},Hu=function(t,e){var i=e.d2;return t["offset"+i]||t["client"+i]||0},Vu=function(t){var e,i=[],n=t.labels,r=t.duration();for(e in n)i.push(n[e]/r);return i},ju=function(t){var e=gl.utils.snap(t),i=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return i?function(t,n){var r;if(!n)return e(t);if(n>0){for(t-=1e-4,r=0;r<i.length;r++)if(i[r]>=t)return i[r];return i[r-1]}for(r=i.length,t+=1e-4;r--;)if(i[r]<=t)return i[r];return i[0]}:function(i,n){var r=e(i);return!n||Math.abs(r-i)<.001||r-i<0==n<0?r:e(n<0?i-t:i+t)}},Uu=function(t,e,i,n){return i.split(",").forEach((function(i){return t(e,i,n)}))},zu=function(t,e,i){return t.addEventListener(e,i,{passive:!0})},qu=function(t,e,i){return t.removeEventListener(e,i)},Gu={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Wu={toggleActions:"play",anticipatePin:0},Xu={top:0,left:0,center:.5,bottom:1,right:1},$u=function(t,e){if(lu(t)){var i=t.indexOf("="),n=~i?+(t.charAt(i-1)+1)*parseFloat(t.substr(i+1)):0;~i&&(t.indexOf("%")>i&&(n*=e/100),t=t.substr(0,i-1)),t=n+(t in Xu?Xu[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Yu=function(t,e,i,n,r,s,a,o){var l=r.startColor,u=r.endColor,c=r.fontSize,h=r.indent,d=r.fontWeight,p=_l.createElement("div"),f=iu(i)||"fixed"===nu(i,"pinType"),m=-1!==t.indexOf("scroller"),g=f?xl:i,y=-1!==t.indexOf("start"),v=y?l:u,_="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return _+="position:"+((m||o)&&f?"fixed;":"absolute;"),(m||o||!f)&&(_+=(n===Fu?xu:Tu)+":"+(s+parseFloat(h))+"px;"),a&&(_+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=y,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=_,p.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+n.op.d2],Ku(p,0,n,y),p},Ku=function(t,e,i,n){var r={display:"block"},s=i[n?"os2":"p2"],a=i[n?"p2":"os2"];t._isFlipped=n,r[i.a+"Percent"]=n?-100:0,r[i.a]=n?"1px":0,r["border"+s+Mu]=1,r["border"+a+Mu]=0,r[i.p]=e+"px",gl.set(t,r)},Qu=[],Zu={},Ju=function(){return Xl()-Yl>20&&mc()},tc=function(){var t=Xl();Yl!==t?(mc(),Yl||oc("scrollStart"),Yl=t):Sl||(Sl=kl(mc))},ec=function(){return!Al&&!Hl&&!_l.fullscreenElement&&wl.restart(!0)},ic={},nc=[],rc=[],sc=function(t){var e,i=gl.ticker.frame,n=[],r=0;if(Ul!==i||ql){for(cc();r<rc.length;r+=4)(e=vl.matchMedia(rc[r]).matches)!==rc[r+3]&&(rc[r+3]=e,e?n.push(r):cc(1,rc[r])||uu(rc[r+2])&&rc[r+2]());for(uc(),r=0;r<n.length;r++)e=n[r],jl=rc[e],rc[e+2]=rc[e+1](t);jl=0,yl&&dc(0,1),Ul=i,oc("matchMedia")}},ac=function t(){return qu(Dc,"scrollEnd",t)||dc(!0)},oc=function(t){return ic[t]&&ic[t].map((function(t){return t()}))||nc},lc=[],uc=function(t){for(var e=0;e<lc.length;e+=5)t&&lc[e+4]!==t||(lc[e].style.cssText=lc[e+1],lc[e].getBBox&&lc[e].setAttribute("transform",lc[e+2]||""),lc[e+3].uncache=1)},cc=function(t,e){var i;for(Ll=0;Ll<Qu.length;Ll++)i=Qu[Ll],e&&i.media!==e||(t?i.kill(1):i.revert());e&&uc(e),e||oc("revert")},hc=function(){return Wl.forEach((function(t){return"function"==typeof t&&(t.rec=0)}))},dc=function(t,e){if(!Yl||t){zl=!0;var i=oc("refreshInit");Bl&&Dc.sort(),e||cc(),Qu.forEach((function(t){return t.refresh()})),i.forEach((function(t){return t&&t.render&&t.render(-1)})),hc(),wl.pause(),zl=!1,oc("refresh")}else zu(Dc,"scrollEnd",ac)},pc=0,fc=1,mc=function(){if(!zl){var t=Qu.length,e=Xl(),i=e-$l>=50,n=t&&Qu[0].scroll();if(fc=pc>n?-1:1,pc=n,i&&(Yl&&!Ml&&e-Yl>200&&(Yl=0,oc("scrollEnd")),Cl=$l,$l=e),fc<0){for(Ll=t;Ll-- >0;)Qu[Ll]&&Qu[Ll].update(0,i);fc=1}else for(Ll=0;Ll<t;Ll++)Qu[Ll]&&Qu[Ll].update(0,i);Sl=0}},gc=[_u,bu,Tu,xu,Au+Cu,Au+Su,Au+Du,Au+Eu,"display","flexShrink","float","zIndex","grid-column-start","grid-column-end","grid-row-start","grid-row-end","grid-area","justify-self","align-self","place-self"],yc=gc.concat([wu,ku,"boxSizing","max"+Mu,"max"+Iu,"position",Au,Pu,Pu+Du,Pu+Su,Pu+Cu,Pu+Eu]),vc=function(t,e,i,n){if(t.parentNode!==e){for(var r,s=gc.length,a=e.style,o=t.style;s--;)a[r=gc[s]]=i[r];a.position="absolute"===i.position?"absolute":"relative","inline"===i.display&&(a.display="inline-block"),o[Tu]=o[xu]="auto",a.overflow="visible",a.boxSizing="border-box",a[wu]=Hu(t,Ou)+Lu,a[ku]=Hu(t,Fu)+Lu,a[Pu]=o[Au]=o[bu]=o[_u]="0",bc(n),o[wu]=o["max"+Mu]=i[wu],o[ku]=o["max"+Iu]=i[ku],o[Pu]=i[Pu],t.parentNode.insertBefore(e,t),e.appendChild(t)}},_c=/([A-Z])/g,bc=function(t){if(t){var e,i,n=t.t.style,r=t.length,s=0;for((t.t._gsap||gl.core.getCache(t.t)).uncache=1;s<r;s+=2)i=t[s+1],e=t[s],i?n[e]=i:n[e]&&n.removeProperty(e.replace(_c,"-$1").toLowerCase())}},xc=function(t){for(var e=yc.length,i=t.style,n=[],r=0;r<e;r++)n.push(yc[r],i[yc[r]]);return n.t=t,n},Tc={left:0,top:0},wc=function(t,e,i,n,r,s,a,o,l,u,c,h,d){uu(t)&&(t=t(o)),lu(t)&&"max"===t.substr(0,3)&&(t=h+("="===t.charAt(4)?$u("0"+t.substr(3),i):0));var p,f,m,g=d?d.time():0;if(d&&d.seek(0),cu(t))a&&Ku(a,i,n,!0);else{uu(e)&&(e=e(o));var y,v,_,b,x=t.split(" ");m=Zl(e)||xl,(y=Nu(m)||{})&&(y.left||y.top)||"none"!==Ru(m).display||(b=m.style.display,m.style.display="block",y=Nu(m),b?m.style.display=b:m.style.removeProperty("display")),v=$u(x[0],y[n.d]),_=$u(x[1]||"0",i),t=y[n.p]-l[n.p]-u+v+r-_,a&&Ku(a,_,n,i-_<20||a._isStart&&_>20),i-=i-_}if(s){var T=t+i,w=s._isStart;p="scroll"+n.d2,Ku(s,T,n,w&&T>20||!w&&(c?Math.max(xl[p],bl[p]):s.parentNode[p])<=T+1),c&&(l=Nu(a),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+Lu))}return d&&m&&(p=Nu(m),d.seek(h),f=Nu(m),d._caScrollDist=p[n.p]-f[n.p],t=t/d._caScrollDist*h),d&&d.seek(g),d?t:Math.round(t)},kc=/(?:webkit|moz|length|cssText|inset)/i,Sc=function(t,e,i,n){if(t.parentNode!==e){var r,s,a=t.style;if(e===xl){for(r in t._stOrig=a.cssText,s=Ru(t))+r||kc.test(r)||!s[r]||"string"!=typeof a[r]||"0"===r||(a[r]=s[r]);a.top=i,a.left=n}else a.cssText=t._stOrig;gl.core.getCache(t).uncache=1,e.appendChild(t)}},Ec=function(t,e){var i,n,r=ru(t,e),s="_scroll"+e.p2,a=function e(a,o,l,u,c){var h=e.tween,d=o.onComplete,p={};return h&&h.kill(),i=Math.round(l),o[s]=a,o.modifiers=p,p[s]=function(t){return(t=Jl(r()))!==i&&t!==n&&Math.abs(t-i)>2?(h.kill(),e.tween=0):t=l+u*h.ratio+c*h.ratio*h.ratio,n=i,i=Jl(t)},o.onComplete=function(){e.tween=0,d&&d.call(h)},h=e.tween=gl.to(t,o)};return t[s]=r,t.addEventListener("wheel",(function(){return a.tween&&a.tween.kill()&&(a.tween=0)}),{passive:!0}),a};Ou.op=Fu;var Dc=function(){function t(e,i){yl||t.register(gl)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),this.init(e,i)}return t.prototype.init=function(e,i){if(this.progress=this.start=0,this.vars&&this.kill(1),Kl){var n,r,s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b,x,T,w,k,S,E,D,C,P,A,M,I,L,O,F,R,B,N,H,V,j,U,z=e=Bu(lu(e)||cu(e)||e.nodeType?{trigger:e}:e,Wu),q=z.onUpdate,G=z.toggleClass,W=z.id,X=z.onToggle,$=z.onRefresh,Y=z.scrub,K=z.trigger,Q=z.pin,Z=z.pinSpacing,J=z.invalidateOnRefresh,tt=z.anticipatePin,et=z.onScrubComplete,it=z.onSnapComplete,nt=z.once,rt=z.snap,st=z.pinReparent,at=z.pinSpacer,ot=z.containerAnimation,lt=z.fastScrollEnd,ut=z.preventOverlaps,ct=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Ou:Fu,ht=!Y&&0!==Y,dt=Zl(e.scroller||vl),pt=gl.core.getCache(dt),ft=iu(dt),mt="fixed"===("pinType"in e?e.pinType:nu(dt,"pinType")||ft&&"fixed"),gt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=ht&&e.toggleActions.split(" "),vt="markers"in e?e.markers:Wu.markers,_t=ft?0:parseFloat(Ru(dt)["border"+ct.p2+Mu])||0,bt=this,xt=e.onRefreshInit&&function(){return e.onRefreshInit(bt)},Tt=function(t,e,i){var n=i.d,r=i.d2,s=i.a;return(s=nu(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?vl["inner"+r]:t["client"+r])||0}}(dt,ft,ct),wt=function(t,e){return!e||~Gl.indexOf(t)?su(t):function(){return Tc}}(dt,ft),kt=0,St=ru(dt,ct);if(bt.media=jl,tt*=45,bt.scroller=dt,bt.scroll=ot?ot.time.bind(ot):St,a=St(),bt.vars=e,i=i||e.animation,"refreshPriority"in e&&(Bl=1),pt.tweenScroll=pt.tweenScroll||{top:Ec(dt,Fu),left:Ec(dt,Ou)},bt.tweenTo=n=pt.tweenScroll[ct.p],i&&(i.vars.lazy=!1,i._initted||!1!==i.vars.immediateRender&&!1!==e.immediateRender&&i.render(0,!0,!0),bt.animation=i.pause(),i.scrollTrigger=bt,(L=cu(Y)&&Y)&&(I=gl.to(i,{ease:"power3",duration:L,onComplete:function(){return et&&et(bt)}})),A=0,W||(W=i.vars.id)),Qu.push(bt),rt&&(hu(rt)&&!rt.push||(rt={snapTo:rt}),"scrollBehavior"in xl.style&&gl.set(ft?[xl,bl]:dt,{scrollBehavior:"auto"}),s=uu(rt.snapTo)?rt.snapTo:"labels"===rt.snapTo?function(t){return function(e){return gl.utils.snap(Vu(t),e)}}(i):"labelsDirectional"===rt.snapTo?(V=i,function(t,e){return ju(Vu(V))(t,e.direction)}):!1!==rt.directional?function(t,e){return ju(rt.snapTo)(t,e.direction)}:gl.utils.snap(rt.snapTo),O=rt.duration||{min:.1,max:2},O=hu(O)?Dl(O.min,O.max):Dl(O,O),F=gl.delayedCall(rt.delay||L/2||.1,(function(){if(Math.abs(bt.getVelocity())<10&&!Ml&&kt!==St()){var t=i&&!ht?i.totalProgress():bt.progress,e=(t-M)/(Xl()-Cl)*1e3||0,r=gl.utils.clamp(-bt.progress,1-bt.progress,gu(e/2)*e/.185),a=bt.progress+(!1===rt.inertia?0:r),o=Dl(0,1,s(a,bt)),c=St(),h=Math.round(l+o*m),d=rt,p=d.onStart,f=d.onInterrupt,g=d.onComplete,y=n.tween;if(c<=u&&c>=l&&h!==c){if(y&&!y._initted&&y.data<=gu(h-c))return;!1===rt.inertia&&(r=o-bt.progress),n(h,{duration:O(gu(.185*Math.max(gu(a-t),gu(o-t))/e/.05||0)),ease:rt.ease||"power3",data:gu(h-c),onInterrupt:function(){return F.restart(!0)&&f&&f(bt)},onComplete:function(){kt=St(),A=M=i&&!ht?i.totalProgress():bt.progress,it&&it(bt),g&&g(bt)}},c,r*m,h-c-r*m),p&&p(bt,n.tween)}}else bt.isActive&&F.restart(!0)})).pause()),W&&(Zu[W]=bt),K=bt.trigger=Zl(K||Q),Q=!0===Q?K:Zl(Q),lu(G)&&(G={targets:K,className:G}),Q&&(!1===Z||Z===Au||(Z=!(!Z&&"flex"===Ru(Q.parentNode).display)&&Pu),bt.pin=Q,!1!==e.force3D&&gl.set(Q,{force3D:!0}),(r=gl.core.getCache(Q)).spacer?g=r.pinState:(at&&((at=Zl(at))&&!at.nodeType&&(at=at.current||at.nativeElement),r.spacerIsNative=!!at,at&&(r.spacerState=xc(at))),r.spacer=_=at||_l.createElement("div"),_.classList.add("pin-spacer"),W&&_.classList.add("pin-spacer-"+W),r.pinState=g=xc(Q)),bt.spacer=_=r.spacer,P=Ru(Q),S=P[Z+ct.os2],x=gl.getProperty(Q),T=gl.quickSetter(Q,ct.a,Lu),vc(Q,_,P),v=xc(Q)),vt&&(f=hu(vt)?Bu(vt,Gu):Gu,d=Yu("scroller-start",W,dt,ct,f,0),p=Yu("scroller-end",W,dt,ct,f,0,d),b=d["offset"+ct.op.d2],c=Yu("start",W,dt,ct,f,b,0,ot),h=Yu("end",W,dt,ct,f,b,0,ot),ot&&(H=gl.quickSetter([c,h],ct.a,Lu)),mt||Gl.length&&!0===nu(dt,"fixedMarkers")||(U=Ru(j=ft?xl:dt).position,j.style.position="absolute"===U||"fixed"===U?U:"relative",gl.set([d,p],{force3D:!0}),D=gl.quickSetter(d,ct.a,Lu),C=gl.quickSetter(p,ct.a,Lu))),ot){var Et=ot.vars.onUpdate,Dt=ot.vars.onUpdateParams;ot.eventCallback("onUpdate",(function(){bt.update(0,0,1),Et&&Et.apply(Dt||[])}))}bt.previous=function(){return Qu[Qu.indexOf(bt)-1]},bt.next=function(){return Qu[Qu.indexOf(bt)+1]},bt.revert=function(t){var e=!1!==t||!bt.enabled,n=Al;e!==bt.isReverted&&(e&&(bt.scroll.rec||(bt.scroll.rec=St()),B=Math.max(St(),bt.scroll.rec||0),R=bt.progress,N=i&&i.progress()),c&&[c,h,d,p].forEach((function(t){return t.style.display=e?"none":"block"})),e&&(Al=1),bt.update(e),Al=n,Q&&(e?function(t,e,i){bc(i);var n=t._gsap;if(n.spacerIsNative)bc(n.spacerState);else if(t.parentNode===e){var r=e.parentNode;r&&(r.insertBefore(t,e),r.removeChild(e))}}(Q,_,g):(!st||!bt.isActive)&&vc(Q,_,Ru(Q),E)),bt.isReverted=e)},bt.refresh=function(n,r){if(!Al&&bt.enabled||r)if(Q&&n&&Yl)zu(t,"scrollEnd",ac);else{Al=1,I&&I.pause(),J&&i&&i.progress(0).invalidate(),bt.isReverted||bt.revert();for(var s,f,b,T,S,D,C,P,A,M,L=Tt(),O=wt(),F=ot?ot.duration():au(dt,ct),H=0,V=0,j=e.end,U=e.endTrigger||K,z=e.start||(0!==e.start&&K?Q?"0 0":"0 100%":0),q=e.pinnedContainer&&Zl(e.pinnedContainer),G=K&&Math.max(0,Qu.indexOf(bt))||0,W=G;W--;)(D=Qu[W]).end||D.refresh(0,1)||(Al=1),!(C=D.pin)||C!==K&&C!==Q||D.isReverted||(M||(M=[]),M.unshift(D),D.revert());for(uu(z)&&(z=z(bt)),l=wc(z,K,L,ct,St(),c,d,bt,O,_t,mt,F,ot)||(Q?-.001:0),uu(j)&&(j=j(bt)),lu(j)&&!j.indexOf("+=")&&(~j.indexOf(" ")?j=(lu(z)?z.split(" ")[0]:"")+j:(H=$u(j.substr(2),L),j=lu(z)?z:l+H,U=K)),u=Math.max(l,wc(j||(U?"100% 0":F),U,L,ct,St()+H,h,p,bt,O,_t,mt,F,ot))||-.001,m=u-l||(l-=.01)&&.001,H=0,W=G;W--;)(C=(D=Qu[W]).pin)&&D.start-D._pinPush<l&&!ot&&(s=D.end-D.start,(C===K||C===q)&&!cu(z)&&(H+=s),C===Q&&(V+=s));if(l+=H,u+=H,bt._pinPush=V,c&&H&&((s={})[ct.a]="+="+H,q&&(s[ct.p]="-="+St()),gl.set([c,h],s)),Q)s=Ru(Q),T=ct===Fu,b=St(),w=parseFloat(x(ct.a))+V,!F&&u>1&&((ft?xl:dt).style["overflow-"+ct.a]="scroll"),vc(Q,_,s),v=xc(Q),f=Nu(Q,!0),P=mt&&ru(dt,T?Ou:Fu)(),Z&&((E=[Z+ct.os2,m+V+Lu]).t=_,(W=Z===Pu?Hu(Q,ct)+m+V:0)&&E.push(ct.d,W+Lu),bc(E),mt&&St(B)),mt&&((S={top:f.top+(T?b-l:P)+Lu,left:f.left+(T?P:b-l)+Lu,boxSizing:"border-box",position:"fixed"})[wu]=S["max"+Mu]=Math.ceil(f.width)+Lu,S[ku]=S["max"+Iu]=Math.ceil(f.height)+Lu,S[Au]=S[Au+Du]=S[Au+Su]=S[Au+Cu]=S[Au+Eu]="0",S[Pu]=s[Pu],S[Pu+Du]=s[Pu+Du],S[Pu+Su]=s[Pu+Su],S[Pu+Cu]=s[Pu+Cu],S[Pu+Eu]=s[Pu+Eu],y=function(t,e,i){for(var n,r=[],s=t.length,a=i?8:0;a<s;a+=2)n=t[a],r.push(n,n in e?e[n]:t[a+1]);return r.t=t.t,r}(g,S,st)),i?(A=i._initted,Nl(1),i.render(i.duration(),!0,!0),k=x(ct.a)-w+m+V,m!==k&&y.splice(y.length-2,2),i.render(0,!0,!0),A||i.invalidate(),Nl(0)):k=m;else if(K&&St()&&!ot)for(f=K.parentNode;f&&f!==xl;)f._pinOffset&&(l-=f._pinOffset,u-=f._pinOffset),f=f.parentNode;M&&M.forEach((function(t){return t.revert(!1)})),bt.start=l,bt.end=u,a=o=St(),ot||(a<B&&St(B),bt.scroll.rec=0),bt.revert(!1),Al=0,i&&ht&&i._initted&&i.progress()!==N&&i.progress(N,!0).render(i.time(),!0,!0),R!==bt.progress&&(i&&!ht&&i.totalProgress(R,!0),bt.progress=R,bt.update(0,0,1)),Q&&Z&&(_._pinOffset=Math.round(bt.progress*k)),$&&$(bt)}},bt.getVelocity=function(){return(St()-o)/(Xl()-Cl)*1e3||0},bt.endAnimation=function(){fu(bt.callbackAnimation),i&&(I?I.progress(1):i.paused()?ht||fu(i,bt.direction<0,1):fu(i,i.reversed()))},bt.getTrailing=function(t){var e=Qu.indexOf(bt),i=bt.direction>0?Qu.slice(0,e).reverse():Qu.slice(e+1);return lu(t)?i.filter((function(e){return e.vars.preventOverlaps===t})):i},bt.update=function(t,e,r){if(!ot||r||t){var s,c,h,p,f,g,b,x=bt.scroll(),E=t?0:(x-l)/m,P=E<0?0:E>1?1:E||0,L=bt.progress;if(e&&(o=a,a=ot?St():x,rt&&(M=A,A=i&&!ht?i.totalProgress():P)),tt&&!P&&Q&&!Al&&!ql&&Yl&&l<x+(x-o)/(Xl()-Cl)*tt&&(P=1e-4),P!==L&&bt.enabled){if(p=(f=(s=bt.isActive=!!P&&P<1)!=(!!L&&L<1))||!!P!=!!L,bt.direction=P>L?1:-1,bt.progress=P,p&&!Al&&(c=P&&!L?0:1===P?1:1===L?2:3,ht&&(h=!f&&"none"!==yt[c+1]&&yt[c+1]||yt[c],b=i&&("complete"===h||"reset"===h||h in i))),ut&&f&&(b||Y||!i)&&(uu(ut)?ut(bt):bt.getTrailing(ut).forEach((function(t){return t.endAnimation()}))),ht||(!I||Al||ql?i&&i.totalProgress(P,!!Al):(I.vars.totalProgress=P,I.invalidate().restart())),Q)if(t&&Z&&(_.style[Z+ct.os2]=S),mt){if(p){if(g=!t&&P>L&&u+1>x&&x+1>=au(dt,ct),st)if(t||!s&&!g)Sc(Q,_);else{var O=Nu(Q,!0),R=x-l;Sc(Q,xl,O.top+(ct===Fu?R:0)+Lu,O.left+(ct===Fu?0:R)+Lu)}bc(s||g?y:v),k!==m&&P<1&&s||T(w+(1!==P||g?0:k))}}else T(w+k*P);rt&&!n.tween&&!Al&&!ql&&F.restart(!0),G&&(f||nt&&P&&(P<1||!Vl))&&El(G.targets).forEach((function(t){return t.classList[s||nt?"add":"remove"](G.className)})),q&&!ht&&!t&&q(bt),p&&!Al?(ht&&(b&&("complete"===h?i.pause().totalProgress(1):"reset"===h?i.restart(!0).pause():"restart"===h?i.restart(!0):i[h]()),q&&q(bt)),!f&&Vl||(X&&f&&mu(bt,X),gt[c]&&mu(bt,gt[c]),nt&&(1===P?bt.kill(!1,1):gt[c]=0),f||gt[c=1===P?1:3]&&mu(bt,gt[c])),lt&&!s&&Math.abs(bt.getVelocity())>(cu(lt)?lt:2500)&&(fu(bt.callbackAnimation),I?I.progress(1):fu(i,!P,1))):ht&&q&&!Al&&q(bt)}if(C){var B=ot?x/ot.duration()*(ot._caScrollDist||0):x;D(B+(d._isFlipped?1:0)),C(B)}H&&H(-x/ot.duration()*(ot._caScrollDist||0))}},bt.enable=function(e,i){bt.enabled||(bt.enabled=!0,zu(dt,"resize",ec),zu(dt,"scroll",tc),xt&&zu(t,"refreshInit",xt),!1!==e&&(bt.progress=R=0,a=o=kt=St()),!1!==i&&bt.refresh())},bt.getTween=function(t){return t&&n?n.tween:I},bt.disable=function(e,i){if(bt.enabled&&(!1!==e&&bt.revert(),bt.enabled=bt.isActive=!1,i||I&&I.pause(),B=0,r&&(r.uncache=1),xt&&qu(t,"refreshInit",xt),F&&(F.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!ft)){for(var s=Qu.length;s--;)if(Qu[s].scroller===dt&&Qu[s]!==bt)return;qu(dt,"resize",ec),qu(dt,"scroll",tc)}},bt.kill=function(t,e){bt.disable(t,e),I&&I.kill(),W&&delete Zu[W];var n=Qu.indexOf(bt);Qu.splice(n,1),n===Ll&&fc>0&&Ll--,n=0,Qu.forEach((function(t){return t.scroller===bt.scroller&&(n=1)})),n||(bt.scroll.rec=0),i&&(i.scrollTrigger=null,t&&i.render(-1),e||i.kill()),c&&[c,h,d,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Q&&(r&&(r.uncache=1),n=0,Qu.forEach((function(t){return t.pin===Q&&n++})),n||(r.spacer=0))},bt.enable(!1,!1),i&&i.add&&!m?gl.delayedCall(.01,(function(){return l||u||bt.refresh()}))&&(m=.01)&&(l=u=0):bt.refresh()}else this.update=this.refresh=this.kill=Ql},t.register=function(e){if(!yl&&(gl=e||eu(),tu()&&window.document&&(vl=window,_l=document,bl=_l.documentElement,xl=_l.body),gl&&(El=gl.utils.toArray,Dl=gl.utils.clamp,Nl=gl.core.suppressOverwrites||Ql,gl.core.globals("ScrollTrigger",t),xl))){kl=vl.requestAnimationFrame||function(t){return setTimeout(t,16)},zu(vl,"wheel",tc),Tl=[vl,_l,bl,xl],zu(_l,"scroll",tc);var i,n=xl.style,r=n.borderTopStyle;n.borderTopStyle="solid",i=Nu(xl),Fu.m=Math.round(i.top+Fu.sc())||0,Ou.m=Math.round(i.left+Ou.sc())||0,r?n.borderTopStyle=r:n.removeProperty("border-top-style"),Pl=setInterval(Ju,200),gl.delayedCall(.5,(function(){return ql=0})),zu(_l,"touchcancel",Ql),zu(xl,"touchstart",Ql),Uu(zu,_l,"pointerdown,touchstart,mousedown",(function(){return Ml=1})),Uu(zu,_l,"pointerup,touchend,mouseup",(function(){return Ml=0})),Il=gl.utils.checkPrefix("transform"),yc.push(Il),yl=Xl(),wl=gl.delayedCall(.2,dc).pause(),Rl=[_l,"visibilitychange",function(){var t=vl.innerWidth,e=vl.innerHeight;_l.hidden?(Ol=t,Fl=e):Ol===t&&Fl===e||ec()},_l,"DOMContentLoaded",dc,vl,"load",function(){return Yl||dc()},vl,"resize",ec],ou(zu)}return yl},t.defaults=function(t){for(var e in t)Wu[e]=t[e]},t.kill=function(){Kl=0,Qu.slice(0).forEach((function(t){return t.kill(1)}))},t.config=function(t){"limitCallbacks"in t&&(Vl=!!t.limitCallbacks);var e=t.syncInterval;e&&clearInterval(Pl)||(Pl=e)&&setInterval(Ju,e),"autoRefreshEvents"in t&&(ou(qu)||ou(zu,t.autoRefreshEvents||"none"),Hl=-1===(t.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var i=Zl(t),n=Wl.indexOf(i),r=iu(i);~n&&Wl.splice(n,r?6:2),r?Gl.unshift(vl,e,xl,e,bl,e):Gl.unshift(i,e)},t.matchMedia=function(t){var e,i,n,r,s;for(i in t)n=rc.indexOf(i),r=t[i],jl=i,"all"===i?r():(e=vl.matchMedia(i))&&(e.matches&&(s=r()),~n?(rc[n+1]=pu(rc[n+1],r),rc[n+2]=pu(rc[n+2],s)):(n=rc.length,rc.push(i,r,s),e.addListener?e.addListener(sc):e.addEventListener("change",sc)),rc[n+3]=e.matches),jl=0;return rc},t.clearMatchMedia=function(t){t||(rc.length=0),(t=rc.indexOf(t))>=0&&rc.splice(t,4)},t.isInViewport=function(t,e,i){var n=(lu(t)?Zl(t):t).getBoundingClientRect(),r=n[i?wu:ku]*e||0;return i?n.right-r>0&&n.left+r<vl.innerWidth:n.bottom-r>0&&n.top+r<vl.innerHeight},t.positionInViewport=function(t,e,i){lu(t)&&(t=Zl(t));var n=t.getBoundingClientRect(),r=n[i?wu:ku],s=null==e?r/2:e in Xu?Xu[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0;return i?(n.left+s)/vl.innerWidth:(n.top+s)/vl.innerHeight},t}();Dc.version="3.8.0",Dc.saveStyles=function(t){return t?El(t).forEach((function(t){if(t&&t.style){var e=lc.indexOf(t);e>=0&&lc.splice(e,5),lc.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),gl.core.getCache(t),jl)}})):lc},Dc.revert=function(t,e){return cc(!t,e)},Dc.create=function(t,e){return new Dc(t,e)},Dc.refresh=function(t){return t?ec():(yl||Dc.register())&&dc(!0)},Dc.update=mc,Dc.clearScrollMemory=hc,Dc.maxScroll=function(t,e){return au(t,e?Ou:Fu)},Dc.getScrollFunc=function(t,e){return ru(Zl(t),e?Ou:Fu)},Dc.getById=function(t){return Zu[t]},Dc.getAll=function(){return Qu.slice(0)},Dc.isScrolling=function(){return!!Yl},Dc.snapDirectional=ju,Dc.addEventListener=function(t,e){var i=ic[t]||(ic[t]=[]);~i.indexOf(e)||i.push(e)},Dc.removeEventListener=function(t,e){var i=ic[t],n=i&&i.indexOf(e);n>=0&&i.splice(n,1)},Dc.batch=function(t,e){var i,n=[],r={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var i=[],n=[],r=gl.delayedCall(s,(function(){e(i,n),i=[],n=[]})).pause();return function(t){i.length||r.restart(!0),i.push(t.trigger),n.push(t),a<=i.length&&r.progress(1)}};for(i in e)r[i]="on"===i.substr(0,2)&&uu(e[i])&&"onRefreshInit"!==i?o(0,e[i]):e[i];return uu(a)&&(a=a(),zu(Dc,"refresh",(function(){return a=e.batchMax()}))),El(t).forEach((function(t){var e={};for(i in r)e[i]=r[i];e.trigger=t,n.push(Dc.create(e))})),n},Dc.sort=function(t){return Qu.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},eu()&&gl.registerPlugin(Dc);var Cc=/(^\s+|\s+$)/g,Pc=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/;function Ac(t){var e=t.nodeType,i="";if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=Ac(t)}else if(3===e||4===e)return t.nodeValue;return i}function Mc(t,e,i,n){for(var r,s=t.firstChild,a=[];s;)3===s.nodeType?(r=(s.nodeValue+"").replace(/^\n+/g,""),n||(r=r.replace(/\s+/g," ")),a.push.apply(a,Ic(r,e,i,n))):"br"===(s.nodeName+"").toLowerCase()?a[a.length-1]+="<br>":a.push(s.outerHTML),s=s.nextSibling;return a}function Ic(t,e,i,n){if(t+="",i&&(t=t.replace(Cc,"")),e&&""!==e)return t.replace(/>/g,">").replace(/</g,"<").split(e);for(var r,s,a=[],o=t.length,l=0;l<o;l++)((s=t.charAt(l)).charCodeAt(0)>=55296&&s.charCodeAt(0)<=56319||t.charCodeAt(l+1)>=65024&&t.charCodeAt(l+1)<=65039)&&(r=((t.substr(l,12).split(Pc)||[])[1]||"").length||2,s=t.substr(l,r),a.emoji=1,l+=r-1),a.push(">"===s?">":"<"===s?"<":!n||" "!==s||" "!==t.charAt(l-1)&&" "!==t.charAt(l+1)?s:" ");return a}var Lc,Oc,Fc={version:"3.8.0",name:"text",init:function(t,e,i){var n,r,s,a,o,l,u,c,h=t.nodeName.toUpperCase(),d=this;if(d.svg=t.getBBox&&("TEXT"===h||"TSPAN"===h),!("innerHTML"in t)&&!d.svg)return!1;if(d.target=t,"object"!=typeof e&&(e={value:e}),"value"in e){for(d.delimiter=e.delimiter||"",s=Mc(t,d.delimiter,!1,e.preserveSpaces),Oc||(Oc=document.createElement("div")),Oc.innerHTML=e.value,r=Mc(Oc,d.delimiter),d.from=i._from,d.from&&(h=s,s=r,r=h),d.hasClass=!(!e.newClass&&!e.oldClass),d.newClass=e.newClass,d.oldClass=e.oldClass,n=(h=s.length-r.length)<0?s:r,d.fillChar=e.fillChar||(e.padSpace?" ":""),h<0&&(h=-h);--h>-1;)n.push(d.fillChar);if("diff"===e.type){for(a=0,o=[],l=[],u="",h=0;h<r.length;h++)(c=r[h])===s[h]?u+=c:(o[a]=u+c,l[a++]=u+s[h],u="");r=o,s=l,u&&(r.push(u),s.push(u))}e.speed&&i.duration(Math.min(.05/e.speed*n.length,e.maxDuration||9999)),this.original=s,this.text=r,this._props.push("text")}else d.text=d.original=[""]},render:function(t,e){t>1?t=1:t<0&&(t=0),e.from&&(t=1-t);var i,n,r,s=e.text,a=e.hasClass,o=e.newClass,l=e.oldClass,u=e.delimiter,c=e.target,h=e.fillChar,d=e.original,p=s.length,f=t*p+.5|0;a?(n=l&&f!==p,r=((i=o&&f)?"<span class='"+o+"'>":"")+s.slice(0,f).join(u)+(i?"</span>":"")+(n?"<span class='"+l+"'>":"")+u+d.slice(f).join(u)+(n?"</span>":"")):r=s.slice(0,f).join(u)+u+d.slice(f).join(u),e.svg?c.textContent=r:c.innerHTML=" "===h&&~r.indexOf(" ")?r.split(" ").join(" "):r}};Fc.splitInnerHTML=Mc,Fc.emojiSafeSplit=Ic,Fc.getText=Ac,(Lc||"undefined"!=typeof window&&(Lc=window.gsap)&&Lc.registerPlugin&&Lc)&&Lc.registerPlugin(Fc);var Rc,Bc,Nc=function(){return Rc||"undefined"!=typeof window&&(Rc=window.gsap)&&Rc.registerPlugin&&Rc},Hc=function(){(Rc=Nc())?(Rc.registerEase("_CE",qc.create),Bc=1):console.warn("Please gsap.registerPlugin(CustomEase)")},Vc=function(t){return~~(1e3*t+(t<0?-.5:.5))/1e3},jc=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,Uc=/[cLlsSaAhHvVtTqQ]/g,zc=function t(e,i,n,r,s,a,o,l,u,c,h){var d,p=(e+n)/2,f=(i+r)/2,m=(n+s)/2,g=(r+a)/2,y=(s+o)/2,v=(a+l)/2,_=(p+m)/2,b=(f+g)/2,x=(m+y)/2,T=(g+v)/2,w=(_+x)/2,k=(b+T)/2,S=o-e,E=l-i,D=Math.abs((n-o)*E-(r-l)*S),C=Math.abs((s-o)*E-(a-l)*S);return c||(c=[{x:e,y:i},{x:o,y:l}],h=1),c.splice(h||c.length-1,0,{x:w,y:k}),(D+C)*(D+C)>u*(S*S+E*E)&&(d=c.length,t(e,i,p,f,_,b,w,k,u,c,h),t(w,k,x,T,y,v,o,l,u,c,h+1+(c.length-d))),c},qc=function(){function t(t,e,i){Bc||Hc(),this.id=t,this.setData(e,i)}var e=t.prototype;return e.setData=function(t,e){e=e||{};var i,n,r,s,a,o,l,u,c,h=(t=t||"0,0,1,1").match(jc),d=1,p=[],f=[],m=e.precision||1,g=m<=1;if(this.data=t,(Uc.test(t)||~t.indexOf("M")&&t.indexOf("C")<0)&&(h=Ha(t)[0]),4===(i=h.length))h.unshift(0,0),h.push(1,1),i=8;else if((i-2)%6)throw"Invalid CustomEase";for(0==+h[0]&&1==+h[i-2]||function(t,e,i){i||0===i||(i=Math.max(+t[t.length-1],+t[1]));var n,r=-1*+t[0],s=-i,a=t.length,o=1/(+t[a-2]+r),l=-e||(Math.abs(+t[a-1]-+t[1])<.01*(+t[a-2]-+t[0])?function(t){var e,i=t.length,n=1e20;for(e=1;e<i;e+=6)+t[e]<n&&(n=+t[e]);return n}(t)+s:+t[a-1]+s);for(l=l?1/l:-o,n=0;n<a;n+=2)t[n]=(+t[n]+r)*o,t[n+1]=(+t[n+1]+s)*l}(h,e.height,e.originY),this.segment=h,s=2;s<i;s+=6)n={x:+h[s-2],y:+h[s-1]},r={x:+h[s+4],y:+h[s+5]},p.push(n,r),zc(n.x,n.y,+h[s],+h[s+1],+h[s+2],+h[s+3],r.x,r.y,1/(2e5*m),p,p.length-1);for(i=p.length,s=0;s<i;s++)l=p[s],u=p[s-1]||l,(l.x>u.x||u.y!==l.y&&u.x===l.x||l===u)&&l.x<=1?(u.cx=l.x-u.x,u.cy=l.y-u.y,u.n=l,u.nx=l.x,g&&s>1&&Math.abs(u.cy/u.cx-p[s-2].cy/p[s-2].cx)>2&&(g=0),u.cx<d&&(u.cx?d=u.cx:(u.cx=.001,s===i-1&&(u.x-=.001,d=Math.min(d,.001),g=0)))):(p.splice(s--,1),i--);if(a=1/(i=1/d+1|0),o=0,l=p[0],g){for(s=0;s<i;s++)c=s*a,l.nx<c&&(l=p[++o]),n=l.y+(c-l.x)/l.cx*l.cy,f[s]={x:c,cx:a,y:n,cy:0,nx:9},s&&(f[s-1].cy=n-f[s-1].y);f[i-1].cy=p[p.length-1].y-n}else{for(s=0;s<i;s++)l.nx<s*a&&(l=p[++o]),f[s]=l;o<p.length-1&&(f[s-1]=p[p.length-2])}return this.ease=function(t){var e=f[t*i|0]||f[i-1];return e.nx<t&&(e=e.n),e.y+(t-e.x)/e.cx*e.cy},this.ease.custom=this,this.id&&Rc&&Rc.registerEase(this.id,this.ease),this},e.getSVGData=function(e){return t.getSVGData(this,e)},t.create=function(e,i,n){return new t(e,i,n).ease},t.register=function(t){Rc=t,Hc()},t.get=function(t){return Rc.parseEase(t)},t.getSVGData=function(e,i){var n,r,s,a,o,l,u,c,h,d,p=(i=i||{}).width||100,f=i.height||100,m=i.x||0,g=(i.y||0)+f,y=Rc.utils.toArray(i.path)[0];if(i.invert&&(f=-f,g=0),"string"==typeof e&&(e=Rc.parseEase(e)),e.custom&&(e=e.custom),e instanceof t)n=Wa(Ba([e.segment],p,0,0,-f,m,g));else{for(n=[m,g],a=1/(u=Math.max(5,200*(i.precision||1))),c=5/(u+=2),h=Vc(m+a*p),r=((d=Vc(g+e(a)*-f))-g)/(h-m),s=2;s<u;s++)o=Vc(m+s*a*p),l=Vc(g+e(s*a)*-f),(Math.abs((l-d)/(o-h)-r)>c||s===u-1)&&(n.push(h,d),r=(l-d)/(o-h)),h=o,d=l;n="M"+n.join(",")}return y&&y.setAttribute("d",n),n},t}();Nc()&&Rc.registerPlugin(qc),qc.version="3.8.0";var Gc,Wc,Xc,$c,Yc,Kc=function(){return"undefined"!=typeof window},Qc=function(){return Gc||Kc()&&(Gc=window.gsap)&&Gc.registerPlugin&&Gc},Zc=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,Jc={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},th=function(t){return Math.round(1e4*t)/1e4},eh=function(t){return parseFloat(t)||0},ih=function(t,e){var i=eh(t);return~t.indexOf("%")?i/100*e:i},nh=function(t,e){return eh(t.getAttribute(e))},rh=Math.sqrt,sh=function(t,e,i,n,r,s){return rh(Math.pow((eh(i)-eh(t))*r,2)+Math.pow((eh(n)-eh(e))*s,2))},ah=function(t){return console.warn(t)},oh=function(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")},lh=function(t){if(!(t=Wc(t)[0]))return 0;var e,i,n,r,s,a,o,l=t.tagName.toLowerCase(),u=t.style,c=1,h=1;oh(t)&&(h=t.getScreenCTM(),c=rh(h.a*h.a+h.b*h.b),h=rh(h.d*h.d+h.c*h.c));try{i=t.getBBox()}catch(t){ah("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var d=i||{x:0,y:0,width:0,height:0},p=d.x,f=d.y,m=d.width,g=d.height;if(i&&(m||g)||!Jc[l]||(m=nh(t,Jc[l][0]),g=nh(t,Jc[l][1]),"rect"!==l&&"line"!==l&&(m*=2,g*=2),"line"===l&&(p=nh(t,"x1"),f=nh(t,"y1"),m=Math.abs(m-p),g=Math.abs(g-f))),"path"===l)r=u.strokeDasharray,u.strokeDasharray="none",e=t.getTotalLength()||0,c!==h&&ah("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(c+h)/2,u.strokeDasharray=r;else if("rect"===l)e=2*m*c+2*g*h;else if("line"===l)e=sh(p,f,p+m,f+g,c,h);else if("polyline"===l||"polygon"===l)for(n=t.getAttribute("points").match(Zc)||[],"polygon"===l&&n.push(n[0],n[1]),e=0,s=2;s<n.length;s+=2)e+=sh(n[s-2],n[s-1],n[s],n[s+1],c,h)||0;else"circle"!==l&&"ellipse"!==l||(a=m/2*c,o=g/2*h,e=Math.PI*(3*(a+o)-rh((3*a+o)*(a+3*o))));return e||0},uh=function(t,e){if(!(t=Wc(t)[0]))return[0,0];e||(e=lh(t)+1);var i=Xc.getComputedStyle(t),n=i.strokeDasharray||"",r=eh(i.strokeDashoffset),s=n.indexOf(",");return s<0&&(s=n.indexOf(" ")),(n=s<0?e:eh(n.substr(0,s)))>e&&(n=e),[-r||0,n-r||0]},ch=function(){Kc()&&(document,Xc=window,Yc=Gc=Qc(),Wc=Gc.utils.toArray,$c=-1!==((Xc.navigator||{}).userAgent||"").indexOf("Edge"))},hh={version:"3.8.0",name:"drawSVG",register:function(t){Gc=t,ch()},init:function(t,e,i,n,r){if(!t.getBBox)return!1;Yc||ch();var s,a,o,l=lh(t);return this._style=t.style,this._target=t,e+""=="true"?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",a=function(t,e,i){var n,r,s=t.indexOf(" ");return s<0?(n=void 0!==i?i+"":t,r=t):(n=t.substr(0,s),r=t.substr(s+1)),(n=ih(n,e))>(r=ih(r,e))?[r,n]:[n,r]}(e,l,(s=uh(t,l))[0]),this._length=th(l),this._dash=th(s[1]-s[0]),this._offset=th(-s[0]),this._dashPT=this.add(this,"_dash",this._dash,th(a[1]-a[0])),this._offsetPT=this.add(this,"_offset",this._offset,th(-a[0])),$c&&(o=Xc.getComputedStyle(t)).strokeLinecap!==o.strokeLinejoin&&(a=eh(o.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",a,a+.01)),this._live=oh(t)||~(e+"").indexOf("live"),this._nowrap=~(e+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(t,e){var i,n,r,s,a=e._pt,o=e._style;if(a){for(e._live&&(i=lh(e._target))!==e._length&&(n=i/e._length,e._length=i,e._offsetPT&&(e._offsetPT.s*=n,e._offsetPT.c*=n),e._dashPT?(e._dashPT.s*=n,e._dashPT.c*=n):e._dash*=n);a;)a.r(t,a.d),a=a._next;r=e._dash||t&&1!==t&&1e-4||0,i=e._length-r+.1,s=e._offset,r&&s&&r+Math.abs(s%e._length)>e._length-.2&&(s+=s<0?.1:-.1)&&(i+=.1),o.strokeDashoffset=r?s:s+.001,o.strokeDasharray=i<.2?"none":r?r+"px,"+(e._nowrap?999999:i)+"px":"0px, 999999px"}},getLength:lh,getPosition:uh};Qc()&&Gc.registerPlugin(hh);var dh,ph,fh,mh=Math.PI/180,gh=function(){return dh||"undefined"!=typeof window&&(dh=window.gsap)&&dh.registerPlugin&&dh},yh=function(t){return Math.round(1e4*t)/1e4},vh=function(t){dh=t||gh(),ph||(fh=dh.utils.getUnit,ph=1)},_h=function(t,e,i,n,r){var s=t._gsap,a=s.get(t,e);this.p=e,this.set=s.set(t,e),this.s=this.val=parseFloat(a),this.u=fh(a)||0,this.vel=i||0,this.v=this.vel/r,n||0===n?(this.acc=n,this.a=this.acc/(r*r)):this.acc=this.a=0},bh={version:"3.8.0",name:"physics2D",register:vh,init:function(t,e,i){ph||vh();var n=this,r=+e.angle||0,s=+e.velocity||0,a=+e.acceleration||0,o=e.xProp||"x",l=e.yProp||"y",u=e.accelerationAngle||0===e.accelerationAngle?+e.accelerationAngle:r;n.target=t,n.tween=i,n.step=0,n.sps=30,e.gravity&&(a=+e.gravity,u=90),r*=mh,u*=mh,n.fr=1-(+e.friction||0),n._props.push(o,l),n.xp=new _h(t,o,Math.cos(r)*s,Math.cos(u)*a,n.sps),n.yp=new _h(t,l,Math.sin(r)*s,Math.sin(u)*a,n.sps),n.skipX=n.skipY=0},render:function(t,e){var i,n,r,s,a,o,l=e.xp,u=e.yp,c=e.tween,h=e.target,d=e.step,p=e.sps,f=e.fr,m=e.skipX,g=e.skipY,y=c._from?c._dur-c._time:c._time;if(1===f)r=y*y*.5,i=l.s+l.vel*y+l.acc*r,n=u.s+u.vel*y+u.acc*r;else{for(s=o=(0|(y*=p))-d,o<0&&(l.v=l.vel/p,u.v=u.vel/p,l.val=l.s,u.val=u.s,e.step=0,s=o=0|y),a=y%1*f;o--;)l.v+=l.a,u.v+=u.a,l.v*=f,u.v*=f,l.val+=l.v,u.val+=u.v;i=l.val+l.v*a,n=u.val+u.v*a,e.step+=s}m||l.set(h,l.p,yh(i)+l.u),g||u.set(h,u.p,yh(n)+u.u)},kill:function(t){this.xp.p===t&&(this.skipX=1),this.yp.p===t&&(this.skipY=1)}};gh()&&dh.registerPlugin(bh);var xh,Th,wh,kh=function(){return xh||"undefined"!=typeof window&&(xh=window.gsap)&&xh.registerPlugin&&xh},Sh=function(t){return Math.round(1e4*t)/1e4},Eh=function(t){xh=t||kh(),Th||(wh=xh.utils.getUnit,Th=1)},Dh=function(t,e,i,n,r,s){var a=t._gsap,o=a.get(t,e);this.p=e,this.set=a.set(t,e),this.s=this.val=parseFloat(o),this.u=wh(o)||0,this.vel=i||0,this.v=this.vel/s,n||0===n?(this.acc=n,this.a=this.acc/(s*s)):this.acc=this.a=0,this.fr=1-(r||0)},Ch={version:"3.8.0",name:"physicsProps",register:Eh,init:function(t,e,i){Th||Eh();var n,r=this;for(n in r.target=t,r.tween=i,r.step=0,r.sps=30,r.vProps=[],e){var s=e[n],a=s.velocity,o=s.acceleration,l=s.friction;(a||o)&&(r.vProps.push(new Dh(t,n,a,o,l,r.sps)),r._props.push(n),l&&(r.hasFr=1))}},render:function(t,e){var i,n,r,s,a,o=e.vProps,l=e.tween,u=e.target,c=e.step,h=e.hasFr,d=e.sps,p=o.length,f=l._from?l._dur-l._time:l._time;if(h){if((n=(0|(f*=d))-c)<0){for(;p--;)(i=o[p]).v=i.vel/d,i.val=i.s;p=o.length,e.step=c=0,n=0|f}for(r=f%1;p--;){for(i=o[p],s=n;s--;)i.v+=i.a,i.v*=i.fr,i.val+=i.v;i.set(u,i.p,Sh(i.val+i.v*r*i.fr)+i.u)}e.step+=n}else for(a=f*f*.5;p--;)(i=o[p]).set(u,i.p,Sh(i.s+i.vel*f+i.acc*a)+i.u)},kill:function(t){for(var e=this.vProps,i=e.length;i--;)e[i].p===t&&e.splice(i,1)}};kh()&&xh.registerPlugin(Ch);var Ph,Ah,Mh=function(){function t(t){this.chars=Ic(t),this.sets=[],this.length=50;for(var e=0;e<20;e++)this.sets[e]=Oh(80,this.chars)}return t.prototype.grow=function(t){for(var e=0;e<20;e++)this.sets[e]+=Oh(t-this.length,this.chars);this.length=t},t}(),Ih=function(){return Ph||"undefined"!=typeof window&&(Ph=window.gsap)&&Ph.registerPlugin&&Ph},Lh=/\s+/g,Oh=function(t,e){for(var i=e.length,n="";--t>-1;)n+=e[~~(Math.random()*i)];return n},Fh="ABCDEFGHIJKLMNOPQRSTUVWXYZ",Rh=Fh.toLowerCase(),Bh={upperCase:new Mh(Fh),lowerCase:new Mh(Rh),upperAndLowerCase:new Mh(Fh+Rh)},Nh=function(){Ah=Ph=Ih()},Hh={version:"3.8.0",name:"scrambleText",register:function(t,e,i){Ph=t,Nh()},init:function(t,e,i,n,r){if(Ah||Nh(),this.prop="innerHTML"in t?"innerHTML":"textContent"in t?"textContent":0,this.prop){this.target=t,"object"!=typeof e&&(e={text:e});var s,a,o,l,u=e.text||e.value||"",c=!1!==e.trim,h=this;return h.delimiter=s=e.delimiter||"",h.original=Ic(Ac(t).replace(Lh," ").split(" ").join(""),s,c),"{original}"!==u&&!0!==u&&null!=u||(u=h.original.join(s)),h.text=Ic((u||"").replace(Lh," "),s,c),h.hasClass=!(!e.newClass&&!e.oldClass),h.newClass=e.newClass,h.oldClass=e.oldClass,l=""===s,h.textHasEmoji=l&&!!h.text.emoji,h.charsHaveEmoji=!!e.chars&&!!Ic(e.chars).emoji,h.length=l?h.original.length:h.original.join(s).length,h.lengthDif=(l?h.text.length:h.text.join(s).length)-h.length,h.fillChar=e.fillChar||e.chars&&~e.chars.indexOf(" ")?" ":"",h.charSet=o=Bh[e.chars||"upperCase"]||new Mh(e.chars),h.speed=.05/(e.speed||1),h.prevScrambleTime=0,h.setIndex=20*Math.random()|0,(a=h.length+Math.max(h.lengthDif,0))>o.length&&o.grow(a),h.chars=o.sets[h.setIndex],h.revealDelay=e.revealDelay||0,h.tweenLength=!1!==e.tweenLength,h.tween=i,h.rightToLeft=!!e.rightToLeft,h._props.push("scrambleText","text"),1}},render:function(t,e){var i,n,r,s,a,o,l,u,c,h,d,p=e.target,f=e.prop,m=e.text,g=e.delimiter,y=e.tween,v=e.prevScrambleTime,_=e.revealDelay,b=e.setIndex,x=e.chars,T=e.charSet,w=e.length,k=e.textHasEmoji,S=e.charsHaveEmoji,E=e.lengthDif,D=e.tweenLength,C=e.oldClass,P=e.newClass,A=e.rightToLeft,M=e.fillChar,I=e.speed,L=e.original,O=e.hasClass,F=m.length,R=y._time,B=R-v;_&&(y._from&&(R=y._dur-R),t=0===R?0:R<_?1e-6:R===y._dur?1:y._ease((R-_)/(y._dur-_))),t<0?t=0:t>1&&(t=1),A&&(t=1-t),i=~~(t*F+.5),t?((B>I||B<-I)&&(e.setIndex=b=(b+(19*Math.random()|0))%20,e.chars=T.sets[b],e.prevScrambleTime+=B),s=x):s=L.join(g),d=y._from?t:1-t,h=w+(D?y._from?d*d*d:1-d*d*d:1)*E,A?1!==t||!y._from&&"isFromStart"!==y.data?(l=m.slice(i).join(g),r=S?Ic(s).slice(0,h-(k?Ic(l):l).length+.5|0).join(""):s.substr(0,h-(k?Ic(l):l).length+.5|0),s=l):(r="",s=L.join(g)):(r=m.slice(0,i).join(g),n=(k?Ic(r):r).length,s=S?Ic(s).slice(n,h+.5|0).join(""):s.substr(n,h-n+.5|0)),l=O?((a=(u=A?C:P)&&0!==i)?"<span class='"+u+"'>":"")+r+(a?"</span>":"")+((o=(c=A?P:C)&&i!==F)?"<span class='"+c+"'>":"")+g+s+(o?"</span>":""):r+g+s,p[f]=" "===M&&~l.indexOf(" ")?l.split(" ").join(" "):l}};Hh.emojiSafeSplit=Ic,Hh.getText=Ac,Ih()&&Ph.registerPlugin(Hh);var Vh,jh,Uh,zh=function(){return Vh||"undefined"!=typeof window&&(Vh=window.gsap)&&Vh.registerPlugin&&Vh},qh=function(t){Vh=zh(),(Uh=Vh&&Vh.parseEase("_CE"))?(jh=1,Vh.parseEase("bounce").config=function(t){return"object"==typeof t?Wh("",t):Wh("bounce("+t+")",{strength:+t})}):t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},Gh=function(t){var e,i=t.length,n=1/t[i-2];for(e=2;e<i;e+=2)t[e]=~~(t[e]*n*1e3)/1e3;t[i-2]=1},Wh=function(t,e){jh||qh(1),e=e||{};var i,n,r,s,a,o,l,u=Math.min(.999,e.strength||.7),c=u,h=(e.squash||0)/100,d=h,p=1/.03,f=.2,m=1,g=.1,y=[0,0,.07,0,.1,1,.1,1],v=[0,0,0,0,.1,0,.1,0];for(a=0;a<200&&(o=g+(f*=c*((c+1)/2)),s=1-(m*=u*u),n=(r=g+.49*f)+.8*(r-(i=g+m/p)),h&&(g+=h,i+=h,r+=h,n+=h,o+=h,l=h/d,v.push(g-h,0,g-h,l,g-h/2,l,g,l,g,0,g,0,g,-.6*l,g+(o-g)/6,0,o,0),y.push(g-h,1,g,1,g,1),h*=u*u),y.push(g,1,i,s,r,s,n,s,o,1,o,1),u*=.95,p=m/(o-n),g=o,!(s>.999));a++);if(e.endAtStart&&"false"!==e.endAtStart){if(r=-.1,y.unshift(r,1,r,1,-.07,0),d)for(r-=h=2.5*d,y.unshift(r,1,r,1,r,1),v.splice(0,6),v.unshift(r,0,r,0,r,1,r+h/2,1,r+h,1,r+h,0,r+h,0,r+h,-.6,r+h+.033,0),a=0;a<v.length;a+=2)v[a]-=r;for(a=0;a<y.length;a+=2)y[a]-=r,y[a+1]=1-y[a+1]}return h&&(Gh(v),v[2]="C"+v[2],Uh(e.squashID||t+"-squash","M"+v.join(","))),Gh(y),y[2]="C"+y[2],Uh(t,"M"+y.join(","))},Xh=function(){function t(t,e){this.ease=Wh(t,e)}return t.create=function(t,e){return Wh(t,e)},t.register=function(t){Vh=t,qh()},t}();zh()&&Vh.registerPlugin(Xh),Xh.version="3.8.0";var $h,Yh,Kh,Qh=function(){return $h||"undefined"!=typeof window&&($h=window.gsap)&&$h.registerPlugin&&$h},Zh={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},Jh=function(t){return t},td=function(t){if(!Yh)if($h=Qh(),Kh=$h&&$h.parseEase("_CE")){for(var e in Zh)Zh[e]=Kh("",Zh[e]);Yh=1,id("wiggle").config=function(t){return"object"==typeof t?id("",t):id("wiggle("+t+")",{wiggles:+t})}}else t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},ed=function(t,e){return"function"!=typeof t&&(t=$h.parseEase(t)||Kh("",t)),t.custom||!e?t:function(e){return 1-t(e)}},id=function(t,e){Yh||td(1);var i,n,r,s,a,o,l,u,c,h=0|((e=e||{}).wiggles||10),d=1/h,p=d/2,f="anticipate"===e.type,m=Zh[e.type]||Zh.easeOut,g=Jh;if(f&&(g=m,m=Zh.easeOut),e.timingEase&&(g=ed(e.timingEase)),e.amplitudeEase&&(m=ed(e.amplitudeEase,!0)),u=[0,0,(o=g(p))/4,0,o/2,l=f?-m(p):m(p),o,l],"random"===e.type){for(u.length=4,i=g(d),n=2*Math.random()-1,c=2;c<h;c++)p=i,l=n,i=g(d*c),n=2*Math.random()-1,r=Math.atan2(n-u[u.length-3],i-u[u.length-4]),s=Math.cos(r)*d,a=Math.sin(r)*d,u.push(p-s,l-a,p,l,p+s,l+a);u.push(i,0,1,0)}else{for(c=1;c<h;c++)u.push(g(p+d/2),l),p+=d,l=(l>0?-1:1)*m(c*d),o=g(p),u.push(g(p-d/2),l,o,l);u.push(g(p+d/4),l,g(p+d/4),0,1,0)}for(c=u.length;--c>-1;)u[c]=~~(1e3*u[c])/1e3;return u[2]="C"+u[2],Kh(t,"M"+u.join(","))},nd=function(){function t(t,e){this.ease=id(t,e)}return t.create=function(t,e){return id(t,e)},t.register=function(t){$h=t,td()},t}();Qh()&&$h.registerPlugin(nd),nd.version="3.8.0";var rd,sd,ad,od=1,ld=180/Math.PI,ud=Math.PI/180,cd={},hd={},dd={},pd="onStart,onUpdate,onComplete,onReverseComplete,onInterrupt".split(","),fd="transform,transformOrigin,width,height,position,top,left,opacity,zIndex".split(","),md=function(t){return rd(t)[0]||console.warn("Element not found:",t)},gd=function(t){return Math.round(1e4*t)/1e4||0},yd=function(t,e,i){return t.forEach((function(t){return t.classList[i](e)}))},vd={zIndex:1,clear:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1},_d={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},bd=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},xd=function(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n},Td={},wd=function(t){var e,i=Td[t]="string"==typeof(e=t)?e.split(" ").join("").split(","):e;return dd[t]=i.concat(fd),i},kd=function t(e,i,n){void 0===n&&(n=0);for(var r=e.parentNode,s=1e3*Math.pow(10,n)*(i?-1:1),a=i?900*-s:0;e;)a+=s,e=e.previousSibling;return r?a+t(r,i,n+1):a},Sd=function(t,e,i){return t.forEach((function(t){return t.d=kd(i?t.element:t.t,e)})),t.sort((function(t,e){return t.d-e.d})),t},Ed=function(t,e){for(var i,n,r=t.element.style,s=t.css=t.css||[],a=e.length;a--;)n=r[i=e[a]]||r.getPropertyValue(i),s.push(n?i:hd[i]||(hd[i]=bd(i)),n);return r},Dd=function(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n<e.length;n+=2)e[n+1]?i[e[n]]=e[n+1]:i.removeProperty(e[n])},Cd=function(t,e){var i,n,r=t.element,s=t.width,a=t.height,o=t.uncache,l=t.getProp,u=r.style;if("object"!=typeof e&&(e=t),"absolute"!==l("position")){if(n="none"===l("display"),t.isVisible&&!n||(n&&(Ed(t,["display"]).display=e.display),t.matrix=e.matrix,t.width=s=t.width||e.width,t.height=a=t.height||e.height),u.position="absolute",u.width=s+"px",u.height=a+"px",u.top||(u.top="0px"),u.left||(u.left="0px"),o)i=new Hd(r);else if((i=xd(t,cd)).position="absolute",t.simple){var c=r.getBoundingClientRect();i.matrix=new Vn(1,0,0,1,c.left+On(),c.top+Ln())}else i.matrix=jn(r,!1,!1,!0);i=Ld(i,t,!0),t.x=parseFloat(i.x),t.y=parseFloat(i.y)}return r},Pd=function(t,e,i,n){return t instanceof Hd?t:t instanceof Nd?function(t,e){return e&&t.idLookup[Pd(e).id]||t.elementStates[0]}(t,n):new Hd("string"==typeof t?md(t)||console.warn(t+" not found"):t,e,i)},Ad=function(t,e){var i,n=t.style||t;for(i in e)n[i]=e[i]},Md=function(t){return t.map((function(t){return t.element}))},Id=function(t,e,i){return t&&e.length&&i.add(t(Md(e),i,new Nd(e,0,!0)),0)},Ld=function(t,e,i,n,r,s){var a,o,l,u,c,h,d,p=t.element,f=t.cache,m=t.parent,g=t.x,y=t.y,v=e.width,_=e.height,b=e.scaleX,x=e.scaleY,T=e.rotation,w=s&&p.style.cssText,k=s&&p.getBBox&&p.getAttribute("transform"),S=t,E=e.matrix,D=E.e,C=E.f,P=t.width!==v||t.height!==_||t.scaleX!==b||t.scaleY!==x||t.rotation!==T,A=!P&&t.simple&&e.simple&&!r;return A?(b=x=1,T=a=0):(c=function(t){var e=t._gsap||sd.core.getCache(t);return e.gmCache===sd.ticker.frame?e.gMatrix:(e.gmCache=sd.ticker.frame,e.gMatrix=jn(t,!0,!1,!0))}(m),h=c.clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),T=gd(Math.atan2(h.b,h.a)*ld),a=gd(Math.atan2(h.c,h.d)*ld+T)%360,b=Math.sqrt(Math.pow(h.a,2)+Math.pow(h.b,2)),x=Math.sqrt(Math.pow(h.c,2)+Math.pow(h.d,2))*Math.cos(a*ud),r&&(r=rd(r)[0],u=sd.getProperty(r),d=r.getBBox&&"function"==typeof r.getBBox&&r.getBBox(),S={scaleX:u("scaleX"),scaleY:u("scaleY"),width:d?d.width:Math.ceil(parseFloat(u("width","px"))),height:d?d.height:parseFloat(u("height","px"))}),f.rotation=T+"deg",f.skewX=a+"deg"),i?(b*=v/(S.width||1e-9),x*=_/(S.height||1e-9),f.scaleX=b,f.scaleY=x):(v*=b/S.scaleX,_*=x/S.scaleY,p.style.width=v+"px",p.style.height=_+"px"),n&&Ad(p,e.props),A?(g+=D-t.matrix.e,y+=C-t.matrix.f):P||m!==e.parent?(f.renderTransform(1,f),h=jn(r||p,!1,!1,!0),o=c.apply({x:h.e,y:h.f}),l=c.apply({x:D,y:C}),g+=gd(l.x-o.x),y+=gd(l.y-o.y)):(c.e=c.f=0,l=c.apply({x:D-t.matrix.e,y:C-t.matrix.f}),g+=gd(l.x),y+=gd(l.y)),!s||s instanceof Hd?(f.x=g+"px",f.y=y+"px",f.renderTransform(1,f)):(p.style.cssText=w,p.getBBox&&p.setAttribute("transform",k||""),f.uncache=1),s&&(s.x=g,s.y=y,s.rotation=T,s.skewX=a,i?(s.scaleX=b,s.scaleY=x):(s.width=v,s.height=_)),s||f},Od=function(t,e){return t instanceof Nd?t:new Nd(t,e)},Fd=function(t,e,i){var n=t.idLookup[i],r=t.alt[i];return!r.isVisible||(e.getElementState(r.element)||r).isVisible&&n.isVisible?n:r},Rd=function(t,e,i,n){t instanceof Nd&&e instanceof Nd||console.warn("Not a valid state object.");var r,s,a,o,l,u,c,h,d,p,f,m=i=i||{},g=m.clearProps,y=m.onEnter,v=m.onLeave,_=m.absolute,b=m.custom,x=m.delay,T=m.paused,w=m.repeat,k=m.repeatDelay,S=m.yoyo,E=m.toggleClass,D=m.nested,C=m.zIndex,P=m.scale,A=m.fade,M=m.stagger,I=m.spin,L=("props"in i?i:t).props,O=xd(i,vd),F=sd.timeline({delay:x,paused:T,repeat:w,repeatDelay:k,yoyo:S}),R=O,B=[],N=[],H=[],V=[],j=!0===I?1:I||0,U="function"==typeof I?I:function(){return j},z=t.interrupted||e.interrupted,q=F[1!==n?"to":"from"];for(s in n||(e=new Nd(e.targets,L).fit(e,P)),e.idLookup)l=(f=e.alt[s]?Fd(e,t,s):e.idLookup[s]).element,p=t.idLookup[s],t.alt[s]&&l===p.element&&(p=t.alt[s]),p?(u={t:l,b:p,a:f,sd:p.element===l?0:f.isVisible?1:-1},H.push(u),u.sd&&(u.sd<0&&(u.b=f,u.a=p),A&&H.push(u.swap={t:p.element,b:u.b,a:u.a,sd:-1*u.sd,swap:u})),l._flip=p.element._flip=F):f.isVisible&&(H.push({t:l,b:xd(f,{isVisible:1}),a:f,sd:0}),l._flip=F);for(L&&(Td[L]||wd(L)).forEach((function(t){return O[t]=function(e){return H[e].a.props[t]}})),H.finalStates=d=[],_&&Sd(H,!0).forEach((function(t){return(t.a.isVisible||t.b.isVisible)&&Cd(t.sd<0?t.b:t.a,t.b)})),Sd(H),o=0;o<H.length;o++)l=(u=H[o]).t,D&&!(u.sd<0)&&(u.a.matrix=jn(l,!1,!1,!0)),u.sd||u.b.isVisible&&u.a.isVisible?(u.sd<0?(c=new Hd(l,L,t.simple),Ld(c,u.a,P,0,0,c),c.matrix=jn(l,!1,!1,!0),c.css=u.b.css,u.a=c,A&&(l.style.opacity=z?u.b.opacity:u.a.opacity),M&&V.push(l)):u.sd>0&&A&&(l.style.opacity=z?u.a.opacity-u.b.opacity:"0"),Ld(u.a,u.b,P,L)):u.b.isVisible?u.a.isVisible||(u.b.css=u.a.css,N.push(u.b),H.splice(o--,1),_&&D&&Ld(u.a,u.b,P,L)):(u.a.isVisible&&B.push(u.a),H.splice(o--,1)),d.push(u.a);if(P?(O.scaleX=function(t){return H[t].a.scaleX},O.scaleY=function(t){return H[t].a.scaleY}):(O.width=function(t){return H[t].a.width+"px"},O.height=function(t){return H[t].a.height+"px"},O.autoRound=i.autoRound||!1),O.x=function(t){return H[t].a.x+"px"},O.y=function(t){return H[t].a.y+"px"},O.rotation=function(t){return H[t].a.rotation+(I?360*U(t,h[t],h):0)},O.skewX=function(t){return H[t].a.skewX},h=H.map((function(t){return t.t})),(C||0===C)&&(O.modifiers={zIndex:function(){return C}},O.zIndex=C,O.immediateRender=!1!==i.immediateRender),A&&(O.opacity=function(t){return H[t].sd<0?0:H[t].sd>0?H[t].a.opacity:"+=0"}),V.length){M=sd.utils.distribute(M);var G=h.slice(V.length);O.stagger=function(t,e){return M(~V.indexOf(e)?h.indexOf(H[t].swap.t):t,e,G)}}if(pd.forEach((function(t){return i[t]&&F.eventCallback(t,i[t],i[t+"Params"])})),b&&h.length)for(s in R=xd(O,vd),"scale"in b&&(b.scaleX=b.scaleY=b.scale,delete b.scale),b)(r=xd(b[s],_d))[s]=O[s],!("duration"in r)&&"duration"in O&&(r.duration=O.duration),r.stagger=O.stagger,q.call(F,h,r,0),delete R[s];return(h.length||N.length||B.length)&&(E&&F.add((function(){return yd(h,E,F._zTime<0?"remove":"add")}),0)&&!T&&yd(h,E,"add"),h.length&&q.call(F,h,R,0)),Id(y,B,F),Id(v,N,F),a=F.duration(),F.call((function(){var t=F.time()>=a;t&&function(t,e){for(var i=t.length;i--;)t[i].a.cache.uncache=1;e||t.finalStates.forEach(Dd)}(H,!g),E&&yd(h,E,t?"remove":"add")})),F},Bd=function(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,s=r.length;s--;)i[(e=r[s]).id]?n[e.id]=e:i[e.id]=e},Nd=function(){function t(t,e,i){this.props=e&&e.props,this.simple=!(!e||!e.simple),i?(this.targets=Md(t),this.elementStates=t,Bd(this)):(this.targets=rd(t),this.update(!e||!1!==e.clear))}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map((function(t){return new Hd(t,e.props,e.simple)})),Bd(this),this.killFlips(t),this.recordInlineStyles(),this},e.fit=function(t,e,i){for(var n,r,s=Sd(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,o=0;o<s.length;o++)n=s[o],i&&(n.matrix=jn(n.element,!1,!1,!0)),(r=a[n.id])&&Ld(n,r,e,!0,0,n),n.matrix=jn(n.element,!1,!1,!0);return this},e.getProperty=function(t,e){var i=this.getElementState(t)||cd;return e in i?i[e]:(i.props||cd)[e]},e.recordInlineStyles=function(){for(var t=dd[this.props]||fd,e=this.elementStates.length;e--;)Ed(this.elementStates[e],t)},e.killFlips=function(t){var e;this.targets.forEach((function(i){(i=i._flip)&&i.progress()<1&&!i.paused()&&(e=1,i.vars.onInterrupt&&i.vars.onInterrupt.apply(i,i.vars.onInterruptParams||[]),t&&i.progress(1),i.kill())})),e&&t&&this.elementStates.forEach((function(t){var e=t.element.getBoundingClientRect();t.isVisible=e.width||e.height||e.top||e.left,t.uncache=1})),this.interrupted=!!e},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(md(t))]},e.makeAbsolute=function(){return Sd(this.elementStates.slice(0),!0,!0).map(Cd)},t}(),Hd=function(){function t(t,e,i){this.element=t,this.update(e,i)}return t.prototype.update=function(t,e){var i,n,r=this.element,s=sd.getProperty(r),a=sd.core.getCache(r),o=r.getBoundingClientRect(),l=r.getBBox&&"function"==typeof r.getBBox&&"svg"!==r.nodeName.toLowerCase()&&r.getBBox(),u=e?new Vn(1,0,0,1,o.left+On(),o.top+Ln()):jn(r,!1,!1,!0);this.getProp=s,this.element=r,this.id=((n=(i=r).getAttribute("data-flip-id"))||i.setAttribute("data-flip-id",n="auto-"+od++),n),this.matrix=u,this.cache=a,this.bounds=o,this.isVisible=!!(o.width||o.height||o.left||o.top),this.display=s("display"),this.position=s("position"),this.isFixed=Rn(r),this.parent=r.parentNode,this.x=s("x"),this.y=s("y"),this.scaleX=a.scaleX,this.scaleY=a.scaleY,this.rotation=s("rotation"),this.skewX=s("skewX"),this.opacity=s("opacity"),this.width=l?l.width:ad(parseFloat(s("width","px"))+.04),this.height=l?l.height:parseFloat(s("height","px")),t&&function(t,e){for(var i=sd.getProperty(t.element,null,"native"),n=t.props={},r=e.length;r--;)n[e[r]]=(i(e[r])+"").trim();n.zIndex&&(n.zIndex=parseFloat(n.zIndex)||0)}(this,Td[t]||wd(t)),this.ctm=function(t){return t.getCTM&&"svg"===t.nodeName.toLowerCase()&&Nn(t).inverse()}(r),this.simple=e||1===gd(u.a)&&!gd(u.b)&&!gd(u.c)&&1===gd(u.d),this.uncache=0},t}(),Vd=function(){function t(){}return t.getState=function(t,e){return Od(t,"string"==typeof e?{props:e}:e)},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),Rd(t,Od(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,clear:!!e.clear}),e,-1)},t.to=function(t,e){return Rd(t,Od(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,clear:!!e.clear}),e,1)},t.fromTo=function(t,e,i){return Rd(t,e,i)},t.fit=function(t,e,i){var n=i?xd(i,_d):{},r=i||n,s=r.absolute,a=r.scale,o=r.getVars,l=r.props,u=r.runBackwards,c=r.onComplete,h=r.simple,d=i&&i.fitChild&&md(i.fitChild),p=Pd(e,l,h,t),f=Pd(t,0,h,p),m=l?dd[l]:fd;return l&&Ad(n,p.props),u&&(Ed(f,m),"immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){Dd(f),c&&c.apply(this,arguments)}),s&&Cd(f,p),n=Ld(f,p,a||d,l,d,n.duration||o?n:0),o?n:n.duration?sd.to(f.element,n):null},t.makeAbsolute=function(t,e){return(t instanceof Nd?t:new Nd(t,e)).makeAbsolute()},t.isFlipping=function(e){var i=t.getByTarget(e);return!!i&&i.isActive()},t.getByTarget=function(t){return(md(t)||cd)._flip},t.getElementState=function(t,e){return new Hd(md(t),e)},t.convertCoordinates=function(t,e,i){var n=jn(e,!0,!0).multiply(jn(t));return i?n.apply(i):n},t.register=function(t){sd=t,An(document.body||document.documentElement),rd=sd.utils.toArray,ad=sd.utils.snap(.1)},t}();Vd.version="3.8.0","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(Vd);var jd,Ud,zd,qd,Gd,Wd,Xd,$d,Yd,Kd,Qd,Zd,Jd,tp,ep=!0,ip=0,np=function(){return"undefined"!=typeof window},rp=function(){return jd||np()&&(jd=window.gsap)&&jd.registerPlugin&&jd},sp=function(t){return"string"==typeof t},ap=function(t){return void 0===t},op="http://www.w3.org/2000/svg",lp="http://www.w3.org/1999/xhtml",up=0,cp={},hp=function(){try{return sessionStorage.setItem("gsTest","1"),sessionStorage.removeItem("gsTest"),!0}catch(t){return!1}}(),dp=function(t,e,i){var n=zd.createElementNS?zd.createElementNS("svg"===t?op:lp,t):zd.createElement(t);return e&&(sp(e)&&(e=zd.querySelector(e)),e.appendChild(n)),"svg"===t&&(n.setAttribute("xmlns",op),n.setAttribute("xmlns:xlink",lp)),i&&(n.style.cssText=i),n},pp=function(){zd.selection?zd.selection.empty():Gd.getSelection&&Gd.getSelection().removeAllRanges()},fp=function t(e,i){for(var n=[],r=0,s=jd.core.Tween,a=e._first;a;)a instanceof s?a.vars.id&&(n[r++]=a):(i&&a.vars.id&&(n[r++]=a),r=(n=n.concat(t(a,i))).length),a=a._next;return n},mp=function(t,e){var i=0,n=Math.max(0,t._repeat),r=t._first;for(r||(i=t.duration());r;)i=Math.max(i,r.totalDuration()>999?r.endTime(!1):r._start+r._tDur/r._ts),r=r._next;return!e&&n?i*(n+1)+t._rDelay*n:i},gp=function(t,e,i,n){var r,s,a;return sp(t)&&("="===t.charAt(1)?((r=parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)))<0&&0===n&&(n=100),t=n/100*e.duration()+r):isNaN(t)&&e.labels&&-1!==e.labels[t]?t=e.labels[t]:e===Wd&&((s=t.indexOf("="))>0?(r=parseInt(t.charAt(s-1)+"1",10)*parseFloat(t.substr(s+1)),t=t.substr(0,s-1)):r=0,(a=jd.getById(t))&&(t=function(t,e){for(var i=t,n=arguments.length>1?+e:i.rawTime();i;)n=i._start+n/(i._ts||1),i=i.parent;return n}(a,i/100*a.duration())+r))),t=isNaN(t)?i:parseFloat(t),Math.min(100,Math.max(0,t/e.duration()*100))},yp=!0,vp=function(t,e,i,n){var r,s;if("mousedown"!==e&&"mouseup"!==e||(t.style.cursor="pointer"),"mousedown"===e&&(s=ap(t.onpointerdown)?ap(t.ontouchstart)?null:"touchstart":"pointerdown"))return r=function(e){"select"!==e.target.nodeName.toLowerCase()&&e.type===s?(e.stopPropagation(),yp&&(e.preventDefault(),i.call(t,e))):e.type!==s&&i.call(t,e),yp=!0},t.addEventListener(s,r,n),void("pointerdown"!==s&&t.addEventListener(e,r,n));t.addEventListener(e,i,n)},_p=function(t,e,i){t.removeEventListener(e,i),(e="mousedown"!==e?null:ap(t.onpointerdown)?ap(t.ontouchstart)?null:"touchstart":"pointerdown")&&t.removeEventListener(e,i)},bp=function(t,e,i,n){var r,s=t.options,a=s.length;for(e+="";--a>-1;)if(s[a].innerHTML===e||s[a].value===e)return t.selectedIndex=a,i.innerHTML=s[a].innerHTML,s[a];n&&((r=dp("option",t)).setAttribute("value",e),r.innerHTML=i.innerHTML=sp(n)?n:e,t.selectedIndex=s.length-1)},xp=function(t,e,i){var n=t.options,r=Math.min(n.length-1,Math.max(0,t.selectedIndex+e));return t.selectedIndex=r,i&&(i.innerHTML=n[r].innerHTML),n[r].value},Tp=function(){var t,e,i,n=Qd._first;if(Yd){for(t=Wd._dur;n;)e=n._next,"function"==typeof(i=n._targets&&n._targets[0])&&i===n.vars.onComplete&&!n._dur||i&&i._gsIgnore||Wd.add(n,n._start-n._delay),n=e;return t!==Wd.duration()}},wp=function(t){return jd.getById(t)||Zd.getById(t)||t===Wd.vars.id&&Wd},kp=function(t){jd=t||rp(),Ud||jd&&np()&&(zd=document,qd=zd.documentElement,Gd=window,jd.registerPlugin(us),(Qd=jd.globalTimeline)._sort=!0,Qd.autoRemoveChildren=!1,Xd=jd.core.Animation,(Zd=jd.timeline({data:"indy",autoRemoveChildren:!0,smoothChildTiming:!0})).kill(),Zd._dp=0,Zd.to({},{duration:1e12}),Wd=jd.timeline({data:"root",id:"Global Timeline",autoRemoveChildren:!1,smoothChildTiming:!0,parent:Zd}),$d=jd.to(Wd,{duration:1,time:1,ease:"none",data:"root",id:"_rootTween",paused:!0,immediateRender:!1,parent:Zd}),Qd.killTweensOf=function(t,e,i){Wd.killTweensOf(t,e,i),Wd.killTweensOf.call(Qd,t,e,i)},Zd._start=jd.ticker.time,jd.ticker.add((function(t){return Zd.render(t-Zd._start)})),Qd._start+=Qd._time,Wd._start=Qd._time=Qd._tTime=0,(Jd=function(t,e,i,n){return jd.to(e,{delay:t,duration:0,onComplete:e,onReverseComplete:e,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n,parent:Zd})})(.01,(function(){return Yd?Yd.update():Tp()})),Jd(2,(function(){var t,e,i;if(!Yd)for(Tp(),t=Wd._first,i=Wd._start;t;)e=t._next,t._tDur!==t._tTime||!t._dur&&1!==t.progress()?Qd.add(t,t._start-t._delay+i):t.kill(),t=e;Ep.globalRecordingTime>2?Jd(Ep.globalRecordingTime-2,(function(){Yd&&Yd.update(),Qd.autoRemoveChildren=!0})):Qd.autoRemoveChildren=!0,ep=!1})),Ud=1)},Sp=function(t,e){e.globalSync||t.parent===Qd||Qd.add(t,Qd.time())},Ep=function t(e){Ud||(kp(),jd||console.warn("Please gsap.registerPlugin(GSDevTools)")),this.vars=e=e||{},e.animation&&(t.getByAnimation(e.animation)||{kill:function(){return 0}}).kill(),e.id=e.id||(sp(e.animation)?e.animation:up++),cp[e.id+""]=this,"globalSync"in e||(e.globalSync=!e.animation);var i,n,r,s,a,o,l,u,c,h,d,p,f,m,g,y=this,v=function(t,e,i){tp||(dp("style",qd).innerHTML=".gs-dev-tools{height:51px;bottom:0;left:0;right:0;display:block;position:fixed;overflow:visible;padding:0}.gs-dev-tools *{box-sizing:content-box;visibility:visible}.gs-dev-tools .gs-top{position:relative;z-index:499}.gs-dev-tools .gs-bottom{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,.6);height:42px;border-top:1px solid #999;position:relative}.gs-dev-tools .timeline{position:relative;height:8px;margin-left:15px;margin-right:15px;overflow:visible}.gs-dev-tools .progress-bar,.gs-dev-tools .timeline-track{height:8px;width:100%;position:absolute;top:0;left:0}.gs-dev-tools .timeline-track{background-color:#999;opacity:.6}.gs-dev-tools .progress-bar{background-color:#91e600;height:8px;top:0;width:0;pointer-events:none}.gs-dev-tools .seek-bar{width:100%;position:absolute;height:24px;top:-12px;left:0;background-color:transparent}.gs-dev-tools .in-point,.gs-dev-tools .out-point{width:15px;height:26px;position:absolute;top:-18px}.gs-dev-tools .in-point-shape{fill:#6d9900;stroke:rgba(0,0,0,.5);stroke-width:1}.gs-dev-tools .out-point-shape{fill:#994242;stroke:rgba(0,0,0,.5);stroke-width:1}.gs-dev-tools .in-point{transform:translateX(-100%)}.gs-dev-tools .out-point{left:100%}.gs-dev-tools .grab{stroke:rgba(255,255,255,.3);stroke-width:1}.gs-dev-tools .playhead{position:absolute;top:-5px;transform:translate(-50%,0);left:0;border-radius:50%;width:16px;height:16px;border:1px solid #6d9900;background-color:#91e600}.gs-dev-tools .gs-btn-white{fill:#fff}.gs-dev-tools .pause{opacity:0}.gs-dev-tools .select-animation{vertical-align:middle;position:relative;padding:6px 10px}.gs-dev-tools .select-animation-container{flex-grow:4;width:40%}.gs-dev-tools .select-arrow{display:inline-block;width:12px;height:7px;margin:0 7px;transform:translate(0,-2px)}.gs-dev-tools .select-arrow-shape{stroke:rgba(255,255,255,.6);stroke-width:2px;fill:none}.gs-dev-tools .rewind{height:16px;width:19px;padding:10px 4px;min-width:24px}.gs-dev-tools .rewind-path{opacity:.6}.gs-dev-tools .play-pause{width:24px;height:24px;padding:6px 10px;min-width:24px}.gs-dev-tools .ease{width:30px;height:30px;padding:10px;min-width:30px;display:none}.gs-dev-tools .ease-path{fill:none;stroke:rgba(255,255,255,.6);stroke-width:2px}.gs-dev-tools .ease-border{fill:rgba(255,255,255,.25)}.gs-dev-tools .time-scale{font-family:monospace;font-size:18px;text-align:center;color:rgba(255,255,255,.6);padding:4px 4px 4px 0;min-width:30px;margin-left:7px}.gs-dev-tools .loop{width:20px;padding:5px;min-width:20px}.gs-dev-tools .loop-path{fill:rgba(255,255,255,.6)}.gs-dev-tools label span{color:#fff;font-family:monospace;text-decoration:none;font-size:16px;line-height:18px}.gs-dev-tools .time-scale span{color:rgba(255,255,255,.6)}.gs-dev-tools button:focus,.gs-dev-tools select:focus{outline:0}.gs-dev-tools label{position:relative;cursor:pointer}.gs-dev-tools label.locked{text-decoration:none;cursor:auto}.gs-dev-tools label input,.gs-dev-tools label select{position:absolute;left:0;top:0;z-index:1;font:inherit;font-size:inherit;line-height:inherit;height:100%;width:100%;color:#000!important;opacity:0;background:0 0;border:none;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.gs-dev-tools label input+.display{position:relative;z-index:2}.gs-dev-tools .gs-bottom-right{vertical-align:middle;display:flex;align-items:center;flex-grow:4;width:40%;justify-content:flex-end}.gs-dev-tools .time-container{font-size:18px;font-family:monospace;color:rgba(255,255,255,.6);margin:0 5px}.gs-dev-tools .logo{width:32px;height:32px;position:relative;top:2px;margin:0 12px}.gs-dev-tools .gs-hit-area{background-color:transparent;width:100%;height:100%;top:0;position:absolute}.gs-dev-tools.minimal{height:auto;display:flex;align-items:stretch}.gs-dev-tools.minimal .gs-top{order:2;flex-grow:4;background-color:rgba(0,0,0,1)}.gs-dev-tools.minimal .gs-bottom{background-color:rgba(0,0,0,1);border-top:none}.gs-dev-tools.minimal .timeline{top:50%;transform:translate(0,-50%)}.gs-dev-tools.minimal .in-point,.gs-dev-tools.minimal .out-point{display:none}.gs-dev-tools.minimal .select-animation-container{display:none}.gs-dev-tools.minimal .rewind{display:none}.gs-dev-tools.minimal .play-pause{width:20px;height:20px;padding:4px 6px;margin-left:14px}.gs-dev-tools.minimal .time-scale{min-width:26px}.gs-dev-tools.minimal .loop{width:18px;min-width:18px;display:none}.gs-dev-tools.minimal .gs-bottom-right{display:none}@media only screen and (max-width:600px){.gs-dev-tools{height:auto;display:flex;align-items:stretch}.gs-dev-tools .gs-top{order:2;flex-grow:4;background-color:rgba(0,0,0,1);height:42px}.gs-dev-tools .gs-bottom{background-color:rgba(0,0,0,1);border-top:none}.gs-dev-tools .timeline{top:50%;transform:translate(0,-50%)}.gs-dev-tools .in-point,.gs-dev-tools .out-point{display:none}.gs-dev-tools .select-animation-container{display:none}.gs-dev-tools .rewind{display:none}.gs-dev-tools .play-pause{width:20px;height:20px;padding:4px 6px;margin-left:14px}.gs-dev-tools .time-scale{min-width:26px}.gs-dev-tools .loop{width:18px;min-width:18px;display:none}.gs-dev-tools .gs-bottom-right{display:none}}",tp=!0),sp(t)&&(t=zd.querySelector(t));var n=dp("div",t||qd.getElementsByTagName("body")[0]||qd);return n.setAttribute("class","gs-dev-tools"+(e?" minimal":"")),n.innerHTML='<div class=gs-hit-area></div><div class=gs-top><div class=timeline><div class=timeline-track></div><div class=progress-bar></div><div class=seek-bar></div><svg class=in-point viewBox="0 0 15 26" xmlns=http://www.w3.org/2000/svg><polygon class=in-point-shape points=".5 .5 14.5 .5 14.5 25.5 .5 17.5"/><polyline class=grab points="5.5 4 5.5 15"/><polyline class=grab points="9.5 4 9.5 17"/></svg><svg class=out-point viewBox="0 0 15 26" xmlns=http://www.w3.org/2000/svg><polygon class=out-point-shape points=".5 .5 14.5 .5 14.5 17.5 .5 25.5"/><polyline class=grab points="5.5 4 5.5 17"/><polyline class=grab points="9.5 4 9.5 15"/></svg><div class=playhead></div></div></div><div class=gs-bottom><div class=select-animation-container><label class=select-animation><select class=animation-list><option>Global Timeline<option>myTimeline</select><nobr><span class="display animation-label">Global Timeline</span><svg class=select-arrow viewBox="0 0 12.05 6.73" xmlns=http://www.w3.org/2000/svg><polyline class=select-arrow-shape points="0.35 0.35 6.03 6.03 11.7 0.35"/></svg></nobr></label></div><svg class=rewind viewBox="0 0 12 15.38" xmlns=http://www.w3.org/2000/svg><path d=M0,.38H2v15H0Zm2,7,10,7.36V0Z class="gs-btn-white rewind-path"/></svg><svg class=play-pause viewBox="0 0 20.97 25.67" xmlns=http://www.w3.org/2000/svg><g class=play><path d="M8,4.88 C8,10.18 8,15.48 8,20.79 5.33,22.41 2.66,24.04 0,25.67 0,17.11 0,8.55 0,0 2.66,1.62 5.33,3.25 8,4.88" class="gs-btn-white play-1" style=stroke:#fff;stroke-width:.6px /><path d="M14.485,8.855 C16.64,10.18 18.8,11.5 20.97,12.83 16.64,15.48 12.32,18.13 8,20.79 8,15.48 8,10.18 8,4.88 10.16,6.2 12.32,7.53 14.48,8.85" class="gs-btn-white play-2" style=stroke:#fff;stroke-width:.6px /></g></svg> <svg class=loop viewBox="0 0 29 25.38" xmlns=http://www.w3.org/2000/svg><path d=M27.44,5.44,20.19,0V3.06H9.06A9.31,9.31,0,0,0,0,12.41,9.74,9.74,0,0,0,.69,16l3.06-2.23a6,6,0,0,1-.12-1.22,5.49,5.49,0,0,1,5.43-5.5H20.19v3.81Z class=loop-path /><path d=M25.25,11.54a5.18,5.18,0,0,1,.12,1.12,5.41,5.41,0,0,1-5.43,5.41H9.19V14.5L1.94,19.94l7.25,5.44V22.06H19.94A9.2,9.2,0,0,0,29,12.84a9.42,9.42,0,0,0-.68-3.53Z class=loop-path /></svg> <svg class=ease viewBox="0 0 25.67 25.67" xmlns=http://www.w3.org/2000/svg><path d=M.48,25.12c1.74-3.57,4.28-12.6,8.8-10.7s4.75,1.43,6.5-1.11S19.89,1.19,25.2.55 class=ease-path /><path d=M24.67,1V24.67H1V1H24.67m1-1H0V25.67H25.67V0Z class=ease-border /></svg><label class=time-scale><select><option value=10>10x<option value=5>5x<option value=2>2x<option value=1 selected>1x<option value=0.5>0.5x<option value=0.25>0.25x<option value=0.1>0.1x</select><span class="display time-scale-label">1x</span></label><div class=gs-bottom-right><div class=time-container><span class=time>0.00</span> / <span class=duration>0.00</span></div><a href="https://greensock.com/docs/v3/Plugins/GSDevTools?source=GSDevTools" target=_blank title=Docs><svg class=logo viewBox="0 0 100 100" xmlns=http://www.w3.org/2000/svg><path d="M60 15.4c-.3-.4-.5-.6-.5-.7.1-.6.2-1 .2-1.7v-.4c.6.6 1.3 1.3 1.8 1.7.2.2.5.3.8.3.2 0 .3 0 .5.1h1.6c.8 0 1.6.1 2 0 .1 0 .2 0 .3-.1.6-.3 1.4-1 2.1-1.6 0 .6.1 1.2.1 1.7v1.5c0 .3 0 .5.1.7-.1.1-.2.1-.4.2-.7.4-1.7 1-2.3.9-.5-.1-1.5-.3-2.6-.7-1.2-.3-2.4-.8-3.2-1.2 0 0-.1 0-.1-.1s-.2-.4-.4-.6zm24.6 21.9c-.5-1.7-1.9-2-4.2-.7.9-1.5 2.1-1.5 2.3-2.1.9-2.5-.6-4.6-1.2-5.3.7-1.8 1.4-4.5-1-6.8-1-1-2.4-1.2-3.6-1.1 1.8 1.7 3.4 4.4 2.5 7.2-.1.3-.9.7-1.7 1 0 0 .4 2-.3 3.5-.3.6-.8 1.5-1.3 2.6 1 .9 1.6 1 3 1.3-.9.1-1.2.4-1.2.5-.7 3 1 3.4 1.4 4.8 0 .1 0 .2.1.3v.4c-.3.3-1.4.5-2.5.5s-1.8 1-1.8 1c-.2.1-.3.3-.4.4v1c0 .1 0 .4.1.6.1.5.3 1.3.4 1.8.9.6 1.4.9 2.2 1.1.5.1 1 .2 1.5.1.3-.1.7-.3 1-.7 1.5-1.7 1.9-3.2 2.2-4.1 0-.1 0-.2.1-.2 0 .1.1.1.1.2 0 0 .1-.1.1-.2l.1-.1c1.3-1.6 2.9-4.5 2.1-7zM74.3 49.9c-.1-.3-.1-.7-.2-1.1v-.2c-.1-.2-.1-.4-.2-.6 0-.1-.1-.3-.1-.5s-.1-.5-.1-.7v-.1c0-.2-.1-.5-.1-.7-.1-.3-.1-.7-.2-1.1v-.1c0-.2 0-.3-.1-.5v-.9c0-.1 0-.2.1-.3V43h-.3c-1.1.1-3.8.4-6.7.2-1.2-.1-2.4-.3-3.6-.6-1-.3-1.8-.5-2.3-.7-1.2-.4-1.6-.6-1.8-.7 0 .2-.1.4-.1.7 0 .3-.1.5-.1.8-.1.2-.1.4-.2.6l.1.1c.5.5 1.5 1.3 1.5 2.1v.2c-.1.4-.4.5-.8.9-.1.1-.6.7-1.1 1.1l-.6.6c-.1 0-.1.1-.2.1-.1.1-.3.2-.4.3-.2.1-.7.5-.8.6-.1.1-.2.1-.3.1-2.8 8.8-2.2 13.5-1.5 16.1.1.5.3 1 .4 1.3-.4.5-.8 1-1.2 1.4-1.2 1.5-2 2.6-2.6 4.2 0 .1 0 .1-.1.2 0 .1 0 .2-.1.2-.2.5-.3 1-.4 1.5-.6 2.3-.8 4.5-.9 6.6-.1 2.4-.2 4.6-.5 6.9.7.3 3.1.9 4.7.6.2-.1 0-3.9.6-5.7l.6-1.5c.4-.9.9-1.9 1.3-3.1.3-.7.5-1.5.7-2.4.1-.5.2-1 .3-1.6V74v-.1c.1-.6.1-1.3.1-2 0-.2-.7.3-1.1.9.3-1.8 1.3-2.1 2-3.2.3-.5.6-1.1.6-2 2.5-1.7 4-3.7 5-5.7.2-.4.4-.9.6-1.4.3-.8.5-1.6.7-2.4.3-1.4.8-3.2 1.2-4.8v-.1c.4-1.2.8-2.2 1.2-2.6-.2.9-.4 1.7-.6 2.5v.2c-.6 3.5-.7 6.2-2 9.2 1 2.6 1.9 3.9 2 7.6-2 0-3.2 1.6-3.7 3.2 1.2.3 3.9.7 8.3.1h.3c.1-.5.3-1.1.5-1.5.3-.8.5-1.5.6-2.2.2-1.3.1-2.4 0-3.2 3.9-3.7 2.6-11 1.6-16.6zm.3-15.1c.1-.3.2-.6.4-.8.2-.3.3-.7.5-1 .1-.3.3-.6.4-.9.5-1.5.4-2.8.3-3.5-.1 0-.1-.1-.2-.1-.5-.2-.9-.4-1.4-.6-.1 0-.2-.1-.3-.1-3.8-1.2-7.9-.9-11.9.1-1 .2-1.9.5-2.9.1-2.3-.8-3.9-1.9-4.6-2.8l-.2-.2c-.1.2-.2.4-.4.6.2 2.3-.5 3.9-1.4 5.1.9 1.2 2.6 2.8 3.6 3.4 1.1.6 1.7.7 3.4.4-.6.7-1.1 1-1.9 1.4.1.7.2 2 .5 3.4.3.3 1.2.8 2.3 1.3.5.3 1.1.5 1.7.7.8.3 1.7.6 2.4.8.1 0 .2.1.3.1.5.1 1.1.2 1.8.2h.9c2.1 0 4.5-.2 5.4-.3h.1c-.1-2.7.2-4.6.7-6.2.2-.3.4-.7.5-1.1zm-23.2 9.3v.2c-.3 1.7.5 2.4 1.9 3.4.6.5 0 .5.5.8.3.2.7.3 1 .3.3 0 .5 0 .8-.1.2-.1.4-.3.6-.5.1-.1.3-.2.5-.4.3-.2.6-.5.7-.6.1-.1.2-.1.3-.2.2-.2.5-.5.6-.7.2-.2.4-.5.5-.7 0-.1.1-.1.1-.1v-.1c.1-.4-.3-.8-.8-1.3-.2-.2-.4-.3-.5-.5-.3-.3-.6-.5-1-.7-.9-.5-1.9-.7-3-.7l-.3-.3c-2.2-2.5-3.2-4.8-3.9-6.5-.9-2.1-1.9-3.3-3.9-4.9 1 .4 1.8.8 2.3 1.1.5.4 1.3.4 1.9.2.2-.1.5-.2.7-.3.2-.1.4-.2.6-.4 1.6-1.3 2.5-3.8 2.6-5.6v-.1c.2-.3.6-1.1.8-1.4l.1.1c.1.1.3.2.6.5.1 0 .1.1.2.1.1.1.2.1.2.2.8.6 1.9 1.3 2.6 1.7 1.4.7 2.3.7 5.3-.1 2.2-.6 4.8-.8 6.8-.8 1.4 0 2.7.3 4 .7.2.1.4.1.5.2.3.1.6.2.9.4 0 0 .1 0 .1.1.8.4 2.1 1.2 2.5-.3.1-2-.6-3.9-1.6-5.3 0 0-.1 0-.1-.1-.1-.1-.2-.2-.4-.3-.1-.1-.2-.1-.3-.2-.1-.1-.2-.2-.4-.2-.6-.4-1.2-.8-1.6-.9-.1-.1-.3-.1-.4-.2h-.1-.1c-.1 0-.3-.1-.4-.1-.1 0-.1 0-.2-.1h-.1l-.2-.4c-.2-.1-.4-.2-.5-.2h-.6c-.3 0-.5.1-.7.1-.7.1-1.2.3-1.7.4-.2 0-.3.1-.5.1-.5.1-1 .2-1.6.2-.4 0-.9-.1-1.5-.2-.4-.1-.8-.2-1.1-.3-.2-.1-.4-.1-.6-.2-.6-.2-1.1-.3-1.7-.4h-.2-1.8c-.3 0-.6.1-1 .1H57.9c-.8 0-1.5 0-2.3-.1-.2 0-.5-.1-.7-.1-.5-.1-.9-.2-1.3-.4-.2-.1-.3-.1-.4-.2-.1 0-.2 0-.2-.1-.3-.1-.6-.1-.9-.1H51h-.1c-.4 0-.9.1-1.4.2-1.1.2-2.1.6-3 1.3-.3.2-.6.5-.8.8-.1.1-.2.2-.2.3-.4.6-.8 1.2-.9 2 0 .2-.1.4-.1.6 0 .2 1.7.7 2.3 2.8-.8-1.2-2.3-2.5-4.1-1.4-1.5 1-1.1 3.1-2.4 5.4-.3.5-.6.9-1 1.4-.8 1-.7 2.1.2 4.4 1.4 3.4 7.6 5.3 11.5 8.3l.4.4zm8.7-36.3c0 .6.1 1 .2 1.6v.1c0 .3.1.6.1.9.1 1.2.4 2 1 2.9 0 .1.1.1.1.2.3.2.5.3.8.4 1.1.2 3.1.3 4.2 0 .2-.1.5-.3.7-.5.4-.4.7-1.1.9-1.7.1-.7.3-1.3.4-1.8 0-.2.1-.4.1-.5v-.1c0-.2 0-.3.1-.5.2-.7.2-2.4.3-2.8.1-.7 0-1.8-.1-2.5 0-.2-.1-.4-.1-.5v-.1c-.2-.5-1.4-1.4-4.3-1.4-3.1 0-4 1-4.1 1.5v.1c0 .1 0 .3-.1.5-.1.4-.2 1.4-.2 1.9v2.3zm-6 88.6c0-.1-.1-.2-.1-.3-.7-1.5-1.1-3.5-1.3-4.6.4.1.7.6.8.3.2-.5-.4-1.5-.5-2.2v-.1c-.5-.5-4-.5-3.7-.3-.4.8-1 .6-1.3 2.1-.1.7.8.1 1.7.1-1.4.9-3 2.1-3.4 3.2-.1.1-.1.2-.1.3 0 .2-.1.4-.1.5-.1 1.2.5 1.6 2 2.4H48.4c1.4.3 3 .3 4.3.3 1.2-.2 1.6-.7 1.6-1.4-.2-.1-.2-.2-.2-.3z" style=fill:#efefef /><path d="M56.1 36.5c.3 1.4.5 2.4.8 4.2h-.2c-.1.5-.1.9-.1 1.3-1-.4-2.2-.5-2.6-.5-3.7-4.4-2.9-6.1-4.4-8.3.4-.2 1-.4 1.5-.8 1.6 1.9 3.3 3 5 4.1zm-1.7 13.2s-1.4 0-2.3-1c0 0-.1-.5.1-.7 0 0-1.2-1-1.5-1.7-.2-.5-.3-1.1-.2-1.6-4.4-3.7-10.9-4.2-12.9-9.1-.5-1.2-1.3-2.9-.9-3.9-.3.1-.5.2-.8.3-2.9.9-11.7 5.3-17.9 8.8 1.6 1.7 2.6 4.3 3.2 7.2l.3 1.5c.1.5.1 1 .2 1.5.1 1.4.4 2.7.8 3.9.2.8.6 1.5.9 2.2.6 1 1.2 1.9 2.1 2.6.6.5 1.2.9 1.9 1.3 2.1 1.1 5 1.6 8.6 1.5H37.9c.5 0 1 .1 1.5.1h.1c.4.1.9.1 1.3.2h.2c.4.1.9.2 1.3.4h.1c.4.1.8.3 1.1.5h.1c.4.2.7.4 1.1.6h.1c.7.4 1.3.9 1.9 1.5l.1.1c.6.5 1.1 1.1 1.5 1.8 0 .1.1.1.1.2s.1.1.1.2c.4.6 1.2 1.1 1.9 1.3.7-.9 1.5-1.8 2.2-2.8-1.6-6 0-11.7 1.8-16.9zm-26-15.9c5-2.4 9-4.1 9.9-4.5.3-.6.6-1.4.9-2.6.1-.3.2-.5.3-.8 1-2.7 2.7-2.8 3.5-3v-.2c.1-1.1.5-2 1-2.8-8.8 2.5-18 5.5-28 11.7-.1.1-.2.2-.4.2C11.3 34.5 3 40.3 1.3 51c2.4-2.7 6-5.6 10.5-8.5.1-.1.3-.2.5-.3.2-.1.5-.3.7-.4 1.2-.7 2.4-1.4 3.6-2.2 2.2-1.2 4.5-2.4 6.7-3.5 1.8-.8 3.5-1.6 5.1-2.3zm54.9 61.3l-.3-.3c-.8-.6-4.1-1.2-5.5-2.3-.4-.3-1.1-.7-1.7-1.1-1.6-.9-3.5-1.8-3.5-2.1v-.1c-.2-1.7-.2-7 .1-8.8.3-1.8.7-4.4.8-5.1.1-.6.5-1.2.1-1.2h-.4c-.2 0-.4.1-.8.1-1.5.3-4.3.6-6.6.4-.9-.1-1.6-.2-2-.3-.5-.1-.7-.2-.9-.3H62.3c-.4.5 0 2.7.6 4.8.3 1.1.8 2 1.2 3 .3.8.6 1.8.8 3.1 0 .2.1.4.1.7.2 2.8.3 3.6-.2 4.9-.1.3-.3.6-.4 1-.4.9-.7 1.7-.6 2.3 0 .2.1.4.1.5.2.4.6.7 1.2.8.2 0 .3.1.5.1.3 0 .6.1.9.1 3.4 0 5.2 0 8.6.4 2.5.4 3.9.6 5.1.5.4 0 .9-.1 1.4-.1 1.2-.2 1.8-.5 1.9-.9-.1.2-.1.1-.2-.1zM60.2 16.4zm-.5 1.7zm3.8.5c.1 0 .3.1.5.1.4.1.7.2 1.2.3.3.1.6.1.9.1h1.3c.3-.1.7-.1 1-.2.7-.2 1.5-.4 2.7-.6h.3c.3 0 .6.1.9.3.1.1.2.1.4.2.3.2.8.2 1.2.4h.1c.1 0 .1.1.2.1.6.3 1.3.7 1.9 1.1l.3.3c.9-.1 1.6-.2 2.1-.2h.1c-.2-.4-.3-1.3-1.8-.6-.6-.7-.8-1.3-2.1-.9-.1-.2-.2-.3-.3-.4l-.1-.1c-.1-.1-.2-.3-.3-.4 0-.1-.1-.1-.1-.2-.2-.3-.5-.5-.9-.7-.7-.4-1.5-.6-2.3-.5-.2 0-.4.1-.6.2-.1 0-.2.1-.2.1-.1 0-.2.1-.3.2-.5.3-1.3.8-2.1 1-.1 0-.1 0-.2.1-.2 0-.4.1-.5.1H66.5h-.1c-.4-.1-1.1-.2-2-.5-.1 0-.2-.1-.3-.1-.9-.2-1.8-.5-2.7-.8-.3-.1-.7-.2-1-.3-.1 0-.1 0-.2-.1h-.1s-.1 0-.1-.1c-.3-.3-.7-.6-1.3-.8-.5-.2-1.2-.4-2.1-.5-.2 0-.5 0-.7.1-.4.2-.8.6-1.2.9.1.1.3.3.4.5.1.2.2.4.3.7l-.6-.6c-.5-.4-1.1-.8-1.7-.9-.8-.2-1.4.4-2.3.9 1 0 1.8.1 2.5.4.1 0 .1 0 .2.1h.1c.1 0 .2.1.3.1.9.4 1.8.6 2.7.6h1.3c.5 0 .8-.1 1.1-.1.1 0 .4 0 .7-.1h2.2c.4.4.9.6 1.6.8z" style=fill:#88ce02 /><path d="M100 51.8c0-19.5-12.5-36.1-30-42.1.1-1.2.2-2.4.3-3.1.1-1.5.2-3.9-.5-4.9-1.6-2.3-9.1-2.1-10.5-.1-.4.6-.7 3.6-.6 5.9-1.1-.1-2.2-.1-3.3-.1-16.5 0-30.9 9-38.6 22.3-2.4 1.4-4.7 2.8-6.1 4C5.4 38 2.2 43.2 1 47c-1.6 4.7-1.1 7.6.4 5.8 1.2-1.5 6.6-5.9 10.1-8.2-.4 2.3-.6 4.8-.6 7.2 0 21 14.5 38.5 34 43.3-.1 1.1.1 2 .7 2.6.9.8 3.2 2 6.4 1.6 2.9-.3 3.5-.5 3.2-2.9h.2c2.7 0 5.3-.2 7.8-.7.1.1.2.2.4.3 1.5 1 7.1.8 9.6.7s6.2.9 8.6.5c2.9-.5 3.4-2.3 1.6-3.2-1.5-.8-3.8-1.3-6.7-3.1C90.6 83.4 100 68.7 100 51.8zM60.1 5.5c0-.5.1-1.5.2-2.1 0-.2 0-.4.1-.5v-.1c.1-.5 1-1.5 4.1-1.5 2.9 0 4.2.9 4.3 1.4v.1c0 .1 0 .3.1.5.1.8.2 1.9.1 2.7 0 .5-.1 2.1-.2 2.9 0 .1 0 .3-.1.5v.1c0 .2-.1.3-.1.5-.1.5-.2 1.1-.4 1.8-.1.6-.5 1.2-.9 1.7-.2.3-.5.5-.7.5-1.1.3-3.1.3-4.2 0-.3-.1-.5-.2-.8-.4 0-.1-.1-.1-.1-.2-.6-.9-.9-1.7-1-2.9 0-.4-.1-.6-.1-.9v-.1c-.1-.6-.2-1-.2-1.6v-.3c-.1-1.3-.1-2.1-.1-2.1zm-.4 7.5v-.4c.6.6 1.3 1.3 1.8 1.7.2.2.5.3.8.3.2 0 .3 0 .5.1h1.6c.8 0 1.6.1 2 0 .1 0 .2 0 .3-.1.6-.3 1.4-1 2.1-1.6 0 .6.1 1.2.1 1.7v1.5c0 .3 0 .5.1.7-.1.1-.2.1-.4.2-.7.4-1.7 1-2.3.9-.5-.1-1.5-.3-2.6-.7-1.2-.3-2.4-.8-3.2-1.2 0 0-.1 0-.1-.1-.2-.3-.4-.5-.6-.7-.3-.4-.5-.6-.5-.7.3-.4.4-.9.4-1.6zm.5 3.4zm-7.3-.3c.6.1 1.2.5 1.7.9.2.2.5.4.6.6-.1-.2-.2-.5-.3-.7-.1-.2-.3-.4-.4-.5.4-.3.8-.7 1.2-.9.2-.1.4-.1.7-.1.9.1 1.6.2 2.1.5.6.2 1 .5 1.3.8 0 0 .1 0 .1.1h.1c.1 0 .1 0 .2.1.3.1.6.2 1 .3.9.3 1.9.6 2.7.8.1 0 .2.1.3.1.9.2 1.6.4 2 .5h.4c.2 0 .4 0 .5-.1.1 0 .1 0 .2-.1.7-.2 1.5-.7 2.1-1 .1-.1.2-.1.3-.2.1 0 .2-.1.2-.1.2-.1.4-.2.6-.2.8-.2 1.7.1 2.3.5.3.2.6.4.9.7 0 .1.1.1.1.2.1.2.2.3.3.4l.1.1c.1.1.2.2.3.4 1.3-.4 1.5.2 2.1.9 1.6-.7 1.7.2 1.8.6h-.1c-.5 0-1.2 0-2.1.2l-.3-.3c-.5-.4-1.2-.8-1.9-1.1-.1 0-.1-.1-.2-.1h-.1c-.4-.2-.8-.2-1.2-.4-.1-.1-.2-.1-.4-.2-.3-.1-.6-.3-.9-.3h-.3c-1.2.1-2 .4-2.7.6-.3.1-.7.2-1 .2-.4.1-.8.1-1.3 0-.3 0-.6-.1-.9-.1-.5-.1-.8-.2-1.2-.3-.2 0-.3-.1-.5-.1h-.1c-.6-.2-1.2-.3-1.8-.4h-.1-2.1c-.4.1-.6.1-.7.1-.3 0-.7.1-1.1.1h-1.3c-.9 0-1.9-.2-2.7-.6-.1 0-.2-.1-.3-.1H53c-.1 0-.1 0-.2-.1-.7-.3-1.6-.4-2.5-.4 1.2-.8 1.8-1.4 2.6-1.3zm6.8 2zm-15.2 4.1c.1-.7.4-1.4.9-2 .1-.1.2-.2.2-.3l.8-.8c.9-.6 1.9-1.1 3-1.3.5-.1 1-.2 1.4-.2H52c.3 0 .6.1.9.1.1 0 .2 0 .2.1.1.1.2.1.4.2.4.2.8.3 1.3.4.2 0 .5.1.7.1.7.1 1.5.1 2.3.1H58.7c.4 0 .7-.1 1-.1H61.7c.6.1 1.1.2 1.7.4.2 0 .4.1.6.2.3.1.7.2 1.1.3.6.1 1.1.2 1.5.2.6 0 1.1-.1 1.6-.2.2 0 .3-.1.5-.1.5-.1 1-.3 1.7-.4.2 0 .5-.1.7-.1h.6c.2 0 .4.1.5.2l.1.1h.1c.1 0 .1 0 .2.1.2.1.3.1.4.1h.2c.1.1.3.1.4.2.4.2 1 .6 1.6.9.1.1.2.2.4.2.1.1.2.1.3.2.2.1.3.3.4.3l.1.1c1.1 1.4 1.8 3.3 1.6 5.3-.3 1.5-1.6.7-2.5.3 0 0-.1 0-.1-.1-.3-.1-.6-.2-.9-.4-.2-.1-.4-.1-.5-.2-1.2-.4-2.5-.7-4-.7-2 0-4.6.1-6.8.8-3 .8-4 .8-5.3.1-.8-.4-1.8-1.1-2.6-1.7-.1-.1-.2-.1-.2-.2-.1-.1-.1-.1-.2-.1-.3-.2-.6-.4-.6-.5l-.1-.1c-.2.3-.6 1-.8 1.4v.1c-.1 1.7-1 4.2-2.6 5.6-.2.1-.4.3-.6.4-.2.1-.5.2-.7.3-.7.2-1.4.2-1.9-.2-.5-.3-1.3-.7-2.3-1.1 2 1.6 3 2.8 3.9 4.9.7 1.7 1.7 4 3.9 6.5l.3.3c1.1 0 2.1.2 3 .7.4.2.7.4 1 .7.2.2.4.3.5.5.5.4.9.8.8 1.3v.1s0 .1-.1.1c-.1.2-.3.5-.5.7-.1.1-.4.4-.6.7-.1.1-.2.2-.3.2-.1.1-.4.3-.7.6-.2.2-.4.3-.5.4-.2.1-.4.4-.6.5-.3.1-.5.2-.8.1-.3 0-.7-.2-1-.3-.5-.3.1-.3-.5-.8-1.4-1-2.2-1.7-1.9-3.4v-.2c-.2-.1-.3-.3-.5-.4-3.9-3-10.1-4.9-11.5-8.3-.9-2.3-1-3.4-.2-4.4.4-.5.8-1 1-1.4 1.3-2.3.9-4.4 2.4-5.4 1.8-1.2 3.3.2 4.1 1.4-.5-2.1-2.3-2.6-2.3-2.8.3.1.3-.1.3-.3zm29 20s-.1 0 0 0c-.1 0-.1 0 0 0-.9.1-3.3.3-5.4.3h-.9c-.7 0-1.3-.1-1.8-.2-.1 0-.2 0-.3-.1-.7-.2-1.6-.5-2.4-.8-.6-.2-1.2-.5-1.7-.7-1.1-.5-2.1-1.1-2.3-1.3-.5-1.4-.7-2.7-.7-3.4.8-.4 1.3-.7 1.9-1.4-1.7.3-2.4.2-3.4-.4-1-.5-2.6-2.2-3.6-3.4 1-1.2 1.7-2.9 1.4-5.1.1-.2.3-.4.4-.6 0 .1.1.1.2.2.7.9 2.4 2 4.6 2.8 1.1.4 2 .1 2.9-.1 4-1 8.1-1.3 11.9-.1.1 0 .2.1.3.1.5.2.9.4 1.4.6.1 0 .1.1.2.1.1.7.2 2-.3 3.5-.1.3-.2.6-.4.9-.2.3-.3.6-.5 1-.1.3-.2.5-.4.8-.2.4-.3.8-.5 1.3-.4 1.4-.7 3.4-.6 6zm-23.9-9c.4-.2 1-.4 1.5-.8 1.6 1.8 3.3 3 5 4.1.3 1.4.5 2.4.8 4.2h-.2c-.1.5-.1.9-.1 1.3-1-.4-2.2-.5-2.6-.5-3.7-4.3-3-6-4.4-8.3zm-32.9 6.5c-1.3.7-2.5 1.4-3.6 2.2-.2.1-.5.3-.7.4-.1.1-.3.2-.5.3-4.5 2.9-8.1 5.8-10.5 8.5 1.7-10.8 10-16.5 14.3-19.2.1-.1.2-.2.4-.2 10-6.2 19.2-9.2 28-11.7-.5.8-.9 1.7-1 2.8v.2c-.8.1-2.5.2-3.5 3-.1.2-.2.5-.3.8-.3 1.2-.6 2-.9 2.6-.9.4-5 2.2-9.9 4.5-1.6.8-3.3 1.6-5 2.4-2.3 1-4.6 2.2-6.8 3.4zm28 24.8s0-.1 0 0c-.4-.3-.8-.5-1.2-.7h-.1c-.4-.2-.7-.3-1.1-.5h-.1c-.4-.1-.8-.3-1.3-.4h-.2c-.4-.1-.8-.2-1.3-.2h-.1c-.5-.1-1-.1-1.5-.1H35.9c-3.7.1-6.5-.4-8.6-1.5-.7-.4-1.4-.8-1.9-1.3-.9-.7-1.5-1.6-2.1-2.6-.4-.7-.7-1.4-.9-2.2-.4-1.2-.6-2.5-.8-3.9 0-.5-.1-1-.2-1.5l-.3-1.5c-.6-2.9-1.6-5.5-3.2-7.2 6.3-3.5 15-7.9 17.8-8.8.3-.1.6-.2.8-.3-.3 1.1.4 2.7.9 3.9 2.1 4.9 8.6 5.4 12.9 9.1 0 .5 0 1.1.2 1.6.5.6 1.7 1.6 1.7 1.6-.2.2-.1.7-.1.7.9 1 2.3 1 2.3 1-1.8 5.2-3.4 10.9-1.9 16.9-.7 1-1.5 1.8-2.2 2.8-.7-.2-1.4-.6-1.9-1.3 0-.1-.1-.1-.1-.2s-.1-.1-.1-.2l-1.5-1.8-.1-.1c-.5-.4-1.2-.9-1.9-1.3zm7.9 33.6c-1.3.1-2.9 0-4.3-.3h-.2-.1c-1.5-.8-2.1-1.2-2-2.4 0-.2 0-.3.1-.5 0-.1.1-.2.1-.3.5-1.1 2.1-2.2 3.4-3.2-.8 0-1.8.7-1.7-.1.2-1.5.9-1.3 1.3-2.1-.2-.3 3.3-.2 3.8.3v.1c0 .7.7 1.7.5 2.2-.1.3-.4-.2-.8-.3.2 1.1.6 3.1 1.3 4.6.1.1.1.2.1.3 0 .1.1.2.1.3 0 .7-.4 1.2-1.6 1.4zM59 67.7c0 .9-.3 1.6-.6 2-.7 1.1-1.7 1.4-2 3.2.4-.6 1.1-1.1 1.1-.9 0 .8-.1 1.4-.1 2v.2c-.1.6-.2 1.1-.3 1.6-.2.9-.5 1.7-.7 2.4-.4 1.2-.9 2.1-1.3 3.1l-.6 1.5c-.6 1.7-.4 5.6-.6 5.7-1.6.3-4.1-.3-4.7-.6.3-2.2.4-4.5.5-6.9.1-2.1.3-4.3.9-6.6.1-.5.3-1 .4-1.5 0-.1 0-.2.1-.2 0-.1 0-.1.1-.2.5-1.6 1.4-2.7 2.6-4.2.4-.4.7-.9 1.2-1.4-.1-.4-.2-.8-.4-1.3-.7-2.6-1.3-7.3 1.5-16.1.1 0 .2-.1.3-.1.2-.1.7-.5.8-.6.1-.1.3-.2.4-.3.1 0 .1-.1.2-.1l.6-.6 1.1-1.1c.4-.4.7-.5.8-.9v-.2c0-.8-1.1-1.5-1.5-2.1l-.1-.1c.1-.2.1-.4.2-.6 0-.2.1-.5.1-.8 0-.2.1-.5.1-.7.1.1.6.4 1.8.7.6.2 1.3.4 2.3.7 1.1.3 2.4.5 3.6.6 2.9.2 5.6 0 6.7-.2h.3v.1c0 .1 0 .2-.1.3v.9c0 .2 0 .3.1.5v.1c0 .4.1.7.2 1.1 0 .3.1.5.1.7v.1c0 .3.1.5.1.7 0 .2.1.3.1.5.1.2.1.4.2.6v.2c.1.4.2.8.2 1.1 1 5.7 2.3 12.9-1.1 16.7.2.8.3 1.9 0 3.2-.1.7-.3 1.4-.6 2.2-.2.5-.3 1-.5 1.5h-.3c-4.5.6-7.1.2-8.3-.1.5-1.6 1.7-3.3 3.7-3.2-.1-3.7-1.1-5-2-7.6 1.3-3 1.3-5.7 2-9.2v-.2c.2-.8.3-1.6.6-2.5-.4.5-.8 1.5-1.2 2.6v.1c-.5 1.5-.9 3.4-1.2 4.8-.2.8-.4 1.6-.7 2.4-.2.5-.4.9-.6 1.4-1.5 1.9-3 3.9-5.5 5.6zm18.5 24.9c1.5 1.1 4.7 1.8 5.5 2.3l.3.3c.1.1.1.2.1.3-.1.4-.7.7-1.9.9-.5.1-.9.1-1.4.1-1.3 0-2.6-.2-5.1-.5-3.4-.5-5.2-.4-8.6-.4-.3 0-.6 0-.9-.1-.2 0-.4-.1-.5-.1-.6-.2-1-.5-1.2-.8-.1-.2-.1-.3-.1-.5-.1-.7.2-1.5.6-2.3.2-.4.3-.7.4-1 .5-1.3.4-2.1.2-4.9 0-.2-.1-.4-.1-.7-.2-1.3-.5-2.3-.8-3.1-.4-1.1-.9-1.9-1.2-3-.6-2.1-1-4.3-.6-4.8H62.5c.2.1.5.2.9.3.5.1 1.1.2 2 .3 2.2.2 5.1-.2 6.6-.4.3-.1.6-.1.8-.1h.4c.4 0 .1.6-.1 1.2-.1.7-.5 3.3-.8 5.1-.3 1.8-.2 7.1-.1 8.8v.1c0 .3 1.9 1.2 3.5 2.1.7.2 1.4.5 1.8.9zm4.8-48.2c0 .1 0 .1 0 0-.1.1-.2.2-.2.3 0-.1-.1-.1-.1-.2 0 .1 0 .2-.1.2-.2.9-.6 2.4-2.2 4.1-.4.4-.7.6-1 .7-.5.1-.9 0-1.5-.1-.9-.2-1.3-.6-2.2-1.1-.1-.6-.3-1.3-.4-1.8 0-.3-.1-.5-.1-.6v-1l.4-.4s.7-1 1.8-1 2.2-.2 2.5-.5v-.1-.3c0-.1 0-.2-.1-.3-.4-1.4-2.1-1.8-1.4-4.8 0-.2.3-.5 1.2-.5-1.4-.3-2-.4-3-1.3.5-1.1 1-1.9 1.3-2.6.8-1.5.3-3.5.3-3.5.8-.3 1.6-.7 1.7-1 .9-2.8-.7-5.5-2.5-7.2 1.2-.1 2.6.1 3.6 1.1 2.4 2.4 1.8 5 1 6.8.6.7 2.1 2.9 1.2 5.3-.2.6-1.4.6-2.3 2.1 2.3-1.3 3.7-1 4.2.7 1 2.4-.6 5.3-2.1 7z"/><path d="M22 53.4v-.2c0-.2-.1-.5-.2-.9s-.1-.8-.2-1.3c-.5-4.7-1.9-9.4-4.9-11.3 3.7-2 16.8-8.5 21.9-10.5 2.9-1.2.8-.4-.2 1.4-.8 1.4-.3 2.9-.5 3.2-.6.8-12.6 10.5-15.9 19.6zm32.2-2.3c-3.4 3.8-12 11-18.2 11.4 8.7-.2 12.2 4.1 14.7 9.7 2.6-5.2 2.7-10.3 2.6-16.1 0-2.6 1.8-6 .9-5zm5.3-23L54.3 24s-1.1 3.1-1 4.6c.1 1.6-1.8 2.7-.9 3.6.9.9 3.2 2.5 4 3.4.7.9 1.1 7.1 1.1 7.1l2.2 2.7s1-1.8 1.1-6.3c.2-5.4-2.9-7.1-3.3-8.6-.4-1.4.6-2.9 2-2.4zm3.1 45.6l3.9.3s1.2-2.2 2.1-3.5c.9-1.4.4-1.6 0-4.6-.4-3-1.4-9.3-1.2-13.6l-3.1 10.2s1.8 5.6 1.6 6.4c-.1.8-3.3 4.8-3.3 4.8zm5 18.8c-1.1 0-2.5-.4-3.5-.8l-1 .3.2 4s5.2.7 4.6-.4c-.6-1.2-.3-3.1-.3-3.1zm12 .6c-1 0-.3.2.4 1.2.8 1 .1 2-.8 2.3l3.2.5 1.9-1.7c.1 0-3.7-2.3-4.7-2.3zM73 76c-1.6.5-4.2.8-5.9.8-1.7.1-3.7-.1-5-.5v1.4s1.2.5 5.4.5c3.5.1 5.7-.8 5.7-.8l.9-.8c-.1.1.5-1.1-1.1-.6zm-.2 3.1c-1.6.6-3.9.6-5.6.7-1.7.1-3.7-.1-5-.5l.1 1.4s.7.3 4.9.4c3.5.1 5.7-.7 5.7-.7l.3-.5c-.1-.1.3-1-.4-.8zm5.9-42.7c-.9-.8-1.4-2.4-1.5-3.3l-1.9 2.5.7 1.2s2.5.1 2.8.1c.4 0 .3-.1-.1-.5zM69 14.7c.6-.7.2-2.7.2-2.7L66 14.6l-4.4-.8-.5-1.3-1.3-.1c.8 1.8 1.8 2.5 3.3 3.1.9.4 4.5.9 5.9-.8z" style=opacity:.4;fill-rule:evenodd;clip-rule:evenodd /></svg></a></div></div>',t&&(n.style.position="absolute",n.style.top=e?"calc(100% - 42px)":"calc(100% - 51px)"),i&&(sp(i)?n.style.cssText=i:"object"==typeof i&&(i.data="root",jd.set(n,i).kill()),n.style.top&&(n.style.bottom="auto"),n.style.width&&jd.set(n,{xPercent:-50,left:"50%",right:"auto",data:"root"}).kill()),!e&&n.offsetWidth<600&&(n.setAttribute("class","gs-dev-tools minimal"),t&&(n.style.top="calc(100% - 42px)")),n}(e.container,e.minimal,e.css),_=function(t){return v.querySelector(t)},b=function(t,i){return!1!==e.persist&&hp&&sessionStorage.setItem("gs-dev-"+t+e.id,i),i},x=function(t){var i;if(!1!==e.persist&&hp)return i=sessionStorage.getItem("gs-dev-"+t+e.id),"animation"===t?i:"loop"===t?"true"===i:parseFloat(i)},T=_(".playhead"),w=_(".timeline-track"),k=_(".progress-bar"),S=_(".time"),E=_(".duration"),D=0,C=_(".in-point"),P=_(".out-point"),A=0,M=100,I=_(".animation-list"),L=_(".animation-label"),O=_(".play-pause"),F=(m=O,(g=jd.timeline({data:"root",parent:Zd,onComplete:function(){return g.kill()}})).to(m.querySelector(".play-1"),{duration:.4,attr:{d:"M5.75,3.13 C5.75,9.79 5.75,16.46 5.75,23.13 4.08,23.13 2.41,23.13 0.75,23.13 0.75,16.46 0.75,9.79 0.75,3.12 2.41,3.12 4.08,3.12 5.75,3.12"},ease:"power2.inOut",rotation:360,transformOrigin:"50% 50%"}).to(m.querySelector(".play-2"),{duration:.4,attr:{d:"M16.38,3.13 C16.38,9.79 16.38,16.46 16.38,23.13 14.71,23.13 13.04,23.13 11.38,23.13 11.38,16.46 11.38,9.79 11.38,3.12 13.04,3.12 14.71,3.12 16.38,3.12"},ease:"power2.inOut",rotation:360,transformOrigin:"50% 50%"},.05),g),R=!1,B=_(".loop"),N=function(t){var e=jd.timeline({data:"root",id:"loop",parent:Zd,paused:!0,onComplete:function(){return e.kill()}});return e.to(t,{duration:.5,rotation:360,ease:"power3.inOut",transformOrigin:"50% 50%"}).to(t.querySelectorAll(".loop-path"),{duration:.5,fill:"#91e600",ease:"none"},0),e}(B),H=_(".time-scale select"),V=_(".time-scale-label"),j=function(t,e,o){return function(u){var c,h=w.getBoundingClientRect(),d=t.getBoundingClientRect(),p=d.width*e,f=jd.getProperty(t,"x"),m=h.left-d.left-p+f,g=h.right-d.right+(d.width-p)+f,y=m;o&&(t!==C&&(c=C.getBoundingClientRect()).left&&(m+=c.left+c.width-h.left),t!==P&&(c=P.getBoundingClientRect()).left&&(g-=h.left+h.width-c.left)),a=R,this.applyBounds({minX:m,maxX:g}),i=l.duration()/h.width,n=-y*i,s?l.pause():l.pause(n+i*this.x),this.target===T&&(this.activated&&(this.allowEventDefault=!1),this.activated=!0),r=!0}},U=us.create(T,{type:"x",cursor:"ew-resize",allowNativeTouchScrolling:!1,allowEventDefault:!0,onPress:j(T,.5,!0),onDrag:function(){var t=n+i*this.x;t<0?t=0:t>l._dur&&(t=l._dur),s||l.time(t),k.style.width=Math.min(M-A,Math.max(0,t/l._dur*100-A))+"%",S.innerHTML=t.toFixed(2)},onRelease:function(){R||l.resume()}})[0],z=function(){A=0,M=100,C.style.left="0%",P.style.left="100%",b("in",A),b("out",M),W(!0)},q=us.create(C,{type:"x",cursor:"ew-resize",zIndexBoost:!1,allowNativeTouchScrolling:!1,allowEventDefault:!0,onPress:j(C,1,!0),onDoubleClick:z,onDrag:function(){A=(n+i*this.x)/l.duration()*100,l.progress(A/100),W(!0)},onRelease:function(){A<0&&(A=0),pp(),C.style.left=A+"%",b("in",A),jd.set(C,{x:0,data:"root",display:"block"}),R||l.resume()}})[0],G=us.create(P,{type:"x",cursor:"ew-resize",allowNativeTouchScrolling:!1,allowEventDefault:!0,zIndexBoost:!1,onPress:j(P,0,!0),onDoubleClick:z,onDrag:function(){M=(n+i*this.x)/l.duration()*100,l.progress(M/100),W(!0)},onRelease:function(){M>100&&(M=100),pp(),P.style.left=M+"%",b("out",M),jd.set(P,{x:0,data:"root",display:"block"}),a||($(),l.resume())}})[0],W=function(t){if(!U.isPressed||!0===t){var e,i=f||-1!==o._repeat?100*l.progress()||0:o.totalTime()/o.duration()*100,n=o._repeat&&o._rDelay&&o.totalTime()%(o.duration()+o._rDelay)>o.duration();i>100&&(i=100),i>=M?!f||l.paused()||U.isDragging?(i===M&&-1!==o._repeat||(i=M,l.progress(i/100)),!R&&(M<100||1===o.totalProgress()||-1===o._repeat)&&Y()):n||(i=A,(e=l._targets&&l._targets[0])===o&&e.seek(c+(h-c)*A/100),o._repeat>0&&!A&&100===M?1===o.totalProgress()&&l.totalProgress(0,!0).resume():l.progress(i/100,!0).resume()):i<A&&(i=A,l.progress(i/100,!0)),i===D&&!0!==t||(k.style.left=A+"%",k.style.width=Math.max(0,i-A)+"%",T.style.left=i+"%",S.innerHTML=l._time.toFixed(2),E.innerHTML=l._dur.toFixed(2),r&&(T.style.transform="translate(-50%,0)",T._gsap.x="0px",T._gsap.xPercent=-50,r=!1),D=i),l.paused()!==R&&K()}},X=function(t){if(!U.isPressed){var e=t.target.getBoundingClientRect(),i=((t.changedTouches?t.changedTouches[0]:t).clientX-e.left)/e.width*100;if(i<A)return A=i=Math.max(0,i),C.style.left=A+"%",void q.startDrag(t);if(i>M)return M=i=Math.min(100,i),P.style.left=M+"%",void G.startDrag(t);l.progress(i/100).pause(),W(!0),U.startDrag(t)}},$=function(){if(l.progress()>=M/100){Sp(l,e);var t=l._targets&&l._targets[0];t===o&&t.seek(c+(h-c)*A/100),l._repeat&&!A?l.totalProgress(0,!0):l.reversed()||l.progress(A/100,!0)}F.play(),l.resume(),R&&y.update(),R=!1},Y=function(){F.reverse(),l&&l.pause(),R=!0},K=function(){R?$():Y()},Q=function(t){if(!U.isPressed){Sp(l,e);var i=l._targets&&l._targets[0];i===o&&i.seek(c+(h-c)*A/100),l.progress(A/100,!0),R||l.resume()}},Z=function(t){if(b("loop",f=t),f){if(N.play(),l.progress()>=M/100){var e=l._targets&&l._targets[0];e===o&&e.seek(c+(h-c)*A/100),o._repeat&&!A&&100===M?l.totalProgress(0,!0):l.progress(A/100,!0),$()}}else N.reverse()},J=function(){return Z(!f)},tt=function(){var t,i,n=fp(u&&!e.globalSync?u:Wd,!0),r=I.children,s=0;for(u&&!e.globalSync?n.unshift(u):e.hideGlobalTimeline||n.unshift(Wd),i=0;i<n.length;i++)(t=r[i]||dp("option",I)).animation=n[i],s=i&&n[i].vars.id===n[i-1].vars.id?s+1:0,t.setAttribute("value",t.innerHTML=n[i].vars.id+(s?" ["+s+"]":n[i+1]&&n[i+1].vars.id===n[i].vars.id?" [0]":""));for(;i<r.length;i++)I.removeChild(r[i])},et=function(t){var i,n,r=parseFloat(H.options[H.selectedIndex].value)||1;if(!arguments.length)return o;if(sp(t)&&(t=wp(t)),t instanceof Xd||console.warn("GSDevTools error: invalid animation."),t!==o){if(o&&(o._inProgress=A,o._outProgress=M),o=t,l&&(r=l.timeScale(),l._targets&&l._targets[0]===u&&(u.resume(),l.kill())),A=o._inProgress||0,M=o._outProgress||100,C.style.left=A+"%",P.style.left=M+"%",d&&(b("animation",o.vars.id),b("in",A),b("out",M)),c=0,n=e.maxDuration||Math.min(1e3,mp(o)),o===Wd||e.globalSync){if(Tp(),l=$d,Yd&&Yd!==y&&console.warn("Error: GSDevTools can only have one instance that's globally synchronized."),Yd=y,o!==Wd)for((h=(i=o).totalDuration())>99999999&&(h=i.duration());i.parent;)c=c/i._ts+i._start,h=h/i._ts+i._start,i=i.parent;else h=Wd.duration();h-c>n&&(h=c+n),Wd.pause(c),$d.vars.time=h,$d.invalidate(),$d.duration(h-c).timeScale(r),R?$d.progress(1,!0).pause(0,!0):Jd(.01,(function(){$d.resume().progress(A/100),R&&$()}))}else{if(Yd===y&&(Yd=null),c=Math.min(A*o.duration(),o.time()),o!==u&&u){for((h=(i=o).totalDuration())>99999999&&(h=i.duration());i.parent.parent&&i!==u;)c=c/(i._ts||i._pauseTS)+i._start,h=h/(i._ts||i._pauseTS)+i._start,i=i.parent;h-c>n&&(h=c+n),u.pause(c),l=jd.to(u,{duration:h-c,time:h,ease:"none",data:"root",parent:Zd})}else l=o,!f&&l._repeat&&Z(!0);l.timeScale(r),$d.pause(),Wd.resume(),l.seek(0)}E.innerHTML=l.duration().toFixed(2),bp(I,o.vars.id,L)}},it=function(t){et(I.options[I.selectedIndex].animation),t.target&&t.target.blur&&t.target.blur(),R&&$()},nt=function(t){var e,i=parseFloat(H.options[H.selectedIndex].value)||1;l.timeScale(i),b("timeScale",i),R||(l.progress()>=M/100?((e=l._targets&&l._targets[0])===o&&e.seek(c+(h-c)*A/100),l.progress(A/100,!0).pause()):l.pause(),Jd(.01,(function(){return l.resume()}))),V.innerHTML=i+"x",H.blur&&H.blur()},rt=jd.to([_(".gs-bottom"),_(".gs-top")],{duration:.3,autoAlpha:0,y:50,ease:"power2.in",data:"root",paused:!0,parent:Zd}),st=!1,at=function(t){us.hitTest(t,v)||U.isDragging||q.isDragging||G.isDragging||ut.restart(!0)},ot=function(){st||(rt.play(),ut.pause(),st=!0)},lt=function(){ut.pause(),st&&(rt.reverse(),st=!1)},ut=Jd(1.3,ot).pause(),ct=function(t){var i;ep&&!ip&&(ip=Wd._start),d=!t,i=e.animation,(u=i instanceof Xd?i:i?jd.getById(i):null)&&!u.vars.id&&(u.vars.id="[no id]"),Tp(),tt();var n=wp(x("animation"));n&&(n._inProgress=x("in")||0,n._outProgress=x("out")||100),e.paused&&Y(),o=null,et(u||n||Wd);var r=e.timeScale||x("timeScale"),s=n===o;r&&(bp(H,r,V,r+"x"),l.timeScale(r)),100===(A=("inTime"in e?gp(e.inTime,o,0,0):s?n._inProgress:0)||0)&&!e.animation&&n&&(et(Wd),A=gp(e.inTime,o,0,0)||0),A&&(C.style.left=A+"%",C.style.display=P.style.display="block"),(M=("outTime"in e?gp(e.outTime,o,100,A):s?n._outProgress:0)||100)<A&&(M=100),100!==M&&(P.style.left=M+"%",C.style.display=P.style.display="block"),(f="loop"in e?e.loop:x("loop"))&&Z(!0),e.paused&&l.progress(A/100,!0).pause(),ep&&o===Wd&&ip&&e.globalSync&&!R&&l.time(-ip,!0),W(!0)};vp(I,"change",it),vp(I,"mousedown",tt),vp(O,"mousedown",K),vp(_(".seek-bar"),"mousedown",X),vp(_(".rewind"),"mousedown",Q),vp(B,"mousedown",J),vp(H,"change",nt),"auto"===e.visibility?(vp(v,"mouseout",at),vp(v,"mouseover",lt)):"hidden"===e.visibility&&(st=!0,rt.progress(1)),!1!==e.keyboard&&(Kd&&e.keyboard?console.warn("[GSDevTools warning] only one instance can be affected by keyboard shortcuts. There is already one active."):(Kd=y,vp(qd,"keydown",p=function(t){var e,i=t.keyCode?t.keyCode:t.which;32===i?K():38===i?(e=parseFloat(xp(H,-1,V)),l.timeScale(e),b("timeScale",e)):40===i?(e=parseFloat(xp(H,1,V)),l.timeScale(e),b("timeScale",e)):37===i?Q():39===i?l.progress(M/100):76===i?J():72===i?st?lt():ot():73===i?(A=100*l.progress(),b("in",A),C.style.left=A+"%",W(!0)):79===i&&(M=100*l.progress(),b("out",M),P.style.left=M+"%",W(!0))}))),jd.set(T,{xPercent:-50,x:0,data:"root"}),jd.set(C,{xPercent:-100,x:0,data:"root"}),C._gsIgnore=P._gsIgnore=T._gsIgnore=O._gsIgnore=B._gsIgnore=!0,jd.killTweensOf([C,P,T]),ct(ep),ep&&Jd(1e-4,ct,[!1],this),jd.ticker.add(W),this.update=function(t){var e,i,n;Yd===y&&($d.paused()&&!t||Tp(),o===Wd&&(e=Wd._time,Wd.progress(1,!0).time(e,!0),e=($d._dp._time-$d._start)*$d._ts,1e3===(n=Math.min(1e3,Wd.duration()))&&(n=Math.min(1e3,mp(Wd))),1!=(i=$d.duration()/n)&&n&&(A*=i,M<100&&(M*=i),$d.seek(0),$d.vars.time=n,$d.invalidate(),$d.duration(n),$d.time(e),E.innerHTML=n.toFixed(2),C.style.left=A+"%",P.style.left=M+"%",W(!0))))},this.kill=function(){_p(I,"change",it),_p(I,"mousedown",tt),_p(O,"mousedown",K),_p(_(".seek-bar"),"mousedown",X),_p(_(".rewind"),"mousedown",Q),_p(B,"mousedown",J),_p(H,"change",nt),U.disable(),q.disable(),G.disable(),jd.ticker.remove(W),_p(v,"mouseout",at),_p(v,"mouseover",lt),v.parentNode.removeChild(v),Yd===y&&(Yd=null),Kd===y&&(Kd=null,_p(qd,"keydown",p)),delete cp[e.id+""]},this.minimal=function(t){var i,n=v.classList.contains("minimal");if(!arguments.length||n===t)return n;t?v.classList.add("minimal"):v.classList.remove("minimal"),e.container&&(v.style.top=t?"calc(100% - 42px)":"calc(100% - 51px)"),U.isPressed&&(s=!0,U.endDrag(U.pointerEvent),s=!1,i=100*l.progress(),k.style.width=Math.max(0,i-A)+"%",T.style.left=i+"%",T.style.transform="translate(-50%,0)",T._gsap.x="0px",T._gsap.xPercent=-50,U.startDrag(U.pointerEvent,!0))},this.animation=et,this.updateList=tt};Ep.version="3.8.0",Ep.globalRecordingTime=2,Ep.getById=function(t){return t?cp[t]:Yd},Ep.getByAnimation=function(t){for(var e in sp(t)&&(t=jd.getById(t)),cp)if(cp[e].animation()===t)return cp[e]},Ep.create=function(t){return new Ep(t)},Ep.register=kp,rp()&&jd.registerPlugin(Ep);var Dp,Cp,Pp,Ap,Mp,Ip,Lp,Op,Fp=function(){return Dp||"undefined"!=typeof window&&(Dp=window.gsap)},Rp={},Bp=function(t){return Op(t).id},Np=function(t){return Rp[Bp("string"==typeof t?Pp(t)[0]:t)]},Hp=function(t){var e,i=Mp;if(t-Lp>=.05)for(Lp=t;i;)((e=i.g(i.t,i.p))!==i.v1||t-i.t1>.2)&&(i.v2=i.v1,i.v1=e,i.t2=i.t1,i.t1=t),i=i._next},Vp={deg:360,rad:2*Math.PI},jp=function(){(Dp=Fp())&&(Pp=Dp.utils.toArray,Ap=Dp.utils.getUnit,Op=Dp.core.getCache,Ip=Dp.ticker,Cp=1)},Up=function(t,e,i,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=Vp[i||Ap(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=Ip.time,n&&(this._next=n,n._prev=this)},zp=function(){function t(t,e){Cp||jp(),this.target=Pp(t)[0],Rp[Bp(this.target)]=this,this._props={},e&&this.add(e)}t.register=function(t){Dp=t,jp()};var e=t.prototype;return e.get=function(t,e){var i,n,r,s=this._props[t]||console.warn("Not tracking "+t+" velocity.");return i=parseFloat(e?s.v1:s.g(s.t,s.p))-parseFloat(s.v2),(n=s.rCap)&&(i%=n)!=i%(n/2)&&(i=i<0?i+n:i-n),r=i/((e?s.t1:Ip.time)-s.t2),Math.round(1e4*r)/1e4},e.getAll=function(){var t,e={},i=this._props;for(t in i)e[t]=this.get(t);return e},e.isTracking=function(t){return t in this._props},e.add=function(t,e){t in this._props||(Mp||(Ip.add(Hp),Lp=Ip.time),Mp=this._props[t]=new Up(this.target,t,e,Mp))},e.remove=function(t){var e,i,n=this._props[t];n&&(e=n._prev,i=n._next,e&&(e._next=i),i?i._prev=e:Mp===n&&(Ip.remove(Hp),Mp=0),delete this._props[t])},e.kill=function(t){for(var e in this._props)this.remove(e);t||delete Rp[Bp(this.target)]},t.track=function(e,i,n){Cp||jp();for(var r,s,a=[],o=Pp(e),l=i.split(","),u=(n||"").split(","),c=o.length;c--;){for(r=Np(o[c])||new t(o[c]),s=l.length;s--;)r.add(l[s],u[s]||u[0]);a.push(r)}return a},t.untrack=function(t,e){var i=(e||"").split(",");Pp(t).forEach((function(t){var e=Np(t);e&&(i.length?i.forEach((function(t){return e.remove(t)})):e.kill(1))}))},t.isTracking=function(t,e){var i=Np(t);return i&&i.isTracking(e)},t.getVelocity=function(t,e){var i=Np(t);return i&&i.isTracking(e)?i.get(e):console.warn("Not tracking velocity of "+e)},t}();zp.getByTarget=Np,Fp()&&Dp.registerPlugin(zp);var qp,Gp,Wp,Xp,$p,Yp,Kp,Qp,Zp,Jp,tf,ef,nf=zp.getByTarget,rf=function(){return qp||"undefined"!=typeof window&&(qp=window.gsap)&&qp.registerPlugin&&qp},sf=function(t){return"number"==typeof t},af=function(t){return"object"==typeof t},of=function(t){return"function"==typeof t},lf=Array.isArray,uf=function(t){return t},cf=1e10,hf=function(t,e,i){for(var n in e)n in t||n===i||(t[n]=e[n]);return t},df=function t(e){var i,n,r={};for(i in e)r[i]=af(n=e[i])&&!lf(n)?t(n):n;return r},pf=function(t,e,i,n,r){var s,a,o,l,u=e.length,c=0,h=cf;if(af(t)){for(;u--;){for(o in s=e[u],a=0,t)a+=(l=s[o]-t[o])*l;a<h&&(c=u,h=a)}if((r||cf)<cf&&r<Math.sqrt(h))return t}else for(;u--;)(a=(s=e[u])-t)<0&&(a=-a),a<h&&s>=n&&s<=i&&(c=u,h=a);return e[c]},ff=function(t,e,i,n,r,s,a){if("auto"===t.end)return t;var o,l,u=t.end;if(i=isNaN(i)?cf:i,n=isNaN(n)?-1e10:n,af(e)){if(o=e.calculated?e:(of(u)?u(e,a):pf(e,u,i,n,s))||e,!e.calculated){for(l in o)e[l]=o[l];e.calculated=!0}o=o[r]}else o=of(u)?u(e,a):lf(u)?pf(e,u,i,n,s):parseFloat(u);return o>i?o=i:o<n&&(o=n),{max:o,min:o,unitFactor:t.unitFactor}},mf=function(t,e,i){return isNaN(t[e])?i:+t[e]},gf=function(t,e){return.05*e*t/Jp},yf=function(t,e,i){return Math.abs((e-t)*Jp/i/.05)},vf={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},_f=function(t,e,i,n){if(e.linkedProps){var r,s,a,o,l,u,c=e.linkedProps.split(","),h={};for(r=0;r<c.length;r++)(a=e[s=c[r]])&&(o=sf(a.velocity)?a.velocity:(l=l||nf(t))&&l.isTracking(s)?l.get(s):0,u=Math.abs(o/mf(a,"resistance",n)),h[s]=parseFloat(i(t,s))+gf(o,u));return h}},bf=function(){(qp=rf())&&(Wp=qp.parseEase,Xp=qp.utils.toArray,Kp=qp.utils.getUnit,Zp=qp.core.getCache,tf=qp.utils.clamp,$p=Wp("power3"),Jp=$p(.05),Qp=qp.core.PropTween,qp.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),Yp=qp.config(),qp.registerPlugin(zp),Gp=1)},xf={version:"3.8.0",name:"inertia",register:function(t){qp=t,bf()},init:function(t,e,i,n,r){Gp||bf();var s=nf(t);if("auto"===e){if(!s)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=s.getAll()}this.target=t,this.tween=i,ef=e;var a,o,l,u,c,h,d,p,f,m=t._gsap,g=m.get,y=e.duration,v=af(y),_=e.preventOvershoot||v&&0===y.overshoot,b=mf(e,"resistance",Yp.resistance),x=sf(y)?y:function(t,e,i,n,r,s){if(void 0===i&&(i=10),void 0===n&&(n=.2),void 0===r&&(r=1),void 0===s&&(s=0),"string"==typeof t&&(t=Xp(t)[0]),!t)return 0;var a,o,l,u,c,h,d,p,f,m,g=0,y=cf,v=e.inertia||e,_=Zp(t).get,b=mf(v,"resistance",Yp.resistance);for(a in m=_f(t,v,_,b),v)vf[a]||(o=v[a],af(o)||((p=p||nf(t))&&p.isTracking(a)?o=sf(o)?{velocity:o}:{velocity:p.get(a)}:(u=+o||0,l=Math.abs(u/b))),af(o)&&(u=sf(o.velocity)?o.velocity:(p=p||nf(t))&&p.isTracking(a)?p.get(a):0,l=tf(n,i,Math.abs(u/mf(o,"resistance",b))),h=(c=parseFloat(_(t,a))||0)+gf(u,l),"end"in o&&(o=ff(o,m&&a in m?m:h,o.max,o.min,a,v.radius,u),s&&(ef===e&&(ef=v=df(e)),v[a]=hf(o,v[a],"end"))),"max"in o&&h>+o.max+1e-10?(f=o.unitFactor||Yp.unitFactors[a]||1,(d=c>o.max&&o.min!==o.max||u*f>-15&&u*f<45?n+.1*(i-n):yf(c,o.max,u))+r<y&&(y=d+r)):"min"in o&&h<+o.min-1e-10&&(f=o.unitFactor||Yp.unitFactors[a]||1,(d=c<o.min&&o.min!==o.max||u*f>-45&&u*f<15?n+.1*(i-n):yf(c,o.min,u))+r<y&&(y=d+r)),d>g&&(g=d)),l>g&&(g=l));return g>y&&(g=y),g>i?i:g<n?n:g}(t,e,v&&y.max||10,v&&y.min||.2,v&&"overshoot"in y?+y.overshoot:_?0:1,!0);for(a in e=ef,ef=0,f=_f(t,e,g,b),e)vf[a]||(o=e[a],of(o)&&(o=o(n,t,r)),sf(o)?c=o:af(o)&&!isNaN(o.velocity)?c=+o.velocity:s&&s.isTracking(a)?c=s.get(a):console.warn("ERROR: No velocity was defined for "+t+" property: "+a),h=gf(c,x),p=0,l=g(t,a),u=Kp(l),l=parseFloat(l),af(o)&&(d=l+h,"end"in o&&(o=ff(o,f&&a in f?f:d,o.max,o.min,a,e.radius,c)),"max"in o&&+o.max<d?_||o.preventOvershoot?h=o.max-l:p=o.max-l-h:"min"in o&&+o.min>d&&(_||o.preventOvershoot?h=o.min-l:p=o.min-l-h)),this._props.push(a),this._pt=new Qp(this._pt,t,a,l,0,uf,0,m.set(t,a,this)),this._pt.u=u||0,this._pt.c1=h,this._pt.c2=p);return i.duration(x),1},render:function(t,e){var i,n=e._pt;for(t=$p(e.tween._time/e.tween._dur);n;)n.set(n.t,n.p,(i=n.s+n.c1*t+n.c2*t*t,Math.round(1e4*i)/1e4+n.u),n.d,t),n=n._next}};"track,untrack,isTracking,getVelocity,getByTarget".split(",").forEach((function(t){return xf[t]=zp[t]})),rf()&&qp.registerPlugin(xf);var Tf,wf,kf,Sf,Ef,Df=function(){return Tf||"undefined"!=typeof window&&(Tf=window.gsap)&&Tf.registerPlugin&&Tf},Cf=function(t){return"function"==typeof t},Pf=Math.atan2,Af=Math.cos,Mf=Math.sin,If=Math.sqrt,Lf=Math.PI,Of=2*Lf,Ff=.3*Lf,Rf=.7*Lf,Bf=1e20,Nf=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,Hf=/(^[#\.][a-z]|[a-y][a-z])/i,Vf=/[achlmqstvz]/i,jf=function(t){return console&&console.warn(t)},Uf=function(t){var e,i=t.length,n=0,r=0;for(e=0;e<i;e++)n+=t[e++],r+=t[e];return[n/(i/2),r/(i/2)]},zf=function(t){var e,i,n,r=t.length,s=t[0],a=s,o=t[1],l=o;for(n=6;n<r;n+=6)(e=t[n])>s?s=e:e<a&&(a=e),(i=t[n+1])>o?o=i:i<l&&(l=i);return t.centerX=(s+a)/2,t.centerY=(o+l)/2,t.size=(s-a)*(o-l)},qf=function(t,e){void 0===e&&(e=3);for(var i,n,r,s,a,o,l,u,c,h,d,p,f,m,g,y,v=t.length,_=t[0][0],b=_,x=t[0][1],T=x,w=1/e;--v>-1;)for(i=(a=t[v]).length,s=6;s<i;s+=6)for(c=a[s],h=a[s+1],d=a[s+2]-c,m=a[s+3]-h,p=a[s+4]-c,g=a[s+5]-h,f=a[s+6]-c,y=a[s+7]-h,o=e;--o>-1;)(n=((l=w*o)*l*f+3*(u=1-l)*(l*p+u*d))*l+c)>_?_=n:n<b&&(b=n),(r=(l*l*y+3*u*(l*g+u*m))*l+h)>x?x=r:r<T&&(T=r);return t.centerX=(_+b)/2,t.centerY=(x+T)/2,t.left=b,t.width=_-b,t.top=T,t.height=x-T,t.size=(_-b)*(x-T)},Gf=function(t,e){return e.length-t.length},Wf=function(t,e){var i=t.size||zf(t),n=e.size||zf(e);return Math.abs(n-i)<(i+n)/20?e.centerX-t.centerX||e.centerY-t.centerY:n-i},Xf=function(t,e){var i,n,r=t.slice(0),s=t.length,a=s-2;for(e|=0,i=0;i<s;i++)n=(i+e)%a,t[i++]=r[n],t[i]=r[n+1]},$f=function(t,e,i,n,r){var s,a,o,l,u=t.length,c=0,h=u-2;for(i*=6,a=0;a<u;a+=6)l=t[s=(a+i)%h]-(e[a]-n),o=t[s+1]-(e[a+1]-r),c+=If(o*o+l*l);return c},Yf=function(t,e,i){var n,r,s,a=t.length,o=Uf(t),l=Uf(e),u=l[0]-o[0],c=l[1]-o[1],h=$f(t,e,0,u,c),d=0;for(s=6;s<a;s+=6)(r=$f(t,e,s/6,u,c))<h&&(h=r,d=s);if(i)for(Da(n=t.slice(0)),s=6;s<a;s+=6)(r=$f(n,e,s/6,u,c))<h&&(h=r,d=-s);return d/6},Kf=function(t,e,i){for(var n,r,s,a,o,l,u=t.length,c=Bf,h=0,d=0;--u>-1;)for(l=(n=t[u]).length,o=0;o<l;o+=6)r=n[o]-e,s=n[o+1]-i,(a=If(r*r+s*s))<c&&(c=a,h=n[o],d=n[o+1]);return[h,d]},Qf=function(t,e,i,n,r,s){var a,o,l,u,c=e.length,h=0,d=Math.min(t.size||zf(t),e[i].size||zf(e[i]))*n,p=Bf,f=t.centerX+r,m=t.centerY+s;for(a=i;a<c&&!((e[a].size||zf(e[a]))<d);a++)o=e[a].centerX-f,l=e[a].centerY-m,(u=If(o*o+l*l))<p&&(h=a,p=u);return u=e[h],e.splice(h,1),u},Zf=function(t,e){var i,n,r,s,a,o,l,u,c,h,d,p,f,m,g=0,y=t.length,v=e/((y-2)/6);for(f=2;f<y;f+=6)for(g+=v;g>.999999;)i=t[f-2],n=t[f-1],r=t[f],s=t[f+1],a=t[f+2],o=t[f+3],l=t[f+4],u=t[f+5],c=i+(r-i)*(m=1/((Math.floor(g)||1)+1)),c+=((d=r+(a-r)*m)-c)*m,d+=(a+(l-a)*m-d)*m,h=n+(s-n)*m,h+=((p=s+(o-s)*m)-h)*m,p+=(o+(u-o)*m-p)*m,t.splice(f,4,i+(r-i)*m,n+(s-n)*m,c,h,c+(d-c)*m,h+(p-h)*m,d,p,a+(l-a)*m,o+(u-o)*m),f+=6,y+=6,g--;return t},Jf=function(t,e,i,n,r){var s,a,o,l,u,c,h,d=e.length-t.length,p=d>0?e:t,f=d>0?t:e,m=0,g="complexity"===n?Gf:Wf,y="position"===n?0:"number"==typeof n?n:.8,v=f.length,_="object"==typeof i&&i.push?i.slice(0):[i],b="reverse"===_[0]||_[0]<0,x="log"===i;if(f[0]){if(p.length>1&&(t.sort(g),e.sort(g),p.size||qf(p),f.size||qf(f),c=p.centerX-f.centerX,h=p.centerY-f.centerY,g===Wf))for(v=0;v<f.length;v++)p.splice(v,0,Qf(f[v],p,v,y,c,h));if(d)for(d<0&&(d=-d),p[0].length>f[0].length&&Zf(f[0],(p[0].length-f[0].length)/6|0),v=f.length;m<d;)p[v].size||zf(p[v]),l=(o=Kf(f,p[v].centerX,p[v].centerY))[0],u=o[1],f[v++]=[l,u,l,u,l,u,l,u],f.totalPoints+=8,m++;for(v=0;v<t.length;v++)s=e[v],a=t[v],(d=s.length-a.length)<0?Zf(s,-d/6|0):d>0&&Zf(a,d/6|0),b&&!1!==r&&!a.reversed&&Da(a),(i=_[v]||0===_[v]?_[v]:"auto")&&(a.closed||Math.abs(a[0]-a[a.length-2])<.5&&Math.abs(a[1]-a[a.length-1])<.5?"auto"===i||"log"===i?(_[v]=i=Yf(a,s,!v||!1===r),i<0&&(b=!0,Da(a),i=-i),Xf(a,6*i)):"reverse"!==i&&(v&&i<0&&Da(a),Xf(a,6*(i<0?-i:i))):!b&&("auto"===i&&Math.abs(s[0]-a[0])+Math.abs(s[1]-a[1])+Math.abs(s[s.length-2]-a[a.length-2])+Math.abs(s[s.length-1]-a[a.length-1])>Math.abs(s[0]-a[a.length-2])+Math.abs(s[1]-a[a.length-1])+Math.abs(s[s.length-2]-a[0])+Math.abs(s[s.length-1]-a[1])||i%2)?(Da(a),_[v]=-1,b=!0):"auto"===i?_[v]=0:"reverse"===i&&(_[v]=-1),a.closed!==s.closed&&(a.closed=s.closed=!1));return x&&jf("shapeIndex:["+_.join(",")+"]"),t.shapeIndex=_,_}},tm=function(t,e,i,n,r){var s=Ha(t[0]),a=Ha(t[1]);Jf(s,a,e||0===e?e:"auto",i,r)&&(t[0]=Wa(s),t[1]=Wa(a),"log"!==n&&!0!==n||jf('precompile:["'+t[0]+'","'+t[1]+'"]'))},em=function(t,e){var i,n,r,s,a,o,l,u=0,c=parseFloat(t[0]),h=parseFloat(t[1]),d=c+","+h+" ",p=.999999;for(i=.5*e/(.5*(r=t.length)-1),n=0;n<r-2;n+=2){if(u+=i,o=parseFloat(t[n+2]),l=parseFloat(t[n+3]),u>p)for(a=1/(Math.floor(u)+1),s=1;u>p;)d+=(c+(o-c)*a*s).toFixed(2)+","+(h+(l-h)*a*s).toFixed(2)+" ",u--,s++;d+=o+","+l+" ",c=o,h=l}return d},im=function(t){var e=t[0].match(Nf)||[],i=t[1].match(Nf)||[],n=i.length-e.length;n>0?t[0]=em(e,n):t[1]=em(i,-n)},nm=function(t,e){for(var i,n,r,s,a,o,l,u,c,h,d,p,f=t.length,m=.2*(e||1);--f>-1;){for(d=(n=t[f]).isSmooth=n.isSmooth||[0,0,0,0],p=n.smoothData=n.smoothData||[0,0,0,0],d.length=4,u=n.length-2,l=6;l<u;l+=6)r=n[l]-n[l-2],s=n[l+1]-n[l-1],a=n[l+2]-n[l],o=n[l+3]-n[l+1],c=Pf(s,r),h=Pf(o,a),(i=Math.abs(c-h)<m)&&(p[l-2]=c,p[l+2]=h,p[l-1]=If(r*r+s*s),p[l+3]=If(a*a+o*o)),d.push(i,i,0,0,i,i);n[u]===n[0]&&n[u+1]===n[1]&&(r=n[0]-n[u-2],s=n[1]-n[u-1],a=n[2]-n[0],o=n[3]-n[1],c=Pf(s,r),h=Pf(o,a),Math.abs(c-h)<m&&(p[u-2]=c,p[2]=h,p[u-1]=If(r*r+s*s),p[3]=If(a*a+o*o),d[u-2]=d[u-1]=!0))}return t},rm=function(t){var e=t.trim().split(" ");return{x:(~t.indexOf("left")?0:~t.indexOf("right")?100:isNaN(parseFloat(e[0]))?50:parseFloat(e[0]))/100,y:(~t.indexOf("top")?0:~t.indexOf("bottom")?100:isNaN(parseFloat(e[1]))?50:parseFloat(e[1]))/100}},sm="Use MorphSVGPlugin.convertToPath() to convert to a path before morphing.",am=function(t,e,i,n){var r,s,a,o=this._origin,l=this._eOrigin,u=t[i]-o.x,c=t[i+1]-o.y,h=If(u*u+c*c),d=Pf(c,u);return u=e[i]-l.x,c=e[i+1]-l.y,s=(a=r=Pf(c,u)-d)!==a%Lf?a+(a<0?Of:-Of):a,!n&&kf&&Math.abs(s+kf.ca)<Ff&&(n=kf),this._anchorPT=kf={_next:this._anchorPT,t,sa:d,ca:n&&s*n.ca<0&&Math.abs(s)>Rf?r:s,sl:h,cl:If(u*u+c*c)-h,i}},om=function(t){Tf=Df(),Ef=Ef||Tf&&Tf.plugins.morphSVG,Tf&&Ef?(wf=Tf.utils.toArray,document,Ef.prototype._tweenRotation=am,Sf=1):t&&jf("Please gsap.registerPlugin(MorphSVGPlugin)")},lm={version:"3.8.0",name:"morphSVG",rawVars:1,register:function(t,e){Tf=t,Ef=e,om()},init:function(t,e,i,n,r){if(Sf||om(1),!e)return jf("invalid shape"),!1;var s,a,o,l,u,c,h,d,p,f,m,g,y,v,_,b,x,T,w,k,S,E;if(Cf(e)&&(e=e.call(i,n,t,r)),"string"==typeof e||e.getBBox||e[0])e={shape:e};else if("object"==typeof e){for(a in s={},e)s[a]=Cf(e[a])&&"render"!==a?e[a].call(i,n,t,r):e[a];e=s}var D=t.nodeType?window.getComputedStyle(t):{},C=D.fill+"",P=!("none"===C||"0"===(C.match(Nf)||[])[3]||"evenodd"===D.fillRule),A=(e.origin||"50 50").split(",");if(u="POLYLINE"===(s=(t.nodeName+"").toUpperCase())||"POLYGON"===s,"PATH"!==s&&!u&&!e.prop)return jf("Cannot morph a <"+s+"> element. "+sm),!1;if(a="PATH"===s?"d":"points",!e.prop&&!Cf(t.setAttribute))return!1;if(l=function(t,e,i){var n,r;return(!("string"==typeof t)||Hf.test(t)||(t.match(Nf)||[]).length<3)&&((n=wf(t)[0])?(r=(n.nodeName+"").toUpperCase(),e&&"PATH"!==r&&(n=Pa(n,!1),r="PATH"),t=n.getAttribute("PATH"===r?"d":"points")||"",n===i&&(t=n.getAttributeNS(null,"data-original")||t)):(jf("WARNING: invalid morph to: "+t),t=!1)),t}(e.shape||e.d||e.points||"","d"===a,t),u&&Vf.test(l))return jf("A <"+s+"> cannot accept path data. "+sm),!1;if(c=e.shapeIndex||0===e.shapeIndex?e.shapeIndex:"auto",h=e.map||lm.defaultMap,this._prop=e.prop,this._render=e.render||lm.defaultRender,this._apply="updateTarget"in e?e.updateTarget:lm.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(e.precision)?2:+e.precision),this._tween=i,l){if(this._target=t,x="object"==typeof e.precompile,f=this._prop?t[this._prop]:t.getAttribute(a),this._prop||t.getAttributeNS(null,"data-original")||t.setAttributeNS(null,"data-original",f),"d"===a||this._prop){if(f=Ha(x?e.precompile[0]:f),m=Ha(x?e.precompile[1]:l),!x&&!Jf(f,m,c,h,P))return!1;for("log"!==e.precompile&&!0!==e.precompile||jf('precompile:["'+Wa(f)+'","'+Wa(m)+'"]'),(S="linear"!==(e.type||lm.defaultType))&&(f=nm(f,e.smoothTolerance),m=nm(m,e.smoothTolerance),f.size||qf(f),m.size||qf(m),k=rm(A[0]),this._origin=f.origin={x:f.left+k.x*f.width,y:f.top+k.y*f.height},A[1]&&(k=rm(A[1])),this._eOrigin={x:m.left+k.x*m.width,y:m.top+k.y*m.height}),this._rawPath=t._gsRawPath=f,y=f.length;--y>-1;)for(_=f[y],b=m[y],d=_.isSmooth||[],p=b.isSmooth||[],v=_.length,kf=0,g=0;g<v;g+=2)b[g]===_[g]&&b[g+1]===_[g+1]||(S?d[g]&&p[g]?(T=_.smoothData,w=b.smoothData,E=g+(g===v-4?7-v:5),this._controlPT={_next:this._controlPT,i:g,j:y,l1s:T[g+1],l1c:w[g+1]-T[g+1],l2s:T[E],l2c:w[E]-T[E]},o=this._tweenRotation(_,b,g+2),this._tweenRotation(_,b,g,o),this._tweenRotation(_,b,E-1,o),g+=4):this._tweenRotation(_,b,g):(o=this.add(_,g,_[g],b[g]),o=this.add(_,g+1,_[g+1],b[g+1])||o))}else o=this.add(t,"setAttribute",t.getAttribute(a)+"",l+"",n,r,0,function(t){return isNaN(t)?im:function(e){im(e),e[1]=function(t,e){if(!e)return t;var i,n,r,s=t.match(Nf)||[],a=s.length,o="";for("reverse"===e?(n=a-1,i=-2):(n=(2*(parseInt(e,10)||0)+1+100*a)%a,i=2),r=0;r<a;r+=2)o+=s[n-1]+","+s[n]+" ",n=(n+i)%a;return o}(e[1],parseInt(t,10))}}(c),a);S&&(this.add(this._origin,"x",this._origin.x,this._eOrigin.x),o=this.add(this._origin,"y",this._origin.y,this._eOrigin.y)),o&&(this._props.push("morphSVG"),o.end=l,o.endProp=a)}return 1},render:function(t,e){for(var i,n,r,s,a,o,l,u,c,h,d,p,f=e._rawPath,m=e._controlPT,g=e._anchorPT,y=e._rnd,v=e._target,_=e._pt;_;)_.r(t,_.d),_=_._next;if(1===t&&e._apply)for(_=e._pt;_;)_.end&&(e._prop?v[e._prop]=_.end:v.setAttribute(_.endProp,_.end)),_=_._next;else if(f){for(;g;)a=g.sa+t*g.ca,s=g.sl+t*g.cl,g.t[g.i]=e._origin.x+Af(a)*s,g.t[g.i+1]=e._origin.y+Mf(a)*s,g=g._next;for(n=t<.5?2*t*t:(4-2*t)*t-1;m;)p=(o=m.i)+(o===(r=f[m.j]).length-4?7-r.length:5),a=Pf(r[p]-r[o+1],r[p-1]-r[o]),h=Mf(a),d=Af(a),u=r[o+2],c=r[o+3],s=m.l1s+n*m.l1c,r[o]=u-d*s,r[o+1]=c-h*s,s=m.l2s+n*m.l2c,r[p-1]=u+d*s,r[p]=c+h*s,m=m._next;if(v._gsRawPath=f,e._apply){for(i="",l=0;l<f.length;l++)for(s=(r=f[l]).length,i+="M"+(r[0]*y|0)/y+" "+(r[1]*y|0)/y+" C",o=2;o<s;o++)i+=(r[o]*y|0)/y+" ";e._prop?v[e._prop]=i:v.setAttribute("d",i)}}e._render&&f&&e._render.call(e._tween,f,v)},kill:function(t){this._pt=this._rawPath=0},getRawPath:Sa,stringToRawPath:Ha,rawPathToString:Wa,normalizeStrings:function(t,e,i){var n=i.shapeIndex,r=i.map,s=[t,e];return tm(s,n,r),s},pathFilter:tm,pointsFilter:im,getTotalSize:qf,equalizeSegmentQuantity:Jf,convertToPath:function(t,e){return wf(t).map((function(t){return Pa(t,!1!==e)}))},defaultType:"linear",defaultUpdateTarget:!0,defaultMap:"size"};Df()&&Tf.registerPlugin(lm);var um,cm,hm,dm,pm,fm,mm,gm,ym,vm,_m,bm,xm,Tm=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,wm="#4e7fff",km=Math.PI/180,Sm=Date.now||function(){return(new Date).getTime()},Em=0,Dm=0,Cm=function(){return!1},Pm={},Am=[],Mm={},Im=[],Lm=",",Om=[],Fm=function(t){t.preventDefault&&(t.preventDefault(),t.preventManipulation&&t.preventManipulation())},Rm=function(t){return um.createElementNS?um.createElementNS("http://www.w3.org/1999/xhtml",t):um.createElement(t)},Bm=function(t,e,i){var n,r=um.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(n in(i=i||{}).class=i.class||"path-editor",i)void 0!==r.style[n]?r.style[n]=i[n]:r.setAttributeNS(null,n.replace(s,"$1-$2").toLowerCase(),i[n]);return e.appendChild(r),r},Nm={matrix:new Vn},Hm=function(t){return(t.transform&&t.transform.baseVal.consolidate()||Nm).matrix},Vm=function(t){return~~(1e3*t+(t<0?-.5:.5))/1e3},jm=function(t){if(!t.target._gsSelection&&!Dm&&Sm()-Em>100){for(var e=Om.length;--e>-1;)Om[e].deselect();Om.length=0}},Um=0,zm=function(t,e,i,n){if(t.addEventListener){var r=_m[e];n=n||{passive:!1},t.addEventListener(r||e,i,n),r&&e!==r&&"pointer"!==r.substr(0,7)&&t.addEventListener(e,i,n)}else t.attachEvent&&t.attachEvent("on"+e,i)},qm=function(t,e,i){if(t.removeEventListener){var n=_m[e];t.removeEventListener(n||e,i),n&&e!==n&&"pointer"!==n.substr(0,7)&&t.removeEventListener(e,i)}else t.detachEvent&&t.detachEvent("on"+e,i)},Gm=function t(e){Um=e.touches&&_dragCount<e.touches.length,qm(e.target,"touchend",t)},Wm=function(t){Um=t.touches&&_dragCount<t.touches.length,zm(t.target,"touchend",Gm)},Xm=function(t,e){return function(i){return t.call(e,i)}},$m=function(t,e,i){var n=e.vars[t];return n&&n.call(e.vars.callbackScope||e,i||e),e},Ym=function(){bm.style.display="block",bm.select(),bm.style.display="none"},Km=function(t){var e,i,n=this,r=jn(n.target.parentNode,!0);this._matrix=this.target.transform.baseVal.getItem(0).matrix,this._ctm=r,_m[t.type]?(e=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:um,zm(e,"touchend",n._onRelease),zm(e,"touchmove",n._onMove),zm(e,"touchcancel",n._onRelease),zm(um,"touchstart",Wm),zm(hm,"touchforcechange",Fm)):(e=null,zm(um,"mousemove",n._onMove)),cm||zm(um,"mouseup",n._onRelease),Fm(t),Ym(),t.changedTouches?(t=n.touch=t.changedTouches[0],n.touchID=t.identifier):t.pointerId?n.touchID=t.pointerId:n.touch=n.touchID=null,n._startPointerY=n.pointerY=t.pageY,n._startPointerX=n.pointerX=t.pageX,n._startElementX=n._matrix.e,n._startElementY=n._matrix.f,1===this._ctm.a&&0===this._ctm.b&&0===this._ctm.c&&1===this._ctm.d?this._ctm=null:(i=n._startPointerX*this._ctm.a+n._startPointerY*this._ctm.c+this._ctm.e,n._startPointerY=n._startPointerX*this._ctm.b+n._startPointerY*this._ctm.d+this._ctm.f,n._startPointerX=i),n.isPressed=Dm=!0,n.touchEventTarget=e,n.vars.onPress&&n.vars.onPress.call(n.vars.callbackScope||n,n.pointerEvent)},Qm=function(t){var e,i,n=this,r=t;if(n._enabled&&!Um&&n.isPressed&&t){if(n.pointerEvent=t,e=t.changedTouches){if((t=e[0])!==n.touch&&t.identifier!==n.touchID){for(i=e.length;--i>-1&&(t=e[i]).identifier!==n.touchID;);if(i<0)return}}else if(t.pointerId&&n.touchID&&t.pointerId!==n.touchID)return;Fm(r),n.setPointerPosition(t.pageX,t.pageY),n.vars.onDrag&&n.vars.onDrag.call(n.vars.callbackScope||n,n.pointerEvent)}},Zm=function(t,e){var i=this;if(i._enabled&&i.isPressed&&(!t||null==i.touchID||e||!(t.pointerId&&t.pointerId!==i.touchID||t.changedTouches&&!function(t,e){for(var i=t.length;--i>-1;)if(t[i].identifier===e)return!0;return!1}(t.changedTouches,i.touchID)))){Em=Sm(),i.isPressed=Dm=!1;var n,r,s=t,a=i.isDragging,o=i.touchEventTarget;if(o?(qm(o,"touchend",i._onRelease),qm(o,"touchmove",i._onMove),qm(o,"touchcancel",i._onRelease),qm(um,"touchstart",Wm)):qm(um,"mousemove",i._onMove),cm||(qm(um,"mouseup",i._onRelease),t&&t.target&&qm(t.target,"mouseup",i._onRelease)),a?i.isDragging=!1:i.vars.onClick&&i.vars.onClick.call(i.vars.callbackScope||i,s),t){if((n=t.changedTouches)&&(t=n[0])!==i.touch&&t.identifier!==i.touchID){for(r=n.length;--r>-1&&(t=n[r]).identifier!==i.touchID;);if(r<0)return}i.pointerEvent=s,i.pointerX=t.pageX,i.pointerY=t.pageY}return s&&!a&&i.vars.onDragRelease?i.vars.onDragRelease.call(i,i.pointerEvent):(s&&Fm(s),i.vars.onRelease&&i.vars.onRelease.call(i.vars.callbackScope||i,i.pointerEvent)),a&&i.vars.onDragEnd&&i.vars.onDragEnd.call(i.vars.callbackScope||i,i.pointerEvent),!0}},Jm=function(t,e,i,n){var r,s=t[e],a=s.length-(s.closed?6:0),o=[];for(r=0;r<a;r+=6)o.push(new ig(i,t,e,r,n));return s.closed&&(o[0].isClosedStart=!0),o},tg=function(t,e,i){var n=t[i]-t[e],r=t[i+1]-t[e+1];return Math.sqrt(n*n+r*r)},eg=function(){function t(t,e){this.target="string"==typeof t?um.querySelectorAll(t)[0]:t,this.vars=e||{},this._onPress=Xm(Km,this),this._onMove=Xm(Qm,this),this._onRelease=Xm(Zm,this),this.target.setAttribute("transform",(this.target.getAttribute("transform")||"")+" translate(0,0)"),this._matrix=Hm(this.target),this.x=this._matrix.e,this.y=this._matrix.f,this.snap=e.snap,isNaN(e.maxX)&&isNaN(e.minX)?this._bounds=0:(this._bounds=1,this.maxX=+e.maxX,this.minX=+e.minX),this.enabled(!0)}var e=t.prototype;return e.setPointerPosition=function(t,e){var i,n,r,s,a,o=1e3;this.pointerX=t,this.pointerY=e,this._ctm&&(a=t*this._ctm.a+e*this._ctm.c+this._ctm.e,e=t*this._ctm.b+e*this._ctm.d+this._ctm.f,t=a),(n=e-this._startPointerY)<1&&n>-1&&(n=0),(i=t-this._startPointerX)<1&&i>-1&&(i=0),r=((this._startElementX+i)*o|0)/o,s=((this._startElementY+n)*o|0)/o,this.snap&&!mm&&(Mm.x=r,Mm.y=s,this.snap.call(this,Mm),r=Mm.x,s=Mm.y),this.x===r&&this.y===s||(this._matrix.f=this.y=s,this._matrix.e=this.x=r,!this.isDragging&&this.isPressed&&(this.isDragging=!0,$m("onDragStart",this,this.pointerEvent)))},e.enabled=function(t){return arguments.length?(this._enabled=t,t?(cm||zm(this.target,"mousedown",this._onPress),zm(this.target,"touchstart",this._onPress),zm(this.target,"click",this._onClick,!0)):(e=this.isDragging,qm(this.target,"mousedown",this._onPress),qm(this.target,"touchstart",this._onPress),qm(hm,"touchforcechange",Fm),qm(this.target,"click",this._onClick),this.touchEventTarget&&(qm(this.touchEventTarget,"touchcancel",this._onRelease),qm(this.touchEventTarget,"touchend",this._onRelease),qm(this.touchEventTarget,"touchmove",this._onMove)),qm(um,"mouseup",this._onRelease),qm(um,"mousemove",this._onMove),this.isDragging=this.isPressed=!1,e&&$m("onDragEnd",this,this.pointerEvent)),this):this._enabled;var e},e.endDrag=function(t){this._onRelease(t)},t}(),ig=function(){function t(t,e,i,n,r){this.editor=t,this.element=Bm("path",t._selection,{fill:wm,stroke:wm,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this.update(e,i,n),this.element._gsSelection=!0,this.vars=r||{},this._draggable=new eg(this.element,{callbackScope:this,onDrag:this.onDrag,snap:this.vars.snap,onPress:this.onPress,onRelease:this.onRelease,onClick:this.onClick,onDragEnd:this.onDragEnd})}var e=t.prototype;return e.onPress=function(){$m("onPress",this)},e.onClick=function(){$m("onClick",this)},e.onDrag=function(){var t=this.segment;this.vars.onDrag.call(this.vars.callbackScope||this,this,this._draggable.x-t[this.i],this._draggable.y-t[this.i+1])},e.onDragEnd=function(){$m("onDragEnd",this)},e.onRelease=function(){$m("onRelease",this)},e.update=function(t,e,i){t&&(this.rawPath=t),arguments.length<=1?(e=this.j,i=this.i):(this.j=e,this.i=i);var n=this.smooth,r=this.rawPath[e],s=0===i&&r.closed?r.length-4:i-2;this.segment=r,this.smooth=i>0&&i<r.length-2&&Math.abs(Math.atan2(r[i+1]-r[s+1],r[i]-r[s])-Math.atan2(r[i+3]-r[i+1],r[i+2]-r[i]))<.09?2:0,this.smooth!==n&&this.element.setAttribute("d",this.smooth?this.editor._circleHandle:this.editor._squareHandle),this.element.setAttribute("transform","translate("+r[i]+","+r[i+1]+")")},t}(),ng=function(){function t(t,e){e=e||{},xm||(um=document,hm=window,dm=um.body,vm=Rm("div"),(bm=Rm("textarea")).style.display="none",dm&&dm.appendChild(bm),_m=function(t){for(var e=t.split(","),i=(void 0!==vm.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==vm.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),n={},r=4;--r>-1;)n[e[r]]=i[r],n[i[r]]=e[r];return n}("touchstart,touchmove,touchend,touchcancel"),SVGElement.prototype.getTransformToElement=SVGElement.prototype.getTransformToElement||function(t){return t.getScreenCTM().inverse().multiply(this.getScreenCTM())},um.addEventListener("keydown",(function(t){var e,i,n,r,s=t.keyCode||t.which,a=t.key||s;if("Shift"===a||16===s)mm=!0;else if("Control"===a||17===s)pm=!0;else if("Meta"===a||91===s)gm=!0;else if("Alt"===a||18===s)for(fm=!0,e=Om.length;--e>-1;)Om[e]._onPressAlt();else if(("z"===a||90===s)&&(pm||gm)&&Am.length>1){if(Am.shift(),i=Am[0]){for((r=i.path).path.setAttribute("d",i.d),r.path.setAttribute("transform",i.transform),r.init(),n=r._anchors,e=0;e<n.length;e++)-1!==i.selectedIndexes.indexOf(n[e].i)&&r._selectedAnchors.push(n[e]);r._updateAnchors(),r.update(),r.vars.onUndo&&r.vars.onUndo.call(r)}}else if("Delete"===a||"Backspace"===a||8===s||46===s||63272===s||"d"===s&&(pm||gm))for(e=Om.length;--e>-1;)Om[e]._deleteSelectedAnchors();else if(("a"===a||65===s)&&(gm||pm))for(e=Om.length;--e>-1;)Om[e].select(!0)}),!0),um.addEventListener("keyup",(function(t){var e=t.key||t.keyCode||t.which;if("Shift"===e||16===e)mm=!1;else if("Control"===e||17===e)pm=!1;else if("Meta"===e||91===e)gm=!1;else if("Alt"===e||18===e){fm=!1;for(var i=Om.length;--i>-1;)Om[i]._onReleaseAlt()}}),!0),cm=!!hm.PointerEvent,zm(um,"mouseup",jm),zm(um,"touchend",jm),zm(um,"touchcancel",Cm),zm(hm,"touchmove",Cm),dm&&dm.addEventListener("touchstart",Cm),xm=1),this.vars=e,this.path="string"==typeof t?um.querySelectorAll(t)[0]:t,this._g=Bm("g",this.path.ownerSVGElement,{class:"path-editor-g path-editor"}),this._selectionHittest=Bm("path",this._g,{stroke:"transparent",strokeWidth:16,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selection=e._selection||Bm("g",this._g,{class:"path-editor-selection path-editor"}),this._selectionPath=Bm("path",this._selection,{stroke:wm,strokeWidth:2,fill:"none",vectorEffect:"non-scaling-stroke"}),this._selectedAnchors=[],this._line1=Bm("polyline",this._selection,{stroke:wm,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line2=Bm("polyline",this._selection,{stroke:wm,strokeWidth:2,vectorEffect:"non-scaling-stroke"}),this._line1.style.pointerEvents=this._line2.style.pointerEvents=this._selectionPath.style.pointerEvents="none",this._enabled=!0;var i=this.path.parentNode.getScreenCTM().inverse(),n=(i.a+i.d)/2*(e.handleSize||5);this._squareHandle=function(t){return["M-"+(t=Vm(t)),-t,t,-t,t,t,-t,t+"z"].join(Lm)}(n),this._circleHandle=function(t){var e=Vm(.552284749831*t);return"M"+(t=Vm(t))+",0C"+[t,e,e,t,0,t,-e,t,-t,e,-t,0,-t,-e,-e,-t,0,-t,e,-t,t,-e,t,0].join(Lm)+"z"}(1.15*n),this._handle1=Bm("path",this._selection,{d:this._squareHandle,fill:wm,stroke:"transparent",strokeWidth:6}),this._handle2=Bm("path",this._selection,{d:this._squareHandle,fill:wm,stroke:"transparent",strokeWidth:6}),this._handle1._draggable=new eg(this._handle1,{onDrag:this._onDragHandle1,callbackScope:this,onPress:this._onPressHandle1,onRelease:this._onReleaseHandle,onClick:this._onClickHandle1,snap:e.handleSnap}),this._handle2._draggable=new eg(this._handle2,{onDrag:this._onDragHandle2,callbackScope:this,onPress:this._onPressHandle2,onRelease:this._onReleaseHandle,onClick:this._onClickHandle2,snap:e.handleSnap}),this._handle1.style.visibility=this._handle2.style.visibility="hidden";for(var r=[this._handle1,this._handle2,this._line1,this._line2,this._selection,this._selectionPath,this._selectionHittest],s=r.length;--s>-1;)r[s]._gsSelection=!0;!1!==e.draggable&&(this._draggable=new eg(this._selectionHittest,{callbackScope:this,onPress:this.select,onRelease:this._onRelease,onDrag:this._onDragPath,onDragEnd:this._saveState,maxX:this.vars.maxX,minX:this.vars.minX})),this.init(),this._selection.style.visibility=!1===e.selected?"hidden":"visible",!1!==e.selected&&(this.path._gsSelection=!0,Om.push(this)),this._saveState(),cm||(zm(this._selectionHittest,"mousedown",Xm(this._onClickSelectionPath,this)),zm(this._selectionHittest,"mouseup",Xm(this._onRelease,this))),zm(this._selectionHittest,"touchstart",Xm(this._onClickSelectionPath,this)),zm(this._selectionHittest,"touchend",Xm(this._onRelease,this))}var e=t.prototype;return e._onRelease=function(t){var e=this._editingAnchor;e&&(Pm.x=e.segment[e.i],Pm.y=e.segment[e.i+1]),qm(hm,"touchforcechange",Fm),$m("onRelease",this,t)},e.init=function(){var t,e,i=this.path.getAttribute("d"),n=Ha(i),r=this.path.getAttribute("transform")||"translate(0,0)",s=!this._rawPath||n.totalPoints!==this._rawPath.totalPoints||n.length!==this._rawPath.length,a={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX};if(s&&this._anchors&&this._anchors.length){for(e=0;e<this._anchors.length;e++)this._anchors[e].element.parentNode.removeChild(this._anchors[e].element),this._anchors[e]._draggable.enabled(!1);this._selectedAnchors.length=0}if(this._rawPath=n,s){if(this._anchors=Jm(n,0,this,a),(t=n.length)>1)for(e=1;e<t;e++)this._anchors=this._anchors.concat(Jm(n,e,this,a))}else for(e=this._anchors.length;--e>-1;)this._anchors[e].update(n);return this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),this._selectionPath.setAttribute("d",i),this._selectionHittest.setAttribute("d",i),this._g.setAttribute("transform",function(t){for(var e=Hm(t),i=t.ownerSVGElement;(t=t.parentNode)&&t.ownerSVGElement===i;)e.multiply(Hm(t));return"matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")"}(this.path.parentNode)||"translate(0,0)"),this._selection.setAttribute("transform",r),this._selectionHittest.setAttribute("transform",r),this._updateAnchors(),this},e._saveState=function(){!function(t){var e,i=[],n=t._selectedAnchors;for(e=0;e<n.length;e++)i[e]=n[e].i;Am.unshift({path:t,d:t.path.getAttribute("d"),transform:t.path.getAttribute("transform")||"",selectedIndexes:i}),Am.length>30&&(Am.length=30)}(this)},e._onClickSelectionPath=function(t){if("hidden"===this._selection.style.visibility)this.select();else if(fm||t&&t.altKey){var e,i,n,r,s,a,o={callbackScope:this,snap:this.vars.anchorSnap,onDrag:this._onDragAnchor,onPress:this._onPressAnchor,onRelease:this._onRelease,onClick:this._onClickAnchor,onDragEnd:this._onDragEndAnchor,maxX:this.vars.maxX,minX:this.vars.minX},l=this._selection.getScreenCTM().inverse();for(this._draggable&&this._draggable._onRelease(t),l&&(r=t.clientX*l.a+t.clientY*l.c+l.e,s=t.clientX*l.b+t.clientY*l.d+l.f),a=function(t,e,i,n){var r,s,a,o,l={j:0,i:0,t:0},u=da;for(s=0;s<t.length;s++)for(o=t[s],r=0;r<o.length;r+=6)a=Ga(1,e,i,0,1,20,o[r],o[r+1],o[r+2],o[r+3],o[r+4],o[r+5],o[r+6],o[r+7]),u>ta&&(u=ta,l.j=s,l.i=r,l.t=a);return l}(this._rawPath,r,s),Oa(this._rawPath[a.j],a.i,a.t),e=a.i+6,i=0;i<this._anchors.length;i++)this._anchors[i].i>=e&&(this._anchors[i].i+=6);n=new ig(this,this._rawPath,a.j,e,o),this._selection.appendChild(this._handle1),this._selection.appendChild(this._handle2),n._draggable._onPress(t),ym=n,this._anchors.push(n),this._selectedAnchors.length=0,this._selectedAnchors.push(n),this._updateAnchors(),this.update(),this._saveState()}Ym(),zm(hm,"touchforcechange",Fm),$m("onPress",this)},e._onClickHandle1=function(){var t=this._editingAnchor,e=t.i,i=t.segment,n=t.isClosedStart?i.length-4:e-2;fm&&Math.abs(i[e]-i[n])<5&&Math.abs(i[e+1]-i[n+1])<5&&this._onClickAnchor(t)},e._onClickHandle2=function(){var t=this._editingAnchor,e=t.i,i=t.segment;fm&&Math.abs(i[e]-i[e+2])<5&&Math.abs(i[e+1]-i[e+3])<5&&this._onClickAnchor(t)},e._onDragEndAnchor=function(t){ym=null,this._saveState()},e.isSelected=function(){return this._selectedAnchors.length>0},e.select=function(t){if(this._selection.style.visibility="visible",this._editingAnchor=null,this.path._gsSelection=!0,!0===t)for(var e=this._anchors.length;--e>-1;)this._selectedAnchors[e]=this._anchors[e];return-1===Om.indexOf(this)&&Om.push(this),this._updateAnchors(),this},e.deselect=function(){return this._selection.style.visibility="hidden",this._selectedAnchors.length=0,this._editingAnchor=null,this.path._gsSelection=!1,Om.splice(Om.indexOf(this),1),this._updateAnchors(),this},e._onDragPath=function(t){var e=this._selectionHittest.getAttribute("transform")||"translate(0,0)";this._selection.setAttribute("transform",e),this.path.setAttribute("transform",e)},e._onPressAnchor=function(t){-1===this._selectedAnchors.indexOf(t)?(mm||(this._selectedAnchors.length=0),this._selectedAnchors.push(t)):mm&&(this._selectedAnchors.splice(this._selectedAnchors.indexOf(t),1),t._draggable.endDrag()),Pm.x=t.segment[t.i],Pm.y=t.segment[t.i+1],this._updateAnchors(),$m("onPress",this)},e._deleteSelectedAnchors=function(){for(var t,e,i,n=this._selectedAnchors,r=n.length;--r>-1;)for((t=n[r]).element.parentNode.removeChild(t.element),t._draggable.enabled(!1),(e=t.i)?e<t.segment.length-2?t.segment.splice(e-2,6):t.segment.splice(e-4,6):t.segment.splice(e,6),n.splice(r,1),this._anchors.splice(this._anchors.indexOf(t),1),i=0;i<this._anchors.length;i++)this._anchors[i].i>=e&&(this._anchors[i].i-=6);this._updateAnchors(),this.update(),this._saveState(),this.vars.onDeleteAnchor&&this.vars.onDeleteAnchor.call(this.vars.callbackScope||this)},e._onClickAnchor=function(t){var e,i,n,r,s,a,o=t.i,l=t.segment,u=t.isClosedStart?l.length-4:o-2,c=1e3,h=!o||o>=l.length-2;fm&&ym!==t&&this._editingAnchor?(t.smooth=!t.smooth,h&&!t.isClosedStart&&(t.smooth=!1),t.element.setAttribute("d",t.smooth?this._circleHandle:this._squareHandle),!t.smooth||h&&!t.isClosedStart?t.smooth||h&&!t.isClosedStart||((o||t.isClosedStart)&&(l[u]=l[o],l[u+1]=l[o+1]),o<l.length-2&&(l[o+2]=l[o],l[o+3]=l[o+1]),this._updateAnchors(),this.update(),this._saveState()):(e=((e=Math.atan2(l[o+1]-l[u+1],l[o]-l[u]))+(i=Math.atan2(l[o+3]-l[o+1],l[o+2]-l[o])))/2,n=tg(l,u,o),r=tg(l,o,o+2),n<.2&&(n=tg(l,o,u-4)/4,e=i||Math.atan2(l[o+7]-l[u-3],l[o+6]-l[u-4])),r<.2&&(r=tg(l,o,o+6)/4,i=e||Math.atan2(l[o+7]-l[u-3],l[o+6]-l[u-4])),s=Math.sin(e),a=Math.cos(e),Math.abs(i-e)<Math.PI/2&&(s=-s,a=-a),l[u]=((l[o]+a*n)*c|0)/c,l[u+1]=((l[o+1]+s*n)*c|0)/c,l[o+2]=((l[o]-a*r)*c|0)/c,l[o+3]=((l[o+1]-s*r)*c|0)/c,this._updateAnchors(),this.update(),this._saveState())):mm||(this._selectedAnchors.length=0,this._selectedAnchors.push(t)),ym=null,this._updateAnchors()},e._updateAnchors=function(){var t,e,i,n=1===this._selectedAnchors.length?this._selectedAnchors[0]:null,r=n?n.segment:null;for(this._editingAnchor=n,t=0;t<this._anchors.length;t++)this._anchors[t].element.style.fill=-1!==this._selectedAnchors.indexOf(this._anchors[t])?wm:"white";n&&(this._handle1.setAttribute("d",n.smooth?this._circleHandle:this._squareHandle),this._handle2.setAttribute("d",n.smooth?this._circleHandle:this._squareHandle)),t=n?n.i:0,n&&(t||n.isClosedStart)?(e=n.isClosedStart?r[r.length-4]:r[t-2],i=n.isClosedStart?r[r.length-3]:r[t-1],this._handle1.style.visibility=this._line1.style.visibility=fm||e!==r[t]||i!==r[t+1]?"visible":"hidden",this._handle1.setAttribute("transform","translate("+e+Lm+i+")"),this._line1.setAttribute("points",e+Lm+i+Lm+r[t]+Lm+r[t+1])):this._handle1.style.visibility=this._line1.style.visibility="hidden",n&&t<r.length-2?(e=r[t+2],i=r[t+3],this._handle2.style.visibility=this._line2.style.visibility=fm||e!==r[t]||i!==r[t+1]?"visible":"hidden",this._handle2.setAttribute("transform","translate("+e+Lm+i+")"),this._line2.setAttribute("points",r[t]+Lm+r[t+1]+Lm+e+Lm+i)):this._handle2.style.visibility=this._line2.style.visibility="hidden"},e._onPressAlt=function(){var t=this._editingAnchor;t&&((t.i||t.isClosedStart)&&(this._handle1.style.visibility=this._line1.style.visibility="visible"),t.i<t.segment.length-2&&(this._handle2.style.visibility=this._line2.style.visibility="visible"))},e._onReleaseAlt=function(){var t,e,i,n=this._editingAnchor;n&&(t=n.segment,e=n.i,i=n.isClosedStart?t.length-4:e-2,t[e]===t[i]&&t[e+1]===t[i+1]&&(this._handle1.style.visibility=this._line1.style.visibility="hidden"),t[e]===t[e+2]&&t[e+1]===t[e+3]&&(this._handle2.style.visibility=this._line2.style.visibility="hidden"))},e._onPressHandle1=function(){this._editingAnchor.smooth&&(this._oppositeHandleLength=tg(this._editingAnchor.segment,this._editingAnchor.i,this._editingAnchor.i+2)),$m("onPress",this)},e._onPressHandle2=function(){this._editingAnchor.smooth&&(this._oppositeHandleLength=tg(this._editingAnchor.segment,this._editingAnchor.isClosedStart?this._editingAnchor.segment.length-4:this._editingAnchor.i-2,this._editingAnchor.i)),$m("onPress",this)},e._onReleaseHandle=function(t){this._onRelease(t),this._saveState()},e._onDragHandle1=function(){var t,e=this._editingAnchor,i=e.segment,n=e.i,r=e.isClosedStart?i.length-4:n-2,s=1e3,a=this._handle1._draggable.x,o=this._handle1._draggable.y;i[r]=a=(a*s|0)/s,i[r+1]=o=(o*s|0)/s,e.smooth&&(fm?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(i[n+1]-o,i[n]-a),a=this._oppositeHandleLength*Math.cos(t),o=this._oppositeHandleLength*Math.sin(t),i[n+2]=((i[n]+a)*s|0)/s,i[n+3]=((i[n+1]+o)*s|0)/s)),this.update()},e._onDragHandle2=function(){var t,e=this._editingAnchor,i=e.segment,n=e.i,r=e.isClosedStart?i.length-4:n-2,s=1e3,a=this._handle2._draggable.x,o=this._handle2._draggable.y;i[n+2]=a=(a*s|0)/s,i[n+3]=o=(o*s|0)/s,e.smooth&&(fm?(e.smooth=!1,e.element.setAttribute("d",this._squareHandle),this._handle1.setAttribute("d",this._squareHandle),this._handle2.setAttribute("d",this._squareHandle)):(t=Math.atan2(i[n+1]-o,i[n]-a),a=this._oppositeHandleLength*Math.cos(t),o=this._oppositeHandleLength*Math.sin(t),i[r]=((i[n]+a)*s|0)/s,i[r+1]=((i[n+1]+o)*s|0)/s)),this.update()},e._onDragAnchor=function(t,e,i){var n,r,s,a,o,l=this._selectedAnchors,u=l.length,c=1e3;for(r=0;r<u;r++)n=(a=l[r]).i,s=a.segment,n?(s[n-2]=((s[n-2]+e)*c|0)/c,s[n-1]=((s[n-1]+i)*c|0)/c):a.isClosedStart&&(s[o=s.length-2]=Vm(s[o]+e),s[o+1]=Vm(s[o+1]+i),s[o-2]=Vm(s[o-2]+e),s[o-1]=Vm(s[o-1]+i)),s[n]=((s[n]+e)*c|0)/c,s[n+1]=((s[n+1]+i)*c|0)/c,n<s.length-2&&(s[n+2]=((s[n+2]+e)*c|0)/c,s[n+3]=((s[n+3]+i)*c|0)/c),a!==t&&a.element.setAttribute("transform","translate("+s[n]+Lm+s[n+1]+")");this.update()},e.enabled=function(t){if(!arguments.length)return this._enabled;for(var e=this._anchors.length;--e>-1;)this._anchors[e]._draggable.enabled(t);return this._enabled=t,this._handle1._draggable.enabled(t),this._handle2._draggable.enabled(t),this._draggable&&this._draggable.enabled(t),t?this._selection.parentNode||(this.path.ownerSVGElement.appendChild(this._selectionHittest),this.path.ownerSVGElement.appendChild(this._selection),this.init(),this._saveState()):(this.deselect(),this.path.ownerSVGElement.removeChild(this._selectionHittest),this.path.ownerSVGElement.removeChild(this._selection)),this._updateAnchors(),this.update()},e.update=function(t){var e,i,n,r,s,a="",o=this._editingAnchor;if(t&&this.init(),o&&(e=o.i,i=o.segment,(e||o.isClosedStart)&&(n=i[s=o.isClosedStart?i.length-4:e-2],r=i[s+1],this._handle1.setAttribute("transform","translate("+n+Lm+r+")"),this._line1.setAttribute("points",n+Lm+r+Lm+i[e]+Lm+i[e+1])),e<i.length-2&&(n=i[e+2],r=i[e+3],this._handle2.setAttribute("transform","translate("+n+Lm+r+")"),this._line2.setAttribute("points",i[e]+Lm+i[e+1]+Lm+n+Lm+r))),t)a=this.path.getAttribute("d");else{for(e=0;e<this._rawPath.length;e++)(i=this._rawPath[e]).length>7&&(a+="M"+i[0]+Lm+i[1]+"C"+i.slice(2).join(Lm));this.path.setAttribute("d",a),this._selectionPath.setAttribute("d",a),this._selectionHittest.setAttribute("d",a)}return this.vars.onUpdate&&this._enabled&&$m("onUpdate",this,a),this},e.getRawPath=function(t,e,i){if(t){var n=Hm(this.path);return Ba(Ea(this._rawPath),1,0,0,1,n.e+(e||0),n.f+(i||0))}return this._rawPath},e.getString=function(t,e,i){if(t){var n=Hm(this.path);return Wa(Ba(Ea(this._rawPath),1,0,0,1,n.e+(e||0),n.f+(i||0)))}return this.path.getAttribute("d")},e.getNormalizedSVG=function(t,e,i,n){var r,s,a,o,l,u,c=this._rawPath[0],h=-1*c[0],d=0===e?0:-(e||c[1]),p=c.length,f=1/(c[p-2]+h),m=-t||c[p-1]+d,g=1e3;for(Im.length=0,m=m?1/m:-f,f*=g,m*=g,s=0;s<p;s+=2)Im[s]=((c[s]+h)*f|0)/g,Im[s+1]=((c[s+1]+d)*m|0)/g;if(n){for(r=[],p=Im.length,s=2;s<p;s+=6)a=Im[s-2],o=Im[s-1],l=Im[s+4],u=Im[s+5],r.push(a,o,l,u),Va(a,o,Im[s],Im[s+1],Im[s+2],Im[s+3],l,u,.001,r,r.length-2);for(a=r[0],p=r.length,s=2;s<p;s+=2){if((l=r[s])<a||l>1||l<0){n();break}a=l}}return i&&8===p&&0===Im[0]&&0===Im[1]&&1===Im[p-2]&&1===Im[p-1]?Im.slice(2,6).join(","):(Im[2]="C"+Im[2],"M"+Im.join(","))},t}();ng.simplifyPoints=qa,ng.pointsToSegment=Ua,ng.simplifySVG=function(t,e){var i,n,r,s,a,o,l,u,c,h,d,p;if(h=(e=e||{}).tolerance||1,c=e.precision||1/h,p=(void 0===e.cornerThreshold?18:+e.cornerThreshold)*km,"string"!=typeof t&&(t=(i=t).getAttribute("d")),"#"!==t.charAt(0)&&"."!==t.charAt(0)||(i=um.querySelector(t))&&(t=i.getAttribute("d")),n=!1!==e.curved||/[achqstvz]/gi.test(t)?Ha(t)[0]:t.match(Tm),!1!==e.curved){for(u=n,n=[],d=u.length,r=2;r<d;r+=6)s=+u[r-2],o=+u[r-1],a=+u[r+4],l=+u[r+5],n.push(Vm(s),Vm(o),Vm(a),Vm(l)),Va(s,o,+u[r],+u[r+1],+u[r+2],+u[r+3],a,l,1/(2e5*c),n,n.length-2);(n=Ua(qa(n,h),e.curviness,p))[2]="C"+n[2]}else n=qa(n,h);return t="M"+n.join(","),i&&i.setAttribute("d",t),t},ng.create=function(t,e){return new ng(t,e)},ng.editingAxis=Pm,ng.getSnapFunction=function(t){var e=t.radius||2,i=1e20,n=t.x||0===t.x?t.x:t.width?0:-i,r=t.y||0===t.y?t.y:t.height?0:-i,s=n+(t.width||i*i),a=r+(t.height||i*i),o=!1!==t.containX,l=!1!==t.containY,u=t.axis,c=t.gridSize;return e*=e,function(t){var i,h,d,p,f=t.x,m=t.y;o&&f<n||(d=f-n)*d<e?f=n:(o&&f>s||(d=s-f)*d<e)&&(f=s),l&&m<r||(p=m-r)*p<e?m=r:(l&&m>a||(p=a-m)*p<e)&&(m=a),u&&(d=f-u.x,p=m-u.y,d*d<e&&(f=u.x),p*p<e&&(m=u.y)),c&&(d=(i=n+Math.round((f-n)/c)*c)-f)*d+(p=(h=r+Math.round((m-r)/c)*c)-m)*p<e&&(f=i,m=h),t.x=f,t.y=m}},ng.version="3.8.0";var rg,sg,ag,og,lg,ug,cg,hg,dg,pg=/(^[#\.][a-z]|[a-y][a-z])/i,fg=function(t){return"string"==typeof t},mg=function(t,e){var i=ag.createElementNS?ag.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ag.createElement(t);return i.style?i:ag.createElement(t)},gg=function(t,e,i){return fg(t)&&pg.test(t)?ag.querySelector(t):Array.isArray(t)?hg(cg([{x:rg.getProperty(e,"x"),y:rg.getProperty(e,"y")}].concat(t),i)):fg(t)||t&&"path"===(t.tagName+"").toLowerCase()?t:0},yg={matrix:{a:1,b:0,c:0,d:1,e:0,f:0}},vg=function(t,e){var i="Please gsap.registerPlugin(MotionPathPlugin)";sg=window,rg=rg||t||sg.gsap||console.warn(i),ag=document,lg=ag.body,og=ag.documentElement,(ug=rg&&rg.plugins.motionPath)?((dg=mg("textarea")).style.display="none",lg.appendChild(dg),cg=ug.arrayToRawPath,hg=ug.rawPathToString):!0===e&&console.warn(i)},_g=function(){function t(t,e){void 0===e&&(e={}),ug||vg(e.gsap,1);var i,n,r,s,a,o,l,u,c,h,d,p,f,m=mg("div"),g=this,y={x:0,y:0};t instanceof rg.core.Tween?i=(u=t).targets()[0]:(i=rg.utils.toArray(t)[0],u=function(t){for(var e=rg.getTweensOf(t),i=0;i<e.length;i++){if(e[i].vars.motionPath)return e[i];e[i].timeline&&e.push.apply(e,e[i].timeline.getChildren())}}(i)),n=gg(e.path,i,e),this.offset=y,o=function(t){var e=t.getBoundingClientRect(),i=og.clientTop-(sg.pageYOffset||og.scrollTop||lg.scrollTop||0),n=og.clientLeft-(sg.pageXOffset||og.scrollLeft||lg.scrollLeft||0);return{left:e.left+n,top:e.top+i,right:e.right+n,bottom:e.bottom+i}}(i),s=parseFloat(rg.getProperty(i,"x","px")),a=parseFloat(rg.getProperty(i,"y","px")),r=i.getCTM&&"svg"!==i.tagName.toLowerCase(),u&&!n&&(n=gg(u.vars.motionPath.path||u.vars.motionPath,i,u.vars.motionPath)),m.setAttribute("class","copy-motion-path"),m.style.cssText="border-radius:8px; background-color:rgba(85, 85, 85, 0.7); color:#fff; cursor:pointer; padding:6px 12px; font-family:Signika Negative, Arial, sans-serif; position:fixed; left:50%; transform:translate(-50%, 0); font-size:19px; bottom:10px",m.innerText="COPY MOTION PATH",m._gsHelper=g,(rg.utils.toArray(e.container)[0]||lg).appendChild(m),function(t,e,i){t.addEventListener("click",(function(t){if(t.target._gsHelper){var e=(t.target,g.getString());if(dg.value=e,e&&dg.select){console.log(e),dg.style.display="block",dg.select();try{ag.execCommand("copy"),dg.blur(),i&&i()}catch(t){console.warn("Copy didn't work; this browser doesn't permit that.")}dg.style.display="none"}}}))}(m,0,(function(){return rg.fromTo(m,{backgroundColor:"white"},{duration:.5,backgroundColor:"rgba(85, 85, 85, 0.6)"})})),(l=n&&n.ownerSVGElement)||(c=r&&i.ownerSVGElement&&i.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg",r?(l=i.ownerSVGElement,h=i.getBBox(),d=function(t){return(t.transform.baseVal.consolidate()||yg).matrix}(i),s=d.e,a=d.f,y.x=h.x,y.y=h.y):(l=mg("svg",c),lg.appendChild(l),l.setAttribute("viewBox","0 0 100 100"),l.setAttribute("class","motion-path-helper"),l.style.cssText="overflow:visible; background-color: transparent; position:absolute; z-index:5000; width:100px; height:100px; top:"+(o.top-a)+"px; left:"+(o.left-s)+"px;"),h=fg(n)&&!pg.test(n)?n:function(t,e){var i,n=[0,31,8,58,24,75,40,90,69,100,100,100];for(i=0;i<n.length;i+=2)n[i]+=t,n[i+1]+=e;return"M"+t+","+e+"C"+n.join(",")}(s,a),(n=mg("path",c)).setAttribute("d",h),n.setAttribute("vector-effect","non-scaling-stroke"),n.style.cssText="fill:transparent; stroke-width:"+(e.pathWidth||3)+"; stroke:"+(e.pathColor||"#555")+"; opacity:"+(e.pathOpacity||.6),l.appendChild(n),(y.x||y.y)&&rg.set(n,{x:y.x,y:y.y})),"selected"in e||(e.selected=!0),"anchorSnap"in e||(e.anchorSnap=function(t){t.x*t.x+t.y*t.y<16&&(t.x=t.y=0)}),f=u&&"nested"===u.parent.data?u.parent.parent:u,e.onPress=function(){f.pause(0)},p=function(){u.invalidate(),f.restart()},e.onRelease=e.onDeleteAnchor=p,this.editor=ng.create(n,e),e.center&&rg.set(i,{transformOrigin:"50% 50%",xPercent:-50,yPercent:-50}),u?(u.vars.motionPath.path?u.vars.motionPath.path=n:u.vars.motionPath={path:n},f.parent!==rg.globalTimeline&&rg.globalTimeline.add(f,function(t){for(var e=t.totalTime();t;)e=t.startTime()+e/(t.timeScale()||1),t=t.parent;return e}(f)-f.delay()),f.repeat(-1).repeatDelay(1)):u=f=rg.to(i,{motionPath:{path:n,start:e.start||0,end:"end"in e?e.end:1,autoRotate:"autoRotate"in e&&e.autoRotate,align:n,alignOrigin:e.alignOrigin},duration:e.duration||5,ease:e.ease||"power1.inOut",repeat:-1,repeatDelay:1,paused:!e.path}),this.animation=u}return t.prototype.getString=function(){return this.editor.getString(!0,-this.offset.x,-this.offset.y)},t}();_g.register=vg,_g.create=function(t,e){return new _g(t,e)},_g.editPath=function(t,e){return ng.create(t,e)},_g.version="3.8.0";var bg,xg,Tg,wg=/(?:\r|\n|\t\t)/g,kg=/(?:\s\s+)/g,Sg=function(t){return xg.getComputedStyle(t)},Eg=Array.isArray,Dg=[].slice,Cg=function(t,e){var i;return Eg(t)?t:"string"==(i=typeof t)&&!e&&t?Dg.call(bg.querySelectorAll(t),0):t&&"object"===i&&"length"in t?Dg.call(t,0):t?[t]:[]},Pg=function(t){return"absolute"===t.position||!0===t.absolute},Ag=function(t,e){for(var i,n=e.length;--n>-1;)if(i=e[n],t.substr(0,i.length)===i)return i.length},Mg=function(t,e){void 0===t&&(t="");var i=~t.indexOf("++"),n=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(i?n++:"")+"'>":">")}},Ig=function t(e,i,n){var r=e.nodeType;if(1===r||9===r||11===r)for(e=e.firstChild;e;e=e.nextSibling)t(e,i,n);else 3!==r&&4!==r||(e.nodeValue=e.nodeValue.split(i).join(n))},Lg=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},Og=function(t,e,i){for(var n;t&&t!==e;){if(n=t._next||t.nextSibling)return n.textContent.charAt(0)===i;t=t.parentNode||t._parent}},Fg=function t(e){var i,n,r=Cg(e.childNodes),s=r.length;for(i=0;i<s;i++)(n=r[i])._isSplit?t(n):i&&n.previousSibling&&3===n.previousSibling.nodeType?(n.previousSibling.nodeValue+=3===n.nodeType?n.nodeValue:n.firstChild.nodeValue,e.removeChild(n)):3!==n.nodeType&&(e.insertBefore(n.firstChild,n),e.removeChild(n))},Rg=function(t,e){return parseFloat(e[t])||0},Bg=function(t,e,i,n,r,s,a){var o,l,u,c,h,d,p,f,m,g,y,v,_=Sg(t),b=Rg("paddingLeft",_),x=-999,T=Rg("borderBottomWidth",_)+Rg("borderTopWidth",_),w=Rg("borderLeftWidth",_)+Rg("borderRightWidth",_),k=Rg("paddingTop",_)+Rg("paddingBottom",_),S=Rg("paddingLeft",_)+Rg("paddingRight",_),E=Rg("fontSize",_)*(e.lineThreshold||.2),D=_.textAlign,C=[],P=[],A=[],M=e.wordDelimiter||" ",I=e.tag?e.tag:e.span?"span":"div",L=e.type||e.split||"chars,words,lines",O=r&&~L.indexOf("lines")?[]:null,F=~L.indexOf("words"),R=~L.indexOf("chars"),B=Pg(e),N=e.linesClass,H=~(N||"").indexOf("++"),V=[],j="flex"===_.display,U=t.style.display;for(H&&(N=N.split("++").join("")),j&&(t.style.display="block"),u=(l=t.getElementsByTagName("*")).length,h=[],o=0;o<u;o++)h[o]=l[o];if(O||B)for(o=0;o<u;o++)((d=(c=h[o]).parentNode===t)||B||R&&!F)&&(v=c.offsetTop,O&&d&&Math.abs(v-x)>E&&("BR"!==c.nodeName||0===o)&&(p=[],O.push(p),x=v),B&&(c._x=c.offsetLeft,c._y=v,c._w=c.offsetWidth,c._h=c.offsetHeight),O&&((c._isSplit&&d||!R&&d||F&&d||!F&&c.parentNode.parentNode===t&&!c.parentNode._isSplit)&&(p.push(c),c._x-=b,Og(c,t,M)&&(c._wordEnd=!0)),"BR"===c.nodeName&&(c.nextSibling&&"BR"===c.nextSibling.nodeName||0===o)&&O.push([])));for(o=0;o<u;o++)if(d=(c=h[o]).parentNode===t,"BR"!==c.nodeName)if(B&&(m=c.style,F||d||(c._x+=c.parentNode._x,c._y+=c.parentNode._y),m.left=c._x+"px",m.top=c._y+"px",m.position="absolute",m.display="block",m.width=c._w+1+"px",m.height=c._h+"px"),!F&&R)if(c._isSplit)for(c._next=l=c.nextSibling,c.parentNode.appendChild(c);l&&3===l.nodeType&&" "===l.textContent;)c._next=l.nextSibling,c.parentNode.appendChild(l),l=l.nextSibling;else c.parentNode._isSplit?(c._parent=c.parentNode,!c.previousSibling&&c.firstChild&&(c.firstChild._isFirst=!0),c.nextSibling&&" "===c.nextSibling.textContent&&!c.nextSibling.nextSibling&&V.push(c.nextSibling),c._next=c.nextSibling&&c.nextSibling._isFirst?null:c.nextSibling,c.parentNode.removeChild(c),h.splice(o--,1),u--):d||(v=!c.nextSibling&&Og(c.parentNode,t,M),c.parentNode._parent&&c.parentNode._parent.appendChild(c),v&&c.parentNode.appendChild(bg.createTextNode(" ")),"span"===I&&(c.style.display="inline"),C.push(c));else c.parentNode._isSplit&&!c._isSplit&&""!==c.innerHTML?P.push(c):R&&!c._isSplit&&("span"===I&&(c.style.display="inline"),C.push(c));else O||B?(c.parentNode&&c.parentNode.removeChild(c),h.splice(o--,1),u--):F||t.appendChild(c);for(o=V.length;--o>-1;)V[o].parentNode.removeChild(V[o]);if(O){for(B&&(g=bg.createElement(I),t.appendChild(g),y=g.offsetWidth+"px",v=g.offsetParent===t?0:t.offsetLeft,t.removeChild(g)),m=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(f=" "===M&&(!B||!F&&!R),o=0;o<O.length;o++){for(p=O[o],(g=bg.createElement(I)).style.cssText="display:block;text-align:"+D+";position:"+(B?"absolute;":"relative;"),N&&(g.className=N+(H?o+1:"")),A.push(g),u=p.length,l=0;l<u;l++)"BR"!==p[l].nodeName&&(c=p[l],g.appendChild(c),f&&c._wordEnd&&g.appendChild(bg.createTextNode(" ")),B&&(0===l&&(g.style.top=c._y+"px",g.style.left=b+v+"px"),c.style.top="0px",v&&(c.style.left=c._x-v+"px")));0===u?g.innerHTML=" ":F||R||(Fg(g),Ig(g,String.fromCharCode(160)," ")),B&&(g.style.width=y,g.style.height=c._h+"px"),t.appendChild(g)}t.style.cssText=m}B&&(a>t.clientHeight&&(t.style.height=a-k+"px",t.clientHeight<a&&(t.style.height=a+T+"px")),s>t.clientWidth&&(t.style.width=s-S+"px",t.clientWidth<s&&(t.style.width=s+w+"px"))),j&&(U?t.style.display=U:t.style.removeProperty("display")),Lg(i,C),F&&Lg(n,P),Lg(r,A)},Ng=function t(e,i,n,r){var s,a,o=Cg(e.childNodes),l=o.length,u=Pg(i);if(3!==e.nodeType||l>1){for(i.absolute=!1,s=0;s<l;s++)(a=o[s])._next=a._isFirst=a._parent=a._wordEnd=null,(3!==a.nodeType||/\S+/.test(a.nodeValue))&&(u&&3!==a.nodeType&&"inline"===Sg(a).display&&(a.style.display="inline-block",a.style.position="relative"),a._isSplit=!0,t(a,i,n,r));return i.absolute=u,void(e._isSplit=!0)}!function(t,e,i,n){var r,s,a,o,l,u,c,h,d=e.tag?e.tag:e.span?"span":"div",p=~(e.type||e.split||"chars,words,lines").indexOf("chars"),f=Pg(e),m=e.wordDelimiter||" ",g=" "!==m?"":f?"­ ":" ",y="</"+d+">",v=1,_=e.specialChars?"function"==typeof e.specialChars?e.specialChars:Ag:null,b=bg.createElement("div"),x=t.parentNode;for(x.insertBefore(b,t),b.textContent=t.nodeValue,x.removeChild(t),c=-1!==(r=Ac(t=b)).indexOf("<"),!1!==e.reduceWhiteSpace&&(r=r.replace(kg," ").replace(wg,"")),c&&(r=r.split("<").join("{{LT}}")),l=r.length,s=(" "===r.charAt(0)?g:"")+i(),a=0;a<l;a++)if(u=r.charAt(a),_&&(h=_(r.substr(a),e.specialChars)))u=r.substr(a,h||1),s+=p&&" "!==u?n()+u+"</"+d+">":u,a+=h-1;else if(u===m&&r.charAt(a-1)!==m&&a){for(s+=v?y:"",v=0;r.charAt(a+1)===m;)s+=g,a++;a===l-1?s+=g:")"!==r.charAt(a+1)&&(s+=g+i(),v=1)}else"{"===u&&"{{LT}}"===r.substr(a,6)?(s+=p?n()+"{{LT}}</"+d+">":"{{LT}}",a+=5):u.charCodeAt(0)>=55296&&u.charCodeAt(0)<=56319||r.charCodeAt(a+1)>=65024&&r.charCodeAt(a+1)<=65039?(o=((r.substr(a,12).split(Pc)||[])[1]||"").length||2,s+=p&&" "!==u?n()+r.substr(a,o)+"</"+d+">":r.substr(a,o),a+=o-1):s+=p&&" "!==u?n()+u+"</"+d+">":u;t.outerHTML=s+(v?y:""),c&&Ig(x,"{{LT}}","<")}(e,i,n,r)},Hg=function(){function t(t,e){Tg||(bg=document,xg=window,Tg=1),this.elements=Cg(t),this.chars=[],this.words=[],this.lines=[],this._originals=[],this.vars=e||{},this.split(e)}var e=t.prototype;return e.split=function(t){this.isSplit&&this.revert(),this.vars=t=t||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var e,i,n,r=this.elements.length,s=t.tag?t.tag:t.span?"span":"div",a=Mg(t.wordsClass,s),o=Mg(t.charsClass,s);--r>-1;)n=this.elements[r],this._originals[r]=n.innerHTML,e=n.clientHeight,i=n.clientWidth,Ng(n,t,a,o),Bg(n,t,this.chars,this.words,this.lines,i,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},e.revert=function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach((function(e,i){return e.innerHTML=t[i]})),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},t.create=function(e,i){return new t(e,i)},t}();Hg.version="3.8.0";var Vg=ni.registerPlugin(vn)||ni;Vg.core.Tween},5684:(t,e,i)=>{"use strict";i.d(e,{Z:()=>b});const n=i(6729);var r=i(100),s=!1;if("undefined"!=typeof window){var a={get passive(){s=!0}};window.addEventListener("testPassive",null,a),window.removeEventListener("testPassive",null,a)}var o="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),l=[],u=!1,c=-1,h=void 0,d=void 0,p=function(t){return l.some((function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))}))},f=function(t){var e=t||window.event;return!!p(e.target)||e.touches.length>1||(e.preventDefault&&e.preventDefault(),!1)},m=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==h&&(document.body.style.overflow=h,h=void 0)};const g=new class{constructor(){this.className="scroll-disable",this.html=document.documentElement}disable(t){this.html.classList.add(this.className),function(t,e){if(t){if(!l.some((function(e){return e.targetElement===t}))){var i={targetElement:t,options:e||{}};l=[].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}(l),[i]),o?(t.ontouchstart=function(t){1===t.targetTouches.length&&(c=t.targetTouches[0].clientY)},t.ontouchmove=function(e){1===e.targetTouches.length&&function(t,e){var i=t.targetTouches[0].clientY-c;!p(t.target)&&(e&&0===e.scrollTop&&i>0||function(t){return!!t&&t.scrollHeight-t.scrollTop<=t.clientHeight}(e)&&i<0?f(t):t.stopPropagation())}(e,t)},u||(document.addEventListener("touchmove",f,s?{passive:!1}:void 0),u=!0)):function(t){if(void 0===d){var e=!!t&&!0===t.reserveScrollBarGap,i=window.innerWidth-document.documentElement.clientWidth;e&&i>0&&(d=document.body.style.paddingRight,document.body.style.paddingRight=i+"px")}void 0===h&&(h=document.body.style.overflow,document.body.style.overflow="hidden")}(e)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}(t,{reserveScrollBarGap:!0}),r.Z.instance&&r.Z.instance.stop()}enable(t){var e;this.html.classList.remove(this.className),(e=t)?(l=l.filter((function(t){return t.targetElement!==e})),o?(e.ontouchstart=null,e.ontouchmove=null,u&&0===l.length&&(document.removeEventListener("touchmove",f,s?{passive:!1}:void 0),u=!1)):l.length||m()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),r.Z.instance&&r.Z.instance.start()}toggle(t){this.html.classList.contains(this.className)?this.enable(t):this.disable(t)}clearAll(){this.html.classList.remove(this.className),o?(l.forEach((function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null})),u&&(document.removeEventListener("touchmove",f,s?{passive:!1}:void 0),u=!1),c=-1):m(),l=[]}};var y=i(6267),v=i(7390),_=i(3409);const b=new class extends n{constructor(){super(),this.threshold=window.innerHeight/6,this.thresholdPassed=!1,this.$el=document.querySelector(".c-overlay"),this.$wrapper=document.querySelector(".c-overlay__wrapper"),this.$scroll=document.querySelector(".c-overlay__scroll"),this.$content=document.querySelector(".c-overlay__content"),this.$close=[...document.querySelectorAll("[data-overlay-close]")],this.$button=document.querySelector(".c-overlay__button"),this.showClass="c-overlay--show",this.loadedClass="c-overlay--loaded",this.handleClose(),this.pageLocation=window.location.href,window.newScrollbar=new y.ZP({el:this.$scroll,scrollbarContainer:this.$wrapper,scrollFromAnywhere:!(v.Z.isSafari&&!v.Z.isMobile),smooth:!0}),window.newScrollbar.on("scroll",(({scroll:t})=>{t.y>this.threshold&!this.thresholdPassed?(this.$button.classList.add("is-active"),this.thresholdPassed=!0):t.y<this.threshold&this.thresholdPassed&&(this.$button.classList.remove("is-active"),this.thresholdPassed=!1)})),window.newScrollbar.stop(),window.addEventListener("resize",(()=>{this.onResize()})),window.addEventListener("popstate",(()=>{this.close()}))}handleClose(){this.$close.forEach((t=>{t.addEventListener("click",(()=>{this.close()}))})),document.addEventListener("keydown",(t=>{this.$el.classList.contains(this.showClass)&&27==t.keyCode&&this.close()}))}onResize(){this.threshold=window.innerHeight/4}open(t){this.pageLocation=window.location.href,history.pushState(null,null,t),this.$el.classList.add(this.showClass),document.documentElement.classList.add("overlay-active"),g.disable(this.$scroll),r.Z.instance.stop();for(let t in window.newScrollbar.scroll.currentElements)delete window.newScrollbar.scroll.currentElements[t];this.$content.innerHTML="";const e=new XMLHttpRequest;e.onload=()=>{this.onLoad(t)},e.onerror=function(){console.error("Error loading"+t)},e.open("get",t),e.send(),this.xhr=e,window.newScrollbar.start(),window.newScrollbar.scrollTo(0,{duration:0,disableLerp:!0}),this.emit("open")}close(t,e){this.delayedCall&&this.delayedCall.kill(),history.replaceState(null,null,this.pageLocation),this.$el.classList.remove(this.showClass),this.$el.classList.remove(this.loadedClass),document.documentElement.classList.remove("overlay-active"),g.enable(this.$scroll),window.newScrollbar.stop(),this.removeActiveLink(),this.emit("close")}removeActiveLink(){const t=document.querySelector(".link-active");t&&t.classList.remove("link-active")}onLoad(t){const e=(new DOMParser).parseFromString(this.xhr.response,"text/html");[...e.querySelectorAll(".o-reveal")].forEach((t=>{t.classList.remove("o-reveal")})),[...e.querySelectorAll("[data-scroll-section]")].forEach((t=>{t.removeAttribute("data-scroll-section")})),[...e.querySelectorAll("[data-scroll]")].forEach((t=>{t.removeAttribute("data-scroll")}));const i=e.querySelector("[data-overlay-content]");this.$content.appendChild(i),this.delayedCall=_.p8.delayedCall(.03,(()=>{this.$el.classList.add(this.loadedClass)})),window.requestAnimationFrame((()=>{window.newScrollbar.update()}))}}},100:(t,e,i)=>{"use strict";i.d(e,{Z:()=>r});var n=i(6267);const r=new class{constructor(){return this.removeDataScrollFromWorkPage(),this.scrollbar={instance:this.initScrollbar(),destroyInstance(){this.instance.destroy(),this.instance=null},initInstance(t){this.instance=new n.ZP({el:t||document.querySelector("[data-scroll-container]"),getDirection:!0,getSpeed:!0,smooth:!0,offset:[50,0],resetNativeScroll:!1,smartphone:{smooth:!0},tablet:{smooth:!0}}),this.events.forEach((t=>{this.instance.on("scroll",t)}))},events:[],addScrollEvent(t){this.events.includes(t)||(this.events.push(t),this.instance.on("scroll",t))},removeScrollEvent(t){const e=this.events.indexOf(t);this.events.splice(e,1),this.instance.off("scroll",t)}},this.scrollbar}removeDataScrollFromWorkPage(){if(document.body.classList.contains("tpl-work")){const t=[...document.querySelectorAll(".c-media")];t&&t.forEach((t=>{t.removeAttribute("data-scroll-section");const e=t.querySelector(".c-media__cta-wrapper");e&&e.removeAttribute("data-scroll")}))}}initScrollbar(t){return new n.ZP({el:t||document.querySelector("[data-scroll-container]"),getDirection:!0,getSpeed:!0,smooth:!0,offset:[50,0],resetNativeScroll:!1,smartphone:{smooth:!0},tablet:{smooth:!0}})}resetScroll(t){t.scrollTo(0,{duration:0,disableLerp:!0,offset:0,smooth:!1}),t.scroll.instance.scroll.y=0}}},5893:()=>{},434:t=>{function e(){return t.exports=e=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(this,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.amdO={},__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";class t{static keyCode=103;static html='\n <div id="dev-grid">\n <style>\n #dev-grid {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n z-index: 100000;\n }\n #dev-grid .o-grid > * {\n height: 100vh;\n display: flex;\n }\n #dev-grid .o-grid > *:before {\n content: \'\';\n display: block;\n width: 100%;\n background-color: rgba(255,0,0,.15);\n }\n </style>\n <div class="o-container u-d-none u-d-sm-block">\n <div class="o-grid">\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n <div class="o-col-1"></div>\n </div>\n </div>\n </div>\n';constructor(){this.active=!1,document.addEventListener("keypress",this.onKeyPress.bind(this))}onKeyPress(e){e.keyCode==t.keyCode&&"input"!=event.target.tagName.toLowerCase()&&"textarea"!=event.target.tagName.toLowerCase()&&(this.active=!this.active,this.active?this.show():this.hide())}show(){document.body.insertAdjacentHTML("beforeend",t.html)}hide(){document.getElementById("dev-grid").remove()}}var e=__webpack_require__(9988);class i extends e.CustomEvent{constructor(...t){super(...t),this.scope="global",this.log=!1,this.width=window.innerWidth,this.height=window.innerHeight,this.elements=new Set,this.onResize=this.onResizeHandler.bind(this)}bind(t,e){const{element:i}=t.context;this.elements.add(i),this.eventByElement.set(i,this.callback(t,e)),1==this.elements.size&&window.addEventListener("resize",this.onResize)}unbind(t){const{element:e}=t.context;this.elements.delete(e),0==this.elements.size&&window.addEventListener("resize",this.onResize)}onResizeHandler(){const t=window.innerWidth,e=window.innerHeight,i=t/e,n=t!=this.width,r=e!=this.height;this.width=t,this.height=e,this.elements.forEach((s=>{this.eventByElement.get(s)({width:t,height:e,ratio:i,widthIsChanged:n,heightIsChanged:r})}))}callback(t,e){return function(i){e.emit("resize",i),t.onResize(i)}}}const n=new i("resize");var r=__webpack_require__(100),s=__webpack_require__(3409),a=__webpack_require__(9069),o=__webpack_require__.n(a),l=__webpack_require__(7390);const u=new class{constructor(){this.initialVar="--initial-vh",this.actualVar="--actual-vh",l.Z.isMobile&&(this.updateAll(),window.addEventListener("orientationchange",this.delayUpdateActual.bind(this)),window.addEventListener("resize",this.delayUpdateActual.bind(this)))}updateValue(t){if(l.Z.isMobile){var e=.01*window.innerHeight;document.documentElement.style.setProperty(t,e+"px")}}updateAll(){this.updateActual(),this.updateInitial()}updateActual(){this.updateValue(this.actualVar)}updateInitial(){this.updateValue(this.initialVar)}delayUpdateActual(){setTimeout(this.updateActual.bind(this),100)}},c=u,h=class extends e.NoComponent{init(){const t=10;o().init({debug:!1,prefetchIgnore:!0,preventRunning:!0,transitions:[{sync:!0,name:"opacity-transition",leave(e){const i=document.querySelector('[data-barba="container"'),n=i.firstElementChild,r=n.firstElementChild,a=document.querySelector(".c-site-wrapper__inner");i.style.transform="rotate3d(0,0,1,10deg)",n.style.width=`calc(100vw * ${Math.abs(Math.cos(t*Math.PI/180))} + 100vh * ${Math.abs(Math.sin(t*Math.PI/180))})`,n.style.height=`calc(100vw * ${Math.abs(Math.sin(t*Math.PI/180))} + 100vh * ${Math.abs(Math.cos(t*Math.PI/180))})`,r.style.transform="rotate3d(0,0,-1,10deg)",e.current.container.style.zIndex=2;const o=s.p8.timeline();return o.to(n,{y:"-100%",duration:2,ease:"power4.inOut"},0),o.to(r,{y:"100%",duration:2,ease:"power4.inOut"},0),o.to(a,{rotation:5,y:"-25%",transformOrigin:"bottom left",scale:1.1,duration:2,ease:"power4.inOut"},0),o.then()},enter(t){const e=t.next.container.querySelector(".c-site-wrapper__overlay-wrapper"),i=e.firstElementChild,n=t.next.container.querySelector(".c-site-wrapper__inner");e.style.transform="rotate3d(0,0,1,10deg)",i.style.width=`calc(100vw * ${Math.abs(Math.cos(10*Math.PI/180))} + 100vh * ${Math.abs(Math.sin(10*Math.PI/180))})`,i.style.height=`calc(100vw * ${Math.abs(Math.sin(10*Math.PI/180))} + 100vh * ${Math.abs(Math.cos(10*Math.PI/180))})`;const r=new s.p8.timeline;return r.to(i,{y:"-100%",ease:"power4.inOut",duration:2.4},0),r.from(n,{y:"25%",scale:1.1,rotation:-10,transformOrigin:"bottom right",ease:"power4.inOut",duration:2},0),r.then()}}]}),o().hooks.before((t=>{document.documentElement.classList.add("is-real-transitioning"),document.documentElement.classList.add("is-transitioning");const e=t.next.html.match(/body\sclass=['"]([^'|"]*)['"]/)[1];console.log(t.next),document.body.className=e,this.emit("before"),r.Z.destroyInstance(),document.documentElement.classList.remove("theme-black")})),o().hooks.enter((t=>{this.emit("enter"),r.Z.initInstance(t.next.container.querySelector("[data-scroll-container]")),r.Z.instance.update(),s.p8.delayedCall(1,(()=>{document.documentElement.classList.remove("is-transitioning")})),s.p8.delayedCall(.75,(()=>{this.emit("after-enter")})),l.Z.isMobile&&!l.Z.isSafari&&window.setTimeout((()=>{window.dispatchEvent(new Event("resize"))}),1e3),"/"!=t.next.url.path&&"/templates/full/home/"!=t.next.url.path||window.setTimeout((()=>{window.dispatchEvent(new Event("resize"))}),1500)})),o().hooks.after((t=>{document.documentElement.classList.remove("is-real-transitioning")}))}};class d extends e.CustomEvent{constructor(...t){super(...t),this.scope="global",this.log=!1}bind(t,e){const{element:i}=t.context;this.eventByElement.set(i,this.callback(t,e)),r.Z.instance?r.Z.addScrollEvent(this.eventByElement.get(i)):window.setTimeout((()=>{r.Z.addScrollEvent(this.eventByElement.get(i))}),100)}unbind(t){const{element:e}=t.context;r.Z.removeScrollEvent(this.eventByElement.get(e))}callback(t,e){return function(){e.emit("scroll",r.Z.instance.scroll.instance),t.onScroll(r.Z.instance.scroll.instance)}}}const p=new d("scroll");class f extends e.CustomEvent{constructor(...t){super(...t),this.scope="global",this.log=!1,this.elements=new Set,this.onScroll=this.onScrollHandler.bind(this)}bind(t){const{element:e}=t.context;this.elements.add(e),this.eventByElement.set(e,this.callback(t)),r.Z.instance?r.Z.addScrollEvent(this.onScroll):window.setTimeout((()=>{r.Z.addScrollEvent(this.onScroll)}),100),1==this.elements.size&&this.startListener()}unbind(t){const{element:e}=t.context;this.elements.delete(e),0==this.elements.size&&this.stopListener()}startListener(){r.Z.instance&&r.Z.addScrollEvent(this.onScroll)}stopListener(){r.Z.instance&&r.Z.removeScrollEvent(this.onScroll)}onScrollHandler(t){for(let e in t.currentElements){const i=t.currentElements[e];this.elements.has(i.el)&&this.eventByElement.get(i.el)(i.progress,i)}}callback(t){return function(e,i){t.onScrollProgress(e,i)}}}const m=new f("scrollProgress"),g=class extends e.NoComponent{init(){this.enhanceAll(),this.subscribe("barba").on("enter",(()=>{this.enhanceAll()}))}enhanceAll(){this.enhanceCtas(),this.enhanceLinks(),this.enhanceWorksButtons(),this.setActiveMenuLink()}enhanceWorksButtons(){document.querySelectorAll(".c-works__header-button",".c-overlay__button").forEach((t=>{if(!t.classList.contains("enhanced-cta")){const e=t.innerText;t.innerHTML="";const i=document.createElement("span"),n=document.createElement("span");n.innerHTML=e,i.classList.add("c-works__button-wrapper"),i.appendChild(n),i.appendChild(n.cloneNode(!0)),t.appendChild(i),t.classList.add("enhanced-cta")}}))}enhanceCtas(){document.querySelectorAll(".o-cta").forEach((t=>{if(!t.classList.contains("enhanced-cta")){const e=t.querySelector(".o-button-arrow"),i=t.innerText;t.innerHTML="";const n=document.createElement("span"),r=document.createElement("span");r.innerHTML=i,n.classList.add("o-cta__text-wrapper"),n.appendChild(r),n.appendChild(r.cloneNode(!0)),t.appendChild(n),t.appendChild(e),t.classList.add("enhanced-cta")}}))}enhanceLinks(){document.querySelectorAll("a[href]").forEach((t=>{t.addEventListener("click",(t=>{t.currentTarget.href==window.location.href&&(t.preventDefault(),t.stopPropagation(),this.emit("a-href-equals-location-href"))})),t.classList.contains("enhanced-link")||t.classList.contains("no-enhance")||t.classList.contains("menu-link")||(t.addEventListener("click",(t=>{t.currentTarget.href!=window.location.href&&t.currentTarget.classList.add("link-active")})),t.classList.add("enhanced-link"))}))}setActiveMenuLink(){[...document.querySelectorAll(".menu-link")].forEach((t=>{t.classList.remove("is-active"),document.body.classList.contains(t.dataset.id)&&t.classList.add("is-active")}))}};__webpack_require__(7090),__webpack_require__(82),window.VIDEOJS_NO_DYNAMIC_STYLE=!0,c.updateAll(),l.Z.isMobile&&document.documentElement.classList.add("is-mobile"),document.addEventListener("keydown",(t=>{var e=t.keyCode||t.which;if(9==e||32==e)return t.preventDefault(),!1}));class y{static start(){return r.Z.instance.stop(),new y}constructor(){Promise.all([y.domReady(),document.fonts.ready]).then(this.init.bind(this)).catch((t=>{console.log(t)}))}static domReady(){return new Promise((t=>{document.addEventListener("DOMContentLoaded",t)}))}init(){const t=__webpack_require__(2943),i=e.Application.start();i.use("resize",n),i.use("scrollProgress",m),i.use("scroll",p),i.load((0,e.autoLoad)(t)),i.init("enhance-dom",g),i.init("barba",h),window.addEventListener("load",(()=>{r.Z.instance.update()})),window.setTimeout((()=>{document.documentElement.classList.add("dom-loaded"),window.dispatchEvent(new Event("resize"))}),300)}}new t,y.start()})()})();