@mintplayer/vue-video-player 0.0.0-stage → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/BehaviorSubject-B43NQ6Ep.js +1 -0
  2. package/BehaviorSubject-CMEAHufI.mjs +27 -0
  3. package/README.md +40 -2
  4. package/api-1vv4CoYw.mjs +201 -0
  5. package/api-B6qyhEI3.js +1 -0
  6. package/api-BXwOuGGp.js +9 -0
  7. package/api-Be3WmSZ1.mjs +140 -0
  8. package/api-Bqn8VxG0.mjs +103 -0
  9. package/api-BvYiv0Ae.mjs +79 -0
  10. package/api-C-ycGc3Y.js +1 -0
  11. package/api-C2IVrne3.mjs +72 -0
  12. package/api-C2TK5P8W.js +1 -0
  13. package/api-C355Aio5.js +1 -0
  14. package/api-CERg1lOE.js +9 -0
  15. package/api-CExMX1Pt.js +1 -0
  16. package/api-CcP3AdSm.mjs +2590 -0
  17. package/api-CjAlKHz7.js +38 -0
  18. package/api-CqCOtAUb.mjs +84 -0
  19. package/api-CqCgSUqk.mjs +87 -0
  20. package/api-D0zr0PoA.js +1 -0
  21. package/api-D55GaoJG.js +1 -0
  22. package/api-D5spnI9J.js +1 -0
  23. package/api-DcMW2iN2.mjs +90 -0
  24. package/api-MxZ7gaDR.mjs +118 -0
  25. package/api-O56wbN98.mjs +91 -0
  26. package/api-noLuragZ.js +1 -0
  27. package/api-yj6szShM.mjs +93 -0
  28. package/debounceTime-B4ed_w3_.js +1 -0
  29. package/debounceTime-T7webJ8G.mjs +197 -0
  30. package/executeSchedule-0S0ESNjs.js +1 -0
  31. package/executeSchedule-CVYaVzo8.mjs +9 -0
  32. package/filter-Ck2Y29AT.js +1 -0
  33. package/filter-LJ9oGNCV.mjs +11 -0
  34. package/fromEvent-CAH0A2rD.js +1 -0
  35. package/fromEvent-koPx2dM9.mjs +45 -0
  36. package/index.css +2 -0
  37. package/index.d.ts +2 -0
  38. package/index.js +1 -0
  39. package/index.mjs +216 -0
  40. package/isScheduler-dRIR0jo6.mjs +106 -0
  41. package/isScheduler-gBWm9tsU.js +1 -0
  42. package/lib/types.d.ts +12 -0
  43. package/lib/vue-video-player.vue.d.ts +18 -0
  44. package/mapOneOrManyArgs-Djtipmha.mjs +22 -0
  45. package/mapOneOrManyArgs-gqACUB3e.js +1 -0
  46. package/package.json +23 -4
  47. package/pairwise-BZ7jlLp1.mjs +12 -0
  48. package/pairwise-ksRX5aBP.js +1 -0
  49. package/src-BWj0KcGd.mjs +1043 -0
  50. package/src-C2Bgj48W.mjs +51 -0
  51. package/src-CYCud0_r.js +1 -0
  52. package/src-CluKb0O6.js +3 -0
  53. package/take-BVSpP1qC.js +1 -0
  54. package/take-DvAG1RRS.mjs +64 -0
  55. package/takeUntil-MRP2QN5v.js +1 -0
  56. package/takeUntil-zxKl50Ag.mjs +172 -0
  57. package/timer-BOeyNkh5.mjs +20 -0
  58. package/timer-mrjvJwyN.js +1 -0
@@ -0,0 +1,38 @@
1
+ const e=require("./src-CluKb0O6.js"),t=require("./BehaviorSubject-B43NQ6Ep.js"),n=require("./take-BVSpP1qC.js"),r=require("./takeUntil-MRP2QN5v.js"),i=require("./mapOneOrManyArgs-gqACUB3e.js"),a=require("./fromEvent-CAH0A2rD.js"),o=require("./filter-Ck2Y29AT.js"),s=require("./src-CYCud0_r.js");function c(e,t){return a.t(e,t)}var l=e.E(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.vidyardEmbed=r():n.vidyardEmbed=r()})(window,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=6)})([(function(e,t){var n=(function(){return this})();try{n=n||Function(`return this`)()||(0,eval)(`this`)}catch{typeof window==`object`&&(n=window)}e.exports=n}),(function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i=n(15),a=n(14),o,s,c,l=function(e){return e.tagName.toLowerCase()!==`svg`};function u(e,t){return t===!1?f(e,`aria-hidden`,`false`):f(e,`hidden`,!1)}function d(e,t){return t===!1?f(e,`aria-hidden`,`true`):f(e,`hidden`,!0)}function f(e,t,n){var r=typeof n==`boolean`;return{el:e,attributeName:t,cleanValue:r?e[t]:e.getAttribute(t),dirtyValue:n,isProperty:r}}function p(e){e.isProperty===!0?e.el[e.attributeName]=e.dirtyValue:e.el.setAttribute(e.attributeName,e.dirtyValue)}function m(e){e.cleanValue?e.isProperty===!0?e.el[e.attributeName]=e.cleanValue:e.el.setAttribute(e.attributeName,e.cleanValue):e.el.removeAttribute(e.attributeName)}function h(){s&&=(c.forEach(function(e){return m(e)}),c=[],o&&o.setAttribute(`role`,`main`),s.dispatchEvent(new i(`screenreaderUntrap`,{bubbles:!0})),null)}var g={useHiddenProperty:!1};function _(e,t){h();var n=r({},g,t);s=e,o=document.querySelector(`main, [role="main"]`),o&&o.setAttribute(`role`,`presentation`);var f=a.getAncestors(s),m=a.getSiblings(s),_=a.getSiblingsOfAncestors(s);n.useHiddenProperty===!0&&(m=m.filter(l),_=_.filter(l)),c=[u(s,n.useHiddenProperty)].concat(f.map(function(e){return u(e,n.useHiddenProperty)}),m.map(function(e){return d(e,n.useHiddenProperty)}),_.map(function(e){return d(e,n.useHiddenProperty)})),c.forEach(function(e){return p(e)}),s.dispatchEvent(new i(`screenreaderTrap`,{bubbles:!0}))}e.exports={trap:_,untrap:h}}),(function(e,t,n){var r,i,a;(function(o,s){"use strict";i=[n(7)],r=s,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(this,function(e){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;return{parse:function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?:\:(\d+))?(?:\:(\d+))?$/.exec(e.replace(/[\(\)]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(`
2
+ `).filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf(`(eval `)>-1&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,``));var n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).split(/\s+/).slice(1),r=this.extractLocation(n.pop());return new e({functionName:n.join(` `)||void 0,fileName:[`eval`,`<anonymous>`].indexOf(r[0])>-1?void 0:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split(`
3
+ `).filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(` > eval`)>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,`:$1`)),t.indexOf(`@`)===-1&&t.indexOf(`:`)===-1)return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,``));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(`
4
+ `)>-1&&e.message.split(`
5
+ `).length>e.stacktrace.split(`
6
+ `).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(`
7
+ `),i=[],a=2,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(`
8
+ `),i=[],a=0,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera11:function(n){return n.stack.split(`
9
+ `).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^\)]*\)/g,``)||void 0,o;return i.match(/\(([^\)]*)\)/)&&(o=i.replace(/^[^\(]+\(([^\)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)}}})}),(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){function e(e){var t=e===void 0?{emit:!1,logger:console.log}:e,n=t.emit,r=t.logger;this.emit=n,this.externalLogger=r,this.buffer=[],this.customLevel={},this.error=this.setLevel(1),this.warn=this.setLevel(2),this.info=this.setLevel(3),this.log=this.setLevel(4)}return e.prototype.getLogs=function(e){return typeof e==`function`?this.buffer.filter(function(t){return t.level===e.level}):e?this.buffer.filter(function(t){return t.level===e}):this.buffer},e.prototype.setLevel=function(e){var t=this,n=function(){var n=[...arguments],r={level:e,time:Date.now(),msg:n.join(` `)};t.buffer.push(r),t.emit&&t.externalLogger(r)};return n.level=e,this.customLevel[e]=n,n},e}()}),(function(e,t,n){"use strict";t.a=(function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})})}),(function(e,t,n){"use strict";(function(e){var r=n(4),i=setTimeout;function a(){}function o(e,t){return function(){e.apply(t,arguments)}}function s(e){if(!(this instanceof s))throw TypeError(`Promises must be constructed via new`);if(typeof e!=`function`)throw TypeError(`not a function`);this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function c(e,t){for(;e._state===3;)e=e._value;e._state===0?e._deferreds.push(t):(e._handled=!0,s._immediateFn(function(){var n=e._state===1?t.onFulfilled:t.onRejected;if(n===null)(e._state===1?l:u)(t.promise,e._value);else{var r;try{r=n(e._value)}catch(e){u(t.promise,e);return}l(t.promise,r)}}))}function l(e,t){try{if(t===e)throw TypeError(`A promise cannot be resolved with itself.`);if(t&&(typeof t==`object`||typeof t==`function`)){var n=t.then;if(t instanceof s){e._state=3,e._value=t,d(e);return}if(typeof n==`function`){p(o(n,t),e);return}}e._state=1,e._value=t,d(e)}catch(t){u(e,t)}}function u(e,t){e._state=2,e._value=t,d(e)}function d(e){e._state===2&&e._deferreds.length===0&&s._immediateFn(function(){e._handled||s._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)c(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled=typeof e==`function`?e:null,this.onRejected=typeof t==`function`?t:null,this.promise=n}function p(e,t){var n=!1;try{e(function(e){n||(n=!0,l(t,e))},function(e){n||(n=!0,u(t,e))})}catch(e){if(n)return;n=!0,u(t,e)}}s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var n=new this.constructor(a);return c(this,new f(e,t,n)),n},s.prototype.finally=r.a,s.all=function(e){return new s(function(t,n){if(!e||e.length===void 0)throw TypeError(`Promise.all accepts an array`);var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var i=r.length;function a(e,o){try{if(o&&(typeof o==`object`||typeof o==`function`)){var s=o.then;if(typeof s==`function`){s.call(o,function(t){a(e,t)},n);return}}r[e]=o,--i===0&&t(r)}catch(e){n(e)}}for(var o=0;o<r.length;o++)a(o,r[o])})},s.resolve=function(e){return e&&typeof e==`object`&&e.constructor===s?e:new s(function(t){t(e)})},s.reject=function(e){return new s(function(t,n){n(e)})},s.race=function(e){return new s(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},s._immediateFn=typeof e==`function`&&function(t){e(t)}||function(e){i(e,0)},s._unhandledRejectionFn=function(e){typeof console<`u`&&console&&console.warn(`Possible Unhandled Promise Rejection:`,e)},t.a=s}).call(this,n(18).setImmediate)}),(function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,`default`,function(){return Rt});var i=n(5),a=function(e){return typeof e==`function`},o=function(e){var t=(e===void 0?window:e).Promise;return t&&t.all&&t.race&&t.resolve&&t.reject&&a(t)&&a(t.all)&&a(t.race)&&a(t.resolve)&&a(t.reject)}()?window.Promise:i.a,s=function(e,t,n,r){return r===void 0&&(r=window),window.addEventListener?r.addEventListener(e,n,!1):window.attachEvent&&r.attachEvent(t,n),{eventName:e,handler:n,element:r}},c=function(e,t,n){n===void 0&&(n=window),n.removeEventListener?n.removeEventListener(e,t,!1):n.detachEvent?n.detachEvent(`on`+e,t):n[`on`+e]=null},l=function(e,t){if(typeof window.CustomEvent==`function`)return new window.CustomEvent(e,{detail:t});if(typeof document.createEvent==`function`){var n=document.createEvent(`CustomEvent`);return n.initCustomEvent(e,!1,!1,t),n}},u=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return JSON.stringify(e)===JSON.stringify({})},d=function(e,t){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},f=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},p=function(e,t,n){if(t===void 0&&(t=`*`),n===void 0&&(n=document),typeof document.getElementsByClassName==`function`)return n.getElementsByClassName(e);for(var r=[],i=RegExp(`(^| )`+e+`( |$)`),a=C(n.getElementsByTagName(t)),o=0,s=a;o<s.length;o++){var c=s[o];i.test(c.className)&&r.push(c)}return r},m=function(e,t){t===void 0&&(t=0);var n=S(e);return n.height!==0||n.width!==0?(n.height/(n.width+t)*100).toFixed(2):56.25.toFixed(2)},h=function(e,t){t===void 0&&(t=`log`),window.console&&typeof window.console[t]==`function`&&console[t](e)},g=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(t(i)===!0)return i}},_=function(e,t){return g(e,function(e){return e===t})},v=function(e){var t=!1;return function(){var n=[...arguments];t||=(e&&e.apply(void 0,n),!0)}},y=function(e){return function(t){(t.keyCode===32||t.keyCode===13)&&e(t)}},b=function(e){return function(t){t.keyCode===27&&e(t)}},x=function(){return document.currentScript?document.currentScript:g(C(document.getElementsByTagName(`script`)),function(e){return e.src&&(e.src.match(`vidyard-embed-code.js`)!==null||e.src.match(/v4(\.umd)?\.js/)!==null)})},S=function(e){if(e.naturalWidth)return{width:e.naturalWidth,height:e.naturalHeight};var t=new Image;return t.src=e.src,{width:t.width,height:t.height}},C=function(e){return Array.prototype.slice.call(e)},ee=function(e){return new o(function(t,n){try{t(JSON.parse(e))}catch(e){n(e)}})},te=function(e){var t=e.endpoint,n=e.payload,r=n===void 0?{}:n,i=e.method,a=i===void 0?`GET`:i;return new o(function(e,n){var i=new XMLHttpRequest().withCredentials===void 0&&XDomainRequest?new XDomainRequest:new XMLHttpRequest;i.open(a,t),i instanceof XMLHttpRequest&&i.setRequestHeader(`Content-Type`,`text/plain`),i.onerror=function(e){return n(e)},i.onload=function(){i instanceof XMLHttpRequest?Math.floor(i.status/100)===2?e(i.responseText):n():e(i.responseText)},i.send(JSON.stringify(r))})},ne=function(){for(var e=[[`requestFullscreen`,`exitFullscreen`,`fullscreenElement`,`fullscreenchange`],[`webkitRequestFullscreen`,`webkitExitFullscreen`,`webkitFullscreenElement`,`webkitfullscreenchange`],[`mozRequestFullScreen`,`mozCancelFullScreen`,`mozFullScreenElement`,`mozfullscreenchange`],[`msRequestFullscreen`,`msExitFullscreen`,`msFullscreenElement`,`MSFullscreenChange`]],t=[],n={},r=0,i=e;r<i.length;r++){var a=i[r];if(a[1]in document){t=a;break}}if(t&&t.length){for(var o=0;o<t.length;o++)n[e[0][o]]=t[o];return n}return null},re=function(e){for(var t={},n=function(e){return e.name.replace(`data-`,``)},r=0;r<e.attributes.length;r+=1){var i=e.attributes[r];i.name.indexOf(`data-`)<0||(t[n(i)]=i.value)}return t},w=function(e){e=e.replace(/[\[]/,`\\[`).replace(/[\]]/,`\\]`);var t=`[\\?&]`+e+`=([^&#]*)`,n=new RegExp(t).exec(window.location.search);if(n!==null)return n[1]},ie=function(e,t){try{var n=JSON.parse(decodeURIComponent(e));return Object.keys(n).reduce(function(e,r){return e[t+`[`+r+`]`]=n[r],e},{})}catch{return h(`Invalid `+t+` payload`,`warn`),{}}},ae=function(e){return Object.keys(e).reduce(function(t,n){if(n===`vydata`){var r=ie(e[n],`vydata`);Object.keys(r).forEach(function(e){t[e]=r[e]})}else t[n]=e[n];return t},{})},oe=function(e,t,n){var r=function(e,t){return e.className.indexOf(t)!==-1},i=function(e,t){r(e,t)||(e.className=e.className.trim()+` `+t)};n===!0?i(e,t):n===!1||r(e,t)?function(e,t){r(e,t)&&(e.className=e.className.replace(t,` `).trim())}(e,t):i(e,t)},T=`4.3.26`,se=/vidyard\.com\/embed\/v4/,ce=`/integrations.js`,le=.5,ue=319,de=`/details.js`,fe=`/style.js`,pe=(function(){var e;return{setPlaybackURL:function(t){return e=t,e},getPlaybackURL:function(){var t=x(),n=t?t.getAttribute(`data-playbackurl`):null;return e||window.VIDYARD_PLAYBACK_URL||n||`play.vidyard.com`}}})(),me=pe.setPlaybackURL,E=pe.getPlaybackURL,D=function(){return`https://`+E()+`/v4/`},he=function(){return`https://`+E()+`/v4/error`},O=function(e,t,n){if(t&&n){if(window.postMessage&&n.contentWindow)n.contentWindow.postMessage(JSON.stringify(e),t);else{if(e.event!==`associateVisitor`)return;var r=e.event+`,`+e.data.type+`,`+e.data.value+`|`,i=n.src;i.indexOf(`#`)===-1&&(i+=`#`),i+=r,n.src=i}}},ge=function(e){return function(t){var n=_e(t);n&&e(n)}};function _e(e){if(typeof e.data==`string`&&e.data!==``)try{var t=JSON.parse(e.data),n=p(`vidyard-iframe-`+t.uuid,`iframe`)[0],r=(n?n.contentWindow:null)===e.source,i=typeof t.event==`string`;return!r||!i?void 0:t}catch{h(`Invalid postMessage received`,`warn`);return}}var ve=[`pardot`,`hubspotutk`,`_mkto_trk`,`vy_dreamforce`,`eloqua`],ye=[`pardot`,`hubspot`,`marketo`,`dreamforce`,`eloqua`];function be(){var e=this,t=!1,n={};this.updatePlayer=function(e){if(e._tmpOrg&&e.iframe){var t=e._tmpOrg.orgId;n[t]||(n[t]={foundIntegrations:{},id:t,integrations:e._tmpOrg,players:[]}),e.org=n[t];for(var r=0,i=n[t].players;r<i.length;r++)if(i[r].iframe===e.iframe)return;n[t].players.push(e);var a=e.org.integrations,o=a.eloqua,s=a.eloquaFirstPartyDomain;o&&(e.status!==null&&e.status.consent?_(o,s):e.on(`status`,function t(){e.status.consent&&(_(o,s),e.off(`status`,t))})),p()}},this.safelyCommunicateIntegration=function(e,t,n){e.org!==void 0&&n!=null&&!r(e,t)&&c(e,t,n)&&(e.org=a(e.org,t,e.uuid))},this.addKnownVisitor=function(e,t,n){if(n)for(var r=0,i=n.players;r<i.length;r++){var a=i[r];f(a,e,t)}},this.getCookie=function(e,t){var n=document.cookie.split(`;`);if(e===`eloqua`&&typeof window.GetElqCustomerGUID==`function`)return window.GetElqCustomerGUID();for(var r=m(ve[ye.indexOf(e)],t),i=0,a=n;i<a.length;i++){var o=a[i],s=o.indexOf(`=`),c=o.substr(0,s).replace(/^\s+|\s+$/g,``),l=o.substr(s+1);if(c===r)return decodeURIComponent(l)}};var r=function(e,t){return e.org&&e.org.foundIntegrations&&e.org.foundIntegrations[t]&&e.org.foundIntegrations[t].sentPlayers&&d(e.uuid,e.org.foundIntegrations[t].sentPlayers)!==-1},i=function(e,t){return e.foundIntegrations[t]||(e.foundIntegrations[t]={externalIdentifier:null,sentPlayers:[]}),e},a=function(e,t,n){return e=i(e,t),e.foundIntegrations[t].sentPlayers.push(n),e},o=function(e,t,n){return e=i(e,t),e.foundIntegrations[t].externalIdentifier=n,e},c=function(e,t,n){if(!e.ready())return!1;var r={data:{type:t,value:n},event:`associateVisitor`,uuid:e.uuid};return h(`IntegrationsWatcher.communicateIntegration `+r,`debug`),O(r,`https://`+E(),e.iframe),!0},l=function(t,n,r){if(t!==void 0&&r!=null)for(var i=0,a=t;i<a.length;i++){var o=a[i];e.safelyCommunicateIntegration(o,n,r)}},u=function(e,t,n){O({data:{type:t,value:n},event:`identifyVisitor`,uuid:e.uuid},`https://`+E(),e.iframe)},f=function(e,t,n){e.ready()?u(e,t,n):e.on(`ready`,function(){u(e,t,n)})},p=function(){for(var t=0,r=ye;t<r.length;t++){var i=r[t];for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];if(!s.integrations[i])continue;var c=e.getCookie(i,s);if(!c||(c=g(i,c,s),!c))continue;s=o(s,i,c),l(s.players,i,c)}}},m=function(e,t){return e===`pardot`&&t&&t.integrations.pardot?`visitor_id`+t.integrations.pardot:e},g=function(e,t,n){if(e===`marketo`){if(!n.integrations.marketo||t.toLowerCase().indexOf(n.integrations.marketo.toLowerCase())===-1)return null;t=encodeURIComponent(t)}return t},_=function(e,n){if(!t){t=!0;var r=function(){if(!document.getElementById(`vidyard-eloqua-include`)){window._elqQ=window._elqQ||[],window._elqQ.push([`elqSetSiteId`,e]),n&&window._elqQ.push([`elqUseFirstPartyCookie`,n]),window._elqQ.push([`elqTrackPageView`]),window._elqQ.push([`elqGetCustomerGUID`]);var t=document.createElement(`script`);t.id=`vidyard-eloqua-include`,t.type=`text/javascript`,t.async=!0,t.src=`https://img.en25.com/i/elqCfg.min.js`;var r=document.getElementsByTagName(`script`)[0];r.parentNode.insertBefore(t,r)}};document.readyState===`complete`?r():s(`DOMContentLoaded`,`onload`,r)}};setInterval(function(){p()},1e3)}var xe=function(){window.onVidyardAPI&&typeof window.onVidyardAPI==`function`&&window.onVidyardAPI(window.VidyardV4)},Se=function(){document.dispatchEvent(l(`onVidyardAPI`,window.VidyardV4))},Ce=v(function(){xe(),Se()}),we=n(3),k=new(n.n(we)).a({emit:!!window.location.search.match(`vydebug=1`),logger:function(e){return h(e,`info`)}}),A=x();A&&(k.info(`vidyardEmbed V`+T+` loaded from `+A.src),k.info(`data-playbackurl=`+A.getAttribute(`data-playbackurl`))),k.info(`userAgent `+window.navigator.userAgent),k.info(`cookies `+navigator.cookieEnabled),window.performance&&window.performance.timing&&window.performance.timing.navigationStart&&k.info(`Script load time `+(Date.now()-window.performance.timing.navigationStart));var Te={logger:k,getPlaybackURL:E,setPlaybackURL:me,version:T};function Ee(e,t){var n=window.VidyardV4.playerReadyListeners;n[t]=n[t]||[],n[t].push(e);for(var r=0,i=window.VidyardV4.players;r<i.length;r++){var a=i[r];(t===void 0||a.uuid===t)&&a.on(`ready`,e)}}function De(e){var t=window.VidyardV4.playerReadyListeners,n=e.uuid,r=k.setLevel(e.uuid);t[n]=t[n]||[];var i=t[n].concat(t[void 0]);Object.keys(i).forEach(function(t){var n=i[t];e.on(`ready`,n),r(`attaching ready callbacks`)})}var Oe=function(){return`autoplay; fullscreen; picture-in-picture; display-capture; clipboard-write`},ke=function(e,t){return`<div class="vidyard-div-`+e.uuid+`" role="region" aria-label="Vidyard media player" style="position: absolute; padding-bottom: `+t.ratio+`%; height: 0; overflow: hidden; max-width: 100%; ">`+function(n){return e.type===`inline`?`<div class="vidyard-inner-container-`+e.uuid+`" style="position: absolute;height: 100%; width: 100%; `+(t.maxWidth?`max-width: `+t.maxWidth+`px; `:``)+(t.maxHeight?`max-height: `+t.maxHeight+`px; `:``)+`"> `+n+`</div> `:n}(`<iframe allow="`+Oe()+`"allowfullscreen allowtransparency="true" referrerpolicy="no-referrer-when-downgrade" class="vidyard-iframe-`+e.uuid+`" frameborder=0 height="100%" width="100%" scrolling=no src="https://`+E()+`/`+e.uuid+e.toQueryString()+`" title="Vidyard video player" style="opacity: 0; background-color: transparent; position: absolute; top: 0; left: 0;"></iframe>`)+`</div>`},Ae=function(e){var t=document.createElement(`script`);return t.type=`application/ld+json`,t.text=JSON.stringify(e),t},je=function(e){return new o(function(t,n){return M({error:n,success:t,url:``+D()+e+fe,uuid:`style_`+e})})},Me=function(e){return new o(function(t,n){return M({error:n,success:t,url:``+D()+e+ce,uuid:`integrations_`+e})})},Ne=function(e){return new o(function(t,n){return M({error:n,success:t,url:``+D()+e+de,uuid:`details_`+e})})},Pe=function(e,t){return new o(function(n,r){var i=encodeURIComponent(t);M({error:r,success:n,url:``+D()+e+`/contact/`+i+`/marketoContact.js`,uuid:`marketoContact_`+e})})},Fe=function(e){var t=e.error,n=e.url,r=e.requestUuid,i=document.createElement(`script`);return i.type=`application/javascript`,i.onerror=t,i.src=n+`?callback=window.VidyardV4.jsonp.`+r+`.done`,i.setAttribute(`data-playbackurl`,E()),document.body.appendChild(i),i},j={},M=function(e){var t=e.url,n=e.uuid,r=e.success,i=e.error,a=n.replace(/-/g,``),o=Fe({error:i,url:t,requestUuid:a}),s=v(function(e){r(e),o.parentNode.removeChild(o)});j[a]=j[a]||[],j[a].push(s),window.VidyardV4.jsonp[a]={done:function(e){j[a].forEach(function(t){return t(e)})}}},N={errors:{placeholder:`Cannot render the player, check the placeholder Image`}},Ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Le=function(e){if(!e)return o.reject(Error(N.errors.placeholder));var t=S(e),n=t.width,r=t.height,i=e.getAttribute(`data-uuid`);return e.src===``||!i||e.complete&&(n===0||r===0)?o.reject(Error(N.errors.placeholder)):e.complete?o.resolve(e):new o(function(t,n){e.onload=function(){return t(e)},e.onerror=function(){return n(e)}})},Re=function(e){e===void 0&&(e={});var t=e.uuid,n=e.container,r=e.type,i=r===void 0?`inline`:r;e.aspect;var a=Ie(e,[`uuid`,`container`,`type`,`aspect`]);if(t&&n){k.setLevel(`placeholder`)(`creating placeholder image`);var o=document.createElement(`img`),s=a.width?a.width+`px`:`100%`,c=`
10
+ display: block;
11
+ margin: 0 auto;
12
+ max-height: `+(a.height?a.height+`px`:`100%`)+`;
13
+ max-width: `+s+`;
14
+ opacity: 0;
15
+ `;return o.src=`https://`+E()+`/`+t+`.jpg`,o.className=`vidyard-player-embed`,o.setAttribute(`style`,c),o.setAttribute(`data-uuid`,t),o.setAttribute(`data-type`,i),Object.keys(a).forEach(function(e){return o.setAttribute(`data-`+e,a[e])}),n.appendChild(o)}},ze=function(e){var t=document.createElement(`img`);return t.setAttribute(`data-uuid`,e),t.src=`//`+E()+`/`+e+`.jpg`,Le(t)},Be=function(e){var t=e.dataParams,n=e.player,r=k.setLevel(t.uuid);r(`injecting inline embed`);var i=function(){return n.placeholder.src===`//`+E()+`/`+n.uuid+`.jpg`?o.resolve(!1):ze(n.uuid).then(m).catch(function(){return!1})},a={maxHeight:t.height?parseInt(t.height,10).toString():null,maxWidth:t.width?parseInt(t.width,10).toString():null,ratio:m(n.placeholder)};n.container.innerHTML=ke(t,a);var c=n.container.getElementsByTagName(`iframe`)[0];n.iframe=c;var l=new o(function(e){s(`load`,`onload`,e,c)}),u=new o(function(e){n.on(`ready`,e)});n.on(`sidePlaylistOpen`,function(){d()}),o.race([l,u]).then(function(){r(`player or iFrame is ready`),i().then(function(e){e&&(c.parentElement.parentElement.style.paddingBottom=e+`%`)});var e=n.container.getElementsByClassName(`vidyard-inner-container-`+n.uuid)[0];n.placeholder.parentElement.removeChild(n.placeholder),oe(n.placeholder,`inserted`,!0),e.appendChild(n.placeholder),c.parentElement.parentElement.style.position=`relative`,c.style.opacity=`1`}),l.then(function(){n.placeholder.style.display=`none`,c.parentElement.parentElement.style.backgroundColor=`transparent`}),n.on(`metadata`,function e(t){c.title=t[0].name,n.off(`metadata`,e)});function d(){var e=n.container.clientWidth>=ue*2;oe(n.container,`playlist-open`,e)}r(`getStyle sent`),je(n.uuid).then(function(e){r(`getStyle received: `+JSON.stringify(e)),e.pl===1&&t.playlist_always_open!==`0`||t.playlist_always_open===`1`?(n.iframe.parentElement.setAttribute(`data-pl`,`true`),s(`resize`,`onresize`,d),d()):n.iframe.parentElement.setAttribute(`data-pl`,`false`)}).catch(function(e){r(`getStyle failed, likely a network error`)})},Ve=function(e){e===void 0&&(e=document.body);for(var t=0,n=Array.from(e.children);t<n.length;t++){var r=n[t];r.hasAttribute(`aria-hidden`)&&r.setAttribute(`data-vy-keep-hidden`,r.getAttribute(`aria-hidden`)),r.setAttribute(`aria-hidden`,`true`)}},He=function(e){e===void 0&&(e=document.body);for(var t=0,n=Array.from(e.children);t<n.length;t++){var r=n[t];r.getAttribute(`data-vy-keep-hidden`)?r.setAttribute(`aria-hidden`,r.getAttribute(`data-vy-keep-hidden`)):r.removeAttribute(`aria-hidden`),r.removeAttribute(`data-vy-keep-hidden`)}},Ue={ios:function(){return/ipad|iphone|ipod/i.test(navigator.userAgent)}},We=n(1),P=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},Ge=function(e,t){return e.filter(function(e){return e===t})[0]},F=function(e){return Array.isArray(e)?e:[e]},Ke=`data-focus-lock`,qe=`data-focus-lock-disabled`,Je=`data-no-focus-lock`,Ye=`data-autofocus-inside`,Xe=function(){return document&&P(document.querySelectorAll(`[`+Je+`]`)).some(function(e){return e.contains(document.activeElement)})},Ze=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qe=function e(t){for(var n=t.length,r=0;r<n;r+=1)for(var i=function(n){if(r!==n&&t[r].contains(t[n]))return{v:e(t.filter(function(e){return e!==t[n]}))}},a=0;a<n;a+=1){var o=i(a);if((o===void 0?`undefined`:Ze(o))===`object`)return o.v}return t},$e=function e(t){return t.parentNode?e(t.parentNode):t},et=function(e){return F(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(Ke);return e.push.apply(e,n?Qe(P($e(t).querySelectorAll(`[`+Ke+`="`+n+`"]:not([`+qe+`="disabled"])`))):[t]),e},[])},tt=function(e){return e===document.activeElement},nt=function(e){return!!Ge(P(e.querySelectorAll(`iframe`)),tt)},rt=function(e){var t=document&&document.activeElement;return!t||t.dataset&&t.dataset.focusGuard?!1:et(e).reduce(function(e,n){return e||n.contains(t)||nt(n)},!1)},it=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},at=function(e,t,n){return P(e).map(function(e,t){return{node:e,index:t,tabIndex:n&&e.tabIndex===-1?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}}).filter(function(e){return!t||e.tabIndex>=0}).sort(it)},ot=[`button:enabled:not([readonly])`,`select:enabled:not([readonly])`,`textarea:enabled:not([readonly])`,`input:enabled:not([readonly])`,`a[href]`,`area[href]`,`iframe`,`object`,`embed`,`[tabindex]`,`[contenteditable]`,`[autofocus]`],st=ot.join(`,`),ct=st+`, [data-focus-guard]`,I=function(e,t){return e.reduce(function(e,n){return e.concat(P(n.querySelectorAll(t?ct:st)),n.parentNode?P(n.parentNode.querySelectorAll(ot.join(`,`))).filter(function(e){return e===n}):[])},[])},lt=function(e){return P(e.querySelectorAll(`[`+Ye+`]`)).map(function(e){return I([e])}).reduce(function(e,t){return e.concat(t)},[])},ut=function(e){return!e||!e.getPropertyValue?!1:e.getPropertyValue(`display`)===`none`||e.getPropertyValue(`visibility`)===`hidden`},dt=function e(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!ut(window.getComputedStyle(t,null))&&e(t.parentNode)},ft=function(e){return e.tagName!==`INPUT`&&e.tagName!==`BUTTON`||e.type!==`hidden`&&!e.disabled},pt=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return n.push(t),t.parentNode&&e(t.parentNode,n),n},L=function(e,t){for(var n=pt(e),r=pt(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},R=function(e){return P(e).filter(function(e){return dt(e)}).filter(function(e){return ft(e)})},mt=function(e,t){return at(R(I(e,t)),!0,t)},ht=function(e){return at(R(I(e)),!1)},gt=function(e){return R(lt(e))},z=function(e){return e.tagName===`INPUT`&&e.type===`radio`},_t=function(e,t){return t.filter(z).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},vt=function(e){return e[0]&&e.length>1&&z(e[0])&&e[0].name?_t(e[0],e):e[0]},yt=function(e,t){return e.length>1&&z(e[t])&&e[t].name?e.indexOf(_t(e[t],e)):t},bt=vt,xt=function(e){return function(t){return!!t.autofocus||t.dataset&&!!t.dataset.autofocus||e.indexOf(t)>=0}},St=function(e){return e&&e.dataset&&e.dataset.focusGuard},B=function(e){return!St(e)},Ct=function(e,t,n,r,i){var a=e.length,o=e[0],s=e[a-1],c=St(n);if(!(e.indexOf(n)>=0)){var l=t.indexOf(n),u=t.indexOf(r||l),d=e.indexOf(r),f=l-u,p=t.indexOf(o),m=t.indexOf(s),h=yt(e,0),g=yt(e,a-1);if(l===-1||d===-1)return e.indexOf(i&&i.length?bt(i):bt(e));if(!f&&d>=0)return d;if(l<=p&&c&&Math.abs(f)>1)return g;if(l>=p&&c&&Math.abs(f)>1)return h;if(f&&Math.abs(f)>1)return d;if(l<=p)return g;if(l>m)return h;if(f)return Math.abs(f)>1?d:(a+d+f)%a}},wt=function(e,t,n){var r=F(e),i=F(t),a=r[0],o=null;return i.filter(Boolean).forEach(function(e){o=L(o||e,e)||o,n.filter(Boolean).forEach(function(e){var t=L(a,e);t&&(o=!o||t.contains(o)?t:L(t,o))})}),o},Tt=function(e){return e.reduce(function(e,t){return e.concat(gt(t))},[])},Et=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(Boolean)},Dt=function(e,t){var n=document&&document.activeElement,r=et(e).filter(B),i=wt(n||e,e,r),a=mt(r).filter(function(e){var t=e.node;return B(t)});if(!(!a[0]&&(a=ht(r).filter(function(e){var t=e.node;return B(t)}),!a[0]))){var o=mt([i]).map(function(e){return e.node}),s=Et(o,a),c=s.map(function(e){return e.node}),l=Ct(c,o,n,t,c.filter(xt(Tt(r))));return l===void 0?l:s[l]}},Ot=function(e){e.focus(),e.contentWindow&&e.contentWindow.focus()},V=0,H=!1,kt=(function(e,t){var n=Dt(e,t);if(!H&&n){if(V>2){console.error(`FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting`),H=!0,setTimeout(function(){H=!1},1);return}V++,Ot(n.node),V--}}),U=0,At=null,jt=function(){return document&&document.activeElement===document.body},Mt=function(){return jt()||Xe()},Nt=function(){var e=!1;if(U){var t=U;Mt()||(t&&!rt(t)&&(e=kt(t,At)),At=document.activeElement)}return e},Pt=function(e){return e.filter(function(e){return e}).slice(-1)[0]},Ft=function(e){U=e,e&&Nt()},W=[],G=function(e){return Ft(Pt(W))?(e&&e.preventDefault(),!0):!1},It=function(){document.addEventListener(`focusin`,G)},Lt=function(){document.removeEventListener(`focusin`,G)},Rt={on:function(e){W.length===0&&It(),W.indexOf(e)<0&&(W.push(e),G())},off:function(e){W=W.filter(function(t){return t!==e}),G(),W.length===0&&Lt()}},zt=Rt||r;function Bt(e,t,n){var r=Gt(e),i=Ut(n),a=Kt(t),o=document.createElement(`div`);return o.id=`vidyard-focusable-element`,o.tabIndex=0,i.popbox.appendChild(r.backerElement),i.popbox.appendChild(r.containingDiv),i.popbox.appendChild(a),Ue.ios()&&Ve(),document.body.appendChild(i.overlayWrapper),document.body.appendChild(o),i.closeContainer.focus(),zt.on(i.overlayWrapper),We.trap(i.overlayWrapper),setTimeout(function(){i.overlayWrapper.style.opacity=`1`,i.overlayWrapper.style.filter=`alpha(opacity=100)`},0),{container:r,lightbox:i}}function Vt(e){var t=document.getElementById(`vidyard-content-fixed`),n=document.getElementById(`vidyard-focusable-element`),r=document.getElementById(`vidyard-overlay`),i=document.getElementById(`vidyard-overlay-wrapper`),a=document.getElementById(`vidyard-popbox`);t&&r&&i&&a&&(e&&Object.keys(e).forEach(function(t){var n=e[t];n()}),n&&n.parentNode.removeChild(n),zt.off(i),We.untrap(i),i.style.opacity=`0`,i.style.filter=`alpha(opacity=0)`,Ue.ios()&&He(),setTimeout(function(){i.parentNode.removeChild(i)},le*1e3))}function Ht(e){e.style.opacity=`1`}function Ut(e){var t=document.createElement(`div`),n=document.createElement(`div`),r=document.createElement(`div`),i=document.createElement(`div`),a=Wt().closeContainer;return t.id=`vidyard-overlay`,t.setAttribute(`aria-hidden`,`true`),t.style.display=`block`,n.id=`vidyard-content-fixed`,n.setAttribute(`aria-label`,`media player lightbox`),n.setAttribute(`role`,`dialog`),n.style.display=`block`,r.id=`vidyard-popbox`,i.id=`vidyard-overlay-wrapper`,i.style.display=`block`,n.appendChild(r),i.appendChild(t),i.appendChild(a),i.appendChild(n),e&&(t.style.zIndex=``+e,n.style.zIndex=``+(e+2),a.style.zIndex=``+(e+1)),{closeContainer:a,contentFixed:n,overlay:t,overlayWrapper:i,popbox:r}}function Wt(){var e=document.createElement(`div`),t=document.createElement(`div`);return e.className=`vidyard-close-container`,e.setAttribute(`aria-label`,`Close Player`),e.setAttribute(`role`,`button`),e.setAttribute(`tabindex`,`0`),t.className=`vidyard-close-x`,document.documentMode<9&&(t.className+=` simple-close`,t.innerHTML=`&times;`),e.appendChild(t),{closeButton:t,closeContainer:e}}function Gt(e){var t=document.createElement(`div`);t.className=`vidyard-lightbox-content-backer`;var n=document.createElement(`div`);n.innerHTML=e;var r=n.getElementsByTagName(`div`)[0];r.style.position=`absolute`,r.style.height=`100%`,r.style.width=`100%`,r.style.zIndex=`2`;var i=n.getElementsByTagName(`iframe`)[0],a=i.parentNode;return a.style.position=`static`,a.style.paddingBottom=`0`,i.style.opacity=`1`,setTimeout(function(){t.style.opacity=`1`,t.style.filter=`alpha(opacity=100)`},0),{backerElement:t,containerElement:n,containingDiv:r,iframe:i}}function Kt(e){var t=p(`vidyard-lightbox-image`,`img`,e)[0].cloneNode();return t.className=``,t.id=`vidyard-popbox-constraint`,t.alt=``,t.setAttribute(`aria-hidden`,`true`),t}var K,q={};function qt(e){var t=p(`vidyard-lightbox-centering`,`div`,e.container)[0];e.player.showLightbox=function(){k.setLevel(e.player.uuid)(`show lightbox`),Jt({container:e.container,iframe:e.iframe,overlayZindex:e.overlayZindex,player:e.player})},e.player.hideLightbox=function(){return J(e.player)},s(`click`,`onclick`,e.player.showLightbox,t),s(`keydown`,`onkeydown`,y(function(t){t.preventDefault(),e.player.showLightbox(t)}),t)}function Jt(e){if(e.iframe&&!document.getElementById(`vidyard-overlay`)){K=document.activeElement;var t=Bt(e.iframe,e.container,e.overlayZindex);e.player.iframe=t.container.iframe,e.player.on(`metadata`,function t(n){var r=n[0];e.player.iframe.title=r.name,e.player.off(`metadata`,t)});var n=e.player.uuid,r=t.container.iframe,i=Zt(r,n,e.player),a=Qt(r,n);q.iframeLoaded=s(`load`,`onload`,i,t.container.iframe),q.messageHandler=s(`message`,`onmessage`,ge(function(t){i(),a(),Xt(t,e.player)}),window),q.overlayClick=s(`click`,`onclick`,function(){return J(e.player)},t.lightbox.overlayWrapper),q.fixedClick=s(`click`,`onclick`,function(){return J(e.player)},t.lightbox.contentFixed),q.closeKeyPress=s(`keydown`,`onkeydown`,y(function(){return J(e.player)}),t.lightbox.closeContainer),q.responsivePlayerSize=s(`resize`,`onresize`,Yt,window)}}function Yt(){var e=document.getElementById(`vidyard-popbox-constraint`),t=parseFloat((window.innerHeight/window.innerWidth*100).toFixed(2))<parseFloat(m(e))?`landscape`:`portrait`;e.className!==t&&(e.className=t)}function J(e){Vt(),K&&K.focus(),Object.keys(q).forEach(function(e){var t=q[e],n=t.eventName,r=t.handler,i=t.element;c(n,r,i)}),e&&e.trigger(`lightboxClose`)}function Xt(e,t){e.event===`keyPressed`&&e.params===27&&J(t)}function Zt(e,t,n){return v(function(){Ht(e),Yt(),q.parentEsc=s(`keydown`,`onkeydown`,b(function(){return J(n)}),document)})}function Qt(e,t){return v(function(){O({uuid:t,event:`listenForKeyPress`,keyCode:`27`},`https://`+E(),e)})}var Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Y.apply(this,arguments)};function $t(e){if(!e||typeof e!=`string`||e.length<20)throw Error(`Invalid UUID given`);var t=k.setLevel(e),n=`https://`+E()+`/player/`+e+`.json?pomo=0&pomo_reason=fetchMetaData`;return t(`fetching metadata`),te({endpoint:n}).then(JSON.parse).then(function(n){return t(`metadata successfully fetched`),Y({uuid:e},n.payload.vyContext.metadata)}).catch(function(e){throw t(`failed to fetch metadata, `+e),Error(`Error parsing player metadata, make sure the UUID is correct`)})}function en(e,t,n){var r=nn(`https://`+E()+`/`+t.uuid+`.jpg`,t,n);e.insertAdjacentHTML(`afterbegin`,r),$t(t.uuid).then(function(t){var n=p(`play-button`,`button`,e);n.length===1&&n[0].setAttribute(`aria-label`,`Play video `+t.name+`. Opens in a modal`)},function(){})}function tn(e,t){if(e.pb===1){var n=p(`play-button`,`button`,t);n.length===1&&(n[0].style.display=`block`,n[0].style.backgroundColor=`#`+e.pbc)}}function nn(e,t,n){var r=t.alt||``,i=n.maxWidth?`style="max-width: `+n.maxWidth+`px;"`:``;return`<div class="vidyard-lightbox-thumbnail vidyard-lightbox-`+t.uuid+`" `+i+`>
16
+ <div class="vidyard-lightbox-centering" style="padding-bottom: `+n.ratio+`%;">
17
+ <img class="vidyard-lightbox-image" src="`+e+`" alt="`+r+`" />
18
+ <div type="button" role="button" class="play-button" title="Play video" data-version="1" tabindex="0">
19
+ <div class="play-button-size"></div>
20
+ <div class="arrow-size">
21
+ <div class="arrow-size-ratio"></div>
22
+ <div class="arrow"></div>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </div>`}var rn=function(e){var t=e.dataParams,n=e.player,r=k.setLevel(t.uuid);r(`injecting lighbox embed`),n.placeholder.style.display=`none`;var i=ke(t,{ratio:m(n.placeholder)}),a={maxHeight:t.height?parseInt(t.height,10):null,maxWidth:t.width?parseInt(t.width,10):null,ratio:m(n.placeholder)};en(n.container,t,a),qt({container:n.container,iframe:i,overlayZindex:t.overlayZindex,player:n}),r(`getStyle sent`),je(n.uuid).then(function(e){r(`getStyle received: `+JSON.stringify(e)),tn(e,n.container)}).catch(function(e){r(`getStyle failed, likely a network error`)})},an=/(vidyard|vystaging|hubspot)\.com$/,on=function(e,t,n){if(n===void 0&&(n=!1),n||t&&t.hasBacklink&&!an.test(document.location.host)){var r=document.createElement(`a`),i=document.createElement(`span`),a=document.createElement(`img`);a.src=`https://cdn.vidyard.com/client-logos/vidyard.png`,a.id=`backlink-icon`,a.alt=`Vidyard Logo`,i.id=`backlink-text`,i.textContent=`Powered by Vidyard`,r.id=`backlink`,r.appendChild(a),r.appendChild(i),r.href=t.backlinkURL,r.rel=`nofollow`,r.target=`_blank`,r.setAttribute(`aria-label`,`Link to Vidyard`),r.dataset.testid=`backlink`,s(`click`,`onclick`,function(){O({data:{event:`Acquisition - Clicked the Backlink`},event:`sendMetricsEvent`,uuid:e.uuid},`https://`+E(),e.iframe)},r),e.container.appendChild(r)}};function sn(e){var t=window.VidyardV4.integrations,n=k.setLevel(e.uuid),r=t.getCookie(`marketo`);if(r){var i=function(){e.off(`play`,i),n(`getMarketoLead sent`),Pe(e.uuid,r).then(ee).then(function(r){n(`getMarketoLead received: `+r),t.addKnownVisitor(`marketo`,r,e.org)}).catch(function(){k.warn(`Invalid Marketo cookie`)})};e.on(`play`,i)}n(`getIntegrations`),Me(e.uuid).then(function(r){n(`getIntegrations received: `+JSON.stringify(r)),e.on(`ready`,function(){e._tmpOrg=r,t.updatePlayer(e)})}).catch(function(e){n(`getIntegrations failed, likely a network error`)})}function cn(e){var t=k.setLevel(e);return t(`getSEO sent`),Ne(e).then(function(e){if(t(`getSEO: `+JSON.stringify(e)),!u(e)){var n=Ae(e);document.getElementsByTagName(`head`)[0].appendChild(n)}return e}).catch(function(e){t(`getSEO failed, likely a network error`)})}var ln=function(e,t){var n=document.createElement(`div`);n.className=`vidyard-player-container`,n.setAttribute(`uuid`,e);var r=n.style;return r.margin=`auto`,r.width=`100%`,r.height=`auto`,r.overflow=`hidden`,r.display=`block`,t.type===`inline`&&(r.maxWidth=t.width?t.width+`px`:``,r.maxHeight=t.height?t.height+`px`:``),n},un=function(){function e(e){var t=this;this.disable_popouts=1;var n=ae(re(e));Object.keys(n).forEach(function(e){t[e]=n[e]}),this.alt=e.alt||null,this.type!==`inline`&&this.type!==`lightbox`&&(h(`Invalid Vidyard player embed type, defaulting to inline.`,`warn`),this.type=`inline`),this.v=T,this.disable_popouts=1,this.custom_id=this.custom_id||w(`vycustom_id`),this.vyemail=this.vyemail||w(`vyemail`),this.vysfid=this.vysfid||w(`vysfid`),this.vyetoken=this.vyetoken||w(`vyetoken`)}return e.prototype.toQueryString=function(){var e=`?`,t;for(t in this)this.hasOwnProperty(t)&&t!==`height`&&t!==`uuid`&&t!==`width`&&t!==`alt`&&this[t]!==void 0&&(e+=e===`?`?``:`&`,e+=encodeURIComponent(t)+`=`+encodeURIComponent(this[t]));return e===`?`?``:e},e}();function dn(e){e===void 0&&(e=p(`vidyard-player-embed`,`img`));for(var t=0,n=e;t<n.length;t++){var r=n[t],i=new un(r),a=i.uuid,o=`https://`+E()+`/`+a+i.toQueryString();a&&d(o,window.VidyardV4.preloadLinks)===-1&&(fn(a,o),window.VidyardV4.preloadLinks.push(o))}}function fn(e,t){var n=document.createElement(`link`);return n.rel=`prefetch`,n.crossOrigin=`anonymous`,n.href=t,document.body.appendChild(n),t}var X=function(){return X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},X.apply(this,arguments)},pn=function(){function e(e,t,n){var r=this;this._ready=!1,this._previousTime=null,this._onMessageEventHandler=function(e){if(e.origin===`https://`+E()){var t;try{t=JSON.parse(e.data)}catch{return}if(!(r.iframe&&e.source&&r.iframe.contentWindow!==e.source)&&!(r.uuid&&t.uuid!==r.uuid)&&typeof t.event==`string`){r._updateStatus(t),t.event===`ready`&&(r._ready=!0,window.VidyardV4.integrations.updatePlayer(r));var n=r._callbackStore[t.event];if(n)for(var i=0,a=n;i<a.length;i++)a[i].call(r,t.params,r)}}},this._callbackStore=n||{beforeSeek:[],chapterComplete:[],createCta:[],fullScreenChange:[],lightboxClose:[],metadata:[],pause:[],play:[],playerComplete:[],ready:[],seek:[],sidePlaylistOpen:[],status:[],timeupdate:[],videoComplete:[],volumeChange:[]},this.element=e,this.uuid=t,this.status=null,this.metadata=null,this.progressEventsUnsubscribe=[],s(`message`,`onmessage`,this._onMessageEventHandler)}return e.prototype.on=function(e,t){var n=this;e===`ready`&&this.ready()?setTimeout(function(){return t.call(n,void 0,n)},0):this._callbackStore[e]===void 0?(this._callbackStore[e]=[t],h(`The event name: `+e+` is not supported, your handler was setup regardless`,`warn`)):this._callbackStore[e].push(t)},e.prototype.trigger=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var i=function(r){e===`ready`&&a.ready()?setTimeout(function(){return r.call(t,n,t)},0):r.call(a,n,a)},a=this,o=0,s=this._callbackStore[e];o<s.length;o++){var c=s[o];i(c)}},e.prototype.off=function(e,t){if(e===void 0)for(var n in this._callbackStore)this._callbackStore.hasOwnProperty(n)&&(this._callbackStore[n]=[]);else if(this._callbackStore[e]){if(t){var r=d(t,this._callbackStore[e]);r>-1&&this._callbackStore[e].splice(r,1)}else this._callbackStore[e]=[]}},e.prototype.ready=function(){return this._ready},e.prototype.play=function(e){this._message({event:`play`,inputType:e instanceof KeyboardEvent?`keyboard`:void 0})},e.prototype.pause=function(){this._message({event:`pause`})},e.prototype.resume=function(){this._message({event:`resume`})},e.prototype.seek=function(e){this._message({event:`seek`,position:e})},e.prototype.setVolume=function(e){this._message({event:`setVolume`,newVolume:e})},e.prototype.setPlaybackSpeed=function(e){this._message({event:`setPlaybackSpeed`,speed:e})},e.prototype.playChapter=function(e){h(`playChapter() is deprecated. We recommend to use playVideoAtIndex() instead.`),this.playVideoAtIndex(e)},e.prototype.playVideoAtIndex=function(e){this._message({chapter_index:e,event:`playChapter`})},e.prototype.setAudioTrack=function(e){this._message({audioTrackId:e,event:`setAudioTrack`})},e.prototype.enableCaption=function(e,t){this._message({event:`enableCaption`,label:e,language:t})},e.prototype.disableCaption=function(e,t){this._message({event:`disableCaption`,label:e,language:t})},e.prototype.consentToGDPR=function(e){this._message({consent:e,event:`consentToGDPR`})},e.prototype.createCta=function(e){this._message({attributes:f({display_once:!1,duration:10,fullscreen:!1,html:``,opacity:1,start:0,width:300},e),event:`createCta`})},e.prototype.updateCta=function(e,t){this._message({attributes:t,event:`updateCta`,id:e})},e.prototype.createVideoSection=function(e,t){this._message({event:`createVideoSection`,title:e,milliseconds:t})},e.prototype.updateVideoSection=function(e,t,n){this._message({event:`updateVideoSection`,index:e,title:t,milliseconds:n})},e.prototype.deleteVideoSection=function(e){this._message({event:`deleteVideoSection`,index:e})},e.prototype.setCutRanges=function(e){this._message({event:`setCutRanges`,cutRanges:e})},e.prototype.addEvent=function(e){var t=e.start,n=t===void 0?0:t,r=e.duration,i=r===void 0?1:r,a=e.videoIndex,o=e.chapterIndex,s=e.eventId;if(!s)h(`Missing arguments. Need eventId`);else{o>=0&&h(`Parameter chapterIndex is deprecated. We recommend to use videoIndex instead.`);var c=0;c=o||c,c=a||c,this._message({chapterIndex:c,duration:i,event:`addEvent`,id:s,start:n})}},e.prototype.getCurrentChapter=function(){return h(`getCurrentChapter() is deprecated. We recommend to use getCurrentVideoIndex() instead.`),this.getCurrentVideoIndex()},e.prototype.getCurrentVideoIndex=function(){return this.status===null?null:this.status.chapterIndex},e.prototype.currentTime=function(){return this.status===null?null:this.status.currentTime},e.prototype.scrubbing=function(){return this.status===null?null:this.status.scrubbing},e.prototype.toggleFullscreen=function(){var e=this,t=ne();if(t){var n=this.iframe[t.requestFullscreen]();n?n.then(function(){e._message({event:`toggleFullscreen`})}):this._message({event:`toggleFullscreen`}),s(t.fullscreenchange,`MSFullscreenChange`,function(){document[t.fullscreenElement]||e._message({event:`exitFullscreen`})}),s(`message`,`onmessage`,ge(function(e){e.event===`fullScreenChange`&&e.params===!1&&document[t.fullscreenElement]&&document[t.exitFullscreen]()}))}else this._message({event:`toggleFullscreen`})},e.prototype.resetPlayer=function(){this._message({event:`resetPlayer`})},e.prototype._message=function(e){this.ready()===!0?O(X(X({},e),{uuid:this.uuid}),`https://`+E(),this.iframe):h(`Player is not ready yet! No messages can be recieved.`,`error`)},e.prototype._updateStatus=function(e){if(typeof e.status==`object`&&(this.status=e.status),typeof e.metadata==`object`&&(this.metadata=e.metadata,this.trigger(`metadata`,e.metadata)),this.status){if(this.status.currentTime!==this._previousTime&&this._callbackStore.timeupdate)for(var t=0,n=this._callbackStore.timeupdate;t<n.length;t++)n[t].call(this,this.status.currentTime,this);this._previousTime=this.status.currentTime}},e}(),mn=function(e){e===void 0&&(e=document);var t=p(`vidyard-player-embed`,`img`,e);dn(t),C(t).forEach(hn),Ce()},hn=function(e){var t=window.VidyardV4;t.integrations,t.api;var n=t.players;t.playerReadyListeners;var r=new un(e),i=r.uuid,a=k.setLevel(i);if(a(`rendering`),i===void 0)h(`Embed without a UUID detected, it is impossible to insert a player without a UUID. Add "data-uuid=some_uuid" to the offending element.`+e);else{if(r.rendered===`true`)return a(`Already rendered`),g(n,function(t){return t.placeholder===e});var o=ln(i,r),s=new pn(o,i);return e.setAttribute(`data-rendered`,`true`),e.parentNode.insertBefore(o,e),s.placeholder=e,s.container=o,n.push(s),De(s),r.type===`inline`?Be({dataParams:r,player:s}):r.type===`lightbox`&&rn({dataParams:r,player:s}),sn(s),cn(s.uuid).then(function(e){r.type===`inline`&&on(s,e,r.backlink&&r.backlink===1)}),window.Vidyard._players[s.uuid]=s,s}};function gn(e){e.progressEventsUnsubscribe.forEach(function(e){return e()}),e.progressEventsUnsubscribe=[]}function _n(e){var t=window.VidyardV4.players;_(t,e)?(gn(e),e.off(),e.container.parentNode.removeChild(e.container),e.placeholder.parentNode.removeChild(e.placeholder),t.splice(d(e,t))):h(`Cannot destroy an unknown player`,`warn`)}function vn(e){if(e!==void 0)for(var t=window.VidyardV4.players,n=function(t){t.on(`ready`,function(){t.consentToGDPR(e)})},r=0,i=t;r<i.length;r++){var a=i[r];n(a)}}function yn(e){var t=0,n=window.VidyardV4.api.GDPR,r=window.VidyardV4.players;if(r.length===0)return e(!1);if(n._readyConsent!==void 0)return e(n._readyConsent);for(var i=0,a=r;i<a.length;i++)a[i].on(`ready`,function(){if(t!==r.length&&(t+=1),t===r.length)return n._readyConsent=r.reduce(function(e,t){return t.status.consent&&e},!0),e(n._readyConsent)})}function bn(e){return window.VidyardV4.players.filter(function(t){return t.uuid===e})}var xn=bn,Sn=function(e){e.sort(function(e,t){return e<t?-1:+(e>t)});for(var t=0;t<e.length;)e[t]===e[t+1]?e.splice(t+1,1):t+=1;return e},Cn=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},Z={},Q={};function wn(e,t,n){typeof Q[e.uuid]!=`object`&&(Q[e.uuid]={}),Z[e.uuid]={callback:t,thresholds:Cn(n).sort(function(e,t){return t-e})}}function Tn(e,t){Dn(e,t,Z[e.uuid].callback,Cn(Z[e.uuid].thresholds))}function En(e,t){if(typeof Z[e.uuid]==`object`)return typeof Q[e.uuid][t]!=`object`&&Tn(e,t),Q[e.uuid][t]}function Dn(e,t,n,r){Q[e.uuid][t]={callback:n,lastTimeUpdate:e.currentTime(),partOfVideoWatched:{},player:e,thresholds:r,timeWatched:0}}function On(e){Z[e.uuid]=void 0,Q[e.uuid]=void 0}function kn(e,t){var n=e.getCurrentVideoIndex(),r=En(e,n);if(r!==void 0&&typeof r.player.metadata==`object`&&r.thresholds.length!==0){var i=t-r.lastTimeUpdate;if(r.lastTimeUpdate=t,!(i<=0||i>1)){if(t>=1){var a=Math.floor(Number(t.toFixed(1)));r.partOfVideoWatched[a]=1}r.timeWatched=Object.keys(r.partOfVideoWatched).length;for(var o=r.player.metadata.chapters_attributes[n].video_attributes.length_in_milliseconds,s=Math.floor(o/1e3),c=r.timeWatched/s*100;c>=r.thresholds[r.thresholds.length-1];)r.callback({chapter:n,event:r.thresholds.pop(),player:e,videoIndex:n})}}}function An(e,t,n){wn(e,t,n);var r=function(t){return kn(e,t)};return e.on(`timeupdate`,r),{player:e,removeEventListeners:function(){e.off(`timeupdate`,r),On(e)}}}function jn(e,t,n){var r;t===void 0&&(t=[1,25,50,75,90]);var i=[],a=n?(r={},r[n.uuid]=n,r):Mn(),o=Sn(t),s=function(t){if(a.hasOwnProperty(t)&&t.length>0&&a[t]!==``){var n=An(a[t],e,o);i.push(n)}else h(function(){return console.error(`Could not attach Progress Events to player `+t+`, make sure to load the Vidyard Player API`)})};for(var c in a)s(c);return i.length===0&&h(function(){return console.warn(`No Vidyard Players found. (include this script below player embed codes)`)}),i}function Mn(){try{return window.Vidyard.players()}catch{return h(function(){return console.error(`The Vidyard Player API must be loaded before this script can execute`)}),{}}}function Nn(){var e=[...arguments],t=jn.apply(void 0,e);Object.keys(t).forEach(function(e){var n=t[e],r=n.player,i=n.removeEventListeners;r.progressEventsUnsubscribe&&r.progressEventsUnsubscribe.push(i)})}var Pn=function(e){k.setLevel(`placeholder`)(`rendering player from placeholder image`);var t=hn(e);return new o(function(e){t.showLightbox?e(t):t.on(`ready`,function(){return e(t)})})};function Fn(e){return Le(e instanceof HTMLImageElement?e:Re(e)).then(Pn).catch(function(e){return h(N.errors.placeholder,`warn`)})}var $={_debug:Te,api:{GDPR:{consent:vn,hasConsentOnReady:yn},addReadyListener:Ee,destroyPlayer:_n,getPlayerMetadata:$t,getPlayersByUUID:xn,progressEvents:Nn,renderDOMPlayers:mn,renderPlayer:Fn},integrations:new be,jsonp:{},playerReadyListeners:{undefined:[]},players:[],preloadLinks:[]},In={_players:{},players:function(){return window.VidyardV4.players.reduce(function(e,t){return e[t.uuid]=t,e},{})}};n(12);var Ln=n(2);function Rn(e){var t=e.error,n=e.location,r=e.message,i=e.navigator,a=e.timeStamp,o=e.type,s=e.vyGlobal;return{data:{body:{trace:{exception:{class:t.name,message:r},frames:Ln.parse(t).map(function(e){return{code:e.source,colno:e.columnNumber,filename:e.fileName,lineno:e.lineNumber,method:e.functionName}})}},client:{cpu:i.platform,javascript:{browser:i.userAgent,guess_uncaught_frames:!0,source_map_enabled:!0}},code_version:T,custom:{jsonpRequests:Object.keys(s.jsonp),playbackUrlOverride:window.VIDYARD_PLAYBACK_URL,players:s.players.map(function(e){return{iframe:e.iframe?{src:e.iframe.src}:{},metadata:e.metadata,org:e.org?{id:e.org.id,foundIntegrations:e.org.foundIntegrations}:{},uuid:e.uuid}}),preloadLinks:s.preloadLinks},environment:E(),fingerprint:t.name,language:`javascript`,level:o,platform:`browser`,request:{query_string:n.search,url:n.href},timestamp:a}}}var zn=function(e){return e===void 0&&(e=``),e.match(se)},Bn=function(e){var t=e.error,n=e.filename,r=e.message,i=e.timeStamp,a=e.type;if(zn(n)){var o=window.location,s=window.navigator,c=window.VidyardV4,l=Rn({error:t,location:o,message:r,navigator:s,timeStamp:i,type:a,vyGlobal:c});te({endpoint:he(),method:`POST`,payload:l}).then(function(e){return h(`Error logged `+e)},function(e){return h(`Error log failed `+e)})}};function Vn(){s(`error`,`onerror`,Bn,window),s(`unhandledrejection`,``,function(e){var t=e.reason,n=e.timeStamp,r=e.type;e.reason instanceof Error&&zn(t.stack)&&(e.preventDefault(),Bn({error:t,filename:t.stack,message:t.message,timeStamp:n,type:r}))})}var Hn=function(e){if(e.origin===`https://`+E()&&e.source&&typeof e.data==`string`&&e.data!==``){var t;try{t=JSON.parse(e.data)}catch{return}t&&t.event===`requestParentOrigin`&&typeof t.uuid==`string`&&t.uuid.length!==0&&e.source.postMessage(JSON.stringify({event:`captureParentOrigin`,uuid:t.uuid}),e.origin)}};n.d(t,`_debug`,function(){return Un}),n.d(t,`api`,function(){return Wn}),n.d(t,`players`,function(){return Gn}),Vn(),function(){window.__vidyardParentOriginListening||(window.__vidyardParentOriginListening=!0,s(`message`,`onmessage`,Hn,window))}(),window.VidyardV4=window.VidyardV4||$,window.Vidyard=window.Vidyard||In,Ce();var Un=$._debug,Wn=$.api,Gn=$.players;t.default=$}),(function(e,t,n){var r,i,a;(function(n,o){"use strict";i=[],r=o,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(this,function(){"use strict";function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`]);function s(e){if(e instanceof Object)for(var n=0;n<o.length;n++)e.hasOwnProperty(o[n])&&e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var t=this.getFunctionName()||`{anonymous}`,n=`(`+(this.getArgs()||[]).join(`,`)+`)`,r=this.getFileName()?`@`+this.getFileName():``,i=e(this.getLineNumber())?`:`+this.getLineNumber():``,a=e(this.getColumnNumber())?`:`+this.getColumnNumber():``;return t+n+r+i+a}};for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=(function(e){return function(t){this[e]=!!t}})(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=(function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}})(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=(function(e){return function(t){this[e]=String(t)}})(a[u]);return s})}),(function(e,t){e.exports=function(e){var t=typeof window<`u`&&window.location;if(!t)throw Error(`fixUrls requires window.location`);if(!e||typeof e!=`string`)return e;var n=t.protocol+`//`+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,`/`);return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i))return e;var a=i.indexOf(`//`)===0?i:i.indexOf(`/`)===0?n+i:r+i.replace(/^\.\//,``);return`url(`+JSON.stringify(a)+`)`})}}),(function(e,t,n){var r={},i=function(e){var t;return function(){return t===void 0&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),a=function(e){return document.querySelector(e)},o=(function(e){var t={};return function(e){if(typeof e==`function`)return e();if(t[e]===void 0){var n=a.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch{n=null}t[e]=n}return t[e]}})(),s=null,c=0,l=[],u=n(8);e.exports=function(e,t){if(typeof DEBUG<`u`&&DEBUG&&typeof document!=`object`)throw Error(`The style-loader cannot be used in a non-browser environment`);t||={},t.attrs=typeof t.attrs==`object`?t.attrs:{},!t.singleton&&typeof t.singleton!=`boolean`&&(t.singleton=i()),t.insertInto||(t.insertInto=`head`),t.insertAt||(t.insertAt=`bottom`);var n=f(e,t);return d(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var o=r[n[a].id];o.refs--,i.push(o)}e&&d(f(e,t),t);for(var a=0;a<i.length;a++){var o=i[a];if(o.refs===0){for(var s=0;s<o.parts.length;s++)o.parts[s]();delete r[o.id]}}}};function d(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=r[i.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](i.parts[o]);for(;o<i.parts.length;o++)a.parts.push(v(i.parts[o],t))}else{for(var s=[],o=0;o<i.parts.length;o++)s.push(v(i.parts[o],t));r[i.id]={id:i.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],r={},i=0;i<e.length;i++){var a=e[i],o=t.base?a[0]+t.base:a[0],s={css:a[1],media:a[2],sourceMap:a[3]};r[o]?r[o].parts.push(s):n.push(r[o]={id:o,parts:[s]})}return n}function p(e,t){var n=o(e.insertInto);if(!n)throw Error(`Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.`);var r=l[l.length-1];if(e.insertAt===`top`)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else if(e.insertAt===`bottom`)n.appendChild(t);else if(typeof e.insertAt==`object`&&e.insertAt.before){var i=o(e.insertInto+` `+e.insertAt.before);n.insertBefore(t,i)}else throw Error(`[Style Loader]
27
+
28
+ Invalid value for parameter 'insertAt' ('options.insertAt') found.
29
+ Must be 'top', 'bottom', or Object.
30
+ (https://github.com/webpack-contrib/style-loader#insertat)
31
+ `)}function m(e){if(e.parentNode===null)return!1;e.parentNode.removeChild(e);var t=l.indexOf(e);t>=0&&l.splice(t,1)}function h(e){var t=document.createElement(`style`);return e.attrs.type===void 0&&(e.attrs.type=`text/css`),_(t,e.attrs),p(e,t),t}function g(e){var t=document.createElement(`link`);return e.attrs.type===void 0&&(e.attrs.type=`text/css`),e.attrs.rel=`stylesheet`,_(t,e.attrs),p(e,t),t}function _(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function v(e,t){var n,r,i,a;if(t.transform&&e.css){if(a=t.transform(e.css),a)e.css=a;else return function(){}}if(t.singleton){var o=c++;n=s||=h(t),r=b.bind(null,n,o,!1),i=b.bind(null,n,o,!0)}else e.sourceMap&&typeof URL==`function`&&typeof URL.createObjectURL==`function`&&typeof URL.revokeObjectURL==`function`&&typeof Blob==`function`&&typeof btoa==`function`?(n=g(t),r=S.bind(null,n,t),i=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),r=x.bind(null,n),i=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}var y=(function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join(`
32
+ `)}})();function b(e,t,n,r){var i=n?``:r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute(`media`,r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function S(e,t,n){var r=n.css,i=n.sourceMap,a=t.convertToAbsoluteUrls===void 0&&i;(t.convertToAbsoluteUrls||a)&&(r=u(r)),i&&(r+=`
33
+ /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+` */`);var o=new Blob([r],{type:`text/css`}),s=e.href;e.href=URL.createObjectURL(o),s&&URL.revokeObjectURL(s)}}),(function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?`@media `+t[2]+`{`+r+`}`:r}).join(``)},t.i=function(e,n){typeof e==`string`&&(e=[[null,e,``]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];typeof a==`number`&&(r[a]=!0)}for(i=0;i<e.length;i++){var o=e[i];typeof o[0]==`number`&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]=`(`+o[2]+`) and (`+n+`)`),t.push(o))}},t};function n(e,t){var n=e[1]||``,i=e[3];if(!i)return n;if(t&&typeof btoa==`function`){var a=r(i),o=i.sources.map(function(e){return`/*# sourceURL=`+i.sourceRoot+e+` */`});return[n].concat(o,[a]).join(`
34
+ `)}return[n].join(`
35
+ `)}function r(e){return`/*# `+(`sourceMappingURL=data:application/json;charset=utf-8;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(e)))))+` */`}}),(function(e,t,n){t=e.exports=n(10)(!1),t.push([e.i,`.vidyard-player-container .play-button{position:absolute;width:16%;height:auto;border-radius:50%;border:none;cursor:pointer;opacity:.65;filter:alpha(opacity = 65);transition:opacity .2s linear;overflow:hidden;font-size:0;padding:0;min-width:20px;top:50%;left:50%;transform:translate(-50%,-50%);-webkit-appearance:initial!important;-moz-appearance:initial!important;appearance:initial!important}.vidyard-player-container .play-button .play-button-size{padding-top:100%;width:100%}.vidyard-player-container .play-button .arrow-size{position:absolute;top:50%;left:50%;width:35%;height:auto;margin:-25% 0 0 -12%;overflow:hidden}.vidyard-player-container .play-button .arrow-size-ratio{padding-top:150%;width:100%}.vidyard-player-container .play-button .arrow{position:absolute;top:50%;left:auto;right:0;bottom:auto;width:0;height:0;margin:-200px 0 -200px -300px;border:200px solid transparent;border-left:300px solid #fff;border-right:none}.vidyard-lightbox-thumbnail:hover .play-button{opacity:1;filter:alpha(opacity = 100);zoom:1}.vidyard-player-container{position:relative;height:100%;text-align:center}.vidyard-player-container img{height:100%}.vidyard-player-container .play-button{display:none}.vidyard-close-container{position:fixed;right:20px;top:20px;height:34px;width:34px;cursor:pointer;z-index:1000}.vidyard-close-container:focus{outline:1px dotted grey}.vidyard-close-x{position:absolute;height:100%;width:100%;color:#fff;font-size:2em;text-align:center;line-height:34px}.vidyard-close-x:hover{color:#ddd}.vidyard-close-x:hover:after,.vidyard-close-x:hover:before{background:#ddd}.vidyard-close-x:after,.vidyard-close-x:before{content:"";position:absolute;background:#fff;display:block;left:50%;top:50%;height:65%;width:2px;transition:all .2s;-ms-high-contrast-adjust:none}.vidyard-close-x:before{transform:translate(-50%,-50%) rotate(45deg);-ms-transform:translate(-50%,-50%) rotate(45deg)}.vidyard-close-x:after{transform:translate(-50%,-50%) rotate(-45deg);-ms-transform:translate(-50%,-50%) rotate(-45deg)}.vidyard-close-x.simple-close:after,.vidyard-close-x.simple-close:before{display:none}.vidyard-lightbox-thumbnail{width:100%;height:100%;margin:auto}.vidyard-lightbox-image{height:100%;left:0;position:absolute;top:0;width:100%}.vidyard-lightbox-centering{cursor:pointer;height:0;max-width:100%;overflow:hidden;padding-bottom:56.25%;position:relative}.vidyard-lightbox-content-backer{-webkit-transform:opacity 1s,filter 1s;-ms-transform:opacity 1s,filter 1s;transition:opacity 1s,filter 1s;background-color:#000;height:100%;width:100%;position:absolute}#vidyard-overlay-wrapper,.vidyard-lightbox-content-backer{filter:alpha(opacity = 0);opacity:0;top:0;right:0;bottom:0;left:0}#vidyard-overlay-wrapper{position:relative;box-sizing:border-box;display:none;transition:opacity .5s,filter .5s}#vidyard-overlay{top:0;right:0;bottom:0;left:0;opacity:.9;filter:alpha(opacity = 90);width:100%;height:100%;background-color:#000;z-index:800}#vidyard-content-fixed,#vidyard-overlay{position:fixed;box-sizing:border-box;display:none}#vidyard-content-fixed{opacity:1;z-index:900;text-align:center;top:5%;right:5%;bottom:5%;left:5%;width:90%}#vidyard-popbox{display:inline-block;position:absolute;left:50%;top:50%;-webit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#vidyard-popbox-constraint{opacity:0;filter:alpha(opacity = 0);display:block;visibility:hidden}#vidyard-popbox-constraint.landscape{height:90vh}#vidyard-popbox-constraint.portrait{width:90vw}.vidyard-player-container div[class^=vidyard-iframe-]{z-index:1}.vidyard-player-container div[class^=vidyard-div-]{background-repeat:no-repeat;background-position:0 50%;background-size:100%}img.vidyard-player-embed{width:100%}img.vidyard-player-embed.inserted{position:absolute;top:0;left:0;z-index:0;max-width:100%!important}.vidyard-player-container.playlist-open{padding-right:319px;width:auto!important}.vidyard-player-container.playlist-open div[class^=vidyard-div-]{width:calc(100% + 319px);max-width:calc(100% + 319px)!important;background-size:calc(100% - 319px);background-color:#f5f9ff}.vidyard-player-container.playlist-open div[class^=vidyard-div-] img.vidyard-player-embed{width:calc(100% - 319px)!important}#backlink-icon{height:15px;width:15px;margin-right:6px;transition:.3s}#backlink{align-items:center;border-radius:4px;border:3px solid #ebeeff;display:inline-block;float:left;line-height:18px;margin:8px 0 0;outline:none;padding:1px 8px 1px 5px;position:relative;*zoom:1;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-style:normal;font-weight:400;font-size:12px;text-decoration:none}#backlink:after,#backlink:before{content:" ";display:table}#backlink:after{clear:both}#backlink:link,#backlink:visited{background:#ebeeff;border-color:#ebeeff;color:#414dd4}#backlink:hover{background:#bfc2ff;color:#1b1a82;cursor:pointer}#backlink:focus,#backlink:hover{border-color:#bfc2ff}#backlink:active{background:#8f97ff;border-color:#8f97ff;color:#0c084d}#backlink-icon{float:left;height:18px;margin-right:5px;position:relative;width:18px}#backlink-text{float:left}`,``])}),(function(e,t,n){var r=n(11);typeof r==`string`&&(r=[[e.i,r,``]]);var i,a={hmr:!0};a.transform=i,a.insertInto=void 0,n(9)(r,a),r.locals&&(e.exports=r.locals)}),,(function(e,t,n){"use strict";var r=function(e){return e.nodeType===1&&e.tagName.toLowerCase()!==`body`&&e.tagName.toLowerCase()!==`html`},i=function(e){return e.nodeType===1&&e.tagName.toLowerCase()!==`script`},a=function(e,t){return e.concat(t)};function o(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.previousSibling;return n?(t.push(n),o(n,t)):t}function s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.nextSibling;return n?(t.push(n),s(n,t)):t}function c(e){return o(e).concat(s(e)).filter(i)}function l(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.parentNode;return n?(t.push(n),l(n,t)):t}function u(e){return l(e).filter(r)}function d(e){return u(e).map(function(e){return c(e)}).reduce(a,[])}e.exports={getSiblings:c,getAncestors:u,getSiblingsOfAncestors:d}}),(function(e,t,n){(function(t){var n=t.CustomEvent;function r(){try{var e=new n(`cat`,{detail:{foo:`bar`}});return e.type===`cat`&&e.detail.foo===`bar`}catch{}return!1}e.exports=r()?n:typeof document<`u`&&typeof document.createEvent==`function`?function(e,t){var n=document.createEvent(`CustomEvent`);return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=!!t.bubbles,n.cancelable=!!t.cancelable,n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n(0))}),(function(e,t){var n=e.exports={},r,i;function a(){throw Error(`setTimeout has not been defined`)}function o(){throw Error(`clearTimeout has not been defined`)}(function(){try{r=typeof setTimeout==`function`?setTimeout:a}catch{r=a}try{i=typeof clearTimeout==`function`?clearTimeout:o}catch{i=o}})();function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch{try{return r.call(null,e,0)}catch{return r.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch{try{return i.call(null,e)}catch{return i.call(this,e)}}}var l=[],u=!1,d,f=-1;function p(){u&&d&&(u=!1,d.length?l=d.concat(l):f=-1,l.length&&m())}function m(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(d=l,l=[];++f<t;)d&&d[f].run();f=-1,t=l.length}d=null,u=!1,c(e)}}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),l.length===1&&!u&&s(m)};function h(e,t){this.fun=e,this.array=t}h.prototype.run=function(){this.fun.apply(null,this.array)},n.title=`browser`,n.browser=!0,n.env={},n.argv=[],n.version=``,n.versions={};function g(){}n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(e){return[]},n.binding=function(e){throw Error(`process.binding is not supported`)},n.cwd=function(){return`/`},n.chdir=function(e){throw Error(`process.chdir is not supported`)},n.umask=function(){return 0}}),(function(e,t,n){(function(e,t){(function(e,n){"use strict";if(e.setImmediate)return;var r=1,i={},a=!1,o=e.document,s;function c(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];return i[r]={callback:e,args:t},s(r),r++}function l(e){delete i[e]}function u(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function d(e){if(a)setTimeout(d,0,e);else{var t=i[e];if(t){a=!0;try{u(t)}finally{l(e),a=!1}}}}function f(){s=function(e){t.nextTick(function(){d(e)})}}function p(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}function m(){var t=`setImmediate$`+Math.random()+`$`,n=function(n){n.source===e&&typeof n.data==`string`&&n.data.indexOf(t)===0&&d(+n.data.slice(t.length))};e.addEventListener?e.addEventListener(`message`,n,!1):e.attachEvent(`onmessage`,n),s=function(n){e.postMessage(t+n,`*`)}}function h(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;d(t)},s=function(t){e.port2.postMessage(t)}}function g(){var e=o.documentElement;s=function(t){var n=o.createElement(`script`);n.onreadystatechange=function(){d(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function _(){s=function(e){setTimeout(d,0,e)}}var v=Object.getPrototypeOf&&Object.getPrototypeOf(e);v=v&&v.setTimeout?v:e,{}.toString.call(e.process)===`[object process]`?f():p()?m():e.MessageChannel?h():o&&`onreadystatechange`in o.createElement(`script`)?g():_(),v.setImmediate=c,v.clearImmediate=l})(typeof self>`u`?e===void 0?this:e:self)}).call(this,n(0),n(16))}),(function(e,t,n){(function(e){var r=e!==void 0&&e||typeof self<`u`&&self||window,i=Function.prototype.apply;t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()};function a(e,t){this._id=e,this._clearFn=t}a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(17),t.setImmediate=typeof self<`u`&&self.setImmediate||e!==void 0&&e.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<`u`&&self.clearImmediate||e!==void 0&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(0))})])})})),u=s.t(),d=e.O(l()),f=class{get id(){return`vidyard`}get canReusePlayer(){return!1}urlRegexes=[new RegExp(/https?:\/\/video\.vidyard\.com\/watch\/(?<id>[0-9A-Za-z]{5,})/),new RegExp(/https?:\/\/play\.vidyard\.com\/(?<id>[0-9A-Za-z]{5,})\.jpg/)];loadApi(){return(0,u.loadScript)(`https://play.vidyard.com/embed/v4.js`,{windowCallback:`onVidyardAPI`})}prepareHtml(e){if(!e.initialVideoId)throw`Vidyard player requires an initial video to be set`;return`
36
+ <div style="width: ${e.width?`${e.width}px`:`100%`}; margin: auto; display: block; max-width: 100%" class="vidyard-player-embed" data-uuid="${e.initialVideoId}" data-v="4" data-type="lightbox">
37
+ <img src="https://play.vidyard.com/${e.initialVideoId}.jpg">
38
+ </div>`}createPlayer(a,s){return new Promise((l,u)=>{if(!a.element)return u(`The Vidyard api requires the options.element to be set`);let f=a.element.querySelector(`div.vidyard-player-embed`);if(!f)return u(`Something went wrong`);if(!a.initialVideoId)return u(`The Vidyard implementation requires an initial video. Vidyard itself allows creation of a player without, but this wasn't implemented here.`);let p=new e.i,m=new t.t([!1,void 0]),h=new t.t(null);h.pipe(o.t(e=>!!e),i.n(e=>e),n.t(1),r.t(p),r.t(s)).subscribe(([t,n])=>{let i=d.default.api.getPlayerMetadata(a.initialVideoId);c(n,`play`).pipe(r.t(p),r.t(s)).subscribe(([n,r])=>t.onStateChange(e.n.playing)),c(n,`pause`).pipe(r.t(p),r.t(s)).subscribe(([n,r])=>t.onStateChange(e.n.paused)),c(n,`seek`).pipe(r.t(p),r.t(s)).subscribe(([[e,n],r])=>t.onCurrentTimeChange(n)),c(n,`volumeChange`).pipe(r.t(p),r.t(s)).subscribe(([e,n])=>t.onVolumeChange(e*100)),c(n,`timeupdate`).pipe(r.t(p),r.t(s)).subscribe(([n,r])=>{t.onCurrentTimeChange(n);let i=r.metadata.chapters_attributes,a=i[i.length-1].video_attributes.length_in_seconds;(n>=a||Math.abs(n-a)<.2)&&t.onStateChange(e.n.ended)}),c(n,`metadata`).pipe(r.t(p),r.t(s)).subscribe(([e,t])=>console.log(`metadata`,e)),l(t),i.then(e=>t.onDurationChange(e.length_in_seconds))}),m.pipe(o.t(([e])=>e),n.t(1),r.t(p),r.t(s)).subscribe(([t,n])=>{let r=n,i=e.r({capabilities:[e.t.volume],loadVideoById:e=>{throw`The Vidyard player cannot be reused`},setPlayerState:t=>{switch(t){case e.n.playing:r.play();break;case e.n.paused:r.pause()}},setMute:e=>{throw`The Vidyard player doesn't support mute`},setVolume:e=>r.setVolume(e/100),setProgress:e=>r.seek(e),setSize:(e,t)=>{r.iframe.width=`${e}px`,r.iframe.height=`${t}px`},getTitle:()=>new Promise(e=>{e(r.metadata.name??r.metadata.description)}),setFullscreen:e=>{throw`The Vidyard player doesn't support fullscreen`},getFullscreen:()=>new Promise(e=>e(!1)),setPip:e=>{throw`The Vidyard player doesn't support PiP`},getPip:()=>new Promise(e=>e(!1)),destroy:()=>{d.default.api.destroyPlayer(r),p.next(!0)}});h.next([i,r])}),d.default.api.addReadyListener((e,t)=>{t.on(`ready`,(e,n)=>{m.next([!0,t]),a.element.querySelector(`:scope > div > img`)?.remove()})}),d.default.api.renderPlayer({container:f,uuid:a.initialVideoId,autoplay:+!!a.autoplay})})}};exports.VidyardService=f;
@@ -0,0 +1,84 @@
1
+ import { i as e, n as t, r as n, t as r } from "./src-BWj0KcGd.mjs";
2
+ import { t as i } from "./takeUntil-zxKl50Ag.mjs";
3
+ import { t as a } from "./timer-BOeyNkh5.mjs";
4
+ import { t as o } from "./src-C2Bgj48W.mjs";
5
+ // ../../platforms/vimeo-player/api/src/vimeo-api.service.ts
6
+ var s = o(), c = class {
7
+ get id() {
8
+ return "vimeo";
9
+ }
10
+ urlRegexes = [/* @__PURE__ */ new RegExp(/http[s]{0,1}:\/\/(www\.){0,1}vimeo\.com\/(?<id>[0-9]+)$/, "g")];
11
+ loadApi() {
12
+ return (0, s.loadScript)("https://player.vimeo.com/api/player.js");
13
+ }
14
+ prepareHtml(e) {
15
+ return `<div id="${e.domId}" style="max-width:100%"></div>`;
16
+ }
17
+ createPlayer(o, s) {
18
+ return new Promise((c, l) => {
19
+ if (!o.domId) return l("The Vimeo api requires the options.domId to be set");
20
+ if (!o.initialVideoId) return l("Vimeo requires an initial video");
21
+ let u = new e(), d, f = new Vimeo.Player(o.domId, {
22
+ id: o.initialVideoId,
23
+ width: o.width,
24
+ height: o.height,
25
+ autoplay: o.autoplay,
26
+ pip: !0
27
+ });
28
+ f.ready().then(() => {
29
+ d = n({
30
+ capabilities: [
31
+ r.fullscreen,
32
+ r.pictureInPicture,
33
+ r.volume,
34
+ r.mute,
35
+ r.getTitle
36
+ ],
37
+ loadVideoById: (e) => f.loadVideo(e),
38
+ setPlayerState: (e) => {
39
+ switch (e) {
40
+ case t.playing:
41
+ f.play();
42
+ break;
43
+ case t.paused:
44
+ f.pause();
45
+ break;
46
+ case t.ended:
47
+ case t.unstarted:
48
+ }
49
+ },
50
+ setVolume: (e) => f.setVolume(e / 100),
51
+ setMute: (e) => f.setMuted(e),
52
+ setProgress: (e) => f.setCurrentTime(e),
53
+ setSize: (e, t) => {
54
+ if (o.element) {
55
+ let n = o.element.querySelector("div iframe");
56
+ n && (n.width = String(e), n.height = String(t));
57
+ }
58
+ },
59
+ getTitle: () => f.getVideoTitle(),
60
+ setFullscreen: (e) => {
61
+ e ? f.requestFullscreen() : f.exitFullscreen();
62
+ },
63
+ getFullscreen: () => f.getFullscreen(),
64
+ setPip: (e) => {
65
+ e ? (f.requestPictureInPicture(), setTimeout(() => {
66
+ f.getPictureInPicture().then((t) => {
67
+ t !== e && (console.warn("To enable pip from outside its iframe, you need to first focus the player, then call setPip"), d.onPipChange(t));
68
+ });
69
+ }, 50)) : f.exitPictureInPicture();
70
+ },
71
+ getPip: () => f.getPictureInPicture(),
72
+ destroy: () => {
73
+ u.next(!0), f.destroy();
74
+ }
75
+ }), c(d);
76
+ }), f.on("loaded", () => {
77
+ d.onStateChange(t.unstarted), typeof window < "u" && (setTimeout(() => o.autoplay && f.play(), 600), a(0, 50).pipe(i(u), i(s)).subscribe(() => {
78
+ f.getMuted().then((e) => d.onMuteChange(e));
79
+ }), f.getVolume().then((e) => d.onVolumeChange(e * 100)), f.getDuration().then((e) => d.onDurationChange(e)));
80
+ }), f.on("play", () => d.onStateChange(t.playing)), f.on("pause", () => d.onStateChange(t.paused)), f.on("ended", () => d.onStateChange(t.ended)), f.on("volumechange", (e) => d.onVolumeChange(e.volume * 100)), f.on("timeupdate", (e) => d.onCurrentTimeChange(e.seconds)), f.on("enterpictureinpicture", () => d.onPipChange(!0)), f.on("leavepictureinpicture", () => d.onPipChange(!1)), f.on("fullscreenchange", (e) => d.onFullscreenChange(e.fullscreen));
81
+ });
82
+ }
83
+ };
84
+ export { c as VimeoApiService };
@@ -0,0 +1,87 @@
1
+ import { i as e, n as t, r as n } from "./src-BWj0KcGd.mjs";
2
+ import { t as r } from "./takeUntil-zxKl50Ag.mjs";
3
+ import { t as i } from "./filter-LJ9oGNCV.mjs";
4
+ import { t as a } from "./pairwise-BZ7jlLp1.mjs";
5
+ import { t as o } from "./src-C2Bgj48W.mjs";
6
+ // ../../platforms/spotify-player/api/src/services/spotify-api/spotify-api.service.ts
7
+ var s = o(), c = class {
8
+ constructor() {
9
+ this.urlRegexes = [/* @__PURE__ */ new RegExp(/http[s]{0,1}:\/\/open\.spotify\.com\/(?<type>track|episode)\/(?<id>[^&/?]+)/, "g"), /* @__PURE__ */ new RegExp(/spotify:(?<type>track|episode):(?<id>[0-9A-Za-z]+)/, "g")];
10
+ }
11
+ get id() {
12
+ return "spotify";
13
+ }
14
+ loadApi() {
15
+ return (0, s.loadScript)("https://open.spotify.com/embed-podcast/iframe-api/v1", { windowCallback: "onSpotifyIframeApiReady" }).then((e) => this.api = e[0]);
16
+ }
17
+ prepareHtml(e) {
18
+ return `<div id="${e.domId}" style="max-width:100%"></div>`;
19
+ }
20
+ match2id(e) {
21
+ if (!e.groups) throw "match2id - match.groups is undefined";
22
+ return `spotify:${e.groups.type}:${e.groups.id}`;
23
+ }
24
+ createPlayer(o, s) {
25
+ return new Promise((c, l) => {
26
+ if (!o.element) return l("The Spotify api requires the options.element to be set");
27
+ if (!this.api) return l("The Spotify api should have been set here");
28
+ if (!o.initialVideoId) return l("The Spotify api requires an initial video");
29
+ let u = !1;
30
+ this.api.createController(o.element.querySelector("div"), {
31
+ uri: o.initialVideoId,
32
+ width: o.width,
33
+ height: o.height
34
+ }, (l) => {
35
+ let d, f = new e();
36
+ l.addListener("ready", () => {
37
+ o.autoplay && setTimeout(() => l.play(), 3e3), u || (u = !0, d = n({
38
+ capabilities: [],
39
+ loadVideoById: (e) => l.loadUri(e),
40
+ setPlayerState: (e) => {
41
+ switch (e) {
42
+ case t.playing:
43
+ l.resume();
44
+ break;
45
+ case t.paused:
46
+ l.pause();
47
+ break;
48
+ case t.ended: break;
49
+ case t.unstarted:
50
+ }
51
+ },
52
+ setMute: (e) => {
53
+ throw "Spotify api doesn't allow mute";
54
+ },
55
+ setVolume: (e) => {
56
+ throw "Spotify api doesn't allow changing the volume";
57
+ },
58
+ setProgress: (e) => l.seek(e),
59
+ setSize: (e, t) => l.setIframeDimensions(e, t),
60
+ getTitle: () => new Promise((e, t) => t("Spotify api doesn't allow getting the title")),
61
+ setFullscreen: (e) => {
62
+ if (e) throw "Spotify doesn't support fullscreen";
63
+ },
64
+ getFullscreen: () => new Promise((e) => e(!1)),
65
+ setPip: (e) => {
66
+ if (e) throw "Spotify doesn't support picture-in-picture";
67
+ },
68
+ getPip: () => new Promise((e) => e(!1)),
69
+ destroy: () => {
70
+ f.next(!0), l.removeListener("playback_update", m), l.destroy();
71
+ }
72
+ }), c(d));
73
+ });
74
+ let p = new e();
75
+ p.pipe(a(), i(([e, t]) => !e.data.isPaused && e.data.duration - e.data.position < 500 && t.data.isPaused && t.data.position === 0 && Math.abs(e.data.duration - t.data.duration) < 3e3), r(f), r(s)).subscribe(() => {
76
+ setTimeout(() => d.onStateChange(t.ended), 20);
77
+ });
78
+ let m = (e) => {
79
+ let n = e;
80
+ p.next(n), d.onCurrentTimeChange(n.data.position / 1e3), d.onDurationChange(n.data.duration / 1e3), d.onStateChange(n.data.isPaused ? t.paused : t.playing);
81
+ };
82
+ l.addListener("playback_update", m);
83
+ });
84
+ });
85
+ }
86
+ };
87
+ export { c as SpotifyApiService };
@@ -0,0 +1 @@
1
+ const e=require("./src-CluKb0O6.js"),t=require("./takeUntil-MRP2QN5v.js"),n=require("./filter-Ck2Y29AT.js"),r=require("./pairwise-ksRX5aBP.js");var i=require("./src-CYCud0_r.js").t(),a=class{constructor(){this.urlRegexes=[new RegExp(/http[s]{0,1}:\/\/open\.spotify\.com\/(?<type>track|episode)\/(?<id>[^&/?]+)/,`g`),new RegExp(/spotify:(?<type>track|episode):(?<id>[0-9A-Za-z]+)/,`g`)]}get id(){return`spotify`}loadApi(){return(0,i.loadScript)(`https://open.spotify.com/embed-podcast/iframe-api/v1`,{windowCallback:`onSpotifyIframeApiReady`}).then(e=>this.api=e[0])}prepareHtml(e){return`<div id="${e.domId}" style="max-width:100%"></div>`}match2id(e){if(!e.groups)throw`match2id - match.groups is undefined`;return`spotify:${e.groups.type}:${e.groups.id}`}createPlayer(i,a){return new Promise((o,s)=>{if(!i.element)return s(`The Spotify api requires the options.element to be set`);if(!this.api)return s(`The Spotify api should have been set here`);if(!i.initialVideoId)return s(`The Spotify api requires an initial video`);let c=!1;this.api.createController(i.element.querySelector(`div`),{uri:i.initialVideoId,width:i.width,height:i.height},s=>{let l,u=new e.i;s.addListener(`ready`,()=>{i.autoplay&&setTimeout(()=>s.play(),3e3),c||(c=!0,l=e.r({capabilities:[],loadVideoById:e=>s.loadUri(e),setPlayerState:t=>{switch(t){case e.n.playing:s.resume();break;case e.n.paused:s.pause();break;case e.n.ended:break;case e.n.unstarted:}},setMute:e=>{throw`Spotify api doesn't allow mute`},setVolume:e=>{throw`Spotify api doesn't allow changing the volume`},setProgress:e=>s.seek(e),setSize:(e,t)=>s.setIframeDimensions(e,t),getTitle:()=>new Promise((e,t)=>t(`Spotify api doesn't allow getting the title`)),setFullscreen:e=>{if(e)throw`Spotify doesn't support fullscreen`},getFullscreen:()=>new Promise(e=>e(!1)),setPip:e=>{if(e)throw`Spotify doesn't support picture-in-picture`},getPip:()=>new Promise(e=>e(!1)),destroy:()=>{u.next(!0),s.removeListener(`playback_update`,f),s.destroy()}}),o(l))});let d=new e.i;d.pipe(r.t(),n.t(([e,t])=>!e.data.isPaused&&e.data.duration-e.data.position<500&&t.data.isPaused&&t.data.position===0&&Math.abs(e.data.duration-t.data.duration)<3e3),t.t(u),t.t(a)).subscribe(()=>{setTimeout(()=>l.onStateChange(e.n.ended),20)});let f=t=>{let n=t;d.next(n),l.onCurrentTimeChange(n.data.position/1e3),l.onDurationChange(n.data.duration/1e3),l.onStateChange(n.data.isPaused?e.n.paused:e.n.playing)};s.addListener(`playback_update`,f)})})}};exports.SpotifyApiService=a;
@@ -0,0 +1 @@
1
+ const e=require("./src-CluKb0O6.js"),t=require("./filter-Ck2Y29AT.js");var n=require("./src-CYCud0_r.js").t(),r=class{constructor(){this.urlRegexes=[new RegExp(/https?:\/\/(www\.|home\.|fast\.)?wistia\.(com|net)\/(medias|embed)\/(iframe\/)?(?<id>[0-9A-Za-z]+)/)]}get id(){return`wistia`}loadApi(){return(0,n.loadScript)(`https://fast.wistia.com/assets/external/E-v1.js`,{async:!0})}prepareHtml(e){if(!e.domId)throw`The Wistia api requires the options.domId to be set`;if(!e.initialVideoId)throw`The Wistia api requires an initial video id`;return`<div id="${e.domId}" key="${e.initialVideoId}" class="wistia_embed wistia_async_${e.initialVideoId}" style="width:${e.width??640}px;height:${e.height??360}px;max-width:100%"></div>`}get canReusePlayer(){return!1}createPlayer(n,r){return new Promise((i,a)=>{if(typeof window>`u`)return;if(!n.domId)return a(`The Wistia api requires the options.domId to be set`);if(!n.initialVideoId)return a(`The Wistia implementation requires an initial video`);let o=window._wq=window._wq||[],s={id:n.domId,onReady:a=>{let c=new e.i,l=!1,u,d=e.r({capabilities:[e.t.mute,e.t.volume,e.t.fullscreen,e.t.getTitle],loadVideoById:e=>{a.addToPlaylist(e),n.autoplay&&setTimeout(()=>a.play(),20),d.onVolumeChange(a.volume()*100)},setPlayerState:t=>{switch(t){case e.n.playing:a.play();break;case e.n.paused:a.pause()}},setMute:e=>{e?a.mute():a.unmute()},setVolume:e=>a.volume(e/100),setProgress:e=>a.time(e),setSize:(e,t)=>{a.width(e),a.height(t)},getTitle:()=>new Promise(e=>e(a.name())),setFullscreen:e=>{e?a.requestFullscreen():a.cancelFullscreen()},getFullscreen:()=>new Promise(e=>e(a.inFullscreen())),setPip:e=>{e&&(console.warn(`Wistia player doesn't support PIP mode`),setTimeout(()=>d.onPipChange(!1),50))},getPip:()=>new Promise(e=>e(!1)),destroy:()=>{l||(l=!0,u?.unsubscribe(),a.unbind(`play`,f.get(`play`)),a.unbind(`pause`,f.get(`pause`)),a.unbind(`end`,f.get(`end`)),a.unbind(`mutechange`,f.get(`mutechange`)),a.unbind(`volumechange`,f.get(`volumechange`)),a.unbind(`timechange`,f.get(`timechange`)),a.unbind(`enterfullscreen`,f.get(`enterfullscreen`)),a.unbind(`cancelfullscreen`,f.get(`cancelfullscreen`)),a.remove(),c.next(!0),o.push({revoke:s}))}}),f=new Map;f.set(`play`,()=>{d.onStateChange(e.n.playing),d.onDurationChange(a.duration())}),f.set(`pause`,()=>d.onStateChange(e.n.paused)),f.set(`end`,()=>d.onStateChange(e.n.ended)),f.set(`volumechange`,e=>d.onVolumeChange(e*100)),f.set(`timechange`,e=>d.onCurrentTimeChange(e)),f.set(`mutechange`,e=>d.onMuteChange(e)),f.set(`enterfullscreen`,()=>d.onFullscreenChange(!0)),f.set(`cancelfullscreen`,()=>d.onFullscreenChange(!1)),a.bind(`play`,f.get(`play`)),a.bind(`pause`,f.get(`pause`)),a.bind(`end`,f.get(`end`)),a.bind(`timechange`,f.get(`timechange`)),a.bind(`mutechange`,f.get(`mutechange`)),a.bind(`volumechange`,f.get(`volumechange`)),a.bind(`enterfullscreen`,f.get(`enterfullscreen`)),a.bind(`cancelfullscreen`,f.get(`cancelfullscreen`)),u=r.pipe(t.t(e=>e)).subscribe(()=>d.destroy()),i(d)}};o.push(s)})}};exports.WistiaService=r;
@@ -0,0 +1 @@
1
+ const e=require("./src-CluKb0O6.js"),t=require("./takeUntil-MRP2QN5v.js"),n=require("./timer-mrjvJwyN.js");var r=require("./src-CYCud0_r.js").t(),i=class{constructor(){this.urlRegexes=[new RegExp(/http[s]{0,1}:\/\/(www\.){0,1}dailymotion\.com\/video\/(?<id>[0-9A-Za-z]+)$/,`g`)]}get id(){return`dailymotion`}get canReusePlayer(){return!0}loadApi(){return(0,r.loadScript)(`https://video-player.mintplayer.com/assets/dailymotion/all.js`)}prepareHtml(e){return`<div id="${e.domId}" style="max-width:100%"></div>`}createPlayer(r,i){return new Promise((a,o)=>{if(!r.element)return o(`The DailyMotion api requires the options.element to be set`);let s=new e.i,c,l=DM.player(r.element.getElementsByTagName(`div`)[0],{width:String(r.width),height:String(r.height),params:{autoplay:r.autoplay,"queue-enable":!1},events:{apiready:()=>{c=e.r({capabilities:[e.t.volume,e.t.mute,e.t.getTitle],loadVideoById:e=>l.load({video:e}),setPlayerState:t=>{switch(t){case e.n.playing:l.play();break;case e.n.paused:l.pause();break;case e.n.ended:case e.n.unstarted:}},setMute:e=>l.setMuted(e),setVolume:e=>l.setVolume(e/100),setProgress:e=>l.seek(e),setSize:(e,t)=>{l.width=e,l.height=t},getTitle:()=>new Promise(e=>{e(l.video.title.replace(RegExp(`\\+`,`g`),` `))}),setFullscreen:e=>{e&&(console.warn(`DailyMotion player doesn't allow setting fullscreen from outside`),setTimeout(()=>c.onFullscreenChange(!1),50))},getFullscreen:()=>new Promise(e=>{console.warn(`DailyMotion player doesn't allow setting fullscreen from outside`),e(!1)}),setPip:e=>{e&&(console.warn(`DailyMotion player doesn't support PIP mode`),setTimeout(()=>c.onPipChange(!1),50))},getPip:()=>new Promise(e=>e(!1)),destroy:()=>s.next(!0)}),typeof window<`u`&&n.t(0,50).pipe(t.t(s),t.t(i)).subscribe(()=>{c.onMuteChange(l.muted),c.onCurrentTimeChange(l.currentTime)}),a(c)},play:()=>{c.onStateChange(e.n.playing),c.onDurationChange(l.duration)},pause:()=>c.onStateChange(e.n.paused),end:()=>c.onStateChange(e.n.ended)}});l.onvolumechange=()=>{l&&c.onVolumeChange(l.volume*100)}})}};exports.DailymotionApiService=i;
@@ -0,0 +1,90 @@
1
+ import { i as e, n as t, r as n, t as r } from "./src-BWj0KcGd.mjs";
2
+ import { t as i } from "./takeUntil-zxKl50Ag.mjs";
3
+ import { t as a } from "./timer-BOeyNkh5.mjs";
4
+ import { t as o } from "./src-C2Bgj48W.mjs";
5
+ // ../../platforms/dailymotion-player/api/src/dailymotion-api.service.ts
6
+ var s = o(), c = class {
7
+ constructor() {
8
+ this.urlRegexes = [/* @__PURE__ */ new RegExp(/http[s]{0,1}:\/\/(www\.){0,1}dailymotion\.com\/video\/(?<id>[0-9A-Za-z]+)$/, "g")];
9
+ }
10
+ get id() {
11
+ return "dailymotion";
12
+ }
13
+ get canReusePlayer() {
14
+ return !0;
15
+ }
16
+ loadApi() {
17
+ return (0, s.loadScript)("https://video-player.mintplayer.com/assets/dailymotion/all.js");
18
+ }
19
+ prepareHtml(e) {
20
+ return `<div id="${e.domId}" style="max-width:100%"></div>`;
21
+ }
22
+ createPlayer(o, s) {
23
+ return new Promise((c, l) => {
24
+ if (!o.element) return l("The DailyMotion api requires the options.element to be set");
25
+ let u = new e(), d, f = DM.player(o.element.getElementsByTagName("div")[0], {
26
+ width: String(o.width),
27
+ height: String(o.height),
28
+ params: {
29
+ autoplay: o.autoplay,
30
+ "queue-enable": !1
31
+ },
32
+ events: {
33
+ apiready: () => {
34
+ d = n({
35
+ capabilities: [
36
+ r.volume,
37
+ r.mute,
38
+ r.getTitle
39
+ ],
40
+ loadVideoById: (e) => f.load({ video: e }),
41
+ setPlayerState: (e) => {
42
+ switch (e) {
43
+ case t.playing:
44
+ f.play();
45
+ break;
46
+ case t.paused:
47
+ f.pause();
48
+ break;
49
+ case t.ended:
50
+ case t.unstarted:
51
+ }
52
+ },
53
+ setMute: (e) => f.setMuted(e),
54
+ setVolume: (e) => f.setVolume(e / 100),
55
+ setProgress: (e) => f.seek(e),
56
+ setSize: (e, t) => {
57
+ f.width = e, f.height = t;
58
+ },
59
+ getTitle: () => new Promise((e) => {
60
+ e(f.video.title.replace(/* @__PURE__ */ RegExp("\\+", "g"), " "));
61
+ }),
62
+ setFullscreen: (e) => {
63
+ e && (console.warn("DailyMotion player doesn't allow setting fullscreen from outside"), setTimeout(() => d.onFullscreenChange(!1), 50));
64
+ },
65
+ getFullscreen: () => new Promise((e) => {
66
+ console.warn("DailyMotion player doesn't allow setting fullscreen from outside"), e(!1);
67
+ }),
68
+ setPip: (e) => {
69
+ e && (console.warn("DailyMotion player doesn't support PIP mode"), setTimeout(() => d.onPipChange(!1), 50));
70
+ },
71
+ getPip: () => new Promise((e) => e(!1)),
72
+ destroy: () => u.next(!0)
73
+ }), typeof window < "u" && a(0, 50).pipe(i(u), i(s)).subscribe(() => {
74
+ d.onMuteChange(f.muted), d.onCurrentTimeChange(f.currentTime);
75
+ }), c(d);
76
+ },
77
+ play: () => {
78
+ d.onStateChange(t.playing), d.onDurationChange(f.duration);
79
+ },
80
+ pause: () => d.onStateChange(t.paused),
81
+ end: () => d.onStateChange(t.ended)
82
+ }
83
+ });
84
+ f.onvolumechange = () => {
85
+ f && d.onVolumeChange(f.volume * 100);
86
+ };
87
+ });
88
+ }
89
+ };
90
+ export { c as DailymotionApiService };
@@ -0,0 +1,118 @@
1
+ import { c as e, i as t, n, o as r, r as i, t as a } from "./src-BWj0KcGd.mjs";
2
+ import { t as o } from "./BehaviorSubject-CMEAHufI.mjs";
3
+ import { n as s, t as c } from "./take-DvAG1RRS.mjs";
4
+ import { i as l, n as u, r as d, t as f } from "./debounceTime-T7webJ8G.mjs";
5
+ import { t as p } from "./takeUntil-zxKl50Ag.mjs";
6
+ import { t as m } from "./timer-BOeyNkh5.mjs";
7
+ import { t as h } from "./filter-LJ9oGNCV.mjs";
8
+ import { t as g } from "./pairwise-BZ7jlLp1.mjs";
9
+ import { t as _ } from "./src-C2Bgj48W.mjs";
10
+ // ../../../node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js
11
+ function v(t) {
12
+ return t === void 0 && (t = Infinity), s(e, t);
13
+ }
14
+ // ../../../node_modules/rxjs/dist/esm5/internal/operators/concatAll.js
15
+ function y() {
16
+ return v(1);
17
+ }
18
+ // ../../../node_modules/rxjs/dist/esm5/internal/observable/concat.js
19
+ function b() {
20
+ var e = [...arguments];
21
+ return y()(d(e, l(e)));
22
+ }
23
+ // ../../../node_modules/rxjs/dist/esm5/internal/operators/startWith.js
24
+ function x() {
25
+ var e = [...arguments], t = l(e);
26
+ return r(function(n, r) {
27
+ (t ? b(e, n, t) : b(e, n)).subscribe(r);
28
+ });
29
+ }
30
+ // ../../platforms/facebook-player/api/src/facebook-api.service.ts
31
+ var S = _(), C = class {
32
+ constructor() {
33
+ this.urlRegexes = [/* @__PURE__ */ new RegExp(/^(?<id>https?:\/\/(www\.)?facebook\.com\/(?<user>[^/?]+)\/videos\/(?<video>[0-9]+)[/?]*)/, "g"), /* @__PURE__ */ new RegExp(/^(?<id>https?:\/\/(www\.)?facebook\.com\/watch\/\?v=[0-9]+)/, "g")];
34
+ }
35
+ get id() {
36
+ return "facebook";
37
+ }
38
+ get canReusePlayer() {
39
+ return !1;
40
+ }
41
+ loadApi() {
42
+ return (0, S.loadScript)("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.0", { windowCallback: "fbAsyncInit" });
43
+ }
44
+ prepareHtml(e) {
45
+ if (!e.initialVideoId) throw "The Facebook api requires an initial video id";
46
+ if (/[\s<>"]/.exec(e.initialVideoId)) throw `The url contains invalid characters:\n${e.initialVideoId}`;
47
+ return `<div id="${e.domId}" class="fb-video" data-href="${e.initialVideoId}" data-width="${e.width}" data-height="${e.height}" data-autoplay="true" data-allowfullscreen="true" data-controls="true"></div>`;
48
+ }
49
+ createPlayer(e, r) {
50
+ return new Promise((s, l) => {
51
+ let d = new o(void 0), _, v = !1, y = new t();
52
+ FB.init({
53
+ xfbml: !0,
54
+ version: "v2.5"
55
+ }), FB.Event.subscribe("xfbml.ready", (t) => {
56
+ t.type === "video" && t.id === e.domId && d.next(t.instance);
57
+ });
58
+ let b = i({
59
+ capabilities: [a.mute, a.volume],
60
+ loadVideoById: (e) => {},
61
+ setPlayerState: (e) => {
62
+ let t = d.value;
63
+ switch (e) {
64
+ case n.playing:
65
+ t && (b.onDurationChange(t.getDuration()), t.play());
66
+ break;
67
+ case n.paused: t && t.pause();
68
+ }
69
+ },
70
+ setMute: (e) => {
71
+ let t = d.value;
72
+ t && (v = !0, e ? t.mute() : t.unmute(), setTimeout(() => v = !1, 20));
73
+ },
74
+ setVolume: (e) => {
75
+ let t = d.value;
76
+ !v && t && t.setVolume(e / 100);
77
+ },
78
+ setProgress: (e) => {
79
+ let t = d.value;
80
+ t && t.seek(e);
81
+ },
82
+ setSize: (e, t) => {},
83
+ getTitle: () => new Promise((e, t) => t("The Facebook player doesn't allow getting the title")),
84
+ setFullscreen: (e) => {
85
+ throw "The Facebook player doesn't allow fullscreen mode";
86
+ },
87
+ getFullscreen: () => new Promise((e) => e(!1)),
88
+ setPip: (e) => {
89
+ throw "The Facebook player doesn't allow PiP mode";
90
+ },
91
+ getPip: () => new Promise((e) => e(!1)),
92
+ destroy: () => {
93
+ _ && _.forEach((e) => e.release()), y.next(!0);
94
+ }
95
+ });
96
+ d.pipe(f(500), x(void 0), g()).subscribe(([e, t]) => {
97
+ e && _ && _.forEach((e) => e.release()), t && (_ = [
98
+ t.subscribe("startedPlaying", () => b.onStateChange(n.playing)),
99
+ t.subscribe("paused", () => b.onStateChange(n.paused)),
100
+ t.subscribe("finishedPlaying", () => b.onStateChange(n.ended))
101
+ ]);
102
+ }), typeof window < "u" && u([d.pipe(f(500)), m(0, 50)]).pipe(h(([e]) => !!e)).pipe(p(y), p(r)).subscribe(([e]) => {
103
+ if (e) {
104
+ let t = e.getCurrentPosition();
105
+ if (b.onCurrentTimeChange(t), !v) {
106
+ let t = e.getVolume();
107
+ e.isMuted() && t === 0 || b.onVolumeChange(t * 100);
108
+ }
109
+ let n = e.isMuted();
110
+ b.onMuteChange(n);
111
+ }
112
+ }), d.pipe(f(1500), h((e) => !!e), c(1), p(r)).subscribe((t) => {
113
+ e.autoplay && t && setTimeout(() => t.play(), 50);
114
+ }), s(b);
115
+ });
116
+ }
117
+ };
118
+ export { C as FacebookApiService };