var e={2(e){e.exports=window.Wistia.Preact},4(e,t,n){n.d(t,{getDeep:()=>o,isArray:()=>u,setDeep:()=>a,unsetDeep:()=>c});n(5);var i=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},r=Array.prototype.slice,o=function(e,t,n){t="string"==typeof t?t.split("."):r.call(t);for(var o,a=e;null!=e&&t.length;){var s=t.shift();void 0!==e[s]&&(f(e[s])||u(e[s]))||!n||(0===s?(e=a[o]=[])[s]={}:e[s]={}),a=e,o=s,e=i(e,s)?e[s]:void 0}return e},a=function(e,t,n){return s(e,t,n,!0)},s=function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=(t="string"==typeof t?t.split("."):r.call(t)).pop();null!=(e=o(e,t,!0))&&(f(e)||u(e))&&null!=a&&(i&&null==n?delete e[a]:e[a]=n)},c=function(e,t){return a(e,t)},l=/^\s*function Array()/,u=function(e){return null!=e&&e.push&&l.test(e.constructor)},d=/^\s*function Object()/,f=function(e){return null!=e&&"object"==typeof e&&d.test(e.constructor)}},5(e,t,n){},10(e,t,n){var i;n.d(t,{root:()=>r});try{(i=self).self!==i&&void 0!==i.self&&"undefined"!=typeof window&&(i=window)}catch(e){i="undefined"!=typeof globalThis?globalThis:window}var r=i},12(e,t,n){n.d(t,{wlog:()=>p});var i=n(13),r=n(16);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var s={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},c=function(){},l=function(e){var t=this;null==e&&(e={});return t.error=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(0,n)},t.warn=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(1,n)},t.notice=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(1,n)},t.info=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(3,n)},t.debug=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return t.log(4,n)},t.ctx=e,t.ctx.initializedAt||t.reset(),t},u=l.prototype;u.reset=function(){this.ctx.level=0,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=(new Date).getTime()},u.setLevel=function(e){var t=this.logFunc(3);null!=s[e]?(this.ctx.level=s[e],t('Log level set to "'.concat(e,'" (').concat(s[e],")"))):t('Unknown log level "'.concat(e,'"'))},u.setGrep=function(e){this.ctx.grep=e},u.setGrepv=function(e){this.ctx.grepv=e},u.first1000LogLines=function(){return this.ctx.first1000LogLines},u.last1000LogLines=function(){return this.ctx.last1000LogLines},u.matchedGrep=function(e){var t=!1;if(this.ctx.grep||this.ctx.grepv){for(var n=[],i=0;i<e.length;i++)try{var r=e[i];n.push(r.toString&&r.toString())}catch(e){n.push("")}var o=n.join(" "),a=!this.ctx.grep||o.match(this.ctx.grep),s=!this.ctx.grepv||!o.match(this.ctx.grepv);t=a&&s}else t=!0;return t},u.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:(new Date).getTime()-this.ctx.initializedAt},u.messagesToLogLine=function(e,t,n){var i,r=[e,t];r=r.concat(n);try{(i=r.join(" ")||"").length>200&&(i=i.slice(0,200))}catch(e){i="could not serialize"}return i},u.persistLine=function(e){this.ctx.first1000LogLines.length<1e3?this.ctx.first1000LogLines.push(e):(this.ctx.last1000LogLines.length>=1e3&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(e))},u.log=function(e,t){var n,r=e<=this.ctx.level,a=e<4,s=(r||a)&&this.matchedGrep(t);if(0===e&&(0,i.globalTrigger)("problem",{type:"error-logged",data:{messages:t}}),s&&(r||a)&&(n=this.now()),a&&s){var c=this.messagesToLogLine(e,n,t);this.persistLine(c)}if(r&&s){var l,u=this.logFunc(e);1===t.length&&(l=t[0])instanceof Error?(u(l.message),l.stack&&u(l.stack)):u.apply(void 0,o(t))}};var d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error.apply(console,t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn.apply(console,t)},v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.info.apply(console,t)},g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug.apply(console,t)},h=function(e){console.log.apply(console,e)};u.logFunc=function(e){return null==e&&(e=this.level),console?(0===e?t=d:1===e?t=f:3===e?t=v:4===e&&(t=g),t||(t=h),"function"!=typeof t&&(this.noConsoleLog=!0,t=c),t):c;var t},u.maybePrefix=function(e,t){if(e){if("function"==typeof e)try{e=e()}catch(t){e='prefix err "'.concat(t.message,'"')}return e instanceof Array?e.concat(t):[e].concat(t)}return t},u.getPrefixedFunctions=function(e){var t=this;return{log:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(0,t.maybePrefix(e,i))},error:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(0,t.maybePrefix(e,i))},warn:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(1,t.maybePrefix(e,i))},notice:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(1,t.maybePrefix(e,i))},info:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(3,t.maybePrefix(e,i))},debug:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.log(4,t.maybePrefix(e,i))}}},r.Wistia&&null==r.Wistia.wlogCtx&&(r.Wistia.wlogCtx={});var p=new l(r.Wistia.wlogCtx)},13(e,t,n){n.d(t,{globalOn:()=>o,globalTrigger:()=>a});var i=n(14),r=n(16);(0,i.makeWbindable)(r.Wistia);r.Wistia.bind.bind(r.Wistia);var o=r.Wistia.on.bind(r.Wistia),a=(r.Wistia.off.bind(r.Wistia),r.Wistia.rebind.bind(r.Wistia),r.Wistia.trigger.bind(r.Wistia));r.Wistia.unbind.bind(r.Wistia)},14(e,t,n){n.d(t,{makeWbindable:()=>a});var i=n(15),r=n(16),o=n(19);r.Wistia.bindable||(r.Wistia.EventShepherdManager||(r.Wistia.EventShepherdManager={}),r.Wistia.bindable={bind:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),this;if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]&&(r.Wistia.EventShepherdManager[a]=new o.EventShepherd),r.Wistia.EventShepherdManager[a].addListener(e,n,t),this}if(t)return i.bind.call(this,e,t),this;r.Wistia.warn&&r.Wistia.warn(this.constructor.name,"bind","falsey value passed in as callback:",t)},unbind:function(e,t){if("crosstime"===e&&this.crossTime)return t?this.crossTime.removeBinding(arguments[1],arguments[2]):this.crossTime.removeAllBindings(),this;if("betweentimes"===e&&this.betweenTimes)return t?this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]):this.betweenTimes.removeAllBindings(),this;var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]||r.Wistia.EventShepherdManager[a].removeListener(e,n,t),this}return t?i.unbind.call(this,e,t):this._bindings&&(this._bindings[e]=[]),this._bindings&&this._bindings[e]&&!this._bindings[e].length&&(this._bindings[e]=null,delete this._bindings[e]),this},on:function(e,t){var n=arguments,a=this;if("crosstime"===e&&this.crossTime)return this.crossTime.addBinding(arguments[1],arguments[2]),function(){a.crossTime.removeBinding(n[1],n[2])};if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.addBinding(arguments[1],arguments[2],arguments[3]),function(){a.betweenTimes.removeBinding(n[1],n[2],n[3])};var c=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&c){var l=s(c);return void 0===r.Wistia.EventShepherdManager[l]&&(r.Wistia.EventShepherdManager[l]=new o.EventShepherd(c)),r.Wistia.EventShepherdManager[l].addListener(e,c,t),function(){r.Wistia.EventShepherdManager[l].removeListener(e,c,t)}}return i.bind.call(this,e,t)},off:function(e,t){if("crosstime"===e&&this.crossTime)return this.crossTime.removeBinding(arguments[1],arguments[2]);if("betweentimes"===e&&this.betweenTimes)return this.betweenTimes.removeBinding(arguments[1],arguments[2],arguments[3]);var n=this.embedElement||this.container;if(Object.keys(o.convertedEventNames).includes(e)&&n){var a=s(n);return void 0===r.Wistia.EventShepherdManager[a]?function(){}:r.Wistia.EventShepherdManager[a].removeListener(e,n,t)}return i.unbind.call(this,e,t)},rebind:function(e,t){return this.unbind(e,t),this.bind(e,t),this},trigger:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=i.trigger).call.apply(t,[this,e].concat(r)),this},bindNamed:function(){return i.bindNamed.apply(this,arguments)},unbindNamed:function(){return i.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return i.unbindAllInNamespace.apply(this,arguments)}});var a=function(e){for(var t in r.Wistia.bindable){var n=r.Wistia.bindable[t];e[t]||(e[t]=n)}},s=function(e){return null!=e&&e.mediaId?e.mediaId:null!=e&&e.id?e.id:void 0}},15(e,t,n){n.d(t,{bind:()=>l,bindNamed:()=>h,trigger:()=>f,unbind:()=>u,unbindAllInNamespace:()=>m,unbindNamed:()=>p});var i=n(16),r=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)};function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var s,c=Array.prototype.slice,l=function(e,t){var n=this;return n._bindings||(n._bindings={}),n._bindings[e]||(n._bindings[e]=[]),n._bindings[e].push(t),function(){n.unbind(e,t)}},u=function(e,t){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var n=[],i=0;i<this._bindings[e].length;i++){var r=this._bindings[e][i];r!==t&&n.push(r)}this._bindings[e]=n},d=function(e,t){return this.unbind(e,t),this.bind(e,t),{event:e,fn:t}},f=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this._bindings&&null!=this._bindings.all&&v.apply(this,["all",e].concat(n)),v.apply(this,[e].concat(n))},v=function(e){if(!this._bindings)return this;if(!this._bindings[e])return this;for(var t,n=c.call(arguments,1),r=o(this._bindings[e]),a=0;a<r.length;a++){var s=r[a];try{s.apply(this,n)===this.unbind&&(null==t&&(t=[]),t.push({event:e,fn:s}))}catch(e){if(this._throwTriggerErrors)throw e;i.Wistia.error&&i.Wistia.error(e)}}if(t)for(var l=0;l<t.length;l++){var u=t[l];this.unbind(u.event,u.fn)}return this},g=function(e,t){null==e._namedBindings&&(e._namedBindings={}),null==e._namedBindings[t]&&(e._namedBindings[t]={})},h=function(e,t,n,i){return this.unbindNamed(e,t),function(e,t,n,i,r){g(e,t),e._namedBindings[t][n]={event:i,fn:r}}(this,e,t,n,i),this.bind(n,i),function(){this.unbindNamed(e,t)}},p=function(e,t){g(this,e);var n=function(e,t,n){return g(e,t),e._namedBindings[t][n]}(this,e,t);if(n){var i=n.event,r=n.fn;this.unbind(i,r)}var o=this._namedBindings;return delete o[e][t],b(o[e])&&delete o[e],this},m=function(e){var t=this._namedBindings&&this._namedBindings[e];if(null==t)return this;for(var n in t)r(t,n)&&this.unbindNamed(e,n)},b=function(e){for(var t in e)if(r(e,t))return!1;return!0};(s=function(){}.prototype).bind=l,s.unbind=u,s.on=l,s.off=u,s.rebind=d,s.trigger=f,s.bindNamed=h,s.unbindNamed=p,s.unbindAllInNamespace=m},16(e,t,n){n.d(t,{Wistia:()=>$});var i,r,o,a,s,c,l,u,d,f,v,g,h,p,m,b,y,w,E,W,S,k,P,O,_,j,A,T,L,x,C,M,D,I,N,B,G,R=n(2),z=n(17),H=n(18),U=n(10);function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null!==(i=U.root.Wistia)&&void 0!==i||(U.root.Wistia={}),null!==(o=(r=U.root.Wistia).Preact)&&void 0!==o||(r.Preact=F(F({},R),{},{hooks:z,compat:H})),null!==(s=(a=U.root.Wistia)._destructors)&&void 0!==s||(a._destructors={}),null!==(l=(c=U.root.Wistia)._initializers)&&void 0!==l||(c._initializers={}),null!==(d=(u=U.root.Wistia)._remoteData)&&void 0!==d||(u._remoteData=new Map),null!==(v=(f=U.root.Wistia).api)&&void 0!==v||(f.api=function(){return console.error("Accessed Wistia.api() before it was initialized"),null}),null!==(h=(g=U.root.Wistia).defineControl)&&void 0!==h||(g.defineControl=function(){return console.error("Accessed Wistia.defineControl() before it was initialized"),null}),null!==(m=(p=U.root.Wistia).EventShepherdManager)&&void 0!==m||(p.EventShepherdManager={}),null!==(y=(b=U.root.Wistia).mixin)&&void 0!==y||(b.mixin=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(n){(function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})(t,n)&&(e[n]=t[n])}))}),null!==(E=(w=U.root.Wistia).playlistMethods)&&void 0!==E||(w.playlistMethods=new Map),null!==(S=(W=U.root.Wistia).PublicApi)&&void 0!==S||(W.PublicApi=null),null!==(P=(k=U.root.Wistia).uncacheMedia)&&void 0!==P||(k.uncacheMedia=function(){return console.error("Accessed Wistia.uncacheMedia() before it was initialized"),null}),null!==(_=(O=U.root.Wistia).VisitorKey)&&void 0!==_||(O.VisitorKey=null),null!==(A=(j=U.root.Wistia).visitorKey)&&void 0!==A||(j.visitorKey=null),null!==(L=(T=U.root.Wistia).wistia)&&void 0!==L||(T.wistia=void 0),null!==(C=(x=U.root.Wistia)._liveStreamEventDataPromises)&&void 0!==C||(x._liveStreamEventDataPromises={}),null!==(D=(M=U.root.Wistia)._mediaDataPromises)&&void 0!==D||(M._mediaDataPromises={}),null!==(N=(I=U.root.Wistia)._liveStreamPollingPromises)&&void 0!==N||(I._liveStreamPollingPromises={}),null!==(G=(B=U.root.Wistia).first)&&void 0!==G||(B.first=function(){var e;return null!==(e=U.root.Wistia.api())&&void 0!==e?e:document.querySelector("wistia-player")});var $=U.root.Wistia},17(e){e.exports=window.Wistia.Preact.hooks},18(e){e.exports=window.Wistia.Preact.compat},19(e,t,n){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}n.d(t,{EventShepherd:()=>s,convertedEventNames:()=>o});var o={mutechange:n(20).MUTE_CHANGE_EVENT},a={mutechange:function(e){return e.isMuted}},s=function(){return e=function e(){var t,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,i={},(n=r(n="convertedEventsMap"))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i},(t=[{key:"addListener",value:function(e,t,n){var i,r,s,c=null!==(i=o[e])&&void 0!==i?i:e;null!==(s=(r=this.convertedEventsMap)[c])&&void 0!==s||(r[c]=[]);var l=function(t){if(a[e]){var i=a[e](t.detail);n(i)}else n()};this.convertedEventsMap[c].push({givenCallback:n,eventListenerCallback:l}),t.addEventListener(c,l)}},{key:"removeAllListeners",value:function(e){var t=this;Object.keys(this.convertedEventsMap).forEach((function(n){var i;null===(i=t.convertedEventsMap[n])||void 0===i||i.forEach((function(t){e.removeEventListener(n,t.eventListenerCallback)})),t.convertedEventsMap[n]=[]}))}},{key:"removeListener",value:function(e,t,n){var i,r=this,a=null!==(i=o[e])&&void 0!==i?i:e,s=[];n?(t.removeEventListener(a,n),this.convertedEventsMap[a]&&(this.convertedEventsMap[a].forEach((function(e,i){e.givenCallback===n&&(s.push(i),t.removeEventListener(a,e.eventListenerCallback))})),s.forEach((function(e){r.convertedEventsMap[a]&&r.convertedEventsMap[a].splice(e,1)})))):this.convertedEventsMap[a]=[]}}])&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},20(e,t,n){n.d(t,{MUTE_CHANGE_EVENT:()=>i});var i="mute-change"},40(e,t,n){n.d(t,{consent:()=>u});var i=n(13),r=n(41),o=n(43),a=n(16);function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var l;a.Wistia._visitorTrackingDomain||(a.Wistia._visitorTrackingDomain=location.hostname||""),a.Wistia._visitorTracking||(null!=(l=(0,r.getWistiaLocalStorage)().visitorTrackingEnabled)&&((0,r.updateWistiaLocalStorage)((function(e){return delete e.visitorTrackingEnabled})),a.Wistia._visitorTracking={},a.Wistia._visitorTracking[a.Wistia._visitorTrackingDomain]={isEnabled:l,updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(e){return e.visitorTracking=a.Wistia._visitorTracking}))),a.Wistia._visitorTracking=(0,r.getWistiaLocalStorage)().visitorTracking||{});var u=function(e){return null==e?f():d(e)};a.Wistia.consent=u;var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.Wistia._visitorTrackingDomain;"default"===e?delete a.Wistia._visitorTracking[t]:a.Wistia._visitorTracking[t]={isEnabled:"true"==="".concat(e),updatedAt:Date.now()},(0,r.updateWistiaLocalStorage)((function(e){return e.visitorTracking=a.Wistia._visitorTracking})),(0,i.globalTrigger)("visitortrackingchange",e),s(document.getElementsByTagName("wistia-player")).forEach((function(t){t.dispatchEvent(new CustomEvent("visitor-tracking-change",{detail:{isTrackingEnabled:e}}))}))},f=function(){if("boolean"==typeof a.Wistia._visitorTracking)return a.Wistia._visitorTracking;if(a.Wistia._visitorTracking){var e=function(){if(a.Wistia._visitorTrackingDomain)for(var e=a.Wistia._visitorTrackingDomain.split(".");e.length>0;){var t=a.Wistia._visitorTracking[e.join(".")],n=t&&t.isEnabled;if(null!=n)return n;e.shift()}}();if(null!=e)return Boolean(e)}var t=(0,o.getAllApiHandles)();if(a.Wistia.channel&&a.Wistia.channel.all)try{t.push.apply(t,s(a.Wistia.channel.all()))}catch(e){}return!t.some((function(e){return!0===(e._mediaData||e._galleryData||{}).privacyMode}))}},41(e,t,n){n.d(t,{getWistiaLocalStorage:()=>a,updateWistiaLocalStorage:()=>s});var i=n(42),r=n(16),o="wistia",a=function(){return(0,i.getLocalStorage)(o)},s=function(e){return r.Wistia._localStorage=(0,i.updateLocalStorage)(o,e),r.Wistia._localStorage}},42(e,t,n){n.d(t,{getLocalStorage:()=>c,removeLocalStorage:()=>l,setLocalStorage:()=>u,updateLocalStorage:()=>d});var i=n(16),r=function(e){setTimeout((function(){throw e}),0)},o="_namespacedLocalStorage",a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia-test-localstorage";if(null!=i.Wistia._localStorageWorks)return i.Wistia._localStorageWorks;try{var t=localStorage.getItem(e);localStorage.removeItem(e),localStorage.setItem(e,t),localStorage.removeItem(e),i.Wistia._localStorageWorks=!0}catch(e){i.Wistia._localStorageWorks=!1}return i.Wistia._localStorageWorks},s=function(){return null==i.Wistia[o]&&(i.Wistia[o]={}),i.Wistia[o]},c=function(e){if(!a())return s()[e]||{};if(localStorage[e])try{return"null"===localStorage[e]?{}:JSON.parse(localStorage[e])}catch(e){r(e)}return{}},l=function(e){if(a())try{localStorage.removeItem(e)}catch(e){r(e)}else s()[e]={}},u=function(e,t){if(!a())return null!=t&&"object"==typeof t&&(s()[e]=t),t;try{s()[e]=t,localStorage[e]=JSON.stringify(t)}catch(e){r(e)}return t},d=function(e,t){var n=c(e);try{t(n)}catch(e){r(e)}return u(e,n)}},43(e,t,n){n.d(t,{getAllApiHandles:()=>r});n(44),n(12);var i=n(45);n(46);var r=function(){return(void 0===(0,i.wData)("video")?[]:Object.values((0,i.wData)("video"))).concat(void 0===(0,i.wData)("iframe_api")?[]:Object.values((0,i.wData)("iframe_api")))}},44(e,t,n){n.d(t,{getAllApiEmbedElements:()=>i});var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_embed",t=document.querySelectorAll("div.".concat(e,",span.").concat(e,",iframe.").concat(e));return Array.from(t).map((function(e){var t;return"WISTIA-PLAYER"===(null===(t=e.lastChild)||void 0===t?void 0:t.nodeName)?e.lastChild:e}))}},45(e,t,n){n.d(t,{wData:()=>o});var i=n(4),r=n(16),o=function(e,t){return(0,i.isArray)(e)||(e=e.split(".")),null!=t&&(0,i.setDeep)(r.Wistia,["_data"].concat(e),t),(0,i.getDeep)(r.Wistia,["_data"].concat(e))}},46(e,t,n){n.d(t,{ensureString:()=>i});var i=function(e){return null==e?"":e.toString()}},250(e,t,n){n.d(t,{Gtag:()=>u});var i=n(40),r=n(251);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,l(i.key),i)}}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.measurementId=t.measurementId,this.customMap=t.customMap,this.sendTo=t.sendTo?{send_to:t.sendTo}:{},this.usePageGA4Config=t.usePageGA4Config,this.initializeGtag()},(t=[{key:"initializeGtag",value:function(){if((0,i.consent)()){var e=void 0===window.gtag;if(e&&(0,r.loadGtag)(this.measurementId),!this.usePageGA4Config||e){var t={send_page_view:!1,cookie_flags:"SameSite=None; Secure"};this.customMap&&(t.custom_map=this.customMap),window.gtag("config",this.measurementId,t)}}}},{key:"trackEvent",value:function(e,t){(0,i.consent)()&&window.gtag("event",this.formatEventName(e),a(a({},this.formatParams(t)),this.sendTo))}},{key:"formatParams",value:function(e){var t={};return Object.keys(e).forEach((function(n){var i=n.replaceAll(" ","_").toLowerCase();t[i]=e[n]})),t}},{key:"formatEventName",value:function(e){return"wistia_".concat(e.replace(/[^a-z0-9]+/gi,"_").toLowerCase())}}])&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},251(e,t,n){n.d(t,{loadGtag:()=>i});function i(e){(function(){for(var e=document.getElementsByTagName("script"),t=0;t<e.length;t++)if(e[t].src.includes("www.googletagmanager.com/gtag/js"))return!0;return!1})()||function(e,t,n,i,r){e[i]=e[i]||[],e[i].push({"gtm.start":(new Date).getTime(),event:"gtm.js"});var o=t.createElement("script");o.async=!0,o.src="https://www.googletagmanager.com/gtag/js?id=".concat(r).concat(""),t.head.appendChild(o)}(window,document,0,"dataLayer",e),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date)}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};(()=>{n.d(i,{GoogleAnalytics:()=>h});var e=n(40),t=n(13),r=n(250),o=n(16);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,g(i.key),i)}}function l(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function v(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}var h=function(n){function i(n,r){var o,a,c,f,g,h,p,m=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),g=this,p=[n,r],h=d(h=i),v(f=l(g,u()?Reflect.construct(h,p||[],d(g).constructor):h.apply(g,p)),"handleSecondChangeEvent",(function(e){f.secondsPlayedSinceLastReport+=1,f.secondsPlayedSinceLastReport>=60&&f.trackSecondsPlayedEvent()})),v(f,"trackConversionEvent",(function(){f.trackEvent("Conversion")})),v(f,"trackConversionEventBriteEvent",(function(e){f.trackEvent("Eventbrite Registration - ".concat(e.eventId))})),v(f,"trackConversionLinkEvent",(function(e){f.trackEvent("Clicked Link - ".concat(e.link))})),v(f,"trackEvent",(function(e,t){var n=s({event_category:f.eventCategory,event_label:f.media.name(),value:t},f.customDimensions);f.gtag.trackEvent(e,n)})),v(f,"trackPercentPlayedEvent",(function(e,t){[.25,.5,.75,.95].forEach((function(n){e>=n&&n>t&&(f.trackEvent("".concat(100*n," Percent Played")),f.options.legacy&&f.trackEvent("".concat(100*n,"% Watched")))}))})),v(f,"trackPlayEvent",(function(){f.trackEvent("Play"),f.media.unbind("play",f.trackPlayEvent)})),v(f,"trackSecondsPlayedEvent",(function(){f.secondsPlayedSinceLastReport&&(f.trackEvent("Seconds Played",f.secondsPlayedSinceLastReport),f.options.legacy&&f.trackEvent("Seconds Watched",f.secondsPlayedSinceLastReport),f.secondsPlayedSinceLastReport=0)})),f.media=n,f.options=r,f.logger=m,f.secondsPlayedSinceLastReport=0,!!(null===(o=f.media._optionSources().customize)||void 0===o||null===(a=o.plugin)||void 0===a||null===(c=a.googleAnalytics4)||void 0===c||!c.on))return l(f);var b=f.initSendTo(),y=b||f.options.measurementId;return!(0,e.consent)()||f.media.embedOptions().doNotTrack?((0,t.globalOn)("visitortrackingchange",(function(){(0,e.consent)()&&(f.initGtag(s(s({},r),{},{measurementId:y,sendTo:b})),f.initMediaBindings())})),l(f)):(f.initGtag(s(s({},r),{},{measurementId:y,sendTo:b})),f.initMediaBindings(),f)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(i,n),a=i,(g=[{key:"eventCategory",get:function(){return this.channelName?"Channel: ".concat(this.channelName):this.media.isAudio()?"Audio":"Video"}},{key:"channelHashedId",get:function(){return this.media._mediaData.channelHashedId}},{key:"channelName",get:function(){if(o.Wistia.channel&&this.channelHashedId){var e=o.Wistia.channel(this.channelHashedId);if(e)return e.title()}return null}},{key:"customDimensions",get:function(){return{"Channel Hashed Id":this.channelHashedId,"Video Hashed Id":this.media.hashedId()}}},{key:"initSendTo",value:function(){var e,t,n,i=this.media._optionSources(),r=null===(e=i.global)||void 0===e||null===(t=e.plugin)||void 0===t||null===(n=t.googleAnalytics4)||void 0===n?void 0:n.measurementId,o=i.customize.plugin.googleAnalytics4,a=o.usePageGA4Config,s=o.measurementId;return r&&!a&&this.logger.log('Warning: The googleAnalytics4 plugin option, measurementId, has been ignored. Please turn on "Use page GA4 configuration" in your integration settings for the googleAnalytics4 measurement id to take effect.'),a?r:s}},{key:"initGtag",value:function(e){this.gtag||(this.gtag=new r.Gtag({measurementId:e.measurementId,customMap:e.customMap,usePageGA4Config:e.usePageGA4Config,sendTo:e.sendTo}))}},{key:"initMediaBindings",value:function(){this.media.bind("conversion-eventbrite",this.trackConversionEventBriteEvent),this.media.bind("conversion-link",this.trackConversionLinkEvent),this.media.bind("conversion-postRoll",this.trackConversionLinkEvent),this.media.bind("conversion",this.trackConversionEvent),this.media.bind("percentwatchedchanged",this.trackPercentPlayedEvent),this.media.bind("play",this.trackPlayEvent),"loop"!==this.media._attrs.endVideoBehavior&&(this.media.bind("secondchange",this.handleSecondChangeEvent),this.media.bind("end",this.trackSecondsPlayedEvent),this.media.bind("pause",this.trackSecondsPlayedEvent))}}])&&c(a.prototype,g),h&&c(a,h),Object.defineProperty(a,"prototype",{writable:!1}),a;var a,g,h}(o.Wistia.Plugin.Base)})();const r=i.GoogleAnalytics;export{r as GoogleAnalytics};
//# debugId=dc07af41-a2a0-4a66-818f-34b569ea78ff
//# sourceMappingURL=googleAnalytics.js.map