123 |
- var __webpack_modules__=[,,(t,e,n)=>{n.d(e,{Component:()=>P,Fragment:()=>O,createContext:()=>z,h:()=>w,options:()=>r,render:()=>U});var i,r,o,a,s,u,l,c,d,h,p,f,v={},y=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function w(t,e,n){var r,o,a,s={};for(a in e)"key"==a?r=e[a]:"ref"==a?o=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)null==s[a]&&(s[a]=t.defaultProps[a]);return E(t,s,r,o,null)}function E(t,e,n,i,a){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(s),s}function O(t){return t.children}function P(t,e){this.props=t,this.context=e}function k(t,e){if(null==e)return t.__?k(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?k(t):null}function S(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return S(t)}}function T(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!C.__r++||s!=r.debounceRendering)&&((s=r.debounceRendering)||u)(C)}function C(){for(var t,e,n,i,o,s,u,c=1;a.length;)a.length>c&&a.sort(l),t=a.shift(),c=a.length,t.__d&&(n=void 0,o=(i=(e=t).__v).__e,s=[],u=[],e.__P&&((n=b({},i)).__v=i.__v+1,r.vnode&&r.vnode(n),x(e.__P,n,i,e.__n,e.__P.namespaceURI,32&i.__u?[o]:null,s,null==o?k(i):o,!!(32&i.__u),u),n.__v=i.__v,n.__.__k[n.__i]=n,R(s,n,u),n.__e!=o&&S(n)));C.__r=0}function A(t,e,n,i,r,o,a,s,u,l,c){var d,h,p,f,m,g,b=i&&i.__k||y,_=e.length;for(u=j(n,e,b,u,_),d=0;d<_;d++)null!=(p=n.__k[d])&&(h=-1==p.__i?v:b[p.__i]||v,p.__i=d,g=x(t,p,h,r,o,a,s,u,l,c),f=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&N(h.ref,null,p),c.push(p.ref,p.__c||f,p)),null==m&&null!=f&&(m=f),4&p.__u||h.__k===p.__k?u=M(p,u,t):"function"==typeof p.type&&void 0!==g?u=g:f&&(u=f.nextSibling),p.__u&=-7);return n.__e=m,u}function j(t,e,n,i,r){var o,a,s,u,l,c=n.length,d=c,h=0;for(t.__k=new Array(r),o=0;o<r;o++)null!=(a=e[o])&&"boolean"!=typeof a&&"function"!=typeof a?(u=o+h,(a=t.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?E(null,a,null,null,null):g(a)?E(O,{children:a},null,null,null):null==a.constructor&&a.__b>0?E(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,s=null,-1!=(l=a.__i=I(a,n,u,d))&&(d--,(s=n[l])&&(s.__u|=2)),null==s||null==s.__v?(-1==l&&(r>c?h--:r<c&&h++),"function"!=typeof a.type&&(a.__u|=4)):l!=u&&(l==u-1?h--:l==u+1?h++:(l>u?h--:h++,a.__u|=4))):t.__k[o]=null;if(d)for(o=0;o<c;o++)null!=(s=n[o])&&!(2&s.__u)&&(s.__e==i&&(i=k(s)),H(s,s));return i}function M(t,e,n){var i,r;if("function"==typeof t.type){for(i=t.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=t,e=M(i[r],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=k(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function I(t,e,n,i){var r,o,a=t.key,s=t.type,u=e[n];if(null===u&&null==t.key||u&&a==u.key&&s==u.type&&!(2&u.__u))return n;if(i>(null==u||2&u.__u?0:1))for(r=n-1,o=n+1;r>=0||o<e.length;){if(r>=0){if((u=e[r])&&!(2&u.__u)&&a==u.key&&s==u.type)return r;r--}if(o<e.length){if((u=e[o])&&!(2&u.__u)&&a==u.key&&s==u.type)return o;o++}}return-1}function D(t,e,n){"-"==e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||m.test(e)?n:n+"px"}function L(t,e,n,i,r){var o;t:if("style"==e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||D(t.style,e,"");if(n)for(e in n)i&&n[e]==i[e]||D(t.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])o=e!=(e=e.replace(c,"$1")),e=e.toLowerCase()in t||"onFocusOut"==e||"onFocusIn"==e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?i?n.u=i.u:(n.u=d,t.addEventListener(e,o?p:h,o)):t.removeEventListener(e,o?p:h,o);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function B(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=d++;else if(e.t<n.u)return;return n(r.event?r.event(e):e)}}}function x(t,e,n,i,o,a,s,u,l,c){var d,h,p,f,v,y,m,w,E,k,S,T,C,j,M,I,D,L=e.type;if(null!=e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[u=e.__e=n.__e]),(d=r.__b)&&d(e);t:if("function"==typeof L)try{if(w=e.props,E="prototype"in L&&L.prototype.render,k=(d=L.contextType)&&i[d.__c],S=d?k?k.props.value:d.__:i,n.__c?m=(h=e.__c=n.__c).__=h.__E:(E?e.__c=h=new L(w,S):(e.__c=h=new P(w,S),h.constructor=L,h.render=V),k&&k.sub(h),h.props=w,h.state||(h.state={}),h.context=S,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),E&&null==h.__s&&(h.__s=h.state),E&&null!=L.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=b({},h.__s)),b(h.__s,L.getDerivedStateFromProps(w,h.__s))),f=h.props,v=h.state,h.__v=e,p)E&&null==L.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),E&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(E&&null==L.getDerivedStateFromProps&&w!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(w,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(w,h.__s,S)||e.__v==n.__v){for(e.__v!=n.__v&&(h.props=w,h.state=h.__s,h.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some((function(t){t&&(t.__=e)})),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[],h.__h.length&&s.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(w,h.__s,S),E&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(f,v,y)}))}if(h.context=S,h.props=w,h.__P=t,h.__e=!1,C=r.__r,j=0,E){for(h.state=h.__s,h.__d=!1,C&&C(e),d=h.render(h.props,h.state,h.context),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[]}else do{h.__d=!1,C&&C(e),d=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++j<25);h.state=h.__s,null!=h.getChildContext&&(i=b(b({},i),h.getChildContext())),E&&!p&&null!=h.getSnapshotBeforeUpdate&&(y=h.getSnapshotBeforeUpdate(f,v)),I=d,null!=d&&d.type===O&&null==d.key&&(I=F(d.props.children)),u=A(t,g(I)?I:[I],e,n,i,o,a,s,u,l,c),h.base=e.__e,e.__u&=-161,h.__h.length&&s.push(h),m&&(h.__E=h.__=null)}catch(t){if(e.__v=null,l||null!=a)if(t.then){for(e.__u|=l?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,e.__e=u}else for(D=a.length;D--;)_(a[D]);else e.__e=n.__e,e.__k=n.__k;r.__e(t,e,n)}else null==a&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):u=e.__e=W(n.__e,e,n,i,o,a,s,l,c);return(d=r.diffed)&&d(e),128&e.__u?void 0:u}function R(t,e,n){for(var i=0;i<n.length;i++)N(n[i],n[++i],n[++i]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function F(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:g(t)?t.map(F):b({},t)}function W(t,e,n,o,a,s,u,l,c){var d,h,p,f,y,m,b,w=n.props,E=e.props,O=e.type;if("svg"==O?a="http://www.w3.org/2000/svg":"math"==O?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((y=s[d])&&"setAttribute"in y==!!O&&(O?y.localName==O:3==y.nodeType)){t=y,s[d]=null;break}if(null==t){if(null==O)return document.createTextNode(E);t=document.createElementNS(a,O,E.is&&E),l&&(r.__m&&r.__m(e,s),l=!1),s=null}if(null==O)w===E||l&&t.data==E||(t.data=E);else{if(s=s&&i.call(t.childNodes),w=n.props||v,!l&&null!=s)for(w={},d=0;d<t.attributes.length;d++)w[(y=t.attributes[d]).name]=y.value;for(d in w)if(y=w[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=y;else if(!(d in E)){if("value"==d&&"defaultValue"in E||"checked"==d&&"defaultChecked"in E)continue;L(t,d,null,y,a)}for(d in E)y=E[d],"children"==d?f=y:"dangerouslySetInnerHTML"==d?h=y:"value"==d?m=y:"checked"==d?b=y:l&&"function"!=typeof y||w[d]===y||L(t,d,y,w[d],a);if(h)l||p&&(h.__html==p.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(p&&(t.innerHTML=""),A("template"==e.type?t.content:t,g(f)?f:[f],e,n,o,"foreignObject"==O?"http://www.w3.org/1999/xhtml":a,s,u,s?s[0]:n.__k&&k(n,0),l,c),null!=s)for(d=s.length;d--;)_(s[d]);l||(d="value","progress"==O&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[d]||"progress"==O&&!m||"option"==O&&m!=w[d])&&L(t,d,m,w[d],a),d="checked",null!=b&&b!=t[d]&&L(t,d,b,w[d],a))}return t}function N(t,e,n){try{if("function"==typeof t){var i="function"==typeof t.__u;i&&t.__u(),i&&null==e||(t.__u=t(e))}else t.current=e}catch(t){r.__e(t,n)}}function H(t,e,n){var i,o;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||N(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){r.__e(t,e)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&H(i[o],e,n||"function"!=typeof t.type);n||_(t.__e),t.__c=t.__=t.__e=void 0}function V(t,e,n){return this.constructor(t,n)}function U(t,e,n){var o,a,s,u;e==document&&(e=document.documentElement),r.__&&r.__(t,e),a=(o="function"==typeof n)?null:n&&n.__k||e.__k,s=[],u=[],x(e,t=(!o&&n||e).__k=w(O,null,[t]),a||v,v,e.namespaceURI,!o&&n?[n]:a?null:e.firstChild?i.call(e.childNodes):null,s,!o&&n?n:a?a.__e:e.firstChild,o,u),R(s,t,u)}function z(t){function e(t){var n,i;return this.getChildContext||(n=new Set,(i={})[e.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&n.forEach((function(t){t.__e=!0,T(t)}))},this.sub=function(t){n.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.delete(t),e&&e.call(t)}}),t.children}return e.__c="__cC"+f++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e,e}i=y.slice,r={__e:function(t,e,n,i){for(var r,o,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(t)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,i||{}),a=r.__d),a)return r.__E=r}catch(e){t=e}throw t}},o=0,P.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=b({},this.state),"function"==typeof t&&(t=t(b({},n),this.props)),t&&b(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),T(this))},P.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),T(this))},P.prototype.render=O,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},C.__r=0,c=/(PointerCapture)$|Capture$/i,d=0,h=B(!1),p=B(!0),f=0},(t,e,n)=>{n.r(e),n.d(e,{addInlineCss:()=>b,currentEventSource:()=>vt,docScrollLeft:()=>ht,docScrollTop:()=>dt,elemAddClass:()=>A,elemAfter:()=>S,elemAncestorHasClass:()=>Y,elemAncestorWithClass:()=>K,elemAncestors:()=>Q,elemAnimate:()=>$,elemAppend:()=>O,elemBefore:()=>k,elemBind:()=>Z,elemBindKey:()=>nt,elemBindOnce:()=>rt,elemCancelFullscreen:()=>ut,elemClasses:()=>D,elemClone:()=>E,elemContainsOffset:()=>V,elemFromObject:()=>_,elemHasClass:()=>j,elemHeight:()=>H,elemHtml:()=>v,elemInDom:()=>q,elemIsDescendantOf:()=>G,elemIsHidden:()=>z,elemIsInside:()=>X,elemMutationObserver:()=>ct,elemOffset:()=>l.elemOffset,elemPrepend:()=>P,elemRebind:()=>it,elemRemove:()=>T,elemRemoveClass:()=>C,elemRequestFullscreen:()=>st,elemScrollOffset:()=>U,elemStripEventAttributes:()=>lt,elemStyle:()=>B,elemToObject:()=>w,elemTrigger:()=>ot,elemUnbind:()=>J,elemUnbindAll:()=>tt,elemUnbindAllInside:()=>et,elemWidth:()=>N,elemZoom:()=>l.elemZoom,execCssTags:()=>m,execScriptTags:()=>c.execScriptTags,formInputIsFocused:()=>ft,fullscreenElement:()=>at,getComputedStyle:()=>W,getCssTags:()=>y,getLastActiveEventAt:()=>mt,getScriptTags:()=>c.getScriptTags,inUserEventContext:()=>yt,isBoxModel:()=>l.isBoxModel,isDocReady:()=>o.isDocReady,onDocReady:()=>o.onDocReady,pageLoaded:()=>a.pageLoaded,propsWithVendorPrefixes:()=>F,removeCssTags:()=>g,removeScriptTags:()=>c.removeScriptTags,safeRequestAnimationFrame:()=>pt});var i,r=n(4),o=n(6),a=n(8),s=n(9),u=n(12),l=n(19),c=n(20),d=n(26),h=n(16),p=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},f=(h.Wistia,(0,s.cachedDetect)()),v=function(t,e){var n=y(e),i=(0,c.getScriptTags)(e);return e=g(e),e=(0,c.removeScriptTags)(e),t.innerHTML=e,m(n,t),(0,c.execScriptTags)(i)},y=function(t){return t.match(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi)||[]},m=function(t,e){if(!t)return null;(0,r.isArray)(t)||(t=y(t));for(var n=[],i=0;i<t.length;i++){var o=t[i];if(/<link.*?rel=['"]stylesheet['"][^>]*>/.test(o)){var a=o.match(/href=['"](.*?)['"]/i);if(a){var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",a[1]),s.className="wistia_injected_style",(e||document.body||document.head).appendChild(s),n.push(s)}}else if(/<style>[\s\S]+?<\/style>/gi.test(o)){var u=o.match(/<style>([\s\S]+?)<\/style>/i);if(u){var l=b(e||document.body||document.head,u[1]);n.push(l)}}}return n},g=function(t){return t.replace(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi,"")},b=function(t,e){var n=t||document.body||document.head,i=document.createElement("style");return i.id=(0,d.seqId)("wistia_","_style"),i.setAttribute("type","text/css"),i.className="wistia_injected_style",n.appendChild(i,n.nextSibling),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),i},_=function(t){if((0,r.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(_(t[n]));return e}var i=t.tagName||"div",o=t.childNodes||[];(0,r.isArray)(o)||(o=[o]);var a=document.createElement(i);for(var s in t)if(p(t,s)){var u=t[s];if("childNodes"!==s&&"tagName"!==s&&"ref"!==s){var l=s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if("style"===s)if((0,r.isObject)(u))for(var c in u)a.style[c]=u[c];else for(var d=u.split(";"),h=0;h<d.length;h++){var f=d[h].split(/\s*:\s*/),v=f[0],y=f[1];v&&y&&(a.style[v]=y)}else if("events"===s)for(var m in u){var g=u[m];Z(a,m,g)}else"className"===s||"class"===s?a.className=u:"innerHTML"===s?a.innerHTML=u:"innerText"===s?a.innerText=u:null!=u&&"function"==typeof u.toString&&a.setAttribute(l,u.toString())}}for(var b=0;b<o.length;b++){var w=o[b];if((0,r.isObject)(w)){var E=_(w);O(a,E)}else{var P=document.createTextNode(w.toString());O(a,P)}}return"function"==typeof t.ref&&t.ref(a),a},w=function(t){if((0,r.isArray)(t))for(var e=[],n=0;n<t.length;n++)e.push(w(t[n]));var i={};i.tagName=t.tagName.toLowerCase();for(var o=Object.keys(t),a=0;a<o.length;a++){var s=o[a];if("tagName"!==s&&"childNodes"!==s&&"nodeType"!==s&&"nodeValue"!==s)if("style"===s){i.style={};for(var u=Object.keys(t.style),l=0;l<u.length;l++){var c=u[l],d=t.style[c];d&&!/^\d/.test(c)&&"length"!==c&&(i.style[c]=d)}}else{var h=t.getAttribute(s);null!=h&&(i[s]=h)}}for(var p=[],f=0;f<t.childNodes.length;f++){var v=t.childNodes[f];1===v.nodeType?p.push(w(v)):3===v.nodeType&&p.push(v.nodeValue)}return p.length>0&&(i.childNodes=p),i},E=function(t){var e=w(t);return _(e)},O=function(t,e){if((0,r.isArray)(e))for(var n=0;n<e.length;n++)O(t,e[n]);else t.tagName.includes("-")?t.shadowRoot.appendChild(e,{wistiaGridCaller:!0}):t.appendChild(e,{wistiaGridCaller:!0})},P=function(t,e){if(!(0,r.isArray)(e))return 0===t.childNodes.length?O(t,e):t.insertBefore(e,t.childNodes[0]);for(var n=0;n<e.length;n++)P(t,e[n])},k=function(t,e){if(!(0,r.isArray)(e))return t.parentNode.insertBefore(e,t);e=e.reverse();for(var n=0;n<e.length;n++)k(t,e[n])},S=function(t,e){if(!(0,r.isArray)(e))return t.parentNode.insertBefore(e,t.nextSibling);e=e.reverse();for(var n=0;n<e.length;n++)S(t,e[n])},T=function(t){var e;if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList)for(var n=0;n<t.length;n++)T(t[n]);else null==t||1!==t.nodeType&&3!==t.nodeType||!(e=t.parentNode)||(e.removeChild(t),t=null)},C=function(t,e){if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList)for(var n=0;n<t.length;n++)C(t[n],e);else if(j(t,e)){var i=t.getAttribute("class");if(i){var o=new RegExp("\\b".concat(e,"\\b"),"g"),a=L(i.replace(o,""));t.setAttribute("class",a)}}},A=function(t,e){if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList)for(var n=0;n<t.length;n++)A(t[n],e);else if(!j(t,e)){var i,o=t.getAttribute("class");o?(C(t,e),i=L("".concat(o," ").concat(e))):i=e,t.setAttribute("class",i)}},j=function(t,e){var n=null!=t&&"function"==typeof t.getAttribute&&t.getAttribute("class");if(!n&&t&&"string"==typeof t.className&&(n=t.className),!n)return!1;var i=!1;return I(n,e,(function(t){var r=0===t||" "===n.charAt(t-1),o=t+e.length===n.length,a=" "===n.charAt(t+e.length);if(r&&(o||a))return i=!0,M})),i},M={},I=function(t,e,n){for(var i=-1;-1!=(i=t.indexOf(e,i+1))&&n(i)!==M;);},D=function(t){return t&&"string"!=typeof t.className?[""]:(t&&t.className||"").split(/\s+/)},L=function(t){return t.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ")},B=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if((0,r.isArray)(t)||window.NodeList&&t instanceof NodeList){for(var o=[],a=0;a<t.length;a++){var s=t[a];1===s.nodeType&&o.push(B.apply(void 0,[s].concat(n)))}return o}if(2===n.length){var l=n[0],c=n[1];t.style[l]=c}else if(1===n.length)if("string"==typeof n[0]){var d=n[0];try{return t.currentStyle?t.currentStyle[d]:window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(d):null}catch(t){u.wlog.notice(t)}}else{var h=F(n[0]);for(var p in h){var f=h[p];t.style[p]=f}}else u.wlog.apply(void 0,["Unexpected args",t].concat(n))},x={borderImage:!0,mixBlendMode:!0,transform:!0,transition:!0,transitionDuration:!0},R=["webkit","moz","o","ms"],F=function(t){if(f.chrome)return t;var e={};for(var n in t){var i=t[n];if(e[n]=i,x[n])for(var r=R,o=0;o<r.length;o++){var a=r[o]+n.charAt(0).toUpperCase()+n.slice(1);n[a]||(e[a]=i)}}return e},W=function(t,e){if(!window.getComputedStyle)return null;var n=window.getComputedStyle(t,null);return null==n?null:null!=e?n[e]:n},N=function(t){if(t===window)return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.body.offsetWidth;if(t===document){var e=document.body,n=document.documentElement;return Math.max(e.scrollWidth,e.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}var i;return(i=W(t,"width"))&&null!=i?parseFloat(i):t.currentStyle?t.offsetWidth:-1},H=function(t){if(t===window)return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.body.offsetHeight;if(t===document){var e=document.body,n=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}var i;return(i=W(t,"height"))&&null!=i?parseFloat(i):t.currentStyle?t.offsetHeight:-1},V=function(t,e,n){var i=(0,l.elemOffset)(t);return i.right=i.left+N(t),i.bottom=i.top+H(t),i.left<=e&&e<i.right&&i.top<=n&&n<i.bottom},U=function(t){var e=0,n=0;if(t.parentNode)for(;t&&t.offsetParent;)n+=t.scrollTop,e+=t.scrollLeft,t=t.parentNode;return{left:e,top:n}},z=function(t){for(;t&&1===t.nodeType;){if("none"===B(t,"display"))return!0;t=t.parentNode}return!1},q=function(t){for(;t;){if(t===document)return!0;t=t.parentNode||t.getRootNode().host}return!1},G=function(t,e){for(var n=Q(t),i=0;i<n.length;i++)if(n[i]===e)return!0;return!1},K=function(t,e){for(var n=Q(t),i=0;i<n.length;i++)if(j(n[i],e))return n[i];return null},Y=function(t,e){return!!K(t,e)},Q=function(t){for(var e=t,n=[];e=e.parentNode;)n.push(e);return n},X=function(t,e){return t===e||G(t,e)},$=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,r.merge)({time:400,easing:"ease"},n);var i=function(t,e,n){var i=[];for(var r in t)i.push("".concat(r," ").concat(e,"ms ").concat(n));return i.join(",")}(e,n.time,n.easing);B(t,{transition:i}),pt((function(){B(t,e),setTimeout((function(){B(t,{transition:""}),"function"==typeof n.callback&&n.callback()}),n.time)}))},Z=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=function(i){(i=i||window.event).pageX||i.pageY||!i.clientX&&!i.clientY||(i.pageX=i.clientX+ht(),i.pageY=i.clientY+dt()),i.preventDefault||(i.preventDefault=function(){i.returnValue=!1}),i.stopPropagation||(i.stopPropagation=function(){i.cancelBubble=!0}),null==i.which&&(i.which=null!=i.charCode?i.charCode:i.keyCode),null==i.which&&null!=i.button&&(1&i.button?i.which=1:2&i.button?i.which=3:4&i.button?i.which=2:i.which=0),i.target||i.srcElement&&(i.target=i.srcElement),i.target&&3===i.target.nodeType&&(i.target=i.target.parentNode);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var s=n.apply(i.target,[i].concat(o));return s===J&&J(t,e,n),s};h.Wistia._elemBind=h.Wistia._elemBind||{};var o=nt(t,e,n);return h.Wistia._elemBind[o]=r,r.elem=t,r.event=e,t.addEventListener(e,r,i),function(){J(t,e,n,i)}},J=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null!=t&&null!=t._wistiaElemId&&null!=n&&n._wistiaBindId){var r=nt(t,e,n),o=h.Wistia._elemBind[r];return o&&(t.removeEventListener(e,o,i),o.elem=null,o.event=null),delete h.Wistia._elemBind[r]}},tt=function(t){for(var e in h.Wistia._elemBind){var n=h.Wistia._elemBind[e];if(n&&t===n.elem){var i=n.event;n.elem.removeEventListener(i,n,!1),n.elem=null,n.event=null,delete h.Wistia._elemBind[e]}}},et=function(t){var e=0;for(var n in h.Wistia._elemBind){var i=h.Wistia._elemBind[n];if(i&&X(i.elem,t)){var r=i.event;i.elem.removeEventListener(r,i,!1),i.elem=null,i.event=null,delete h.Wistia._elemBind[n],e+=1}}return e},nt=function(t,e,n){return t._wistiaElemId=t._wistiaElemId||(0,d.seqId)("wistia_elem_"),n._wistiaBindId=n._wistiaBindId||(0,d.seqId)("wistia_bind_"),"".concat(t._wistiaElemId,".").concat(e,".").concat(n._wistiaBindId)},it=function(t,e,n){if(n)return J(t,e,n),Z(t,e,n)},rt=function(t,e,n){return Z(t,e,(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return n.apply(this,e),J}))},ot=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(t.dispatchEvent){var o=document.createEvent("Events");return o.initEvent(e,!0,!1),"click"===e||"doubleclick"===e?o.which=1:"rightclick"===e&&(o.which=2),o.customArguments=i,t.dispatchEvent(o)}if(t.fireEvent){var a={customArguments:i};return t.fireEvent("on".concat(e),a)}u.wlog.error("neither dispatchEvent nor fireEvent is defined for",t,e)},at=function(){return document.fullscreenElement||document.webkitFullscreenElement},st=function(t){return t.requestFullscreen?t.requestFullscreen():t.webkitEnterFullscreen?new Promise((function(e){t.webkitEnterFullscreen(),e()})):(u.wlog.notice("no requestFullscreen functionality detected"),Promise.resolve())},ut=function(t){return document.exitFullscreen?document.exitFullscreen():t&&t.webkitExitFullscreen?new Promise((function(e){t.webkitExitFullscreen(),e()})):(u.wlog.notice("no cancelFullscreen functionality detected"),Promise.resolve())},lt=function(t){var e=t&&t.attributes||[];try{for(var n=0;n<e.length;n++){var i=e[n];/^on.+/i.test(i.name)&&(t[i.name]=null,t.removeAttribute(i.name))}}catch(t){u.wlog.error(t)}if(t.childNodes)for(var r=0;r<t.childNodes.length;r++){var o=t.childNodes[r];1===o.nodeType&<(o)}},ct=function(t){var e=f.mutationObserver;return e?new window[e](t):null},dt=function(t){var e=document.body,n=document.documentElement;if(null==t)return n&&n.scrollTop||e&&e.scrollTop||0;e&&(e.scrollTop=t),n&&(n.scrollTop=t)},ht=function(t){var e=document.body,n=document.documentElement;if(null==t)return n&&n.scrollLeft||e&&e.scrollLeft||0;e&&(e.scrollLeft=t),n&&(n.scrollLeft=t)},pt=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)})(t)},ft=function(){var t="WISTIA-PLAYER"===document.activeElement.tagName?document.activeElement.shadowRoot.activeElement:document.activeElement;return/^textarea|input|select$/i.test(t.tagName)||t.isContentEditable},vt=function(){return yt()?"user-event":"non-user-event"},yt=function(){return!!i},mt=function(){return gt},gt=-1;["auxclick","click","contextmenu","dblclick","focus","keydown","keypress","keyup","mousedown","mouseup","reset","submit","touchend","touchstart"].forEach((function(t){Z(document,t,(function(t){i=t,gt=Date.now(),setTimeout((function(){i===t&&(i=void 0)}),0)}),!f.passiveSupported||{capture:!0,passive:!0})}))},(t,e,n)=>{n.r(e),n.d(e,{assign:()=>i.assign,cast:()=>m,castDeep:()=>b,clone:()=>c,eachDeep:()=>W,eachLeaf:()=>N,equalsDeep:()=>F,except:()=>w,exists:()=>y,filter:()=>S,getDeep:()=>d,identityFunc:()=>u,indexOf:()=>V,isArray:()=>C,isBasicType:()=>B,isEmpty:()=>x,isFunction:()=>M,isObject:()=>j,isRegExp:()=>D,isSubsetDeep:()=>R,keys:()=>U,legacyShouldDeleteFromMerge:()=>l,merge:()=>a,mergeOne:()=>s,only:()=>_,pick:()=>H,select:()=>E,setAndPreserveUndefined:()=>p,setDeep:()=>h,sort:()=>k,unsetDeep:()=>v,values:()=>P});var i=n(5),r=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},o=Array.prototype.slice,a=function(t){if(0==(arguments.length<=1?0:arguments.length-1))return t;for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++)s(t,e+1<1||arguments.length<=e+1?void 0:arguments[e+1]);return t},s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;if(C(e)){C(t)||(t=[]);for(var o=0;o<e.length;o++){var a=e[o];null==t[o]&&null!=a&&(C(a)?t[o]=[]:j(a)&&(t[o]={}));var c=s(t[o],a,n);i(e,o,c)?delete t[o]:t[o]=c}return n(t)}if(j(e)){for(var d in e)if(r(e,d)&&(r(t,d)||null==t[d])){var h=e[d];C(h)?(C(t[d])||(t[d]=[]),s(t[d],h,n),t[d]=n(t[d])):j(h)?(j(t[d])||(t[d]={}),s(t[d],h,n),t[d]=n(t[d])):null==t?(t={},i(e,d,h)||(t[d]=n(h))):i(e,d,h)?delete t[d]:t[d]=n(h)}return n(t)}return n(e)},u=function(t){return t},l=function(t,e,n){return null==n},c=function(t,e){return C(t)?s([],t,e):s({},t,e)},d=function(t,e,n){e="string"==typeof e?e.split("."):o.call(e);for(var i,a=t;null!=t&&e.length;){var s=e.shift();void 0!==t[s]&&(j(t[s])||C(t[s]))||!n||(0===s?(t=a[i]=[])[s]={}:t[s]={}),a=t,i=s,t=r(t,s)?t[s]:void 0}return t},h=function(t,e,n){return f(t,e,n,!0)},p=function(t,e,n){return f(t,e,n,!1)},f=function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=(e="string"==typeof e?e.split("."):o.call(e)).pop();null!=(t=d(t,e,!0))&&(j(t)||C(t))&&null!=r&&(i&&null==n?delete t[r]:t[r]=n)},v=function(t,e){return h(t,e)},y=function(t,e){return void 0!==d(t,e)},m=function(t){return null==t?t:j(t)||C(t)?b(t):g("".concat(t),t)},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return/^-?[1-9]\d*?$/.test(t)?parseInt(t,10):"0"===t||"-0"===t?0:/^-?\d*\.\d+$/.test(t)?parseFloat(t):!!/^true$/i.test(t)||!/^false$/i.test(t)&&e},b=function(t){return s(t,t,(function(t){return"string"==typeof t?g(t):t}),(function(){return!1}))},_=function(t,e){for(var n={},i={},r=0;r<e.length;r++)i[e[r]]=!0;for(var o in t)i[o]&&(n[o]=t[o]);return n},w=function(t,e){for(var n={},i={},r=0;r<e.length;r++)i[e[r]]=!0;for(var o in t)i[o]||(n[o]=t[o]);return n},E=function(t,e){for(var n=[],i="function"==typeof e,r=i?e:null,o=0;o<t.length;o++){var a=t[o];if(i)r(a)&&n.push(a);else{var s=!0;for(var u in e){var l=e[u];if(l instanceof Array){if(!a[u]||a[u]<l[0]||a[u]>l[1]){s=!1;break}}else if(l instanceof RegExp){if(!l.test(a[u])){s=!1;break}}else if(l instanceof O){for(var c=!1,d=0;d<l.values.length;d++){var h=l.values[d];if(a[u]===h){c=!0;break}}if(!c){s=!1;break}}else if("function"==typeof l){if(null==a[u]||!l(a[u])){s=!1;break}}else if(a[u]!==l){s=!1;break}}s&&n.push(a)}}return n},O=function(t){var e=this;return e.values=t,e},P=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new O(e)},k=function(t,e){var n="function"==typeof e,i=n?e:null,r=o.call(t);return n?r.sort(i):r.sort((function(t,n){var i;i=e instanceof Array?c(e):e.split(/\s*,\s*/);for(var r=0;0===r&&i.length>0;){var o=i.shift().split(/\s+/),a=o[0],s=o[1];if(s="desc"===s?-1:1,t[a]<n[a]){r=-1*s;break}if(t[a]!==n[a]){r=1*s;break}r=0}return r})),r},S=function(t,e,n){for(var i=void 0===n?undefined:n,r=[],o=0;o<t.length;o++)e.call(i,t[o],o,t)&&r.push(t[o]);return r},T=/^\s*function Array()/,C=function(t){return null!=t&&t.push&&T.test(t.constructor)},A=/^\s*function Object()/,j=function(t){return null!=t&&"object"==typeof t&&A.test(t.constructor)},M=function(t){return null!=t&&"function"==typeof t},I=/^\s*function RegExp()/,D=function(t){return null!=t&&I.test(t.constructor)},L=/^string|number|boolean|function$/i,B=function(t){return null!=t&&(L.test(typeof t)||D(t))},x=function(t){return null==t||(!(!C(t)||t.length)||!!j(t)&&!Object.keys(t).length)},R=function(t,e){if(t===e)return!0;if(null!=t&&null==e||null==t&&null!=e)return!1;var n=!0;return N(t,(function(t,i){t!==d(e,i)&&(n=!1)})),n},F=function(t,e){return R(t,e)&&R(e,t)},W=function(t,e,n,i,a){if(null==n&&(n=[]),B(t))e(t,n,i,a);else if(j(t)||C(t)){for(var s in e(t,n,i,a),t)if(r(t,s)){var u=o.call(n);u.push(s),W(t[s],e,u,t,s)}}else e(t,n,i,a)},N=function(t,e){W(t,(function(t,n,i,r){C(t)||j(t)||e(t,n,i,r)}))},H=function(t,e){for(var n={},i=0;i<e.length;i++){var r=e[i];t[r]&&(n[r]=t[r])}return n},V=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},U=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)r(t,n)&&e.push(n);return e}},(t,e,n)=>{n.d(e,{assign:()=>r});var i=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},r=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[t].concat(n));for(var r=0;r<n.length;r++)o(t,n[r]);return t},o=function(t,e){for(var n in e)i(e,n)&&(t[n]=e[n]);return t}},(t,e,n)=>{n.d(e,{isDocReady:()=>r,onDocReady:()=>o});var i=n(7),r=function(){return/loaded|complete/.test(document.readyState)},o=function(){var t,e;if(arguments.length>1?(t=arguments[0],e=arguments[1]):(t=1e4,e=arguments[0]),r())e();else if(top===self&&document.documentElement.doScroll){(0,i.poll)((function(){try{return document.documentElement.doScroll("left"),!0}catch(t){return!1}}),e,50,t,e)}else{var n=function(){r()&&(clearTimeout(a),o(),e())},o=function(){document.removeEventListener("DOMContentLoaded",n,!1),document.removeEventListener("readystatechange",n,!1),window.removeEventListener("load",n,!1)},a=setTimeout((function(){o(),e()}),t);document.addEventListener("DOMContentLoaded",n,!1),document.addEventListener("readystatechange",n,!1),window.addEventListener("load",n,!1)}}},(t,e,n)=>{n.d(e,{poll:()=>i});var i=function(t,e,n,i,r){var o=null,a=(new Date).getTime(),s=function(){(new Date).getTime()-a>i?"function"==typeof r&&r():t()?e():(clearTimeout(o),o=setTimeout(s,n))};o=setTimeout(s,1)}},(t,e,n)=>{n.d(e,{pageLoaded:()=>i});var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window;if(/loaded|complete/.test(n.readyState))setTimeout(t,0);else{var r=function(){i.removeEventListener("load",o,!1)},o=function(){clearTimeout(a),r(),t()};i.addEventListener("load",o,!1);var a=setTimeout((function(){r(),t()}),e)}}},(t,e,n)=>{n.d(e,{cachedDetect:()=>W,detectIsMobile:()=>H});var i,r=n(10),o=n(11),a=navigator.userAgent,s=null,u=/(webkit)[ /]([^\s]+)/i,l=/OPR\/([^\s]+)/i,c=/(edge)\/(\d+(?:\.\d+)?)/i,d=/(mozilla)(?:.*? rv:([^\s)]+))?/i,h=/(android) ([^;]+)/i,p=/(iphone)/i,f=/(Windows Phone OS (\d+(?:\.\d+)?))/,v=/OS (\d+)_(\d+)/i,y=/(firefox)/i,m=/Mobile VR/i,g=/Version\/([^\s]+)/i,b=function(){return(w()[1]||"webkit").toLowerCase()},_=function(){return w()[2]},w=function(){var t;return(t=a.match(c))||(t=a.match(u))||(t=a.match(l))?t:t?(null!=document.documentMode&&(t[2]=document.documentMode),t):(t=a.match(d))||[]},E=function(){var t=a.match(h);return null!=t&&{version:t[2]}},O=function(){return p.test(a)},P=function(){return j()>0||E()||S()},k=function(){try{var t=matchMedia("(hover:hover)");if("not all"!==t.media)return t.matches}catch(t){}return!P()},S=function(){return/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1},T=function(){return u.test(a)&&!/chrome/i.test(a)&&!S()&&!O()},C=function(){return!(!/Chrome/.test(a)||!/Google Inc/.test(navigator.vendor))&&{version:A()}},A=function(){var t=a.match(/\bChrome\/([^\s]+)/);return t&&t[1]},j=function(){var t=a.match(v),e=a.match(g);return null!=t?parseFloat("".concat(t[1],".").concat(t[2])):null!=e&&e[1]&&S()?parseFloat(e[1]):0},M=function(){return c.test(a)},I=function(){return y.test(a)},D=function(){var t=document.createElement("video"),e=!1;try{if(t.canPlayType){var n='video/mp4; codecs="avc1.42E01E';(e={}).h264=!!t.canPlayType("".concat(n,'"'))||!!t.canPlayType("".concat(n,', mp4a.40.2"')),e.webm=!!t.canPlayType('video/webm; codecs="vp9, vorbis"'),e.nativeHls=!!t.canPlayType("application/vnd.apple.mpegURL")}}catch(t){e={ogg:!1,h264:!1,webm:!1,nativeHls:!1}}return e},L=function(){try{return"localStorage"in r.root&&null!=r.root.localStorage}catch(t){return!1}},B=["WebKit","Moz","O","Ms",""],x=function(){for(var t=0;t<B.length;t++){var e="".concat(B[t],"MutationObserver");if(r.root[e])return e}return null},R=function(){if(null!=i)return i;try{var t=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",null,t)}catch(t){i=!1}return i},F=function(){var t=C(),e=I(),n=M(),i=l.test(a),r=t&&_()>=32,o=t&&_()>=75&&E(),s=e&&_()>=65,u=e&&_()>=67&&E(),c=n&&_()>=18,d=i&&_()>=19;return r||o||s||u||c||d},W=function(){return s||(s=N())},N=function(){var t,e,n,i,s,u,l,c,d,h,p,v,y,g={browser:{version:_()},edge:M(),firefox:I(),gearvr:m.test(a),hdr:!(null===(v=(y=window).matchMedia)||void 0===v||!v.call(y,"(dynamic-range: high)").matches)||!!(screen.colorDepth&&screen.colorDepth>=30),hdrCodecs:{hevc:null!==(n=null===(i=window.MediaSource)||void 0===i||null===(s=i.isTypeSupported)||void 0===s?void 0:s.call(i,'video/mp4; codecs="hvc1.2.4.L153.B0"'))&&void 0!==n&&n,av1:null!==(u=null===(l=window.MediaSource)||void 0===l||null===(c=l.isTypeSupported)||void 0===c?void 0:c.call(l,'video/mp4; codecs="av01.0.08M.10.0.110.09.16.09"'))&&void 0!==u&&u,vp92:null!==(d=null===(h=window.MediaSource)||void 0===h||null===(p=h.isTypeSupported)||void 0===p?void 0:p.call(h,'video/mp4; codecs="vp09.02.10.10.01.09.16.09"'))&&void 0!==d&&d},android:E(),oldandroid:E()&&parseFloat(E().version)<4.1,iphone:O(),ipad:S(),safari:T(),chrome:C(),winphone:{version:f.test(a)[2]},ios:{version:j()},windows:/win/i.test(navigator.platform),mac:/mac/i.test(navigator.platform),retina:null!=r.root.devicePixelRatio&&r.root.devicePixelRatio>1,hoverIsNatural:k(),touchScreen:P(),video:D(),managedMediaSource:"ManagedMediaSource"in window&&"function"==typeof(null===(e=window.ManagedMediaSource)||void 0===e?void 0:e.isTypeSupported),mediaSource:r.root.MediaSource&&r.root.MediaSource.isTypeSupported("".concat('video/mp4; codecs="avc1.42E01E',', mp4a.40.2"')),nativeHls:(O()||S()||T())&&D().nativeHls,localstorage:L(),fullscreenEnabled:document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled,vulcanV2Support:(t=/webkit|mozilla|edge/.test(b()),!!(O()||S()||E())||Boolean(t&&D().h264&&Object.defineProperties)),mutationObserver:x(),callingPlayRequiresEventContext:j()>0||E()||T(),passiveSupported:R(),webp:F(),performanceMeasure:(0,o.hasPerformanceMeasureSupport)()};return g.browser[b()]=!0,g},H=function(){var t=E(),e=S(),n=O();return t||e||n}},(t,e,n)=>{var i;n.d(e,{root:()=>r});try{(i=self).self!==i&&void 0!==i.self&&"undefined"!=typeof window&&(i=window)}catch(t){i="undefined"!=typeof globalThis?globalThis:window}var r=i},(t,e,n)=>{n.d(e,{hasPerformanceMeasureSupport:()=>i});var i=function(){var t=window.performance;return Boolean(t)&&Boolean(t.measure)}},(t,e,n)=>{n.d(e,{LOG_LEVELS:()=>s,wlog:()=>y});var i=n(13),r=n(16);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||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.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},u=function(){},l=function(t){var e=this;null==t&&(t={});return e.error=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(0,n)},e.warn=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(1,n)},e.notice=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(1,n)},e.info=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(3,n)},e.debug=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(4,n)},e.ctx=t,e.ctx.initializedAt||e.reset(),e},c=l.prototype;c.reset=function(){this.ctx.level=0,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=(new Date).getTime()},c.setLevel=function(t){var e=this.logFunc(3);null!=s[t]?(this.ctx.level=s[t],e('Log level set to "'.concat(t,'" (').concat(s[t],")"))):e('Unknown log level "'.concat(t,'"'))},c.setGrep=function(t){this.ctx.grep=t},c.setGrepv=function(t){this.ctx.grepv=t},c.first1000LogLines=function(){return this.ctx.first1000LogLines},c.last1000LogLines=function(){return this.ctx.last1000LogLines},c.matchedGrep=function(t){var e=!1;if(this.ctx.grep||this.ctx.grepv){for(var n=[],i=0;i<t.length;i++)try{var r=t[i];n.push(r.toString&&r.toString())}catch(t){n.push("")}var o=n.join(" "),a=!this.ctx.grep||o.match(this.ctx.grep),s=!this.ctx.grepv||!o.match(this.ctx.grepv);e=a&&s}else e=!0;return e},c.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:(new Date).getTime()-this.ctx.initializedAt},c.messagesToLogLine=function(t,e,n){var i,r=[t,e];r=r.concat(n);try{(i=r.join(" ")||"").length>200&&(i=i.slice(0,200))}catch(t){i="could not serialize"}return i},c.persistLine=function(t){this.ctx.first1000LogLines.length<1e3?this.ctx.first1000LogLines.push(t):(this.ctx.last1000LogLines.length>=1e3&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(t))},c.log=function(t,e){var n,r=t<=this.ctx.level,a=t<4,s=(r||a)&&this.matchedGrep(e);if(0===t&&(0,i.globalTrigger)("problem",{type:"error-logged",data:{messages:e}}),s&&(r||a)&&(n=this.now()),a&&s){var u=this.messagesToLogLine(t,n,e);this.persistLine(u)}if(r&&s){var l,c=this.logFunc(t);1===e.length&&(l=e[0])instanceof Error?(c(l.message),l.stack&&c(l.stack)):c.apply(void 0,o(e))}};var d=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.error.apply(console,e)},h=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.warn.apply(console,e)},p=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.info.apply(console,e)},f=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.debug.apply(console,e)},v=function(t){console.log.apply(console,t)};c.logFunc=function(t){return null==t&&(t=this.level),console?(0===t?e=d:1===t?e=h:3===t?e=p:4===t&&(e=f),e||(e=v),"function"!=typeof e&&(this.noConsoleLog=!0,e=u),e):u;var e},c.maybePrefix=function(t,e){if(t){if("function"==typeof t)try{t=t()}catch(e){t='prefix err "'.concat(e.message,'"')}return t instanceof Array?t.concat(e):[t].concat(e)}return e},c.getPrefixedFunctions=function(t){var e=this;return{log:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(0,e.maybePrefix(t,i))},error:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(0,e.maybePrefix(t,i))},warn:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(1,e.maybePrefix(t,i))},notice:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(1,e.maybePrefix(t,i))},info:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(3,e.maybePrefix(t,i))},debug:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(4,e.maybePrefix(t,i))}}},r.Wistia&&null==r.Wistia.wlogCtx&&(r.Wistia.wlogCtx={});var y=new l(r.Wistia.wlogCtx)},(t,e,n)=>{n.d(e,{globalBind:()=>o,globalOn:()=>a,globalTrigger:()=>s});var i=n(14),r=n(16);(0,i.makeWbindable)(r.Wistia);var o=r.Wistia.bind.bind(r.Wistia),a=r.Wistia.on.bind(r.Wistia),s=(r.Wistia.off.bind(r.Wistia),r.Wistia.rebind.bind(r.Wistia),r.Wistia.trigger.bind(r.Wistia));r.Wistia.unbind.bind(r.Wistia)},(t,e,n)=>{n.d(e,{makeWbindable:()=>a});var i=n(15),r=n(16),o=n(17);r.Wistia.bindable||(r.Wistia.EventShepherdManager||(r.Wistia.EventShepherdManager={}),r.Wistia.bindable={bind:function(t,e){if("crosstime"===t&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),this;if("betweentimes"===t&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(t)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]&&(r.Wistia.EventShepherdManager[a]=new o.EventShepherd),r.Wistia.EventShepherdManager[a].addListener(t,n,e),this}if(e)return i.bind.call(this,t,e),this;r.Wistia.warn&&r.Wistia.warn(this.constructor.name,"bind","falsey value passed in as callback:",e)},unbind:function(t,e){if("crosstime"===t&&this.crossTime)return e?this.crossTime.removeBinding(arguments[1],arguments[2]):this.crossTime.removeAllBindings(),this;if("betweentimes"===t&&this.betweenTimes)return e?this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]):this.betweenTimes.removeAllBindings(),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(t)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]||r.Wistia.EventShepherdManager[a].removeListener(t,n,e),this}return e?i.unbind.call(this,t,e):this._bindings&&(this._bindings[t]=[]),this._bindings&&this._bindings[t]&&!this._bindings[t].length&&(this._bindings[t]=null,delete this._bindings[t]),this},on:function(t,e){var n=arguments,a=this;if("crosstime"===t&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),function(){a.crossTime.removeBinding(n[1],n[2])};if("betweentimes"===t&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),function(){a.betweenTimes.removeBinding(n[1],n[2],n[3])};var u=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(t)&&u){var l=s(u);return void 0===r.Wistia.EventShepherdManager[l]&&(r.Wistia.EventShepherdManager[l]=new o.EventShepherd(u)),r.Wistia.EventShepherdManager[l].addListener(t,u,e),function(){r.Wistia.EventShepherdManager[l].removeListener(t,u,e)}}return i.bind.call(this,t,e)},off:function(t,e){if("crosstime"===t&&this.crossTime)return this.crossTime.removeBinding(arguments[1],arguments[2]);if("betweentimes"===t&&this.betweenTimes)return this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]);var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(t)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]?function(){}:r.Wistia.EventShepherdManager[a].removeListener(t,n,e)}return i.unbind.call(this,t,e)},rebind:function(t,e){return this.unbind(t,e),this.bind(t,e),this},trigger:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=i.trigger).call.apply(e,[this,t].concat(r)),this},bindNamed:function(){return i.bindNamed.apply(this,arguments)},unbindNamed:function(){return i.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return i.unbindAllInNamespace.apply(this,arguments)}});var a=function(t){for(var e in r.Wistia.bindable){var n=r.Wistia.bindable[e];t[e]||(t[e]=n)}},s=function(t){return null!=t&&t.mediaId?t.mediaId:null!=t&&t.id?t.id:void 0}},(t,e,n)=>{n.d(e,{bind:()=>u,bindNamed:()=>f,bindify:()=>g,trigger:()=>d,unbind:()=>l,unbindAllInNamespace:()=>y,unbindNamed:()=>v});var i=n(16),r=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||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.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=Array.prototype.slice,u=function(t,e){var n=this;return n._bindings||(n._bindings={}),n._bindings[t]||(n._bindings[t]=[]),n._bindings[t].push(e),function(){n.unbind(t,e)}},l=function(t,e){if(!this._bindings)return this;if(!this._bindings[t])return this;for(var n=[],i=0;i<this._bindings[t].length;i++){var r=this._bindings[t][i];r!==e&&n.push(r)}this._bindings[t]=n},c=function(t,e){return this.unbind(t,e),this.bind(t,e),{event:t,fn:e}},d=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return this._bindings&&null!=this._bindings.all&&h.apply(this,["all",t].concat(n)),h.apply(this,[t].concat(n))},h=function(t){if(!this._bindings)return this;if(!this._bindings[t])return this;for(var e,n=s.call(arguments,1),r=o(this._bindings[t]),a=0;a<r.length;a++){var u=r[a];try{u.apply(this,n)===this.unbind&&(null==e&&(e=[]),e.push({event:t,fn:u}))}catch(t){if(this._throwTriggerErrors)throw t;i.Wistia.error&&i.Wistia.error(t)}}if(e)for(var l=0;l<e.length;l++){var c=e[l];this.unbind(c.event,c.fn)}return this},p=function(t,e){null==t._namedBindings&&(t._namedBindings={}),null==t._namedBindings[e]&&(t._namedBindings[e]={})},f=function(t,e,n,i){return this.unbindNamed(t,e),function(t,e,n,i,r){p(t,e),t._namedBindings[e][n]={event:i,fn:r}}(this,t,e,n,i),this.bind(n,i),function(){this.unbindNamed(t,e)}},v=function(t,e){p(this,t);var n=function(t,e,n){return p(t,e),t._namedBindings[e][n]}(this,t,e);if(n){var i=n.event,r=n.fn;this.unbind(i,r)}var o=this._namedBindings;return delete o[t][e],m(o[t])&&delete o[t],this},y=function(t){var e=this._namedBindings&&this._namedBindings[t];if(null==e)return this;for(var n in e)r(e,n)&&this.unbindNamed(t,n)},m=function(t){for(var e in t)if(r(t,e))return!1;return!0},g=function(t){return t.bind=u,t.unbind=l,t.on=u,t.off=l,t.rebind=c,t.trigger=d,t.bindNamed=f,t.unbindNamed=v,t.unbindAllInNamespace=y,t};g(function(){}.prototype)},(t,e,n)=>{n.d(e,{Wistia:()=>W});var i,r,o,a,s,u,l,c,d,h,p,f,v,y,m,g,b,_,w,E,O,P,k,S,T,C,A,j,M,I,D,L,B,x,R,F=n(10);null!==(i=F.root.Wistia)&&void 0!==i||(F.root.Wistia={}),null!==(o=(r=F.root.Wistia)._destructors)&&void 0!==o||(r._destructors={}),null!==(s=(a=F.root.Wistia)._initializers)&&void 0!==s||(a._initializers={}),null!==(l=(u=F.root.Wistia)._remoteData)&&void 0!==l||(u._remoteData=new Map),null!==(d=(c=F.root.Wistia).api)&&void 0!==d||(c.api=function(){return console.error("Accessed Wistia.api() before it was initialized"),null}),null!==(p=(h=F.root.Wistia).defineControl)&&void 0!==p||(h.defineControl=function(){return console.error("Accessed Wistia.defineControl() before it was initialized"),null}),null!==(v=(f=F.root.Wistia).EventShepherdManager)&&void 0!==v||(f.EventShepherdManager={}),null!==(m=(y=F.root.Wistia).mixin)&&void 0!==m||(y.mixin=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(n){(function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)})(e,n)&&(t[n]=e[n])}))}),null!==(b=(g=F.root.Wistia).playlistMethods)&&void 0!==b||(g.playlistMethods=new Map),null!==(w=(_=F.root.Wistia).PublicApi)&&void 0!==w||(_.PublicApi=null),null!==(O=(E=F.root.Wistia).uncacheMedia)&&void 0!==O||(E.uncacheMedia=function(){return console.error("Accessed Wistia.uncacheMedia() before it was initialized"),null}),null!==(k=(P=F.root.Wistia).VisitorKey)&&void 0!==k||(P.VisitorKey=null),null!==(T=(S=F.root.Wistia).visitorKey)&&void 0!==T||(S.visitorKey=null),null!==(A=(C=F.root.Wistia).wistia)&&void 0!==A||(C.wistia=void 0),null!==(M=(j=F.root.Wistia)._liveStreamEventDataPromises)&&void 0!==M||(j._liveStreamEventDataPromises={}),null!==(D=(I=F.root.Wistia)._mediaDataPromises)&&void 0!==D||(I._mediaDataPromises={}),null!==(B=(L=F.root.Wistia)._liveStreamPollingPromises)&&void 0!==B||(L._liveStreamPollingPromises={}),null!==(R=(x=F.root.Wistia).first)&&void 0!==R||(x.first=function(){var t;return null!==(t=F.root.Wistia.api())&&void 0!==t?t:document.querySelector("wistia-player")});var W=F.root.Wistia},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}n.d(e,{EventShepherd:()=>s,convertedEventNames:()=>o});var o={mutechange:n(18).MUTE_CHANGE_EVENT},a={mutechange:function(t){return t.isMuted}},s=function(){return t=function t(){var e,n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,i={},(n=r(n="convertedEventsMap"))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i},(e=[{key:"addListener",value:function(t,e,n){var i,r,s,u=null!==(i=o[t])&&void 0!==i?i:t;null!==(s=(r=this.convertedEventsMap)[u])&&void 0!==s||(r[u]=[]);var l=function(e){if(a[t]){var i=a[t](e.detail);n(i)}else n()};this.convertedEventsMap[u].push({givenCallback:n,eventListenerCallback:l}),e.addEventListener(u,l)}},{key:"removeAllListeners",value:function(t){var e=this;Object.keys(this.convertedEventsMap).forEach((function(n){var i;null===(i=e.convertedEventsMap[n])||void 0===i||i.forEach((function(e){t.removeEventListener(n,e.eventListenerCallback)})),e.convertedEventsMap[n]=[]}))}},{key:"removeListener",value:function(t,e,n){var i,r=this,a=null!==(i=o[t])&&void 0!==i?i:t,s=[];n?(e.removeEventListener(a,n),this.convertedEventsMap[a]&&(this.convertedEventsMap[a].forEach((function(t,i){t.givenCallback===n&&(s.push(i),e.removeEventListener(a,t.eventListenerCallback))})),s.forEach((function(t){r.convertedEventsMap[a]&&r.convertedEventsMap[a].splice(t,1)})))):this.convertedEventsMap[a]=[]}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},(t,e,n)=>{n.r(e),n.d(e,{AFTER_REPLACE_EVENT:()=>i,API_READY_EVENT:()=>r,BEFORE_REPLACE_EVENT:()=>o,BETWEENTIMES_EVENT_EV1:()=>a,CROSSTIME_EVENT_EV1:()=>s,EMBED_OPTIONS_CHANGED_EVENT:()=>u,IMPL_CREATED_EVENT:()=>l,INIT_EMBED_EVENT:()=>c,INPUT_CONTEXT_CHANGE_EVENT:()=>d,INTERNAL_API_ON_FIND_EVENT:()=>h,LOADED_MEDIA_DATA_EVENT:()=>p,MUTE_CHANGE_EVENT:()=>f,TIME_UPDATE_EVENT:()=>v});var i="after-replace",r="api-ready",o="before-replace",a="betweentimes",s="crosstime",u="embed-options-changed",l="impl-created",c="initembed",d="input-context-change",h="internal-api-on-find",p="loaded-media-data",f="mute-change",v="time-update"},(t,e,n)=>{var i;n.d(e,{elemOffset:()=>o,elemZoom:()=>a,isBoxModel:()=>r});var r=function(){if(null!=i)return i;var t=document.createElement("div");return t.style.paddingLeft=t.style.width="1px",document.body.appendChild(t),i=2===t.offsetWidth,document.body.removeChild(t),i},o=function(t){var e,n,i=document.body,o=document.defaultView,s=document.documentElement,u=t.getBoundingClientRect(),l=s.clientTop||i.clientTop||0,c=s.clientLeft||i.clientLeft||0;e=o&&null!=o.pageYOffset?o.pageYOffset:r()&&s&&null!=s.scrollTop?s.scrollTop:i.scrollTop,n=o&&null!=o.pageXOffset?o.pageXOffset:r()&&s&&null!=s.scrollLeft?s.scrollLeft:i.scrollLeft;var d=a(t);return{height:u.height*d,top:u.top*d+e-l,left:u.left*d+n-c,width:u.width*d,zoom:d}},a=function(t){return t&&t!==document.documentElement?a(t.parentElement)*(getComputedStyle(t).zoom||1):1}},(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{execScriptTags:()=>execScriptTags,getScriptTags:()=>getScriptTags,removeScriptTags:()=>removeScriptTags});var utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(21),getScriptTags=function(t){return t.match(/<script.*?src[^>]*>\s*<\/script>|<script.*?>[\s\S]+?<\/script>/gi)||[]},scriptTagsToRunScriptsInput=function scriptTagsToRunScriptsInput(scriptTags){if(!scriptTags)return[];scriptTags instanceof Array||(scriptTags=getScriptTags(scriptTags));for(var hashes=[],_loop=function _loop(){var scriptTag=scriptTags[i],hash={},matches=scriptTag.match(/<script.*?>/i);if(matches&&(matches=matches[0].match(/src="([^"]+)"/i),matches&&(hash.src=matches[1],hash.async=/async/i.test(scriptTag.replace(hash.src,"")))),!matches&&(matches=scriptTag.match(/<script>([\s\S]+?)<\/script>/i),matches)){var src=matches[1];hash.fn=function(){return eval(src)}}hashes.push(hash)},i=0;i<scriptTags.length;i++)_loop();return hashes},execScriptTags=function(t,e){if(!t)return null;var n=scriptTagsToRunScriptsInput(t);return(0,utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__.runScripts)(n).then(e)},removeScriptTags=function(t){return t.replace(/<script.*?src[^>]*>\s*<\/script>|<script>[\s\S]+?<\/script>/g,"")}},(t,e,n)=>{n.d(e,{findScriptInDomBySrc:()=>u,removeScriptsBySrc:()=>l,runScript:()=>c,runScripts:()=>d});var i=n(12),r=n(4),o=n(22);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var r=n[i],o=r.getAttribute("src")||"";if(e.ignoreQueryParams){var a=o.split("?");o=a[0]}if(!e.scriptRegex&&e.ignoreProtocol&&(o=o.replace(/^https?:/,""),t=t.replace(/^https?:/,"")),e.scriptRegex&&e.scriptRegex.test(o))return r;if(e.testStartsWith&&0===o.indexOf(t))return r;if(o===t)return r}return null},l=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(){if(e&&(e.onload=e.onreadystatechange=e.onerror=null,e.parentNode&&(e.parentNode.removeChild,1)))try{e.parentNode.removeChild(e)}catch(t){setTimeout((function(){throw t}),0)}};e=u(t,n);)i()},c=function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==i&&(i=8e3),null==r&&(r={}),new Promise((function(a){!0===r.once&&(e=u(t))&&(n=!0),r.once&&n?e.readyState&&!/loaded|complete/.test(e.readyState)||setTimeout((function(){a()}),1):(0,o.runScript)(t,i).then(a).catch((function(t){a(t),setTimeout((function(){console.error(t)}),1)}))}))},d=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t=n[0]instanceof Array?n[0]:n,t=h(t);var o=[],u=[],l=[];return t.forEach((function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),n=new Promise((function(t){e.resolve=t}));e.promise=n,l.push(e.promise),t.async?o.push(e):u.push(e)})),u.reduce((function(t,e){if(e.fn)try{e.fn()}catch(t){i.wlog.error(t)}finally{e.resolve()}else e.src&&c(e.src,null,e).then(e.resolve);return t.then(e.promise)}),Promise.resolve()),setTimeout((function(){o.forEach((function(t){if(t.fn)try{t.fn()}catch(t){i.wlog.error(t)}finally{t.resolve()}else t.src&&c(t.src,null,t).then(t.resolve)}))}),1),Promise.all(l)},h=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];"string"==typeof i?e.push({src:i,async:!1}):(0,r.isObject)(i)?e.push(i):e.push({fn:i,async:!1})}return e}},(t,e,n)=>{n.d(e,{runScript:()=>r});var i=n(23),r=function(t,e){var n=i.TAGGED_VERSION;return new Promise((function(i,r){var o;null==e&&(e=8e3),(o=document.createElement("script")).src=t,o.async=!0,o.type="text/javascript",/https?:\/\/fast\.wistia\./.test(o.src)&&""!==n&&n.length>0&&(o.src="".concat(o.src,"@").concat(n));var a=null,s=!1,u=function(){o.onerror=o.onreadystatechange=o.onload=null,clearTimeout(a),clearTimeout(c),a=setTimeout((function(){o&&o.parentNode&&o.parentNode.removeChild(o)}),500)},l=function(){var t=o.readyState;s||t&&!/loaded|complete/.test(t)||(s=!0,setTimeout((function(){i(),u()}),1))},c=setTimeout((function(){s=!0,u(),r(new Error("timeout"))}),e);o.onerror=function(t){s=!0,u(),r(t)},o.onreadystatechange=l,o.onload=l,(document.body||document.head).appendChild(o)}))}},(t,e,n)=>{n.r(e),n.d(e,{CURRENT_SHA:()=>m,EMBED_HOST:()=>l,PROD_EMBED_HOST:()=>h,PROD_FASTLY_SSL_HOST:()=>f,PROD_FAST_HOSTNAME_COM:()=>d,PROD_FAST_HOSTNAME_NET:()=>c,PROD_SSL_EMBED_HOST:()=>p,SSL_EMBED_HOST:()=>v,TAGGED_VERSION:()=>y,VALID_FASTLY_HOSTS:()=>M,appHost:()=>_,cdnFastProtectedWistiaComHost:()=>E,cdnFastWistiaCanaryHost:()=>P,cdnFastWistiaComHost:()=>w,cdnFastWistiaNetHost:()=>O,deliveryHost:()=>b,eV1Host:()=>S,eV1HostWithPort:()=>T,eV1Protocol:()=>C,eV1Url:()=>k,forceValidFastWistiaHost:()=>D,isEmbedOnACustomerPage:()=>L,mediaDataHost:()=>A,metricsHost:()=>j});var i=n(10),r=n(24),o=n(25),a=(0,o.appHostname)("app"),s=(0,o.appHostname)("fast-protected"),u=(0,o.appHostname)("fast"),l="embed.wistia.com",c="fast.wistia.net",d="fast.wistia.com",h="embed.wistia.com",p="embed-ssl.wistia.com",f="embed-fastly.wistia.com",v="embed-ssl.wistia.com",y="",m="6824929a68c81577b4f6db8c769fe66565f54606",g="undefined"!=typeof window&&i.root===window&&i.root.location?i.root.location.protocol:"https:",b=function(){return function(t,e,n){return"https:"===t?e:n}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,v,l)},_=function(){return a},w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t||u},E=function(t){return t||s},O=function(){return"fast.".concat("wistia.net")},P=function(){return"fast-canary.wistia.net"},k=function(){for(var t=document.getElementsByTagName("script"),e=0;e<t.length;e++){var n=t[e];if(n.src){var i=new r.Url(n.src),o=/\/assets\/external\/E-v1?\.js$/.test(i.rawPath),a=i.host===w()||i.host===O()||i.host===P(),s="https:"===location.protocol&&"https:"===i.protocol,u=""===i.protocol||null==i.protocol,l=s||u||"http:"===location.protocol,c=!n.readyState||/loaded|complete/.test(n.readyState);if(o&&a&&l&&c)return i}}return new r.Url("".concat((0,r.proto)(),"//").concat(O(),"/E-v1.js"))}(),S=function(){return k.host},T=function(){return k.port?"".concat(S(),":").concat(k.port):S()},C=function(){return k.protocol},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.embedHost?D(t.embedHost):T()},j=function(){return"pipedream.".concat("wistia.com")},M=[].concat(["wistia.net","wistia.com"],["wistia.mx","wistia.dev","wistia.tech","wistia.am","wistia.se","wistia.io","wistia.st"]),I=new RegExp("(".concat(M.map((function(t){return"\\.".concat(t.replace(".","\\."))})).join("|"),")$")),D=function(t){return t&&I.test(t)?t:T()},L=function(){return null===window.location.href.match(/^http(s)?:\/\/(\S)*.wistia.(io|test|st|com)/gi)}},(t,e,n)=>{n.r(e),n.d(e,{Url:()=>f,brack:()=>d,createUrl:()=>y,debrack:()=>h,joinPath:()=>c,objectToQueryParams:()=>u,parseUrl:()=>m,proto:()=>o,queryParamsToObject:()=>a,splitPath:()=>l,urlComponentToObject:()=>s});var i=n(4),r=n(12),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href;return/^http:\/\//.test(t)?"http:":"https:"},a=function(t){var e={};if(!t)return e;for(var n=t.split("&"),o=function(){var t=n[a].split("="),o=t[0],u=t[1];try{o=h(decodeURIComponent(o))||""}catch(t){setTimeout((function(){r.wlog.notice(t)}),50),o=""}(0,i.cast)(o);var l=(0,i.getDeep)(e,o);if(null!=l)if((0,i.isArray)(l))l.push(s(u));else{var c=[l];c.push(s(u)),(0,i.setAndPreserveUndefined)(e,o,c)}else(0,i.setAndPreserveUndefined)(e,o,s(u))},a=0;a<n.length;a++)o();return e},s=function(t){if(null==t)return t;var e;try{e=decodeURIComponent(t)}catch(n){setTimeout((function(){r.wlog.notice(n)}),50),e=t}return e},u=function(t){var e=[];return(0,i.eachLeaf)(t,(function(t,n){null!=t?e.push("".concat(encodeURIComponent(d(n)),"=").concat(encodeURIComponent(t))):e.push(encodeURIComponent(d(n)))})),e.join("&")},l=function(t){var e=[];if(null==t)return e;for(var n=t.split(/\/+/),i=0;i<n.length;i++){var r=n[i];null!=r&&""!==r&&e.push(r)}return e},c=function(t){return"string"==typeof t&&(t=t.split("/")),null==t?"":"/".concat(t.join("/"))},d=function(t){for(var e=t[0],n=1;n<t.length;n++)e+="[".concat(t[n],"]");return e},h=function(t){return t.match(/([\w\-_]+)/g)},p=["protocol","host","port","params","path"],f=function(t){var e=this;e.params={},e.path=[],e.host="","object"==typeof t?e.fromOptions(t):t&&e.fromRaw(t)},v=f.prototype;v.fromOptions=function(t){for(var e=0;e<p.length;e++){var n=p[e];null!=t[n]&&(this[n]=t[n])}return this},v.fromRaw=function(t){var e;return this.rawUrl=t,(e=t.match(/^((?:https?:)|(?:file:)|(?:ftp:))?\/\//))&&(this.protocol=e[1]||void 0),(e=t.match(/\/\/([^:?#/]*)/))&&(this.host=e[1]||void 0),(e=t.match(/\/\/.*?(\/[^?#$]+)/)||t.match(/(^\/[^/][^?#$]+)/))&&this.setPath(e[1]),(e=t.match(/:(\d+)/))&&(this.port=parseInt(e[1],10)),(e=t.match(/\?([^#]+)/))&&(this.rawParams=e[1],this.params=a(this.rawParams)),(e=t.match(/#(.*)$/))&&(this.anchor=e[1]),this},v.clone=function(){return new f({protocol:this.protocol,host:this.host,port:this.port,path:(0,i.clone)(this.path),params:(0,i.clone)(this.params),anchor:this.anchor})},v.ext=function(t){if(null!=t){var e=this.ext(),n=this.path.length-1,i=new RegExp("\\.".concat(e),"g");return e&&(this.path[n]="".concat(this.path[n].replace(i,""))),this.path[n]="".concat(this.path[n],".").concat(t)}var r=this.path[this.path.length-1].match(/\.(.*)$/);return null!=r&&r[1]||null},v.isRelative=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,e=this.protocol,n=this.host;return!(null!=e&&""!==e&&e!==t.protocol||n&&n!==t.hostname)},v.toString=function(){return this.isRelative()?this.relative():this.absolute()},v.absolute=function(){var t="";null!=this.protocol&&(t=this.protocol);var e="";return null!=this.port&&(e=":".concat(this.port)),"".concat(t,"//").concat(this.host||location.host).concat(e).concat(this.relative())},v.relative=function(){var t="";this.path.length>0&&(t=c(this.path),this._hasTrailingSlash&&(t+="/"));var e="?".concat(u(this.params));return 1===e.length&&(e=""),"".concat(t).concat(e).concat(this.relativeAnchor())},v.authority=function(){var t=null!=this.port?":".concat(this.port):"";return"".concat(this.host).concat(t)},v.relativeProtocol=function(){var t="";return null!=this.port&&(t=":".concat(this.port)),"//".concat(this.host).concat(t).concat(this.relative())},v.relativeAnchor=function(){var t="";return null!=this.anchor&&(t="#".concat(this.anchor)),"".concat(t)},v.setPath=function(t){this.rawPath=t,this._hasTrailingSlash=/\/$/.test(this.rawPath),this.path=l(this.rawPath)},f.create=function(t){return new f(t)};var y=f.create;f.parse=function(t){return new f(t)};var m=f.parse},(t,e,n)=>{n.d(e,{appHostname:()=>i});var i=function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"app",".").concat("wistia.com")}},(t,e,n)=>{n.d(e,{seqId:()=>r});var i=n(16),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=i.Wistia._sequenceVal||1,r="".concat(t).concat(n).concat(e);return i.Wistia._sequenceVal=n+1,r}},,(t,e,n)=>{n.d(e,{interFontFamily:()=>i,interNumbersSemiBold:()=>r});var i="WistiaPlayerInter, Helvetica, Sans-Serif",r="WistiaPlayerInterNumbersSemiBold, Helvetica, Sans-Serif"},,(t,e,n)=>{function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{standardSvgAttrs:()=>a});var a=function(t){var e=t.width,n=void 0===e?40:e,i=t.height,o=void 0===i?34:i,a=t.styleOverride,s=void 0===a?{}:a,u=t.ariaHidden,l=void 0!==u&&u,c=t.fillColor,d=void 0===c?"#ffffff":c;return{x:"0px",y:"0px",viewBox:"0 0 ".concat(n," ").concat(o),"enable-background":"new 0 0 ".concat(n," ").concat(o),"aria-hidden":"".concat(!!l),style:r({fill:d,height:"100%",left:0,strokeWidth:0,top:0,width:"100%"},s)}}},,(t,e,n)=>{n.d(e,{getCssGradient:()=>o,getGradientColor:()=>a});var i=n(33),r=n(34);n(4);var o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.9;return 0===t.colors.length?null:t.colors.every((function(t){return Boolean(t[0]&&t[1]>=0&&t[1]<=1)}))?"linear-gradient(90deg, ".concat(t.colors.map((function(t){return"".concat(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.9;return new r.Color(t).alpha(e).toRgba()}(t[0],e)," ").concat(100*t[1],"%")})).join(", "),")"):null},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,i.isGradient)(t)?t.colors[e][0]:null}},(t,e,n)=>{n.d(e,{isGradient:()=>i});var i=function(t){if("object"!=typeof t||null===t)return!1;var e=t,n=e.colors,i=e.on;return!i||!(!Array.isArray(n)||"boolean"!=typeof i)&&(0!==n.length&&n.every((function(t){return"string"==typeof t[0]&&"number"==typeof t[1]})))}},(t,e,n)=>{n.d(e,{Color:()=>h});var i=n(35);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var a=/^#?([0-9a-f]{3,4}|[0-9a-f]{6,8})$/i,s=/^rgba?\((\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?)(?:,\s*([01]?\.?\d*))?\)$/,u=/^\d+(\.\d+)*%$/,l=/([0-9a-f])/gi,c=function(t){return u.test(t)?2.55*parseFloat(t):t},d=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t},h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof t?(this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a):e?this.parse(e):(this.r=this.g=this.b=0,this.a=1)}return e=t,(n=[{key:"parse",value:function(t){var e;if(Array.isArray(t))this.r=t[0],this.g=t[1],this.b=t[2],this.a=null!==(e=t[3])&&void 0!==e?e:1;else if(a.test(t)){var n=(t=String(t)).replace(/^#/,"");3!==n.length&&4!==n.length||(n=n.replace(l,"$1$1")),this.r=parseInt(n.substr(0,2),16),this.g=parseInt(n.substr(2,2),16),this.b=parseInt(n.substr(4,2),16),8===n.length?this.a=parseInt(n.substr(6,2),16)/255:this.a=1}else if(s.test(t)){var i=(t=String(t)).match(s);this.r=parseFloat(c(i[1])),this.g=parseFloat(c(i[2])),this.b=parseFloat(c(i[3])),i[4]?this.a=parseFloat(i[4]):this.a=1}return this}},{key:"clone",value:function(){return new t(this)}},{key:"_hslFromRgb",value:function(){var t=(0,i.rgbToHsl)([this.r,this.g,this.b]),e=t.hue,n=t.saturation,r=t.lightness;return this._h=e,this._s=n,this._l=r,this}},{key:"_rgbFromHsl",value:function(){var t=this._h/360,e=this._s/100,n=this._l/100,i=n<.5?n*(1+e):n+e-n*e,r=2*n-i;return this.r=255*d(r,i,t+1/3),this.g=255*d(r,i,t),this.b=255*d(r,i,t-1/3),this}},{key:"blendChannel",value:function(t,e,n,i){return i?(this[t]=Math.sqrt(Math.pow(this[t],2)*(1-n)+Math.pow(e,2)*n),this):(this[t]=n*e+(1-n)*this[t],this)}},{key:"blend",value:function(e,n,i){return e=new t(e),this.blendChannel("r",e.r,n,i),this.blendChannel("g",e.g,n,i),this.blendChannel("b",e.b,n,i),this}},{key:"getContrastRatio",value:function(e){return(0,i.getContrast)(this.toHexWithHash(),new t(e).toHexWithHash())}},{key:"hasAccessibleContrast",value:function(t,e){return this.getContrastRatio(t)>=i.colorContrastRatiosByShape[e]}},{key:"hue",value:function(){return this._hslFromRgb(),this._h}},{key:"lightenChannel",value:function(t,e){return this[t]+=e,this[t]<0?this[t]=0:this[t]>255&&(this[t]=255),this}},{key:"lighten",value:function(t){return this.looksLikePercent(t)?this.lightness(this.lightness()+parseFloat(t)):(this.lightenChannel("r",t),this.lightenChannel("g",t),this.lightenChannel("b",t)),this}},{key:"darken",value:function(t){return"string"==typeof t?this.lighten("-".concat(t)):this.lighten(-t)}},{key:"looksLikePercent",value:function(t){return/^-?\d+(\.\d+)?%$/.test(t)}},{key:"lightness",value:function(t){return this._hslFromRgb(),null!=t?(this._l=Math.max(0,Math.min(100,t)),this._rgbFromHsl(),this):this._l}},{key:"saturation",value:function(t){return this._hslFromRgb(),null!=t?(this._s=Math.max(0,Math.min(100,t)),this._rgbFromHsl(),this):this._s}},{key:"setHue",value:function(t){if(this._hslFromRgb(),null!=t)return this._h=Math.max(0,Math.min(360,t)),this._rgbFromHsl(),this}},{key:"shade",value:function(t,e){return this.blend("#000000",t,e)}},{key:"grayLevel",value:function(){return(.299*this.r+.587*this.g+.114*this.b)/255}},{key:"tint",value:function(t,e){return this.blend("#ffffff",t,e)}},{key:"whiteLevel",value:function(){return Math.min(Math.min(this.r,this.g),this.b)}},{key:"getRelativeLuminance",value:function(){var t=function(t){var e=.003921569*t;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)};return.2126*t(this.r)+.7152*t(this.g)+.0722*t(this.b)}},{key:"isDark",value:function(t){return t?this.getRelativeLuminance()<.15:this.grayLevel()<=.4}},{key:"isLight",value:function(t){return t?this.getRelativeLuminance()>=.8:this.grayLevel()>.4}},{key:"isGrayscale",value:function(){return this.r===this.g&&this.g===this.b}},{key:"distanceFrom",value:function(t){return Math.sqrt(Math.pow(this.r-t.r,2)+Math.pow(this.g-t.g,2)+Math.pow(this.b-t.b,2))}},{key:"channelDominance",value:function(){var t=this;return["r","g","b"].sort((function(e,n){return t[n]-t[e]}))}},{key:"alpha",value:function(t){return null!=t?(this.a=t,this):this.a}},{key:"red",value:function(t){return null!=t?(this.r=t,this):this.r}},{key:"green",value:function(t){return null!=t?(this.g=t,this):this.g}},{key:"blue",value:function(t){return null!=t?(this.b=t,this):this.b}},{key:"toHex",value:function(){var t=Math.round(this.r).toString(16),e=Math.round(this.g).toString(16),n=Math.round(this.b).toString(16);return 1===t.length&&(t="0".concat(t)),1===e.length&&(e="0".concat(e)),1===n.length&&(n="0".concat(n)),"".concat(t).concat(e).concat(n)}},{key:"toHexWithAlpha",value:function(){var t=Math.round(255*this.a).toString(16);return 1===t.length&&(t="0".concat(t)),"".concat(t).concat(this.toHex())}},{key:"toHexWithHash",value:function(){return"#".concat(this.toHex())}},{key:"toRgb",value:function(){return"rgb(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),")")}},{key:"toRgba",value:function(){return"rgba(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),",").concat(this.a,")")}},{key:"toRgbaOrHex",value:function(){return this.toRgba()}},{key:"toPercent",value:function(){return"rgba(".concat(this.r/255*100,"%,").concat(this.g/255*100,"%,").concat(this.b/255*100,"%,").concat(this.a,")")}},{key:"toIeGradient",value:function(){return"progid:DXImageTransform.Microsoft.gradient(startColorStr='#".concat(this.toHexWithAlpha(),"', endColorStr='#").concat(this.toHexWithAlpha(),"')")}},{key:"toString",value:function(){return this.toPercent()}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}()},(t,e,n)=>{n.d(e,{colorContrastRatiosByShape:()=>o,getContrast:()=>s,rgbToHsl:()=>a});var i=n(36),r=n(34);n(37);var o={nonText:3,largeText:3,paragraphText:4.5,smallText:5.5},a=function(t){var e=t;if(t instanceof r.Color){if((0,i.isNil)(t.r)||(0,i.isNil)(t.g)||(0,i.isNil)(t.b))throw new Error("Color does not contain required RGB values");e=[t.r,t.g,t.b]}else if("string"==typeof t){var n=new r.Color(t);if((0,i.isNil)(n.r)||(0,i.isNil)(n.g)||(0,i.isNil)(n.b))throw new Error("Color does not contain required RGB values");e=[n.r,n.g,n.b]}var o=e[0]/255,a=e[1]/255,s=e[2]/255,u=Math.max(o,a,s),l=Math.min(o,a,s),c=0,d=0,h=(u+l)/2;u===l&&(c=0,d=0);var p=u-l;return 0===p?{hue:c,saturation:d,lightness:100*o}:(c=u===o?(a-s)/p+(a<s?6:0):u===a?(s-o)/p+2:(o-a)/p+4,{hue:360*(c/=6),saturation:100*(d=h>.5?p/(2-u-l):p/(u+l)),lightness:100*h})},s=function(t,e){var n=new r.Color(t),i=new r.Color(e),o=n.getRelativeLuminance(),a=i.getRelativeLuminance();return o>a?(o+.05)/(a+.05):(a+.05)/(o+.05)}},(t,e,n)=>{n.d(e,{isEmptyString:()=>u,isNil:()=>o,isNonEmptyRecord:()=>p,isNonEmptyString:()=>l,isNotNil:()=>a,isNotNumber:()=>d,isNumber:()=>c});Number.NaN;var i=t=>null===t,r=t=>void 0===t,o=t=>i(t)||r(t),a=t=>!o(t),s=t=>"string"==typeof t,u=t=>s(t)&&""===t,l=t=>s(t)&&!u(t),c=t=>"number"==typeof t,d=t=>!c(t),h=t=>a(t)&&"object"==typeof t&&!(t instanceof Array),p=t=>h(t)&&Object.keys(t).length>0},(t,e,n)=>{n.d(e,{initializeSentry:()=>u,reportError:()=>l});var i=n(36),r=n(38),o=n(16),a=n(25),s=n(23),u=function(){if(!(!0!==(0,r.isVisitorTrackingEnabled)()||window.Sentry&&o.Wistia.isSentryInitialized)){var t=document.createElement("script");t.src="https://browser.sentry-cdn.com/9.6.1/bundle.min.js",t.crossOrigin="anonymous",t.integrity="sha384-kbRmCeIl7Uxr+vT9YhSAdguCdd4L5QPRj7jzQTanorUVVlw/Y5X9vtzVyOEHLfpH",t.onload=function(){return function(){if(!((0,i.isNil)(window.Sentry)||(0,i.isNil)(window.Sentry.BrowserClient)||(0,i.isNil)(window.Sentry.makeFetchTransport)||(0,i.isNil)(window.Sentry.defaultStackParser)||(0,i.isNil)(window.Sentry.Scope))){var t=new window.Sentry.BrowserClient({dsn:"https://a3591ba5e949a37083cc6f5a4191e903@o4505518331658240.ingest.us.sentry.io/4505794284290048",transport:window.Sentry.makeFetchTransport,stackParser:window.Sentry.defaultStackParser,integrations:[],release:(0,i.isNonEmptyString)(s.TAGGED_VERSION)?s.TAGGED_VERSION:s.CURRENT_SHA}),e=new window.Sentry.Scope;e.setClient(t),e.setTags({pillar:"publish"}),o.Wistia._sentryScope=e,t.init(),o.Wistia.isSentryInitialized=!0,h(),p()}}()},document.head.appendChild(t)}},l=function(t,e,n){try{if(!o.Wistia.isSentryInitialized)return;var a=function(t){switch(t){case"carousel":case"playlist":case"channel":case"form":case"transcript":case"globalListener":case"other":case"player":default:return 1;case"mediaPlayback":return.001}}(t);false;var s=!1,u=(0,i.isNil)(window.crypto)?window.msCrypto:window.crypto;if(void 0!==u)s=u.getRandomValues(new Uint32Array(1))[0]/4294967296<a;else s=Math.random()<a;s?(0,r.isVisitorTrackingEnabled)()&&(o.Wistia._sentryScope.clear(),o.Wistia._sentryScope.setTag("pillar","publish"),o.Wistia._sentryScope.setTag("product",t),o.Wistia._sentryScope.setTag("url",window.location.href),(0,i.isNonEmptyRecord)(n)&&o.Wistia._sentryScope.setTags(n),o.Wistia._sentryScope.captureException(e)):console.error(e)}catch(t){console.error(t)}},c=function(t){var e,n,i=t.error;if(i instanceof Error){var r=null!==(e=null===(n=t.error)||void 0===n?void 0:n.source)&&void 0!==e?e:"",o=(0,a.appHostname)("fast");r.includes(o)&&l("globalListener",i)}},d=function(t){var e,n,i=t.reason;i instanceof Error&&((null!==(e=null===(n=t.reason)||void 0===n?void 0:n.stack)&&void 0!==e?e:"").includes((0,a.appHostname)("fast"))&&l("globalListener",i))},h=function(){o.Wistia._isListeningForGlobalErrors||(window.addEventListener("error",c),o.Wistia._isListeningForGlobalErrors=!0)},p=function(){o.Wistia._isListeningForGlobalUnhandledRejections||(window.addEventListener("unhandledrejection",d),o.Wistia._isListeningForGlobalUnhandledRejections=!0)}},(t,e,n)=>{n.d(e,{isVisitorTrackingEnabled:()=>d});var i=n(13),r=n(39),o=n(41),a=n(16);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||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.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l;a.Wistia._visitorTrackingDomain||(a.Wistia._visitorTrackingDomain=location.hostname||""),a.Wistia._visitorTracking||(null!=(l=(0,r.getWistiaLocalStorage)().visitorTrackingEnabled)&&((0,r.updateWistiaLocalStorage)((function(t){return delete t.visitorTrackingEnabled})),a.Wistia._visitorTracking={},a.Wistia._visitorTracking[a.Wistia._visitorTrackingDomain]={isEnabled:l,updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(t){return t.visitorTracking=a.Wistia._visitorTracking}))),a.Wistia._visitorTracking=(0,r.getWistiaLocalStorage)().visitorTracking||{});a.Wistia.consent=function(t){return null==t?d():c(t)};var c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Wistia._visitorTrackingDomain;"default"===t?delete a.Wistia._visitorTracking[e]:a.Wistia._visitorTracking[e]={isEnabled:"true"==="".concat(t),updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(t){return t.visitorTracking=a.Wistia._visitorTracking})),(0,i.globalTrigger)("visitortrackingchange",t),s(document.getElementsByTagName("wistia-player")).forEach((function(e){e.dispatchEvent(new CustomEvent("visitor-tracking-change",{detail:{isTrackingEnabled:t}}))}))},d=function(){if("boolean"==typeof a.Wistia._visitorTracking)return a.Wistia._visitorTracking;if(a.Wistia._visitorTracking){var t=function(){if(a.Wistia._visitorTrackingDomain)for(var t=a.Wistia._visitorTrackingDomain.split(".");t.length>0;){var e=a.Wistia._visitorTracking[t.join(".")],n=e&&e.isEnabled;if(null!=n)return n;t.shift()}}();if(null!=t)return Boolean(t)}var e=(0,o.getAllApiHandles)();if(a.Wistia.channel&&a.Wistia.channel.all)try{e.push.apply(e,s(a.Wistia.channel.all()))}catch(t){}return!e.some((function(t){return!0===(t._mediaData||t._galleryData||{}).privacyMode}))}},(t,e,n)=>{n.d(e,{getWistiaLocalStorage:()=>a,removeWistiaLocalStorage:()=>s,updateWistiaLocalStorage:()=>u});var i=n(40),r=n(16),o="wistia",a=function(){return(0,i.getLocalStorage)(o)},s=function(){return r.Wistia._localStorage=(0,i.removeLocalStorage)(o),r.Wistia._localStorage},u=function(t){return r.Wistia._localStorage=(0,i.updateLocalStorage)(o,t),r.Wistia._localStorage}},(t,e,n)=>{n.d(e,{getLocalStorage:()=>u,removeLocalStorage:()=>l,setLocalStorage:()=>c,updateLocalStorage:()=>d});var i=n(16),r=function(t){setTimeout((function(){throw t}),0)},o="_namespacedLocalStorage",a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia-test-localstorage";if(null!=i.Wistia._localStorageWorks)return i.Wistia._localStorageWorks;try{var e=localStorage.getItem(t);localStorage.removeItem(t),localStorage.setItem(t,e),localStorage.removeItem(t),i.Wistia._localStorageWorks=!0}catch(t){i.Wistia._localStorageWorks=!1}return i.Wistia._localStorageWorks},s=function(){return null==i.Wistia[o]&&(i.Wistia[o]={}),i.Wistia[o]},u=function(t){if(!a())return s()[t]||{};if(localStorage[t])try{return"null"===localStorage[t]?{}:JSON.parse(localStorage[t])}catch(t){r(t)}return{}},l=function(t){if(a())try{localStorage.removeItem(t)}catch(t){r(t)}else s()[t]={}},c=function(t,e){if(!a())return null!=e&&"object"==typeof e&&(s()[t]=e),e;try{s()[t]=e,localStorage[t]=JSON.stringify(e)}catch(t){r(t)}return e},d=function(t,e){var n=u(t);try{e(n)}catch(t){r(t)}return c(t,n)}},(t,e,n)=>{n.d(e,{getAllApiHandles:()=>l,getAllApiHandlesByDomOrder:()=>h,getOneApiHandle:()=>c,getOneApiHandleFromHashedId:()=>d});var i=n(42),r=n(12),o=n(43),a=n(44);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||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.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var l=function(){return(void 0===(0,o.wData)("video")?[]:Object.values((0,o.wData)("video"))).concat(void 0===(0,o.wData)("iframe_api")?[]:Object.values((0,o.wData)("iframe_api")))},c=function(t){var e,n,i;if(void 0===t)return null!==(i=l()[0])&&void 0!==i?i:null;var o=null;if("string"==typeof t){var s,u=t;if(null===(o=null!==(s=document.querySelector("[unique-id='".concat(u,"']")))&&void 0!==s?s:document.getElementById(u))){var c,d=l().find((function(t){var e,n;if(null!==(e=t.hashedId())&&void 0!==e&&e.startsWith(u)||null!==(n=t.container)&&void 0!==n&&n.id.startsWith(u))return t;if("mediaLanguages"in t){var i;if(t.mediaLanguages().some((function(t){return(0,a.ensureString)(t.hashedId).startsWith(u)})))return t;if((0,a.ensureString)(null===(i=t._mediaData)||void 0===i?void 0:i.sourceHashedId).startsWith(u))return t}return null}));if("removed"!==d)o=null!==(c=null==d?void 0:d.container)&&void 0!==c?c:null}}else if("number"==typeof t){var h=t,p=l();h<0&&(h=p.length+h);var f,v=p[h];if(void 0!==v&&"removed"!==v)o=null!==(f=v.container)&&void 0!==f?f:null}else t instanceof HTMLElement?o=t:r.wlog.error("Unrecognized matcher",t);return"WISTIA-PLAYER"===(null===(e=o)||void 0===e?void 0:e.tagName)?o.deprecatedApiDoNotUse:void 0!==(null===(n=o)||void 0===n?void 0:n.wistiaApi)&&"removed"!==o.wistiaApi?o.wistiaApi:null},d=function(t){var e,n,i,r=null,o=t,a=l().find((function(t){var e;return null!==(e=t.hashedId())&&void 0!==e&&e.startsWith(o)?t:null}));"removed"!==a&&(r=null!==(i=null==a?void 0:a.container)&&void 0!==i?i:null);return"WISTIA-PLAYER"===(null===(e=r)||void 0===e?void 0:e.tagName)?r.deprecatedApiDoNotUse:void 0!==(null===(n=r)||void 0===n?void 0:n.wistiaApi)&&"removed"!==r.wistiaApi?r.wistiaApi:null},h=function(){var t=Array.from((0,i.getAllApiEmbedElements)("wistia_embed_initialized")).reduce((function(t,e){return void 0!==e.wistiaApi&&"removed"!==e.wistiaApi&&null!==e.wistiaApi&&t.push(e.wistiaApi),t}),[]),e=Array.from(document.querySelectorAll("wistia-player")).reduce((function(t,e){return void 0!==e.deprecatedApiDoNotUse&&"removed"!==e.deprecatedApiDoNotUse&&null!==e.deprecatedApiDoNotUse&&t.push(e.deprecatedApiDoNotUse),t}),[]);return[].concat(s(t),s(e))}},(t,e,n)=>{n.d(e,{getAllApiEmbedElements:()=>i});var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_embed",e=document.querySelectorAll("div.".concat(t,",span.").concat(t,",iframe.").concat(t));return Array.from(e).map((function(t){var e;return"WISTIA-PLAYER"===(null===(e=t.lastChild)||void 0===e?void 0:e.nodeName)?t.lastChild:t}))}},(t,e,n)=>{n.r(e),n.d(e,{wData:()=>o,wRemoveData:()=>a});var i=n(4),r=n(16),o=function(t,e){return(0,i.isArray)(t)||(t=t.split(".")),null!=e&&(0,i.setDeep)(r.Wistia,["_data"].concat(t),e),(0,i.getDeep)(r.Wistia,["_data"].concat(t))},a=function(t){return(0,i.isArray)(t)||(t=t.split(".")),(0,i.unsetDeep)(r.Wistia,["_data"].concat(t))}},(t,e,n)=>{n.d(e,{ensureString:()=>i});var i=function(t){return null==t?"":t.toString()}},(t,e,n)=>{n.d(e,{isMouseDown:()=>c,isMouseDownRecently:()=>d});var i=n(3),r=n(9),o=n(16),a=(0,r.cachedDetect)();if(null==o.Wistia._isMouseDown){o.Wistia._isMouseDown=!1;var s=function(t){o.Wistia._isMouseDown=!0,o.Wistia._lastMouseDownAt=Date.now(),setTimeout((function(){t.defaultPrevented&&(o.Wistia._isMouseDown=!1)}),0)},u=function(){o.Wistia._lastMouseUpAt=Date.now(),setTimeout((function(){o.Wistia._isMouseDown=!1}),0)};a.touchScreen?((0,i.elemBind)(document,"touchstart",s,!0),(0,i.elemBind)(document,"touchend",(function(){o.Wistia._lastMouseUpAt=Date.now(),setTimeout((function(){o.Wistia._isMouseDown=!1}),0)}),!0)):((0,i.elemBind)(document,"mousedown",s,!0),(0,i.elemBind)(document,"mouseup",u,!0));var l=a.windows?u:s;(0,i.elemBind)(document,"contextmenu",l,!0)}var c=function(){return null!=o.Wistia._mouseDownForceReturnVal?o.Wistia._mouseDownForceReturnVal:o.Wistia._isMouseDown},d=function(){return null!=o.Wistia._mouseDownForceReturnVal?o.Wistia._mouseDownForceReturnVal:(t=500,Math.max(o.Wistia._lastMouseDownAt||0,(o.Wistia._lastMouseUpAt||0)-1)>Date.now()-t);var t}},(t,e,n)=>{n.r(e),n.d(e,{defineTranslations:()=>v,getDefaultTranslation:()=>P,getLanguage:()=>p,getLanguagePreference:()=>_,getTranslation:()=>g,getTranslations:()=>b,isSupportedPlayerLanguage:()=>f,loadAndDefineTranslation:()=>E,matchingLanguages:()=>O,supportedLanguages:()=>l});var i=n(4),r=n(47),o=n(16),a=o.Wistia.languages=o.Wistia.languages||{},s=o.Wistia.translations=o.Wistia.translations||{};o.Wistia._translationPromises||(o.Wistia._translationPromises={});var u,l=["ar","de","es","en-US","fr","it","ja","ko","pt","ru","zh-CN"],c={ara:"ar",ger:"de",spa:"es",eng:"en-US",fre:"fr",ita:"it",jpn:"ja",kor:"ko",por:"pt",rus:"ru",chi:"zh-CN"},d=function(t){if(null==t)return"en-US";if(t=c[t]||t,!l.includes(t)){var e=O((function(){return[t]}))[0];e&&(t=e)}return("en"===t||/^en-/.test(t))&&(t="en-US"),("zh"===t||/^zh-/.test(t))&&(t="zh-CN"),t},h=function(t,e,n){a[t]={code:t,text:m(e)},n&&v(t,n)},p=function(t){return a[d(t)]},f=function(t){return l.includes(d(t))},v=function(t,e){if(null==a[t])throw new Error("Must define a language with code ".concat(t," before defining its translations."));var n=s[t];n?(0,i.merge)(n,e):s[t]=(0,i.clone)(e)},y=o.Wistia.cachedDecodings=o.Wistia.cachedDecodings||{},m=function(t){return u||(u=document.createElement("textarea")),null!=y[t]?y[t]:(u.innerHTML=t,y[t]=u.value,u.value)},g=function(t,e){var n;return t=d(t),n=s[t]&&s[t][e]?s[t][e]:s["en-US"][e],m(function(t){return null==t?"?":t}(n))},b=function(t){var e={};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(n){e[n]=g(t,n)})),e},_=function(){return navigator.languages||navigator.language?o.Wistia.languagePreference=navigator.languages||[navigator.language]:o.Wistia.languagePreference=["en-US"],o.Wistia.languagePreference},w=Promise.resolve({code:"en-US",translations:s["en-US"]}),E=function(t){if(t=d(t),!l.includes(t))return w;if(o.Wistia._translationPromises[t])return o.Wistia._translationPromises[t];if("en-US"===t)return w;var e=new Promise((function(e,n){(0,r.dynamicImport)(["assets/external/translations/".concat(t,".js")]).then((function(n){var i=n.languageCode,r=n.languageLabel,o=n.translations;h(i,r,o),e({code:t,translations:o[t]})})).catch(n)}));return o.Wistia._translationPromises[t]=e,e},O=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:_)().reduce((function(t,e){var n=-1!==l.indexOf(e),i=e.split("-")[0],r=-1!==l.indexOf(i);return n?t.push(e):r&&t.push(i),t}),[])},P=function(){var t=O()[0];return t&&"en"!==t||(t="en-US"),s[t]?Promise.resolve({code:t,translations:s[t]}):E(t)};h("en-US","English"),v("en-US",{PLAY:"Play",PLAY_BUTTON_LIVE_NOT_STARTED:"Livestream has not started",PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING:"Play Video",PLAY_BUTTON_TITLE_WHEN_PLAYING:"Pause",REWATCH:"Rewatch",SKIP:"Skip"})},(t,e,n)=>{n.d(e,{dynamicImport:()=>s});var i=n(23);function r(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function s(n,i,r,a){var s=i&&i.prototype instanceof l?i:l,c=Object.create(s.prototype);return o(c,"_invoke",function(n,i,r){var o,a,s,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,a=0,s=t,h.n=n,u}};function p(n,i){for(a=n,s=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(a=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,a=0))}if(r||n>1)return u;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),a=c,s=f;(e=a<2?t:s)||!d;){o||(a?a<3?(a>1&&(h.n=-1),p(a,s)):h.n=s:h.v=s);try{if(l=2,o){if(a||(r="next"),e=o[r]){if(!(e=e.call(o,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,a<2&&(a=0)}else 1===a&&(e=o.return)&&e.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),a=1);o=t}else if((e=(d=h.n<0)?s:n.call(i,h))!==u)break}catch(e){o=t,a=1,s=e}finally{l=1}}return{value:e,done:d}}}(n,r,a),!0),c}var u={};function l(){}function c(){}function d(){}e=Object.getPrototypeOf;var h=[][i]?e(e([][i]())):(o(e={},i,(function(){return this})),e),p=d.prototype=l.prototype=Object.create(h);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,o(t,a,"GeneratorFunction")),t.prototype=Object.create(p),t}return c.prototype=d,o(p,"constructor",d),o(d,"constructor",c),c.displayName="GeneratorFunction",o(d,a,"GeneratorFunction"),o(p),o(p,a,"Generator"),o(p,i,(function(){return this})),o(p,"toString",(function(){return"[object Generator]"})),(r=function(){return{w:s,m:f}})()}function o(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}o=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var a=function(e,n){o(t,e,(function(t){return this._invoke(e,n,t)}))};a("next",0),a("throw",1),a("return",2)}},o(t,e,n,i)}function a(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}var s=function(){var t,e=(t=r().m((function t(e){var n,o,a,s,u=arguments;return r().w((function(t){for(;;)switch(t.n){case 0:if(a=null!==(n=(o=u.length>1&&void 0!==u[1]?u[1]:{}).host)&&void 0!==n?n:(0,i.eV1HostWithPort)(),!(""!==(s=i.TAGGED_VERSION)&&s.length>0&&!0!==o.mediaData)){t.n=1;break}return t.a(2,import("".concat((0,i.eV1Protocol)(),"//").concat(a,"/").concat(e,"@").concat(s)));case 1:return t.a(2,import("".concat((0,i.eV1Protocol)(),"//").concat(a,"/").concat(e)))}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function s(t){a(o,i,r,s,u,"next",t)}function u(t){a(o,i,r,s,u,"throw",t)}s(void 0)}))});return function(t){return e.apply(this,arguments)}}()},,,,,,(t,e,n)=>{n.d(e,{cacheMediaData:()=>u,getCarouselDataFromCache:()=>c,getMediaDataFromCache:()=>s,uncacheMediaData:()=>l});var i=n(36),r=n(16),o=n(12),a=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},s=function(t){var e=r.Wistia._remoteData.get("media_".concat(t));return(0,i.isNil)(e)?null:(a(e,"error")&&o.wlog.error("Received cached error response instead of MediaData when retrieving cached mediaData for ".concat(t)),e)},u=function(t,e){r.Wistia._remoteData.set("media_".concat(t),e)},l=function(t){r.Wistia._remoteData.delete("media_".concat(t)),Reflect.deleteProperty(r.Wistia._mediaDataPromises,t)},c=function(t){var e=r.Wistia._remoteData.get("carousel_".concat(t));return(0,i.isNil)(e)?null:e}},(t,e,n)=>{n.d(e,{base64Decode:()=>s,base64Encode:()=>u,parentFramesLength:()=>l,poll:()=>i.poll,throttle:()=>r.throttle,unescapeHtml:()=>o.unescapeHtml});var i=n(7),r=n(55),o=n(56),a=n(16),s=function(t){return decodeURIComponent(atob(t).split("").map((function(t){return"%".concat("00".concat(t.charCodeAt(0).toString(16)).slice(-2))})).join(""))},u=function(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x".concat(e))})))},l=function(){try{return parent.frames.length}catch(t){return a.Wistia.warn(t),1}}},(t,e,n)=>{n.d(e,{throttle:()=>i});var i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null,r=null,o=null,a=null,s=0,u=function(){s=!1===n.leading?0:(new Date).getTime(),a=null,o=e.apply(i,r),a||(i=r=null)};return function(){var l=(new Date).getTime();s||!1!==n.leading||(s=l);var c=t-(l-s);return i=this,r=arguments,c<=0||c>t?(clearTimeout(a),a=null,s=l,o=e.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(u,c)),o}}},(t,e,n)=>{n.d(e,{unescapeHtml:()=>r});var i={},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"";if(e.cache){var n=i[t];if(i[t])return n}var r,o=document.createElement("div");return o.innerHTML=t.toString().replace(/</g,"<").replace(/>/g,">"),r=o.childNodes.length>0?o.childNodes[0].nodeValue:"",e.cache&&(i[t]=r),r}},(t,e,n)=>{n.d(e,{mediaDataTransforms:()=>d});var i=n(4),r=n(24),o=n(9),a=n(36),s=n(58);function u(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||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.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=(0,o.cachedDetect)(),d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){if(!0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOriginalAsMp4){var e=t.assets.filter((function(t){return"original"===t.type}))[0];(0,s.readyPublicOver400)(t.assets).length>0||(t.assets=[].concat(u(t.assets),[(0,i.assign)({},e,{display_name:"".concat(e.display_name," copy"),container:"mp4",codec:"h264",type:"mp4_video"})]))}}(t,e),function(t){t.assets&&c.webp&&(t.assets=t.assets.map((function(t){if("still_image"===t.type&&Object(t).url){var e=new r.Url(t.url);e.ext("webp"),t.url=e.absolute()}return t})))}(t),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.isNotNil)(e.channelId)&&t.embedOptions&&(t.embedOptions.channelId=e.channelId)}(t,e),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.isNotNil)(e.channelPassword)&&t.embedOptions&&(t.embedOptions.channelPassword=e.channelPassword)}(t,e),t}},(t,e,n)=>{n.r(e),n.d(e,{BAKERY_HOSTS:()=>L,FAILED:()=>h,PROCESSING:()=>f,QUEUED:()=>p,READY:()=>v,channelArtworkStill:()=>A,filter:()=>m,filterOver400:()=>E,findClosestAssetByQuality:()=>T,getStillWidth:()=>D,hasAnyReadyHdrAssets:()=>R,iphone:()=>q,isBakeryUrl:()=>B,m3u8:()=>N,moveToFront:()=>Q,mp4:()=>F,nearestOutsideRange:()=>Y,nonfailedPublicOver400:()=>P,numericSizeSnapped:()=>S,one:()=>g,onePublicReadyWithContainer:()=>x,original:()=>H,originalAspect:()=>z,playable:()=>V,readyPublicM3u8s:()=>w,readyPublicMp3s:()=>b,readyPublicMp4s:()=>_,readyPublicOver400:()=>O,smallestNormalMp4:()=>G,still:()=>C,stillUrl:()=>I,thumbnailAssets:()=>j,urlWithCorrectHost:()=>K,videoAspect:()=>U,webm:()=>W,withinQualityRange:()=>k});var i=n(4),r=n(24),o=n(9),a=n(23),s=n(12),u=n(25);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var d=Array.prototype.slice,h=-1,p=0,f=1,v=2,y=["select","sortFn","sortBy","unique"],m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return[];t.assets&&(t=t.assets),null==e.qualityMin&&null==e.qualityMax||(t=k(t,e.qualityMin,e.qualityMax),e=(0,i.except)(e,["qualityMin","qualityMax"]));var n=(0,i.only)(e,y),r=n.select||(0,i.except)(e,y);r&&(n.select=r);var o=n.select?(0,i.select)(t,n.select):(0,i.clone)(t);if((n.sortFn||n.sortBy)&&(o=(0,i.sort)(o,n.sortFn||n.sortBy)),n.unique){for(var a={},s=0;s<o.length;s++){var u=o[s],l=u["".concat(n.unique)]||"__undefined__";a[l]||(a[l]=u)}for(var c in o=[],a)o.push(a[c])}return o},g=function(t,e){return m(t,e)[0]||null},b=function(t){return m(t,{ext:"mp3",status:v,public:!0})},_=function(t){return m(t,{container:"mp4",status:v,public:!0})},w=function(t){return m(t,{container:"m3u8",status:v,public:!0})},E=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r=null!=i.opt_vbitrate&&i.opt_vbitrate>=500&&i.opt_vbitrate<=1e5,o=null!=i.width&&i.width>400;(r||o)&&e.push(i)}return e},O=function(t){return E(m(t,{container:/mp4/,public:!0,status:v}))},P=function(t){return E(m(t,{container:/mp4/,public:!0,status:function(t){return t!==h}}))},k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;return m(t,{select:function(t){var i=S(t.width,t.height);return e<=i&&i<=n}})},S=function(t,e){if(e>t){var n=t;t=e,e=n}return t/e<1.05&&(t=e*(16/9)),t>=3740?2160:t>=2460?1440:t>=1820?1080:t>=1180?720:t>=860?540:t>=540?360:e},T=function(t,e){var n;n="4k"===e?2160:parseInt(e,10);var i=k(t,n,n)[0];if(i)return i;var r=Y(t,n,n);if(1===r.length)return r[0];var o=U(t),a=Math.round(o*n),s=l(r,2),u=s[0],c=s[1];return Math.abs(u.width-a)<Math.abs(c.width-a)?u:c},C=function(t){var e=g(t,{type:/^still_image$/,sortBy:"created_at desc"});return e||(e=A(t)),e||(e=g(t,{container:/mp4/,sortBy:"width desc"})),e},A=function(t){return g(t,{type:/^channel_still_image$/,sortBy:"created_at desc"})},j=function(t,e){if(e.stillUrl)return[{height:null,url:e.stillUrl,width:null}];var n=C(t);if(null!=e.instantHlsStillAsset&&(!n||/mp4/.test(n.container)))return[e.instantHlsStillAsset];if(null!=e.originalFileStillAsset&&(!n||/mp4/.test(n.container)))return[e.originalFileStillAsset];if(!n)return[];var i=n.width/n.height;return[320,640,960,1280,1920,3840].map((function(e){var n=Math.round(e/i);return{height:n,url:I(t,{videoWidth:e,videoHeight:n,playButton:!1}),width:e}}))},M=(0,u.appHostname)("fast"),I=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=C(t);if(n){if(n.status!==v){var o=A();return o&&o.status===v?o.url:"//".concat(M,"/assets/images/blank.gif")}var s=(e=(0,i.merge)({aspect:n.width/n.height||1,stillUrl:n.url,playButton:!1,playerColor:e.playerColor||"636155",videoWidth:n.width||640,videoHeight:n.height||360,stillSnap:!0},e)).videoWidth,u=e.videoHeight,l=new r.Url(e.stillUrl);return e.retina&&(l.params.image_play_button_size="2x",s*=2,u*=2),e.stillSnap&&(s=D({videoWidth:s,stillAssetWidth:n.width||640}),u=Math.round(s/e.aspect)),B(e.stillUrl)?("https:"===e.protocol&&(l.protocol="https:",l.host=e.embedHost===a.PROD_FAST_HOSTNAME_COM||e.embedHost===a.PROD_FAST_HOSTNAME_NET?a.PROD_SSL_EMBED_HOST:a.SSL_EMBED_HOST),l.params.image_crop_resized="".concat(s,"x").concat(u),(null==e.playButton||e.playButton)&&(l.params.image_play_button_rounded=1,l.params.image_play_button_color="".concat("".concat(e.playerColor).replace(/^#+/,""),"e0")),e.ext&&l.ext(e.ext),"bin"===l.ext()&&l.ext("jpg"),l.absolute()):e.stillUrl}},D=function(t){var e=[640,960,1280,1920,3840];t.stillAssetWidth<3840&&e.push(t.stillAssetWidth);for(var n=[],i=0;i<e.length;i++){var r=e[i];r<=t.stillAssetWidth&&n.push(r)}n.sort((function(t,e){return t-e}));for(var o=0;o<n.length;o++){var a=n[o];if(t.videoWidth<=a)return a}return Math.max.apply(Math,n)},L=[a.EMBED_HOST,a.SSL_EMBED_HOST,(0,u.appHostname)("embed"),(0,u.appHostname)("prime"),(0,u.appHostname)("mixergy-cdn"),(0,u.appHostname)("embed-fastly"),a.PROD_EMBED_HOST,a.PROD_SSL_EMBED_HOST,a.PROD_FASTLY_SSL_HOST],B=function(t){if(null==t)return!1;var e=new r.Url(t);return!!e.host&&L.join(",").indexOf(e.host)>=0},x=function(t,e,n){return n=(0,i.merge)({container:e,public:!0,status:v},n),g(t,n)},R=function(t){return t.some((function(t){return"hdr_video"===t.type&&t.status===v&&t.public&&"mp4"===t.container}))},F=function(t,e){return x(t,"mp4",e)},W=function(t,e){return x(t,"webm",e)},N=function(t,e){return x(t,"m3u8",e)},H=function(t){return g(t,{type:"original"})},V=function(t,e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.cachedDetect)()).video.webm&&W(t,e)||F(t,e)},U=function(t){var e=F(t)||N(t)||W(t)||H(t);return e&&e.height?e.width/e.height:640/360},z=function(t){var e=U(t),n=H(t);if(n&&n.width&&n.height){var i=n.width/n.height;return i>1&&e<1||i<1&&e>1?1/i:i}return e},q=function(t,e){if(U(t)>1)return e=(0,i.merge)({width:640},e),F(t,e)||G(t,e);var n=(0,i.merge)({width:320},e),r=(0,i.merge)({width:640},e);return F(t,n)||F(t,r)||G(t,e)},G=function(t,e){return e=(0,i.merge)({sortBy:"width asc",width:[640,1920]},e),F(t,e)},K=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.eV1Protocol(),n=new r.Url(t);return B(t)&&("https:"===e?(n.host=a.deliveryHost(location.protocol),n.protocol="https:"):(n.host=a.deliveryHost(location.protocol),n.protocol="http:")),n.absolute()},Y=function(t,e,n){if(0===t.length)return[];for(var i,r,o=d.call(t).sort((function(t,e){return S(t.width,t.height)-S(e.width,e.height)})),a=0;a<o.length;a++){var u=o[a],l=S(u.width,u.height);if(l<e&&(i=u),l>=n){r=u;break}}var c=[];return i&&c.push(i),r&&c.push(r),0===c.length&&(s.wlog.error("nearestOutsideRange: no nearby assets found, using first in list",o[0]),c.push(o[0])),c},Q=function(t,e){if(!e)return t;for(var n=-1,i=0;i<t.length;i++){if(t[i].url===e.url){n=i;break}}return n>0&&(t.splice(n,1),t.unshift(e)),t}},,(t,e,n)=>{n.d(e,{globalEventLoop:()=>u});var i=n(12),r=n(16),o=i.wlog.getPrefixedFunctions("event_loop"),a=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._timeoutId=null,this._latency=null!=e.latency?e.latency:100,this._blurLatency=null!=e.blurLatency?e.blurLatency:2e3,this._functions={},this._paused={},window.addEventListener("blur",(function(){return t.blur()}),!1),window.addEventListener("focus",(function(){return t.focus()}),!1),this.start()},s=a.prototype;s.start=function(){var t=this;clearTimeout(this._timeoutId),this._loopFn=this._loopFn||function(){t.runFunctions(),t._timeoutId=setTimeout(t._loopFn,t._latency)},this._loopFn()},s.resync=function(){this.start()},s.resyncNextTick=function(){var t=this;setTimeout((function(){t.resync()}),0)},s.stop=function(){clearTimeout(this._timeoutId)},s.clear=function(){this._functions={}},s.runFunctions=function(){this._pausedDirty&&this.updatePaused();var t=[];for(var e in this._functions){var n=this._functions[e],i=(new Date).getTime(),r=i-n.lastRanAt;if(!n.paused&&r>=n.interval){n.lastRanAt=i;try{n.fn()===this.remove&&t.push(e)}catch(t){o.error(t)}}}for(var a=0;a<t.length;a++)this.remove(t[a])},s.add=function(t,e,n){var i=(new Date).getTime();this._functions[t]={addedAt:i,lastRanAt:-1,interval:e,fn:n};var r=n();this._functions[t]&&(this._functions[t].lastRanAt=(new Date).getTime()),this._functions[t]&&r===this.remove?delete this._functions[t]:this._pausedDirty=!0},s.remove=function(t){var e=this;this.forEachMatchingKey(t,(function(t){delete e._functions[t]}))},s.forEachMatchingKey=function(t,e){for(var n in this._functions){var i=this._functions[n];this.key1IncludesKey2(t,n)&&e(n,i)}},s.latency=function(t){if(null==t)return this._latency;this._latency=t},s.interval=function(t,e){if(null==e)return this._functions[t].interval;null==this._functions[t]?o.notice("setting interval of ",t,"to",e,"failed because",t,"is not defined"):this._functions[t].interval=e},s.pause=function(t){this._paused[t]=!0,this._pausedDirty=!0},s.unpause=function(t){this._paused[t]=!1,this._pausedDirty=!0},s.isPaused=function(t){for(var e in this.paused){if(this._paused[e]&&this.key1IncludesKey2(e,t))return!0}return!1},s.updatePaused=function(){for(var t in this._functions){this._functions[t].paused=this.isPaused(t)}this._pausedDirty=!1},s.key1IncludesKey2=function(t,e){return"function"==typeof e.indexOf&&0===e.indexOf(t)&&(e.length===t.length||"."===e.charAt(t.length))},s.blur=function(){this._blurred||(this._blurred=!0,this._savedLatency=this._latency,this._latency=this._blurLatency)},s.focus=function(){this._blurred&&(this._blurred=!1,this._latency=this._savedLatency,this.resync())},null==r.Wistia.eventLoop&&(r.Wistia.eventLoop=new a({latency:100,blurLatency:100}));var u=r.Wistia.eventLoop},,(t,e,n)=>{n.d(e,{embedOptionsFromQueryParams:()=>s});var i=n(24),r=n(4),o=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},a=/^w_([^&]+)/,s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;e||(e=top!==self?document.referrer||"":location.href||"");var s=new i.Url(e).params||{},u={};for(var l in s)if(o(s,l)){var c=l.match(n);if(c){var d=c[1];(0,r.indexOf)(t,d)>=0&&(u[d]=s[l])}}return u}},,,,,(t,e,n)=>{n.d(e,{cssResetForSelector:()=>l});var i=n(5),r={"background-attachment":"scroll","background-color":"transparent","background-image":"none","background-position":"0 0","background-repeat":"no-repeat","background-size":"100% 100%"},o={"box-sizing":"inherit","box-shadow":"none",color:"inherit",display:"block",float:"none",font:"inherit","font-family":"inherit","font-style":"normal","font-weight":"normal","font-size":"inherit","letter-spacing":0,"line-height":"inherit",margin:0,"max-height":"none","max-width":"none","min-height":0,"min-width":0,padding:0,position:"static","text-decoration":"none","text-transform":"none","text-shadow":"none",transition:"none","word-wrap":"normal","-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-user-select":"none","-webkit-font-smoothing":"antialiased"},a={border:0,"border-radius":0,outline:"none",position:"static"},s=function(t){var e=[];for(var n in t){var i=t[n];e.push("".concat(n,":").concat(i))}return e.join(";")},u="\n&{font-size:14px;}\ndiv,span,ul,li,label,fieldset,button,img,a,svg,p{".concat(s(o),"}\na{border:0;}\nh1{").concat(s((0,i.assign)({},o,{"font-size":"2em"})),"}\nh2{").concat(s((0,i.assign)({},o,{"font-size":"1.5em"})),"}\nh3{").concat(s((0,i.assign)({},o,{"font-size":"1.17em"})),"}\np{margin:1.4em 0;}\na,span,svg{display:inline;}\nul,ol,li{").concat(s((0,i.assign)({},o,{"list-style-type":"none",position:"static"})),"}\nul:before,ol:before,li:before{display:none}\nul:after,ol:after,li:after{display:none}\nlabel{").concat(s((0,i.assign)({},r,{float:"none",outline:"none"})),"}\nbutton{").concat(s((0,i.assign)({},r,a)),"}\nimg{").concat(s((0,i.assign)({},{border:0,display:"inline-block","vertical-align":"top"},a)),"}\nbutton::-moz-focus-inner{border: 0;}\n"),l=function(t,e){return u.trim().split(/\n+/).map((function(n){return function(t,e,n){var i=n.indexOf("{"),r=n.substring(0,i),o=n.substring(i,n.length);return r.split(/,\s*/).map((function(n){return n.indexOf("&")>=0?"".concat(n.replace(/&/g,t)).concat(e).concat(o):n.indexOf("::")>=0?"".concat(t).concat(e," ").concat(n).concat(o):"".concat(t).concat(n).concat(e).concat(o)})).join("\n")}(t,e,n)})).join("\n")}},(t,e,n)=>{n.d(e,{CustomEventsWrapper:()=>v});var i=n(2),r=n(9),o=n(69);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(null,arguments)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function u(t,e,n){return e=c(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var f=(0,r.cachedDetect)(),v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return h(t=u(this,e,[].concat(i)),"onSwipe",(function(e,n){var i=t.props.onSwipe;i&&i(e,n)})),h(t,"onPinch",(function(e,n){var i=t.props.onPinch;i&&i(e,n)})),h(t,"onLongPress",(function(e,n){var i=t.props.onLongPress;i&&i(e,n)})),h(t,"onCustomTouchMove",(function(e,n){var i=t.props.onCustomTouchMove;i&&i(e,n)})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this.props.tagName||"div";return(0,i.h)(t,a({},this.props,{ref:this.props.elemRef}),this.props.children)}},{key:"componentDidMount",value:function(){this._savedBase=this.base,this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.base!==this._savedBase&&(this._savedBase=this.base,this.destroyBindings(),this.setupBindings())}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){if(this.unbinds=[],f.touchScreen){var t=this.touchEvents=new o.default(this.base);t.on("swipe",this.onSwipe),t.on("pinch",this.onPinch),t.on("longpress",this.onLongPress),t.on("touchmove",this.onCustomTouchMove)}}},{key:"destroyBindings",value:function(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),this.unbinds&&(this.unbinds.map((function(t){return t()})),this.unbinds=null)}}])&&s(n.prototype,r),l&&s(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,l}(i.Component)},(t,e,n)=>{n.d(e,{default:()=>c});var i=n(15),r=n(3);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function a(t,e,n){return(e=s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var u=(0,n(9).cachedDetect)(),l=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"onTouchStart",(function(t){n.rootWidth=(0,r.elemWidth)(n.rootElem),n.rootHeight=(0,r.elemHeight)(n.rootElem),n.rootOffset=(0,r.elemOffset)(n.rootElem),n.resetTouchContext(),t.touches[0]&&(n.xDown=t.touches[0].clientX,n.yDown=t.touches[0].clientY),n.updatePinch(t),2==t.touches.length&&n.touchesAreInsideRootElem()&&t.preventDefault(),n.startedAt=Date.now(),(0,r.elemBind)(document,"touchmove",n.onTouchMoveDocument,{passive:!1}),(0,r.elemBind)(document,"touchend",n.onTouchEndDocument),(0,r.elemBind)(n.rootElem,"touchmove",n.onTouchMove,{passive:!1}),(0,r.elemBind)(n.rootElem,"touchend",n.onTouchEnd);var e=n.getTouchContext(t);n.trigger("touchstart",t,e),n.maybeTriggerMoreSpecificEvent(t,e)})),a(this,"onTouchMove",(function(t){t._handledByTouchMove=!0;var e=t.touches[0].clientX,i=t.touches[0].clientY;n.xDiff=n.xDown-e,n.yDiff=n.yDown-i,n.updatePinch(t),n.isPinch||(Math.sqrt(n.xDiff*n.xDiff+n.yDiff*n.yDiff)>25||Date.now()-n.startedAt>300)&&(n.isSwipe=!0);var r=n.getTouchContext(t);n.trigger("touchmove",t,r),n.maybeTriggerMoreSpecificEvent(t,r)})),a(this,"onTouchMoveDocument",(function(t){t._handledByTouchMove||n.onTouchMove(t)})),a(this,"onTouchEnd",(function(t){t._handledByTouchEnd=!0;var e=n.getTouchContext(t);n.trigger("touchend",t,e),n.maybeTriggerMoreSpecificEvent(t,e),setTimeout((function(){n.resetTouchContext(),n.unbindTouchEndAndTouchMove()}),0)})),a(this,"onTouchEndDocument",(function(t){t._handledByTouchEnd||n.onTouchEnd(t)})),this.rootElem=e,this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.initialPinchDistance=null,this.touch1=this.touch2=null,this.pinchDistance=0,this.pinchScale=0,(0,r.elemBind)(e,"touchstart",this.onTouchStart,!!u.passiveSupported&&{passive:!1})},e=[{key:"updatePinch",value:function(t){var e=this.rootOffset;return 2===t.touches.length?(this.touch1={left:t.touches[0].pageX-e.left,top:t.touches[0].pageY-e.top},this.touch2={left:t.touches[1].pageX-e.left,top:t.touches[1].pageY-e.top},this.pinchDistance=Math.sqrt(Math.pow(this.touch1.left-this.touch2.left,2),Math.pow(this.touch1.top-this.touch2.top,2)),null==this.initialPinchDistance&&(this.initialPinchDistance=this.pinchDistance),this.pinchScale=this.pinchDistance/this.initialPinchDistance,this.pinchDelta=this.pinchDistance-this.initialPinchDistance,this.isPinch=!0,this.pinchScale):0}},{key:"getTouchContext",value:function(t){var e=this.rootOffset,n=Date.now()-this.startedAt,i=Object(t.touches[0]);return{xOffset:i.pageX-e.left,yOffset:i.pageY-e.top,xDelta:this.xDiff,yDelta:this.yDiff,absXDelta:Math.abs(this.xDiff),absYDelta:Math.abs(this.yDiff),delta:Math.sqrt(this.xDiff*this.xDiff+this.yDiff*this.yDiff),startedAt:this.startedAt,isSwipe:!this.isPinch&&this.isSwipe,isTap:n<1e3&&!this.isPinch&&!this.isSwipe,isLongPress:n>=1e3&&!this.isPinch&&!this.isSwipe,isPinch:this.isPinch,timeDelta:n,pinchScale:this.pinchScale,pinchDistance:this.pinchDistance}}},{key:"touchIsInsideRootElem",value:function(t){return t.left>=0&&t.left<this.rootWidth&&t.top>=0&&t.top<this.rootHeight}},{key:"touchesAreInsideRootElem",value:function(){return this.touchIsInsideRootElem(this.touch1)&&this.touchIsInsideRootElem(this.touch2)}},{key:"resetTouchContext",value:function(){this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.pinchDelta=0,this.pinchDistance=0,this.initialPinchDistance=null,this.touch1=this.touch2=null}},{key:"maybeTriggerMoreSpecificEvent",value:function(t,e){e.isLongPress?this.trigger("longpress",t,e):e.isTap?this.trigger("tap",t,e):e.isSwipe?this.trigger("swipe",t,e):e.isPinch&&this.trigger("pinch",t,e)}},{key:"destroy",value:function(){(0,r.elemUnbind)(this.rootElem,"touchstart",this.onTouchStart),this.unbindTouchEndAndTouchMove(),this.rootElem=null}},{key:"unbindTouchEndAndTouchMove",value:function(){(0,r.elemUnbind)(document,"touchmove",this.onTouchMoveDocument),(0,r.elemUnbind)(document,"touchend",this.onTouchEndDocument),(0,r.elemUnbind)(this.rootElem,"touchmove",this.onTouchMove),(0,r.elemUnbind)(this.rootElem,"touchend",this.onTouchEnd)}}],e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();(0,i.bindify)(l.prototype);const c=l},(t,e,n)=>{n.d(e,{RawHTMLStub:()=>c});var i=n(2);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function a(t,e,n){return e=u(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),n=e,(o=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t=this.props;return(0,i.h)("div",{class:t.class||"w-html-stub",style:t.style,ref:t.stubRef,"data-handle":t.handle})}},{key:"componentDidMount",value:function(){var t=this.props.mount;t&&t(this.base)}},{key:"componentWillUnmount",value:function(){var t=this.props.destroy;t&&t()}}])&&r(n.prototype,o),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(i.Component)},(t,e,n)=>{n.d(e,{destroyControl:()=>s});n(5);var i=n(9),r=(n(72),n(3)),o=n(2),a=(n(26),n(73),function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}),s=((0,i.cachedDetect)(),function(t){t._destroyed=!0,function(t){t.unbinds instanceof Array&&(t.unbinds.forEach((function(t){try{"function"==typeof t&&t()}catch(t){setTimeout((function(){throw t}),1)}})),t.unbinds=null)}(t),function(t){t.eventListeners instanceof Map&&(t.eventListeners.forEach((function(e,n){try{"function"==typeof e&&t.embedElement.removeEventListener(n,e)}catch(t){setTimeout((function(){throw t}),1)}})),t.eventListeners.clear())}(t),u(t),c(t),d(t)}),u=function(t){t.rootElem&&(0,r.elemRemove)(Array.prototype.slice.call(t.rootElem.childNodes))},l=function(t){var e=t[0],n=t[1];e&&n&&(0,o.render)((0,o.h)("nothing",null),e)},c=function(t){var e=t.reactMounts;if(e)if(e instanceof Array)l(e);else for(var n in e)a(e,n)&&e[n]&&l(e[n])},d=function(t){for(var e in t)a(t,e)&&("_"!==(n=e)[0]||"_"!==n[1])&&"mounted"!==e&&(t[e]=null);var n;t.__prevProps=null,t._destroyed=!0}},(t,e,n)=>{n.r(e),n.d(e,{clearTimeouts:()=>a,doTimeout:()=>o});var i=n(4),r=n(16);r.Wistia;null==r.Wistia._timeouts&&(r.Wistia._timeouts={});var o=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,i.isArray)(t)&&(t=t.join("."));var o=u(t);if(a(t,o),e){var s=r.Wistia._timeouts[o];null==s&&(s=r.Wistia._timeouts[o]={});var l=setTimeout((function(){delete s[t],e()}),n);return s[t]=l,l}return r.Wistia._timeouts[o][t]},a=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,i.isArray)(t)&&(t=t.join(".")),"__global__"===(n=n||u(t))&&(e=r.Wistia._timeouts[t]))for(var o in e){var a=e[o];clearTimeout(a),delete e[o]}if(e=r.Wistia._timeouts[n])for(var l in e){var c=e[l];!l.indexOf||0!==l.indexOf(t)||l.length!==t.length&&"."!==l.charAt(t.length)||(clearTimeout(c),delete e[l])}r.Wistia.blockSweepTimeouts||(r.Wistia.blockSweepTimeouts=!0,setTimeout(s,0),setTimeout((function(){r.Wistia.blockSweepTimeouts=!1}),5e3))},s=function(){for(var t in r.Wistia._timeouts){var e=r.Wistia._timeouts[t];(0,i.isEmpty)(e)&&delete r.Wistia._timeouts[t]}},u=function(t){var e=t.indexOf(".");return e>0?t.substring(0,e):"__global__"}},(t,e,n)=>{n.d(e,{defineControl:()=>o,getControlDefinitions:()=>a});var i=n(74),r=n(16);null==r.Wistia._controlDefinitions&&(r.Wistia._controlDefinitions={});var o=function(t){null!=t.handle?null==r.Wistia._controlDefinitions[t.handle]&&(r.Wistia._controlDefinitions[t.handle]=t,r.Wistia.trigger&&r.Wistia.trigger("controldefined",t)):console.error("Please specify a handle property for control",t)},a=function(){return r.Wistia._controlDefinitions||{}};r.Wistia.defineControl=function(t){(0,i.countMetric)("player/custom-control-definition",1,{name:t.handle,location:location.origin+location.pathname}),o(t)}},(t,e,n)=>{n.r(e),n.d(e,{_clearMetricsCache:()=>p,countMetric:()=>l,sampleMetric:()=>d,sendMetric:()=>h,sendMetrics:()=>c});var i=n(5),r=n(8),o=n(38),a=n(23),s=n(16);null==s.Wistia._simpleMetricsCache&&(s.Wistia._simpleMetricsCache={}),null==s.Wistia._simpleMetricsDebounceInterval&&(s.Wistia._simpleMetricsDebounceInterval=500);var u=s.Wistia._simpleMetricsCache,l=function(t){return h("count",t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},c=function(){if((0,o.isVisitorTrackingEnabled)()){for(var t="https://".concat((0,a.metricsHost)(),"/mput?topic=metrics"),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return fetch(t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.join("\n")}).then((function(t){t.ok||console.error(t)})).catch((function(t){console.error(t)}))}},d=function(t,e,n){return h("sample",t,e,n)},h=function(t,e,n){var a,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if((0,o.isVisitorTrackingEnabled)())try{null==u.toMput&&(u.toMput=[]);var d=(0,i.assign)({type:t,key:e,value:null!=n?n:null},l),h=JSON.stringify(d,(a=new WeakSet,function(t,e){if("object"==typeof e&&null!==e){if(a.has(e))return"[Circular]";a.add(e)}return e}));u.toMput.push(h),clearTimeout(s.Wistia._msendTimeout),s.Wistia._msendTimeout=setTimeout((function(){(0,r.pageLoaded)((function(){c.apply(undefined,u.toMput),u.toMput=[]}))}),s.Wistia._simpleMetricsDebounceInterval)}catch(t){console.error(t.message),console.error(t.stack)}},p=function(){u.toMput=[]}},,,(t,e,n)=>{n.d(e,{accessibilityDuration:()=>l,flexibleDuration:()=>s,formattedDurationToSeconds:()=>u,getSecondsRemaining:()=>c,secondsConverter:()=>a});var i=n(78),r=n(36),o=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t);n.length<e;)n="0".concat(n);return n},a=function(t,e){var n=0,i=0,r=0,o=t,a=e.includes("h"),s=e.includes("m");return a&&o>0&&(n+=Math.floor(o/3600),o%=3600),s&&o>0&&(i+=Math.floor(o/60),o%=60),r=Math.round(o),a&&60===i&&(n+=1,i=0),s&&60===r&&(i+=1,r=0),{hours:n,minutes:i,seconds:r}},s=function(t){var e=a(t,"hms"),n=e.hours,i=e.minutes,r=e.seconds;return 0===n?"".concat(i,":").concat(o(r,2)):"".concat(n,":").concat(o(i,2),":").concat(o(r,2))},u=function(t){if((0,r.isNil)(t)||(0,r.isNumber)(t))return t;try{var e=(0,i.parse)(t.toUpperCase());return(0,i.toSeconds)(e)}catch(t){}try{var n=(0,i.parse)("PT".concat(t.toUpperCase()));return(0,i.toSeconds)(n)}catch(t){}return t},l=function(t){var e=a(t,"hms"),n=e.hours,i=e.minutes,r=e.seconds,o=0===n,s=0===i;if(o&&s)return"".concat(r," second").concat(1===r?"":"s");var u=o?"":"".concat(n," hour").concat(1===n?"":"s"),l=s?"":"".concat(i," minute").concat(1===n?"":"s");return"".concat(u," ").concat(l).trim()},c=function(t,e){return(e.getTime()-t.getTime())/1e3}},(t,e)=>{e.toSeconds=e.end=e.parse=e.pattern=void 0;var n="\\d+",i="".concat(n,"(?:[\\.,]").concat(n,")?"),r="(".concat(n,"Y)?(").concat(n,"M)?(").concat(n,"W)?(").concat(n,"D)?"),o="T(".concat(i,"H)?(").concat(i,"M)?(").concat(i,"S)?"),a="P(?:".concat(r,"(?:").concat(o,")?)"),s=["years","months","weeks","days","hours","minutes","seconds"],u=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0});e.pattern=new RegExp(a);e.parse=function(t){var n=t.replace(/,/g,".").match(e.pattern);if(!n)throw new RangeError("invalid duration: ".concat(t));var i=n.slice(1);if(0===i.filter((function(t){return null!=t})).length)throw new RangeError("invalid duration: ".concat(t));if(i.filter((function(t){return/\./.test(t||"")})).length>1)throw new RangeError("only the smallest unit can be fractional");return i.reduce((function(t,e,n){return t[s[n]]=parseFloat(e||"0")||0,t}),{})};e.end=function(t,e){void 0===e&&(e=new Date);var n=Object.assign({},u,t),i=e.getTime(),r=new Date(i);r.setFullYear(r.getFullYear()+n.years),r.setMonth(r.getMonth()+n.months),r.setDate(r.getDate()+n.days);var o=3600*n.hours*1e3,a=60*n.minutes*1e3;return r.setMilliseconds(r.getMilliseconds()+1e3*n.seconds+o+a),r.setDate(r.getDate()+7*n.weeks),r};e.toSeconds=function(t,n){void 0===n&&(n=new Date);var i=Object.assign({},u,t),r=n.getTime(),o=new Date(r),a=(0,e.end)(i,o),s=60*(n.getTimezoneOffset()-a.getTimezoneOffset());return(a.getTime()-o.getTime())/1e3+s},e.end,e.toSeconds,e.pattern,e.parse},,,,,,(t,e,n)=>{n.d(e,{atOrNearBeginning:()=>c,atOrNearEnd:()=>l,getLastTime:()=>o,getResumableKeyForVideo:()=>s,setLastTime:()=>a,setResumableKeyForVideo:()=>u,shorterThanResumableThreshold:()=>d,withinResumableTime:()=>h});var i=n(40),r=function(t){return"wistia-video-progress-".concat(t)},o=function(t){return(0,i.getLocalStorage)(r(t)).lastTime},a=function(t,e){(0,i.updateLocalStorage)(r(t),(function(t){t.lastTime=e}))},s=function(t){return(0,i.getLocalStorage)(r(t)).resumableKey},u=function(t,e){(0,i.updateLocalStorage)(r(t),(function(t){t.resumableKey=e}))},l=function(t,e){return(o(t)||0)+5>e},c=function(t){return(o(t)||0)<10},d=function(t){return t<300},h=function(t,e){return!c(t)&&!l(t,e)}},(t,e,n)=>{n.d(e,{ProgressIndicator:()=>c});var i=n(2);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function a(t,e,n){return e=u(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var c=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=a(this,e,[t])).state={filledWidth:0,isDisplayNone:!0,isOpaque:!1,widthTransitionShouldDelay:!0},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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),n=e,(o=[{key:"componentDidMount",value:function(){this.maybeFadeInOrOut()}},{key:"componentDidUpdate",value:function(t,e){var n=t.isVisible;this.maybeFadeInOrOut(n);var i=e.filledWidth;this.maybeChangeFilledWidth(i)}},{key:"fadeIn",value:function(){var t=this,e=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isDisplayNone:!1},(function(){e&&(t.fadeTimeout=setTimeout((function(){e&&requestAnimationFrame((function(){t.setState({isOpaque:!0})}))}),0))}))}},{key:"fadeOut",value:function(){var t=this,e=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isOpaque:!1},(function(){e||(t.fadeTimeout=setTimeout((function(){e||t.setState({isDisplayNone:!0})}),200))}))}},{key:"filledBarStyle",value:function(){var t=this.state,e=t.widthTransitionShouldDelay,n=t.filledWidth,i=this.props.color;return{backgroundColor:"#".concat(i),height:"100%",transition:"width 500ms ease-out ".concat(e?"500ms":""),width:"".concat(n,"%")}}},{key:"maybeFadeInOrOut",value:function(t){var e=this.props.isVisible;e!==t&&(e?this.fadeIn():this.fadeOut())}},{key:"maybeChangeFilledWidth",value:function(t){var e=this,n=this.props.percentWatched;null!=n&&n!==t&&setTimeout((function(){requestAnimationFrame((function(){e.setState({filledWidth:n})}))}),0)}},{key:"removeTransitionDelay",value:function(){this.setState({widthTransitionShouldDelay:!1})}},{key:"unfilledBarStyle",value:function(){var t=this.state,e=t.isDisplayNone,n=t.isOpaque;return{backgroundColor:"#ffffff",bottom:0,display:e?"none":"",height:n?"".concat(6*this.props.scale,"px"):0,opacity:n?.8:0,transition:"opacity 1s, height .5s",width:"100%"}}},{key:"render",value:function(){var t=this;return(0,i.h)("div",{style:this.unfilledBarStyle()},(0,i.h)("div",{onTransitionEnd:function(){return t.removeTransitionDelay()},style:this.filledBarStyle()}))}}])&&r(n.prototype,o),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(i.Component)},,,(t,e,n)=>{n.d(e,{fetchMediaData:()=>w});var i=n(36),r=n(16),o=n(23),a=n(57),s=n(53),u=n(89),l=n(90),c=n(91);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}(t)||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.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function y(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return m(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(m(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,m(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,m(d,"constructor",l),m(l,"constructor",u),u.displayName="GeneratorFunction",m(l,r,"GeneratorFunction"),m(d),m(d,r,"Generator"),m(d,i,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(y=function(){return{w:o,m:h}})()}function m(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}m=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){m(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},m(t,e,n,i)}function g(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function b(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){g(o,i,r,a,s,"next",t)}function s(t){g(o,i,r,a,s,"throw",t)}a(void 0)}))}}var _=function(){var t=b(y().m((function t(e){var n,l,c,d,h,p,f,v,m,g,b=arguments;return y().w((function(t){for(;;)switch(t.n){case 0:if(d=b.length>1&&void 0!==b[1]?b[1]:{},h=e,!(p=(0,s.getMediaDataFromCache)(h))||!0===d.skipCache){t.n=1;break}return t.a(2,Promise.resolve(p));case 1:if(!(0,i.isNotNil)(r.Wistia._mediaDataPromises[h])||!0===d.skipCache){t.n=2;break}return t.a(2,r.Wistia._mediaDataPromises[h]);case 2:return f=(0,o.mediaDataHost)(d),v=new window.URL("https://".concat(f,"/embed/medias/").concat(e,".json")),(0,i.isNotNil)(d.channelId)&&v.searchParams.set("channelId",d.channelId.toString()),m=null!==(n=d.channelPassword)&&void 0!==n?n:null===(l=d.plugin)||void 0===l||null===(c=l.passwordProtectedChannel)||void 0===c?void 0:c.password,(0,i.isNotNil)(m)&&v.searchParams.set("channelPassword",m),(0,i.isNotNil)(d.password)&&v.searchParams.set("password",d.password),d.deferFetchingToCarousel&&v.searchParams.set("defer_fetching_to_carousel","true"),d.bypassOriginShield&&v.searchParams.set("bos","1"),g=fetch(v.href).then((function(t){return t.json()})).then((function(t){var e;if((0,u.isMediaDataError)(t))return t;var n=t.media;return(0,a.mediaDataTransforms)(n,d),(0,s.cacheMediaData)(null!==(e=n.hashedId)&&void 0!==e?e:"",n),n})).finally((function(){Reflect.deleteProperty(r.Wistia._mediaDataPromises,h)})),r.Wistia._mediaDataPromises[h]=g,t.a(2,g)}}),t)})));return function(e){return t.apply(this,arguments)}}(),w=function(){var t=b(y().m((function t(e){var n,i,r,o,a,s,d,p,v,m,g=arguments;return y().w((function(t){for(;;)switch(t.n){case 0:return n=g.length>1&&void 0!==g[1]?g[1]:{},t.n=1,_(e,n);case 1:if(i=t.v,!(0,u.isMediaDataError)(i)){t.n=2;break}return t.a(2,i);case 2:if(null!=(r=i).localizations&&0!==r.localizations.length){t.n=3;break}return t.a(2,r);case 3:if(o=(0,c.getViewerPreferences)(),a=o.localization,s=[],null!=n.overrideMediaLanguage&&s.push(n.overrideMediaLanguage),null!=(null==a?void 0:a.iso6392LanguageCode)&&s.push(a.iso6392LanguageCode),null!=n.defaultMediaLanguage&&s.push(n.defaultMediaLanguage),d=s.filter((function(t,e){return s.indexOf(t)===e})),-1===(p=(0,l.getPreferredAvailableLanguageIndex)(r.localizations.map((function(t){return t.iso6392LanguageCode})),d))&&(p=(0,l.getPreferredAvailableLanguageIndex)(r.localizations.map((function(t){return t.ietfLanguageTag})),d)),-1===p&&(p=(0,l.getPreferredAvailableLanguageIndex)(r.localizations.map((function(t){return t.iso6392LanguageCode})),f(null!==(v=navigator.languages)&&void 0!==v?v:["en"]))),!(p>=0)){t.n=5;break}if(m=r.localizations[p],r.hashedId!==m.hashedId){t.n=4;break}return t.a(2,r);case 4:return t.a(2,_(m.hashedId,h({},n)));case 5:return t.a(2,r)}}),t)})));return function(e){return t.apply(this,arguments)}}()},(t,e,n)=>{n.d(e,{isMediaDataError:()=>r});var i=n(36),r=function(t){return!(0,i.isNil)(t.error)&&("true"===t.error||!0===t.error)}},(t,e,n)=>{n.d(e,{getPreferredAvailableLanguageIndex:()=>o});var i=function(t){return t.split("-")[0]},r=function(){var t;return null===(t=(new Error).stack)||void 0===t?void 0:t.split("\n").slice(2).join("\n")},o=function(t,e){t.some((function(t){return"string"!=typeof t}))&&(console.error("availableLanguages has non-string values",t,r()),t=t.filter((function(t){return"string"==typeof t}))),e.some((function(t){return"string"!=typeof t}))&&(console.error("preferredLanguages has non-string values",e,r()),e=e.filter((function(t){return"string"==typeof t})));var n=e.find((function(e){return t.includes(e)}));if(null!=n)return t.indexOf(n);var o=e.find((function(e){var n=i(e);return t.some((function(t){return i(t)===n}))}));return null!=o?t.findIndex((function(t){return i(t)===i(o)})):-1}},(t,e,n)=>{n.r(e),n.d(e,{deleteViewerPreferences:()=>r,getViewerPreference:()=>s,getViewerPreferences:()=>a,setViewerPreference:()=>u});var i=n(40),r=function(){(0,i.removeLocalStorage)(o())},o=function(){return"wistia-viewer-preferences"},a=function(){return(0,i.getLocalStorage)(o())},s=function(t){var e=a();return e?e[t]:null},u=function(t,e){(0,i.updateLocalStorage)(o(),(function(n){n.plugin&&delete n.plugin,n[t]=e}))}},,,(t,e,n)=>{n(95),n(96),n(115),n(117),n(118);window._wq=window._wq||[]},(t,e,n)=>{var i=n(60);!function(t){if(!(null!=t._initializers?t._initializers.initEventLoop:void 0))t._initializers.initEventLoop=function(){return t.eventLoop=i.globalEventLoop},t._destructors.destroyEventLoop=function(){return null!=t.eventLoop&&t.eventLoop.stop(),t.eventLoop=null}}(window.Wistia)},(t,e,n)=>{!function(t){var e,i,r,o,a,s,u,l,c,d,h,p,f,v,y,m;if(!t.embed)i=n(97),h=n(100).mediaFromCache,c=n(101).getInitialMediaData,d=n(57).mediaDataTransforms,p=n(4).merge,o=n(5).assign,u=n(47).dynamicImport,a=n(74).countMetric,f=n(102).optionsFromElemClass,y=n(103).setEmbedOptionStore,m=n(104).translateEmbedOptionKeyValuePairForWebComponent,r=n(105).TranslationApi,v=n(103),l=v.getEmbedOptionStore,e=v.GLOBAL_ID_KEY,t._embed={},t.embed=function(n,i){var o,u,c,v,m,g,b,_,w,E,O;return null==i&&(i={}),t.info("Wistia.embed",n,i),"function"==typeof t.flushInitQueue&&t.flushInitQueue(),"string"==typeof n?v=n:(v=n.hashedId,w=p({},n.embedOptions,i),d(n,w),t.cacheMedia(v,n)),i.container?"string"==typeof i.container?g=document.getElementById(i.container):(g=i.container,a("legacy/embed-with-container",1,{hashedId:v,url:window.location.href})):n.container?"string"==typeof n.container?g=document.getElementById(i.container):(g=n.container,a("legacy/embed-with-container",1,{hashedId:v,url:window.location.href})):(o="wistia_"+v,g=document.getElementById(o)),c=l(e),m=l(g.id||""),(u=f(g)).useWebComponent||(null!=(b=h(v))&&null!=(_=b.embedOptions)?_.useWebComponent:void 0)||m.useWebComponent||c.useWebComponent?(u.useWebComponent=!0,(O=s(v,Object.assign({},i,u))).originalContainer=g,O.originalContainer._convertingToAurora=!0,O.uniqueId=O.originalContainer.uniqueId,O.originalContainer.uniqueId=void 0,E=new r(O),O.translationApi=E,g.append(O),y("__"+O.uniqueId+"_dom_options__",u),O.translationApi):new t.PublicApi(v,i)},s=function(t,e){var n;return(n=document.createElement("wistia-player")).setAttribute("media-id",t),e.id&&delete e.id,Object.entries(e).forEach((function(t){var e,i,r,o,a;return e=t[0],a=t[1],r=(i=m(e,a))[0],o=i[1],n.setAttribute(r,o)})),n},t.embedEngine=function(t,e,n,r){var s;return null==n&&(n={}),null==r&&(r={}),s="string"==typeof e?e:e.hashedId,new Promise((function(l){var d;return d=function(e){var o,a;return o=i.buildContext(r),a=i.bestUsableEngine(o,e,n),u("assets/external/"+a).then((function(i){var r;return r=new(0,i.default)(t,e,p({duration:e.duration},n)),l(r)}))},"string"==typeof e?c(s,n).then((function(t){return d(t)}),o({},n,{errorCallback:function(){return a("player/failure/embed-failed")}})):d(e)}))}}(Wistia)},(t,e,n)=>{n.r(e),n.d(e,{PLUGIN_CONFIGS:()=>A,bestPlayer:()=>j,bestUsableEngine:()=>M,bestUsableEngineClass:()=>I,buildContext:()=>D,canPlayInline:()=>L,canUsePlayer:()=>B,choosePlayer:()=>x,determinePlayerPreferenceFromInput:()=>F,doesBrowserSupportHlsTools:()=>W,enginesToLoad:()=>N,getDefaultContext:()=>H,hasAssetsForPlayer:()=>q,hasEnoughReadyMp4Assets:()=>Y,hasSupportedHlsAssets:()=>Q,isBrowserInNativeAndroid:()=>Z,isBrowserOldChrome:()=>J,isHlsEnabled:()=>tt,isMobile:()=>et,isNotPlayable:()=>nt,isPasswordProtected:()=>it,isSupportedPlayer:()=>ot,isValidPlayer:()=>at,logWarnings:()=>st,playerPlugins:()=>ut,report:()=>lt,shouldServeHls:()=>ct,supportedPlayers:()=>dt,urlHasBeenTamperedWith:()=>pt,usablePlayers:()=>ht,xhrHasBeenTamperedWith:()=>yt});var i=n(4),r=n(9),o=n(98),a=n(99),s=n(10),u=n(12),l=n(58),c=n(16);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f,v=u.wlog.getPrefixedFunctions("judy"),y="auto",m="carouselHardWall",g="external",b="hlsVideo",_="html5",w="manualQualityVideo",E="nativeHlsVideo",O="notplayable",P="passwordprotected",k="simplehtml5",S="vulcan-v2",T="sphericalVideo",C=[S,_,k,g,O,P],A={notPlayableVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},vulcanV2Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},hlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},nativeHlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},passwordProtectedVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},externalPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},html5Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},playlist:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1}},j=function(t,e,n){var i=t.detect,r=t.logger;rt({mediaData:e,options:n},i);return i.oldandroid?(r.info("external on old android"),g):B(t,S,e)?(r.info("default, ret",S),S):"Audio"===e.mediaType||"LiveStream"===e.mediaType?S:B(t,_,e)?(r.info("default, ret",_),_):(r.info("nothing left, use",g),g)},M=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.detect,r=t.logger;r.info("bestUsableEngineClass");var o=ct(t,e,n),a=rt({mediaData:e,options:n},i);if(n.engine)return n.engine;if(a)return r.info(T),"engines/spherical_video.js";if("Audio"===e.mediaType)return"engines/simple_audio.js";var s=i.safari||i.ios.version>0,u="null"!==window.origin,l=s&&!u;return o&&i.nativeHls&&(!1===i.managedMediaSource||l)?(r.info(E),"engines/native_hls_video.js"):o?(r.info(b),"engines/hls_video.js"):(r.info(w),"engines/manual_quality_video.js")},I=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.detect,r=t.logger;r.info("bestUsableEngineClass");var o=ct(t,e,n),a=c.Wistia.engines||{};return"Audio"===e.mediaType?a.SimpleAudio:o&&i.nativeHls&&a.NativeHlsVideo?(r.info(E),a.NativeHlsVideo):o&&a.HlsVideo?(r.info(b),a.HlsVideo):(r.info(w),a.ManualQualityVideo)},D=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=R(t);return h(h(h({},H()),t),{},{pageUrl:e})},L=function(t){var e=t.detect;return e.android||e.ios.version>=10},B=function(t,e,n){return ot(t,e)&&q(t,e,n)},x=function(t,e,n){var i=t.detect,r=t.logger,o=n.playerForce;r.info("choosePlayer input",e.hashedId);var a=F(t,e,n);if(o&&!at(t,o)&&(r.error('Invalid playerForce option: "'.concat(o,'", ignoring')),o=null),a&&a!==y&&!at(t,a)&&(r.error('Invalid playerPreference option: "'.concat(a,'", ignoring')),a=y),r.info("playerPreference is",a),o)return r.info('"playerForce" used, return',o),o;if(e.carouselHardWall)return r.info("return",m),m;if(it(t,n))return r.info("return",P),P;if(nt(t,e,n))return r.info("return",O),O;if(e.protected)return S;if(a!==y&&B(t,a,e)){var s=rt({mediaData:e,options:n},i);return a!==S&&s?(r.info("this player doesn't support spherical, return",S),S):(r.info('"playerPreference" used, return',a),a)}return r.info("choosing player with no preference"),j(t,e,n)},R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.pageUrl?t.pageUrl:Object(window.FreshUrl).originalUrl?window.FreshUrl.originalUrl:window.top===window.self?location.href||"":document.referrer||""},F=function(t,e,n){var i=n.playerPreference||n.platformPreference;return i&&i!==y?i===_?et(t)?_:S:i===k?_:i:y},W=function(t){var e=Boolean(window.Promise);return(t.mediaSource||t.nativeHls)&&e},N=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.detect,r=t.logger,o=[];r.info("enginesToLoad");var a=ct(t,e,n);a&&i.nativeHls?(r.info(E),o.push(E)):a?(r.info(b),o.push(b)):(r.info(w),o.push(w)),rt({mediaData:e,options:n},i)&&(o.push(T),r.info(T));var s={};o.forEach((function(t){s[t]=!0}));var u=[];for(var l in s)u.push(l);return u},H=function(){return f||(f={detect:(0,i.clone)((0,r.cachedDetect)()),inIframe:top!==self,location:window.location,logger:v,pageUrl:location.href,silenceGlobalWarnings:s.root.wistiaSilenceGlobalWarnings,userAgent:navigator.userAgent})},V=function(t,e){var n={};return n[e]=A[e],n},U=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return!1!==n.instantHls&&e.instantHlsAssetsReady&&ct(t,e,n)},z=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.originalIsEligibleForDirectPlayback&&ct(t,e,n)},q=function(t,e,n){if(!at(t,e))return!1;if(e===O||e===P||e===m)return!0;var i=n.assets;if(e===S)return U(t,n)||z(t,n)||G(i)||K(i);if(e===_)return(0,l.readyPublicMp4s)(i).length>0;if(e===g)return(0,l.readyPublicMp4s)(i).length>0;throw new Error("Unhandled player type '".concat(e,"'"))},G=function(t){return(0,l.readyPublicMp4s)(t).length>0||(0,l.readyPublicM3u8s)(t).length>0},K=function(t){return(0,l.readyPublicMp3s)(t).length>0},Y=function(t){var e=(0,l.filter)(t,{container:"mp4",metadata:function(t){return t&&t.max_bitrate},public:!0,sortBy:"width desc",status:l.READY,type:/\b(?!captioned_video)\S+/});return Boolean(e[0]&&e[0].width>=400)},Q=function(t){if(!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).instantHls&&t.instantHlsAssetsReady)return!0;if(t.originalIsEligibleForDirectPlayback)return!0;var e=Y(t.assets);return e||(0,o.count)("player/originV2/media-has-no-metadata",1,{hashedId:t.hashedId}),e},X=function(t,e){var n=t.pageUrl,i=$(n);if(null!=i)return i;var r=(0,a.setOrGet)("forceHls");return null!=r?r:e.hls},$=function(t){var e=t&&t.match&&t.match(/[&?]whls=([^&]+)/),n=e&&e[1];return null!=n?(0,i.cast)(n):null},Z=function(t,e){return t.android&&(!1===e.playsinline||!0===e.nativeMode)},J=function(t){return t.chrome&&parseInt(t.chrome.version,10)<50},tt=function(t,e,n){var i=X(t,n);return!0===i||!1===i?i:!1!==e.hls_enabled},et=function(t){var e=t.detect;return e.iphone||e.ipad||e.android},nt=function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.assets;if(!e.protected&&(U(t,e,i)||z(t,e,i)))return!1;var o="Audio"===e.type?0==(0,l.readyPublicMp3s)(r).length:0==(0,l.readyPublicMp4s)(r).length;if("LiveStream"===e.mediaType)return!1;if(e.protected&&(null===(n=i.authorization)||void 0===n||!n.jwt))return i.notPlayableOptions={fadeIn:!1,message:"This video is set to private.",shouldRefresh:!1},!0;var a=ct(t,e,i);return e.protected&&!1===a?(i.notPlayableOptions={fadeIn:!1,message:"This video is not playable.",shouldRefresh:!1},!0):0===r.length||1===r.length&&"original"===r[0].type||o||(0,l.nonfailedPublicOver400)(r).length>0&&0===(0,l.readyPublicOver400)(r).length},it=function(t,e){var n=(0,i.getDeep)(e,"plugin.passwordProtectedVideo");return null!=n&&!1!==n.on},rt=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.options.overrideSpherical)return!1;var i=String(null===(t=n.mediaData)||void 0===t?void 0:t.spherical),r=String(null===(e=n.opts)||void 0===e?void 0:e.spherical);return"true"===i||"true"===r},ot=function(t,e){return!!at(t,e)&&(0,i.indexOf)(dt(t),e)>=0},at=function(t,e){return(0,i.indexOf)(C,e)>=0},st=function(t){var e=t.detect,n=t.userAgent,i=t.logger;if(!t.silenceGlobalWarnings){var r=/phantomjs/i.test(n);yt()&&(r||i.error("The XMLHttpRequest constructor has been tampered with. Because this affects CORS/Range XHR requests, HLS playback has been disabled. To enable HLS playback and other important features, please remove code that changes the definition of window.XMLHttpRequest.")),pt()&&e.mediaSource&&!r&&i.error("window.URL.createObjectURL has been tampered with. Because this affects use of Media Source Extensions, HLS playback has been disabled. window.URL is a browser API that should not be clobbered. Its current value is:",window.URL)}},ut=function(t,e,n,r){var o=t.logger,a={};o.info("playerPlugins input",e,n.hashedId,n,r),e===O?(0,i.merge)(a,V(0,"notPlayableVideo")):e===P?(0,i.merge)(a,V(0,"passwordProtectedVideo")):e===_?(0,i.merge)(a,V(0,"html5Player")):e===g?(0,i.merge)(a,V(0,"externalPlayer")):e===S&&(0,i.merge)(a,V(0,"vulcanV2Player"));var s=[];for(var u in a)s.push(u);return o.info.apply(o,["playerPlugins output"].concat(s,[a])),a},lt=function(t,e,n){return{bestPlayer:j(t,e,n),playerPreferenceFromInput:F(t,e,n),supportedPlayers:dt(t),usablePlayers:ht(t,e.assets)}},ct=function(t,e,n){if("LiveStream"===e.type)return!0;var i=t.detect;return W(i)&&!J(i)&&!Z(i,n)&&tt(t,e,n)&&Q(e)&&(!yt(t)&&!pt(t)||X(t,n))},dt=function(t){var e=t.detect,n=[O,P,g,m];return e.vulcanV2Support&&n.push(S),e.video.h264&&n.push(_),n},ht=function(t,e){for(var n=[],i=dt(t),r=0;r<i.length;r++){var o=i[r];B(t,o,e)&&n.push(o)}return n},pt=function(){return"function"!=typeof(window.URL&&window.URL.createObjectURL)},ft=/\s*function\s+XMLHttpRequest\(\)\s*{\s*\[native code\]\s*}\s*/m,vt=/\[object XMLHttpRequestConstructor\]/m,yt=function(){if(XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.constructor){var t=XMLHttpRequest.prototype.constructor.toString();return!(ft.test(t)||vt.test(t))}return!0}},(t,e,n)=>{n.d(e,{count:()=>f,sample:()=>v,send:()=>h});var i=n(72),r=n(12),o=n(4),a=n(3),s=n(24),u=n(23),l=n(38),c=n(16);c.Wistia;null==c.Wistia._metricsCache&&(c.Wistia._metricsCache={});var d=c.Wistia._metricsCache,h=function(t,e,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{null==d.toMput&&(d.toMput=[]),null==d.requestId&&(d.requestId=0);var u=(0,o.merge)({type:t,key:e,value:null!=n?n:null,request_id:d.requestId},s),l=JSON.stringify(u);r.wlog.debug("send metrics",l),d.toMput.push(l),(0,i.doTimeout)("metrics.debounce",(function(){(0,a.pageLoaded)((function(){p.apply(undefined,d.toMput),d.toMput=[],d.requestId+=1}))}),500)}catch(t){r.wlog.error(t)}},p=function(){if((0,l.isVisitorTrackingEnabled)()){for(var t="".concat((0,s.proto)(),"//").concat((0,u.metricsHost)(),"/mput?topic=metrics"),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return fetch(t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.join("\n")}).then((function(t){t.ok||console.error(t)})).catch((function(t){console.error(t)}))}},f=function(t){return h("count",t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},v=function(t,e,n){return h("sample",t,e,n)}},(t,e,n)=>{n.d(e,{removeLocalStorage:()=>s,setOrGet:()=>a});var i=n(39),r=n(4),o=n(16);o.Wistia._localStorage||(o.Wistia._localStorage=(0,i.getWistiaLocalStorage)());var a=function(t,e){if(null!=e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?r.unsetDeep:r.setDeep;return o.Wistia._localStorage=(0,i.updateWistiaLocalStorage)((function(i){return n(i,t,e)})),e}return null!=t?(0,r.getDeep)(o.Wistia._localStorage,t):o.Wistia._localStorage},s=function(t){return a(t,"nada",!0)};i.removeWistiaLocalStorage},(t,e,n)=>{n.r(e),n.d(e,{cacheMedia:()=>v,mediaDataScriptRegExp:()=>f,mediaDataUrl:()=>p,mediaFromCache:()=>g,transformResponse:()=>h,uncacheMedia:()=>y});var i=n(16),r=n(10),o=n(4),a=n(21),s=n(53),u=n(23),l=n(57);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=function(t,e){var n,i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),r=(0,o.merge)({},null===(n=i.media)||void 0===n?void 0:n.embedOptions,e);return i.error?i:(delete i.media.unnamed_assets,(0,l.mediaDataTransforms)(i.media,r),i.media)},p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,u.mediaDataHost)(e);return"".concat((0,u.eV1Protocol)(),"//").concat(n,"/embed/medias/").concat(t,".json")},f=function(t){var e="https:"===location.protocol?"https":"https?";return new RegExp("^(".concat(e,":)?//((").concat((0,u.cdnFastWistiaComHost)().replace(".","\\."),")|(").concat((0,u.cdnFastWistiaNetHost)().replace(".","\\."),"))/embed/medias/").concat(t,"\\.jsonp\\??"))},v=function(t,e){return(0,s.cacheMediaData)(t,e)},y=function(t){var e;(0,s.uncacheMediaData)(t),null===(e=i.Wistia.uncacheCaptions)||void 0===e||e.call(i.Wistia,t),m(t)},m=function(t){window["wistiajsonp-/embed/medias/".concat(t,".json")]=null,(0,a.removeScriptsBySrc)(p(t),{scriptRegex:f(t)})},g=function(t){return b(t)},b=function(t){var e=(0,s.getMediaDataFromCache)(t);if(e)return e;var n=r.root["wistiajsonp-/embed/medias/".concat(t,".json")];return null!=n&&n.media?n.media:null}},(t,e,n)=>{n.d(e,{getInitialMediaData:()=>P});var i=n(16),r=n(21),o=n(100),a=n(23),s=n(57),u=n(53),l=n(89),c=n(4),d=n(88);function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function f(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return v(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(v(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,v(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,v(d,"constructor",l),v(l,"constructor",u),u.displayName="GeneratorFunction",v(l,r,"GeneratorFunction"),v(d),v(d,r,"Generator"),v(d,i,(function(){return this})),v(d,"toString",(function(){return"[object Generator]"})),(f=function(){return{w:o,m:h}})()}function v(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}v=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){v(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},v(t,e,n,i)}function y(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function m(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){y(o,i,r,a,s,"next",t)}function s(t){y(o,i,r,a,s,"throw",t)}a(void 0)}))}}var g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.mediaDataUrl)(t,e).replace(/\.json(?!p)/,".jsonp").replace(/&$/,""),i=(0,r.findScriptInDomBySrc)(n,{ignoreProtocol:!0,scriptRegex:(0,o.mediaDataScriptRegExp)(t)});return Boolean(i)},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.mediaDataHost)(e);return"".concat((0,a.eV1Protocol)(),"//").concat(n,"/embed/").concat(t,".js")},_=function(t){var e=b(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=(0,r.findScriptInDomBySrc)(e,{ignoreProtocol:!0});return Boolean(n)},w=function(){var t=m(f().m((function t(e,n){return f().w((function(t){for(;;)if(0===t.n)return t.a(2,new Promise((function(t,i){var r=-1,o=function(){var o=window["wistiajsonp-/embed/medias/".concat(e,".jsonp")];if(o){if(o.media)return clearInterval(r),(0,u.cacheMediaData)(e,o.media),void(0,d.fetchMediaData)(e,n).then(t).catch((function(){i(new Error("Failed to fetch media data via jsonp"))}));(0,l.isMediaDataError)(o)&&(clearInterval(r),t(o))}};o(),r=window.setInterval(o,15),setTimeout((function(){clearInterval(r),i(new Error("Timeout loading jsonp media data"))}),3e4)})))}),t)})));return function(e,n){return t.apply(this,arguments)}}(),E=function(){var t=m(f().m((function t(e){var n,i,r=arguments;return f().w((function(t){for(;;)if(0===t.n)return i=b(e,n=r.length>1&&void 0!==r[1]?r[1]:{}),t.a(2,new Promise((function(t,r){setTimeout((function(){r(new Error("Timeout loading js media data"))}),3e4),import(i).then((function(i){var o=i.mediaData;(0,u.cacheMediaData)(e,o),(0,d.fetchMediaData)(e,n).then(t).catch((function(){r(new Error("Failed to fetch media data via js script"))}))})).catch((function(){r(new Error("Failed to load js media data"))}))})))}),t)})));return function(e){return t.apply(this,arguments)}}(),O=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={current:-1};return[new Promise((function(i,r){n.current=window.setTimeout((function(){(0,d.fetchMediaData)(t,e).then(i).catch((function(t){r(t instanceof Error?t:new Error(String(t)))}))}),15e3)})),n]},P=function(){var t=m(f().m((function t(e){var n,r,o,a,l,p,v,y,m,b,P=arguments;return f().w((function(t){for(;;)switch(t.n){case 0:if(r=P.length>1&&void 0!==P[1]?P[1]:{},null==(0,u.getMediaDataFromCache)(e)||!0===r.skipCache){t.n=1;break}return t.a(2,(0,d.fetchMediaData)(e,r));case 1:if(null==(o=null===(n=i.Wistia._inlineMediaData)||void 0===n?void 0:n[e])){t.n=2;break}return a=(0,c.clone)(o),(0,s.mediaDataTransforms)(a,r),(0,u.cacheMediaData)(e,a),t.a(2,(0,d.fetchMediaData)(e,r));case 2:if(l=[],g(e,r)&&l.push(w(e,r)),_(e,r)&&l.push(E(e,r)),0!==l.length){t.n=4;break}return t.n=3,(0,d.fetchMediaData)(e,r);case 3:p=t.v,t.n=6;break;case 4:return v=O(e,r),y=h(v,2),m=y[0],b=y[1],t.n=5,Promise.any([].concat(l,[m]));case 5:p=t.v,clearTimeout(b.current);case 6:return t.a(2,p)}}),t)})));return function(e){return t.apply(this,arguments)}}()},(t,e,n)=>{n.d(e,{optionsFromElemClass:()=>a});var i=n(3),r=n(24),o=n(4),a=function(t){var e=[];(0,i.elemClasses)(t).forEach((function(t){t.indexOf("=")>0&&e.push(t)}));var n=(0,r.queryParamsToObject)(e.join("&"));return(0,o.cast)(n)}},(t,e,n)=>{n.r(e),n.d(e,{GLOBAL_ID_KEY:()=>s,OPTION_PREFIX:()=>a,getEmbedOptionStore:()=>u,getOrSetEmbedOptionStore:()=>d,removeEmbedOptionStore:()=>c,setEmbedOptionStore:()=>l});var i=n(4),r=n(43),o=n(41),a="wistia_embed_options_",s="__global__",u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.getOneApiHandle;if(void 0!==(0,r.wData)([a,t]))return(0,r.wData)([a,t]);var n=e(t);if(null===n||"removed"===n)return{};if(void 0!==(0,r.wData)(a)){var i=Object.keys((0,r.wData)(a)).find((function(t){return e(t)===n}));if(void 0!==(0,r.wData)([a,i]))return(0,r.wData)([a,i])}return{}},l=function(t,e){return null!==e?(0,r.wData)([a,t],(0,i.cast)((0,i.clone)(e))):{}},c=function(t){(0,r.wRemoveData)([a,t])},d=function(t,e){var n=t,u=e;if((0,i.isObject)(n)&&"object"==typeof n&&(u=n,n=s),null!=u)return(0,r.wData)([a,n],(0,i.cast)((0,i.clone)(u)));if(void 0!==n){if(void 0!==(0,r.wData)([a,t]))return(0,r.wData)([a,t]);var l=(0,o.getOneApiHandle)(n);if(null===l||"removed"===l)return{};if(void 0!==(0,r.wData)(a)){var c=Object.keys((0,r.wData)(a)).find((function(t){return(0,o.getOneApiHandle)(t)===l}));if(void 0!==(0,r.wData)([a,c]))return(0,r.wData)([a,c])}return{}}return(0,r.wData)(a)}},(t,e,n)=>{n.d(e,{translateEmbedOptionKeyValuePairForWebComponent:()=>i});var i=function(t,e){var n=t,i=e;switch(e){case"true":i=!0;break;case"false":i=!1}switch(t){case"autoPlay":n="autoplay";break;case"controlsVisibleOnLoad":n="hide-controls-on-load",i=!i;break;case"copyLinkAndThumbnailEnabled":n="hide-copy-link-and-thumbnail",i=!i;break;case"fullscreenButton":n="fullscreen-control";break;case"playbar":n="play-bar-control";break;case"playButton":n="big-play-button";break;case"popover":n="wistia-popover";break;case"popoverDisableAutoPlay":n="popover-disable-autoplay";break;case"preload":"boolean"==typeof e&&e&&(i="auto"),"boolean"!=typeof e||e||(i="none");break;case"silentAutoPlay":n="silent-autoplay";break;case"smallPlayButton":n="play-pause-control";break;case"stillUrl":n="poster";break;case"wmode":n="transparent-letterbox","transparent"===e&&(i=!0);break;default:n=t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(function(t,e){return(void 0!==e?"-":"")+t.toLowerCase()}))}return[n,i]}},(t,e,n)=>{n.d(e,{TranslationApi:()=>j});var i=n(36),r=n(106),o=n(107),a=n(109),s=n(18),u=n(3),l=n(111),c=n(16),d=n(17);function h(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return p(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(p(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(c);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,p(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,p(d,"constructor",l),p(l,"constructor",u),u.displayName="GeneratorFunction",p(l,r,"GeneratorFunction"),p(d),p(d,r,"Generator"),p(d,i,(function(){return this})),p(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:o,m:f}})()}function p(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}p=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){p(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},p(t,e,n,i)}function f(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function v(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){f(o,i,r,a,s,"next",t)}function s(t){f(o,i,r,a,s,"throw",t)}a(void 0)}))}}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function m(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function g(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function b(t,e){return t.get(w(t,e))}function _(t,e,n){return t.set(w(t,e),n),n}function w(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,O=new WeakMap,P=new WeakMap,k=new WeakMap,S=new WeakMap,T=new WeakMap,C=new WeakMap,A=new WeakMap,j=function(){return t=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),g(this,E,void 0),g(this,O,void 0),g(this,P,void 0),g(this,k,void 0),g(this,S,void 0),g(this,T,void 0),g(this,C,void 0),g(this,A,void 0),_(A,this,e);var i=r.StopGo;_(T,this,new i),b(T,this).call(this,!0),_(C,this,new o.CrossTimeAurora(b(A,this),this.unbind)),_(S,this,new a.BetweenTimesAurora(b(A,this),this.unbind)),_(O,this,!1),b(A,this).whenApiReady().then((function(){_(O,n,!0)}))},e=[{key:"_mediaData",get:function(){return b(A,this).mediaData}},{key:"container",get:function(){return b(A,this)}},{key:"controls",get:function(){return b(A,this).controls}},{key:"plugin",get:function(){var t=this;return Object.keys(this.pluginFunction).forEach((function(e){t.pluginFunction[e]=void 0})),Object.keys(b(A,this).plugins).forEach((function(e){t.pluginFunction[e]=b(A,t).plugins[e]})),this.pluginFunction}},{key:"popover",get:function(){var t=this;return{show:function(){b(T,t).synchronize((function(e){b(A,t).showPopover().then((function(){e()})).catch((function(){e()}))}))},hide:function(){b(T,t).synchronize((function(e){b(A,t).hidePopover().then((function(){e()})).catch((function(){e()}))}))},height:function(e,n){var i=b(A,t).parentElement;if(!i)return t;if(void 0!==e&&(i.style.height="".concat(e,"px"),null!=n&&n.constrain)){var r=e/b(A,t).aspect;i.style.width="".concat(r,"px")}return t.height(e,n)},width:function(e,n){var i=b(A,t).parentElement;if(!i)return t;if(void 0!==e&&(i.style.width="".concat(e,"px"),null!=n&&n.constrain)){var r=e/b(A,t).aspect;i.style.height="".concat(r,"px")}return t.width(e,n)}}}},{key:"addPlugin",value:(j=v(h().m((function t(e,n){return h().w((function(t){for(;;)if(0===t.n)return t.a(2,b(A,this).definePlugin(e,n))}),t,this)}))),function(t,e){return j.apply(this,arguments)})},{key:"addToPlaylist",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!b(P,this)){var r=[{hashedId:b(A,this).mediaId}];_(P,this,new l.PlaylistMethods(r,b(A,this),{autoAdvance:!0,startIndex:0,source:{id:"test",type:"player-api"}},"fast.wistia.com"))}if(null!=i.index)e=i.index;else if(null!=i.after){if(0===(e=b(P,this).orderedPlaylistMedias.findIndex((function(t){return t.hashedId===i.after}))+1))throw new Error('Media to position "after" not found in playlist')}else if(null!=i.before&&-1===(e=b(P,this).orderedPlaylistMedias.findIndex((function(t){return t.hashedId===i.before}))))throw new Error('Media to position "before" not found in playlist');var o=null!=e?{index:e}:void 0;return b(P,this).addMediaToPlaylist({hashedId:t,embedOptions:n},o),b(P,this).orderedPlaylistMedias}},{key:"aspect",value:function(){return b(A,this).aspect}},{key:"bind",value:function(t,e,n,i){var r;if(Object.keys(d.convertedEventNames).includes(t)){var o,a,s=b(A,this).mediaId;return null!==(a=(o=c.Wistia.EventShepherdManager)[s])&&void 0!==a||(o[s]=new d.EventShepherd),c.Wistia.EventShepherdManager[s].addListener(t,b(A,this),e),this}switch(t){case"crosstime":return b(C,this).addBinding(e,n),this;case"betweentimes":return b(S,this).addBinding(e,n,i),this;default:return null===(r=b(A,this).deprecatedApiDoNotUse)||void 0===r||r.bind(t,e),this}}},{key:"cancelFullscreen",value:function(){var t=this;return b(T,this).synchronize((function(e){b(A,t).cancelFullscreen().then((function(){e()})).catch((function(){e()}))})),this}},{key:"captionsEnabled",value:function(t){return null!=t?(b(A,this).captionsEnabled=t,b(A,this).captionsEnabled):b(A,this).captionsEnabled}},{key:"captionsLanguage",value:function(t){return null!=t?(b(A,this).captionsLanguage=t,b(A,this).captionsLanguage):b(A,this).captionsLanguage}},{key:"captionsLanguages",value:function(){return b(A,this).captionsLanguages}},{key:"duration",value:function(){return b(A,this).duration}},{key:"email",value:function(t){var e,n=this;return void 0===t?null!==(e=b(A,this).email)&&void 0!==e?e:null:(b(T,this).synchronize((function(e){b(A,n).email=t,e()})),this)}},{key:"embedded",value:function(t){var e,n,i=this,r=null===(e=b(A,this).shadowRoot)||void 0===e?void 0:e.querySelector(".w-ui-container");return t?null!=r&&r.hasChildNodes()?(t(),this):(r&&_(k,this,r),_(E,this,new MutationObserver((function(e){e.forEach((function(e){Array.from(e.addedNodes).forEach((function(e){var n;1===e.nodeType&&(e.classList.contains("w-ui-container")&&_(k,i,e),(0,u.elemIsDescendantOf)(e,b(k,i))&&(t(),null===(n=b(E,i))||void 0===n||n.disconnect(),_(E,i,void 0),_(k,i,void 0)))}))}))}))),b(E,this).observe(b(A,this).shadowRoot,{subtree:!0,childList:!0}),this):null!==(n=null==r?void 0:r.hasChildNodes())&&void 0!==n&&n}},{key:"enterInputContext",value:function(t){b(A,this).enterInputContext(t)}},{key:"eventKey",value:function(){return b(A,this).eventKey}},{key:"exitInputContext",value:function(t){b(A,this).exitInputContext(t)}},{key:"getControl",value:function(t){return b(A,this).controls[t]}},{key:"getInputContext",value:function(){return b(A,this).inputContext}},{key:"getMediaElement",value:function(){var t,e;return null!==(t=null===(e=b(A,this).shadowRoot)||void 0===e?void 0:e.querySelector("video, audio"))&&void 0!==t?t:null}},{key:"getRemapTime",value:(w=v(h().m((function t(){return h().w((function(t){for(;;)if(0===t.n)return t.a(2,b(A,this).getRemapTime())}),t,this)}))),function(){return w.apply(this,arguments)})},{key:"hasData",value:function(t){var e=Object.keys(b(A,this).mediaData).length>0;return t?e?(t(),this):(b(A,this).addEventListener(s.LOADED_MEDIA_DATA_EVENT,(function(){t()})),this):e}},{key:"hashedId",value:function(){return b(A,this).mediaId}},{key:"height",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t&&!Number.isNaN(t)){if(b(A,this).style.height="".concat(t,"px"),e.constrain){var n=t*b(A,this).aspect;b(A,this).style.width="".concat(n,"px")}return this}return b(A,this).getBoundingClientRect().height}},{key:"inFullscreen",value:function(){return b(A,this).inFullscreen}},{key:"isInstantHls",value:function(){return b(A,this).instantHls}},{key:"isMuted",value:function(){return b(A,this).muted}},{key:"language",value:function(t){return null!=t?(b(A,this).language=t,b(A,this).language):b(A,this).language}},{key:"languages",value:function(){return b(A,this).languages}},{key:"mediaLanguage",value:function(t){return null!=t?(b(A,this).mediaLanguage=t,b(A,this).mediaLanguage):b(A,this).mediaLanguage}},{key:"mediaLanguages",value:function(){return b(A,this).mediaLanguages}},{key:"mute",value:function(){var t=this;return b(T,this).synchronize((function(e){b(A,t).muted=!0,e()})),this}},{key:"name",value:function(){var t;return null!==(t=b(A,this).name)&&void 0!==t?t:null}},{key:"pause",value:function(){var t=this;return b(T,this).synchronize((function(e){b(A,t).pause().then((function(){e()})).catch((function(){e()}))})),this}},{key:"percentWatched",value:function(){return b(A,this).percentWatched}},{key:"play",value:function(){var t=this;return b(T,this).synchronize((function(e){b(A,t).play().then((function(){e()})).catch((function(){e()}))})),this}},{key:"playbackRate",value:function(t){var e=this;return void 0===t?b(A,this).playbackRate:(b(T,this).synchronize((function(n){b(A,e).playbackRate=t,n()})),this)}},{key:"ready",value:function(t){return t?(b(A,this).whenApiReady().then((function(){t()})),this):b(O,this)}},{key:"releaseControls",value:(m=v(h().m((function t(e){return h().w((function(t){for(;;)if(0===t.n)return t.a(2,b(A,this).releaseControls(e))}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"remove",value:function(){var t;null===(t=b(E,this))||void 0===t||t.disconnect(),_(E,this,void 0),_(k,this,void 0),b(A,this).remove()}},{key:"replaceWith",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return b(T,this).synchronize((function(i){_(O,e,!1),b(A,e).replaceWithMedia(t,n).then((function(){_(O,e,!0),i()})).catch((function(){i()}))})),this}},{key:"requestControls",value:(f=v(h().m((function t(e){return h().w((function(t){for(;;)if(0===t.n)return t.a(2,b(A,this).requestControls(e))}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"requestFullscreen",value:function(){var t=this;return b(T,this).synchronize((function(e){b(A,t).requestFullscreen().then((function(){e()})).catch((function(){e()}))})),this}},{key:"secondsWatched",value:function(){return b(A,this).secondsWatched}},{key:"secondsWatchedVector",value:function(){return b(A,this).secondsWatchedVector}},{key:"setControlEnabled",value:function(t,e){var n=this;return b(T,this).synchronize((function(i){e&&b(A,n).enableControl(t).then((function(){i()})).catch((function(){i()})),e||b(A,n).disableControl(t).then((function(){i()})).catch((function(){i()})),i()})),this}},{key:"sourceHashedId",value:function(){return b(A,this).sourceMediaId}},{key:"state",value:function(){return b(A,this).state}},{key:"time",value:function(t){var e=this;return void 0===t?b(A,this).currentTime:(b(T,this).synchronize((function(n){var i=function(){b(A,e).removeEventListener("seeked",i),n()};b(A,e).addEventListener("seeked",i),b(A,e).currentTime=t})),this)}},{key:"unbind",value:function(t,e,n,i){var r,o;if(Object.keys(d.convertedEventNames).includes(t))return null===(o=c.Wistia.EventShepherdManager[b(A,this).mediaId])||void 0===o||o.removeListener(t,b(A,this),e),this;switch(t){case"crosstime":return b(C,this).removeBinding(e,n),this;case"betweentimes":return b(S,this).removeBinding(e,n,i),this;default:return null===(r=b(A,this).deprecatedApiDoNotUse)||void 0===r||r.unbind(t,e),this}}},{key:"unmute",value:function(){var t=this;return b(T,this).synchronize((function(e){b(A,t).muted=!1,e()})),this}},{key:"videoHeight",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,i.isNumber)(t)&&!0!==b(A,this).embedOptions.videoFoam){if(b(A,this).style.height="".concat(t,"px"),e.constrain){var n=t/b(A,this).aspect;b(A,this).style.width="".concat(n,"px")}else console.warn("setting `videoHeight` while `videoFoam` is enabled results in a no-op");return this}return parseFloat(getComputedStyle(b(A,this)).height)}},{key:"videoQuality",value:function(t){var e=this;return void 0===t?b(A,this).videoQuality:(b(T,this).synchronize((function(n){b(A,e).videoQuality=t,n()})),this)}},{key:"videoWidth",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,i.isNumber)(t)&&!0!==b(A,this).embedOptions.videoFoam){if(b(A,this).style.width="".concat(t,"px"),e.constrain){var n=t/b(A,this).aspect;b(A,this).style.height="".concat(n,"px")}else console.warn("setting `videoWidth` while `videoFoam` is enabled results in a no-op");return this}return parseFloat(getComputedStyle(b(A,this)).width)}},{key:"visitorKey",value:function(){var t,e;return null!=(null===(t=window.Wistia)||void 0===t||null===(e=t.visitorKey)||void 0===e?void 0:e.value())?window.Wistia.visitorKey.value():null}},{key:"volume",value:function(t){var e=this;return void 0===t?b(A,this).volume:(b(T,this).synchronize((function(n){b(A,e).volume=t,n()})),this)}},{key:"whenControlMounted",value:(p=v(h().m((function t(e){return h().w((function(t){for(;;)if(0===t.n)return t.a(2,b(A,this).whenControlMounted(e))}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"width",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t&&!Number.isNaN(t)){if(b(A,this).style.width="".concat(t,"px"),e.constrain){var n=t/b(A,this).aspect;b(A,this).style.height="".concat(n,"px")}return this}return b(A,this).getBoundingClientRect().width}},{key:"pluginFunction",value:function(t,e){var n=this;return e?(b(T,this).synchronize((function(i){e(b(A,n).getPlugin(t)),i()})),this):b(A,this).getPlugin(t)}}],e&&y(t.prototype,e),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n,p,f,m,w,j}()},(t,e,n)=>{n.d(e,{StopGo:()=>i});var i,r=n(72);(function(){var t=[].slice;i=function(){function e(){var t;return this._queue=[],this._green=!1,this._lock=!1,this.allInOne=(t=this,function(){return t._allInOne.apply(t,arguments)}),this.defineMethodsOn(this.allInOne),this.allInOne}return e.prototype.defineMethodsOn=function(t){var e,n,i,r;for(n in e={},i=[],this)r=this[n],i.push(function(n,i,r){if("[object Function]"===e.toString.call(i))return t[n]=function(){return r[n].apply(r,arguments)}}(n,r,this));return i},e.prototype.flush=function(){var e,n;if(e=arguments.length>=1?t.call(arguments,0):[],!this._green)return this;for(this._lock=!0;this._queue.length>0&&(n=this._queue.shift(),e.length||!this.goArgs?this.tryAndReport((function(){return n.apply(null,e)})):this.tryAndReport(function(t){return function(){return n.apply(null,t.goArgs)}}(this)),!this._block&&this._green););return this._lock=!1,this},e.prototype._debug=function(){return"undefined"!=typeof console&&null!==console?console.log.apply(console,arguments):void 0},e.prototype.synchronize=function(){var e,n,i,r;for(i=0,r=(n=arguments.length>=1?t.call(arguments,0):[]).length;i<r;i++)e=n[i],this.synchronizeFn(e);return this},e.prototype.synchronizeFn=function(t){var e,n,i,r;return n=null,r=this,e=function(){return clearTimeout(n),r._block=!1,r.go()},i=function(n){return function(){return n._block=!0,n.stop(),t(e)}}(this),n=setTimeout(function(n){return function(){return n._debug("StopGo#synchronize timed out",t),e()}}(this),5e3),this.runFn(i),this},e.prototype.tryAndReport=function(t){var e;try{return t()}catch(t){return(e=t).stack?("undefined"!=typeof console&&null!==console&&console.log(e.message),"undefined"!=typeof console&&null!==console?console.log(e.stack):void 0):"undefined"!=typeof console&&null!==console?console.log(e):void 0}},e.prototype.clearSynchronized=function(){return this.setQueue([]),this._block=!1,this._green=!0},e.prototype.filter=function(t){var e;return this._queue=function(){var n,i,r,o;for(o=[],n=0,i=(r=this._queue).length;n<i;n++)e=r[n],t(e)&&o.push(e);return o}.call(this),this},e.prototype.push=function(t){return this._queue.push(t),this},e.prototype.go=function(){var e;return e=arguments.length>=1?t.call(arguments,0):[],this._green=!0,this.goArgs=e,this.flush.apply(this,e),this},e.prototype.stop=function(){return this._green=!1,this},e.prototype.run=function(){var e,n,i,r;for(i=0,r=(n=arguments.length>=1?t.call(arguments,0):[]).length;i<r;i++)e=n[i],this.runFn(e);return this},e.prototype.then=function(){return this.run.apply(this,arguments)},e.prototype.runFn=function(t){return this._green&&!this._block?this._lock?this.tryAndReport(t):(this.push(t),this.flush()):this.push(t),this},e.prototype.remove=function(){var e,n,i,r;for(i=0,r=(n=arguments.length>=1?t.call(arguments,0):[]).length;i<r;i++)e=n[i],this.removeFn(e);return this},e.prototype.removeFn=function(t){return this.filter((function(e){return t!==e})),this},e.prototype.setQueue=function(t){return this._queue=t,this},e.prototype.getQueue=function(){return this._queue},e.prototype._allInOne=function(){var e,n;return e=arguments[0],n=arguments.length>=2?t.call(arguments,1):[],!0===e?this.go.apply(this,n):!1===e?this.stop():null!=e?e instanceof Array?this.run.apply(this,e):"string"==typeof e?this[e].apply(this,n):this.run.apply(this,arguments):this._green},e}(),i.when=function(){var e,n,r,o,a,s,u,l;for(l=arguments.length>=1?t.call(arguments,0):[],s=new i,r=function(){return s.go.apply(s,arguments)},e=function(t,e){return r=function(){return e((function(){return t.apply(null,arguments)}))}},n=0,o=(a=l.reverse()).length;n<o;n++)u=a[n],e(r,u);return r(),s},i._drainStopGosAsync=function(t,e,n){var o;if(null==n&&(n=0),!(e.length<1))return(o=e.shift()).run((function(){return i._drainStopGosAsync(t,e,n+1)})),(0,r.doTimeout)("".concat(t,".").concat(n),(function(){return o.go()}),0),o}}).call(void 0)},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e,n){return e=s(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}n.d(e,{CrossTimeAurora:()=>l});var l=function(t){function e(t,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=o(this,e,[n])).apiInstance=t,i.embedElement=t,i}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,(r=[{key:"currentTime",get:function(){return this.apiInstance.currentTime}},{key:"state",get:function(){return this.apiInstance.state}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(108).CrossTime)},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}n.d(e,{CrossTime:()=>o});var o=function(){return t=function t(e){var n,i,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o={},(i=r(i="bindings"))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,this.unbindFunction=e},(e=[{key:"addBinding",value:function(t,e){var n,i,r=this;if(!/^(\d+\.)?\d+$/.test(t))throw new Error("crosstime: Expected first argument to be a number");if("function"!=typeof e)throw new Error("crosstime: Expected second argument to be a function");var o,a=this.currentTime>t,s=function(){r.currentTime<t&&(a=!1),a||function(){if(void 0===o){var n=function(){o=requestAnimationFrame((function(){r.currentTime<t&&t-r.currentTime<2&&"playing"===r.state?n():r.currentTime>t?(e.call(r.unbindFunction)===r.unbindFunction&&r.removeBinding(t,e),a=!0,o=void 0):(cancelAnimationFrame(o),o=void 0)}))};n()}}()};this.embedElement.addEventListener("time-update",s);var u=function(){void 0!==o&&cancelAnimationFrame(o),o=void 0};this.embedElement.addEventListener("pause",u),this.embedElement.addEventListener("end",u),this.embedElement.addEventListener("waiting",u),null!==(i=(n=this.bindings)[t])&&void 0!==i||(n[t]=[]),this.bindings[t].push({callback:e,clearAnimationFrame:u,timeChangeBinding:s})}},{key:"removeAllBindings",value:function(){var t=this;Object.keys(this.bindings).forEach((function(e){t.bindings[e].forEach((function(e){e.clearAnimationFrame(),t.embedElement.removeEventListener("time-update",e.timeChangeBinding),t.embedElement.removeEventListener("pause",e.clearAnimationFrame),t.embedElement.removeEventListener("end",e.clearAnimationFrame),t.embedElement.removeEventListener("waiting",e.clearAnimationFrame)}))})),this.bindings={}}},{key:"removeBinding",value:function(t,e){var n=this,i=this.bindings[t],r=[];i&&(i.forEach((function(t,i){t.callback===e&&(r.push(i),t.clearAnimationFrame(),n.embedElement.removeEventListener("time-update",t.timeChangeBinding),n.embedElement.removeEventListener("pause",t.clearAnimationFrame),n.embedElement.removeEventListener("end",t.clearAnimationFrame),n.embedElement.removeEventListener("waiting",t.clearAnimationFrame))})),r.forEach((function(t){i.splice(t,1)})))}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},(t,e,n)=>{n.d(e,{BetweenTimesAurora:()=>d});var i=n(110),r=n(107);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var d=function(t){function e(t,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=s(this,e,[n])).apiInstance=t,i.embedElement=t,i.crossTime=new r.CrossTimeAurora(i.apiInstance,n),i}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,(i=[{key:"currentTime",get:function(){return this.apiInstance.currentTime}}])&&o(n.prototype,i),a&&o(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.BetweenTimes)},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function r(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function a(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{BetweenTimes:()=>u});var s=new WeakSet,u=function(){return t=function t(e){var n,i,a;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,s),n=this,a={},(i=o(i="bindings"))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,this.unbindFunction=e},(e=[{key:"addBinding",value:function(t,e,n){var i,r,o=this;if(!/^(\d+\.)?\d+$/.test(t))throw new Error("betweenTimes: Expected first argument to be a number");if(!/^(\d+\.)?\d+$/.test(e))throw new Error("betweenTimes: Expected second argument to be number");if("function"!=typeof n)throw new Error("betweenTimes: Expected third argument to be a function");var u=a(s,this,l).call(this,t,e),c=!1,d=function(){var i=o.currentTime;t<=i&&i<e&&!c?(c=!0,n.call(o.unbindFunction,c)===o.unbindFunction&&o.removeBinding(t,e,n)):t<=i&&i<e||!c||(c=!1,n.call(o.unbindFunction,c)===o.unbindFunction&&o.removeBinding(t,e,n))};this.crossTime.addBinding(t,d),this.crossTime.addBinding(e,d),this.embedElement.addEventListener("time-update",d),d(),null!==(r=(i=this.bindings)[u])&&void 0!==r||(i[u]=[]),this.bindings[u].push({callback:n,endTime:e,startTime:t,timeUpdateBinding:d})}},{key:"removeAllBindings",value:function(){var t=this;Object.keys(this.bindings).forEach((function(e){var n=t.bindings[e];null==n||n.forEach((function(e){t.embedElement.removeEventListener("time-update",e.timeUpdateBinding),t.crossTime.removeBinding(e.startTime,e.timeUpdateBinding),t.crossTime.removeBinding(e.endTime,e.timeUpdateBinding)}))})),this.bindings={}}},{key:"removeBinding",value:function(t,e,n){var i=this,r=a(s,this,l).call(this,t,e),o=this.bindings[r],u=[];o&&(o.forEach((function(r,o){r.callback===n&&(u.push(o),i.embedElement.removeEventListener("time-update",r.timeUpdateBinding),i.crossTime.removeBinding(t,r.timeUpdateBinding),i.crossTime.removeBinding(e,r.timeUpdateBinding))})),u.forEach((function(t){o.splice(t,1)})))}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function l(t,e){return"".concat(t,"-").concat(e)}},(t,e,n)=>{n.d(e,{PlaylistMethods:()=>O});var i=n(36),r=n(112),o=n.n(r),a=n(16),s=n(23),u=n(53),l=n(88),c=n(113),d=n(114),h=n(89);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return y(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(y(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,y(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,y(d,"constructor",l),y(l,"constructor",u),u.displayName="GeneratorFunction",y(l,r,"GeneratorFunction"),y(d),y(d,r,"Generator"),y(d,i,(function(){return this})),y(d,"toString",(function(){return"[object Generator]"})),(v=function(){return{w:o,m:h}})()}function y(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}y=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){y(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},y(t,e,n,i)}function m(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){m(o,i,r,a,s,"next",t)}function s(t){m(o,i,r,a,s,"throw",t)}a(void 0)}))}}function b(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,w(i.key),i)}}function _(t,e,n){return(e=w(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var E=(0,s.cdnFastWistiaNetHost)(),O=function(){return t=function t(e,n,r,o){var s,u,l,c,d=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),_(this,"_handlePlayerEnded",(function(){d.playNextMedia(!0)})),this.sourceIdentifier="".concat(r.source.type,"_").concat(r.source.id),this._embedHost=null!=o?o:E,this.orderedPlaylistMedias=e,this._player=n,this._autoAdvance=null===(s=r.autoAdvance)||void 0===s||s,this._endBehavior=null!==(u=r.endBehavior)&&void 0!==u?u:"default",this._transition=null!==(l=r.transition)&&void 0!==l?l:"fade",this._isInsidePlayerControl=null!==(c=r.isInsidePlayerControl)&&void 0!==c&&c,this._overrideEmbedOptions=r.overrideEmbedOptions,(0,i.isNumber)(r.startIndex)&&r.startIndex>=e.length-1?(this.activeMediaIndex=this._lastMediaIndex,this.activeMediaId=e[this._lastMediaIndex].hashedId):(0,i.isNotNumber)(r.startIndex)?(this.activeMediaIndex=0,this.activeMediaId=e[0].hashedId):(this.activeMediaIndex=r.startIndex,this.activeMediaId=e[r.startIndex].hashedId),this._autoAdvance&&this._player.addEventListener("ended",this._handlePlayerEnded),(0,i.isNil)(a.Wistia.playlistMethods)&&(a.Wistia.playlistMethods=new Map),a.Wistia.playlistMethods.set(this.sourceIdentifier,this)},e=[{key:"overrideEmbedOptions",set:function(t){this._overrideEmbedOptions=t}},{key:"_lastMediaIndex",get:function(){return this.orderedPlaylistMedias.length-1}},{key:"addMediaToPlaylist",value:function(t,e){(0,i.isNotNil)(e)&&(0,i.isNotNil)(e.index)?this.orderedPlaylistMedias.splice(e.index,0,t):this.orderedPlaylistMedias.push(t)}},{key:"getNextMedia",value:function(){if(this.activeMediaIndex===this._lastMediaIndex){if("no-loop"===this._endBehavior)return;return this.orderedPlaylistMedias[0]}return this.orderedPlaylistMedias[this.activeMediaIndex+1]}},{key:"getPreviousMedia",value:function(){if(0===this.activeMediaIndex){if("no-loop"===this._endBehavior)return;return this.orderedPlaylistMedias[this._lastMediaIndex]}return this.orderedPlaylistMedias[this.activeMediaIndex-1]}},{key:"playMedia",value:(m=g(v().m((function t(e){return v().w((function(t){for(;;)switch(t.n){case 0:return this.activeMediaIndex=this._getIndexOfMediaInPlaylist(e.hashedId),this.activeMediaId=e.hashedId,t.n=1,this._enqueueMedia(e);case 1:this.prefetchNextMedia(),this.prefetchPreviousMedia();case 2:return t.a(2)}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"playNextMedia",value:(y=g(v().m((function t(){var e,n=this,r=arguments;return v().w((function(t){for(;;)if(0===t.n)return e=r.length>0&&void 0!==r[0]&&r[0],t.a(2,new Promise((function(t,r){var o=n.getNextMedia();if((0,i.isNil)(o)){var a=new c.NoNextMediaError("no next media");throw r(a),a}n.activeMediaId=o.hashedId,n.activeMediaIndex=n.activeMediaIndex===n._lastMediaIndex?0:n.activeMediaIndex+1,n._enqueueMedia(o,e).then((function(){n.prefetchNextMedia(),t()})).catch((function(t){t instanceof Error&&r(t),r(new Error("failed to enqueue media ".concat(o.hashedId)))}))})))}),t)}))),function(){return y.apply(this,arguments)})},{key:"playPreviousMedia",value:(p=g(v().m((function t(){var e=this;return v().w((function(t){for(;;)if(0===t.n)return t.a(2,new Promise((function(t,n){var r=e.getPreviousMedia();if((0,i.isNil)(r)){var o=new d.NoPreviousMediaError("no previous media");throw n(o),o}e.activeMediaId=r.hashedId,e.activeMediaIndex=0===e.activeMediaIndex?e._lastMediaIndex:e.activeMediaIndex-1,e._enqueueMedia(r).then((function(){e.prefetchPreviousMedia(),t()})).catch((function(t){t instanceof Error&&n(t),n(new Error("failed to enqueue media ".concat(r.hashedId)))}))})))}),t)}))),function(){return p.apply(this,arguments)})},{key:"prefetchNextMedia",value:function(){var t=this.getNextMedia();(0,i.isNil)(t)||this._prefetchMedia(t)}},{key:"prefetchPreviousMedia",value:function(){var t=this.getPreviousMedia();(0,i.isNil)(t)||this._prefetchMedia(t)}},{key:"removePlayerEndedListener",value:function(){this._player.removeEventListener("ended",this._handlePlayerEnded)}},{key:"setAutoAdvance",value:function(t){this._autoAdvance=t}},{key:"setEndBehavior",value:function(t){this._endBehavior=t}},{key:"_enqueueMedia",value:(s=g(v().m((function t(e){var n,r,o,a,s,u=arguments;return v().w((function(t){for(;;)switch(t.n){case 0:return r=u.length>1&&void 0!==u[1]&&u[1],t.n=1,this._prefetchMedia(e);case 1:if(o=t.v,!(0,i.isNil)(o)){t.n=2;break}return t.a(2,Promise.resolve());case 2:return a=this.orderedPlaylistMedias[0].hashedId===e.hashedId,this._autoAdvance&&this._isInsidePlayerControl&&this.removePlayerEndedListener(),t.n=3,this._player.replaceWithMedia(o.hashedId,f(f(f({},o.embedOptions),null!==(n=this._overrideEmbedOptions)&&void 0!==n?n:{}),{},{transition:this._transition}));case 3:if(r&&document.dispatchEvent(new CustomEvent("playlist-methods-autoplay-next-media-started")),s=!1,r?this._autoAdvance&&(s=!a||"default"===this._endBehavior):s=!0,!s){t.n=4;break}return t.n=4,this._player.play();case 4:return document.dispatchEvent(new CustomEvent("playlist-methods-changed-media",{detail:{mediaId:o.hashedId}})),t.a(2,Promise.resolve())}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"_getCachedMediaDataAsPlaylistMedia",value:function(t){var e,n,r,o,a=(0,u.getMediaDataFromCache)(t);return(0,i.isNotNil)(a)?{durationInSeconds:null!==(e=a.duration)&&void 0!==e?e:0,embedOptions:null!==(n=a.embedOptions)&&void 0!==n?n:{},hashedId:null!==(r=a.hashedId)&&void 0!==r?r:"",name:null!==(o=a.name)&&void 0!==o?o:""}:null}},{key:"_getIndexOfMediaInPlaylist",value:function(t){return Math.max(this.orderedPlaylistMedias.findIndex((function(e){return e.hashedId===t})),0)}},{key:"_getMediaDataAsPlaylistMedia",value:function(t){var e,n,i,r;return{durationInSeconds:null!==(e=t.duration)&&void 0!==e?e:0,embedOptions:null!==(n=t.embedOptions)&&void 0!==n?n:{},hashedId:null!==(i=t.hashedId)&&void 0!==i?i:"",name:null!==(r=t.name)&&void 0!==r?r:""}}},{key:"_prefetchMedia",value:(r=g(v().m((function t(e){var n,r,a,s,u,c,d,p,y;return v().w((function(t){for(;;)switch(t.n){case 0:if(null!==(n=e.embedOptions)&&void 0!==n&&null!==(r=n.plugin)&&void 0!==r&&r.passwordProtectedVideo&&delete e.embedOptions.plugin.passwordProtectedVideo,u=this._getCachedMediaDataAsPlaylistMedia(e.hashedId),!(0,i.isNotNil)(u)){t.n=1;break}return o()(u.embedOptions,e.embedOptions),t.a(2,Promise.resolve(u));case 1:return c=f(f({},e.embedOptions),{},{embedHost:this._embedHost}),(0,i.isNotNil)(null===(a=e.embedOptions)||void 0===a?void 0:a.channelId)&&(c.channelId=e.embedOptions.channelId),(0,i.isNotNil)(null===(s=e.embedOptions)||void 0===s?void 0:s.channelPassword)&&(c.channelPassword=e.embedOptions.channelPassword),t.n=2,(0,l.fetchMediaData)(e.hashedId,c);case 2:if(d=t.v,!(0,h.isMediaDataError)(d)){t.n=3;break}return t.a(2,Promise.resolve(null));case 3:return p=d,y=this._getMediaDataAsPlaylistMedia(p),o()(y.embedOptions,e.embedOptions),t.a(2,y)}}),t,this)}))),function(t){return r.apply(this,arguments)})}],e&&b(t.prototype,e),n&&b(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n,r,s,p,y,m}()},(t,e,n)=>{t=n.nmd(t);var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object Object]",u=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[o]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,h="object"==typeof self&&self&&self.Object===Object&&self,p=d||h||Function("return this")(),f=e&&!e.nodeType&&e,v=f&&t&&!t.nodeType&&t,y=v&&v.exports===f,m=y&&d.process,g=function(){try{var t=v&&v.require&&v.require("util").types;return t||m&&m.binding&&m.binding("util")}catch(t){}}(),b=g&&g.isTypedArray;var _,w,E,O=Array.prototype,P=Function.prototype,k=Object.prototype,S=p["__core-js_shared__"],T=P.toString,C=k.hasOwnProperty,A=(_=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",j=k.toString,M=T.call(Object),I=RegExp("^"+T.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=y?p.Buffer:void 0,L=p.Symbol,B=p.Uint8Array,x=D?D.allocUnsafe:void 0,R=(w=Object.getPrototypeOf,E=Object,function(t){return w(E(t))}),F=Object.create,W=k.propertyIsEnumerable,N=O.splice,H=L?L.toStringTag:void 0,V=function(){try{var t=ft(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),U=D?D.isBuffer:void 0,z=Math.max,q=Date.now,G=ft(p,"Map"),K=ft(Object,"create"),Y=function(){function t(){}return function(e){if(!St(e))return{};if(F)return F(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Q(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function $(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Z(t){var e=this.__data__=new X(t);this.size=e.size}function J(t,e){var n=wt(t),i=!n&&_t(t),r=!n&&!i&&Ot(t),o=!n&&!i&&!r&&Ct(t),a=n||i||r||o,s=a?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],u=s.length;for(var l in t)!e&&!C.call(t,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||vt(l,u))||s.push(l);return s}function tt(t,e,n){(void 0!==n&&!bt(t[e],n)||void 0===n&&!(e in t))&&it(t,e,n)}function et(t,e,n){var i=t[e];C.call(t,e)&&bt(i,n)&&(void 0!==n||e in t)||it(t,e,n)}function nt(t,e){for(var n=t.length;n--;)if(bt(t[n][0],e))return n;return-1}function it(t,e,n){"__proto__"==e&&V?V(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}Q.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},Q.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Q.prototype.get=function(t){var e=this.__data__;if(K){var n=e[t];return n===i?void 0:n}return C.call(e,t)?e[t]:void 0},Q.prototype.has=function(t){var e=this.__data__;return K?void 0!==e[t]:C.call(e,t)},Q.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=K&&void 0===e?i:e,this},X.prototype.clear=function(){this.__data__=[],this.size=0},X.prototype.delete=function(t){var e=this.__data__,n=nt(e,t);return!(n<0)&&(n==e.length-1?e.pop():N.call(e,n,1),--this.size,!0)},X.prototype.get=function(t){var e=this.__data__,n=nt(e,t);return n<0?void 0:e[n][1]},X.prototype.has=function(t){return nt(this.__data__,t)>-1},X.prototype.set=function(t,e){var n=this.__data__,i=nt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},$.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(G||X),string:new Q}},$.prototype.delete=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e},$.prototype.get=function(t){return pt(this,t).get(t)},$.prototype.has=function(t){return pt(this,t).has(t)},$.prototype.set=function(t,e){var n=pt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Z.prototype.get=function(t){return this.__data__.get(t)},Z.prototype.has=function(t){return this.__data__.has(t)},Z.prototype.set=function(t,e){var n=this.__data__;if(n instanceof X){var i=n.__data__;if(!G||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new $(i)}return n.set(t,e),this.size=n.size,this};var rt,ot=function(t,e,n){for(var i=-1,r=Object(t),o=n(t),a=o.length;a--;){var s=o[rt?a:++i];if(!1===e(r[s],s,r))break}return t};function at(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":H&&H in Object(t)?function(t){var e=C.call(t,H),n=t[H];try{t[H]=void 0;var i=!0}catch(t){}var r=j.call(t);i&&(e?t[H]=n:delete t[H]);return r}(t):function(t){return j.call(t)}(t)}function st(t){return Tt(t)&&at(t)==o}function ut(t){return!(!St(t)||function(t){return!!A&&A in t}(t))&&(Pt(t)?I:u).test(function(t){if(null!=t){try{return T.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function lt(t){if(!St(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=yt(t),n=[];for(var i in t)("constructor"!=i||!e&&C.call(t,i))&&n.push(i);return n}function ct(t,e,n,i,r){t!==e&&ot(e,(function(o,a){if(r||(r=new Z),St(o))!function(t,e,n,i,r,o,a){var u=mt(t,n),l=mt(e,n),c=a.get(l);if(c)return void tt(t,n,c);var d=o?o(u,l,n+"",t,e,a):void 0,h=void 0===d;if(h){var p=wt(l),f=!p&&Ot(l),v=!p&&!f&&Ct(l);d=l,p||f||v?wt(u)?d=u:Tt(_=u)&&Et(_)?d=function(t,e){var n=-1,i=t.length;e||(e=Array(i));for(;++n<i;)e[n]=t[n];return e}(u):f?(h=!1,d=function(t,e){if(e)return t.slice();var n=t.length,i=x?x(n):new t.constructor(n);return t.copy(i),i}(l,!0)):v?(h=!1,y=l,m=!0?(g=y.buffer,b=new g.constructor(g.byteLength),new B(b).set(new B(g)),b):y.buffer,d=new y.constructor(m,y.byteOffset,y.length)):d=[]:function(t){if(!Tt(t)||at(t)!=s)return!1;var e=R(t);if(null===e)return!0;var n=C.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==M}(l)||_t(l)?(d=u,_t(u)?d=function(t){return function(t,e,n,i){var r=!n;n||(n={});var o=-1,a=e.length;for(;++o<a;){var s=e[o],u=i?i(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),r?it(n,s,u):et(n,s,u)}return n}(t,At(t))}(u):St(u)&&!Pt(u)||(d=function(t){return"function"!=typeof t.constructor||yt(t)?{}:Y(R(t))}(l))):h=!1}var y,m,g,b;var _;h&&(a.set(l,d),r(d,l,i,o,a),a.delete(l));tt(t,n,d)}(t,e,a,n,ct,i,r);else{var u=i?i(mt(t,a),o,a+"",t,e,r):void 0;void 0===u&&(u=o),tt(t,a,u)}}),At)}function dt(t,e){return gt(function(t,e,n){return e=z(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=z(i.length-e,0),a=Array(o);++r<o;)a[r]=i[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=i[r];return s[e]=n(a),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,s)}}(t,e,It),t+"")}var ht=V?function(t,e){return V(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:It;function pt(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function ft(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ut(n)?n:void 0}function vt(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&l.test(t))&&t>-1&&t%1==0&&t<e}function yt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||k)}function mt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var gt=function(t){var e=0,n=0;return function(){var i=q(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ht);function bt(t,e){return t===e||t!=t&&e!=e}var _t=st(function(){return arguments}())?st:function(t){return Tt(t)&&C.call(t,"callee")&&!W.call(t,"callee")},wt=Array.isArray;function Et(t){return null!=t&&kt(t.length)&&!Pt(t)}var Ot=U||function(){return!1};function Pt(t){if(!St(t))return!1;var e=at(t);return e==a||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function kt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function St(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Tt(t){return null!=t&&"object"==typeof t}var Ct=b?function(t){return function(e){return t(e)}}(b):function(t){return Tt(t)&&kt(t.length)&&!!c[at(t)]};function At(t){return Et(t)?J(t,!0):lt(t)}var jt,Mt=(jt=function(t,e,n){ct(t,e,n)},dt((function(t,e){var n=-1,i=e.length,r=i>1?e[i-1]:void 0,o=i>2?e[2]:void 0;for(r=jt.length>3&&"function"==typeof r?(i--,r):void 0,o&&function(t,e,n){if(!St(n))return!1;var i=typeof e;return!!("number"==i?Et(n)&&vt(e,n.length):"string"==i&&e in n)&&bt(n[e],t)}(e[0],e[1],o)&&(r=i<3?void 0:r,i=1),t=Object(t);++n<i;){var a=e[n];a&&jt(t,a,n,r)}return t})));function It(t){return t}t.exports=Mt},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))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,n)}function n(){return function(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&u(r,n.prototype),r}(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)},a(t)}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}n.d(e,{NoNextMediaError:()=>c});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,[t])}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(a(Error))},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))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,n)}function n(){return function(t,e,n){if(s())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&u(r,n.prototype),r}(t,arguments,l(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),u(n,t)},a(t)}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}n.d(e,{NoPreviousMediaError:()=>c});var c=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,[t])}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(a(Error))},(t,e,n)=>{!function(t){var e,i,r,o,a,s,u,l,c,d,h,p,f,v,y,m,g,b;if(!t.embeds)t.embeds={},i=n(106).StopGo,b=n(12).wlog,h=n(6).onDocReady,o=n(116).asyncChain,g=n(54).throttle,(f=n(3)).elemClasses,s=f.elemHasClass,u=f.elemMutationObserver,n(24).queryParamsToObject,a=n(72).clearTimeouts,(v=n(4)).cast,d=v.isObject,r=v.assign,v.clone,p=n(102).optionsFromElemClass,l=n(42).getAllApiEmbedElements,c=(y=n(103)).getOrSetEmbedOptionStore,m=y.setEmbedOptionStore,e=y.GLOBAL_ID_KEY,t.embeds.setup=function(e){return t.embeds.notEmbedding((function(){var n;if(h(n=function(){var n,i,r,a,s,u,l,c,d;t.embeds.notEmbedding(!1),a=[];try{for((e=t.embeds.uninitialized(e))&&e.length&&e.length>0&&t.info("initializing",null!=e?e.length:void 0,"embedElems"),u=0,l=e.length;u<l;u++){r=e[u];try{if(t.info("initializing elem",r),s=t.embeds.hashedIdForElem(r,{asyncOnly:!0}),!document.body.contains(r))continue;r.id?document.getElementById(r.id)!==r&&(c=t.embeds.genIdFor(s),t.error('Duplicate DOM ID found for container "'+r.id+'". Changing it to "'+c+'" to avoid issues.',r),r.id=c):r.id=t.embeds.genIdFor(s),r.uniqueId=r.id,d=p(r),m("__"+r.id+"_dom_options__",d),function(e,n){a.push((function(){if(!t.embeds.containerIsInitialized(n))return t.embed(e,{container:n.id})}))}(s,r)}catch(e){n=e,t.error(n)}}}catch(e){i=e,t.error(i)}return a.push((function(){return t.watchForInit()})),a.push((function(){return t.embeds.notEmbedding(!0)})),o("embeds_setup",a)}),0===t.detect.ios.version&&!t.detect.safari)return n()}))},t.embeds._setupThrottled=g(500,t.embeds.setup),t.embeds.hashedIdForElem=function(t,e){var n,i,r,o,a,s;return null==e&&(e={}),"WISTIA-PLAYER"===t.tagName?t.mediaId:e.asyncOnly?(null!=(n=t.className)&&null!=(i=n.match(/wistia_async_([^\s]+)/))?i[1]:void 0)||null:(null!=(r=t.className)&&null!=(o=r.match(/wistia_async_([^\s]+)/))?o[1]:void 0)||(null!=(a=t.className)&&null!=(s=a.match(/wistia_([^\s]+)/))?s[1]:void 0)||null},t.embeds.genIdFor=function(t){var e,n,i;for(e="wistia-"+t,i=1;n=e+"-"+i,document.getElementById(n)||document.querySelector("[unique-id="+n+"]");)i+=1;return n},t.options=c,t.embeds.uninitialized=function(e){var n,i,r,o;for(null==e&&(e=l()),o=[],i=0,r=e.length;i<r;i++)n=e[i],t.embeds.hashedIdForElem(n,{asyncOnly:!0})&&!t.embeds.containerIsInitialized(n)&&o.push(n);return o},t.embeds.containerIsInitialized=function(e){return e&&(e.wistiaApi||"WISTIA-PLAYER"===e.tagName||e._convertingToAurora)&&!(e.wistiaApi instanceof t.IframeApiProxy)},t.embeds.initialized=function(e){var n,i,r,o;for(o in r=[],i=t._data.video)n=i[o],r.push(n);return r},t.embeds.observe=function(){var e,n;if(!t.embeds.initObserver){if(t.embeds.initObserver=u((function(e){var n,i,r,o,a,u,l,c,d,h;for(i=[],n=!1,r=0,a=e.length;r<a;r++)for((null!=(d=(l=e[r]).addedNodes)?d.length:void 0)>0&&(n=!0),o=0,u=(h=l.addedNodes||[]).length;o<u;o++)c=h[o],s(c,"wistia_embed")&&i.push(c);if(i.length>0&&setTimeout((function(){return t.embeds.setup(i)}),10),n)return t.embeds._setupThrottled()})),e={subtree:!0,childList:!0},t.detect.ios.version>0||t.detect.safari)return h((function(){return t.embeds.initObserver.observe(document.body,e)}));try{return t.embeds.initObserver.observe(document.body,e)}catch(i){return n=i,b.notice(n),h((function(){try{return t.embeds.initObserver.observe(document.body,e)}catch(t){return n=t,b.error(n)}}))}}},t.embeds.unobserve=function(){var e;return null!=(e=t.embeds.initObserver)&&e.disconnect(),t.embeds.initObserver=null},t.embeds.poll=function(e){return null==e&&(e=500),t.eventLoop.add("poll_setup_embeds",e,(function(){return t.embeds.setup()}))},t.embeds.unpoll=function(){var e;return null!=(e=t.eventLoop)?e.remove("poll_setup_embeds"):void 0},t.embeds.watch=function(){return t.embeds._dontWatch=!1,t.detect.mutationObserver?(t.embeds.observe(),t.embeds.poll(2e3)):t.embeds.poll()},t.embeds.dontWatch=function(){return t.embeds._dontWatch=!0,t.embeds.unwatch()},t.embeds.unwatch=function(){return t.embeds.unobserve(),t.embeds.unpoll()},t.flushInit=function(){var e,n,i,r;if(window.wistiaInit){if(wistiaInit instanceof Array)for(i=0,r=wistiaInit.length;i<r;i++){n=wistiaInit[i];try{"function"==typeof n&&n(t)}catch(t){e=t,b.error(e)}}else"function"==typeof wistiaInit&&wistiaInit(t);return window.wistiaInit=null}},t.addQueue=function(e){return t._queueNames.push(e),t.watchForInit()},t._queueNames=["_wq","wistiaInitQueue"],t._wqBoundListeners=[],t.flushInitQueue=function(){var n,i,r,o,a,s,u,l,c,h,p,f,v,y,g;if(!t._isFlushingInitQueue){t._isFlushingInitQueue=!0;try{for(n=function(t){return t.translationApi?t.translationApi:t},y=t._queueNames,s=0,c=y.length;s<c;s++)if(f=y[s],(p=window[f])&&p instanceof Array&&p.length>0){for(a=[];p.length>0;)if(g=p.shift(),d(g))if(g.revoke&&t.revokeQueueListener(g.revoke),g.__unbinds||(g.__unbinds=[]),g.id)v=!1,g.options&&("_all"===g.id?(m(e,g.options),v=!0):(m(g.id,g.options),v=!0)),function(e){var i,r;r="_all"===e.id?[]:[e.id],e.onFind&&(i=r.concat([function(t){return e.onFind(n(t))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),v=!0),e.onHasData&&(i=r.concat([function(t){return t.hasData((function(){return e.onHasData(n(t))}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),v=!0),e.onEmbedded&&(i=r.concat([function(t){return t.embedded((function(){return e.onEmbedded(n(t))}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),v=!0),e.onReady&&(i=r.concat([function(t){return t.ready((function(){return e.onReady(n(t))}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),v=!0),v?t._wqBoundListeners.push(e):t.error("No initialization function provided for ID "+e.id,e)}(g);else for(l in o=function(i,r,o){var s,u;return"function"==typeof o?(u=function(t){return t.hasData((function(){return o(n(t))}))},s=function(){return i.__unbinds="_all"===r?i.__unbinds.concat(t.api(u)):i.__unbinds.concat(t.api(r,u)),t._wqBoundListeners.push(i)},a.push(s)):d(o)?(s="_all"===r?function(){return m(e,o)}:function(){return m(r,o)},a.push(s)):"__unbinds"!==r&&"revoke"!==r?t.error("Unknown initialization object:",o,"Expected Object or Function."):void 0},g)o(g,l,g[l]);else"function"==typeof g?function(e){var n;n=function(){return e(t)},a.push(n)}(g):t.notice(f+": Don't know what to do with "+g+", ignoring.");for(u=0,h=a.length;u<h;u++){r=a[u];try{"function"==typeof r&&r(t)}catch(t){i=t,b.error(i)}}p.length=0}}catch(t){i=t,b.error(i)}return t._isFlushingInitQueue=!1}},t.getInitQueueListeners=function(){return r([],t._wqBoundListeners)},t.revokeQueueListener=function(e){var n,i,r,o,a,s,u,l;for(s=[],n=0,r=(u=e instanceof Array?e:[e]).length;n<r;n++){if((e=u[n]).__unbinds){for(i=0,o=(a=e.__unbinds).length;i<o;i++)"function"==typeof(l=a[i])&&l();delete e.__unbinds}s.push(t._wqBoundListeners=t._wqBoundListeners.filter((function(t){return t!==e})))}return s},t.watchForInit=function(){if(null==t._pollInit&&(t._pollInit=function(){return t.flushInitQueue(),t.flushInit()}),t._pollInit(),t.eventLoop)return t.eventLoop.unpause("poll_init"),t.eventLoop.add("poll_init",500,t._pollInit)},t.api=function(e,n){var i,r,o,a,s,u,l,c,d,h,p,f;if(null!=e){if(n)return t.api.onFind(e,n);if("function"==typeof e)return t.api.onFind(e);if("string"==typeof e){if(d=e,!(o=document.getElementById(d)))for(l=0,c=(r=t.api.all()).length;l<c;l++)if(0===(null!=(h=(s=r[l]).hashedId())?h.indexOf(d):void 0)||0===(null!=(p=s.container.id)?p.indexOf(d):void 0)){o=s.container;break}}else"number"==typeof e?(u=e,i=t.api.all(),u<0&&(u=i.length+u),o=(null!=(f=i[u])?f.container:void 0)||null):window.HTMLElement&&e instanceof HTMLElement?o=e:t.error("Wistia.api: Unrecognized matcher",e);return a=null!=o?o.querySelector("wistia-player"):void 0,(null!=o?o.wistiaApi:void 0)&&(o.wistiaApi instanceof t.PublicApi||t.IframeApi&&o.wistiaApi instanceof t.IframeApi)?o.wistiaApi:"WISTIA-PLAYER"===(null!=o?o.tagName:void 0)&&(null!=o?o.translationApi:void 0)?o.translationApi:(null!=a?a.translationApi:void 0)?null!=a?a.translationApi:void 0:null}return t.api.all()[0]||null},t.api.all=function(){return t.api._apiHandles().concat(t.api._iframeHandles())},t.api._apiHandles=function(){return t.embeds.initialized()},t.api._iframeHandles=function(){var e,n,i,r;for(r in i=[],n=t._data.iframe_api)e=n[r],i.push(e);return i},t.api.onFind=function(e,n){var i,r;return"function"==typeof e&&(n=e,e=null),i=function(i){return(null===e||t.api(e)===i)&&(n(i),!0)},wistiaEmbeds.each(i),r=[wistiaEmbeds.on("initembed",i),wistiaEmbeds.on("afterreplace",i)],function(){var t,e,n,i;for(n=[],t=0,e=r.length;t<e;t++)i=r[t],n.push(i());return n}},t._asyncInitSoonAfterLoad=function(e){return null==e&&(e=10),setTimeout((function(){var e;try{return t.embeds.setup(),t.embeds._dontWatch||t.embeds.watch(),t.watchForInit()}catch(t){return e=t,b.error(e)}}),e)},t._initializers.initAsyncEmbeds=function(){var e,n,r;return t.embeds.notEmbedding=new i,t.embeds.notEmbedding(!0),null==t._data&&(t._data={}),null==(e=t._data).video&&(e.video={}),null==(n=t._data).iframe_api&&(n.iframe_api={}),window._inWistiaIframe?setTimeout((function(){return t.watchForInit()}),10):(t._asyncInitSoonAfterLoad(),t._asyncInitSoonAfterLoad(500),null!=(r=t.eventLoop)?r.pause("poll_init"):void 0)},t._destructors.destroyAsyncEmbeds=function(){var e,n;return a("embeds_setup"),null!=(e=t.eventLoop)&&e.remove("poll_init"),null!=(n=t.embeds)?n.unwatch():void 0}}(Wistia)},(t,e,n)=>{n.d(e,{asyncChain:()=>u});var i=n(106),r=n(12),o=n(72);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u=function(t,e){var n,s=[],u=a(e);try{for(u.s();!(n=u.n()).done;){!function(t){s.push((new i.StopGo).run((function(){try{return t()}catch(t){return r.wlog.error(t)}})))}(n.value)}}catch(t){u.e(t)}finally{u.f()}var l=s[s.length-1];i.StopGo._drainStopGosAsync(t,s);var c=new i.StopGo;return l.then((function(){return(0,o.doTimeout)("".concat(t,".last"),(function(){return c.go()}),0)})),c}},(t,e,n)=>{var i=n(12),r=n(43),o=n(72),a=n(26),s=n(3);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function c(t,e,n){return e=f(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function d(t){var e="function"==typeof Map?new Map:void 0;return d=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))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,n)}function n(){return function(t,e,n){if(h())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&p(r,n.prototype),r}(t,arguments,f(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),p(n,t)},d(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}!function(t){if(!t.EmbedListener)t.EmbedListener=function(e){function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=c(this,n)).uuid=(0,a.seqId)(),t.logger=i.wlog.getPrefixedFunctions("EmbedShepherd"),t.bindHandles(),t.bind("down",(function(){return t.logger.info("got down event, prune and rebind handles"),(0,o.doTimeout)("prune_zombies_later",(function(){return t.pruneZombies(),t.bindHandles()}))})),t.bind("up",(function(e){return t.logger.info("got up event, set _bound=false for",e),e._bound=!1,t.bindHandles()})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(n,e),l=n,(d=[{key:"bindHandles",value:function(){var t=this,e=this.allUnboundHandles();return this.logger.info("bindHandles",e),function(){for(var n=[],i=0,r=Array.from(e);i<r.length;i++){var o=r[i];t.logger.info("bind to all events for",o),o._bound=!0,n.push(t.push(o))}return n}()}},{key:"isHandleDown",value:function(t){if(t.looksDown)return t.looksDown();var e=t.container;return!e||!(0,s.elemInDom)(e)||(0,s.elemIsHidden)(e)}},{key:"pruneZombies",value:function(){var t,e=this;this.logger.info("pruneZombies");for(var n=[],i=0,r=Array.from(this.allBoundHandles());i<r.length;i++)t=r[i],this.isHandleDown(t)?this.logger.info("prune zombie",t):n.push(t);for(var o=0,a=this.length,s=a>=0;s?o<=a:o>=a;s?o++:o--)delete this[o];return this.length=0,function(){for(var i=[],r=0,o=Array.from(n);r<o.length;r++)t=o[r],i.push(e.push(t));return i}()}},{key:"allBoundHandles",value:function(){for(var t=[],e=0,n=Array.from(this.allHandles());e<n.length;e++){var i=n[e];i._bound&&t.push(i)}return t}},{key:"allUnboundHandles",value:function(){for(var t=[],e=0,n=Array.from(this.allHandles());e<n.length;e++){var i=n[e];i._bound||t.push(i)}return t}},{key:"allHandles",value:function(){return this.apiHandles().concat(this.iframeApiHandles())}},{key:"iframeApiHandles",value:function(){this.iframes||(this.iframes=document.getElementsByTagName("iframe"));for(var e=[],n=0,i=Array.from(this.iframes);n<i.length;n++){var r=i[n];!r.wistiaApi||r.wistiaApi instanceof t.IframeApiProxy||"removed"===r.wistiaApi||e.push(r.wistiaApi)}return e}},{key:"apiHandles",value:function(){var t=[];if(window.Wistia){var e=(0,r.wData)("video");for(var n in e){var i=e[n];t.push(i)}}return t}},{key:"each",value:function(t){return Array.from(this.allBoundHandles()).map((function(e){return t(e)}))}},{key:"onFind",value:function(t){var e=this,n=function(n){return n.up((function(){return e.logger.info("onFind",n),t(n),n.unbind}))};return this.each(n),this.bind("initembed",n)}}])&&u(l.prototype,d),h&&u(l,h),Object.defineProperty(l,"prototype",{writable:!1}),l;var l,d,h}(d(Array)),t.mixin(t.EmbedListener.prototype,t.bindable),t._initializers.initEmbedShepherd=function(){var e,n,r,o;window.wistiaEmbeds?(i.wlog.info("EmbedShepherd window.wistiaEmbeds already exists, call bindHandles"),null===(r=(o=window.wistiaEmbeds).bindHandles)||void 0===r||r.call(o)):(i.wlog.info("EmbedShepherd initialize embed shepherd"),window.wistiaEmbeds=new t.EmbedListener);return i.wlog.info("EmbedShepherd call window.wistiaEmbedShepherdReady()"),null===(e=(n=window).wistiaEmbedShepherdReady)||void 0===e?void 0:e.call(n)},t._destructors.destroyEmbedShepherd=function(){var t;return null===(t=window.wistiaEmbeds)||void 0===t||t.each((function(t){return t._bound=!1})),window.wistiaEmbeds=null}}(window.Wistia)},(t,e,n)=>{var i=n(119),r=n(47),o=n(120),a=n(121);!function(t){t.mux||(t.mux={});var e=function(t){(0,r.dynamicImport)("assets/external/wistia-mux.js").then((function(e){t.embedded((function(){e.init(t,{embedType:"legacy"})}))}))};t._initializers.initMux=function(){if(!t.mux._setup){var n=a.MUX_PERCENTAGE_TO_ENABLE;(0,o.didWinCoinFlip)(n)?(t.mux._setup=!0,t.mux._disabled=!1):t.mux._disabled=!0,(0,i.onFindApiHandle)({matcher:i.ALL_API_HANDLES_KEY,functionToRun:function(n){var i,r="WISTIA-PLAYER"===(null===(i=n.container)||void 0===i?void 0:i.tagName),o=function(){return!r&&(0,a.shouldEnableMux)(n,!t.mux._disabled)};o()?e(n):n.hasData((function(){o()&&e(n)}))}})}},t._destructors.destroyMux=function(){t.mux._disabled=!0;for(var e=t.api.all(),n=0;n<e.length;n++){var i;null===(i=e[n].mux)||void 0===i||i.destroy()}}}(window.Wistia)},(t,e,n)=>{n.d(e,{ALL_API_HANDLES_KEY:()=>h,onFindApiHandle:()=>b,onFindApiHandleRunOnce:()=>_});var i=n(7),r=n(41),o=n(42),a=n(3),s=n(6),u=n(12),l=n(18);function c(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||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.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var h="_all",p=null,f=[],v=[],y=function(t,e){var n,i,r=null!==(n=null!==(i=t.wistiaApi)&&void 0!==i?i:t.deprecatedApiDoNotUse)&&void 0!==n?n:null;null!==r&&"removed"!==r&&e(r)},m=function(t,e){return t.addEventListener(l.INIT_EMBED_EVENT,e),t.addEventListener(l.INTERNAL_API_ON_FIND_EVENT,e),t.addEventListener(l.AFTER_REPLACE_EVENT,e),[function(){return t.removeEventListener(l.INIT_EMBED_EVENT,e)},function(){return t.removeEventListener(l.INTERNAL_API_ON_FIND_EVENT,e)},function(){return t.removeEventListener(l.AFTER_REPLACE_EVENT,e)}]},g=function(t,e,n,i){null!==t&&"removed"!==t&&void 0!==t&&(e!==h&&t!==(0,r.getOneApiHandle)(e)||(i?t.up((function(){return n(t)})):n(t)))},b=function(t){var e=t.matcher,n=t.functionToRun,r=t.shouldOnlyRunWhenVisible,l=void 0!==r&&r,d=function(t){g(t,e,n,l)},h=function(t){var i=t.detail,r=i.api,o=i.deprecatedApiDoNotUse;g(null!=r?r:o,e,n,l)};f.push(d),v.push(h),null===p&&(p=(0,a.elemMutationObserver)((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){if(t instanceof HTMLElement){var e=null;"WISTIA-PLAYER"===t.tagName||(0,a.elemHasClass)(t,"wistia_embed")?e=t:t.querySelector("wistia-player")?e=t.querySelector("wistia-player"):t.querySelector(".wistia_embed")&&(e=t.querySelector(".wistia_embed")),null!==e&&(f.forEach((function(t){y(e,t)})),v.forEach((function(t){m(e,t)})))}}))}))})),(0,s.onDocReady)((function(){if(null!==p)try{p.observe(document.body,{subtree:!0,childList:!0})}catch(t){u.wlog.error(t)}})));var b=function(){var t=function(t,e){var n=Array.from((0,o.getAllApiEmbedElements)()),i=Array.from(document.getElementsByTagName("wistia-player"));return n.concat(i).reduce((function(n,i){return y(i,t),[].concat(c(n),c(m(i,e)))}),[])}(d,h);return function(){return t.map((function(t){return t()}))}};b(),(0,i.poll)(s.isDocReady,b,300,1e4)},_=function(t){var e=t.matcher,n=t.functionToRun,i=t.shouldOnlyRunWhenVisible,r=void 0!==i&&i,o=new Set;b({matcher:e,shouldOnlyRunWhenVisible:r,functionToRun:function(t){o.has(t)||(o.add(t),n(t))}})}},(t,e,n)=>{n.d(e,{didWinCoinFlip:()=>i});var i=function(t){var e=window.crypto;return void 0!==e?e.getRandomValues(new Uint32Array(1))[0]/4294967296<t:Math.random()>=t}},(t,e,n)=>{n.d(e,{MUX_PERCENTAGE_TO_ENABLE:()=>i,shouldEnableMux:()=>r});var i=.1,r=function(t,e){var n=!0!==window.wistiaDisableMux,i=!t._opts||!1!==t._opts.mux,r=null==t.iframe,o=e,a=!(!t._mediaData||"LiveStream"!==t._mediaData.type);return n&&i&&r&&(o||a)}},(t,e,n)=>{n(123),n(124),n(150),n(172),n(173)},(t,e,n)=>{var i=n(12),r=n(24);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||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.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}!function(t){var e=t;if(!t.wlog)t.wlog=i.wlog,t.log=i.wlog.error,t.error=i.wlog.error,t.warn=i.wlog.warn,t.notice=i.wlog.notice,t.info=i.wlog.info,t.debug=i.wlog.debug,t.logLevels=i.LOG_LEVELS,t.stacktrace=function(){try{throw new Error("stacktrace")}catch(t){return t.stack}},t.logHelpers={_log:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=e[t];return i=[].concat(this._logPrefix()).concat(i),a.apply(void 0,o(Array.from(i||[])))},_logPrefix:function(){return[this.constructor.name]},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["error"].concat(o(Array.from(e))))},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["notice"].concat(o(Array.from(e))))},notice:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["notice"].concat(o(Array.from(e))))},info:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["info"].concat(o(Array.from(e))))},debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["debug"].concat(o(Array.from(e))))},log:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["error"].concat(o(Array.from(e))))}},t._initializers.initWLog=function(){var t,e,n,o,a,s,u,l,c,d,h,p,f,v=(0,r.parseUrl)(location.href);if(document.referrer&&(h=(0,r.parseUrl)(document.referrer)),((d=null==v||null===(t=v.params)||void 0===t?void 0:t.wlog)||top!==self&&(d=null===(e=h)||void 0===e||null===(n=e.params)||void 0===n?void 0:n.wlog))&&i.wlog.setLevel(d),((p=null==v||null===(o=v.params)||void 0===o?void 0:o.wgrep)||(p=null===(a=h)||void 0===a||null===(s=a.params)||void 0===s?void 0:s.wgrep))&&i.wlog.setGrep(new RegExp(p,"i")),(f=null==v||null===(u=v.params)||void 0===u?void 0:u.wgrepv)||(f=null===(l=h)||void 0===l||null===(c=l.params)||void 0===c?void 0:c.wgrepv))return i.wlog.setGrepv(new RegExp(f,"i"))},t._destructors.destroyWLog=function(){return null===i.wlog||void 0===i.wlog?void 0:i.wlog.reset()}}(window.Wistia)},(t,e,n)=>{var i=function(t,e){return function(){return t.apply(e,arguments)}},r=[].slice;!function(t){var e,o,a,s,u,l,c,d,h,p,f,v,y,m,g,b,_,w,E,O,P,k,S,T,C,A,j,M,I,D,L,B,x,R,F,W,N,H,V,U,z,q,G,K,Y,Q,X,$,Z,J,tt,et,nt,it,rt,ot,at,st,ut,lt,ct,dt,ht,pt,ft,vt,yt,mt,gt,bt,_t,wt,Et,Ot,Pt,kt,St,Tt,Ct,At,jt,Mt,It,Dt,Lt,Bt,xt,Rt,Ft,Wt,Nt,Ht,Vt,Ut,zt,qt,Gt,Kt,Yt,Qt;if(!t.PublicApi)c=n(97),h=n(106).StopGo,n(10).root,Pt=n(125),Et=Pt.pluginScriptsToLoad,nt=Pt.getPluginsNotInList,Ot=n(126).prefetchEngineAndPlugins,kt=n(127),dt=kt.injectJsonLd,Nt=kt.removeInjectedJsonLd,(It=n(24)).proto,wt=It.parseUrl,It.Url,s=n(131).CrossTimePublicApi,a=n(132).BetweenTimesPublicApi,Dt=n(46),tt=Dt.getLanguage,vt=Dt.isSupportedPlayerLanguage,yt=Dt.loadAndDefineTranslation,Lt=n(43),Yt=Lt.wData,Qt=Lt.wRemoveData,Bt=n(72),w=Bt.doTimeout,m=Bt.clearTimeouts,zt=n(26).seqId,f=n(5).assign,xt=n(4),g=xt.clone,bt=xt.merge,pt=xt.isEmpty,y=xt.cast,qt=xt.setDeep,K=xt.getDeep,ft=xt.isObject,U=xt.equalsDeep,Rt=n(74),b=Rt.countMetric,Ht=Rt.sampleMetric,n(54).poll,z=n(133).extractEmailFromParams,lt=n(134).inferPageUrl,rt=n(135).getPreferredCaptionsIndex,it=n(90).getPreferredAvailableLanguageIndex,Ft=n(91),ot=Ft.getViewerPreference,at=Ft.getViewerPreferences,Gt=Ft.setViewerPreference,E=n(47).dynamicImport,n(139).getChannelStorage,mt=n(140).maybeLoadAndSetupEmbedLinksThrottled,_=n(141).debounce,q=n(77).formattedDurationToSeconds,n(142).DEFAULT_ASPECT,Wt=n(18),e=Wt.AFTER_REPLACE_EVENT,o=Wt.BEFORE_REPLACE_EVENT,d=Wt.LOADED_MEDIA_DATA_EVENT,l=Wt.IMPL_CREATED_EVENT,ct=n(143).inferQualityRangeFromOpts,G=n(144).generateRelativeBlockCss,St=n(103),Z=St.getEmbedOptionStore,u=St.GLOBAL_ID_KEY,et=n(41).getOneApiHandleFromHashedId,Tt=n(145),$=Tt.getDefaultPlayerBorderRadius,Y=Tt.getDefaultBigPlayButtonBorderRadius,Q=Tt.getDefaultControlBarBorderRadius,X=Tt.getDefaultControlBarDistance,(Ct=n(100)).mediaDataUrl,Ct.mediaDataScriptRegExp,Ct.transformResponse,v=Ct.cacheMedia,J=n(101).getInitialMediaData,n(21).findScriptInDomBySrc,Vt=n(146).sanePlayerColor,p=n(105).TranslationApi,t.Judy=c,t.Assets=n(58),At=n(3),N=At.elemUnbindAllInside,H=At.elemWidth,k=At.elemAddClass,At.elemAfter,S=At.elemAnimate,T=At.elemAppend,C=At.elemBefore,A=At.elemFromObject,j=At.elemHasClass,M=At.elemHeight,I=At.elemInDom,D=At.elemIsHidden,L=At.elemOffset,At.elemPrepend,B=At.elemRebind,x=At.elemRemove,R=At.elemStyle,F=At.elemUnbind,W=At.elemUnbindAll,ut=At.inUserEventContext,Ut=n(147).scrollTop,jt=n(23),P=jt.eV1Protocol,O=jt.eV1HostWithPort,st=n(13).globalTrigger,n(148).uniqId,n(54).throttle,Mt=n(149),ht=Mt.insertIntoArray,Kt=Mt.toArray,gt=n(57).mediaDataTransforms,V=n(62).embedOptionsFromQueryParams,t.PublicApi=function(){function n(e,n){var r,o,a,s,u,l,c,d;this._definePluginMethod=i(this._definePluginMethod,this),this._doResize=i(this._doResize,this),this._doMonitor=i(this._doMonitor,this),this._loadTranslationsAndExecPlugins=i(this._loadTranslationsAndExecPlugins,this),this._loadTranslations=i(this._loadTranslations,this),this._initWithMediaData=i(this._initWithMediaData,this),this._allocEmbedSlot=i(this._allocEmbedSlot,this),this.on("problem",(d=this,function(t){return t.video=d,st("problem",t)})),this.info("initialize"),this._hasImpl=new h,this._notReplacing=new h,this._notReplacing(!0),this.hasPlugins=new h,this.up=new h,this.up(!0),this.down=new h,this.down(!1),this.inViewport=new h,this.inViewport(!1),this._implVersion=0,this._playlistIndex=0,this._attrs={},this.params={},this.options={},this.controls={},this._pluginStopGos={},this.plugins={},this.data={},this._definePluginMethod(),this.hashedId(e),this._givenOptions=n,this._playlist=[],this._setupContainer(),this._setupTranslationApiForLegacyEmbeds(),this._validate(),this._inferPropertiesBeforeMediaData(),this._dedupContainer(),this._addToGlobalCache(),this._setupBindings(),this.supportedPlayers=[],this.addToPlaylist(this.hashedId(),n),this.down(this.looksDown()),this.up(this.looksUp()),this._hasImpl(function(t){return function(){if(t._wvideoInUrl())return t._scrollToContainer(),t.popover?t.embedded((function(){return t.popover.showAndPlay()})):t.play()}}(this)),null!=(l=window.wistiaEmbeds)&&l.bindHandles(),this.monitor(),this.embedded(function(t){return function(){return t.monitor()}}(this)),this.ready(function(t){return function(){return t.monitor()}}(this)),o=function(t){return function(){return t._onInitializable((function(){return t._withFreeEmbedSlots((function(){var e,n,i,r;return t._initTime=(new Date).getTime(),t.hasData((function(){return t._hasDataTime=(new Date).getTime()})),t.embedded((function(){return t._embeddedTime=(new Date).getTime()})),t.ready((function(){return t._readyTime=(new Date).getTime(),t.removeSwatch()})),i=t._gatherOptions(),e=t.hashedId(),(null!=(r=i.mediaData)?r.hashedId:void 0)&&(v(i.mediaData.hashedId,i.mediaData),e=i.mediaData.hashedId),(n=f({},t._gatherOptions())).overrideMediaLanguage=n.language,J(e,n).then((function(e){return t._initWithMediaData(e)})).catch((function(){return b("player/failure/init-failed")}))}))}))}}(this),this._shouldBePopover()?(this.popover={show:function(t){return function(){return t._hasImpl((function(){return t.popover.show()}))}}(this),hide:function(t){return function(){return t._hasImpl((function(){return t.popover.hide()}))}}(this),height:function(t){return function(e,n){return null!=e?t._hasImpl((function(){return t.popover.height(e,n)})):0}}(this),width:function(t){return function(e,n){return null!=e?t._hasImpl((function(){return t.popover.width(e,n)})):0}}(this)},E("assets/external/popover.js").then(function(e){return function(){return e.popover=new t.Popover(e),o()}}(this))):o(),this.trigger("initembed"),this.container.dispatchEvent(new CustomEvent("initembed",{detail:{api:this}})),mt(),performance.mark("player_init_complete");try{if(t.detect.performanceMeasure)for(Ht("player/initembed-latency",performance.measure("player_init_latency","player_init_start","player_init_complete").duration),c=t.Metrics.embedTypeBuckets(this.container),s=0,u=c.length;s<u;s++)r=c[s],Ht("player/initembed-latency."+r,performance.measure("player_init_latency","player_init_start","player_init_complete").duration)}catch(t){a=t,setTimeout((function(){throw a}),0)}}return n.prototype._withFreeEmbedSlots=function(e){var n,i;return this._setupEmbedSlots(),n=null,this.embedded((i=this,function(){return clearTimeout(n),n=setTimeout((function(){return i._freeEmbedSlot()}),i._embedSlotThrottleInterval())})),null==this._freeEmbedSlotOnError&&(this._freeEmbedSlotOnError=function(t){return function(){return t._freeEmbedSlot(),t.unbind}}(this)),this.rebind("servererror",this._freeEmbedSlotOnError),t._embedSlotFree(function(t){return function(){return t._allocEmbedSlot(),n=setTimeout((function(){return t._freeEmbedSlot()}),1e3),e()}}(this))},n.prototype._onInitializable=function(e){return this.popover&&D(this.container)?(this.info("popover, delaying init until container is visible"),t.eventLoop.add(this.uuid+".wait_for_container_visible",500,(n=this,function(){var i;if(!D(n.container)){n.info("container became visible, initializing");try{e()}catch(e){i=e,t.error(i)}return t.eventLoop.remove}}))):e();var n},n.prototype._setupEmbedSlots=function(){if(null==t._embedSlots&&(t._embedSlots=[]),!t._embedSlotFree)return t._embedSlotFree=new h,t._embedSlotFree(!0)},n.prototype._maxEmbedSlots=function(){var t,e;return(e=function(){var e,n;for(t in n=[],e=Yt("video"))e[t],n.push(t);return n}().length)>20?5:e>10?8:13},n.prototype._embedSlotThrottleInterval=function(){return 500},n.prototype._freeEmbedSlot=function(){var e;if(this._setupEmbedSlots(),t._embedSlots=function(){var n,i,r,o;for(o=[],n=0,i=(r=t._embedSlots).length;n<i;n++)(e=r[n])!==this&&o.push(e);return o}.call(this),t._embedSlots.length<this._maxEmbedSlots())return t._embedSlotFree(!0)},n.prototype._allocEmbedSlot=function(){if(this._setupEmbedSlots(),t._embedSlots.push(this),t._embedSlots.length>=this._maxEmbedSlots())return t._embedSlotFree(!1)},n.prototype._shouldLazyLoad=function(){var t;return t=this._gatherOptions(),!window._inWistiaIframe&&parent===self&&(t.lazyLoad||this.popover&&!1!==t.lazyLoad)},n.prototype._initWithMediaData=function(e){var n,i,r,o,u,d;this.info("_initWithMediaData",e);try{0===t.Player.assets(e,{public:!0}).length&&t.Metrics.videoCount(this,"player/no-public-assets")}catch(t){n=t,this.debug(n)}if(!this.isRemoved())return e.error?(this.notice("display error message from server"),this._displayServerError(e),void this.trigger("servererror")):(this.hashedId(e.hashedId),this._originalMediaData=g(e),this._mediaData=e,this._mediaData=gt(g(e),this._gatherOptions()),this.data.media=e,o=this._optionSources(),this.info("_optionSources",o),(null!=(u=o.inline)?u.container:void 0)instanceof HTMLElement&&(o.inline=f({},o.inline,{container:o.inline.container.uniqueId||o.inline.container.id||"container-with-no-id"})),b("player/option-sources",1,{optionSources:o,hashedId:this._hashedId,url:window.location.href}),this._opts=this._gatherOptions(),this.info("_opts",g(this._opts)),bt(this._mediaData,this._opts.mergeMediaData),this._inferPropertiesAfterMediaData(),r=c.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=c.playerPlugins(this.judyCtx(),r,this._mediaData,this._opts),c.logWarnings(this.judyCtx(),r,this._mediaData,this._opts),this._implVersion+=1,i=this._implVersion,this._loadTranslationsAndExecPlugins().then((d=this,function(){var e,n,o;if(d.isRemoved())d.notice("abort, video already removed");else{if(d._implVersion===i){d.hasPlugins(!0),n=t.PublicApi.classFor(r),d.supportedPlayers=c.supportedPlayers(d.judyCtx(),d._mediaData.assets);try{d.crossTime=new s(d,d.unbind),d.betweenTimes=new a(d,d.unbind),d._impl=new n(d).init(),d.container.dispatchEvent(new CustomEvent(l,{detail:{impl:d._impl}}))}catch(t){throw e=t,d.error("Failed to initialize impl of class",n,"preferred",r,"supported",d.supportedPlayers),e}return d.grid=d._impl.setupGrid({initDimensions:!1}),d._hasImpl(!0),d.hasData(!0),(null!=(o=d._embedContainer)?o.parentNode:void 0)?(d._runMethodsFromOptions(),d._impl.embed(),d._getFadeInTime()>0&&R(d._impl.gridChildren(),{opacity:0}),d._impl.embedded((function(){return d._getFadeInTime()>0?S(d._impl.gridChildren(),{opacity:1},{time:d._getFadeInTime(),callback:function(){return d.trigger("transitiondone")}}):d.trigger("transitiondone")})),w(d.uuid+".prefetch_next_media",(function(){return d.prefetchNextMedia()}),2e3),d._injectJsonLd()):d.notice("embed(): container removed, giving up")}d.notice("_initWithMediaData(): impl changed from",i,"to",d._implVersion,"not completing init")}})));this.notice("abort, video already removed")},n.prototype._getFadeInTime=function(){return null!=this._opts.fadeInTime?this._opts.fadeInTime:200},n.prototype.judyCtx=function(){return this._judyCtx||(this._judyCtx=c.buildContext({pageUrl:this._attrs.pageUrl}))},n.prototype._wvideoInUrl=function(){return!this._opts._inIframe&&wt(this._attrs.pageUrl).params.wvideo===this.hashedId()},n.prototype._scrollToContainer=function(){var t;return t=L(this.container),Ut(t.top-100)},n.prototype._injectJsonLd=function(){if("WISTIA-PLAYER"!==this.container.tagName&&(this._jsonLdId&&Nt(this._jsonLdId),"notplayable"!==this.playerType&&"passwordprotected"!==this.playerType&&"carouselHardWall"!==this.playerType&&!1!==this._attrs.seo))return this._jsonLdId="w-json-ld"+this._impl.uuid,dt(this._jsonLdId,this._mediaData,{videoWidth:this.videoWidth(),videoHeight:this.videoHeight(),embedOptions:this._opts})},n.prototype._setDeprecatedProperties=function(){return this.options=g(this._opts),this.params=g(this._opts),bt(this.params,this._attrs),this._attrs.email&&(this.params.trackEmail=this._attrs.email),this._hasImpl((t=this,function(){var e;return t.playerType=t.embedType=null!=(e=t._impl)?e.playerType:void 0}));var t},n.prototype.elem=function(){var t;return null!=(t=this._impl)&&"function"==typeof t.elem?t.elem():void 0},n.prototype._loadTranslations=function(){var t;return t=this.captionsLanguage(),vt(t.iso6392LanguageCode)?yt(t.iso6392LanguageCode):Promise.resolve()},n.prototype._loadTranslationsAndExecPlugins=function(){return Promise.all([this._loadTranslations(),this._execPlugins()])},n.prototype._execPlugins=function(){var e;return this._pluginScripts=Et(this._mediaData,this._opts,this._playerPlugins),t.plugin._setFnForDefinedPlugins(this,this._pluginScripts),(e=nt(this._pluginScripts)).length>0&&b("custom-plugin-exec",1,{customPlugins:e,hashedId:this._hashedId,url:window.location.href}),this.info("_execPlugins",this._pluginScripts),t.plugin._execQueue(this,this._pluginScripts)},n.prototype._optionSources=function(t){var e,n,i,r,o,a,s,l,c,d,h,p;if(null==t&&(t={}),"v1"===(o=(t=bt({givenOptions:g(this._givenOptions),mediaData:g(this._mediaData),hashedId:this._hashedId,container:this.container},t)).givenOptions).version?i={}:t.mediaData?(i=g(this._customizeEmbedOptions||t.mediaData.embedOptions),t.preserveStillUrl||delete i.stillUrl):i={},s=V(["disallowOriginalFilePlayback","autoPlay","deliveryCdn","forceInstantHls","forceOriginalFilePlayback","hls","techInfo"],this._inferPageUrl()),n=t.container.uniqueId||t.container.id,e=o.channelPreferences||(null!=(l=o.mediaData)&&null!=(c=l.embedOptions)?c.channelPreferences:void 0)||{},r={},delete(h={customize:i,global:Z(u),hashedId:Z(t.hashedId,et),dom:Z("__"+n+"_dom_options__"),container:Z(n),inline:o,inferredOptions:r,viewerPreferences:at(),channelPreferences:e,queryParamOptions:s,override:t.override||{}}).viewerPreferences.plugin,o.optionSourceOverrides)for(a in d=o.optionSourceOverrides)p=d[a],h.hasOwnProperty(a)&&(h[a]=p);for(a in h)p=h[a],pt(p)&&delete h[a];return h},n.prototype._mergeSources=function(t,e){var n,i,r,o,a;for(n in i={},t)a=t[n],(null!=(r=e.only)?r.indexOf(n):void 0)>=0||(null!=(o=e.except)?o.indexOf(n):void 0)<0?bt(i,a):e.only||e.except||bt(i,a);return i},n.prototype._gatherOptions=function(t){var e,n;return null==t&&(t={}),n=this._optionSources(t),"v1"===(e=this._mergeSources(n,t)).version&&(n.customize={},e=this._mergeSources(n,t)),y(e),this._normalizeOptions(e),e},n.prototype.hashedId=function(t){return null!=t?("number"==typeof t&&(t=t.toString()),this._hashedId=t,this):this._hashedId},n.prototype.sourceHashedId=function(){var t;return(null!=(t=this._mediaData)?t.sourceHashedId:void 0)||this.hashedId()},n.prototype.isAudio=function(){return"Audio"===this._mediaData.mediaType},n.prototype.isLiveMedia=function(){var t;return"LiveStream"===(null!=(t=this._mediaData)?t.mediaType:void 0)},n.prototype._normalizeOptions=function(t){return t.twitter&&(this.info("twitter detected"),K(t,"plugin.socialbar-v1")&&(this.info("disabled socialbar"),qt(t,"plugin.socialbar-v1.on",!1))),null!=t.playButtonVisible&&(t.playButton=y(t.playButtonVisible),delete t.playButtonVisible),t},n.prototype._setupContainer=function(){var t,e,n,i,r,o,a,s,u,l,c,d,h,p;if(this._containerId=this._givenOptions.container?this._givenOptions.container:"wistia_"+this.hashedId(),this.wistiaPlaylistElem=null,"string"==typeof this._containerId?this.container=document.getElementById(this._containerId):this.container=this._containerId,this.container){if("WISTIA-PLAYER"===this.container.tagName&&"WISTIA-PLAYLIST"===(null!=(s=this.container.parentElement)?s.tagName:void 0))return;if("WISTIA-PLAYER"===this.container.tagName&&(this._shouldBePopover()||this.wistiaPlaylistElem)){for(this.webComponentParent=this.container.parentNode,this._startingHtml=this.webComponentParent.cloneNode(!0),e=0,n=(u=Array.prototype.slice.call(this._startingHtml.childNodes)).length;e<n;e++)"WISTIA-PLAYER"===(t=u[e]).tagName&&x(t);for(this._startingHtml=this._startingHtml.innerHTML,o=0,i=(l=Array.prototype.slice.call(this.webComponentParent.childNodes)).length;o<i;o++)t=l[o],j(t,"wistia_swatch")||"WISTIA-PLAYER"===t.tagName||"WISTIA-CHANNEL-CAROUSEL"===t.tagName||x(t)}else if("WISTIA-PLAYER"!==this.container.tagName){for(this.container.wistiaApi=this,this._startingHtml=this.container.innerHTML,a=0,r=(c=Array.prototype.slice.call(this.container.childNodes)).length;a<r;a++)t=c[a],j(t,"wistia_swatch")||x(t);k(this.container,"wistia_embed_initialized")}}else"string"==typeof this._containerId&&(this.container=document.querySelector("[unique-id='"+this._containerId+"']"),"WISTIA-PLAYLIST"===(null!=(d=this.container)&&null!=(h=d.parentElement)?h.tagName:void 0)&&(this.wistiaPlaylistElem=this.container.parentElement),this._startingHtml=null!=(p=this.container)?p.innerHTML:void 0);return this.info("container",this.container)},n.prototype._setupTranslationApiForLegacyEmbeds=function(){if(this.container&&"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component")&&!this.container.translationApi)return this.translationApi=new p(this.container),this.container.translationApi=this.translationApi},n.prototype._inferPropertiesBeforeMediaData=function(){var e;if(this.chrome=A({id:zt("wistia_chrome_"),class:"w-chrome notranslate",style:G,tabindex:-1}),R(this.chrome,{outline:"none",overflow:"hidden",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),e=this._gatherOptions(),this._shouldBePopover()?(this._popoverContainer=A({role:"dialog",id:this.container.id+"_popover_container"}),t.detect.safari||t.detect.iphone||t.detect.ipad||this._popoverContainer.setAttribute("aria-modal",!0),this._embedContainer=A({id:this.container.id+"_popover",style:{height:this._popoverSize(e).height+"px",width:this._popoverSize(e).width+"px"}}),"WISTIA-PLAYER"===this.container.tagName&&R(this._embedContainer,{position:"absolute"}),T(this._popoverContainer,this._embedContainer),T(document.body,this._popoverContainer)):this._embedContainer=this.container,T(this._embedContainer,this.chrome),e.uuid?this.uuid=e.uuid:this.uuid=zt(),this.info("uuid",this.uuid),null!=e.playlistLoop&&(this._attrs.playlistLoop=e.playlistLoop),this._embedContainer)return this._attrs.startingWidth=H(this._embedContainer),this._attrs.startingHeight=M(this._embedContainer)},n.prototype._shouldBePopover=function(){var t;return!(t=this._gatherOptions())._inIframe&&(!0===t.wistiaPopover||!0===t.popover||"v2"===t.popover)},n.prototype._popoverSize=function(t){var e,n,i,r,o;return null==t&&(t=this._opts),null==t&&(t={}),t.popoverSize?(o=(r=(null!=(i=t.popoverSize)?i.split("x"):void 0)||[640,360])[0],e=r[1],o=parseInt(o),e=parseInt(e)):this._mediaData&&(n=this.asset({container:"mp4",width:[0,960],sortBy:"width desc"}))?(o=n.width,e=n.height):(o=640,e=360),{width:o,height:e}},n.prototype._inferPropertiesAfterMediaData=function(){var e,n,i,r,o,a,s,u,l,c,d,h,p,f,v,y;return"WISTIA-PLAYER"===this.container.tagName&&this.isAudio()&&0===M(this.chrome)&&(this.chrome.style.height="45px"),this._opts.authorization&&(this._attrs.authorization=this._opts.authorization),this._attrs.shouldTrack=!this._opts.doNotTrack,this._attrs.seekThreshold=this._opts.seekThreshold||1.5,c=(d=ct(this._opts,this._mediaData))[0],l=d[1],this._attrs.qualityMin=c,this._attrs.qualityMax=l,(null!=(h=this.container.parentNode)?h.classList.contains("wistia_responsive_wrapper"):void 0)&&(null!=(p=this.container.parentNode)&&null!=(f=p.parentNode)?f.classList.contains("wistia_responsive_padding"):void 0)&&(this.container.parentNode.style.height="100%",this.container.parentNode.style.left=0,this.container.parentNode.style.position="absolute",this.container.parentNode.style.top=0,this.container.parentNode.style.width="100%",this.container.parentNode.parentNode.style.padding=1/this._mediaData.aspectRatio*100+"% 0 0 0",this.container.parentNode.parentNode.style.position="relative"),this._opts.videoQuality&&b("legacy/video-quality-set",1,{hashedId:this._hashedId,videoQuality:this._opts.videoQuality,url:window.location.href}),this._attrs.qualityMax<this._attrs.qualityMin&&(this.error("qualityMax "+this._attrs.qualityMax+" is less than qualityMin "+this._attrs.qualityMin+". Setting qualityMax to "+this._attrs.qualityMin+"."),this._attrs.qualityMax=this._attrs.qualityMin),this._attrs.pageUrl=this._inferPageUrl(),this._attrs.referrerUrl||(this._attrs.referrerUrl=(null!=(v=this._opts)?v.referrerUrl:void 0)||document.referrer),null!=this._opts.trackEmail&&(this._attrs.email=this._opts.trackEmail),!this._attrs.email&&this._attrs.shouldTrack&&(y=z(this._attrs.pageUrl))&&(this._attrs.email=y),!this._attrs.email&&t.localStorage([this._attrs.pageUrl,"trackEmail"])&&(this._attrs.email=t.localStorage([this._attrs.pageUrl,"trackEmail"])),this._handleDidPlayerColorChange(),e=(o=this._attrs.captionsBackgroundColor)&&o!==this._opts.captionsBackgroundColor,this._attrs.captionsBackgroundColor=this._opts.captionsBackgroundColor,e&&this.container.dispatchEvent(new CustomEvent("captionsbackgroundcolorchange",{detail:{color:this._attrs.captionsBackgroundColor,prevColor:o}})),r=(u=this._attrs.captionsTextSize)&&u!==this._opts.captionsTextSize,this._attrs.captionsTextSize=this._opts.captionsTextSize,r&&this.container.dispatchEvent(new CustomEvent("captionstextsizechange",{detail:{size:this._attrs.captionsTextSize,prevSize:u}})),i=(s=this._attrs.captionsFontFamily)&&s!==this._opts.captionsFontFamily,this._attrs.captionsFontFamily=this._opts.captionsFontFamily,i&&this.container.dispatchEvent(new CustomEvent("captionsfontfamilychange",{detail:{font:this._attrs.captionsFontFamily,prevFont:s}})),n=(a=this._attrs.captionsBorderRadius)&&a!==this._opts.captionsBorderRadius,this._attrs.captionsBorderRadius=this._opts.captionsBorderRadius,n&&this.container.dispatchEvent(new CustomEvent("captionsborderradiuschange",{detail:{borderRadius:this._attrs.captionsBorderRadius,prevBorderRadius:a}})),this._attrs.forceOriginalFilePlayback=this._opts.forceOriginalFilePlayback,this._attrs.disallowOriginalFilePlayback=this._opts.disallowOriginalFilePlayback,this._attrs.aspect=this._opts.aspect,null!==this._opts.audioDescriptionControl&&void 0!==this._opts.audioDescriptionControl&&(this._attrs.audioDescriptionControl=this._opts.audioDescriptionControl),null!==this._opts.audioDescriptionIsRequired&&void 0!==this._opts.audioDescriptionIsRequired&&(this._attrs.audioDescriptionControl=this._opts.audioDescriptionIsRequired),null!==this._opts.autoplay&&void 0!==this._opts.autoplay?this._attrs.autoplay=this._opts.autoplay:this._attrs.autoplay=this._opts.autoPlay,null!==this._opts.bigPlayButton&&void 0!==this._opts.bigPlayButton?this._attrs.bigPlayButton=this._opts.bigPlayButton:this._attrs.bigPlayButton=this._opts.playButton,null!==this._opts.controlsVisibleOnLoad&&void 0!==this._opts.controlsVisibleOnLoad?this._attrs.controlsVisibleOnLoad=this._opts.controlsVisibleOnLoad:this._attrs.controlsVisibleOnLoad=!0,null!==this._opts.copyLinkAndThumbnailEnabled&&void 0!==this._opts.copyLinkAndThumbnailEnabled?this._attrs.copyLinkAndThumbnail=this._opts.copyLinkAndThumbnailEnabled:null!==this._opts.copyLinkAndThumbnail&&void 0!==this._opts.copyLinkAndThumbnail?this._attrs.copyLinkAndThumbnail=this._opts.copyLinkAndThumbnail:this._attrs.copyLinkAndThumbnail=!0,this._attrs.doNotTrack=this._opts.doNotTrack,this._attrs.endVideoBehavior=this._opts.endVideoBehavior||"default",this._attrs.forceInstantHls=this._opts.forceInstantHls,null!==this._opts.fullscreenControl&&void 0!==this._opts.fullscreenControl?this._attrs.fullscreenControl=this._opts.fullscreenControl:this._attrs.fullscreenControl=this._opts.fullscreenButton,this._attrs.playbackRateControl=this._opts.playbackRateControl,null!==this._opts.playBarControl&&void 0!==this._opts.playBarControl?this._attrs.playBarControl=this._opts.playBarControl:this._attrs.playBarControl=this._opts.playbar,this._attrs.playerBackgroundColor=this._opts.playerBackgroundColor||"#000000",this._attrs.playlistLinks=this._opts.playlistLinks,null!==this._opts.playPauseControl&&void 0!==this._opts.playPauseControl?this._attrs.playPauseControl=this._opts.playPauseControl:this._attrs.playPauseControl=this._opts.smallPlayButton,this._attrs.playPauseNotifier=this._opts.playPauseNotifier,this._attrs.popoverAnimateThumbnail=this._opts.popoverAnimateThumbnail,this._attrs.popoverAnimation=this._opts.popoverAnimation,this._attrs.popoverBorderColor=this._opts.popoverBorderColor,this._attrs.popoverBorderRadius=this._opts.popoverBorderRadius,this._attrs.popoverBorderWidth=this._opts.popoverBorderWidth,this._attrs.popoverBoxShadow=this._opts.popoverBoxShadow,this._attrs.popoverCaption=this._opts.popoverCaption,this._attrs.popoverCaptionContainer=this._opts.popoverCaptionContainer,this._attrs.popoverContent=this._opts.popoverContent,null!==this._opts.popoverDisableAutoplay&&void 0!==this._opts.popoverDisableAutoplay?this._attrs.popoverDisableAutoplay=this._opts.popoverDisableAutoplay:this._attrs.popoverDisableAutoplay=this._opts.popoverDisableAutoPlay,this._attrs.popoverShowOnLoad=this._opts.popoverShowOnLoad,this._attrs.popoverOverlayColor=this._opts.popoverOverlayColor,this._attrs.popoverOverlayOpacity=this._opts.popoverOverlayOpacity,this._attrs.popoverPreventScroll=this._opts.popoverPreventScroll,null!==this._opts.poster&&void 0!==this._opts.poster?this._attrs.poster=this._opts.poster:this._attrs.poster=this._opts.stillUrl,this._attrs.preload=this._opts.preload,this._attrs.qualityControl=this._opts.qualityControl,this._attrs.resumable=this._opts.resumable,this._attrs.seo=this._opts.seo,"WISTIA-PLAYER"!==this.container.tagName||null!==this._opts.seo&&void 0!==this._opts.seo||(this._attrs.seo=!0),this._attrs.settingsControl=this._opts.settingsControl,null!==this._opts.silentAutoplay&&void 0!==this._opts.silentAutoplay?this._attrs.silentAutoplay=this._opts.silentAutoplay:this._attrs.silentAutoplay=this._opts.silentAutoPlay,this._attrs.statsUrl=this._opts.statsUrl,null!==this._opts.transparentLetterbox&&void 0!==this._opts.transparentLetterbox?this._attrs.transparentLetterbox=this._opts.transparentLetterbox:("transparent"===this._opts.wmode||$(this._opts)>0)&&(this._attrs.transparentLetterbox=!0),this._opts.volume&&(this._attrs.volume=this._opts.volume),this._attrs.volumeControl=this._opts.volumeControl,null!==this._opts.wistiaPopover&&void 0!==this._opts.wistiaPopover?this._attrs.wistiaPopover=this._opts.wistiaPopover:this._attrs.wistiaPopover=this._opts.popover,this._attrs.bigPlayButtonBorderRadius=Y(this._opts),this._attrs.controlBarBorderRadius=Q(this._opts),this._attrs.floatingControlBar=this._opts.floatingControlBar||!1,this._attrs.controlBarDistance=X(this._opts),this._attrs.playerBorderRadius=$(this._opts),this._attrs.roundedPlayer=this._opts.roundedPlayer||0,this._attrs.captionsBackgroundColor=this._opts.captionsBackgroundColor,this._attrs.captionsTextColor=this._opts.captionsTextColor,this._attrs.captionsTextSize=this._opts.captionsTextSize,this._attrs.captionsFontFamily=this._opts.captionsFontFamily,this._attrs.captionsBorderRadius=this._opts.captionsBorderRadius,this._opts.noDeprecatedProperties||this._setDeprecatedProperties(),this},n.prototype._handleDidPlayerColorChange=function(t,e){var n,i,r,o,a,s,u,l;return null==t&&(t={}),null==e&&(e={}),o=g(this._attrs.playerColor),i=g(this._opts.playerColor),a=g(this._attrs.playerColorGradient),r=g(this._opts.playerColorGradient),s=o&&o!==i,n=a&&!U(a,r),l=this,u=function(){return l._attrs.playerColor=Vt(i||"636155"),l._attrs.playerColorGradient=r,(s||n)&&l.container.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:i,prevColor:o,gradient:r,prevGradient:a}})),l.unbind("transitiondone",u)},!1===this._notReplacing()?this.bind("transitiondone",u):u()},n.prototype._inferPageUrl=function(){var t;return(null!=(t=this._opts)?t.pageUrl:void 0)?this._opts.pageUrl:lt()},n.prototype._runMethodsFromOptions=function(){var e,n,i,r,o;if(null!=this._opts.foreignData&&this.foreignData(this._opts.foreignData),null!=this._opts.email?this.email(this._opts.email):null!=this._opts.trackEmail&&this.email(this._opts.trackEmail),null!=this._opts.playerLanguage&&this.playerLanguage(this._opts.playerLanguage),null!=this._opts.videoFoam&&this.videoFoam(this._opts.videoFoam),this._opts.controlScaling&&this.controlScaling(this._opts.controlScaling),null!=this._attrs.volume&&this.volume(this._attrs.volume),this.isLiveMedia()||(!0!==this._opts.muted&&0!==this._attrs.volume||this.mute(),!1===this._opts.muted&&this.unmute()),this._opts.suppressPlay&&this.suppressPlay(this._opts.suppressPlay),this.popover&&!("function"==typeof(e=this.popover).isVisible?e.isVisible():void 0)||!this._attrs.autoplay||this._hasImpl((o=this,function(){return o._playSuspendedOffScreenEnabled()?o.inViewport()?o.play():o.bind("enterviewport",(function(){return o.play(),o.unbind})):o.play()})),this._opts.pause&&this.pause(),null!=this._opts.time)return i=t.detect.iphone||t.detect.ipad||t.detect.android,n=this.popover&&!this.popover._visible,r="playing"!==this.state()&&(i||n),this.time(this._opts.time,{lazy:r})},n.prototype._playSuspendedOffScreenEnabled=function(){return null!=this._opts.playSuspendedOffScreen&&"auto"!==this._opts.playSuspendedOffScreen?this._opts.playSuspendedOffScreen:this.isMuted()},n.prototype._validate=function(){var t;if((t=this._errors()).length>0)throw new Error(t.join(", "));return!0},n.prototype._errors=function(){var t;return t=[],this.container||t.push('Could not find element with ID "'+this._containerId+'" in DOM. Failed to initialize video "'+this._hashedId+'".'),t},n.prototype._dedupContainer=function(){var t,e,n,i,r,o,a,s,u,l;if(Yt("video")){for(l in u=[],o=Yt("video"))e=o[l],t=this.container.uniqueId||this.container.id,n=(null!=(a=e.container)?a.uniqueId:void 0)||(null!=(s=e.container)?s.id:void 0),t&&n===t&&u.push(e);for(i=0,r=u.length;i<r;i++)n=(e=u[i]).container.uniqueId||e.container.id,this.notice("_dedupContainer",n),e.remove();if(u.length>0)return this.container.wistiaApi=this}},n.prototype._addToGlobalCache=function(){var t;return this.info("_addToGlobalCache",this.uuid),t=this.container.translationApi?this.container.translationApi:this,Yt(["video",this.uuid],t)},n.prototype._displayServerError=function(t){var e;return"WISTIA-PLAYER"===this.container.tagName&&(t.iframe?(e=P()+"//"+O(),this.container.shadowRoot.innerHTML="<iframe src='"+e+"/embed/iframe/"+this.hashedId()+"' height='"+this.height()+"' width='"+this.width()+"' frameborder='0' scrolling='no'></iframe>"):this.container.shadowRoot.innerHTML="<div style='background:#fff;border:2px dashed #ddd;color:#aaa;font-family:Century Gothic,Arial;font-size:14px;text-align:center;width:"+this.width()+";height:"+this.height()+";'><div style='padding:20px;'>"+(t.message||t.error)+"</div></div>"),t.iframe?(e=P()+"//"+O(),this.container.innerHTML="<iframe src='"+e+"/embed/iframe/"+this.hashedId()+"' height='"+this.height()+"' width='"+this.width()+"' frameborder='0' scrolling='no'></iframe>"):this.container.innerHTML="<div style='background:#fff;border:2px dashed #ddd;color:#aaa;font-family:Century Gothic,Arial;font-size:14px;text-align:center;width:"+this.width()+";height:"+this.height()+";'><div style='padding:20px;'>"+(t.message||t.error)+"</div></div>"},n.prototype._implExec=function(){var e,n,i;return n=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],this._hasImpl((i=this,function(){var r;return i._impl[n]?i._impl[n]._originalMethod===i[n]&&void 0!==i[n]?void i.warn("calling "+n+" would result in an infinite loop"):(r=i._impl)[n].apply(r,e):i.warn(n+" is not defined",t.stacktrace())})),this},n.prototype._implGet=function(){var e,n,i,o;return i=arguments[0],n=arguments[1],e=3<=arguments.length?r.call(arguments,2):[],null==n&&(n=null),this._hasImpl()?this._impl[i]?this._impl[i]._originalMethod===this[i]&&void 0!==this[i]?void this.warn("calling "+i+" would result in an infinite loop"):(o=this._impl)[i].apply(o,e):this.warn(i+" is not defined",t.stacktrace()):n},n.prototype._implSetOrGet=function(){var t,e,n;return n=arguments[0],e=arguments[1],(t=3<=arguments.length?r.call(arguments,2):[]).length>0?this._implExec.apply(this,[n].concat(r.call(t))):this._implGet(n,e)},n.prototype._implPromise=function(){var t,e,n;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],new Promise((n=this,function(i,r){return n._hasImpl((function(){var o,a;return n._impl[e]?n._impl[e]._originalMethod===n[e]&&void 0!==n[e]?void n.warn("calling "+e+" would result in an infinite loop"):(a=(o=n._impl)[e].apply(o,t))instanceof Promise?a.then(i).catch(r):i(a):r(new Error(e+" is not defined on _impl"))}))}))},n.prototype._commandQueueImplPromise=function(){var e,n,i;return n=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],this._hasImpl((i=this,function(){return i._impl[n]&&i._impl.commandQueueOpen?i._impl[n]._originalMethod===i[n]&&void 0!==i[n]?void i.warn("calling "+n+" would result in an infinite loop"):i._impl.commandQueueOpen.synchronize((function(t){var r;return i._impl?(r=i._impl)[n].apply(r,e).finally((function(){return t()})):Promise.resolve()})):i.warn(n+" is not defined",t.stacktrace())})),this},n.prototype.rebuild=function(){return this._hasImpl((t=this,function(){return t._impl.rebuild(),t._runMethodsFromOptions()}));var t},n.prototype.fullRebuild=function(t){return null==t&&(t={}),this.replaceWith(this._impl._mediaData,bt({force:this._impl.playerType,inPlace:!1,transition:"none"},t))},n.prototype.rebuildAs=function(t,e){return null==e&&(e={}),this.fullRebuild(bt(this._givenOptions,e,{force:t,transition:"none"}))},n.prototype.replace=function(t,e){return null==e&&(e={}),this.replaceWith(t,bt({inlineOptionsOnly:!0},e))},n.prototype.replaceWith=function(t,e){var n,i;return null==e&&(e={}),this.info("replaceWith",t,e),i=this,n=function(){var n,r,a,s,u;return u=i._impl?i._replaceWithMediaData:i._initWithMediaData,i._impl.trigger("beforereplace",t),i.container.dispatchEvent(new CustomEvent(o,{detail:{mediaId:t}})),i._notReplacing(!1),i.hasData(!1),i._hasImpl(!1),i._initTime=(new Date).getTime(),i.hasData((function(){return i._hasDataTime=(new Date).getTime(),i.embedded((function(){return i._embeddedTime=(new Date).getTime()}))})),i._lastHeight=null,ft(t)&&t.hashedId&&(v(t.hashedId,t),t=t.hashedId),(null!=(a=e.mediaData)?a.hashedId:void 0)&&(v(e.mediaData.hashedId,e.mediaData),t=e.mediaData.hashedId),n=g(i._gatherOptions()),(r=bt({},n,e)).overrideMediaLanguage=null!=(s=i.findLocalizationByLanguage(r.language||i.mediaLanguage().ietfLanguageTag))?s.iso6392LanguageCode:void 0,J(t,r).then((function(t){return u.call(i,t,e)})).catch((function(){return b("player/failure/replace-failed")}))},this._hasImpl(function(t){return function(){return t._notReplacing(n)}}(this)),this},n.prototype._replaceWithMediaData=function(){var t,e;return t=1<=arguments.length?r.call(arguments,0):[],this._impl.commandQueueOpen.synchronize((e=this,function(n){return e._replaceWithMediaDataQueuable.apply(e,t),e._notReplacing(n)}))},n.prototype._replaceWithMediaDataQueuable=function(n,i){var r,o,a,s,u,p,f,v,m,b,_,E,O,P,k,S;return null==i&&(i={}),i=g(i),this.info("_replaceWithMediaData",n,i),n.error?(this._displayServerError(n),void this.trigger("servererror")):(null!=i.playlistIndex?(this._playlistIndex=i.playlistIndex,delete i.playlistIndex):this._inPlaylist(n.hashedId)&&(this._playlistIndex=this._playlistIndexOf(n.hashedId)),null!=i.playlistShouldAutoAdvance&&(this._playlistShouldAutoAdvance=i.playlistShouldAutoAdvance),i.inlineOptionsOnly&&(u=i.inlineOptionsOnly,delete i.inlineOptionsOnly),null!=i.inPlace&&(s=i.inPlace,delete i.inPlace),null!=i.transition&&(P=i.transition,delete i.transition),null!=i.transitionTime&&(k=i.transitionTime,delete i.transitionTime),this.hasData(!1),this._hasImpl(!1),null!=(m=this._impl._tracker)&&m.stopMonitoring(),this._clobberVideoBindings(),this._savedState={},this._suspended=!1,"function"==typeof(f=this._impl).wipeOutstandingAsyncFunctions&&f.wipeOutstandingAsyncFunctions(),this._hashedId=n.hashedId,this._originalMediaData=n,this.data.media=n,this._givenOptions=i,this._mediaData=n,this.container.dispatchEvent(new CustomEvent(d,{detail:{mediaData:n}})),this._opts=u?this._gatherOptions({only:"inline"}):this._gatherOptions(),this._embedOptions=null,this._mediaData=gt(g(n),this._opts),this._languages=null,this._captionsLanguages=null,this._mediaLanguages=null,this._customizeEmbedOptions=null,f.trigger("beforereplaceengine"),f.freezeLastFrame(),v=new h,O=function(){return v.go()},ut()&&!0===this._attrs.autoplay&&!f.isMuted()&&(r=f.engine)?(r.stopStreaming(),r.play().then(O).catch(O),setTimeout(O,2e3)):O(),!1===y(null!=(b=this._mediaData.embedOptions.plugin)&&null!=(_=b.passwordProtectedVideo)?_.on:void 0)&&null!=(null!=(E=this._opts.plugin)?E.passwordProtectedVideo:void 0)&&(this._opts.plugin.passwordProtectedVideo.on=!1),this.info("_opts",g(this._opts)),bt(this._mediaData,this._opts.mediaData),this._cachedRemapTime=null,this._cachedLoadedRemapTime=null,this._inferPropertiesAfterMediaData(),a="notplayable"!==f.playerType&&("passwordprotected"!==f.playerType&&("carouselHardWall"!==f.playerType&&(!("html5"!==f.playerType||!(t.detect.iphone||t.detect.android||t.detect.ipad||t.detect.safari))||null!=s&&s))),this.info("inPlace",a),p=c.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=c.playerPlugins(this.judyCtx(),p,this._mediaData,this._opts),c.logWarnings(this.judyCtx(),p,this._mediaData,this._opts),a&&(this.removePlugins(),f.stopStreaming()),this.plugin=null,this._pluginStopGos={},this._definePluginMethod(),this.hasPlugins(!1),f.commandQueueOpen.setQueue([]),this.removeSwatch(),this._implVersion+=1,o=this._implVersion,v((S=this,function(){var n;return null!=(n=f.engine)&&n.destroy(),S._loadTranslationsAndExecPlugins().then((function(){var n,i,r;if(S._implVersion===o)return S.hasPlugins(!0),S.supportedPlayers=c.supportedPlayers(S.judyCtx(),S._mediaData.assets),i=t.PublicApi.classFor(p),S._impl=new i(S).init(),S.container.dispatchEvent(new CustomEvent(l,{detail:{impl:S._impl}})),S._setupBindings(),S.grid=a?S._impl.grid=f.grid:S._impl.setupGrid({initDimensions:!1}),"function"==typeof(n=S._impl).transferStateFrom&&n.transferStateFrom(f),S._hasImpl(!0),S.hasData(!0),a||S._runMethodsFromOptions(),a?S._replaceMode((function(){return S._impl.initFrom(f)})):S._replaceMode((function(){return S._embedWithTransitionFrom(f,P,{time:k})})),S.embedded((function(){return S._notReplacing(!0)})),a&&S._runMethodsFromOptions(),S._allowContainerMatch()&&(S._allowFoam()&&!f._opts.videoFoam&&(S.container.style.width="",S.container.style.height=""),null!=(r=S._impl)&&r.width(S.containerWidth(),{constrain:!0})),w(S._impl.uuid+".inject_json_ld",(function(){return S._injectJsonLd()})),S.trigger("afterreplace"),S.container.dispatchEvent(new CustomEvent(e,{detail:{api:S}})),w(S.uuid+".prefetch_next_media",(function(){return S.prefetchNextMedia()}),2e3);S.notice("replaceWith(): impl changed from",o,"to",S._implVersion,"not completing replacement")}))})))},n.prototype._embedWithTransitionFrom=function(t,e,n){var i,r;return null==e&&(e="none"),this.info("_embedWithTransitionFrom",t,e),"none"!==e&&b("player/replacewith-transition",1,{transition:e,hashedId:this._hashedId,url:window.location.href}),i=new Promise((r=this,function(t){var e,n;return(null!=(e=r._impl.lastPlayInfo())?e.isPending:void 0)?(n=r._impl.on("play",(function(){return n(),t()})),w(r._impl.uuid+".slow_play_fallback",(function(){return r._impl.embedded((function(){return n(),t()}))}),2e3)):r._impl.embedded(t)})),"slide"===e||"slideleft"===e?(this.info("slideleft"),this._impl.embed(t),i.then(function(e){return function(){return t.slideOutLeft(n,(function(){return t.remove()})),e._impl.slideInLeft(n,(function(){return e._impl.trigger("transitiondone")}))}}(this))):"slideright"===e?(this.info("slideright"),this._impl.embed(t),i.then(function(e){return function(){return t.slideOutRight(n,(function(){return t.remove()})),e._impl.slideInRight(n,(function(){return e._impl.trigger("transitiondone")}))}}(this))):"fade"===e?(this.info("fade"),!0!==t._attrs.transparentLetterbox&&(t.grid.center.style.backgroundColor="#000"),null!=n.time&&(n.time=Math.round(n.time/2)),t.fadeOut(n,function(e){return function(){var r;return t.remove(),!0!==e._impl._attrs.transparentLetterbox&&null!=(r=e._impl.grid)&&(r.center.style.backgroundColor="#000"),e._impl.embed(t),i.then((function(){return e._impl.fadeIn(n,(function(){var t;return null!=(t=e._impl)&&(t.grid.center.style.backgroundColor=""),e._impl.trigger("transitiondone")}))}))}}(this))):"crossfade"===e?(this.info("crossfade"),t.grid&&R(t.grid.root,{position:"absolute",zIndex:0}),R(this._impl.grid.root,{zIndex:1}),this._impl.embed(t),i.then(function(e){return function(){return e._impl.fadeIn(n,(function(){return t.remove(),R(e._impl.grid.root,{zIndex:""}),e._impl.trigger("transitiondone")}))}}(this))):(this.info("no transition"),this._impl.embed(t),t.remove(),i.then(function(t){return function(){return setTimeout((function(){if(t._impl)return t._impl.trigger("transitiondone")}),0)}}(this)))},n.prototype._clobberVideoBindings=function(){var e,n,i;for(e in this.crossTime.removeAllBindings(),this.betweenTimes.removeAllBindings(),t.EventShepherdManager[this.container.id]&&this.container&&t.EventShepherdManager[this.container.id].removeAllListeners(this.container),i=[],n=this._bindings)n[e],"afterreplace"!==e&&"beforereplace"!==e&&"all"!==e?i.push(this.unbind(e)):i.push(void 0);return i},n.prototype._replaceMode=function(t){return this.info("_replaceMode",!0),this._impl._replacing=!0,t(),this._impl.embedded((e=this,function(){return e._impl._replacing=!1,e.info("_replaceMode",!1)}));var e},n.prototype.remove=function(e){var n,i,r,o,a,s,u,l,c;return null==e&&(e={}),this.info("remove"),this.trigger("down"),this.trigger("beforeremove"),this._freeEmbedSlot(),null!=(n=this.elem())&&null!=(i=n.mux)&&"function"==typeof i.destroy&&i.destroy(),this.removeSwatch(),this._implExec("remove",{trigger:!1}),this._hasImpl(!1),Nt(this._jsonLdId),null!=(r=this.popover)&&"function"==typeof r.remove&&r.remove(),x(this._popoverContainer),null!=(o=this._impl)&&o.stopStreaming(),null!=(a=this._intersectionObserver)&&a.disconnect(),W(this._foamDummyElem),x(this._foamDummyElem),null!=(s=t.eventLoop)&&s.remove(this.uuid),null!=(u=this._resizeObserver)&&u.disconnect(),this._resizeObserver=null,m(this.uuid),this._unbindListeners(),x(this.chrome),Qt(["video",this.uuid]),this.trigger("afterremove"),this._bindings={},"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component")&&x(this.container),e.unsetWistiaApiOnContainer?(this.container.wistiaApi=void 0,"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component")&&(this.container.originalContainer.uniqueId=this.container.uniqueId,this.container.originalContainer._convertingToAurora=!1,x(this.container))):this.container.wistiaApi="removed",this._impl=null,null!=(l=window.__wistiaStores)&&(l[this.uuid]=null),null!=(c=window.__wistiaStores)?delete c[this.uuid]:void 0},n.prototype.removeSwatch=function(){var t,e;if((e=this.container.querySelector(".wistia_swatch")||(null!=(t=this.container.originalContainer)?t.querySelector(".wistia_swatch"):void 0))&&x(e),"WISTIA-PLAYER"===this.container.tagName&&(e=this.container.shadowRoot.querySelector(".wistia_swatch")))return x(e)},n.prototype.fullRemove=function(){var t,e,n;return e=this._embedContainer,n=this._popoverContainer,t=this.container,this.remove(),x(e),x(n),x(t),this.container=this._embedContainer=null,this},n.prototype.isRemoved=function(){return!Yt(["video",this.uuid])},n.prototype._unbindListeners=function(){if(N(this.chrome),this._throttleTriggerViewport&&F(window,"scroll",this._throttleTriggerViewport),this._doResize)return F(window,"resize",this._doResize)},n.prototype._saveState=function(){var t;return this._savedState={state:this.state(),time:this.time(),volume:this.volume(),inFullscreen:this.inFullscreen(),uuid:null!=(t=this._impl)?t.uuid:void 0}},n.prototype.suspend=function(){var e,n;if(!this._suspended)return this._saveState(),this.info("suspend",g(this._savedState)),this.pause(),this.suppressPlay(!0),!(null!=(e=this._impl)&&"function"==typeof e._inNativeMode?e._inNativeMode():void 0)&&t.detect.fullscreenEnabled||this.cancelFullscreen(),this._suspended=!0,this._suspendPlayBinding=(n=this,function(){return n.pause()}),this._suspendSeekBinding=function(t){return function(){return t.pause(),t.time(t._savedState.time)}}(this),this.bind("play",this._suspendPlayBinding),this.bind("seek",this._suspendSeekBinding),this.trigger("suspendstatechange",!0),this},n.prototype.unsuspend=function(t){var e,n,i;if(null==t&&(t={}),this._suspended)return n=bt({},this._savedState,t),this.info("unsuspend",g(n)),this._suspended=!1,this.unbind("play",this._suspendPlayBinding),this.unbind("seek",this._suspendSeekBinding),n.uuid!==(null!=(e=this._impl)?e.uuid:void 0)||(this.suppressPlay(!1),this.volume(n.volume),i={pause:"playing"!==n.state},null!=n.time&&Math.abs(n.time-this.time())>.5&&("ended"===n.state?this.time(n.time-1,i):this.time(n.time,i)),"playing"===n.state&&this.play(),this.trigger("suspendstatechange",!1)),this},n.prototype._setupBindings=function(){var t;return this.bind("afterend",(t=this,function(){if(t.playlistShouldAutoAdvance())return t._suspended?t.bind("suspendstatechange",(function(e){if(!1===e)return"ended"===t.state()&&t._nextEmbedOrPlaylistLoop(),t.unbind})):t._nextEmbedOrPlaylistLoop()})),this.bind("widthchange",function(t){return function(){var e,n;return null!=(e=t._impl)&&(e._width=t._width=t.width()),null!=(n=t._impl)?n._videoWidth=t._videoWidth=t.videoWidth():void 0}}(this)),this.bind("heightchange",function(t){return function(){return t._impl._height=t._height=t.height(),t._impl._videoHeight=t._videoHeight=t.videoHeight()}}(this)),this.looksUp()&&(this.inViewport(this._isInViewportNow()),this.inViewport()?this.trigger("enterviewport"):this.trigger("leaveviewport")),this._intersectionObserver=new window.IntersectionObserver(function(t){return function(e){return e[0].isIntersecting?(t.trigger("enterviewport"),t.inViewport(!0)):(t.trigger("leaveviewport"),t.inViewport(!1))}}(this)),this._intersectionObserver.observe(this.container),B(window,"resize",this._doResize)},n.prototype._nextEmbedOrPlaylistLoop=function(){return this.nextVideo()?this.embedNext():this._attrs.playlistLoop?(this.info("playlistLoop"),this.embedIndex(0,{autoPlay:!0})):void 0},n.prototype._isInViewportNow=function(){var t,e,n,i;return!this.down()&&!this.looksDown()&&(!window.IntersectionObserver&&top!==self||(t=(e=L(this.container).top)+M(this.container),i=Ut(),n=Ut()+M(window),e>=i&&e<n||t>=i&&t<n||e<=i&&t>=n))},n.prototype._pauseEventLoop=function(){var e;if(t.eventLoop.pause(this.uuid),null!=(e=this._impl)?e.uuid:void 0)return t.eventLoop.pause(this._impl.uuid)},n.prototype._unpauseEventLoop=function(){var e;if(t.eventLoop.unpause(this.uuid),null!=(e=this._impl)?e.uuid:void 0)return t.eventLoop.unpause(this._impl.uuid)},n.prototype.playlistIndex=function(){return this._playlistIndexOf(this.sourceHashedId())},n.prototype.nextVideo=function(){return this.playlistIndex()>=0&&this._playlist[this.playlistIndex()+1]||null},n.prototype.previousVideo=function(){return this.playlistIndex()>0&&this._playlist[this.playlistIndex()-1]||null},n.prototype._playlistIndexOf=function(t){var e,n,i,r;for(e=n=0,i=this._playlist.length;0<=i?n<=i:n>=i;e=0<=i?++n:--n)if((null!=(r=this._playlist[e])?r.hashedId:void 0)===t)return e;return-1},n.prototype._inPlaylist=function(t){return this._playlistIndexOf(t)>=0},n.prototype._setTransitionOptions=function(t){if(t.transition||(t.transition=this._opts.playlistTransition||"fade"),t.transitionTime||(t.transitionTime=this._opts.playlistTransitionTime),t.playlistIndex&&"slide"===t.transition)return t.playlistIndex>=this._playlistIndex?t.transition="slideleft":t.transition="slideright"},n.prototype.embedNext=function(t){var e,n;return n=this.nextVideo(),this.info("embedNext",n),(e=bt({autoPlay:!0,resumable:!1},n.options,t)).playlistIndex=this._playlistIndex+1,e.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this._setTransitionOptions(e),this.replaceWith(n.hashedId,e)},n.prototype.embedPrevious=function(t){var e,n;return n=this.previousVideo(),this.info("embedPrevious",n),(e=bt({autoPlay:!0,resumable:!1},n.options,t)).playlistIndex=this._playlistIndex-1,e.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(n.hashedId,e)},n.prototype.embedIndex=function(t,e){var n,i;return i=this._playlist[t],this.info("embedIndex",t,i),(n=bt({autoPlay:!0},i.options,e)).playlistIndex=t,n.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(i.hashedId,n)},n.prototype.addToPlaylist=function(t,e,n){var i,r,o,a,s;for(null==e&&(e={}),null==n&&(n={}),null==this._playlist&&(this._playlist=[]),o=0,a=(s=Kt(t)).length;o<a;o++)i={hashedId:r=s[o],options:e},(n=g(n)).after?n.detect=function(t){return t.hashedId===n.after}:n.before&&(n.detect=function(t){return t.hashedId===n.before}),this.info("addToPlaylist",i,n),ht(this._playlist,i,n),this.hasData(function(t){return function(){var n,i;return r===(null!=(n=t.nextVideo())?n.hashedId:void 0)||r===(null!=(i=t.previousVideo())?i.hashedId:void 0)?t.prefetchMedia(r,e):void 0}}(this));return this.info("updated _playlist",g(this._playlist)),this.trigger("playlistchange",this._playlist),this._playlist},n.prototype.setPlaylist=function(t,e){return null==e&&(e={}),this._playlist=[],this.addToPlaylist(t,e),this._playlistIndex=this._playlistIndexOf(this.hashedId()),this.trigger("playlistchange",this._playlist)},n.prototype.playlistShouldAutoAdvance=function(){return null==this._playlistShouldAutoAdvance||this._playlistShouldAutoAdvance},n.prototype.setPlaylistShouldAutoAdvance=function(t){return this._playlistShouldAutoAdvance=t},n.prototype.prefetchNextMedia=function(){var t;if(!this._opts._inLegacyPlaylist&&(t=this.nextVideo()))return this.prefetchMedia(t.hashedId,t.options)},n.prototype.sourceLocalization=function(){var t;return t=this.mediaLanguages().find((function(t){return t.sourceLanguage}))||this.mediaLanguages()[0],this.addMissingLanguageCodesForLanguage(t),t},n.prototype.findLocalizationByLanguage=function(t){return this.mediaLanguages().find((function(e){return e.ietfLanguageTag===t||e.iso6392LanguageCode===t}))},n.prototype.findCaptionsLanguageByCode=function(t){var e;return(e=this.captionsLanguages().findIndex((function(e){return e.ietfLanguageTag===t||e.iso6392LanguageCode===t})))>=0||(e=it(this.languages().map((function(t){return t.iso6392LanguageCode||t.iso639_2_language_code})),[t]))>=0?this.captionsLanguages()[e]:null},n.prototype.prefetchMedia=function(t,e){var n,i;return null==e&&(e={}),(e=f({embedHost:this._opts.embedHost},e)).overrideMediaLanguage=null!=(n=this.findLocalizationByLanguage(e.language))?n.iso6392LanguageCode:void 0,this.info("@prefetchMedia",t),J(t,e).then((i=this,function(n){var r;return i.info("prefetched",t),r=i._gatherOptions({givenOptions:e,mediaData:n,hashedId:n.hashedId,container:i.container}),Ot(n,r)})).catch((function(){return b("player/failure/prefetch-failed")}))},n.prototype.addPlugin=function(e,n){return null==n&&(n={}),this.info("addPlugin",e,n),new Promise((i=this,function(r){return i._hasImpl((function(){return i.hasPlugin(e)||t.plugin._inject(i,e,n),i.plugin(e).then((function(t){return r(t)}))}))}));var i},n.prototype.hasPlugin=function(t){return!!this.plugin[t]},n.prototype.turnOffPluginApis=function(){var t,e,n,i;for(e in this.info("turnOffPluginApis"),i=[],n=this.plugin)n[e],i.push("function"==typeof(t=this._pluginStopGos)[e]?t[e](!1):void 0);return i},n.prototype.removePlugin=function(t){var e,n,i;if(n=this.plugin[t]){try{"function"==typeof n.remove&&n.remove()}catch(t){e=t,setTimeout((function(){throw e}),0)}return delete this.plugin[t],(null!=(i=this._impl.plugin)?i[t]:void 0)&&delete this._impl.plugin[t],n.uuid&&this.plugins&&(delete this.plugins[this.uuid],Qt(["plugins",t,this.uuid,n.uuid])),this.trigger("pluginremoved",t)}},n.prototype.removePlugins=function(){var t,e,n;for(t in this.info("removePlugins"),n=[],e=this.plugin)e[t],n.push(this.removePlugin(t));return n},n.prototype.containerWidth=function(){return H(this._embedContainer)},n.prototype.containerHeight=function(){return M(this._embedContainer)},n.prototype._getScreenScrolls=function(t,e){var n;return n=t.bottom+window.pageYOffset,Math.max(0,n/e-1)},n.prototype._getEmbedVisibilityMetrics=function(){var t,e,n,i,r;return this.embedOptions()._inIframe||this.isRemoved()?null:(r=M(window),i=(e=this.elem().getBoundingClientRect()).height,n=this._getScreenScrolls(e,r),this.popover&&(t=this.container.getBoundingClientRect(),n=this._getScreenScrolls(t,r)),{screen_scrolls:n,ratio_of_screen:i/r,screen_width:window.screen.width,screen_height:window.screen.height})},n.prototype._getPageTitle=function(){return this._attrs.pageTitle||document.title},n.prototype._getBrowserLanguage=function(){return window.navigator.language},n.prototype._goToDownState=function(){var t;return this.info("_goToDownState"),this._stateBeforeDown=this._lastState,this.up(!1),this.down(!0),null!=(t=this._impl.engine)&&t.pause(),this.ready(!1),this.trigger("down")},n.prototype._goToUpState=function(){var t;return this.info("_goToUpState"),this.down(!1),this._ignoreUp=!0,this._doSizing(),this._ignoreUp=!1,this.up(!0),this.ready(!1),null!=(t=this._impl)&&t.checkForReady(),"playing"===this._stateBeforeDown&&this.play(),this.trigger("up")},n.prototype._checkDownState=function(){var t;return t=this.looksDown(),this.up()&&t?(this.info("moving to down state"),this._goToDownState()):this.down()&&!t?(this.info("moving to up state"),this._goToUpState()):void 0},n.prototype._removeHandleIfGoneFromDOM=function(){return!!this.embedded()&&(this.elem()?!(!this._embedContainer||this._embedContainer.parentNode)&&(this.warn("container removed from DOM",this._embedContainer.id),this.remove({unsetWistiaApiOnContainer:!0}),!0):(this.warn("video element removed from DOM",this._embedContainer.id),this.remove(),!0))},n.prototype._doFoam=function(){var t,e,n,i,r,o,a,s,u,l,c,d;if(null==this._parentBoxSizing&&(this._parentBoxSizing=R(this._embedContainer.parentNode,"box-sizing")),"WISTIA-PLAYER"!==this.container.tagName)return this.popover?(l=(d=H(window))/(c=M(window)),e=(u=Math.min(d,c))>500?160:Math.abs(l-this.aspect())<.2?.2*u:.1*u,a=l>this.aspect()?Math.round((c-e)*this.aspect()):d-e):"border-box"===this._parentBoxSizing?(this._foamDummyElem||(this._foamDummyElem=A({class:"wistia_video_foam_dummy","data-source-container-id":this._embedContainer.id,style:{border:0,display:"block",height:0,margin:0,padding:0,position:"static",visibility:"hidden",width:"auto"}}),C(this._embedContainer,this._foamDummyElem)),a=H(this._foamDummyElem)):a=H(this._embedContainer.parentNode),isNaN(a)||this._lastParentWidth===a&&this._didFoam?void 0:(this._didFoam=!0,r=(o=a)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight(),(t=this.videoFoam()).maxHeight&&n>t.maxHeight&&(i=(n=t.maxHeight)-this.extraHeight(),o=(r=this.widthForHeight(i))+this.extraWidth()),t.maxWidth&&o>t.maxWidth&&(r=(o=t.maxWidth)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight()),t.minHeight&&n<t.minHeight&&(i=(n=t.minHeight)-this.extraHeight(),o=(r=this.widthForHeight(i))+this.extraWidth()),t.minWidth&&o<t.minWidth&&(r=(o=t.minWidth)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight()),this.info("videoFoam set width",o),null!=(s=this._impl)&&s.width(o,{constrain:!0}),this._lastParentWidth=a)},n.prototype._allowFoam=function(){var t;return this._hasImpl()&&this.grid&&(this.up()||this._ignoreUp)&&this.looksUp()&&(this._attrs.videoFoam||(null!=(t=this.popover)?t.isResponsive():void 0))&&!this.isAudio()},n.prototype._allowContainerMatch=function(){return(this.up()||this._ignoreUp)&&!this._opts.dontMonitorSize&&!this.inFullscreen()&&"WISTIA-PLAYER"!==this.container.tagName},n.prototype._doContainerMatch=function(){var t,e,n,i;if(i=this.containerWidth(),t=this.containerHeight(),this._lastWidth!==i&&(this.notice("container width changed to "+i+", matching"),null!=(e=this._impl)&&e.width(i),this.info("_doContainerMatch set width",i),this.trigger("widthchange",i,this._lastWidth),this._lastWidth=i),this._lastHeight!==t)return this.notice("container height changed to "+t+", matching"),null!=(n=this._impl)&&n.height(t),this.trigger("heightchange",t,this._lastHeight),this._lastHeight=t},n.prototype.monitor=function(){return this.info("monitor"),this._lastWidth=this._attrs.startingWidth,this._lastHeight=this._attrs.startingHeight,this._lastParentWidth=this.width(),this._didFoam=!1,this._hasImpl((e=this,function(){var n,i;if(t.eventLoop.add(e.uuid+".monitor",500,e._doMonitor),window.ResizeObserver)return n=function(t){var n;if((n=t[0])&&e._allowFoam())return e._lastWidth!==n.contentRect.width&&e.trigger("widthchange",n.contentRect.width,e._lastWidth),e._lastHeight!==n.contentRect.height&&e.trigger("heightchange",n.contentRect.height,e._lastHeight),e._lastWidth=n.contentRect.width,e._lastHeight=n.contentRect.height,e._doSizing()},i=_("player_container_resize_"+e.container.uniqueId,n,10),e._resizeObserver=new ResizeObserver(i),e._resizeObserver.observe(e.container)}));var e},n.prototype._doMonitor=function(){if(!this._removeHandleIfGoneFromDOM())return this._checkDownState(),this.chrome&&!I(this.chrome)&&(this.notice("Chrome was removed from DOM. Injecting it back in."),T(this._embedContainer,this.chrome)),this._doSizing()},n.prototype._doSizing=function(){var t,e;if("WISTIA-PLAYER"!==this.container.tagName)if(this.popover){if(this.popover.fixedSizeTooBigForWindow())return this._doFoam();if(!this._opts.popoverSize)return this._doFoam();if(this._lastWidth=this.width(),this._lastHeight=this.height(),this._lastWidth!==this._popoverSize().width||this._lastHeight!==this._popoverSize().height)return null!=(t=this._impl)&&t.width(this._popoverSize().width),null!=(e=this._impl)?e.height(this._popoverSize().height):void 0}else{if(this._allowFoam())return this._doFoam();if(this._allowContainerMatch())return this._doContainerMatch()}},n.prototype.looksDown=function(){return!this._embedContainer||!I(this._embedContainer)||D(this._embedContainer)},n.prototype.looksUp=function(){return!this.looksDown()},n.prototype._doResize=function(){var t;return"function"==typeof this._throttleTriggerViewport&&this._throttleTriggerViewport(),this._debounceDoMonitor||this.embedded((t=this,function(){return requestAnimationFrame((function(){return t._doMonitor(),t._debounceDoMonitor=!1}))})),this._debounceDoMonitor=!0},n.prototype._definePluginMethod=function(){var t;if(!this.plugin)return this.plugin=(t=this,function(e,n){var i;return(i=t._pluginStopGos[e])||(i=t._pluginStopGos[e]=new h)(!!t.plugin[e],t.plugin[e]),n?i((function(){return n(t.plugin[e])})):i})},n.prototype.videoFoam=function(t){return null!=t?(this.info("videoFoam",t),this._attrs.videoFoam=t,this.monitor(),t):this._attrs.videoFoam||!1},n.prototype._transformAndUpdateMediaData=function(){var t,e,n;return this._mediaData=gt(g(this._originalMediaData),this._opts),null!=(t=this._impl)&&null!=(e=t.engine)&&e.onMediaDataChanged(this._mediaData,this._opts),null!=(n=this._impl)?n._mediaData=this._mediaData:void 0},n.prototype._trackVideoFoamManualSizeChange=function(e){return t.Metrics.count("player/videofoam-manual-sizechange",1,{method:e,href:window.location.href})},n.prototype.aspect=function(){return this._implGet("aspect",0)},n.prototype.asset=function(){return this._implGet.apply(this,["asset",null].concat(r.call(arguments)))},n.prototype.assets=function(){return this._implGet.apply(this,["assets",null].concat(r.call(arguments)))},n.prototype.audioDescriptionControlEnabled=function(){return this._implSetOrGet.apply(this,["audioDescriptionControlEnabled",!1].concat(r.call(arguments)))},n.prototype.bigPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonEnabled",!1].concat(r.call(arguments)))},n.prototype.bigPlayButtonTimeEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonTimeEnabled",!1].concat(r.call(arguments)))},n.prototype.cancelOverlay=function(){return this._implPromise.apply(this,["cancelOverlay"].concat(r.call(arguments)))},n.prototype.cancelFullscreen=function(){return this._commandQueueImplPromise("cancelFullscreen")},n.prototype.captureCurrentFrame=function(){return this._implGet.apply(this,["captureCurrentFrame",null].concat(r.call(arguments)))},n.prototype.closeTabMenu=function(){return this._implExec("closeTabMenu")},n.prototype.controlScaling=function(){return this._implSetOrGet.apply(this,["controlScaling","auto"].concat(r.call(arguments)))},n.prototype.createControl=function(){return this._implGet.apply(this,["createControl",null].concat(r.call(arguments)))},n.prototype.defineOverlay=function(){return this._implExec.apply(this,["defineOverlay"].concat(r.call(arguments)))},n.prototype.destroyControl=function(){return this._implExec.apply(this,["destroyControl"].concat(r.call(arguments)))},n.prototype.doNotTrack=function(){return this._opts.doNotTrack},n.prototype.duration=function(){return this._implGet("duration",null)},n.prototype.embedded=function(){return this._implSetOrGet.apply(this,["embedded",!1].concat(r.call(arguments)))},n.prototype.embedOptions=function(){return this._hasImpl()?this._implGet.apply(this,["embedOptions",{}].concat(r.call(arguments))):this._embedOptions?this._embedOptions:this._embedOptions=this._gatherOptions()},n.prototype.enterInputContext=function(){return this._implExec.apply(this,["enterInputContext"].concat(r.call(arguments)))},n.prototype.eventKey=function(){return this._implGet("eventKey",null)},n.prototype.exitInputContext=function(){return this._implExec.apply(this,["exitInputContext"].concat(r.call(arguments)))},n.prototype.extraHeight=function(){return this._implGet("extraHeight",0)},n.prototype.extraWidth=function(){return this._implGet("extraWidth",0)},n.prototype.fit=function(){return this._implExec("fit")},n.prototype.fullscreenControlEnabled=function(){return this._implSetOrGet.apply(this,["fullscreenControlEnabled",!1].concat(r.call(arguments)))},n.prototype.focus=function(){return this._implPromise.apply(this,["focus"].concat(r.call(arguments)))},n.prototype.getBuffered=function(){return this._implGet("getBuffered",[])},n.prototype.getConnectedCarouselEmbed=function(){var t;if(null===this.wistiaPlaylistElem)return Array.from(document.getElementsByTagName("wistia-channel-carousel")).find((t=this,function(e){return e.activeMediaId===t._mediaData.hashedId}))},n.prototype.getFocusedChapter=function(){return this._implGet("getFocusedChapter",null)},n.prototype.getInputContext=function(){return this._implGet("getInputContext",[])},n.prototype.getMediaElement=function(){return this._implGet("getMediaElement",null)},n.prototype.getMediaType=function(){return this._implGet("getMediaType",null)},n.prototype.getOverlays=function(){return this._implGet("getOverlays",{})},n.prototype.getRegion=function(){return this._implGet.apply(this,["getRegion",null].concat(r.call(arguments)))},n.prototype.getSelectedCaptions=function(){var t,e;return null!=(t=this.controls)&&null!=(e=t.captions)?e.getSelectedCaptions():void 0},n.prototype.hasData=function(){return this._implSetOrGet.apply(this,["hasData",!1].concat(r.call(arguments)))},n.prototype.height=function(){var t,e;return arguments.length>0?!0!==(null!=(e=this._opts)?e.videoFoam:void 0)?(t=parseFloat(arguments[0]),this.container.style.height=t+"px",this._implExec.apply(this,["height"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("height"),console.warn("setting `height` while `videoFoam` is enabled results in a no-op"),this):this._implGet("height",null)},n.prototype.heightForWidth=function(){return this._implGet.apply(this,["heightForWidth",null].concat(r.call(arguments)))},n.prototype.hideControls=function(){return this._implExec.apply(this,["hideControls",null].concat(r.call(arguments)))},n.prototype.ieSizeHack=function(){return this._implExec("ieSizeHack")},n.prototype.inFullscreen=function(){return this._implGet("inFullscreen",!1)},n.prototype.inSilentPlaybackMode=function(){return this._implGet("inSilentPlaybackMode",!1)},n.prototype.isInstantHls=function(){return this._implGet("isInstantHls",!1)},n.prototype.isMuted=function(){return this._implGet("isMuted")},n.prototype.isResumableEnabled=function(){return this._implGet("isResumableEnabled")},n.prototype.language=function(t){return null!=t?(this.captionsLanguage(t),this.mediaLanguage(t),this):this.mediaLanguage()},n.prototype.languages=function(){var t;return this._languages=g(this.mediaLanguages()).concat(g(this.captionsLanguages())),t=[],this._languages.forEach((function(e){if(!t.find((function(t){return t.ietfLanguageTag===e.ietfLanguageTag})))return t.push(e)})),Object.freeze(t),this._languages=t,this._languages},n.prototype.mediaLanguage=function(t){var e,n,i,r,o;return null!=t?(e=this.findLocalizationByLanguage(t))?("eng"!==e.ietfLanguageTag&&yt(e.iso6392LanguageCode),ut()&&Gt("localization",e),r=f({},{language:e.iso6392LanguageCode,existingTracker:null!=(n=this._impl)?n._tracker:void 0}),this.getRemapTime().then((o=this,function(t){var n,i,a,s,u;if(u="playing"===o.state(),s="beforeplay"===o.state(),a=t(o.mediaLanguage().ietfLanguageTag,e.ietfLanguageTag,o.time()),s||(r.time=a),u&&(r.autoPlay=!0),n=null!=(i=o.plugin.carousel)?i.options:void 0,o.replaceWith(e.hashedId,r),null!=n)return o.addPlugin("carousel",n)}))):(console.error("Language "+t+" not found. Available languages for "+this.sourceHashedId()+": "+JSON.stringify(this.mediaLanguages().map((function(t){return t.iso6392LanguageCode})))),null):(null!=(i=this._mediaData)?i.ietfLanguageTag:void 0)&&this.findLocalizationByLanguage(this._mediaData.ietfLanguageTag)||this.defaultLocalization()},n.prototype.mediaLanguages=function(){var t,e,n;return this._mediaData?(this._mediaLanguages||(t=(null!=(e=this._mediaData)?e.localizations:void 0)||[],this._mediaLanguages=t.map((function(t){return f({},t,{isLocalization:!0})})),0===this._mediaLanguages.length&&this._mediaLanguages.push(this.defaultLocalization()),this._mediaLanguages.forEach((n=this,function(t){return n.addMissingLanguageCodesForLanguage(t)})),Object.freeze(this._mediaLanguages)),this._mediaLanguages):[]},n.prototype.addMissingLanguageCodesForLanguage=function(t){var e,n,i;for(e in n={alpha3Bibliographic:"alpha_3_bibliographic",alpha3Terminologic:"alpha_3_terminologic",genericName:"generic_name",genericNativeName:"generic_native_name",ietfLanguageTag:"ietf_language_tag",iso6392LanguageCode:"iso639_2_language_code",nativeName:"native_name"})i=n[e],null==t[e]&&(t[e]=t[i]);return t},n.prototype.captionsEnabled=function(t){var e,n,i,r,o;return null==t?null!=this._captionsEnabled?this._captionsEnabled:Boolean(null!=(r=this.controls)&&null!=(o=r.captions)?o.isEnabled():void 0):(n=this._captionsEnabled,this._captionsEnabled=t,n!==t?(ut()&&((e=ot("captionsViewerPreferences")||{}).onByViewerPreferences=t,Gt("captionsViewerPreferences",e)),this.trigger("captionschange",{visible:t,language:this.captionsLanguage().ietfLanguageTag}),null!=(i=this._impl)?i.embedElement.dispatchEvent(new CustomEvent("captions-change",{detail:{visible:t,language:this.captionsLanguage()}})):void 0):void 0)},n.prototype.captionsLanguage=function(t){var e,n,i,r,o,a,s,u,l,c,d,h,p,v,y,m,g;return e=ot("captionsViewerPreferences")||{},y=this._captionsLanguageCode,null!=t?(n=this.findCaptionsLanguageByCode(t))?(ut()&&(e.language=n.ietfLanguageTag,e.iso6392Language=n.iso6392LanguageCode,Gt("captionsViewerPreferences",e)),null!=(m=null!=(c=(this._mediaData.translatedMediaData||[]).find((function(t){return t.ietfLanguageTag===n.ietfLanguageTag})))?c.embedOptions:void 0)&&this.setCustomizeEmbedOptions(m),l=this.playerLanguage(),i=this._captionsLanguageCode,this._captionsLanguageCode=n.ietfLanguageTag,i!==this._captionsLanguageCode&&(this.trigger("captionschange",{visible:this.captionsEnabled(),language:n.ietfLanguageTag}),null!=(d=this._impl)&&d.embedElement.dispatchEvent(new CustomEvent("captions-change",{detail:{visible:this.captionsEnabled(),language:n.ietfLanguageTag}})),o=n.iso6392LanguageCode,g=this,r=function(){var t;if(l.code!==o)return g.trigger("playerlanguagechange",g.playerLanguage()),null!=(t=g._impl)?t.embedElement.dispatchEvent(new CustomEvent("player-language-change",{detail:{playerLanguage:g.playerLanguage()}})):void 0},vt(o)?yt(o).then((function(){return r()})):(o="en-US",r())),this):(console.error("Language "+t+" not found. Available languages for "+this.sourceHashedId()+": "+JSON.stringify(this.captionsLanguages().map((function(t){return t.iso6392LanguageCode})))),null):this._mediaData&&this._opts?(null!=y&&(v=this.findCaptionsLanguageByCode(y)),u=f({language:this._opts.language},(null!=(h=this._opts.plugin)?h["captions-v1"]:void 0)||{},(null!=(p=this._opts.plugin)?p.captions:void 0)||{}),s=rt(this._mediaData,u),null==v&&s>=0&&(a=this._mediaData.availableTranscripts[s],v=this.findCaptionsLanguageByCode(a.ietfLanguageTag||a.ietf_language_tag)),null==v&&this._mediaData.ietfLanguageTag&&(v=this.findCaptionsLanguageByCode(this._mediaData.ietfLanguageTag)),null==v&&(v=this.captionsLanguages().find((function(t){return t.sourceLanguage}))),null==v&&this.captionsLanguages().length>0&&(v=this.captionsLanguages().find((function(t){return"eng"===t.ietfLanguageTag}))||this.captionsLanguages()[0]),v||this.defaultLocalization()):this.defaultLocalization()},n.prototype.captionsLanguages=function(){var t,e;return this._mediaData?(null==this._captionsLanguages&&(this._captionsLanguages=g((null!=(t=this._mediaData)?t.availableTranscripts:void 0)||[])),this._captionsLanguages.forEach((e=this,function(t){return e.addMissingLanguageCodesForLanguage(t)})),Object.freeze(this._captionsLanguages),this._captionsLanguages):[]},n.prototype.defaultLocalization=function(){return{alpha3Bibliographic:"eng",alpha3Terminologic:"eng",duration:0,genericName:"English",genericNativeName:"English",hashedId:"",ietfLanguageTag:"eng",iso6392LanguageCode:"eng",name:"English",nativeName:"English",sourceLanguage:!0,timeMappings:[]}},n.prototype.lastPauseInfo=function(){return this._implGet("lastPauseInfo",{})},n.prototype.lastPlayInfo=function(){return this._implGet("lastPlayInfo",{})},n.prototype.layout=function(){return this._implSetOrGet.apply(this,["layout","primary"].concat(r.call(arguments)))},n.prototype.look=function(){return this._implSetOrGet.apply(this,["look",{}].concat(r.call(arguments)))},n.prototype.mp4Asset=function(){return this._implGet.apply(this,["mp4Asset",null].concat(r.call(arguments)))},n.prototype.mute=function(){return this._implExec("mute")},n.prototype.name=function(){return this._implSetOrGet.apply(this,["name",""].concat(r.call(arguments)))},n.prototype.openChaptersTab=function(){return this._implExec("openChaptersTab")},n.prototype.openShareTab=function(){return this._implExec("openShareTab")},n.prototype.openTabMenu=function(){return this._implExec("openTabMenu")},n.prototype.openTranscriptTab=function(){return this._implExec("openTranscriptTab")},n.prototype.originalAsset=function(){return this._implGet.apply(this,["originalAsset",null].concat(r.call(arguments)))},n.prototype.pause=function(){return this._commandQueueImplPromise("pause")},n.prototype.percentWatched=function(){return this._implGet("percentWatched",0)},n.prototype.playbarControlEnabled=function(){return this._implSetOrGet.apply(this,["playbarControlEnabled",!1].concat(r.call(arguments)))},n.prototype.play=function(){return this._commandQueueImplPromise("play")},n.prototype.playbackRate=function(){return this._implSetOrGet.apply(this,["playbackRate",1].concat(r.call(arguments)))},n.prototype.playbackRateControlEnabled=function(){return this._implSetOrGet.apply(this,["playbackRateControlEnabled",!1].concat(r.call(arguments)))},n.prototype.playerColor=function(){return this._implSetOrGet.apply(this,["playerColor","636155"].concat(r.call(arguments)))},n.prototype.playerBackgroundColor=function(){return this._implSetOrGet.apply(this,["playerBackgroundColor","000000"].concat(r.call(arguments)))},n.prototype.playPauseControlEnabled=function(){return this._implSetOrGet.apply(this,["playPauseControlEnabled",!1].concat(r.call(arguments)))},n.prototype.qualityControlEnabled=function(){return this._implSetOrGet.apply(this,["qualityControlEnabled",!1].concat(r.call(arguments)))},n.prototype.getRemapTime=function(){var t;return this._cachedRemapTime||(this._cachedRemapTime=new Promise((t=this,function(e){return t.hasData((function(){return t.mediaLanguages().length<=1?(null==t._cachedUnloadedRemapTime&&(t._cachedUnloadedRemapTime=Promise.resolve((function(t,e,n){return n}))),void e(t._cachedUnloadedRemapTime)):(null==t._cachedLoadedRemapTime&&(t._cachedLoadedRemapTime=E("assets/external/timeMapping.js").then((function(e){var n;return n=e.remapTime,function(e,i,r){var o,a,s,u;return a=1e3*r,s=t.sourceLocalization(),o=t.findLocalizationByLanguage(e),u=t.findLocalizationByLanguage(i),null==o||null==u||null==s?r:n(s,o,u,a)/1e3}}))),e(t._cachedLoadedRemapTime))}))}))),this._cachedRemapTime},n.prototype.playerLanguage=function(t){return null!=t?this.captionsLanguage(t):tt(this.captionsLanguage().iso6392LanguageCode)||tt("en-US")},n.prototype.requestFullscreen=function(){return this._commandQueueImplPromise("requestFullscreen")},n.prototype.requestOverlay=function(){return this._implPromise.apply(this,["requestOverlay"].concat(r.call(arguments)))},n.prototype.ready=function(){return this._implSetOrGet.apply(this,["ready",!1].concat(r.call(arguments)))},n.prototype.releaseChromeless=function(){return this._implExec.apply(this,["releaseChromeless"].concat(r.call(arguments)))},n.prototype.releaseControls=function(){return this._implExec.apply(this,["releaseControls"].concat(r.call(arguments)))},n.prototype.requestChromeless=function(){return this._implExec.apply(this,["requestChromeless"].concat(r.call(arguments)))},n.prototype.requestControls=function(){return this._implExec.apply(this,["requestControls"].concat(r.call(arguments)))},n.prototype.secondsWatched=function(){return this._implGet("secondsWatched",0)},n.prototype.secondsWatchedVector=function(){return this._implGet("secondsWatchedVector",[])},n.prototype.selectableQualities=function(){return this._implGet("selectableQualities",[])},n.prototype.selectedQuality=function(){return this._implGet("selectedQuality",[])},n.prototype.setCustomizeEmbedOptions=function(t){return this._implExec("setCustomizeEmbedOptions",t)},n.prototype.setFocusedChapter=function(){return this._implSetOrGet.apply(this,["setFocusedChapter",null].concat(r.call(arguments)))},n.prototype.settingsControlEnabled=function(){return this._implSetOrGet.apply(this,["settingsControlEnabled",!1].concat(r.call(arguments)))},n.prototype.shouldResume=function(){return this._implGet("shouldResume")},n.prototype.showControls=function(){return this._implExec.apply(this,["showControls",null].concat(r.call(arguments)))},n.prototype.state=function(){return this._implGet("state","beforeplay")},n.prototype.stillUrl=function(){return this._implGet.apply(this,["stillUrl",null].concat(r.call(arguments)))},n.prototype.suppressPlay=function(){return this._implSetOrGet.apply(this,["suppressPlay",this].concat(r.call(arguments)))},n.prototype.thumbnailAssets=function(){return this._implGet("thumbnailAssets",[])},n.prototype.time=function(){var t,e;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],null!=e?this._commandQueueImplPromise.apply(this,["time",q(e)].concat(r.call(t))):this._implGet("time",0)},n.prototype.trim=function(){return this._implSetOrGet.apply(this,["trim",{start:0,end:-1}].concat(r.call(arguments)))},n.prototype.unmute=function(){return this._implExec("unmute")},n.prototype.undefineOverlay=function(){return this._implPromise.apply(this,["undefineOverlay"].concat(r.call(arguments)))},n.prototype.videoHeight=function(){var t,e;return arguments.length>0?!0!==(null!=(e=this._opts)?e.videoFoam:void 0)?(t=parseFloat(arguments[0]),this.container.style.height=t+"px",this._implExec.apply(this,["videoHeight"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("videoHeight"),console.warn("setting `videoHeight` while `videoFoam` is enabled results in a no-op"),this):this._implGet("videoHeight",null)},n.prototype.videoQuality=function(t){return null!=t?this._commandQueueImplPromise.apply(this,["setVideoQuality",t].concat(r.call(arguments))):this._implGet("getVideoQuality")},n.prototype.videoWidth=function(){var t,e;return arguments.length>0?!0!==(null!=(t=this._opts)?t.videoFoam:void 0)?(e=parseFloat(arguments[0]),this.container.style.width=e+"px",this._implExec.apply(this,["videoWidth"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("videoWidth"),console.warn("setting `videoWidth` while `videoFoam` is enabled results in a no-op"),this):this._implGet("videoWidth",null)},n.prototype.visitorKey=function(){return t.visitorKey.value()||null},n.prototype.volume=function(){return this._implSetOrGet.apply(this,["volume",0].concat(r.call(arguments)))},n.prototype.volumeControlEnabled=function(){return this._implSetOrGet.apply(this,["volumeControlEnabled",!1].concat(r.call(arguments)))},n.prototype.whenVideoElementInDom=function(){return new Promise((t=this,function(e){return t._hasImpl((function(){return e(t._implGet.apply(t,["whenVideoElementInDom",null].concat(r.call(arguments))))}))}));var t},n.prototype.width=function(){var t,e;return arguments.length>0?!0!==(null!=(t=this._opts)?t.videoFoam:void 0)?(e=parseFloat(arguments[0]),this.container.style.width=e+"px",this._implExec.apply(this,["width"].concat(r.call(arguments)))):(this._trackVideoFoamManualSizeChange("width"),console.warn("setting `width` while `videoFoam` is enabled results in a no-op"),this):this._implGet("width",null)},n.prototype.widthForHeight=function(){return this._implGet.apply(this,["widthForHeight",null].concat(r.call(arguments)))},n.prototype.chaptersEnabled=function(){return this._implSetOrGet.apply(this,["chaptersEnabled",null].concat(r.call(arguments)))},n.prototype.chaptersVisibleOnLoad=function(){return this._implSetOrGet.apply(this,["chaptersVisibleOnLoad",null].concat(r.call(arguments)))},n.prototype.addChapter=function(){return this._implExec.apply(this,["addChapter"].concat(r.call(arguments)))},n.prototype.getChapter=function(){return this._implGet.apply(this,["getChapter",null].concat(r.call(arguments)))},n.prototype.removeChapter=function(){return this._implExec.apply(this,["removeChapter"].concat(r.call(arguments)))},n.prototype.chapters=function(){return this._implSetOrGet.apply(this,["chapters",[]].concat(r.call(arguments)))},n.prototype.customerLogo=function(){return this._implExec.apply(this,["customerLogo"].concat(r.call(arguments)))},n.prototype.setControlEnabled=function(t,e){return this._implSetOrGet("setControlEnabled",null,t,e)},n.prototype.isControlDisabled=function(t){return this._implGet("isControlDisabled",!1,t)},n.prototype.isControlEnabled=function(t){return this._implGet("isControlEnabled",!1,t)},n.prototype.whenControlMounted=function(t){return this._implPromise("whenControlMounted",t)},n.prototype.getControl=function(t){return this._implGet("getControl",null,t)},n.prototype.getEmail=function(){return this.email()},n.prototype.getEventKey=function(){return this.eventKey()},n.prototype.getVisitorKey=function(){return this.visitorKey()},n.prototype.setEmail=function(t){return this.email(t)},n.prototype.setPlayerColor=function(){return this._implExec.apply(this,["playerColor"].concat(r.call(arguments)))},n.prototype.removeReadyFn=function(){var t,e;return t=1<=arguments.length?r.call(arguments,0):[],this._hasImpl((e=this,function(){var n;return(n=e._impl.ready).remove.apply(n,t)}))},n.prototype.isKeyboardFocused=function(t){return this._implSetOrGet("isKeyboardFocused",null,t)},n.prototype.email=function(e){var n,i;return null!=e?(this.info("email",e),n=this._attrs.email,this._attrs.email=e,t.localStorage([this._attrs.pageUrl,"trackEmail"],e),(null!=(i=this._opts)?i.noDeprecatedProperties:void 0)||(this.params.trackEmail=e),e!==n&&this.container.dispatchEvent(new CustomEvent("emailchange",{detail:{email:e}})),this):this._attrs.email||null},n.prototype.foreignData=function(t){var e,n;if(void 0===t)return this._attrs.foreignData||this._foreignData||null;if(null===t)return this._attrs.foreignData=null,this.trigger("foreigndatachange",t);if(this.info("foreignData",t),!ft(t))throw new Error("foreignData can only be an Object");return t=g(t),this._attrs.foreignData=t,null!=(e=this._impl)&&null!=(n=e.tracker)&&n.transmit({force:!0}),this.trigger("foreigndatachange",t)},n.classFor=function(e){var n;return e instanceof t.Player?e=e.embedType:e instanceof t.PublicApi&&(e=null!=(n=e._impl)?n.embedType:void 0),function(){switch(e){case"vulcan":return t.VulcanPlayer;case"vulcan-v2":return t.VulcanV2Player;case"html5":return t.Html5Player;case"external":return t.ExternalPlayer;case"notplayable":return t.NotPlayablePlayer;case"passwordprotected":return t.PasswordProtectedPlayer;case"carouselHardWall":return t.CarouselHardWallPlayer;default:return t.Player}}()||(t.Metrics.count("player/"+e+"-class-not-defined",1,{ua:navigator.userAgent,detect:t.detect}),t.error("PublicApi.classFor: embedType is "+e+" but its class is not defined. Using 'vulcan-v2' instead."),t.VulcanV2Player)},n}(),t.mixin(t.PublicApi.prototype,t.bindable),_t=t.PublicApi.prototype.trigger,t.PublicApi.prototype._triggerNoImpl=function(){var t,e,n,i;return n=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],_t.call.apply(_t,[this,n].concat(r.call(e))),t=this.container.translationApi?this.container.translationApi:this,null!=(i=window.wistiaEmbeds)?i.trigger.apply(i,[n,t].concat(r.call(e))):void 0},t.PublicApi.prototype.trigger=function(){var t,e;return t=1<=arguments.length?r.call(arguments,0):[],this._impl?(e=this._impl).trigger.apply(e,t):this._triggerNoImpl.apply(this,t)},t.mixin(t.PublicApi.prototype,t.logHelpers),t.PublicApi.prototype._logPrefix=function(){var t;return[this.constructor.name,this.hashedId()||"no hashedId",null!=(t=this.container)?t.id:void 0,this.uuid]}}(n(16).Wistia)},(t,e,n)=>{n.r(e),n.d(e,{allow3rdParty:()=>g,getPluginsNotInList:()=>d,getSourceName:()=>y,pluginScriptsFromDefinedPlugins:()=>p,pluginScriptsToLoad:()=>h});var i=n(4),r=n(97),o=n(23),a=n(9),s=n(16),u=(0,a.cachedDetect)(),l="Audio",c=["airplay","audioChapters","audioShare","captions","captions-v1","chapters","cropFill","customizePreview","customerLogo","dimTheLights","dimthelights","eventbrite","externalPlayer","facebookPixel","googleAnalytics4","hlsVideo","html5Player","hubspotForm","marketoForm","midrollLink-v1","midrollLink-v2","nativeHlsVideo","notPlayableVideo","passwordProtectedVideo","postRoll-v1","postRoll-v2","requireEmail-v1","share","share-v2","socialbar-v1","thumbnailTextOverlay","thumbnailTextOverlay-v2","turnstile","videoThumbnail","vulcanV2Player","watchNext","wistiaLogo"],d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reduce((function(t,e){return-1===c.indexOf(e.name)&&t.push(e),t}),[])},h=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=r.buildContext(),c=t.mediaType,d=t.embedOptions,h=Object(d).plugin,m=n.plugin||h||{},g=(0,i.merge)({},m,a),b=r.choosePlayer(l,t,n),_=p(g,n);if((u.safari||u.iphone||u.ipad)&&!1!==n.airplayButton){var w={name:"airplay",options:g.airplay||{},async:!0,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/airplay.js")};_.push(w)}var E=f(_,n,b,c);return"vulcan-v2"===b&&n.chaptersOn&&!g.chapters&&E.push({name:y("chapters"),src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/chapters.js"),async:!0}),n.showCustomerLogo&&n.customerLogoImageUrl&&t.enableCustomerLogo&&E.push({name:"customerLogo",options:g.customerLogo||{},async:!0,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/customerLogo.js")}),!0!==n.branding&&!0!==t.branding||E.push({name:"wistiaLogo",options:g.wistiaLogo||{},async:!0,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/wistiaLogo.js")}),"vulcan-v2"!==b||s.Wistia.VulcanV2Player||E.push({name:"vulcanV2Player",options:{},async:!1,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/vulcanV2Player.js")}),"carouselHardWall"!==b||s.Wistia.CarouselHardWallPlayer||E.push({name:"carouselHardWall",options:{},async:!1,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/carouselHardWallPlayer.js")}),(null===(e=t.localizations)||void 0===e?void 0:e.length)>0&&E.push({name:"localizationSwitcher",options:{},async:!1,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/localizationSwitcher.js")}),v(E)},p=function(t,e){var n={};return Object.keys(t).forEach((function(r){if(function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}(t,r)&&function(t){return"socialbar-v1"!==t&&-1===t.indexOf("transcript")}(y(r)))if(m(r)){var a=t[r];if(a&&!1!==a.on){var s=y(r),u={name:s,src:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1HostWithPort)(),"/assets/external/").concat(s,".js"),async:null!=a.async?a.async:!/^(requireEmail|captions|midrollLink|share|turnstile)/.test(r),options:a};a.src&&g(e)&&(u.src=a.src);var l=n[s];l?(0,i.assign)(l,u):n[s]=u}}else console.warn("invalid plugin name",r)})),Object.values(n)},f=function(t,e,n,i){return t.map((function(t){if("vulcan-v2"===n)switch(t.name){case"captions-v1":t.name="captions",t.src=t.src.replace(/captions-v1/,"captions");break;case"share":i===l?(t.name="audioShare",t.src=t.src.replace(/share/,"audioShare")):(t.name="share-v2",t.src=t.src.replace(/share/,"share-v2"));break;case"chapters":i===l?(t.name="audioChapters",t.src=t.src.replace(/chapters/,"audioChapters")):t.name="chapters";break;case"postRoll-v1":t.name="postRoll-v2",t.src=t.src.replace(/postRoll-v1/,"postRoll-v2");break;case"midrollLink-v1":t.name="midrollLink-v2",t.src=t.src.replace(/midrollLink-v1/,"midrollLink-v2");break;case"requireEmail-v1":e._inLegacyPlaylist||(t.name="turnstile",t.src=t.src.replace(/requireEmail-v1/,"turnstile"))}return t}))},v=function(t){var e=function(t){var e=0;return t&&t.options&&t.options.loadWeight&&(e=t.options.loadWeight),e};return t.sort((function(t,n){return e(t)-e(n)}))},y=function(t){switch(t){case"requireEmail":case"requireEmail-v1":return"turnstile";case"postRoll":return"postRoll-v2";case"captions":return"captions-v1";default:return t}},m=function(t){return/^[a-zA-Z0-9_-]+$/.test(t)},g=function(){return!1!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).allowThirdParty&&!/([\w_-]+\.)?wistia\.(com|st|io)$/.test(window.location.hostname)}},(t,e,n)=>{n.d(e,{prefetchEngineAndPlugins:()=>u});var i=n(97),r=n(21),o=n(125),a=n(47),s=n(16),u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.pluginScriptsToLoad)(t,e),r=i.buildContext(),s=i.bestUsableEngine(r,t,e),u=l(n),c=(0,a.dynamicImport)("assets/external/".concat(s));return Promise.all([u,c])},l=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(t){return s.Wistia.plugin._prefetched[t.src]||(s.Wistia.plugin._prefetched[t.src]="fetching"),!s.Wistia.plugin._prefetched[t.src]}));return 0===t.length?Promise.resolve():(0,r.runScripts)(t).then((function(){t.forEach((function(t){s.Wistia.plugin._prefetched[t.src]="fetched"}))}))}},(t,e,n)=>{n.r(e),n.d(e,{injectJsonLd:()=>h,removeInjectedJsonLd:()=>p});var i=n(128),r=n(4),o=n(23),a=n(58),s=n(24),u=n(130),l=n(129),c=function(t,e){var n,r="https://".concat((0,o.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId);return(0,i.shouldAddKeyMoments)(t,e)&&!(0,i.shouldAddClipsFromChapters)(e)&&null!==(n=t.embedOptions.plugin)&&void 0!==n&&n.videoThumbnail?"".concat(r,"?wseektoaction=true"):r},d=function(t){var e,n=t.assets;if("Audio"===t.mediaType)return null===(e=(0,a.readyPublicMp3s)(n)[0])||void 0===e?void 0:e.url;var i=(0,a.readyPublicMp4s)(n);if(0!==i.length){var r=(0,a.findClosestAssetByQuality)(i,1080);if(r){var o=new s.Url(r.url);return o.ext("m3u8"),o.absolute()}}},h=function(t,e){var n,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n="Audio"===e.mediaType?function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.videoWidth,s=n.videoHeight,l=n.embedOptions;l||(l=(0,r.cast)((0,r.clone)(t.embedOptions)));var h={"@context":"http://schema.org/","@id":"https://".concat((0,o.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"AudioObject",duration:"PT".concat((0,u.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,a.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:i,videoHeight:s,embedHost:null===(e=l)||void 0===e?void 0:e.embedHost}),contentUrl:d(t),embedUrl:c(t,l),uploadDate:new Date(1e3*t.createdAt).toISOString(),description:t.seoDescription};return t.captions&&t.captions[0]&&(h.transcript=t.captions[0].text),h}(e,s):function(t){var e,n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=s.videoWidth,p=s.videoHeight,f=s.embedOptions;f||(f=null!==(n=(0,r.cast)((0,r.clone)(t.embedOptions)))&&void 0!==n?n:{});var v={"@context":"http://schema.org/","@id":"https://".concat((0,o.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"VideoObject",duration:"PT".concat((0,u.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,a.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:h,videoHeight:p,embedHost:null===(e=f)||void 0===e?void 0:e.embedHost}),embedUrl:c(t,f),uploadDate:new Date(1e3*t.createdAt).toISOString(),description:t.seoDescription};if("Video"===t.mediaType&&(v.contentUrl=d(t)),t.captions&&t.captions[0]&&(v.transcript=t.captions[0].text),(0,i.shouldAddKeyMoments)(t,f))if((0,i.shouldAddClipsFromChapters)(f)){var y=(0,l.normalizeChapters)(f).chapterList;v.hasPart=(0,i.clipsFromChapters)(y,location.href,t.duration)}else v.potentialAction=(0,i.seekToAction)();return v}(e,s);var h=JSON.stringify(n),f=document.createElement("script");f.className="w-json-ld",f.type="application/ld+json",f.innerHTML=h,f._wistia=!0,f.setAttribute("id",t),p(t);var v=document.querySelectorAll("script.w-json-ld"),y=v[v.length-1];y?y.parentNode.insertBefore(f,y.nextSibling):document.head.insertBefore(f,document.head.childNodes[0])},p=function(t){if(t){var e=document.getElementById(t);e&&e.remove()}}},(t,e,n)=>{n.d(e,{clipsFromChapters:()=>l,seekToAction:()=>c,shouldAddClipsFromChapters:()=>s,shouldAddKeyMoments:()=>u});var i=n(36),r=n(129);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||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.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=function(t){var e=(0,r.normalizeChapters)(t);if(!e)return!1;var n=e.chapterList;return!1!==e.on&&"false"!==e.on&&Array.isArray(n)&&n.length>0},u=function(t,e){var n;if(!1===e.keyMoments)return!1;var i=t.duration,r=t.type,o=null!==(n=e.plugin)&&void 0!==n?n:{},a=o.passwordProtectedVideo,s=o["requireEmail-v1"],u="LiveStream"===r,l=!0===(null==a?void 0:a.on)||"true"===(null==a?void 0:a.on),c=s&&!1!==s.on&&"end"!==s.time&&!s.persistentTurnstile;return Boolean(!l&&!c&&!u&&"number"==typeof i&&i>=30)},l=function(t,e,n){if(!Array.isArray(t)||0===t.length)return[];var r=function(t){var e={};return o(t).sort((function(t,e){return t.time-e.time})).filter((function(t){var n=t.time,i=t.title,r=t.deleted;return!Boolean(e[n])&&!r&&"Chapter Title"!==i&&(e[n]=!0,!0)}))}(t).map((function(t,r,o){var a=t.time,s=t.title,u=new window.URL(e),l=Math.floor(a),c=o[r+1],d=(0,i.isNotNil)(c)?c.time:n;return u.searchParams.set("wtime","".concat(l,"s")),{"@type":"Clip",endOffset:Math.floor(d),name:s,startOffset:l,url:u.toString()}}));return r},c=function(){var t=new window.URL(window.location.href);return t.searchParams.set("wtime","{seek_to_second_number}"),{"@type":"SeekToAction",target:t.toString().replace("%7Bseek_to_second_number%7D","{seek_to_second_number}"),"startOffset-input":"required name=seek_to_second_number"}}},(t,e,n)=>{n.d(e,{normalizeChapters:()=>r});var i=n(36),r=function(t){var e=t.plugin,n=t.chaptersOn,r=t.chapterList;if(null!=e&&e.chapters)return e.chapters;var o=!0===n||"true"===n;return(0,i.isNotNil)(r)||o?{on:n,chapterList:(0,i.isNotNil)(r)&&r.length>0?r:[]}:void 0}},(t,e,n)=>{n.d(e,{secondsToIso8601Duration:()=>r});var i=n(77),r=function(t){var e=(0,i.secondsConverter)(t,"hms"),n=e.hours,r=e.minutes,o=e.seconds,a="";return n&&(a+="".concat(n,"H")),(r||t>60&&0!==o)&&(a+="".concat(r,"M")),(o||0===t)&&(a+="".concat(o,"S")),a}},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e,n){return e=s(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}n.d(e,{CrossTimePublicApi:()=>l});var l=function(t){function e(t,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=o(this,e,[n])).apiInstance=t,i.embedElement=t.container,i}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,(r=[{key:"currentTime",get:function(){return this.apiInstance.time()}},{key:"state",get:function(){return this.apiInstance.state()}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(108).CrossTime)},(t,e,n)=>{n.d(e,{BetweenTimesPublicApi:()=>d});var i=n(110),r=n(131);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var d=function(t){function e(t,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(i=s(this,e,[n])).apiInstance=t,i.embedElement=t.container,i.crossTime=new r.CrossTimePublicApi(i.apiInstance,n),i}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,(i=[{key:"currentTime",get:function(){return this.apiInstance.time()}}])&&o(n.prototype,i),a&&o(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(i.BetweenTimes)},(t,e,n)=>{n.d(e,{extractEmailFromParams:()=>o});var i=n(54),r=n(12),o=function(t){var e,n,o=null!==(e=/wemail=([^&#]+)/.exec(t))&&void 0!==e?e:null;if(o)return o[1];var a=null!==(n=/wkey=([^&#]+)/.exec(t))&&void 0!==n?n:null;if(a){var s=a[1];try{return(0,i.base64Decode)(s)}catch(t){r.wlog.info("Failed to decode email from wkey",t)}}return null}},(t,e,n)=>{n.d(e,{inferPageUrl:()=>i});var i=function(){var t;return null!=(null===(t=window.FreshUrl)||void 0===t?void 0:t.originalUrl)?window.FreshUrl.originalUrl:window.top===window.self?window.location.href||"":document.referrer||""}},(t,e,n)=>{n.d(e,{getPreferredCaptionsIndex:()=>l});var i,r=n(16),o=(n(23),n(12),n(136)),a=n(90);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t)||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.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}null!==(i=r.Wistia.captionsPromises)&&void 0!==i||(r.Wistia.captionsPromises={});r.Wistia.captionsPromises;r.Wistia.uncacheCaptions=function(t,e){if(t&&e){var n=c(t,e);delete r.Wistia.captionsPromises[n]}else t?Object.keys(r.Wistia.captionsPromises).forEach((function(e){e.startsWith(t)&&delete r.Wistia.captionsPromises[e]})):Object.keys(r.Wistia.captionsPromises).forEach((function(t){delete r.Wistia.captionsPromises[t]}))};var l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||null==t.availableTranscripts)return-1;var n=[];e.language&&n.push(e.language);var i=(0,o.getCaptionViewerPreferences)();null!=i.iso6392Language&&n.push(i.iso6392Language);var r,u=n.filter((function(t,e){return n.indexOf(t)===e})),l=(0,a.getPreferredAvailableLanguageIndex)(t.availableTranscripts.map((function(t){var e;return null!==(e=t.iso6392LanguageCode)&&void 0!==e?e:t.iso639_2_language_code})),u);(-1===l&&(l=(0,a.getPreferredAvailableLanguageIndex)(t.availableTranscripts.map((function(t){var e;return null!==(e=t.ietfLanguageTag)&&void 0!==e?e:t.ietf_language_tag})),u)),-1===l)&&(l=(0,a.getPreferredAvailableLanguageIndex)(t.availableTranscripts.map((function(t){var e;return null!==(e=t.iso6392LanguageCode)&&void 0!==e?e:t.iso639_2_language_code})),s(null!==(r=navigator.languages)&&void 0!==r?r:["en"])));return l},c=function(t,e){return"".concat(t).concat(e?"-".concat(e):"")}},(t,e,n)=>{n.d(e,{getCaptionSettings:()=>d,getCaptionViewerPreferences:()=>c});var i=n(137),r=n(138),o=n(91);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l="captionsViewerPreferences",c=function(){var t,e=(0,o.getViewerPreference)(l);return"object"!=typeof(t=e)||null==t?{}:e},d=function(){var t=c();return(0,r.isCaptionsSettings)(t)?t:s({},i.DEFAULT_CAPTION_SETTINGS)}},(t,e,n)=>{n.d(e,{BASE_COLORS:()=>s,CAPTIONS_FONT_FAMILY_MAP:()=>r,DEFAULT_CAPTION_SETTINGS:()=>u,FONT_SIZES:()=>o,OPACITY_PERCENTAGES:()=>a});var i=n(28),r=new Map([["Monospace serif",'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace'],["Monospace sans-serif",'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace'],["Proportional serif",'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif'],["Proportional sans-serif",i.interFontFamily],["Casual",'"Comic Sans MS", Impact, Handlee, fantasy'],["Cursive",'"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive'],["Small caps",i.interFontFamily]]),o=[100,120,140,160],a=[100,75,50,25,0],s=(a.filter((function(t){return 0!==t})),["#000000","#FFF200","#00F024","#00EAFF","#001AFF","#FF00AA","#FF0000","#FFFFFF"]),u={fontSize:o[0],fontOpacityPercentage:a[0],backgroundOpacityPercentage:a[1],windowOpacityPercentage:a[a.length-1],fontColor:s[s.length-1],backgroundColor:s[0],windowColor:s[0],fontFamily:"Proportional sans-serif",characterEdgeStyle:"None"}},(t,e,n)=>{n.d(e,{isCaptionsSettings:()=>a});var i=n(137),r=function(t){return i.OPACITY_PERCENTAGES.some((function(e){return e===t}))},o=function(t){return i.BASE_COLORS.some((function(e){return e===t}))},a=function(t){if("object"!=typeof t||null===t)return!1;var e=t;return o(e.backgroundColor)&&r(e.backgroundOpacityPercentage)&&o(e.fontColor)&&function(t){return i.FONT_SIZES.some((function(e){return e===t}))}(e.fontSize)&&r(e.fontOpacityPercentage)&&o(e.windowColor)&&r(e.windowOpacityPercentage)}},(t,e,n)=>{n.d(e,{getChannelStorage:()=>u});var i=n(39),r=n(40),o=function(t){var e=a(t),n=(0,i.getWistiaLocalStorage)()[e]||{},o=s(t);!0!==n.copied&&0!==Object.keys(n).length&&((0,r.updateLocalStorage)(o,(function(t){Object.keys(n).forEach((function(e){t[e]=n[e]}))})),(0,i.updateWistiaLocalStorage)((function(e){e[a(t)].copied=!0})))},a=function(t){return"channel_".concat(t)},s=function(t){return"wistia_channel_".concat(t)},u=function(t){return o(t),(0,r.getLocalStorage)([s(t)])||{}}},(t,e,n)=>{n.d(e,{maybeLoadAndSetupEmbedLinksThrottled:()=>h});var i=n(6),r=n(72),o=n(47),a=n(55),s=n(41),u=n(16);function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||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.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}u.Wistia._destructors.destroyEmbedLinks=function(){u.Wistia.EmbedLink.EmbedLinkClass&&u.Wistia.EmbedLink.EmbedLinkClass._onEv1Destroy()};var d=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];(function(){for(var t=(0,s.getAllApiHandlesByDomOrder)(),e=0;e<t.length;e++)if(t[e]._attrs&&t[e]._attrs.playlistLinks)return!0;return document.querySelectorAll('a[href^="#wistia_"]').length>0||l(document.getElementsByTagName("wistia-player")).some((function(t){return t.shadowRoot.querySelectorAll('a[href^="#wistia_"]').length>0}))})()&&(0,o.dynamicImport)("assets/external/embedLinks.js").then((function(t){var n;(n=t.EmbedLink).setupAll.apply(n,e)}))},h=(0,a.throttle)(1e3,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];d.apply(void 0,e),(0,i.onDocReady)((function(){d.apply(void 0,e),(0,r.doTimeout)("maybe_load_embed_links_5000",d,5e3)}))}));u.Wistia.EmbedLink={},u.Wistia.EmbedLink.setupAll=d},(t,e,n)=>{n.d(e,{debounce:()=>r});var i=n(72);var r=function(t,e,n){return function(){for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];(0,i.clearTimeouts)(t),(0,i.doTimeout)(t,(function(){return e.apply(void 0,o)}),n)}}},(t,e,n)=>{n.d(e,{CONTROL_BAR_HEIGHT:()=>i,DEFAULT_ASPECT:()=>r});var i=34,r=16/9},(t,e,n)=>{n.d(e,{inferQualityRangeFromOpts:()=>a});n(58);var i=n(74),r=2160,o=function(t){return"4k"===t?2160:parseInt(t,10)},a=function(t,e){return t.videoQuality&&"auto"!==t.videoQuality?((0,i.countMetric)("legacy/videoquality-embed-option",1,{videoQuality:t.videoQuality,hashedId:null==e?void 0:e.hashedId,url:window.location.href}),"sd-only"===t.videoQuality?[200,360]:"md"===t.videoQuality?[540,r]:"hd-only"===t.videoQuality?[720,r]:[360,r]):[t.qualityMin?o(t.qualityMin):360,t.qualityMax?o(t.qualityMax):r]}},(t,e,n)=>{n.d(e,{generateHtml:()=>a,generateRelativeBlockCss:()=>s});var i=n(4);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var a=function(t){if(/string|number|boolean/.test(typeof t))return t.toString();if(t instanceof Array){var e,n="",o=r(t);try{for(o.s();!(e=o.n()).done;){var s=e.value;n+=a(s)}}catch(t){o.e(t)}finally{o.f()}return n}if("object"!=typeof t)return t.toString();var u,l,c=[];for(var d in t){var h=t[d];"tagName"===d?u=h:"childNodes"===d?l=h:c.push({key:d,val:h})}u||(u="div");for(var p,f="<".concat(u),v=0,y=c;v<y.length;v++)p=void 0,"style"===(p=y[v]).key&&(0,i.isObject)(p.val)&&(p.val="".concat(function(){var t=[];for(var e in p.val){var n=p.val[e];t.push("".concat(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(n))}return t}().join(";"),";")),f+=" ".concat(p.key,'="').concat(p.val,'"');return/^(br|hr|img|link|meta|input)$/i.test(u)?f+=" />":(f+=">",l&&("string"==typeof l?f+=l:"object"==typeof l&&(f+=a(l))),f+="</".concat(u,">")),f},s="display:inline-block;height:100%;line-height:normal;margin:0;padding:0;position:relative;vertical-align:top;width:100%;"},(t,e,n)=>{n.r(e),n.d(e,{CONTROL_BAR_DISTANCE_RATIO:()=>i,getDefaultBigPlayButtonBorderRadius:()=>o,getDefaultControlBarBorderRadius:()=>a,getDefaultControlBarDistance:()=>s,getDefaultPlayerBorderRadius:()=>r});var i=.75,r=function(t){var e=t.playerBorderRadius,n=t.roundedPlayer;return void 0!==n?n:void 0!==e?e:0},o=function(t){var e=t.bigPlayButtonBorderRadius,n=t.roundedPlayer;return void 0!==e?e:void 0!==n?.75*n:0},a=function(t){var e=t.controlBarBorderRadius,n=t.floatingControlBar,r=t.roundedPlayer;return void 0!==e?e:void 0!==r?r*i:!0===n?18:0},s=function(t){var e=t.controlBarBorderRadius,n=t.floatingControlBar,i=t.roundedPlayer;return void 0!==i?i/4:void 0!==e?e/2:!0===n?6:0}},(t,e,n)=>{n.d(e,{sanePlayerColor:()=>i});var i=function(t){if(t){if((t="".concat(t).replace(/^#/g,"")).length<6){for(var e="",n=0;n<6-t.length;n++)e+="0";t="".concat(e).concat(t)}return/^[\da-f]{6}$/i.test(t)||(t="636155"),t}return"636155"}},(t,e,n)=>{n.d(e,{scrollLeft:()=>i,scrollTop:()=>r});var i=function(t){var e,n,i,r;if(!t)return(null===(e=document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.scrollLeft)||(null===(i=document)||void 0===i||null===(r=i.body)||void 0===r?void 0:r.scrollLeft)||0;document.body&&(document.body.scrollLeft=t),document.documentElement&&(document.documentElement.scrollLeft=t)},r=function(t){var e,n,i,r;if(!t)return(null===(e=document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.scrollTop)||(null===(i=document)||void 0===i||null===(r=i.body)||void 0===r?void 0:r.scrollTop)||0;document.body&&(document.body.scrollTop=t),document.documentElement&&(document.documentElement.scrollTop=t)}},(t,e,n)=>{n.d(e,{uniqId:()=>i});var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(n+=window.performance.now()),t+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx-xxxxxxxxx-xxxxxxxxxxxx-xxxx".replace(/[xy]/g,(function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===t?e:3&e|8).toString(16)}))+e}},(t,e,n)=>{n.r(e),n.d(e,{insertIntoArray:()=>r,toArray:()=>o});var i=function(t,e){for(var n=0,i=t.length,r=i>=0;r?n<=i:n>=i;r?n+=1:n-=1)if("function"==typeof e){if(e(t[n]))return n}else if(t[n]===e&&t[n]===e)return n;return-1},r=function(t,e,n){var r;return null==n&&(n={}),n.after?(r=i(t,n.detect||n.after))>=0?t.splice(r+1,0,e):"undefined"!=typeof console&&null!==console?console.log("".concat(n.after," not found when trying to add ").concat(e," to array")):void 0:n.before?(r=i(t,n.detect||n.before))>=0?t.splice(r,0,e):"undefined"!=typeof console&&null!==console?console.log("".concat(n.before," not found when trying to add ").concat(e," to array")):void 0:null!=n.index?t.splice(n.index,0,e):t.push(e)},o=function(t,e){if(null==e&&(e=/\s+/),t instanceof Array)return t;if("string"==typeof t)return t.split(e);throw new Error("Don't know how to convert ".concat(t," into an array."))}},(t,e,n)=>{n(14),n(13),n(151),n(152),n(154),n(155),n(156),n(160),n(162),n(163),n(164),n(165),n(140),n(166),n(167),n(168),n(169),n(171)},(t,e,n)=>{var i=n(9);!function(t){t._initializers.initDetect=function(){if(!t.detect)return t.detect=(0,i.cachedDetect)()}}(window.Wistia)},(t,e,n)=>{var i=n(97),r=n(58),o=n(34),a=n(106),s=n(23),u=n(60),l=n(146),c=n(72),d=n(4),h=n(153),p=n(74),f=n(32),v=n(3),y=n(26),m=n(144),g=n(37),b=n(54),_=n(33),w=n(18),E=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function O(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return P(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(P(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,P(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,P(d,"constructor",l),P(l,"constructor",u),u.displayName="GeneratorFunction",P(l,r,"GeneratorFunction"),P(d),P(d,r,"Generator"),P(d,i,(function(){return this})),P(d,"toString",(function(){return"[object Generator]"})),(O=function(){return{w:o,m:h}})()}function P(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}P=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){P(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},P(t,e,n,i)}function k(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function T(t,e,n){return(e=A(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,A(i.key),i)}}function A(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}!function(t,e){if(!t.Player){var n=function(){return e=function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.publicApi=e,this.embedElement=e.container,this.uuid=(0,y.seqId)(),this._baseEventLoopDuration=300,this._eventLoopDuration=300,this.info("constructor"),this.transferFacadeProperties(),this.crossTime=this.publicApi.crossTime,this.betweenTimes=this.publicApi.betweenTimes,this._impl=this,(0,d.keys)(e).forEach((function(t){var i=e[t];i instanceof a.StopGo&&!E(n,t)&&(n[t]=i)})),this.plugin=this.publicApi.plugin,this.ready=new a.StopGo,this.hasData=new a.StopGo,this.embedded=new a.StopGo,this.embedded((function(){n.embedElement.dispatchEvent(new CustomEvent("embedded"))})),this.commandQueueOpen=new a.StopGo,this.hasData(!0),this.commandQueueOpen(!0),this.playing=new a.StopGo,this.notFullscreen=new a.StopGo,this.resetStateVariables(),this.publicApi.isLiveMedia()||this.setupPercentTracking(),this._recordFirstEmbedIfEligible()},n=[{key:"addLoopBehavior",value:function(){var t=this;this.whenVideoElementInDom().then((function(){var e;null===(e=t.engine)||void 0===e||e.getMediaElement().setAttribute("loop","")}))}},{key:"animate",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.info("animate",e,n);var i=n.callback;return n.callback=function(){(0,v.elemStyle)(t.grid.root,{position:"relative"}),null==i||i()},(0,v.elemStyle)(this.grid.root,{position:"absolute"}),(0,v.elemAnimate)(this.grid.root,e,n),this}},{key:"aspect",value:function(){var t,e;if(this._attrs.aspect)return this._attrs.aspect;if(this.publicApi.isAudio())return this.publicApi.width()/this.publicApi.height();if(this._currentAsset&&"variable"==this._currentAsset.width)return this.mp4Aspect()||this.originalAspect();if(null!==(t=this._currentAsset)&&void 0!==t&&t.width&&null!==(e=this._currentAsset)&&void 0!==e&&e.height)return this._currentAsset.width/this._currentAsset.height;var n=this.asset({container:/mp4/,status:2});if(null!=n&&n.width&&null!=n&&n.height)return n.width/n.height;if(null!=this._mediaData.instantHlsAspectRatio)return this._mediaData.instantHlsAspectRatio;var i=this.asset({container:/mp4/});return null!=i&&i.width&&null!=i&&i.height?i.width/i.height:640/360}},{key:"asset",value:function(t){if("string"==typeof arguments[0]){var e="".concat(arguments[0],"Asset"),n=arguments[1];return this[e](n)}var i=arguments[0];return this.assets(i)[0]||null}},{key:"assets",value:function(t){return r.filter(this._mediaData.assets,t)}},{key:"bigPlayButtonEnabled",value:function(t){return this.publicApi._attrs.bigPlayButton=t,this}},{key:"canAutoPlay",value:function(){return!0}},{key:"cancelFullscreen",value:function(){this.info("cancelFullscreen"),this.rebuild()}},{key:"checkForReady",value:function(){throw new Error("Define in subclass!")}},{key:"cleanupRefs",value:function(){var t,e=this;null===(t=this.cleanup)||void 0===t||t.call(this),(0,d.keys)(this).forEach((function(t){var n,i=e[t];null!=i&&i!==e&&(null===(n=i.cleanup)||void 0===n||n.call(i))}))}},{key:"constrainToHeight",value:function(){return this.videoWidth(this.widthForHeight(this.videoHeight()))}},{key:"constrainToWidth",value:function(){return this.videoHeight(this.heightForWidth(this.videoWidth()))}},{key:"disableTextTracks",value:function(){var t=this;this.info("disableTextTracks"),this._disableTextTracks||(this._disableTextTracks=function(){var e;null!==(e=t.elem())&&void 0!==e&&e.textTracks&&Array.prototype.slice.call(t.elem().textTracks).forEach((function(t){t.mode="disabled"}))}),this.rebind("play",this._disableTextTracks)}},{key:"duration",value:function(){return this._mediaData.duration||null}},{key:"elem",value:function(){return null}},{key:"embed",value:function(){throw new Error("Define in subclass!")}},{key:"embedOptions",value:function(){return this._embedOptions||(this._embedOptions=(0,d.clone)(this._opts)),this._embedOptions}},{key:"eventKey",value:function(){var t;return null===(t=this._tracker)||void 0===t?void 0:t.eventKey()}},{key:"extraHeight",value:function(){return Math.max((0,v.elemHeight)(this.grid.above),(0,v.elemHeight)(this.grid.top))+Math.max((0,v.elemHeight)(this.grid.below),(0,v.elemHeight)(this.grid.bottom))}},{key:"extraWidth",value:function(){return(0,v.elemWidth)(this.grid.left)+(0,v.elemWidth)(this.grid.right)}},{key:"fade",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return v.elemAnimate.apply(void 0,[this.gridChildren(),{opacity:t}].concat(n))}},{key:"fadeIn",value:function(){var t=this,e=this._shortAnimArgs(arguments),n=e.callback;e.callback=function(){(0,v.elemStyle)(t.gridChildren(),{opacity:""}),null==n||n()},(0,v.elemStyle)(this.gridChildren(),{opacity:0}),setTimeout((function(){return t.fade(1,e)}),1)}},{key:"fadeOut",value:function(){var t=this,e=this._shortAnimArgs(arguments);(0,v.elemStyle)(this.gridChildren(),{opacity:1}),setTimeout((function(){return t.fade(0,e)}),1)}},{key:"fit",value:function(){}},{key:"focus",value:function(){var t;null===(t=this.chrome)||void 0===t||t.focus()}},{key:"freezeLastFrame",value:function(){}},{key:"fullscreenControlEnabled",value:function(t){return this.publicApi._attrs.fullscreenControl=t,this}},{key:"getVisitorKey",value:function(){return this.visitorKey()}},{key:"getEventKey",value:function(){return this.eventKey()}},{key:"getMediaElement",value:function(){}},{key:"getMediaType",value:function(){return this._mediaData.mediaType||null}},{key:"getReadyState",value:function(){var t,e;return null===(t=this.engine)||void 0===t||null===(e=t.getMediaElement())||void 0===e?void 0:e.readyState}},{key:"getStandardBuffered",value:function(){var t,e;return null===(t=this.engine)||void 0===t||null===(e=t.getMediaElement())||void 0===e?void 0:e.buffered}},{key:"gridChildren",value:function(){var e=this,n=this.grid;window.NodeList&&!NodeList.prototype.forEach&&(n=Array.prototype.slice.call(this.grid));var i=[];return(0,d.keys)(n).forEach((function(n){e.grid[n].childNodes.forEach((function(n){t.isGridElem(e.grid,n)||i.push(n)}))})),i}},{key:"handleError",value:function(e){var n,i;t.Metrics.videoCount(this,"player/playback-error");var r=null!==(n=null===(i=e.target)||void 0===i?void 0:i.error)&&void 0!==n?n:new Error("Unspecified error in media playback");throw(0,g.reportError)("mediaPlayback",r.message,{mediaErrorCode:r.code}),r}},{key:"hashedId",value:function(){return this._hashedId}},{key:"hdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"hlsAsset",value:function(t){return r.m3u8(this._mediaData.assets,t)}},{key:"hlsAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.m3u8(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"height",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("height",t,e),t=parseFloat(t);var n=this.height();return this.chrome.style.height="".concat(t,"px"),this.trigger("heightchange",t,n),this.embedElement.dispatchEvent(new CustomEvent("heightchange",{detail:{height:t,prevHeight:n}})),e.constrain&&this.constrainToHeight(),this}return(0,v.elemHeight)(this.grid.center)+Math.max((0,v.elemHeight)(this.grid.above),(0,v.elemHeight)(this.grid.top))+Math.max((0,v.elemHeight)(this.grid.below),(0,v.elemHeight)(this.grid.bottom))}},{key:"heightForWidth",value:function(t){return t/this.aspect()}},{key:"implContainer",value:function(){return this._opts.subContainer?this._embedContainer:this.grid.center}},{key:"inFullscreen",value:function(){return!1}},{key:"init",value:function(){return this.setupPipedreamTracking(),this.setupErrorTracking(),this}},{key:"inSilentPlaybackMode",value:function(){return!1}},{key:"iphoneAsset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._iphoneAsset||(this._iphoneAsset=r.iphone(this._mediaData.assets,t)),this._iphoneAsset}},{key:"iphoneAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.iphone(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"isInstantHls",value:function(){return Boolean((this._attrs.forceInstantHls||!this._mediaData.playableWithoutInstantHls)&&this._mediaData.instantHlsAssetsReady)}},{key:"isMuted",value:function(){return Boolean(this._opts.muted)}},{key:"isRemoved",value:function(){return null===this.grid}},{key:"lastPlayInfo",value:function(){return{}}},{key:"mp4Aspect",value:function(){var t=this.mp4Asset({width:640})||this.mp4Asset({width:960})||this.mp4Asset();return t?t.width/t.height:null}},{key:"mdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"mp4Asset",value:function(t){return r.mp4(this._mediaData.assets,t)}},{key:"mp4AssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.mp4(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"mute",value:function(){this._muted=!0,this.trigger("volumechange",this.volume()),this.embedElement.dispatchEvent(new CustomEvent("volume-change",{detail:{volume:this.volume(),isMuted:!0}}))}},{key:"originalAspect",value:function(){var t=this.originalAsset();if(t)return t.width/t.height;var e=this.bestAsset();return e().width/e().height}},{key:"originalAsset",value:function(){return this._original||(this._original=r.original(this._mediaData.assets)),this._original}},{key:"name",value:function(t){return null!=t&&(this._name=t,this.trigger("namechange",t)),null!=this._name?(0,b.unescapeHtml)(this._name):(0,b.unescapeHtml)(this._mediaData.name||"")}},{key:"pageUrl",value:function(){return this.publicApi._attrs.pageUrl}},{key:"pause",value:function(){var t=this;return this.info("pause"),this.ready((function(){return t.pause()})),this}},{key:"percentWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched()/Math.ceil(this.duration()):0}},{key:"placeEmbed",value:function(t){var e=this.implContainer();this.info("placeEmbed",e,t),this.wrapperElem=(0,v.elemFromObject)({id:(0,y.seqId)("wistia_video_wrapper_"),style:m.generateRelativeBlockCss,class:"wistia_video_wrapper"}),(0,v.elemStyle)(this.wrapperElem,{overflow:"hidden"}),(0,v.elemAppend)(e,this.wrapperElem),"string"==typeof t?this.wrapperElem.innerHTML+=t:(0,v.elemAppend)(this.wrapperElem,t)}},{key:"play",value:function(){var t=this;return this.info("play"),this.ready((function(){return t.play()})),this}},{key:"playableAsset",value:function(t){return r.playable(this._mediaData.assets,t)}},{key:"playableAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.playable(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"playbackRate",value:function(t){return null!=t?this:1}},{key:"playbarControlEnabled",value:function(t){return this.publicApi._attrs.playBarControl=t,this}},{key:"playerColor",value:function(t){var e,n,i=this._attrs,r=this.embedElement;if(null!=t){this.info("playerColor",t);var a=i.playerColor;return t=(0,l.sanePlayerColor)(t),i.playerColor=new o.Color(t).toHex(),a!==i.playerColor&&r.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:i.playerColor,prevColor:a,gradient:i.playerColorGradient,prevGradient:i.playerColorGradient}})),this}return null!==(e=i.playerColorGradient)&&void 0!==e&&e.on&&(0,_.isGradient)(i.playerColorGradient)&&null!==(n=(0,f.getGradientColor)(i.playerColorGradient))&&void 0!==n?n:i.playerColor}},{key:"playerColorGradient",value:function(t){var e=this._attrs,n=this.embedElement;if(null!=t){this.info("playerGradientColor",t);var i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){T(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e.playerColorGradient);return e.playerColorGradient=t,n.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:e.playerColor,prevColor:e.playerColor,gradient:t,prevGradient:i}})),this}return e.playerColorGradient}},{key:"captionsBackgroundColor",value:function(t){var e=this._attrs,n=this.embedElement;if(null!=t){this.info("captionsBackgroundColor",t);var i=e.captionsBackgroundColor;return e.captionsTextColor,e.captionsBackgroundColor=new o.Color(t).toHex(),i!==e.captionsBackgroundColor&&n.dispatchEvent(new CustomEvent("captionsbackgroundcolorchange",{detail:{color:e.captionsBackgroundColor,prevColor:i}})),this}return e.captionsBackgroundColor}},{key:"captionsTextColor",value:function(t){var e=this._attrs,n=this.embedElement;if(null!=t){this.info("captionsTextColor",t);var i=e.captionsTextColor;return e.captionsTextColor=new o.Color(t).toHex(),i!==e.captionsTextColor&&n.dispatchEvent(new CustomEvent("captionstextcolorchange",{detail:{color:e.captionsTextColor,prevColor:i}})),this}return e.captionsTextColor}},{key:"captionsTextSize",value:function(t){var e=this._attrs,n=this.embedElement;if(null!=t){this.info("captionsTextSize",t);var i=e.captionsTextSize;return e.captionsTextSize=t,i!==e.captionsTextSize&&n.dispatchEvent(new CustomEvent("captionstextsizechange",{detail:{color:e.captionsTextSize,prevColor:i}})),this}return e.captionsTextSize}},{key:"captionsFontFamily",value:function(t){var e=this._attrs,n=this.embedElement;if(null!=t){this.info("captionsFontFamily",t);var i=e.captionsFontFamily;return e.captionsFontFamily=t,i!==e.captionsFontFamily&&n.dispatchEvent(new CustomEvent("captionsfontfamilychange",{detail:{color:e.captionsFontFamily,prevColor:i}})),this}return e.captionsFontFamily}},{key:"captionsBorderRadius",value:function(t){var e=this._attrs,n=this.embedElement;if(null!=t){this.info("captionsBorderRadius",t);var i=e.captionsBorderRadius;return e.captionsBorderRadius=t,i!==e.captionsBorderRadius&&n.dispatchEvent(new CustomEvent("captionsborderradiuschange",{detail:{color:e.captionsBorderRadius,prevColor:i}})),this}return e.captionsBorderRadius}},{key:"playPauseNotifierEnabled",value:function(t){return this.publicApi._attrs.playPauseNotifier=t,this}},{key:"preloadValue",value:function(){var t;return null===(t=this.engine)||void 0===t?void 0:t.getPreload()}},{key:"qualityMax",value:function(t){var e;null!==(e=this.engine)&&void 0!==e&&e.qualityMax&&this.engine.qualityMax(t)}},{key:"qualityMin",value:function(t){var e;null!==(e=this.engine)&&void 0!==e&&e.qualityMin&&this.engine.qualityMin(t)}},{key:"qualityOptions",value:function(){var t=this._attrs;return{qualityMin:t.qualityMin,qualityMax:t.qualityMax}}},{key:"rebuild",value:function(){var t=this;return this.info("rebuild"),this.embedded((function(){t.ready(!1),t._oldVideoElem=t.elem(),t.stopStreaming(),(0,v.elemRemove)(t.wrapperElem),t.wipeOutstandingAsyncFunctions(),t.embed()})),this}},{key:"getRemapTime",value:(A=O().m((function t(){return O().w((function(t){for(;;)if(0===t.n)return t.a(2,this.publicApi.getRemapTime())}),t,this)})),j=function(){var t=this,e=arguments;return new Promise((function(n,i){var r=A.apply(t,e);function o(t){k(r,n,i,o,a,"next",t)}function a(t){k(r,n,i,o,a,"throw",t)}o(void 0)}))},function(){return j.apply(this,arguments)})},{key:"remove",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.info("remove"),!1!==n.trigger&&this.trigger("beforeremove"),this.hasData(!1),this.ready(!1),this.embedded(!1),null===(t=this.engine)||void 0===t||t.destroy(),this.stopStreaming(),!1!==n.trigger&&(this.trigger("down"),this.trigger("afterremove")),this.wipeOutstandingAsyncFunctions(),this._bindings={},this.cleanupRefs(),null!==(e=this.grid)&&void 0!==e&&e.root&&((0,v.elemUnbindAllInside)(this.grid.root),(0,v.elemRemove)(this.grid.root)),this.grid=null,this.elem()&&this.elem().removeEventListener("error",this.handleError)}},{key:"removeLoopBehavior",value:function(){var t=this;this.whenVideoElementInDom().then((function(){var e;null===(e=t.engine)||void 0===e||e.getMediaElement().removeAttribute("loop")}))}},{key:"renderUI",value:function(){}},{key:"requestFullscreen",value:function(){}},{key:"resetStateVariables",value:function(){this.info("resetStateVariables"),this._lastTimePosition=-1,this._lastState="beforeplay",this._streamSet=!1,this._issuedPlay=!1,this._issuedPause=!1,this._beforePlay=!0,this._hasPlayed=!1,this._waiting=0,this._ended=!1,this.playing(!1)}},{key:"sdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"secondsWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched():0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatchedVector():[]}},{key:"setBigPlayButtonBorderRadius",value:function(t){this._attrs.bigPlayButtonBorderRadius=t,this.embedElement.dispatchEvent(new Event("bigplaybuttonborderradiuschange")),this.trigger("bigplaybuttonborderradiuschange")}},{key:"setControlBarBorderRadius",value:function(t){this._attrs.controlBarBorderRadius=t,this._attrs.playerBorderRadius&&0!==t?this.setControlBarDistance(this._attrs.playerBorderRadius/4):this.setControlBarDistance(.333*t),this.embedElement.dispatchEvent(new Event("controlbarborderradiuschange")),this.trigger("controlbarborderradiuschange")}},{key:"setControlBarDistance",value:function(t){this._attrs.controlBarDistance=t,this.embedElement.dispatchEvent(new Event("controlbardistancechange")),this.trigger("controlbardistancechange")}},{key:"setFloatingControlBar",value:function(t){this._attrs.floatingControlBar=t}},{key:"setPlayerBorderRadius",value:function(t){this._attrs.playerBorderRadius=t,this.embedElement.dispatchEvent(new Event("playerborderradiuschange")),this.trigger("playerborderradiuschange")}},{key:"setPlayerColor",value:function(t){return this.playerColor(t),this}},{key:"setRoundedPlayer",value:function(t){this.setFloatingControlBar(Boolean(t)),this.setPlayerBorderRadius(t),this.setControlBarDistance(.25*t),this.setBigPlayButtonBorderRadius(.75*t),this.setControlBarBorderRadius(.75*t),this.renderUI()}},{key:"setResumable",value:function(t){this._attrs.resumable=t,this.embedElement.dispatchEvent(new Event("resumablechange"))}},{key:"setupGrid",value:function(e){return this.grid||(this.grid=t.createGrid(this,e),(0,v.elemAppend)(this.chrome,this.grid.root)),this.grid}},{key:"setupPercentTracking",value:function(){var t=this;if(!this._trackPercent){if(this._secondsWatchedTracker=new h.SecondsWatchedTracker(this,this.duration(),{maxWatchingPlaybackRate:this._opts.maxWatchingPlaybackRate}),"playing"===this.state())for(var e=Math.ceil(this.time()),n=0;n<e;n++)this._secondsWatchedTracker.trackSecond(n,{force:!0});this._trackPercent=function(e){var n=t.percentWatched();t._secondsWatchedTracker.trackSecond(e),t.percentWatched()!==n&&(t.embedElement.dispatchEvent(new CustomEvent("percent-watched-change",{detail:{percentWatched:t.percentWatched(),lastPercentWatched:n}})),t.trigger("percentwatchedchanged",t.percentWatched(),n),t._percentWatchedThreshold(t.percentWatched()))},this.rebind("secondchange",this._trackPercent)}}},{key:"setupPipedreamTracking",value:function(){var e=this;this.whenVideoElementInDom().then((function(n){(0,c.doTimeout)("".concat(e.uuid,".track-initembed"),(function(){t.Metrics.videoCount(e,"player/initembed"),t.Metrics.mobileBuckets(e).forEach((function(n){t.Metrics.videoCount(e,"player/initembed.".concat(n))})),t.Metrics.embedTypeBuckets(e.embedElement).forEach((function(n){t.Metrics.videoCount(e,"player/initembed.".concat(n))}));var n=(0,i.usablePlayers)(e.publicApi.judyCtx(),e.publicApi._mediaData);t.Metrics.videoCount(e,"player/available-players",1,{available_players:n})}),100),n.addEventListener("error",e.handleError)})),this.bind("play",(function(){return t.Metrics.videoCount(e,"player/play"),t.Metrics.mobileBuckets(e).forEach((function(n){t.Metrics.videoCount(e,"player/play.".concat(n))})),t.Metrics.embedTypeBuckets(e.embedElement).forEach((function(n){t.Metrics.videoCount(e,"player/play.".concat(n))})),e.unbind})),t.Metrics.countEventOnce(this,"enter-fullscreen"),t.Metrics.countEventOnce(this,"end"),t.Metrics.countShowLoadingOnce(this),t.Metrics.countShowLoadingAll(this),t.Metrics.countShowLoadingLongTimeOnce(this),t.Metrics.countShowLoadingLongTimeAll(this),this.bind("secondchange",(function(){if(e.secondsWatched()>=10)return t.Metrics.videoCount(e,"player/played-10-seconds"),t.Metrics.embedTypeBuckets(e.embedElement).forEach((function(n){t.Metrics.videoCount(e,"player/played-10-seconds.".concat(n))})),e.unbind})),this.bind("secondchange",(function(){if(e.secondsWatched()>=30)return t.Metrics.videoCount(e,"player/played-30-seconds"),e.unbind}))}},{key:"setupErrorTracking",value:function(){(0,g.initializeSentry)()}},{key:"settingsControlEnabled",value:function(t){return this.publicApi._attrs.settingsControl=t,this}},{key:"slide",value:function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return this.animate.apply(this,[{transform:"translate(".concat(t,"px,").concat(e,"px)")}].concat(i))}},{key:"slideInLeft",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,v.elemStyle)(this.grid.root,{transform:"translate(".concat(this.videoWidth(),"px, 0px)")}),setTimeout((function(){return t.slide(0,0,e)}),1),this}},{key:"slideInRight",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,v.elemStyle)(this.grid.root,{transform:"translate(".concat(-this.videoWidth(),"px, 0px)")}),setTimeout((function(){return t.slide(0,0,e)}),1),this}},{key:"slideOutLeft",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,v.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return t.slide(-t.videoWidth(),0,e)}),1),this}},{key:"slideOutRight",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,v.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return t.slide(t.videoWidth(),0,e)}),1),this}},{key:"playPauseControlEnabled",value:function(t){return this.publicApi._attrs.playPauseControl=t,this}},{key:"setCustomizeEmbedOptions",value:function(t){var e=this;this.hasData((function(){var n=e.embedOptions();e.publicApi._embedOptions=null,e.publicApi._customizeEmbedOptions=t,e.publicApi._opts=e._gatherOptions(),e._opts=(0,d.clone)(e.publicApi._opts),e._embedOptions=null,e.embedElement.dispatchEvent(new CustomEvent(w.EMBED_OPTIONS_CHANGED_EVENT,{detail:{currentEmbedOptions:e.embedOptions(),previousEmbedOptions:n}}))}))}},{key:"sourceHashedId",value:function(){return this.publicApi.sourceHashedId()}},{key:"suppressPlay",value:function(t){return null!=t?(this.info("suppressPlay",t),this._suppressPlay=Boolean(t),this._suppressPlay):this._suppressPlay}},{key:"state",value:function(){return"beforeplay"}},{key:"stillAsset",value:function(){return r.still(this._mediaData.assets)}},{key:"stillUrl",value:function(t){var e,n;return(t=(0,d.merge)({videoWidth:this.videoWidth(),videoHeight:this.videoHeight()},this._opts,{stillUrl:this._attrs.poster},t)).playerColor||(t.playerColor=null===(e=this._mediaData)||void 0===e||null===(n=e.embedOptions)||void 0===n?void 0:n.playerColor),r.stillUrl(this._mediaData.assets,t)}},{key:"stopStreaming",value:function(){}},{key:"thumbnailAssets",value:function(){return r.thumbnailAssets(this._mediaData.assets,(0,d.merge)({},this._opts,{instantHlsStillAsset:this._mediaData.instantHlsStillAsset,originalFileStillAsset:this._mediaData.originalFileStillAsset,playButton:!1,stillUrl:this._attrs.poster,videoHeight:this.videoHeight(),videoWidth:this.videoWidth()}))}},{key:"time",value:function(t){var e=this;return null!=t?(this.info("time",t),this.ready((function(){return e.time(t)})),this):0}},{key:"transferFacadeProperties",value:function(){var t=this;"\n _attrs\n _embedContainer\n _givenOptions\n _hashedId\n _hasImpl\n _mediaData\n _opts\n _originalMediaData\n _tracker\n chrome\n container\n controls\n data\n down\n fullscreenContainer\n options\n params\n plugin\n plugins\n up\n ".split(/[\n\s]+/).forEach((function(e){t[e]=t.publicApi[e]}))}},{key:"trim",value:function(t){if(null==t)return this._trimSettings||{start:0,end:-1};this._trimSettings=t}},{key:"unmute",value:function(){this._muted=!1,this._isPlayingSilently=!1,this.trigger("volumechange",this.volume()),this.embedElement.dispatchEvent(new CustomEvent("volume-change",{detail:{volume:this.volume(),isMuted:!1}}))}},{key:"videoHeight",value:function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=t){this.info("videoHeight",t,i),t=parseFloat(t);var r=this.height();return this.chrome.style.height="".concat(t,"px"),this.trigger("heightchange",t,r),this.embedElement.dispatchEvent(new CustomEvent("heightchange",{detail:{height:t,prevHeight:r}})),i.constrain&&this.constrainToHeight(),this}return"WISTIA-PLAYER"!==(null===(e=this.embedElement)||void 0===e?void 0:e.tagName)||null!==(n=this.embedElement)&&void 0!==n&&n.wistiaPopover?(0,v.elemHeight)(this.chrome):(0,v.elemHeight)(this.embedElement)}},{key:"videoWidth",value:function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=t){this.info("videoWidth",t,i),t=parseFloat(t);var r=this.width();return this.chrome.style.width="".concat(t,"px"),this.trigger("widthchange",t,r),this.embedElement.dispatchEvent(new CustomEvent("widthchange",{detail:{width:t,prevWidth:r}})),i.constrain&&this.constrainToWidth(),this}return"WISTIA-PLAYER"!==(null===(e=this.embedElement)||void 0===e?void 0:e.tagName)||null!==(n=this.embedElement)&&void 0!==n&&n.wistiaPopover||this.inFullscreen()?(0,v.elemWidth)(this.chrome):(0,v.elemWidth)(this.embedElement)}},{key:"getVideoQuality",value:function(){return"auto"}},{key:"setVideoQuality",value:function(){return this}},{key:"visitorKey",value:function(){var t;return null===(t=this._tracker)||void 0===t?void 0:t.visitorKey()}},{key:"volume",value:function(t){var e=this;return null!=t?(this.info("volume",t),this.volumeAttr(t),this.ready((function(){return e.volume(t)}))):0}},{key:"volumeAttr",value:function(t){this._attrs.volume=t}},{key:"volumeControlEnabled",value:function(t){return this.publicApi._attrs.volumeControl=t,this}},{key:"webmAsset",value:function(t){return r.webm(this._mediaData.assets,t)}},{key:"webmAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.webm(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"whenVideoElementInDom",value:function(){return new Promise((function(t){}))}},{key:"width",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("width",t,e),t=parseFloat(t);var n=this.width();return this.chrome.style.width="".concat(t,"px"),this.trigger("widthchange",t,n),this.embedElement.dispatchEvent(new CustomEvent("widthchange",{detail:{width:t,prevWidth:n}})),e.constrain&&this.constrainToWidth(),this._width=t,this}return(0,v.elemWidth)(this.grid.left)+(0,v.elemWidth)(this.grid.center)+(0,v.elemWidth)(this.grid.right)}},{key:"widthForHeight",value:function(t){return t*this.aspect()}},{key:"wipeOutstandingAsyncFunctions",value:function(){this.info("wipeOutstandingAsyncFunctions"),u.globalEventLoop.remove(this.uuid),(0,c.clearTimeouts)(this.uuid),this._remoteMediaKey&&(0,c.clearTimeouts)(this._remoteMediaKey)}},{key:"_isExternallyEmbedded",value:function(){return!this._isOnWistia()}},{key:"_isLoggedIn",value:function(){return document.querySelector("body").classList.contains("logged_in")}},{key:"_isOnWistia",value:function(){var t=this._opts._inIframe?document.referrer:window.location.href;return/wistia\.(io|st|com)/.test(t)}},{key:"_isShared",value:function(){return this._isOnWistia()&&!this._isLoggedIn()}},{key:"_percentWatchedThreshold",value:function(t){var e=this;this._thresholds||(this._thresholds=[.25,.5,.75,1]);var n=[],i=Math.round(100*t)/100;this._thresholds.forEach((function(t){i>=t?e.trigger("percentWatchedThreshold",t):n.push(t)})),this._thresholds=n}},{key:"_recordFirstEmbedIfEligible",value:function(){var t=this._mediaData,e=t.accountKey,n=t.firstEmbedForAccount,i=t.firstShareForAccount,r=t.hashedId,o=n&&this._isExternallyEmbedded(),a=i&&this._isShared();if(o||a){var u,l="".concat((0,s.eV1Protocol)(),"//").concat((0,s.appHost)(),"/account/activities"),c={account_key:e,media_hashed_id:r};o&&(c.first_embed=this._isExternallyEmbedded()),a&&(c.first_share=this._isShared()),e>"wistia-production_1819717"&&((0,p.countMetric)("wistia/record-first-embed-or-share-metadata",1,{is_externally_embedded:this._isExternallyEmbedded(),is_shared:this._isShared(),first_embed_for_account:n,first_share_for_account:i,account_key:e,media_hashed_id:r}),o&&"WISTIA-PLAYER"===(null===(u=this.embedElement)||void 0===u?void 0:u.tagName)&&(0,p.countMetric)("player/first-embed-web-component",1,{account_key:e,media_hashed_id:r,url:window.location.href})),fetch(l,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)})}}},{key:"_refreshDataFromServer",value:function(e,n){var i=this,r=this.embedOptions().embedHost||t.remote.embedHost();return fetch("//".concat(r,"/embed/medias/").concat(this.hashedId(),".json")).then((function(t){return t.json()})).then((function(n){return i.publicApi._originalMediaData=n.media,i._mediaData=i.publicApi._transformAndUpdateMediaData(),i._newStill&&i._replaceStillAsset(i._newStill),i.publicApi._mediaData=i._mediaData,t.cacheMedia(i.hashedId(),i._mediaData),null==e||e(),i.trigger("refreshed-from-server"),i._mediaData})).catch(n)}},{key:"_replaceStillAsset",value:function(t){var e=this.assets().filter((function(t){return"still_image"!==t.type}));this._mediaData.assets=e,this._mediaData.assets.push(t)}},{key:"_shortAnimArgs",value:function(t){return"function"==typeof t[0]?{callback:t[0]}:(0,d.merge)({},t[0],{callback:t[1]})}}],n&&C(e.prototype,n),P&&C(e,P),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,P,A,j}();n.FAILED=-1,n.PROCESSING=1,n.QUEUED=0,n.READY=2,n.asset=r.one,n.assets=r.filter,n.assetsWithinQualityRange=r.withinQualityRange,n.bakeryHosts=function(){return r.BAKERY_HOSTS},n.isBakeryUrl=r.isBakeryUrl,n.stillAsset=r.still,n.stillUrl=r.stillUrl,t.mixin(n.prototype,t.bindable),t.mixin(n.prototype,t.logHelpers),n.prototype._logPrefix=function(){var t;return[this.constructor.name,this.hashedId()||"no hashedId",null===(t=this._embedContainer)||void 0===t?void 0:t.id,this.uuid]};var P=n.prototype.trigger;n.prototype.trigger=function(){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return P.apply(this,n),(t=this.publicApi)._triggerNoImpl.apply(t,n)},null!==(e=t.PublicApi)&&void 0!==e&&e.prototype&&Object.getOwnPropertyNames(t.PublicApi.prototype).forEach((function(e){var i=t.PublicApi.prototype[e];"function"!=typeof i||E(n.prototype,e)||function(t,e){n.prototype[t]=function(){var e;return(e=this.publicApi)[t].apply(e,arguments)},n.prototype[t]._originalMethod=e}(e,i)})),t.Player=t.Video=n}}(window.Wistia)},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function r(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}n.d(e,{SecondsWatchedTracker:()=>a});var a=function(){return t=function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,"onTimeChange",(function(){i.lastTimeChangeAt=i.timeChangeAt,i.timeChangeAt=Date.now()})),r(this,"onPlaybarDragEnd",(function(){i.playbarDragEndAt=Date.now()})),r(this,"onPlay",(function(){i.playedAt=Date.now()})),this.video=e,this.duration=n,this.maxWatchingPlaybackRate=o.maxWatchingPlaybackRate||8,this.video.bind("timechange",this.onTimeChange),this.video.bind("playbardragend",this.onPlaybarDragEnd),this.video.bind("play",this.onPlay),this.reset(),o.existingTracker&&(this._secondsWatched=o.existingTracker._secondsWatched,this._totalWatched=o.existingTracker._totalWatched,this._totalRewatched=o.existingTracker._totalRewatched,this.timeChangeAt=o.existingTracker.timeChangeAt,this.lastTimeChangeAt=o.existingTracker.lastTimeChangeAt,this.lastPlaybarDragEndAt=o.existingTracker.lastPlaybarDragEndAt)},e=[{key:"trackSecond",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{force:!1},i=function(){!n.force&&e.shouldIgnoreTrack(t)||t>=e._secondsWatched.length||(e._secondsWatched[t]+=1,1===e._secondsWatched[t]?e._totalWatched+=1:e._totalRewatched+=1)};this.isScrubbing()?(clearTimeout(this.delayedScrubTimeout),this.delayedScrubTimeout=setTimeout(i,this.eventLoopDuration())):i()}},{key:"shouldIgnoreTrack",value:function(t){var e=t===this._secondsWatched.length-1&&"ended"===this.video.state();return"playing"!==this.video.state()&&!e||this.video.playbackRate()>=this.maxWatchingPlaybackRate||!this.justReleasedPlaybar()&&!this.justPlayed()&&(!!this.isScrubbing()||void 0)}},{key:"eventLoopDuration",value:function(){var t;return(null===(t=this.video._impl)||void 0===t?void 0:t._eventLoopDuration)||300}},{key:"isScrubbing",value:function(){return this.lastTimeChangeAt&&Date.now()-this.lastTimeChangeAt<this.eventLoopDuration()}},{key:"justPlayed",value:function(){return this.playedAt&&Date.now()-this.playedAt<this.eventLoopDuration()}},{key:"justReleasedPlaybar",value:function(){return this.playbarDragEndAt&&Date.now()-this.playbarDragEndAt<this.eventLoopDuration()}},{key:"secondsWatched",value:function(){return this._totalWatched||0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatched}},{key:"reset",value:function(){clearTimeout(this.delayedScrubTimeout),this.timeChangeAt=null,this.lastTimeChangeAt=null,this.lastPlaybarDragEndAt=null,this._secondsWatched=[];for(var t=0;t<Math.ceil(this.duration);t++)this._secondsWatched.push(0);this._totalWatched=0,this._totalRewatched=0}}],e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},(t,e,n)=>{var i=n(3);!function(t){null==t._onFullscreenChange&&(t._onFullscreenChange=function(){return i.fullscreenElement()?t.trigger("enterfullscreen",i.fullscreenElement()):t.trigger("cancelfullscreen")}),t._initializers.initFullscreenTriggers=function(){return i.elemRebind(document,"webkitfullscreenchange",t._onFullscreenChange),i.elemRebind(document,"fullscreenchange",t._onFullscreenChange)},t._destructors.destroyFullscreenTriggers=function(){return i.elemUnbind(document,"webkitfullscreenchange",t._onFullscreenChange),i.elemUnbind(document,"fullscreenchange",t._onFullscreenChange)}}(window.Wistia)},(t,e,n)=>{n(23);var i=n(24),r=n(72),o=n(26),a=n(4);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function u(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}!function(t){t.BandwidthTest=function(){return e=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.opt=e,this.opt=(0,a.merge)({minKbps:2500,timeoutLength:4e3,freshFor:36e5},this.opt),this.opt.uuid||(this.opt.uuid=(0,o.seqId)("bandwidth_test_"))},n=[{key:"start",value:function(){var t,e=this;null===(t=this._testXhr)||void 0===t||t.abort(),this._testStart=(new Date).getTime(),this._testXhr=new XMLHttpRequest,this._testXhr.open("GET",this.testFileUrl(),!0);var n=1e6*Math.floor(100*Math.random()),i=n+999999;return this._testXhr.setRequestHeader("Range","bytes=".concat(n,"-").concat(i)),(0,r.doTimeout)("".concat(this.uuid,".cancel_bandwidth_test"),(function(){return e.trigger("timeout"),e.fail()}),this.opt.timeoutLength),this._testDataLoaded=0,this._onTestXhrProgress=function(t){return e._testDataLoaded=t.loaded,e.trigger("progress",t)},this._testXhr.addEventListener("progress",this._onTestXhrProgress),this._onTestXhrLoaded=function(){return e.succeed()},this._testXhr.addEventListener("load",this._onTestXhrLoaded),this._testXhr.send(null),this.trigger("started")}},{key:"fail",value:function(){return this._sampleKbps(),this._supportsHd=!1,this.saveResult(),this.trigger("failed"),this.end()}},{key:"succeed",value:function(){if(this._sampleKbps(),this._supportsHd=!0,this.saveResult(),this.trigger("succeeded"),this.end(),this._suspiciouslyFast())return this._reportSuspiciousBandwidthTest()}},{key:"_reportSuspiciousBandwidthTest",value:function(){try{var e,n,i,r;if(this._suspiciouslyFast())return t.Metrics.count("player/suspicious-bandwidth-test",1,{bw_test_time:this._testTime,visitor_key:t.visitorKey.value(),location:null!==(e=location)&&void 0!==e&&null!==(n=e.protocol)&&void 0!==n&&n.length&&null!==(i=location)&&void 0!==i&&null!==(r=i.hostname)&&void 0!==r&&r.length?"".concat(location.protocol,"//").concat(location.hostname):null,connection_type:t.Metrics.connectionType(),agent:navigator.userAgent})}catch(e){return t.error(e)}}},{key:"_suspiciouslyFast",value:function(){return this._testTime<.05}},{key:"_sampleKbps",value:function(){return this._testEnd=(new Date).getTime(),this._testTime=(this._testEnd-this._testStart)/1e3,this._kbps=8*this._testDataLoaded/1e3/this._testTime}},{key:"endEarly",value:function(){return null==this._supportsHd&&null!=this._testDataLoaded?(this._sampleKbps(),this._supportsHd=!(this._testTime>1)||this._kbps>=this.opt.minKbps,this.trigger("ended-early"),this.end()):(this.end(),this.trigger("ended-early"))}},{key:"end",value:function(){var t,e,n;return this._onTestXhrLoaded&&(null===(e=this._testXhr)||void 0===e||e.removeEventListener("load",this._onTestXhrLoaded)),this._onTestXhrProgress&&(null===(n=this._testXhr)||void 0===n||n.removeEventListener("progress",this._onTestXhrProgress)),null===(t=this._testXhr)||void 0===t||t.abort(),this._testXhr=null,(0,r.clearTimeouts)("".concat(this.uuid,".cancel_bandwidth_test")),this.trigger("ended")}},{key:"testFileUrl",value:function(){return this.opt.testFileUrl||("https:"===(0,i.proto)()?"https://embed-ssl.wistia.com/deliveries/6992339c876a95a37250fbe5b0a0eaecca3018a5/file.jpg?bust=2015-12-29a":"http://embed.wistia.com/deliveries/76a57ca47a1978a834d82dcf7eeb03a6.bin?bust=2015-12-29a")}},{key:"saveKey",value:function(){return this.opt.saveKey||"bandwidth_test"}},{key:"saveResult",value:function(){return t.localStorage(this.saveKey(),{updatedAt:(new Date).getTime(),supportsHd:this._supportsHd,clientKbps:this._kbps})}},{key:"savedResult",value:function(){return t.localStorage(this.saveKey())}},{key:"isFresh",value:function(){var t;return(new Date).getTime()-((null===(t=this.savedResult())||void 0===t?void 0:t.updatedAt)||0)<this.opt.freshFor}},{key:"supportsHd",value:function(){return this._supportsHd||!1}}],n&&s(e.prototype,n),u&&s(e,u),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,u}(),t.mixin(t.BandwidthTest.prototype,t.bindable)}(window.Wistia)},function(t,e,n){var i,r,o,a,s,u,l,c,d,h,p,f,v,y,m;a=n(16).Wistia,f=n(38).isVisitorTrackingEnabled,m=n(4),s=m.assign,v=m.merge,h=n(84).getResumableKeyForVideo,d=n(53).getCarouselDataFromCache,c=n(72).doTimeout,i=n(24).Url,y=n(3).pageLoaded,v=n(4).merge,n(21).runScript,u=n(54).base64Encode,o=n(157),r=n(159),l=function(t){var e;return null!=(e="none"===t)?e:{true:!1}},p=function(t){var e;return{campaign:(e=new i(t._attrs.pageUrl).params).utm_campaign||null,medium:e.utm_medium||null,source:e.utm_source||null}},function(t){var e;if(!t.VideoTracker2)e=["_eventQueue","_failedEventsQueue","_played","_retryInterval","_retryTimer","clockStart","initializedOnce","lastBucket","lastRecordedTime","lastSecondsWatched","lastSeekTime","videoTrackerLocalStorage","videoTrackerSession"],t.VideoTracker2=function(){function n(t){var n,i;this.publicApi=t,this.eventQueue=[],this.initializedOnce=!1,this.monitoring=!1,this.remapTimeToSource=(i=this,function(t){var e,n;return n=i.publicApi.sourceLocalization(),(e=i.publicApi.language()).isLocalization&&n.ietfLanguageTag!==e.ietfLanguageTag?i.remapTime(e,n,t):t}),(n=this.publicApi.embedOptions().existingTracker)?(e.forEach(function(t){return function(e){return t[e]=n[e]}}(this)),this.initializedOnce&&this.publicApi.hasData(function(t){return function(){return t.timeRemappingReady((function(){return t.videoTrackerSession=new o(t.publicApi,t.remapTimeToSource,n.videoTrackerSession),t.videoTrackerLocalStorage=new r(t._getAccountKey(),t.publicApi.sourceHashedId(),(function(){var e;return(e=t.publicApi).info.apply(e,arguments)}))}))}}(this))):this._setStartValues(),this.publicApi.hasData(function(t){return function(){t.params=v({transmitInterval:1e3*(t.publicApi._mediaData.trackingTransmitInterval||10)},t.publicApi._opts),t.timeRemappingReady((function(){})),t.publicApi._attrs.shouldTrack}}(this))}return n.prototype.NUM_BUCKETS=1e3,n.prototype.conversions={"missing-conversion":0,"pre-roll-email":1,"post-roll-email":2,"mid-roll-email":3,"post-roll-click":4,"mid-roll-click":5,"non-video":6},n.prototype._setStartValues=function(){return this.clockStart=(new Date).getTime(),this._played=!1,this.lastRecordedTime=0,this.lastSeekTime=0,this.lastSecondsWatched=0,this.lastBucket=-1},n.prototype._getAccountKey=function(){return this.publicApi._opts.accountKey||this.publicApi._mediaData.accountKey},n.prototype._getEnabledEmbedOptions=function(){var t,e,n,i,r,o,a,s;for(e in o=(t=this.publicApi.embedOptions()).plugin||{},r={},n={turnstile_enabled:"requireEmail-v1",annotation_link_enabled:"midrollLink-v1",call_to_action_enabled:"postRoll-v1",eventbrite_enabled:"eventbrite",hubspot_form_enabled:"hubspotForm",marketo_form_enabled:"marketoForm"})i=n[e],r[e]=!!o[i]&&("true"===(a=o[i].on)||!0===a);return r.auto_play_enabled="true"===(s=t.autoPlay)||!0===s,r.looping_enabled="loop"===this.publicApi._attrs.endVideoBehavior,r},n.prototype._sourceMediaKey=function(){return this.publicApi._mediaData.sourceMediaKey||this.publicApi._mediaData.mediaKey},n.prototype._data=function(){var t,e,n,i,r,o,a,s,u,l,c,h,y;return a=(r=this.publicApi.sourceLocalization().ietfLanguageTag!==this.publicApi.language().ietfLanguageTag)?this.publicApi._mediaData.mediaKey:void 0,o=r?this.publicApi._mediaData.duration:void 0,h=r?this._sourceMediaKey():void 0,c=r?this.publicApi.sourceLocalization().duration:void 0,l=v({account_key:this._getAccountKey(),event_details:this.eventQueue,page_title:this.publicApi._getPageTitle(),browser_language:this.publicApi._getBrowserLanguage(),foreign_data:this.publicApi.foreignData(),is_localization:r,localized_media_id:a,localized_media_duration:o,source_media_id:h,source_media_duration:c,media_duration:this.remapTimeToSource(parseFloat(this.publicApi._mediaData.duration)),media_id:this._sourceMediaKey(),media_type:this._mediaType(),referrer:this.publicApi._attrs.pageUrl,referrer_url:this.publicApi._attrs.referrerUrl,resumable_key:this.resumableKey(),session_id:this.visitorKey(),utm_params:p(this.publicApi),visitor_version:this.videoTrackerLocalStorage.getVisitorVersion(),event_version:"1.0.0",player_type:"modern",enabled_embed_options:this._getEnabledEmbedOptions(),visibility_metrics:this.publicApi._getEmbedVisibilityMetrics()},this.videoTrackerSession.fetchSessionData()),this.publicApi.email()&&(l.email=this.publicApi.email()),!this.publicApi._opts.anonymizeIp&&f()||(l.anonymizeIp=!0),this.params.conversionType&&(l.conversion_type=this.conversions[this.params.conversionType]),this.params.conversionData&&(l.conversion_data=this.params.conversionData),this.publicApi._opts.channel&&(l.channel=this.publicApi._opts.channel),this.publicApi.embedOptions().channelId&&(l.channel_id=this.publicApi.embedOptions().channelId),this.publicApi._mediaData.projectId&&(l.project_id=this.publicApi._mediaData.projectId),(null!=(s=this.publicApi._mediaData.liveStreamEventDetails)?s.id:void 0)&&(l.live_stream_event_id=null!=(u=this.publicApi._mediaData.liveStreamEventDetails)?u.id:void 0),l.episode_id=this.publicApi.embedOptions().episodeIdMappings?this.publicApi.embedOptions().episodeIdMappings[this.publicApi.sourceHashedId()]:this.publicApi.embedOptions().episodeId?this.publicApi.embedOptions().episodeId:void 0,n=null,i=this.publicApi.getConnectedCarouselEmbed(),null!==this.publicApi.wistiaPlaylistElem&&null!==this.publicApi.wistiaPlaylistElem.channelId?n=this.publicApi.wistiaPlaylistElem.channelId:i&&(n=i.channelId),null!==n&&(e=(t=d(n)).medias.find((y=this,function(t){return t.hashedId===y.publicApi.sourceHashedId()})),t&&e&&(l.channel_id=t.numericId,l.episode_id=e.episodeId)),JSON.stringify(l)},n.prototype._mediaType=function(){return this.publicApi._mediaData.mediaType},n.prototype.reset=function(){return this.stopMonitoring(),this._setStartValues(),this.initializedOnce=!1},n.prototype.initialize=function(){var t;return this.initializedOnce||(this.publicApi.info("video tracker initialize"),this.videoTrackerLocalStorage=new r(this._getAccountKey(),this.publicApi.sourceHashedId(),(t=this,function(){var e;return(e=t.publicApi).info.apply(e,arguments)})),this._failedEventsQueue=[],this._retryTimer=null,this._retryInterval=1e3,this.initializedOnce=!0,this._setStartValues(),this.log("initialized"),this.videoTrackerLocalStorage.recordLoad(),this.debounceTransmit()),this},n.prototype.monitor=function(){var e;return this.initializedOnce||this.publicApi.hasData((e=this,function(){return e.timeRemappingReady((function(){return e.videoTrackerSession=new o(e.publicApi,e.remapTimeToSource)}))})),this.publicApi.embedded(function(e){return function(){return e.timeRemappingReady((function(){return e.stopMonitoring(),e.publicApi.info("_tracker.monitor"),e.initialize(),null==e.onPlaybackRateChange&&(e.onPlaybackRateChange=function(t){return e.log("playbackRateChange",null,t)}),null==e.onPlay&&(e.onPlay=function(){if(e.log("play"),e.videoTrackerLocalStorage.recordPlay(),!e._played)return e._played=!0,e.debounceTransmit()}),null==e.onPause&&(e.onPause=function(){if(Math.abs(e.remappedVideoDuration()-e.remappedVideoTime())>.3)return e.log("pause")}),null==e.onEnd&&(e.onEnd=function(){return e.log("end"),e.transmit()}),null==e.onSeek&&(e.onSeek=function(t,n){if(!(Math.abs(n-t)<5))return e.lastSeekTime=n,e.log("seek")}),null==e.onConversionLink&&(e.onConversionLink=function(t){return e.logConversionOpportunity(t)}),null==e.onPercentWatchedThreshold&&(e.onPercentWatchedThreshold=function(t){return e.log("percentWatchedThreshold",null,t),e.transmit()}),e.monitoring=!0,e.publicApi.rebind("play",e.onPlay),e.publicApi.rebind("pause",e.onPause),e.publicApi.rebind("end",e.onEnd),e.publicApi.rebind("seek",e.onSeek),e.publicApi.rebind("playbackratechange",e.onPlaybackRateChange),e.publicApi.rebind("conversion-link",e.onConversionLink),e.publicApi.rebind("percentWatchedThreshold",e.onPercentWatchedThreshold),e.videoTrackerSession.setupBindings(),"playing"===e.publicApi.state()&&e.onPlay(),c(e.publicApi.uuid+".start_tracking_timeout",(function(){return e.publicApi.info("_tracker start tracking_loop"),t.eventLoop.add(e.publicApi.uuid+".tracking_loop",e.params.transmitInterval,(function(){return"playing"===e.publicApi.state()&&e.log("update"),e.transmit()}))}),Math.random()*e.params.transmitInterval+1e3)}))}}(this))},n.prototype.stopMonitoring=function(){if(this.publicApi.info("_tracker.stopMonitoring"),this.monitoring=!1,this.onPlay&&this.publicApi.unbind("play",this.onPlay),this.onPause&&this.publicApi.unbind("pause",this.onPause),this.onEnd&&this.publicApi.unbind("end",this.onEnd),this.onSeek&&this.publicApi.unbind("seek",this.onSeek),this.onConversionLink&&this.publicApi.unbind("conversion-link",this.onConversionLink),this.onPercentWatchedChanged&&this.publicApi.unbind("percentwatchedchanged",this.onPercentWatchedChanged),this.videoTrackerSession)return this.videoTrackerSession.removeBindings()},n.prototype.distilleryUrl=function(){return this.publicApi._attrs.statsUrl||this.publicApi._mediaData.distilleryUrl},n.prototype.sendToDistillery=function(e){return fetch(this.distilleryUrl(),{method:"POST",mode:"cors",headers:{"Content-Type":"text/plain"},body:encodeURIComponent(e)}).catch((n=this,function(e){return t.Metrics.videoCount(n.publicApi,"player/distillery-error-response/"+e.status)}));var n},n.prototype.readyToTrack=function(e){return this.publicApi.hasData((n=this,function(){return n.timeRemappingReady((function(){return y((function(){return t.visitorKey.ready().then(e)}))}))}));var n},n.prototype.timeRemappingReady=function(t){return this.publicApi.languages().length>1?this.publicApi.getRemapTime().then((e=this,function(n){return e.remapTime=n,t()})):t();var e},n.prototype.transmit=function(t){var e;if(null==t&&(t={}),this.publicApi._attrs.shouldTrack)return this.readyToTrack((e=this,function(){var n;if(e.eventQueue.length>0||t.force)return n=e._data(),e.publicApi.info("_tracker.transmit",n),e.publicApi.trigger("transmit-stats",n),e.sendToDistillery(u(n)),e.eventQueue=[]}))},n.prototype.debounceTransmit=function(){return c(this.publicApi.uuid+".transmit_play_data",(t=this,function(){return t.transmit()}),350);var t},n.prototype.log=function(t,e,n){var i,r,o,a;if(this.publicApi._attrs.shouldTrack)return this.publicApi.info("_tracker.log",t,e,n),this.videoTrackerSession.ping(),o=(a=(r=this.videoTrackerSession.secondsWatched())-this.lastSecondsWatched)/this.remappedVideoDuration(),this.lastSecondsWatched=r,"conversion"===t?(this.params.conversionType=e,this.params.conversionData=n,this.transmit({force:!0})):(i={key:t,value:this.timeInVideo(),timeDelta:this.timeDelta(),uniquePlayedTime:a,uniquePlayedRatio:o},"initialized"===t?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastLoadForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastLoadForMedia(),i.isUnique=l(this.videoTrackerLocalStorage.lastLoadForMedia())):"play"===t?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastPlayForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastPlayForMedia(),i.isUnique=l(this.videoTrackerLocalStorage.lastPlayForMedia()),this._played?i.key="unpause":(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo())):"seek"===t?(this.addPlayedTime(i,this.lastSeekTime),this.addBuckets(i,this.lastSeekTime),this.lastRecordedTime=this.timeInVideo()):"update"===t?(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo()):"playbackRateChange"===t||"percentWatchedThreshold"===t?i.value=n:"end"===t&&(this.addPlayedTime(i),this.addBuckets(i),this.lastBucket=-1,this.lastRecordedTime=this.timeInVideo()),this.publicApi.debug("_tracker.log",i),this.eventQueue.push(i))},n.prototype.addPlayedTime=function(t,e){var n,i;return n=void 0!==e?e:this.timeInVideo(),i=Math.max(n-this.lastRecordedTime,0),t.playedTime=String(i)},n.prototype.addBuckets=function(t,e){var n,i;if("beforeplay"!==this.publicApi.state()&&(i=this.remappedVideoTime(),n=this._timeToBucket(e||i),this.lastBucket<n&&(t.startBucket=this.lastBucket+1,t.endBucket=n),this.lastBucket=this._timeToBucket(i),e))return this.lastBucket-=1},n.prototype._timeToBucket=function(t){return Math.floor(t/this.remappedVideoDuration()*this.NUM_BUCKETS)},n.prototype.logConversionOpportunity=function(e){var n;if(this.publicApi._attrs.shouldTrack)return this.videoTrackerSession.ping(),null!=e.co_key?(e.is_new_lead=this.videoTrackerLocalStorage.isNewLead(),n={key:"conversion",value:e,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logConversionOpportunity",e),this.eventQueue.push(n)):t.Metrics.videoCount(this.publicApi,"player/no-co-key",1)},n.prototype.logAction=function(t,e){var n,i;return null==e&&(e={}),this.videoTrackerSession.ping(),n={time:this.remappedVideoTime(),key:t,type:"default",category:"default",text:"test",uniqueToVisitor:!1},i={value:s({},n,e),key:"action",timeDelta:this.timeDelta()},this.eventQueue.push(i)},n.prototype.logCaptionSelection=function(t){var e;if(this.publicApi._attrs.shouldTrack&&(this.videoTrackerSession.ping(),t.caption_key))return e={key:"caption",value:t,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logCaptionSelection",t),this.eventQueue.push(e)},n.prototype.logChapterClick=function(t,e){return this.logAction("chapterConversion",{text:t.title,type:"conversion",category:"chapter",uniqueToVisitor:!0,time:this.remapTimeToSource(e)}),this.logAction("chapterSelection-"+t.id,{text:t.title,type:"interaction",category:"chapter",time:this.remapTimeToSource(e)})},n.prototype.logShareClick=function(t){return this.logAction("shareConversion",{text:t,type:"conversion",category:"share",uniqueToVisitor:!0}),this.logAction("shareClick-"+t,{text:t,type:"interaction",category:"share"})},n.prototype.resumableKey=function(){return!1!==this.publicApi.embedOptions().resumable?h(this.publicApi.sourceHashedId()):null},n.prototype.timeInVideo=function(){var t;return null==(t=this.remappedVideoTime())&&(t="beforeplay"===this.publicApi.state()?0:this.remappedVideoDuration()),t.toFixed(1)},n.prototype.timeDelta=function(){return(new Date).getTime()-this.clockStart},n.prototype.remappedVideoDuration=function(){return this.remapTimeToSource(this.publicApi.duration())},n.prototype.remappedVideoTime=function(){return this.remapTimeToSource(this.publicApi.time())},n.prototype.visitorKey=function(){return this.publicApi.visitorKey()},n.prototype.eventKey=function(){if(this.videoTrackerSession)return this.videoTrackerSession.eventKey()},n}()}(a)},(t,e,n)=>{var i,r,o,a;n(16).Wistia,o=n(158).secondsSinceTime,i=n(153).SecondsWatchedTracker,a=n(148).uniqId,r=function(){function t(t,e,n){this.publicApi=t,this.lastFetchTime=(null!=n?n.lastFetchTime:void 0)||(new Date).getTime(),this._eventKey=(null!=n?n._eventKey:void 0)||null,this.remapTimeToSource=e,this.secondsWatchedTracker=new i(this.publicApi,this.remapTimeToSource(this.publicApi.duration()),{existingTracker:null!=n?n.secondsWatchedTracker:void 0,maxWatchingPlaybackRate:this.publicApi._opts.maxWatchingPlaybackRate})}return t.prototype.EVENT_KEY_REFRESH_INTERVAL=1800,t.prototype.withRefresh=function(t){if(o(this.lastFetchTime)>this.EVENT_KEY_REFRESH_INTERVAL&&this.reset(),this.lastFetchTime=(new Date).getTime(),"function"==typeof t)return t()},t.prototype.fetchSessionData=function(){return this.withRefresh((t=this,function(){return{event_key:t.eventKey(),seconds_watched:t.secondsWatchedTracker.secondsWatched()}}));var t},t.prototype.secondsWatched=function(){return this.withRefresh((t=this,function(){return t.secondsWatchedTracker.secondsWatched()}));var t},t.prototype.ping=function(){return this.withRefresh()},t.prototype.setupBindings=function(){var t;return null==this.binding&&(this.binding=(t=this,function(e){return t.secondsWatchedTracker.trackSecond(Math.floor(t.remapTimeToSource(e)))})),this.publicApi.rebind("secondchange",this.binding)},t.prototype.reset=function(){return this._eventKey=null,this.secondsWatchedTracker.reset()},t.prototype.removeBindings=function(){if(this.binding)return this.publicApi.unbind("secondchange",this.binding)},t.prototype.eventKey=function(){return this.isValidKey(this._eventKey)||(this._eventKey=a(Date.now().toString().substring(0,7)+"_"),this.publicApi.trigger("eventkeychange",this._eventKey)),this._eventKey},t.prototype.isValidKey=function(t){return(null!=t?t.length:void 0)>25&&/^[a-z0-9_\-\.]+$/i.test(t)},t}(),t.exports=r},(t,e,n)=>{n.d(e,{secondsSinceTime:()=>i});var i=function(t){return t?Math.round(((new Date).getTime()-t)/1e3):null}},(t,e,n)=>{var i,r,o;r=n(16).Wistia,o=n(158).secondsSinceTime,i=function(){function t(t,e,n){this.accountKey=t,this.hashedId=e,this.logFn=n}return t.prototype.nullToNone=function(t){return null===t?"none":t},t.prototype.lastLoadForAccount=function(){return this._lastLoadForAccount||(this._lastLoadForAccount=this.nullToNone(o(r.localStorage("accounts_loaded."+this.accountKey))))},t.prototype.lastLoadForMedia=function(){return this._lastLoadForMedia||(this._lastLoadForMedia=this.nullToNone(o(r.localStorage("medias_loaded."+this.hashedId))))},t.prototype.lastPlayForAccount=function(){return this._lastPlayForAccount||(this._lastPlayForAccount=this.nullToNone(o(r.localStorage("accounts_played."+this.accountKey))))},t.prototype.lastPlayForMedia=function(){return this._lastPlayForMedia||(this._lastPlayForMedia=this.nullToNone(o(r.localStorage("medias_played."+this.hashedId))))},t.prototype.lastRecordingOfActionForMedia=function(t){return this.nullToNone(o(r.localStorage("action_recorded."+this.hashedId+"."+t)))},t.prototype.isNewLead=function(){var t,e;return t="action_recorded.conversion",(e=r.localStorage(t))?!e:(this.logFn("recordNewLead"),r.localStorage(t,!0))},t.prototype.recordLastActionForMedia=function(t){return r.localStorage("action_recorded."+this.hashedId+"."+t,(new Date).getTime())},t.prototype.recordLoad=function(){return this.logFn("recordLoad"),r.localStorage("accounts_loaded."+this.accountKey,(new Date).getTime()),r.localStorage("medias_loaded."+this.hashedId,(new Date).getTime())},t.prototype.recordPlay=function(){return this.logFn("recordPlay"),r.localStorage("accounts_played."+this.accountKey,(new Date).getTime()),r.localStorage("medias_played."+this.hashedId,(new Date).getTime())},t.prototype._saveVisitorVersion=function(t){if(null==t&&(t=1),null==r.localStorage("visitor_version"))return r.localStorage("visitor_version",t)},t.prototype.getVisitorVersion=function(){return r.localStorage("visitor_version")||(this._saveVisitorVersion(0),0)},t.prototype.clearActionRecordings=function(){return["chapterImpression","chapterConversion","shareImpression","shareConversion"].forEach((t=this,function(e){return r.localStorage("action_recorded."+t.hashedId+"."+e,"",!0)}));var t},t}(),t.exports=i},(t,e,n)=>{var i=n(23),r=n(100),o=n(161),a=n(88),s=n(25);!function(t){t.remote||(t.remote={},t.remote.appHostname=s.appHostname,t.remote.embedHost=i.cdnFastWistiaComHost,t.remote.externalEmbedHost=i.cdnFastWistiaNetHost,t.remote.appHost=i.appHost,t.remote.assetHost=i.deliveryHost,t.remote.media=a.fetchMediaData,t.cacheMedia=r.cacheMedia,t.uncacheMedia=r.uncacheMedia,t.mediaFromCache=r.mediaFromCache,t.remote.playlist=o.fetchPlaylist)}(window.Wistia)},(t,e,n)=>{n.d(e,{fetchPlaylist:()=>l});var i=n(24),r=n(23),o=n(12),a=n(26),s=n(72),u=n(16);null==u.Wistia._remotePlaylist&&(u.Wistia._remotePlaylist={});var l=function(t,e){var n=u.Wistia._remotePlaylist[t];if(n)(0,s.doTimeout)("remote-playlist.".concat(t,".").concat((0,a.seqId)()),(function(){e(n)}));else{var l="".concat((0,i.proto)(),"//").concat((0,r.cdnFastWistiaComHost)(),"/embed/playlists/").concat(t,".json");fetch(l).then((function(t){return t.json()})).then((function(n){u.Wistia._remotePlaylist[t]=n,e(n)})).catch((function(){o.wlog.error("Timed out fetching ".concat(l))}))}}},(t,e,n)=>{var i=n(98),r=n(4),o=n(3);!function(t){if(!t.Metrics)t.Metrics={count:i.count,sample:i.sample,send:i.send,videoCount:function(t,e,n,i){var r;return null==n&&(n=1),null!==(r=t.isInstantHls)&&void 0!==r&&r.call(t)&&this.videoSend(t,"count","player/instant-hls/".concat(e),n,i),this.videoSend(t,"count",e,n,i)},videoSample:function(t,e,n,i){return this.videoSend(t,"sample",e,n,i)},videoSend:function(e,n,i,a,s){var u,l=this;return null==s&&(s={}),null===(u=e.hasData)||void 0===u?void 0:u.call(e,(function(){var u,c,d,h,p,f,v,y,m,g,b,_,w,E,O,P=(null===(u=e.bandwidthTest)||void 0===u?void 0:u.call(e).savedResult())||{};(s=(0,r.merge)({location:null!==(c=location)&&void 0!==c&&null!==(d=c.protocol)&&void 0!==d&&d.length&&null!==(h=location)&&void 0!==h&&null!==(p=h.hostname)&&void 0!==p&&p.length?"".concat(location.protocol,"//").concat(location.hostname):null,agent:navigator.userAgent,account_key:null===(f=e._mediaData)||void 0===f?void 0:f.accountKey,at:e.time(),video_id:e.hashedId(),embed_type:e.playerType,duration:e.duration(),client_kbps:P.clientKbps,supports_hd:P.supportsHd,autoplay:!(null===(v=e._attrs)||void 0===v||!v.autoplay),in_iframe:top!==self,device_pixel_ratio:window.devicePixelRatio,window_width:(0,o.elemWidth)(window),window_height:(0,o.elemHeight)(window),video_width:e.videoWidth(),video_height:e.videoHeight(),visitor_key:null===(y=e._tracker)||void 0===y?void 0:y.visitorKey(),event_key:null===(m=e._tracker)||void 0===m?void 0:m.eventKey(),event_time_delta:null===(g=e._tracker)||void 0===g?void 0:g.timeDelta(),connection_type:l.connectionType(),version:9,channel:t.channelName},s),/romulus|html5|vulcan/.test(e.playerType))&&(s.errorState=null===(E=e.elem())||void 0===E?void 0:E.error);(null!=e._cacheStatus&&(s.cache_status=e._cacheStatus),null!=e._assetServer&&(s.asset_server=e._assetServer),null!=e._cacheHit&&(s.cache_hit=e._cacheHit),e.inFullscreen&&(s.in_fullscreen=e.inFullscreen()),null!=e._substream)?(s.substream=e._substream.index,s.adaptive=e._substream.adaptive,s.current_level=e._substream.currentLevel,s.all_level_names=e._substream.allLevelNames,w=e._substream.asset,s.hls_error_counts=e._substream.hlsErrorCounts()):(s.substream=null,s.adaptive=null,w=null===(O=e.data)||void 0===O?void 0:O.asset);if(null!=w&&(s.asset_type=w.type,s.asset_slug=w.slug,s.bitrate=w.bitrate,s.asset_height=w.height,s.asset_width=w.width),(null===(b=e.videoElem)||void 0===b||null===(_=b.buffered)||void 0===_?void 0:_.length)>0&&(s.bufferedFrom0=e.videoElem.buffered.end(0)),null!=e._timeToFirstByte&&(s.time_to_first_byte=e._timeToFirstByte),s.buffered=null!=e.totalBuffered?e.totalBuffered():void 0,s.played=null!=e.totalPlayed?e.totalPlayed():void 0,l.send(n,i,a,s),e._mediaData&&e._mediaData.accountKey&&e._mediaData.accountSpecificMetrics)return l.send(n,"".concat(e._mediaData.accountKey,"/").concat(i),a,s)}))},countEvent:function(t,e,n){return n||(n=e),null==this._private.countEventCallbacks[n]&&(this._private.countEventCallbacks[n]=this._private.mkCountEventCallback(e,n)),t.rebind(e,this._private.countEventCallbacks[n])},countEventOnce:function(t,e,n){return n||(n=e),null==this._private.countEventOnceCallbacks[n]&&(this._private.countEventOnceCallbacks[n]=this._private.mkCountEventOnceCallback(e,n)),t.rebind(e,this._private.countEventOnceCallbacks[n])},sampleEvent:function(t,e,n){return n||(n=e),null==this._private.sampleEventCallbacks[n]&&(this._private.sampleEventCallbacks[n]=this._private.mkSampleEventCallback(e,n)),t.rebind(e,this._private.sampleEventCallbacks[n])},countShowLoadingOnce:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<2&&i>=2?(e.videoCount(t,"player/show-loading/first",1),n=i,t.unbind):n=i}))},countShowLoadingAll:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<2&&i>=2&&(e.videoCount(t,"player/show-loading/all",1),e.embedTypeBuckets(t.embedElement).forEach((function(n){e.videoCount(t,"player/show-loading/all.".concat(n),1)}))),n=i})),t.bind("done-waiting",(function(){return n=-1}))},countShowLoadingLongTimeOnce:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<5&&i>=5?(e.videoCount(t,"player/show-loading-long-time/first",1),n=i,t.unbind):n=i}))},countShowLoadingLongTimeAll:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<5&&i>=5&&e.videoCount(t,"player/show-loading-long-time/all",1),n=i})),t.bind("done-waiting",(function(){return n=-1}))},mobileBuckets:function(){return t.detect.iphone||t.detect.android||/mobile/i.test(navigator.userAgent)?t.detect.iphone?["mobile","iphone"]:t.detect.android?["mobile","android"]:["mobile"]:[]},embedTypeBuckets:function(t){return"WISTIA-PLAYER"===(null==t?void 0:t.tagName)?!0===(null==t?void 0:t.useWebComponent)?["web-component","translated-web-component"]:["web-component"]:["legacy"]},connectionType:function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;return null==t?void 0:t.type},sumTimeRanges:function(t){if(null==t)return null;for(var e=0,n=0,i=t.length,r=i>=0;r?n<i:n>i;r?n++:n--)e+=t.end(n)-t.start(n);return e},millisecondsSince:function(t){return(new Date).getTime()-t},_private:{countEventCallbacks:{},mkCountEventCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoCount(this,"player/".concat(n),i)}},countEventOnceCallbacks:{},mkCountEventOnceCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoCount(this,"player/".concat(n),i),this.unbind}},sampleEventCallbacks:{},mkSampleEventCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoSample(this,"player/".concat(n),i)}}}}}(window.Wistia)},(t,e,n)=>{!function(t){var e,i,r,o,a,s,u,l,c,d;if(t.Plugin||(t.Plugin={}),!t.Plugin.Base)a=n(23),i=a.eV1HostWithPort,r=a.eV1Protocol,e=n(125).allow3rdParty,o=n(4).merge,s=n(43),c=s.wData,d=s.wRemoveData,l=n(26).seqId,u=n(21).runScripts,t.Plugin.Base=function(){function t(){this.pluginName="plugin",this.unbinds=[]}return t.prototype.instances=function(){return c(["plugins",this.pluginName,this.video.uuid])},t.prototype.register=function(t){var e;return(e=this.playlist||this.video||this.audio).plugins[this.uuid]=t,c(["plugins",this.pluginName,e.uuid,this.uuid],t)},t.prototype.remove=function(t){var e,n;if(null==t&&(t={}),(n=this.playlist||this.video||this.audio).plugins[this.uuid]=null,d(["plugins",this.pluginName,n.uuid,this.uuid]),null!=n&&null!=(e=n.unbinds)&&e.map((function(t){return"function"==typeof t?t():wlog.warn("trying to unbind a non-function",t)})),n.plugins[this.uuid]===this&&delete n.plugins[this.uuid],n.plugin[this.pluginName]===this)return delete n.plugin[this.pluginName]},t.prototype.fit=function(){},t.prototype.init=function(t,e){return null==t.plugins&&(t.plugins={}),(null!=t?t.playlist:void 0)?this.playlist=t:this.video=t,this.target=this.playlist||this.video||this.audio,this.options=e||{},this.params=o({},e||{}),this.uuid=this.params.uuid||l("wistia_","_plugin")},t}(),t.plugin||(t.plugin=function(e,n){var i,r,o,a,s,u;if((i=null!=(a=t.pluginQueue)&&null!=(s=a[e])?s.shift():void 0)&&(o=function(){var t,r;return i.video.info("initializing plugin",e,i.options),t=n(i.video._impl||i.video,i.options)||!0,i.video.plugin[e]=t,i.video._impl&&(i.video._impl.plugin[e]=t),i.video.trigger("plugininitialized",e),null!=(r=i.video._pluginStopGos)&&"function"==typeof r[e]?r[e](!0,t):void 0},r=function(){return i.options.initBeforeHasData?o():i.video.hasData(o)},!0!==i.options.initBeforeHasData&&(null!=(u=i.video)?u.looksDown():void 0)?(i.video.notice('Wistia.plugin: delaying initialization of plugin until "up"',e,i.options),i.video.bind("up",(function(){return r(),this.unbind}))):i.video._implVersion===i.implVersion?r():i.video.notice("Wistia.plugin impl changed, ignoring initialization",e,i.options)),!t.plugin[e])return t.plugin[e]=n},t.plugin._prefetched={},t.plugin._inject=function(e,n,o){var a,s;if(null==o&&(o={}),!1!==o.on)return a=r()+"//"+i()+"/assets/external/"+n+".js",s=[{name:n,options:o,src:o.src&&t.plugin._allow3rdParty(e.options)?o.src:a,async:!0}],t.plugin._setFnForDefinedPlugins(e,s),t.plugin._execQueue(e,s)},t.plugin._allow3rdParty=function(t){return e(t)},t.plugin._setFnForDefinedPlugins=function(e,n){var i,r,o,a;for(o=[],i=0,r=n.length;i<r;i++)a=n[i],t.plugin[a.name]&&o.push(function(n){return n.fn=function(){var i;return i=function(){var i,r,o;if(!e.plugin[n.name])return r=t.plugin[n.name](e._impl||e,n.options)||!0,e.plugin[n.name]=r,e._impl&&(e._impl.plugin[n.name]=r,e.trigger("plugininitialized",n.name)),null!=(o=e._pluginStopGos)&&"function"==typeof o[i=n.name]?o[i](!0,r):void 0},n.options.initBeforeHasData?i():e.hasData(i)},n.async=!1}(a));return o},t.plugin._queueUndefinedPlugins=function(e,n){var i,r,o,a,s,u;for(null==t.pluginQueue&&(t.pluginQueue={}),s=[],i=0,r=n.length;i<r;i++)(a=n[i]).subScripts?s.push(function(){var n,i,r,s;for(s=[],n=0,i=(r=a.subScripts).length;n<i;n++)u=r[n],o=u.name||u.src,null==t.pluginQueue[o]&&(t.pluginQueue[o]=[]),a.fn?s.push(void 0):s.push(t.pluginQueue[o].push({video:e,implVersion:e._implVersion,options:u.options}));return s}()):(o=a.name||a.src,null==t.pluginQueue[o]&&(t.pluginQueue[o]=[]),a.fn?s.push(void 0):s.push(t.pluginQueue[o].push({video:e,implVersion:e._implVersion,options:a.options})));return s},t.plugin._execQueue=function(e,n,i){return t.plugin._queueUndefinedPlugins(e,n),u(n).then(i)},t.plugin._init=function(e,n,i){var r,o;return o=e.charAt(0).toUpperCase()+e.substr(1),(r=new(0,t.Plugin[o])).init(n,i),r},t.plugin._instance=function(t,e,n){return c(["plugins",t,e.uuid,n])},t.plugin._remove=function(e,n,i){var r;null!=(r=t.plugin._instance(e,n,i))&&r.remove()},t.plugin._isActive=function(e,n,i){return!!t.plugin._instance(e,n,i)},t.plugin._defined=function(){var e,n,i,r;for(e in i=[],n=t.plugin)r=n[e],/^_/.test(e)||i.push({name:e,options:r});return i})}(Wistia)},(t,e,n)=>{var i=n(99);!function(t){t.localStorage||(t.localStorage=i.setOrGet,t.removeLocalStorage=i.removeLocalStorage)}(window.Wistia)},(t,e,n)=>{var i=n(3),r=n(74),o=n(26),a=n(125),s=n(144);!function(t){if(!t.gridify){t.gridifyCss=function(t){t.replace(/_grid$/,"");return"#".concat(t,"_wrapper{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;font-family:Arial,sans-serif;font-size:14px;height:100%;position:relative;text-align:left;width:100%;}\n#").concat(t,"_wrapper *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}\n#").concat(t,"_above{position:relative;}\n#").concat(t,"_main{display:block;height:100%;position:relative;}\n#").concat(t,"_behind{height:100%;left:0;position:absolute;top:0;width:100%;}\n#").concat(t,"_center{height:100%;overflow:hidden;position:relative;width:100%;}\n#").concat(t,"_front{display:none;height:100%;left:0;position:absolute;top:0;width:100%;}\n#").concat(t,"_top_inside{position:absolute;left:0;top:0;width:100%;}\n#").concat(t,"_top{width:100%;position:absolute;bottom:0;left:0;}\n#").concat(t,"_bottom_inside{position:absolute;left:0;bottom:0;width:100%;}\n#").concat(t,"_bottom{width:100%;position:absolute;top:0;left:0;}\n#").concat(t,"_left_inside{height:100%;position:absolute;left:0;top:0;}\n#").concat(t,"_left{height:100%;position:absolute;right:0;top:0;}\n#").concat(t,"_right_inside{height:100%;right:0;position:absolute;top:0;}\n#").concat(t,"_right{height:100%;left:0;position:absolute;top:0;}\n#").concat(t,"_below{position:relative;}")},t.gridifyHtml=function(t){return{id:"".concat(t,"_wrapper"),childNodes:[{id:"".concat(t,"_above")},{id:"".concat(t,"_main"),childNodes:[{id:"".concat(t,"_behind")},{id:"".concat(t,"_center")},{id:"".concat(t,"_front")},{id:"".concat(t,"_top_inside"),childNodes:{id:"".concat(t,"_top")}},{id:"".concat(t,"_bottom_inside"),childNodes:{id:"".concat(t,"_bottom")}},{id:"".concat(t,"_left_inside"),childNodes:{id:"".concat(t,"_left")}},{id:"".concat(t,"_right_inside"),childNodes:{id:"".concat(t,"_right")}}]},{id:"".concat(t,"_below")}]}},t.createGrid=function(n,i){var r=t.createGridSkeleton();for(var o in t.initGridEventListeners(r),r)"STYLE"!==r[o].nodeName&&!0!==n._opts._inLegacyPlaylist&&e(r[o],n);return r};var e=function(e,i){return e.originalAppendChild=e.appendChild,e.originalAppend=e.append,e.originalPrepend=e.prepend,e.appendChild=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==t._hasTrackedGrid&&(t._hasTrackedGrid=!0,n(i)),e.originalAppendChild(r)},e.append=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==t._hasTrackedGrid&&(t._hasTrackedGrid=!0,n(i)),e.originalAppend(r)},e.prepend=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==t._hasTrackedGrid&&(t._hasTrackedGrid=!0,n(i)),e.originalPrepend(r)}},n=function(t){var e=(0,a.pluginScriptsToLoad)(t._mediaData,t._opts);return(0,r.countMetric)("custom-plugin-grid-append",1,{hashedId:t._mediaData.hashedId,href:window.location.href,plugins:(0,a.getPluginsNotInList)(e)})};t.createGridSkeleton=function(){var e=(0,o.seqId)("wistia_grid_"),n=(0,i.elemFromObject)(t.gridifyHtml(e)),r=(0,i.addInlineCss)(n,t.gridifyCss(e)),a={};a.css=r,a.root=n,(0,i.elemStyle)(n,{display:"none"}),(0,i.elemAppend)(document.body,n);for(var s=0,u=Array.from(["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"]);s<u.length;s++){var l=u[s];a[l]=document.getElementById("".concat(e,"_").concat(l))}return(0,i.elemRemove)(n),(0,i.elemStyle)(n,{display:"block"}),a},t.initGridEventListeners=function(t){return t.center.addEventListener("scroll",(function(){return t.center.scrollTop=0}))},t.gridify=function(e,n){var r={},o="".concat(n.id,"_grid");n.innerHTML=(0,s.generateHtml)(t.gridifyHtml(o));for(var a=0,u=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"];a<u.length;a++){var l=u[a];r[l]=document.getElementById("".concat(o,"_").concat(l))}return(0,i.addInlineCss)(r.wrapper,t.gridifyCss(o)),r.wrapper.style.height="100%",r.main.style.width="100%",r},t.isGridElem=function(t,e){for(var n in t){if(e===t[n])return!0}return!1},t.grid={},t.grid.allNodesHidden=function(t){if(0===t.length)return!0;for(var e=0,n=Array.from(t);e<n.length;e++){var i=n[e];if(i.style&&"none"!==i.style.display)return!1}return!0},t.grid.zeroEmptySections=function(e){return function(){for(var n=[],i=0,r=["top","bottom","left","right","above","below"];i<r.length;i++){var o=r[i],a=e.grid[o];a.childNodes.length?t.grid.allNodesHidden(a.childNodes)?(a.style.height="0px",a.style.fontSize="0px",a.style.lineHeight="0px",n.push(a.isEmpty=!0)):(a.style.height="",a.style.fontSize="",n.push(a.style.lineHeight="")):(a.appendChild(document.createTextNode(" "),{wistiaGridCaller:!0}),a.style.height="0px",a.style.fontSize="0px",a.style.lineHeight="0px",n.push(a.isEmpty=!0))}return n}()},t.grid.wrapperHeight=function(t){var e=t.grid.wrapper;return(0,i.elemHeight)(e)},t.grid.wrapperWidth=function(t){var e=t.grid.wrapper;return(0,i.elemWidth)(e)}}}(window.Wistia)},(t,e,n)=>{var i=[].slice;!function(t){var e,r,o,a,s,u,l,c,d;if(l=n(3),a=l.elemRebind,s=l.elemUnbind,o=n(47).dynamicImport,r=n(74).countMetric,t.iframeInit||(t.iframeInit=function(t,e){return o("assets/external/insideIframe.js").then((function(n){return n.iframeInit(t,e)}))}),!t.IframeApiProxy){for(u in e=function(){function t(t){this.iframe=t,this.loadIframeApi()}return t.prototype.loadIframeApi=function(){return new Promise((function(t){return setTimeout((function(){return o("assets/external/iframeApi.js").then(function(e){return function(){return e._loaded=!0,t()}}(this))}),0)}))},t.prototype.proxyFn=function(){var t,e,n,o;return e=arguments[0],t=2<=arguments.length?i.call(arguments,1):[],r("player/iframeApiProxy-praxyfn",1,{methodName:e}),this._loaded?(n=this.iframe.wistiaApi)[e].apply(n,t):(this.loadIframeApi().then((o=this,function(){var n;if(o.iframe.wistiaApi!==o)return(n=o.iframe.wistiaApi)[e].apply(n,t)})),this)},t.prototype._hasImpl=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["_hasImpl"].concat(i.call(t)))},t.prototype.hasData=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["hasData"].concat(i.call(t)))},t.prototype.embedded=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["embedded"].concat(i.call(t)))},t.prototype.ready=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["ready"].concat(i.call(t)))},t.prototype.up=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["up"].concat(i.call(t)))},t.prototype.down=function(){return this.proxyFn.apply(this,["down"].concat(i.call(args)))},t}(),c=t.PublicApi.prototype)d=c[u],e.prototype[u]||"function"!=typeof d||function(t){e.prototype[t]=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,[t].concat(i.call(e)))}}(u);t.IframeApiProxy=e}null==t.maybeRequireIframeApi&&(t.maybeRequireIframeApi=function(){var t,n,i,r,o;if((o=document.querySelectorAll("iframe.wistia_embed,iframe[name=wistia_embed],iframe.wistia_playlist,iframe[name=wistia_playlist]")).length>0){for(r=[],t=0,i=o.length;t<i;t++)(n=o[t]).wistiaApi?r.push(void 0):r.push(n.wistiaIframeApiProxy=n.wistiaApi=new e(n));return r}}),null==t.onIframePostMessage&&(t.onIframePostMessage=function(t){if("new-wistia-iframe"===t.data)return o("assets/external/iframeApi.js"),s}),a(window,"message",t.onIframePostMessage),t.bind("ev1initend",(function(){return t.maybeRequireIframeApi(),a(window,"message",t.onIframePostMessage)})),t.bind("ev1destroystart",(function(){return s(window,"message",t.onIframePostMessage)}))}(Wistia)},(t,e,n)=>{var i=n(13),r=n(38),o=n(148),a=n(41),s=n(119);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}!function(t){if(!t.VisitorKey){var e="__distillery";(0,i.globalBind)("visitortrackingchange",(function(e,n){for(var i=0,o=Array.from((0,a.getAllApiHandles)());i<o.length;i++){var s,u=o[i];null===(s=u._postDownVisitorTrackingEnabled)||void 0===s||s.call(u)}if(t.visitorKey){var l,c;if(!(0,r.isVisitorTrackingEnabled)())return t.visitorKey.unpersist(),null===(l=(c=t._destructors).destroyMux)||void 0===l?void 0:l.call(c);if(t.visitorKey.value())return t.visitorKey.persist(t.visitorKey.value())}})),t.VisitorKey=function(){return n=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.ready=this.ready.bind(this),this.unbinds=[],setTimeout((function(){return e.unbinds.push((0,s.onFindApiHandle)({matcher:s.ALL_API_HANDLES_KEY,functionToRun:function(t){return t.hasData((function(){var n;return t.iframe||!0!==(null===(n=t._mediaData)||void 0===n?void 0:n.privacyMode)||e.unpersist(),e.ready()}))}}))}),0)},a=[{key:"isValid",value:function(t){return(null==t?void 0:t.length)>25&&/^[a-z0-9_\-.]+$/i.test(t)}},{key:"generate",value:function(){return(0,o.uniqId)("".concat(Date.now().toString().substring(0,7),"_"))}}],(i=[{key:"ready",value:function(){var e=this;return this._readyPromise||(this._readyPromise=new Promise((function(n){e.savedValue()||e.persist(t.VisitorKey.generate()),n()}))),this._readyPromise}},{key:"reinitialize",value:function(){return this.destroy(),this.unbinds=[],this._readyPromise=null,this.ready()}},{key:"persist",value:function(n){var i;if(t.VisitorKey.isValid(n)){if(null===(i=this.info)||void 0===i||i.call(this,"@persist",n),this._value=n,(0,r.isVisitorTrackingEnabled)())return!0!==window.wistiaDisableCookies&&this.localStorageValue()!==this._value?t.localStorage(e,this._value):void 0}else this.error(new Error("Attempted to persist invalid visitor key '".concat(n,"'")))}},{key:"unpersist",value:function(){return this.clearFromCurrentDomain()}},{key:"clear",value:function(){var t;return null===(t=this.info)||void 0===t||t.call(this,"clear"),this.unpersist(),this._value=null}},{key:"clearFromCurrentDomain",value:function(){return t.removeLocalStorage(e,null)}},{key:"value",value:function(){var e=this._value||this.savedValue();return e||(e=t.VisitorKey.generate(),this.persist(e)),e}},{key:"savedValue",value:function(){if((0,r.isVisitorTrackingEnabled)())return this.localStorageValue()}},{key:"localStorageValue",value:function(){return t.localStorage(e)}},{key:"isValid",value:function(){return t.VisitorKey.isValid(this.value())}},{key:"destroy",value:function(){for(var t=0,e=Array.from(this.unbinds);t<e.length;t++)(0,e[t])();return this.unbinds=[]}}])&&u(n.prototype,i),a&&u(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(),t.logHelpers&&t.mixin(t.VisitorKey.prototype,t.logHelpers),t._initializers.initVisitorKey=function(){return t.visitorKey=new t.VisitorKey},t._destructors.destroyVisitorKey=function(){var e;return null===(e=t.visitorKey)||void 0===e||e.destroy(),t.visitorKey=null}}}(window.Wistia)},(t,e,n)=>{var i=n(119);!function(t){t._initializers.initSpecificTime=function(){try{var e;if(parent!==self)return;var n=location.href.match(/[?&]wtime=([\dhms]*)/),r=null===(e=location.href.match(/[?&]wvideo(id)?=([^&]+)/))||void 0===e?void 0:e[2];if(!((null==n?void 0:n.length)>=2))return;if(t._specificTimeInitiated)return;t._specificTimeInitiated=!0;var o=!1;return(0,i.onFindApiHandle)({matcher:i.ALL_API_HANDLES_KEY,shouldOnlyRunWhenVisible:!0,functionToRun:function(t){if(!r||t.hashedId()===r)return o?void 0:(o=!0,t.embedded((function(){var e;return null===(e=t.popover)||void 0===e?void 0:e.show()})),t.time(n[1]).play())}})}catch(e){return t.error(e),t._specificTimeInitiated=!1}}}(window.Wistia)},(t,e,n)=>{var i=n(170);!function(t){if(!t.Interpolation)t.Interpolation=i.Interpolation}(window.Wistia)},(t,e,n)=>{function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||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.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}n.d(e,{Interpolation:()=>s});var s=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var e=arguments.length<=0?void 0:arguments[0],n=e.seedRange,i=e.seedFunction,r=e.seedStart,o=e.outputStart,a=null!=o?o:0,s=e.outputEnd,u=null!=s?s:1,l=e.easing,c=null!=l?l:t.linear;if(null==n)throw new Error("Must provide seedRange argument");if(null!=i&&"function"!=typeof i)throw new Error("Given seed is not a function");if("function"!=typeof c)throw new Error("Invalid easing function given: ".concat(this.easing));this._seedRange=n,this._seedFunction=i||function(){return(new Date).getTime()},this._outputStart=a,this._outputEnd=u,this._easing=c,this._seedStart=(null==r?void 0:r())||this.seed()},n=[{key:"linear",value:function(t,e,n,i){return t*e/(n||1)+i}},{key:"easeInOut",value:function(t,e,n,i){return(e/=(n||1)/2)<1?t/2*e*e+i:-t/2*((e-=1)*(e-2)-1)+i}}],(e=[{key:"seed",value:function(){return this.seedFunction()()}},{key:"seedStart",value:function(){return this._seedStart}},{key:"seedRange",value:function(){return this._valOrFn(this._seedRange)}},{key:"seedFunction",value:function(){return this._seedFunction}},{key:"outputStart",value:function(){return this._valOrFn(this._outputStart)}},{key:"outputEnd",value:function(){return this._valOrFn(this._outputEnd)}},{key:"easing",value:function(){return this._valOrFn(this._easing)}},{key:"value",value:function(){return this._easing.apply(this,i(Array.from(this.easingArgs()||[])))}},{key:"atEnd",value:function(){return 1===this.ratio()}},{key:"atStart",value:function(){return 0===this.ratio()}},{key:"easingArgs",value:function(){return[this.c(),this.t(),this.d(),this.b()]}},{key:"seedDelta",value:function(){return this.seedRange()>0?Math.min(this.seedRange(),this.seed()-this.seedStart()):this.seedRange()<0?Math.max(this.seedRange(),this.seed()-this.seedStart()):0}},{key:"ratio",value:function(){var t=this.seedRange();return 0===t?1:Math.max(0,Math.min(1,this.seedDelta()/t))}},{key:"c",value:function(){return this.outputEnd()-this.outputStart()}},{key:"t",value:function(){return this.seedDelta()}},{key:"d",value:function(){return this.seedRange()}},{key:"b",value:function(){return this.outputStart()}},{key:"_valOrFn",value:function(t){return"function"==typeof t?t():t}}])&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},(t,e,n)=>{var i=n(3),r=n(47),o=n(119);(0,o.onFindApiHandleRunOnce)({matcher:o.ALL_API_HANDLES_KEY,functionToRun:function(t){t.hasData((function(){(function(t){if(t._mediaData&&t._mediaData.integrations)for(var e in t._mediaData.integrations)if(t._mediaData.integrations[e])return!0;return!1})(t)&&(0,i.pageLoaded)((function(){setTimeout((function(){(0,r.dynamicImport)("assets/external/allIntegrations.js").then((function(t){t.runIntegrationsSetup()}))}),1e3)}))}))}})},(t,e,n)=>{var i;i=n(46).getDefaultTranslation,Wistia,Wistia.initializeOnce=function(){var t;return Wistia._initializers.initDetect(),Wistia._initializers.initWLog(),Wistia._initializers.initVisitorKey(),(null!=(t=Wistia._initializers)?t.initEventLoop:void 0)&&Wistia._initializers.initEventLoop(),Wistia._initializers.initFullscreenTriggers(),Wistia.trigger("ev1initonce"),performance.mark("player_init_start")},Wistia.initializeEveryTime=function(){var t,e,n,r;return Wistia.trigger("ev1initstart"),(null!=(t=Wistia._initializers)?t.initEmbedShepherd:void 0)&&Wistia._initializers.initEmbedShepherd(),(null!=(e=Wistia._initializers)?e.initMux:void 0)&&Wistia._initializers.initMux(),(null!=(n=Wistia._initializers)?n.initAsyncEmbeds:void 0)&&Wistia._initializers.initAsyncEmbeds(),Wistia._initializers.initSpecificTime(),i(),null!=(r=Wistia.eventLoop)&&r.resync(),Wistia.trigger("ev1initend")},Wistia.destroy=function(){return Wistia.trigger("ev1destroystart"),Wistia._destructors.destroyAsyncEmbeds(),Wistia._destructors.destroyEmbedShepherd(),Wistia._destructors.destroyEmbedLinks(),Wistia._destructors.destroyFullscreenTriggers(),Wistia._destructors.destroyEventLoop(),Wistia._destructors.destroyVisitorKey(),Wistia._destructors.destroyWLog(),Wistia._destructors.destroyMux(),Wistia.trigger("ev1destroyend")},Wistia.destroyGlobals=function(){var t,e;for(t in window.Wistia=null,window.wistiaApi=null,window.wistiaDispatch=null,window.wistiaBindIframes=null,window.wistiaEmbeds=null,window._wistiaElemId=null,window.wistiaInitQueue=null,window.wistiaInit=null,window.wistiaEmbedShepherdReady=null,e=[],window)window[t],/^wistiajson/.test(t)?e.push(window[t]=null):e.push(void 0);return e},Wistia.reinitialize=function(){return Wistia.destroy(),Wistia.initializeOnce(),Wistia.initializeEveryTime()},Wistia._initialized||(Wistia._initialized=!0,Wistia.initializeOnce()),Wistia.initializeEveryTime()},(t,e,n)=>{n(174)},(t,e,n)=>{n(2);var i=n(84),r=n(6),o=n(175),a=n(97),s=n(34),u=n(3),l=n(4),c=n(72),d=n(9),h=n(47),p=n(73),f=n(16),v=(n(184),n(191),n(193),n(194),n(201),n(203),n(205),n(207),n(208),n(210),n(212),n(213),n(218),n(220),n(222),n(224),n(225),n(227),n(231),n(233),n(236)),y=n(238),m=n(240),g=n(241),b=n(242),_=n(243),w=n(244),E=n(245),O=n(246),P=n(258),k=n(259),S=n(239),T=n(260),C=n(23),A=n(18),j=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return I(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(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 I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function D(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,L(i.key),i)}}function L(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function B(t,e,n){return e=W(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,x()?Reflect.construct(e,n||[],W(t).constructor):e.apply(t,n))}function x(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(x=function(){return!!t})()}function R(t,e,n,i){var r=F(W(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof r?function(t){return r.apply(n,t)}:r}function F(){return F="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=W(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},F.apply(null,arguments)}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},W(t)}function N(t,e){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},N(t,e)}var H=(0,d.cachedDetect)();if(!f.Wistia.VulcanV2Player){var V=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=B(this,e,[t])).playerType="vulcan-v2",n._enabledControls={},n._visibilityRequests={},n._inputContextsToEnter=[],n._playerContext=[],n._overlays={},n._initialized=n.setupBehaviors(),n._isKeyboardFocused=void 0,n._overlayCodePromise=null,n.setupTracking(),t._playlist&&t._playlist.length>1&&n.loadLastFrameCanvasControl(),n.on("playlistchange",(function(t){t.length>1&&n.loadLastFrameCanvasControl()}));var i=n.on("beforereplace",(function(){i(),n.loadLastFrameCanvasControl()}));return(0,r.onDocReady)((function(){(0,h.dynamicImport)("assets/external/playPauseLoadingControl.js").then((function(t){(0,p.defineControl)(t.PlayPauseLoadingCircleControl)})),H.touchScreen&&!n.publicApi.isLiveMedia()&&(0,h.dynamicImport)("assets/external/skipControls.js").then((function(t){(0,p.defineControl)(t.SkipAheadControl),(0,p.defineControl)(t.SkipBackControl)}))})),n._opts.techInfo&&(0,h.dynamicImport)("assets/external/vulcanV2Player/video/controls/TechInfoControl/TechInfoControl.js").then((function(t){(0,p.defineControl)(t.TechInfoControl)})),n._opts.spherical&&(0,h.dynamicImport)("assets/external/vulcanV2Player/video/controls/SphericalControl/SphericalControl.js").then((function(t){(0,p.defineControl)(t.SphericalControl)})),n.publicApi.isLiveMedia()&&(0,h.dynamicImport)("assets/external/captions-v3.js").then((function(t){(0,p.defineControl)(t.CaptionsV3Control)})),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&N(t,e)}(e,t),n=e,d=[{key:"loadLastFrameCanvasControl",value:function(){this.ready((function(){(0,h.dynamicImport)("assets/external/vulcanV2Player/video/controls/LastFrameCanvasControl.js").then((function(t){(0,p.defineControl)(t.LastFrameCanvasControl)}))}))}},{key:"setupBehaviors",value:function(){var t=this;return new Promise((function(e){t.addBehaviors([v.default,y.default,m.default,g.default,P.PlaySuspendedOffScreenBehavior,b.default,_.ProblemMonitoringBehavior,w.default]),t.publicApi.isLiveMedia()||t.addBehavior(E.default),"Audio"===t._mediaData.type?Promise.all([(0,h.dynamicImport)("assets/external/vulcanV2Player/audio/AudioUIBehavior.js"),(0,h.dynamicImport)("assets/external/interFontFace.js")]).then((function(n){var i=M(n,1)[0];t.addBehavior(i.AudioUIBehavior),e()})):(t.addBehavior(O.default),e())}))}},{key:"removeBehaviors",value:function(){for(var t in this.behaviors)j(this.behaviors,t)&&this.removeBehavior(t)}},{key:"setupTracking",value:function(){this.publicApi.isLiveMedia()?(this._tracker=new o.LiveMediaTracker(this.publicApi),this._tracker.monitor()):(this._tracker=new f.Wistia.VideoTracker2(this.publicApi),this._tracker.visitorKey(),this._tracker.monitor())}},{key:"elem",value:function(){return this.engine?this.engine.getMediaElement():(this._dummyVideo||(this._dummyVideo=document.createElement("video")),this._dummyVideo)}},{key:"embed",value:function(t){var n=this;return this._initialized.then((function(){return t instanceof e?n.behaviors.embed.embed(t):n.behaviors.embed.embed()}))}},{key:"eventKey",value:function(){return this._tracker.eventKey()}},{key:"renderUI",value:function(){var t=this;return this.ui||(this.ui=this.behaviors.ui),(this.ui.lastRenderPromise||Promise.resolve()).then((function(){return t.ui.render()}))}},{key:"rebuild",value:function(){return this.behaviors.embed.rebuild(this)}},{key:"onDimensionChangeSafe",value:function(){if(this.grid)try{this.onWidthChange(this.videoWidth()),this.onHeightChange(this.videoHeight())}catch(t){this.error(t)}}},{key:"transferStateFrom",value:function(t){this.behaviors.fullscreen&&this.behaviors.fullscreen.transferStateFrom(t),this.isKeyboardFocused(t.isKeyboardFocused()),!0!==this.publicApi._opts.skipFocus&&this.focus()}},{key:"bestEngine",value:function(){return a.bestUsableEngine(this.publicApi.judyCtx(),this._mediaData,this._opts)}},{key:"initEngineAfterEmbedded",value:function(){var t=this;this.embedded((function(){return t.behaviors.embed.initializeEngine()}))}},{key:"setupBindings",value:function(){this.setupVideoBindings()}},{key:"setupVideoBindings",value:function(){var t=this;this.publicApi.bind("click",(function(){t.initEngineAfterEmbedded()})),this.publicApi.bind("mouseenter",(function(){t.initEngineAfterEmbedded()})),this.publicApi.bind("focusin",(function(){t.initEngineAfterEmbedded()})),this.bind("widthchange",(function(e){t.onWidthChange(e)})),this.bind("heightchange",(function(e){t.onHeightChange(e)}))}},{key:"addBehavior",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null==this.behaviors&&(this.behaviors={});var n=t.handle;if(n){this.behaviors[n]&&(this.behaviors[n].destroy(),this.behaviors[n]=null);try{var i=this.behaviors[n]=new t(this);return e&&i.init(),i}catch(t){setTimeout((function(){throw t}),0),delete this.behaviors[n]}}else this.error("No handle defined for",t)}},{key:"addBehaviors",value:function(t){var e=this,n=t.map((function(t){return e.addBehavior(t,!1)}));return n.forEach((function(t){try{t.init()}catch(n){e.error("error in init for",t.constructor.handle,"behavior"),setTimeout((function(){throw n}),0)}})),n}},{key:"removeBehavior",value:function(t){this.behaviors[t]&&(this.behaviors[t].destroy(),delete this.behaviors[t])}},{key:"isMediaDataUsingEmbedSsl",value:function(){for(var t=0;t<this._mediaData.assets.length;t++){var e=this._mediaData.assets[t];if(e.url&&/embed-ssl\.wistia\.com/.test(e.url))return!0}return!1}},{key:"onWidthChange",value:function(t){this.engine&&this.engine.onWidthChange(t)}},{key:"onHeightChange",value:function(t){this.engine&&this.engine.onHeightChange(t)}},{key:"controlScaling",value:function(t){if(null==t)return this._controlScaling||"auto";var e=this._controlScaling;this._controlScaling=t,e!==t&&this.trigger("controlscalingchange",t,e)}},{key:"audioDescriptionControlEnabled",value:function(t){this._attrs.audioDescriptionControl=t,this.setControlEnabled("audioDescriptionButton",t)}},{key:"bigPlayButtonEnabled",value:function(t){R(e,"bigPlayButtonEnabled",this,3)([t]),this.setControlEnabled("bigPlayButton",t)}},{key:"bigPlayButtonTimeEnabled",value:function(t){this.isControlEnabled("bigPlayButton")&&this.ui.controls.bigPlayButton.setTimeEnabled(t)}},{key:"playPauseControlEnabled",value:function(t){R(e,"playPauseControlEnabled",this,3)([t]),this.setControlEnabled("smallPlayButton",t)}},{key:"playbarControlEnabled",value:function(t){R(e,"playbarControlEnabled",this,3)([t]),this.setControlEnabled("playbar",t)}},{key:"settingsControlEnabled",value:function(t){R(e,"settingsControlEnabled",this,3)([t]),this.setControlEnabled("settingsButton",t)}},{key:"playbackRateControlEnabled",value:function(t){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setPlaybackRateEnabled(t)}},{key:"playPauseNotifierEnabled",value:function(t){R(e,"playPauseNotifierEnabled",this,3)([t]),this.setControlEnabled("playPauseNotifier",t)}},{key:"qualityControlEnabled",value:function(t){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setQualityEnabled(t)}},{key:"volumeControlEnabled",value:function(t){R(e,"volumeControlEnabled",this,3)([t]),this.setControlEnabled("volumeButton",t)}},{key:"fullscreenControlEnabled",value:function(t){R(e,"fullscreenControlEnabled",this,3)([t]),this.setControlEnabled("fullscreenControl",t)}},{key:"hideControls",value:function(){return this.ui.releaseControls("showControls")}},{key:"showControls",value:function(){return this.requestControls("showControls",4e3)}},{key:"requestChromeless",value:function(t,e){return this.requestControls(t,e,!1)}},{key:"releaseChromeless",value:function(t){return this.releaseControls(t)}},{key:"requestControls",value:function(t,e){var n,i=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this._visibilityRequests[t]=r,null!=e&&(0,c.doTimeout)("".concat(this.uuid,".").concat(t,".release_controls"),(function(){i.releaseControls(t)}),e),null===(n=this.ui)||void 0===n?void 0:n.maybeToggleControls()}},{key:"releaseControls",value:function(t){var e;return this._visibilityRequests[t]=null,null===(e=this.ui)||void 0===e?void 0:e.maybeToggleControls()}},{key:"fit",value:function(){R(e,"fit",this,3)([]),this.embedded((function(){}))}},{key:"getBuffered",value:function(){if(!this.engine)return[];if(this.engine.activeBufferRange()){var t=M(this.engine.activeBufferRange(),2);return[{start:t[0],end:t[1]}]}return[]}},{key:"rangeBuffered",value:function(){this.engine.activeBufferRange()}},{key:"timeBuffered",value:function(){var t=this.rangeBuffered();return t?t[1]-t[0]:0}},{key:"totalBuffered",value:function(){return this.engine?this.engine.totalBuffered():0}},{key:"totalPlayed",value:function(){return this.engine?this.engine.totalPlayed():0}},{key:"sequentialBufferedRange",value:function(){return this.engine?this.engine.sequentialBufferedRange():[0,0]}},{key:"requestFullscreen",value:function(){return this.behaviors.fullscreen.requestFullscreen()}},{key:"cancelFullscreen",value:function(){return this.behaviors.fullscreen.cancelFullscreen()}},{key:"inFullscreen",value:function(){var t;return null===(t=this.behaviors.fullscreen)||void 0===t?void 0:t.inFullscreen()}},{key:"stopStreaming",value:function(){this.info("stopStreaming"),this.engine&&this.engine.stopStreaming()}},{key:"cleanup",value:function(){this.info("cleanup"),this.removeBehaviors()}},{key:"getVideoQuality",value:function(){return this.engine?this.engine.getCurrentQuality():"auto"}},{key:"setVideoQuality",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";return new Promise((function(n){t.info("videoQuality",e),t.initEngineAfterEmbedded(),t.ready((function(){n(t.engine.changeQuality(e,"playing"===t.state()))}))}))}},{key:"changeAudioTrack",value:function(t){var e=this;null!=t&&(this.initEngineAfterEmbedded(),this.info("changeAudioTrack",t),this.commandQueueOpen.synchronize((function(n){e.ready((function(){e.engine.changeAudioTrack(t).then(n)}))})))}},{key:"getAudioTracks",value:function(){var t=this.bestEngine();return this.engine?this.engine.getAudioTracks():"engines/hls_video.js"===t||"engines/native_hls_video.js"===t?(0,S.audioTracksForVideo)((0,S.allHlsAudioAssets)(this._mediaData.assets)):[]}},{key:"getCurrentAudioTrack",value:function(){return this.engine?this.engine.getCurrentAudioTrack():0}},{key:"selectedQuality",value:function(){return this.engine?this.engine.selectedQuality():"auto"}},{key:"selectableQualities",value:function(){return this.engine?this.engine.selectableQualities():["auto"]}},{key:"stillUrl",value:function(t){return t=(0,l.merge)({playButton:!1},t),R(e,"stillUrl",this,3)([t])}},{key:"play",value:function(){var t=this;this.suppressPlay()||this.trigger("playcalled"),this.initEngineAfterEmbedded();var e=(0,u.inUserEventContext)()&&!this.ready();this.info("play");var n=function(){t._isPlayPending=!1,t._lastPlayType=void 0,t._lastPlayRejectedAt=Date.now(),t.trigger("playrejected",t.lastPlayInfo())};return this.publicApi.isLiveMedia()&&!1===this.ready()?(n(),console.log("The call to play() failed likely because the livestream media was not yet ready. Try calling play() in an onReady event instead."),Promise.reject()):this.suppressPlay()?Promise.resolve():(this._isPlayPending=!0,this._lastPlayType=void 0,this._lastPlaySource=(0,u.currentEventSource)(),this._lastPlayIssuedAt=Date.now(),this._lastPlayResolvedAt=null,this._lastPlayRejectedAt=null,this.trigger("playpending",this.lastPlayInfo()),new Promise((function(i,r){t.ready((function(){t._calledPlay=!0;var o={};e&&!1===t._attrs.silentAutoplay&&(o.silentAutoplay="allow",t.trigger("clicked-play-before-ready")),f.Wistia.detect.ios.version&&f.Wistia.detect.ios.version<10.1&&!(0,u.inUserEventContext)()&&!t.engine.isInitializingFromUnmuted()&&(t.notice("Play rejected because not in user context."),n(),r()),t.engine.play(o).then((function(e){t._isPlayPending=!1,t._lastPlayType=e,t._lastPlayResolvedAt=Date.now(),"play-silently"!==e||t._inSilentPlaybackMode||(t._inSilentPlaybackMode=!0,t.trigger("silentplaybackmodechange",!0),t.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!0}}))),i()})).catch((function(e){t.notice(e),n(),r()}))}))})))}},{key:"pause",value:function(){var t=this;return this.info("pause"),this.trigger("receivepause"),this.initEngineAfterEmbedded(),this._isPausePending=!1,this._lastPauseSource=(0,u.currentEventSource)(),this._lastPauseIssuedAt=Date.now(),new Promise((function(e){t.ready()&&(t.engine.pause(),t._isPausePending=!1,e())}))}},{key:"time",value:function(t,e){var n=this;return null!=t?(this.info("time",t),"beforeplay"===this.state()&&(this._startPosition=t),this.initEngineAfterEmbedded(),new Promise((function(i){"beforeplay"===n.state()&&(n._lastPlaySource=(0,u.currentEventSource)(),n._lastPlayIssuedAt=Date.now(),n._isPlayPending=!0,n._lastPlayType=void 0,n._isPausePending=!0,n._lastPauseIssuedAt=n._lastPlayIssuedAt,n._lastPauseSource=n._lastPlaySource),t=Math.max(0,Math.min(n.duration(),t)),n.ready((function(){if(e&&e.lazy&&"playing"!==n.state())return n.engine.seekOnPlay(t).then(n.behaviors.relayEvents.fireTimeChangedEventsIfChanged),n._isPlayPending=!1,n.embedElement.dispatchEvent(new CustomEvent("seeked")),void i();"beforeplay"===n.state()?n._seekPromise=n.engine.seek(t,e).catch((function(e){n.notice(e),n.engine.seekOnPlay(t),n._isPlayPending=!1,n._lastPlayRejectedAt=Date.now(),n._lastPlayType=void 0,n.trigger("playrejected",n.lastPlayInfo()),n.embedElement.dispatchEvent(new CustomEvent("seeked")),i()})).then((function(t){n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),n._isPlayPending=!1,n._isPausePending=!1,n._lastPlayType=t,"play-silently"===t&&(n._inSilentPlaybackMode=!0,n.trigger("silentplaybackmodechange",!0),n.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!0}}))),n.embedElement.dispatchEvent(new CustomEvent("seeked")),i()})):(n.info("time ".concat(t,": set immediately")),n.engine.setCurrentTime(t),n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),n.embedElement.dispatchEvent(new CustomEvent("seeked")),i())}))}))):this.engine&&this.engine.getCurrentTime()||0}},{key:"duration",value:function(){if(this.publicApi.isLiveMedia())return Infinity;if(this.engine)return this.engine.getDuration();var t=this._mediaData.duration,e={attributes:{cuts:this._opts.cuts,duration:t,trimEnd:this._opts.trimEnd,trimStart:this._opts.trimStart}};return(0,k.getDurationAfterCuts)(e)}},{key:"volume",value:function(t){return null!=t&&(this.info("volume",t),t=Math.max(0,Math.min(1,t)),this.initEngineAfterEmbedded(),R(e,"volumeAttr",this,3)([t]),this.ready()&&this.engine.setVolume(t)),this.engine?(R(e,"volumeAttr",this,3)([this.engine.getVolume()]),this.engine.getVolume()):null!=this._attrs.volume?this._attrs.volume:1}},{key:"mute",value:function(){var t=this;this._muted=!0,this.ready()?this.engine.mute():this.ready((function(){t.engine.mute()}))}},{key:"unmute",value:function(){this._muted=!1,this.ready()&&(f.Wistia.detect.callingPlayRequiresEventContext?"playing"!==this.state()||(0,u.inUserEventContext)()?(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1),this.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!1}})))):this.notice("could not unmute"):(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1),this.embedElement.dispatchEvent(new CustomEvent("silent-playback-mode-change",{detail:{isInSilentPlaybackMode:!1}})))))}},{key:"isMuted",value:function(){return this.engine?this.engine.isMuted():null!=this._muted?this._muted:!!this._opts.muted}},{key:"isResumableEnabled",value:function(){return!(!this.behaviors[E.default.handle]||null!=this._impl._startPosition||this.publicApi.isLiveMedia())&&(!0===this._attrs.resumable||!1!==this._attrs.resumable&&this.meetsAutoCriteraForResumable())}},{key:"meetsAutoCriteraForResumable",value:function(){var t=this.isControlEnabled("playbar")||this._attrs.playBarControl;return!(0,i.shorterThanResumableThreshold)(this.duration())&&!this._attrs.autoplay&&!("loop"===this._attrs.endVideoBehavior)&&(t||this.isAudio())}},{key:"setResumable",value:function(t){R(e,"setResumable",this,3)([t]),!1===t?this.behaviors.resumable.destroyResumableKey():this.shouldResume()&&this.behaviors.resumable.initResumableKey(),this.behaviors.embed.updateStartPosition()}},{key:"shouldResume",value:function(){return this.isResumableEnabled()&&(0,i.withinResumableTime)(this.publicApi.hashedId(),this.duration())}},{key:"state",value:function(){if(this.engine){var t,e=this.engine.getPlaybackMode();return"beforeplay"===e&&null!==(t=this.behaviors.relayEvents)&&void 0!==t&&t._hasPlayed?"paused":e}return"beforeplay"}},{key:"setAriaLiveText",value:function(t){this.ui||(this.ui=this.behaviors.ui),this.ui.setAriaLiveText(t)}},{key:"lastPauseInfo",value:function(){return{source:this._lastPauseSource,issuedAt:this._lastPauseIssuedAt,isPending:!!this._isPausePending}}},{key:"lastPlayInfo",value:function(){return{source:this._lastPlaySource,issuedAt:this._lastPlayIssuedAt,isPending:!!this._isPlayPending,playType:this._lastPlayType,resolvedAt:this._lastPlayResolvedAt,rejectedAt:this._lastPlayRejectedAt}}},{key:"playerBackgroundColor",value:function(t){if(null!=t){this.info("playerBackgroundColor",t);var e=this._attrs.playerBackgroundColor;return this._attrs.playerBackgroundColor=new s.Color(t).toHex(),e!==this._attrs.playerBackgroundColor&&this.trigger("playerbackgroundcolorchange",this._attrs.playerBackgroundColor,e),this}return this._attrs.playerBackgroundColor}},{key:"preloadValue",value:function(){return this.behaviors.embed.preloadValue()}},{key:"width",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?i.fullscreen||!this.inFullscreen()?R(e,"width",this,3)([t,i]):(this.info("notFullscreen => width(".concat(t,")")),this.notFullscreen((function(){R(e,"width",n,3)([t,i])})),this):R(e,"width",this,3)([t,i])}},{key:"height",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?i.fullscreen||!this.inFullscreen()?R(e,"height",this,3)([t,i]):(this.info("notFullscreen => height(".concat(t,")")),this.notFullscreen((function(){R(e,"height",n,3)([t,i])})),this):R(e,"height",this,3)([t,i])}},{key:"videoWidth",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?i.fullscreen||!this.inFullscreen()?R(e,"videoWidth",this,3)([t,i]):(this.info("notFullscreen => videoWidth(".concat(t,")")),this.notFullscreen((function(){R(e,"videoWidth",n,3)([t,i])})),this):R(e,"videoWidth",this,3)([t,i])}},{key:"videoHeight",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t&&this.inFullscreen()?(this.info("notFullscreen => videoHeight(".concat(t,")")),this.notFullscreen((function(){R(e,"videoHeight",n,3)([t,i])})),this):R(e,"videoHeight",this,3)([t,i])}},{key:"playbackRate",value:function(t){var e=this;return null!=t?(this.initEngineAfterEmbedded(),this.ready((function(){e.info("playbackRate",t);var n=parseFloat(t);if(isNaN(n))return e.error('playbackRate: Invalid argument "#{rate}" given. Expected a float.'),e;t=n;var i=e.engine.getPlaybackRate();e.engine.setPlaybackRate(t),e._eventLoopDuration=Math.max(50,Math.min(500,e._baseEventLoopDuration/t)),e._playbackRate=t,i!==e._playbackRate&&(e.trigger("playbackratechange",e._playbackRate),e.embedElement.dispatchEvent(new CustomEvent("rate-change",{detail:{playbackRate:e._playbackRate}})))})),this):this.engine?this.engine.getPlaybackRate():1}},{key:"trim",value:function(t){var e=this;if(null==t)return this.engine.getTrim();this.embedded((function(){(0,l.equalsDeep)(t,e.engine.getTrim())||(e.engine.setTrim(t),e.trigger("trimchange",t))}))}},{key:"captureCurrentFrame",value:function(){var t;return(t=this.engine).captureCurrentFrame.apply(t,arguments)}},{key:"getReportAProblemData",value:function(t){var e=this,n=function(t){try{return t()}catch(t){return"threw exception: ".concat(t.message)}},i=U(this.publicApi._opts),r=this.publicApi._optionSources();Object.keys(r).forEach((function(t){r[t]=U(r[t])}));var o={player_version:""!==C.TAGGED_VERSION&&C.TAGGED_VERSION.length>0?C.TAGGED_VERSION:T.PLAYER_VERSION,media_key:this._mediaData.mediaKey,account_key:this._mediaData.accountKey,visitor_key:this.visitorKey(),event_key:this.eventKey(),referrer:document.referrer,page_url:location.href,extra_data:{first_1000_logs:f.Wistia.wlog.first1000LogLines(),last_1000_logs:f.Wistia.wlog.last1000LogLines(),browser_time:new Date,option_sources:n((function(){return r})),embedOptions:i,active_plugins:n((function(){return Object.keys(e.publicApi.plugin)})),assets:this._mediaData.assets,selectedAsset:this.engine.selectedAsset(),attrs:this._attrs,judy:n((function(){return a.report(e.publicApi.judyCtx(),e._mediaData,e._opts)})),detect:f.Wistia.detect,engineDiagnostics:n((function(){return e.engine.diagnosticData()}))}};for(var s in this.publicApi.plugin){var u=this.publicApi.plugin[s];"function"==typeof u.getReportAProblemData&&(o.extra_data[s]=u.getReportAProblemData())}return o}},{key:"isKeyboardFocused",value:function(t){return null!=t&&(this._isKeyboardFocused=t),this._isKeyboardFocused}},{key:"setControlEnabled",value:function(t,e){var n=this,i=this.isControlEnabled(t)!==e;this._enabledControls[t]=e;var r=function(){e?n.trigger("controlenabled",t):n.trigger("controldisabled",t)};return i?this.embedded()?this.renderUI().then(r):new Promise((function(t){n.embedded(t),r()})):this.ui&&this.ui.lastRenderPromise||Promise.resolve()}},{key:"isControlDisabled",value:function(t){var e=f.Wistia._controlDefinitions[t];return!!(e&&e.isVideoChrome&&this._opts.chromeless)||!1===this._enabledControls[t]}},{key:"isControlEnabled",value:function(t){return!1!==this._enabledControls[t]&&null!=this.publicApi.controls[t]}},{key:"whenControlMounted",value:function(t){var e=this;return new Promise((function(n){e.embedded((function(){e.behaviors.ui.whenControlMounted(t).then(n)}))}))}},{key:"getControl",value:function(t){return this.ui&&this.ui.controls&&this.ui.controls[t]}},{key:"_doEnterInputContexts",value:function(){var t=this;this._inputContextsToEnter=this._inputContextsToEnter.reverse().map((function(e){var n=t._playerContext.indexOf(e);return n>0&&t._playerContext.splice(n,1),(-1===n||n>0)&&(t._playerContext.unshift(e),t.trigger("inputcontextchange",e),t.embedElement.dispatchEvent(new CustomEvent(A.INPUT_CONTEXT_CHANGE_EVENT,{detail:{context:e}}))),e}))}},{key:"enterInputContext",value:function(t){var e=this;(0,c.clearTimeouts)("".concat(this.uuid,".enter_input_contexts")),this._inputContextsToEnter.push(t),(0,c.doTimeout)("".concat(this.uuid,".enter_input_contexts"),(function(){e._doEnterInputContexts()}),10)}},{key:"originalenterInputContext",value:function(t){var e=this._playerContext.indexOf(t);e>0&&this._playerContext.splice(e,1),(-1===e||e>0)&&(this._playerContext.unshift(t),this.trigger("inputcontextchange",t))}},{key:"exitInputContext",value:function(t){var e=this.getInputContext(),n=this._playerContext.indexOf(t);if(-1!==n){this._playerContext.splice(n,1);var i=this.getInputContext();e!==i&&(this.trigger("inputcontextchange",i),this.embedElement.dispatchEvent(new CustomEvent(A.INPUT_CONTEXT_CHANGE_EVENT,{detail:{context:i}})))}}},{key:"getInputContext",value:function(){return this._playerContext[0]}},{key:"getMediaElement",value:function(){return this.engine&&this.engine.getMediaElement()}},{key:"whenVideoElementInDom",value:function(){var t=this;return this._whenVideoElementInDom?this._whenVideoElementInDom:this.engine?Promise.resolve(this.getMediaElement()):this._whenVideoElementInDom=new Promise((function(e){t.bind("engine-initialized",(function(){return e(t.getMediaElement()),t.unbind}))}))}},{key:"inSilentPlaybackMode",value:function(){return!!this._inSilentPlaybackMode}},{key:"checkForReady",value:function(){this.behaviors.embed.checkForReady()}},{key:"loadOverlayCode",value:function(){var t=this;return this._overlayCodePromise&&void 0!==this.behaviors.overlays||(this._overlayCodePromise=new Promise((function(e){t.behaviors.overlays?e():(0,h.dynamicImport)("assets/external/vulcanV2Player/behaviors/OverlaysBehavior.js").then((function(n){t.behaviors.overlays||t.addBehavior(n.OverlaysBehavior),e()}))}))),this._overlayCodePromise}},{key:"defineOverlay",value:function(t,e){var n=this;return this.loadOverlayCode().then((function(){n._overlays[t]=e}))}},{key:"requestOverlay",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldSuspendPlayer:!0};return this.loadOverlayCode().then((function(){return e.behaviors.overlays.requestOverlay(t,n)}))}},{key:"cancelOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.cancelOverlay(t)}))}},{key:"undefineOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.undefineOverlay(t)}))}},{key:"getOverlays",value:function(){return this._overlays}},{key:"layout",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)return this._layout;this.whenVideoElementInDom().then((function(){e.engine.setLayout(t,n)})),this._layout=t}},{key:"focus",value:function(){this.isAudio()?this.whenControlMounted("audioBackgroundFocus").then((function(t){t.focus()})):this.whenControlMounted("backgroundFocus").then((function(t){t.focus()}))}},{key:"_inNativeMode",value:function(){var t;return(null===(t=this.behaviors.ui)||void 0===t?void 0:t.inNativeMode())||!1}},{key:"_bandwidthTest",value:function(){return this.behaviors.bandwidthTest.bandwidthTest()}},{key:"_focusNextVisibleElem",value:function(){return this.behaviors.ui.focusNextVisibleElem()}},{key:"openTabMenu",value:function(){this.isAudio()&&this.ui.openTabMenu()}},{key:"closeTabMenu",value:function(){this.isAudio()&&this.ui.closeTabMenu()}},{key:"openChaptersTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("chaptersTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"openShareTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("shareTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"openTranscriptTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("transcriptTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"turnOffCaptions",value:function(){var t,e;null===(t=this.controls.captions)||void 0===t||t.turnOff(),null===(e=this.controls.captionsButton)||void 0===e||e.matchMenuToSelectedTextTrack()}}],d&&D(n.prototype,d),I&&D(n,I),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,d,I}(f.Wistia.Video);f.Wistia.VulcanV2Player=V,f.Wistia.plugin("vulcanV2Player",(function(t,e){f.Wistia.info("vulcanV2Player no-op plugin executed")}));var U=function(t){var e=(0,l.clone)(t);return e.container&&(e.container="removed to avoid circular"),e}}f.Wistia.VulcanV2Player},(t,e,n)=>{n.d(e,{LiveMediaTracker:()=>i.LiveMediaTracker});var i=n(176)},(t,e,n)=>{n.d(e,{LiveMediaTracker:()=>W});var i=n(148),r=n(3),o=n(38),a=n(177),s=n(181),u=n(182),l=n(183);function c(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||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.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function y(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function m(t,e,n){g(t,e),e.set(t,n)}function g(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(t,e){return t.get(w(t,e))}function _(t,e,n){return t.set(w(t,e),n),n}function w(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var E=new WeakMap,O=new WeakMap,P=new WeakMap,k=new WeakMap,S=new WeakMap,T=new WeakMap,C=new WeakMap,A=new WeakMap,j=new WeakMap,M=new WeakMap,I=new WeakMap,D=new WeakMap,L=new WeakMap,B=new WeakMap,x=new WeakMap,R=new WeakSet,F=new WeakMap,W=function(){return t=function t(e){var n,r,o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),g(n=this,r=R),r.add(n),m(this,E,void 0),m(this,O,void 0),m(this,P,void 0),m(this,k,[]),m(this,S,{}),m(this,T,void 0),m(this,C,(function(){var t,e=b(O,o)._mediaData;_(k,o,[]),_(P,o,new l.Client(e.analyticsHost));var n=(0,s.getOrSetIsFirst)(o.hashedId,a.PlaySession.Scope.LIVE_EVENT,"load");_(T,o,a.PlaySession.load(b(E,o),{visitor_key:b(O,o).visitorKey(),session_key:(0,i.uniqId)("".concat(Date.now().toString().substring(0,7),"_")),embed_url:b(O,o)._attrs.pageUrl,referrer_url:b(O,o)._attrs.referrerUrl,account_id:e.accountId,live_stream_event_id:e.liveStreamEventDetails.id,media_id:null!==(t=e.sourceMediaId)&&void 0!==t?t:e.mediaId,media_type:"Video",player_type:"modern"},{first:n,scope:a.PlaySession.Scope.LIVE_EVENT,captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent,{force:!0}),document.addEventListener("visibilitychange",b(L,o)),"playing"===b(O,o).state()&&b(A,o).call(o),b(O,o).bind("play",b(A,o)),b(O,o).bind("pause",b(j,o)),b(O,o).bind("seek",b(I,o)),b(O,o).bind("end",b(D,o)),b(O,o).bind("annotation-impression",b(B,o)),b(O,o).bind("annotation-click",b(x,o)),b(S,o).flush=setInterval(b(F,o),5e3)})),m(this,A,(function(){var t=(0,s.getOrSetIsFirst)(o.hashedId,a.PlaySession.Scope.LIVE_EVENT,a.PlaySession.Event.PLAY),e=o.captionsEnabled;_(T,o,b(T,o).play(Date.now(),b(O,o).time(),{first:t,captions:e,live:o.isLive,email:o.email}));var n=b(T,o).lastEvent.event===a.PlaySession.Event.PLAY;w(R,o,N).call(o,o.lastEvent,{force:n}),b(S,o).update=setInterval(b(M,o),5e3)})),m(this,j,(function(){w(R,o,H).call(o,"update"),_(T,o,b(T,o).pause(Date.now(),b(O,o).time(),{captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent)})),m(this,M,(function(){o.isPlaying&&(_(T,o,b(T,o).update(Date.now(),b(O,o).time(),{captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent))})),m(this,I,(function(t,e){_(T,o,b(T,o).seek(Date.now(),e,t,{captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent)})),m(this,D,(function(){_(T,o,b(T,o).end(Date.now(),b(O,o).time(),{captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent,{force:!0})})),m(this,L,(function(){o.isPlaying&&(_(T,o,b(T,o).focusChange(Date.now(),b(O,o).time(),{focus:!document.hidden,captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent))})),m(this,B,(function(t){var e=t.annotationId,n=(0,s.getOrSetIsFirst)(o.hashedId,a.PlaySession.Scope.LIVE_ANNOTATION,"impression_".concat(e));_(T,o,b(T,o).annotationImpression(Date.now(),b(O,o).time(),e,{first:n,captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent)})),m(this,x,(function(t){var e=t.annotationId,n=(0,s.getOrSetIsFirst)(o.hashedId,a.PlaySession.Scope.LIVE_ANNOTATION,"click_".concat(e));_(T,o,b(T,o).annotationClick(Date.now(),b(O,o).time(),e,{first:n,captions:o.captionsEnabled,live:o.isLive,email:o.email})),w(R,o,N).call(o,o.lastEvent)})),m(this,F,(function(){if(0!==b(k,o).length){var t=b(k,o),e=p(p({},b(T,o).meta),{},{events:t,anonymize_ip:o.shouldAnonymizeIp});_(k,o,[]),b(O,o).debug("Submitting events",e),b(P,o).liveStream(e).then((function(t){if(!t.ok)throw new Error("Failed to send tracking events. Server responded with status: ".concat(t.status))})).catch((function(e){b(O,o).error(e),_(k,o,[].concat(c(t),c(b(k,o))).sort((function(t,e){return t.time-e.time})))}))}})),_(E,this,Date.now()),_(O,this,e)},(e=[{key:"meta",get:function(){var t;return null===(t=b(T,this))||void 0===t?void 0:t.meta}},{key:"lastEvent",get:function(){var t;return null===(t=b(T,this))||void 0===t?void 0:t.lastEvent}},{key:"isPlaying",get:function(){var t;return null===(t=b(T,this))||void 0===t?void 0:t.isPlaying}},{key:"captionsEnabled",get:function(){return!!b(O,this).getSelectedCaptions()}},{key:"isLive",get:function(){var t,e;return!(null===(t=b(O,this)._mediaData)||void 0===t||null===(e=t.liveStreamEventDetails)||void 0===e||!e.startedAt)}},{key:"hashedId",get:function(){return b(O,this).hashedId()}},{key:"shouldAnonymizeIp",get:function(){return Boolean(b(O,this)._opts.anonymizeIp||!(0,o.isVisitorTrackingEnabled)())}},{key:"email",get:function(){return w(R,this,V).call(this),b(O,this).email()}},{key:"monitor",value:function(){var t=this;b(O,this).doNotTrack()||(this.stopMonitoring(),b(O,this).hasData((function(){return(0,r.pageLoaded)(b(C,t))})))}},{key:"stopMonitoring",value:function(){b(F,this).call(this),w(R,this,H).call(this,"flush"),w(R,this,H).call(this,"update"),document.removeEventListener("visibilitychange",b(L,this)),b(O,this).unbind("play",b(A,this)),b(O,this).unbind("pause",b(j,this)),b(O,this).unbind("seek",b(I,this)),b(O,this).unbind("end",b(D,this)),b(O,this).unbind("annotation-impression",b(B,this)),b(O,this).unbind("annotation-click",b(x,this))}},{key:"timeDelta",value:function(){return(new Date).getTime()-b(E,this)}},{key:"eventKey",value:function(){var t;return null===(t=this.meta)||void 0===t?void 0:t.session_key}},{key:"visitorKey",value:function(){return b(O,this).visitorKey()}}])&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function N(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==e&&e;b(O,this).debug(t),_(k,this,[].concat(c(b(k,this)),[t])),n&&b(F,this).call(this)}function H(t){b(S,this)[t]&&(clearInterval(b(S,this)[t]),delete b(S,this)[t])}function V(){var t,e=b(O,this)._mediaData,n=null==e||null===(t=e.liveStreamEventDetails)||void 0===t?void 0:t.hashedId;if(!b(O,this).email()&&n){var i,r=null===(i=(0,u.getLiveLocalStorageUser)(n))||void 0===i?void 0:i.email;b(O,this).email(r)}}},(t,e,n)=>{n.d(e,{PlaySession:()=>i.PlaySession});n(178);var i=n(179)},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function a(t,e){return t.get(u(t,e))}function s(t,e,n){return t.set(u(t,e),n),n}function u(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{InclusiveRange:()=>d});var l=new WeakMap,c=new WeakMap,d=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,l,void 0),o(this,c,void 0),s(l,this,e),s(c,this,n)},(e=[{key:"start",get:function(){return a(l,this)}},{key:"end",get:function(){return a(c,this)}},{key:"isEmpty",get:function(){return this.start==this.end}},{key:"isAscending",get:function(){return this.start<=this.end}},{key:"foreach",value:function(t){for(var e=this.start;e<=this.end;++e)t(e)}},{key:"reduce",value:function(t,e){var n=e;return this.foreach((function(e){n=t(n,e)})),n}},{key:"includes",value:function(t){var e=Math.min(this.start,this.end),n=Math.max(this.start,this.end);return e<=t&&t<=n}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}])&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},(t,e,n)=>{n.d(e,{PlaySession:()=>g});var i,r=n(180),o=n(178);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t)||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.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function p(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(t,e){return t.get(v(t,e))}function v(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var y=new WeakMap,m=new WeakSet,g=function(){function t(e){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),p(n=this,i=m),i.add(n),function(t,e,n){p(t,e),e.set(t,n)}(this,y,void 0),function(t,e,n){t.set(v(t,e),n)}(y,this,e)}return e=t,n=[{key:"meta",get:function(){return f(y,this).meta}},{key:"startedAt",get:function(){return f(y,this).startedAt}},{key:"isPlaying",get:function(){return void 0===f(y,this).inactiveAt}},{key:"scope",get:function(){return f(y,this).scope}},{key:"histogram",get:function(){return f(y,this).histogram}},{key:"history",get:function(){return f(y,this).history}},{key:"lastEvent",get:function(){return this.history[0]}},{key:"position",get:function(){return this.lastEvent.player_position}},{key:"hasPlayed",get:function(){return f(y,this).hasPlayed}},{key:"play",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.first,o=void 0!==r&&r,s=i.captions,u=void 0!==s&&s,c=i.live,d=void 0!==c&&c,h=i.email,p=i.focus,v=void 0===p||p,m=l({time:e,event:this.hasPlayed?t.Event.UNPAUSE:t.Event.PLAY,scope:this.scope,first:o,live:d,captions:u,email:h,focus:v,player_position:n},t.EMPTY_METRICS);return new t(l(l({},f(y,this)),{},{inactiveAt:void 0,history:[m].concat(a(this.history)),hasPlayed:!0}))}},{key:"pause",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,o=void 0!==r&&r,s=i.live,u=void 0!==s&&s,c=i.email,d=i.focus,h=void 0===d||d,p=v(m,this,b).call(this,n),g=v(m,this,_).call(this,p),w=l({time:e,event:t.Event.PAUSE,scope:this.scope,live:u,captions:o,email:c,focus:h,player_position:n},g);return new t(l(l({},f(y,this)),{},{inactiveAt:e,histogram:this.histogram.union(p),history:[w].concat(a(this.history))}))}},{key:"seek",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.captions,s=void 0!==o&&o,u=r.live,c=void 0!==u&&u,d=r.email,h=r.focus,p=void 0===h||h,g=t.EMPTY_METRICS,w=this.histogram,E=e;if(this.isPlaying){var O=v(m,this,b).call(this,n);g=v(m,this,_).call(this,O),w=w.union(O),E=void 0}var P=l({time:e,event:t.Event.SEEK,scope:this.scope,live:c,captions:s,email:d,focus:p,previous_player_position:n,player_position:i},g);return new t(l(l({},f(y,this)),{},{inactiveAt:E,histogram:w,history:[P].concat(a(this.history))}))}},{key:"update",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,o=void 0!==r&&r,s=i.live,u=void 0!==s&&s,c=i.email,d=i.focus,h=void 0===d?!document.hidden:d;if(this.isPlaying){var p=v(m,this,b).call(this,n),g=v(m,this,_).call(this,p),w=l({time:e,event:t.Event.UPDATE,scope:this.scope,live:u,captions:o,email:c,focus:h,player_position:n},g);return new t(l(l({},f(y,this)),{},{histogram:this.histogram.union(p),history:[w].concat(a(this.history))}))}return this}},{key:"focusChange",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.focus,o=void 0===r?!document.hidden:r,s=i.captions,u=void 0!==s&&s,c=i.live,d=void 0!==c&&c,h=i.email;if(!this.isPlaying)return this;var p=l({time:e,event:t.Event.FOCUS_CHANGE,scope:this.scope,captions:u,live:d,email:h,focus:o,player_position:n},t.EMPTY_METRICS);return new t(l(l({},f(y,this)),{},{history:[p].concat(a(this.history))}))}},{key:"end",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,o=void 0!==r&&r,s=i.live,u=void 0!==s&&s,c=i.email,d=i.focus,h=void 0===d?!document.hidden:d,p=v(m,this,b).call(this,n),g=v(m,this,_).call(this,p),w=l({time:e,event:t.Event.END,scope:this.scope,live:u,captions:o,email:c,focus:h,player_position:n},g);return new t(l(l({},f(y,this)),{},{inactiveAt:e,histogram:this.histogram.union(p),history:[w].concat(a(this.history))}))}},{key:"annotationImpression",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.first,s=void 0!==o&&o,u=r.captions,c=void 0!==u&&u,d=r.live,h=void 0!==d&&d,p=r.email,v=r.focus,m=void 0===v?!document.hidden:v,g=l({time:e,scope:t.Scope.LIVE_ANNOTATION,event:t.Event.IMPRESSION,first:s,live:h,captions:c,email:p,focus:m,player_position:n,annotation_id:i,role:t.Role.AUDIENCE_MEMBER},t.EMPTY_METRICS);return new t(l(l({},f(y,this)),{},{history:[g].concat(a(this.history))}))}},{key:"annotationClick",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.first,s=void 0!==o&&o,u=r.captions,c=void 0!==u&&u,d=r.live,h=void 0!==d&&d,p=r.email,v=r.focus,m=void 0===v?!document.hidden:v,g=l({time:e,scope:t.Scope.LIVE_ANNOTATION,event:t.Event.CLICK,first:s,live:h,captions:c,email:p,focus:m,player_position:n,annotation_id:i,role:t.Role.AUDIENCE_MEMBER},t.EMPTY_METRICS);return new t(l(l({},f(y,this)),{},{history:[g].concat(a(this.history))}))}}],i=[{key:"load",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.first,a=void 0!==o&&o,s=i.scope,u=i.captions,c=void 0!==u&&u,d=i.live,h=void 0!==d&&d,p=i.email,f=i.focus,v=void 0===f||f,y=l({time:e,event:t.Event.LOAD,scope:s,first:a,live:h,captions:c,email:p,focus:v},t.EMPTY_METRICS);return new t({startedAt:e,meta:n,scope:s,inactiveAt:e,histogram:new r.Histogram,history:[y]})}}],n&&c(e.prototype,n),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();function b(t){var e=this.lastEvent.event===i.Event.UPDATE,n=this.position;e&&(n+=1);var r=new o.InclusiveRange(Math.floor(n),Math.floor(t));return r.isAscending?r:void 0}function _(t){return t?this.histogram.chunkInRangeBy(t,(function(t){return 0===t.value})).reduce((function(t,e){var n=e.at(0),i=n.bucket,r=n.value,o=e.at(-1).bucket;return l(l({},t),{},0===r?{unique_played_time:t.unique_played_time+e.length,unique_played_ranges:[].concat(a(t.unique_played_ranges),[{start:i,end:o}])}:{replayed_time:t.replayed_time+e.length,replayed_ranges:[].concat(a(t.replayed_ranges),[{start:i,end:o}])})}),{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]}):i.EMPTY_METRICS}i=g,d(g,"Scope",Object.freeze({LIVE_EVENT:"live_event",LIVE_ANNOTATION:"live_annotation"})),d(g,"Event",Object.freeze({LOAD:"load",PLAY:"play",SEEK:"seek",PAUSE:"pause",UNPAUSE:"unpause",UPDATE:"update",FOCUS_CHANGE:"focus_change",END:"end",IMPRESSION:"impression",CLICK:"click"})),d(g,"EMPTY_METRICS",{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]}),d(g,"Role",Object.freeze({AUDIENCE_MEMBER:"audienceMember"}))},(t,e,n)=>{n.d(e,{Histogram:()=>f});var i=n(178);function r(t){return function(t){if(Array.isArray(t))return t}(t)||s(t)||a(t)||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 o(t){return function(t){if(Array.isArray(t))return u(t)}(t)||s(t)||a(t)||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.")}()}function a(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function s(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function d(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function h(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var p=new WeakMap,f=function(){function t(){var e,n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,p,void 0),n=this,i=r,(e=p).set(h(e,n),i)}return e=t,(n=[{key:"buckets",get:function(){return e=this,(t=p).get(h(t,e));var t,e}},{key:"valueAt",value:function(t){return this.buckets[t]||0}},{key:"union",value:function(e){var n=this;if(!e)return this;var r=o(this.buckets);return e.foreach((function(t){r[t]=n.valueAt(t)+1})),new i.InclusiveRange(0,e.start-1).foreach((function(t){r[t]=n.valueAt(t)})),new t(r)}},{key:"chunkInRangeBy",value:function(t,e){var n=this,i=Symbol("empty"),a=t.reduce((function(t,i){var a=t.chunks,s=t.flip,u={bucket:i,value:n.valueAt(i)},l=e(u);if(s!==l)return{chunks:[[u]].concat(o(a)),flip:l};var c=r(a),d=c[0],h=c.slice(1);return{chunks:[[].concat(o(d),[u])].concat(o(h)),flip:s}}),{chunks:[],flip:i});return a.chunks.reverse()}}])&&l(e.prototype,n),a&&l(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,a}()},(t,e,n)=>{n.d(e,{getOrSetIsFirst:()=>s});var i=n(40);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t,e,n){var r=["wistia",t,e].join("."),s=(0,i.getLocalStorage)(r);return!(n in s)&&((0,i.setLocalStorage)(r,o(o({},s),{},a({},n,1))),!0)}},(t,e,n)=>{n.d(e,{getLiveLocalStorageUser:()=>r});var i=n(40),r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"audience";return function(t,e){return e.split(".").reduce((function(t,e){return t&&t[e]}),t)}((0,i.getLocalStorage)("wistia:live:data"),["events",t,"user",e].join("."))}},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{Client:()=>c});var u=new WeakMap,l=new WeakSet,c=r((function t(e){var n,i,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(n=this,i=l),i.add(n),function(t,e,n){a(t,e),e.set(t,n)}(this,u,void 0),function(t,e,n){(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"liveStream",(function(t){return s(l,r,d).call(r,"/live-stream/1.0.0",t)})),function(t,e,n){t.set(s(t,e),n)}(u,this,e)}));function d(t,e){var n,i,r=new URL(t,(i=this,(n=u).get(s(n,i))));return fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},mode:"cors",credentials:"omit",body:JSON.stringify(e),keepalive:!0})}},(t,e,n)=>{var i=n(2),r=n(47),o=n(73),a=n(185),s=n(16),u=n(189),l=n(46),c=n(45),d=n(190);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h.apply(null,arguments)}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,g(i.key),i)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(0,l.defineTranslations)("en-US",{AUDIO_DESCRIPTION_HIDE_MENU:"Hide audio description menu",AUDIO_DESCRIPTION_SHOW_MENU:"Show audio description menu"});var b=function(t){function e(t){var n,i,r,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=f(this,e,[t]),i=n,o=function(t){var e=n.video.engine.getCurrentAudioTrackId();Number(e)!==Number(t)&&n.video.changeAudioTrack(t),(0,c.isMouseDownRecently)()&&setTimeout((function(){n.dialog.close(),n.buttonRoot.parentElement.focus()}),300)},(r=g(r="onClickTrack"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.video=t,n.unbinds.push(t.on("playerlanguagechange",(function(){n.menuElem&&n.renderMenu()})),t.on("audiostreamchange",(function(){n.menuElem&&n.renderMenu()}))),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(o=[{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"mountDialog",value:function(t){var e=this;this.dialogRoot=t;var n=(0,r.dynamicImport)("assets/external/interFontFace.js").then((function(){e.renderMenu()}));return this.loading(new Promise((function(t){n.then(t)}))),n}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"renderButton",value:function(){this.updateButtonLabel(),(0,i.render)((0,i.h)(d.RoundedAudioDescriptionButton,null),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var t=this;if(this.dialog.isOpen()&&this.dialogRoot){var e=this.video.engine.getAudioTracks();(0,i.render)((0,i.h)(a.AudioDescriptionMenu,h({},this.props,{elemRef:function(e){return t.menuElem=e},onClick:this.onClickTrack,scale:this.props.scale,tracks:e})),this.dialogRoot),this.reactMounts.menu=[this.dialogRoot]}}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"translate",value:function(t){return(0,l.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(t))}}])&&p(n.prototype,o),s&&p(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(u.Control);b.shouldMount=function(t){var e,n,i;return!function(t){var e,n=null===(e=t.embedOptions().plugin)||void 0===e?void 0:e.extendedAudioDescription;return n&&!1!==n.on}(t)&&!1!==t._attrs.audioDescriptionIsRequired&&!1!==t._attrs.audioDescriptionControl&&(null!==(e=null===(n=t._impl)||void 0===n||null===(i=n.getAudioTracks)||void 0===i?void 0:i.call(n))&&void 0!==e?e:[]).length>1},b.handle="audioDescriptionButton",b.type="control-bar-right",b.sortValue=51,b.isVideoChrome=!0,(0,o.defineControl)(b),s.Wistia.AudioDescriptionControl=b},(t,e,n)=>{n.d(e,{AudioDescriptionMenu:()=>p});var i=n(2),r=n(186),o=n(188);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(null,arguments)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,u(i.key),i)}}function u(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(u=[{key:"render",value:function(){var t=this;return(0,i.h)("div",null,(0,i.h)("fieldset",{style:{border:0,padding:0,margin:0}},(0,i.h)(r.default,{tagName:"legend"},"Audio Description Menu"),this.props.tracks.map((function(e,n){return(0,i.h)(o.AudioTrackMenuItem,a({},t.props,{track:e,id:n,isLastItem:n===t.props.tracks.length-1,isFirstItem:0===n}))}))))}}])&&s(n.prototype,u),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u,c}(i.Component)},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(2),r=n(187);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(null,arguments)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function u(t,e,n){return e=c(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}const h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(s=[{key:"render",value:function(){var t=this.props.tagName||"div";return(0,i.h)(t,o({},this.props,{ref:this.props.elemRef,style:r.visuallyHiddenElementStyles}),this.props.children)}}])&&a(n.prototype,s),l&&a(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,s,l}(i.Component)},(t,e,n)=>{n.d(e,{visuallyHiddenElementStyles:()=>i});var i={clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(t,e,n)=>{n.d(e,{AudioTrackMenuItem:()=>g});var i=n(2),r=n(28),o=n(45),a=n(30),s=n(26),u=n(46),l=n(186);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(null,arguments)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function h(t,e,n){return e=f(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(0,u.defineTranslations)("en-US",{AUDIO_DESCRIPTION_OFF:"Off"});var g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),y(n=h(this,e,[t]),"onBlur",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),y(n,"onClick",(function(){n.props.onClick(n.props.id)})),y(n,"onFocus",(function(){(0,o.isMouseDown)()||n.setState({isKeyboardFocused:!0})})),y(n,"onMouseEnter",(function(){n.setState({isHovering:!0})})),y(n,"onMouseLeave",(function(){n.setState({isHovering:!1})})),n.uuid=(0,s.seqId)(),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,(p=[{key:"checkStyle",value:function(){return{height:_(this),verticalAlign:"middle",visibility:this.props.track.isSelected?"visible":"hidden",width:b(this)}}},{key:"menuItemStyle",value:function(){var t=this.props.controlBarBorderRadius;return{background:this.state.isHovering?"rgba(0,0,0,.3)":"",borderBottomLeftRadius:this.props.isLastItem?"".concat(t,"px"):0,borderBottomRightRadius:this.props.isLastItem?"".concat(t,"px"):0,borderTopLeftRadius:this.props.isFirstItem?"".concat(t,"px"):0,borderTopRightRadius:this.props.isFirstItem?"".concat(t,"px"):0,boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",display:"block",fontFamily:r.interFontFamily,fontSize:w(this),lineHeight:_(this),marginRight:"".concat(10*this.props.scale,"px"),textAlign:"left",width:"100%"}}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(t))}},{key:"render",value:function(){var t=this.props,e=t.track,n=t.elemRef,r=e.label;"Original"===r&&(r=this.translate("OFF"));var o="AD-".concat(this.uuid,"-").concat(r,"+").concat(e.id);return(0,i.h)("div",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:n,style:this.menuItemStyle()},(0,i.h)(l.default,{checked:Boolean(e.isSelected),id:o,name:"Audio Description Menu",onBlur:this.onBlur,onClick:this.onClick,onFocus:this.onFocus,tagName:"input",type:"radio",value:r}),(0,i.h)("label",{class:"w-css-reset",for:o},(0,i.h)("svg",c({},(0,a.standardSvgAttrs)({width:40,height:34}),{class:"w-checkmark",style:this.checkStyle()}),(0,i.h)("polyline",{fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",points:"17,17 20,20 25,14 "})),r))}}])&&d(n.prototype,p),f&&d(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p,f}(i.Component),b=function(t){return"".concat(function(t){return 40*t.props.scale}(t),"px")},_=function(t){return"".concat(function(t){return 34*t.props.scale}(t),"px")},w=function(t){return 14*t.props.scale}},(t,e,n)=>{n.d(e,{Control:()=>l});var i=n(71);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function a(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}function s(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var u=new WeakMap,l=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,u,void 0),this.video=e,this.embedElement=e.container,this.unbinds=[],this.eventListeners=new Map,this.reactMounts={},this.isWistiaPlayer="WISTIA-PLAYER"===this.embedElement.tagName,this.impl=e,this.isWistiaPlayer?this.api=this.embedElement:this.api=e.publicApi,this.props={}},(e=[{key:"disabledButton",get:function(){return e=this,(t=u).get(s(t,e));var t,e},set:function(t){var e,n,i;n=this,i=t,(e=u).set(s(e,n),i)}},{key:"destroy",value:function(){(0,i.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},(t,e,n)=>{n.d(e,{RoundedAudioDescriptionButton:()=>a});var i=n(2),r=n(30);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(null,arguments)}var a=function(t){var e=t.onMouseEnter,n=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}});return(0,i.h)("svg",o({},n,{onMouseEnter:e}),(0,i.h)("g",{stroke:"#ffffff","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M19.7 14.6C21.9 14.6 22.7 16 22.7 17.4C22.7 18.7 22 20.2 19.7 20.2H18.2V14.6H19.7Z"}),(0,i.h)("path",{d:"M10 20.2L12.6 14.6L15 20.2"}),(0,i.h)("path",{d:"M10.5 19H14.5"}),(0,i.h)("path",{d:"M27.5 24.8C29.7 22.7 30.7 19.9 30.7 17.4C30.7 14.7 29.7 12.1 27.5 10"}),(0,i.h)("path",{d:"M24.6 12.9C26 14.1 26.6 15.7 26.6 17.4C26.6 19 26.1 20.7 24.6 21.9"})))}},(t,e,n)=>{var i=n(2),r=n(47),o=(n(16),n(189)),a=n(192),s=n(73),u=n(46);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function c(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function y(t,e,n){m(t,e),e.set(t,n)}function m(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(t,e){return t.get(_(t,e))}function b(t,e,n){return t.set(_(t,e),n),n}function _(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}(0,u.defineTranslations)("en-US",{CAPTIONS_DISABLED:"No captions available",CAPTIONS_HIDE_MENU:"Hide captions menu",CAPTIONS_OFF:"Off",CAPTIONS_SHOW_MENU:"Show captions menu",CAPTIONS_TURN_OFF:"Turn off captions",CAPTIONS_TURN_ON:"Turn on captions"});var w="disabled",E="on",O="off",P=new WeakMap,k=new WeakMap,S=new WeakSet,T=function(t){function e(t){var n,i,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=c(this,e,[t]),m(i=n,r=S),r.add(i),y(n,P,void 0),y(n,k,void 0),f(n,"onClickButton",(function(){var t;if(null!==(t=n.captionsV3Control)&&void 0!==t&&t.selectedLanguage)n.captionsV3Control.setLanguage(void 0),b(k,n,O);else{var e=n.captionsV3Control.captionAndSubtitleTextTracks()[0].language;n.captionsV3Control.setLanguage(e),b(k,n,E)}n.renderButton()})),n.video=t,n.unbinds=[],n.disabledButton=!0,b(k,n,w),_(S,n,C).call(n).then((function(){n.captionsV3Control.captionAndSubtitleTextTracks().length>0&&(n.disabledButton=!1,b(k,n,O),n.renderButton()),n.unbinds.push(n.video.on("addtrack",(function(){n.disabledButton=!1,b(k,n,O),n.renderButton()})),n.video.on("captionschange",(function(){n.captionsV3Control.selectedLanguage?b(k,n,E):b(k,n,O),n.renderButton()})))})),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderDialog(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.updateButtonLabel()}},{key:"renderButton",value:function(){var t;!this.video._inNativeMode()&&this.buttonRoot&&(this.updateButtonLabel(),(0,i.render)((0,i.h)(a.RoundedCaptionsButton,{color:this.video.playerColor(),filled:Boolean(null===(t=this.captionsV3Control)||void 0===t?void 0:t.selectedTrack)}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"updateButtonLabel",value:function(){var t=f(f(f(f(f({},E,"CAPTIONS_TURN_OFF"),O,"CAPTIONS_TURN_ON"),"menu-closed","CAPTIONS_SHOW_MENU"),"menu-open","CAPTIONS_HIDE_MENU"),w,"CAPTIONS_DISABLED")[g(k,this)],e=(0,u.getTranslation)(this.props.playerLanguage.code,t);this.setButtonLabel(e)}}])&&l(n.prototype,r),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(o.Control);function C(){var t=this;return g(P,this)||b(P,this,(0,r.dynamicImport)("assets/external/captions-v3.js").then((function(e){return(0,s.defineControl)(e.CaptionsV3Control),t.video.whenControlMounted("captionsV3")})).then((function(){t.captionsV3Control=t.video.controls.captionsV3}))),g(P,this)}T.handle="captionsV3Button",T.type="control-bar-right",T.sortValue=50,T.shouldMount=function(t){return t.isLiveMedia()},(0,s.defineControl)(T)},(t,e,n)=>{n.d(e,{RoundedCaptionsButton:()=>a});var i=n(2),r=n(30);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(null,arguments)}var a=function(t){var e=t.filled,n=t.color,a=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}}),s={fill:e?"#fff":"none",stroke:"#ffffff"},u={fill:"none",stroke:e?"#".concat(n):"#fff"};return(0,i.h)("svg",a,(0,i.h)("path",o({"fill-rule":"evenodd","clip-rule":"evenodd",d:"M31 21.9811C31 23.5912 29.6 25 28 25H12C10.4 25 9 23.5912 9 21.9811V12.0189C9 10.4088 10.4 9 12 9H28C29.6 9 31 10.4088 31 12.0189V21.9811Z","stroke-width":"2","stroke-linecap":"round"},s)),(0,i.h)("path",o({d:"M18.4 18.7C17.9 19.4 17.3 19.9 16.3 19.9C15 19.9 13.9 18.8 13.9 17.1C13.9 15.5 14.9 14.3 16.3 14.3C17.3 14.3 17.9 14.8 18.3 15.5","stroke-width":"1.8","stroke-linecap":"round"},u)),(0,i.h)("path",o({d:"M25.8 18.7C25.3 19.4 24.7 19.9 23.7 19.9C22.4 19.9 21.3 18.8 21.3 17.1C21.3 15.5 22.3 14.3 23.7 14.3C24.7 14.3 25.3 14.8 25.7 15.5","stroke-width":"1.8","stroke-linecap":"round"},u)))}},(t,e,n)=>{var i=n(2),r=n(54),o=n(9),a=n(189),s=n(73),u=n(187),l=n(46);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){m(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,g(i.key),i)}}function p(t,e,n){return e=v(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function m(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var b=(0,o.cachedDetect)();(0,l.defineTranslations)("en-US",{BACKGROUND_FOCUS_SHOW_CONTROLS:"Show controls"});var _=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),m(n=p(this,e,[t]),"onControlPropsUpdated",(function(t){var e=n.props.isFocusable;t.isFocusable!=e&&e&&n._focusImmediately&&(n.el.focus({preventScroll:!0}),n._focusImmediately=!1)})),m(n,"focus",(function(){n.props.isFocusable?n.el.focus({preventScroll:!0}):n._focusImmediately=!0})),m(n,"onBlur",(function(){n.video.exitInputContext("background-focus"),n.video.controls.focusOutline.hide()})),m(n,"onFocus",(function(){n.video.enterInputContext("background-focus"),!0===n.video.isKeyboardFocused()&&n.video.controls.focusOutline.show()})),m(n,"render",(function(){var t=!n.video.publicApi.popover||n.video.publicApi.popover.isVisible()?0:-1;(0,i.render)((0,i.h)("button",{ref:function(t){return n.el=t},"aria-label":"".concat(n.getTranslation(),": ").concat((0,r.unescapeHtml)(n.video.name()||"")),class:"w-css-reset w-vulcan-v2-button",onBlur:n.onBlur,onFocus:n.onFocus,style:n.style(),tabIndex:t}),n.rootElem),n.reactMounts=[n.rootElem]})),n.video=t,n._focusImmediately=!1,n.unbinds.push(n.video.on("play",n.render),n.video.on("pause",n.render),n.video.on("end",n.render)),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(o=[{key:"mount",value:function(t){this.rootElem=t,this.render()}},{key:"style",value:function(){return d(d({},u.visuallyHiddenElementStyles),{},{pointerEvents:"none"})}},{key:"getTranslation",value:function(){return b.touchScreen&&!this.props.chromeless?this.translate("BACKGROUND_FOCUS_SHOW_CONTROLS"):"playing"===this.video.state()?this.translate("PLAY_BUTTON_TITLE_WHEN_PLAYING"):this.translate("PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING")}},{key:"translate",value:function(t){return(0,l.getTranslation)(this.props.playerLanguage.code,t)}}])&&h(n.prototype,o),a&&h(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(a.Control);_.shouldMount=function(){return!0},_.handle="backgroundFocus",_.type="background",_.sortValue=100,(0,s.defineControl)(_)},(t,e,n)=>{var i=n(195),r=n(2),o=n(32),a=n(189),s=n(196),u=n(73),l=n(200);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function d(t,e,n){return e=p(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function v(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var m=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(n=d(this,e,[t]),"renderButton",(function(){if(!n.__destroyed&&!n.hiddenButton){var t=!n.video.publicApi.popover||n.video.publicApi.popover.isVisible()?0:-1,e=(0,l.default)(s.BigPlayButton);(0,r.render)((0,r.h)(e,{borderRadius:n.props.bigPlayButtonBorderRadius,buttonTabIndex:t,color:n.video.playerColor(),duration:n.video.duration(),elemRef:function(t){return n.buttonElem=t},isLiveMedia:n.video.isLiveMedia(),isVisible:n.shouldShow(),leftNudgeFraction:n.getLeftNudgeFraction(),noMixBlendMode:n.video.embedOptions().noMixBlendMode,onClick:n.onClick,controlBarDistance:n.props.controlBarDistance,playerLanguage:n.props.playerLanguage,scale:n.scale(),showBpbTime:n._timeEnabled,topNudgeFraction:n.getTopNudgeFraction(),videoHeight:n.props.videoHeight-.75*n.props.controlBarHeight,videoName:n.video.name()||"",videoWidth:n.props.videoWidth,backgroundGradientCss:n.backgroundGradientCss()}),n.rootElem),n.reactMounts=[n.rootElem]}})),v(n,"onClick",(function(){n.video.play(),n.video.focus()})),n.video=t,n.eventListeners.set("playercolorchange",(function(){return n.renderButton()})),n.unbinds.push(t.on("play",n.renderButton),t.on("playrejected",n.renderButton),t.on("playpending",n.renderButton),t.on("playerlanguagechange",n.renderButton),t.on("end",n.renderButton),t.on("up",n.renderButton),t.on("trimchange",n.renderButton)),n._timeEnabled=n.video._opts.bpbTime,n.hiddenButton=n.video.isLiveMedia(),n.video.isLiveMedia()&&n.video.ready((function(){n.hiddenButton=!1,n.renderButton()})),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(a=[{key:"mount",value:function(t){this.rootElem=t,this.renderButton()}},{key:"backgroundGradientCss",value:function(){var t=this.video.playerColorGradient();if(null!=t&&t.on)return(0,o.getCssGradient)(t)}},{key:"onControlPropsUpdated",value:function(t){this.props.videoWidth===t.videoWidth&&this.props.videoHeight===t.videoHeight&&this.props.bigPlayButtonBorderRadius===t.bigPlayButtonBorderRadius||this.renderButton()}},{key:"shouldShow",value:function(){var t=this.video;return!1===t.lastPlayInfo().isPending&&("beforeplay"===t.state()||"ended"===t.state()&&"reset"===t._attrs.endVideoBehavior)}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,i.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"setTimeEnabled",value:function(t){this._timeEnabled=t,this.renderButton()}},{key:"setLeftNudgeFraction",value:function(t){this._leftNudgeFraction=t,this.renderButton()}},{key:"setTopNudgeFraction",value:function(t){this._topNudgeFraction=t,this.renderButton()}},{key:"getLeftNudgeFraction",value:function(){return null!=this._leftNudgeFraction?this._leftNudgeFraction:this.video._opts.bpbLeftNudge}},{key:"getTopNudgeFraction",value:function(){return null!=this._topNudgeFraction?this._topNudgeFraction:this.video._opts.bpbTopNudge}},{key:"getButtonOffsets",value:function(){var t=this.buttonElem;return{offsetHeight:t.offsetHeight,offsetTop:t.offsetTop}}}])&&c(n.prototype,a),u&&c(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,u}(a.Control);m.shouldMount=function(t){var e=t._attrs.bigPlayButton;return null==e||!0===e},m.handle="bigPlayButton",m.type="above-control-bar",(0,u.defineControl)(m)},(t,e,n)=>{n.d(e,{controlMultiplierBasedOnVideo:()=>c,controlMultiplierEstimatedByWidth:()=>d});n(3),n(72);var i=n(9),r=n(4);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var s=(0,i.cachedDetect)(),u=function(){var t=document.querySelector("meta[name=viewport]"),e=t&&t.getAttribute("content"),n={};e&&e.split(/[\s,]+/).forEach((function(t){var e=t.split("=");2===e.length&&(n[e[0]]=(0,r.cast)(e[1]))}));return n},l=function(t){if(!(s.iphone||s.ipad||s.android))return[640,960];if(null!=t&&t.isAudio())return[500,960];var e,n=u();if(n.width){e="number"==typeof n.width?0+n.width:screen.width||window.innerWidth;var i=Math.max(n["minimum-scale"]||0,Math.min(n["maximum-scale"]||10,n["initial-scale"]||1));i<1&&(e/=i)}else e=window.innerWidth;return[e,2*e/3]},c=function(t,e){var n=t.videoWidth(),i=t.videoHeight();if(n/i<1){var r=o(function(t){if(!(s.iphone||s.ipad||s.android))return[340,860];if(null!=t&&t.isAudio())return[500,960];var e,n=u();if(n.height){e="number"==typeof n.height?0+n.height:screen.height||window.innerHeight;var i=Math.max(n["minimum-scale"]||0,Math.min(n["maximum-scale"]||10,n["initial-scale"]||1));i<1&&(e/=i)}else e=window.innerWidth;return[e,2*e/1.3]}(t),2),a=r[0],c=r[1];if(i<=a)return i/a;if(i>c)return i/c}else{var d=o(e||l(t),2),h=d[0],p=d[1];if(n<=h)return n/h;if(n>p)return n/p}return 1},d=function(t,e){var n=o(e||l(),2),i=n[0],r=n[1];return t<=i?t/i:t>r?t/r:1}},(t,e,n)=>{n.d(e,{BigPlayButton:()=>g});var i=n(2),r=n(197),o=n(198),a=n(46),s=n(34),u=n(54),l=n(9),c=n(77),d=n(28);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var m=(0,l.cachedDetect)(),g=function(t){var e,n=t.backgroundGradientCss,l=t.baseHeight,h=void 0===l?80:l,f=t.baseWidth,y=void 0===f?125:f,g=t.borderRadius,b=t.buttonTabIndex,_=t.color,w=t.controlBarDistance,E=void 0===w?0:w,O=t.duration,P=t.elemRef,k=t.isLiveMedia,S=t.isLoading,T=void 0!==S&&S,C=t.isVisible,A=t.leftNudgeFraction,j=void 0===A?0:A,M=t.noMixBlendMode,I=void 0!==M&&M,D=t.onClick,L=t.playerLanguage,B=t.scale,x=t.showBpbTime,R=t.topNudgeFraction,F=void 0===R?0:R,W=t.videoName,N=t.videoWidth,H=v((0,r.useState)(!1),2),V=H[0],U=H[1],z=y*B,q=h*B,G=(0,u.unescapeHtml)(W),K="".concat((e="TITLE_WHEN_NOT_PLAYING",(0,a.getTranslation)(L.code,"PLAY_BUTTON_".concat(e))),": ").concat(G),Y={borderRadius:"".concat(g,"px"),display:C?"block":"none",left:"calc(50% + ".concat(100*(j||0),"%)"),marginLeft:"-".concat(z/2,"px"),marginTop:"-".concat(q/2,"px"),overflow:"hidden",position:"absolute",top:"calc(50% + ".concat(100*(F||0),"% - ").concat(E,"px)")},Q={backgroundColor:"transparent",border:0,cursor:"pointer",height:"".concat(q,"px"),boxShadow:"none",width:"".concat(z,"px")},X=!m.edge&&!I,$={background:new s.Color(null!=_?_:"#000").alpha(1).toRgba(),display:X?"block":"none",left:0,height:"".concat(q,"px"),mixBlendMode:"darken",position:"absolute",top:0,width:"".concat(z,"px")},Z=new s.Color(null!=_?_:"#000"),J=X?.7:.85;Z.alpha(J),V&&Z.lighten("15%");var tt=null!=n?{background:n,backgroundSize:"".concat(N,"px 100%"),backgroundPositionX:"center"}:{},et=p(p({backgroundColor:Z.toRgba()},tt),{},{height:"".concat(q,"px"),left:0,position:"absolute",top:0,transition:"background-color 150ms",width:"".concat(z,"px")}),nt=x&&!k,it={background:"rgba(0,0,0,.4)",color:"#fff",fontFamily:d.interNumbersSemiBold,fontSize:"".concat(18*B,"px"),lineHeight:"".concat(30*B,"px"),pointerEvents:"none",textAlign:"center"},rt=function(){U(!0)},ot=function(){U(!1)};return(0,i.h)("div",{class:"w-bpb-wrapper w-css-reset w-css-reset-tree",ref:P,style:Y},(0,i.h)("button",{class:"w-big-play-button w-css-reset-button-important w-vulcan-v2-button",style:Q,onMouseEnter:rt,onMouseLeave:ot,onFocusIn:rt,onFocusOut:ot,onClick:D,"aria-label":K,tabIndex:b,type:"button"},(0,i.h)("div",{style:$}),(0,i.h)("div",{style:et}),(0,i.h)(o.BigPlayButtonSVG,{width:y,height:h,scale:B,isLoading:T})),nt?(0,i.h)("div",{class:"w-bpb-time",style:it},(0,c.flexibleDuration)(O)):null)}},(t,e,n)=>{n.d(e,{useContext:()=>O,useEffect:()=>_,useReducer:()=>b,useRef:()=>w,useState:()=>g});var i,r,o,a,s=n(2),u=0,l=[],c=s.options,d=c.__b,h=c.__r,p=c.diffed,f=c.__c,v=c.unmount,y=c.__;function m(t,e){c.__h&&c.__h(r,t,u||e),u=0;var n=r.__H||(r.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function g(t){return u=1,b(j,t)}function b(t,e,n){var o=m(i++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):j(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.__f)){var a=function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(t){return!!t.__c}));if(i.every((function(t){return!t.__N})))return!s||s.call(this,t,e,n);var r=o.__c.props!==t;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}})),s&&s.call(this,t,e,n)||r};r.__f=!0;var s=r.shouldComponentUpdate,u=r.componentWillUpdate;r.componentWillUpdate=function(t,e,n){if(this.__e){var i=s;s=void 0,a(t,e,n),s=i}u&&u.call(this,t,e,n)},r.shouldComponentUpdate=a}return o.__N||o.__}function _(t,e){var n=m(i++,3);!c.__s&&A(n.__H,e)&&(n.__=t,n.u=e,r.__H.__h.push(n))}function w(t){return u=5,E((function(){return{current:t}}),[])}function E(t,e){var n=m(i++,7);return A(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function O(t){var e=r.context[t.__c],n=m(i++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(r)),e.props.value):t.__}function P(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(T),t.__H.__h.forEach(C),t.__H.__h=[]}catch(e){t.__H.__h=[],c.__e(e,t.__v)}}c.__b=function(t){r=null,d&&d(t)},c.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),y&&y(t,e)},c.__r=function(t){h&&h(t),i=0;var e=(r=t.__c).__H;e&&(o===r?(e.__h=[],r.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(T),e.__h.forEach(C),e.__h=[],i=0)),o=r},c.diffed=function(t){p&&p(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&a===c.requestAnimationFrame||((a=c.requestAnimationFrame)||S)(P)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),o=r=null},c.__c=function(t,e){e.some((function(t){try{t.__h.forEach(T),t.__h=t.__h.filter((function(t){return!t.__||C(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],c.__e(n,t.__v)}})),f&&f(t,e)},c.unmount=function(t){v&&v(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{T(t)}catch(t){e=t}})),n.__H=void 0,e&&c.__e(e,n.__v))};var k="function"==typeof requestAnimationFrame;function S(t){var e,n=function(){clearTimeout(i),k&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);k&&(e=requestAnimationFrame(n))}function T(t){var e=r,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),r=e}function C(t){var e=r;t.__c=t.__(),r=e}function A(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function j(t,e){return"function"==typeof e?e(t):e}},(t,e,n)=>{n.d(e,{BigPlayButtonSVG:()=>s});var i=n(2),r=n(199),o=n(30);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(null,arguments)}var s=function(t){var e=t.width,n=t.height,s=t.scale,u=t.isLoading,l=void 0!==u&&u,c=n*s,d=(0,o.standardSvgAttrs)({width:e,height:n,styleOverride:{position:"absolute",height:"".concat(c,"px")},ariaHidden:!0}),h=e/2-18.5,p=n/2-18;return(0,i.h)("svg",a({},d,{"aria-hidden":"true"}),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#FFFFFF",opacity:l?.5:1,transform:"translate(".concat(h,", ").concat(p,")"),d:"M12.138 2.173C10.812 1.254 9 2.203 9 3.817v28.366c0 1.613 1.812 2.563 3.138 1.644l20.487-14.183a2 2 0 0 0 0-3.288L12.138 2.173Z"}),l&&(0,i.h)(r.BigPlayButtonLoadingAnim,null))}},(t,e,n)=>{n.d(e,{BigPlayButtonLoadingAnim:()=>u});var i=n(2),r=n(197),o=n(3);function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(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 s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var u=function(){var t=(0,r.useRef)(null),e=a((0,r.useState)(!1),2),n=e[0],s=e[1];return(0,r.useEffect)((function(){(0,o.addInlineCss)(t.current,"\n @keyframes w-loading-pulse {\n from {\n stroke-dashoffset: 55;\n }\n to {\n stroke-dashoffset: -175;\n }\n }\n .w-big-play-button-loading-anim {\n stroke-dasharray: 50 260;\n stroke-dashoffset: 55;\n animation: w-loading-pulse 1.2s infinite cubic-bezier(0.65, 0, 0, 1);\n }\n "),s(!0)}),[]),(0,i.h)("line",{ref:t,class:"w-big-play-button-loading-anim",x1:"0",y1:"78",x2:"125",y2:"78",style:{stroke:"#FFFFFF",strokeWidth:4,strokeLinecap:"round",opacity:n?1:0}})}},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(2),r=n(3);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function a(t,e,n){return e=u(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}const d=function(t){return function(e){function n(){var t,e,i,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return t=a(this,n,[].concat(s)),e=t,r=function(e){var n=t.props.onClick;n&&n(e)},(i=c(i="onClick"))in e?Object.defineProperty(e,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[i]=r,t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(n,e),s=n,(u=[{key:"render",value:function(){return(0,i.h)(t,this.props)}},{key:"componentDidMount",value:function(){this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.destroyBindings(),this.setupBindings()}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){this.unbinds=[],this.unbinds.push((0,r.elemBind)(this.base,"click",this.onClick))}},{key:"destroyBindings",value:function(){this.unbinds&&(this.unbinds.map((function(t){return t()})),this.unbinds=null)}}])&&o(s.prototype,u),d&&o(s,d),Object.defineProperty(s,"prototype",{writable:!1}),s;var s,u,d}(i.Component)}},(t,e,n)=>{var i=n(2),r=n(15),o=n(45),a=n(9),s=n(47),u=n(73),l=n(46),c=n(202),d=n(189);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h.apply(null,arguments)}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var _=(0,a.cachedDetect)();(0,l.defineTranslations)("en-US",{CLICK_FOR_SOUND_DESKTOP_TEXT:"Click for sound",CLICK_FOR_SOUND_MOBILE_TEXT:"Tap for sound"});var w=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(n=f(this,e,[t]),"renderButton",(function(){var t,e=Boolean(n.video._opts.silentAutoPlayIsChromeless),r=n.isVisible();if(e&&(r?n.video.requestChromeless("clickForSound"):n.video.releaseChromeless("clickForSound")),n.video.trigger("clickforsoundvisibilitychange",r),r){var o=new Promise((function(t){setTimeout(t,1e3)}));t=Promise.race([o,(0,s.dynamicImport)("assets/external/interFontFace.js")])}else t=Promise.resolve();n.lastRenderPromise||(n.lastRenderPromise=Promise.resolve()),n.lastRenderPromise.then((function(){n.lastRenderPromise=new Promise((function(e){t.then((function(){(0,i.render)((0,i.h)(c.ClickForSoundButton,h({},n.props,{isLiveMedia:n.video.isLiveMedia(),isTouchscreen:_.touchScreen,backdropEnabled:n.getSilentAutoplayBackdropState(),buttonText:n.buttonText(),buttonTextEnabled:n.buttonTextEnabled(),elemRef:function(t){return n.buttonRoot=t},isVisible:n.isVisible(),onClick:n.onClick,scale:n.scale()})),n.rootElem),n.reactMounts=[n.rootElem],n.trigger("buttonrootrendered"),e()}))}))}))})),g(n,"onClick",(function(t){(0,o.isMouseDown)()||n.video.focus(),n.video.unmute(),n.video.turnOffCaptions(),n.setIsVisible(!1),n.trigger("click",t)})),n.silentAutoPlayBackdropEnabled=n.video._opts.silentAutoPlayBackdropEnabled,n.unbinds.push(t.on("play",n.renderButton),t.on("silentplaybackmodechange",n.renderButton),t.on("volumechange",n.renderButton)),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(r=[{key:"mount",value:function(t){this.rootElem=t,this.renderButton()}},{key:"onControlPropsUpdated",value:function(t){var e=this.props;t.scale===e.scale&&t.controlsAreVisible===e.controlsAreVisible&&t.controlBarHeight===e.controlBarHeight||this.renderButton(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.renderButton()}},{key:"getSilentAutoplayBackdropState",value:function(){return null==this.silentAutoPlayBackdropEnabled||this.silentAutoPlayBackdropEnabled}},{key:"setSilentAutoPlayBackdropEnabled",value:function(t){this.silentAutoPlayBackdropEnabled=t,this.renderButton()}},{key:"isVisible",value:function(){var t;return!0!==(null===(t=this.video.embedOptions().clickForSound)||void 0===t?void 0:t.disabled)&&(null!=this._isVisible?this._isVisible:this.video.inSilentPlaybackMode())}},{key:"setIsVisible",value:function(t){this._isVisible=t,this.renderButton(),this.video.trigger("clickforsoundvisibilitychange",this.isVisible())}},{key:"buttonText",value:function(){return _.touchScreen?this.translate("MOBILE_TEXT"):this.translate("DESKTOP_TEXT")}},{key:"buttonTextEnabled",value:function(){var t,e,n,i,r,o=this.video.embedOptions(),a=null===(t=o.plugin)||void 0===t?void 0:t.videoThumbnail;return null!=a&&a.on?null===(e=null===(n=a.clickForSound)||void 0===n?void 0:n.showText)||void 0===e||e:null===(i=null===(r=o.clickForSound)||void 0===r?void 0:r.showText)||void 0===i||i}},{key:"afterButtonRenders",value:function(){var t=this;return new Promise((function(e){t.bind("buttonrootrendered",(function(){return e(t.buttonRoot),t.unbind}))}))}},{key:"translate",value:function(t){var e;return(0,l.getTranslation)(null===(e=this.props)||void 0===e?void 0:e.playerLanguage.code,"CLICK_FOR_SOUND_".concat(t))}},{key:"scale",value:function(){var t=this.props.scale;return _.touchScreen?t:1.5*t}}])&&p(n.prototype,r),a&&p(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(d.Control);(0,r.bindify)(w.prototype),w.handle="clickForSoundButton",w.type="above-control-bar",(0,u.defineControl)(w)},(t,e,n)=>{n.d(e,{ClickForSoundButton:()=>c});var i=n(2),r=n(197),o=n(45),a=n(28),s=n(68);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(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 l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=function(t){var e=t.backdropEnabled,n=t.buttonText,l=t.buttonTextEnabled,c=t.elemRef,d=t.isLiveMedia,h=t.isTouchscreen,p=t.isVisible,f=t.onClick,v=t.scale,y=t.videoWidth,m="".concat(y,"px"),g=35*v,b=15*v-2,_=(0,r.useRef)(null),w=u((0,r.useState)(!1),2),E=w[0],O=w[1],P=u((0,r.useState)(h||d),2),k=P[0],S=P[1];return(0,i.h)(s.CustomEventsWrapper,{class:"w-css-reset w-css-reset-tree","data-handle":"click-for-sound-backdrop",elemRef:c,onClick:f,onMouseEnter:function(){S(!0)},onMouseLeave:function(){h||d||S(!1)},style:{display:p?"block":"none",height:"100%",left:0,pointerEvents:e?"auto":"none",position:"absolute",top:0,width:"100%"}},(0,i.h)("button",{"aria-label":n,onFocus:function(){(0,o.isMouseDown)()||O(!0)},onBlur:function(){return O(!1)},class:"w-vulcan-v2-button click-for-sound-btn",style:{background:"rgba(0,0,0,0.8)",border:"2px solid ".concat(E?"#fff":"transparent"),borderRadius:"60px",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",outline:"none",pointerEvents:"auto",position:"absolute",right:"".concat(b,"px"),top:"".concat(b,"px"),maxWidth:"".concat(y-2*b,"px")}},l?(0,i.h)("div",{ref:_,style:{display:"flex",alignItems:"center",justifyContent:"flex-end",whiteSpace:"nowrap",overflow:"hidden",maxWidth:k?m:0,transition:"max-width 200ms"}},(0,i.h)("span",{style:{color:"#fff",fontFamily:a.interFontFamily,fontSize:y<640?"15px":"18px",fontWeight:500,paddingLeft:"1em",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:m}},n)):null,(0,i.h)("svg",{viewBox:"0 0 237 237",width:g,height:g},(0,i.h)("style",null,"\n @keyframes VOLUME_SMALL_WAVE_FLASH {\n 0% { opacity: 0; }\n 33% { opacity: 1; }\n 66% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n @keyframes VOLUME_LARGE_WAVE_FLASH {\n 0% { opacity: 0; }\n 33% { opacity: 1; }\n 66% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n .volume__small-wave {\n animation: VOLUME_SMALL_WAVE_FLASH 2s infinite;\n opacity: 0;\n }\n\n .volume__large-wave {\n animation: VOLUME_LARGE_WAVE_FLASH 2s infinite .3s;\n opacity: 0;\n }\n"),(0,i.h)("path",{fill:"#fff",d:"M88 107H65v24h24l23 23V84z"}),(0,i.h)("g",{fill:"none",stroke:"#fff","stroke-linecap":"round","stroke-width":"10"},(0,i.h)("path",{d:"M142 86c9 21 9 44 0 65",class:"volume__small-wave"}),(0,i.h)("path",{d:"M165 74c13 23 13 66 0 89",class:"volume__large-wave"})))))}},(t,e,n)=>{var i=n(204),r=(n(2),n(3)),o=n(9),a=n(45),s=n(47),u=n(73),l=n(69),c=n(189);function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(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 h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function f(t,e,n){return e=m(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},y.apply(null,arguments)}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var w=(0,o.cachedDetect)(),E=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),b(n=f(this,e,[t]),"onContextMenu",(function(t,e){var o,s;t.altKey||(null!==(o=(s=n.video.ui).shouldOnlyShowControlBar)&&void 0!==o&&o.call(s)||("contextmenu"===t.type&&t.preventDefault(),n.pageX=t.pageX,n.pageY=t.pageY,n._hasLoaded||n.loading(new Promise((function(t){n.resolveLoadingPromise=t})),{x:n.pageX,y:n.pageY}),new Promise((function(t){!(e&&e.isLongPress)&&(0,a.isMouseDown)()?(0,r.elemBind)(document,"mouseup",(function(e){return n.pageX=e.pageX,n.pageY=e.pageY,t(),r.elemUnbind})):t()})).then((function(){(0,i.logPromiseErrors)(n.loadContextMenu().then((function(){n.renderMenu&&(n.resolveLoadingPromise(),n.renderMenu(),n.menuElemRef.focus())})))}))))})),b(n,"onClick",(function(t){(0,r.elemIsInside)(t.target,n.rootElem)||w.safari&&t.ctrlKey||(n.hideMenu?n.hideMenu():n._hasLoaded||n.loading(new Promise((function(t){t()}))))})),b(n,"onDocumentMouseUp",(function(t){t.ctrlKey||(0,r.elemIsInside)(t.target,n.rootElem)||((0,r.elemUnbind)(document,"mouseup",n.onDocumentMouseUp),n.loadContextMenu().then((function(){n.hideMenu()})))})),w.touchScreen?(n.touchEvents=new l.default(t.chrome),n.touchEvents.bind("longpress",n.onContextMenu)):n.unbinds.push((0,r.elemBind)(t.chrome,"contextmenu",n.onContextMenu)),n.unbinds.push((0,r.elemBind)(t.chrome,"click",n.onClick)),n.eventListeners.set("hide-copy-link-and-thumbnail-change",(function(){n.renderMenu()})),n.eventListeners.forEach((function(e,n){t.embedElement.addEventListener(n,e)})),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(e,t),n=e,o=[{key:"mount",value:function(t){this.rootElem=t}},{key:"destroy",value:function(){var t,n,i,r,o;this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),(t=e,n="destroy",i=this,o=y(m(1&(r=3)?t.prototype:t),n,i),2&r&&"function"==typeof o?function(t){return o.apply(i,t)}:o)([])}},{key:"onControlPropsUpdated",value:function(t){this.props.playerLanguage===t.playerLanguage&&this.props.controlBarBorderRadius===t.controlBarBorderRadius||!this._visible||this.renderMenu()}},{key:"loadContextMenu",value:function(){var t=this;return Promise.all([(0,s.dynamicImport)("assets/external/interFontFace.js"),(0,s.dynamicImport)("assets/external/vulcanV2Player/shared/controls/ContextMenuControl/menu.js")]).then((function(e){var n=d(e,2)[1].ContextMenuExtensions;for(var i in n)t[i]=n[i].bind(t);t._hasLoaded=!0}))}},{key:"removeEventListeners",value:function(){var t=this;this.eventListeners instanceof Map&&(this.eventListeners.forEach((function(e,n){t.impl.video.embedElement.removeEventListener(n,e)})),this.eventListeners.clear())}}],o&&p(n.prototype,o),u&&p(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,u}(c.Control);E.handle="contextMenu",E.type="foreground",(0,u.defineControl)(E)},(t,e,n)=>{n.d(e,{logPromiseErrors:()=>r});var i=function(t){setTimeout((function(){throw t}),0)},r=function(t){return t.catch(i)}},(t,e,n)=>{var i=n(2),r=n(189),o=n(206),a=n(73),s=n(46);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(0,s.defineTranslations)("en-US",{ELLIPSIS_LESS:"Show fewer buttons",ELLIPSIS_MORE:"Show more buttons"});var f=function(t){function e(){var t,n,i,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return t=l(this,e,[].concat(a)),n=t,r=function(){t.video.ui.isShowingMore()?(t.video.ui.showLess(),t.renderButton()):(t.video.ui.showMore(),t.renderButton())},(i=p(i="onClickButton"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(r=[{key:"mountButton",value:function(t){this.buttonElem=t,this.renderButton()}},{key:"renderButton",value:function(){(0,i.render)((0,i.h)(o.EllipsisButton,null),this.buttonElem),this.setButtonLabel(this.translate(this.video.ui.isShowingMore()?"LESS":"MORE"))}},{key:"translate",value:function(t){return(0,s.getTranslation)(this.props.playerLanguage.code,"ELLIPSIS_".concat(t))}}])&&u(n.prototype,r),a&&u(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(r.Control);f.handle="ellipsisButton",f.isVideoChrome=!0,f.type="ellipsis",f.sortValue=1e5,f.shouldMount=function(t){var e,n,i=(null===(e=t._impl.ui)||void 0===e?void 0:e.getControlsByType("control-bar-right"))||[],r=(null===(n=t._impl.ui)||void 0===n?void 0:n.getControlsByType("playbar"))||[];return i.length>0&&r.length>0&&t._impl.ui&&!t._impl.ui.shouldShowMoreDefaultValue()},(0,a.defineControl)(f)},(t,e,n)=>{n.d(e,{EllipsisButton:()=>v});var i=n(2),r=n(30),o=["onMouseEnter"];function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function d(t,e,n){return e=p(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,a=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t=this.props,e=t.onMouseEnter,n=function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(t,o),a=s(s({},(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0})),n);return e&&(a.onMouseEnter=e),(0,i.h)("svg",a,(0,i.h)("circle",{cx:"20",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"13",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"27",cy:"17",r:"2"}))}}],a&&l(n.prototype,a),u&&l(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,u}(i.Component)},(t,e,n)=>{var i=n(2),r=n(189),o=n(73);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function u(t,e,n){return e=c(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],c(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=u(this,e,[t])).video=t,n._isVisible=!1,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,(r=[{key:"mount",value:function(t){this.rootElem=t,this.render()}},{key:"hide",value:function(){this._isVisible=!1,this.render()}},{key:"show",value:function(){this._isVisible=!0,this.render()}},{key:"style",value:function(){return{boxShadow:"0 0 0 2px #fff inset",borderRadius:"".concat(this.props.playerBorderRadius,"px"),display:this._isVisible?"block":"none",height:"100%",left:0,pointerEvents:"none",position:"absolute",right:0,width:"100%"}}},{key:"render",value:function(){(0,i.render)((0,i.h)("div",{style:this.style(),class:"w-focus-outline"}),this.rootElem)}}])&&a(n.prototype,r),o&&a(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.Control);h.shouldMount=function(t){return!t.isAudio()},h.handle="focusOutline",h.type="foreground",h.sortValue=100,(0,o.defineControl)(h)},(t,e,n)=>{var i=n(2),r=n(3),o=n(9),a=n(189),s=n(209),u=n(73),l=n(46);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function d(t,e,n){return e=p(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function v(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var m=(0,o.cachedDetect)();(0,l.defineTranslations)("en-US",{FULLSCREEN_DOUBLE_TAP:"Double-tap to zoom in or out",FULLSCREEN_TITLE_WHEN_IN_FULLSCREEN:"Unfullscreen",FULLSCREEN_TITLE_WHEN_NOT_IN_FULLSCREEN:"Fullscreen"});var g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(n=d(this,e,[t]),"onClickButton",(function(){n.toggleFullscreen()})),v(n,"onKeyUp",(function(t){if(!(0,r.formInputIsFocused)()){var e=n.impl.getInputContext();"background-focus"!==e&&"player-mouseover"!==e&&"player-focus"!==e&&"playbar-focus"!==e||70===t.keyCode&&n.toggleFullscreen()}})),n.unbinds.push(n.impl.on("enterfullscreen",(function(){n.renderButton()})),n.impl.on("cancelfullscreen",(function(){n.renderButton()})),(0,r.elemBind)(document,"keyup",n.onKeyUp)),b()||_(n.impl)||!w()||(n.mountDialog=n.maybeMountDialog),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(o=[{key:"inFullscreen",value:function(){return this.isWistiaPlayer?this.api.inFullscreen:this.api.inFullscreen()}},{key:"onControlPropsUpdated",value:function(t){t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.dialog&&this.dialog.isOpen()&&this.renderDialog())}},{key:"maybeMountDialog",value:function(t){this.dialogElem=t,this.renderDialog()}},{key:"renderDialog",value:function(){this.dialogElem.innerHTML=this.translate("DOUBLE_TAP")}},{key:"mountButton",value:function(t){this.buttonElem=t,this.renderButton()}},{key:"renderButton",value:function(){if(this.buttonElem){var t=this.inFullscreen()?this.translate("TITLE_WHEN_IN_FULLSCREEN"):this.translate("TITLE_WHEN_NOT_IN_FULLSCREEN");this.setButtonLabel(t),(0,i.render)((0,i.h)(s.RoundedFullscreenButton,null),this.buttonElem),this.reactMounts=[this.buttonElem]}}},{key:"translate",value:function(t){return(0,l.getTranslation)(this.props.playerLanguage.code,"FULLSCREEN_".concat(t))}},{key:"toggleFullscreen",value:function(){(b()||_(this.impl))&&(this.inFullscreen()?this.api.cancelFullscreen():this.api.requestFullscreen())}}])&&c(n.prototype,o),a&&c(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(a.Control);g.handle="fullscreenControl",g.type="control-bar-right",g.sortValue=1e3,(0,u.defineControl)(g);var b=function(){return m.fullscreenEnabled},_=function(t){var e=t._mediaData,n=t._opts,i=(e.spherical||n.spherical)&&!n.overrideSpherical,r=top!==self;return m.ios.version>0&&(!r||!i)},w=function(){return m.ios.version>0||m.android};g.shouldMount=function(t){var e=t._attrs.fullscreenControl;return(!0===e||null==e)&&(b()||_(t)||w())}},(t,e,n)=>{n.d(e,{RoundedFullscreenButton:()=>o});var i=n(2),r=n(30),o=function(){var t=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}});return(0,i.h)("svg",t,(0,i.h)("rect",{x:"14",y:"13",width:"12",height:"8",rx:"1.5",stroke:"white","stroke-width":"2"}),(0,i.h)("g",{stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},(0,i.h)("path",{d:"M10 13V11C10 9.89543 10.8954 9 12 9H14"}),(0,i.h)("path",{d:"M30 13V11C30 9.89543 29.1046 9 28 9H26"}),(0,i.h)("path",{d:"M30 21L30 23C30 24.1046 29.1046 25 28 25L26 25"}),(0,i.h)("path",{d:"M10 21L10 23C10 24.1046 10.8954 25 12 25L14 25"})))}},(t,e,n)=>{var i=n(3),r=n(2),o=n(189),a=n(211),s=n(73);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(n=l(this,e,[t]),"show",(function(t){n._isVisible=!0,n.renderMenu(t)})),p(n,"hide",(function(){n._isVisible=!1,(0,r.render)((0,r.h)("nothing",null),n.rootElem),n.reactMounts=[n.rootElem]})),n._isVisible=!1,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(o=[{key:"mount",value:function(t){this.rootElem=t}},{key:"renderMenu",value:function(t){var e=t.x||0,n=t.y||0,o=(0,i.elemOffset)(this.video._embedContainer);this._isVisible&&((0,r.render)((0,r.h)(a.default,{videoOffset:o,x:e,y:n}),this.rootElem),this.reactMounts=[this.rootElem])}}])&&u(n.prototype,o),s&&u(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(o.Control);v.handle="loadingHourglass",v.type="foreground",(0,s.defineControl)(v)},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(2),r=n(3);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(null,arguments)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}const h=function(t){function e(t){var n,i,r,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=s(this,e,[t]),i=n,o=function(t){var e=t.pageX-n.props.videoOffset.left+10,i=t.pageY-n.props.videoOffset.top;n.setState({x:e,y:i})},(r=d(r="onMouseMove"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.animationInterval=void 0,n.state={x:n.props.x+10,y:n.props.y,floatingPixel:8},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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,(u=[{key:"componentWillMount",value:function(){var t=this;this.animationInterval=setInterval((function(){var e=t.state.floatingPixel+1;e>10&&(e=8),t.setState({floatingPixel:e})}),500),(0,r.elemBind)(document,"mousemove",this.onMouseMove)}},{key:"componentWillUnmount",value:function(){clearInterval(this.animationInterval),(0,r.elemUnbind)(document,"mousemove",this.onMouseMove)}},{key:"sandStyle",value:function(){return{fill:"#000000",width:"1",height:"1"}}},{key:"anchorStyle",value:function(){return{height:0,left:"".concat(this.state.x,"px"),position:"absolute",top:"".concat(this.state.y,"px"),width:0}}},{key:"sandProps",value:function(t,e){return{className:"sand",x:t,y:e,style:this.sandStyle()}}},{key:"useRules",value:function(){return{fill:"#FFFFFF","fill-rule":"evenodd"}}},{key:"hourGlassProps",value:function(t){return{stroke:"#000000",x:"1.5",y:t,width:"12",height:"2"}}},{key:"defsProps",value:function(t){return{x:1,y:t,width:13,height:3}}},{key:"render",value:function(){var t=this;return(0,i.h)("div",{style:this.anchorStyle(),onMouseMove:this.onMouseMove},(0,i.h)("svg",{width:"15px",height:"20px",viewBox:"0 0 15 20",version:"1.1"},(0,i.h)("defs",null,(0,i.h)("rect",o({id:"path-1"},this.defsProps(1))),(0,i.h)("rect",o({id:"path-2"},this.defsProps(16))),(0,i.h)("polygon",{id:"path-3",points:"2 3 13 3 13 7 10.25 10 13 13 13 17 2 17 2 13 4.75 10 2 7"})),(0,i.h)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,i.h)("g",{id:"hourglass"},(0,i.h)("g",{id:"top"},(0,i.h)("use",o({},this.useRules(),{xlinkKref:"#path-1"})),(0,i.h)("rect",this.hourGlassProps(1.5))),(0,i.h)("g",{id:"bottom"},(0,i.h)("use",o({},this.useRules(),{xlinkHref:"#path-2"})),(0,i.h)("rect",this.hourGlassProps(16.5))),(0,i.h)("g",{id:"glass"},(0,i.h)("use",o({},this.useRules(),{xlinkHref:"#path-3"})),(0,i.h)("path",{stroke:"#000000",d:"M2.5,3.5 L2.5,6.80550815 L5.42828419,10 L2.5,13.1944918 L2.5,16.5 L12.5,16.5 L12.5,13.1944918 L9.57171581,10 L12.5,6.80550815 L12.5,3.5 L2.5,3.5 Z"})),(0,i.h)("rect",{id:"floater",fill:"#000000",x:"7",y:this.state.floatingPixel,width:"1",height:"1"}),[[5,6],[7,6],[6,7],[8,7],[7,11],[6,12],[8,12],[7,13],[6,14],[8,14],[5,13],[9,13],[4,14],[10,14],[5,6],[9,6]].map((function(e){return(0,i.h)("rect",t.sandProps(e[0],e[1]))}))))))}}])&&a(n.prototype,u),l&&a(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u,l}(i.Component)},(t,e,n)=>{var i=n(2),r=n(47),o=n(189),a=n(73),s=n(46),u=n(206);function l(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return c(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function d(){}e=Object.getPrototypeOf;var h=[][i]?e(e([][i]())):(c(e={},i,(function(){return this})),e),p=d.prototype=s.prototype=Object.create(h);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,r,"GeneratorFunction")),t.prototype=Object.create(p),t}return u.prototype=d,c(p,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(p),c(p,r,"Generator"),c(p,i,(function(){return this})),c(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:o,m:f}})()}function c(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}c=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){c(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},c(t,e,n,i)}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(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 h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function p(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){p(o,i,r,a,s,"next",t)}function s(t){p(o,i,r,a,s,"throw",t)}a(void 0)}))}}function v(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,w(i.key),i)}}function y(t,e,n){return e=g(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,n||[],g(t).constructor):e.apply(t,n))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function _(t,e,n){return(e=w(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(0,s.defineTranslations)("en-US",{MULTI_CONTROL_TITLE:"Settings",MULTI_CONTROL_HIDE_MENU:"Hide Settings menu",MULTI_CONTROL_SHOW_MENU:"Show Settings menu"});var E=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return _(t=y(this,e,[].concat(i)),"loadMenuCode",f(l().m((function e(){return l().w((function(e){for(;;)if(0===e.n)return e.a(2,Promise.all([(0,r.dynamicImport)("assets/external/interFontFace.js"),(0,r.dynamicImport)("assets/external/vulcanV2Player/video/controls/MultiControl/dialog.js")]).then((function(e){var n=d(e,2)[1];if(!t.renderDialog){var i=n.renderDialog;t.renderDialog=i}})))}),e)})))),_(t,"onMouseEnterButton",(function(){t.loadMenuCode()})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),n=e,a=[{key:"shouldMount",value:function(t){var e,n=t.embedOptions();return null!==(e=null==n?void 0:n.multiControl)&&void 0!==e&&e}}],(o=[{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"mountDialog",value:function(t){this.dialogRoot=t,this.renderMenu()}},{key:"onControlPropsUpdated",value:function(t){var e;null!==(e=this.dialog)&&void 0!==e&&e.isOpen()&&this.renderMenu();var n=this.props.playerLanguage;null!=t.playerLanguage&&null!=this.props.playerLanguage&&t.playerLanguage.code!==n.code&&(this.renderButton(),this.renderMenu())}},{key:"renderButton",value:function(){this.setButtonLabel(this.translate("MULTI_CONTROL_TITLE")),this.updateButtonLabel(),this.buttonRoot&&((0,i.render)((0,i.h)(u.EllipsisButton,{onMouseEnter:this.onMouseEnterButton}),this.buttonRoot),this.reactMounts=[this.buttonRoot])}},{key:"renderMenu",value:function(){var t,e=this;if(this.dialogRoot&&null!==(t=this.dialog)&&void 0!==t&&t.isOpen()){var n=this.loadMenuCode().then((function(){var t;e.dialogRoot&&(null===(t=e.renderDialog)||void 0===t||t.call(e,e.dialogRoot,e.impl))}));this.loading(new Promise((function(t){n.then(t)})))}}},{key:"translate",value:function(t){var e=this.props.playerLanguage;return(0,s.getTranslation)(e.code,t)}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("MULTI_CONTROL_HIDE_MENU")):this.setButtonLabel(this.translate("MULTI_CONTROL_SHOW_MENU")))}}])&&v(n.prototype,o),a&&v(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(o.Control);_(E,"handle","multiControl"),_(E,"sortValue",800),_(E,"type","control-bar-right"),(0,a.defineControl)(E)},(t,e,n)=>{var i=n(214),r=n(73);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,(i=[{key:"width",value:function(){return this.props.width}},{key:"left",value:function(){return this.props.left}}])&&o(n.prototype,i),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(i.default);d.shouldMount=function(t){var e=t._attrs.playBarControl;return!0===e||null==e},d.handle="playbar",d.type="playbar",(0,r.defineControl)(d)},(t,e,n)=>{n.d(e,{default:()=>_});var i=n(84),r=n(58),o=n(72),a=n(45),s=n(3),u=n(2),l=n(215),c=n(189);function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},d.apply(null,arguments)}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function p(t,e,n){return e=y(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},v.apply(null,arguments)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}const _=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(n=p(this,e,[t]),"onResize",(function(t){var e=t.playbarBarWidth,i=t.playbarBarLeftOffsetFromPlayerLeftEdge;n.video.trigger("playbarresize",{playbarBarWidth:e,playbarBarLeftOffsetFromPlayerLeftEdge:i})})),g(n,"renderPlaybar",(function(){var t=n.video,e=t.plugin.chapters,i=e?e.getAllChapters():[],r=e?e.getChapterWithVisibleTitle():null,o=e?e.getChapterWithFocusedMarker():null,a=n.PlaybarComponent;(0,u.render)((0,u.h)(a,d({getCurrentTime:n.getCurrentTime,getCurrentBufferTime:n.getCurrentBufferTime,duration:t.duration(),isBeforePlay:"beforeplay"===t.state(),isVisible:n.props.controlsAreVisible,isPlaying:"playing"===t.state(),isSeeking:t._impl.engine&&t._impl.engine.isSeeking()},n.props,{onDragStart:n.onDragStart,onDrag:n.onDrag,onDragEnd:n.onDragEnd,onBlur:n.onBlurPlaybar,onFocus:n.onFocusPlaybar,isPlaceholder:n.isPlaceholder(),chapters:i,chapterWithFocusedMarker:o,chapterWithVisibleTitle:r,onClickChapter:n.onClickChapter,onMouseEnterOrFocusChapter:n.onMouseEnterOrFocusChapter,onMouseLeaveOrBlurChapter:n.onMouseLeaveOrBlurChapter,mediaData:n.video._mediaData,embedOptions:n.video._opts,color:n.video.playerColor(),showTime:n.showTime,shouldShowStoryboard:n.shouldShowStoryboard(),shouldShowChapterTitles:!0,shouldShowTime:n.shouldShowTime(),storyboardAsset:n.storyboardAsset(),leftControlBarWidth:n.props.leftControlBarWidth,setTimeWidth:n.setTimeWidth,setRightBarMargin:n.setRightBarMargin,resumableTime:n.resumableTime(),getDurationBeforeCuts:n.getDurationBeforeCuts,getTimeBeforeCuts:n.getTimeBeforeCuts,onResize:n.onResize})),n.rootElem),n.reactMounts=[n.rootElem]})),g(n,"getDurationBeforeCuts",(function(){var t;return null!==(t=n.video)&&void 0!==t&&t.engine?n.video.engine.getDurationBeforeCuts():-1})),g(n,"getTimeBeforeCuts",(function(t){var e;return null!==(e=n.video)&&void 0!==e&&e.engine?n.video.engine.getTimeBeforeCuts(t):-1})),g(n,"setTimeWidth",(function(t){n._timeWidth=t})),g(n,"setRightBarMargin",(function(t){n._rightBarMargin=t})),g(n,"renderNothing",(function(){(0,u.render)((0,u.h)("nothing",null),n.rootElem),n.reactMounts=[n.rootElem]})),g(n,"renderIfNotPlaying",(function(){"playing"!==n.video.state()&&n.render()})),g(n,"getCurrentTime",(function(){return n.video?n.video.time():0})),g(n,"getCurrentBufferTime",(function(){var t=n.video?n.video.getBuffered():[];return 0===t.length?0:t[t.length-1].end})),g(n,"onClickChapter",(function(t,e){e&&(n.video.time(e.time),"beforeplay"===n.video.state()&&n.video.play())})),g(n,"onMouseEnterOrFocusChapter",(function(t,e){e&&(n.chaptersPlugin().setChapterWithVisibleTitle(e.id),n.chaptersPlugin().setChapterWithFocusedMarker(e.id))})),g(n,"onMouseLeaveOrBlurChapter",(function(){n.chaptersPlugin().setChapterWithVisibleTitle(null),n.chaptersPlugin().setChapterWithFocusedMarker(null)})),g(n,"onDragStart",(function(t,e){n.video.requestControls("playbar-drag"),n.stateBeforeDrag=n.video.state(),n.onDrag(t,e),(0,o.doTimeout)("".concat(n.video.uuid,".maybe-pause-on-scrub"),(function(){(0,a.isMouseDown)()&&n.video.pause()}),300)})),g(n,"onDrag",(function(t,e){if(n.video){var i=e*n.video.duration();i!==n._timeSeekedToRecently&&(n.video.time(i),n._timeSeekedToRecently=i,(0,o.doTimeout)("".concat(n.video.uuid,".prevent-double-seek"),(function(){n._timeSeekedToRecently=null}),300))}})),g(n,"onDragEnd",(function(t,e){n.video&&(n.video.releaseControls("playbar-drag"),n.onDrag(t,e),n.video.trigger("playbardragend"),"beforeplay"!==n.stateBeforeDrag&&"playing"!==n.stateBeforeDrag||n.video.play())})),g(n,"onFocusPlaybar",(function(){n.video.enterInputContext("playbar-focus")})),g(n,"onBlurPlaybar",(function(){n.video.exitInputContext("playbar-focus")})),g(n,"onKeyDown",(function(t){var e=n.video;if(n.isVisible()&&!n.video._opts.spherical&&!(0,s.formInputIsFocused)()){var i=e.getInputContext();if("playbar-focus"===i||"player-mouseover"===i||"background-focus"===i||"player-focus"===i){var r=e.duration(),o=t.keyCode;if(32!==o){null==n.keyDownStartedAt&&(n.keyDownStartedAt=Date.now());var a=Date.now()-n.keyDownStartedAt,u=0;u="playing"===e.state()?t.shiftKey||a>200?33===o||34===o?r<30?5:r<60?10:10+r/60:r<30?2:r<60?5:5+r/60/2:33===o||34===o?r<60?5:20:2:t.shiftKey||a>200?1:1/24;var l=0;39===o||33===o?l=1:37!==o&&34!==o||(l=-1),-1===l?(t.preventDefault(),e.time(e.time()-u)):1===l&&(t.preventDefault(),e.time(e.time()+u))}else"playbar-focus"!==i&&"player-mouseover"!==i||t.preventDefault()}}})),g(n,"onKeyUp",(function(t){if(n.isVisible()&&!(0,s.formInputIsFocused)()){n.keyDownStartedAt=null;var e=n.video;"playbar-focus"===e.getInputContext()&&32===t.keyCode&&("playing"===e.state()?e.pause():e.play())}})),n.PlaybarComponent=l.default,n.showTime=!0,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,c=[{key:"mount",value:function(t){var n,i,r,o,a,u=this;(n=e,i="mount",r=this,a=v(y(1&(o=3)?n.prototype:n),i,r),2&o&&"function"==typeof a?function(t){return a.apply(r,t)}:a)([t]),this.eventListeners.set("playercolorchange",(function(){return u.render()})),this.eventListeners.set("resumablechange",(function(){return u.render()}));var l=this.video;this.unbinds.push(l.on("play",(function(){u.render()})),l.on("pause",(function(){u.render()})),l.on("progress",this.renderIfNotPlaying),l.on("timechange",(function(){u.render()})),l.on("end",(function(){u.render()})),l.on("widthchange",(function(){u.render()})),l.on("seeking",(function(){u.render()})),l.on("trimchange",(function(){u.renderNothing(),u.render()})),(0,s.elemBind)(document,"keydown",this.onKeyDown),(0,s.elemBind)(document,"keyup",this.onKeyUp));var c=function(){var t=l.plugin.chapters;u.unbinds.push(t.on("focuschange",(function(){u.render()})),t.on("changechapters",(function(){u.render()})))};l.plugin("chapters").then(c),l.on("plugininitialized",(function(t){"chapters"===t&&c()})),this.render()}},{key:"onControlPropsUpdated",value:function(t){t.width!==this.props.width&&this.render(),t.controlsAreVisible&&!this.props.controlsAreVisible&&this.render(),!t.controlsAreVisible&&this.props.controlsAreVisible&&this.render(),this.props.controlBarBorderRadius!==t.controlBarBorderRadius&&this.render()}},{key:"render",value:function(){this.video.publicApi.isLiveMedia()?this.renderNothing():this.renderPlaybar()}},{key:"resumableTime",value:function(){if(this.video.shouldResume())return(0,i.getLastTime)(this.video.hashedId())}},{key:"timeWidth",value:function(){return this._timeWidth}},{key:"rightBarMargin",value:function(){return this._rightBarMargin}},{key:"chaptersPlugin",value:function(){return this.video.plugin.chapters}},{key:"isPlaceholder",value:function(){return!1}},{key:"isVisible",value:function(){return!0}},{key:"shouldShowTime",value:function(){return!0}},{key:"shouldShowStoryboard",value:function(){if(null!=this._shouldShowStoryboard)return this._shouldShowStoryboard;var t=!!this.storyboardAsset();return this._shouldShowStoryboard=t}},{key:"storyboardAsset",value:function(){return(0,r.one)(this.video._mediaData.assets,{type:"storyboard",status:r.READY,metadata:function(t){return t&&t.frame_count&&t.frame_width&&t.frame_height}})}}],c&&h(n.prototype,c),f&&h(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c,f}(c.Control)},(t,e,n)=>{n.d(e,{default:()=>D});var i=n(216),r=n(28),o=n(34),a=n(4),s=n(3),u=n(2),l=n(9),c=n(45),d=n(47),h=n(217),p=n(69),f=n(77);function v(){return v=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},v.apply(null,arguments)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(t,e):void 0}}(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 m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,P(i.key),i)}}function b(t,e,n){return e=w(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,_()?Reflect.construct(e,n||[],w(t).constructor):e.apply(t,n))}function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_=function(){return!!t})()}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function O(t,e,n){return(e=P(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(0,i.addInterNumbersFontFace)();var k,S,T,C=(0,l.cachedDetect)(),A="vulcanV2Player/shared/ui_components",j="w-playbar",M=1.001,I=function(t){return Math.min(1,Math.max(0,t))};const D=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),O(n=b(this,e,[t]),"onFocusChapterMarkers",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),O(n,"onFocus",(function(t){var e=n.props.onFocus;e&&e(t),(0,c.isMouseDown)()||n.setState({isKeyboardFocused:!0})})),O(n,"onFocusOut",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),O(n,"onMouseEnter",(function(t){n.touchEvents||(t.wistiaPlayerHandled=!0,n.setState({hoveredAt:Date.now(),isHovering:!0}),n.cachePositionDetails(),n.props.shouldShowStoryboard&&n.loadStoryboard())})),O(n,"onMouseLeave",(function(t){n.touchEvents||(t.wistiaPlayerHandled=!0,n.setState({hoveredAt:void 0,isHovering:!1}))})),O(n,"onMouseMove",(function(t){if(!n.touchEvents){t.wistiaPlayerHandled=!0;var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.setState({hoverPercent:e})}})),O(n,"onMouseDown",(function(t){if(!n.touchEvents&&!t.wistiaPlayerHandled&&!t.ctrlKey){t.preventDefault(),n.wrapperElem.focus(),t.wistiaPlayerHandled=!0,n.cachePositionDetails();var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.handleWithProp("onDragStart",t,e),n.setState({dragPercent:e,dragMode:!0,wasBeforePlayOnDrag:n.props.isBeforePlay}),(0,s.elemBind)(document,"mousemove",n.onMouseMoveDragging),(0,s.elemBind)(document,"mouseup",n.onMouseUpDragging)}})),O(n,"onMouseMoveDragging",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0;var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.handleWithProp("onDrag",t,e),n.setState({dragPercent:e,dragMode:!0})})),O(n,"onMouseUpDragging",(function(t){t.wistiaPlayerHandled=!0;var e=n.getPercentFromPossiblyExternalMouseEvent(t);n.setState({dragPercent:e,dragMode:!1,isOverPlayhead:!1}),n.handleWithProp("onDragEnd",t,e),(0,s.elemUnbind)(document,"mousemove",n.onMouseMoveDragging),(0,s.elemUnbind)(document,"mouseup",n.onMouseUpDragging)})),O(n,"onTouchStart",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0,n.cachePositionDetails();var e=n.getPercentFromTouchEvent(t);n.handleWithProp("onDragStart",t,e),n.setState({dragPercent:e,dragMode:!0}),n.touchEvents.on("touchmove",n.onTouchMoveDragging),n.touchEvents.on("touchend",n.onTouchEndDragging)})),O(n,"onTouchMoveDragging",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0;var e=n.getPercentFromTouchEvent(t);n.handleWithProp("onDrag",t,e),n.setState({dragPercent:e,dragMode:!0})})),O(n,"onTouchEndDragging",(function(t){t.wistiaPlayerHandled=!0;var e=n.getPercentFromTouchEvent(t);n.setState({dragPercent:e,dragMode:!1,isOverPlayhead:!1}),n.handleWithProp("onDragEnd",t,e),n.touchEvents.off("touchmove",n.onTouchMoveDragging),n.touchEvents.off("touchend",n.onTouchEndDragging)})),O(n,"onMouseEnterPlayhead",(function(){n.setState({isOverPlayhead:!0})})),O(n,"onMouseLeavePlayhead",(function(){n.setState({isOverPlayhead:!1})})),O(n,"setWrapperRef",(function(t){n.wrapperElem=t,n.props.setPlaybarElemRef&&n.props.setPlaybarElemRef(t)})),O(n,"startAnimLoopIfPlaying",(function(){n.props.isPlaying&&n.props.isVisible&&requestAnimationFrame(n.continuouslyUpdatePlaybar)})),O(n,"stopAnimLoop",(function(){cancelAnimationFrame(n.animReq)})),O(n,"continuouslyUpdatePlaybar",(function(){n.drawCanvas(),n.maybeUpdateTimeText(),(0,a.assign)(n.playheadEl.style,n.playheadStyle()),n.startAnimLoopIfPlaying()})),O(n,"loadStoryboard",(function(){return(0,d.dynamicImport)("assets/external/vulcanV2Player/video/ui_components/Storyboard.js").then((function(t){T=t.Storyboard,n.setState({loadedStoryboard:!0})}))})),O(n,"loadChapters",(function(){return Promise.all([(0,d.dynamicImport)("assets/external/".concat(A,"/ChapterMarkers.js")),(0,d.dynamicImport)("assets/external/".concat(A,"/ChapterTitles.js"))]).then((function(t){var e=y(t,2),i=e[0],r=e[1];k=i.ChapterMarkers,S=r.ChapterTitles,n.setState({loadedChapters:!0})}))})),n.state={currentBufferTime:t.getCurrentBufferTime(),currentTime:t.getCurrentTime(),dragMode:!1,dragPercent:0,hasPlayed:!1,hoverPercent:0,isHovering:!1,isKeyboardFocused:!1,isOverPlayhead:!1,loadedChapters:!1,loadedStoryboard:!1,timeWidth:null,wasBeforePlayOnDrag:!1},n.setColorsFromPlayerColor(t.color),t.chapters&&t.chapters.length>0&&n.loadChapters(),n.playheadScale=M,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),n=e,i=[{key:"canvasHeight",value:function(){return this.props.height*(window.devicePixelRatio||1)}},{key:"canvasStyle",value:function(){return{height:"".concat(this.props.height,"px"),left:"".concat(-this.leftBarMargin(),"px"),position:"absolute",top:0,width:"".concat(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin(),"px")}}},{key:"canvasWidth",value:function(){return(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin())*(window.devicePixelRatio||1)}},{key:"playheadStyle",value:function(){var t=1.4*this.barHeight()*4,e=this.props.height/2-t/2,n=this.playedPercent()*this.unfilledBarWidth()-t/2;return{borderRadius:"50%",height:"".concat(t,"px"),left:"".concat(n,"px"),opacity:0,position:"absolute",top:"".concat(e,"px"),width:"".concat(t,"px")}}},{key:"componentWillReceiveProps",value:function(t){var e=this.props;e.color!==t.color&&this.setColorsFromPlayerColor(t.color),this.setState({dragMode:!1,currentTime:e.getCurrentTime(),currentBufferTime:e.getCurrentBufferTime()}),t.chapters&&t.chapters.length>0&&this.loadChapters()}},{key:"drawCanvas",value:function(){var t,e=this;if(this.canvasEl){var n=window.devicePixelRatio||1,i=this.state,r=i.dragMode,o=i.hoverPercent,s=i.isHovering,u=i.isKeyboardFocused,l=i.isOverPlayhead,c=this.canvasWidth(),d=this.canvasHeight(),h=this.canvasEl.getContext("2d");h.globalCompositeOperation="source-over",h.clearRect(0,0,c,d);var p=this.unfilledBarWidth(),f=this.props.height*n/2;h.strokeStyle="rgba(255,255,255,.6)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,f),h.lineTo((this.leftBarMargin()+p)*n,f),h.stroke();var v=this.playedPercent()*p;h.strokeStyle="rgba(255,255,255,1)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,f),h.lineTo((this.leftBarMargin()+v)*n,f),h.stroke();var y=this.props.chapters,m=this.props,g=m.chapterWithFocusedMarker,b=m.duration,_=1.4*this.barHeight()*n;if((null===(t=y)||void 0===t?void 0:t.length)>0){if(g){y=(0,a.clone)(y);for(var w=-1,E=0;E<y.length;E++)if(y[E].id===g.id){w=E;break}y.splice(w,1),y.push(g)}y.forEach((function(t){var i=t.time/b,r=(e.leftBarMargin()+i*p)*n,o=_;g===t&&(o*=1.5),h.beginPath(),h.arc(r,f,1.6*o,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fill()})),y.forEach((function(t){var i=t.time/b,r=(e.leftBarMargin()+i*p)*n,o=.6,a=_;g===t&&(a*=2,o=1),h.beginPath(),h.arc(r,f,a,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="source-over",h.fillStyle="rgba(255,255,255,".concat(o,")"),h.fill();var s=a-.75*e.barHeight()*n;h.beginPath(),h.arc(r,f,s,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fillStyle="rgba(0,0,0,1)",h.fill()})),h.globalCompositeOperation="source-over"}var O=r||u||l,P=O?2:M,k=!1;P!==this.playheadScale&&(k=!0,this.playheadScale=O?2:M,this.lastScaledAt=Date.now());var S=O?0:100;k&&this.animateUntil(Date.now()+S);var T=0===S?1:2-Math.min(1,(Date.now()-this.lastScaledAt)/S),C=this.lastScaledAt?T*P:1,A=1.4*this.barHeight()*n*C,j=(this.leftBarMargin()+v)*n,I=2*A,D=2*I,L=h.createRadialGradient(j,f,0,j,f,I);if(L.addColorStop(0,"rgba(255,255,255,.5)"),L.addColorStop(1,"rgba(255,255,255,0)"),h.beginPath(),h.rect(j-I,f-I,D,D),h.closePath(),h.fillStyle=L,h.fill(),h.beginPath(),h.arc(j,f,A,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill(),u&&(h.beginPath(),h.arc(j,f,1.5*A,0,2*Math.PI),h.closePath(),h.strokeWidth=n||1,h.stroke()),s&&!r&&!g){h.beginPath();var B=1.4*this.barHeight()*n,x=(this.leftBarMargin()+o*this.unfilledBarWidth())*n-B/2;h.arc(x,f,B,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill()}}}},{key:"animateUntil",value:function(t){(!this._animEndTime||t>this._animEndTime)&&(this._animEndTime=t),this._animating||(this.animateCanvasUntilEndTime(),this._animating=!0)}},{key:"animateCanvasUntilEndTime",value:function(){var t=this;requestAnimationFrame((function(){Date.now()>t._animEndTime?t._animating=!1:(t.drawCanvas(),t.animateCanvasUntilEndTime())}))}},{key:"maybeCallOnResize",value:function(){var t,e,n=this.unfilledBarWidth()+2,i=this.props.left+this.timeLeftPadding()+this.leftBarMargin()+this.timeWidth()-1;this._lastPlaybarWidth===n&&this._lastPlaybarBarLeftOffsetFromPlayerLeftEdge===i||(null===(t=(e=this.props).onResize)||void 0===t||t.call(e,{playbarBarWidth:n,playbarBarLeftOffsetFromPlayerLeftEdge:i}),this._lastPlaybarWidth=n,this._lastPlaybarBarLeftOffsetFromPlayerLeftEdge=i)}},{key:"render",value:function(){var t=this;return this.maybeCallOnResize(),this.oldWrapperElem=this.wrapperElem,(0,u.h)("div",{class:"".concat(j,"-wrapper w-css-reset w-css-reset-tree"),style:this.wrapperStyle()},this.props.shouldShowTime?this.renderTime():void 0,(0,u.h)("div",{style:{width:"100%",position:"relative"}},(0,u.h)("div",{"aria-label":"Playbar","aria-orientation":"horizontal","aria-valuemax":this.props.duration,"aria-valuemin":0,"aria-valuenow":this.ariaValueNow(),"aria-valuetext":this.ariaValueText(),onBlur:this.props.onBlur,onFocus:this.onFocus,onfocusout:this.onFocusOut,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,ref:this.setWrapperRef,role:"slider",style:this.dragAreaStyle(),tabindex:this.props.isVisible?0:-1},(0,u.h)("canvas",{height:this.canvasHeight(),ref:function(e){return t.canvasEl=e},style:this.canvasStyle(),width:this.canvasWidth()}),(0,u.h)("div",{onMouseEnter:this.onMouseEnterPlayhead,onMouseLeave:this.onMouseLeavePlayhead,ref:function(e){return t.playheadEl=e},style:this.playheadStyle()}),this.props.shouldShowStoryboard&&void 0!==T?(0,u.h)(T,v({},this.props,{hasChapters:this.state.loadedChapters,isHovering:this.state.isHovering,getDurationBeforeCuts:this.props.getDurationBeforeCuts,getTimeBeforeCuts:this.props.getTimeBeforeCuts,hoverPercent:this.state.hoverPercent,left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null,this.props.shouldShowTimeOnHover&&this.state.isHovering&&(0,u.h)(h.default,{left:this.state.hoverPercent*this.unfilledBarWidth(),time:this.getHoverTime(),height:this.props.height,widthOfPlaybar:this.unfilledBarWidth()})),this.props.chapters&&this.props.chapters.length>0&&void 0!==k&&(0,u.h)("div",{"aria-label":"Chapter Markers",role:"toolbar",style:{bottom:0,height:"".concat(this.props.height,"px"),outline:"none",paddingLeft:"".concat(this.leftBarMargin(),"px"),paddingRight:"".concat(this.rightBarMargin(),"px"),pointerEvents:"none",position:"absolute",width:"100%"}},(0,u.h)(k,v({},this.props,{onFocus:this.onFocusChapterMarkers,paddingLeft:this.leftBarMargin(),paddingRight:this.rightBarMargin(),timeLeft:-10,timeRight:-10})),this.props.shouldShowChapterTitles?(0,u.h)(S,v({},this.props,{left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null)))}},{key:"renderTime",value:function(){var t=this;return(0,u.h)("div",{class:"".concat(j,"__time"),style:this.timeStyle(),ref:function(e){return t.timeElem=e}})}},{key:"componentDidMount",value:function(){this.drawCanvas(),this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&(this.touchEvents=new p.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),this.maybeUpdateTimeText();var t=this.props;t.isPlaying&&this.setState({hasPlayed:!0}),t.isPlaying&&this.startAnimLoopIfPlaying(),this.props.setTimeWidth(this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin()),this.props.setRightBarMargin(this.rightBarMargin())}},{key:"componentDidUpdate",value:function(t,e){this.drawCanvas();var n=this.props;this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&this.oldWrapperElem!==this.wrapperElem&&(this.touchEvents&&this.touchEvents.destroy(),this.touchEvents=new p.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),n.isPlaying&&!this.state.hasPlayed&&this.setState({hasPlayed:!0}),this.maybeUpdateTimeText();var i=n.isPlaying&&!t.isPlaying,r=e.currentBufferTime!=this.state.currentBufferTime,o=n.isVisible&&!t.isVisible;(i||o||r)&&this.startAnimLoopIfPlaying(),!n.isVisible&&t.isVisible&&this.stopAnimLoop(),this.props.setTimeWidth(this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin()),this.props.setRightBarMargin(this.rightBarMargin())}},{key:"componentWillUnmount",value:function(){(0,s.elemUnbind)(document,"mousemove",this.onMouseMoveDragging),(0,s.elemUnbind)(document,"mouseup",this.onMouseUpDragging),this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null)}},{key:"getHoverTime",value:function(){return(0,f.flexibleDuration)(Math.round(this.state.hoverPercent*this.props.duration))}},{key:"placeholderStyle",value:function(){return{cursor:"default",height:"100%",outline:"none",position:"relative",width:"100%"}}},{key:"wrapperStyle",value:function(){var t=this.props,e=t.videoWidth,n=t.width;return{display:"flex",height:"100%",width:n===e?"".concat(n,"px"):"100%"}}},{key:"dragAreaStyle",value:function(){return{cursor:"pointer",flex:"1 1",height:"".concat(this.props.height,"px"),outline:"none",marginLeft:"".concat(this.leftBarMargin(),"px"),marginRight:"".concat(this.rightBarMargin(),"px"),position:"relative"}}},{key:"leftBarMargin",value:function(){return 0===this.props.leftControlBarWidth?this.rightBarMargin():1.5*this.rightBarMargin()}},{key:"rightBarMargin",value:function(){var t=this.props,e=t.duration,n=t.scale,i=7*(0,f.flexibleDuration)(900).length,r=7*(0,f.flexibleDuration)(e).length;return 10*(i<r?i/r:1)*n}},{key:"timeLeftPadding",value:function(){var t=this.props,e=t.leftControlBarWidth,n=t.isPlaceholder;return t.shouldShowTime?0===e?this.leftBarMargin()/1.33:n?this.leftBarMargin():this.leftBarMargin()/3:0}},{key:"timeStyle",value:function(){var t=this.props,e=t.height,n=t.scale;return{boxSizing:"content-box",color:"white",fontFamily:r.interNumbersSemiBold,fontSize:"".concat(13*n,"px"),letterSpacing:"".concat(.5*n,"px"),lineHeight:"".concat(e,"px"),paddingLeft:"".concat(this.timeLeftPadding(),"px"),pointerEvents:"none",position:"relative",textAlign:"center",width:"".concat(this.timeWidth(),"px")}}},{key:"timeWidth",value:function(){var t=this.props,e=t.duration,n=t.scale;return t.shouldShowTime?7*(0,f.flexibleDuration)(e).length*n:0}},{key:"filledBarStyle",value:function(){var t=this.barHeight();return{background:"#fff",borderRadius:"".concat(t,"px"),height:"".concat(t,"px"),left:0,position:"absolute",top:0,width:"".concat(100*this.playedPercent(),"%")}}},{key:"barHeight",value:function(){return 2*this.props.scale}},{key:"unfilledBarStyle",value:function(){var t=this.props.height;return{background:"rgba(255,255,255,.6)",borderRadius:"".concat(this.barHeight(),"px"),height:"".concat(this.barHeight(),"px"),left:0,pointerEvents:"none",position:"absolute",top:"".concat((t-this.barHeight())/2,"px"),width:"".concat(this.unfilledBarWidth(),"px")}}},{key:"unfilledBarWidth",value:function(){var t=2*this.props.controlBarDistance;return this.props.width-this.timeLeftPadding()-this.timeWidth()-this.leftBarMargin()-this.rightBarMargin()-t}},{key:"playedPercent",value:function(){var t=this.state,e=this.props,n=e.duration,i=e.getCurrentTime,r=e.isSeeking,o=e.resumableTime;return t.dragMode||t.wasBeforePlayOnDrag&&(r||!t.hasPlayed)?t.dragPercent:o&&!t.hasPlayed?I(o/n):I(i()/n)}},{key:"bufferedAheadPercent",value:function(){var t=this.state;if(this.props.isBeforePlay)return 0;if(t.dragMode){var e=t.currentBufferTime/this.props.duration;return I(e-t.dragPercent)}return I((this.props.getCurrentBufferTime()-this.props.getCurrentTime())/this.props.duration)}},{key:"emptyPercent",value:function(){return 1-I(this.playedPercent()+this.bufferedAheadPercent())}},{key:"timeText",value:function(){var t=this.state,e=this.props;return t.dragMode||t.wasBeforePlayOnDrag&&(this.props.isSeeking||!t.hasPlayed)?(0,f.flexibleDuration)(t.dragPercent*e.duration):t.hasPlayed||this.props.getCurrentTime()>=1?(0,f.flexibleDuration)(e.getCurrentTime()):e.resumableTime?(0,f.flexibleDuration)(e.resumableTime):(0,f.flexibleDuration)(e.duration)}},{key:"ariaValueNow",value:function(){return this.state.dragMode?this.state.dragPercent*this.props.duration:this.props.getCurrentTime()}},{key:"ariaValueText",value:function(){return(0,f.accessibilityDuration)(this.props.getCurrentTime())}},{key:"cachePositionDetails",value:function(){this.offset=(0,s.elemOffset)(this.wrapperElem)}},{key:"getPercentFromPossiblyExternalMouseEvent",value:function(t){return t.target===this.wrapperElem?this.getPercentFromMouseEvent(t):this.getPercentFromPageX(t.pageX)}},{key:"getPercentFromMouseEvent",value:function(t){var e=t.offsetX,n=this.offset?this.offset.zoom:1;return this.getPercentFromOffsetX(e/n)}},{key:"getPercentFromOffsetX",value:function(t){return Math.max(0,Math.min(1,t/this.unfilledBarWidth()))}},{key:"getPercentFromPageX",value:function(t){if(void 0===this.offset)return 0;var e=this.unfilledBarWidth(),n=this.offset.width/e,i=(t-this.offset.left)/n;return this.getPercentFromOffsetX(i)}},{key:"getPercentFromTouchEvent",value:function(t){var e=t.changedTouches;return"0"in e?this.getPercentFromPageX(e[0].pageX):0}},{key:"handleWithProp",value:function(t,e){var n=this.props[t];if(n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];n.apply(void 0,[e].concat(r))}}},{key:"maybeUpdateTimeText",value:function(){var t=this.timeText();this.timeElem&&t!==this._lastTimeText&&(this.timeElem.innerText=t),this._lastTimeText=t}},{key:"playheadLeftPosition",value:function(){return this.unfilledBarWidth()*this.playedPercent()}},{key:"setColorsFromPlayerColor",value:function(t){this.playedColor=new o.Color(t).darken(30).alpha(.7),this.bufferedColor=new o.Color(t).lighten(75).alpha(.6),this.emptyColor=new o.Color(t).lighten(40).alpha(.3)}}],i&&g(n.prototype,i),l&&g(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,l}(u.Component)},(t,e,n)=>{n.d(e,{addInterNumbersFontFace:()=>a});var i=n(3),r=n(16),o="\n@font-face {\nfont-family: 'WistiaPlayerInterNumbersSemiBold';\nfont-feature-settings: 'tnum' 1;\nsrc: url(data:application/x-font-woff;charset=utf-8;base64,".concat("d09GMk9UVE8AAAaMAAwAAAAACgAAAAZBAAMD1wAAAAAAAAAAAAAAAAAAAAAAAAAADYpwGhQbIBwqBmAAgTIBNgIkAzAEBgWDGgcgGykJEZWkARP8KHCbm2tEznyIN98tPTUk9Ig3oiVV3pbDIzXa+f/fZgXpALFTZhBoMVFC9cp036dXvRKVmVnsxe+D+1NDQI5lG7ikZWEINIElTeBIdnxlhauQ5GQtoLHA/wN0riVdSx5xgbxF3KTbgnjVQ4B9P7YqCx7FpEZK+6ilx0AoopUh4aExJEKmkU+0ncdr4iFfKhdSFD9y91LCRaxNbVqvi0dND3rxI7ndUDR7EiwT3bhiua9krFA0oepCy2hCjwmjnjDjKjNTDz2ZuHtN8820Wfw/l8u4w4yV/f8/6uscs5rmiN00LcP4hAofyZUSyS3WinX0RGFFtnGrjj36x6dlNa57+PLTlrUisH2n9orfgd+R34XfDd0NsWDXwfwhvKHpbs3UBni37dBlPvO4KYn/PgylilcgSdw6sjsSSxsRGfIJgqhi14bKZCHcQvjUh/+3HMotTYrGLVYCxyMFjEnYC98yTAp6atAKVxaZ9eu2NMji8WTj4w/Y34elD60PPwb5bEywLqAX/amwmUo6TBCy14N/TL44jb3sE5JdUIPXXI0RBSoGt3BUObn4agKGIxxQhlyQacbstK4fS2mZoBtFNQ1bd+4zND2vQu6anl7gWFOj8MV2DVMtU44xMhpwElrrjA7zO5IqWojd/v1Vso6cqp91zC2YrGhDOy07Iqyza2q9smDIwUYek0AWbCt/8x78QmrzayQ6xtpmqfCYsLfgU9HdeP3UqutZTTNd/9Q8k08XzXzIxSdvLPda8YaeeZnkxUwql0nDKyUYdaWZjGAy7UDLHpVqBVHTxSV0wBy21El9u/491ik2J3YkdiP2LPZL41RBeeNUWtp97Bbn0Ee1g9wr9qqV/X+4R9nlPX03743dylnaXZyNp8v58yLOsFYCbUnCVQzjN+5QhlmKccO7aMkueWJggROd4qnw2x5LydUcg/NRamE3XMlkGovpRWPKWEavP74P2O1RANM/3gIIPJj7TX+lqU2geQuaBx4B/7cWAOx0ucTiEHYJU9y5DBuUMYNIHeHZz9tn+Fw2G5EBTqUlHRfRi4eB5wNlJsRsv5k4b6HyFkhIC6BO4LzPbWhW7rbCcxubeKHOc6UaBKZBMMd4j8XuRUynOCCa4EMfF9grkI1NcTaSAVtk1nrIOwFfeEBlQw4f4phb6zHzBOm0ZZ0dBcaZRVdYIo5xYiyOMEWONwQHmjKGE//VuRBgul1QrpyxmMvF4vGj0xfuuQrNt4tVTsRhEnjY9AuKa1FVLSEneQWzFd5WbO7hasX08ONUOVQgwQuVqACFXkSoIoUgK1hJEkAgbkG5CjqBS5wrRFuY2IfVwhRnLsVyZTZpatveGR4yEbYqbE6J80nM4aa+LD7Oqmr8PdSJFUQVynmgN4lerGQV1+uLdYzdOFWHPW/iK2gIQayhizQ0NMwyvBEBlrDczRfmU40CTtAHqLQGnjQG8MYkxm1MwJuTqjHwVCu9iRJ1C8ojWGHxUYowH0c5X57zpXquvlw0wzHHGMTfufxiJ1psFJTzq6nGeDvHF4LgmHHWCUViZBaInRn+cswnBi460RBPRYg9TRUQ0CZUC5LAT0qLLu50FpdTeBhjGf7/h4dg9hE0uqsBx/saOcYRDIfnOhfzGFBHyizcJK3p2edUjWrC0rn1aGjXtfVUCHMAKKhlxV8eTEIcV2jCOdKiqahv/MisrfRQVnxPJoOU62mR6pu2ZllIzo8zOZqQB7kWJXW2/c0aihata5PcIVJKfFRgHAETmEQVTCELptGMGcyigTnMJ1voUVN6uCZS9pV2hrwl7FYMvBwtUSd7L7E5qP9t7BIPRF7EcmA9ct2nIPHrxgWajtDltbXuBLuaY6qRZGa5ZlX5anfR0lYXaHUzVSFjZa8rfdhZ8rKXFZg21LVL5LFjI5TlDIbwnFGHE2dypHs6Q50N015dpOgLONEUlOqoiQgIaeCsjMq9gITDKwRMieQgKUy9UQY1BTFYZU2KpE2SkILMIjW8IdFwIKmMaK8oClJVssAEtFnz5dQ1s+w6EZoNGtPGQfzx+aoE8ikiP8GCYOWtgB+HBdWDaxACAZInVq14dZI85RRDvZGIghyONw59KV/BBEQ02P1ER8hmNGiURT2hQP8WfAY=",");\n}\n"),a=function(){r.Wistia._interNumbersFontFaceSemiBold||(r.Wistia._interNumbersFontFaceSemiBold=(0,i.addInlineCss)(document.body||document.head,o))};a()},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(28),r=n(2);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}const d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,(a=[{key:"getLeftValue",value:function(){var t=this.props.left;return this.isInBeginningZone()?0:this.isInEndZone()?void 0:t}},{key:"getRightValue",value:function(){if(this.isInEndZone())return 0}},{key:"getTopValue",value:function(){var t=this.props.height/2-1.5*this.heightOfTimeBadge();return Math.max(2,t)}},{key:"isInBeginningZone",value:function(){return this.props.left<this.widthOfTimeBadge()/2}},{key:"isInEndZone",value:function(){return this.props.left>=this.props.widthOfPlaybar-this.widthOfTimeBadge()/2}},{key:"timeBadgeStyle",value:function(){var t=this.isInBeginningZone()||this.isInEndZone();return{color:"#fff",fontFamily:i.interNumbersSemiBold,fontSize:"13px",left:this.getLeftValue(),position:"absolute",right:this.getRightValue(),top:this.getTopValue(),transform:t?"":"translateX(-50%)"}}},{key:"widthOfTimeBadge",value:function(){var t;return(null===(t=this._timeBadgeRef)||void 0===t?void 0:t.getBoundingClientRect().width)||24}},{key:"heightOfTimeBadge",value:function(){var t;return(null===(t=this._timeBadgeRef)||void 0===t?void 0:t.getBoundingClientRect().height)||16}},{key:"render",value:function(){var t=this;return(0,r.h)("span",{ref:function(e){return t._timeBadgeRef=e},style:this.timeBadgeStyle()},this.props.time)}}])&&o(n.prototype,a),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,u}(r.Component)},(t,e,n)=>{var i=n(2),r=n(195),o=n(9),a=n(189),s=n(73),u=n(219);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function c(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var v=(0,o.cachedDetect)(),y=function(t){function e(t){var n,i,r,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=c(this,e,[t]),i=n,o=function(){n.playedOnce?n.video.isControlEnabled("centeredPlayPauseToggler")&&!n.props.chromeless||n.video._inNativeMode()||(n.ignoreNextPlayOrPause?n.ignoreNextPlayOrPause=!1:(n.isPlaying="playing"===n.video.state(),n.renderAndFade())):n.playedOnce=!0},(r=f(r="showIconAndFade"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.isOpaque=!1,n.unbinds.push(t.on("play",n.showIconAndFade),t.on("pause",n.showIconAndFade)),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(o=[{key:"mount",value:function(t){this.rootElem=t}},{key:"onControlPropsUpdated",value:function(t){t.videoWidth!==this.props.videoWidth&&this.renderButton()}},{key:"renderAndFade",value:function(){var t=this,e=this.video.lastPlayInfo();if(!this.isPlaying||"user-event"===e.source){var n=this.video.lastPauseInfo();(this.isPlaying||"user-event"===n.source)&&(this.isOpaque=!0,this.renderButton(),clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout((function(){t.isOpaque=!1,t.renderButton()}),20))}}},{key:"renderButton",value:function(){(0,i.render)((0,i.h)("div",{class:"w-play-pause-notifier",style:this.rootStyle()},(0,i.h)(u.RoundedSmallPlayButton,{isPlaying:!this.isPlaying})),this.rootElem),this.reactMounts=[this.rootElem]}},{key:"oldRootStyle",value:function(){var t=this.scale(),e=this.isPlaying,n=e?60:50;return{height:"".concat((e?72:80)*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.5:0,top:"50%",transform:"translate(-".concat(e?33:50,"%, -50%) scale(").concat(this.isOpaque?.9:1.1,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(n*t,"px")}}},{key:"rootStyle",value:function(){var t=this.scale();return{background:"rgba(0,0,0,.6)",borderRadius:"50%",height:"".concat(140*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.6:0,top:"50%",transform:"translate(-50%, -50%) scale(".concat(this.isOpaque?.7:.8,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(140*t,"px")}}},{key:"graphicStyle",value:function(){var t=this.scale(),e=this.isPlaying,n=e?60:50;return{height:"".concat((e?72:80)*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",top:"50%",transform:"translate(-".concat(e?38:50,"%, -").concat(e?47:50,"%)"),width:"".concat(n*t,"px")}}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,r.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"svgStyle",value:function(){return{filter:"drop-shadow(0px 0px 3px rgba(0,0,0,0.5))"}}}])&&l(n.prototype,o),a&&l(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(a.Control);y.shouldMount=function(t){return!1!==t._attrs.playPauseNotifier&&!v.touchScreen},y.handle="playPauseNotifier",y.type="above-control-bar",(0,s.defineControl)(y)},(t,e,n)=>{n.d(e,{RoundedSmallPlayButton:()=>o});var i=n(2),r=n(30),o=function(t){var e=t.isPlaying,n=t.svgStyle,o=void 0===n?{}:n,a=t.marginLeft,s=void 0===a?0:a,u=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:o});return(0,i.h)("div",{style:{width:"100%",height:"100%",marginLeft:null!=s?s:0}},(0,i.h)("svg",u,e?(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.5 11C15.6716 11 15 11.6716 15 12.5V22.5C15 23.3284 15.6716 24 16.5 24H17.5C18.3284 24 19 23.3284 19 22.5V12.5C19 11.6716 18.3284 11 17.5 11H16.5ZM23.5 11C22.6716 11 22 11.6716 22 12.5V22.5C22 23.3284 22.6716 24 23.5 24H24.5C25.3284 24 26 23.3284 26 22.5V12.5C26 11.6716 25.3284 11 24.5 11H23.5Z",fill:"white"}):(0,i.h)("path",{d:"M24.888 16.1913C25.4371 16.5906 25.4371 17.4094 24.888 17.8087L16.5882 23.845C15.9272 24.3257 15 23.8535 15 23.0362V10.9638C15 10.1465 15.9272 9.67433 16.5882 10.155L24.888 16.1913Z",fill:"white"})))}},(t,e,n)=>{var i=n(2),r=n(84),o=n(189),a=n(85),s=n(221),u=n(73);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function d(t,e,n){return e=p(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=d(this,e,[t])).video=t,n.unbinds.push(t.on("play",(function(){return n.renderProgressIndicator()})),t.on("playrejected",(function(){return n.renderProgressIndicator()})),t.on("playpending",(function(){return n.renderProgressIndicator()})),t.on("up",(function(){return n.renderProgressIndicator()})),t.on("end",(function(){return n.renderProgressIndicator()}))),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(o=[{key:"boundedScale",value:function(){var t=this.props.scale;return Math.min(Math.max(t,.8),2)}},{key:"isVisible",value:function(){return this._isVisible}},{key:"mount",value:function(t){this.rootElem=t,this.renderProgressIndicator()}},{key:"onControlPropsUpdated",value:function(t){t.containerWidth!==this.props.containerWidth&&this.renderProgressIndicator()}},{key:"rootStyle",value:function(){return{bottom:0,left:0,position:"absolute",width:"100%"}}},{key:"renderProgressIndicator",value:function(){var t=function(t,e){if(null!=t&&e)return 100*t/e}((0,r.getLastTime)(this.video.hashedId()),this.video.duration());this._isVisible=t>0&&this.video.shouldResume()&&(0,s.default)(this.video),(0,i.render)((0,i.h)("div",{style:this.rootStyle()},(0,i.h)(a.ProgressIndicator,{color:this.video.playerColor(),isVisible:this._isVisible,percentWatched:t,scale:this.boundedScale()})),this.rootElem)}}])&&l(n.prototype,o),u&&l(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,u}(o.Control);v.handle="playbarlessProgressIndicator",v.type="foreground",v.sortValue=1800,v.shouldMount=function(t){return!t.isAudio()&&!1!==t._attrs.resumable&&"v1"!==t._opts.version&&!1===t._attrs.controlsVisibleOnLoad},(0,u.defineControl)(v)},(t,e,n)=>{n.d(e,{default:()=>r});var i=(0,n(9).cachedDetect)();const r=function(t){var e=t.lastPlayInfo(),n=Date.now()-e.issuedAt,r=!e.source||e.rejectedAt,o=e.isPending&&"user-event"===e.source&&n<2e3,a=t._opts&&"reset"===t._attrs.endVideoBehavior&&"ended"===t.state(),s=e.isPending&&"non-user-event"===e.source&&!t.isMuted()&&(!1===t._attrs.silentAutoplay||null==t._attrs.silentAutoplay)&&(i.iphone||i.ipad||i.safari);return t.up()&&("beforeplay"===t.state()||a)&&(r||s||o||a)}},(t,e,n)=>{var i=n(3),r=n(2),o=n(47),a=n(16),s=n(189),u=n(73),l=n(46),c=n(223);function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(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 h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(0,l.defineTranslations)("en-US",{SETTINGS_PLAYBACK_RATE_TITLE:"Speed",SETTINGS_QUALITY_AUTO:"Auto",SETTINGS_QUALITY_TITLE:"Quality",SETTINGS_TITLE:"Settings",SETTINGS_HIDE_MENU:"Hide settings menu",SETTINGS_SHOW_MENU:"Show settings menu"});var _=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(n=f(this,e,[t]),"onKeyUp",(function(t){var e=n.video.getInputContext(),r=["player-mouseover","player-focus","playbar-focus","background-focus"].indexOf(e)>=0;if(!(0,i.formInputIsFocused)()&&r&&n.getPlaybackRateEnabled()){if(">"===t.key){var o=Math.min(n.video.playbackRate()+.25,2);n.video.playbackRate(o)}if("<"===t.key){var a=Math.max(n.video.playbackRate()-.25,.5);n.video.playbackRate(a)}}})),g(n,"loadMenuCode",(function(){return Promise.all([(0,o.dynamicImport)("assets/external/interFontFace.js"),(0,o.dynamicImport)("assets/external/vulcanV2Player/video/controls/SettingsControl/dialog.js")]).then((function(t){var e=d(t,2)[1];if(!n.renderMenuImpl){var i=e.renderMenu,r=e.onSelect,o=e.focusItemParent;n.renderMenuImpl=i.bind(n),n.onSelect=r.bind(n),n.focusItemParent=o.bind(n)}}))})),g(n,"onMouseEnterButton",(function(){n.loadMenuCode()})),n.unbinds.push(t.on("playbackratechange",(function(){n.menuElem&&n.renderMenu()})),t.on("qualitychange",(function(){n.menuElem&&n.renderMenu()})),t.on("playerlanguagechange",(function(){n.menuElem&&n.renderMenu()})),(0,i.elemBind)(document,"keyup",n.onKeyUp)),t.hasData((function(){if(null==n._isQualityEnabled){var e=t._attrs.qualityControl;n._isQualityEnabled=!0===e||null==e}if(null==n._isPlaybackRateEnabled){var i=t._attrs.playbackRateControl;n._isPlaybackRateEnabled=!0===i||null==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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,(a=[{key:"translate",value:function(t){return(0,l.getTranslation)(this.props.playerLanguage.code,"SETTINGS_".concat(t))}},{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"mountDialog",value:function(t){return this.dialogRoot=t,this.renderMenu()}},{key:"renderButton",value:function(){this.setButtonLabel(this.translate("TITLE")),this.updateButtonLabel(),(0,r.render)((0,r.h)(c.RoundedSettingsButton,{onMouseEnter:this.onMouseEnterButton}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var t=this;if(this.dialog.isOpen()){var e=this.loadMenuCode().then((function(){t.renderMenuImpl()}));return this.loading(new Promise((function(t){e.then(t)}))),e}}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"setQualityEnabled",value:function(t){var e=this;return this._isQualityEnabled=t,this.loadMenuCode().then((function(){e.dialog.isOpen()&&e.renderMenuImpl()}))}},{key:"getPlaybackRateEnabled",value:function(){return Boolean(this._isPlaybackRateEnabled)}},{key:"setPlaybackRateEnabled",value:function(t){var e=this;return this._isPlaybackRateEnabled=t,this.loadMenuCode().then((function(){e.dialog.isOpen()&&e.renderMenuImpl()}))}}])&&p(n.prototype,a),s&&p(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,s}(s.Control);_.shouldMount=function(t){var e=t._attrs,n=e.settingsControl,i=e.qualityControl,r=e.playbackRateControl;return!t.isLiveMedia()&&(!1!==n&&(!0===i||null==i||!0===r||null==r))},_.handle="settingsButton",_.type="control-bar-right",_.sortValue=200,_.isVideoChrome=!0,(0,u.defineControl)(_),a.Wistia.SettingsControl=_},(t,e,n)=>{n.d(e,{RoundedSettingsButton:()=>a});var i=n(2),r=n(30);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(null,arguments)}var a=function(t){var e=t.onMouseEnter,n=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0});return(0,i.h)("svg",o({},n,{onMouseEnter:e}),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M26.4 15.4H28.3C28.7 15.4 29 15.7 29 16.1V16.7C29 17.1 28.7 17.4 28.3 17.4H26.4C26 17.4 25.6 17.7 25.5 18.1L25.1 19.2C25 19.5 25 20 25.3 20.3L26.6 21.6C26.9 21.9 26.9 22.3 26.6 22.6L26.2 23C25.9 23.3 25.5 23.3 25.2 23L23.9 21.7C23.6 21.5 23.1 21.4 22.8 21.6L21.7 22.1C21.3 22.2 21 22.6 21 23V24.7C21 25.1 20.7 25.4 20.3 25.4H19.7C19.3 25.4 19 25.1 19 24.7V23C19 22.6 18.7 22.2 18.3 22.1L17.1 21.6C16.8 21.5 16.3 21.5 16 21.8L14.8 23C14.5 23.3 14.1 23.3 13.8 23L13.4 22.6C13.1 22.3 13.1 21.9 13.4 21.6L14.6 20.4C14.8 20.1 14.9 19.6 14.7 19.3L14.2 18.1C14.1 17.7 13.7 17.4 13.3 17.4H11.7C11.3 17.4 11 17.1 11 16.7V16.1C11 15.7 11.3 15.4 11.7 15.4H13.3C13.7 15.4 14.1 15.1 14.2 14.7L14.7 13.5C14.9 13.2 14.9 12.7 14.6 12.4L13.4 11.2C13.1 10.9 13.1 10.5 13.4 10.2L13.8 9.8C14.1 9.5 14.5 9.5 14.8 9.8L16 11C16.3 11.3 16.8 11.4 17.1 11.2L18.3 10.7C18.7 10.6 19 10.2 19 9.8V8.1C19 7.7 19.3 7.4 19.7 7.4H20.3C20.7 7.4 21 7.7 21 8.1V9.8C21 10.2 21.3 10.6 21.7 10.7L22.8 11.2C23.1 11.4 23.6 11.4 23.9 11.1L25.2 9.8C25.5 9.5 25.9 9.5 26.2 9.8L26.6 10.2C26.9 10.5 26.9 10.9 26.6 11.2L25.3 12.5C25 12.8 24.9 13.3 25.1 13.6L25.5 14.7C25.6 15.1 26 15.4 26.4 15.4ZM19.9 20.4C22 20.4 23.8 18.7 23.8 16.5C23.8 14.3 22.1 12.6 19.9 12.6C17.7 12.6 16 14.4 16 16.5C16 18.6 17.7 20.4 19.9 20.4Z",fill:"white"}))}},(t,e,n)=>{var i=n(2),r=n(73),o=n(189),a=n(46),s=n(219);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function v(t,e){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.add(t)}var y=(0,n(9).cachedDetect)(),m=new WeakSet,g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),v(n=l(this,e,[t]),m),p(n,"renderButton",(function(){if(n.buttonRoot){n.setButtonLabel(function(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}(m,n,b).call(n));var t="playing"!==n.video.state()?"".concat(1.5*n.props.scale,"px"):0;(0,i.render)((0,i.h)(s.RoundedSmallPlayButton,{isPlaying:"playing"===n.video.state(),svgStyle:{verticalAlign:"top"},marginLeft:t}),n.buttonRoot),n.reactMounts=[n.rootElem]}})),p(n,"onClickButton",(function(){var t=n.video;"playing"===t.state()?t.pause():t.play()})),p(n,"onKeyDownButton",(function(t){32!==t.keyCode&&13!==t.keyCode||(t.__handledAlready=!0)})),n.unbinds.push(t.on("play",n.renderButton),t.on("pause",n.renderButton),t.on("end",n.renderButton)),t.isLiveMedia()?(n.disabledButton=!0,t.ready((function(){n.disabledButton=!1,n.renderButton()}))):n.disabledButton=!1,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(r=[{key:"onControlPropsUpdated",value:function(t){(t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code||this.props.scale!==t.scale)&&this.renderButton()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"wrapperStyle",value:function(){var t=this.props.scale,e="playing"===this.video.state(),n=e?"".concat(10*t,"px 0 ").concat(11*t,"px 0"):"".concat(10*t,"px 0 ").concat(9*t,"px 0");return{boxSizing:"border-box",height:"100%",marginLeft:e?0:"".concat(1*t,"px"),padding:n,position:"relative",width:"100%"}}},{key:"translate",value:function(t){return(0,a.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(t))}},{key:"pcfButtonWidth",value:function(){return 40}}])&&u(n.prototype,r),o&&u(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(o.Control);function b(){return this.disabledButton?this.translate("LIVE_NOT_STARTED"):"playing"===this.video.state()?this.translate("TITLE_WHEN_PLAYING"):this.translate("TITLE_WHEN_NOT_PLAYING")}g.shouldMount=function(t){var e=t._attrs.playPauseControl,n=!0===e||null==e,i=t._impl.ui&&t._impl.ui.shouldShowMoreDefaultValue();return!(y.iphone||y.ipad||y.android)&&!t.isAudio()&&t.aspect()<1?n:n&&i},g.handle="smallPlayButton",g.type="control-bar-left",g.sortValue=100,(0,r.defineControl)(g)},(t,e,n)=>{var i=n(2),r=n(73),o=n(189),a=n(226),s=n(46);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function c(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}(0,s.defineTranslations)("en-US",{STATUS_BAR_EMBED_CODE_COPIED:"Embed Code is now copied to your clipboard!"});var f=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=c(this,e,[t]))._isVisible=!1,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,r=[{key:"flash",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;this._isVisible=!0,this.renderMenu(this.translate(t)),setTimeout((function(){e.hide()}),n)}},{key:"translate",value:function(t){return(0,s.getTranslation)(this.props.playerLanguage.code,"STATUS_BAR_".concat(t))}},{key:"hide",value:function(){this._isVisible=!1,(0,i.render)((0,i.h)("nothing",null),this.rootElem)}},{key:"renderMenu",value:function(t){this._isVisible&&((0,i.render)((0,i.h)(a.default,{message:t}),this.rootElem),this.reactMounts=[this.rootElem])}}],r&&u(n.prototype,r),o&&u(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(o.Control);f.handle="statusBar",f.type="background",(0,r.defineControl)(f)},(t,e,n)=>{n.d(e,{default:()=>p});var i=n(2);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function a(t,e,n){return e=u(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),n=e,(o=[{key:"styles",value:function(){return{background:"rgba(0,0,0,.3)",boxShadow:"none",cursor:"pointer",display:"flex",alignItems:"center",fontSize:h(this),lineHeight:d(this),padding:"0 ".concat(10*this.props.scale,"px"),width:"100%",height:"30px",color:"#fff",position:"absolute",justifyContent:"center"}}},{key:"render",value:function(){return(0,i.h)("div",{style:this.styles()},this.props.message)}}])&&r(n.prototype,o),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(i.Component),d=function(t){return"".concat(function(t){return 34*t.props.scale}(t),"px")},h=function(t){return"".concat(14*t.props.scale,"px")};const p=c},(t,e,n)=>{var i=n(2),r=n(189),o=n(228),a=n(221),s=n(73);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},u.apply(null,arguments)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function c(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(n=c(this,e,[t]),"renderThumbnail",(function(t){var e=n.video,r=e.lastPlayInfo(),a=Date.now()-r.issuedAt,s=e.embedOptions().thumbnailAltText;n._isVisible=n.shouldShow();var l=!0===e._attrs.transparentLetterbox;(0,i.render)((0,i.h)(o.ProgressiveThumbnail,u({},n.props,{backgroundColor:l?"transparent":void 0,elemRef:function(t){return n.thumbnailElem=t},images:n.thumbnailAssets,isVisible:n.shouldShow(),onDisplay:t,hashedId:n.video.hashedId(),swatchEnabled:!e._attrs.poster&&n._swatchEnabled,uiHasRendered:n.video._impl.ui.hasRendered(),fitStrategy:n.video._opts.fitStrategy,thumbnailAltText:s})),n.rootElem),n._isVisible&&(n._hasRenderedVisible=!0);var c=2e3-a+1;n._isVisible&&a<2e3&&setTimeout((function(){n._destroyed||n.renderThumbnailAndUpdateSwatch()}),c),n.reactMounts=[n.rootElem]})),f(n,"renderThumbnailAndUpdateSwatch",(function(t){n.renderThumbnail(t),n.updateSwatch()})),n.unbinds.push(t.on("play",(function(){n._hasPlayed=!0,n.renderThumbnailAndUpdateSwatch()})),t.on("playrejected",(function(){n.renderThumbnailAndUpdateSwatch()})),t.on("playpending",(function(){n.renderThumbnailAndUpdateSwatch()})),t.on("up",n.renderThumbnailAndUpdateSwatch),t.on("end",n.renderThumbnailAndUpdateSwatch)),n.eventListeners.set("thumbnailchange",(function(){n.thumbnailAssets=n.video.thumbnailAssets(),n.renderThumbnailAndUpdateSwatch()})),n._swatchEnabled=t._opts.swatchEnabled?t._opts.swatchEnabled:t._embedContainer.querySelector(".wistia_swatch"),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"mount",value:function(t){var e=this;if(this.rootElem=t,this.thumbnailAssets=this.thumbnailAssets||this.video.thumbnailAssets(),!this.shouldShow())return Promise.resolve();var n=new Promise((function(t){setTimeout(t,1e3)})),i=new Promise((function(t){e.renderThumbnailAndUpdateSwatch(t),e.video.embedded((function(){e.__destroyed||e.renderThumbnailAndUpdateSwatch()}))}));return Promise.race([i,n])}},{key:"shouldShow",value:function(){return Boolean((0,a.default)(this.video)&&this.video.thumbnailAssets().length)}},{key:"onControlPropsUpdated",value:function(t){var e=this;this._hasRenderedVisible&&["videoWidth","videoHeight","playerLanguage","playerBorderRadius"].some((function(n){return e.props[n]!==t[n]}))&&this.renderThumbnailAndUpdateSwatch()}},{key:"updateSwatch",value:function(){var t=this.video._embedContainer.querySelector(".wistia_swatch");t&&(t.style.borderRadius="".concat(this.props.playerBorderRadius,"px"))}}])&&l(n.prototype,r),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(r.Control);y.shouldShow=function(){return(0,a.default)(this.video)},y.shouldMount=function(t){return!t._opts.spherical},y.handle="thumbnail",y.type="background",y.sortValue=1e3,(0,s.defineControl)(y)},(t,e,n)=>{n.d(e,{ProgressiveThumbnail:()=>v});var i=n(4),r=n(2),o=n(23),a=n(229);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s.apply(null,arguments)}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(n=l(this,e,[t]),"afterTwoSeconds",(function(){n._displayed||1!==n.state.normalThumbOpacity||n.setState({normalThumbOpacity:0})})),p(n,"onDisplayNormalThumb",(function(){n.setState({normalThumbOpacity:1}),n._displayed=!0,n.onDisplay&&n.onDisplay()})),n.state={normalThumbOpacity:t.isVisible?1:0},n.onDisplay=t.onDisplay,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(c=[{key:"componentWillReceiveProps",value:function(t){!this.onDisplay&&t.onDisplay&&(this.onDisplay=t.onDisplay)}},{key:"render",value:function(){this.props.isVisible&&(this._hasRenderedVisible=!0);var t={backgroundColor:this.props.backgroundColor,fitStrategy:this.props.fitStrategy,isVisible:this.props.isVisible,stillSnap:this.props.stillSnap,stretchLimit:this.props.stretchLimit,videoHeight:this.props.videoHeight,videoWidth:this.props.videoWidth,thumbnailAltText:this.props.thumbnailAltText,playerBorderRadius:this.props.playerBorderRadius},e=(0,i.assign)({},t,{ariaHidden:!0,images:[{url:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1Host)(),"/embed/medias/").concat(this.props.hashedId,"/swatch")}]}),n=(0,i.assign)({},t,{onDisplay:this.onDisplayNormalThumb,images:this.props.images});return(0,r.h)("div",{ref:this.props.elemRef},this.props.swatchEnabled&&this._hasRenderedVisible?(0,r.h)(a.Thumbnail,s({},e,{wrapperStyle:this.swatchWrapperStyle()})):null,this._hasRenderedVisible?(0,r.h)(a.Thumbnail,s({},n,{wrapperStyle:this.normalThumbWrapperStyle()})):null)}},{key:"componentDidMount",value:function(){setTimeout(this.afterTwoSeconds,2e3)}},{key:"normalThumbWrapperStyle",value:function(){var t=this.props.swatchEnabled&&this.props.uiHasRendered&&1===this.state.normalThumbOpacity?"opacity 3s":"";return{height:"100%",left:0,opacity:this.state.normalThumbOpacity,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,transition:t,width:"100%"}}},{key:"swatchWrapperStyle",value:function(){return{filter:"blur(5px)",height:"100%",left:0,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,width:"100%"}}}])&&u(n.prototype,c),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c,d}(r.Component)},(t,e,n)=>{n.d(e,{Thumbnail:()=>f});var i=n(230),r=n(2),o=n(4),a=n(3),s=n(46);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function c(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}(0,s.defineTranslations)("en-US",{THUMBNAIL_VIDEO_THUMBNAIL:"Video Thumbnail"});var f=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=c(this,e,[t])).initialState=n.state={isLoaded:!1,isDisplaying:!1},n.onDisplay=n.props.onDisplay,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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,l=[{key:"componentWillReceiveProps",value:function(t){t.images!==this.props.images&&(this._sortedImages=null,this.setState({isLoaded:!1,isDisplaying:!1})),!this.onDisplay&&t.onDisplay&&(this.onDisplay=t.onDisplay)}},{key:"render",value:function(){var t=this,e=void 0!==this.props.thumbnailAltText?this.props.thumbnailAltText:this.translate("VIDEO_THUMBNAIL");return(0,r.h)("div",{style:this.wrapperStyle(),class:"w-css-reset"},(0,r.h)("img",{class:"w-css-reset",srcset:this.props.images.length>1?this.srcSet():null,src:this.bestSrc(),style:this.imgStyle(),alt:e,ref:function(e){return t.imgElem=e},"aria-hidden":this.props.ariaHidden?"true":null}))}},{key:"translate",value:function(t){return(0,s.getTranslation)(this.props.playerLanguage,"THUMBNAIL_".concat(t))}},{key:"componentDidMount",value:function(){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(this.initialState)}},{key:"componentDidUpdate",value:function(t,e){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(e)}},{key:"maybeCallOnDisplay",value:function(){this.onDisplay&&this.state.isDisplaying&&!this.calledOnDisplay&&(this.calledOnDisplay=!0,this.onDisplay())}},{key:"setStateBasedOnImgStatus",value:function(){var t=this,e=this.state,n=this.imgElem;e.isLoaded||(n.onload||(n.onload=function(){(0,a.elemInDom)(n)&&t.setState({isLoaded:!0,isDisplaying:!0})}),n.complete&&this.setState({isLoaded:!0,isDisplaying:!0}))}},{key:"wrapperStyle",value:function(){var t=this.state.isDisplaying&&this.props.isVisible;return(0,o.assign)({},this.props.wrapperStyle,{display:this.state.isLoaded&&!t?"none":"block"})}},{key:"baseStyle",value:function(){var t=this.props.fitStrategy;return"cover"===t?this.coverStyle():"contain"===t?this.containStyle():"fill"===t?this.fillStyle():"naturalHeight"===t?this.naturalHeightStyle():this.containStyle()}},{key:"imgStyle",value:function(){var t=this.state.isDisplaying&&this.props.isVisible;return(0,o.assign)(this.baseStyle(),{clip:t?"auto":"rect(0,0,0,0)",display:this.state.isLoaded&&!t?"none":"block",borderRadius:"".concat(this.props.playerBorderRadius,"px")})}},{key:"containStyle",value:function(){return{backgroundColor:this.props.backgroundColor||"#000",height:"100%",objectFit:"contain",position:"absolute",width:"100%",top:0,left:0}}},{key:"coverStyle",value:function(){return{height:"100%",objectFit:"cover",position:"absolute",width:"100%"}}},{key:"fillStyle",value:function(){return{height:"100%",objectFit:"fill",position:"absolute",width:"100%"}}},{key:"naturalHeightStyle",value:function(){return{width:"100%",position:"relative"}}},{key:"bestSrc",value:function(){return(0,i.bestImage)(this.props.images,{videoWidth:this.props.videoWidth,videoHeight:this.props.videoHeight}).url}},{key:"srcSet",value:function(){var t=this.sortedImages();return 0===t.length&&(t=[(0,i.blankImage)(this.props.videoWidth,this.props.videoHeight)]),t.map((function(t){return"".concat(t.url," ").concat(t.width,"w")})).join(", ")}},{key:"sortedImages",value:function(){return this._sortedImages||(this._sortedImages=(0,i.sortedImages)(this.props.images)),this._sortedImages}},{key:"stretchLimit",value:function(){var t=this.props.stretchLimit;return null!=t?t:10}}],l&&u(n.prototype,l),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,l,d}(r.Component)},(t,e,n)=>{n.d(e,{bestImage:()=>r,blankImage:()=>o,sortedImages:()=>a});var i=n(23),r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a(t);if(0===n.length)return o(e.videoWith,e.videoHeight);var i=e.videoWidth,r=(window.devicePixelRatio||1)*i;if(r<=n[0].width)return n[0];for(var s=0;s<n.length;s++){var u=n[s];if(u.width>=r)return u}return n[n.length-1]},o=function(t,e){return{height:e,url:"https://".concat((0,i.eV1HostWithPort)(),"/assets/images/blank.gif"),width:t}},a=function(t){return t.map((function(t){return t.aspect=t.width/t.height,t}))}},(t,e,n)=>{var i=n(91),r=n(3),o=n(2),a=n(9),s=n(47),u=n(46),l=n(73),c=n(232),d=n(189);function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,g(i.key),i)}}function p(t,e,n){return e=v(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function m(t,e,n){return(e=g(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var b=(0,a.cachedDetect)();(0,u.defineTranslations)("en-US",{VOLUME_TITLE_WHEN_MUTED:"Unmute",VOLUME_TITLE_WHEN_UNMUTED:"Mute"});var _=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),m(n=p(this,e,[t]),"loadSliderCode",(function(){return(0,s.dynamicImport)("assets/external/vulcanV2Player/video/controls/VolumeSliderControl/VolumeSliderControl.js").then((function(t){(0,l.defineControl)(t.VolumeSliderControl)}))})),m(n,"onClickButton",(function(){b.touchScreen||n.toggleMute()})),m(n,"onFocusInButton",(function(){n._isFocused=!0,n.video.enterInputContext("volume-button-focus"),n.loadSliderCode()})),m(n,"onFocusOutButton",(function(){n._isFocused=!1,n.video.exitInputContext("volume-button-focus")})),m(n,"onMouseEnter",(function(){n.timeoutForCloseSlider&&clearTimeout(n.timeoutForCloseSlider),n.props.anyDialogOpen?n.timeoutForOpenSlider=setTimeout((function(){n.openSlider()}),300):n.openSlider()})),m(n,"onMouseLeave",(function(){clearTimeout(n.timeoutForOpenSlider),n.timeoutForCloseSlider&&clearTimeout(n.timeoutForCloseSlider),n._isFocused=!1,n.video.controls.volumeSlider&&(n.props.controlBarBorderRadius?n.timeoutForCloseSlider=setTimeout((function(){n.video.controls.volumeSlider.isVisible()||n.video.controls.volumeSlider.hide()}),300):n.video.controls.volumeSlider.hide())})),m(n,"openSlider",(function(){n._isFocused=!0,n.loadSliderCode().then((function(){n._isFocused&&n.video.controls.volumeSlider.mounted.then((function(){n.video.controls.volumeSlider.show()}))}))})),m(n,"onKeyUp",(function(t){if(!(0,r.formInputIsFocused)()&&!t.wistiaPlayerHandled){var e=n.video,o=e.getInputContext();"background-focus"!==o&&"player-mouseover"!==o&&"player-focus"!==o&&"volume-button-focus"!==o&&"volume-slider-focus"!==o||77===t.keyCode&&(e.isMuted()?(e.unmute(),(0,i.setViewerPreference)("muted",void 0)):(e.mute(),(0,i.setViewerPreference)("muted",!0)))}})),m(n,"onKeyDown",(function(t){if(!(0,r.formInputIsFocused)()&&!t.wistiaPlayerHandled){var e=n.video,o=e.getInputContext();if("player-mouseover"===o||"player-focus"===o||"volume-button-focus"===o||"volume-slider-focus"===o){var a=t.keyCode,s=0;if(38===a?s=1:40===a&&(s=-1),1===s){t.preventDefault();var u=t.shiftKey?.01:.1;e.volume(e.volume()+u),(0,i.setViewerPreference)("volume",e.volume())}else if(-1===s){t.preventDefault();var l=t.shiftKey?.01:.1;e.volume(e.volume()-l),(0,i.setViewerPreference)("volume",e.volume())}}}})),n.video=t,n.unbinds.push(t.on("volumechange",(function(){n.buttonRoot&&n.renderButton()})),(0,r.elemBind)(document,"keyup",n.onKeyUp),(0,r.elemBind)(document,"keydown",n.onKeyDown)),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(a=[{key:"onControlPropsUpdated",value:function(t){t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.renderButton()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"renderButton",value:function(){this.buttonRoot&&(this.setButtonLabel(this.video.isMuted()?this.translate("TITLE_WHEN_MUTED"):this.translate("TITLE_WHEN_UNMUTED")),(0,o.render)((0,o.h)(c.RoundedVolumeButton,{volume:this.video.isMuted()?0:this.video.volume()}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"VOLUME_".concat(t))}},{key:"getButtonTitle",value:function(){return 0===this.video.volume()?"Unmute":"Mute"}},{key:"mute",value:function(){this.video.mute(),(0,i.setViewerPreference)("muted",!0)}},{key:"unmute",value:function(){this.video.unmute(),(0,i.setViewerPreference)("muted",void 0)}},{key:"toggleMute",value:function(){this.video.isMuted()?this.unmute():this.mute()}}])&&h(n.prototype,a),d&&h(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,d}(d.Control);_.shouldMount=function(t){var e=t._attrs.volumeControl;return!(!0!==e&&null!=e||b.iphone||b.ipad||b.android)},_.handle="volumeButton",_.type="control-bar-right",_.sortValue=100,(0,l.defineControl)(_)},(t,e,n)=>{n.d(e,{RoundedVolumeButton:()=>a});var i=n(2),r=n(30),o="opacity 100ms",a=function(t){var e,n=t.volume,a=(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0,styleOverride:{fill:"none"}}),s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;return t>.66?2:t>.33?1:t>0?0:-1};return(0,i.h)("svg",a,(0,i.h)("g",{style:{transform:"translateX(".concat((e=s(),0===e?7:e<2?3:1.25),"px)"),transition:"transform 100ms"}},(0,i.h)("path",{d:"M15.8 13.9995C15.3 14.4995 14.4 14.7995 13.8 14.7995H12.2C11.5 14.7995 11 15.2995 11 15.9995V17.5995C11 18.2995 11.5 18.7995 12.2 18.7995H13.8C14.5 18.7995 15.4 19.1995 15.8 19.5995L18.2 21.3999C18.5296 21.6472 19 21.412 19 20.9999V12.154C19 11.7163 18.4774 11.4899 18.1581 11.7892L15.8 13.9995Z",fill:"white"}),(0,i.h)("g",{stroke:"#fff","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},(0,i.h)("path",{d:"M22 11.5C22 11.5 23.1 14 23.1 16.5C23.1 19 22 21.5 22 21.5",style:{opacity:s()>=1?1:0,transition:o}}),(0,i.h)("path",{d:"M26 9C26 9 27.7 12.8 27.7 16.5C27.7 20.2 26 24 26 24",style:{opacity:s()>=2?1:0,transition:o}}),(0,i.h)("g",{style:{opacity:s()<0?1:0,transition:o}},(0,i.h)("path",{d:"M22 14L27 19"}),(0,i.h)("path",{d:"M27 14L22 19"})))))}},(t,e,n)=>{var i=n(2),r=n(47),o=n(189),a=n(234),s=n(73);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},u.apply(null,arguments)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function c(t,e,n){return e=h(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,d()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(d=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var v=function(t){function e(t){var n,i,r,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=c(this,e,[t]),i=n,o=function(t){n.video.setAriaLiveText(t)},(r=f(r="setAriaLiveText"))in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o,n.video=t,n.undbinds=[],n.undbinds.push(n.video.on("play",(function(){n.renderLiveStreamStatus()})),n.video.on("pause",(function(){n.renderLiveStreamStatus()})),n.video.on("end",(function(){n.renderLiveStreamStatus()})),n.video.on("widthchange",(function(){n.renderLiveStreamStatus()})),n.video.on("playerlanguagechange",(function(){n.renderLiveStreamStatus()}))),n.video.ready((function(){n.renderLiveStreamStatus()})),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(o=[{key:"onControlPropsUpdated",value:function(t){t.controlsAreVisible!==this.props.controlsAreVisible&&this.renderLiveStreamStatus()}},{key:"mount",value:function(t){var e=this;return this.rootElem=t,(0,r.dynamicImport)("assets/external/interFontFace.js").then((function(){e.renderLiveStreamStatus(),e.reactMounts=[e.rootElem]}))}},{key:"renderLiveStreamStatus",value:function(){var t,e,n=null,r=!1;null!==(t=this.video._mediaData.liveStreamEventDetails)&&void 0!==t&&t.scheduledFor&&(n=new Date(this.video._mediaData.liveStreamEventDetails.scheduledFor)),null!==(e=this.video._mediaData.liveStreamEventDetails)&&void 0!==e&&e.enableCountdown&&(r=this.video._mediaData.liveStreamEventDetails.enableCountdown),(0,i.render)((0,i.h)(a.default,u({videoState:this.video.state(),videoReady:this.video.ready(),scheduledFor:n,setAriaLiveText:this.setAriaLiveText,enableCountdown:r},this.props)),this.rootElem)}}])&&l(n.prototype,o),s&&l(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(o.Control);v.handle="liveStreamStatusOverlay",v.type="foreground",v.sortValue=500,v.shouldMount=function(t){return t.isLiveMedia()},(0,s.defineControl)(v)},(t,e,n)=>{n.d(e,{default:()=>g});var i=n(2),r=n(197),o=n(28),a=n(235),s=n(46),u=n(77);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function d(t,e){var n=t.toLocaleString(navigator.language,{month:"short",day:"numeric",year:"numeric"}),i=t.toLocaleString(navigator.language,{hour:"numeric",minute:"numeric",timeZoneName:"short"});return"".concat(n," ").concat((0,s.getTranslation)(e,"LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR")," ").concat(i)}function h(t){var e=t.state;return(0,i.h)("div",{style:{backgroundColor:"live"===e?"#fa4040":"",borderRadius:"50%",width:"12px",height:"12px",marginRight:"4px"}})}(0,s.defineTranslations)("en-US",{LIVE_STREAM_STATUS_COUNTDOWN:"Stream begins in",LIVE_STREAM_STATUS_LIVE:"Live",LIVE_STREAM_STATUS_LIVE_ARIA:"The stream is now live",LIVE_STREAM_STATUS_MINUTES:"minutes",LIVE_STREAM_STATUS_SCHEDULED_FOR:"Scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_ARIA:"The stream is scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR:"at",LIVE_STREAM_STATUS_SECONDS:"seconds",LIVE_STREAM_STATUS_STREAM_ENDED:"The stream has ended",LIVE_STREAM_STATUS_WAITING_FOR_HOST:"Waiting for host",LIVE_STREAM_STATUS_WAITING_FOR_HOST_ARIA:"Waiting for host to connect to live stream"});var p={initial:"idle",states:{idle:{on:{READY:"live",NOT_READY:"beforeStream",START_COUNTDOWN:"countdown",PAST_SCHEDULE:"waitingForHost"}},beforeStream:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live",START_COUNTDOWN:"countdown"}},countdown:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live"}},waitingForHost:{on:{READY:"live",END:"ended"}},live:{on:{END:"ended"}},ended:{}}};function f(t){var e=t.children,n=t.scale,r=t.show;return(0,i.h)("div",{className:"w-css-reset",style:{left:0,position:"absolute",top:0,display:"flex",opacity:r?1:0,transition:"opacity 200ms",margin:"".concat(y({base:12,scale:n}),"px 0 0 ").concat(y({base:12,scale:n}),"px")}},e)}function v(t,e){var n,i=null===(n=p.states[t].on)||void 0===n?void 0:n[e.type];return void 0===i?t:i}function y(t){var e=t.scale,n=t.base,i=2*n;return Math.min(i,Math.max(0,e*n))}function m(t){var e=t.children,n=t.scale;return(0,i.h)("div",{className:"w-live-status",style:{backgroundColor:"rgba(11, 13, 14, 0.7)",padding:"".concat(y({base:8,scale:n}),"px ").concat(y({base:12,scale:n}),"px"),display:"flex",color:"#fff",alignItems:"center",borderRadius:"4px",fontFamily:o.interFontFamily,fontSize:"".concat(y({base:14,scale:n}),"px")}},e)}const g=function(t){var e=this,n=t.controlsAreVisible,o=t.playerLanguage,c=t.scale,y=t.scheduledFor,g=t.videoReady,b=t.videoState,_=t.enableCountdown,w=l((0,r.useState)(new Date),2),E=w[0],O=w[1],P="playing"!==b||n,k=l((0,r.useReducer)(v,p.initial),2),S=k[0],T=k[1];(0,r.useEffect)((function(){"ended"===b?T({type:"END"}):g?T({type:"READY"}):!function(t){return!!t&&Date.now()<t.getTime()}(y)?T({type:"PAST_SCHEDULE"}):T(function(t){return!!t&&(0,u.getSecondsRemaining)(new Date,t)<3600}(y)?{type:"START_COUNTDOWN"}:{type:"NOT_READY"})}),[E,g,b]),(0,r.useEffect)((function(){e.props.setAriaLiveText(C())}),[S]),(0,r.useEffect)((function(){if("countdown"===S){var t=(0,u.getSecondsRemaining)(new Date,y),n=Math.ceil(t),i=Math.ceil(t/60),r=t/60,o="";i%5==0?o="".concat(A("COUNTDOWN")," ").concat(i," ").concat(A("MINUTES")):r&&n%5==0&&(o="".concat(A("COUNTDOWN")," ").concat(n," ").concat(A("SECONDS"))),e.props.setAriaLiveText(o)}}),[E]),(0,a.useInterval)((function(){return O(new Date)}),"live"===S||"ended"===S?null:1e3);var C=function(){switch(S){case"live":return A("LIVE_ARIA");case"ended":return A("STREAM_ENDED");case"waitingForHost":return A("WAITING_FOR_HOST_ARIA");case"beforeStream":return"".concat(A("SCHEDULED_FOR_ARIA")," ").concat(d(y,o.code))}},A=function(t){return(0,s.getTranslation)(o.code,"LIVE_STREAM_STATUS_".concat(t))};return(0,i.h)(f,{scale:c,show:P},(0,i.h)(m,{scale:c},"live"===S&&(0,i.h)(h,{state:"live"}),function(){switch(S){case"live":return A("LIVE");case"ended":return A("STREAM_ENDED");case"waitingForHost":return A("WAITING_FOR_HOST");case"beforeStream":return"".concat(A("SCHEDULED_FOR")," ").concat(d(y,o.code));case"countdown":return _?"".concat(A("COUNTDOWN")," ").concat((0,u.flexibleDuration)((0,u.getSecondsRemaining)(new Date,y))):A("WAITING_FOR_HOST")}}()))}},(t,e,n)=>{n.d(e,{useInterval:()=>r});var i=n(197);function r(t,e){var n=(0,i.useRef)(t);(0,i.useEffect)((function(){n.current=t}),[t]),(0,i.useEffect)((function(){if(null!==e){var t=setInterval((function(){return n.current()}),e);return function(){return clearInterval(t)}}}),[e])}},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(16);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function a(t,e,n){return e=u(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),n=e,(o=[{key:"init",value:function(){var t=this,e=this.impl;e.embedded((function(){"engines/manual_quality_video.js"===e.bestEngine()&&(t.bandwidthTest().isFresh()?(t._supportsHd=t.bandwidthTest().savedResult().supportsHd,t.impl.whenVideoElementInDom().then((function(){t.impl.engine.setAttributes({supportsHd:t._supportsHd})}))):t.hdAsset()&&t.unbinds.push(e.on("play",(function(){return t.doBandwidthTest(),e.unbind}))))}))}},{key:"bandwidthTest",value:function(){return this._bandwidthTest||(this._bandwidthTest=new i.Wistia.BandwidthTest({timeoutLength:4e3,uuid:this.impl.uuid,saveKey:"vulcan.bandwidth"})),this._bandwidthTest}},{key:"doBandwidthTest",value:function(){var t=this,e=this.impl;e.info("doBandwidthTest"),this._endBandwidthTestEarly||(this._endBandwidthTestEarly=function(){e.info("_endBandwidthTestEarly"),t.bandwidthTest().endEarly(),i.Wistia.Metrics.videoCount(e,"player/bandwidth_test/ended_early")});var n=["seek","pause","end","switched-to-asset-without-load"];n.forEach((function(n){t.unbinds.push(e.on(n,t._endBandwidthTestEarly))})),this._failBandwidthTestOnWaiting||(this._failBandwidthTestOnWaiting=function(){return e.info("_failBandwidthTestOnWaiting"),t.bandwidthTest().fail(),i.Wistia.Metrics.videoCount(e,"player/bandwidth_test/failed"),e.unbind}),this.unbinds.push(e.on("waiting",this._failBandwidthTestOnWaiting)),this._endBandwidthTestOnTime=function(){e.info("_endBandwidthTestOnTime"),t._supportsHd=t.bandwidthTest().supportsHd(),e.engine.setAttributes({supportsHd:!0}),t._failBandwidthTestOnWaiting&&e.unbind("waiting",t._failBandwidthTestOnWaiting),t._endBandwidthTestEarly&&n.forEach((function(n){e.unbind(n,t._endBandwidthTestEarly)})),i.Wistia.Metrics.videoCount(e,"player/bandwidth_test/ended_on_time")},this.bandwidthTest().bind("ended",this._endBandwidthTestOnTime),this.bandwidthTest().start()}},{key:"supportsHd",value:function(){return!!this.hdAsset()&&(null==this._supportsHd||this._supportsHd)}},{key:"hdAsset",value:function(){if(this._hdAsset)return this._hdAsset;var t=this.impl;return this._hdAsset=t.playableAssetInRange({width:[980,2e3],sortBy:"width desc, bitrate desc"}),this._hdAsset}}])&&r(n.prototype,o),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,s}(n(237).PlayerBehavior);c.handle="bandwidthTest";const d=c},(t,e,n)=>{n.d(e,{PlayerBehavior:()=>a});var i=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var a=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.impl=e,this.embedElement=e.container,this.unbinds=[],this.eventListeners=new Map,this.namedUnbinds={}},(e=[{key:"addNamedUnbind",value:function(t,e){this.namedUnbinds[t]&&this.namedUnbinds[t](),this.namedUnbinds[t]=e}},{key:"removeNamedUnbind",value:function(t){this.namedUnbinds[t]&&(this.namedUnbinds[t](),delete this.namedUnbinds[t])}},{key:"destroy",value:function(){var t=this;for(var e in this.unbinds instanceof Array&&this.unbinds.map((function(t){return t()})),this.eventListeners instanceof Map&&(this.eventListeners.forEach((function(e,n){t.embedElement.removeEventListener(n,e)})),this.eventListeners.clear()),this.namedUnbinds)i(this.namedUnbinds,e)&&this.namedUnbinds[e].map((function(t){return t()}));this.unbinds=[],this.namedUnbinds={},this.impl=null,this._destroyed=!0}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},(t,e,n)=>{n.d(e,{default:()=>I});var i=n(43),r=n(57),o=n(3),a=n(84),s=n(45),u=n(54),l=n(72),c=n(4),d=n(58),h=n(47),p=n(16),f=n(237),v=n(239),y=n(74);function m(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return g(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(g(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,g(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,g(d,"constructor",l),g(l,"constructor",u),u.displayName="GeneratorFunction",g(l,r,"GeneratorFunction"),g(d),g(d,r,"Generator"),g(d,i,(function(){return this})),g(d,"toString",(function(){return"[object Generator]"})),(m=function(){return{w:o,m:h}})()}function g(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}g=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){g(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},g(t,e,n,i)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function w(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function E(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){w(o,i,r,a,s,"next",t)}function s(t){w(o,i,r,a,s,"throw",t)}a(void 0)}))}}function O(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,A(i.key),i)}}function P(t,e,n){return e=S(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}function C(t,e,n){return(e=A(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var j=(0,n(9).cachedDetect)(),M=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return C(t=P(this,e,[].concat(i)),"onFocusIn",(function(){var e=!(0,s.isMouseDownRecently)();t.impl&&t.impl.isKeyboardFocused(e)})),C(t,"updateBackgroundColor",(function(){var e=t.impl;if(e.videoWrapper&&!e._replacing&&e.embedded()){var n=e.ui&&e.ui.isChromeless()&&("non-user-event"===e.lastPlayInfo().source||e._attrs.autoplay)&&e.isMuted();if(!(!0===e._attrs.transparentLetterbox)&&!n||e.inFullscreen()){var i=e._attrs.playerBackgroundColor||e._opts.backgroundColor||"#000";e.videoWrapper.style.backgroundColor=i||"#000"}else e.videoWrapper.style.backgroundColor="transparent"}})),C(t,"updateStartPosition",(function(){var e,n=t.impl,i="beforeplay"===n.state(),r="user-event"===(null===(e=n.lastPlayInfo())||void 0===e?void 0:e.source),o=n.shouldResume()&&r;if(i)if(!n.engine||"HlsVideo"!==n.engine.name&&"NativeHlsVideo"!==n.engine.name){if(o){var s=(0,a.getLastTime)(n.hashedId());n.time(s,{lazy:!0})}}else{var u=!1!==n._attrs.silentAutoplay||!0!==p.Wistia._specificTimeInitiated;if(o){var l=(0,a.getLastTime)(n.hashedId());n.engine.updateStartPosition(l)}else u&&n.engine.updateStartPosition(-1)}})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}(e,t),n=e,f=[{key:"init",value:function(){this.unbinds.push(this.impl.on("playerbackgroundcolorchange",this.updateBackgroundColor),this.impl.publicApi.on("transitiondone",this.updateBackgroundColor),this.impl.on("playpending",this.updateStartPosition))}},{key:"embed",value:function(t){var e,n=this,i=this.impl,r=i&&i._opts.oldImpl;i.oldImpl=r||t,r&&r!==t?(this.impl.on("engine-initialized",(function(){r.rebuild(),r.fullRebuild()})),i.oldImpl=r):i.oldImpl=t,i.resetStateVariables(),i.videoWrapper=(0,o.elemFromObject)({class:"w-video-wrapper w-css-reset",style:{width:"100%",height:"100%"}}),"WISTIA-PLAYER"===(null===(e=i.embedElement)||void 0===e?void 0:e.tagName)&&(i.videoWrapper.style.display="flex",i.videoWrapper.style.alignItems="center"),this.updateBackgroundColor(),(0,o.elemPrepend)(i.implContainer(),i.videoWrapper),i.uiContainer||(i.uiContainer=(0,o.elemFromObject)({class:"w-ui-container",style:{height:"100%",pointerEvents:i._inNativeMode()?"none":"",left:0,position:"absolute",top:0,width:"100%"}}),(0,o.elemAppend)(i.implContainer(),i.uiContainer)),i.uiContainer.addEventListener("focusin",this.onFocusIn),i.up(E(m().m((function t(){var e,r,a;return m().w((function(t){for(;;)switch(t.n){case 0:if(n._preloadPreference=n.preloadValue(),!i._mediaData.protected||!i._attrs.authorization){t.n=4;break}return e=(0,v.multivariantM3u8Url)({mediaData:i._mediaData,attributes:n.engineAttributes()}),r=function(t){i.replaceWith(i.hashedId(),{notPlayableOptions:{fadeIn:!1,message:t,shouldRefresh:!1},playerForce:"notplayable"})},t.p=1,t.n=2,fetch(e,{mode:"cors",headers:{"Content-Type":"text/plain"}});case 2:!(a=t.v).ok&&String(a.status).startsWith(4)&&r("This video is set to private."),t.n=4;break;case 3:t.p=3,t.v,r("This video cannot be played.");case 4:i._replacing&&(n.initializeEngine(),i.info("embedded"),i.embedded(!0)),i.renderUI().then((function(){try{i.setupBindings()}catch(t){setTimeout((function(){throw t}),0)}(0,l.doTimeout)("".concat(i.uuid,".finish_embedding"),(function(){i.info("embedded"),i.embedded(!0),(0,y.countMetric)("player/hdr-codec-support",1,_(_({},j.hdrCodecs),{},{hdr:j.hdr})),(0,o.pageLoaded)((function(){n.initializeEngine()}))}),0)}));case 5:return t.a(2)}}),t,null,[[1,3]])})))),i.down()&&i.embedded(!0)}},{key:"preloadValue",value:function(){var t,e,n=this.impl;if(t=n._attrs.autoplay&&!n.publicApi.popover&&n.looksUp()?"auto":null!=n._attrs.preload?n._attrs.preload:n._mediaData.preloadPreference,n._mediaData.spherical)if(n._opts._inIframe)e="none";else{var r=[],o=(0,i.wData)("video");for(var a in o)r.push(o[a]);e=r.length>1?"none":"auto"}else if("metadata"===t)e="metadata";else if(!0===t||"auto"===t)e="auto";else if(!1===t||"none"===t)e="none";else{var s=[],l=(0,i.wData)("video");for(var c in l)s.push(l[c]);e=n._opts._inIframe&&top!==parent||n._opts._inIframe&&(0,u.parentFramesLength)()>25||n._opts._inIframe&&(!window._allIframes||window._allIframes.length>2)||!n._opts._inIframe&&s.length>2||n._mediaData.stats&&n._mediaData.stats.loadCount>5e3&&n._mediaData.stats.uniquePlayCount/n._mediaData.stats.uniqueLoadCount<.1?"none":"metadata"}return e}},{key:"rebuild",value:function(){var t=this.impl;return t.info("rebuild"),t.trigger("beforerebuild"),t.embedded((function(){t.embedded(!1),t.ready(!1),t.removeBehaviors(),t.enginePromise=null,t.engine=null,t._oldVideoElem=t.elem(),t._whenVideoElementInDom=null,t.stopStreaming(),(0,o.elemRemove)(t.videoWrapper),t.videoWrapper=null,t.ui=null,t._lastPlayType=null,t._lastPlaySource=null,t._lastPlayIssuedAt=null,t._lastPlayResolvedAt=null,t._lastPlayRejectedAt=null,t.wipeOutstandingAsyncFunctions(),t.setupBehaviors(),t._tracker=null,t.setupTracking(),t.embed(),t.trigger("afterrebuild")})),t}},{key:"checkForReady",value:function(){var t=this.impl;t._checkDownState(),t.up((function(){t.embedded((function(){t.onDimensionChangeSafe(),t.engine&&t.engine.onReady().then((function(){t.onDimensionChangeSafe(),t.ready(!0)}))}))}))}},{key:"cleanOldImplEngine",value:function(){this.impl.oldImpl=null,this.impl.embedElement._oldEngine&&(this.impl.embedElement._oldEngine=null)}},{key:"initializeEngine",value:function(){var t=this,e=this.impl;if(e){if(e.enginePromise)return e.enginePromise;var n=e.bestEngine();return e.enginePromise=(0,h.dynamicImport)("assets/external/".concat(n)).then((function(n){var i=n.default;if(e.grid)try{e._mediaData=(0,r.mediaDataTransforms)((0,c.clone)(e._mediaData),e._opts),e.engine=new i(e.videoWrapper,e._mediaData,t.engineAttributes(),t.otherEngine()),t.cleanOldImplEngine(),e.trigger("engine-initialized"),e.setupBindings(),t.checkForReady()}catch(t){e.error(t)}}))}}},{key:"engineAttributes",value:function(){var t,e,n,i,r,o,s,u,l,c,h=this.impl;h._opts.videoQuality?l=h._opts.videoQuality:(h._opts.videoFoam||h.videoWidth()>=720)&&(l="md"),h._bandwidthTest().isFresh()&&(c=h._bandwidthTest().savedResult().clientKbps);var f,v=h._opts.layoutTiming;(h._startPosition||h.shouldResume())&&(f=h._startPosition||(0,a.getLastTime)(h.hashedId())),h.isResumableEnabled()&&((0,a.atOrNearBeginning)(h.hashedId())?p.Wistia.Metrics.videoCount(h,"player/resumable-close-to-beginning"):(0,a.atOrNearEnd)(h.hashedId(),h.duration())&&p.Wistia.Metrics.videoCount(h,"player/resumable-close-to-end"));var y=0===h._opts.trimStart&&-1===h._opts.trimEnd,m=!0===h._attrs.transparentLetterbox,g=null===(t=h.embedOptions())||void 0===t||null===(e=t.plugin)||void 0===e||null===(n=e.passwordProtectedVideo)||void 0===n?void 0:n.password,b=null===(i=h.embedOptions())||void 0===i?void 0:i.channelId,_=null===(r=h.embedOptions())||void 0===r?void 0:r.channelPassword;return{allowHdr:!1!==h._opts.allowHdr&&(0,d.hasAnyReadyHdrAssets)(h._mediaData.assets),aspectRatio:null!==(o=h._attrs.aspect)&&void 0!==o?o:h._mediaData.aspectRatio,assetHost:h._opts.assetHost,authorization:h._attrs.authorization,backgroundColor:m?"transparent":h.playerBackgroundColor(),bitDepth:h._opts.bitDepth,channelId:b,channelPassword:_,clipForPoster:h._opts.clipForPoster,clipFrom:h._opts.clipFrom,clipTo:h._opts.clipTo,codec:h._opts.codec,controls:h._inNativeMode(),cuts:h._opts.cuts,deliveryCdn:h._opts.deliveryCdn,disallowOriginalFilePlayback:h._opts.disallowOriginalFilePlayback,duration:h._mediaData.duration,embedHost:h._opts.embedHost,fitStrategy:h._opts.fitStrategy,forceInstantHls:h._opts.forceInstantHls,forceOriginalFilePlayback:h._opts.forceOriginalFilePlayback,hashedId:h.hashedId(),height:h.videoHeight(),hls:h._opts.hls,isInstantHls:h.isInstantHls(),isWebComponentPlayer:"WISTIA-PLAYER"===(null===(s=h.embedElement)||void 0===s?void 0:s.tagName),layoutTiming:v,liveMedia:h.isLiveMedia(),loop:"loop"===h._attrs.endVideoBehavior,muted:h._muted,name:null===(u=h.name)||void 0===u?void 0:u.call(h),password:g,playbackRate:h._opts.playbackRate,playsinline:!0,preload:this._preloadPreference,qualityMax:h._attrs.qualityMax,qualityMin:h._attrs.qualityMin,savedBandwidth:c,silentAutoplay:h._attrs.silentAutoplay,startPosition:f,trimEnd:y?void 0:h._opts.trimEnd,trimStart:y?void 0:h._opts.trimStart,videoQuality:l,volume:h._attrs.volume,width:h.videoWidth()}}},{key:"otherEngine",value:function(){var t,e,n,i,r=this.impl;return null!==(t=r.oldImpl)&&void 0!==t&&t.engine?null===(n=r.oldImpl)||void 0===n?void 0:n.engine:null!==(e=r.embedElement)&&void 0!==e&&e._oldEngine?null===(i=r.embedElement)||void 0===i?void 0:i._oldEngine:null}}],f&&O(n.prototype,f),g&&O(n,g),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,f,g}(f.PlayerBehavior);M.handle="embed";const I=M},(t,e,n)=>{n.d(e,{allHlsAudioAssets:()=>s,audioTracksForVideo:()=>u,multivariantM3u8Url:()=>a});var i=n(58),r=(n(4),n(23)),o=(0,n(9).cachedDetect)(),a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.attributes.liveMedia)return t.mediaData.liveStreamEventDetails.manifestUrl;var n=t.attributes,i=n.allowHdr,a=n.authorization,s=n.bitDepth,u=n.channelId,l=n.channelPassword,c=n.clipForPoster,d=n.clipFrom,h=n.clipTo,p=n.codec,f=n.deliveryCdn,v=n.disallowOriginalFilePlayback,y=n.forceInstantHls,m=n.forceOriginalFilePlayback,g=(n.includeExtendedAudioDescription,n.password),b=n.qualityMax,_=n.qualityMin,w=n.startPosition,E=e.qualityMin||_,O=e.qualityMax||b,P=function(t){var e,n=t.mediaData,i=t.attributes,o="".concat((0,r.eV1Protocol)(),"//").concat((0,r.cdnFastWistiaComHost)(i.embedHost)),a="".concat((0,r.eV1Protocol)(),"//").concat((0,r.cdnFastProtectedWistiaComHost)(i.assetHost));return n.protected&&null!==(e=i.authorization)&&void 0!==e&&e.jwt?new URL("".concat(a,"/embed/accounts/").concat(n.accountId,"/medias/").concat(n.hashedId,".m3u8")):new URL("".concat(o,"/embed/medias/").concat(n.hashedId,".m3u8"))}(t);return"HlsVideo"!==(null==t?void 0:t.name)&&(E&&P.searchParams.set("quality_min",E),O&&P.searchParams.set("quality_max",O)),v&&P.searchParams.set("disallow_original_file_playback",v),f&&P.searchParams.set("delivery_cdn",f),w&&-1!==w&&P.searchParams.set("start_position",w),c&&null!=d&&h&&(P.searchParams.set("clip_to",h),P.searchParams.set("clip_from",d)),y&&P.searchParams.set("force_instant_hls",!0),m&&P.searchParams.set("force_original_file_playback",!0),i&&o.hdr&&P.searchParams.set("allow_hdr",!0),s&&(Array.isArray(s)?s.forEach((function(t){P.searchParams.append("bit_depth[]",t)})):P.searchParams.set("bit_depth",s)),p&&(Array.isArray(p)?p.forEach((function(t){P.searchParams.append("codec[]",t)})):P.searchParams.set("codec",p)),null!=a&&a.jwt&&P.searchParams.set("pma",a.jwt),g&&P.searchParams.set("password",g),u&&l&&(P.searchParams.set("channel_id",u),P.searchParams.set("channel_password",l)),P.toString()},s=function(t){return(0,i.filter)(t,{type:"mp4_alternate_audio",status:i.READY})},u=function(t){var e=[{audioCodec:void 0,autoselect:!0,default:!0,forced:!1,groupId:"audio",id:0,lang:void 0,name:"Off",label:"Off",type:"AUDIO",isSelected:!0}];return t.forEach((function(t,n){var i,r;e.push({audioCodec:void 0,autoselect:!1,default:!1,forced:!1,groupId:"audio",id:n+1,lang:void 0,name:(null===(i=t.details)||void 0===i?void 0:i.languageMetadata.name)||"Alt Audio",label:(null===(r=t.details)||void 0===r?void 0:r.languageMetadata.name)||"Alt Audio",type:"AUDIO",isSelected:!1})})),e}},(t,e,n)=>{n.d(e,{default:()=>O});var i=n(9),r=n(13),o=n(72),a=n(74),s=n(36),u=n(3),l=n(147),c=n(16),d=n(237);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function v(t,e,n){return e=m(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var w=(0,i.cachedDetect)(),E=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return b(t=v(this,e,[].concat(i)),"onEnterFullscreen",(function(e){var n=t.impl;e!==n.chrome&&n.embedElement!==e||(n.info("_onEnterFullscreen"),n.trigger("beforeenterfullscreen"),t.setFullscreenStateOnEmbedElement({inFullscreen:!0}),n.notFullscreen(!1),n.behaviors.embed.updateBackgroundColor(),n.engine&&n.engine.onEnterFullscreen(),n.trigger("enterfullscreen"),n.embedElement.dispatchEvent(new CustomEvent("enter-fullscreen")),n.trigger("enter-fullscreen"))})),b(t,"onEnterWebkitFullscreen",(function(e){var n=t.impl;t.setFullscreenStateOnEmbedElement({inFullscreen:!0,nativeFullscreen:!0}),n.notFullscreen(!1),n.trigger("enterfullscreen"),n.embedElement.dispatchEvent(new CustomEvent("enter-fullscreen")),n.trigger("enter-fullscreen")})),b(t,"onCancelFullscreen",(function(){var e=t.impl,n=t.getFullscreenStateOnEmbedElement(),i=n.inFullscreen;n.nativeFullscreen?(t.setFullscreenStateOnEmbedElement({inFullscreen:!1,nativeFullscreen:!1}),e.notFullscreen(!0),"WISTIA-PLAYER"===e.embedElement.tagName&&e.embedElement.cancelFullscreen(),e.engine&&e.engine.onLeaveFullscreen(),e.trigger("cancelfullscreen"),e.embedElement.dispatchEvent(new CustomEvent("cancel-fullscreen")),e.trigger("cancel-fullscreen")):i&&(e.info("onCancelFullscreen"),t.setFullscreenStateOnEmbedElement({inFullscreen:!1}),e.notFullscreen(!0),e.behaviors.embed.updateBackgroundColor(),t._inFakeFullscreen&&(t.impl.chrome.style.width=t.getFullscreenStateOnEmbedElement().widthBeforeFullscreen,t.impl.chrome.style.height=t.getFullscreenStateOnEmbedElement().heightBeforeFullscreen),"WISTIA-PLAYER"===e.embedElement.tagName&&e.embedElement.cancelFullscreen(),e.engine&&e.engine.onLeaveFullscreen(),e.trigger("cancelfullscreen"),e.embedElement.dispatchEvent(new CustomEvent("cancel-fullscreen")),e.trigger("cancel-fullscreen"))})),b(t,"fullscreenResizeToWindowFlurry",(function(){var e=t.impl;t.fullscreenResizeToWindow(),[0,50,100,200,300,500,1e3].forEach((function(n){(0,o.doTimeout)("".concat(e.uuid,".fs-resize-flurry-").concat(n),t.fullscreenResizeToWindow,n)}))})),b(t,"fullscreenResizeToWindow",(function(){var e=t.impl;if(e.inFullscreen()&&!t.getFullscreenStateOnEmbedElement().nativeFullscreen){e.debug("fullscreenResizeToWindow");var n=e.width(),i=e.height(),r=(0,u.elemWidth)(window),o=(0,u.elemHeight)(window);e.trigger("widthchange",r,n),e.trigger("heightchange",o,i),t._inFakeFullscreen&&(n!==r&&(t.impl.chrome.style.width="".concat(r,"px")),i!==o&&(t.impl.chrome.style.height="".concat(o,"px")))}})),b(t,"maybeAutoFullscreen",(function(){t.impl.isAudio()||t.impl._inNativeMode()&&!1===t.impl._opts.playsinline&&(0,u.inUserEventContext)()&&!t._hasAutoFullscreened&&(t._hasAutoFullscreened=!0,t.requestFullscreen())})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}(e,t),n=e,i=[{key:"init",value:function(){var t=this,e=this.impl;(0,s.isNil)(this.impl.embedElement._fullscreenState)&&(this.impl.embedElement._fullscreenState={heightBeforeFullscreen:void 0,inFullscreen:!1,nativeFullscreen:!1,widthBeforeFullscreen:void 0}),this.unbinds.push((0,r.globalOn)("enterfullscreen",this.onEnterFullscreen),(0,r.globalOn)("cancelfullscreen",this.onCancelFullscreen),(0,u.elemBind)(window,"resize",(function(){t.fullscreenResizeToWindowFlurry()})),e.on("playpending",this.maybeAutoFullscreen)),e.whenVideoElementInDom().then((function(){e.engine.bind("webkitbeginfullscreen",t.onEnterWebkitFullscreen),e.engine.bind("webkitendfullscreen",t.onCancelFullscreen)}))}},{key:"requestFullscreen",value:function(){var t=this.impl;return t.inFullscreen()?Promise.resolve():(t.info("requestFullscreen"),t._inNativeMode()&&t.engine?t.engine.requestFullscreen():w.fullscreenEnabled?(0,u.elemRequestFullscreen)(t.chrome):this.getAllowFakeFullscreen()?(this.enterFakeFullscreen(),Promise.resolve()):t.engine?("beforeplay"===t.state()&&(w.iphone||w.ipad)&&t.engine.play().then((function(){return t.engine.pause()})),t.engine.requestFullscreen()):Promise.resolve())}},{key:"cancelFullscreen",value:function(){var t=this.impl;return t.inFullscreen()?(t.info("cancelFullscreen"),t._inNativeMode()?t.engine.cancelFullscreen():w.fullscreenEnabled?(0,u.elemCancelFullscreen)():this.getAllowFakeFullscreen()?(this.cancelFakeFullscreen(),Promise.resolve()):t.engine.cancelFullscreen()):Promise.resolve()}},{key:"getAllowFakeFullscreen",value:function(){return!this.impl._opts._inIframe&&w.ios.version>=10&&this.impl._opts.fakeFullscreen}},{key:"enterFakeFullscreen",value:function(){var t=this.impl;this.setFullscreenStateOnEmbedElement({widthBeforeFullscreen:t.chrome.style.width,heightBeforeFullscreen:t.chrome.style.height}),this._inFakeFullscreen=!0,this._chromeParent=t.chrome.parentNode,document.body.appendChild(t.chrome),this._leftOffsetBeforeFullscreen=(0,l.scrollLeft)(),this.onEnterFullscreen(t.chrome),this.setupFakeFullscreenBindings(),(0,u.elemStyle)(t.chrome,{position:"fixed",top:0,left:0,zIndex:2147483647}),(0,l.scrollLeft)(0),t.engine&&t.engine.onEnterFullscreen()}},{key:"setupFakeFullscreenBindings",value:function(){var t=this,e=this.impl;c.Wistia.eventLoop.add("".concat(e.uuid,".fakefullscreen"),100,(function(){t.fullscreenResizeToWindow()})),this._preventDefaultForTouchMove||(this._preventDefaultForTouchMove=function(t){t.preventDefault()}),(0,u.elemRebind)(e.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"cancelFakeFullscreen",value:function(){var t=this.impl;this.onCancelFullscreen(t.chrome),this._inFakeFullscreen=!1,this._chromeParent&&this._chromeParent.appendChild(t.chrome),t.chrome.style.position="",(0,l.scrollLeft)(this._leftOffsetBeforeFullscreen),c.Wistia.eventLoop.remove("".concat(t.uuid,".fakefullscreen")),t.engine&&t.engine.onLeaveFullscreen(),null!=this._preventDefaultForTouchMove&&(0,u.elemUnbind)(t.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"transferStateFrom",value:function(t){var e=t.behaviors&&t.behaviors.fullscreen;e&&(this.impl.embedElement._fullscreenState=t.embedElement._fullscreenState,e.getFullscreenStateOnEmbedElement().inFullscreen&&(0,a.countMetric)("player/replacewith-fullscreen",1,{inNativeFullscreen:this.inNativeFullscreen()}))}},{key:"inFullscreen",value:function(){return this.getFullscreenStateOnEmbedElement().inFullscreen}},{key:"inNativeFullscreen",value:function(){return this.getFullscreenStateOnEmbedElement().nativeFullscreen}},{key:"getFullscreenStateOnEmbedElement",value:function(){return this.impl.embedElement._fullscreenState||{}}},{key:"setFullscreenStateOnEmbedElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if((0,s.isNotNil)(this.impl.embedElement._fullscreenState)){var e=p(p({},this.impl.embedElement._fullscreenState),t);this.impl.embedElement._fullscreenState=e}}}],i&&f(n.prototype,i),d&&f(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,d}(d.PlayerBehavior);E.handle="fullscreen",c.Wistia._onFullscreenChange||(c.Wistia._onFullscreenChange=function(){(0,u.fullscreenElement)()?(0,r.globalTrigger)("enterfullscreen",(0,u.fullscreenElement)()):(0,r.globalTrigger)("cancelfullscreen")},c.Wistia._initializers.initFullscreenTriggers=function(){(0,u.elemRebind)(document,"webkitfullscreenchange",c.Wistia._onFullscreenChange),(0,u.elemRebind)(document,"fullscreenchange",c.Wistia._onFullscreenChange)},c.Wistia._destructors.destroyFullscreenTriggers=function(){(0,u.elemUnbind)(document,"webkitfullscreenchange",c.Wistia._onFullscreenChange),(0,u.elemUnbind)(document,"fullscreenchange",c.Wistia._onFullscreenChange)});const O=E},(t,e,n)=>{n.d(e,{default:()=>p});var i=n(237),r=n(16);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function a(t,e,n){return e=u(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t,e,n){return(e=d(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var h=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return c(t=a(this,e,[].concat(i)),"onPlay",(function(){if(null==t._startedLoadingAt)return t._startedLoadingAt=Date.now(),t.impl.unbind})),c(t,"onProgress",(function(){var e=t.impl;if(e.engine.anyBuffered())return t._firstByteReceivedAt=Date.now(),null!=t._startedLoadingAt&&(t._timeToFirstByte=t._firstByteReceivedAt-t._startedLoadingAt),e.unbind})),c(t,"onWaiting",(function(e){var n=t.impl,i=n.engine.anyBuffered();!t._noDataFor5Seconds&&e>=5&&!i&&(t._noDataFor5Seconds=!0,r.Wistia.Metrics.videoCount(n,"player/no-data/5-seconds")),!t._noDataFor10Seconds&&e>=10&&!i&&(t._noDataFor10Seconds=!0,r.Wistia.Metrics.videoCount(n,"player/no-data/10-seconds")),!t._noDataFor15Seconds&&e>=15&&!i&&(t._noDataFor15Seconds=!0,r.Wistia.Metrics.videoCount(n,"player/no-data/15-seconds"))})),c(t,"onClickedPlayBeforeReady",(function(){r.Wistia.Metrics.videoCount(t.impl,"player/clicked-play-before-ready")})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(e,t),n=e,(i=[{key:"init",value:function(){var t=this;this.impl.whenVideoElementInDom().then((function(){return t.doInit()}))}},{key:"doInit",value:function(){var t=this.impl;t.engine&&t.engine.getPreload()&&(this._startedLoadingAt=Date.now()),this.unbinds.push(t.on("play",this.onPlay),t.on("progress",this.onProgress),t.on("waiting",this.onWaiting),t.on("clicked-play-before-ready",this.onClickedPlayBeforeReady))}}])&&o(n.prototype,i),s&&o(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(i.PlayerBehavior);h.handle="metrics";const p=h},(t,e,n)=>{n.d(e,{default:()=>f});var i=n(9),r=n(237),o=n(16);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function s(t,e,n){return e=l(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var h=(0,i.cachedDetect)(),p=function(t){function e(){var t,n,i,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];return t=s(this,e,[].concat(u)),n=t,r=function(){var e=t.impl,n=e.getMediaElement();if(n&&n.error&&3===n.error.code&&/native_hls_video/.test(t.impl.bestEngine())){var i=e.lastPlayInfo().isPending;e.commandQueueOpen.clearSynchronized();var r=i?"playing":"not-playing";o.Wistia.Metrics.videoCount(e,"player/rebuild-non-hls-on-error/".concat(r)),t.unbinds.push(e.on("play",(function(){return o.Wistia.Metrics.videoCount(e,"player/rebuild-non-hls-on-error/".concat(r)),e.unbind}))),e.publicApi.fullRebuild({hls:!1,autoPlay:i&&!(h.ios.version&&h.ios.version<10.1)})}},(i=d(i="onError"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),n=e,(i=[{key:"init",value:function(){this.unbinds.push(this.impl.on("error",this.onError))}}])&&a(n.prototype,i),r&&a(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r}(r.PlayerBehavior);p.handle="playbackErrorHandling";const f=p},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e,n){return e=s(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}n.d(e,{ProblemMonitoringBehavior:()=>l});var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,(r=[{key:"init",value:function(){var t=this;this.unbinds=[this.impl.on("waiting",(function(e){e>=5&&t.impl.trigger("problem",{type:"long-buffer",data:{secondsWaiting:e}})})),this.impl.on("error",(function(e){var n=t.impl.getMediaElement().error;t.impl.trigger("problem",{type:"video-error",errorCode:n&&n.code||n,errorMessage:n&&n.message})}))]}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(237).PlayerBehavior);l.handle="problemMonitoring"},(t,e,n)=>{n.d(e,{default:()=>y});var i=n(60),r=(n(16),n(237)),o=n(3),a=n(18);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function u(t,e,n){return e=d(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},c.apply(null,arguments)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var v=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return p(t=u(this,e,[].concat(r)),"maybeFireStateAndTimeEvents",(function(){t.fireStateChangedEventsIfChanged(),t.fireTimeChangedEventsIfChanged()})),p(t,"onLookChange",(function(e){t.impl.trigger("lookchange",e)})),p(t,"onPause",(function(){t.maybeFireStateAndTimeEvents()})),p(t,"onPlaying",(function(){t._beforePlay=!1,t.maybeFireStateAndTimeEvents()})),p(t,"onEnded",(function(){t.maybeFireStateAndTimeEvents()})),p(t,"onAudioStreamChanged",(function(){t.impl.trigger("audiostreamchange")})),p(t,"onVolumeChange",(function(){var e=t.impl.isMuted();t.impl.trigger("volumechange",t.impl.volume(),e),t.impl.embedElement.dispatchEvent(new CustomEvent("volume-change",{detail:{volume:t.impl.volume(),isMuted:e}})),e!==t._isMuted&&(t._isMuted=e,t.impl.embedElement.dispatchEvent(new CustomEvent(a.MUTE_CHANGE_EVENT,{detail:{isMuted:e}})))})),p(t,"onRateChange",(function(){t.impl.trigger("playbackratechange",t.impl.playbackRate()),t.impl.embedElement.dispatchEvent(new CustomEvent("rate-change",{detail:{playbackRate:t.impl.playbackRate()}})),i.globalEventLoop.interval("".concat(t.impl.uuid,".events"),t.impl._eventLoopDuration)})),p(t,"onProgress",(function(e){t.impl.trigger("progress",e)})),p(t,"onError",(function(e){t.impl.trigger("error",e)})),p(t,"onHlsLevelSwitched",(function(e){t.impl.trigger("hlslevelswitched",e)})),p(t,"onHlsFatalErrorRebuild",(function(e){t.impl.fullRebuild({engine:"engines/manual_quality_video.js"})})),p(t,"onSeeking",(function(e){t.impl.trigger("seeking",e),t.impl.embedElement.dispatchEvent(new CustomEvent("seeking"))})),p(t,"onTimeUpdate",(function(e){t.impl.embedElement.dispatchEvent(new CustomEvent("time-update"))})),p(t,"onLoadedData",(function(e){t.impl.embedElement.dispatchEvent(new CustomEvent("loaded-data"))})),p(t,"onLoadedMetadata",(function(e){t.impl.embedElement.dispatchEvent(new CustomEvent("loaded-metadata"))})),p(t,"onCanPlay",(function(e){t.impl.embedElement.dispatchEvent(new CustomEvent("can-play"))})),p(t,"onCanPlayThrough",(function(e){t.impl.embedElement.dispatchEvent(new CustomEvent("can-play-through"))})),p(t,"onCustomWaiting",(function(e){t._waiting=e,t.impl.trigger("waiting",e),t.impl.embedElement.dispatchEvent(new CustomEvent("waiting",{detail:{duration:e}}))})),p(t,"onCustomDoneWaiting",(function(e){t._waiting=-1,t.impl.trigger("done-waiting",e)})),p(t,"fireTimeChangedEventsIfChanged",(function(){if(!t._destroyed){var e=t.impl,n=!1,i=Date.now(),r=e.time(),a=r!==t._lastTimePosition,s=r-t._lastTimePosition,u=Math.floor(r),l=Math.floor(t._lastTimePosition),c=(i-t._lastClockTime)/1e3,d=e.playbackRate(),h="beforeplay"===e.state()&&r<.3,p=Math.abs(Math.floor(r)-Math.floor(t._lastTimePosition))>1;if(a&&r>=0&&!h){if(e.trigger("timechange",r),e.embedElement.dispatchEvent(new CustomEvent("timechange",{detail:{timePosition:r}})),u!==l){if(Math.abs(s/d-c)<.05&&p){n=!0;for(var f=l+1;f<u;f++)e.trigger("secondchange",f),e.embedElement.dispatchEvent(new CustomEvent("second-change",{detail:{second:f}}))}e.trigger("secondchange",u),e.embedElement.dispatchEvent(new CustomEvent("second-change",{detail:{second:u}}))}!t._beforePlay&&"ended"!==e.state()&&!n&&p&&Math.abs(r-t._lastTimePosition)>e._attrs.seekThreshold&&e.trigger("seek",r,t._lastTimePosition,{source:(0,o.currentEventSource)()}),t._lastTimePosition=r}return t._lastClockTime=i,Promise.resolve()}})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,r=[{key:"init",value:function(){var t=this;this.resetState(),this.impl.whenVideoElementInDom().then((function(){return t.doInit()}))}},{key:"doInit",value:function(){var t=this,e=this.impl,n=e.engine;this.unbinds.push(n.bind("lookchange",this.onLookChange),n.bind("pause",this.onPause),n.bind("playing",this.onPlaying),n.bind("ended",this.onEnded),n.bind("volumechange",this.onVolumeChange),n.bind("audiostreamchange",this.onAudioStreamChanged),n.bind("ratechange",this.onRateChange),n.bind("progress",this.onProgress),n.bind("custom-waiting",this.onCustomWaiting),n.bind("custom-done-waiting",this.onCustomDoneWaiting),n.bind("error",this.onError),n.bind("hlslevelswitched",this.onHlsLevelSwitched),n.bind("fatalerrorrebuild",this.onHlsFatalErrorRebuild),n.bind("seeking",this.onSeeking),n.bind("timeupdate",this.onTimeUpdate),n.bind("loadeddata",this.onLoadedData),n.bind("loadedmetadata",this.onLoadedMetadata),n.bind("canplay",this.onCanPlay),n.bind("canplaythrough",this.onCanPlayThrough)),i.globalEventLoop.add("".concat(e.uuid,".events"),e._eventLoopDuration,(function(){if(!e.looksDown()){t.fireStateChangedEventsIfChanged(),t.fireTimeChangedEventsIfChanged();var n=e.getVideoQuality();n!==t._lastQuality&&(e.trigger("qualitychange",n),t._lastQuality=n)}}))}},{key:"destroy",value:function(){var t,n,r,o,a;i.globalEventLoop.remove("".concat(this.impl.uuid,".events")),(t=e,n="destroy",r=this,a=c(d(1&(o=3)?t.prototype:t),n,r),2&o&&"function"==typeof a?function(t){return a.apply(r,t)}:a)([])}},{key:"resetState",value:function(){this._waiting=-1,this._lastTimePosition=-1,this._beforePlay=!0,this._isMuted=this.impl.isMuted(),this._hasPlayed=!1}},{key:"fireStateChangedEventsIfChanged",value:function(){if(!this._destroyed){var t=this.impl,e=t.state();e!==this._lastState&&(t.trigger("statechange",e,this._lastState),"playing"===e&&(this._hasPlayed=!0,t.trigger("play",t.lastPlayInfo()),t.embedElement.dispatchEvent(new CustomEvent("play",{detail:{lastPlayInfo:t.lastPlayInfo()}}))),"paused"===e&&(t.trigger("pause",t.lastPauseInfo()),t.embedElement.dispatchEvent(new CustomEvent("pause",{detail:{lastPauseInfo:t.lastPauseInfo()}}))),"ended"===e&&(t.trigger("end"),t.embedElement.dispatchEvent(new Event("end")),t.embedElement.dispatchEvent(new Event("ended")),this.triggerAfterendTimeout()),this._lastState=e)}}},{key:"triggerAfterendTimeout",value:function(){var t=this;setTimeout((function(){t.impl.trigger("afterend")}),0)}}],r&&s(n.prototype,r),l&&s(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,l}(r.PlayerBehavior);v.handle="relayEvents";const y=v},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(84);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function o(t,e,n){return e=s(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var d=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return l(t=o(this,e,[].concat(r)),"onEnd",(function(){(0,i.setLastTime)(t._hashedId,t.impl.time()),t.destroyResumableKey()})),l(t,"onSecondChange",(function(){t._hasPlayed&&((0,i.setLastTime)(t._hashedId,t.impl.time()),t.impl.shouldResume()||t.destroyResumableKey(),null===t._resumableKey&&t.setResumableKeyToEventKey())})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,a=[{key:"init",value:function(){this._hasPlayed=!1,this._hashedId=this.impl.hashedId(),this._unbinds=[],this._resumableKey=(0,i.getResumableKeyForVideo)(this._hashedId)||null,this.setupBindings(),!this.impl.shouldResume()&&this._resumableKey&&this.destroyResumableKey()}},{key:"destroy",value:function(){this._unbinds.forEach((function(t){"function"==typeof t&&t()})),this._unbinds=[]}},{key:"destroyResumableKey",value:function(){(0,i.setResumableKeyForVideo)(this._hashedId,null),this._resumableKey=null}},{key:"lastTime",value:function(){return(0,i.getLastTime)(this._hashedId)}},{key:"resumableKey",value:function(){return this._resumableKey}},{key:"setupBindings",value:function(){var t=this;this._unbinds.push(this.impl.on("play",(function(){return t._hasPlayed=!0})),this.impl.on("end",this.onEnd),this.impl.on("secondchange",this.onSecondChange));var e=this.impl.on("eventkeychange",(function(){t.initResumableKey(),e()}))}},{key:"setResumableKeyToEventKey",value:function(){var t=this.impl.eventKey();t&&(this._resumableKey=t,(0,i.setResumableKeyForVideo)(this._hashedId,this._resumableKey))}},{key:"initResumableKey",value:function(){this._resumableKey||this.setResumableKeyToEventKey()}}],a&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a,s}(n(237).PlayerBehavior);d.handle="resumable";const h=d},(t,e,n)=>{n.d(e,{default:()=>z});var i=n(67),r=n(26),o=n(2),a=n(45),s=n(195),u=n(9),l=n(72),c=n(4),d=n(32),h=n(3),p=n(16),f=(n(46),n(237)),v=n(247),y=n(252),m=n(253),g=n(251),b=n(136),_=n(254),w=n(255),E=n(256),O=n(257),P=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function k(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return S(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(t,e):void 0}}(t)||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.")}()}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},T.apply(null,arguments)}function C(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,B(i.key),i)}}function A(t,e,n){return e=I(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,j()?Reflect.construct(e,n||[],I(t).constructor):e.apply(t,n))}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(j=function(){return!!t})()}function M(){return M="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=I(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},M.apply(null,arguments)}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}function D(t,e){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},D(t,e)}function L(t,e,n){return(e=B(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var x=(0,u.cachedDetect)(),R=function(t){return"control-bar-left"===t||"control-bar-right"===t||"wistia-logo"===t||"ellipsis"===t||"playbar"==t},F=["above-control-bar","background","control-bar-left","control-bar-right","wistia-logo","ellipsis","foreground","left-flyout","playbar","right-flyout"].reduce((function(t,e){return t[e]=!0,t}),{}),W=function(t){return t.pcfButtonWidth?t.pcfButtonWidth():t.wistiaLogoButtonWidth?t.wistiaLogoButtonWidth():null!=t.constructor.width?t.constructor.width:g.DEFAULT_BUTTON_WIDTH_PX},N=function(t){return t.pcfButtonHeight?t.pcfButtonHeight():null!=t.constructor.height?t.constructor.height:g.BASE_CONTROL_BAR_HEIGHT_PX},H=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return L(t=A(this,e,[].concat(i)),"onBlurButton",(function(e,n){var i=n.constructor.type;R(i)&&(n.__isFocused=!1,t.render())})),L(t,"onFocusButton",(function(e,n){var i=n.constructor.type;R(i)&&(n.__isFocused=!0,t.render())})),L(t,"onFocusComplete",(function(){t.impl.trigger("focuscomplete")})),L(t,"onFocusIn",(function(e){if(t.isMostRecentFocusViaMouse=(0,a.isMouseDownRecently)(),!(0,a.isMouseDownRecently)()&&!t._isMouseDownFromTouch||e.srcElement!==t.layoutRef){t.updateFocusedControl(e.target),t.impl.enterInputContext("player-focus");var n=t.isKeyboardFocused;t.isKeyboardFocused=!((0,a.isMouseDownRecently)()||t._isMouseDownFromTouch),!n&&t.isKeyboardFocused&&(t.impl.trigger("focusin",e),t.maybeToggleControls())}else e.srcElement.blur()})),L(t,"onFocusOut",(function(e){t._isDestroying||(t.updateFocusedControl(null),t.impl.exitInputContext("player-focus"),t.isKeyboardFocused?(0,l.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_blur"),(function(){var n;document.activeElement&&(0,h.elemIsInside)(document.activeElement,t.layoutRef)||(t.isKeyboardFocused=!1,null===(n=t.impl)||void 0===n||n.trigger("focusout",e),t.maybeToggleControls())}),1e3):(0,l.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_blur"),t.maybeToggleControls,50))})),L(t,"onKeyDown",(function(e){if(e.target===t.layoutRef){var n=e.keyCode;e.__handledAlready||32!==n&&13!==n||t.togglePlay()}})),L(t,"onMouseEnter",(function(e){t.impl.trigger("mouseenter",e),t.isHovering=!0,t.maybeToggleControls(),t.impl.enterInputContext("player-mouseover")})),L(t,"onMouseLeave",(function(e){t.impl.trigger("mouseleave",e),t.isHovering=!1,t.maybeToggleControls(),t.impl.exitInputContext("player-mouseover")})),L(t,"onMouseMove",(function(e){if(!x.touchScreen&&"beforeplay"!==t.impl.state()){var n=t.lastPageX!==e.pageX||t.lastPageY!==e.pageY;n&&(t.lastMovedMouseAt=Date.now(),t.lastPageX=e.pageX,t.lastPageY=e.pageY),n&&(t.maybeToggleControls(),t.shouldShowControls()&&(clearTimeout(t.maybeToggleControlsTimeout),(0,h.elemIsInside)(e.target,t.backgroundElem)?(t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControlsTimeout=setTimeout(t.maybeToggleControls,t.showControlsTimeout())):(t.lastMouseMoveWasFromBackground=!1,t.maybeToggleControls())))}})),L(t,"onClick",(function(e){var n;t.lastMovedMouseAt=Date.now();var i=null===(n=p.Wistia.PopoverV3)||void 0===n?void 0:n._activePopover,r=!(0,a.isMouseDownRecently)();i&&i.setShouldShowFocusOutline(r),t.lastPageX=e.pageX,t.lastPageY=e.pageY,(0,h.elemIsInside)(e.target,t.backgroundElem)?x.touchScreen?(t.isBeforePlayOrReset()?t.impl.play():t.isChromeless()?t.togglePlay():x.ios.version&&x.ios.version<10.1?(t.tappedToHide=!1,t.impl.play()):t._areControlsVisible?t.tappedToHide=!t.tappedToHide:t.tappedToHide=!1,t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout())):e.ctrlKey||(t.togglePlay(),t.impl.isKeyboardFocused(r),t.impl.focus()):"beforeplay"!==t.impl.state()&&(t.tappedToHide=!1,t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout()))})),L(t,"onDblClick",(function(e){if(!x.touchScreen&&(0,h.elemIsInside)(e.target,t.backgroundElem)){var n=t.impl;t.impl.isControlEnabled("fullscreenControl")&&(n.inFullscreen()?n.cancelFullscreen():n.requestFullscreen())}})),L(t,"onTouchStart",(function(e){e._touchStartFromControlDialog&&(t._touchStartFromControlDialog=!0),t._cancelSwipe=!t.impl.inFullscreen()})),L(t,"onSwipe",(function(e,n){if(!t._cancelSwipe){t._swipeCtx=n;var i=t.impl,r=i.height(),o=i.width(),a=n.absYDelta/r,s=n.absXDelta/o;if(n.timeDelta>175&&(a<.02||s>a))return t._cancelSwipe=!0,void(0,h.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:function(){(0,h.elemAnimate)(i.chrome,{transform:""})}});if(a>=.02&&a>s){var u=n.yDelta/r;(0,h.elemStyle)(i.chrome,{transform:"translate(0, ".concat(-1*u*r,"px)")})}}})),L(t,"onPinch",(function(e,n){if(t.impl.isControlEnabled("fullscreenControl")){t._pinchCtx=n;var i,r,o=t.impl;t.impl.inFullscreen()?(i=.3,r=2.5):(i=.8,r=2.5),n.pinchScale<1?n.pinchScale*=1+.5*(1-n.pinchScale):n.pinchScale*=1+.25*(n.pinchScale-1);var a=Math.max(i,Math.min(r,n.pinchScale));(0,h.elemStyle)(o.chrome,{transform:"scale(".concat(a,")")})}})),L(t,"onTouchEnd",(function(){if(t.impl.isControlEnabled("fullscreenControl")){var e=t._pinchCtx,n=t._swipeCtx;t._pinchCtx=null,t._swipeCtx=null;var i=t.impl;if(e)!i.inFullscreen()&&e.pinchScale>1.5?((0,h.elemStyle)(i.chrome,{transform:""}),i.requestFullscreen()):i.inFullscreen()&&e.pinchScale<.7?((0,h.elemStyle)(i.chrome,{transform:""}),i.cancelFullscreen()):(0,h.elemAnimate)(i.chrome,{transform:"scale(1)"},{time:400,callback:function(){(0,h.elemStyle)(i.chrome,{transform:""})}});else if(n){var r=i.height(),o=i.width(),a=n.absYDelta/r,s=n.absXDelta/o,u=function(){(0,h.elemStyle)(i.chrome,{transform:""})};if(a>.16&&a>s&&Date.now()-n.startedAt<500&&!1===t._touchStartFromControlDialog){t._cancelSwipe=!0;var l=n.yDelta>0?-1:1;(0,h.elemAnimate)(i.chrome,{transform:"translate(0, ".concat(l*r,"px)")},{time:200,callback:function(){i.cancelFullscreen(),u()}})}else t._cancelSwipe=!0,(0,h.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:u})}t._touchStartFromControlDialog=!1}})),L(t,"maybeToggleControls",(function(){if(!t._destroyed){var e=t._shouldShowControls;return t._shouldShowControls=t.shouldShowControls(),e!==t._shouldShowControls?t.lastRenderPromise.then((function(){return t.render()})):Promise.resolve()}})),L(t,"mountRefsFn",(function(e){(0,c.assign)(t.mountRefs,e)})),L(t,"backgroundRefFn",(function(e){t.backgroundElem=e})),t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&D(t,e)}(e,t),n=e,u=[{key:"init",value:function(){this.mountPromises=[],this.controls={},this.controlsByType={},this.dialogs=[],this.mountRefs={},this.buttonMountRefs={},this.lastRenderPromise=Promise.resolve(),this.lastMouseMoveWasFromBackground=!0,this._touchStartFromControlDialog=!1,this._ariaLiveText="",this._previousBorderRadiusOn=!1,this._isDestroying=!1,this._viewerCaptionSettings=(0,b.getCaptionSettings)(),this.domId||(this.domId=(0,r.seqId)("w-vulcan-v2-"))}},{key:"bigPlayButtonBorderRadius",value:function(){return this.impl._attrs.bigPlayButtonBorderRadius*this.scale()}},{key:"controlBarBorderRadius",value:function(){return this.impl._attrs.controlBarBorderRadius*this.scale()}},{key:"controlBarDistance",value:function(){return this.impl._attrs.controlBarDistance*this.scale()}},{key:"controlBarWidth",value:function(){return this.videoWidth()-2*this.controlBarDistance()}},{key:"captionsBackgroundColor",value:function(){var t,e;return null!==(t=null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.backgroundColor)&&void 0!==t?t:this.impl._attrs.captionsBackgroundColor}},{key:"captionsBackgroundOpacityPercentage",value:function(){var t;return null!=(null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.backgroundOpacityPercentage)?this._viewerCaptionSettings.backgroundOpacityPercentage/100:.7}},{key:"captionsTextColor",value:function(){var t,e;return null!==(t=null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.fontColor)&&void 0!==t?t:this.impl._attrs.captionsTextColor}},{key:"captionsTextSize",value:function(){var t;return null!=(null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.fontSize)?(0,_.convertFontSizePercentageToPx)(this._viewerCaptionSettings.fontSize):this.impl._attrs.captionsTextSize}},{key:"captionsTextShadow",value:function(){var t,e;return(0,E.getTextShadowForCharacterEdgeStyle)({characterEdgeStyle:null!==(t=null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.characterEdgeStyle)&&void 0!==t?t:"none",scale:this.scale()})}},{key:"captionsTextOpacityPercentage",value:function(){var t;return null!=(null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.fontOpacityPercentage)?this._viewerCaptionSettings.fontOpacityPercentage/100:1}},{key:"captionsFontFamily",value:function(){var t;return null!=(null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.fontFamily)?(0,w.getFontFamilyForFontOptionLabel)(this._viewerCaptionSettings.fontFamily):this.impl._attrs.captionsFontFamily}},{key:"captionsFontVariant",value:function(){return(0,O.getFontVariantForFontOptionLabel)(this.captionsFontFamily())}},{key:"captionsBorderRadius",value:function(){return this.impl._attrs.captionsBorderRadius}},{key:"captionsWindowColor",value:function(){var t,e;return null!==(t=null===(e=this._viewerCaptionSettings)||void 0===e?void 0:e.windowColor)&&void 0!==t?t:"#000"}},{key:"captionsWindowOpacityPercentage",value:function(){var t;return null!=(null===(t=this._viewerCaptionSettings)||void 0===t?void 0:t.windowOpacityPercentage)?this._viewerCaptionSettings.windowOpacityPercentage/100:0}},{key:"setupBindings",value:function(){var t=this;this._hasSetupBindings=!0;var e=this.impl;this.video=e.video,this.unbinds.push(e.on("play",(function(){t.doneWaitingForPlay=!0,null!=t.tappedToHide&&(t.tappedToHide=!1),t.render(),t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout())})),e.on("pause",(function(){x.touchScreen&&(null!=t.tappedToHide&&(t.tappedToHide=!1),t.maybeToggleControls())})),e.on("playrejected",(function(){t.doneWaitingForPlay=!0,t.showVideoWrapper(),t.render()})),e.on("enter-fullscreen",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render(),t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControls(),(0,l.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_fullscreen"),t.maybeToggleControls,t.showControlsTimeout())})),e.on("cancel-fullscreen",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render(),t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControls(),(0,l.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_fullscreen"),t.maybeToggleControls,t.showControlsTimeout())})),e.on("up",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render()})),e.on("playerlanguagechange",(function(){t.render()})),e.on("popoverhide",(function(){t.render()})),e.on("popovershow",(function(){t.render()})),e.on("widthchange",(function(){t._scale=null,t._isShowingMore=null,t.cachedVideoWidth=null,t.render()})),e.on("heightchange",(function(){t._scale=null,t.cachedVideoHeight=null,t.render()})),p.Wistia.on("controldefined",(function(){t.render()})),(0,h.elemBind)(document,"keyup",(function(n){(0,h.formInputIsFocused)()||"player-mouseover"===e.getInputContext()&&!1!==e._opts.hoverHotkeysEnabled&&32===n.keyCode&&t.togglePlay()})),(0,h.elemBind)(window,"mouseout",(function(e){var n=e.relatedTarget||e.toElement;n&&"HTML"!==n.nodeName||(t.isHovering=!1,t.impl.exitInputContext("player-mouseover"))})),(0,h.elemBind)(document,"touchend",(function(){(0,a.isMouseDown)()&&(t._isMouseDownFromTouch=!0),setTimeout((function(){t._isMouseDownFromTouch=!1,t.render()}),50)}))),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("webkitplaybacktargetavailabilitychanged",(function(){setTimeout((function(){t.render()}),0)})))})),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("audiotracksupdated",(function(){setTimeout((function(){t.render()}),0)})))})),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("livestream-mediadata-changed",(function(e){t.impl._mediaData=e,t.impl.behaviors.embed.rebuild()})),t.impl.engine.bind("livestreamready",(function(){t.impl.ready((function(){t.impl.play()}))})))}))}},{key:"setupEventListeners",value:function(){var t=this;this._hasSetupEventListeners=!0,this.eventListeners instanceof Map&&(this.eventListeners.set("bigplaybuttonborderradiuschange",(function(){t.resetCssReset(),t.render()})),this.eventListeners.set("controlbarborderradiuschange",(function(){t.resetCssReset(),t.render()})),this.eventListeners.set("playerborderradiuschange",(function(){t.resetCssReset(),t.render()})),this.eventListeners.set("playercolorchange",(function(){return t.render()})),this.eventListeners.set("captionsbackgroundcolorchange",(function(){t.render()})),this.eventListeners.set("captionstextcolorchange",(function(){t.render()})),this.eventListeners.set("captionstextsizechange",(function(){t.render()})),this.eventListeners.set("captionsfontfamilychange",(function(){t.render()})),this.eventListeners.set("captionsborderradiuschange",(function(){t.render()})),this.eventListeners.set("captionssettingschange",(function(){t._viewerCaptionSettings=(0,b.getCaptionSettings)(),t.render()})),this.eventListeners.forEach((function(e,n){t.embedElement.addEventListener(n,e)})))}},{key:"backgroundGradientCss",value:function(){var t=this.impl._attrs.playerColorGradient;if(null!=t&&t.on)return(0,d.getCssGradient)(t)}},{key:"render",value:function(){var t=this;if(this.isRendering&&this.lastRenderPromise)return this.queuedRenderPromise||(this.queuedRenderPromise=this.lastRenderPromise.then((function(){return t.render().then((function(){t.queuedRenderPromise=void 0}))}))),this.queuedRenderPromise;var e=this.impl;if(this._destroyed||!e.grid)return new Promise((function(){}));if(this._hasSetupBindings||this.setupBindings(),this._hasSetupEventListeners||this.setupEventListeners(),this.cssResetStyle||(this.cssResetStyle=(0,h.addInlineCss)(e.uiContainer,this.cssResetContent())),null==this.doneWaitingForPlay){var n=e._isPlayPending&&"beforeplay"===e.state();this.doneWaitingForPlay=!n}return this.lastRenderPromise=new Promise((function(n){t.isRendering=!0;var i=t.setupControls(),r=i.newControls,a=i.existingControls;t.setControlProps();var s=null!=t._shouldShowControls?t._shouldShowControls:t.shouldShowControls();t._areControlsVisible=t._shouldShowControls,(0,h.elemStyle)(t.impl.chrome,{borderRadius:"".concat(t.playerBorderRadius(),"px")}),(0,o.render)((0,o.h)(m.default,{ariaLiveText:t._ariaLiveText,afterRender:r.length>0?function(){t.afterRender(a,r,n)}:null,allMounted:t.allMounted,backgroundRef:t.backgroundRefFn,bottomBarRightInnerRef:function(e){t.bottomBarRightInnerRef=e},color:e.playerColor(),controlBarHeight:t.controlBarHeight(),controlBarBorderRadius:t.controlBarBorderRadius(),controlsByType:t.controlsByType,domId:t.domId,doneWaitingForPlay:t.doneWaitingForPlay,inFullscreen:e.inFullscreen(),inNativeMode:t.inNativeMode(),isMouseDownFromTouch:t._isMouseDownFromTouch,isShowingMore:t.isShowingMore(),hasClickedToShowMore:null!=t._isShowingMore,layoutRef:function(e){return t.layoutRef=e},leftControlWidth:t.leftControlWidth,mountRefs:t.mountRefsFn,noMixBlendMode:e._opts.noMixBlendMode,onClick:t.onClick,onDblClick:t.onDblClick,onFocusComplete:t.onFocusComplete,onfocusin:t.onFocusIn,onfocusout:t.onFocusOut,onKeyDown:t.onKeyDown,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseMove:t.onMouseMove,onPinch:t.onPinch,onSwipe:t.onSwipe,onTouchEnd:t.onTouchEnd,onTouchStart:t.onTouchStart,controlBarDistance:t.controlBarDistance(),playerBorderRadius:t.playerBorderRadius(),playerLanguage:e.playerLanguage(),rightControlWidth:t.rightControlWidth,scale:t.scale(),shouldAnimateIn:"WISTIA-PLAYER"===t.embedElement.tagName,shouldShowControls:s,videoHeight:t.videoHeight(),videoState:e.state(),videoWidth:t.videoWidth(),backgroundGradientCss:t.backgroundGradientCss()}),e.uiContainer),0===r.length&&t.afterRender(a,r,n)})),this.lastRenderPromise}},{key:"afterRender",value:function(t,e,n){var i=this;if(!this._destroyed&&this.impl.grid)try{if(this.runOnControlPropsUpdated(t),this.renderButtons(t),this.mountControls(e),this.didFirstRender)n();else{this.didFirstRender=!0;var r=new Promise((function(t){(0,l.doTimeout)("".concat(i.impl.uuid,".two_seconds_elapsed"),t,2e3)}));this.allMountedPromise=Promise.race([r,Promise.all(this.mountPromises)]).catch((function(t){setTimeout((function(){throw t}),0)})).then((function(){i.allMounted=!0,i.render().then(n)})),0===this.mountPromises.length&&n(),this.doneWaitingForPlay?this.allMountedPromise.then((function(){i.showVideoWrapper()})):((0,l.doTimeout)("".concat(this.impl.uuid,".bail_on_autoplay"),(function(){i.doneWaitingForPlay||(i.doneWaitingForPlay=!0,i.showVideoWrapper(),i.render())}),2e3),this.showVideoWrapperAfterInitialPlay())}}catch(t){setTimeout((function(){throw t}),0)}finally{this.isRendering=!1}else this.isRendering=!1}},{key:"resetCssReset",value:function(){var t=Boolean(this.impl._attrs.controlBarBorderRadius||this.impl._attrs.bigPlayButtonBorderRadius);this.cssResetStyle&&this._previousBorderRadiusOn!==t&&((0,h.elemRemove)(this.cssResetStyle),this.cssResetStyle=null,this._previousBorderRadiusOn=t)}},{key:"setControlProps",value:function(){var t=this,e=this.impl,n=this.anyDialogOpen(),i=this.isChromeless(),r=this.shouldShowControls(),o=this.isHovering,a=this.isMostRecentFocusViaMouse,s=e.playerLanguage(),u=this.scale(),l=this.videoHeight(),d=this.videoWidth(),p=this.vulcOffset=(0,h.elemOffset)(e.grid.center),f=this.bottomBarOffset={left:p.left,top:p.top+this.videoHeight()-this.controlBarHeight()},v=0;this.getControlsByType("control-bar-left").forEach((function(o,c){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(o),height:Math.round(N(o)*u),isMostRecentFocusViaMouse:a,left:v,isLeftMostControl:0===v,isRightMostControl:e.isControlDisabled("playbar"),playerLanguage:s,scale:u,videoHeight:l,videoWidth:d,width:Math.round(W(o))*u},v+=o.props.width})),this.leftControlWidth=v;var y=this.getControlsByType("control-bar-right","wistia-logo","ellipsis");y.forEach((function(o,c){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(o),height:Math.round(N(o)*u),isMostRecentFocusViaMouse:a,isLeftMostControl:0===c&&e.isControlDisabled("playbar"),isRightMostControl:c===y.length-1,playerLanguage:s,scale:u,videoHeight:l,videoWidth:d,width:Math.round(W(o))*u},"volumeButton"===o.constructor.handle&&c===y.length-2&&(o.props.isRightMostControl=!0),"volumeSlider"===o.constructor.handle&&c===y.length-1&&(o.props.isRightMostControl=!1)}));var m=0;this.getControlsByType("ellipsis").slice().reverse().forEach((function(t){m+=t.props.width,t.props.left=d-m})),this.ellipsisWidth=m;var g=0;this.getControlsByType("wistia-logo").slice().reverse().forEach((function(t){m+=Math.round(t.largestButtonWidth)*u,g+=t.props.width,t.props.left=d-m})),this.wistiaLogoWidth=g,this.getControlsByType("control-bar-right").slice().reverse().forEach((function(t){m+=t.props.width,t.props.left=d-m})),this.rightControlWidth=m;var b=this.leftControlWidth+(this.ellipsisWidth>0?this.ellipsisWidth+this.wistiaLogoWidth:this.rightControlWidth),_=d-b,w=this.getControlsByType("playbar")[0];w&&(w.__prevProps=w.props,w.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:this.createFocusNextControlFunction(w),height:this.controlBarHeight(),isMostRecentFocusViaMouse:a,left:v,playerLanguage:s,scale:u,videoHeight:l,videoWidth:d,width:_}),this.playbarControlWidth=_;var E=this.controlBarHeight();["background","foreground","left-flyout","above-control-bar","right-flyout"].forEach((function(e){(t.controlsByType[e]||[]).forEach((function(e){e.__prevProps=e.props,e.props={anyDialogOpen:n,chromeless:i,controlBarHeight:E,isFocusable:t.allMounted&&t.doneWaitingForPlay,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(e),isHoveringOnPlayer:o,isMostRecentFocusViaMouse:a,playerLanguage:s,scale:u,videoHeight:l,videoWidth:d}}))}));var O=f.top;this.eachButtonControl((function(t){t.props.top=O})),w&&(0,c.assign)(w.props,{top:O}),this.eachControl((function(e){e.props.bigPlayButtonBorderRadius=t.bigPlayButtonBorderRadius(),e.props.controlBarBorderRadius=t.controlBarBorderRadius(),e.props.controlBarDistance=t.controlBarDistance(),e.props.controlBarWidth=t.controlBarWidth(),e.props.leftControlBarWidth=t.leftControlWidth,e.props.playerBorderRadius=t.playerBorderRadius(),e.props.rightControlBarWidth=t.rightControlWidth})),this.forControls(["captions"],(function(e){e.props.captionsBackgroundColor=t.captionsBackgroundColor(),e.props.captionsBackgroundOpacityPercentage=t.captionsBackgroundOpacityPercentage(),e.props.captionsTextColor=t.captionsTextColor(),e.props.captionsTextSize=t.captionsTextSize(),e.props.captionsTextOpacityPercentage=t.captionsTextOpacityPercentage(),e.props.captionsFontFamily=t.captionsFontFamily(),e.props.captionsFontVariant=t.captionsFontVariant(),e.props.captionsBorderRadius=t.captionsBorderRadius(),e.props.captionsTextShadow=t.captionsTextShadow(),e.props.captionsWindowColor=t.captionsWindowColor(),e.props.captionsWindowOpacityPercentage=t.captionsWindowOpacityPercentage()}))}},{key:"runOnControlPropsUpdated",value:function(t){t.forEach((function(t){if("function"==typeof t.onControlPropsUpdated)try{t.onControlPropsUpdated(t.__prevProps||{})}catch(t){setTimeout((function(){throw t}),0)}t.__prevProps=null}))}},{key:"setupControls",value:function(){var t=this,e=this.impl,n=!1,i=[],r=function(){var r=t.controls[o];if(F[r.constructor.type]){var a=r.constructor.shouldMount;if(e.isControlDisabled(o)||a&&!a(e.publicApi)){if(r.destroy)try{r.destroy()}catch(t){setTimeout((function(){throw t}),1)}r.__destroyed=!0,delete t.mountRefs[o],delete t.buttonMountRefs[o],delete t.controls[U(r)],n=!0,i.push(r),e.trigger("controldestroyed",o)}}};for(var o in this.controls)r();var a=!1,s=[],u=[],l=function(n){var i=p.Wistia._controlDefinitions[n];if(F[i.type]){var r=null!=t.controls[n],o=!e.isControlDisabled(n)&&(null==i.shouldMount||i.shouldMount(e.publicApi));if(o&&r&&u.push(t.controls[n]),!r&&o){try{var l=t.controls[n]=new i(e);l.mounted=new Promise((function(t){l.__didMount=function(){l.mounted.isResolved=!0,e.trigger("controlmounted",n),t()}})),s.push(l)}catch(t){setTimeout((function(){throw t}),1)}a=!0}}};for(var c in p.Wistia._controlDefinitions)l(c);if(a||n){var d={};for(var h in this.eachControl((function(t){var e=t.constructor.type;null==d[e]&&(d[e]=[]),d[e].push(t)})),d)d[h].sort((function(t,e){return(t.constructor.sortValue||0)-(e.constructor.sortValue||0)}));this.controlsByType=d,e.publicApi.controls=e.controls=this.controls}return{newControls:s,existingControls:u,destroyedControls:i}}},{key:"whenControlMounted",value:function(t){var e=this;return new Promise((function(n){var i=e.controls[t];i&&i.mounted?i.mounted.then((function(){n(i)})):e.impl.bind("controlmounted",(function(i){if(i===t)return n(e.controls[t]),e.impl.unbind}))}))}},{key:"mountControls",value:function(t){var e=this;t.forEach((function(t){var n=t.constructor.type,i=U(t),r=e.mountRefs[i];if(t.nextControlOfSameType||(t.nextControlOfSameType=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return e.nextControlOfSameType(n)}),t.loading||(t.loading=function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"control-bar-right"===n?e.renderButtonWithDialogLoader(t,i):e.renderHourglassLoader(i,r)}),"control-bar-left"===n||"control-bar-right"===n||"wistia-logo"===n||"ellipsis"===n)if(t.mountButton){var o=e.renderButtonWithDialog(t);e.mountControl(t,(function(){return t.mountButton(o)}))}else t.mount&&e.mountControl(t,(function(){return t.mount(r)}));else e.mountControl(t,(function(){return t.mount(r)}));t.eventListeners instanceof Map&&t.eventListeners.forEach((function(e,n){t.embedElement.addEventListener(n,e)}))}))}},{key:"mountControl",value:function(t,e){try{var n=U(t),i=e();i&&i.then&&i.catch?(i.handle=n,this.mountPromises.push(i),i.then((function(){t.__didMount()}))):t.__didMount()}catch(t){setTimeout((function(){throw t}),0)}}},{key:"renderButtons",value:function(t){var e=this;t.forEach((function(t){t.mountButton&&e.renderButtonWithDialog(t)}))}},{key:"renderButtonWithDialog",value:function(t){var e=this,n=U(t);if(this.impl){try{t.mountDialog&&!t.dialog&&(t.dialog=new y.default(this,{dialogWillOpen:V(t.controlDialogWillOpen,t),dialogOpened:V(t.controlDialogOpened,t),dialogWillClose:V(t.controlDialogWillClose,t),dialogClosed:V(t.controlDialogClosed,t),control:t}),this.dialogs.push(t.dialog))}catch(t){setTimeout((function(){throw t}),0)}if(t.setButtonLabel||(t.setButtonLabel=function(n){t.__buttonLabel=n,e.renderButtonWithDialog(t)}),this.mountRefs[n]){var i,r=!this.impl.publicApi.popover||this.impl.publicApi.popover.isVisible()?0:-1;return(0,o.render)((0,o.h)(v.default,T({},t.props,{buttonLabel:t.__buttonLabel,buttonRef:function(e){t.buttonElement=e},closeDialogOnFocusOut:this.impl._opts.closeDialogsOnFocusOut,color:this.impl.playerColor(),control:t,key:"".concat(n,"_button_and_dialog"),onBlurButton:this.onBlurButton,onFocusButton:this.onFocusButton,rootRef:function(t){return e.buttonMountRefs[n]=t},stubRef:function(t){return i=t},tabIndex:r,videoState:this.impl.state()})),this.mountRefs[n]),i}}}},{key:"renderButtonWithDialogLoader",value:function(t,e){var n=this;return new Promise((function(i){var o="".concat(n.impl.uuid,".loading_dialog_indicator.").concat((0,r.seqId)());(0,l.doTimeout)(o,(function(){n.setLoadingDialogAndRender(t,!0),x.touchScreen?(0,h.elemBind)(document,"touchstart",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind})):(0,h.elemBind)(document,"mousedown",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind}))}),300),e.then((function(){(0,l.clearTimeouts)(o),n.setLoadingDialogAndRender(t,!1),i()}))}))}},{key:"setLoadingDialogAndRender",value:function(t,e){t.__isDialogLoading=e,this.renderButtonWithDialog(t)}},{key:"renderHourglassLoader",value:function(t,e){var n=this;return new Promise((function(i){var o="".concat(n.impl.uuid,".loading_indicator.").concat((0,r.seqId)());(0,l.doTimeout)(o,(function(){n.controls.loadingHourglass.show(e),x.touchScreen?(0,h.elemBind)(document,"touchstart",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind})):(0,h.elemBind)(document,"mousedown",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind}))}),300),t.then((function(){(0,l.clearTimeouts)(o),n.controls.loadingHourglass.hide(),i()}))}))}},{key:"forControl",value:function(t,e){var n=this.controls[t];n&&F[n.constructor.type]&&e(n)}},{key:"forControls",value:function(t,e){var n=this;t.forEach((function(t){n.forControl(t,e)}))}},{key:"eachControl",value:function(t){for(var e in this.controls)F[this.controls[e].constructor.type]&&t(this.controls[e])}},{key:"eachButtonControl",value:function(t){this.getControlsByType("control-bar-left","control-bar-right","wistia-logo","ellipsis").forEach(t)}},{key:"spaceForPlaybar",value:function(){var t=0;return this.eachButtonControl((function(e){t+=W(e)})),this.videoWidth()-t*this.scale()}},{key:"controlBarHeight",value:function(){var t=this.impl;return this.isBeforePlayOrReset()&&!t._attrs.controlsVisibleOnLoad||this.isChromeless()?0:Math.round(g.BASE_CONTROL_BAR_HEIGHT_PX*this.scale())}},{key:"isBeforePlayOrReset",value:function(){var t=this.impl;return"beforeplay"===t.state()||t._opts&&"reset"===t._attrs.endVideoBehavior&&"ended"===t.state()}},{key:"shouldShowControls",value:function(){var t=this.impl;return!(this.isChromeless()||t.publicApi.popover&&!t.publicApi.popover.isVisible()||(this.isBeforePlayOrReset()&&this.doneWaitingForPlay?!0!==t._attrs.controlsVisibleOnLoad:!this.hasRequestedControlsVisible()&&(x.touchScreen?null==this.tappedToHide||this.tappedToHide||"playing"===t.state()&&!this.anyDialogOpen()&&!(this.lastMovedMouseAt&&Date.now()-this.lastMovedMouseAt<3e3&&this.lastMovedMouseAt>t.lastPlayInfo().issuedAt):!this.anyDialogOpen()&&!this.isKeyboardFocused&&(!t.inFullscreen()&&!this.isHovering||!(this.lastMovedMouseAt&&Date.now()-this.lastMovedMouseAt<3e3)&&this.lastMouseMoveWasFromBackground))))}},{key:"hasRequestedControlsVisible",value:function(){var t=this.impl._visibilityRequests;for(var e in t)if(t[e])return!0;return!1}},{key:"createFocusNextControlFunction",value:function(t){var e=this,n=this.nextVisibleFocusableControl(t);return function(t){var i=n;t&&(i=e.nextVisibleFocusableControl(t));var r=U(i),o=e.mountRefs[r];return e.focusNextVisibleElem(o)}}},{key:"focusNextVisibleElem",value:function(t){for(var e=t||this.impl.uiContainer,n=this.getVisibleFocusableElems(e),i=0,r=0;r<n.length;r++)if(document.activeElement===n[r]){i=r;break}return 0!==n.length&&(i===n.length-1?n[0].focus():n[i+1].focus(),!0)}},{key:"getVisibleFocusableElems",value:function(t){var e=t.querySelectorAll('button, [href], input, select, textarea, [tabindex="0"]');return Array.prototype.slice.call(e).filter((function(t){return!(0,h.elemIsHidden)(t)}))}},{key:"updateFocusedControl",value:function(t){var e=this;this.eachControl((function(n){var i=n.constructor.handle,r=e.mountRefs[i];n.__isFocused=t&&(0,h.elemIsInside)(t,r)})),this.render()}},{key:"showControlsTimeout",value:function(){return this.impl.inFullscreen()||x.touchScreen?3e3:5e3}},{key:"togglePlay",value:function(){var t=this.impl;"playing"===t.state()?t.pause():t.play()}},{key:"showVideoWrapperAfterInitialPlay",value:function(){var t=this;this.impl.ready((function(){var e=[t.impl._playPromise,t.impl._seekPromise].filter((function(t){return null!=t}));return Promise.all(e).then((function(){t.showVideoWrapper()}))}))}},{key:"showVideoWrapper",value:function(){var t;null!==(t=this.impl)&&void 0!==t&&t.videoWrapper&&(0,h.elemStyle)(this.impl.videoWrapper,{clip:""})}},{key:"anyDialogOpen",value:function(){for(var t in this.controls){var e=this.controls[t];if(e.dialog&&e.dialog.isOpen())return!0}return!1}},{key:"openDialog",value:function(t){this.dialogs.forEach((function(e){e!==t&&e.close()})),this.render()}},{key:"closeDialog",value:function(t){this.render()}},{key:"resizeDialog",value:function(t){this.render()}},{key:"videoWidth",value:function(){return null!=this.cachedVideoWidth?this.cachedVideoWidth:this.cachedVideoWidth=this.impl.videoWidth()}},{key:"videoHeight",value:function(){return null!=this.cachedVideoHeight?this.cachedVideoHeight:this.cachedVideoHeight=this.impl.videoHeight()}},{key:"scale",value:function(){return null!=this._scale?this._scale:"auto"!==this.impl.controlScaling()?this.impl.controlScaling():this._scale=Math.min(1.3,Math.max(.95,(0,s.controlMultiplierBasedOnVideo)(this.impl)))}},{key:"destroy",value:function(){for(var t in this._isDestroying=!0,this.buttonMountRefs)P(this.buttonMountRefs,t)&&(0,o.render)((0,o.h)("nothing",null),this.mountRefs[t]);var n,i,r,a,s;(0,o.render)((0,o.h)("nothing",null),this.impl.uiContainer),this.eachControl((function(t){if(t.destroy)try{t.destroy()}catch(t){setTimeout((function(){throw t}),0)}t.__destroyed=!0})),this.unbinds.forEach((function(t){return t()})),(0,h.elemRemove)(this.cssResetStyle),this.cssResetStyle=null,(n=e,i="destroy",r=this,s=M(I(1&(a=3)?n.prototype:n),i,r),2&a&&"function"==typeof s?function(t){return s.apply(r,t)}:s)([])}},{key:"nextVisibleFocusableControl",value:function(t){var e=this.nextControlOfSameType(t);if(e)return e;for(var n,i=t.constructor.handle,r=Object.keys(this.mountRefs),o=r.indexOf(i)+1,a=r.slice(o),s=0;s<a.length;s++){var u=this.mountRefs[a[s]];if(this.getVisibleFocusableElems(u).length>0){n=a[s];break}}return n||void 0}},{key:"nextControlOfSameType",value:function(t){var e=t.constructor.type,n=this.controlsByType[e],i=n.indexOf(t),r=n[i+1];return"control-bar-left"===e&&(!r&&this.controlsByType.playbar&&(r=this.controlsByType.playbar[0]),!r&&this.controlsByType["control-bar-right"]&&(r=this.controlsByType["control-bar-right"][0]),!r&&this.controlsByType["wistia-logo"]&&(r=this.controlsByType["wistia-logo"][0]),!r&&this.controlsByType.ellipsis&&(r=this.controlsByType.ellipsis[0])),r}},{key:"hasAnyVideoChromeControls",value:function(){for(var t in this.controls){var e=this.controls[t];if(e.constructor.isVideoChrome||R(e.constructor.type))return!0}return!1}},{key:"hasRequestedChromeless",value:function(){var t=this.impl._visibilityRequests;for(var e in t)if(!1===t[e])return!0;return!1}},{key:"isChromeless",value:function(){return this.inNativeMode()||this.impl._opts.chromeless||this.hasRequestedChromeless()||!this.hasAnyVideoChromeControls()}},{key:"inNativeMode",value:function(){var t=this.impl._opts;return!0===t.nativeMode||x.ipad&&x.ios.version&&x.ios.version<10.1||!1===t.playsinline&&(x.ipad||x.iphone||x.android)}},{key:"cssResetContent",value:function(){var t="#".concat(this.impl.chrome.id," #").concat(this.impl.grid.wrapper.id),e=(0,i.cssResetForSelector)("".concat(t," "),".w-css-reset"),n=(0,i.cssResetForSelector)("".concat(t," .w-css-reset-tree "),""),r=Boolean(this.impl._attrs.controlBarBorderRadius||this.impl._attrs.bigPlayButtonBorderRadius)?"":"border-radius:0!important;";return"\n ".concat(e,"\n ").concat(n,"\n ").concat(t," .w-css-reset-max-width-none-important{max-width:none!important}\n ").concat(t," .w-css-reset-button-important{").concat(r,"color:#fff!important;}\n ")}},{key:"hasRendered",value:function(){return!!this.allMounted}},{key:"shouldShowMoreDefaultValue",value:function(){return(this.rightControlWidth-this.ellipsisWidth)/this.videoWidth()<.35}},{key:"isShowingMore",value:function(){if(this.controlsByType.ellipsis){var t=this.getControlsByType("playbar");return 0===t.length||!(t.filter((function(t){return t.__isFocused})).length>0)&&(!!(this.getControlsByType("control-bar-right").filter((function(t){return t.__isFocused})).length>0)||(null!=this._isShowingMore?this._isShowingMore:this.shouldShowMoreDefaultValue()))}}},{key:"playerBorderRadius",value:function(){return this.impl._attrs.playerBorderRadius*this.scale()}},{key:"showMore",value:function(){return this._isShowingMore=!0,this.render()}},{key:"showLess",value:function(){return this.dialogs.forEach((function(t){return t.close()})),this._isShowingMore=!1,this.render()}},{key:"getControlsByType",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(1===n.length&&this.controlsByType[n[0]])return this.controlsByType[n[0]];var r=[];return n.forEach((function(e){r.push.apply(r,k(t.controlsByType[e]||[]))})),r}},{key:"setAriaLiveText",value:function(t){this._ariaLiveText=t,this.render()}}],u&&C(n.prototype,u),f&&C(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u,f}(f.PlayerBehavior);H.handle="ui";var V=function(t,e){return t?t.bind(e):null},U=function(t){return t.constructor.handle};const z=H},(t,e,n)=>{n.d(e,{default:()=>g});var i=n(3),r=n(2),o=n(45),a=n(9),s=n(74),u=n(248),l=n(250),c=n(251);function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function h(t,e,n){return e=f(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}const g=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),y(t=h(this,e),"onClickButton",(function(){var e=t.props.control;if(e.buttonElement.focus(),!1!==e.toggleDialogOnClick){var n=e.dialog;n&&(n.isOpen()?n.close():((0,s.countMetric)("player/control-button-click",1,{control:e.constructor.handle,desktop:!(0,a.detectIsMobile)(),mobile:(0,a.detectIsMobile)()}),n.open()))}e.onClickButton&&((0,s.countMetric)("player/control-button-click",1,{control:e.constructor.handle,desktop:!(0,a.detectIsMobile)(),mobile:(0,a.detectIsMobile)()}),e.onClickButton())})),y(t,"onKeyboardFocusButton",(function(e){if(e.relatedTarget!==t.dummyElem){var n=t.props,i=n.control,r=n.onFocusButton;r&&r(e,i),i.onFocusInButton&&i.onFocusInButton(e)}})),y(t,"onBlurButton",(function(e){var n=t.props,i=n.closeDialogOnFocusOut,r=n.control,o=n.onBlurButton,a=r.dialog;setTimeout((function(){var n=t.getActiveElement();!1!==i&&!1===t.state.isMouseInDialog&&t.isNewElemOutsideOfBase(n,t.base)&&a&&a.close(),o&&o(e,r),r.onFocusOutButton&&r.onFocusOutButton(e)}),150)})),y(t,"onKeyDownButton",(function(e){var n=t.props.control;n.onKeyDownButton&&n.onKeyDownButton(e)})),y(t,"onMouseEnterDialog",(function(){t.setState({isMouseInDialog:!0})})),y(t,"onMouseLeaveDialog",(function(){t.setState({isMouseInDialog:!1})})),y(t,"onMouseEnter",(function(e){t._isHovering=!0;var n=t.props.control;n.onMouseEnter&&n.onMouseEnter(e)})),y(t,"onMouseLeave",(function(e){t._isHovering=!1;var n=t.props.control;n.onMouseLeave&&n.onMouseLeave(e)})),y(t,"onMouseDown",(function(){t._isMouseDown=!0,t._lastClickedElem=t.getActiveElement(),(0,i.elemBind)(document,"mouseup",t.onMouseUp)})),y(t,"onMouseUp",(function(){t._isMouseDown=!1,(0,i.elemUnbind)(document,"mouseup",t.onMouseUp)})),y(t,"onFocusOut",(function(){setTimeout((function(){var e,n=t.props.control;!1!==t.props.closeDialogOnFocusOut&&n.dialog&&n.dialog.isOpen()&&(!t.getActiveElement()||t.isNewElemOutsideOfBase(t.getActiveElement(),t.base))&&(t.getActiveElement()&&t.getActiveElement().tagName.match(/input|button/i)||!0!==t.state.isMouseInDialog||!(0,o.isMouseDownRecently)()&&!t._isMouseDown?n.dialog.close():null===(e=t._lastClickedElem)||void 0===e||e.focus({preventScroll:!0}))}),500)})),y(t,"onBeforeDisplayNone",(function(){var e=t.props.control;if(t.dialogElem&&t.getActiveElement()&&(0,i.elemIsInside)(t.getActiveElement(),t.dialogElem)){var n=e.nextControlOfSameType();n&&n.buttonElement?n.buttonElement.focus():e.buttonElement.focus()}})),y(t,"dialogRefFn",(function(e){t.dialogElem=e,t.props.dialogRef&&t.props.dialogRef(e)})),t.state={isMouseInDialog:!1},t}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(e,t),n=e,p=[{key:"getActiveElement",value:function(){return"WISTIA-PLAYER"===this.props.control.embedElement.tagName?this.props.control.embedElement.shadowRoot.activeElement:document.activeElement}},{key:"render",value:function(){var t=this.props.control,e=t.mountDialog&&t.dialog&&t.dialog.hasOpened();return(0,r.h)("div",{class:"w-vulcan-button-wrapper w-css-reset",style:this.wrapperStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onfocusout:this.onFocusOut,ref:this.props.rootRef},this.renderControlBarButton(),e?this.renderControlBarDialog():null)}},{key:"componentDidMount",value:function(){var t=this.props.buttonRef;t&&t(this.buttonElem)}},{key:"componentDidUpdate",value:function(){var t=this.props.buttonRef;t&&t(this.buttonElem)}},{key:"renderControlBarButton",value:function(){var t=this,e=this.props,n=this.props.control,i=n.mountDialog&&n.dialog&&n.dialog.isOpen();return(0,r.h)(l.default,{buttonLabel:this.props.buttonLabel,buttonRef:function(e){return t.buttonElem=e},controlBarBorderRadius:this.props.controlBarBorderRadius,controlsAreVisible:this.props.controlsAreVisible,disabled:n.disabledButton,handle:e.control.constructor.handle,isActuallyLink:!!n.isActuallyLink&&n.isActuallyLink(),isDialogOpen:i,isLeftMostControl:this.props.isLeftMostControl,isLoading:e.control.__isDialogLoading||!1,isRightMostControl:this.props.isRightMostControl,linkAttrs:n.linkAttrs?n.linkAttrs():{},onBlur:this.onBlurButton,onClick:this.onClickButton,onKeyDownButton:this.onKeyDownButton,onKeyboardFocus:this.onKeyboardFocusButton,scale:e.scale,stubRef:e.stubRef,tabIndex:e.tabIndex,videoState:this.props.videoState})}},{key:"isNewElemOutsideOfBase",value:function(t,e){return!t||!(0,i.elemIsInside)(t,e)}},{key:"renderControlBarDialog",value:function(){var t=this.props,e=t.control,n=c.BASE_CONTROL_BAR_HEIGHT_PX*t.scale,i=t.videoHeight-t.controlBarDistance-n-10;return(0,r.h)(u.default,{canvasHeight:i,canvasWidth:t.controlBarWidth,controlBarBorderRadius:t.controlBarBorderRadius,dialogRef:this.dialogRefFn,handle:"".concat(e.constructor.handle,"__dialog"),isOpen:e.dialog.isOpen(),left:e.props.left,mount:function(t){return e.mountDialog(t)},newLook:this.props.newLook,onBeforeDisplayNone:this.onBeforeDisplayNone,onMouseEnter:this.onMouseEnterDialog,onMouseLeave:this.onMouseLeaveDialog,controlBarDistance:t.controlBarDistance,resizeRequestedAt:e.dialog._resizeRequestedAt,scale:t.scale,top:e.props.top,videoWidth:t.videoWidth})}},{key:"wrapperStyle",value:function(){var t=this.props.control;return{display:"inline-block",height:"".concat(t.props.height,"px"),position:"relative",verticalAlign:"top",width:"".concat(t.props.width,"px")}}}],p&&d(n.prototype,p),f&&d(n,f),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p,f}(r.Component)},(t,e,n)=>{n.d(e,{default:()=>y});var i=n(3),r=n(2),o=(n(60),n(26)),a=n(249),s=n(70);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function l(t,e,n){return e=d(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function p(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var v=120;const y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(n=l(this,e,[t]),"initStubResizeObserver",(function(){n.stubElem&&(n._stubResizeObserver=new ResizeObserver((function(){n.measureUserElem()})),n._stubResizeObserver.observe(n.stubElem))})),p(n,"dialogRefFn",(function(t){n.dialogElem=t,n.props.dialogRef&&n.props.dialogRef(t)})),p(n,"handleTransitionsAfterRender",(function(){var t=n.props,e=n.state;t.isOpen?(e.isDisplayNone||e.isOpaque&&null==e.widthInButtons)&&n.setState({isDisplayNone:!1},(function(){n.measureUserElem(),n.setState({isOpaque:!0},(function(){setTimeout((function(){n.setState({isFullyOpen:!0})}),v)}))})):!e.isDisplayNone&&e.isOpaque&&n.setState({isOpaque:!1,isFullyOpen:!1},(function(){clearTimeout(n.displayNoneTimeout),n.displayNoneTimeout=setTimeout((function(){n.setState({isDisplayNone:!0})}),200)}))})),p(n,"measureUserElem",(function(){n.stubElem.style.width="";var t=(0,i.elemWidth)(n.stubElem),e=Number.isNaN(t)?120*n.props.scale:t;n.stubElem.style.width="100%";var r=Math.ceil(e/(40*n.props.scale));r===n.state.widthInButtons||isNaN(r)||n.setState({widthInButtons:r})})),p(n,"onTouchStart",(function(t){t._touchStartFromControlDialog=!0})),n.uuid=(0,o.seqId)(),n.state={isDisplayNone:!0,isOpaque:!1,widthInButtons:null},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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,c=[{key:"componentWillReceiveProps",value:function(t){this.props.resizeRequestedAt!==t.resizeRequestedAt&&this.setState({widthInButtons:null})}},{key:"componentWillUpdate",value:function(t,e){!0===e.isDisplayNone&&!1===this.state.isDisplayNone&&t.onBeforeDisplayNone&&t.onBeforeDisplayNone()}},{key:"render",value:function(){var t=this;return(0,r.h)("div",{class:"w-anchor w-css-reset",style:this.anchorStyle(),onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onTouchStart:this.onTouchStart},(0,r.h)("div",{class:"w-dialog w-css-reset",style:this.dialogStyle(),ref:this.dialogRefFn},(0,r.h)("div",{class:"w-css-reset",style:this.dialogContentWrapperStyle()},(0,r.h)(s.RawHTMLStub,{style:this.stubStyle(),stubRef:function(e){return t.stubElem=e},handle:this.props.handle,class:"w-css-reset"}))))}},{key:"componentDidMount",value:function(){var t=this.props.mount(this.stubElem);t&&t.then&&t.catch?this.mountPromise=t:this.mountPromise=Promise.resolve(),this.mountPromise.then(this.handleTransitionsAfterRender),this.unbindWhenWistiaPlayerInterLoaded=(0,a.whenWistiaPlayerInterLoaded)(this.measureUserElem),this.initStubResizeObserver()}},{key:"componentDidUpdate",value:function(){this.mountPromise&&this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentWillUnmount",value:function(){this.unbindWhenWistiaPlayerInterLoaded(),this._stubResizeObserver&&this._stubResizeObserver.disconnect()}},{key:"anchorStyle",value:function(){return{height:0,left:0,position:"absolute",top:0,width:"100%"}}},{key:"dialogContentWrapperStyle",value:function(){var t=this.state.isOpaque,e=t?48:0;return{opacity:t?1:0,transition:"opacity ".concat(100,"ms ease ").concat(e,"ms")}}},{key:"dialogStyle",value:function(){var t=this.props,e=t.canvasHeight,n=t.controlBarBorderRadius,i=t.controlBarDistance,r=this.state,o=r.isDisplayNone,a=r.isOpaque,s=this.dialogDimensions(),u=s.height,l=s.left,c=s.width,d=a?0:40,h="opacity ".concat(v,"ms ease ").concat(d,"ms, transform ").concat(v,"ms ease ").concat(d,"ms");return this.state.isFullyOpen&&(h+=", width ".concat(v,"ms ease, left ").concat(v,"ms ease")),{background:"rgba(0,0,0,0.7)",borderRadius:"".concat(n,"px"),bottom:"".concat(i,"px"),color:"#fff",display:o?"none":"block",left:l,lineHeight:"34px",height:u,maxHeight:"".concat(e,"px"),opacity:a?1:0,overflowX:"hidden",overflowY:"auto",position:"absolute",transition:h,transform:"scaleY(".concat(a?1:.6,")"),transformOrigin:"center bottom",width:c}}},{key:"dialogDimensions",value:function(){var t=this.props,e=t.canvasHeight,n=t.canvasWidth,i=t.scale,r=t.controlBarDistance,o=t.handle,a=t.left,s=t.videoWidth,u=this.state.widthInButtons;if(o.includes("multiControl")&&s<=400){var l=2*r,c=a-l;return{height:"".concat(e,"px"),left:"".concat(-c,"px"),width:"".concat(s-l,"px")}}var d=0,h=null;if(null!=u){h=Math.min(40*u*i,n);var p=this.props.left+h-2*r-n;p>0&&(d=-1*p)}return{height:"auto",left:"".concat(d,"px"),width:"".concat(h,"px")}}},{key:"stubStyle",value:function(){return{boxSizing:"border-box",display:"inline-block",height:"100%",verticalAlign:"bottom",width:"100%"}}}],c&&u(n.prototype,c),d&&u(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c,d}(r.Component)},(t,e,n)=>{n.d(e,{whenWistiaPlayerInterLoaded:()=>i});var i=function(t){var e=function(e){Array.from(e.fontfaces).some((function(t){return"WistiaPlayerInter"===t.family}))&&t()};return document.fonts.addEventListener("loadingdone",e),function(){document.fonts.removeEventListener("loadingdone",e)}}},(t,e,n)=>{n.d(e,{default:()=>w});var i=n(34),r=n(2),o=n(9),a=n(45),s=n(4),u=n(70),l=n(68);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(null,arguments)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var _=(0,o.cachedDetect)();const w=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(n=f(this,e,[t]),"onFocus",(function(t){n.setState({isKeyboardFocused:!(0,a.isMouseDownRecently)()}),!(0,a.isMouseDownRecently)()&&n.props.onKeyboardFocus&&n.props.onKeyboardFocus(t)})),g(n,"onBlur",(function(t){n.setState({isKeyboardFocused:!1}),n.props.onBlur&&n.props.onBlur(t)})),g(n,"onMouseDown",(function(){n.setState({justClicked:!0})})),g(n,"onMouseUp",(function(){n.setState({justClicked:!1})})),g(n,"onMouseEnter",(function(){n.setState({isHovering:!0})})),g(n,"onMouseLeave",(function(){n.setState({isHovering:!1})})),n.interval=void 0,n.state={isKeyboardFocused:!1,isHovering:!1,justClicked:!1,opacity:1},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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,o=[{key:"render",value:function(){var t=this,e=this.props,n=e.buttonLabel,i=h({class:"w-vulcan-v2-button w-css-reset w-css-reset-tree w-css-reset-button-important",style:this.buttonStyle(),"aria-label":n,title:n,onClick:function(){e.disabled||e.onClick()},onKeyDown:function(t){e.onKeyDownButton(t)},onMouseDown:!_.touchScreen&&!e.disabled&&this.onMouseDown,onMouseUp:!_.touchScreen&&!e.disabled&&this.onMouseUp,onTouchStart:_.touchScreen&&this.onMouseDown,onTouchEnd:_.touchScreen&&this.onMouseUp,elemRef:function(n){t.buttonElem=n,e.buttonRef&&e.buttonRef(n)},tabIndex:e.tabIndex},e.linkAttrs);void 0!==e.isDialogOpen&&(i["aria-expanded"]="".concat(e.isDialogOpen)),_.touchScreen||(i.onFocus=this.onFocus,i.onBlur=this.onBlur,i.onMouseEnter=this.onMouseEnter,i.onMouseLeave=this.onMouseLeave),e.disabled&&(i["aria-disabled"]=!0);var o=e.isActuallyLink?"a":"button";return(0,r.h)(l.CustomEventsWrapper,c({tagName:o},i),(0,r.h)(u.RawHTMLStub,{class:"w-vulcan-icon-wrapper",style:this.stubStyle(),stubRef:function(e){return t.stubRoot=e},handle:"".concat(this.props.handle,"_icon_wrapper")}))}},{key:"componentDidMount",value:function(){this.props.mount&&this.props.mount(this.stubRoot,this.anchorRoot,this.buttonElem),this.props.stubRef&&this.props.stubRef(this.stubRoot)}},{key:"createLoadingInterval",value:function(){var t=this;this.interval=setInterval((function(){var e=.2===t.state.opacity?.8:.2;t.setState({opacity:e})}),400)}},{key:"clearLoadingInterval",value:function(){clearInterval(this.interval),this.setState({opacity:1})}},{key:"componentWillReceiveProps",value:function(t){!1===this.props.isLoading&&!0===t.isLoading?this.createLoadingInterval():!0===this.props.isLoading&&!1===t.isLoading&&this.clearLoadingInterval()}},{key:"componentDidUpdate",value:function(){(0,s.assign)(this.stubRoot.style,this.stubStyle()),this.props.stubRef&&this.props.stubRef(this.stubRoot)}},{key:"rootStyle",value:function(){return{height:"100%",position:"relative",width:"100%"}}},{key:"buttonStyle",value:function(){var t=this.state,e=t.isHovering,n=t.isKeyboardFocused,r=this.props,o=r.controlBarBorderRadius,a=r.isActuallyLink,s=new i.Color("#000"),u=e&&!this.props.disabled?.2:0;s.alpha(u);var l=a?{display:"block",outline:"none"}:{};return h({backgroundColor:s.toRgba(),borderBottomLeftRadius:this.props.isLeftMostControl?"".concat(o,"px"):0,borderBottomRightRadius:this.props.isRightMostControl?"".concat(o,"px"):0,borderTopLeftRadius:this.props.isLeftMostControl?"".concat(o,"px"):0,borderTopRightRadius:this.props.isRightMostControl?"".concat(o,"px"):0,boxShadow:n?"0 0 0 2px #fff inset":"none",cursor:this.props.disabled?"not-allowed":"pointer",height:"100%",position:"relative",transition:"background-color 150ms",width:"100%"},l)}},{key:"stubStyle",value:function(){var t=this.state.justClicked;return{boxSizing:"border-box",height:"100%",position:"relative",opacity:this.props.disabled?.5:1,transform:"scale(".concat(t?1.2:1.001,")"),transition:"transform 200ms"}}},{key:"getOpacity",value:function(){return this.props.controlsAreVisible?null!=this.state.opacity?this.state.opacity:1:0}}],o&&p(n.prototype,o),d&&p(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,d}(r.Component)},(t,e,n)=>{n.d(e,{BASE_CONTROL_BAR_HEIGHT_PX:()=>i,DEFAULT_BUTTON_WIDTH_PX:()=>r});var i=34,r=40},(t,e,n)=>{n.d(e,{default:()=>u});var i=n(15);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var s=function(){return t=function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"dialogWillOpen",(function(){return new Promise((function(t){if(n.config.dialogWillOpen){var e=n.config.dialogWillOpen();if(e&&e.then)return void e.then(t)}t()}))})),o(this,"doOpen",(function(){return new Promise((function(t){n._isOpen?t():(n._isOpen=!0,n._hasOpened=!0,n.ui.openDialog(n),setTimeout(t,170))}))})),o(this,"dialogOpened",(function(){return new Promise((function(t){n.config.dialogOpened&&n.config.dialogOpened(),t()}))})),o(this,"close",(function(){return n.control.mounted.then((function(){return n.isOpen()?n.dialogWillClose().then(n.doClose).then(n.dialogClosed):Promise.resolve()}))})),o(this,"dialogWillClose",(function(){return new Promise((function(t){if(n.config.dialogWillClose){var e=n.config.dialogWillClose();if(e&&e.then)return void e.then(t)}t()}))})),o(this,"doClose",(function(){return new Promise((function(t){n._isOpen?(n._isOpen=!1,n.ui.closeDialog(n),setTimeout(t,200)):t()}))})),o(this,"dialogClosed",(function(){return new Promise((function(t){n.config.dialogClosed&&n.config.dialogClosed(),t()}))})),this.ui=e,this.config=i,this._isOpen=!1,this._hasOpened=!1,this.control=i.control},(e=[{key:"open",value:function(){var t=this;if("beforeplay"!==this.ui.impl.state()||this.ui.impl._attrs.controlsVisibleOnLoad)return this.control.mounted.then((function(){return t.isOpen()?Promise.resolve():t.dialogWillOpen().then(t.doOpen).then(t.dialogOpened)}))}},{key:"isOpen",value:function(){return this._isOpen}},{key:"hasOpened",value:function(){return this._hasOpened}},{key:"resize",value:function(){this._resizeRequestedAt=Date.now(),this.ui.resizeDialog(this)}}])&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();(0,i.bindify)(s.prototype);const u=s},(t,e,n)=>{n.d(e,{default:()=>O});var i=n(34),r=n(2),o=n(9),a=n(4),s=n(3),u=n(45),l=n(68),c=n(70);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,v()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(v=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}var _=(0,o.cachedDetect)(),w=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),g(n=f(this,e,[t]),"onFocus",(function(){n.props.isMouseDownFromTouch||(0,u.isMouseDownRecently)()||n.setState({isKeyboardFocused:!0}),n.props.onFocusComplete()})),g(n,"onBlur",(function(){n.state.isKeyboardFocused&&n.setState({isKeyboardFocused:!1})})),g(n,"onFocusIn",(function(t){n.props.onfocusin&&n.props.onfocusin(t)})),g(n,"onFocusOut",(function(t){n.props.onfocusout&&n.props.onfocusout(t)})),g(n,"onClick",(function(t){if((0,u.isMouseDownRecently)()&&n.setState({isKeyboardFocused:!1}),E(t)&&t.preventDefault(),n.props.onClick)return n.props.onClick(t)})),g(n,"onTouchEnd",(function(t){if(n.props.onTouchEnd)return n.props.onTouchEnd(t)})),n.state={areControlsOpaque:t.shouldShowControls,isKeyboardFocused:!1},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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),n=e,o=[{key:"componentWillReceiveProps",value:function(t){this.handleControlBarAnimation(t)}},{key:"render",value:function(){var t=this;return this.mountRefs={},(0,r.h)(l.CustomEventsWrapper,{class:"w-vulcan-v2 w-css-reset",elemRef:this.props.layoutRef,id:this.props.domId,onBlur:this.onBlur,onClick:this.onClick,onDblClick:this.props.onDblClick,onFocus:this.onFocus,onfocusin:this.props.onfocusin,onfocusout:this.props.onfocusout,onKeyDown:this.props.onKeyDown,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onMouseMove:this.props.onMouseMove,onPinch:this.props.onPinch,onSwipe:this.props.onSwipe,onTouchEnd:this.onTouchEnd,onTouchMove:this.props.onTouchMove,onTouchStart:this.props.onTouchStart,style:this.wrapperStyle()},(0,r.h)("div",{class:"w-vulcan--background w-css-reset",style:this.backgroundStyle(),ref:this.props.backgroundRef},this.renderControlCells("background")),(0,r.h)("div",{"aria-live":"polite",class:"w-vulcan--aria-live w-css-reset","aria-atomic":"true",style:{position:"absolute",left:"-99999em"}},this.props.ariaLiveText),(0,r.h)("div",{class:"w-vulcan-overlays-table w-css-reset",style:this.layoutTableStyle()},(0,r.h)("div",{class:"w-vulcan-overlays--left w-css-reset",style:this.tdLeftStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("left-flyout",{height:"100%",pointerEvents:"auto"}))),(0,r.h)("div",{class:"w-vulcan-overlays--center w-css-reset",style:this.tdCenterStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("above-control-bar",{pointerEvents:"auto"}))),(0,r.h)("div",{class:"w-vulcan-overlays--right w-css-reset",style:this.tdRightStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("right-flyout",{height:"100%",pointerEvents:"auto"})))),(0,r.h)("div",{class:"w-bottom-bar w-css-reset",style:this.bottomBarStyle(),ref:function(e){return t.bottomBar=e}},(0,r.h)("div",{class:"w-bottom-bar-lower w-css-reset",style:this.bottomBarLowerStyle()},(0,r.h)("div",{style:this.leftBgStyle()},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.leftBgOverlayStyle()})),(0,r.h)("div",{style:this.rightBgStyle()},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.rightBgOverlayStyle()})),(0,r.h)("div",{class:"w-bottom-bar-left w-css-reset",style:this.bottomBarLeftStyle()},(0,r.h)("div",{class:"w-bottom-bar-left-inner w-css-reset",style:this.bottomBarLeftInnerStyle()},this.renderControlCells("control-bar-left",{display:"inline-block",verticalAlign:"top"}))),(0,r.h)("div",{class:"w-bottom-bar-middle w-css-reset",style:this.bottomBarMiddleStyle()},(0,r.h)("div",{class:"w-bottom-bar-middle-inner w-css-reset",style:this.bottomBarMiddleInnerStyle()},this.renderControlCells("playbar",this.playbarStyle()))),(0,r.h)("div",{class:"w-bottom-bar-right w-css-reset",style:this.bottomBarRightStyle()},(0,r.h)("div",{class:"w-bottom-bar-right-inner-anchor w-css-reset",style:this.bottomBarRightInnerAnchorStyle()},(0,r.h)("div",{class:"w-bottom-bar-right-inner w-css-reset",style:this.bottomBarRightInnerStyle()},this.renderControlCells("control-bar-right",{display:"inline-block",verticalAlign:"top"}))),(0,r.h)("div",{class:"w-wistia-logo w-css-reset",style:this.wistiaLogoStyle()},this.renderControlCells("wistia-logo",{display:"inline-block",verticalAlign:"top"})),(0,r.h)("div",{class:"w-ellipsis w-css-reset",style:this.ellipsisStyle()},this.renderControlCells("ellipsis",{display:"inline-block",verticalAlign:"top"}))))),(0,r.h)("div",{class:"w-foreground w-css-reset",style:this.foregroundStyle()},this.renderControlCells("foreground",{pointerEvents:"auto"})))}},{key:"componentDidMount",value:function(){this.props.mountRefs&&this.props.mountRefs(this.mountRefs),this.props.afterRender&&this.props.afterRender(),(0,s.addInlineCss)(this.bottomBar,"\n @media (prefers-reduced-motion: no-preference) {\n @keyframes w-control-bar-fade-in {\n 0% {\n opacity: 0;\n transform: translateX(50%) translateY(10px);\n }\n 100% {\n opacity: 1;\n transform: translateX(50%) translateY(0px);\n }\n }\n }\n ")}},{key:"componentDidUpdate",value:function(){var t=this.props.mountRefs,e=this.mountRefs,n=this.props.afterRender;setTimeout((function(){t&&t(e),n&&n()}),1)}},{key:"wrapperStyle",value:function(){var t=this.props.inFullscreen&&!this.props.shouldShowControls;return{borderRadius:"".concat(this.props.controlBarBorderRadius,"px"),boxSizing:"border-box",cursor:t?"none":"default",direction:"ltr",height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",visibility:this.props.allMounted&&this.props.doneWaitingForPlay?"visible":"hidden",top:0,width:"100%"}}},{key:"foregroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%",zIndex:1}}},{key:"backgroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",top:0,width:"100%"}}},{key:"layoutTableStyle",value:function(){return{display:"table",pointerEvents:"none",position:"absolute",width:"100%",height:"calc(100% - ".concat(this.props.controlBarHeight,"px)")}}},{key:"tdLeftStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdCenterStyle",value:function(){return this.standardCellStyle("100%","100%")}},{key:"tdRightStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdLayoutInnerStyle",value:function(){return{height:"100%"}}},{key:"bottomBarStyle",value:function(){var t=this.state.areControlsOpaque,e=this.props,n=e.videoState,i=e.controlBarBorderRadius,r=e.controlBarDistance,o=t||"beforeplay"!==n?"table":"none",a=r<2?0:r,s=e.shouldAnimateIn?{animation:"w-control-bar-fade-in ease-in-out 250ms",animationIterationCount:1,animationFillMode:"forwards"}:{};return h({bottom:"".concat(a,"px"),borderRadius:"".concat(i,"px"),borderCollapse:"collapse",display:o,height:"".concat(this.props.controlBarHeight,"px"),pointerEvents:"none",position:"absolute",paddingLeft:"".concat(a,"px"),paddingRight:"".concat(a,"px"),right:"50%",tableLayout:"auto",transform:"translate(50%)",width:"calc(100% - ".concat(2*a,"px)"),zIndex:1},s)}},{key:"bottomBarLeftStyle",value:function(){return(0,a.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarLeftInnerStyle",value:function(){return this.standardInnerStyle()}},{key:"bottomBarMiddleStyle",value:function(){return(0,a.assign)(this.standardCellStyle("100%"),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarMiddleInnerStyle",value:function(){var t=this.props,e=t.hasClickedToShowMore,n=t.isShowingMore&&this.isEllipsisShowing(),i=e?150:0;return h(h({},this.standardInnerStyle()),{},{opacity:n?0:1,pointerEvents:n?"none":"auto",transform:"translateY(".concat(n?"-25%":0,")"),transition:"opacity ".concat(i,"ms, transform ").concat(i,"ms")})}},{key:"shouldMixBlendMode",value:function(){return!_.edge&&!1===this.props.noMixBlendMode}},{key:"blendStyle",value:function(){var t=this.props.color;return{background:new i.Color(t||"#000").alpha(1).toRgba(),display:this.shouldMixBlendMode()?"block":"none",height:"100%",mixBlendMode:"darken",left:0,opacity:this.getOpacity(),position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"baseBgOverlayStyle",value:function(){var t=this.props,e=t.color,n=t.controlBarBorderRadius,r=new i.Color(e||"#000").alpha(.7);return this.shouldMixBlendMode()||r.alpha(.85),{background:r.toRgba(),borderRadius:"".concat(n,"px"),height:"100%",opacity:this.getOpacity(),left:0,position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bgGradientStyle",value:function(){var t=this.props.backgroundGradientCss;return null!=t?{background:t,backgroundSize:"".concat(this.props.videoWidth,"px")}:{}}},{key:"leftBgOverlayStyle",value:function(){return h(h({},this.baseBgOverlayStyle()),this.bgGradientStyle())}},{key:"rightBgOverlayStyle",value:function(){return h(h(h({},this.baseBgOverlayStyle()),this.bgGradientStyle()),{},{backgroundPositionX:"right"})}},{key:"bottomBarRightStyle",value:function(){return(0,a.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition(),whiteSpace:"nowrap"})}},{key:"bottomBarRightInnerAnchorStyle",value:function(){var t=h(h({},this.standardInnerStyle()),{},{display:"inline-block",position:"relative",right:0,top:0,verticalAlign:"top"});return this.isEllipsisShowing()&&(t.height=0),t}},{key:"bottomBarRightInnerStyle",value:function(){var t=this.props,e=t.hasClickedToShowMore,n=t.isShowingMore,i=!this.isEllipsisShowing()||n,r=e?150:0;return h(h({},this.standardInnerStyle()),{},{display:"inline-block",opacity:i?1:0,pointerEvents:i?"auto":"none",position:this.isEllipsisShowing()?"absolute":"relative",right:0,top:0,transform:"translateY(".concat(i?0:"25%",")"),transition:"opacity ".concat(r,"ms, transform ").concat(r,"ms")})}},{key:"wistiaLogoStyle",value:function(){return h(h({},this.standardInnerStyle()),{},{display:this.props.controlsByType["wistia-logo"]?"inline-block":"none",right:0,top:0})}},{key:"ellipsisStyle",value:function(){return h(h({},this.standardInnerStyle()),{},{display:this.props.controlsByType.ellipsis?"inline-block":"none"})}},{key:"standardCellStyle",value:function(t,e){return{display:"table-cell",height:null!=e?e:"auto",verticalAlign:"top",position:"relative",width:t}}},{key:"standardInnerStyle",value:function(){return{height:this.props.controlBarHeight,position:"relative",pointerEvents:this.state.areControlsOpaque?"auto":"none",whiteSpace:"nowrap"}}},{key:"renderControlCells",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(this.props.controlsByType[t]||[]).map((function(t){var i=t.constructor.handle;return(0,r.h)(c.RawHTMLStub,{class:"w-css-reset",handle:i,key:i,mount:function(t){return e.mountRefs[i]=t},style:n})}))}},{key:"handleControlBarAnimation",value:function(t){var e=this;t.shouldShowControls&&!this.props.shouldShowControls&&setTimeout((function(){e.setState({areControlsOpaque:!0})}),1),!t.shouldShowControls&&this.props.shouldShowControls&&this.setState({areControlsOpaque:!1})}},{key:"getOpacity",value:function(){return this.state.areControlsOpaque?1:0}},{key:"getTransition",value:function(){return"opacity ".concat("beforeplay"===this.props.videoState?0:.2,"s")}},{key:"playbarStyle",value:function(){return{height:"100%",position:"relative"}}},{key:"leftBgStyle",value:function(){var t=this.props,e=t.controlsByType,n=t.leftControlWidth;return{height:"100%",left:0,position:"absolute",top:0,width:(e.playbar||[]).length>0?"100%":"".concat(n,"px")}}},{key:"rightBgStyle",value:function(){return(this.props.controlsByType.playbar||[]).length>0?{display:"none"}:{height:"100%",position:"absolute",right:0,top:0,width:"".concat(this.props.rightControlWidth,"px")}}},{key:"bottomBarLowerStyle",value:function(){return{position:"relative"}}},{key:"isEllipsisShowing",value:function(){return Boolean(this.props.controlsByType.ellipsis)}}],o&&p(n.prototype,o),d&&p(n,d),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,d}(r.Component),E=function(t){return t.target&&((0,s.elemHasClass)(t.target,"w-vulcan-v2-button")||(0,s.elemAncestorHasClass)(t.target,"w-vulcan-v2-button"))};const O=w},(t,e,n)=>{n.d(e,{convertFontSizePercentageToPx:()=>i});var i=function(t){return t/100*18}},(t,e,n)=>{n.d(e,{getFontFamilyForFontOptionLabel:()=>o});var i=n(137),r=n(28),o=function(t){var e;return null!==(e=i.CAPTIONS_FONT_FAMILY_MAP.get(t))&&void 0!==e?e:r.interFontFamily}},(t,e,n)=>{n.d(e,{getTextShadowForCharacterEdgeStyle:()=>i});var i=function(t){var e=t.characterEdgeStyle,n=t.scale,i="".concat(1*n,"px"),r="".concat(1.5*n,"px"),o="".concat(2*n,"px"),a="".concat(3*n,"px"),s="".concat(-1*n,"px");switch(e){case"Depressed":return"".concat(i," ").concat(i," #aaa, ").concat(s," ").concat(s," #222");case"Drop shadow":return"".concat(i," ").concat(i," ").concat(i," #222, ").concat(i," ").concat(i," ").concat(o," #222, ").concat(i," ").concat(i," ").concat(a," #222");case"Outline":return"0 0 ".concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222, 0 0 ").concat(i," #222");case"Raised":return"".concat(i," ").concat(i," 0 #222, ").concat(r," ").concat(r," 0 #222");default:return""}}},(t,e,n)=>{n.d(e,{getFontVariantForFontOptionLabel:()=>i});var i=function(t){return"Small caps"===t?"small-caps":"normal"}},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}function r(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function o(t,e,n){return e=s(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,a()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}n.d(e,{PlaySuspendedOffScreenBehavior:()=>l});var l=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,e,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(e,t),n=e,(r=[{key:"init",value:function(){var t=this,e=this.impl,n=e.publicApi;this.unbinds.push(n.on("enterviewport",(function(){e.inFullscreen()||t._isSuspended&&(t._isSuspended=!1,n._playSuspendedOffScreenEnabled()&&"paused"===e.state()&&e.play())})),n.on("leaveviewport",(function(){e.inFullscreen()||t._isSuspended||n._playSuspendedOffScreenEnabled()&&"playing"===e.state()&&(e.pause(),t._isSuspended=!0)})),e.on("receivepause",(function(){t._isSuspended&&(t._isSuspended=!1)})))}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(n(237).PlayerBehavior);l.handle="playSuspendedOffScreen"},(t,e,n)=>{function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||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.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{getDurationAfterCuts:()=>a});var o=function(t){var e=t.attributes;return null!=e.duration?e.duration:t.video.readyState>=2?t.video.duration:null},a=function(t){var e=u(t),n=o(t);if(e.length<1)return n;var i=n;return e.forEach((function(t){i-=t.end-t.start})),i},s=Object.freeze([]),u=function(t){var e=t.attributes,n=e.cuts,i=e.trimStart,r=e.trimEnd;if(t._cuts&&n===t._rawCuts)return t._cuts;if(!n&&null==i&&null==r)return s;t._rawCuts=n,t._cuts=l(t);var o={start:t.attributes.trimStart,end:t.attributes.trimEnd};return t._cuts=c(t,o,t._cuts),Object.freeze(t._cuts),t._cuts},l=function(t){var e=o(t),n=t.attributes,i=n.cuts,r=n.trimStart,a=n.trimEnd;if(!i)return[];var s=i.map((function(n){var i=null!=n.start?d(t,n.start):0,r=null!=n.end&&-1!==n.end?d(t,n.end):e;return r>i?{start:i,end:r}:null})).filter(Boolean);null!=r&&s.push({start:0,end:r}),null!=a&&s.push({start:a,end:e}),s=s.sort((function(t,e){return t.start-e.start}));var u={start:0,end:0};return s=s.map((function(t){return t.end<u.end?null:(t.start<u.end&&(t.start=u.end),u=t,t)})).filter(Boolean)},c=function(t,e,n){var r=i(n),a=o(t),s=e.start,u=e.end,l=r[0],c=r[r.length-1],d=l&&(0===l.start||l.start<0)?l:void 0,h=c&&(c.end>=a||c.end<0)?c:void 0;if(null!=s)if(s>=0){var p={start:0,end:s};d?r.splice(0,1,p):r.unshift(p)}else d&&r.shift();if(null!=u)if(u>=0){var f={start:u,end:a};h?r.splice(r.length-1,1,f):r.push(f)}else h&&r.pop();return r},d=function(t,e){var n=o(t);return Math.min(n,Math.max(0,e))}},(t,e,n)=>{n.d(e,{PLAYER_VERSION:()=>i});var i="main"},(t,e,n)=>{n(262);var i,r=n(47);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||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.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}(i=document.querySelectorAll("iframe.wistia_embed,iframe[name=wistia_embed]")).length>0&&o(i).some((function(t){try{var e=new URL(t.src),n=new URLSearchParams(e.search);return"true"===Object.fromEntries(n.entries()).web_component}catch(t){return!1}}))&&(0,r.dynamicImport)("assets/external/publicApi.js").then((function(){(0,r.dynamicImport)("assets/external/iframeApi.js")}))},(t,e,n)=>{var i=n(2),r=n(36),o=n(32),a=n(16),s=n(263),u=n(264),l=n(142),c=n(265),d=n(25),h=n(58),p=n(120),f=n(9),v=n(47),y=n(103),m=n(3),g=n(18),b=n(133),_=n(23),w=n(134),E=n(97),O=n(145),P=n(22),k=n(26),S=n(121),T=n(74),C=n(38),A=n(24),j=n(39),M=n(267),I=n(268),D=n(12),L=n(127),B=n(101),x=n(89),R=n(53),F=n(269),W=n(33);function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return H(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(t,e):void 0}}(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 H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function V(){var t,e,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function o(n,i,r,o){var u=i&&i.prototype instanceof s?i:s,l=Object.create(u.prototype);return U(l,"_invoke",function(n,i,r){var o,s,u,l=0,c=r||[],d=!1,h={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return o=e,s=0,u=t,h.n=n,a}};function p(n,i){for(s=n,u=i,e=0;!d&&l&&!r&&e<c.length;e++){var r,o=c[e],p=h.p,f=o[2];n>3?(r=f===i)&&(u=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=t):o[0]<=p&&((r=n<2&&p<o[1])?(s=0,h.v=i,h.n=o[1]):p<f&&(r=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,h.n=f,s=0))}if(r||n>1)return a;throw d=!0,i}return function(r,c,f){if(l>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,f),s=c,u=f;(e=s<2?t:u)||!d;){o||(s?s<3?(s>1&&(h.n=-1),p(s,u)):h.n=u:h.v=u);try{if(l=2,o){if(s||(r="next"),e=o[r]){if(!(e=e.call(o,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,s<2&&(s=0)}else 1===s&&(e=o.return)&&e.call(o),s<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),s=1);o=t}else if((e=(d=h.n<0)?u:n.call(i,h))!==a)break}catch(e){o=t,s=1,u=e}finally{l=1}}return{value:e,done:d}}}(n,r,o),!0),l}var a={};function s(){}function u(){}function l(){}e=Object.getPrototypeOf;var c=[][i]?e(e([][i]())):(U(e={},i,(function(){return this})),e),d=l.prototype=s.prototype=Object.create(c);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,U(t,r,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=l,U(d,"constructor",l),U(l,"constructor",u),u.displayName="GeneratorFunction",U(l,r,"GeneratorFunction"),U(d),U(d,r,"Generator"),U(d,i,(function(){return this})),U(d,"toString",(function(){return"[object Generator]"})),(V=function(){return{w:o,m:h}})()}function U(t,e,n,i){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}U=function(t,e,n,i){if(e)r?r(t,e,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[e]=n;else{var o=function(e,n){U(t,e,(function(t){return this._invoke(e,n,t)}))};o("next",0),o("throw",1),o("return",2)}},U(t,e,n,i)}function z(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function q(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){z(o,i,r,a,s,"next",t)}function s(t){z(o,i,r,a,s,"throw",t)}a(void 0)}))}}function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Y(t,e,n){return(e=X(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Q(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,X(i.key),i)}}function X(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function $(t,e,n){return e=it(e),function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,et()?Reflect.construct(e,n||[],it(t).constructor):e.apply(t,n))}function Z(t,e,n,i){var r=J(it(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof r?function(t){return r.apply(n,t)}:r}function J(){return J="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=it(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},J.apply(null,arguments)}function tt(t){var e="function"==typeof Map?new Map:void 0;return tt=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))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,n)}function n(){return function(t,e,n){if(et())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var r=new(t.bind.apply(t,i));return n&&nt(r,n.prototype),r}(t,arguments,it(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),nt(n,t)},tt(t)}function et(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(et=function(){return!!t})()}function nt(t,e){return nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},nt(t,e)}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},it(t)}function rt(t,e,n){ot(t,e),e.set(t,n)}function ot(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function at(t,e,n){return n(lt(t,e))}function st(t,e){return t.get(lt(t,e))}function ut(t,e,n){return t.set(lt(t,e),n),n}function lt(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var ct=["media-id"],dt=["aspect","audio-description-control","autoplay","big-play-button","branding","controls-visible-on-load","copy-link-and-thumbnail","current-time","do-not-track","email","end-video-behavior","fullscreen-control","language","muted","playback-rate-control","play-bar-control","player-color","playlist-links","playlist-loop","play-pause-control","play-pause-notifier","popover-animate-thumbnail","popover-animation","popover-border-color","popover-border-radius","popover-border-width","popover-box-shadow","popover-caption","popover-caption-container","popover-content","popover-disable-autoplay","popover-overlay-color","popover-overlay-opacity","popover-prevent-scroll","popover-show-on-load","poster","preload","quality-control","quality-max","quality-min","resumable","rounded-player","seo","settings-control","silent-autoplay","transparent-letterbox","video-quality","volume","volume-control","wistia-popover"],ht=["big-play-button-border-radius","control-bar-border-radius","embed-host","hls","page-url","player-border-radius","player-force","stats-url","swatch","unique-id","use-web-component"],pt={audioDescriptionControl:!1,autoplay:!1,bigPlayButton:!0,bigPlayButtonBorderRadius:void 0,controlBarBorderRadius:void 0,controlsVisibleOnLoad:!0,copyLinkAndThumbnail:!0,currentTime:0,doNotTrack:!1,endVideoBehavior:"default",fullscreenControl:!0,hls:!0,playBarControl:!0,playerBorderRadius:void 0,playerColor:"636155",playPauseControl:!0,playPauseNotifier:!0,playbackRateControl:!0,playlistLinks:"",playlistLoop:!1,popoverAnimateThumbnail:!1,popoverAnimation:"slide",popoverBorderColor:"ffffff",popoverBorderRadius:0,popoverBorderWidth:0,popoverBoxShadow:!0,popoverCaption:"",popoverCaptionContainer:"",popoverContent:void 0,popoverDisableAutoplay:!1,popoverOverlayColor:"000000",popoverOverlayOpacity:.5,popoverPreventScroll:!1,popoverShowOnLoad:!1,poster:"",qualityControl:!0,qualityMax:void 0,qualityMin:void 0,resumable:"auto",roundedPlayer:void 0,seo:!0,settingsControl:!0,silentAutoplay:!1,state:"beforeplay",statsUrl:null,transparentLetterbox:!1,volume:1,volumeControl:!0,wistiaPopover:!1},ft=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(0,_.cdnFastWistiaComHost)(e);return"https://".concat(n,"/embed/medias/").concat(t,"/swatch")},vt=new WeakMap,yt=new WeakMap,mt=new WeakMap,gt=new WeakMap,bt=new WeakMap,_t=new WeakMap,wt=new WeakMap,Et=new WeakMap,Ot=new WeakMap,Pt=new WeakMap,kt=new WeakMap,St=new WeakMap,Tt=new WeakMap,Ct=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,It=new WeakMap,Dt=new WeakMap,Lt=new WeakMap,Bt=new WeakSet,xt=new WeakMap,Rt=new WeakMap,Ft=new WeakMap,Wt=function(t){function e(){var t,n,i,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=$(this,e),ot(i=n,r=Bt),r.add(i),rt(n,vt,void 0),rt(n,yt,{}),rt(n,mt,{heightBeforeFullscreen:void 0,inFullscreen:!1,nativeFullscreen:!1,widthBeforeFullscreen:void 0}),rt(n,gt,void 0),rt(n,bt,void 0),rt(n,_t,void 0),rt(n,wt,null),rt(n,Et,void 0),rt(n,Ot,void 0),rt(n,Pt,void 0),rt(n,kt,void 0),rt(n,St,[]),rt(n,Tt,void 0),rt(n,Ct,!1),rt(n,At,"0px"),rt(n,jt,!1),rt(n,Mt,null),rt(n,It,null),rt(n,Dt,(0,P.runScript)("".concat((0,A.proto)(),"//").concat((0,d.appHostname)("fast"),"/assets/external/publicApi.js"))),rt(n,Lt,null),rt(n,xt,(function(){lt(Bt,n,Jt).call(n),(0,y.setEmbedOptionStore)("__".concat(n.uniqueId,"_dom_options__"),st(Pt,n).embedOptions)})),rt(n,Rt,(function(t){n.mediaId=t.detail.mediaId,n.uniqueId=lt(Bt,n,zt).call(n,t.detail.mediaId),ut(Tt,n,void 0)})),rt(n,Ft,(function(){"carouselHardWall"!==st(kt,n)&&"notplayable"!==st(kt,n)&&"passwordprotected"!==st(kt,n)&&ut(jt,n,!0),lt(Bt,n,ne).call(n)})),"attachInternals"in HTMLElement.prototype&&"states"in ElementInternals.prototype&&(ut(bt,n,n.attachInternals()),st(bt,n).states.add("--initializing")),n.attachShadow({mode:"open"}),n.dispatchEvent(new CustomEvent("load-start")),n.paddingTop=getComputedStyle(n).paddingTop,ut(Et,n,D.wlog.getPrefixedFunctions("WistiaPlayer")),ut(Pt,n,new c.PlayerDataHandler),null!==(t=a.Wistia.wistia)&&void 0!==t||(a.Wistia.wistia=Date.now()),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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nt(t,e)}(e,t),n=e,i=[{key:"_fullscreenState",get:function(){return st(mt,this)},set:function(t){ut(mt,this,t)}},{key:"_oldEngine",get:function(){return st(Ot,this)},set:function(t){ut(Ot,this,t)}},{key:"aspect",get:function(){var t,e,n,i,r=!Number.isNaN(this.offsetWidth/this.offsetHeight)&&Number.isFinite(this.offsetWidth/this.offsetHeight)?this.offsetWidth/this.offsetHeight:l.DEFAULT_ASPECT;return null!==(t=null!==(e=null!==(n=null===(i=st(gt,this))||void 0===i?void 0:i.aspect())&&void 0!==n?n:this.embedOptions.aspect)&&void 0!==e?e:lt(Bt,this,Gt).call(this,"aspect"))&&void 0!==t?t:r},set:function(t){var e;lt(Bt,this,ae).call(this,"aspect",t),null===(e=st(gt,this))||void 0===e||e.width((0,m.elemWidth)(this),{constrain:!0})}},{key:"audioDescriptionControl",get:function(){return lt(Bt,this,qt).call(this,"audioDescriptionControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.audioDescriptionControlEnabled(t),lt(Bt,this,ae).call(this,"audioDescriptionControl",t)}},{key:"authorization",set:function(t){lt(Bt,this,ae).call(this,"authorization",t)}},{key:"autoplay",get:function(){return lt(Bt,this,qt).call(this,"autoplay")},set:function(t){"boolean"==typeof t&&(lt(Bt,this,ae).call(this,"autoplay",t),t?this.setAttribute("autoplay",""):this.removeAttribute("autoplay"))}},{key:"bigPlayButton",get:function(){return lt(Bt,this,qt).call(this,"bigPlayButton")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.bigPlayButtonEnabled(t),lt(Bt,this,ae).call(this,"bigPlayButton",t)}},{key:"bigPlayButtonBorderRadius",get:function(){return lt(Bt,this,qt).call(this,"bigPlayButtonBorderRadius")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.setBigPlayButtonBorderRadius(Number(t)),lt(Bt,this,ae).call(this,"bigPlayButtonBorderRadius",t)}},{key:"branding",get:function(){return lt(Bt,this,qt).call(this,"branding")},set:function(t){"true"!==t&&!0!==t||lt(Bt,this,ae).call(this,"branding",!0)}},{key:"buffered",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.getStandardBuffered())&&void 0!==t?t:{}}},{key:"captionsEnabled",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.captionsEnabled())&&void 0!==t&&t},set:function(t){var e;null===(e=st(vt,this))||void 0===e||e.captionsEnabled(t)}},{key:"captionsLanguage",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.captionsLanguage())&&void 0!==t?t:lt(Bt,this,Ht).call(this)},set:function(t){var e;null===(e=st(vt,this))||void 0===e||e.captionsLanguage(t)}},{key:"captionsLanguages",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.captionsLanguages())&&void 0!==t?t:[lt(Bt,this,Ht).call(this)]}},{key:"controlBarBorderRadius",get:function(){return lt(Bt,this,qt).call(this,"controlBarBorderRadius")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.setControlBarBorderRadius(Number(t)),lt(Bt,this,ae).call(this,"controlBarBorderRadius",t)}},{key:"controls",get:function(){return st(gt,this)?Object.seal(K({},st(gt,this).controls)):{}}},{key:"controlsVisibleOnLoad",get:function(){return lt(Bt,this,qt).call(this,"controlsVisibleOnLoad")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.renderUI(),lt(Bt,this,ae).call(this,"controlsVisibleOnLoad",t)}},{key:"copyLinkAndThumbnail",get:function(){return lt(Bt,this,qt).call(this,"copyLinkAndThumbnail")},set:function(t){var e=this.copyLinkAndThumbnail;lt(Bt,this,ae).call(this,"copyLinkAndThumbnail",t),e!==t&&this.dispatchEvent(new CustomEvent("copy-link-and-thumbnail-change",{detail:{copyLinkAndThumbnail:t}}))}},{key:"currentTime",get:function(){var t,e,n;return null!==(t=null!==(e=null===(n=st(gt,this))||void 0===n?void 0:n.time())&&void 0!==e?e:this.embedOptions.currentTime)&&void 0!==t?t:0},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.time(t),lt(Bt,this,ae).call(this,"currentTime",t)}},{key:"debug",get:function(){var t;return{impl:st(gt,this),engine:null===(t=st(gt,this))||void 0===t?void 0:t.engine}}},{key:"deprecatedApiDoNotUse",get:function(){return st(vt,this)}},{key:"doNotTrack",get:function(){return lt(Bt,this,qt).call(this,"doNotTrack")},set:function(t){lt(Bt,this,ae).call(this,"doNotTrack",t)}},{key:"duration",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.duration())&&void 0!==t?t:0}},{key:"email",get:function(){var t,e,n,i;return null!==(t=null!==(e=null!==(n=(0,b.extractEmailFromParams)(at(Bt,this,Nt)))&&void 0!==n?n:null===(i=(0,j.getWistiaLocalStorage)()[at(Bt,this,Nt)])||void 0===i?void 0:i.trackEmail)&&void 0!==e?e:this.embedOptions.email)&&void 0!==t?t:void 0},set:function(t){this.email!==t&&(lt(Bt,this,le).call(this,t),lt(Bt,this,ae).call(this,"email",t))}},{key:"embedHost",get:function(){return lt(Bt,this,qt).call(this,"embedHost")},set:function(t){lt(Bt,this,ae).call(this,"embedHost",t)}},{key:"embedOptions",get:function(){return st(Pt,this).embedOptions}},{key:"ended",get:function(){var t;return"ended"===(null===(t=st(gt,this))||void 0===t?void 0:t.state())}},{key:"endVideoBehavior",get:function(){return lt(Bt,this,qt).call(this,"endVideoBehavior")},set:function(t){var e,n;"loop"===t?null===(e=st(gt,this))||void 0===e||e.addLoopBehavior():null===(n=st(gt,this))||void 0===n||n.removeLoopBehavior(),lt(Bt,this,ae).call(this,"endVideoBehavior",t)}},{key:"eventKey",get:function(){var t;return null===(t=st(gt,this))||void 0===t?void 0:t.eventKey()}},{key:"fullscreenControl",get:function(){return lt(Bt,this,qt).call(this,"fullscreenControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.fullscreenControlEnabled(t),lt(Bt,this,ae).call(this,"fullscreenControl",t)}},{key:"hls",get:function(){return lt(Bt,this,qt).call(this,"hls")},set:function(t){lt(Bt,this,ae).call(this,"hls",t)}},{key:"inFullscreen",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.inFullscreen())&&void 0!==t&&t}},{key:"inputContext",get:function(){var t;return null===(t=st(gt,this))||void 0===t?void 0:t.getInputContext()}},{key:"instantHls",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.isInstantHls())&&void 0!==t&&t}},{key:"language",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.language())&&void 0!==t?t:lt(Bt,this,Ht).call(this)},set:function(t){var e;null===(e=st(vt,this))||void 0===e||e.language(t)}},{key:"languages",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.languages())&&void 0!==t?t:[lt(Bt,this,Ht).call(this)]}},{key:"mediaData",get:function(){return st(Pt,this).mediaData}},{key:"mediaId",get:function(){var t;return null!==(t=this.getAttribute("media-id"))&&void 0!==t?t:""},set:function(t){this.mediaId!==t&&(st(Et,this).info("set mediaId",t),this.setAttribute("media-id",t))}},{key:"mediaLanguage",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.mediaLanguage())&&void 0!==t?t:lt(Bt,this,Ht).call(this)},set:function(t){var e;null===(e=st(vt,this))||void 0===e||e.mediaLanguage(t)}},{key:"mediaLanguages",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.mediaLanguages())&&void 0!==t?t:[lt(Bt,this,Ht).call(this)]}},{key:"muted",get:function(){var t,e,n;return null!==(t=null!==(e=null===(n=st(gt,this))||void 0===n?void 0:n.isMuted())&&void 0!==e?e:this.embedOptions.muted)&&void 0!==t&&t},set:function(t){st(gt,this)&&(t?st(gt,this).mute():st(gt,this).unmute()),lt(Bt,this,ae).call(this,"muted",t)}},{key:"name",get:function(){var t,e,n,i;return null!==(t=null!==(e=st(Pt,this).mediaData.name)&&void 0!==e?e:null===(n=st(vt,this))||void 0===n||null===(i=n._mediaData)||void 0===i?void 0:i.name)&&void 0!==t?t:void 0}},{key:"paddingTop",get:function(){return st(At,this)},set:function(t){ut(At,this,t)}},{key:"paused",get:function(){var t;return"paused"===(null===(t=st(gt,this))||void 0===t?void 0:t.state())}},{key:"percentWatched",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.percentWatched())&&void 0!==t?t:0}},{key:"playbackRate",get:function(){var t,e,n;return null!==(t=null!==(e=null===(n=st(gt,this))||void 0===n?void 0:n.playbackRate())&&void 0!==e?e:this.embedOptions.playbackRate)&&void 0!==t?t:1},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.playbackRate(t),lt(Bt,this,ae).call(this,"playbackRate",t)}},{key:"playbackRateControl",get:function(){return lt(Bt,this,qt).call(this,"playbackRateControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.playbackRateControlEnabled(t),lt(Bt,this,ae).call(this,"playbackRateControl",t)}},{key:"playBarControl",get:function(){return lt(Bt,this,qt).call(this,"playBarControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.playbarControlEnabled(t),lt(Bt,this,ae).call(this,"playBarControl",t)}},{key:"playerBorderRadius",get:function(){return lt(Bt,this,qt).call(this,"playerBorderRadius")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.setPlayerBorderRadius(Number(t)),lt(Bt,this,ae).call(this,"playerBorderRadius",t)}},{key:"playerColor",get:function(){var t,e;return null!==(t=this.playerColorGradient)&&void 0!==t&&t.on&&null!==(e=(0,o.getGradientColor)(this.playerColorGradient))&&void 0!==e?e:lt(Bt,this,qt).call(this,"playerColor")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.playerColor(t),lt(Bt,this,ae).call(this,"playerColor",t)}},{key:"playerColorGradient",get:function(){var t=lt(Bt,this,qt).call(this,"playerColorGradient");if((0,W.isGradient)(t))return t},set:function(t){var e;if(!(0,W.isGradient)(t))throw new Error("playerColorGradient must be a valid gradient object");null===(e=st(gt,this))||void 0===e||e.playerColorGradient(t),lt(Bt,this,ae).call(this,"playerColorGradient",t)}},{key:"playerForce",get:function(){var t;return null!==(t=this.getAttribute("player-force"))&&void 0!==t?t:void 0},set:function(t){st(Et,this).info("set playerForce",t),this.setAttribute("player-force",t)}},{key:"playlistLinks",get:function(){return lt(Bt,this,qt).call(this,"playlistLinks")},set:function(t){lt(Bt,this,ae).call(this,"playlistLinks",t)}},{key:"playlistLoop",get:function(){return lt(Bt,this,qt).call(this,"playlistLoop")},set:function(t){lt(Bt,this,ae).call(this,"playlistLoop",t)}},{key:"playPauseControl",get:function(){return lt(Bt,this,qt).call(this,"playPauseControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.playPauseControlEnabled(t),lt(Bt,this,ae).call(this,"playPauseControl",t)}},{key:"playPauseNotifier",get:function(){return lt(Bt,this,qt).call(this,"playPauseNotifier")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.playPauseNotifierEnabled(t),lt(Bt,this,ae).call(this,"playPauseNotifier",t)}},{key:"plugins",get:function(){return st(gt,this)?Object.seal(K({},st(gt,this).plugin)):{}}},{key:"popoverAnimateThumbnail",get:function(){return lt(Bt,this,qt).call(this,"popoverAnimateThumbnail")},set:function(t){lt(Bt,this,ae).call(this,"popoverAnimateThumbnail",t)}},{key:"popoverAnimation",get:function(){return lt(Bt,this,qt).call(this,"popoverAnimation")},set:function(t){lt(Bt,this,ae).call(this,"popoverAnimation",t)}},{key:"popoverBorderColor",get:function(){return lt(Bt,this,qt).call(this,"popoverBorderColor")},set:function(t){lt(Bt,this,ae).call(this,"popoverBorderColor",t)}},{key:"popoverBorderRadius",get:function(){return lt(Bt,this,qt).call(this,"popoverBorderRadius")},set:function(t){lt(Bt,this,ae).call(this,"popoverBorderRadius",t)}},{key:"popoverBorderWidth",get:function(){return lt(Bt,this,qt).call(this,"popoverBorderWidth")},set:function(t){lt(Bt,this,ae).call(this,"popoverBorderWidth",t)}},{key:"popoverBoxShadow",get:function(){return lt(Bt,this,qt).call(this,"popoverBoxShadow")},set:function(t){lt(Bt,this,ae).call(this,"popoverBoxShadow",t)}},{key:"popoverCaption",get:function(){return lt(Bt,this,qt).call(this,"popoverCaption")},set:function(t){lt(Bt,this,ae).call(this,"popoverCaption",t)}},{key:"popoverCaptionContainer",get:function(){return lt(Bt,this,qt).call(this,"popoverCaptionContainer")},set:function(t){lt(Bt,this,ae).call(this,"popoverCaptionContainer",t)}},{key:"popoverContent",get:function(){return lt(Bt,this,qt).call(this,"popoverContent")},set:function(t){lt(Bt,this,ae).call(this,"popoverContent",t)}},{key:"popoverDisableAutoplay",get:function(){return lt(Bt,this,qt).call(this,"popoverDisableAutoplay")},set:function(t){lt(Bt,this,ae).call(this,"popoverDisableAutoplay",t)}},{key:"popoverOverlayColor",get:function(){return lt(Bt,this,qt).call(this,"popoverOverlayColor")},set:function(t){lt(Bt,this,ae).call(this,"popoverOverlayColor",t)}},{key:"popoverOverlayOpacity",get:function(){return lt(Bt,this,qt).call(this,"popoverOverlayOpacity")},set:function(t){lt(Bt,this,ae).call(this,"popoverOverlayOpacity",t)}},{key:"popoverPreventScroll",get:function(){return lt(Bt,this,qt).call(this,"popoverPreventScroll")},set:function(t){lt(Bt,this,ae).call(this,"popoverPreventScroll",t)}},{key:"popoverShowOnLoad",get:function(){return lt(Bt,this,qt).call(this,"popoverShowOnLoad")},set:function(t){lt(Bt,this,ae).call(this,"popoverShowOnLoad",t)}},{key:"poster",get:function(){return lt(Bt,this,qt).call(this,"poster")},set:function(t){if(this.poster!==t){var e=this.poster;lt(Bt,this,ae).call(this,"poster",t),this.setAttribute("poster",t),e!==t&&this.dispatchEvent(new CustomEvent("thumbnailchange"))}}},{key:"preload",get:function(){var t,e,n;return null!==(t=null!==(e=null===(n=st(gt,this))||void 0===n?void 0:n.preloadValue())&&void 0!==e?e:this.embedOptions.preload)&&void 0!==t?t:"metadata"},set:function(t){this.preload!==t&&(lt(Bt,this,ae).call(this,"preload",t),this.setAttribute("preload",t))}},{key:"qualityControl",get:function(){return lt(Bt,this,qt).call(this,"qualityControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.qualityControlEnabled(t),lt(Bt,this,ae).call(this,"qualityControl",t)}},{key:"qualityMax",get:function(){return lt(Bt,this,qt).call(this,"qualityMax")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.qualityMax(t),lt(Bt,this,ae).call(this,"qualityMax",t)}},{key:"qualityMin",get:function(){return lt(Bt,this,qt).call(this,"qualityMin")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.qualityMin(t),lt(Bt,this,ae).call(this,"qualityMin",t)}},{key:"readyState",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.getReadyState())&&void 0!==t?t:0}},{key:"resumable",get:function(){var t;return null!==(t=lt(Bt,this,qt).call(this,"resumable"))&&void 0!==t?t:"auto"},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.setResumable(t),lt(Bt,this,ae).call(this,"resumable",t)}},{key:"roundedPlayer",get:function(){return lt(Bt,this,qt).call(this,"roundedPlayer")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.setRoundedPlayer(Number(t)),lt(Bt,this,ae).call(this,"roundedPlayer",t)}},{key:"secondsWatched",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.secondsWatched())&&void 0!==t?t:0}},{key:"secondsWatchedVector",get:function(){var t,e;return null!==(t=null===(e=st(gt,this))||void 0===e?void 0:e.secondsWatchedVector())&&void 0!==t?t:[]}},{key:"seo",get:function(){return lt(Bt,this,qt).call(this,"seo")},set:function(t){lt(Bt,this,ae).call(this,"seo",t)}},{key:"settingsControl",get:function(){return lt(Bt,this,qt).call(this,"settingsControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.settingsControlEnabled(t),lt(Bt,this,ae).call(this,"settingsControl",t)}},{key:"silentAutoplay",get:function(){return lt(Bt,this,qt).call(this,"silentAutoplay")},set:function(t){lt(Bt,this,ae).call(this,"silentAutoplay",t)}},{key:"sourceLanguage",get:function(){var t,e;return null!==(t=null===(e=st(Pt,this).mediaData.localizations)||void 0===e?void 0:e.find((function(t){return t.sourceLanguage})))&&void 0!==t?t:this.mediaLanguages[0]}},{key:"sourceMediaId",get:function(){var t;return null!==(t=this.mediaData.sourceHashedId)&&void 0!==t?t:this.mediaId}},{key:"state",get:function(){var t,e;return null!==(t=null===(e=st(vt,this))||void 0===e?void 0:e.state())&&void 0!==t?t:pt.state}},{key:"statsUrl",get:function(){return lt(Bt,this,qt).call(this,"statsUrl")},set:function(t){lt(Bt,this,ae).call(this,"statsUrl",t)}},{key:"swatch",get:function(){return lt(Bt,this,qt).call(this,"swatch")},set:function(t){lt(Bt,this,ae).call(this,"swatch",t)}},{key:"transparentLetterbox",get:function(){return lt(Bt,this,qt).call(this,"transparentLetterbox")},set:function(t){lt(Bt,this,ae).call(this,"transparentLetterbox",t)}},{key:"uniqueId",get:function(){var t;return null!==(t=this.getAttribute("unique-id"))&&void 0!==t?t:""},set:function(t){this.setAttribute("unique-id",t)}},{key:"useWebComponent",get:function(){return"true"===this.getAttribute("use-web-component")},set:function(t){t?this.setAttribute("use-web-component",String(t)):this.removeAttribute("use-web-component")}},{key:"videoQuality",get:function(){var t,e,n;return null!==(t=null!==(e=null===(n=st(gt,this))||void 0===n?void 0:n.getVideoQuality())&&void 0!==e?e:this.embedOptions.videoQuality)&&void 0!==t?t:"auto"},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.setVideoQuality(t),lt(Bt,this,ae).call(this,"videoQuality",t)}},{key:"visitorKey",get:function(){var t;return null===(t=a.Wistia.visitorKey)||void 0===t?void 0:t.value()}},{key:"volume",get:function(){return lt(Bt,this,qt).call(this,"volume")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.volume(t),lt(Bt,this,ae).call(this,"volume",t)}},{key:"volumeControl",get:function(){return lt(Bt,this,qt).call(this,"volumeControl")},set:function(t){var e;null===(e=st(gt,this))||void 0===e||e.volumeControlEnabled(t),lt(Bt,this,ae).call(this,"volumeControl",t)}},{key:"wistiaPopover",get:function(){return lt(Bt,this,qt).call(this,"wistiaPopover")},set:function(t){lt(Bt,this,ae).call(this,"wistiaPopover",t)}},{key:"addEventListener",value:function(t,n,i){Array.isArray(st(yt,this)[t])||(st(yt,this)[t]=[]),st(yt,this)[t].push({listener:n,options:i}),Z(e,"addEventListener",this,3)([t,n,i])}},{key:"cancelFullscreen",value:(Yt=q(V().m((function t(){var e,n=this;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,null===(e=st(gt,this))||void 0===e?void 0:e.cancelFullscreen().then((function(){n._fullscreenState.heightBeforeFullscreen=void 0,n._fullscreenState.widthBeforeFullscreen=void 0})))}),t,this)}))),function(){return Yt.apply(this,arguments)})},{key:"createOverlay",value:(Wt=q(V().m((function t(e,n){var i;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(i=st(gt,this))||void 0===i||!i.defineOverlay){t.n=1;break}return t.a(2,st(gt,this).defineOverlay(e,n));case 1:return t.a(2,Promise.reject(new Error("overlay ".concat(e," cannot be defined at this time"))))}}),t,this)}))),function(t,e){return Wt.apply(this,arguments)})},{key:"definePlugin",value:(ft=q(V().m((function t(e,n){var i,r=this;return V().w((function(t){for(;;)switch(t.n){case 0:if(i=function(){var t=q(V().m((function t(){var i,o;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,null!==(i=null===(o=st(vt,r))||void 0===o?void 0:o.addPlugin(e,n))&&void 0!==i?i:Promise.reject(new Error("plugin ".concat(e," cannot be defined"))))}),t)})));return function(){return t.apply(this,arguments)}}(),!st(vt,this)){t.n=1;break}return t.a(2,i());case 1:return t.a(2,new Promise((function(t,e){r.whenApiReady().then((function(){i().then((function(e){return t(e)})).catch((function(t){t instanceof Error?e(t):e(new Error("Promise rejected with non-Error value"))}))})).catch((function(t){}))})))}}),t,this)}))),function(t,e){return ft.apply(this,arguments)})},{key:"deleteOverlay",value:(it=q(V().m((function t(e){var n;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(n=st(gt,this))||void 0===n||!n.undefineOverlay){t.n=1;break}return t.a(2,st(gt,this).undefineOverlay(e));case 1:return t.a(2,Promise.reject(new Error("overlay ".concat(e," cannot be deleted at this time"))))}}),t,this)}))),function(t){return it.apply(this,arguments)})},{key:"disableControl",value:(et=q(V().m((function t(e){var n;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(n=st(gt,this))||void 0===n||!n.setControlEnabled){t.n=1;break}return t.a(2,st(gt,this).setControlEnabled(e,!1));case 1:return t.a(2,Promise.reject(new Error('control "'.concat(e,'" cannot be disabled at this time'))))}}),t,this)}))),function(t){return et.apply(this,arguments)})},{key:"enableControl",value:(tt=q(V().m((function t(e){var n;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(n=st(gt,this))||void 0===n||!n.setControlEnabled){t.n=1;break}return t.a(2,st(gt,this).setControlEnabled(e,!0));case 1:return t.a(2,Promise.reject(new Error('control "'.concat(e,'" cannot be enabled at this time'))))}}),t,this)}))),function(t){return tt.apply(this,arguments)})},{key:"enterInputContext",value:(J=q(V().m((function t(e){var n,i=this;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(n=st(gt,this))||void 0===n||!n.enterInputContext){t.n=1;break}return t.a(2,new Promise((function(t){var n,r=function(n){n.detail.context===e&&t(),i.removeEventListener(g.INPUT_CONTEXT_CHANGE_EVENT,r)};i.addEventListener(g.INPUT_CONTEXT_CHANGE_EVENT,r),null===(n=st(gt,i))||void 0===n||n.enterInputContext(e)})));case 1:return t.a(2,Promise.reject(new Error('input context of name "'.concat(e,'" cannot be enabled at this time'))))}}),t,this)}))),function(t){return J.apply(this,arguments)})},{key:"exitInputContext",value:(X=q(V().m((function t(e){var n;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(n=st(gt,this))||void 0===n||!n.exitInputContext){t.n=1;break}return t.a(2,Promise.resolve(st(gt,this).exitInputContext(e)));case 1:return t.a(2,Promise.reject(new Error('control "'.concat(e,'" cannot be enabled at this time'))))}}),t,this)}))),function(t){return X.apply(this,arguments)})},{key:"getInitialMediaData",value:(Y=q(V().m((function t(e,n){return V().w((function(t){for(;;)if(0===t.n)return t.a(2,(0,B.getInitialMediaData)(e,n))}),t)}))),function(t,e){return Y.apply(this,arguments)})},{key:"getPlugin",value:(G=q(V().m((function t(e){var n=this;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,new Promise((function(t,i){var r;null!==(r=st(vt,n))&&void 0!==r&&r.plugin&&e in st(vt,n).plugin&&t(st(vt,n).plugin[e]),i(new Error("plugin ".concat(e," is not defined")))})))}),t)}))),function(t){return G.apply(this,arguments)})},{key:"getRemapTime",value:(z=q(V().m((function t(){var e,n,i,r,o,a=this;return V().w((function(t){for(;;)switch(t.n){case 0:if(null==st(Tt,this)){t.n=1;break}return t.a(2,st(Tt,this));case 1:if(!(this.languages.length<=1)){t.n=2;break}return ut(Tt,this,(function(t,e,n){return n})),t.a(2,st(Tt,this));case 2:if(null===(e=st(Tt,this))||void 0===e){t.n=3;break}t.n=5;break;case 3:return n=ut,i=Tt,r=this,t.n=4,(0,v.dynamicImport)("assets/external/timeMapping.js").then((function(t){var e=t.remapTime;return function(t,n,i){var r=1e3*i,o=lt(Bt,a,Ut).call(a,t),s=a.sourceLanguage,u=lt(Bt,a,Ut).call(a,n);return null==o||null==u||null==s?i:e(s,o,u,r)/1e3}}));case 4:o=t.v,n(i,r,o);case 5:return t.a(2,st(Tt,this))}}),t,this)}))),function(){return z.apply(this,arguments)})},{key:"hideOverlay",value:(U=q(V().m((function t(e){var n;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(n=st(gt,this))||void 0===n||!n.cancelOverlay){t.n=1;break}return t.a(2,st(gt,this).cancelOverlay(e));case 1:return t.a(2,Promise.reject(new Error("overlay ".concat(e," cannot be cancelled at this time"))))}}),t,this)}))),function(t){return U.apply(this,arguments)})},{key:"hidePopover",value:(H=q(V().m((function t(){var e=this;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,new Promise((function(t,n){var i;null!==(i=st(vt,e))&&void 0!==i&&i.popover&&(st(vt,e).popover.hide(),t()),n(new Error("Popover cannot be accessed"))})))}),t)}))),function(){return H.apply(this,arguments)})},{key:"pause",value:(C=q(V().m((function t(){var e;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,null===(e=st(gt,this))||void 0===e?void 0:e.pause())}),t,this)}))),function(){return C.apply(this,arguments)})},{key:"play",value:(S=q(V().m((function t(){var e;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,null===(e=st(gt,this))||void 0===e?void 0:e.play())}),t,this)}))),function(){return S.apply(this,arguments)})},{key:"releaseControls",value:(k=q(V().m((function t(e){var n;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,null===(n=st(gt,this))||void 0===n?void 0:n.releaseControls(e))}),t,this)}))),function(t){return k.apply(this,arguments)})},{key:"removeAllEventListeners",value:function(){var t=this;Object.entries(st(yt,this)).forEach((function(e){var n=N(e,2),i=n[0];n[1].forEach((function(e){var n=e.listener,r=e.options;t.removeEventListener(i,n,r)}))}))}},{key:"removeEventListener",value:function(t,n,i){var r=st(yt,this)[t];if(Array.isArray(r)){var o=r.findIndex((function(t){return t.listener===n&&JSON.stringify(t.options)===JSON.stringify(i)}));-1!==o&&(Z(e,"removeEventListener",this,3)([t,n,i]),r.splice(o,1),0===r.length&&(st(yt,this)[t]=[]))}}},{key:"replaceWithMedia",value:(O=q(V().m((function t(e){var n,i=this,r=arguments;return V().w((function(t){for(;;)if(0===t.n)return n=r.length>1&&void 0!==r[1]?r[1]:{},t.a(2,new Promise((function(t,r){var o;st(vt,i)||r(new Error("api not ready to replace")),(0,L.removeInjectedJsonLd)(st(_t,i));var a=function(){i.removeEventListener(g.AFTER_REPLACE_EVENT,a),t()};i.addEventListener(g.AFTER_REPLACE_EVENT,a),null===(o=st(vt,i))||void 0===o||o.replaceWith(e,n)})))}),t)}))),function(t){return O.apply(this,arguments)})},{key:"requestControls",value:(w=q(V().m((function t(e){var n;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,null===(n=st(gt,this))||void 0===n?void 0:n.requestControls(e))}),t,this)}))),function(t){return w.apply(this,arguments)})},{key:"requestFullscreen",value:(_=q(V().m((function t(){var e;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(e=st(gt,this))||void 0===e||!e.requestFullscreen){t.n=1;break}return t.a(2,st(gt,this).requestFullscreen());case 1:return t.a(2,Promise.reject(new Error("Fullscreen cannot be accessed")))}}),t,this)}))),function(){return _.apply(this,arguments)})},{key:"showOverlay",value:(f=q(V().m((function t(e){var n;return V().w((function(t){for(;;)switch(t.n){case 0:if(null===(n=st(gt,this))||void 0===n||!n.requestOverlay){t.n=1;break}return t.a(2,st(gt,this).requestOverlay(e));case 1:return t.a(2,Promise.reject(new Error("overlay ".concat(e," cannot be requested at this time"))))}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"showPopover",value:(p=q(V().m((function t(){var e=this;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,new Promise((function(t,n){var i;null!==(i=st(vt,e))&&void 0!==i&&i.popover&&(st(vt,e).popover.show(),t()),n(new Error("Popover cannot be accessed"))})))}),t)}))),function(){return p.apply(this,arguments)})},{key:"updateEmbedOptions",value:(h=q(V().m((function t(e){var n=this;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,new Promise((function(t){lt(Bt,n,oe).call(n,e),t(n.embedOptions)})))}),t)}))),function(t){return h.apply(this,arguments)})},{key:"whenApiReady",value:(u=q(V().m((function t(){var e=this;return V().w((function(t){for(;;)if(0===t.n)return t.a(2,new Promise((function(t){st(vt,e)&&st(vt,e).ready((function(){t()}));var n=function(){e.removeEventListener(g.API_READY_EVENT,n),t()};e.addEventListener(g.API_READY_EVENT,n)})))}),t)}))),function(){return u.apply(this,arguments)})},{key:"whenControlMounted",value:(s=q(V().m((function t(e){var n;return V().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,this.whenApiReady();case 1:if(null!==st(vt,this)){t.n=2;break}throw new Error("Control API not available");case 2:return t.n=3,st(vt,this).whenControlMounted(e);case 3:if(null!=(n=t.v)){t.n=4;break}throw new Error("Control not found");case 4:return t.a(2,n)}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"attributeChangedCallback",value:function(t,e,n){if(st(Ct,this)&&e!==n&&(null!==e||""!==n)){var i=n;switch(n){case"true":i=!0;break;case"false":i=!1}this[(0,F.kebabCaseToCamelCase)(t)]=i}}},{key:"connectedCallback",value:function(){var t,e,n=this;if(!st(Ct,this)){ut(Ct,this,!0);var i=this.getAttribute("media-id");if(null==i)throw(0,T.countMetric)("player/failure/init-failed"),new Error("media-id attribute is required");window.wistiaOptions=null!==(t=window.wistiaOptions)&&void 0!==t?t:{};var r=(0,M.getWistiaOptions)(this.mediaId);st(Pt,this).setWistiaWindowEmbedOptionSource(r),ut(Et,this,D.wlog.getPrefixedFunctions("WistiaPlayer ".concat(i))),ut(wt,this,(0,E.buildContext)()),"true"===this.getAttribute("react")&&(0,T.countMetric)("player/initembed.react"),lt(Bt,this,se).call(this),st(Et,this).info("initialize embed"),this.useWebComponent||(0,I.maybeStartWistiaQueue)(),this.uniqueId=lt(Bt,this,zt).call(this,i),lt(Bt,this,te).call(this),lt(Bt,this,ie).call(this),lt(Bt,this,re).call(this),ut(Lt,this,new ResizeObserver((function(){lt(Bt,n,ne).call(n)}))),st(Lt,this).observe(this);var o={deferFetchingToCarousel:lt(Bt,this,Vt).call(this),embedHost:null!==(e=this.embedHost)&&void 0!==e?e:"",overrideMediaLanguage:this.embedOptions.language};if(this.getInitialMediaData(i,o).then((function(t){var e;if(!(0,x.isMediaDataError)(t)){var i=t;n.mediaId=null!==(e=i.hashedId)&&void 0!==e?e:n.mediaId,st(Pt,n).setMediaDataSource(i),n.dispatchEvent(new CustomEvent(g.LOADED_MEDIA_DATA_EVENT,{detail:{mediaData:st(Pt,n).mediaData}})),lt(Bt,n,Kt).call(n,{container:n.uniqueId,mediaData:st(Pt,n).mediaData})}})).catch((function(t){throw(0,T.countMetric)("player/failure/init-failed"),new Error(t.message)})),this.shadowRoot){if(this.wistiaPopover&&"link"===this.popoverContent){var a=document.createElement("slot");a.name="".concat(this.uniqueId,"-popover-link"),this.shadowRoot.appendChild(a)}ut(Mt,this,document.createElement("div")),lt(Bt,this,ee).call(this),this.shadowRoot.insertBefore(st(Mt,this),this.shadowRoot.firstChild)}}}},{key:"disconnectedCallback",value:function(){var t,e,n;st(St,this).forEach((function(t){return t()})),this.removeAllEventListeners(),ut(yt,this,{}),(0,L.removeInjectedJsonLd)(st(_t,this)),(0,R.uncacheMediaData)(this.mediaId),null===(t=st(Lt,this))||void 0===t||t.disconnect(),ut(Lt,this,null),(0,y.removeEmbedOptionStore)("__".concat(this.uniqueId,"_dom_options__")),null===(e=st(vt,this))||void 0===e||e.remove(),ut(vt,this,null),null===(n=this.shadowRoot)||void 0===n||n.replaceChildren(),ut(Mt,this,null),ut(It,this,null),ut(Ct,this,!1)}}],r=[{key:"observedAttributes",get:function(){return[].concat(ct,dt,ht)}}],i&&Q(n.prototype,i),r&&Q(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,r,s,u,h,p,f,_,w,O,k,S,C,H,U,z,G,Y,X,J,tt,et,it,ft,Wt,Yt}(tt(HTMLElement));function Nt(t){var e;return null!==(e=t.getAttribute("page-url"))&&void 0!==e?e:(0,w.inferPageUrl)()}function Ht(){return{alpha3Bibliographic:"eng",alpha3Terminologic:"eng",duration:0,genericName:"English",genericNativeName:"English",hashedId:this.mediaId,ietfLanguageTag:"eng",isLocalization:!0,iso6392LanguageCode:"eng",name:"English",nativeName:"English",sourceLanguage:!0,timeMappings:[]}}function Vt(){return!!document.querySelector('wistia-channel-carousel[player-dom-id="'.concat(this.id,'"]:not([is-inside-playlist-embed="true"][channel-id])'))}function Ut(t){var e;if(null!=t)return null===(e=st(Pt,this).mediaData.localizations)||void 0===e?void 0:e.find((function(e){return e.ietfLanguageTag===t||e.iso6392LanguageCode===t}))}function zt(t){var e="wistia-".concat(t,"-");return(0,k.seqId)(e)}function qt(t){var e,n;return st(gt,this)&&t in st(gt,this)._attrs?st(gt,this)._attrs[t]:null!==(e=null!==(n=this.embedOptions[t])&&void 0!==n?n:lt(Bt,this,Gt).call(this,(0,F.camelCaseToKebabCase)(t)))&&void 0!==e?e:pt[t]}function Gt(t){if(!this.hasAttribute(t))return null;switch(this.getAttribute(t)){case"true":case"":return!0;case"false":return!1;default:return this.getAttribute(t)}}function Kt(t){var e=t.container,n=t.mediaData;if(st(Ct,this)){var i;if(st(Pt,this).updateEmbedOptionOverrides({videoFoam:!0}),n&&!(0,x.isMediaDataError)(n)&&(ut(kt,this,(0,E.choosePlayer)(st(wt,this),st(Pt,this).mediaData,st(Pt,this).embedOptions)),lt(Bt,this,ne).call(this),lt(Bt,this,Jt).call(this)),"attachInternals"in HTMLElement.prototype&&"states"in ElementInternals.prototype)null===(i=st(bt,this))||void 0===i||i.states.delete("--initializing");lt(Bt,this,Yt).call(this,this.mediaId,{container:e,mediaData:n})}}function Yt(t,e){return Qt.apply(this,arguments)}function Qt(){return(Qt=q(V().m((function t(e,n){var i,r=this;return V().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,st(Dt,this);case 1:if(a.Wistia.PublicApi){t.n=2;break}throw(0,T.countMetric)("player/failure/init-failed"),new Error("Wistia.PublicApi is not defined");case 2:i=function(){var t;lt(Bt,r,$t).call(r),lt(Bt,r,ee).call(r),null===(t=st(Lt,r))||void 0===t||t.disconnect(),ut(Lt,r,null),st(jt,r)&&r.play()},this.addEventListener("embedded",i),st(St,this).push((function(){r.removeEventListener("embedded",i)})),ut(vt,this,new a.Wistia.PublicApi(e,n)),this.addEventListener(g.BEFORE_REPLACE_EVENT,st(Rt,this)),this.addEventListener(g.AFTER_REPLACE_EVENT,st(xt,this)),st(St,this).push((function(){r.removeEventListener(g.BEFORE_REPLACE_EVENT,st(Rt,r)),r.removeEventListener(g.AFTER_REPLACE_EVENT,st(xt,r))})),st(vt,this).ready((function(){var t;null===(t=st(It,r))||void 0===t||t.remove(),r.removeEventListener("click",st(Ft,r)),r.dispatchEvent(new CustomEvent(g.API_READY_EVENT,{detail:{mediaId:e}})),r.dispatchEvent(new CustomEvent(g.INTERNAL_API_ON_FIND_EVENT,{detail:{mediaId:e,api:st(vt,r)}})),st(gt,r)&&Object.entries(st(gt,r)._attrs).forEach((function(t){var e=N(t,2),n=e[0],i=e[1];st(Pt,r).updateEmbedOptionOverrides(Y({},n,i))})),lt(Bt,r,ne).call(r)}));case 3:return t.a(2)}}),t,this)})))).apply(this,arguments)}function Xt(){return this.wistiaPopover&&((0,r.isNil)(this.popoverContent)||(0,r.isEmptyString)(this.popoverContent)||"thumbnail"===this.popoverContent)}function $t(){return Zt.apply(this,arguments)}function Zt(){return(Zt=q(V().m((function t(){var e,n,i,r=this;return V().w((function(t){for(;;)switch(t.n){case 0:if(st(vt,this)){t.n=1;break}return t.a(2);case 1:if(e=(0,p.didWinCoinFlip)(S.MUX_PERCENTAGE_TO_ENABLE),n=(0,S.shouldEnableMux)(st(vt,this),e)&&(0,C.isVisitorTrackingEnabled)(),i=this.useWebComponent?"translated-web-component":"web-component",!n){t.n=3;break}return t.n=2,(0,v.dynamicImport)("assets/external/wistia-mux.js");case 2:t.v.init(st(vt,this),{embedType:i}),this.addEventListener("visitor-tracking-change",(function(t){var e,n;t.detail.isTrackingEnabled||(null===(e=st(vt,r))||void 0===e||null===(n=e.mux)||void 0===n||n.destroy())}));case 3:return t.a(2)}}),t,this)})))).apply(this,arguments)}function Jt(){this.seo&&"notplayable"!==st(kt,this)&&"passwordprotected"!==st(kt,this)&&"carouselHardWall"!==st(kt,this)&&(ut(_t,this,"w-json-ld-".concat(this.uniqueId)),(0,L.removeInjectedJsonLd)(st(_t,this)),(0,L.injectJsonLd)(st(_t,this),st(Pt,this).mediaData,{embedOptions:st(Pt,this).embedOptions,videoHeight:this.offsetHeight,videoWidth:this.offsetWidth}))}function te(){if(window._inWistiaIframe){var t=new URLSearchParams(window.location.search),e=Object.fromEntries(t.entries());e.pageTitle=document.title,e._inIframe=!0,st(Pt,this).setIframeEmbedOptionSource(e)}}function ee(){var t,e=this;if(st(Mt,this)){var n=st(Pt,this).mediaData.mediaType,r=ft(this.mediaId,null!==(t=this.embedHost)&&void 0!==t?t:""),o="100%";0!==parseFloat(st(At,this))&&""!==st(At,this)&&(o="".concat(parseFloat(st(At,this)),"px"));var a=(0,O.getDefaultPlayerBorderRadius)({playerBorderRadius:this.playerBorderRadius,roundedPlayer:this.roundedPlayer});(0,i.render)((0,i.h)(i.Fragment,null,(0,i.h)("style",null,":host {\n display: flex;\n position: relative;\n width: 100%;\n ".concat("Audio"===n?"min-height: 45px;":"","\n }")),lt(Bt,this,ue).call(this)&&(0,i.h)("div",{style:{height:o,left:0,position:"absolute",top:0,width:"100%"},class:"wistia_swatch"},(0,i.h)("div",{style:{height:"100%",position:"relative",width:"100%"}},(0,i.h)("div",{style:{height:"100%",left:0,overflow:"hidden",position:"absolute",top:0,width:"100%",borderRadius:"".concat(a,"px")}},(0,i.h)("img",{src:r,style:{filter:"blur(5px)",height:"100%",objectFit:"contain",width:"100%"},alt:"","aria-hidden":"true"})))),(0,i.h)("div",{ref:function(t){ut(It,e,t)}})),st(Mt,this))}}function ne(){var t;if(st(It,this)){var e=st(Pt,this).mediaData,n=e.assets,r=e.mediaType,o=e.carouselHardWall,a=st(Pt,this).embedOptions,l=a.autoPlay,c=a.plugin;if(!o){var d=(0,h.thumbnailAssets)(n,{}),p=this.autoplay||l,f=void 0!==(null==c?void 0:c.videoThumbnail);(!this.wistiaPopover||lt(Bt,this,Xt).call(this))&&"Audio"!==r&&d.length>0&&!p&&!f&&(0,i.render)((0,i.h)(u.PlayerDataProvider,{embedOptions:st(Pt,this).embedOptions,mediaData:st(Pt,this).mediaData},(0,i.h)(s.PreloadThumbnail,{mediaId:this.mediaId,playerType:null!==(t=this.playerForce)&&void 0!==t?t:st(kt,this),playerWidth:this.offsetWidth,isPlayPending:st(jt,this)})),st(It,this))}}}function ie(){var t=this;null!==lt(Bt,this,Gt).call(this,"current-time")&&this.whenApiReady().then((function(){var e,n,i,r=Number(lt(Bt,t,Gt).call(t,"current-time")),o=null!==(e=(null===(n=st(vt,t))||void 0===n?void 0:n.popover)&&!st(vt,t).popover.isVisible())&&void 0!==e&&e,a=(0,f.detectIsMobile)(),s="playing"!==t.state&&(a||o);null===(i=st(gt,t))||void 0===i||i.time(r,{lazy:s}),lt(Bt,t,ae).call(t,"currentTime",r)})).catch((function(t){})),null!==lt(Bt,this,Gt).call(this,"email")&<(Bt,this,le).call(this,lt(Bt,this,Gt).call(this,"email")),null!==lt(Bt,this,Gt).call(this,"video-quality")&&this.whenApiReady().then((function(){var e,n=lt(Bt,t,Gt).call(t,"video-quality");null===(e=st(gt,t))||void 0===e||e.setVideoQuality(n),lt(Bt,t,ae).call(t,"videoQuality",n)})).catch((function(t){}))}function re(){var t=this,e=Object.fromEntries(Object.entries(this.attributes).map((function(e){var n=N(e,2)[1];return[(0,F.kebabCaseToCamelCase)(n.name),lt(Bt,t,Gt).call(t,n.name)]})));st(Pt,this).setDomEmbedOptionSource(e),(0,y.setEmbedOptionStore)("__".concat(this.uniqueId,"_dom_options__"),st(Pt,this).embedOptions)}function oe(t){var e=this;Object.entries(t).forEach((function(t){var n,i=N(t,2),r=i[0],o=i[1];null!=o&&(null!==(n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),r))&&void 0!==n&&n.set?e[r]=o:lt(Bt,e,ae).call(e,r,o))}))}function ae(t,e){st(Et,this).info("set ".concat(t),e.toString()),st(gt,this)&&(st(gt,this)._attrs[t]=e),st(Pt,this).updateEmbedOptionOverrides(Y({},t,e)),lt(Bt,this,ne).call(this)}function se(){var t=this,e=function(e){lt(Bt,t,ce).call(t,e.detail.mediaData)},n=function(e){ut(gt,t,e.detail.impl)};this.addEventListener(g.LOADED_MEDIA_DATA_EVENT,e),this.addEventListener(g.IMPL_CREATED_EVENT,n),st(St,this).push((function(){t.removeEventListener(g.LOADED_MEDIA_DATA_EVENT,e)}),(function(){t.removeEventListener(g.IMPL_CREATED_EVENT,n)})),this.addEventListener("click",st(Ft,this),{once:!0})}function ue(){return!1!==this.swatch&&(!this.wistiaPopover||lt(Bt,this,Xt).call(this))}function le(t){var e=this;(0,j.updateWistiaLocalStorage)((function(n){n[at(Bt,e,Nt)]=K(K({},n[at(Bt,e,Nt)]),{},{trackEmail:t})})),this.dispatchEvent(new CustomEvent("emailchange",{detail:{email:t}}))}function ce(t){(0,x.isMediaDataError)(t)||(st(Pt,this).setMediaDataSource(t),ut(kt,this,(0,E.choosePlayer)(st(wt,this),st(Pt,this).mediaData,st(Pt,this).embedOptions)),lt(Bt,this,ne).call(this))}void 0===customElements.get("wistia-player")&&customElements.define("wistia-player",Wt)},(t,e,n)=>{n.d(e,{PreloadThumbnail:()=>m});var i=n(2),r=n(197),o=n(264),a=n(142),s=n(196),u=n(228),l=n(46),c=n(58),d=n(195),h=n(145),p=n(32),f=n(33);function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var m=function(t){var e,n,y,m=t.isPlayPending,g=t.mediaId,b=t.playerType,_=t.playerWidth,w=v((0,r.useState)(!1),2),E=w[0],O=w[1];(0,r.useEffect)((function(){m&&O(!0)}),[m]);var P=(0,o.usePlayerData)(),k=P.embedOptions,S=P.mediaData,T=k.aspect,C=k.bigPlayButton,A=k.bpbTime,j=k.bigPlayButtonBorderRadius,M=k.controlBarBorderRadius,I=k.controlsVisibleOnLoad,D=k.floatingControlBar,L=k.noMixBlendMode,B=k.playButton,x=k.playerBorderRadius,R=k.playerColor,F=k.playerColorGradient,W=k.playerLanguage,N=k.roundedPlayer,H=k.thumbnailAltText,V=k.transparentLetterbox,U=S.aspectRatio,z=S.assets,q=S.duration,G=S.mediaType,K=S.name,Y=_/(null!==(e=null!=T?T:U)&&void 0!==e?e:a.DEFAULT_ASPECT),Q=Math.min(1.3,Math.max(.3,(0,d.controlMultiplierEstimatedByWidth)(_,[640,960]))),X=I&&"vulcan-v2"===b,$=(0,h.getDefaultControlBarDistance)({controlBarBorderRadius:M,floatingControlBar:D,roundedPlayer:N}),Z=X?(a.CONTROL_BAR_HEIGHT/2+$)*Q:$*Q,J=(0,h.getDefaultBigPlayButtonBorderRadius)({bigPlayButtonBorderRadius:j,roundedPlayer:N})*Q,tt=(0,h.getDefaultPlayerBorderRadius)({playerBorderRadius:x,roundedPlayer:N})*Q,et=!0===V||tt>0?"transparent":void 0,nt=(0,c.thumbnailAssets)(z,{}),it=null!==(n=(0,l.getLanguage)(W))&&void 0!==n?n:(0,l.getLanguage)("en-US"),rt=!1!==C&&!1!==B,ot=!0===A||"true"===A,at=null!=F&&F.on?(0,p.getCssGradient)(F):void 0,st=null!=F&&F.on&&(0,f.isGradient)(F)&&null!==(y=(0,p.getGradientColor)(F))&&void 0!==y?y:R,ut=function(){O(!0)};return(0,i.h)(i.Fragment,null,(0,i.h)("div",{class:"w-css-reset",style:{cursor:"pointer",width:"100%",height:"".concat(Y,"px")},onClick:ut,tabIndex:rt?-1:0},(0,i.h)(u.ProgressiveThumbnail,{backgroundColor:et,images:nt,isVisible:!0,hashedId:g,playerBorderRadius:tt,swatchEnabled:!1,uiHasRendered:!1,thumbnailAltText:null!=H?H:"",height:"".concat(Y,"px")})),rt&&(0,i.h)(s.BigPlayButton,{borderRadius:J,buttonTabIndex:0,color:st,controlBarDistance:Z,duration:null!=q?q:0,isLiveMedia:"LiveStream"===G,isLoading:E,isVisible:!0,noMixBlendMode:L,onClick:ut,playerLanguage:it,scale:Q,showBpbTime:ot,videoName:null!=K?K:"",videoWidth:_,backgroundGradientCss:at}))}},(t,e,n)=>{n.d(e,{PlayerDataProvider:()=>a,usePlayerData:()=>s});var i=n(2),r=n(197),o=(0,i.createContext)(null),a=function(t){var e=t.children,n=t.embedOptions,r=t.mediaData;return(0,i.h)(o.Provider,{value:{embedOptions:n,mediaData:r}},e)},s=function(){var t=(0,r.useContext)(o);if(null==t)throw new Error("usePlayerData must be used within a PlayerDataProvider");return t}},(t,e,n)=>{n.d(e,{PlayerDataHandler:()=>w});var i=n(112),r=n.n(i),o=n(266),a=n.n(o),s=n(4);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,l(i.key),i)}}function l(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function c(t,e,n){d(t,e),e.set(t,n)}function d(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(t,e,n){return t.set(f(t,e),n),n}function p(t,e){return t.get(f(t,e))}function f(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var v=new WeakMap,y=new WeakMap,m=new WeakMap,g=new WeakMap,b=new WeakMap,_=new WeakSet,w=function(){return t=function t(){var e,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),d(e=this,n=_),n.add(e),c(this,v,{}),c(this,y,{}),c(this,m,{}),c(this,g,{domOptions:{},iframeOptions:{},mediaDataOptions:{},wistiaWindowOptions:{}}),c(this,b,{})},(e=[{key:"embedOptions",get:function(){return p(y,this)}},{key:"mediaData",get:function(){return p(m,this).embedOptions=p(y,this),p(m,this)}},{key:"setDomEmbedOptionSource",value:function(t){p(g,this).domOptions=t,f(_,this,E).call(this)}},{key:"setIframeEmbedOptionSource",value:function(t){p(g,this).iframeOptions=t,f(_,this,E).call(this)}},{key:"setMediaDataSource",value:function(t){var e;h(b,this,t),h(m,this,(0,s.cast)(a()(p(b,this)))),void 0!==p(m,this).hashedId&&(p(m,this).hashedId=p(m,this).hashedId.toString()),p(g,this).mediaDataOptions=null!==(e=a()(p(m,this).embedOptions))&&void 0!==e?e:{},f(_,this,E).call(this)}},{key:"setWistiaWindowEmbedOptionSource",value:function(t){p(g,this).wistiaWindowOptions=t,f(_,this,E).call(this)}},{key:"updateEmbedOptionOverrides",value:function(t){h(v,this,r()(p(v,this),t)),h(y,this,r()(p(y,this),p(v,this)))}}])&&u(t.prototype,e),n&&u(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function E(){var t=p(g,this),e=t.mediaDataOptions,n=t.wistiaWindowOptions,i=t.domOptions,o=t.iframeOptions;h(y,this,(0,s.cast)(r()({},null!=e?e:{},null!=n?n:{},null!=i?i:{},null!=o?o:{},p(v,this)))),p(m,this).embedOptions=p(y,this)}},(t,e,n)=>{t=n.nmd(t);var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",l="[object GeneratorFunction]",c="[object Map]",d="[object Number]",h="[object Object]",p="[object Promise]",f="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",g="[object WeakMap]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",C="[object Uint16Array]",A="[object Uint32Array]",j=/\w*$/,M=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,D={};D[o]=D["[object Array]"]=D[b]=D[_]=D[a]=D[s]=D[w]=D[E]=D[O]=D[P]=D[k]=D[c]=D[d]=D[h]=D[f]=D[v]=D[y]=D[m]=D[S]=D[T]=D[C]=D[A]=!0,D["[object Error]"]=D[u]=D[g]=!1;var L="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,B="object"==typeof self&&self&&self.Object===Object&&self,x=L||B||Function("return this")(),R=e&&!e.nodeType&&e,F=R&&t&&!t.nodeType&&t,W=F&&F.exports===R;function N(t,e){return t.set(e[0],e[1]),t}function H(t,e){return t.add(e),t}function V(t,e,n,i){var r=-1,o=t?t.length:0;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function U(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function z(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function q(t,e){return function(n){return t(e(n))}}function G(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var K,Y=Array.prototype,Q=Function.prototype,X=Object.prototype,$=x["__core-js_shared__"],Z=(K=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+K:"",J=Q.toString,tt=X.hasOwnProperty,et=X.toString,nt=RegExp("^"+J.call(tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=W?x.Buffer:void 0,rt=x.Symbol,ot=x.Uint8Array,at=q(Object.getPrototypeOf,Object),st=Object.create,ut=X.propertyIsEnumerable,lt=Y.splice,ct=Object.getOwnPropertySymbols,dt=it?it.isBuffer:void 0,ht=q(Object.keys,Object),pt=Ft(x,"DataView"),ft=Ft(x,"Map"),vt=Ft(x,"Promise"),yt=Ft(x,"Set"),mt=Ft(x,"WeakMap"),gt=Ft(Object,"create"),bt=Ut(pt),_t=Ut(ft),wt=Ut(vt),Et=Ut(yt),Ot=Ut(mt),Pt=rt?rt.prototype:void 0,kt=Pt?Pt.valueOf:void 0;function St(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Tt(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ct(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function At(t){this.__data__=new Tt(t)}function jt(t,e){var n=qt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Gt(t)}(t)&&tt.call(t,"callee")&&(!ut.call(t,"callee")||et.call(t)==o)}(t)?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],i=n.length,r=!!i;for(var a in t)!e&&!tt.call(t,a)||r&&("length"==a||Ht(a,i))||n.push(a);return n}function Mt(t,e,n){var i=t[e];tt.call(t,e)&&zt(i,n)&&(void 0!==n||e in t)||(t[e]=n)}function It(t,e){for(var n=t.length;n--;)if(zt(t[n][0],e))return n;return-1}function Dt(t,e,n,i,r,p,g){var M;if(i&&(M=p?i(t,r,p,g):i(t)),void 0!==M)return M;if(!Qt(t))return t;var I=qt(t);if(I){if(M=function(t){var e=t.length,n=t.constructor(e);e&&"string"==typeof t[0]&&tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!e)return function(t,e){var n=-1,i=t.length;e||(e=Array(i));for(;++n<i;)e[n]=t[n];return e}(t,M)}else{var L=Nt(t),B=L==u||L==l;if(Kt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(L==h||L==o||B&&!p){if(U(t))return p?t:{};if(M=function(t){return"function"!=typeof t.constructor||Vt(t)?{}:(e=at(t),Qt(e)?st(e):{});var e}(B?{}:t),!e)return function(t,e){return xt(t,Wt(t),e)}(t,function(t,e){return t&&xt(e,Xt(e),t)}(M,t))}else{if(!D[L])return p?t:{};M=function(t,e,n,i){var r=t.constructor;switch(e){case b:return Bt(t);case a:case s:return new r(+t);case _:return function(t,e){var n=e?Bt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,i);case w:case E:case O:case P:case k:case S:case T:case C:case A:return function(t,e){var n=e?Bt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,i);case c:return function(t,e,n){var i=e?n(z(t),!0):z(t);return V(i,N,new t.constructor)}(t,i,n);case d:case y:return new r(t);case f:return function(t){var e=new t.constructor(t.source,j.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return function(t,e,n){var i=e?n(G(t),!0):G(t);return V(i,H,new t.constructor)}(t,i,n);case m:return o=t,kt?Object(kt.call(o)):{}}var o}(t,L,Dt,e)}}g||(g=new At);var x=g.get(t);if(x)return x;if(g.set(t,M),!I)var R=n?function(t){return function(t,e,n){var i=e(t);return qt(t)?i:function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}(i,n(t))}(t,Xt,Wt)}(t):Xt(t);return function(t,e){for(var n=-1,i=t?t.length:0;++n<i&&!1!==e(t[n],n,t););}(R||t,(function(r,o){R&&(r=t[o=r]),Mt(M,o,Dt(r,e,n,i,o,t,g))})),M}function Lt(t){return!(!Qt(t)||(e=t,Z&&Z in e))&&(Yt(t)||U(t)?nt:M).test(Ut(t));var e}function Bt(t){var e=new t.constructor(t.byteLength);return new ot(e).set(new ot(t)),e}function xt(t,e,n,i){n||(n={});for(var r=-1,o=e.length;++r<o;){var a=e[r],s=i?i(n[a],t[a],a,n,t):void 0;Mt(n,a,void 0===s?t[a]:s)}return n}function Rt(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Ft(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return Lt(n)?n:void 0}St.prototype.clear=function(){this.__data__=gt?gt(null):{}},St.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},St.prototype.get=function(t){var e=this.__data__;if(gt){var n=e[t];return n===i?void 0:n}return tt.call(e,t)?e[t]:void 0},St.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:tt.call(e,t)},St.prototype.set=function(t,e){return this.__data__[t]=gt&&void 0===e?i:e,this},Tt.prototype.clear=function(){this.__data__=[]},Tt.prototype.delete=function(t){var e=this.__data__,n=It(e,t);return!(n<0)&&(n==e.length-1?e.pop():lt.call(e,n,1),!0)},Tt.prototype.get=function(t){var e=this.__data__,n=It(e,t);return n<0?void 0:e[n][1]},Tt.prototype.has=function(t){return It(this.__data__,t)>-1},Tt.prototype.set=function(t,e){var n=this.__data__,i=It(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},Ct.prototype.clear=function(){this.__data__={hash:new St,map:new(ft||Tt),string:new St}},Ct.prototype.delete=function(t){return Rt(this,t).delete(t)},Ct.prototype.get=function(t){return Rt(this,t).get(t)},Ct.prototype.has=function(t){return Rt(this,t).has(t)},Ct.prototype.set=function(t,e){return Rt(this,t).set(t,e),this},At.prototype.clear=function(){this.__data__=new Tt},At.prototype.delete=function(t){return this.__data__.delete(t)},At.prototype.get=function(t){return this.__data__.get(t)},At.prototype.has=function(t){return this.__data__.has(t)},At.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Tt){var i=n.__data__;if(!ft||i.length<199)return i.push([t,e]),this;n=this.__data__=new Ct(i)}return n.set(t,e),this};var Wt=ct?q(ct,Object):function(){return[]},Nt=function(t){return et.call(t)};function Ht(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||I.test(t))&&t>-1&&t%1==0&&t<e}function Vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function Ut(t){if(null!=t){try{return J.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,e){return t===e||t!=t&&e!=e}(pt&&Nt(new pt(new ArrayBuffer(1)))!=_||ft&&Nt(new ft)!=c||vt&&Nt(vt.resolve())!=p||yt&&Nt(new yt)!=v||mt&&Nt(new mt)!=g)&&(Nt=function(t){var e=et.call(t),n=e==h?t.constructor:void 0,i=n?Ut(n):void 0;if(i)switch(i){case bt:return _;case _t:return c;case wt:return p;case Et:return v;case Ot:return g}return e});var qt=Array.isArray;function Gt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}(t.length)&&!Yt(t)}var Kt=dt||function(){return!1};function Yt(t){var e=Qt(t)?et.call(t):"";return e==u||e==l}function Qt(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Xt(t){return Gt(t)?jt(t):function(t){if(!Vt(t))return ht(t);var e=[];for(var n in Object(t))tt.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return Dt(t,!0,!0)}},(t,e,n)=>{n.d(e,{getWistiaOptions:()=>o});var i=n(112),r=n.n(i),o=function(t){var e,n;if(!window.wistiaOptions)return{};var i=null!==(e=window.wistiaOptions._all)&&void 0!==e?e:{},o=null!==(n=window.wistiaOptions[t])&&void 0!==n?n:{};return r()(i,o)}},(t,e,n)=>{n.d(e,{maybeStartWistiaQueue:()=>o});var i=n(16),r=null,o=function(){r||(r=setInterval((function(){var t=window._wq;t&&0!==t.length&&t.slice(0).forEach((function(e){"function"==typeof e?(e(i.Wistia),t.splice(t.indexOf(e),1)):i.Wistia.flushInitQueue||(t.splice(t.indexOf(e),1),console.warn("<wistia-player> elements must be configured via window.wistiaOptions instead of window._wq. Config not applied",e))}))}),500))}},(t,e,n)=>{n.d(e,{camelCaseToKebabCase:()=>i,kebabCaseToCamelCase:()=>r});var i=function(t){return t.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(function(t,e){return(void 0!==e?"-":"")+t.toLowerCase()}))},r=function(t){return t.replace(/-./g,(function(t){return t[1].toUpperCase()}))}}],__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__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 n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__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})},__webpack_require__.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var __webpack_exports__={};(()=>{__webpack_require__(16),__webpack_require__(94),__webpack_require__(122),__webpack_require__(261);!function(){for(var t=!1,e=function(){console.warn('E-v1.js is not being hosted from a "fast.wistia" host. Self-hosting, making static copies of this script, or including this script in an optimizer may cause embeds to stop functioning. Check Wistia\'s Help Center for more information.')},n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var r=n[i];if(r.src){var o=new window.URL(r.src,window.location.href);/\/assets\/external\/E-v1?\.js$/.test(o.pathname)&&(t=!0,!1===o.hostname.includes("fast.wistia")&&e())}}!1===t&&e()}()})();
- //# debugId=ef694feb-d968-41ff-a2f3-f771d820538a
- //# sourceMappingURL=E-v1.js.map
|