/*! For license information please see E-v1.js.LICENSE.txt */ var __webpack_modules__=[,,(t,e,n)=>{n.d(e,{Component:()=>b,h:()=>v,options:()=>r,render:()=>F});var i,r,o,a,s,u,l,c={},h=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function f(t,e){for(var n in e)t[n]=e[n];return t}function y(t){var e=t.parentNode;e&&e.removeChild(t)}function v(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)void 0===s[a]&&(s[a]=t.defaultProps[a]);return m(t,s,r,o,null)}function m(t,e,n,i,a){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__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 g(t){return t.children}function b(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(t.__,t.__i+1):null;for(var n;en?(M(i,e,o),o.length=i.length=0,e=void 0,a.sort(l)):e&&r.__c&&r.__c(e,h));e&&M(i,e,o),k.__r=0}function E(t,e,n,i,r,o,a,s,u,l,d){var p,f,y,v,m,g=i&&i.__k||h,b=e.length;for(n.__d=u,S(n,e,g),u=n.__d,p=0;p0?m(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,s=C(r,n,a,c),r.__i=s,o=null,-1!==s&&(c--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&h--,"function"!=typeof r.type&&(r.__u|=65536)):s!==a&&(s===a+1?h++:s>a?c>u-a?h+=s-a:h--:s(null!=u&&0==(131072&u.__u)?1:0))for(;a>=0||s=0){if((u=e[a])&&0==(131072&u.__u)&&r==u.key&&o===u.type)return a;a--}if(s{n.d(e,{Wistia:()=>o});var i=n(4),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)};null==i.root.Wistia&&(i.root.Wistia={});var o=i.root.Wistia;null==o._initializers&&(o._initializers={}),null==o._destructors&&(o._destructors={}),null==o.mixin&&(o.mixin=function(t,e){for(var n in e)r(e,n)&&(t[n]=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.r(e),n.d(e,{addInlineCss:()=>b,currentEventSource:()=>yt,docScrollLeft:()=>dt,docScrollTop:()=>ht,elemAddClass:()=>A,elemAfter:()=>S,elemAncestorHasClass:()=>Q,elemAncestorWithClass:()=>G,elemAncestors:()=>Y,elemAnimate:()=>$,elemAppend:()=>O,elemBefore:()=>E,elemBind:()=>Z,elemBindKey:()=>nt,elemBindOnce:()=>rt,elemCancelFullscreen:()=>ut,elemClasses:()=>R,elemClone:()=>P,elemContainsOffset:()=>V,elemFromObject:()=>_,elemHasClass:()=>j,elemHeight:()=>H,elemHtml:()=>y,elemInDom:()=>z,elemIsDescendantOf:()=>K,elemIsHidden:()=>q,elemIsInside:()=>X,elemMutationObserver:()=>ct,elemOffset:()=>l.elemOffset,elemPrepend:()=>k,elemRebind:()=>it,elemRemove:()=>T,elemRemoveClass:()=>C,elemRequestFullscreen:()=>st,elemScrollOffset:()=>U,elemStripEventAttributes:()=>lt,elemStyle:()=>D,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:()=>F,getCssTags:()=>v,getLastActiveEventAt:()=>mt,getScriptTags:()=>c.getScriptTags,inUserEventContext:()=>vt,isBoxModel:()=>l.isBoxModel,isDocReady:()=>o.isDocReady,onDocReady:()=>o.onDocReady,pageLoaded:()=>a.pageLoaded,propsWithVendorPrefixes:()=>W,removeCssTags:()=>g,removeScriptTags:()=>c.removeScriptTags,safeRequestAnimationFrame:()=>pt});var i,r=n(6),o=n(8),a=n(10),s=n(11),u=n(13),l=n(17),c=n(18),h=n(21),d=n(3),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=(d.Wistia,(0,s.cachedDetect)()),y=function(t,e){var n=v(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)},v=function(t){return t.match(/]*>|\n\n ").concat(u,"\n "),e}function Et(t){for(var e=1,n="wistia-".concat(t,"-").concat(e);null!==(i=document.querySelector("[unique-id=".concat(n,"]")))&&void 0!==i?i:document.querySelector("#".concat(n));){var i;e+=1,n="wistia-".concat(t,"-").concat(e)}return n}function St(t){var e,n;return this.api&&t in this.api._attrs?this.api._attrs[t]:null!==(e=null!==(n=this.embedOptions[t])&&void 0!==n?n:N(this,ut,Tt).call(this,N(this,rt,Ot).call(this,t)))&&void 0!==e?e:K[t]}function Tt(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 Ct(t,e){var n,i,r=this,o=window.Wistia;if(null==o||!o.PublicApi)throw(0,u.countMetric)("player/failure/init-failed"),new Error("Wistia.PublicApi is not defined");H(this,G,new o.PublicApi(t,e)),null===(n=this.api)||void 0===n||n.embedded((function(){N(r,ht,jt).call(r)})),null===(i=this.api)||void 0===i||i.ready((function(){r.dispatchEvent(new CustomEvent("api-ready",{detail:{mediaId:t,api:F(r,G)}})),r.api&&Object.entries(r.api._attrs).forEach((function(t){var e=w(t,2),n=e[0],i=e[1];N(r,ft,Mt).call(r,I({},n,i))}))}))}function At(t){return t.replace(/-./g,(function(t){return t[1].toUpperCase()}))}function jt(){return xt.apply(this,arguments)}function xt(){return(xt=E(O().mark((function t(){var e,n,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.api){t.next=2;break}return t.abrupt("return");case 2:if(e=(0,s.didWinCoinFlip)(v.MUX_PERCENTAGE_TO_ENABLE),n=(0,v.shouldEnableMux)(this.api,e),i=this.useWebComponent?"translated-web-component":"web-component",!n){t.next=10;break}return t.next=8,(0,h.dynamicImport)("assets/external/wistia-mux.js");case 8:t.sent.init(this.api,{embedType:i});case 10:case"end":return t.stop()}}),t,this)})))).apply(this,arguments)}function Bt(){var t=this;if(null!==N(this,ut,Tt).call(this,"current-time")){this.addEventListener("api-ready",(function e(){var n,i,r,o=Number(N(t,ut,Tt).call(t,"current-time")),a=null!==(n=(null===(i=t.api)||void 0===i?void 0:i.popover)&&!t.api.popover.isVisible())&&void 0!==n&&n,s=(0,c.detectIsMobile)(),u="playing"!==t.state&&(s||a);null===(r=t.api)||void 0===r||r.time(o,{lazy:u}),N(t,gt,Wt).call(t,"currentTime",o),t.removeEventListener("api-ready",e)}))}if(null!==N(this,ut,Tt).call(this,"email")&&N(this,bt,Ft).call(this,N(this,ut,Tt).call(this,"email")),null!==N(this,ut,Tt).call(this,"video-quality")){this.addEventListener("api-ready",(function e(){var n,i=N(t,ut,Tt).call(t,"video-quality");null===(n=t.api)||void 0===n||n._impl.setVideoQuality(i),N(t,gt,Wt).call(t,"videoQuality",i),t.removeEventListener("api-ready",e)}))}}function Rt(){var t=this,e=_(_({},Object.fromEntries(Object.entries(this.attributes).map((function(e){var n=w(e,2)[1];return[N(t,ct,At).call(t,n.name),N(t,ut,Tt).call(t,n.name)]})))),this.embedOptions);(0,p.setEmbedOptionStore)("__".concat(this.uniqueId,"_dom_options__"),e)}function Mt(t){var e=F(this,tt).embedOptions,n=r()(e,t);F(this,tt).embedOptions=n}function Dt(){H(this,J,getComputedStyle(this).height)}function Lt(t){var e=r()(F(this,tt),t);H(this,tt,e)}function It(){H(this,et,getComputedStyle(this)["padding-top"])}function Wt(t,e){this.api&&(this.api._attrs[t]=e),N(this,ft,Mt).call(this,I({},t,e))}function Ft(t){var e=this;(0,m.updateWistiaLocalStorage)((function(n){n[F(e,nt)]=_(_({},n[F(e,nt)]),{},{trackEmail:t})})),this.dispatchEvent(new CustomEvent("emailchange",{detail:{email:t}}))}void 0===customElements.get("wistia-player")&&customElements.define("wistia-player",_t)},(t,e,n)=>{t=n.nmd(t);var i="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",l="[object Null]",c="[object Object]",h="[object Proxy]",d="[object Undefined]",p=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[o]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[s]=y["[object Map]"]=y["[object Number]"]=y[c]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var v="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=v||m||Function("return this")(),b=e&&!e.nodeType&&e,_=b&&t&&!t.nodeType&&t,w=_&&_.exports===b,P=w&&v.process,O=function(){try{var t=_&&_.require&&_.require("util").types;return t||P&&P.binding&&P.binding("util")}catch(t){}}(),k=O&&O.isTypedArray;var E,S,T,C=Array.prototype,A=Function.prototype,j=Object.prototype,x=g["__core-js_shared__"],B=A.toString,R=j.hasOwnProperty,M=(E=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",D=j.toString,L=B.call(Object),I=RegExp("^"+B.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=w?g.Buffer:void 0,F=g.Symbol,N=g.Uint8Array,H=W?W.allocUnsafe:void 0,V=(S=Object.getPrototypeOf,T=Object,function(t){return S(T(t))}),U=Object.create,q=j.propertyIsEnumerable,z=C.splice,K=F?F.toStringTag:void 0,G=function(){try{var t=bt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Q=W?W.isBuffer:void 0,Y=Math.max,X=Date.now,$=bt(g,"Map"),Z=bt(Object,"create"),J=function(){function t(){}return function(e){if(!xt(e))return{};if(U)return U(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1},et.prototype.set=function(t,e){var n=this.__data__,i=st(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},nt.prototype.clear=function(){this.size=0,this.__data__={hash:new tt,map:new($||et),string:new tt}},nt.prototype.delete=function(t){var e=gt(this,t).delete(t);return this.size-=e?1:0,e},nt.prototype.get=function(t){return gt(this,t).get(t)},nt.prototype.has=function(t){return gt(this,t).has(t)},nt.prototype.set=function(t,e){var n=gt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},it.prototype.clear=function(){this.__data__=new et,this.size=0},it.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},it.prototype.get=function(t){return this.__data__.get(t)},it.prototype.has=function(t){return this.__data__.has(t)},it.prototype.set=function(t,e){var n=this.__data__;if(n instanceof et){var i=n.__data__;if(!$||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new nt(i)}return n.set(t,e),this.size=n.size,this};var lt,ct=function(t,e,n){for(var i=-1,r=Object(t),o=n(t),a=o.length;a--;){var s=o[lt?a:++i];if(!1===e(r[s],s,r))break}return t};function ht(t){return null==t?void 0===t?d:l:K&&K in Object(t)?function(t){var e=R.call(t,K),n=t[K];try{t[K]=void 0;var i=!0}catch(t){}var r=D.call(t);i&&(e?t[K]=n:delete t[K]);return r}(t):function(t){return D.call(t)}(t)}function dt(t){return Bt(t)&&ht(t)==o}function pt(t){return!(!xt(t)||function(t){return!!M&&M in t}(t))&&(At(t)?I:p).test(function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function ft(t){if(!xt(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=wt(t),n=[];for(var i in t)("constructor"!=i||!e&&R.call(t,i))&&n.push(i);return n}function yt(t,e,n,i,r){t!==e&&ct(e,(function(o,a){if(r||(r=new it),xt(o))!function(t,e,n,i,r,o,a){var s=Pt(t,n),u=Pt(e,n),l=a.get(u);if(l)return void ot(t,n,l);var h=o?o(s,u,n+"",t,e,a):void 0,d=void 0===h;if(d){var p=St(u),f=!p&&Ct(u),y=!p&&!f&&Rt(u);h=u,p||f||y?St(s)?h=s:Bt(_=s)&&Tt(_)?h=function(t,e){var n=-1,i=t.length;e||(e=Array(i));for(;++n-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(mt);function kt(t,e){return t===e||t!=t&&e!=e}var Et=dt(function(){return arguments}())?dt:function(t){return Bt(t)&&R.call(t,"callee")&&!q.call(t,"callee")},St=Array.isArray;function Tt(t){return null!=t&&jt(t.length)&&!At(t)}var Ct=Q||function(){return!1};function At(t){if(!xt(t))return!1;var e=ht(t);return e==s||e==u||e==a||e==h}function jt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function xt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Bt(t){return null!=t&&"object"==typeof t}var Rt=k?function(t){return function(e){return t(e)}}(k):function(t){return Bt(t)&&jt(t.length)&&!!y[ht(t)]};function Mt(t){return Tt(t)?rt(t,!0):ft(t)}var Dt,Lt=(Dt=function(t,e,n){yt(t,e,n)},vt((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=Dt.length>3&&"function"==typeof r?(i--,r):void 0,o&&function(t,e,n){if(!xt(n))return!1;var i=typeof e;return!!("number"==i?Tt(n)&&_t(e,n.length):"string"==i&&e in n)&&kt(n[e],t)}(e[0],e[1],o)&&(r=i<3?void 0:r,i=1),t=Object(t);++n{n.d(e,{fetchMediaData:()=>h});var i=n(3),r=n(24),o=n(27),a=n(23);function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===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:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(){u=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new x(i||[]);return r(a,"_invoke",{value:T(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",f="suspendedYield",y="executing",v="completed",m={};function g(){}function b(){}function _(){}var w={};c(w,a,(function(){return this}));var P=Object.getPrototypeOf,O=P&&P(P(B([])));O&&O!==n&&i.call(O,a)&&(w=O);var k=_.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(r,o,a,s){var u=d(t[r],t,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function T(e,n,i){var r=p;return function(o,a){if(r===y)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var u=C(s,i);if(u){if(u===m)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=y;var l=d(e,n,i);if("normal"===l.type){if(r=i.done?v:f,l.arg===m)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=v,i.method="throw",i.arg=l.arg)}}}function C(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function B(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;j(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:B(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}function l(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 c(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){l(o,i,r,a,s,"next",t)}function s(t){l(o,i,r,a,s,"throw",t)}a(void 0)}))}}window.Wistia&&(window.Wistia._mediaDataPromises||(window.Wistia._mediaDataPromises={}));var h=function(){var t=c(u().mark((function t(e){var n,l,h,d,p,f,y,v=arguments;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=v.length>1&&void 0!==v[1]?v[1]:{},h=i.Wistia,d=e,null===(n=h._mediaDataPromises)||void 0===n||!n[e]){t.next=5;break}return t.abrupt("return",h._mediaDataPromises[d]);case 5:return p=(0,r.mediaDataHost)(l),f="https://".concat(p,"/embed/medias/").concat(e,".json"),y=fetch(f).then(function(){var t=c(u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.json());case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).then((function(t){if(t.error)return t;var e=t.media;return e?((0,o.mediaDataTransforms)(e,l),(0,a.cacheMediaData)(e.hashedId,e),e):{}})),h._mediaDataPromises?h._mediaDataPromises[d]=y:h._mediaDataPromises=s({},d,y),t.abrupt("return",y);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},(t,e,n)=>{n.d(e,{getWistiaOptions:()=>o});var i=n(105),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,{extractEmailFromParams:()=>o});var i=n(46),r=n(13),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(15),n(14),n(111),n(112),n(113),n(128),n(130),n(131),n(132),n(136),n(138),n(139),n(140),n(141),n(121),n(142),n(143),n(144),n(145),n(147)},(t,e,n)=>{var i=n(13),r=n(25);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)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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=new Array(e);n1?n-1:0),r=1;r{var i=n(11);!function(t){t._initializers.initDetect=function(){if(!t.detect)return t.detect=(0,i.cachedDetect)()}}(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,h,d,p,f,y,v,m,g,b,_,w,P,O,k,E,S,T,C,A,j,x,B,R,M,D,L,I,W,F,N,H,V,U,q,z,K,G,Q,Y,X,$,Z,J,tt,et,nt,it,rt,ot,at,st,ut,lt,ct,ht,dt,pt,ft,yt,vt,mt,gt,bt,_t,wt,Pt,Ot,kt,Et,St,Tt,Ct,At,jt,xt,Bt,Rt,Mt;if(t,!t.PublicApi)o=n(84),a=n(94).StopGo,kt=n(4).root,ht=n(95),ut=ht.pluginScriptsToLoad,z=ht.getPluginsNotInList,ct=n(114).prefetchEngineAndPlugins,dt=n(115),$=dt.injectJsonLd,Ot=dt.removeInjectedJsonLd,(yt=n(25)).proto,st=yt.parseUrl,u=yt.Url,vt=n(89),Rt=vt.wData,Mt=vt.wRemoveData,mt=n(62),y=mt.doTimeout,d=mt.clearTimeouts,Ct=n(21).seqId,l=n(7).assign,gt=n(6),p=gt.clone,ot=gt.merge,J=gt.isEmpty,h=gt.cast,At=gt.setDeep,V=gt.getDeep,tt=gt.isObject,bt=n(29),f=bt.countMetric,Et=bt.sampleMetric,lt=n(46).poll,I=n(108).extractEmailFromParams,Y=n(109).inferPageUrl,K=n(119).getViewerPreferences,v=n(40).dynamicImport,n(120).getChannelStorage,et=n(121).maybeLoadAndSetupEmbedLinksThrottled,N=n(66).formattedDurationToSeconds,X=n(122).inferQualityRangeFromOpts,H=n(123).generateRelativeBlockCss,_t=n(88),U=_t.getEmbedOptionStore,e=_t.GLOBAL_ID_KEY,q=n(90).getOneApiHandleFromHashedId,wt=n(22),W=wt.fetchMedia,rt=wt.mediaDataUrl,nt=wt.mediaDataScriptRegExp,xt=wt.transformResponse,c=wt.cacheMedia,F=n(19).findScriptInDomBySrc,St=n(124).sanePlayerColor,s=n(93).TranslationApi,t.Judy=o,t.Assets=n(28),Pt=n(5),M=Pt.elemUnbindAllInside,D=Pt.elemWidth,b=Pt.elemAddClass,Pt.elemAfter,_=Pt.elemAnimate,w=Pt.elemAppend,P=Pt.elemBefore,O=Pt.elemFromObject,k=Pt.elemHasClass,E=Pt.elemHeight,S=Pt.elemInDom,T=Pt.elemIsHidden,C=Pt.elemOffset,Pt.elemPrepend,A=Pt.elemRebind,j=Pt.elemRemove,x=Pt.elemStyle,B=Pt.elemUnbind,R=Pt.elemUnbindAll,Q=Pt.inUserEventContext,Tt=n(125).scrollTop,pt=n(24),g=pt.eV1Protocol,m=pt.eV1HostWithPort,G=n(14).globalTrigger,Bt=n(126).uniqId,n(46).throttle,ft=n(127),Z=ft.insertIntoArray,jt=ft.toArray,it=n(27).mediaDataTransforms,L=n(52).embedOptionsFromQueryParams,t.PublicApi=function(){function n(e,n){var r,o,s,l,h,d,p,y;this._definePluginMethod=i(this._definePluginMethod,this),this._doResize=i(this._doResize,this),this._doMonitor=i(this._doMonitor,this),this._initWithMediaData=i(this._initWithMediaData,this),this._allocEmbedSlot=i(this._allocEmbedSlot,this),this.on("problem",(y=this,function(t){return t.video=y,G("problem",t)})),this.info("initialize"),this._hasImpl=new a,this._notReplacing=new a,this._notReplacing(!0),this.hasPlugins=new a,this.up=new a,this.up(!0),this.down=new a,this.down(!1),this.inViewport=new a,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!=(d=window.wistiaEmbeds)&&d.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 n,i,r,o,a;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()})),o=t._gatherOptions(),r=rt(e,t._gatherOptions()).replace(/\.json(?!p)/,".jsonp").replace(/&$/,""),i=F(r,{ignoreProtocol:!0,scriptRegex:nt(e)}),o.mediaData?t._initWithMediaData(o.mediaData):i?(a=new u(r),n="wistiajsonp-"+a.relative(),lt((function(){return null!==kt[n]&&void 0!==kt[n]}),(function(){var i,r;return r=kt[n],i=xt(r,t._gatherOptions()),c(e,i),t._initWithMediaData(i)}),15,3e4)):W(t.hashedId(),t._gatherOptions()).then((function(e){return t._initWithMediaData(e)})).catch((function(){return f("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)},v("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}})),et(),performance.mark("player_init_complete");try{if(t.detect.performanceMeasure)for(Et("player/initembed-latency",performance.measure("player_init_latency","player_init_start","player_init_complete").duration),p=t.Metrics.embedTypeBuckets(this.container),l=0,h=p.length;l20?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=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,a,s,u;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=p(e),this._mediaData=e,this._mediaData=it(e,this._gatherOptions()),this.data.media=e,a=this._optionSources(),this.info("_optionSources",a),(null!=(s=a.inline)?s.container:void 0)instanceof HTMLElement&&(a.inline=l({},a.inline,{container:a.inline.container.uniqueId||a.inline.container.id||"container-with-no-id"})),f("player/option-sources",1,{optionSources:a,hashedId:this._hashedId,url:window.location.href}),this._opts=this._gatherOptions(),this.info("_opts",p(this._opts)),ot(this._mediaData,this._opts.mergeMediaData),this._inferPropertiesAfterMediaData(),r=o.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=o.playerPlugins(this.judyCtx(),r,this._mediaData,this._opts),o.logWarnings(this.judyCtx(),r,this._mediaData,this._opts),this._implVersion+=1,i=this._implVersion,this._execPlugins().then((u=this,function(){var e,n,a;if(u._implVersion===i){u.hasPlugins(!0),n=t.PublicApi.classFor(r),u.supportedPlayers=o.supportedPlayers(u.judyCtx(),u._mediaData.assets);try{u._impl=new n(u).init()}catch(t){throw e=t,u.error("Failed to initialize impl of class",n,"preferred",r,"supported",u.supportedPlayers),e}return u.grid=u._impl.setupGrid({initDimensions:!1}),u._hasImpl(!0),u.hasData(!0),(null!=(a=u._embedContainer)?a.parentNode:void 0)?(u._runMethodsFromOptions(),u._impl.embed(),u._getFadeInTime()>0&&x(u._impl.gridChildren(),{opacity:0}),u._impl.embedded((function(){return u._getFadeInTime()>0?_(u._impl.gridChildren(),{opacity:1},{time:u._getFadeInTime(),callback:function(){return u.trigger("transitiondone")}}):u.trigger("transitiondone")})),y(u.uuid+".prefetch_next_media",(function(){return u.prefetchNextMedia()}),2e3),u._injectJsonLd()):u.notice("embed(): container removed, giving up")}u.notice("_initWithMediaData(): impl changed from",i,"to",u._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=o.buildContext({pageUrl:this._attrs.pageUrl}))},n.prototype._wvideoInUrl=function(){return!this._opts._inIframe&&st(this._attrs.pageUrl).params.wvideo===this.hashedId()},n.prototype._scrollToContainer=function(){var t;return t=C(this.container),Tt(t.top-100)},n.prototype._injectJsonLd=function(){if(this._jsonLdId&&Ot(this._jsonLdId),"notplayable"!==this.playerType&&"passwordprotected"!==this.playerType&&!1!==this._attrs.seo)return this._jsonLdId="w-json-ld"+this._impl.uuid,$(this._jsonLdId,this._mediaData,{videoWidth:this.videoWidth(),videoHeight:this.videoHeight(),embedOptions:this._opts})},n.prototype._setDeprecatedProperties=function(){return this.options=p(this._opts),this.params=p(this._opts),ot(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._execPlugins=function(){var e;return this._pluginScripts=ut(this._mediaData,this._opts,this._playerPlugins),t.plugin._setFnForDefinedPlugins(this,this._pluginScripts),(e=z(this._pluginScripts)).length>0&&f("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 n,i,r,o,a,s,u,l,c;if(null==t&&(t={}),"v1"===(o=(t=ot({givenOptions:p(this._givenOptions),mediaData:p(this._mediaData),hashedId:this._hashedId,container:this.container},t)).givenOptions).version?i={}:t.mediaData?delete(i=p(t.mediaData.embedOptions)).stillUrl:i={},s=L(["autoPlay","deliveryCdn","hls","techInfo"],this._inferPageUrl()),n=t.container.uniqueId||t.container.id,r={},l={customize:i,global:U(e),hashedId:U(t.hashedId,q),dom:U("__"+n+"_dom_options__"),container:U(n),inline:o,inferredOptions:r,viewerPreferences:K(),channelPreferences:o.channelPreferences||{},queryParamOptions:s,override:t.override||{}},o.optionSourceOverrides)for(a in u=o.optionSourceOverrides)c=u[a],l.hasOwnProperty(a)&&(l[a]=c);for(a in l)c=l[a],J(c)&&delete l[a];return l},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?ot(i,a):e.only||e.except||ot(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)),h(e),this._normalizeOptions(e),e},n.prototype.hashedId=function(t){return null!=t?(this._hashedId=t,this):this._hashedId},n.prototype.isAudio=function(){return"Audio"===this._mediaData.mediaType},n.prototype.isLiveMedia=function(){return"LiveStream"===this._mediaData.mediaType},n.prototype._normalizeOptions=function(t){return t.twitter&&(this.info("twitter detected"),V(t,"plugin.socialbar-v1")&&(this.info("disabled socialbar"),At(t,"plugin.socialbar-v1.on",!1))),null!=t.playButtonVisible&&(t.playButton=h(t.playButtonVisible),delete t.playButtonVisible),t},n.prototype._setupContainer=function(){var t,e,n,i,r,o,a,s,u,l;if(this._containerId=this._givenOptions.container?this._givenOptions.container:"wistia_"+this.hashedId(),"string"==typeof this._containerId?this.container=document.getElementById(this._containerId):this.container=this._containerId,this.container){if("WISTIA-PLAYER"===this.container.tagName&&this._shouldBePopover()){for(this.webComponentParent=this.container.parentNode,this._startingHtml=this.webComponentParent.cloneNode(!0),e=0,i=(s=Array.prototype.slice.call(this._startingHtml.childNodes)).length;e0)&&(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=this._defaultBigPlayButtonBorderRadius(),this._attrs.controlBarBorderRadius=this._defaultControlBarBorderRadius(),this._attrs.floatingControlBar=this._opts.floatingControlBar||!1,this._attrs.controlBarDistance=this._defaultControlBarDistance(),this._attrs.playerBorderRadius=this._defaultPlayerBorderRadius(),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._inferPageUrl=function(){var t;return(null!=(t=this._opts)?t.pageUrl:void 0)?this._opts.pageUrl:Y()},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),this._hasImpl((o=this,function(){if(null!=o._opts.playerColor)return o.playerColor(o._opts.playerColor)})),null!=this._attrs.volume&&this.volume(this._attrs.volume),!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(function(t){return function(){return t._playSuspendedOffScreenEnabled()?t.inViewport()?t.play():t.bind("enterviewport",(function(){return t.play(),t.unbind})):t.play()}}(this)),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(Rt("video")){for(l in u=[],o=Rt("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;i0)return this.container.wistiaApi=this}},n.prototype._addToGlobalCache=function(){var t;return this.info("_addToGlobalCache",this.uuid),t=this.translationApi?this.translationApi:this,Rt(["video",this.uuid],t)},n.prototype._displayServerError=function(t){var e;return"WISTIA-PLAYER"===this.container.tagName&&(t.iframe?(e=g()+"//"+m(),this.container.shadowRoot.innerHTML=""):this.container.shadowRoot.innerHTML="
"+(t.message||t.error)+"
"),t.iframe?(e=g()+"//"+m(),this.container.innerHTML=""):this.container.innerHTML="
"+(t.message||t.error)+"
"},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,ot({force:this._impl.playerType,inPlace:!1,transition:"none"},t))},n.prototype.rebuildAs=function(t,e){return null==e&&(e={}),this.fullRebuild(ot(this._givenOptions,e,{force:t,transition:"none"}))},n.prototype.replace=function(t,e){return null==e&&(e={}),this.replaceWith(t,ot({inlineOptionsOnly:!0},e))},n.prototype.replaceWith=function(e,n){var i,r;return null==n&&(n={}),this.info("replaceWith",e,n),r=this,i=function(){var i,o,a,s;return s=r._impl?r._replaceWithMediaData:r._initWithMediaData,r._impl.trigger("beforereplace",e),r._notReplacing(!1),r.hasData(!1),r._hasImpl(!1),r._initTime=(new Date).getTime(),r.hasData((function(){return r._hasDataTime=(new Date).getTime(),r.embedded((function(){return r._embeddedTime=(new Date).getTime()}))})),tt(e)?s.call(r,e,n):(o=t.mediaFromCache(e))?s.call(r,o,n):(i=p(r._gatherOptions()),a=ot({},i,n),W(e,a).then((function(t){return s.call(r,t,n)})).catch((function(){return f("player/failure/replace-failed")})))},this._hasImpl(function(t){return function(){return t._notReplacing(i)}}(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(e,n){var i,r,s,u,l,c,d,f,v,m,g,b,_,w,P,O;return null==n&&(n={}),n=p(n),this.info("_replaceWithMediaData",e,n),e.error?(this._displayServerError(e),void this.trigger("servererror")):(null!=n.playlistIndex?(this._playlistIndex=n.playlistIndex,delete n.playlistIndex):this._inPlaylist(e.hashedId)&&(this._playlistIndex=this._playlistIndexOf(e.hashedId)),null!=n.playlistShouldAutoAdvance&&(this._playlistShouldAutoAdvance=n.playlistShouldAutoAdvance),n.inlineOptionsOnly&&(l=n.inlineOptionsOnly,delete n.inlineOptionsOnly),null!=n.inPlace&&(u=n.inPlace,delete n.inPlace),null!=n.transition&&(w=n.transition,delete n.transition),null!=n.transitionTime&&(P=n.transitionTime,delete n.transitionTime),this.hasData(!1),this._hasImpl(!1),null!=(v=this._impl._tracker)&&v.stopMonitoring(),this._clobberVideoBindings(),this._savedState={},this._suspended=!1,"function"==typeof(d=this._impl).wipeOutstandingAsyncFunctions&&d.wipeOutstandingAsyncFunctions(),this._hashedId=e.hashedId,this._originalMediaData=e,this.data.media=e,this._givenOptions=n,this._mediaData=e,this._opts=l?this._gatherOptions({only:"inline"}):this._gatherOptions(),this._embedOptions=null,this._mediaData=it(e,this._opts),d.trigger("beforereplaceengine"),d.freezeLastFrame(),f=new a,_=function(){return f.go()},Q()&&!0===this._attrs.autoplay&&!d.isMuted()&&(i=d.engine)?(i.stopStreaming(),i.play().then(_).catch(_),setTimeout(_,2e3)):_(),!1===h(null!=(m=this._mediaData.embedOptions.plugin)&&null!=(g=m.passwordProtectedVideo)?g.on:void 0)&&null!=(null!=(b=this._opts.plugin)?b.passwordProtectedVideo:void 0)&&(this._opts.plugin.passwordProtectedVideo.on=!1),this.info("_opts",p(this._opts)),ot(this._mediaData,this._opts.mediaData),this._inferPropertiesAfterMediaData(),s="notplayable"!==d.playerType&&("passwordprotected"!==d.playerType&&(!("html5"!==d.playerType||!(t.detect.iphone||t.detect.android||t.detect.ipad||t.detect.safari))||null!=u&&u)),this.info("inPlace",s),c=o.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=o.playerPlugins(this.judyCtx(),c,this._mediaData,this._opts),o.logWarnings(this.judyCtx(),c,this._mediaData,this._opts),s&&(this.removePlugins(),d.stopStreaming()),this.plugin=null,this._pluginStopGos={},this._definePluginMethod(),this.hasPlugins(!1),d.commandQueueOpen.setQueue([]),this.removeSwatch(),this._implVersion+=1,r=this._implVersion,f((O=this,function(){var e;return null!=(e=d.engine)&&e.destroy(),O._execPlugins().then((function(){var e,n;if(O._implVersion===r)return O.hasPlugins(!0),O.supportedPlayers=o.supportedPlayers(O.judyCtx(),O._mediaData.assets),n=t.PublicApi.classFor(c),O._impl=new n(O).init(),O._setupBindings(),O.grid=s?O._impl.grid=d.grid:O._impl.setupGrid({initDimensions:!1}),"function"==typeof(e=O._impl).transferStateFrom&&e.transferStateFrom(d),O._hasImpl(!0),O.hasData(!0),s||O._runMethodsFromOptions(),s?O._replaceMode((function(){return O._impl.initFrom(d)})):O._replaceMode((function(){return O._embedWithTransitionFrom(d,w,{time:P})})),O.embedded((function(){return O._notReplacing(!0)})),s&&O._runMethodsFromOptions(),O._allowContainerMatch()&&O.width(O.containerWidth(),{constrain:!0}),y(O._impl.uuid+".inject_json_ld",(function(){return O._injectJsonLd()})),O.trigger("afterreplace"),O.container.dispatchEvent(new CustomEvent("afterreplace",{detail:{api:O}})),y(O.uuid+".prefetch_next_media",(function(){return O.prefetchNextMedia()}),2e3);O.notice("replaceWith(): impl changed from",r,"to",O._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&&f("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()})),y(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&&x(t.grid.root,{position:"absolute",zIndex:0}),x(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(),x(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 t,e,n;for(t in n=[],e=this._bindings)e[t],"afterreplace"!==t&&"beforereplace"!==t&&"all"!==t?n.push(this.unbind(t)):n.push(void 0);return n},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;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),Ot(this._jsonLdId),null!=(r=this.popover)&&"function"==typeof r.remove&&r.remove(),null!=(o=this._impl)&&o.stopStreaming(),null!=(a=this._intersectionObserver)&&a.disconnect(),R(this._foamDummyElem),j(this._foamDummyElem),null!=(s=t.eventLoop)&&s.remove(this.uuid),d(this.uuid),this._unbindListeners(),j(this.chrome),Mt(["video",this.uuid]),this.trigger("afterremove"),this._bindings={},"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component")&&j(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,j(this.container))):this.container.wistiaApi="removed",this._impl=null,null!=(u=window.__wistiaStores)&&(u[this.uuid]=null),null!=(l=window.__wistiaStores)?delete l[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))&&j(e),"WISTIA-PLAYER"===this.container.tagName&&(e=this.container.shadowRoot.querySelector(".wistia_swatch")))return j(e)},n.prototype.fullRemove=function(){var t,e,n;return e=this._embedContainer,n=this._popoverContainer,t=this.container,this.remove(),j(e),j(n),j(t),this.container=this._embedContainer=null,this},n.prototype.isRemoved=function(){return!Rt(["video",this.uuid])},n.prototype._unbindListeners=function(){if(M(this.chrome),this._throttleTriggerViewport&&B(window,"scroll",this._throttleTriggerViewport),this._doResize)return B(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",p(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=ot({},this._savedState,t),this.info("unsuspend",p(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),A(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=C(this.container).top)+E(this.container),i=Tt(),n=Tt()+E(window),e>=i&&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.hashedId())},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=ot({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=ot({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=ot({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=jt(t)).length;o500?160:Math.abs(u-this.aspect())<.2?.2*s:.1*s,a=u>this.aspect()?Math.round((l-e)*this.aspect()):c-e):"border-box"===this._parentBoxSizing?(this._foamDummyElem||(this._foamDummyElem=O({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"}}),P(this._embedContainer,this._foamDummyElem)),a=D(this._foamDummyElem)):a=D(this._embedContainer.parentNode),!(isNaN(a)||this._lastParentWidth===a&&this._didFoam))return 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&&nt,l=this,r=function(){return l.time()=t?(d(u),r()):n?void 0:y(u,r,1e3*(t-e.time()))}}(this),a=function(e){return function(){if(e.time(){n.d(e,{prefetchEngineAndPlugins:()=>u});var i=n(3),r=n(84),o=n(19),a=n(95),s=n(40),u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.pluginScriptsToLoad)(t,e),i=r.buildContext(),o=r.bestUsableEngine(i,t,e),u=l(n),c=(0,s.dynamicImport)("assets/external/".concat(o));return Promise.all([u,c])},l=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(t){return i.Wistia.plugin._prefetched[t.src]||(i.Wistia.plugin._prefetched[t.src]="fetching"),!i.Wistia.plugin._prefetched[t.src]}));return 0===t.length?Promise.resolve():(0,o.runScripts)(t).then((function(){t.forEach((function(t){i.Wistia.plugin._prefetched[t.src]="fetched"}))}))}},(t,e,n)=>{n.r(e),n.d(e,{injectJsonLd:()=>d,removeInjectedJsonLd:()=>p});var i=n(116),r=n(117),o=n(6),a=n(24),s=n(28),u=n(25),l=n(118),c=function(t,e){var n,i="https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId);return(0,r.shouldAddKeyMoments)(t,e)&&!(0,r.shouldAddClipsFromChapters)(e)&&null!==(n=t.embedOptions.plugin)&&void 0!==n&&n.videoThumbnail?"".concat(i,"?wseektoaction=true"):i},h=function(t){var e=t.assets;if("Audio"===t.mediaType)return(0,s.readyPublicMp3s)(e)[0].url;var n=(0,s.findClosestAssetByQuality)((0,s.readyPublicMp4s)(e),1080),i=new u.Url(n.url);return i.ext("m3u8"),i.absolute()},d=function(t,e){var n,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n="Audio"===e.mediaType?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.videoWidth,r=e.videoHeight,u=e.embedOptions;return u||(u=(0,o.cast)((0,o.clone)(t.embedOptions))),{"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"AudioObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,s.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:r,embedHost:u.embedHost}),contentUrl:h(t),embedUrl:c(t,u),uploadDate:new Date(1e3*t.createdAt).toISOString(),description:t.seoDescription}}(e,u):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.videoWidth,u=e.videoHeight,d=e.embedOptions;d||(d=(0,o.cast)((0,o.clone)(t.embedOptions)));var p={"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"VideoObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,s.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:u,embedHost:d.embedHost}),embedUrl:c(t,d),uploadDate:new Date(1e3*t.createdAt).toISOString(),description:t.seoDescription};if("Video"===t.mediaType&&(p.contentUrl=h(t)),t.captions&&t.captions[0]&&(p.transcript=t.captions[0].text),(0,r.shouldAddKeyMoments)(t,d))if((0,r.shouldAddClipsFromChapters)(d)){var f=(0,l.normalizeChapters)(d).chapterList;p.hasPart=(0,r.clipsFromChapters)(f,location.href,t.duration)}else p.potentialAction=(0,r.seekToAction)();return p}(e,u);var d=JSON.stringify(n),f=document.createElement("script");f.className="w-json-ld",f.type="application/ld+json",f.innerHTML=d,f._wistia=!0,f.setAttribute("id",t),p(t);var y=document.querySelectorAll("script.w-json-ld"),v=y[y.length-1];v?v.parentNode.insertBefore(f,v.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,{secondsToIso8601Duration:()=>r});var i=n(66),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)=>{n.d(e,{clipsFromChapters:()=>l,seekToAction:()=>c,shouldAddClipsFromChapters:()=>s,shouldAddKeyMoments:()=>u});var i=n(25),r=n(118);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)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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=new Array(e);n0},u=function(t,e){if(!1===e.keyMoments)return!1;var n=t.duration,i=t.type,r=e.plugin||{},o=r.passwordProtectedVideo,a=r["requireEmail-v1"],s="LiveStream"===i,u=!0===(null==o?void 0:o.on)||"true"===(null==o?void 0:o.on),l=a&&!1!==a.on&&"end"!==a.time&&!a.persistentTurnstile;return Boolean(!u&&!l&&!s&&n>=30)},l=function(t,e,n){if(t&&0!==t.length){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!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 i.Url(e),l=Math.floor(a),c=o[r+1]?o[r+1].time:n;return u.params.wtime="".concat(l,"s"),{"@type":"Clip",endOffset:Math.floor(c),name:s,startOffset:l,url:u.absolute()}}));return r}},c=function(){var t=new i.Url(location.href);return t.params.wtime="{seek_to_second_number}",{"@type":"SeekToAction",target:"".concat(t.absolute().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:()=>i});var i=function(t){var e=t.plugin,n=t.chaptersOn,i=t.chapterList;return null!=e&&e.chapters?e.chapters:i||n?{on:n,chapterList:i&&i.length>0?i:[]}:void 0}},(t,e,n)=>{n.d(e,{getViewerPreferences:()=>o,setViewerPreference:()=>a});var i=n(32),r=function(){return"wistia-viewer-preferences"},o=function(){return(0,i.getLocalStorage)(r())},a=function(t,e){(0,i.updateLocalStorage)(r(),(function(n){n[t]=e}))}},(t,e,n)=>{n.d(e,{getChannelStorage:()=>u});var i=n(31),r=n(32),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:()=>c});var i=n(3),r=n(8),o=n(62),a=n(40),s=n(47),u=n(90);i.Wistia._destructors.destroyEmbedLinks=function(){i.Wistia.EmbedLink.EmbedLinkClass&&i.Wistia.EmbedLink.EmbedLinkClass._onEv1Destroy()};var l=function(){for(var t=arguments.length,e=new Array(t),n=0;n0})()&&(0,a.dynamicImport)("assets/external/embedLinks.js").then((function(t){var n;(n=t.EmbedLink).setupAll.apply(n,e)}))},c=(0,s.throttle)(1e3,(function(){for(var t=arguments.length,e=new Array(t),n=0;n{n.d(e,{inferQualityRangeFromOpts:()=>a});n(28);var i=n(29),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(6);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)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(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=new Array(e);n")),p},s="display:inline-block;height:100%;line-height:normal;margin:0;padding:0;position:relative;vertical-align:top;width:100%;"},(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)=>{var i=n(84),r=n(28),o=n(72),a=n(94),s=n(24),u=n(50),l=n(124),c=n(62),h=n(6),d=n(129),p=n(29),f=n(5),y=n(21),v=n(123),m=n(39),g=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 b(t,e){for(var n=0;n0&&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,f.elemStyle)(t.grid.root,{position:"relative"}),null==i||i()},(0,f.elemStyle)(this.grid.root,{position:"absolute"}),(0,f.elemAnimate)(this.grid.root,e,n),this}},{key:"aspect",value:function(){if(this._attrs.aspect)return this._attrs.aspect;if(this.publicApi.isAudio())return this.publicApi.width()/this.publicApi.height();if(this._currentAsset)return"variable"==this._currentAsset.width?this.mp4Aspect()||this.originalAspect():this._currentAsset.width/this._currentAsset.height;var t=this.asset({container:/mp4/});return t?t.width/t.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,h.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,h.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,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom))}},{key:"extraWidth",value:function(){return(0,f.elemWidth)(this.grid.left)+(0,f.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;i0&&void 0!==arguments[0]?arguments[0]:{};return r.m3u8(this._mediaData.assets,(0,h.merge)(this.qualityOptions(),t))}},{key:"height",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("height",e,n),e=parseFloat(e);var i=this.height();return this.grid.wrapper.style.height=this.chrome.style.height="".concat(e,"px"),n.dontChangeContainer||(this._embedContainer.style.height="".concat(e,"px")),this.grid.center.style.height="100%",this._opts.dontFit?(this.grid.main.style.height="".concat(e-(0,f.elemHeight)(this.grid.above)-(0,f.elemHeight)(this.grid.below),"px"),this.grid.main.style.marginTop="".concat((0,f.elemHeight)(this.grid.top),"px")):(t.grid.fitHorizontal(this),t.grid.fitVertical(this)),(Math.abs(e-i)>_||n.trigger)&&(this.trigger("heightchange",e,i),this.embedElement.dispatchEvent(new CustomEvent("heightchange",{detail:{height:e,prevHeight:i}}))),n.constrain&&this.constrainToHeight(),this}return(0,f.elemHeight)(this.grid.center)+Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.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}},{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,h.merge)(this.qualityOptions(),t))}},{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,h.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?this._name: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,f.elemFromObject)({id:(0,y.seqId)("wistia_video_wrapper_"),style:v.generateRelativeBlockCss,class:"wistia_video_wrapper"}),(0,f.elemStyle)(this.wrapperElem,{overflow:"hidden"}),(0,f.elemAppend)(e,this.wrapperElem),"string"==typeof t?this.wrapperElem.innerHTML+=t:(0,f.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,h.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=this._attrs,n=this.embedElement;if(null!=t){this.info("playerColor",t);var i=e.playerColor;return t=(0,l.sanePlayerColor)(t),e.playerColor=new o.Color(t).toHex(),i!==e.playerColor&&n.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:e.playerColor,prevColor:i}})),this}return e.playerColor}},{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:"playerLanguage",value:function(t){var e=this;if(null==t)return(0,m.getLanguage)(this._attrs.playerLanguage)||(0,m.getLanguage)("en-US");this.embedded((function(){if(!(0,m.getLanguage)(t))throw new Error("Language ".concat(t," isn't defined."));t!==e._attrs.playerLanguage&&(e._attrs.playerLanguage=t,e.trigger("playerlanguagechange",(0,m.getLanguage)(t)))}))}},{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,f.elemRemove)(t.wrapperElem),t.wipeOutstandingAsyncFunctions(),t.embed()})),this}},{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,f.elemUnbindAllInside)(this.grid.root),(0,f.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,f.elemAppend)(this.chrome,this.grid.root)),this.grid}},{key:"setupPercentTracking",value:function(){var t=this;if(!this._trackPercent){if(this._secondsWatchedTracker=new d.SecondsWatchedTracker(this,this.duration(),{maxWatchingPlaybackRate:this._opts.maxWatchingPlaybackRate}),"playing"===this.state())for(var e=Math.ceil(this.time()),n=0;n=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:"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;r1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=e){this.info("videoHeight",e,n),e=parseFloat(e);var i=this.height();this.grid.main.style.height="".concat(e,"px"),this.grid.center.style.height="100%",this.grid.main.style.height="".concat(e,"px");var r=Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom));return this.grid.wrapper.style.height=this.chrome.style.height="".concat(e+r,"px"),this._embedContainer.style.height="".concat(e+r,"px"),t.grid.fitHorizontal(this),t.grid.fitVertical(this),Math.abs(e-i)>_&&(this.trigger("heightchange",e,i),this.embedElement.dispatchEvent(new CustomEvent("heightchange",{detail:{height:e,prevHeight:i}}))),n.constrain&&this.constrainToHeight(),this}return(0,f.elemHeight)(this.grid.center)}},{key:"videoWidth",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=e){this.info("videoWidth",e,n),e=parseFloat(e);var i=this.width();this.grid.center.style.width="100%",this.grid.main.style.width="".concat(e,"px");var r=(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.right);return this.grid.wrapper.style.width=this.chrome.style.width="".concat(e+r,"px"),this._embedContainer.style.width="".concat(e+r,"px"),t.grid.fitHorizontal(this),t.grid.fitVertical(this),Math.abs(e-i)>_&&(this.trigger("widthchange",e,i),this.embedElement.dispatchEvent(new CustomEvent("widthchange",{detail:{width:e,prevWidth:i}}))),n.constrain&&this.constrainToWidth(),this}return(0,f.elemWidth)(this.grid.center)}},{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,h.merge)(this.qualityOptions(),t))}},{key:"whenVideoElementInDom",value:function(){return new Promise((function(t){}))}},{key:"width",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=e){this.info("width",e,n),e=parseFloat(e);var i=this.width();return this.grid.wrapper.style.width=this.chrome.style.width="".concat(e,"px"),n.dontChangeContainer||(this._embedContainer.style.width="".concat(e,"px")),this.grid.center.style.width="100%",this._opts.dontFit?(this.grid.main.style.width="".concat(e-(0,f.elemWidth)(this.grid.left)-(0,f.elemWidth)(this.grid.right),"px"),this.grid.main.style.marginLeft="".concat((0,f.elemWidth)(this.grid.left),"px")):(t.grid.fitHorizontal(this),t.grid.fitVertical(this)),(Math.abs(e-i)>_||n.trigger)&&(this.trigger("widthchange",e,i),this.embedElement.dispatchEvent(new CustomEvent("widthchange",{detail:{width:e,prevWidth:i}}))),n.constrain&&this.constrainToWidth(),this._width=e,this}return(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.center)+(0,f.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="".concat((0,s.eV1Protocol)(),"//").concat((0,s.appHost)(),"/account/activities"),l={account_key:e,media_hashed_id:r};o&&(l.first_embed=this._isExternallyEmbedded()),a&&(l.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}),fetch(u,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})}}},{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,h.merge)({},t[0],{callback:t[1]})}}],w&&b(n.prototype,w),P&&b(n,P),Object.defineProperty(n,"prototype",{writable:!1}),e}();e.FAILED=-1,e.PROCESSING=1,e.QUEUED=0,e.READY=2,e.asset=r.one,e.assets=r.filter,e.assetsWithinQualityRange=r.withinQualityRange,e.bakeryHosts=function(){return r.BAKERY_HOSTS},e.isBakeryUrl=r.isBakeryUrl,e.stillAsset=r.still,e.stillUrl=r.stillUrl,t.mixin(e.prototype,t.bindable),t.mixin(e.prototype,t.logHelpers),e.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 n=e.prototype.trigger;e.prototype.trigger=function(){for(var t,e=arguments.length,i=new Array(e),r=0;r{function i(t,e){for(var n=0;na});var a=function(){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()}var e,n,o;return e=t,n=[{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{var i=n(5);!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(24);var i=n(25),r=n(62),o=n(21),a=n(6);function s(t,e){for(var n=0;n1)||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).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(),l(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))},e.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()},e.prototype.distilleryUrl=function(){return this.publicApi._attrs.statsUrl||this.publicApi._mediaData.distilleryUrl},e.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},e.prototype.readyToTrack=function(e){return this.publicApi.hasData((function(){return f((function(){return t.visitorKey.ready().then(e)}))}))},e.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(s(n)),e.eventQueue=[]}))},e.prototype.debounceTransmit=function(){return l(this.publicApi.uuid+".transmit_play_data",(t=this,function(){return t.transmit()}),350);var t},e.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.publicApi.duration(),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=u(this.videoTrackerLocalStorage.lastLoadForMedia())):"play"===t?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastPlayForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastPlayForMedia(),i.isUnique=u(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))},e.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)},e.prototype.addBuckets=function(t,e){var n,i;if("beforeplay"!==this.publicApi.state()&&(i=this.publicApi.time(),n=this._timeToBucket(e||i),this.lastBucket{var i,r,o,a;n(3).default,o=n(134).secondsSinceTime,i=n(129).SecondsWatchedTracker,a=n(126).uniqId,r=function(){function t(t){this.publicApi=t,this.lastFetchTime=(new Date).getTime(),this.secondsWatchedTracker=new i(this.publicApi,this.publicApi.duration(),{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(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("bc40a50231ee3b2830df63f8b41c3812".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;n(3).default,r=n(134).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(r(Wistia.localStorage("accounts_loaded."+this.accountKey))))},t.prototype.lastLoadForMedia=function(){return this._lastLoadForMedia||(this._lastLoadForMedia=this.nullToNone(r(Wistia.localStorage("medias_loaded."+this.hashedId))))},t.prototype.lastPlayForAccount=function(){return this._lastPlayForAccount||(this._lastPlayForAccount=this.nullToNone(r(Wistia.localStorage("accounts_played."+this.accountKey))))},t.prototype.lastPlayForMedia=function(){return this._lastPlayForMedia||(this._lastPlayForMedia=this.nullToNone(r(Wistia.localStorage("medias_played."+this.hashedId))))},t.prototype.lastRecordingOfActionForMedia=function(t){return this.nullToNone(r(Wistia.localStorage("action_recorded."+this.hashedId+"."+t)))},t.prototype.isNewLead=function(){var t,e;return t="action_recorded.conversion",(e=Wistia.localStorage(t))?!e:(this.logFn("recordNewLead"),Wistia.localStorage(t,!0))},t.prototype.recordLastActionForMedia=function(t){return Wistia.localStorage("action_recorded."+this.hashedId+"."+t,(new Date).getTime())},t.prototype.recordLoad=function(){return this.logFn("recordLoad"),Wistia.localStorage("accounts_loaded."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_loaded."+this.hashedId,(new Date).getTime())},t.prototype.recordPlay=function(){return this.logFn("recordPlay"),Wistia.localStorage("accounts_played."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_played."+this.hashedId,(new Date).getTime())},t.prototype._saveVisitorVersion=function(t){if(null==t&&(t=1),null==Wistia.localStorage("visitor_version"))return Wistia.localStorage("visitor_version",t)},t.prototype.getVisitorVersion=function(){return Wistia.localStorage("visitor_version")||(this._saveVisitorVersion(0),0)},t.prototype.clearActionRecordings=function(){return["chapterImpression","chapterConversion","shareImpression","shareConversion"].forEach((t=this,function(e){return Wistia.localStorage("action_recorded."+t.hashedId+"."+e,"",!0)}));var t},t}(),t.exports=i},(t,e,n)=>{var i=n(24),r=n(22),o=n(137),a=n(26);!function(t){t.remote||(t.remote={},t.remote.appHostname=a.appHostname,t.remote.embedHost=i.cdnFastWistiaComHost,t.remote.externalEmbedHost=i.cdnFastWistiaNetHost,t.remote.appHost=i.appHost,t.remote.assetHost=i.deliveryHost,t.remote.media=r.fetchMedia,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(3),r=n(25),o=n(24),a=n(13),s=n(21),u=n(62);null==i.Wistia._remotePlaylist&&(i.Wistia._remotePlaylist={});var l=function(t,e){var n=i.Wistia._remotePlaylist[t];if(n)(0,u.doTimeout)("remote-playlist.".concat(t,".").concat((0,s.seqId)()),(function(){e(n)}));else{var l="".concat((0,r.proto)(),"//").concat((0,o.cdnFastWistiaComHost)(),"/embed/playlists/").concat(t,".json");fetch(l).then((function(t){return t.json()})).then((function(n){i.Wistia._remotePlaylist[t]=n,e(n)})).catch((function(){a.wlog.error("Timed out fetching ".concat(l))}))}}},(t,e,n)=>{var i=n(85),r=n(6),o=n(5);!function(t){if(!t.Metrics)t.Metrics={count:i.count,sample:i.sample,send:i.send,videoCount:function(t,e,n,i){return null==n&&(n=1),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,h,d,p,f,y,v,m,g,b,_,w,P,O,k=(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!==(h=c.protocol)&&void 0!==h&&h.length&&null!==(d=location)&&void 0!==d&&null!==(p=d.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:k.clientKbps,supports_hd:k.supportsHd,autoplay:!(null===(y=e._attrs)||void 0===y||!y.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===(v=e._tracker)||void 0===v?void 0:v.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===(P=e.elem())||void 0===P?void 0:P.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||t.detect.blackberry||/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?ni;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,h;if(t.Plugin||(t.Plugin={}),!t.Plugin.Base)a=n(24),i=a.eV1HostWithPort,r=a.eV1Protocol,e=n(95).allow3rdParty,o=n(6).merge,s=n(89),c=s.wData,h=s.wRemoveData,l=n(21).seqId,u=n(19).runScripts,t.Plugin.Base=function(){function e(){this.pluginName="plugin"}return e.prototype.instances=function(){return c(["plugins",this.pluginName,this.video.uuid])},e.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)},e.prototype.remove=function(e){var n;if(null==e&&(e={}),(n=this.playlist||this.video||this.audio).plugins[this.uuid]=null,h(["plugins",this.pluginName,n.uuid,this.uuid]),n.plugins[this.uuid]===this&&delete n.plugins[this.uuid],n.plugin[this.pluginName]===this&&delete n.plugin[this.pluginName],!e.dontFit)return t.grid.fitHorizontal(n),t.grid.fitVertical(n)},e.prototype.fit=function(){},e.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")},e}(),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{var i=n(86);!function(t){t.localStorage||(t.localStorage=i.setOrGet,t.removeLocalStorage=i.removeLocalStorage)}(window.Wistia)},(t,e,n)=>{var i=n(5),r=n(29),o=n(21),a=n(95),s=n(123);!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),t.initGridDimensions(n,r,i),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{var i=[].slice;!function(t){var e,r,o,a,s,u,l,c,h;if(l=n(5),a=l.elemRebind,s=l.elemUnbind,o=n(40).dynamicImport,r=n(29).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)h=c[u],e.prototype[u]||"function"!=typeof h||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{var i=n(14),r=n(30),o=n(126),a=n(100);function s(t,e){for(var n=0;n25&&/^[a-z0-9_\-.]+$/i.test(t)}},{key:"generate",value:function(){return(0,o.uniqId)("".concat("bc40a50231ee3b2830df63f8b41c3812".substring(0,7),"_"))}}],(u=[{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){if(t.VisitorKey.isValid(n)){if(this.info("@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(){return this.info("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{!function(t){t._initializers.initSpecificTime=function(){try{var e;if(parent!==self)return;if(!window.wistiaEmbeds)return;var n=location.href.match(/[?&]wtime=([\dhms]*)/),i=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 r=!1;return window.wistiaEmbeds.onFind((function(t){if(!i||t.hashedId()===i)return r?void 0:(r=!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(146);!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)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(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=new Array(e);na});var a=function(){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()}var e,n,r;return e=t,r=[{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}}],(n=[{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(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n(3);var i=n(5),r=n(40);window._wq=window._wq||[],window._wq.push({id:"_all",onHasData:function(t){(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(39).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(150)},(t,e,n)=>{var i=n(3),r=(n(2),n(74)),o=n(8),a=n(151),s=n(84),u=n(72),l=n(5),c=n(6),h=n(62),d=n(11),p=n(40),f=n(63),y=(n(159),n(165),n(167),n(168),n(172),n(175),n(177),n(179),n(180),n(182),n(184),n(189),n(191),n(193),n(195),n(196),n(198),n(202),n(204),n(207)),v=n(209),m=n(211),g=n(212),b=n(213),_=n(214),w=n(215),P=n(216),O=n(217),k=n(223),E=n(224),S=n(210),T=n(225),C=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 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)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(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 j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&e.loadLastFrameCanvasControl(),e.on("playlistchange",(function(t){t.length>1&&e.loadLastFrameCanvasControl()}));var n=e.on("beforereplace",(function(){n(),e.loadLastFrameCanvasControl()}));return(0,o.onDocReady)((function(){(0,p.dynamicImport)("assets/external/playPauseLoadingControl.js").then((function(t){(0,f.defineControl)(t.PlayPauseLoadingCircleControl)})),L.touchScreen&&!e.publicApi.isLiveMedia()&&(0,p.dynamicImport)("assets/external/skipControls.js").then((function(t){(0,f.defineControl)(t.SkipAheadControl),(0,f.defineControl)(t.SkipBackControl)}))})),e._opts.techInfo&&(0,p.dynamicImport)("assets/external/vulcanV2Player/video/controls/TechInfoControl/TechInfoControl.js").then((function(t){(0,f.defineControl)(t.TechInfoControl)})),e._opts.spherical&&(0,p.dynamicImport)("assets/external/vulcanV2Player/video/controls/SphericalControl/SphericalControl.js").then((function(t){(0,f.defineControl)(t.SphericalControl)})),e.publicApi.isLiveMedia()&&(0,p.dynamicImport)("assets/external/captions-v3.js").then((function(t){(0,f.defineControl)(t.CaptionsV3Control)})),e}return e=I,n=[{key:"loadLastFrameCanvasControl",value:function(){this.ready((function(){(0,p.dynamicImport)("assets/external/vulcanV2Player/video/controls/LastFrameCanvasControl.js").then((function(t){(0,f.defineControl)(t.LastFrameCanvasControl)}))}))}},{key:"setupBehaviors",value:function(){var t=this;return new Promise((function(e){t.addBehaviors([y.default,v.default,m.default,g.default,k.PlaySuspendedOffScreenBehavior,b.default,_.ProblemMonitoringBehavior,w.default]),t.publicApi.isLiveMedia()||t.addBehavior(P.default),"Audio"===t._mediaData.type?Promise.all([(0,p.dynamicImport)("assets/external/vulcanV2Player/audio/AudioUIBehavior.js"),(0,p.dynamicImport)("assets/external/interFontFace.js")]).then((function(n){var i=A(n,1)[0];t.addBehavior(i.AudioUIBehavior),e()})):(t.addBehavior(O.default),e())}))}},{key:"removeBehaviors",value:function(){for(var t in this.behaviors)C(this.behaviors,t)&&this.removeBehavior(t)}},{key:"setupTracking",value:function(){this.publicApi.isLiveMedia()?(this._tracker=new a.LiveMediaTracker(this.publicApi),this._tracker.monitor()):(this._tracker=new i.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 e=this;return this._initialized.then((function(){return t instanceof I?e.behaviors.embed.embed(t):e.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 s.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;t2&&void 0!==arguments[2])||arguments[2];return this._visibilityRequests[t]=i,null!=e&&(0,h.doTimeout)("".concat(this.uuid,".").concat(t,".release_controls"),(function(){n.releaseControls(t)}),e),this.ui.maybeToggleControls()}},{key:"releaseControls",value:function(t){return this._visibilityRequests[t]=null,this.ui.maybeToggleControls()}},{key:"fit",value:function(){B(D(I.prototype),"fit",this).call(this),this.embedded((function(){}))}},{key:"getBuffered",value:function(){if(!this.engine)return[];if(this.engine.activeBufferRange()){var t=A(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,c.merge)({playButton:!1},t),B(D(I.prototype),"stillUrl",this).call(this,t)}},{key:"play",value:function(){var t=this;this.suppressPlay()||this.trigger("playcalled"),this.initEngineAfterEmbedded();var e=(0,l.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,l.currentEventSource)(),this._lastPlayIssuedAt=Date.now(),this._lastPlayResolvedAt=null,this._lastPlayRejectedAt=null,this.trigger("playpending",this.lastPlayInfo()),new Promise((function(r,o){t.ready((function(){t._calledPlay=!0,t._mozillaAtEnd()&&t.engine.setCurrentTime(0);var a={};e&&!1===t._attrs.silentAutoplay&&(a.silentAutoplay="allow",t.trigger("clicked-play-before-ready")),i.Wistia.detect.ios.version&&i.Wistia.detect.ios.version<10.1&&!(0,l.inUserEventContext)()&&!t.engine.isInitializingFromUnmuted()&&(t.notice("Play rejected because not in user context."),n(),o()),t.engine.play(a).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}}))),r()})).catch((function(e){t.notice(e),n(),o()}))}))})))}},{key:"pause",value:function(){var t=this;return this.info("pause"),this.trigger("receivepause"),this.initEngineAfterEmbedded(),this._isPausePending=!1,this._lastPauseSource=(0,l.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,l.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.secondaryMediaData?this._mediaData.secondaryMediaData.duration:this._mediaData.duration,e={attributes:{cuts:this._opts.cuts,duration:t,trimEnd:this._opts.trimEnd,trimStart:this._opts.trimStart}};return(0,E.getDurationAfterCuts)(e)}},{key:"volume",value:function(t){return null!=t&&(this.info("volume",t),t=Math.max(0,Math.min(1,t)),this.initEngineAfterEmbedded(),B(D(I.prototype),"volumeAttr",this).call(this,t),this.ready()&&this.engine.setVolume(t)),this.engine?(B(D(I.prototype),"volumeAttr",this).call(this,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()&&(i.Wistia.detect.callingPlayRequiresEventContext?"playing"!==this.state()||(0,l.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[P.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,r.shorterThanResumableThreshold)(this.duration())&&!this._attrs.autoplay&&!("loop"===this._attrs.endVideoBehavior)&&(t||this.isAudio())}},{key:"setResumable",value:function(t){B(D(I.prototype),"setResumable",this).call(this,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,r.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 u.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 e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?n.fullscreen||!this.inFullscreen()?B(D(I.prototype),"width",this).call(this,t,n):(this.info("notFullscreen => width(".concat(t,")")),this.notFullscreen((function(){B(D(I.prototype),"width",e).call(e,t,n)})),this):B(D(I.prototype),"width",this).call(this,t,n)}},{key:"height",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?n.fullscreen||!this.inFullscreen()?B(D(I.prototype),"height",this).call(this,t,n):(this.info("notFullscreen => height(".concat(t,")")),this.notFullscreen((function(){B(D(I.prototype),"height",e).call(e,t,n)})),this):B(D(I.prototype),"height",this).call(this,t,n)}},{key:"videoWidth",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?n.fullscreen||!this.inFullscreen()?B(D(I.prototype),"videoWidth",this).call(this,t,n):(this.info("notFullscreen => videoWidth(".concat(t,")")),this.notFullscreen((function(){B(D(I.prototype),"videoWidth",e).call(e,t,n)})),this):B(D(I.prototype),"videoWidth",this).call(this,t,n)}},{key:"videoHeight",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t&&this.inFullscreen()?(this.info("notFullscreen => videoHeight(".concat(t,")")),this.notFullscreen((function(){B(D(I.prototype),"videoHeight",e).call(e,t,n)})),this):B(D(I.prototype),"videoHeight",this).call(this,t,n)}},{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,c.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)}},r=W(this.publicApi._opts),o=this.publicApi._optionSources();Object.keys(o).forEach((function(t){o[t]=W(o[t])}));var a={player_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:i.Wistia.wlog.first1000LogLines(),last_1000_logs:i.Wistia.wlog.last1000LogLines(),browser_time:new Date,option_sources:n((function(){return o})),embedOptions:r,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 s.report(e.publicApi.judyCtx(),e._mediaData,e._opts)})),detect:i.Wistia.detect,engineDiagnostics:n((function(){return e.engine.diagnosticData()}))}};for(var u in this.publicApi.plugin){var l=this.publicApi.plugin[u];"function"==typeof l.getReportAProblemData&&(a.extra_data[u]=l.getReportAProblemData())}return a}},{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=i.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)),e}))}},{key:"enterInputContext",value:function(t){var e=this;(0,h.clearTimeouts)("".concat(this.uuid,".enter_input_contexts")),this._inputContextsToEnter.push(t),(0,h.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)}}},{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||(this._overlayCodePromise=new Promise((function(e){t.behaviors.overlays?e():(0,p.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;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.requestOverlay(t)}))}},{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:"_mozillaAtEnd",value:function(){return this.behaviors.relayEvents.mozillaAtEnd()}},{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()}}],n&&x(e.prototype,n),d&&x(e,d),Object.defineProperty(e,"prototype",{writable:!1}),I}(i.Wistia.Video);i.Wistia.VulcanV2Player=I,i.Wistia.plugin("vulcanV2Player",(function(t,e){i.Wistia.info("vulcanV2Player no-op plugin executed")}));var W=function(t){var e=(0,c.clone)(t);return e.container&&(e.container="removed to avoid circular"),e}}i.Wistia.VulcanV2Player},(t,e,n)=>{n.d(e,{LiveMediaTracker:()=>i.LiveMediaTracker});var i=n(152)},(t,e,n)=>{n.d(e,{LiveMediaTracker:()=>H});var i=n(126),r=n(5),o=n(30),a=n(153),s=n(157),u=n(158);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)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(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=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==e&&e;_(this,k).debug(t),w(this,S,[].concat(l(_(this,S)),[t])),n&&_(this,F).call(this)}function U(t){_(this,T)[t]&&(clearInterval(_(this,T)[t]),delete _(this,T)[t])}},(t,e,n)=>{n.d(e,{PlaySession:()=>i.PlaySession});n(154);var i=n(155)},(t,e,n)=>{function i(t,e){for(var n=0;nc});var u=new WeakMap,l=new WeakMap,c=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,u,{writable:!0,value:void 0}),r(this,l,{writable:!0,value:void 0}),a(this,u,e),a(this,l,n)}var e,n,s;return e=t,(n=[{key:"start",get:function(){return o(this,u)}},{key:"end",get:function(){return o(this,l)}},{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(e.prototype,n),s&&i(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n.d(e,{PlaySession:()=>P});var i,r=n(156),o=n(154);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)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(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=new Array(e);n2&&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,h=void 0!==c&&c,d=i.email,p=i.focus,f=void 0===p||p,y=l({time:e,event:this.lastEvent.event===t.Event.LOAD?t.Event.PLAY:t.Event.UNPAUSE,scope:this.scope,first:o,live:h,captions:u,email:d,focus:f,player_position:n},t.EMPTY_METRICS);return new t(l(l({},v(this,b)),{},{inactiveAt:void 0,history:[y].concat(a(this.history))}))}},{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,h=i.focus,d=void 0===h||h,p=y(this,_,O).call(this,n),f=y(this,w,k).call(this,p),m=l({time:e,event:t.Event.PAUSE,scope:this.scope,live:u,captions:o,email:c,focus:d,player_position:n},f);return new t(l(l({},v(this,b)),{},{inactiveAt:e,histogram:this.histogram.union(p),history:[m].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,h=r.email,d=r.focus,p=void 0===d||d,f=t.EMPTY_METRICS,m=this.histogram,g=e;if(this.isPlaying){var P=y(this,_,O).call(this,n);f=y(this,w,k).call(this,P),m=m.union(P),g=void 0}var E=l({time:e,event:t.Event.SEEK,scope:this.scope,live:c,captions:s,email:h,focus:p,previous_player_position:n,player_position:i},f);return new t(l(l({},v(this,b)),{},{inactiveAt:g,histogram:m,history:[E].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,h=i.focus,d=void 0===h?!document.hidden:h;if(this.isPlaying){var p=y(this,_,O).call(this,n),f=y(this,w,k).call(this,p),m=l({time:e,event:t.Event.UPDATE,scope:this.scope,live:u,captions:o,email:c,focus:d,player_position:n},f);return new t(l(l({},v(this,b)),{},{histogram:this.histogram.union(p),history:[m].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,h=void 0!==c&&c,d=i.email;if(!this.isPlaying)return this;var p=l({time:e,event:t.Event.FOCUS_CHANGE,scope:this.scope,captions:u,live:h,email:d,focus:o,player_position:n},t.EMPTY_METRICS);return new t(l(l({},v(this,b)),{},{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,h=i.focus,d=void 0===h?!document.hidden:h,p=y(this,_,O).call(this,n),f=y(this,w,k).call(this,p),m=l({time:e,event:t.Event.END,scope:this.scope,live:u,captions:o,email:c,focus:d,player_position:n},f);return new t(l(l({},v(this,b)),{},{inactiveAt:e,histogram:this.histogram.union(p),history:[m].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,h=r.live,d=void 0!==h&&h,p=r.email,f=r.focus,y=void 0===f?!document.hidden:f,m=l({time:e,scope:t.Scope.LIVE_ANNOTATION,event:t.Event.IMPRESSION,first:s,live:d,captions:c,email:p,focus:y,player_position:n,annotation_id:i,role:t.Role.AUDIENCE_MEMBER},t.EMPTY_METRICS);return new t(l(l({},v(this,b)),{},{history:[m].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,h=r.live,d=void 0!==h&&h,p=r.email,f=r.focus,y=void 0===f?!document.hidden:f,m=l({time:e,scope:t.Scope.LIVE_ANNOTATION,event:t.Event.CLICK,first:s,live:d,captions:c,email:p,focus:y,player_position:n,annotation_id:i,role:t.Role.AUDIENCE_MEMBER},t.EMPTY_METRICS);return new t(l(l({},v(this,b)),{},{history:[m].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,h=i.live,d=void 0!==h&&h,p=i.email,f=i.focus,y=void 0===f||f,v=l({time:e,event:t.Event.LOAD,scope:s,first:a,live:d,captions:c,email:p,focus:y},t.EMPTY_METRICS);return new t({startedAt:e,meta:n,scope:s,inactiveAt:e,histogram:new r.Histogram,history:[v]})}}],n&&c(e.prototype,n),i&&c(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function O(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 k(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=P,d(P,"Scope",Object.freeze({LIVE_EVENT:"live_event",LIVE_ANNOTATION:"live_annotation"})),d(P,"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(P,"EMPTY_METRICS",{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]}),d(P,"Role",Object.freeze({AUDIENCE_MEMBER:"audienceMember"}))},(t,e,n)=>{n.d(e,{Histogram:()=>f});var i=n(154);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=Object.prototype.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=new Array(e);n0&&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),c(this,p,{writable:!0,value:void 0}),h(this,p,e)}var e,n,a;return e=t,(n=[{key:"buckets",get:function(){return function(t,e){return e.get?e.get.call(t):e.value}(t=this,d(t,p,"get"));var t}},{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),h=c[0],d=c.slice(1);return{chunks:[[].concat(o(h),[u])].concat(o(d)),flip:s}}),{chunks:[],flip:i});return a.chunks.reverse()}}])&&l(e.prototype,n),a&&l(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n.d(e,{getOrSetIsFirst:()=>s});var i=n(32);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{function i(t,e){for(var n=0;nh});var l=new WeakMap,c=new WeakSet,h=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=c),i.add(n),function(t,e,n){a(t,e),e.set(t,n)}(this,l,{writable:!0,value: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 function(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}(r,c,d).call(r,"/live-stream/1.0.0",t)})),s(this,l,e)}));function d(t,e){var n,i=new URL(t,function(t,e){return e.get?e.get.call(t):e.value}(n=this,u(n,l,"get")));return fetch(i,{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(3),r=n(2),o=n(40),a=n(63),s=n(160),u=n(161),l=n(164),c=n(61),h=n(39),d=n(38);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e1},_.handle="audioDescriptionButton",_.type="control-bar-right",_.sortValue=51,_.isVideoChrome=!0,(0,a.defineControl)(_),i.Wistia.AudioDescriptionControl=_},(t,e,n)=>{n.d(e,{default:()=>f});var i=n(2),r=n(36);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{AudioDescriptionMenu:()=>h});var i=n(2),r=n(162),o=n(163);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{default:()=>l});var i=n(2);function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{AudioTrackMenuItem:()=>g});var i=n(2),r=n(34),o=n(38),a=n(36),s=n(21),u=n(39),l=n(162);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e{function i(t,e){for(var n=0;nu});var s=new WeakMap;const u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,s,{writable:!0,value: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.api=this.isWistiaPlayer?this.embedElement:e.publicApi}var e,n,u;return e=t,(n=[{key:"mount",value:function(t){this.rootElem=t}},{key:"disabledButton",get:function(){return function(t,e){return e.get?e.get.call(t):e.value}(t=this,a(t,s,"get"));var t},set:function(t){o(this,s,t)}}])&&i(e.prototype,n),u&&i(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n(3);var i=n(2),r=n(40),o=n(164),a=n(166),s=n(61),u=n(63),l=n(39);function c(t,e){for(var n=0;n0&&(e.disabledButton=!1,_(p(e),S,k),e.renderButton()),e.unbinds.push(e.video.on("addtrack",(function(){e.disabledButton=!1,_(p(e),S,k),e.renderButton()})),e.video.on("captionschange",(function(){e.captionsV3Control.selectedLanguage?_(p(e),S,O):_(p(e),S,k),e.renderButton()})))})),e}return e=u,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{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.default,{onClick:this.onClickCaptionsButton,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,e=(y(t={},O,"CAPTIONS_TURN_OFF"),y(t,k,"CAPTIONS_TURN_ON"),y(t,"menu-closed","CAPTIONS_SHOW_MENU"),y(t,"menu-open","CAPTIONS_HIDE_MENU"),y(t,P,"CAPTIONS_DISABLED"),t)[b(this,S)],n=(0,l.getTranslation)(this.props.playerLanguage.code,e);this.setButtonLabel(n)}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(o.default);function A(){var t=this;return b(this,E)||_(this,E,(0,r.dynamicImport)("assets/external/captions-v3.js").then((function(e){return(0,u.defineControl)(e.CaptionsV3Control),t.video.whenControlMounted("captionsV3")})).then((function(){t.captionsV3Control=t.video.controls.captionsV3}))),b(this,E)}C.handle="captionsV3Button",C.type="control-bar-right",C.sortValue=50,C.shouldMount=function(t){return t.isLiveMedia()},(0,u.defineControl)(C)},(t,e,n)=>{n.d(e,{default:()=>f});var i=n(2),r=n(36);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n(3);var i=n(2),r=n(46),o=n(11),a=n(164),s=n(61),u=n(63),l=n(39);function c(t,e){for(var n=0;n{var i=n(169),r=n(2),o=n(164),a=n(170),s=n(61),u=n(63),l=n(171);function c(t,e){for(var n=0;n{n.d(e,{controlMultiplierBasedOnVideo:()=>l});n(5),n(62);var i=n(11),r=n(6);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)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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=new Array(e);na?n/a:1}},(t,e,n)=>{n.d(e,{BigPlayButton:()=>_});var i=n(34),r=n(2),o=n(72),a=n(46),s=n(66),u=n(11),l=n(36),c=n(39);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{default:()=>h});var i=n(2),r=n(5);function o(t,e){for(var n=0;n{var i=n(2),r=n(16),o=n(38),a=n(11),s=n(40),u=n(63),l=n(39),c=n(61),h=n(173),d=n(164);function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{ClickForSoundButton:()=>c});var i=n(2),r=n(174),o=n(38),a=n(34),s=n(58);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)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(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=new Array(e);n{n.d(e,{useEffect:()=>w,useReducer:()=>_,useRef:()=>P,useState:()=>b});var i,r,o,a,s=n(2),u=0,l=[],c=[],h=s.options,d=h.__b,p=h.__r,f=h.diffed,y=h.__c,v=h.unmount,m=h.__;function g(t,e){h.__h&&h.__h(r,t,u||e),u=0;var n=r.__H||(r.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:c}),n.__[t]}function b(t){return u=1,_(j,t)}function _(t,e,n){var o=g(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.u)){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=!1;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}})),!(!r&&o.__c.props===t)&&(!s||s.call(this,t,e,n))};r.u=!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 w(t,e){var n=g(i++,3);!h.__s&&A(n.__H,e)&&(n.__=t,n.i=e,r.__H.__h.push(n))}function P(t){return u=5,O((function(){return{current:t}}),[])}function O(t,e){var n=g(i++,7);return A(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function k(){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=[],h.__e(e,t.__v)}}h.__b=function(t){r=null,d&&d(t)},h.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),m&&m(t,e)},h.__r=function(t){p&&p(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.__V=c,t.__N=t.i=void 0}))):(e.__h.forEach(T),e.__h.forEach(C),e.__h=[],i=0)),o=r},h.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&a===h.requestAnimationFrame||((a=h.requestAnimationFrame)||S)(k)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==c&&(t.__=t.__V),t.i=void 0,t.__V=c}))),o=r=null},h.__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=[],h.__e(n,t.__v)}})),y&&y(t,e)},h.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&&h.__e(e,n.__v))};var E="function"==typeof requestAnimationFrame;function S(t){var e,n=function(){clearTimeout(i),E&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);E&&(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)=>{var i=n(176),r=(n(3),n(2),n(5)),o=n(11),a=n(38),s=n(40),u=n(63),l=n(61),c=n(59),h=n(164);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)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(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=new Array(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)=>{n(3);var i=n(2),r=n(164),o=n(178),a=n(61),s=n(63),u=n(39);function l(t,e){for(var n=0;n0&&r.length>0&&t._impl.ui&&!t._impl.ui.shouldShowMoreDefaultValue()},(0,s.defineControl)(y)},(t,e,n)=>{n.d(e,{EllipsisButton:()=>a});var i=n(2),r=n(36);function o(t,e){for(var n=0;n{n(3);var i=n(2),r=n(164),o=n(61),a=n(63);function s(t,e){for(var n=0;n{var i=n(2),r=n(5),o=n(11),a=n(164),s=n(181),u=n(61),l=n(63),c=n(39);function h(t,e){for(var n=0;n0&&(!o||!i&&!r)},P=function(){return g.ios.version>0||g.android};b.shouldMount=function(t){var e=t._attrs.fullscreenControl;return(!0===e||null==e)&&(_()||w(t)||P())}},(t,e,n)=>{n.d(e,{default:()=>c});var i=n(2),r=n(36);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n(3);var i=n(5),r=n(2),o=n(164),a=n(183),s=n(61),u=n(63);function l(t,e){for(var n=0;n{n.d(e,{default:()=>d});var i=n(2),r=n(5);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e10&&(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(e.prototype,n),c&&a(e,c),Object.defineProperty(e,"prototype",{writable:!1}),p}(i.Component)},(t,e,n)=>{n(3);var i=n(185),r=n(63);function o(t,e){for(var n=0;n{n.d(e,{default:()=>w});var i=n(74),r=n(28),o=n(62),a=n(38),s=n(5),u=n(2),l=n(61),c=n(186),h=n(164);function d(){return d=Object.assign?Object.assign.bind():function(t){for(var e=1;e200?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(),n.time(n.time()-u)):1===l&&(t.preventDefault(),n.time(n.time()+u))}else"playbar-focus"!==i&&"player-mouseover"!==i||t.preventDefault()}}})),b(m(e),"onKeyUp",(function(t){if(e.isVisible()&&!(0,s.formInputIsFocused)()){e.keyDownStartedAt=null;var n=e.video;"playbar-focus"===n.getInputContext()&&32===t.keyCode&&("playing"===n.state()?n.pause():n.play())}})),e.PlaybarComponent=c.default,e.showTime=!0,e}return e=w,(n=[{key:"destroy",value:function(){(0,l.destroyControl)(this)}},{key:"mount",value:function(t){var e=this;f(g(w.prototype),"mount",this).call(this,t),this.eventListeners.set("playercolorchange",(function(){return e.render()})),this.eventListeners.set("resumablechange",(function(){return e.render()}));var n=this.video;this.unbinds.push(n.on("play",(function(){e.render()})),n.on("pause",(function(){e.render()})),n.on("progress",this.renderIfNotPlaying),n.on("timechange",(function(){e.render()})),n.on("end",(function(){e.render()})),n.on("widthchange",(function(){e.render()})),n.on("seeking",(function(){e.render()})),n.on("trimchange",(function(){e.renderNothing(),e.render()})),(0,s.elemBind)(document,"keydown",this.onKeyDown),(0,s.elemBind)(document,"keyup",this.onKeyUp));var i=function(){var t=n.plugin.chapters;e.unbinds.push(t.on("focuschange",(function(){e.render()})),t.on("changechapters",(function(){e.render()})))};n.plugin("chapters").then(i),n.on("plugininitialized",(function(t){"chapters"===t&&i()})),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(),e=!!this.video._mediaData.secondaryMediaData;return this._shouldShowStoryboard=t&&!e}},{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}})}}])&&p(e.prototype,n),h&&p(e,h),Object.defineProperty(e,"prototype",{writable:!1}),w}(h.default)},(t,e,n)=>{n.d(e,{default:()=>R});n(3);var i=n(187),r=n(34),o=n(72),a=n(6),s=n(66),u=n(5),l=n(2),c=n(11),h=n(38),d=n(40),p=n(188),f=n(59);function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,i=new Array(e);n0&&e.loadChapters(),e.playheadScale=x,e}return e=m,n=[{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(),h=this.canvasHeight(),d=this.canvasEl.getContext("2d");d.globalCompositeOperation="source-over",d.clearRect(0,0,c,h);var p=this.unfilledBarWidth(),f=this.props.height*n/2;d.strokeStyle="rgba(255,255,255,.6)",d.lineWidth=this.barHeight()*n,d.beginPath(),d.lineCap="round",d.moveTo(this.leftBarMargin()*n,f),d.lineTo((this.leftBarMargin()+p)*n,f),d.stroke();var y=this.playedPercent()*p;d.strokeStyle="rgba(255,255,255,1)",d.lineWidth=this.barHeight()*n,d.beginPath(),d.lineCap="round",d.moveTo(this.leftBarMargin()*n,f),d.lineTo((this.leftBarMargin()+y)*n,f),d.stroke();var v=this.props.chapters,m=this.props,g=m.chapterWithFocusedMarker,b=m.duration,_=1.4*this.barHeight()*n;if((null===(t=v)||void 0===t?void 0:t.length)>0){if(g){v=(0,a.clone)(v);for(var w=-1,P=0;Pthis._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,l.h)("div",{class:"".concat(j,"-wrapper w-css-reset w-css-reset-tree"),style:this.wrapperStyle()},this.props.shouldShowTime?this.renderTime():void 0,(0,l.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,l.h)("canvas",{height:this.canvasHeight(),ref:function(e){return t.canvasEl=e},style:this.canvasStyle(),width:this.canvasWidth()}),(0,l.h)("div",{onMouseEnter:this.onMouseEnterPlayhead,onMouseLeave:this.onMouseLeavePlayhead,ref:function(e){return t.playheadEl=e},style:this.playheadStyle()}),void 0!==E?(0,l.h)(E,y({},this.props,{onFocus:this.onFocusChapterMarkers,timeLeft:-10,timeRight:-10})):null,this.props.shouldShowStoryboard&&void 0!==T?(0,l.h)(T,y({},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,l.h)(p.default,{left:this.state.hoverPercent*this.unfilledBarWidth(),time:this.getHoverTime(),height:this.props.height,widthOfPlaybar:this.unfilledBarWidth()}),this.props.shouldShowChapterTitles&&void 0!==S?(0,l.h)(S,y({},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,l.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 f.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 f.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,u.elemUnbind)(document,"mousemove",this.onMouseMoveDragging),(0,u.elemUnbind)(document,"mouseup",this.onMouseUpDragging),this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null)}},{key:"getHoverTime",value:function(){return(0,s.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,s.flexibleDuration)(900).length,r=7*(0,s.flexibleDuration)(e).length;return 10*(i=1?(0,s.flexibleDuration)(e.getCurrentTime()):e.resumableTime?(0,s.flexibleDuration)(e.resumableTime):(0,s.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,s.accessibilityDuration)(this.props.getCurrentTime())}},{key:"cachePositionDetails",value:function(){this.offset=(0,u.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{n.d(e,{addInterNumbersFontFace:()=>a});var i=n(3),r=n(5),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(){i.Wistia._interNumbersFontFaceSemiBold||(i.Wistia._interNumbersFontFaceSemiBold=(0,r.addInlineCss)(document.body||document.head,o))};a()},(t,e,n)=>{n.d(e,{default:()=>l});var i=n(34),r=n(2);function o(t,e){for(var n=0;n=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(e.prototype,n),u&&o(e,u),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Component)},(t,e,n)=>{n(3);var i=n(2),r=n(169),o=n(11),a=n(164),s=n(190),u=n(61),l=n(63);function c(t,e){for(var n=0;n{n.d(e,{SmallPlayButton:()=>h});var i=n(2),r=n(6),o=n(36);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n(3);var i=n(2),r=n(74),o=n(164),a=n(75),s=n(192),u=n(61),l=n(63);function c(t,e){for(var n=0;n0&&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)}}])&&c(e.prototype,n),o&&c(e,o),Object.defineProperty(e,"prototype",{writable:!1}),p}(o.default);f.handle="playbarlessProgressIndicator",f.type="foreground",f.sortValue=1800,f.shouldMount=function(t){return!t.isAudio()&&!1!==t._attrs.resumable&&"v1"!==t._opts.version&&!1===t._attrs.controlsVisibleOnLoad},(0,l.defineControl)(f)},(t,e,n)=>{n.d(e,{default:()=>r});var i=(0,n(11).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(5),o=n(2),a=n(40),s=n(194),u=n(164),l=n(61),c=n(63),h=n(39);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)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(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=new Array(e);n=0;if(!(0,r.formInputIsFocused)()&&i&&e.getPlaybackRateEnabled()){if(">"===t.key){var o=Math.min(e.video.playbackRate()+.25,2);e.video.playbackRate(o)}if("<"===t.key){var a=Math.max(e.video.playbackRate()-.25,.5);e.video.playbackRate(a)}}})),b(m(e),"loadMenuCode",(function(){return Promise.all([(0,a.dynamicImport)("assets/external/interFontFace.js"),(0,a.dynamicImport)("assets/external/vulcanV2Player/video/controls/SettingsControl/dialog.js")]).then((function(t){var n=d(t,2)[1];if(!e.renderMenuImpl){var i=n.renderMenu,r=n.onSelect;e.renderMenuImpl=i.bind(m(e)),e.onSelect=r.bind(m(e))}}))})),b(m(e),"onMouseEnterButton",(function(){e.loadMenuCode()})),e.unbinds.push(t.on("playbackratechange",(function(){e.menuElem&&e.renderMenu()})),t.on("qualitychange",(function(){e.menuElem&&e.renderMenu()})),t.on("playerlanguagechange",(function(){e.menuElem&&e.renderMenu()})),(0,r.elemBind)(document,"keyup",e.onKeyUp)),t.hasData((function(){if(null==e._isQualityEnabled){var n=t._attrs.qualityControl;e._isQualityEnabled=!0===n||null==n}if(null==e._isPlaybackRateEnabled){var i=t._attrs.playbackRateControl;e._isPlaybackRateEnabled=!0===i||null==i}})),e}return e=c,(n=[{key:"destroy",value:function(){(0,l.destroyControl)(this)}},{key:"translate",value:function(t){return(0,h.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,o.render)((0,o.h)(s.default,{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()}))}}])&&f(e.prototype,n),i&&f(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(u.default);w.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))},w.handle="settingsButton",w.type="control-bar-right",w.sortValue=200,w.isVideoChrome=!0,(0,c.defineControl)(w),i.Wistia.SettingsControl=w},(t,e,n)=>{n.d(e,{default:()=>c});var i=n(2),r=n(36);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n(3);var i=n(2),r=n(164),o=n(190),a=n(61),s=n(63),u=n(39);function l(t,e){for(var n=0;n{n(3);var i=n(2),r=n(63),o=n(164),a=n(197),s=n(61),u=n(39);function l(t,e){for(var n=0;n1&&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,u.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])}}],n&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(o.default);p.handle="statusBar",p.type="background",(0,r.defineControl)(p)},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(2);function r(t,e){for(var n=0;n{n(3);var i=n(2),r=n(164),o=n(199),a=n(192),s=n(61),u=n(63);function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{ProgressiveThumbnail:()=>y});var i=n(6),r=n(2),o=n(24),a=n(200);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{Thumbnail:()=>d});var i=n(201),r=n(2),o=n(6),a=n(5),s=n(39);function u(t,e){for(var n=0;n1?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})}),n.complete&&this.setState({isLoaded:!0})),!e.isDisplaying&&e.isLoaded&&this.setState({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():"modernContain"===t?this.modernContainStyle():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:"modernContainStyle",value:function(){return{height:"100%",objectFit:"contain",position:"absolute",width:"100%",top:0,left:0}}},{key:"containStyle",value:function(){if(!this.imgElem)return{height:"100%",left:0,position:"absolute",top:0,width:"100%"};var t,e,n=this.props,i=n.videoWidth,r=n.videoHeight,o=i/r,a=this.imgElem.naturalWidth/this.imgElem.naturalHeight;!1===n.stillSnap?(t=i,e=r):o>a?(e=r,t=Math.round(e*a)):o<=a&&(t=i,e=Math.round(t/a));var s=Math.max(0,r-e),u=Math.max(0,i-t),l=Math.round(s/2),c=Math.round(u/2),h=l,d=c,p=l,f=c;2*p<=this.stretchLimit()&&(p=0,h=0,e=r),2*f<=this.stretchLimit()&&(f=0,d=0,t=i);var y=this.props.backgroundColor||"#000";return{borderTop:"".concat(h,"px solid ").concat(y),borderBottom:"".concat(p,"px solid ").concat(y),borderLeft:"".concat(f,"px solid ").concat(y),borderRight:"".concat(d,"px solid ").concat(y),boxSizing:"content-box",height:"".concat(e,"px"),left:0,position:"absolute",top:0,webkitTouchCallout:"none",width:"".concat(t,"px")}}},{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}}])&&u(e.prototype,n),h&&u(e,h),Object.defineProperty(e,"prototype",{writable:!1}),p}(r.Component)},(t,e,n)=>{n.d(e,{bestImage:()=>r,blankImage:()=>o,sortedImages:()=>a});var i=n(24),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=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(119),r=n(5),o=n(2),a=n(11),s=n(40),u=n(39),l=n(63),c=n(61),h=n(203),d=n(164);function p(t,e){for(var n=0;n{n.d(e,{default:()=>h});var i=n(2),r=n(36);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:this.props.volume;return t>.66?2:t>.33?1:t>0?0:-1}},{key:"shouldComponentUpdate",value:function(t){return this.waveCount()!==this.waveCount(t.volume)}},{key:"render",value:function(){var t={fill:"none",stroke:"#ffffff","stroke-line-cap":"round","stroke-miterlimit":"10"};return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),(0,i.h)("g",{style:this.speakerGroupStyle()},(0,i.h)("g",null,(0,i.h)("path",{d:"M13.8,14.2c-0.5,0.5-1.4,0.8-2,0.8h-1.6C9.5,15,9,15.5,9,16.2v1.6c0,0.7,0.5,1.2,1.2,1.2h1.6c0.7,0,1.6,0.4,2,0.8l2.3,2.3c0.5,0.5,0.8,0.3,0.8-0.4v-9.6c0-0.7-0.4-0.8-0.8-0.4L13.8,14.2z"})),(0,i.h)("g",null,(0,i.h)("path",o({},t,{"stroke-width":"2",d:"M22,11.7c0,0,1.1,2.5,1.1,5s-1.1,5-1.1,5",style:this.wave1Style()})),(0,i.h)("path",o({},t,{"stroke-width":"2",d:"M25.8,9.2c0,0,1.7,3.8,1.7,7.5c0,3.7-1.7,7.5-1.7,7.5",style:this.wave2Style()}))),(0,i.h)("g",{style:this.waveXStyle()},(0,i.h)("line",o({},t,{"stroke-width":"1.8102",x1:"19.2",y1:"15",x2:"23.2",y2:"19"})),(0,i.h)("line",o({},t,{"stroke-width":"1.8102",x1:"19.2",y1:"19",x2:"23.2",y2:"15"})))))}},{key:"speakerGroupStyle",value:function(){return{transform:"translateX(".concat(this.positioningOffset(),"px)"),transition:"transform 100ms"}}},{key:"positioningOffset",value:function(){var t=this.waveCount();return 0==t?7:t<2?3:1.25}},{key:"waveXStyle",value:function(){return{opacity:this.waveCount()<0?1:0,transition:c}}},{key:"wave1Style",value:function(){return{opacity:this.waveCount()>=1?1:0,transition:c}}},{key:"wave2Style",value:function(){return{opacity:this.waveCount()>=2?1:0,transition:c}}}],n&&a(e.prototype,n),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.Component)},(t,e,n)=>{n(3);var i=n(2),r=n(40),o=n(164),a=n(205),s=n(63);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{default:()=>g});var i=n(2),r=n(174),o=n(34),a=n(66),s=n(206),u=n(39);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)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(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=new Array(e);n600}(v)?{type:"END"}:{type:"PAST_SCHEDULE"}):S(function(t){return!!t&&(0,a.getSecondsRemaining)(new Date,t)<3600}(v)?{type:"START_COUNTDOWN"}:{type:"NOT_READY"})}),[w,g,b]),(0,r.useEffect)((function(){e.props.setAriaLiveText(T())}),[E]),(0,r.useEffect)((function(){if("countdown"===E){var t=(0,a.getSecondsRemaining)(new Date,v),n=Math.ceil(t),i=Math.ceil(t/60),r=t/60,o="";i%5==0?o="".concat(C("COUNTDOWN")," ").concat(i," ").concat(C("MINUTES")):r&&n%5==0&&(o="".concat(C("COUNTDOWN")," ").concat(n," ").concat(C("SECONDS"))),e.props.setAriaLiveText(o)}}),[w]),(0,s.useInterval)((function(){return P(new Date)}),"live"===E||"ended"===E?null:1e3);var T=function(){switch(E){case"live":return C("LIVE_ARIA");case"ended":return C("STREAM_ENDED");case"waitingForHost":return C("WAITING_FOR_HOST_ARIA");case"beforeStream":return"".concat(C("SCHEDULED_FOR_ARIA")," ").concat(h(v,o.code))}},C=function(t){return(0,u.getTranslation)(o.code,"LIVE_STREAM_STATUS_".concat(t))};return(0,i.h)(f,{scale:c,show:O},(0,i.h)(m,{scale:c},"live"===E&&(0,i.h)(d,{state:"live"}),function(){switch(E){case"live":return C("LIVE");case"ended":return C("STREAM_ENDED");case"waitingForHost":return C("WAITING_FOR_HOST");case"beforeStream":return"".concat(C("SCHEDULED_FOR")," ").concat(h(v,o.code));case"countdown":return"".concat(C("COUNTDOWN")," ").concat((0,a.flexibleDuration)((0,a.getSecondsRemaining)(new Date,v)))}}()))}},(t,e,n)=>{n.d(e,{useInterval:()=>r});var i=n(174);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:()=>l});var i=n(3);function r(t,e){for(var n=0;n{n.d(e,{PlayerBehavior:()=>o});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{n.d(e,{default:()=>T});var i=n(3),r=n(89),o=n(27),a=n(5),s=n(74),u=n(38),l=n(46),c=n(62),h=n(6),d=n(28),p=n(40),f=n(208),y=n(210);function v(){v=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new x(i||[]);return r(a,"_invoke",{value:T(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",y="completed",m={};function g(){}function b(){}function _(){}var w={};l(w,a,(function(){return this}));var P=Object.getPrototypeOf,O=P&&P(P(B([])));O&&O!==n&&i.call(O,a)&&(w=O);var k=_.prototype=g.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(r,o,a,s){var u=h(t[r],t,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,r){n(t,i,e,r)}))}return o=o?o.then(r,r):r()}})}function T(e,n,i){var r=d;return function(o,a){if(r===f)throw new Error("Generator is already running");if(r===y){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var u=C(s,i);if(u){if(u===m)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===d)throw r=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=f;var l=h(e,n,i);if("normal"===l.type){if(r=i.done?y:p,l.arg===m)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=y,i.method="throw",i.arg=l.arg)}}}function C(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var o=h(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function B(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;j(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:B(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}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;n1?"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=[],u=(0,r.wData)("video");for(var c in u)s.push(u[c]);e=n._opts._inIframe&&top!==parent||n._opts._inIframe&&(0,l.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,a.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.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,p.dynamicImport)("assets/external/".concat(n)).then((function(n){var i=n.default;if(e.grid)try{e._mediaData=(0,o.mediaDataTransforms)(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,r=this.impl;if(r._opts.videoQuality?t=r._opts.videoQuality:(r._opts.videoFoam||r.videoWidth()>=720)&&(t="md"),r._bandwidthTest().isFresh()&&(e=r._bandwidthTest().savedResult().clientKbps),r._mediaData.secondaryMediaData)n=(0,h.clone)(r._mediaData.secondaryMediaData);else if(r._opts.secondaryVideoUrl){var o=(0,h.clone)(r._mediaData),a=r.originalAsset();o.assets=[{container:"mp4",ext:"mp4",codec:"x264",public:!0,url:r._opts.secondaryVideoUrl,height:a.height,width:a.width,type:"mp4_video",display_name:"".concat((0,d.numericSizeSnapped)(a.width,a.height),"p"),status:d.READY,created_at:(new Date).getTime()}],n=o}var u,l=r._opts.layoutTiming;r._opts.twoStroke&&r._opts.twoStroke.layoutTiming&&(l=r._opts.twoStroke.layoutTiming),(r._startPosition||r.shouldResume())&&(u=r._startPosition||(0,s.getLastTime)(r.hashedId())),r.isResumableEnabled()&&((0,s.atOrNearBeginning)(r.hashedId())?i.Wistia.Metrics.videoCount(r,"player/resumable-close-to-beginning"):(0,s.atOrNearEnd)(r.hashedId(),r.duration())&&i.Wistia.Metrics.videoCount(r,"player/resumable-close-to-end"));var c=0===r._opts.trimStart&&-1===r._opts.trimEnd,p=!0===r._attrs.transparentLetterbox;return{assetHost:r._opts.assetHost,authorization:r._attrs.authorization,backgroundColor:p?"transparent":r.playerBackgroundColor(),clipForPoster:r._opts.clipForPoster,clipFrom:r._opts.clipFrom,clipTo:r._opts.clipTo,controls:r._inNativeMode(),cuts:r._opts.cuts,deliveryCdn:r._opts.deliveryCdn,duration:r._mediaData.duration,embedHost:r._opts.embedHost,fitStrategy:r._opts.fitStrategy,hashedId:r.hashedId(),height:r.videoHeight(),hls:r._opts.hls,layoutTiming:l,liveMedia:r.isLiveMedia(),loop:"loop"===r._attrs.endVideoBehavior,muted:r._muted,password:r._opts.password,playsinline:!0,preload:this._preloadPreference,qualityMax:r._attrs.qualityMax,qualityMin:r._attrs.qualityMin,savedBandwidth:e,secondaryMediaData:n,silentAutoplay:r._attrs.silentAutoplay,startPosition:u,trimEnd:c?void 0:r._opts.trimEnd,trimStart:c?void 0:r._opts.trimStart,videoQuality:t,volume:r._attrs.volume,width:r.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}}])&&b(e.prototype,n),f&&b(e,f),Object.defineProperty(e,"prototype",{writable:!1}),O}(f.PlayerBehavior);S.handle="embed";const T=S},(t,e,n)=>{n.d(e,{allHlsAudioAssets:()=>a,audioTracksForVideo:()=>s,multivariantM3u8Url:()=>o});var i=n(28),r=(n(6),n(24)),o=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.authorization,o=n.clipForPoster,a=n.clipTo,s=n.clipFrom,u=n.password,l=n.startPosition,c=n.deliveryCdn,h=n.qualityMax,d=n.qualityMin,p=(n.includeExtendedAudioDescription,e.qualityMin||d),f=e.qualityMax||h,y=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 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)&&(p&&y.searchParams.set("quality_min",p),f&&y.searchParams.set("quality_max",f)),c&&y.searchParams.set("delivery_cdn",c),l&&-1!==l&&y.searchParams.set("start_position",l),o&&null!=s&&a&&(y.searchParams.set("clip_to",a),y.searchParams.set("clip_from",s)),null!=i&&i.jwt&&y.searchParams.set("pma",i.jwt),u&&y.searchParams.set("password",u),y.toString()},a=function(t){return(0,i.filter)(t,{type:"mp4_alternate_audio",status:i.READY})},s=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(3),r=n(11),o=n(14),a=n(62),s=n(29),u=n(68),l=n(5),c=n(125),h=n(208);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 p(t){for(var e=1;e=10&&(this.impl._opts.fakeFullscreen||/two_stroke/i.test(this.impl.bestEngine()))}},{key:"enterFakeFullscreen",value:function(){var t=this.impl;this.setFullscreenStateOnEmbedElement({widthBeforeFullscreen:t.width(),heightBeforeFullscreen:t.height()}),this._inFakeFullscreen=!0,this._chromeParent=t.chrome.parentNode,document.body.appendChild(t.chrome),this._leftOffsetBeforeFullscreen=(0,c.scrollLeft)(),this.onEnterFullscreen(t.chrome),this.setupFakeFullscreenBindings(),(0,l.elemStyle)(t.chrome,{position:"fixed",top:0,left:0,zIndex:2147483647}),(0,c.scrollLeft)(0),t.engine&&t.engine.onEnterFullscreen()}},{key:"setupFakeFullscreenBindings",value:function(){var t=this,e=this.impl;i.Wistia.eventLoop.add("".concat(e.uuid,".fakefullscreen"),100,(function(){t.fullscreenResizeToWindow()})),this._preventDefaultForTouchMove||(this._preventDefaultForTouchMove=function(t){t.preventDefault()}),(0,l.elemRebind)(e.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"cancelFakeFullscreen",value:function(){var t=this.impl;this._inFakeFullscreen=!1,this.onCancelFullscreen(t.chrome),this._chromeParent&&this._chromeParent.appendChild(t.chrome),t.chrome.style.position="",(0,c.scrollLeft)(this._leftOffsetBeforeFullscreen),i.Wistia.eventLoop.remove("".concat(t.uuid,".fakefullscreen")),t.engine&&t.engine.onLeaveFullscreen(),null!=this._preventDefaultForTouchMove&&(0,l.elemUnbind)(t.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"transferStateFrom",value:function(t){var e=this,n=t.behaviors&&t.behaviors.fullscreen;if(n&&(this.impl.embedElement._fullscreenState=t.embedElement._fullscreenState,n.getFullscreenStateOnEmbedElement().inFullscreen)){(0,s.countMetric)("player/replacewith-fullscreen",1,{inNativeFullscreen:this.inNativeFullscreen()});var i=this.impl;i.notFullscreen((function(){var t=e.getFullscreenStateOnEmbedElement(),n=t.widthBeforeFullscreen,r=t.heightBeforeFullscreen;i.width(n),i.height(r)}))}}},{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,u.isNotNil)(this.impl.embedElement._fullscreenState)){var e=p(p({},this.impl.embedElement._fullscreenState),t);this.impl.embedElement._fullscreenState=e}}}],n&&f(e.prototype,n),r&&f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(h.PlayerBehavior);P.handle="fullscreen",i.Wistia._onFullscreenChange||(i.Wistia._onFullscreenChange=function(){(0,l.fullscreenElement)()?(0,o.globalTrigger)("enterfullscreen",(0,l.fullscreenElement)()):(0,o.globalTrigger)("cancelfullscreen")},i.Wistia._initializers.initFullscreenTriggers=function(){(0,l.elemRebind)(document,"webkitfullscreenchange",i.Wistia._onFullscreenChange),(0,l.elemRebind)(document,"fullscreenchange",i.Wistia._onFullscreenChange)},i.Wistia._destructors.destroyFullscreenTriggers=function(){(0,l.elemUnbind)(document,"webkitfullscreenchange",i.Wistia._onFullscreenChange),(0,l.elemUnbind)(document,"fullscreenchange",i.Wistia._onFullscreenChange)});const O=P},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(3);function r(t,e){for(var n=0;n=5&&!r&&(t._noDataFor5Seconds=!0,i.Wistia.Metrics.videoCount(n,"player/no-data/5-seconds")),!t._noDataFor10Seconds&&e>=10&&!r&&(t._noDataFor10Seconds=!0,i.Wistia.Metrics.videoCount(n,"player/no-data/10-seconds")),!t._noDataFor15Seconds&&e>=15&&!r&&(t._noDataFor15Seconds=!0,i.Wistia.Metrics.videoCount(n,"player/no-data/15-seconds"))})),l(s(t),"onClickedPlayBeforeReady",(function(){i.Wistia.Metrics.videoCount(t.impl,"player/clicked-play-before-ready")})),t}return e=h,(n=[{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))}}])&&r(e.prototype,n),u&&r(e,u),Object.defineProperty(e,"prototype",{writable:!1}),h}(n(208).PlayerBehavior);h.handle="metrics";const d=h},(t,e,n)=>{n.d(e,{default:()=>f});var i=n(3),r=n(11),o=n(208);function a(t,e){for(var n=0;n{function i(t,e){for(var n=0;ns});var s=function(t){!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&&r(t,e)}(u,t);var e,n,a,s=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return e=u,(n=[{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(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(208).PlayerBehavior);s.handle="problemMonitoring"},(t,e,n)=>{n.d(e,{default:()=>v});var i=n(3),r=n(50),o=n(208),a=n(5);function s(t,e){for(var n=0;n1;if(o&&r>=0&&!d){if(t._ended=!1,e.trigger("timechange",r),e.embedElement.dispatchEvent(new CustomEvent("timechange",{detail:{timePosition:r}})),u!==l){if(Math.abs(s/h-c)<.05&&p){n=!0;for(var f=l+1;fe._attrs.seekThreshold&&e.trigger("seek",r,t._lastTimePosition,{source:(0,a.currentEventSource)()}),t._lastTimePosition=r}return t._lastClockTime=i,Promise.resolve()}})),t}return e=y,(n=[{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)),r.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(){r.globalEventLoop.remove("".concat(this.impl.uuid,".events")),u(d(y.prototype),"destroy",this).call(this)}},{key:"resetState",value:function(){this._waiting=-1,this._lastTimePosition=-1,this._beforePlay=!0,this._ended=!1,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,this._ended=!1,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&&(this._ended=!0,t.trigger("end"),t.embedElement.dispatchEvent(new Event("end")),t.embedElement.dispatchEvent(new Event("ended")),this.triggerAfterendTimeout()),"ended"!==e&&this.mozillaAtEnd()&&(t.engine.pause(),this._ended=!0,t.trigger("end"),t.embedElement.dispatchEvent(new Event("ended")),t.embedElement.dispatchEvent(new Event("end")),this.triggerAfterendTimeout()),this._lastState=e)}}},{key:"mozillaAtEnd",value:function(){return!this._ended&&i.Wistia.detect.browser.mozilla&&i.Wistia.detect.browser.version<45&&!i.Wistia.detect.edge&&i.Wistia.detect.windows&&this._waiting>=.6&&Math.abs(this.impl.time()-this.impl.duration())<2}},{key:"triggerAfterendTimeout",value:function(){var t=this;setTimeout((function(){t.impl.trigger("afterend")}),0)}}])&&s(e.prototype,n),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),y}(o.PlayerBehavior);y.handle="relayEvents";const v=y},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(74);function r(t,e){for(var n=0;n{n.d(e,{default:()=>W});var i=n(3),r=n(57),o=n(21),a=n(2),s=n(38),u=n(169),l=n(11),c=n(62),h=n(6),d=n(5),p=n(39),f=n(208),y=n(218),v=n(221),m=n(222),g=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 b(t){return function(t){if(Array.isArray(t))return _(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)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(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 _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n175&&(a<.02||s>a))return t._cancelSwipe=!0,void(0,d.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:function(){(0,d.elemAnimate)(i.chrome,{transform:""})}});if(a>=.02&&a>s){var u=n.yDelta/r;(0,d.elemStyle)(i.chrome,{transform:"translate(0, ".concat(-1*u*r,"px)")})}}})),C(S(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,d.elemStyle)(o.chrome,{transform:"scale(".concat(a,")")})}})),C(S(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,d.elemStyle)(i.chrome,{transform:""}),i.requestFullscreen()):i.inFullscreen()&&e.pinchScale<.7?((0,d.elemStyle)(i.chrome,{transform:""}),i.cancelFullscreen()):(0,d.elemAnimate)(i.chrome,{transform:"scale(1)"},{time:400,callback:function(){(0,d.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,d.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,d.elemAnimate)(i.chrome,{transform:"translate(0, ".concat(l*r,"px)")},{time:200,callback:function(){i.cancelFullscreen(),u()}})}else t._cancelSwipe=!0,(0,d.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:u})}t._touchStartFromControlDialog=!1}})),C(S(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()}})),C(S(t),"mountRefsFn",(function(e){(0,h.assign)(t.mountRefs,e)})),C(S(t),"backgroundRefFn",(function(e){t.backgroundElem=e})),t}return e=_,n=[{key:"init",value:function(){var t=this;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,(0,p.getDefaultTranslation)().then((function(e){var n=t.impl.publicApi;n&&!n._wasPlayerLanguageSetViaApi&&t.impl.playerLanguage(e.code)})),this.domId||(this.domId=(0,o.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:"captionsBackgroundColor",value:function(){return this.impl._attrs.captionsBackgroundColor}},{key:"captionsTextColor",value:function(){return this.impl._attrs.captionsTextColor}},{key:"captionsTextSize",value:function(){return this.impl._attrs.captionsTextSize}},{key:"captionsFontFamily",value:function(){return this.impl._attrs.captionsFontFamily}},{key:"captionsBorderRadius",value:function(){return this.impl._attrs.captionsBorderRadius}},{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(){j.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,c.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,c.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()})),i.Wistia.on("controldefined",(function(){t.render()})),(0,d.elemBind)(document,"keyup",(function(n){(0,d.formInputIsFocused)()||"player-mouseover"===e.getInputContext()&&!1!==e._opts.hoverHotkeysEnabled&&32===n.keyCode&&t.togglePlay()})),(0,d.elemBind)(window,"mouseout",(function(e){var n=e.relatedTarget||e.toElement;n&&"HTML"!==n.nodeName||(t.isHovering=!1,t.impl.exitInputContext("player-mouseover"))})),(0,d.elemBind)(document,"touchend",(function(){(0,s.isMouseDown)()&&(t._isMouseDownFromTouch=!0),setTimeout((function(){t._isMouseDownFromTouch=!1,t.render()}),50)})),(0,d.elemBind)(window,"languagechange",(function(){(0,p.getDefaultTranslation)().then((function(e){var n=t.impl.publicApi,i=t.impl.playerLanguage().code!==e.code;n&&!n._wasPlayerLanguageSetViaApi&&i&&t.impl.playerLanguage(e.code)}))}))),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("livestreamready",(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.forEach((function(e,n){t.embedElement.addEventListener(n,e)})))}},{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,d.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,o=i.existingControls;t.setControlProps();var s=null!=t._shouldShowControls?t._shouldShowControls:t.shouldShowControls();t._areControlsVisible=t._shouldShowControls,(0,d.elemStyle)(t.impl.chrome,{borderRadius:"".concat(t.playerBorderRadius(),"px")}),(0,a.render)((0,a.h)(m.default,{ariaLiveText:t._ariaLiveText,afterRender:r.length>0?function(){t.afterRender(o,r,n)}:null,allMounted:t.allMounted,backgroundRef:t.backgroundRefFn,bottomBarRightInnerRef:function(e){t.bottomBarRightInnerRef=e},captionsBackgroundColor:e.captionsBackgroundColor(),captionsTextColor:e.captionsTextColor(),captionsTextSize:e.captionsTextSize(),captionsFontFamily:e.captionsFontFamily(),captionsBorderRadius:e.captionsBorderRadius(),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(),shouldShowControls:s,videoHeight:t.videoHeight(),videoState:e.state(),videoWidth:t.videoWidth()}),e.uiContainer),0===r.length&&t.afterRender(o,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,c.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,c.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,d.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(),c=this.videoWidth(),p=this.vulcOffset=(0,d.elemOffset)(e.grid.center),f=this.bottomBarOffset={left:p.left,top:p.top+this.videoHeight()-this.controlBarHeight()},y=0;this.getControlsByType("control-bar-left").forEach((function(o,h){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(o),height:Math.round(M(o)*u),isMostRecentFocusViaMouse:a,left:y,isLeftMostControl:0===y,isRightMostControl:e.isControlDisabled("playbar"),playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(R(o))*u},y+=o.props.width})),this.leftControlWidth=y;var v=this.getControlsByType("control-bar-right","ellipsis");v.forEach((function(o,h){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(o),height:Math.round(M(o)*u),isMostRecentFocusViaMouse:a,isLeftMostControl:0===h&&e.isControlDisabled("playbar"),isRightMostControl:h===v.length-1,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(R(o))*u},"volumeButton"===o.constructor.handle&&h===v.length-2&&(o.props.isRightMostControl=!0),"volumeSlider"===o.constructor.handle&&h===v.length-1&&(o.props.isRightMostControl=!1)}));var m=0;this.getControlsByType("ellipsis").slice().reverse().forEach((function(t){m+=t.props.width,t.props.left=c-m})),this.ellipsisWidth=m,this.getControlsByType("control-bar-right").slice().reverse().forEach((function(t){m+=t.props.width,t.props.left=c-m})),this.rightControlWidth=m;var g=this.leftControlWidth+(this.ellipsisWidth>0?this.ellipsisWidth:this.rightControlWidth),b=c-g,_=this.getControlsByType("playbar")[0];_&&(_.__prevProps=_.props,_.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:this.createFocusNextControlFunction(_),height:this.controlBarHeight(),isMostRecentFocusViaMouse:a,left:y,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:b}),this.playbarControlWidth=b;var w=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:w,isFocusable:t.allMounted&&t.doneWaitingForPlay,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(e),isHoveringOnPlayer:o,isMostRecentFocusViaMouse:a,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c}}))}));var P=f.top;this.eachButtonControl((function(t){t.props.top=P})),_&&(0,h.assign)(_.props,{top:P}),this.eachControl((function(e){e.props.bigPlayButtonBorderRadius=t.bigPlayButtonBorderRadius(),e.props.controlBarBorderRadius=t.controlBarBorderRadius(),e.props.controlBarDistance=t.controlBarDistance(),e.props.leftControlBarWidth=t.leftControlWidth,e.props.playerBorderRadius=t.playerBorderRadius(),e.props.rightControlBarWidth=t.rightControlWidth,e.props.captionsBackgroundColor=t.captionsBackgroundColor(),e.props.captionsTextColor=t.captionsTextColor(),e.props.captionsTextSize=t.captionsTextSize(),e.props.captionsFontFamily=t.captionsFontFamily(),e.props.captionsBorderRadius=t.captionsBorderRadius()}))}},{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,r=[],o=function(){var i=t.controls[a];if(B[i.constructor.type]){var o=i.constructor.shouldMount;if(e.isControlDisabled(a)||o&&!o(e.publicApi)){if(i.destroy)try{i.destroy()}catch(t){setTimeout((function(){throw t}),1)}i.__destroyed=!0,delete t.mountRefs[a],delete t.buttonMountRefs[a],delete t.controls[I(i)],n=!0,r.push(i),e.trigger("controldestroyed",a)}}};for(var a in this.controls)o();var s=!1,u=[],l=[],c=function(n){var r=i.Wistia._controlDefinitions[n];if(B[r.type]){var o=null!=t.controls[n],a=!e.isControlDisabled(n)&&(null==r.shouldMount||r.shouldMount(e.publicApi));if(a&&o&&l.push(t.controls[n]),!o&&a){try{var c=t.controls[n]=new r(e);c.mounted=new Promise((function(t){c.__didMount=function(){c.mounted.isResolved=!0,e.trigger("controlmounted",n),t()}})),u.push(c)}catch(t){setTimeout((function(){throw t}),1)}s=!0}}};for(var h in i.Wistia._controlDefinitions)c(h);if(s||n){var d={};for(var p in this.eachControl((function(t){var e=t.constructor.type;null==d[e]&&(d[e]=[]),d[e].push(t)})),d)d[p].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:u,existingControls:l,destroyedControls:r}}},{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=I(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||"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=I(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=I(t);if(this.impl){try{t.mountDialog&&!t.dialog&&(t.dialog=new v.default(this,{dialogWillOpen:L(t.controlDialogWillOpen,t),dialogOpened:L(t.controlDialogOpened,t),dialogWillClose:L(t.controlDialogWillClose,t),dialogClosed:L(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,a.render)((0,a.h)(y.default,w({},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 r="".concat(n.impl.uuid,".loading_dialog_indicator.").concat((0,o.seqId)());(0,c.doTimeout)(r,(function(){n.setLoadingDialogAndRender(t,!0),j.touchScreen?(0,d.elemBind)(document,"touchstart",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),d.elemUnbind})):(0,d.elemBind)(document,"mousedown",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),d.elemUnbind}))}),300),e.then((function(){(0,c.clearTimeouts)(r),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 r="".concat(n.impl.uuid,".loading_indicator.").concat((0,o.seqId)());(0,c.doTimeout)(r,(function(){n.controls.loadingHourglass.show(e),j.touchScreen?(0,d.elemBind)(document,"touchstart",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),d.elemUnbind})):(0,d.elemBind)(document,"mousedown",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),d.elemUnbind}))}),300),t.then((function(){(0,c.clearTimeouts)(r),n.controls.loadingHourglass.hide(),i()}))}))}},{key:"eachControl",value:function(t){for(var e in this.controls)B[this.controls[e].constructor.type]&&t(this.controls[e])}},{key:"eachButtonControl",value:function(t){this.getControlsByType("control-bar-left","control-bar-right","ellipsis").forEach(t)}},{key:"spaceForPlaybar",value:function(){var t=0;return this.eachButtonControl((function(e){t+=R(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(34*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()&&(j.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=I(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;r0){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.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||x(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||j.ipad&&j.ios.version&&j.ios.version<10.1||!1===t.playsinline&&(j.ipad||j.iphone||j.android)&&!/two_stroke/.test(this.impl.bestEngine())}},{key:"cssResetContent",value:function(){var t="#".concat(this.impl.chrome.id," #").concat(this.impl.grid.wrapper.id),e=(0,r.cssResetForSelector)("".concat(t," "),".w-css-reset"),n=(0,r.cssResetForSelector)("".concat(t," .w-css-reset-tree "),""),i=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(i,"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{n.d(e,{default:()=>y});var i=n(5),r=n(2),o=n(38),a=n(219),s=n(220);function u(t,e){for(var n=0;n{n.d(e,{default:()=>y});var i=n(5),r=n(2),o=n(50),a=n(21),s=n(60);function u(t,e){for(var n=0;n0&&(c=-1*d)}var p=u?0:40;return{background:"rgba(0,0,0,0.7)",borderRadius:"".concat(r,"px"),bottom:"".concat(o,"px"),color:"#fff",display:s?"none":"block",left:c,lineHeight:"34px",maxHeight:"".concat(e,"px"),opacity:u?1:0,overflowX:"hidden",overflowY:"auto",position:"absolute",transition:"opacity ".concat(120,"ms ease ").concat(p,"ms, transform ").concat(120,"ms ease ").concat(p,"ms"),transform:"scaleY(".concat(u?1:.6,")"),transformOrigin:"center bottom",width:null!=h?"".concat(h,"px"):null}}},{key:"stubStyle",value:function(){return{boxSizing:"border-box",display:"inline-block",height:"100%",verticalAlign:"bottom",width:"100%"}}},{key:"setupMeasurementLoop",value:function(){o.globalEventLoop.add(this.uuid,500,this.measureUserElem)}},{key:"cancelMeasurementLoop",value:function(){o.globalEventLoop.remove(this.uuid)}}])&&u(e.prototype,n),d&&u(e,d),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.Component)},(t,e,n)=>{n.d(e,{default:()=>b});var i=n(72),r=n(2),o=n(11),a=n(38),s=n(6),u=n(60),l=n(58);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e{n.d(e,{default:()=>u});var i=n(16);function r(t,e){for(var n=0;n1&&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}var e,n,i;return e=t,(n=[{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(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();(0,i.bindify)(s.prototype);const u=s},(t,e,n)=>{n.d(e,{default:()=>O});var i=n(72),r=n(2),o=n(11),a=n(6),s=n(5),u=n(38),l=n(58),c=n(60);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 d(t){for(var e=1;e8?"".concat(3*r,"px"):0})}},{key:"ellipsisStyle",value:function(){return d(d({},this.standardInnerStyle()),{},{display:this.props.controlsByType.ellipsis?"inline-block":"none"})}},{key:"standardCellStyle",value:function(t){return{display:"table-cell",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)}}],n&&p(e.prototype,n),o&&p(e,o),Object.defineProperty(e,"prototype",{writable:!1}),h}(r.Component),P=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)=>{function i(t,e){for(var n=0;ns});var s=function(t){!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&&r(t,e)}(u,t);var e,n,a,s=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return e=u,(n=[{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(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(208).PlayerBehavior);s.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)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(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=new Array(e);na});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?h(t,n.start):0,r=null!=n.end&&-1!==n.end?h(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=a||c.end<0)?c:void 0;if(null!=s)if(s>=0){var p={start:0,end:s};h?r.splice(0,1,p):r.unshift(p)}else h&&r.shift();if(null!=u)if(u>=0){var f={start:u,end:a};d?r.splice(r.length-1,1,f):r.push(f)}else d&&r.pop();return r},h=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"}],__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__(81),__webpack_require__(103);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