bplist00"_WebSubresources_WebMainResource
_WebResourceResponse^WebResourceURL_WebResourceData_WebResourceMIMETypeObplist00opX$versionX$objectsY$archiverT$top "#)*0123OPQRSTUVWXYZ[\]^_`abcdeijU$null
!"___nsurlrequest_proto_prop_obj_6___nsurlrequest_proto_prop_obj_3R$2___nsurlrequest_proto_prop_obj_0R$3___nsurlrequest_proto_prop_obj_4V$class___nsurlrequest_proto_prop_obj_1R$4R$0___nsurlrequest_proto_prop_obj_5___nsurlrequest_proto_prop_obj_2R$1 ! $% '(WNS.base[NS.relative _/https://f.vimeocdn.com/p/3.48.2/js/player.es.js+,-.Z$classnameX$classesUNSURL-/XNSObject#AƗ$~ 456BNWNS.keysZNS.objects789:;<=>?@A
CDEFGHIJKLMTEtag\Content-TypeX__hhaa__]Last-ModifiedSAge]Accept-RangesTDate_Content-Encoding^Content-Length]Cache-ControlTVary_""b53f8ec0db06bf465b0cdcddfe80ef71"_application/javascript_h
YnBsaXN0MDDaAQIDBAUGBwgJCgsNDxETFRcZGx1UVmFyeVxDb250ZW50LVR5cGVdTGFzdC1Nb2RpZmllZFNBZ2VdQWNjZXB0LVJhbmdlc1REYXRlXxAQQ29udGVudC1FbmNvZGluZ15Db250ZW50LUxlbmd0aF1DYWNoZS1Db250cm9sVEV0YWehDF8QJkFjY2VwdC1FbmNvZGluZyx4LWh0dHAtbWV0aG9kLW92ZXJyaWRloQ5fEBZhcHBsaWNhdGlvbi9qYXZhc2NyaXB0oRBfEB1GcmksIDA3IEphbiAyMDIyIDE4OjM1OjEzIEdNVKESVjI4OTQ4MaEUVWJ5dGVzoRZfEB1UdWUsIDExIEphbiAyMDIyIDAzOjE2OjEzIEdNVKEYUmJyoRpWMTY2OTc5oRxfEA9tYXgtYWdlPTEyMDk2MDChHl8QIiJiNTNmOGVjMGRiMDZiZjQ2NWIwY2RjZGRmZTgwZWY3MSIACAAdACIALwA9AEEATwBUAGcAdgCEAIkAiwC0ALYAzwDRAPEA8wD6APwBAgEEASQBJgEpASsBMgE0AUYBSAAAAAAAAAIBAAAAAAAAAB8AAAAAAAAAAAAAAAAAAAFt_Fri, 07 Jan 2022 18:35:13 GMTV289481Ubytes_Tue, 11 Jan 2022 03:16:13 GMTRbrV166979_max-age=1209600_&Accept-Encoding,x-http-method-override+,fg_NSMutableDictionaryfh/\NSDictionary_application/javascript+,kl_NSHTTPURLResponsemn/_NSHTTPURLResponse]NSURLResponse_NSKeyedArchiverqr_WebResourceResponse # - 2 7 \ b } 47:\~!#%,4?KMOQSUWY[]_amoqsuwy{}8
6;QUb{ s _/https://f.vimeocdn.com/p/3.48.2/js/player.es.jsO
/* VimeoPlayer - v3.48.2 - 2022-01-07 - https://player.vimeo.com/NOTICE.txt */
!function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t,n,i){return t(i={path:n,exports:{},require:function(t,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&i.path)}},i.exports),i.exports}var e=i((function(t,i){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.6+9869a4bc
*/
t.exports=function(){function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},e=0,r=void 0,o=void 0,u=function(t,n){h[e]=t,h[e+1]=n,2===(e+=2)&&(o?o(v):p())},a="undefined"!=typeof window?window:void 0,s=a||{},c=s.MutationObserver||s.WebKitMutationObserver,l="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(v,1)}}var h=new Array(1e3);function v(){for(var t=0;t-1},T=i((function(t){(t.exports=function(t,n){var i,e,r,o,u;return arguments.length<2||"string"!=typeof t?(o=n,n=t,t=null):o=arguments[2],null==t?(i=r=!0,e=!1):(i=E.call(t,"c"),e=E.call(t,"e"),r=E.call(t,"w")),u={value:n,configurable:i,enumerable:e,writable:r},o?p(g(o),u):u}).gs=function(t,n,i){var e,r,o,u;return"string"!=typeof t?(o=i,i=n,n=t,t=null):o=arguments[3],null==n?n=void 0:y(n)?null==i?i=void 0:y(i)||(o=i,i=void 0):(o=n,n=i=void 0),null==t?(e=!0,r=!1):(e=E.call(t,"c"),r=E.call(t,"e")),u={get:n,set:i,configurable:e,enumerable:r},o?p(g(o),u):u}})),S=function(t){if(!function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}(t))throw new TypeError(t+" is not a symbol");return t},A=Object.create,x=Object.defineProperties,C=Object.defineProperty,M=Object.prototype,I=A(null);if("function"==typeof Symbol){o=Symbol;try{String(o()),s=!0}catch(t){}}var O=function(){var t=A(null);return function(n){for(var i,e,r=0;t[n+(r||"")];)++r;return t[n+=r||""]=!0,C(M,i="@@"+n,T.gs(null,(function(t){e||(e=!0,C(this,i,T(t)),e=!1)}))),i}}();a=function(t){if(this instanceof a)throw new TypeError("TypeError: Symbol is not a constructor");return u(t)};var R=u=function t(n){var i;if(this instanceof t)throw new TypeError("TypeError: Symbol is not a constructor");return s?o(n):(i=A(a.prototype),n=void 0===n?"":String(n),x(i,{F:T("",n),U:T("",O(n))}))};x(u,{for:T((function(t){return I[t]?I[t]:I[t]=u(String(t))})),keyFor:T((function(t){var n;for(n in S(t),I)if(I[n]===t)return n})),hasInstance:T("",o&&o.hasInstance||u("hasInstance")),isConcatSpreadable:T("",o&&o.isConcatSpreadable||u("isConcatSpreadable")),iterator:T("",o&&o.iterator||u("iterator")),match:T("",o&&o.match||u("match")),replace:T("",o&&o.replace||u("replace")),search:T("",o&&o.search||u("search")),species:T("",o&&o.species||u("species")),split:T("",o&&o.split||u("split")),toPrimitive:T("",o&&o.toPrimitive||u("toPrimitive")),toStringTag:T("",o&&o.toStringTag||u("toStringTag")),unscopables:T("",o&&o.unscopables||u("unscopables"))}),x(a.prototype,{constructor:T(u),toString:T("",(function(){return this.U}))}),x(u.prototype,{toString:T((function(){return"Symbol ("+S(this).F+")"})),valueOf:T((function(){return S(this)}))}),C(u.prototype,u.toPrimitive,T("",(function(){var t=S(this);return"symbol"==typeof t?t:t.toString()}))),C(u.prototype,u.toStringTag,T("c","Symbol")),C(a.prototype,u.toStringTag,T("c",u.prototype[u.toStringTag])),C(a.prototype,u.toPrimitive,T("c",u.prototype[u.toPrimitive]));var D=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!c[typeof Symbol.iterator]&&!!c[typeof Symbol.toPrimitive]&&!!c[typeof Symbol.toStringTag]}()?Symbol:R;if(function(){for(var t=["webkit","moz"],n=0;n>>0,e=arguments[1],r=0;r>>0,e=arguments[1],r=0;r>>0;if(0===e)return!1;var r=0|n,o=Math.max(r>=0?r:e-Math.abs(r),0);function u(t,n){return t===n||"number"==typeof t&&"number"==typeof n&&isNaN(t)&&isNaN(n)}for(;othis.length)&&-1!==this.indexOf(t,n)}),Object.values||(Object.values=function(t){return Object.keys(t).map((function(n){return t[n]}))}),String.prototype.startsWith||(String.prototype.startsWith=function(t,n){return this.slice(n||0,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,n){return(void 0===n||n>this.length)&&(n=this.length),this.substring(n-t.length,n)===t}),Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&t!=t},void 0===Number.parseFloat&&(Number.parseFloat=window.parseFloat),void 0===Number.parseInt&&(Number.parseInt=window.parseInt),void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),Array.prototype.entries||(Array.prototype.entries=function(){var t,n=this,i=0;function e(){}return e.prototype.next=function(){return i>n.length-1&&(t=!0),t?{value:void 0,done:!0}:{value:[i,n[i++]],done:!1}},e.prototype[D.iterator]=function(){return this},new e}),Array.prototype[D.iterator]||(Array.prototype[D.iterator]=function(){var t,n=this,i=0;function e(){}return e.prototype.next=function(){return i>n.length-1&&(t=!0),t?{value:void 0,done:!0}:{value:n[i++],done:!1}},e.prototype[D.iterator]=function(){return this},new e});var L=window.Map||function(){var t,n,i,e=function(){n=[],i=[]},r=function(i){return-1<(t=n.indexOf(i))};return e(),{get size(){return n.length},has:r,clear:e,get:function(t){return i[n.indexOf(t)]},keys:function(){return n.slice()},values:function(){return i.slice()},entries:function(){return n.map((function(t,n){return[t,i[n]]}))},delete:function(e){return r(e)&&n.splice(t,1)&&!!i.splice(t,1)},forEach:function(t,e){var r=this;i.forEach((function(i,o){return t.call(e,i,n[o],r)}))},set:function(e,o){return r(e)?i[t]=o:i[n.push(e)-1]=o,this}}},N=window.WeakMap||function(){var t=Object.defineProperty,n=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+n+++"__"};return i.prototype.set=function(n,i){if("object"!==V(n)&&"function"!=typeof n)throw new TypeError("Invalid value used as weak map key");var e=n[this.name];return e&&e[0]===n?e[1]=i:t(n,this.name,{value:[n,i],writable:!0}),this},i.prototype.get=function(t){var n;return(n=t[this.name])&&n[0]===t?n[1]:void 0},i.prototype.delete=function(t){var n=t[this.name];return!(!n||n[0]!==t||(n[0]=n[1]=void 0,0))},i.prototype.has=function(t){var n=t[this.name];return!!n&&n[0]===t},i}(),P=window.Array.from,F=[1];
/**
* @license
*
* Portions of this polyfill are a derivative work of the Polymer project, which requires the following licence notice:
*
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/"function"==typeof P&&P(F)===F&&(P=!1);var U=P||function(t){return[].slice.call(t,0)};function V(t){return(V="function"==typeof D&&"symbol"==typeof D.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof D&&t.constructor===D&&t!==D.prototype?"symbol":typeof t})(t)}function B(t,n){for(var i=0;it.length)&&(n=t.length);for(var i=0,e=new Array(n);i=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(i=t[D.iterator]()).next.bind(i)}var ot=i((function(t,n){t.exports=function(t){var n={};return(t=t||{}).prependOn=function(n,i){return t.on(n,i,!0)},t.eventNames=function(){return Object.keys(n)},t.on=function(i,e,r){for(var o=0,u=(i=[].concat(i)).length;o1?i-1:0),r=1;r1?i-1:0),r=1;r=t){i=n.end(e);break}return i-t}function bt(t,n){if(!n||!n.length)return 0;if(1===n.length&&n.end(0)-n.start(0)<1e-6)return 0;for(var i=0,e=n.length-1;e>=0&&n.end(e)>t;--e)i+=n.end(e)-Math.max(n.start(e),t);return i}function wt(){return void 0!==window.performance&&"function"==typeof window.performance.now?window.performance.now():Date.now()}function gt(t){return wt()-t}function yt(t){if("object"!==V(t))return"";var n=[];for(var i in t)t.hasOwnProperty(i)&&n.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return n.length?n.join("&"):""}function _t(t){return"string"!=typeof t?{}:t.replace("?","").split("&").reduce((function(t,n){if(n.length>0){var i=tt(n.split("="),2),e=i[0],r=i[1];t[e]=decodeURIComponent(r)}return t}),{})}function kt(t){var n=document.createElement("a");return n.href=t,n}function Et(t,n){var i=yt(n);return"".concat(t).concat(i?"?".concat(i):"")}function Tt(t){var n=t.split("://");if(2!==n.length)return null;var i=n[1].split("/");if(i.length>1)return i[0];var e=n[1].split("?");if(e.length>1)return e[0];var r=n[1].split("#");return r.length>1?r[0]:n[1]}function St(t,n,i){switch(i.length){case 0:return t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case 3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}function At(t){return t}var xt=Math.max;function Ct(t,n,i){return n=xt(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,o=xt(e.length-n,0),u=Array(o);++r0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(nn);function on(t,n){return rn(Ct(t,n,At),t+"")}function un(t,n){return t===n||t!=t&&n!=n}function an(t,n){for(var i=t.length;i--;)if(un(t[i][0],n))return i;return-1}var sn=Array.prototype.splice;function cn(t){var n=-1,i=null==t?0:t.length;for(this.clear();++n-1},cn.prototype.set=function(t,n){var i=this.K,e=an(i,t);return e<0?(++this.size,i.push([t,n])):i[e][1]=n,this};var ln=Qt(Rt,"Map"),fn=Qt(Object,"create"),dn=Object.prototype.hasOwnProperty,hn=Object.prototype.hasOwnProperty;function vn(t){var n=-1,i=null==t?0:t.length;for(this.clear();++n-1&&t%1==0&&t<=9007199254740991}function Wn(t){return null!=t&&qn(t.length)&&!Ht(t)}var Gn="object"==(void 0===t?"undefined":V(t))&&t&&!t.nodeType&&t,Kn=Gn&&"object"==("undefined"==typeof module?"undefined":V(module))&&module&&!module.nodeType&&module,Yn=Kn&&Kn.exports===Gn?Rt.Buffer:void 0,Jn=(Yn?Yn.isBuffer:void 0)||function(){return!1},$n=Function.prototype,Xn=Object.prototype,Zn=$n.toString,Qn=Xn.hasOwnProperty,ti=Zn.call(Object);function ni(t){if(!Pn(t)||"[object Object]"!=Vt(t))return!1;var n=Dn(t);if(null===n)return!0;var i=Qn.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i instanceof i&&Zn.call(i)==ti}var ii={};function ei(t){return function(n){return t(n)}}ii["[object Float32Array]"]=ii["[object Float64Array]"]=ii["[object Int8Array]"]=ii["[object Int16Array]"]=ii["[object Int32Array]"]=ii["[object Uint8Array]"]=ii["[object Uint8ClampedArray]"]=ii["[object Uint16Array]"]=ii["[object Uint32Array]"]=!0,ii["[object Arguments]"]=ii["[object Array]"]=ii["[object ArrayBuffer]"]=ii["[object Boolean]"]=ii["[object DataView]"]=ii["[object Date]"]=ii["[object Error]"]=ii["[object Function]"]=ii["[object Map]"]=ii["[object Number]"]=ii["[object Object]"]=ii["[object RegExp]"]=ii["[object Set]"]=ii["[object String]"]=ii["[object WeakMap]"]=!1;var ri="object"==(void 0===t?"undefined":V(t))&&t&&!t.nodeType&&t,oi=ri&&"object"==("undefined"==typeof module?"undefined":V(module))&&module&&!module.nodeType&&module,ui=oi&&oi.exports===ri&&It.process,ai=function(){try{return oi&&oi.require&&oi.require("util").types||ui&&ui.binding&&ui.binding("util")}catch(t){}}(),si=ai&&ai.isTypedArray,ci=si?ei(si):function(t){return Pn(t)&&qn(t.length)&&!!ii[Vt(t)]};function li(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}var fi=Object.prototype.hasOwnProperty;function di(t,n,i){var e=t[n];fi.call(t,n)&&un(e,i)&&(void 0!==i||n in t)||wn(t,n,i)}function hi(t,n,i,e){var r=!i;i||(i={});for(var o=-1,u=n.length;++o-1&&t%1==0&&t1?i[r-1]:void 0,u=r>2?i[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,u&&function(t,n,i){if(!Bt(i))return!1;var e=V(n);return!!("number"==e?Wn(i)&&pi(n,i.length):"string"==e&&n in i)&&un(i[n],t)}(i[0],i[1],u)&&(o=r<3?void 0:o,r=1),n=Object(n);++e0&&void 0!==arguments[0]?arguments[0]:this.X;n.addEventListener(Ai.LOADED_METADATA,(function(n){t.fire(Ai.LOADED_METADATA,n)})),n.addEventListener("webkitplaybacktargetavailabilitychanged",(function(n){switch(n.availability){case"available":t.Y||(t.Y=!0,t.fire(Ci.AIRPLAY_AVAILABLE));break;case"not-available":t.Y&&(t.Y=!1,t.fire(Ci.AIRPLAY_UNAVAILABLE))}})),n.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",(function(n){if(n.target.webkitCurrentPlaybackTargetIsWireless)return t.J=!0,void t.fire(Ci.AIRPLAY_ACTIVATED);t.J=!1,t.fire(Ci.AIRPLAY_DEACTIVATED)}))},n.showPicker=function(){var t=this;this.X.webkitShowPlaybackTargetPicker(),this.loadMetadata().then((function(){return t.X.webkitShowPlaybackTargetPicker()})).catch((function(){}))},n.loadMetadata=function(){var t=this;return this.X.readyState>=1?r.resolve():new r((function(n,i){t.X.addEventListener(Ai.LOADED_METADATA,(function(){n()})),t.X.src=t.getFile().src}))},H(AirPlayExternalDisplay,[{key:"element",get:function(){return this.X},set:function(t){if(!(t instanceof HTMLVideoElement))throw new TypeError("The element for AirPlay must be a
'+t.bandwidthSeriesSvg+"
"),n+="",t.sessionId&&t.showSessionId&&(n+='Debug Key:
'+t.sessionId+"
"),n+="",t.lastPayloadId&&t.showPayloadId&&(n+='Debug Key:
'+t.lastPayloadId+"
"),n+""},n.templates.icon_airplay=function(t){return''},n.templates.icon_back=function(t){return''},n.templates.icon_broken_heart=function(t){return''},n.templates.icon_card_arrow=function(t){return''},n.templates.icon_cc=function(t){return''},n.templates.icon_chapters=function(t){return''},n.templates.icon_check=function(t){return""},n.templates.icon_circle_info=function(t){return''},n.templates.icon_clock=function(t){return''},n.templates.icon_close_new=function(t){return''},n.templates.icon_close=function(t){return''},n.templates.icon_collections=function(t){return''},n.templates.icon_dolby_vision=function(t){return''},n.templates.icon_embed=function(t){return''},n.templates.icon_facebook=function(t){return''},n.templates.icon_fast_forward=function(t){return''},n.templates.icon_follow=function(t){return''},n.templates.icon_fullscreen=function(t){return''},n.templates.icon_gear=function(t){return''},n.templates.icon_heart=function(t){return''},n.templates.icon_line_arrow=function(t){return''},n.templates.icon_live_viewers=function(t){return''},n.templates.icon_lock=function(t){return''},n.templates.icon_mail=function(t){return''},n.templates.icon_muted=function(t){return''},n.templates.icon_pause=function(t){return''},n.templates.icon_pip=function(t){return''},n.templates.icon_play=function(t){return''},n.templates.icon_prev=function(t){return''},n.templates.icon_replay=function(t){return''},n.templates.icon_share=function(t){return''},n.templates.icon_spin=function(t){return''},n.templates.icon_stereoscopic=function(t){return''},n.templates.icon_tumblr=function(t){return''},n.templates.icon_twitter=function(t){return''},n.templates.icon_unfullscreen=function(t){return''},n.templates.icon_vod_download=function(t){return''},n.templates.icon_vod_rent=function(t){return''},n.templates.icon_vod_subscribe=function(t){return''},n.templates.icon_vod=function(t){return''},n.templates.icon_warning=function(t){return''},n.templates.live_status=function(t){return''},n.templates.live_viewer_count=function(t){var n=' ';return(n+=this.render("icon_live_viewers")||"")+'
0 '},n.templates.logo=function(t){return''},n.templates.menu_list_panel=function(t){var n=' ';for(var i=0;i ',t.items[i].index&&(n+=''+t.items[i].index+""),n+=' '+t.items[i].label+" ";return n+'
'},n.templates.menu=function(t){var n='"},n.templates.menuheader=function(t){var n='"},n.templates.menuoption=function(t){var n='"},n.templates.menuoptionlist=function(t){return''},n.templates.newmenu=function(t){return''},n.templates.menupanel=function(t){return''},n.templates.nudge=function(t){var n=' ';return n+=this.render("icon_fast_forward")||"",n+='
',(n+=this.render("icon_fast_forward")||"")+"
"},n.templates.outer=function(t){var n=' ';return n+=this.render("icon_spin")||"",n+='
This opens in a new window.'},n.templates.sidedock=function(t){var n="";return t.vodButton&&(n+=' '),t.likeButton&&(n+='
"),t.watchLaterButton&&(n+='
"),t.collectionsButton&&(n+='
"),t.shareButton&&(n+='
"),t.vodButton&&(n+="
"),n+""},n.templates.app_redirect=function(t){var n=' ';return t.strings.title&&(n+='
'+t.strings.title+"
"),t.hideRedirectButton||(n+='
"),t.strings.ignoreText&&(n+='
'+t.strings.ignoreText+"
"),t.strings.bottomText&&(n+='
'+t.strings.bottomText+"
"),n+"
"},n.templates.email_capture_disclaimer=function(t){var n='"},n.templates.email_capture_field=function(t){var n="";return t.field.required?(n+=' '):(n+=' '),n+""},n.templates.email_capture_fields=function(t){for(var n="",i=0;i'},n.templates.email_capture_skip=function(t){var n="";return t.positionIsAfter&&(n+=' '),n+="",t.positionIsAfter||(n+=' '),n+""},n.templates.email_capture_start_time=function(t){return' '+t.startTime+"
"},n.templates.email_capture_title=function(t){var n="";return(n+=this.escape(t.title)||"")+""},n.templates.email_capture=function(t){var n='"},n.templates.error=function(t){var n=''+t.aria_label+"
";return t.title&&(n+="
"+t.title+"
"),t.message&&(n+="
"+t.message+"
"),n+"
"},n.templates.help=function(t){var n=''+t.strings.title+'
- ↑
- '+t.strings.volumeUp+'
- ↓
- '+t.strings.volumeDown+'
- →
- '+t.strings.scrubForward+'
- ←
- '+t.strings.scrubBackwards+'
- L
- '+t.strings.like+'
- S
- '+t.strings.share+'
- W
- '+t.strings.watchLater+'
- C
- '+t.strings.captions+'
- H
- '+t.strings.prefs+'
- F
- '+t.strings.fullscreen+"
";return t.onSite||(n+='- V
- '+t.strings.viewOnVimeo+"
"),n+"
"},n.templates.outro_email=function(t){var n=''},n.templates.outro_image=function(t){var n='"},n.templates.outro_link=function(t){var n=' ',t.title&&(n+='
',n+=this.escape(t.title)||"",n+="
"),t.description&&(n+='
',n+=this.escape(t.description)||"",n+="
"),t.text&&t.url&&(n+='
"),t.text2&&t.url2&&(n+='
"),n+"
"},n.templates.outro_nothing=function(t){return''},n.templates.outro_share=function(t){var n='"},n.templates.outro_staticimage=function(t){var n='"},n.templates.outro_text=function(t){return'"},n.templates.outro_videos=function(t){var n=' "}return n+""},n.templates.outro_vod=function(t){var n=' ";var i=t.countries,e=t.country;if(this.helpers.isAvailableInCountry(i,e))if(t.purchased)n+='
'+t.strings.watch+" ";else{if(!t.isComingSoon){n+='
"}(t.isPreorder||t.isComingSoon)&&(n+="
"+t.strings.preRelease+"
")}return n+"
"},n.templates.password=function(t){return''},n.templates.private_locked=function(t){return''+t.strings.title+'
'+t.strings.subtitle+'
"},n.templates.private_unlocked=function(t){return''+t.strings.title+'
'+t.strings.subtitle+'
"},n.templates.share=function(t){var n=''+t.strings.share+'
",t.embed&&(n+=' "),t.shareUrl&&(n+=' "),n+=" ",t.embed&&(n+='
'+t.strings.embedTitle+'
'+t.strings.embedSubtitle+'
",t.customizeEmbed&&(n+=' "),n+="
"),n+"
"},n.templates.webinar_confirmation=function(t){var n=' ';return t.customLogo&&(n+=this.render("email_capture_logo",{url:t.customLogo})||""),t.webinarStartTime&&(n+=this.render("email_capture_start_time",{startTime:t.webinarStartTime})||""),n+'
'+t.strings.thank_you+'
'+t.strings.thank_you_subtitle+"
"},n.templates.webinar_disclaimer=function(t){var n='"},n.templates.webinar_ended=function(t){var n=' ';return t.strings.title&&(n+='
'+t.strings.title+"
"),n+"
"},n.templates.webinar_full=function(t){return' '+t.text+"
"},n.templates.webinar_registration_bypass_btn=function(t){var n="";return t.showWebinarLogin?t.showWebinarLogin&&!t.registrationFull&&(n+=' "):n+=' ",n+""},n.templates.threesixty_reminder=function(t){var n=' ';return t.showArrows&&(n+='
'),n+"
"+t.text+"
"},n.templates.time_series_graph=function(t){return'"},n.templates.title_byline_badge=function(t){var n="";return t.displayBadge&&(n+=" ",t.link&&(n+='"),n+=' '+t.cssClass+"",t.link&&(n+=""),n+=""),n+""},n.templates.title_owner_byline=function(t){var n="";return t.linkToOwner?(n+='',n+=this.escape(t.owner)||"",n+=""):(n+='',n+=this.escape(t.owner)||"",n+=""),n+""},n.templates.title=function(t){var n='"},n.templates.unmute_button=function(t){var n='"},t.exports?t.exports=n:window.Aftershave=n}()}));function id(t,n){var i,e=t.querySelector(".vp-shade"),r=t.querySelector(".vp-spin");function o(){clearTimeout(i),e.classList.add("vp-shade-invisible"),r.classList.add("vp-spin-invisible")}return n.on(Mi.BUFFER_STARTED,(function(){clearTimeout(i),i=setTimeout((function(){e.classList.remove("vp-shade-invisible"),r.classList.remove("vp-spin-invisible")}),600)})),n.on([Mi.BUFFER_ENDED,mc.pr],o),el.on(tl.buffering,(function(){r.classList.remove("vp-spin-invisible")})),el.on([tl.playing,tl.paused],(function(){clearTimeout(i),r.classList.add("vp-spin-invisible")})),el.on(tl.connected,(function(){e.classList.remove("vp-shade-invisible")})),el.on(tl.disconnected,(function(){o()})),{}}var ed=function(t){return function(n){for(var i=arguments.length,e=new Array(i>1?i-1:0),r=1;r=12?"PM":"AM";return(n=(n%=12)||12)+":"+(i=i<10?"0"+i:i)+" "+e}function dd(t,n){var i=Math.floor(t/3600%60),e=Math.floor(t/60%60);if(t=Math.floor(t%60),n){var r=t+" second"+(1===t?"":"s");return e>0&&(r=e+" minute"+(1===e?"":"s")+", "+r),i>0&&(r=i+" hour"+(1===i?"":"s")+", "+r),r}return(i>0?i+":":"")+hd(e,2)+":"+hd(t,2)}function hd(t,n,i){return t=String(t),new Array(n-t.length+1).join(i||"0")+t}function vd(t){return"".concat(ud[t.getDay()],", ").concat(od[t.getMonth()]," ").concat(t.getDate(),", ").concat(t.getFullYear()," ").concat("a las"," ").concat(fd(t))}function pd(t,n,i){var e=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Bt(i)&&(e="leading"in i?!!i.leading:e,r="trailing"in i?!!i.trailing:r),Kc(t,n,{leading:e,maxWait:n,trailing:r})}var md=function(){if(void 0!==L)return L;function t(t,n){var i=-1;return t.some((function(t,e){return t[0]===n&&(i=e,!0)})),i}return(function(){function n(){this.Rd=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.Rd.length},enumerable:!0,configurable:!0}),n.prototype.get=function(n){var i=t(this.Rd,n),e=this.Rd[i];return e&&e[1]},n.prototype.set=function(n,i){var e=t(this.Rd,n);~e?this.Rd[e][1]=i:this.Rd.push([n,i])},n.prototype.delete=function(n){var i=this.Rd,e=t(i,n);~e&&i.splice(e,1)},n.prototype.has=function(n){return!!~t(this.Rd,n)},n.prototype.clear=function(){this.Rd.splice(0)},n.prototype.forEach=function(t,n){void 0===n&&(n=null);for(var i=0,e=this.Rd;i0},t.prototype.connect_=function(){bd&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){bd&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=void 0===n?"":n;yd.some((function(t){return!!~i.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ed=function(t,n){for(var i=0,e=Object.keys(n);i0},t}(),jd=void 0!==N?new N:new md,Ld=function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=kd.getInstance(),e=new Dd(n,i,this);jd.set(this,e)};["observe","unobserve","disconnect"].forEach((function(t){Ld.prototype[t]=function(){var n;return(n=jd.get(this))[t].apply(n,arguments)}}));var Nd=void 0!==wd.ResizeObserver?wd.ResizeObserver:Ld;function Pd(t,n,i){var e=u()?i.parentElement:i,r=pd(o,150);function o(){var t=Rs(e),i=t.width,r=t.height;n.dispatch(function(t,n){return{type:"CONTAINER_RESIZE",payload:{width:t,height:n}}}(i,r))}function u(){return i.parentElement===document.body}function a(t){var n=t.size,r=t.ratio,o=t.bottom;u()&&(e.classList.toggle("vp-center","contain"===n),function(t,n){[].concat(["height","max-width","max-height","bottom"]).map((function(n){return t.style.removeProperty(n)}))}(i),"contain"!==n?o>0&&Ws(i,{height:"calc(100% - ".concat(o,"px)"),bottom:"".concat(o/2,"px")}):Ws(i,o>0?{maxWidth:"calc((100vh - ".concat(o,"px) / ").concat(r,")"),maxHeight:"calc(100vh - ".concat(o,"px)"),height:"calc(".concat(r," * 100vw)"),bottom:"".concat(o/2,"px")}:{maxWidth:"calc(100vh / ".concat(r,")"),height:"calc(".concat(r," * 100vw)")}))}n.watch("ui.layout.bottom",(function(n){t.events.fire(mc.xf,[{bottom:n}])})),n.watch("ui.layout.settings",a),a(n.get("ui.layout.settings")),new Nd(r).observe(e),window.addEventListener("orientationchange",r),t.events.on(mc.sl,r),t.events.on(mc.ll,r),o()}function Fd(t,n,i){this.constructorName="MessageApiError",this.message=t,this.name=n,this.source=i}function Ud(t){return t}function Vd(t){if(!t||""===t)return{};if("object"===V(t))return t;try{return JSON.parse(t)}catch(t){return{}}}function Bd(t){}Fd.prototype=new Error;var Hd={captureException:function(t){},captureMessage:function(t){},captureBreadcrumb:function(){}},zd=Hd,qd=function(t){zd=Object.assign({},Hd,t)},Wd=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"backbone",e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"info";return zd.captureBreadcrumb(t,n,i,e)};function Gd(t){var n=function(t){var n=document.referrer||t;try{n=decodeURIComponent(n)}catch(t){n=unescape(n)}return n}(t),i={},e={},o={parseMessage:Vd,buildMessage:Ud,logError:Bd},u={},a={get methods(){return i},extendMethods:function(){for(var t=arguments.length,n=new Array(t),e=0;e1?n-1:0),e=1;e-1))try{var a=function(t,n){if(!t)return null;var i=Object.getOwnPropertyDescriptor(n,t);if(i&&"function"==typeof i.value)return i.value;if(i&&"function"==typeof i.get)return i.get;var e=t.substr(0,3),r=t.substr(3,1).toLowerCase()+t.substr(4);return i=Object.getOwnPropertyDescriptor(n,r),"get"===e&&i&&"function"==typeof i.get?i.get:"set"===e&&i&&"function"==typeof i.set?i.set:null}(e,i);if(!a)throw new Fd("“".concat(t,"” is not a valid method. Valid methods are: ").concat(function(t){return Object.keys(t).reduce((function(n,i){var e=Object.getOwnPropertyDescriptor(t,i);return"function"==typeof e.value?(n.push(i),n):("function"==typeof e.get&&n.push("get"+i.charAt(0).toUpperCase()+i.slice(1)),"function"==typeof e.set&&n.push("set"+i.charAt(0).toUpperCase()+i.slice(1)),n)}),[]).sort()}(i).join(", "),"."),"TypeError",e);Wd("API message received",n,"api"),r.resolve(a.call(t,u)).then((function(t){return c({method:e,value:null==t?u:t})})).catch(o.logError)}catch(t){o.logError(t)}}}),!1),a}function Kd(t){return t.account_type&&"basic"!==t.account_type&&!/_lapsed|_expired/.test(t.account_type)}var Yd=self!==top,Jd=function(){var t=document.createElement("video"),n={request:["requestFullscreen","webkitRequestFullscreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],exit:["exitFullscreen","webkitCancelFullScreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],enabled:["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],element:["fullscreenElement","webkitFullscreenElement","webkitCurrentFullScreenElement","mozFullScreenElement","msFullscreenElement"],change:["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],error:["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"]},i={};for(var e in n)for(var r=0,o=n[e].length;r0){var i=rh.pop();n=n||i.element,i.error.call(n,t),ch.onerror(n,t),Qd($d.ERROR,n,t)}},ch={request:function(t,n,i,e){if(t=t||document.body,rh.push({element:t,enter:n||eh,exit:i||eh,error:e||eh}),void 0===Jd.request)return oh(t);if(Yd&&!1===document[Jd.enabled])return oh(t);try{t[Jd.request]()}catch(n){sh("not_enabled",t)}},exit:function(){!document[Jd.exit]&&ch.element?ch.element[Jd.exit]():document[Jd.exit]()},toggle:function(t,n,i,e){ch.element?ch.exit():ch.request(t,n,i,e)},videoEnabled:function(t){if(ch.enabled)return!0;var n=nh(t=t||document.body);return!(!n||void 0===n.webkitSupportsFullscreen)&&(n.readyState-1&&Zd[t].splice(i,1)})),onenter:eh,onexit:eh,onchange:eh,onerror:eh};try{Object.defineProperties(ch,{element:{enumerable:!0,get:function(){return ih&&ih.webkitDisplayingFullscreen?ih:document[Jd.element]||null}},enabled:{enumerable:!0,get:function(){return document[Jd.enabled]||!1}}})}catch(t){ch.element=null,ch.enabled=!1}function lh(t){return"string"==typeof(t=t.replace("#",""))&&(3===t.length||6===t.length)&&!isNaN(parseInt(t,16))}function fh(t){var n=/rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(,\s*([\d.]+))?\)/.exec(t);if(!n)throw new Error("Invalid rgb value");return{red:parseInt(n[1],10),green:parseInt(n[2],10),blue:parseInt(n[3],10),alpha:parseFloat(n[5])||1}}function dh(){for(var t=arguments.length,n=new Array(t),i=0;i=0)return this.rgba=fh(n[0]),this;if(!lh("".concat(n[0])))throw new Error("Invalid hex value");return this.hex=n[0],this}if(3===n.length||4===n.length){for(var r=0;r<3;r++)if(isNaN(parseInt(n[r],10))||parseInt(n[r],10)<0||parseInt(n[r],10)>255)throw new Error("Invalid rgb value");if(n[3]&&parseFloat(n[3])<0||parseFloat(n[3])>1)throw new Error("Invalid alpha value");return this.rgba={red:n[0],green:n[1],blue:n[2],alpha:parseFloat(n[3])||1},this}throw new Error("Invalid color")}function hh(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t||"null"===t||0===n.length)return{track:null};var i=t.split("."),e=tt(i,2),r=e[0],o=e[1],u=r.split(/[-_]/),a=tt(u,1),s=a[0],c=r!==s,l=n.filter((function(t){return c&&t.language===r||t.language===s})).sort((function(t,n){var i=2*(t.language===s&&t.kind===o)+2*(t.language===r)+1*(t.kind===o);return 2*(n.language===s&&n.kind===o)+2*(n.language===r)+1*(n.kind===o)-i}));return l.length>0?{track:l[0],exactMatch:l[0].language===r&&l[0].kind===o}:{track:null}}function vh(t,n){switch(t.view){case 2:throw new Fd("The video is private.","PrivacyError",n);case 4:throw new Fd("The video is password-protected. The viewer must enter the password first.","PasswordError",n);case 7:throw new Fd(t.message,"NotFoundError",n)}}function ph(t){for(var n=[],i=0;it.config.video.duration)throw new Fd("Cue point time must be positive number less than the duration of the video (".concat(Vs(t.config.video.duration),")."),"RangeError","addCuePoint");try{var e=t.backbone.addCuePoint(n,i);return setTimeout((function(){o.fire(mc.Qc,e)}),0),e.id}catch(t){if("CuePointsNotSupported"===t.name)throw new Fd("Cue points are not supported in the current player.","UnsupportedError","addCuePoint");throw new Fd("Unable to add cue point","InvalidCuePoint","addCuePoint")}},removeCuePoint:function(n){var i=t.backbone.cuePoints.filter((function(t){return t.id===n}))[0];if(!i)throw new Fd("Cue point “".concat(n,"” was not found."),"InvalidCuePoint","removeCuePoint");t.backbone.removeCuePoint(i),setTimeout((function(){o.fire(mc.tl,i)}),0)},enableTextTrack:function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=("text_tracks"in t.config.request?t.config.request.text_tracks:[]).map((function(t){return t.language=t.lang,t})),a=u.some((function(t){return t.language.toLowerCase()===n.toLowerCase()}));if(!a)throw new Fd("There are no tracks for “".concat(n.toUpperCase(),"”."),"InvalidTrackLanguageError","enableTextTrack");var s=e?"".concat(n,".").concat(e):n,c=hh(s,u),l=c.track;if(!l||e&&l.kind!==e)throw new Fd("There are no ".concat(e," tracks for “").concat(n.toUpperCase(),"”."),"InvalidTrackError","enableTextTrack");return o.fire(oc.oc,l.id),i<3?null:new r((function(t,n){o.once(mc.Zc,(function(n,i){t({label:n.label,language:n.language,kind:n.kind})}))}))},disableTextTrack:function(){o.fire(oc.uc)},toggleFullscreen:function(t){var n={not_supported:{name:"UnsupportedError",msg:"Fullscreen is not supported at all or for this element."},not_enabled:{name:"Error",msg:"The request was made from an iframe that does not allow fullscreen."},not_allowed:{name:"NotAllowedError",msg:"The request failed, probably because it was not called from a user-initiated event."}};return new r((function(i,e){if(!ch.element===t)return ch.on("enter",(function t(){ch.off("enter",t),i()})),ch.on("error",(function i(r,o){ch.off("error",i);var u=n[o]||n.not_supported;e(new Fd(u.msg,u.name,"".concat(t?"request":"exit","Fullscreen")))})),void o.fire(mc.Lc);i()}))},requestFullscreen:function(){return p.toggleFullscreen(!0)},exitFullscreen:function(){return p.toggleFullscreen(!1)},get fullscreen(){return!!ch.element},requestPictureInPicture:function(){return new r((function(n,i){o.once(Ai.ENTER_PICTURE_IN_PICTURE,n),"picture-in-picture"!==t.backbone.presentationMode&&(t.backbone.presentationMode="picture-in-picture")}))},exitPictureInPicture:function(){return new r((function(n,i){o.once(Ai.LEAVE_PICTURE_IN_PICTURE,n),"picture-in-picture"===t.backbone.presentationMode&&(t.backbone.presentationMode="inline")}))},get pictureInPicture(){return"picture-in-picture"===t.backbone.presentationMode},get autopause(){return!!t.config.embed.autopause},set autopause(n){t.config.embed.autopause=!!n},get chromecasting(){return!!el.currentSession},get color(){return t.config.embed.color.replace("#","")},set color(n){if(t.config.embed.settings.color&&!t.config.embed.on_site)throw new Fd("The creator of the video has chosen to always use ".concat(new dh(t.config.embed.color).hex,"."),"EmbedSettingsError","setColor");try{var i=new dh(n);o.fire(oc.Qs,i.hex)}catch(t){throw new Fd("The color should be 3- or 6-digit hex value.","TypeError","setColor")}var e=new dh(30,30,30,.9);if(e.contrast(i).ratio<3){var r=i.clone().lighten(5,3,e);throw new Fd("".concat(i.hex," does not meet minimum contrast ratio. We recommend using brighter colors. (You could try ").concat(r.hex," instead.) See WCAG 2.0 guidelines: http://www.w3.org/TR/WCAG/#visual-audio-contrast"),"ContrastError","setColor")}},get cuePoints(){return t.backbone.cuePoints.map((function(t){return{time:t.time,data:t.data,id:t.id}}))},get currentTime(){return t.currentTime},set currentTime(n){if(n=parseFloat(n),isNaN(n)||n<0||n>t.config.video.duration)throw new Fd("Seconds must be a positive number less than the duration of the video (".concat(Vs(t.config.video.duration),")."),"RangeError","setCurrentTime");return o.fire(bc.qs),o.fire(oc.qs,null,n),o.fire(mc.Bl),i<3?null:new r((function(t,n){o.once(Ai.SEEKED,(function(n){var i=n.currentTime;t(i)}))}))},get duration(){return Vs(t.config.video.duration)},get ended(){return!!t.backbone.ended},get loop(){return!!t.config.embed.loop},set loop(t){o.fire(oc.$s,t)},set muted(n){t.backbone.muted=n},get muted(){return t.backbone.muted},get paused(){return!(t.backbone&&"paused"in t.backbone&&!t.backbone.paused)},get buffered(){return ph(t.backbone.buffered)},get played(){return ph(t.backbone.played)},get seekable(){return ph(t.backbone.seekable)},get seeking(){return t.backbone.seeking},get playbackRate(){return t.backbone?t.backbone.playbackRate:1},set playbackRate(n){if(!t.config.embed.settings.speed)throw new Fd("Setting the playback rate is not enabled for this video.","Error","setPlaybackRate");if(isNaN(n)||n>2)throw new Fd("Playback rate should be a number below or equal to ".concat(2,"."),"RangeError","setPlaybackRate");o.fire(oc.bc,n)},get textTracks(){return(t.backbone?t.backbone.video.textTracks:[]).map((function(t){return{label:t.label,language:t.language,kind:t.kind,mode:t===f?"showing":"disabled"}}))},get videoEmbedCode(){return t.config.video.embed_code},get videoHeight(){return t.backbone.videoHeight||t.config.video.height},get videoId(){return t.config.video.id},get videoTitle(){return t.config.video.title},get videoWidth(){return t.backbone.videoWidth||t.config.video.width},get videoUrl(){if(!t.config.video.url)throw new Fd("The URL is not available because of the video’s privacy settings.","PrivacyError","getVideoUrl");return t.config.video.url},get volume(){var n=Vs(t.config.request.cookie.volume);return 1===i?Math.round(100*n):n},set volume(t){if(t=parseFloat(t),1===i&&(t/=100),isNaN(t)||t<0||t>1)throw new Fd("Volume should be a number between 0 and 1.","RangeError","setVolume");d=t,o.fire(oc.Ws,t,!0)},get qualities(){return t.backbone.qualities},get quality(){return t.backbone.quality},set quality(n){if(!Kd(t.config.video.owner))throw new Fd("Setting the quality is not enabled for this video.","Error","setQuality");n=n.toLowerCase();var i=t.backbone.qualities.map((function(t){return t.id}));if(!i.includes(n))throw new Fd("“".concat(n,"” is not a valid quality. Valid qualities are: ").concat(i.join(", "),"."),"TypeError","on");t.backbone.quality=n},_loadVideo:function(n,i){return t.loadVideo(n,i)},get _like(){return!!t.config.user.liked},set _like(n){if(t.config.embed.on_site){if(t.config.user.liked===n)return;o.fire(mc.fl,n)}},get _watchLater(){return!!t.config.user.watch_later},set _watchLater(n){if(t.config.embed.on_site){if(t.config.user.watch_later===n)return;o.fire(mc.dl,n)}},get currentChapter(){var n=t.backbone.currentChapterID;if(!n)return null;var i=U(t.backbone.chapters),e=i.findIndex((function(t){return n===t.id}));return{startTime:i[e].startTime,title:i[e].text,index:e+1}},get chapters(){return U(t.backbone.chapters).map((function(t,n){return{startTime:t.startTime,title:t.text,index:n+1}}))},_addChapter:function(n,i){if(n=parseFloat(n),isNaN(n)||n<0||n>t.config.video.duration)throw new Fd("Chapter timecode must be positive number less than the duration of the video (".concat(Vs(t.config.video.duration),")."),"RangeError","_addChapter");try{t.backbone.addChapter(n,i)}catch(t){if("ChaptersNotSupported"===t.name)throw new Fd(t.message,"UnsupportedError","_addChapter");throw new Fd("Unable to add chapter","InvalidChapter","_addChapter")}},_removeChapter:function(n){var i;try{i=t.backbone.chapters.getCueById(n)}catch(t){throw new Fd("Chapters are not supported in this browser.","UnsupportedError","_removeChapter")}if(!i)throw new Fd("Chapter was not found.","InvalidChapter","_removeChapter");try{t.backbone.removeChapter(i)}catch(t){if("ChaptersNotSupported"===t.name)throw new Fd("Chapters are not supported in this browser.","UnsupportedError","_removeChapter");throw new Fd("Unable to remove chapter","InvalidChapter","_removeChapter")}},_addCard:function(t){o.fire(oc._addCard,t)},_removeCard:function(t){o.fire(oc._removeCard,t)},_setOutro:function(n,i){t.config.embed.outro!==n?(o.fire(oc._hideOutro),setTimeout((function(){t.config.embed.outro=n,o.fire(oc.cc,n,i)}),400)):o.fire(oc.cc,n,i)},_hideOutro:function(){o.fire(oc._hideOutro)},_setEmailCapture:function(n){if(n){var i=n.customFields?t.config.embed.email_capture_form||{}:t.config.embed.email||{};i.position=n.position.toLowerCase(),i.timecode=n.timecode,n.nohide=!0,n.noblur=!0,n.nofocus=ba(n,"nofocus",!0),p._showOverlay("email-capture",n)}else p._unsetEmailCapture()},_updateEmailCapture:function(n){var i;n.custom_fields?(Fu(null==(i=t.config.video.webinar)?void 0:i.registration_form)||(t.config.video.webinar.registration_form=n),o.fire(oc._updateEmailCapture,n)):this._setEmailCapture(n)},_updateWebinarStartTime:function(n){t.config.video.webinar&&(t.config.video.webinar.scheduled_start_time=n),o.fire(oc._updateWebinarStartTime,n)},_setActiveEmailCapturePage:function(t){o.fire(oc.Ks,t)},_unsetEmailCapture:function(){t.config.embed.outro&&(o.fire(oc._hideOutro),delete t.config.embed.outro),t.config.embed.email&&(o.fire(oc._hideOverlay,{unmakeModal:!0}),delete t.config.embed.email)},_hideOverlay:function(t){o.fire(oc._hideOverlay,{name:t,unmakeModal:!0})},_showOverlay:function(t,n){o.fire(oc._showOverlay,t,n)},_fireEvent:function(){for(var t=arguments.length,n=new Array(t),i=0;i h1")),n=Rs(document.querySelector(".sub-title")),i=Rs(document.querySelector(".vp-portrait")),e=Math.max(t.width,n.width)+i.width,r=Math.max(i.height,t.height+n.height);return{top:10,left:10,width:Math.max(200,e),height:Math.max(60,r)}},get sidedock(){return{top:10,left:n-10-36,width:36,height:118}},get controls(){var t=e.customLogo,r=Math.max(60,t.height);return{height:r,top:i-10-r,left:10,width:n-20}},get customLogo(){var t=document.querySelector(".custom-logo"),e=t?Rs(t):{width:0,height:0};return{top:i-10-e.height,left:n-10-e.width,width:e.width,height:e.height}}};return e},set _lowLatencyMode(n){t.backbone.lowLatencyMode=n},get _lowLatencyMode(){return t.backbone.lowLatencyMode},get _presentationDelay(){return t.backbone.presentationDelay},set _presentationDelay(n){t.backbone.presentationDelay=n},get _liveLatency(){return t.backbone.latency},get _downloadSpeed(){return t.backbone.downloadSpeed},get _backbone(){return t.backbone},addEventListener:function(){p.on.apply(p,arguments)},removeEventListener:function(){p.off.apply(p,arguments)},seekTo:function(t){p.currentTime=t},changeColor:function(t){p.color=t}},m={addCuePoint:function(t){var n=t.time,i=t.data;return p.addCuePoint(n,i)},enableTextTrack:function(t){var n=t.language,i=t.kind,e=void 0===i?null:i;p.enableTextTrack(n,e)}};function b(t,i){n&&n.emit(t,i),u.fire(t,i)}var w=function(t,n){return function(){var i=n?n.apply(void 0,arguments):void 0;b(t,i)}};function g(t){var n=t.currentTime,i=t.duration,e=t.timeProgress;return{seconds:Vs(n),percent:Vs(e),duration:Vs(i)}}function y(t){return{playbackRate:t}}function _(){b(gc.LOADED,l?null:(l=!0,{id:t.config.video.id}))}function k(t){return E(function(t){switch(t){case"BrowserNotSupported":case"FilesNotPlayable":case"MediaSrcNotSupportedError":return new Fd("This video is not supported in this browser.","NotSupportedError");case"FileError":return new Fd("There was an error loading the files for this video.","FileError")}return new Fd("An error occurred during playback.","PlaybackError")}(c=t))}function E(t){var n={message:"An error occurred.",name:"Error",method:t.source};return"MessageApiError"===t.constructorName&&(n={message:t.message,name:t.name,method:t.source}),n}return function(){if(!t.config.embed.on_site){h(t.config.embed.api);var i=t.config.request.referrer;(n=new Gd(i)).listeners=Ks(gc).reduce((function(t,n){return G(G({},t),{},q({},n,!1))}),{}),n.listeners[gc.READY]=!0,n.listeners[gc.ERROR]=!0,n.filter((function(t){return n.listeners[t]}))}}(),function(){if(n){var e=ed({},p,m);n.extendMethods(e),n.hooks({logError:function(t){b(gc.ERROR,E(t))},parseMessage:function(t){if(!t||""===t)return{};if(ni(t))return h(3),t;try{var n=JSON.parse(t);return h(2),n}catch(t){return h(null),b(gc.ERROR,"The Vimeo Froogaloop v1 API is no longer supported.\n Please follow the upgrade instructions here: https://goo.gl/mueGRR"),{}}},buildMessage:function(n){var e;(null==(e=t.config.embed)?void 0:e.player_id)&&(n.player_id=t.config.embed.player_id);try{2===i&&(n=function(t){if(t.event){for(var n in yc)if(yc[n]===t.event){t.event=n;break}"cuechange"===t.event&&(t.data.text=t.data.cues[0].text,t.data.html=t.data.cues[0].html,delete t.data.cues)}return JSON.stringify(t)}(n)),ni(n)&&"ready"===n.event&&(n=JSON.stringify(n))}catch(t){}return n}})}}(),o.on(Mi.BUFFER_STARTED,w(gc.BUFFER_START)),o.on(Mi.BUFFER_ENDED,w(gc.BUFFER_END)),o.on(Mi.CUE_POINT,w(gc.CUEPOINT,(function(t){return{time:t.time,data:t.data,id:t.id}}))),o.on(ou,w(gc.CUE_CHANGE,(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=t||{},e=i.language,r=void 0===e?null:e,o=i.label,u=void 0===o?null:o,a=i.kind,s=void 0===a?null:a;return{label:u,language:r,kind:s,cues:n}}))),o.on(mc.qc,w(gc.CHAPTER_CHANGE,(function(n){var i=U(t.backbone.chapters).findIndex((function(t){return n===t.id}));return i>=0?{startTime:t.backbone.chapters[i].startTime,title:t.backbone.chapters[i].text,index:i+1}:null}))),o.on(mc.Sc,w(gc.ENDED,(function(){return s=!1,{seconds:Vs(t.config.video.duration),percent:1,duration:Vs(t.config.video.duration)}}))),o.on(mc.pr,w(gc.PAUSE,(function(n){return s=!1,{seconds:Vs(n),percent:Vs(n/t.config.video.duration),duration:Vs(t.config.video.duration)}}))),o.on(mc.Rc,w(gc.PLAYBACK_RATE_CHANGE,y)),o.on(mc.Rc,w(gc.RATE_CHANGE,y)),o.on(mc.Zc,w(gc.TEXT_TRACK_CHANGE,(function(t){f=t;var n=t||{},i=n.language,e=void 0===i?null:i,r=n.label,o=void 0===r?null:r,u=n.kind;return{label:o,language:e,kind:void 0===u?null:u}}))),o.on(mc.Ac,w(gc.VOLUME_CHANGE,(function(t){return{volume:Vs(t)}}))),o.on(mc.Jc,w(gc.CONTROL_BAR_VISIBILITY_CHANGED,(function(t){return{visible:t}}))),o.on(mc.Zl,(function(t){d&&setTimeout((function(){o.fire(oc.Ws,d,!0)}),0),t&&_()})),o.on(mc.yc,(function(t){var n=k(t);a&&b(gc.ERROR,n)})),o.on(mc.sl,w(gc.FULLSCREENCHANGE,(function(){return{fullscreen:!0}}))),o.on(mc.ll,w(gc.FULLSCREENCHANGE,(function(){return{fullscreen:!1}}))),o.on(mc.xc,w(gc.QUALITY_CHANGE,(function(t){return{quality:t}}))),o.on(mc.Xf,w(gc.AD_STARTED)),o.on(mc.Gf,w(gc.AD_COMPLETED)),o.on(mc.Yf,w(gc.AD_ERROR)),o.on(mc.Zf,w(gc.AD_SKIPPED)),o.on(mc.Qf,w(gc.AD_ALL_COMPLETED)),o.on(mc.Kf,w(gc.AD_CLICKED)),o.once(mc.Oe,(function(){a=!0,b(gc.READY),c&&(b(gc.ERROR,k(c)),c=null)})),o.on(mu.EVENT_ENDED,w(gc.LIVE_EVENT_ENDED)),o.on(mu.EVENT_STARTED,w(gc.LIVE_EVENT_STARTED)),o.on(mu.STREAM_OFFLINE,w(gc.LIVE_STREAM_OFFLINE)),o.on(mu.STREAM_ONLINE,w(gc.LIVE_STREAM_ONLINE)),o.on(Oi.CAMERA_CHANGE,w(gc.CAMERA_CHANGE,(function(t){return t}))),o.on(Oi.MOTION_END,w(gc.MOTION_END)),o.on(Oi.MOTION_START,w(gc.MOTION_START)),o.on(Oi.WEBVR_HARDWARE_AVAILABLE,w(gc.WEBVR_HARDWARE_AVAILABLE)),o.on(Oi.WEBVR_ENTER,w(gc.ENTER_WEBVR)),o.on(Oi.WEBVR_EXIT,w(gc.EXIT_WEBVR)),o.on(Oi.SPATIAL_UNSUPPORTED,w(gc.SPATIAL_UNSUPPORTED)),o.on(Ai.PLAY,w(gc.PLAY,(function(n){return s?null:(s=!0,{seconds:Vs(n),percent:Vs(n/t.config.video.duration),duration:Vs(t.config.video.duration)})}))),o.on(Ai.PLAYING,w(gc.PLAYING,(function(){return s?{seconds:Vs(t.currentTime),percent:Vs(t.currentTime/t.config.video.duration),duration:Vs(t.config.video.duration)}:null}))),o.on(Ai.PROGRESS,w(gc.PROGRESS,(function(t){var n=t.loaded,e=t.duration,r=t.loadProgress,o={seconds:Vs(n),percent:Vs(r),duration:Vs(e)};return i<3&&(o.bytesLoaded=-1,o.bytesTotal=-1),o}))),o.on(Ai.SEEKING,w(gc.SEEKING,g)),o.on(Ai.SEEKED,w(gc.SEEKED,g)),o.on(Ai.TIME_UPDATE,w(gc.TIME_UPDATE,(function(t){var n=t.currentTime,i=t.duration,e=t.timeProgress;return{seconds:Vs(n),percent:Vs(e),duration:Vs(i)}}))),o.on(Ai.LOADED_METADATA,w(gc.LOADED_METADATA)),o.on(Ai.DURATION_CHANGE,w(gc.DURATION_CHANGE,(function(n){return{duration:t.backbone.duration}}))),o.on(Ai.WAITING,w(gc.WAITING)),o.on(Ai.LOADED_DATA,w(gc.LOADED_DATA)),o.on(Ai.LOAD_START,w(gc.LOAD_START)),o.on(Ai.RESIZE,w(gc.RESIZE,(function(){return{videoWidth:t.backbone.videoWidth,videoHeight:t.backbone.videoHeight}}))),o.on(Ai.ENTER_PICTURE_IN_PICTURE,w(gc.ENTER_PICTURE_IN_PICTURE)),o.on(Ai.LEAVE_PICTURE_IN_PICTURE,w(gc.LEAVE_PICTURE_IN_PICTURE)),o.on(tl.connected,w(gc.CHROMECAST_CONNECTED)),o.on(oc.Js,(function(){c=null,l=!1})),t.doNotTrackEnabled||(o.on(mc.pf,(function(){b(gc.EMAIL_CAPTURE)})),o.on(mc.mf,(function(){b(gc.EMAIL_CAPTURE_FAILED)}))),o.on(mc.xf,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n&&(n.listeners[gc.SPACE_CHANGE]=!0,b(gc.SPACE_CHANGE,t))})),o.fire(mc.Pf),p}Jd.change&&document.addEventListener(Jd.change,(function(t){if(ch.onchange(ch.element),Qd($d.CHANGE,ch.element),ch.element){var n=rh[rh.length-2];n&&n.element===ch.element?ah():uh(ch.element)}else ah()}),!1),document.addEventListener("webkitbeginfullscreen",(function(t){var n=!0;if(rh.length>0)for(var i=0,e=rh.length;i=100)););return this},darken:function(t,n,i){if(this.hsl={hue:this.hue,saturation:this.saturation,lightness:this.lightness-t},n&&i)for(var e=i.contrast(this).ratio;e=1)return this;var n=this.clone();return n.rgba={red:n.red*this.alpha+t.red*t.alpha*(1-this.alpha),green:n.green*this.alpha+t.green*t.alpha*(1-this.alpha),blue:n.blue*this.alpha+t.blue*t.alpha*(1-this.alpha),alpha:n.alpha+t.alpha*(1-this.alpha)},n},contrast:function(t){var n=this.alpha;if(n>=1){t.alpha<1&&(t=t.overlayOn(this));var i=this.luminance+.05,e=t.luminance+.05,r=i/e;return e>i&&(r=1/r),{ratio:r=Math.round(10*r)/10,error:0,min:r,max:r}}var o=this.overlayOn(dh.white).contrast(t).ratio,u=this.overlayOn(dh.black).contrast(t).ratio,a=Math.max(o,u),s={red:Math.min(Math.max(0,(t.red-this.red*n)/(1-n)),255),green:Math.min(Math.max(0,(t.green-this.green*n)/(1-n)),255),blue:Math.min(Math.max(0,(t.blue-this.blue*n)/(1-n)),255)},c=this.clone();c.rgb=s;var l=this.overlayOn(c).contrast(t).ratio;return{ratio:Math.round((l+a)/2*10)/10,error:Math.round((a-l)/2*10)/10,min:l,max:a,closest:c,farthest:u===a?dh.white:dh.black}},wcagAACompliant:function(t){return this.contrast(t).ratio>=4.5},wcagAAACompliant:function(t){return this.contrast(t).ratio>=7},yiqContrastColor:function(){return this.yiq>=120?new dh(0,0,0):new dh(255,255,255)}},dh.hexToRgb=function(t){var n;return 3===(t=String(t)).length||4===t.length?(n=/^#?([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(t))&&(n[1]+=n[1],n[2]+=n[2],n[3]+=n[3]):n=/^#?([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(t),n?{red:parseInt(n[1],16),green:parseInt(n[2],16),blue:parseInt(n[3],16),alpha:1}:null},dh.rgbToHex=function(t,n,i){return"#"+((1<<24)+(Math.round(t)<<16)+(Math.round(n)<<8)+Math.round(i)).toString(16).slice(1)},dh.rgbToHsl=function(t,n,i){t/=255,n/=255,i/=255;var e,r=Math.max(t,n,i),o=Math.min(t,n,i),u=(r+o)/2,a=u;if(r===o)return{hue:0,saturation:0,lightness:100*a};var s=r-o;return e=a>.5?s/(2-r-o):s/(r+o),r===t?u=(n-i)/s+(n1&&(i-=1),6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+6*(2/3-i)*(n-t):t}if(t/=360,i/=100,0==(n/=100))return{red:Math.floor(255*i),green:Math.floor(255*i),blue:Math.floor(255*i)};var r=i<.5?i*(1+n):i+n-n*i,o=2*i-r;return{red:Math.floor(255*e(o,r,t+1/3)),green:Math.floor(255*e(o,r,t)),blue:Math.floor(255*e(o,r,t-1/3))}},dh.hslToHex=function(t,n,i){var e=dh.hslToRgb(t,n,i);return dh.rgbToHex(e.red,e.green,e.blue)},dh.white=new dh("fff"),dh.black=new dh("000");var bh=function(){function t(t){this.alertTextElement=t.querySelector(".vp-text-alert-wrapper"),this.alertContentElement=this.alertTextElement.querySelector(".vp-alert-text")}var n=t.prototype;return n.show=function(t){this.alertContentElement.innerHTML=t,this.alertContentElement.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")},n.hide=function(){this.alertContentElement.classList.add("hidden"),this.alertTextElement.classList.add("hidden")},t}(),wh=Object.prototype.hasOwnProperty,gh=ki((function(t,n){if(Ln(n)||Wn(n))hi(n,Uu(n),t);else for(var i in n)wh.call(n,i)&&di(t,i,n[i])})),yh=i((function(t){!function(){var i="undefined"!=typeof window&&window===this?this:void 0!==n&&null!=n?n:this,e="function"==typeof Object.defineProperties?Object.defineProperty:function(t,n,i){t!=Array.prototype&&t!=Object.prototype&&(t[n]=i.value)};function o(){o=function(){},i.Symbol||(i.Symbol=a)}var u=0;function a(t){return"jscomp_symbol_"+(t||"")+u++}function s(){o();var t=i.Symbol.iterator;t||(t=i.Symbol.iterator=i.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&e(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return c(this)}}),s=function(){}}function c(t){var n=0;return function(t){return s(),(t={next:t})[i.Symbol.iterator]=function(){return this},t}((function(){return nn||(clearTimeout(t.j),t.j=setTimeout((function(){var n=performance.timing.navigationStart,i=p(t.g,t.b);if(n=(window.a&&window.a.A?1e3*window.a.A().C-n:0)||performance.timing.domContentLoadedEventEnd-n,t.u)var e=t.u;else e=performance.timing.domContentLoadedEventEnd?(e=performance.timing).domContentLoadedEventEnd-e.navigationStart:null;var r=performance.now();null===e&&w(t,Math.max(i+5e3,r+1e3));var o=t.a;(i=5e3>r-i||5e3>r-(i=o.length?o[o.length-1].end:n)?null:Math.max(i,e))&&(t.s(i),clearTimeout(t.j),t.i=!1,t.c&&t.c.disconnect(),t.h&&t.h.disconnect()),w(t,performance.now()+1e3)}),n-performance.now()),t.v=n)}m.prototype.getFirstConsistentlyInteractive=function(){var t=this;return new r((function(n){t.s=n,"complete"==document.readyState?b(t):window.addEventListener("load",(function(){b(t)}))}))},m.prototype.m=function(t){this.f.set(t,performance.now())},m.prototype.l=function(t){this.f.delete(t)},m.prototype.B=function(){w(this,performance.now()+5e3)},i.Object.defineProperties(m.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return[].concat(f(this.f.values()))}}});var g={getFirstConsistentlyInteractive:function(t){return t=t||{},"PerformanceLongTaskTiming"in window?new m(t).getFirstConsistentlyInteractive():r.resolve(null)}};t.exports?t.exports=g:window.ttiPolyfill=g}()})),_h=G(G({},Oc),{},{ALERT_DISPLAYED:"alert-displayed",ALERT_HIDDEN:"alert-hidden",CAPTIONS_ENABLED:"captions-enabled",CAPTIONS_DISABLED:"captions-disabled",CHROMECAST_CONNECTED:"chromecast-connected",CHROMECAST_DISCONNECTED:"chromecast-disconnected",DRM_KEY_SWITCH:"drm-key-switch",ERROR_LINK_PRESSED:"error-link-pressed",MEDIASESSION_PLAY:"mediasession-play",MEDIASESSION_PAUSE:"mediasession-pause",MEDIASESSION_SEEK_FORWARD:"mediasession-seekforward",MEDIASESSION_SEEK_BACKWARD:"mediasession-seekbackward",SLATE_DISPLAYED:"slate-displayed",CLICK:"click",VIDEO_DURATION_MISMATCH:"video-duration-mismatch",VIDEO_FULLSCREEN_CHANGE:"video-fullscreen-change",VIDEO_MANIFEST_LOADED:"video-manifest-loaded",VIDEO_MANIFEST_TIMEOUT:"video-manifest-timeout",VIDEO_PLAYBACK_RATE_CHANGED:"video-playback-rate-changed",VIDEO_STREAM_CHANGE:"video-stream-change",VIDEO_SWITCH_BACK_TO_AUTO:"video-switch-back-to-auto",VIDEO_SWITCH_FROM_AUTO:"video-switch-from-auto",DOWNLOAD_TIMEOUT:"video-download-timeout",AD_BUFFERING:"ad-buffering",AD_COMPLETE:"ad-complete",AD_CLICKED:"ad-clicked",AD_ERROR:"ad-error",AD_PAUSED:"ad-paused",AD_RESUMED:"ad-resumed",AD_STARTED:"ad-started",AD_SKIPPED:"ad-skipped",OUTRO_VIDEO_SELECTED:"outro-video-selected",WEBVR_HARDWARE_AVAILABLE:"webvr-hardware-available",ENTER_WEBVR:"enter-webvr",EXIT_WEBVR:"exit-webvr",WEBINAR_REGISTRANT_BLOCKED:"webinar-registrant-blocked",WEBINAR_REGISTRANT_UNBLOCKED:"webinar-registrant-unblocked"});function kh(t){return Ys("av01",t)?"AV1":Ys("dvh1",t)?"HEVC_DVH1":Ys("hvc1",t)?"HEVC":Ys("avc1",t)?"AVC":null}function Eh(t){return Ys("mp4a",t)?"AAC":Ys("opus",t)?"OPUS":null}function Th(t,n){var i,e;return(null==t||null==(i=t.request)||null==(e=i.ab_tests)?void 0:e[n])?t.request.ab_tests[n]:{}}function Sh(t,n,i,e){var o,u,a,s,c,l=function(t){return function(){for(var n=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:{};it(n)||((i=Object.assign(u?u.globalProperties():{},et(),i)).name=n,t.events.fire(mc.td,{name:n,data:i}),o.log(i).catch((function(t){})))}function it(n){var i,e,r,o;switch(n){case _h.VIDEO_SEEK:case _h.VIDEO_SEEKED:return(null==(i=t.config.embed)?void 0:i.loop)||(null==(e=t.config.embed)||null==(r=e.settings)?void 0:r.background);case _h.VIDEO_PLAYBACK_RATE_CHANGED:return null==(o=t.config.video.live_event)?void 0:o.low_latency;default:return!1}}function et(){return Object.assign(function(){var n,e,r,o,u,a,s={autoplay:1===t.config.embed.autoplay,background:!!t.config.embed.settings.background,clip_id:t.config.video.id,context:t.config.embed.context,device_pixel_ratio:window.devicePixelRatio||1,drm:!!t.config.request.drm,embed:!t.config.embed.on_site,is_mod:!!t.config.user.mod,is_spatial:!(!Ji.spatialPlayback||!t.config.video.spatial),logged_in:!!t.config.user.logged_in,looping:!!t.config.embed.loop,owner_id:null==(n=t.config.video)||null==(e=n.owner)?void 0:e.id,product:Nc(t),referrer:t.config.request.referrer,session_id:t.config.request.session,stayed_on_auto:m,version:Fc(t.config),version_backend:t.config.request.build.backend,viewer_id:null==(r=t.config.user)?void 0:r.id,viewer_team_id:null==(o=t.config.user)?void 0:o.team_id,viewer_team_origin_user_id:null==(u=t.config.user)?void 0:u.team_origin_user_id,vuid:El("vuid")};return t.config.video.owner&&(s.account_type=t.config.video.owner.account_type),t.config.embed.api&&(s.api_version=t.config.embed.api),t.config.embed.app_id&&(s.app_id=String(t.config.embed.app_id)),t.config.video.privacy&&(s.privacy=t.config.video.privacy),i.get(bl)&&(s.live_session_id=null==(a=t.config.video.live_event)?void 0:a.id),Ji.webvr&&t.config.video.spatial&&(s.webvr_support=!0),Ji.webxr&&t.config.video.spatial&&(s.webxr_support=!0),t.config.request.drm&&t.config.request.drm.fallback_asset&&(s.has_sd_drm_fallback=!0),t.config.video.webinar&&(s.webinar_uuid=t.config.video.webinar.id),s}(),function(){var n,i,e=t.backbone.video?t.backbone.video.currentFile:{},r=function(){var n={},i=ad(),e=Ra("asc"),r="MediaSourceScanner"===t.backbone.currentScannerName,o="HTMLScanner"===t.backbone.currentScannerName,u="HLSLiveScanner"===t.backbone.currentScannerName,a=[];o&&(a=ba(t.config,"request.files.progressive")||ba(t.config,"request.files.hls")||[]),r&&(a=ba(t.config,"request.files.dash.streams",[])),u&&(a="video/vnd.mpeg.dash.mpd"===t.backbone.video.currentFile.mime?ba(t.config,"request.files.dash.streams",[]):ba(t.config,"request.files.hls.streams",[]));var s=U(a).sort(e).map((function(t){return t.profile})),c=-1,l=0,f=null;if(Object.keys(_).forEach((function(t){var n=s.indexOf(parseInt(t,10));n>c&&(c=n);var e=_[t].reduce((function(t,n){return((n.end||i)-n.start)/1e3+t}),0);e>l&&(l=e,f=t)})),n.highest_profile=s[c],n.highest_available_profile=s[s.length-1],n.most_used_profile=f,(r||u)&&S){n.max_speed=Math.round(Math.max.apply(Math,nt(S)))/1e3,n.min_speed=Math.round(Math.min.apply(Math,nt(S)))/1e3;var d=S.reduce((function(t,n){return t+n}),0);n.average_speed=Math.round(d/S.length)/1e3}return n}(),o=e.id,u=void 0===o?0:o,a=e.mime,c=void 0===a?"video/mp4":a,l=e.metadata,f=(l=void 0===l?{}:l).profile,d=void 0===f?null:f,p=!1,m=!1;switch(c){case rc:0===e.restrictedStreamIndexes.length&&(p=!0),ba(t.config,"request.files.dash.separate_av")&&(m=!0),d=y?y.profile:null;break;case"application/vnd.apple.mpegurl":p=!0}var b,w={audio_bitrate:t.backbone.getBitrateAtTime(t.backbone.currentTime,"audio")/1e3,auto:p,average_speed:r.average_speed||0,cdn:e.metadata?e.metadata.cdn:"akamai",delivery:"live"!==wc[c]?wc[c]:"dash",display:t.expose.pictureInPicture?"pip":t.expose.fullscreen?"fs":null,dropped_frames:L,dropped_frame_percent:j,event_time:h+sd(v),ended:M,forced_embed_quality:I,fullscreen:O,highest_available_profile:r.highest_available_profile?String(r.highest_available_profile):null,highest_profile:r.highest_profile?String(r.highest_profile):null,max_speed:isFinite(r.max_speed)?r.max_speed:0,mime:e.mime||null,min_speed:isFinite(r.min_speed)?r.min_speed:0,most_used_profile:r.most_used_profile?String(r.most_used_profile):null,origin:e.metadata?e.metadata.origin:"",profile_id:d?String(d):null,codec:Fu(y)?"":kh(y.codecs),audio_codec:Eh(null==(n=t.backbone)||null==n.getCurrentStream||null==(i=n.getCurrentStream("audio"))?void 0:i.codecs)||null,quality:y?y.quality:null,quality_downswitch_count:D,quality_upswitch_count:R,quality_switch_count:R+D,separate_av:m,target_profile_id:Y,ttfb:rt(),video_bitrate:t.backbone.getBitrateAtTime(t.backbone.currentTime,"video")/1e3,video_duration:Vs(t.config.video.duration),video_file_id:Number.isInteger(Number(u))?parseInt(u,10):null};t.backbone.isLive&&(w.ecdn=!!t.config.video.p2p,w.ecdn&&(w.ecdn_peers=null==(b=window.Streamroot)?void 0:b.instances[0].stats.realtime.dnaSources),void 0!==t.backbone.latency&&(w.latency=t.backbone.latency),void 0!==t.backbone.lowLatencyMode&&(w.is_low_latency=t.backbone.lowLatencyMode));return t.config.request.drm&&(w.drm_mode=s),w}(),function(){var n={};if(t.config.request.ab_tests)for(var i in t.config.request.ab_tests){var e=t.config.request.ab_tests[i];for(var r in n["".concat(i,"_test")]=1,n["".concat(i,"_group")]=e.group,e.data)n["".concat(i,"_data_").concat(r)]=e.data[r]}return n}())}function rt(){var t=-1;if(void 0!==window.performance&&"function"==typeof window.performance.getEntriesByType){var n=window.performance.getEntriesByType("resource");if(n){var i=n.filter((function(t){return null!==t.name.split("?")[0].match(/\.m4s$|\.ts$/)}));t=i.map((function(t){return t.responseStart-t.connectStart})).reduce((function(t,n){return t+n}),0)/(i.length||1)}}return Vs(t,2)}function ot(t){var n=t.url,i=-1;if(window.performance){var e=window.performance.getEntriesByType("resource");if(e.length){var r=e.filter((function(t){return t.name===n})).sort((function(t,n){return t.connectStart-n.connectStart}));if(r.length){var o=r[r.length-1];i=o.responseStart-o.connectStart}}}return Vs(i,2)}function ut(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{final:!0},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e={error_type:t,error_reason:i};u.handleExternalError(e,n)}v=cd(),h=t.config.request.timestamp,s=t.config.request.drm?"default":null,o=new Rc(function(){var n="?beacon=1&session-id=".concat(t.config.request.session);return t.config.request.urls.fresnel+n}()),t.events.on(mc.yc,ut),t.events.on(oc.Js,(function(){C=!1})),t.events.on(oc.qs,(function(){J=!0})),t.events.on(mc.yf,(function(t,n){tt(_h.ERROR_LINK_PRESSED,{error_type:n,error_url:t})})),t.events.on(mc.sl,(function(){O=!0,tt(_h.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(mc.ll,(function(){O=!1,tt(_h.VIDEO_FULLSCREEN_CHANGE)})),t.events.on(mc.Uf,(function(t,n){tt(t?_h.ALERT_DISPLAYED:_h.ALERT_HIDDEN)})),t.events.on(mc.Zl,(function(){h=t.config.request.timestamp,v=cd(),p=!1,m=!0,b=!1,w=!1,g="auto",y={},_={},k=null,E=null,T=null,S=[],A=null,x={},C=!1,M=!1,I="none",O=!1,R=0,D=0,j=0,L=0,P=null,F=null,V=null,z=null,W=null,Y=null,X=0,s=t.config.request.drm?"default":null,u&&(u.reset(),Q())})),t.events.on(mc.Dc,(function(){K={seek_type:"nudge"}})),t.events.on(mc.Wc,(function(t,n){K={seek_type:n}})),t.events.on(mc.Bc,(function(t){K={seek_type:"chapter-".concat(t)}})),t.events.on(mc.ff,(function(t){tt(_h.OUTRO_VIDEO_SELECTED,{selected_video_id:t})})),t.events.on(iu,(function(){C||el.isCastConnected||(t.performDelegateAction(pc,(function(t){C=!0,c.then((function(){return u.logStartRequest()})).catch((function(){}))})),Th(t.config,"chunk_logging").group&&t.config.request.urls.fresnel_manifest_url&&function(t,n,i,e){var r=Date.now(),o=[{uuid:Bs(),created_at:r,event:{name:"session_manifest",version:1,ts_ms:r,fields:{sessionID:n,manifest:i}},tracker:{name:"vimeo-player",version:e}}];new Rc(t).logRequestPromiseWithUrl(t,JSON.stringify(o),!0)}(t.config.request.urls.fresnel_manifest_url+"?beacon=1",t.config.request.session,t.backbone.manifest,Fc(t.config)))})),t.events.on(mc.wl,(function(t){"email-capture"===t&&tt(_h.SLATE_DISPLAYED,{slate_type:"email"})})),t.events.on(mc.Rc,(function(t,n){tt(_h.VIDEO_PLAYBACK_RATE_CHANGED,{previous_playback_rate:n})})),t.events.on(mc.Ic,(function(t){tt(_h.CLICK,{click_target:t})})),t.events.on(oc.Xs,(function(n){"auto"!==n&&(m=!1),t.backbone.video.currentFile.mime===rc&&("auto"===n||b?"auto"===n&&b&&!w&&(tt(_h.VIDEO_SWITCH_BACK_TO_AUTO,{quality:g,auto:1}),w=!0):(tt(_h.VIDEO_SWITCH_FROM_AUTO,{quality:n,auto:0}),b=!0),g=n)})),t.events.on(oc.oc,(function(t){A!==t&&(A=t,tt(_h.CAPTIONS_ENABLED,{captions_id:String(t)}))})),t.events.on(oc.uc,(function(){A&&(A=null,tt(_h.CAPTIONS_DISABLED))})),t.events.on(tl.connected,(function(){tt(_h.CHROMECAST_CONNECTED)})),t.events.on(tl.disconnected,(function(){tt(_h.CHROMECAST_DISCONNECTED)})),t.events.on(Mi.STREAM_CHANGE,(function(t,n,i,e){y=t;var r=t.profile?t.profile:t.id,o=ad();if(_[r]=_[r]||[],k){var u=_[k].length-1;_[k][u]&&(_[k][u].end=o)}E&&(i[n].bitrate>E?R+=1:D+=1),_[r].push({start:o}),x[r]={bitrate:i[n].bitrate,width:i[n].width,height:i[n].height},tt(_h.VIDEO_STREAM_CHANGE,{previous_audio_bitrate:T/1e3,previous_video_bitrate:E/1e3,previous_profile_id:String(k),reason:null==e?void 0:e.reasonForSwitch}),k=r,E=i[n].bitrate,T=i[n].audioBitrate})),t.events.on(Mi.STREAM_TARGET_CHANGE,(function(t){t&&(Y=String(t.profile||"")||null)})),t.events.on(ru,(function(t){I=t})),t.events.on(Ai.PLAYING,(function(){J=!1})),t.events.once(mc.Oc,(function(){p=!0})),t.events.on(mc.Wf,(function(){tt(_h.AD_BUFFERING)})),t.events.on(mc.Gf,(function(){tt(_h.AD_COMPLETE)})),t.events.on(mc.Kf,(function(){tt(_h.AD_CLICKED)})),t.events.on(mc.Yf,(function(t){tt(_h.AD_ERROR,{error_type:t.errorType,error_reason:t.errorReason})})),t.events.on(mc.Jf,(function(){tt(_h.AD_PAUSED)})),t.events.on(mc.$f,(function(){tt(_h.AD_RESUMED)})),t.events.on(mc.Xf,(function(t){tt(_h.AD_STARTED,{startup_duration:t.time?Vs(t.time/1e3,2):null})})),t.events.on(mc.Zf,(function(){tt(_h.AD_SKIPPED)})),t.events.on(mc.Ec,(function(){Ji.iPhone&&u.setDisplayContext(1)})),t.events.on(mc.Tc,(function(){Ji.iPhone&&u.setDisplayContext(0)})),t.events.on(mc.nd,(function(){tt(_h.WEBINAR_REGISTRANT_BLOCKED)})),t.events.on(mc.ed,(function(){tt(_h.WEBINAR_REGISTRANT_UNBLOCKED)})),t.events.on(Mi.DROPPED_FRAMES,(function(t){var n=t.dropped/t.total*100;j=Math.round(100*n)/100,L=t.dropped})),t.events.on(Mi.BANDWIDTH,(function(t){var n=t.speed;S.push(n),S.length>500&&S.shift()})),t.events.on(Mi.MANIFEST_TIMEOUT,(function(){tt(_h.VIDEO_MANIFEST_TIMEOUT)})),t.events.on(Mi.MANIFEST_LOADED,(function(){tt(_h.VIDEO_MANIFEST_LOADED)})),t.events.on(Mi.DOWNLOAD_END,l),t.events.on(Mi.DOWNLOAD_TIMEOUT,(function(){tt(_h.DOWNLOAD_TIMEOUT)})),t.events.on(Mi.DRM_KEY_SWITCH,(function(){s="sd-fallback",tt(_h.DRM_KEY_SWITCH)})),t.events.on(Mi.SCANNER_CHANGE,(function(){z=null})),t.events.on(Mi.AV_DURATION_MISMATCH,(function(t){tt(_h.VIDEO_DURATION_MISMATCH,{duration_difference:Math.round(100*t)/100})})),t.events.on(Mi.QUOTA_EXCEEDED_ERROR,(function(t){var n=t.buffered,i={error_type:Mi.QUOTA_EXCEEDED_ERROR};i.buffered=Vs(bt(0,n),2),i.bytes_loaded=X,tt(_h.VIDEO_PLAYBACK_ERROR,i)})),t.events.on(Mi.DROPPED_FRAME_PERCENT_EXCEEDED,(function(){var t={error_type:Mi.DROPPED_FRAME_PERCENT_EXCEEDED};tt(_h.VIDEO_PLAYBACK_ERROR,t)})),t.events.on(Ri.MEDIASESSION_PLAY,(function(){tt(_h.MEDIASESSION_PLAY)})),t.events.on(Ri.MEDIASESSION_PAUSE,(function(){tt(_h.MEDIASESSION_PAUSE)})),t.events.on(Ri.MEDIASESSION_SEEK_FORWARD,(function(){tt(_h.MEDIASESSION_SEEK_FORWARD)})),t.events.on(Ri.MEDIASESSION_SEEK_BACKWARD,(function(){tt(_h.MEDIASESSION_SEEK_BACKWARD)})),t.events.on(bc.qs,(function(){K={seek_type:"api"}})),t.events.on(bc.rd,(function(){$=!0})),t.events.on(bc.od,(function(){$=!0})),t.events.on(Oi.WEBVR_HARDWARE_AVAILABLE,(function(t){tt(_h.WEBVR_HARDWARE_AVAILABLE,{vr_hardware:t.displayName})})),t.events.on(Oi.WEBVR_ENTER,(function(){tt(_h.ENTER_WEBVR,!0)})),t.events.on(Oi.WEBVR_EXIT,(function(){tt(_h.EXIT_WEBVR,!0)})),t.events.on(Di.BRAIN_ML_MODEL_INPUTS,(function(n){var i;(null==(i=n.geolocation)?void 0:i.length)&&n.geolocation[0].length?n.geolocation=n.geolocation[0][0]:n.geolocation="",t.config.request.urls.fresnel_mimir_inputs_url&&function(t,n,i,e){var r={chunk_request_id:i.chunkRequestID,duration:i.duration,available_qualities:i.availableQualities,next_chunk_sizes:i.nextChunkSizes,last_buffer_sizes:i.lastBufferSizes,last_chunk_download_times:i.lastChunkDownloadTimes,last_chunk_sizes:i.lastChunkSizes,last_chunk_qualities:i.lastChunkQualities,num_remaining_chunks:i.numRemainingChunks,last_playback_heads:i.lastPlaybackHeads,geolocation:i.geolocation,session_id:n},o=Date.now(),u=[{uuid:Bs(),created_at:o,event:{name:"mimir_inputs",version:1,ts_ms:o,fields:r},tracker:{name:"vimeo-player",version:e}}];new Rc(t).logRequestPromiseWithUrl(t,JSON.stringify(u),!0)}(t.config.request.urls.fresnel_mimir_inputs_url+"?beacon=1",t.config.request.session,n,Fc(t.config))})),t.events.on(mu.STALL_JUMP,(function(t){ut("livestall",{final:!1},t.msg)})),t.events.on(mu.LOW_LATENCY_FALLBACK,(function(t){ut("livefallback",{final:!1},t.msg)})),(c=new r((function(n,i){var e;(null==(e=t.backbone)?void 0:e.video)&&n(),t.events.on(nu,n)}))).then(Z).catch((function(){})),t.events.on(mc.wf,Z),yh.getFirstConsistentlyInteractive().then((function(t){W=Vs(t)})).catch((function(){}))}var Ah=function(){return(Ah=Object.assign||function(t){for(var n,i=1,e=arguments.length;i0&&i>="0"&&i<="9"?"_"+i+e:""+i.toUpperCase()+e}function Dh(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function jh(t,n){return void 0===n&&(n={}),Ih(t,Ah({delimiter:"",transform:Rh},n))}function Lh(t,n){return 0===n?t.toLowerCase():Rh(t,n)}function Nh(t){return t.charAt(0).toUpperCase()+t.substr(1)}function Ph(t){return Nh(t.toLowerCase())}function Fh(t,n){return void 0===n&&(n={}),Ih(t,Ah({delimiter:" ",transform:Ph},n))}function Uh(t){return t.toUpperCase()}function Vh(t,n){return void 0===n&&(n={}),Ih(t,Ah({delimiter:"."},n))}function Bh(t,n){var i=t.toLowerCase();return 0===n?Nh(i):i}for(var Hh=Object.freeze({__proto__:null,camelCaseTransform:Lh,camelCaseTransformMerge:function(t,n){return 0===n?t.toLowerCase():Dh(t)},camelCase:function(t,n){return void 0===n&&(n={}),jh(t,Ah({transform:Lh},n))},capitalCaseTransform:Ph,capitalCase:Fh,constantCase:function(t,n){return void 0===n&&(n={}),Ih(t,Ah({delimiter:"_",transform:Uh},n))},dotCase:Vh,headerCase:function(t,n){return void 0===n&&(n={}),Fh(t,Ah({delimiter:"-"},n))},noCase:Ih,paramCase:function(t,n){return void 0===n&&(n={}),Vh(t,Ah({delimiter:"-"},n))},pascalCaseTransform:Rh,pascalCaseTransformMerge:Dh,pascalCase:jh,pathCase:function(t,n){return void 0===n&&(n={}),Vh(t,Ah({delimiter:"/"},n))},sentenceCaseTransform:Bh,sentenceCase:function(t,n){return void 0===n&&(n={}),Ih(t,Ah({delimiter:" ",transform:Bh},n))},snakeCase:function(t,n){return void 0===n&&(n={}),Vh(t,Ah({delimiter:"_"},n))}}),zh=i((function(t,n){Object.defineProperty(n,"Od",{value:!0}),n.Tracker=void 0;var i=function(){function t(){this.name="bigpicture-client-ts",this.version="1.2.1"}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"version",baseName:"version",type:"string"}],t}();n.Tracker=i})),qh=i((function(t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var e=new Array(16);t.exports=function(){for(var t,n=0;n<16;n++)0==(3&n)&&(t=4294967296*Math.random()),e[n]=t>>>((3&n)<<3)&255;return e}}})),Wh=[],Gh=0;Gh<256;++Gh)Wh[Gh]=(Gh+256).toString(16).substr(1);var Kh,Yh,Jh=function(t,n){var i=n||0,e=Wh;return[e[t[i++]],e[t[i++]],e[t[i++]],e[t[i++]],"-",e[t[i++]],e[t[i++]],"-",e[t[i++]],e[t[i++]],"-",e[t[i++]],e[t[i++]],"-",e[t[i++]],e[t[i++]],e[t[i++]],e[t[i++]],e[t[i++]],e[t[i++]]].join("")},$h=0,Xh=0,Zh=function(t,n,i){var e=n&&i||0;"string"==typeof t&&(n="binary"===t?new Array(16):null,t=null);var r=(t=t||{}).random||(t.rng||qh)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n)for(var o=0;o<16;++o)n[e+o]=r[o];return n||Jh(r)},Qh=Zh;Qh.v1=function(t,n,i){var e=n&&i||0,r=n||[],o=(t=t||{}).node||Kh,u=void 0!==t.clockseq?t.clockseq:Yh;if(null==o||null==u){var a=qh();null==o&&(o=Kh=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==u&&(u=Yh=16383&(a[6]<<8|a[7]))}var s=void 0!==t.msecs?t.msecs:(new Date).getTime(),c=void 0!==t.nsecs?t.nsecs:Xh+1,l=s-$h+(c-Xh)/1e4;if(l<0&&void 0===t.clockseq&&(u=u+1&16383),(l<0||s>$h)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$h=s,Xh=c,Yh=u;var f=(1e4*(268435455&(s+=122192928e5))+c)%4294967296;r[e++]=f>>>24&255,r[e++]=f>>>16&255,r[e++]=f>>>8&255,r[e++]=255&f;var d=s/4294967296*1e4&268435455;r[e++]=d>>>8&255,r[e++]=255&d,r[e++]=d>>>24&15|16,r[e++]=d>>>16&255,r[e++]=u>>>8|128,r[e++]=255&u;for(var h=0;h<6;++h)r[e+h]=o[h];return n||Jh(r)},Qh.v4=Zh;var tv=Qh,nv=i((function(t,n){Object.defineProperty(n,"Od",{value:!0}),n.Envelope=void 0;var i=function(){function t(t,n){this.event=t,this.eid=tv.v4(),this.ts_ms=Date.now(),this.Ld=new zh.Tracker,this.Nd=n}return Object.defineProperty(t.prototype,"tracker",{get:function(){return this.Ld},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"global",{get:function(){return this.Nd},enumerable:!1,configurable:!0}),t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.attributeTypeMap=[{name:"eid",baseName:"eid",type:"string"},{name:"ts_ms",baseName:"ts_ms",type:"number"},{name:"event",baseName:"event",type:"Event"},{name:"global",baseName:"global",type:"Event"},{name:"tracker",baseName:"tracker",type:"Tracker"}],t}();n.Envelope=i})),iv=i((function(t,n){Object.defineProperty(n,"Od",{value:!0}),n.Event=void 0;var i=function(){function t(t,n,i,e){this.name=t,this.ts_ms=Date.now(),this.version=n,this.fields=i,this.namespace=e}return t.getAttributeTypeMap=function(){return t.attributeTypeMap},t.attributeTypeMap=[{name:"name",baseName:"name",type:"string"},{name:"ts_ms",baseName:"ts_ms",type:"number"},{name:"version",baseName:"version",type:"number"},{name:"fields",baseName:"fields",type:"object"},{name:"namespace",baseName:"namespace",type:"string"}],t}();n.Event=i})),ev=i((function(t,i){var e=n&&n.Pd||(Object.create?function(t,n,i,e){void 0===e&&(e=i),Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[i]}})}:function(t,n,i,e){void 0===e&&(e=i),t[e]=n[i]}),r=n&&n.Fd||function(t,n){for(var i in t)"default"===i||n.hasOwnProperty(i)||e(n,t,i)};Object.defineProperty(i,"Od",{value:!0}),i.ObjectSerializer=void 0,r(nv,i),r(iv,i),r(zh,i);var o=iv,u=zh,a=["string","boolean","double","integer","long","float","number","any"],s={},c={Envelope:nv.Envelope,Event:o.Event,Tracker:u.Tracker},l=function(){function t(){}return t.findCorrectType=function(t,n){if(null==t)return n;if(-1!==a.indexOf(n.toLowerCase()))return n;if("Date"===n)return n;if(s[n])return n;if(!c[n])return n;var i=c[n].discriminator;if(null==i)return n;if(t[i]){var e=t[i];return c[e]?e:n}return n},t.serialize=function(n,i){if(null==n)return n;if(-1!==a.indexOf(i.toLowerCase()))return n;if(0===i.lastIndexOf("Array<",0)){var e=i.replace("Array<","");e=e.substring(0,e.length-1);var r=[];for(var o in n){var u=n[o];r.push(t.serialize(u,e))}return r}if("Date"===i)return n.toISOString();if(s[i])return n;if(!c[i])return n;i=this.findCorrectType(n,i);var l=c[i].getAttributeTypeMap(),f={};for(var o in l){var d=l[o];f[d.baseName]=t.serialize(n[d.name],d.type)}return f},t.deserialize=function(n,i){if(i=t.findCorrectType(n,i),null==n)return n;if(-1!==a.indexOf(i.toLowerCase()))return n;if(0===i.lastIndexOf("Array<",0)){var e=i.replace("Array<","");e=e.substring(0,e.length-1);var r=[];for(var o in n){var u=n[o];r.push(t.deserialize(u,e))}return r}if("Date"===i)return new Date(n);if(s[i])return n;if(!c[i])return n;var l=new c[i],f=c[i].getAttributeTypeMap();for(var o in f){var d=f[o];l[d.name]=t.deserialize(n[d.baseName],d.type)}return l},t}();i.ObjectSerializer=l})),rv=i((function(t,i){var e,o=n&&n.Ud||function(t,n,i,e){return new(i||(i=r))((function(r,o){function u(t){try{s(e.next(t))}catch(t){o(t)}}function a(t){try{s(e.throw(t))}catch(t){o(t)}}function s(t){t.done?r(t.value):function(t){return t instanceof i?t:new i((function(n){n(t)}))}(t.value).then(u,a)}s((e=e.apply(t,n||[])).next())}))},u=n&&n.Vd||function(t,n){var i,e,r,o,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof D&&(o[D.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,e&&(r=2&o[0]?e.return:o[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,o[1])).done)return r;switch(e=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,e=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(r=(r=u.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&(t.WAIT_QUEUE.map((function(n){return t.sendEvent(n)})),t.WAIT_QUEUE=[])},t.sendEvent=function(n){return o(this,void 0,void 0,(function(){var i,e,r,o,a;return u(this,(function(u){switch(u.label){case 0:if(null==n)throw new Error("Required parameter event was null or undefined when calling sendEvent.");return t.isInitalized?(i=JSON.stringify(ev.ObjectSerializer.serialize([new nv.Envelope(n,this.conf.globalBPO)],"Array")),e=n.name,null!=n.namespace&&(e=Hh.snakeCase(n.namespace)+"."+n.name),r=this.conf.service+"/add/"+encodeURIComponent(e),navigator.sendBeacon?[3,2]:(o={method:"POST",headers:{"Content-Type":"application/json","User-Agent":navigator.userAgent,Origin:location.origin,Referer:document.referrer},body:i},[4,fetch(r,o)])):(t.WAIT_QUEUE.push(n),Boolean(t.flushQueueTimeoutHandler)||(t.flushQueueTimeoutHandler=setTimeout((function(){t.WAIT_QUEUE.length>0&&(t.WAIT_QUEUE=[])}),t.FLUSH_QUEUE_TIMEOUT)),[2]);case 1:return u.sent(),[3,3];case 2:a=new Blob([i]),navigator.sendBeacon(r,a),u.label=3;case 3:return[2]}}))}))},t.FLUSH_QUEUE_TIMEOUT=1e4,t.conf=new a(e.FRESNEL_PROD),t.WAIT_QUEUE=[],t}();i.BigPictureClient=s})),ov=i((function(t,i){var e=n&&n.Pd||(Object.create?function(t,n,i,e){void 0===e&&(e=i),Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[i]}})}:function(t,n,i,e){void 0===e&&(e=i),t[e]=n[i]}),r=n&&n.Fd||function(t,n){for(var i in t)"default"===i||n.hasOwnProperty(i)||e(n,t,i)};Object.defineProperty(i,"Od",{value:!0}),r(rv,i),r(ev,i)})),uv=function(){function t(t){this.player=t,this.Bd()}return t.prototype.Bd=function(){var t=ov.Service.FRESNEL_PROD,n=cv("vimeo.web_global",this.player),i=new ov.Configuration(t,n);ov.BigPictureClient.configure(i)},t}();function av(t,n){var i,e,r=n.config,o=r.user,u=void 0===o?{}:o,a=r.request,s=void 0===a?{}:a,c=r.video,l=void 0===c?{}:c,f=r.embed,d=void 0===f?{}:f;switch(t){case"vimeo.web_global":return{user:{subscription_type:u.account_type||null,is_mod:!!u.mod,session_id:s.session||null,teams:u.team||null,user_id:u.id||null,vuid:El("vuid")||null,flags:s.flags?Object.keys(s.flags):null,is_free_trial:!1},application:{application:"vimeo",vimeo_language:s.lang||"en",product:Nc(n),build_environment:"production",version:Pc()},platform:{device_language:null!==(i=null==(e=window.navigator)?void 0:e.language)&&void 0!==i?i:"",screen:{dpi:screen.pixelDepth,height:screen.height,width:screen.width,size:"".concat(screen.width," x ").concat(screen.height)},network:null,platform:"web"}};case"workflow.copy_video_embed_code":return{hash:l.unlisted_hash,height:l.height,is_video_password_protected:"password"===l.privacy,product:"Workflow",sizing:d.playsinline?"fixed":"responsive",video_embed_privacy:l.embed_permission,video_id:"".concat(l.id||""),video_privacy:l.privacy,width:l.width};default:return{}}}function sv(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=Object.assign({},av(t,n),i),r=ic[t];return r&&(Object.keys(e).forEach((function(t){r.includes(t)||delete e[t]})),r.forEach((function(t){e.hasOwnProperty(t)||(e[t]=null)}))),e}function cv(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=sv(t,n,i);return new ov.Event(t,nc[t]||1,e)}var lv=function(){function t(t,n,i){this.player=t,this.element=n,this.store=i,this.shouldSample=!0,this.muxClient=null,this.Hd()&&(this.shouldSample&&Math.random()>.75||this.zd())}var n=t.prototype;return n.qd=function(){return!!this.player.config.request.flags.ott},n.Hd=function(){var t;return!(this.player.doNotTrackEnabled||!this.qd()&&((null==(t=this.player.config.video.live_event)?void 0:t.low_latency)&&(this.shouldSample=!1),!this.store.get(bl)))},n.zd=function(){var t=this;if(!document.getElementById("vp-mux-client")){var n=document.createElement("script");n.setAttribute("id","vp-mux-client"),n.setAttribute("src",this.player.config.request.urls.mux_url),n.onreadystatechange=n.onload=function(){t.Wd(),t.store.get(bl)||t.Gd()},document.getElementsByTagName("head")[0].appendChild(n)}},n.Wd=function(){var t=this;this.player.events.on(mc.Zl,(function(n){if(t.Hd()&&n&&"undefined"!=typeof mux){var i=t.player.backbone.video?t.player.backbone.video.currentFile:{};mux.emit(t.player.backbone.videoElement,"videochange",G({video_title:t.player.config.video.title,video_id:t.player.config.video.id,video_duration:1e3*t.player.config.video.duration,video_cdn:i.metadata?i.metadata.cdn:"akamai",video_stream_type:t.Kd(),viewer_user_id:t.player.config.request.session,view_session_id:t.player.config.request.session,sub_property_id:t.qd()?t.player.config.ott.site_id:t.player.config.video.owner.id},t.Yd()))}})),this.player.events.on(mu.STREAM_ONLINE,(function(){t.Gd()})),this.player.events.on(mu.STREAM_OFFLINE,(function(){var n;null==(n=mux)||n.emit(t.player.backbone.videoElement,"ended")})),this.player.events.on(Mi.STREAM_CHANGE,(function(n){var i;(null==n?void 0:n.bitrate)&&(null==(i=mux)||i.emit(t.player.backbone.videoElement,"renditionchange",{video_source_bitrate:n.bitrate}))}))},n.Gd=function(){if("undefined"!=typeof mux){var t=this.player.backbone.video?this.player.backbone.video.currentFile:{};null!==this.muxClient&&mux.destroyMonitor(this.player.backbone.videoElement);var n="dev"===this.player.config.request.build.js?"6eq01ih8u9u8fkk4hbindded5":"73cngs5ov03sbnck36isdkndt";this.store.get(pl)&&(n="dev"===this.player.config.request.build.js?"kghblrf3bb9uk33lv58ompm3k":"md0ig7ssl8unl2kpl0h6p0drn");var i=G({property_key:n,player_name:"Vimeo Player",player_init_time:Date.now(),player_version:Fc(this.player.config),video_title:this.player.config.video.title,video_id:this.player.config.video.id,video_duration:1e3*this.player.config.video.duration,video_cdn:t.metadata?t.metadata.cdn:"akamai",video_stream_type:this.Kd(),viewer_user_id:this.player.config.request.session,view_session_id:this.player.config.request.session,sub_property_id:this.player.config.video.owner.id},this.Yd());this.qd()&&(i.property_key="dev"===this.player.config.request.build.js?"3tb8rggvj5m71caj9jfpiidos":"lrc6o7kvhc6npvqq2r5iks5u4",this.player.config.ott&&(i.sub_property_id=this.player.config.ott.site_id,i=Object.assign(i,this.player.config.ott))),this.muxClient=mux.monitor(this.player.backbone.videoElement,{debug:!1,minimumRebufferDuration:500,data:i})}},n.Yd=function(){var t=this.player.config.request.ab_tests||{},n=Object.keys(t).find((function(n){return t[n].mux}));return n?{experiment_name:n}:null},n.Kd=function(){var t;return this.store.get(bl)?(null==(t=this.player.config.video.live_event)?void 0:t.low_latency)?"low_latency_live":this.player.config.video.p2p?"ecdn_live":"live":"vod"},t}();function fv(t){var n,i,e=t.config.ott||{},o=e.analytics_url||"https://collector.vhx.tv/events.gif",u=new Rc(o),a=pd((function(){l("timeupdate")}),1e4,{leading:!1}),s=pd((function(){l("seeking")}),500);function c(){e=t.config.ott||{},i=!1,n=!1}function l(i,r){(r=Object.assign({},r,{name:e.video_title,user_id:e.viewer_user_id,user_email:e.viewer_user_email,site_id:e.site_id,user_agent:navigator.userAgent,url:top===self?window.location.href:document.referrer,referrer:t.config.request.referrer,session_id:t.config.request.session,device:"html5",device_id:null,collection_id:e.collection_id,product_id:e.product_id,platform:e.platform,platform_id:null,platform_version:e.platform_version},{type:"video",video_id:e.video_id,current_src:t.backbone.currentFile.src,current_subtitle:"none",current_type:e.video_content_type,duration:e.video_duration,is_drm:t.config.request.drm?1:0,is_fullscreen:n?1:0,is_trailer:e.is_trailer?1:0,is_chromecast:el.isCastConnected?1:0,is_live:t.config.video.live_event,seconds:10,timecode:t.currentTime})).name=i,void 0===r.timestamp&&(r.timestamp=Math.round(.001*Date.now()));var a=Et(o,r);return u.logRequestPromiseWithUrl(a,{},!0,"GET").catch((function(t){}))}function f(){t.events.on(Ai.ENDED,d),t.events.on(Ai.ERROR,h),t.events.on(Ai.PAUSE,v),t.events.on(Ai.PLAY,p),t.events.on(Ai.TIME_UPDATE,a),t.events.on(Ai.SEEKING,s),t.events.on(Ai.SEEKED,m),t.events.on(Ai.WAITING,b),t.events.on(mc.sl,w),t.events.on(mc.ll,g),t.events.on(mc.Gf,y),t.events.on(mc.Kf,_),t.events.on(mc.Yf,k),t.events.on(mc.Xf,E),t.events.on(mc.Zf,T)}function d(){a.cancel(),l("ended")}function h(){a.cancel(),l("error")}function v(){a.cancel(),l("pause")}function p(){if(!i)return i=!0,void l("firstplay");l("play")}function m(){s.cancel(),l("seeked")}function b(){l("waiting")}function w(){n=!0}function g(){n=!1}function y(){l(_h.AD_COMPLETE)}function _(){l(_h.AD_CLICKED)}function k(){l(_h.AD_ERROR)}function E(){l(_h.AD_STARTED)}function T(){l(_h.AD_SKIPPED)}t.events.on(mc.Zl,c),c(),t.config.ott?f():new r((function(n,i){t.ottVideoMetadata?n():t.events.on(mc.sf,(function(t){n()}))})).then((function(){e=t.ottVideoMetadata,f()})).catch((function(t){}))}var dv=function(t){return function(n){for(var i=arguments.length,e=new Array(i>1?i-1:0),r=1;r0&&e(s)?i>1?t(s,i-1,e,r,o):qu(o,s):r||(o[o.length]=s)}return o}(t,1):[]}var _v=function(t){return rn(Ct(t,void 0,yv),t+"")}((function(t,n){return null==t?{}:bv(t,n)})),kv=["clip_id","profile_id","player_size","dropped_frames","total_frames","bandwidth","markers","streams","files","video_dims","min_bandwidth","max_badwidth","buffer_occupancy","live_latency","scanner","vr_headset"],Ev=function(){function t(t){this.sd=t,this.Jd={},this.Kr=null,this.$d(),this.Xd(),this.Zd(),this.Qd()}var n=t.prototype;return n.reset=function(){this.$d(),this.Qd(),this.sd.events.fire(mc.Fl)},n.th=function(t,n){return this.Jd[t]=[n],this.sd.events.fire(mc.Fl),this.Jd[t]},n.nh=function(t,n){return this.Jd[t].push(n),this.Jd[t].length>300&&this.Jd[t].splice(0,25),this.sd.events.fire(mc.Fl),this.Jd[t]},n.getCurrent=function(t){return this.Jd[t].slice(-1)[0]},n.getSeries=function(t){return this.Jd[t]},n.ih=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.name,i=Ya({},t.data),e=this.eh(n,i);this.rh(n,n,e)},n.eh=function(t,n){if(t===_h.CHUNK_DOWNLOADED){var i={};i.host=n.host,i.duration=Vs(n.duration,2),i.size=n.size,i.index=n.index,i.profile_id=n.profile_id,i.quality=n.quality,i.buffered=Vs(n.buffered,2),i.ttfb=Vs(n.ttfb,2),i.extraContext=n.extraContext,i.headers=_v(n.headers,["x_vim_cachebc","x_cache","akamai_edge_ip","x_akamai_request_id","ak_reference_id","content_type"]);var e=0,r=0,o=0,u=i.headers.x_vim_cachebc,a=i.headers.x_cache;return u?u.split(",").forEach((function(t){var n=tt(t.split(":"),2),i=n[0],e=n[1];"E"!==i||"h"!==e?"h"!==e||(r=1):o=1})):a&&(r="HIT"===a.substr(0,3),o="HIT"===a.substr(-3)),o?e=2:r&&(e=1),i.cache_hit=e,i}if(t===_h.VIDEO_PLAYBACK_ERROR||t===_h.VIDEO_LOAD_FAILURE||t===_h.VIDEO_START_FAILURE||t===_h.VIDEO_READY)return n;if(void 0!==n.autoplay&&void 0!==n.looping){var s={};return s.cdn=n.cdn,s.quality=n.quality,s}return n},n.rh=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=this.sd.backbone.currentTime,r=Date.now(),o=Vs(bt(e,this.sd.backbone.buffered),2);this.nh("markers",{type:t,title:n,vt:e,t:r,bt:o,data:i})},n.Xd=function(){var t=this;this.sd.events.on(mc.Zl,(function(){t.reset()})),this.sd.events.on(Mi.BANDWIDTH,this.oh.bind(this)),this.sd.events.on(Mi.BUFFER_OCCUPANCY,this.uh.bind(this)),this.sd.events.on(Mi.CURRENT_FILE_CHANGE,this.ah.bind(this)),this.sd.events.on(Mi.DROPPED_FRAMES,this.sh.bind(this)),this.sd.events.on(Mi.SCANNER_CHANGE,this.lh.bind(this)),this.sd.events.on(Mi.STREAM_CHANGE,this.fh.bind(this)),this.sd.events.on(Mi.STREAM_CHANGE_START,this.dh.bind(this)),this.sd.events.on(Ai.TIME_UPDATE,this.hh.bind(this)),this.sd.events.on(Oi.WEBVR_HARDWARE_AVAILABLE,this.vh.bind(this)),this.sd.events.on(mc.td,this.ih.bind(this)),this.sd.events.on(mu.BUFFER_GAP_JUMP_PREVENT,this.ph.bind(this)),this.sd.events.on(mu.BUFFER_GAP_JUMP,this.bh.bind(this)),this.sd.events.on(mu.STALL_JUMP,this.wh.bind(this))},n.vh=function(t){t.displayName&&this.th("vr_headset",t.displayName)},n.gh=function(){var t=this;this.Kr=setInterval((function(){var n=t.sd.backbone.buffered,i=t.sd.backbone.videoElement;if(n&&n.length&&i&&i.currentTime){var e=t.sd.backbone.latency;t.th("live_latency",e)}else t.th("live_latency",0)}),500)},n.yh=function(){clearInterval(this.Kr)},n.Zd=function(){var t=this;this.sd.store.watch("ui.player.boundingRect",(function(n){var i=t.getCurrent("video_dims"),e=t._h(n);t.nh("video_dims",e);var r=i?"Resized from ".concat(i," to ").concat(e):"Resized to ".concat(e);t.rh(_c.MARKER_RESIZE,r)}))},n._h=function(t){var n="".concat(Math.round(t.width),"px"),i="".concat(Math.round(t.height),"px"),e=window.devicePixelRatio&&window.devicePixelRatio>1?"@".concat(Vs(window.devicePixelRatio,3),"x"):"";return n&&i?"".concat(parseInt(n,10),"×").concat(parseInt(i,10)," ").concat(e):""},n.$d=function(){this.Jd=kv.reduce((function(t,n){return t[n]=[],t}),{})},n.Qd=function(){var t=this.sd.backbone.currentFile;this.nh("files",t),this.nh("scanner",this.sd.backbone.currentScannerName),"HLSLiveScanner"===this.sd.backbone.currentScannerName&&this.gh(),this.th("min_bandwidth",0),this.th("max_badwidth",0);var n=this.sd.store.get("ui.player.boundingRect"),i=this._h(n);this.nh("video_dims",i)},n.oh=function(t){var n=Math.round(100*t.speed)/100;this.nh("bandwidth",{videoTime:this.sd.backbone.currentTime,time:Date.now(),value:n});var i=this.getCurrent("max_badwidth"),e=this.getCurrent("min_bandwidth");(!e||ni)&&this.th("max_badwidth",n)},n.sh=function(t){var n=t.dropped,i=t.total;this.th("total_frames",i),this.th("dropped_frames",n)},n.ra=function(){this.rh(_c.MARKER_SEEKED,"Seeked to ".concat(this.sd.backbone.currentTime))},n.kh=function(){this.rh(_c.MARKER_ENDED,"Ended")},n.dh=function(t){var n=t.previousStreamIndex,i=t.index,e=t.streams,r=e[i],o=e[n],u=o?o.bitrate:null;if(u!==r.bitrate&&null!==u){var a=this.Eh(o),s=this.Eh(r);r.bitrateu&&this.rh(_c.MARKER_UPSWITCH,"Starting Upswitch from ".concat(a," to ").concat(s))}},n.fh=function(t,n,i){var e,r=i[n],o=this.Eh(r),u=kh(r.codecs),a=null==(e=this.sd.backbone)||null==e.getCurrentStream?void 0:e.getCurrentStream("audio"),s=Eh(null==a?void 0:a.codecs),c="".concat(u).concat(s?" / ".concat(s):"");this.rh(_c.MARKER_SWITCH_COMPLETE,"Completed switch to ".concat(o)),this.nh("streams",{profile:void 0!==t?t.profile:null,quality:void 0!==t?t.quality:"".concat(r.height,"p"),bitrate:r.bitrate,audioBitrate:null==a?void 0:a.bitrate,framerate:r.framerate,height:r.height,width:r.width,id:r.id,codec:c})},n.ah=function(){var t=this.getCurrent("files"),n=this.sd.backbone.currentFile;this.nh("files",n);var i=n.metadata.cdn,e=t?t.metadata.cdn:null,r=t?wc[t.mime]:null,o=wc[n.mime],u="CDN to ".concat(i,"/").concat(o);e&&(u="CDN from ".concat(e,"/").concat(r," to ").concat(i,"/").concat(o)),this.rh(_c.MARKER_FILE_CHANGE,u)},n.uh=function(t){var n=Math.round(1e3*t)/1e3;this.nh("buffer_occupancy",{videoTime:this.sd.backbone.currentTime,time:Date.now(),value:n})},n.lh=function(){var t=this.getCurrent("scanner"),n=this.sd.backbone.currentScannerName;this.th("scanner",n),t&&this.rh(_c.MARKER_SCANNER_CHANGE,"Scanner change to ".concat(n)),"HLSLiveScanner"===n?this.gh():this.yh()},n.bh=function(t){this.rh(_c.MARKER_BUFFER_GAP_JUMP,t.msg)},n.ph=function(t){this.rh(_c.MARKER_BUFFER_GAP_JUMP_PREVENT,t.msg)},n.wh=function(t){this.rh(_c.MARKER_STALL_JUMP,t.msg)},n.Th=function(){this.rh(_c.MARKER_STALLED,"Stalled")},n.Eh=function(t){return"".concat(t.width,"×").concat(t.height,"@").concat(Math.round(t.framerate)," ").concat(Math.round(t.bitrate/1e3).toLocaleString()," Kbps")},n.hh=function(){this.sd.events.fire(mc.Fl)},t}();function Tv(t){var n=t.element,i=t.delegate,e=void 0===i?{}:i,o=t.cssLoadedPromise,u=void 0===o?r.resolve(null):o,a=t.name,s=void 0===a?null:a;Ba(Hc);var c=ks(Zf,Es((function(t){return function(){var n=t.apply(void 0,arguments),i=Cs();function e(t,n){return u(t,(function(t){var e=i.get({selector:t,listener:n});if(!e){var r=o(t,n);e=i.insert({selector:t,listener:n,unsubscribe:r})}return e.unsubscribe}))}function r(t,n){return u(t,(function(t){var e=i.get({selector:t,listener:n});return e&&e.unsubscribe()}))}function o(t,i){var e=t(n.getState());return n.subscribe((function(){var r=t(n.getState());if(e!==r){var o=e;i(e=r,o,n.getState())}}))}function u(t,i){return(t=[].concat(t)).map((function(t){return i(n.createGetter(t))}))}return G(G({},n),{},{watch:e,unwatch:r})}}),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(n){return function(){var i=n.apply(void 0,arguments);function e(){return t}var r=la((function(t){if(Ht(t))return t;var n=ba(e(),t);return Ht(n)?n:function(n){return ba(n,t)}}));function o(t,n){var e=(t=r(t))(i.getState());return void 0!==n&&(e=Zl(e,n)),e}return G(G({},i),{},{getSelectors:e,createGetter:r,get:o})}}}(Qf),Ss.apply(void 0,[]))),l=new L,f=ot(),d=new zc({events:f}),h=Bs();n.classList.add("player-".concat(h)),n.classList.add("loading"),n.id||(n.id="player".concat(h)),n.innerHTML=nd.render("outer",{strings:{back:"Atrás",close:"Cerrar los anuncios superpuestos"}});var v=n.querySelector(".vp-telecine");if(Ji.iOS){var p=document.createElement("video");v.appendChild(p);try{p.setAttribute("muted",""),p.setAttribute("playsinline",""),p.load()}catch(t){Hc.captureException(t)}}var m,b,w,g,y,_=null,k=null,E=null,T=null,S=null,A=null,x=null,C={},M=new r((function(t,n){y=t})).then((function(){return f.fire(mc.Oe),null})),I={get config(){return d.config},set config(t){d.config=t},get delegate(){return e},set delegate(t){e=t},ready:function(t){if(!t)return M;M.then((function(){return t()})).catch((function(t){Hc.captureException(t)}))},get sessionId(){return d.config.request.session}};function O(t){var n,i=t.old,e=t.loaded;if(function(t,n){var i;t&&s&&"".concat(s," "),null==(i=n.request)||i.ab_tests}(!i,e),(null==(n=e.request)?void 0:n.urls.js)&&function(t){ft=t.substring(0,t.lastIndexOf("/")+1)}(e.request.urls.js),window.parent!==window){var r,o="Private Video on Vimeo";1!==e.view&&3!==e.view&&12!==e.view||(o="".concat(e.video.title," from ").concat(e.video.owner.name," on Vimeo")),document.title=o,(null==(r=history)?void 0:r.replaceState)&&e.video&&i&&history.replaceState({id:e.video.id},"","/video/".concat(e.video.id).concat(window.location.search))}if(1!==e.view&&3!==e.view&&12!==e.view)throw new Error("Config not authorized: ".concat(e.view));(null==i?void 0:i.embed)&&i.embed.color!==e.embed.color&&f.fire(oc.Qs,e.embed.color),T&&T.reset();var u=!i||!i.video||i.video.id!==e.video.id||i.video.version.current!==e.video.version.current;return m=null,w=_,f.fire(oc.Js),c.dispatch(ul(e)),f.fire(mc.Zl,u,e),t}function R(t){if("opacity"===t.propertyName){var n=document.querySelector(".vp-placeholder");n&&(Ul(n).off("transitionend",R),n.parentNode.removeChild(n))}}function D(){!function(){var t=document.querySelector(".vp-placeholder");t&&(Ul(t).on("transitionend",R),t.classList.add("vp-placeholder-fadeout"))}(),n.classList.remove("loading"),y()}function j(t){return u.then((function(){if(P(t),k&&k.resetThumbnail(),"function"!=typeof C.authorizationHandler)throw new Error("Config was not authorized.");return C.authorizationHandler(D)})).then((function(t){return d.config=t,m=null,c.dispatch(ul(d.config)),f.fire(oc.Js),f.fire(mc.Zl,!0,d.config),t}))}function N(t){(function(){var t=document.location.hash,n=function(t){var n,i=t.match(/\ba?t=([0-9hms:]+)/);null!==i&&(t=i[1]);var e=!1,r=0,o=0,u=0;if((null==(n=i=t.match(/^([0-9]+)$/))?void 0:n.length)&&(e=!0,u=i[1]),!1===e&&null!==(i=t.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s)?/))&&""!==i[0]){e=!0;var a=tt(i,4),s=a[1];r=void 0===s?0:s;var c=a[2];o=void 0===c?0:c;var l=a[3];u=void 0===l?0:l}if(!1===e&&null!==(i=t.match(/^([0-9:]+)/))){e=!0;var f=tt(t.split(":").reverse(),3);u=f[0];var d=f[1];o=void 0===d?0:d;var h=f[2];r=void 0===h?0:h}return e?60*parseInt(r,10)*60+60*parseInt(o,10)+parseInt(u,10):null}(t);null!==n&&(d.config.embed.time=Ls(n,0,d.config.video.duration),-1!==t.indexOf("at=")&&history&&history.replaceState&&history.replaceState("","",window.location.pathname+window.location.search))})(),f.on(mc.Kl,(function(t){d.reload().then((function(n){if(!d.config.user.logged_in)return f.fire(mc.$l),n;switch(f.fire(mc.Yl,t),t){case"like":d.config.user.liked&&f.fire(mc.zl);break;case"watch-later":d.config.user.watch_later&&f.fire(mc.Wl);break;case"private":f.fire(mc.nf)}return n})).catch((function(t){Hc.captureException(t)}))})),f.on(mc.Jl,(function(){d.reload().catch((function(t){Hc.captureException(t)}))})),function(t){var i,e;k=new _l(t,c,n.querySelector(".vp-preview")),f.on([Mi.BUFFER_ENDED,Ai.PLAYING],(function(){k.hide()})),_=new os(v,d.config),w=_,x=new Ev(t),new Ml(t,c,n.querySelector(".vp-video-wrapper")),new td(t,c,n.querySelector(".vp-captions")),new id(n,f),F(t),t.doNotTrackEnabled||(d.config.request.urls.test_imp&&function(t,n){if(t.config.request.ab_tests){var i=new Rc(n);for(var e in t.config.request.ab_tests){var r=t.config.request.ab_tests[e];if(r.track){var o={session_id:t.config.request.session,test_id:e,test_group:String(r.group)};i.log(o,!0,!1).catch((function(t){}))}}}}(t,"".concat(d.config.request.urls.test_imp,"?beacon=1")),new Sh(t,n,c,d.config.request.urls.fresnel),new uv(t),new Xl(t,c),new lv(t,n,c),new fv(t)),T=new Al(t),(t.config.request.flags.ott||(null==(i=t.config.request.ab_tests)||null==(e=i.chromecast)?void 0:e.group))&&function(t){if(!t.config.video.spatial&&"stock"!==t.config.video.privacy){var i=new nl({textAlert:new bh(n),player:t});el.init({chromecastPlayer:i}),el.on([tl.error,tl.mediaLoadedFailed],(function(t){Hc.captureException(t)}))}}(t),P(t)}(t)}function P(t){E||(E=new mh(t),ed(I,E),qd(Hc))}function F(t){var i=d.config.request.ads;i&&(i.adcode&&i.adunit||i.adurl)&&(S=new vv(t,n.querySelector(".vp-video-wrapper")),f.on(mc.Ec,(function(){w=S,f.fire(mc.Mf)})),f.on(mc.Tc,(function(){w=_,f.fire(mc.Mf)})),el&&(el.on(tl.connected,(function(){S.toggleCastingState(!0)})),el.on(tl.disconnected,(function(){S.toggleCastingState(!1)}))))}function U(t,n){var i=t;return isNaN(t)&&"string"!=typeof t||(i=Fs(Ps(t),t,n)),i}var V={get store(){return c},get config(){return d.config},get element(){return n},get events(){return f},get uuid(){return h},get expose(){return I},get backbone(){return _},get adHandler(){return S},get displayContext(){return w},get preview(){return k},get doNotTrackEnabled(){return d.config.embed.dnt||d.config.request.flags.dnt},get playLoggingEnabled(){return d.config.embed.log_plays&&d.config.request.flags.plays},get currentTime(){return el.isCastConnected?el.chromecastPlayer.currentTime:_.currentTime},get debugCollector(){return x},get ottVideoMetadata(){return A},set ottVideoMetadata(t){A=t},init:function(t,i){return b||(new Pd(V,c,n),C=i,b=d.load(t).then(O).catch((function(t){return j(V)})).then((function(){return"function"==typeof C.initializationHandler?r.resolve(i.initializationHandler()):null})).then((function(){return N(V),"function"==typeof C.postInitializationHandler?r.resolve(i.postInitializationHandler()):null})).then((function(){return r.all([k.thumbnailPromise,u])})).then(D).then((function(){return Hc.setUp(V),null})).catch((function(t){Hc.captureException(t)})))},loadVideo:function(t,i){if(g===t&&m)return m;if(k&&k.resetThumbnail(),null==i?void 0:i.video_version){var e=d.config.video.version.available;if(!e||!Array.isArray(e))return r.reject("No available video versions");if(-1===(e=e.map((function(t){return t.id}))).indexOf(i.video_version))return r.reject("Invalid version id specified")}f.fire(mc._loadVideo),g=t,n.classList.add("loading");var o=U(t,i),u=l.get(o);return t=u?u.Sh.loaded:t,m=d.load(t,i).then((function(t){if(u){var n=_.element;(_=u._backbone).element.style.visibility="visible",n.parentNode.replaceChild(_.element,n),f.fire(mc.wf)}return t=O(t),S||F(V),t})).catch((function(t){return j(V)})).then((function(t){var n=k.loadThumbnail();return r.resolve(n)})).then(D)},preloadVideo:function(t,n,i){var e=U(n,i),o=l.get(e);return o?r.resolve(o):new zc({events:f}).load(n,i).then((function(n){var i=_.element.cloneNode(!1);i.style.visibility="hidden",_.element.parentNode.insertBefore(i,_.element);var r=new os(i,n.loaded);r.loadVideo(n.loaded),r.preload=t;var o={_backbone:r,Sh:n};return l.set(e,o),o}))},performDelegateAction:function(t){var n,i,r,o,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];null!=(n=e)&&n[t.will]&&!1===(r=(o=e)[t.will].apply(o,[d.config.video.id].concat(nt(a))))||(u.apply(void 0,[d.config.video.id].concat(nt(a),[r])),(null==(i=e)?void 0:i[t.did])&&e[t.did]())},ready:function(){return M},verifyConfig:function(){return d.verify()},updatePhpTokens:function(){return new r((function(t,n){var i=d.config.user,e=i.vimeo_api_client_token,r=i.vimeo_api_interaction_tokens,o=i.vimeo_live_client_token,u=i.vimeo_bucketed_live_client_token,a=!1;if(e)try{a=ld(JSON.parse(atob(e.split(".")[1])).exp)>=0}catch(t){return void n(new Error("Failed to parse PHP client token expiration"))}if(r)try{var s=JSON.parse(atob(r.likes.split(".")[1])).exp,c=JSON.parse(atob(r.watch_later.split(".")[1])).exp,l=JSON.parse(atob(r.following.split(".")[1])).exp;a=ld(s)>=0||ld(c)>=0||ld(l)>=0}catch(t){return void n(new Error("Failed to parse PHP interaction tokens expiration"))}if(o)try{a=ld(JSON.parse(atob(o.split(".")[1])).exp)>=0}catch(t){return void n(new Error("Failed to parse PHP Live token expiration"))}if(u)try{a=ld(JSON.parse(atob(u.split(".")[1])).exp)>=0}catch(t){return void n(new Error("Failed to parse PHP Live token expiration"))}if(a){var f=d.config.request,h=f.signature,v=f.session,p=f.timestamp,m=f.expires;ir("https://".concat(d.config.player_url,"/video/").concat(d.config.video.id,"/token/refresh?signature=").concat(h,"&session=").concat(v,"&time=").concat(p,"&expires=").concat(m),{withCredentials:!0}).json().then((function(n){return d.config.user.vimeo_api_client_token=n?n.vimeo_api_client_token:null,d.config.user.vimeo_api_interaction_tokens=n?n.vimeo_api_interaction_tokens:null,d.config.user.vimeo_live_client_token=n?n.vimeo_live_client_token:null,d.config.user.vimeo_bucketed_live_client_token=n?n.vimeo_bucketed_live_client_token:null,t()})).catch((function(t){Hc.captureBreadcrumb("Failed to refresh JWT token",{},"auth","error"),n(t)}))}else t()}))}};return V}function Sv(t,n,i,e){var r=!1;e="function"==typeof n?i:e,i="function"==typeof n?n:i;var o=function(t){var n=!0;if(t.changedTouches){var o=t.changedTouches[0].pageX-window.pageXOffset,u=t.changedTouches[0].pageY-window.pageYOffset,a=document.elementFromPoint(o,u);null!==a&&this.contains(a)&&(n=i.call(this,t))}return"function"==typeof e&&e.call(this,t),r=!0,n},u=function(t){if(!r)return i.call(this,t);r=!1};(n="function"==typeof n?null:n)?Ul(t).on("click",n,u).on("touchend",n,o):Ul(t).on("click",u).on("touchend",o)}function Av(t,n){var i,e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=[],a=!1,s=!1;function c(){i=f(),r.forEach(b),Sv(i,".js-menuClose",A),Sv(i,".js-menuInfo",M),Ul(window).on("resize",I)}function l(){Ul(window).off("resize",I)}function f(){var t=document.createElement("div");return t.innerHTML=nd.render("menu",{strings:{close:"Cerrar el menú."}}),t.children[0]}function d(){return i.classList.contains("vp-menu-center")}function h(){return i.classList.contains("vp-menu-fullwidth")}function v(){return i.classList.contains("vp-menu-carousel")}function p(){var t=u.length>1&&!v();u.forEach((function(n){n.setCollapsible(t),n.resetCarousel(v())}))}function m(){if(o.defaultOpen&&!s){var t=u.find((function(t){return t.id===o.defaultOpen}));t&&(t.open(),s=!0)}}function b(t){u.push(t),i.insertBefore(t.element,i.lastChild),p(),t.on("open",g),t.on(["open","close"],y),t.on(["openEnd","closeEnd"],_),t.on("select",T)}function w(t){return u.find((function(n){return n.id===t}))}function g(t){u.filter((function(t){return t.isOpen()})).forEach((function(t){return t.close()}))}function y(t){a=!0,O()}function _(t){a=!1}function k(){return n&&"true"===n.getAttribute("aria-expanded")}function E(r){k()||(r=r||n.contains(document.activeElement),n.setAttribute("aria-expanded","true"),i.removeAttribute("hidden"),t.events.fire(mc.Xc,!0,e),I(),p(),m(),i.classList.remove("vp-menu-hidden"),window.requestAnimationFrame((function(){if(i.classList.remove("vp-menu-invisible"),r){var t=D();t.length>0&&t[0].focus()}})))}function T(){v()||o.persistOnClick||A()}function S(){D().some((function(t){return t===document.activeElement}))&&n.focus()}function A(){k()&&setTimeout((function(){S(),n.setAttribute("aria-expanded","false"),t.events.fire(mc.Xc,!1,e),i.classList.add("vp-menu-invisible")}),100)}function x(t){i.classList.add("vp-menu-hidden"),i.setAttribute("hidden","")}function C(t){return k()?(A(),!1):(E(t),!0)}function M(n){t.events.fire(mc.Ml),A()}function I(){if(!h()){var n=Rs(t.element),e=Rs(i),r=window.getComputedStyle(i),o=parseFloat(r.fontSize),u=e.bottom-i.scrollHeight,a=Math.max(n.top,0)-u;if(a>0){var s=i.scrollHeight-a-o;return i.style.height="".concat(s/o,"em"),void i.classList.add("vp-menu-scroll")}i.style.height="auto",i.classList.remove("vp-menu-scroll")}}function O(){I(),a&&requestAnimationFrame(O)}function R(){Ul(i).on("transitionend",(function(t){this===i&&"opacity"===t.propertyName&&i.classList.contains("vp-menu-invisible")&&x()})),Ul(document).on("click",(function(t){null!==n&&(!k()||n.contains(t.target)||i.contains(t.target)||A())})),window.addEventListener("blur",A,!1)}function D(){return u.reduce((function(t,n){return t.concat(n.getTabindexItems())}),[])}return c(),R(),e={element:i,button:n,isCentered:d,isVisible:k,isFullwidth:h,show:E,hide:A,toggle:C,retargetFocusFromChild:S,setPanelModes:p,addPanel:b,getPanel:w,getTabindexItems:D,destroy:l}}var xv=function(){function t(t){this.props=t,this.state={},this.Ah=!1,this.element=null}var n=t.prototype;return n.destroy=function(){},n.render=function(){if(!this.isRendered&&this.template){var t=document.createElement("div");t.innerHTML=nd.render(this.template,{state:this.state,props:this.props}),this.Ah=!0,this.element=t.children[0]}},H(t,[{key:"isRendered",get:function(){return this.Ah}},{key:"template",get:function(){return null}}]),t}(),Cv=".vp-menu-header-goto-button",Mv=function(t){function n(n){var i;return(i=t.call(this,n)||this).state={title:n.title,backButton:n.headerBackButton,navButton:n.headerNavButton,actionButton:n.headerActionButton,closeButton:n.headerCloseButton,isRendered:!1},i}K(n,t);var i=n.prototype;return i.updateState=function(t){var n=t.actionButton,i=t.title,e=t.closeButton,r=t.backButton,o=t.navButton;void 0!==i&&this.state.title!==i&&(this.state.title=i,this.updateTitle()),void 0!==r&&this.state.backButton!==r&&(this.state.backButton=r,this.updateBackButton()),void 0!==o&&this.state.navButton!==o&&(this.state.navButton=o,this.updateNavButton()),void 0!==e&&this.state.closeButton!==e&&(this.state.closeButton=e,this.updateCloseButton()),void 0!==n&&this.state.actionButton!==n&&(this.state.actionButton=n,this.updateActionButton())},i.updateTitle=function(){this.element.querySelector(".vp-menu-header-title").innerHTML=this.state.title||""},i.updateBackButton=function(){this.element.querySelector(".vp-menu-header-back-button").style.display=this.state.backButton?"block":"none",this.element.querySelector(".vp-menu-header-back-button").dataset.goto=this.state.backButton||null},i.updateNavButton=function(){var t,n=this.state.navButton?this.state.navButton.label+">":"";this.element.querySelector(Cv).innerHTML=n,this.element.querySelector(Cv).style.display=this.state.navButton?"block":"none",this.element.querySelector(Cv).dataset.goto=(null==(t=this.state.navButton)?void 0:t.goto)||null},i.updateActionButton=function(){this.element.querySelector(".vp-menu-header-action-button").innerHTML=this.state.actionButton,this.element.querySelector(".vp-menu-header-action-button").style.display=this.state.actionButton?"block":"none"},i.updateCloseButton=function(){this.element.querySelector(".vp-menu-header-close-button").style.display=this.state.closeButton?"block":"none"},i.render=function(){var n=this;this.isRendered||(t.prototype.render.call(this),Sv(this.element,Cv,(function(t){var i=t.target.dataset.goto;n.props.onChangePanel(i)})),Sv(this.element,".vp-menu-header-back-button",(function(t){var i=t.target.dataset.goto;n.props.onChangePanel(i)})))},H(n,[{key:"template",get:function(){return"menuheader"}}]),n}(xv),Iv=function(t){function n(n){var i;return(i=t.call(this,n)||this).isNewMenu=!0,i.button=n.button,i.menuHeader=null,i.xh=!1,i.panels={},i.state={currentPanel:null},i.handleClick=i.handleClick.bind(Q(i)),i.handleBlur=i.handleBlur.bind(Q(i)),i.handleChangeFullwidth=i.handleChangeFullwidth.bind(Q(i)),i.handleOnClose=i.handleOnClose.bind(Q(i)),i}K(n,t);var i=n.prototype;return i.isVisible=function(){return this.xh},i.isCentered=function(){return this.props.player.store.get("ui.controlbar.isMenuFullWidth")},i.isFullwidth=function(){return this.props.player.store.get("ui.controlbar.isMenuFullWidth")},i.show=function(t){var n=this;this.button.setAttribute("aria-expanded","true"),this.element.style.display="block",this.xh=!0,this.props.player.events.fire(mc.Xc,!0,this),window.requestAnimationFrame((function(){n.element.classList.remove("vp-menu-invisible")}))},i.retargetFocusFromChild=function(){this.element.contains(document.activeElement)&&this.button.focus()},i.hide=function(){this.button.setAttribute("aria-expanded","false"),this.element.style.display="none",this.xh=!1,this.props.player.events.fire(mc.Xc,!1,this),this.retargetFocusFromChild()},i.toggle=function(t){this.isVisible()?this.hide():this.show(t)},i.onChangePanel=function(t){var n=this.panels[t];this.updateState({currentPanel:n})},i.updateState=function(t){var n=t.currentPanel;void 0!==n&&this.state.currentPanel!==n&&(this.state.currentPanel.panel.updateState({active:!1}),this.state.currentPanel=n,this.state.currentPanel.panel.render(),this.state.currentPanel.panel.updateState({active:!0}),this.state.currentPanel.panel.parentElement!==this.element&&this.element.querySelector(".vp-new-menu-body").appendChild(this.state.currentPanel.panel.element),this.menuHeader.updateState({title:this.state.currentPanel.title,backButton:this.state.currentPanel.headerBackButton,navButton:this.state.currentPanel.headerNavButton,closeButton:this.state.currentPanel.closeButton,actionButton:this.state.currentPanel.actionButton}))},i.handleClick=function(t){null!==this.button&&(!this.isVisible()||this.button.contains(t.target)||this.element.contains(t.target)||this.hide())},i.handleBlur=function(){this.hide()},i.handleChangeFullwidth=function(t){this.element.classList.toggle("vp-menu-fullwidth",t),this.menuHeader.updateState({closeButton:t}),t?this.props.player.element.insertBefore(this.element,this.props.player.element.children[0]):this.button.parentNode.insertBefore(this.element,this.button.nextSibling)},i.handleOnClose=function(){this.hide()},i.addEventListeners=function(){Ul(document).on("click",this.handleClick),window.addEventListener("blur",this.handleBlur,!1),this.props.player.store.watch("ui.controlbar.isMenuFullWidth",this.handleChangeFullwidth),Sv(this.element,".vp-menu-header-close-button",this.handleOnClose)},i.removeEventListeners=function(){Ul(document).off("click",this.handleClick),window.removeEventListener("blur",this.handleBlur,!1)},i.destroy=function(){var t;this.removeEventListeners(),null==(t=this.menuHeader)||t.destroy()},i.render=function(){this.isRendered||(t.prototype.render.call(this),this.menuHeader=new Mv({title:this.state.currentPanel.title,headerBackButton:this.state.currentPanel.headerBackButton,headerNavButton:this.state.currentPanel.headerNavButton,headerActionButton:this.state.currentPanel.headerActionButton,headerCloseButton:this.state.currentPanel.headerCloseButton,onChangePanel:this.onChangePanel.bind(this)}),this.menuHeader.render(),this.element.querySelector(".vp-new-menu-header").appendChild(this.menuHeader.element),this.state.currentPanel.panel.render(),this.state.currentPanel.panel.updateState({active:!0}),this.element.querySelector(".vp-new-menu-body").appendChild(this.state.currentPanel.panel.element),this.handleChangeFullwidth(this.isFullwidth()),this.addEventListeners())},H(n,[{key:"template",get:function(){return"newmenu"}}]),n}(xv),Ov=function(t){function n(n){var i;return(i=t.call(this,n)||this).state.active=!1,i}return K(n,t),n.prototype.updateState=function(t){var n=t.active;void 0!==n&&this.state.active!==n&&(this.state.active=n,this.element.classList.toggle("vp-active-menu-panel",this.state.active))},H(n,[{key:"template",get:function(){return"menupanel"}}]),n}(xv),Rv=function(t){function n(n){var i;return(i=t.call(this,n)||this).state={active:n.active},i}K(n,t);var i=n.prototype;return i.updateState=function(t){var n=t.active;this.state.active!==n&&(this.state.active=n,this.element.classList.toggle("vp-active-item",this.state.active),this.element.setAttribute("checked",this.state.active?"true":"false"))},i.render=function(){this.isRendered||(t.prototype.render.call(this),Sv(this.element,this.props.onSelect))},H(n,[{key:"template",get:function(){return this.props.template||"menuoption"}}]),n}(xv),Dv=function(t){function n(n){var i;i=t.call(this,n)||this;var e={},r=null;return n.items.forEach((function(t,o){e[t.id]={component:new Rv(G({template:n.itemTemplate,onSelect:i.onSelect.bind(Q(i))},t)),index:o},t.active&&(r=t.id)})),i.state={activeItemId:r,items:e},i}K(n,t);var i=n.prototype;return i.updateState=function(t){var n=t.activeItemId;if(this.state.activeItemId!==n){if(this.state.activeItemId){var i=this.state.items[this.state.activeItemId].component;null==i||i.updateState({active:!1})}if(this.state.activeItemId=n,this.state.activeItemId){var e=this.state.items[this.state.activeItemId].component;null==e||e.updateState({active:!0})}}},i.onSelect=function(t){var n=t.currentTarget.dataset.id;this.updateState({activeItemId:n}),this.props.onSelect&&this.props.onSelect(t)},i.destroy=function(){var t=this;Object.keys(this.state.items).forEach((function(n){t.state.items[n].destroy()}))},i.render=function(){var n=this;if(!this.isRendered){t.prototype.render.call(this);var i=[];for(var e in this.state.items){var r=this.state.items[e],o=r.index,u=r.component;i[o]=u}i.forEach((function(t){t.render(),n.element.appendChild(t.element)}))}},H(n,[{key:"template",get:function(){return"menuoptionlist"}}]),n}(xv),jv=function(t){function n(n){var i;return(i=t.call(this,n)||this).state={activeCaptionId:n.activeCaptionId},i.textTrackList=null,i}K(n,t);var i=n.prototype;return i.onSelect=function(t){var n=t.currentTarget.dataset.id;if("off"===n)return this.props.player.events.fire(oc.uc),void this.textTrackList.updateState({activeItemId:"off"});this.props.player.events.fire(oc.oc,n),this.textTrackList.updateState({activeItemId:n})},i.updateState=function(n){t.prototype.updateState.call(this,n);var i=n.activeCaptionId;void 0!==i&&i!==this.state.activeCaptionId&&(this.state.activeCaptionId=i,this.textTrackList.updateState({activeItemId:i}))},i.destroy=function(){var t;null==(t=this.textTrackList)||t.destroy()},i.render=function(){var n=this;if(!this.isRendered){t.prototype.render.call(this);var i=[];this.props.player.backbone.textTracks&&(this.props.player.backbone.textTracks.forEach((function(t){var e="CC"===t.label.substring(t.label.length-2),r="captions"===t.kind&&e?"":" CC",o=n.props.player.config.video.live_event?"Mostrar leyendas":t.label+r;i.push({label:o,id:"".concat(t.id),active:n.state.activeCaptionId==="".concat(t.id)})})),i.push({label:"Ninguno",id:"off",active:!this.state.activeCaptionId})),this.textTrackList=new Dv({items:i,onSelect:this.onSelect.bind(this)}),this.textTrackList.render(),this.element.appendChild(this.textTrackList.element)}},n}(Ov),Lv=function(t){function n(n){var i;i=t.call(this,n)||this;var e=n.player,r=n.activeCaptionId;return i.state={activeCaptionId:n.activeCaptionId},i.panels={languages:{title:"CC/Subtitles",panel:new jv({player:e,activeCaptionId:r}),headerNavButton:null,headerBackButton:null,headerActionButton:null,headerCloseButton:i.isFullwidth()}},i.state={currentPanel:i.panels.languages},i}K(n,t);var i=n.prototype;return i.destroy=function(){var n=this;t.prototype.destroy.call(this),Object.keys(this.panels).forEach((function(t){n.panels[t].panel.destroy()}))},i.turnCaptionsOn=function(t){this.panels.languages.panel.updateState({activeCaptionId:t})},i.turnCaptionsOff=function(){this.panels.languages.panel.updateState({activeCaptionId:"off"})},n}(Iv),Nv=function(t){return function(n){return null==t?void 0:t[n]}}({"&":"&","<":"<",">":">",'"':""","'":"'"}),Pv=/[&<>"']/g,Fv=RegExp(Pv.source);function Uv(t){return(t=Fo(t))&&Fv.test(t)?t.replace(Pv,Nv):t}function Vv(t){ot(this);var n,i,e,r=this,o={x:0,y:0},u={x:0,y:0},a={x:0,y:0},s=0;function c(n){t.style["".concat(Ji.transitionProperty,"Duration")]=n}function l(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.children.length-1,r=-Math.round(n/d());return Math.min(Math.max(r,i),e)}function f(){return!1}function d(){var n=t.children[0],i=getComputedStyle(n);return n.offsetWidth+parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)}function h(t){var n=[t.clientX,t.clientY],i=n[0],e=n[1];if(t.targetTouches&&t.targetTouches.length>0){var r=[t.touches[0].pageX,t.touches[0].pageY];i=r[0],e=r[1]}return{x:i,y:e}}function v(t){t.stopImmediatePropagation();var i=h(t),r=i.x,a=i.y;u.x=r-o.x,u.y=a-o.y,n=!1,(e=function(t){return function(n){var i=n?"on":"off",e={pointerdown:["pointermove","pointerup"],MSPointerDown:["pointermove","pointerup"],touchstart:["touchmove","touchend"],mousedown:["mousemove","mouseup"]};Ul(window)[i](e[t.type][0],p),Ul(window)[i](e[t.type][1],m)}}(t))(!0),c("0ms")}function p(t){var s=h(t),c=s.x,f=s.y;if(a.x=o.x,a.y=o.y,o.x=c-u.x,o.y=f-u.y,Math.abs(o.x-a.x)>=.15*Math.abs(o.y-a.y))return t.preventDefault(),n=!0,r.fire("touchMove"),i=Date.now(),void y(o.x);e(!1),b(l(o.x))}function m(u){if(u.stopImmediatePropagation(),e(!1),n){u.preventDefault();var c=o.x-a.x,f=Date.now()-i+1;return o.x+=50*c/f,b(l(o.x)),void r.fire("touchEnded")}!function(n){n.preventDefault();var i=qs(n.target,t.children);if(-1!==i){if(i!==s)return void b(i);r.fire("tap",i)}}(u)}function b(t){g(t),r.fire("slide",t)}function w(){g(s,"0ms")}function g(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=d();-1!==t&&i>0&&(c(n),o.x=-t*i,y(o.x))}function y(n){var i=l(n,-1,t.children.length);i!==s&&(r.fire("focus",i),s=i),t.style[Ji.transformProperty]="translateX(".concat(n,"px)")}return{setUp:function(n){Ul(t).on(Ji.pointerEvents?"pointerdown":["touchstart","mousedown"],v),Ul(t).on("click","a",f),Ul(window).on("resize",w),w(),function(t){void 0!==t&&g(t,"0ms")}(n)},show:function(t){g(zs(t))},resize:w,destroy:function(){Ul(t).off(Ji.pointerEvents?"pointerdown":["touchstart","mousedown"],v),Ul(t).off("click","a",f),Ul(window).off("resize",w),t.style.removeProperty(Ji.transformProperty)},on:this.on}}function Bv(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.items.forEach((function(t){void 0!==t.label&&(t.label=Uv(t.label))}));var i,e,r,o,u,a,s=ot(),c=n.id,l=n.items,f=!1;function d(){h(),i=v(),e=i.querySelector(".js-panelItems"),(r=new Vv(e)).on("slide",x),r.on("tap",C),Sv(i,".js-panelTitleButton",A),Sv(i,"li",M),Ul(i).on("keydown",I),Ul(i).on("keypress",I),Ul(i).on("transitionend",(function(t){t.target===i&&(_()?E():S())}))}function h(){n=Object.assign(n,{get active(){return j()?j().label:""}})}function v(){var t=document.createElement("div");return t.innerHTML=nd.render("menu_list_panel",n),t.children[0]}function p(t){var n=U(i.querySelectorAll(".vp-panel-item"));return n[t]||n}function m(t){t!==b()&&(i.classList.toggle("vp-panel-open",!t),i.classList.toggle("vp-panel-collapsible",t),t?e.setAttribute("hidden",""):(e.removeAttribute("hidden"),i.style.removeProperty("height")))}function b(){return i.classList.contains("vp-panel-collapsible")}function w(t){if(f=t,u=i.querySelector(".vp-indicator"),r.destroy(),u.classList.remove("vp-indicator-visible"),f){var n=l.findIndex((function(t){return t.active}));r.setUp(n),g(),u.classList.add("vp-indicator-visible")}}function g(){r.on("touchMove",(function(){u.classList.add("vp-indicator-inactive")})),r.on("touchEnded",(function(){u.classList.remove("vp-indicator-inactive")}))}function y(){i.classList.add("vp-panel-pinTitle")}function _(){return i.classList.contains("vp-panel-open")}function k(){if(b()){s.fire("open",o),t.events.fire(mc.il,!0,o),e.removeAttribute("hidden"),i.classList.add("vp-panel-open");var n=window.getComputedStyle(i),r=parseFloat(n.fontSize);i.style.height="".concat(i.scrollHeight/r,"em");var u="".concat(Ji.transitionProperty,"Delay");p().forEach((function(t,n){var i=40*n+100;t.style[u]="".concat(i,"ms"),t.classList.add("vp-panel-item-in")}))}}function E(t){s.fire("openEnd",o)}function T(){b()&&(s.fire("close",o),t.events.fire(mc.el,!1,o),i.classList.remove("vp-panel-open"),i.style.removeProperty("height"),D())}function S(t){e.setAttribute("hidden",""),p().forEach((function(t,n){t.classList.remove("vp-panel-item-in")})),s.fire("closeEnd",o)}function A(t){return t.preventDefault(),_()?T():k()}function x(t){s.fire("select",l[t].id)}function C(t){s.fire("select",l[t].id)}function M(t){if(!f){var n=qs(t.target,p());s.fire("select",l[n].id)}}function I(t){if("keypress"===t.type&&13===t.which||"keydown"===t.type&&32===t.which){var n=qs(t.target,p());if(-1!==n)return s.fire("select",l[n].id),!1}return null}function O(t){var n=l.findIndex((function(t){return t.active}));if(-1!==n){l[n].active=!1;var e=p(n);e.classList.remove("vp-panel-item-on"),e.setAttribute("aria-checked","false")}var r=l.findIndex((function(n){return"".concat(n.id)==="".concat(t)}));if(-1!==r){l[r].active=!0;var o=p(r);o.classList.add("vp-panel-item-on"),o.setAttribute("aria-checked","true"),i.querySelector(".js-panelStatText").innerHTML=l[r].label}u.classList.remove("vp-indicator-inactive")}function R(t){D(),a=t,t&&p(l.findIndex((function(t){return"".concat(t.id)==="".concat(a)}))).classList.add("vp-".concat(c,"-item-hover"))}function D(){if(a){var t=p(l.findIndex((function(t){return"".concat(t.id)==="".concat(a)})));t.length||t.classList.remove("vp-".concat(c,"-item-hover"))}}function j(){return l.find((function(t){return t.active}))}function L(t){j()&&"auto"!==j().id||(i.querySelector(".js-panelStatText").innerHTML=t)}function N(){return U(i.querySelectorAll('.vp-panel-collapsible button[tabindex="0"], .vp-panel-open li[tabindex="0"]'))}return d(),o={id:c,element:i,setCollapsible:m,resetCarousel:w,pinTitle:y,isOpen:_,open:k,close:T,setActiveItem:O,setHoverState:R,clearHoverState:D,setTitleStat:L,getTabindexItems:N,on:s.on,off:s.off}}function Hv(t){var n,i=0,e=!1,r=null,o=null,u=null;function a(){if(Ji.touch&&!t.store.get(bl)&&!t.config.video.spatial){var n=null,a=10;(r=t.element.querySelector(".vp-nudge-wrapper")).classList.remove("hidden"),r.innerHTML=nd.render("nudge"),o=t.element.querySelector(".vp-nudge-forward"),u=t.element.querySelector(".vp-nudge-backward"),Sv(o,(function(t){t.preventDefault(),l("right"),n=setTimeout(f,250)})),Sv(u,(function(t){t.preventDefault(),l("left"),n=setTimeout(f,250)})),t.events.on(mc.Oc,(function(){e=!0}))}function l(t){if(["left","right"].includes(t)){var e="right"===t?s:c,r="right"===t?o:u;i++,clearTimeout(n),i>=2&&(d(r,t,a),2===i&&e(10),e(10*(i-2)),i>2&&(d(r,t,a+=10),i=2))}}function f(){i>=2&&t.events.fire(mc.jc),i=0,a=10}}function s(n){l((t.currentTime||0)+n)}function c(n){var i=(t.currentTime||0)-n;l(i>=0?i:0)}function l(n){t.events.fire(mc.Dc),t.events.fire(oc.qs,null,n),e||t.events.fire(mc.Pc)}function f(n,i){var e=t.currentTime||0,r="right"===i?"+":"-";return"right"===i&&e>t.config.video.duration-10||e<=10&&"left"===i?null:"".concat(r," ").concat(n)}function d(i,e,r){if(["left","right"].includes(e)){var o=t.element.querySelector(".vp-nudge-shade-".concat(e)),u=i.querySelector(".vp-nudge-seconds");f(r,e)&&(u.innerHTML=f(r,e),clearTimeout(n),i.classList.remove("invisible"),o.classList.remove("vp-nudge-shade-invisible"),n=setTimeout((function(){o.classList.add("vp-nudge-shade-invisible"),i.classList.add("invisible")}),500))}}return t.events.on(mc.Zl,(function(){[o,u].forEach((function(t){t&&Ul(t).off("click").off("touchend")})),a()})),a(),{}}var zv,qv,Wv,Gv,Kv,Yv,Jv,$v,Xv,Zv=/^(%20|\s)*(javascript|data)/im,Qv=/[^\x20-\x7E]/gim,tp=/^([^:]+):/gm,np=[".","/"];function ip(t){var n=t.match(tp);return null==n?void 0:n[0]}function ep(t){return t?decodeURI(encodeURI(function(t){var n=ip(t=t.trim());return t&&!n&&(t="http://".concat(t)),t}(function(t){var n=t.replace(Qv,"");if(function(t){return np.indexOf(t[0])>-1}(n))return n;var i=ip(n);return i&&Zv.test(i)?"":n}(t)))):null}function rp(t){var n=t.url,i=t.embedded,e=t.ownerId,r=t.element,o="?";return o=n&&n.split("?")[1]?"&":o,"".concat(n).concat(o,"embedded=").concat(i,"&source=").concat(r,"&owner=").concat(e)}function op(t,n){return"".concat(t,"/").concat(n)}function up(t,n){return"".concat(t,"/manage/videos/").concat(n)}function ap(t,n,i){return"".concat(t,"/").concat(n,"/").concat(i)}function sp(){for(var t=arguments.length,n=new Array(t),i=0;i1?n-1:0),e=1;e1?n-1:0),e=1;e0&&void 0!==arguments[0]?arguments[0]:{},u=(e={selectDestination:function(t){var n=pp[t];if(!n)return"";var i=u.isOwner?n.creator:n.viewer;return u.isPrivateMode?i.privateMode:i[u.videoPrivacy]}},(r={}).clipUrl=r.clipUrl||{},r.clipUrl.get=function(){var t;return op(u.vimeoUrl,null==(t=o.video)?void 0:t.id)},r.svvRecipientUrl=r.svvRecipientUrl||{},r.svvRecipientUrl.get=function(){var t,n;return ap(u.vimeoUrl,null==(t=o.video)?void 0:t.id,null==(n=o.video)?void 0:n.unlisted_hash)},r.svvManageUrl=r.svvManageUrl||{},r.svvManageUrl.get=function(){var t;return up(u.vimeoUrl,null==(t=o.video)?void 0:t.id)},r.vimeoUrl=r.vimeoUrl||{},r.vimeoUrl.get=function(){return"https://".concat(o.vimeo_url)},r.profileUrl=r.profileUrl||{},r.profileUrl.get=function(){var t,n;return null==(t=o.video)||null==(n=t.owner)?void 0:n.url},r[t="videoPrivacy"]=r[t]||{},r[t].get=function(){var t;return null==(t=o.video)?void 0:t.privacy},r[n="isPrivateMode"]=r[n]||{},r[n].get=function(){var t;return!!(null==(t=o.user)?void 0:t.private_mode_enabled)},r[i="isOwner"]=r[i]||{},r[i].get=function(){var t,n,i;return(null==(t=o.user)?void 0:t.id)===(null==(n=o.video)||null==(i=n.owner)?void 0:i.id)},z(e,r),e);return u}(n),r=e.selectDestination(t);return e[r]&&(i=e[r]),i}function bp(t,n){var i=null;function e(n){var i=n.target.activeCues[0]?n.target.activeCues[0].id:null;t.events.fire(mc.qc,i)}function r(t){var n=!!t&&"menu"===t.position,e=t?t.id:null;i.forEach((function(t){var i=t.dataset.time===e;t.classList.toggle("chapter-marker-hover",i),t.classList.toggle("chapter-marker-hover-no-text",i&&n)}))}function o(t){i.forEach((function(n){n.classList.toggle("chapter-marker-active",n.dataset.time===t)}))}return{renderChapterMarkers:function(){var u,a=n.querySelector(".chapters");a.innerHTML=nd.render("chapters",{chapters:t.backbone?t.backbone.chapters:[],duration:t.config.video.duration}),t.events.off(mc.Hc),t.events.off(mc.zc),function(){for(var t=n.querySelectorAll(".chapter-title"),i=0;i0&&(e.style.left=c+"px"),l>0&&(e.style.right=l+"px")}}(),function(n){Ul(n).on("mouseenter",".js-chapter-marker",(function(n){t.events.fire(mc.Hc,{id:n.target.dataset.time,position:"marker"})})).on("mouseleave",".js-chapter-marker",(function(n){t.events.fire(mc.zc)})),t.events.on([mc.Hc,mc.zc],r),t.events.on(mc.qc,o)}(a),i=U(n.querySelectorAll(".js-chapter-marker")),(null==(u=t.backbone)?void 0:u.chaptersTrack)&&t.backbone.chaptersTrack.addEventListener("cuechange",e)}}}function wp(t,n,i){var e,r,o,u,a,s,c,l,f,d,h,v,p,m,b,w,g,y,_,k,E,T,S,A,x,C,M,I=!1,O=!1,R=!1,D=!1,j=!1,L=!1,P=!1,F=!1,V=!1,B=!1,H=!1,z=!1,q=!0,W=!1,G=!1,K=null,Y=null,J=[],$=null,X=null,Z=null,Q=!1,nt=!1,it=[],et=new bp(t,i),ot=t.config.embed.autoplay&&t.config.request.flags.autohide_controls,ut=[{id:.5,label:"0.5x"},{id:.75,label:"0.75x"},{id:1,label:"Normal"},{id:1.25,label:"1.25x"},{id:1.5,label:"1.5x"},{id:2,label:"2x"}],at=Ji.touch?300:0;function st(){K=null,Y=null}function ct(){if(!Y){var t=Rs(l).left,n=parseInt(window.getComputedStyle(l,"").borderLeftWidth,10);Y=t+n}return Y}function lt(){if(!K){var t=Rs(l).right,n=parseInt(window.getComputedStyle(l,"").borderRightWidth,10);K=t-n}return K}function ft(t){var n=ct();return Ls((t-n)/(lt()-n),0,1)}function dt(n){for(var i,e=rt(J);!(i=e()).done;){var r=i.value,o=Rs(r),u=o.left,a=o.right;if(n>=u&&n<=a)return parseFloat(r.getAttribute("data-time"))/t.config.video.duration}return ft(n)}function ht(n,i){O&&!z&&(i=i||t.config.video.duration*n||0,window.requestAnimationFrame((function(){vt(n,i),pt(n,i)})))}function vt(t,i){(!n.get(cl)||W&&0!==i)&&(n.get(bl)&&(t=100),p.style.left=Math.min(Vs(100*t),100)+"%",m.innerHTML=dd(i),p.style.display="block")}function pt(i,e){n.get(bl)&&(i=100);var r=Math.min(Vs(100*i),100);h.style.width="".concat(r,"%"),f.setAttribute("aria-valuenow",Math.round(e)),f.setAttribute("aria-valuetext","".concat(dd(e)," of ").concat(dd(t.config.video.duration))),s.setAttribute("width","".concat(r,"%"))}function mt(t,i){n.get(bl)&&(t=100);var e=Math.min(Vs(100*t),100);d.style.width="".concat(e,"%"),a.setAttribute("width","".concat(e,"%"))}function bt(){W=!1,r.setAttribute("aria-label","Reproducir"),r.classList.remove("state-playing"),r.classList.add("state-paused")}function wt(){W=!0,G&&At(),r.setAttribute("aria-label","Pausar"),r.classList.remove("state-paused"),r.classList.add("state-playing")}function gt(){q=!1,it.forEach((function(t){return t.retargetFocusFromChild()})),t.events.fire(mc.Jc,q),i.classList.add("invisible")}function yt(){setTimeout((function(){q=!0,t.events.fire(mc.Jc,q),i.classList.remove("invisible")}),at)}function _t(){D||q&&(I||(O&&H||j||ot)&&(R||(!Q&&!nt||j)&&(j&&3===t.config.view||F||L||gt())))}function kt(){D||q||j||yt()}function Et(n){return it.push(n),n.isNewMenu&&n.isFullwidth()?t.element.insertBefore(n.element,t.element.children[0]):n.button.parentNode.insertBefore(n.element,n.button.nextSibling),n}function Tt(t){it=it.filter((function(n){return n!==t})),t.destroy()}function St(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(_){var n,i=1/k.length,e=t/i,r=Math.ceil(e),o=e%1;o<=.33&&(n="fill1"),o>.33&&o<=.66&&(n="fill2"),k.forEach((function(t,i){t.classList.remove("fill0"),t.classList.remove("fill1"),t.classList.remove("fill2"),i===r-1&&o&&o<=.66?t.classList.add(n):i>r-1&&t.classList.add("fill0")})),_.setAttribute("aria-valuenow",t.toFixed(3)),_.setAttribute("aria-valuetext",Math.round(100*t)+"%")}}function At(){var e;if(1===t.config.view||3===t.config.view||12===t.config.view){A&&(Tt(A),A=null),$&&(Tt($),$=null);var I=t.backbone||{},D=t.config.embed.settings,j=mp(ec.VIMEO_LOGO,t.config),L={show:D.logo,showLink:!!j,url:rp({url:j,embedded:!t.config.embed.on_site,ownerId:t.config.video.owner.id,element:"vimeo_logo"})},N=function(){var n;if(!(null==(n=t.config.embed.settings.custom_logo)?void 0:n.img))return null;var i=t.config.embed.settings.custom_logo,e=i.img;return Ji.devicePixelRatio>=2&&(e=e.replace(/(mw|mh)=(\d+)/g,(function(t,n,i){return n+"="+2*parseInt(i,10)}))),{showLink:null!==i.url,url:ep(i.url),img:e,sticky:i.sticky,width:i.width,height:i.height}}();if(!D.watch_trailer||O||W||t.config.embed.autoplay||!t.config.embed.on_site){var P=!t.backbone||t.backbone.supportsSettingVolume,F=!t.backbone||t.backbone.supportsTextTracks,V=Th(t.config,"chromecast").group&&Ji.browser.chrome&&(void 0===D.chromecast||D.chromecast)&&!t.config.video.spatial&&"stock"!==t.config.video.privacy,B=t.displayContext===t.backbone,H=I.supportsPlaybackRate&&D.speed,z=B&&(H||I.qualities&&I.qualities.length>0),K="disable"!==t.config.video.privacy&&(Ji.webvr||Ji.stereoscopic)&&t.config.video.spatial&&Th(t.config,"webvr").group,Y=!!t.backbone&&(null==(e=t.backbone.textTracks)?void 0:e.length);t.events.on(Mi.TEXT_TRACKS_AVAILABLE,(function(){var n;Y=!!t.backbone&&(null==(n=t.backbone.textTracks)?void 0:n.length),At()}));var J={targetBlank:0===t.config.embed.on_site,playState:W?"playing":"paused",volume:P&&D.volume,ccButton:F&&Y&&B,castButton:V,ccOn:null!==Z,prefsButton:z,airplayButton:Ji.airPlay,stereoscopicButton:K,fullscreenButton:D.fullscreen,vimeoLogo:B?L:{},duration:dd(t.config.video.duration),rawDuration:t.config.video.duration,captionsIcon:nd.render("icon_cc"),settingsIcon:nd.render("icon_gear"),fullscreenIcon:nd.render("icon_fullscreen"),unfullscreenIcon:nd.render("icon_unfullscreen"),playIcon:nd.render("icon_play"),pauseIcon:nd.render("icon_pause"),replayIcon:nd.render("icon_replay"),chaptersIcon:nd.render("icon_chapters"),chapters:!!I.chapters&&I.chapters.length,strings:{loadedBar:"cargado",playedBar:"reproducido",volume:"Volumen (usa las teclas de flechas arriba/abajo para cambiar).",airPlay:"Elegir un dispositivo AirPlay",airPlayOff:"Apagar el AirPlay",pipEnter:"Iniciar el modo de imagen dentro de la imagen (PIP)",pipReturn:"Salir del modo de imagen dentro de la imagen (PIP)",fullscreen:"Pantalla completa",chromecast:"Transmitir",watchOnVimeo:"Ver en vimeo.com",stereoscopic:"Activar la reproducción estereoscópica",stereoscopicOff:"Desactivar la reproducción estereoscópica",playLabel:W?"Pause":"Play",captionsLabel:"Elegir las leyendas",chaptersLabel:"Capítulos",settingsLabel:"Configuración",fullscreenLabel:"Abrir el modo de pantalla completa"}};if(N&&(J.customLogo=N),i.classList.remove("trailer"),G=!1,i.innerHTML=nd.render("controlbar",J),r=i.querySelector(".play"),o=i.querySelector(".fullscreen"),u=r.querySelector(".buffer"),a=r.querySelector(".loaded"),s=r.querySelector(".played"),c=i.querySelector(".play-bar"),l=i.querySelector(".vp-progress"),f=c.querySelector(".focus-target"),d=c.querySelector(".loaded"),h=c.querySelector(".played"),v=c.querySelector(".cuepoints"),p=i.querySelector(".timecode"),m=p.querySelector(".box"),b=i.querySelector(".ghost-timecode"),w=b.querySelector(".box"),g=i.querySelector(".thumb-preview"),y=i.querySelector(".thumb"),(_=i.querySelector(".volume"))&&(k=U(_.querySelectorAll("div")),t.config.embed.muted?St(0):St(t.config.request.cookie.volume)),S=i.querySelector(".play-bar .cc"),T=i.querySelector(".js-chapter-button"),(E=i.querySelector(".js-prefs"))&&el.isCastConnected&&cp(E),x=i.querySelector(".pip"),Ji.airPlay&&(C=i.querySelector(".airplay")),(Ji.webvr||Ji.stereoscopic)&&t.config.video.spatial&&(M=i.querySelector(".stereoscopic")),R=!1,q&&t.events.fire(mc.Jc,q),ot&&_t(),xt(),n.get(bl)){var X=i.querySelector(".vp-live-status");X.style.display="block";var Q=X.querySelector(".vp-live-status-circle");n.get(pl)?(Q.classList.remove("offline"),Q.classList.add("online"),E&&!el.isCastConnected&&sp(E)):(Q.classList.add("offline"),Q.classList.remove("online"),r.classList.add("hidden"),E&&cp(E)),m.style.cursor="default",l.classList.add("disabled")}et.renderChapterMarkers()}else!function(n,e){i.classList.add("trailer");var o={vimeoLogo:n,text:t.config.video.vod.button_text||"Ver el avance",strings:{watchOnVimeo:"Ver en vimeo.com"}};e&&(o.customLogo=e),i.innerHTML=nd.render("controlbar_trailer",o),r=i.querySelector(".play"),G=!0}(L,N)}}function xt(){if(n.get(bl)){var i=W&&t.config.duration>0;p.style.display=i?"block":"none"}}function Ct(){var e;function r(n){if(z=!1,e===n.pointerId&&!1!==n.isPrimary){var i=n.clientX;n.targetTouches&&n.targetTouches.length>0&&(i=n.targetTouches[0].clientX,n.preventDefault());var r=dt(i);ht(r),t.events.fire(oc.qs,r)}}function o(n){var e=n.type;"pointerup"===e||"MSPointerUp"===e?Ul(i).off("pointermove",".vp-progress",r).off("pointerup",".vp-progress",o):"touchend"===n.type?Ul(i).off("touchmove",r).off("touchend",o):Ul(document).off("mousemove",r).off("mouseup",o),t.events.fire(mc.Gc),t.element.classList.remove("scrubbing")}t.events.on(Ai.TIME_UPDATE,(function(n){var i=n.currentTime,e=n.timeProgress;z&&(0===t.config.embed.time||t.config.embed.time>0&&i>=t.config.embed.time)&&(z=!1),L||ht(e,i)})),t.events.on(mc.Wc,(function(t){L=!0,P=t})),t.events.on(mc.Gc,(function(){L=!1,P=!1})),t.events.on(Ai.SEEKED,(function(t){var n=t.timeProgress;P&&ht(n)})),n.get(cl)&&!n.get(ml)||(Ul(i).on(Ji.pointerEvents?"pointerdown":["touchstart","mousedown"],".vp-progress",(function(n){if(!(n.button&&2===n.button||n.target.classList.contains("js-chapter-marker"))){var u=n.type;if(t.element.classList.add("scrubbing"),t.events.fire(mc.Wc,!1,u),"pointerdown"===u||"MSPointerDown"===u){e=n.pointerId;try{n.target.msSetPointerCapture?n.target.msSetPointerCapture(e):n.target.setPointerCapture(e)}catch(t){}Ul(i).on("pointermove",".vp-progress",r).on("pointerup",".vp-progress",o)}else"touchstart"===u?Ul(i).on("touchmove",r).on("touchend",o):Ul(document).on("mousemove",r).on("mouseup",o);var a=n.clientX;n.targetTouches&&n.targetTouches.length>0&&(a=n.targetTouches[0].clientX,n.preventDefault());var s=dt(a);if(O)ht(s);else{var c=t.config.video.duration*s;vt(s,c),pt(s,c),z=!0}return t.events.fire(oc.qs,s,null),!1}})),t.events.on(oc.mc,(function(n,i){n=Ls(n,0,t.config.video.duration),i||(i=n/t.config.video.duration),window.requestAnimationFrame((function(){vt(i,n),pt(i,n)}))})))}function Mt(n){if(n.element.parentElement){if(n.isFullwidth())return n.element.style.right="",n.element.style.bottom="",void(n.element.style.height="");var i=Rs(t.element),e=Rs(n.button),r=Rs(n.element.parentElement),o=Rs(n.element),u=0,a=e.right-e.width/2+o.width/2;aOf.sm?.5:.33;function s(){return e||(e=t.verifyConfig().then((function(t){return Xc(t.thumb_preview.url)}))),e.then((function(n){return y.style.backgroundImage||(y.style.width="".concat(t.config.request.thumb_preview.frame_width*a,"px"),y.style.height="".concat(t.config.request.thumb_preview.frame_height*a,"px"),y.style.backgroundImage="url(".concat(t.config.request.thumb_preview.url,")"),y.style.backgroundSize="".concat(t.config.request.thumb_preview.width*a,"px ").concat(t.config.request.thumb_preview.height*a,"px")),n}))}function f(n){if(n.target===c){var i=ft(n.clientX);ht(i),t.events.fire(oc.qs,i)}}function d(t){return b.classList.contains("hidden")||(g.classList.remove("hidden"),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){g.classList.remove("invisible")}))}))),t}function h(n){if(t.config.request.thumb_preview&&null===o&&!u){var i=Rs(l).width,e=document.querySelector(".player").clientHeight;if(!(o=e>=300&&i>=185))return void g.classList.add("hidden");s().then(d).catch((function(){}))}if(B){var f=function(t){for(var n,i=rt(J);!(n=i()).done;){var e=n.value,r=Rs(e),o=r.left,u=r.right,a=r.width;if(t>=o&&t<=u)return{clientX:o+a/2,snappedTo:e}}return{clientX:t,snappedTo:null}}(n.clientX),h=f.clientX,p=f.snappedTo,m=ft(h),_=t.config.video.duration*m;J.forEach((function(t){return t.classList.toggle("active",t===p)})),t.config.request.thumb_preview&&o&&!u&&s().then((function(n){var i=tt(function(n){var i=t.config.video.duration/t.config.request.thumb_preview.frames,e=Math.min(t.config.request.thumb_preview.frames-1,Math.ceil(n/i)),r=e%t.config.request.thumb_preview.columns,o=Math.floor(e/t.config.request.thumb_preview.columns);return[-r*t.config.request.thumb_preview.frame_width*a,-o*t.config.request.thumb_preview.frame_height*a]}(_),2),e=i[0],r=i[1];return window.requestAnimationFrame((function(){y.style.backgroundPosition="".concat(e,"px ").concat(r,"px")})),n})).catch((function(){})),window.requestAnimationFrame((function(){w.innerHTML=dd(_);var t=(100*m).toFixed(3);b.style.left="".concat(t,"%"),function(t){var n=tt(function(){var t=Rs(r).left,n=Rs(c).right,i=Rs(g).width,e=t+Math.ceil(i/2),o=n-Math.ceil(i/2),u=ct(),a=lt()-u;return[(e-u)/a,(o-u)/a]}(),2),i=n[0],e=n[1],o=(100*Math.max(i,Math.min(e,t))).toFixed(3);g.style.left="".concat(o,"%")}(m),n.clientX>lt()+10&&!g.contains(document.elementFromPoint(n.clientX,n.clientY))&&v()}))}}function v(){b&&(b.classList.add("invisible"),g.classList.add("invisible")),B=!1,Ul(c).off("click",f)}n.get(cl)&&!n.get(ml)||Ul(i).on("mouseenter",".vp-progress",(function(n){B||V||(b.classList.remove("hidden"),B=!0,h(n),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){b.classList.remove("invisible")}))})),t.config.request.thumb_preview&&o&&!u&&s().then(d).catch((function(){})),Ul(c).on("click",f))})).on("mousemove",".play-bar",h).on("mouseleave",".play-bar",v).on("mouseenter",".js-chapter-marker",(function(){u=!0})).on("mouseleave",".js-chapter-marker",(function(){u=!1,o=null})),Ul(i).on("transitionend",".ghost-timecode",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(b.classList.add("hidden"),g.classList.add("hidden"))}),!1),t.events.on(mc.Vl,v),t.events.on(mc.Zl,(function(){e=null}))}(),function(){var n;function e(n){var i=n.clientX;n.targetTouches&&(i=n.targetTouches[0].clientX,n.preventDefault());var e=o(i);t.events.fire(oc.Ws,e),St(e)}function r(n){V=!1,t.events.fire(mc.Yc),t.element.classList.remove("scrubbing");var o=n.type;"pointerup"===o||"MSPointerUp"===o?Ul(i).off("pointermove",".volume",e).off("pointerup",".volume",r):"touchend"===n.type?Ul(document).off("touchmove",e).off("touchend",r):Ul(document).off("mousemove",e).off("mouseup",r),_.setAttribute("tabindex",_.getAttribute("data-tabindex")),_.removeAttribute("data-tabindex")}function o(t){var n=Rs(_).left;return Ls((t-n)/(Rs(_).right-n),0,1)}Ul(i).on("mousemove",".volume",(function(t){var n=t.srcElement;if(-1===k.indexOf(n)){var i=Rs(_),e=t.clientX,r=i.bottom-2;if(n=document.elementFromPoint(e,r),-1===k.indexOf(n))return}n.classList.add("hover"),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){n.classList.remove("hover"),n.classList.add("animate")}))}))})),Ul(i).on("transitionend",".volume div",(function(t){"height"===t.propertyName&&this.classList.remove("animate")})),Ul(document).on("contextmenu",".volume",(function(){this.blur()})),Ul(i).on(Ji.pointerEvents?"pointerdown":["touchstart","mousedown"],".volume",(function(u){if(1===u.which){_.setAttribute("data-tabindex",_.getAttribute("tabindex")),_.removeAttribute("tabindex"),V=!0,t.element.classList.add("scrubbing"),t.events.fire(mc.Kc);var a=u.type;if("pointerdown"===a||"MSPointerDown"===a){n=u.pointerId;try{u.target.msSetPointerCapture?u.target.msSetPointerCapture(n):u.target.setPointerCapture(n)}catch(t){}Ul(i).on("pointermove",".volume",e).on("pointerup",".volume",r)}else"touchstart"===a?Ul(document).on("touchmove",e).on("touchend",r):Ul(document).on("mousemove",e).on("mouseup",r);var s=u.clientX;u.targetTouches&&(s=u.targetTouches[0].clientX);var c=o(s);t.events.fire(oc.Ws,c),St(c)}})),t.events.on(mc.Ac,(function(n){t.backbone.muted?St(0):!V&&k&&St(n)})).on([oc.nc,oc.tc],(function(){At()}))}(),Sv(i,".js-chapter-marker",(function(n){var i=parseFloat(n.target.dataset.time)+.001;t.events.fire(mc.Vc,i,"controlbar")})),t.events.on(Mi.CHAPTER_CUES_UPDATED,(function(){et.renderChapterMarkers()})),function(){function e(){var n=t.backbone.chapters,i=0;return U(n).map((function(n){var e=t.currentTime;return{index:"".concat(i+=1),label:n.text,id:n.id,active:e>=n.startTime&&e0){var r=new Bv(t,{id:"quality",title:"Calidad",items:t.backbone.qualities});r.on("select",(function(n){t.events.fire(oc.Xs,n)})),e&&r.setTitleStat(e),r.pinTitle(),i.push(r)}if(t.backbone.supportsPlaybackRate&&t.config.embed.settings.speed){var o=ut.map((function(n){return n.active=n.id===t.backbone.playbackRate,n})),u=new Bv(t,{id:"speed",title:"Velocidad",items:o});u.on("select",(function(n){t.events.fire(oc.bc,n)})),u.pinTitle(),i.push(u)}var a=new Av(t,E,i);function s(n){a.element.classList.toggle("vp-menu-center",n),t.events.fire(mc.rl,a.isCentered(),a)}return n.watch("ui.controlbar.isPrefsMenuCentered",s),s(n.get("ui.controlbar.isPrefsMenuCentered")),Ji.touch&&a.element.classList.add("vp-menu-carousel"),a}())).show(i);$.toggle(i)}})),t.events.on(mc.xc,(function(t){$&&$.getPanel("quality")&&$.getPanel("quality").setActiveItem(t)})),t.events.on(Mi.STREAM_CHANGE,(function(n){var i=n.quality||"".concat(n.height,"p");if(e=i,$&&$.getPanel("quality")){var r=t.backbone.qualities.find((function(t){return t.id===i})).label;$.getPanel("quality").setTitleStat(r)}})),t.events.on(mc.Rc,(function(t){$&&$.getPanel("speed")&&$.getPanel("speed").setActiveItem(t)}))}(),Sv(i,".pip",(function(){"picture-in-picture"!==t.backbone.presentationMode?t.events.fire(oc.fc):t.events.fire(oc.dc)})),t.events.on(su,(function(){x&&(x.classList.remove("hidden"),x.hidden=!1,st())})).on(cu,(function(){x&&(x.classList.add("hidden"),x.hidden=!0,st())})).on(lu,(function(){nt=!0,x&&(x.classList.add("on","return"),x.classList.remove("enter"),x.setAttribute("title",x.getAttribute("data-title-return")))})).on(fu,(function(){nt=!1,x&&(x.classList.add("enter"),x.classList.remove("on","return"),x.setAttribute("title",x.getAttribute("data-title-enter")))})),Ji.airPlay&&(Sv(i,".airplay",(function(){t.events.fire(mc.qf)})),t.events.on(mc.Vf,(function(){C&&(C.classList.remove("hidden"),C.hidden=!1,st())})).on(mc.Bf,(function(){C&&(C.classList.add("hidden"),C.hidden=!0,st())})).on(mc.Hf,(function(){Q=!0,C&&(C.classList.remove("off"),C.classList.add("on"),C.setAttribute("title",C.getAttribute("data-title-on"))),kt()})).on(mc.zf,(function(){Q=!1,C&&(C.classList.remove("on"),C.classList.add("off"),C.setAttribute("title",C.getAttribute("data-title-off")))}))),Sv(i,".fullscreen",(function(){t.events.fire(mc.Lc)})),t.events.on(mc.sl,(function(){I=!1,o.setAttribute("aria-label","Salir del modo de pantalla completa"),i.classList.remove("tiny")})),t.events.on(mc.ll,(function(t){t||(I=!0),o.setAttribute("aria-label","Abrir el modo de pantalla completa"),e&&i.classList.add("tiny")})),t.events.on([mc.Bl,mc.Wc,oc.Ws],kt).on([mc.Vl,mc.Hl],_t).on(mc.al,(function(){R=!1,_t()})).on(mc.cl,(function(){R=!1})).on(mc.Cc,(function(){H=!0,_t()})).on(oc.Ws,(function(t,n){n||kt()})),Ul(i).on(["pointerenter","pointerleave","mouseenter","mouseleave"],[".play",".play-bar",".custom-logo",".vp-menu"],(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE||(R="pointerenter"===t.type||"MSPointerEnter"===t.type):Ji.touch||(R="mouseover"===t.type)})),t.events.on(oc._overrideControlbarBehavior,(function(n){D=n,n?t.events.on(oc.lc,(function(t){t?yt():gt()})):t.events.off(oc.lc)})),t.events.on(mc.wl,(function(t){if("not-supported"!==t&&"private-unlocked"!==t&&"help"!==t)j=!0,_t();else for(var n=i.querySelectorAll("a, button, input, [tabindex]"),e=0,r=n.length;e2&&void 0!==arguments[2]?arguments[2]:1;ot(this),this.version=e,this.visible=!1;var r=this.Ch=document.createElement("div");r.classList.add("compass-wrapper"),r.innerHTML=nd.render("compass",{version:e}),r.classList.add("cloaked"),t.appendChild(r),n&&r.addEventListener("click",n),this.Mh=r.querySelector(".compass-slice"),this.Ih=r.querySelector(".compass-line");var o=function(){i.Oh=!0},u=function(t){return function(){setTimeout((function(){i.Oh||(i.fade(),i.Oh=!1)}),t)}};Ul(this.Ch).on("mousein",o).on("pointerin",o).on("mouseout",u(1e3)).on("pointerout",u(1e3)),u(2500)()}var n=t.prototype;return n.setAngle=function(t,n){var i=this;this.Ra&&window.cancelAnimationFrame(this.Ra);var e=0;1===this.version?e=-45:2===this.version&&(e=-30);var r="".concat(e+n),o=(t+85)/170;this.Ra=window.requestAnimationFrame((function(){i.Mh.setAttribute("transform","rotate(".concat(r,", ").concat(18,", ").concat(18,")")),i.Ih&&i.Ih.setAttribute("d",i.Rh(o,18))}))},n.Rh=function(t,n){var i=2*n-Math.round(2*n*t),e=(2*n-2*Math.sqrt(2*i*n-Math.pow(i,2)))/2,r=2*n-e-5;return"M".concat(e+5,",").concat(i," L").concat(r,",").concat(i," z")},n.reveal=function(){var t=this;this.Ch.classList.remove("cloaked"),window.requestAnimationFrame((function(){t.Ch.classList.add("in")})),this.visible=!0},n.fade=function(){this.Ch.classList.add("fade"),this.visible=!0},n.hide=function(){var t=this;this.Ch.classList.remove("in"),this.Ch.classList.remove("fade"),this.Ch.classList.add("leaving"),Ul(this.Ch).on("transitionend",(function n(){"opacity"===event.propertyName&&(t.Ch.classList.remove("leaving"),t.Ch.classList.add("cloaked"),t.visible=!1),Ul(t.Ch).off("transitionend",n)}))},n.updatePosition=function(t){if(t){var n=Rs(t);if(n.height<265)return this.Ch.classList.remove("align-bottom"),void this.Ch.classList.add("hidden");if(n.height<336)return this.Ch.classList.remove("hidden"),void this.Ch.classList.add("align-bottom");this.Ch.classList.remove("hidden"),this.Ch.classList.remove("align-bottom")}},n.getWrapper=function(){return this.Ch},t}();function yp(t,n,i){var e=null,r=Ji.touch?4500:2e3,o=!0,u=!0,a=!1,s=null,c=null,l=[],f=!1,d=null,h=null,v=!0,p=!1,m=!1,b=!1,w=!1,g=!1,y=i.querySelector(".vp-target"),_=i.querySelector(".vp-sidedock"),k=i.querySelector(".vp-controls"),E=i.querySelector(".vp-title"),T=i.querySelector(".vp-video"),S=U(i.querySelectorAll(".vp-nudge")),A=!!Ji.touch&&S.some((function(t){return!t.classList.contains("invisible")})),x=t.config.embed.autoplay&&t.config.request.flags.autohide_controls,C=Ji.touch?300:0,M=null,I=Th(t.config,"webvr").group||!1;function O(){clearTimeout(e),e=null}function R(){g&&(clearTimeout(e),e=setTimeout(j,r))}function D(){ch.element&&ch.element.classList.contains("js-player-fullscreen")&&(a||(i.classList.add("player-cursor-hide"),u=!0,a=!0))}function j(n){(p||v)&&(b||(O(),document.activeElement&&document.body.classList.contains("showfocus")&&(_.contains(document.activeElement)||k.contains(document.activeElement))||(t.events.fire(n?mc.Vl:mc.Hl),u=!0,Ji.spatialPlayback&&t.config.video.spatial||(y.classList.add("hidden"),y.setAttribute("hidden","")),o=!0,D())))}function L(){R(),A||w||p&&v||(t.events.fire(mc.Bl),y.classList.remove("hidden"),y.removeAttribute("hidden"))}function N(){p||v?i.removeAttribute("tabindex"):p||v||m||i.setAttribute("tabindex","0")}function P(){t.events.on([Ai.TIME_UPDATE,Ai.SEEKED],(function n(i){i.currentTime>=1.75&&null===e&&(t.events.fire(mc.Cc),t.events.off([Ai.TIME_UPDATE,Ai.SEEKED],n))}))}function F(){T.classList.remove("threesixty-video"),t.element.classList.remove("grabbable"),t.element.classList.remove("grabbing"),s&&s.hide()}function V(){l.forEach((function(t){return clearTimeout(t)})),l=[]}function B(t){t&&(t.classList.remove("cloaked"),window.requestAnimationFrame((function(){t.classList.add("in")})))}function H(t){t&&(t.classList.add("leaving"),window.requestAnimationFrame((function(){Ul(t).on("transitionend",(function n(i){"opacity"===i.propertyName&&(t.classList.remove("in"),t.classList.remove("leaving"),t.classList.add("cloaked"),Ul(t).off("transitionend",n))}))})))}function z(t){Rs(_).width>60?t.classList.add("vp-alert-bumpdown"):t.classList.remove("vp-alert-bumpdown")}return function(){var n=!0;function e(){L()}function c(e){var s;if(r=2e3,u)u=!1;else if(a&&(i.classList.remove("player-cursor-hide"),a=!1),0!==e.screenX&&e.screenX!==screen.width-1&&0!==e.screenY&&e.screenY!==screen.height-1){if(n=!0,Ji.spatialPlayback&&(null==(s=t.config.video)?void 0:s.spatial)){var c=Rs(t.element),l=e.clientX-c.left,d=e.clientY-c.top,h=d>t.element.clientHeight-55,v=l>t.element.clientWidth-45&&d<180;if(f||!h&&!v)return}o&&L(),R()}else O(),D(),n&&(j(!0),n=!1)}function l(){j(!0)}function d(t){var n=k.contains(t.target)||_.contains(t.target),i=s&&s.getWrapper().contains(t.target);p&&v||i?n||!p&&!v||j(!0):(clearTimeout(M),M=setTimeout(L,C))}Ji.pointerEvents?Ul(i).on("pointerenter",(function(t){if("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)return r=2e3,e();r=4500,d(t)})).on("pointermove",(function(t){if("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)return c(t)})).on("pointerleave",(function(t){if("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE)return l()})):Ul(i).on("touchmove",(function(){r=4500,R()})).on("touchend",d).on("mouseenter",e).on("mousemove",c).on("mouseleave",l)}(),t.events.on(Ai.PLAY,(function(t){x||0===t||L()})).on(mc.pr,L).on([Mi.BUFFER_ENDED,Ai.SEEKED,mc.Gc,mc.Ac,mc.il],R).on(iu,(function(){g=!0})),t.events.on(mc.Xc,(function(t){t&&R()})),t.events.on(mc.wl,N).on(mc.Jc,(function(t){v=t,N()})).on(mc.$c,(function(t){p=t,N()})),t.events.on(mc.cf,(function(){b=!0,L()})).on(mc.lf,(function(){b=!1})),function(){var e=!1,r=!1,o=0;t.events.on(mc.Xc,(function(t){r=t})),Ul(i).on(Ji.pointerEvents?"pointerup":"click",(function(i){if(!r&&2!==i.button&&i.target.classList&&function(t){return(t.classList.contains("vp-title")||t.classList.contains("vp-target")||E.contains(t.parentNode)&&"HEADER"===t.parentNode.tagName||T.contains(t))&&!_.contains(t)}(i.target)){var e=("pointerup"===i.type||"MSPointerUp"===i.type)&&"mouse"!==i.pointerType&&i.pointerType!==i.MSPOINTER_TYPE_MOUSE,u=g&&Ji.spatialPlayback&&t.config.video.spatial&&c;if(Ji.touch||e){var a=-1!==t.backbone.supportedPresentationModes.indexOf("inline")&&!Ji.mobileAndroid;if(!u){if(g&&a)return;return void t.events.fire(mc.Pc)}}1==++o&&setTimeout((function(){if(u){var e=h&&h.x===i.clientX&&h.y===i.clientY;return 1===o&&e&&!Ji.mobileAndroid&&t.events.fire(t.backbone.paused?mc.Pc:mc.Nc),1!==o&&t.backbone.getEffectByName("ThreeSixtyEffect").snapToCenter(),void(o=0)}if(1===o){if(n.get(cl)&&!n.get(pl))return;t.events.fire(t.backbone.paused?mc.Pc:mc.Nc)}else t.events.fire(mc.Lc);o=0}),200)}})),Ul(i).on("mousedown",".vp-video-wrapper",(function(t){var n;if(!e)return y.classList.remove("hidden"),y.removeAttribute("hidden"),2!==t.button&&document.createEvent&&((n=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),y.dispatchEvent(n)),!1})).on("contextmenu",".vp-video",(function(t){return y.classList.remove("hidden"),y.removeAttribute("hidden"),!1})),t.events.on(oc.sc,(function(t){if(t)return e=!0,void y.classList.add("hidden");e=!1,y.classList.remove("hidden")}))}(),function(){var n,e;Ji.touch||(Ul(i).on("focus","a, button, input, [tabindex]",(function(){e=this,clearTimeout(n),n=null,document.activeElement===this&&L()})),Ul(i).on("blur","a, button, input, [tabindex]",(function(){document.activeElement===this&&(n=setTimeout(j,50))})),i.addEventListener("focus",(function(t){L(),e&&e.focus()}),!1),t.events.on(mc.wl,(function(){m=!0,i.removeAttribute("tabindex")})),t.events.on(mc.gl,(function(){m=!1,N()})))}(),t.events.on(mc.sl,(function(t){D(),c&&c.adjustRenderSize(),b&&L()})).on(mc.ll,(function(t){o=!0,c&&c.adjustRenderSize(),t?j():(L(),O())})),P(),t.events.on(oc.Js,(function(){o=!0,u=!0,v=!0,p=!1,w=!1,g=!1,P(),O()})),t.events.on(oc.hc,(function(){var n=function(t){return function(){c&&t.apply(void 0,arguments)}},e=n((function(n){var i=t.element.classList.contains("webvr");c&&i&&c.toggleVR()})),r=n((function(n){c.isVRPresenting?setTimeout((function(){t.events.fire(Oi.WEBVR_ENTER)}),100):setTimeout((function(){t.events.fire(Oi.WEBVR_EXIT)}),100)}));t.events.on(oc.pc,n((function(){var n=t.element.classList.contains("webvr");n||t.element.classList.add("grabbable"),s&&s.updatePosition(t.element),!s||s.visible||n||s.reveal()}))),t.events.on(mc.Sc,n((function(){F(),Ji.webvr&&c.isVRPresenting&&I&&c.toggleVR()}))),t.events.on(Oi.CAMERA_UPDATE,n((function(t){s&&s.setAngle(t.pitch,t.yaw)}))),t.events.on(iu,n((function(){t.config.video.spatial?function(){function n(t){d&&(d.innerHTML=nd.render("threesixty_reminder",t))}var e=t.backbone.getEffectByName("ThreeSixtyEffect");t.config.embed.settings.spatial_compass?(s||(s=new gp(t.element.querySelector(".vp-controls-wrapper"),(function(){e.snapToCenter()}))),s.updatePosition(t.element),s.reveal()):s&&s.hide(),t.events.once(mc.Oc,(function(){var i=t.config.embed.cards;(null==i?void 0:i.length)&&i[0].timecode<15||(l.push(setTimeout((function(){n({showArrows:!1,text:Ji.android?"Explora":"Haz clic y arrastra para explorar"}),z(d),B(d),setTimeout((function(){return H(d)}),3e3)}),7e3)),Ji.android||l.push(setTimeout((function(){n({showArrows:!1,text:Ji.android?"Explora":"Usa las flechas para ver más."}),z(d),B(d),setTimeout((function(){return H(d)}),3e3)}),14e3)))})),function(){var t=i;if(!d){var n=d=document.createElement("div");n.classList.add("cloaked"),n.classList.add("vp-alert-round"),n.classList.add("vp-alert-round--top"),n.classList.add("vp-alert-round--threesixty"),t.appendChild(n)}}()}():!t.config.video.spatial&&s&&(F(),V())}))),(Ji.webvr||Ji.stereoscopic||Ji.webxr)&&(Ji.webvr&&window.addEventListener("vrdisplaypresentchange",r,!1),t.events.on(mc.nl,n((function(){V(),Ji.webvr&&c.hasVRHeadset&&I?c.toggleVR():t.events.fire(mc.Nl)}))),t.events.on(Oi.WEBVR_HARDWARE_AVAILABLE,n((function(t){var n=i.querySelector(".stereoscopic");n&&n.classList.contains("off")&&I&&n.classList.remove("off")}))),t.events.on(Oi.WEBVR_ENTER,n((function(n){window.addEventListener("vrdisplaydisconnect",e,!1),window.addEventListener("vrdisplaydeactivate",e,!1);var r=i.querySelector(".stereoscopic");r&&r.classList.add("on"),s&&s.hide(),t.element.classList.remove("grabbable"),t.element.classList.add("webvr"),c.isUserInteracting=!1}))),t.events.on(Oi.WEBVR_EXIT,n((function(n){window.removeEventListener("vrdisplaydisconnect",e),window.removeEventListener("vrdisplaydeactivate",e);var r=i.querySelector(".stereoscopic");r&&r.classList.remove("on"),s&&s.reveal(),t.element.classList.add("grabbable"),t.element.classList.remove("webvr"),c.isUserInteracting=!0}))));var o=null,u=n((function(n){var i=t.element.classList.contains("webvr");f||i||(f=!0,n.preventDefault(),t.element.classList.add("grabbing"),h={x:n.clientX,y:n.clientY},c.makeContact(h))})),a=n((function(n){var i=t.element.classList.contains("webvr");f&&!i&&(V(),c.move({x:n.clientX,y:n.clientY}))})),v=n((function(n){var i=t.element.classList.contains("webvr");f&&!i&&(t.element.classList.remove("grabbing"),c.releaseContact(!1),f=!1)})),p=n((function(n){n.preventDefault(),t.element.classList.contains("webvr")||(c.isUserInteracting||(c.isUserInteracting=!0),null!==o&&clearTimeout(o),V(),o=setTimeout((function(){t.element.classList.remove("player-cursor-hide"),t.element.classList.add("grabbable"),c.isUserInteracting=!1}),500),t.element.classList.add("player-cursor-hide"),t.element.classList.remove("grabbable"),c.moveWheel({x:n.deltaX,y:n.deltaY}))})),m=n((function(t){f||(f=!0,c.makeContact({x:t.touches[0].clientX,y:t.touches[0].clientY}))})),b=n((function(t){f&&(t.preventDefault(),V(),c.move({x:t.touches[0].clientX,y:t.touches[0].clientY}))})),w=n((function(t){c.releaseContact(!0),f=!1})),g=n((function(t){f||V(),c.moveDevice(t.alpha,t.beta,t.gamma,t.orientation)})),_=n((function(n){f=!1,t.element.classList.remove("grabbing"),c.abandonMotion()}));t.events.on(iu,(function(){Ji.android&&c&&window.addEventListener("deviceorientation",g,!1)})),t.events.once(iu,(function(){t.store.watch("ui.player.boundingRect",(function(){s&&s.updatePosition(t.element),c&&c.adjustRenderSize(),f=!1})),Ji.pointerEvents?(Ul(y).on("pointerdown",u),window.addEventListener("pointermove",a),window.addEventListener("pointerup",v),window.addEventListener("pointerleave",_)):(Ul(y).on("mousedown",u).on("wheel",p),window.addEventListener("touchstart",m,!!Ji.passiveEvents&&{passive:!1}),window.addEventListener("touchmove",b,!!Ji.passiveEvents&&{passive:!1}),window.addEventListener("touchend",w,!!Ji.passiveEvents&&{passive:!1}),window.addEventListener("mousemove",a),window.addEventListener("mouseup",v),window.addEventListener("mouseleave",_))}))})),t.events.on(au,(function(t){F(),c=t,V()})),t.events.on(mc.Dc,(function(){w=!0,clearTimeout(M),M=null})),t.events.on(mc.jc,(function(){w=!1})),{}}var _p=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this.sd=t,this.Dh=this.sd.debugCollector,this.jh=n}var n=t.prototype;return n.getCurrent=function(t){return this.sd.debugCollector.getCurrent(t)},n.getSeries=function(t){return this.sd.debugCollector.getSeries(t)},n.getTemplateData=function(){var t,n,i,e=this.Dh.getCurrent("scanner"),r="MediaSourceScanner"===e,o="HLSLiveScanner"===e,u=this.Dh.getCurrent("video_dims"),a=!(!this.sd.config.request.files||!this.sd.config.request.files.dash)&&this.sd.config.request.files.dash.separate_av,s=this.Dh.getCurrent("vr_headset")||null,c=this.sd.currentTime,l=mt(c,this.sd.backbone.buffered),f=c+l,d=this.Lh(this.sd.backbone.buffered),h=this.sd.backbone.brainDebug,v="".concat(this.sd.config.video.owner.id,"_").concat(this.sd.config.video.id,"_").concat(this.sd.config.request.session,"_").concat(Math.floor(Date.now()/1e3)),p={playerVersion:Fc(this.sd.config),sessionId:this.sd.config.request.session,payloadId:v,clientIp:null==(t=this.sd.config.request)||null==(n=t.client)?void 0:n.ip,clipId:this.sd.config.video.id,isDash:r,isLive:o,embedSize:u,separateAudioVideo:a,isCopyDisabled:!!this.sd.doNotTrackEnabled||this.sd.config.embed.settings.background,isDNTEnabled:this.sd.doNotTrackEnabled,hideCloseButton:!!this.sd.config.embed.settings.background,vrHeadsetName:s,currentTime:Vs(c,3),bufferAhead:Vs(l,3),bufferEnd:Vs(f,3),readyState:this.sd.backbone.readyState,support:JSON.stringify(Ji),ua:null==(i=navigator)?void 0:i.userAgent,bufferedRanges:JSON.stringify(d),brainDebug:JSON.stringify(h)};return Object.assign(p,this.Nh(),this.Ph(),this.Fh(),this.Uh(),this.Vh(),this.Bh(o),this.Hh(),this.zh())},n.Nh=function(){var t=this.Dh.getCurrent("bandwidth");return{bandwidthKbps:t?"".concat(Math.floor(t.value/1e3).toLocaleString()," Kbps"):0,bandwidthMinKbps:"".concat(Math.floor(this.Dh.getCurrent("min_bandwidth")/1e3).toLocaleString()," Kbps"),bandwidthMaxKbps:"".concat(Math.floor(this.Dh.getCurrent("max_badwidth")/1e3).toLocaleString()," Kbps")}},n.Ph=function(){var t=this.Dh.getCurrent("streams");return{codec:t?t.codec:null,resolution:t?"".concat(t.width,"×").concat(t.height,"@").concat(Math.round(t.framerate)," ").concat(Math.round(t.bitrate/1e3).toLocaleString()," Kbps ").concat(t.audioBitrate?" / ".concat(Math.round(t.audioBitrate/1e3).toLocaleString()," Kbps"):""):null}},n.Fh=function(){var t=this;return{testGroup:Object.keys(this.sd.config.request.ab_tests).map((function(n){return"".concat(n,": ").concat(t.sd.config.request.ab_tests[n].group)})).join(", ")}},n.Uh=function(){var t=this.Dh.getCurrent("total_frames")||0,n=this.Dh.getCurrent("dropped_frames")||0;return{totalFrames:t,droppedFrames:n,droppedFramesPercent:0!==t?"".concat((n/t*100).toFixed(2),"%"):0}},n.Vh=function(){var t=this.Dh.getCurrent("files");return t?{delivery:t.mime}:null},n.Bh=function(t){return t?{liveLatency:"".concat(this.Dh.getCurrent("live_latency").toFixed(2)," seconds"),liveSessionID:this.sd.config.video.live_event.id}:null},n.Hh=function(){if(!this.sd.config.video.p2p)return null;var t=ba(window,"Streamroot.instances[0].stats"),n=ba(t,"realtime.dnaSources");if(void 0===n)return null;var i=ba(t,"currentContent.cdnDownload"),e=ba(t,"currentContent.dnaDownload");return{p2pSources:n,p2pOffload:"".concat(Vs(e/(i+e)*100,1),"%")}},n.zh=function(){var t=this.sd.config.request.drm;return t?{drmEnabled:!!t,drmFastly:t.fastly}:null},n.Lh=function(t){if(!t)return null;for(var n=t.length,i=0,e=[];in)return"";var o=(r-t)/(n-t)*250;return isNaN(o)&&(o=0),"\n ".concat(e.title,'\n \n ')})).join("")},t}(),Tp=function(){function t(t){this.alertTextElement=t.querySelector(".vp-text-alert-wrapper"),this.alertContentTitle=this.alertTextElement.querySelector(".vp-live-start-time-title"),this.alertContentTime=this.alertTextElement.querySelector(".vp-live-start-time-body"),this.alertContentFooter=this.alertTextElement.querySelector(".vp-live-start-time-footer")}var n=t.prototype;return n.show=function(t,n,i){this.alertContentTitle.innerHTML=t,this.alertContentTime.innerHTML=n,this.alertContentFooter.innerHTML=i,this.alertContentTitle.classList.remove("hidden"),this.alertContentTime.classList.remove("hidden"),this.alertContentFooter.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")},n.hide=function(){this.alertContentTitle.classList.add("hidden"),this.alertContentTime.classList.add("hidden"),this.alertContentFooter.classList.add("hidden"),this.alertTextElement.classList.add("hidden")},t}(),Sp=function(){function t(t,n,i){this.textAlert=new bh(t),this.timeAlert=new Tp(t),this.player=n,this.store=i,this.startTime=new Date(this.store.get(fl,null)),this.Rs=!1,this.cv(),this.lv()}var n=t.prototype;return n.disable=function(){this.hide(),this.Rs=!0},n.hide=function(){this.textAlert.hide(),this.timeAlert.hide()},n.lv=function(){(this.store.get(hl)||this.store.get(vl))&&this.fv(),this.store.get(ml)&&this.dv()},n.cv=function(){this.player.events.on(mu.EVENT_ACTIVE,this.fv.bind(this)),this.player.events.on(mu.STREAM_ONLINE,this.hv.bind(this)),this.player.events.on(mu.STREAM_OFFLINE,this.vv.bind(this)),this.player.events.on(mu.SETTINGS_UPDATED,this.pv.bind(this)),this.player.events.once(mu.EVENT_ENDED,this.dv.bind(this)),this.player.events.on(mc.nd,this.dv.bind(this)),this.player.events.on(mc.ed,this.hv.bind(this))},n.pv=function(t,n){"event_schedule"===t&&this.store.dispatch(function(t){return{type:"LIVE_SETTINGS_UPDATE",payload:t}}({eventSchedule:n}))},n.fv=function(){this.mv(this.store.get(gl))},n.bv=function(){var t=this.wv();this.timeAlert.show(t[0],t[1],t[2]),!this.store.get(hl)&&!this.store.get(vl)||this.Rs||setTimeout(this.lv.bind(this),3e4)},n.gv=function(){return this.startTime-new Date},n.wv=function(){var t=this.gv(),n=(t/6e4).toFixed(0),i=(t/36e5).toFixed(0),e=(t/864e5).toFixed(0),r=(new Date).toDateString()===this.startTime.toDateString();if(e>1||!r)return["Este evento está programado para","".concat(rd[this.startTime.getMonth()]," ").concat(this.startTime.getDate()),"".concat("a las"," ").concat(fd(this.startTime))];if(i>1&&r)return["Este evento está programado para","Hoy","".concat("a las"," ").concat(fd(this.startTime))];var o=n>1?"minutos":"minuto";return["Este evento empezará en","".concat(n," ").concat(o),""]},n.hv=function(){this.hide()},n.vv=function(){this.textAlert.show("Transmisión en vivo sin conexión."),Ji.iOS&&ch.element&&(this.player.events.fire(mc.cl),ch.exit())},n.dv=function(){this.textAlert.show("El evento en vivo terminó.")},n.mv=function(t){t?this.gv()>6e4?(this.textAlert.hide(),this.bv()):(this.timeAlert.hide(),this.textAlert.show("El evento aún no ha comenzado")):(this.timeAlert.hide(),this.textAlert.show(""))},t}();function Ap(t,n){var i,e=n.querySelector(".vp-notification");function r(t,r){if(null!==n.parentElement.offsetParent){n.classList.remove("hidden"),n.removeAttribute("hidden"),n.setAttribute("data-name",t);var u=function(t){var i="watchlater"===t||"unwatchlater"===t?.5:.4,e=n.clientHeight;return n.clientHeight>n.clientWidth&&(e=n.clientWidth),{height:Math.round(e*i),width:Math.round(e*i*1.6)}}(t),a="width:"+u.width+"px;height:"+u.height+"px";e.style.cssText=a,e.innerHTML=r,"watchlater"!==t&&"unwatchlater"!==t||function(t,n){var i=t.querySelector(".hour-hand"),e=t.querySelector(".minute-hand");if(i&&e){var r=n?1:-1,o=new Date,u=Math.abs(o.getHours()-12),a=o.getMinutes(),s=a/60*360-135,c=u/12*360+a/60*5,l=c+45*r,f=s+540*r;i.style[Ji.transformProperty]="rotate("+c+"deg)",e.style[Ji.transformProperty]="rotate("+s+"deg)",window.requestAnimationFrame((function(){t.classList.add("animate"),Ji.browser.firefox||Ji.browser.opera||window.requestAnimationFrame((function(){i.style[Ji.transformProperty]="rotate("+l+"deg)",e.style[Ji.transformProperty]="rotate("+f+"deg)"}))}))}}(e,"watchlater"===t),clearTimeout(i),n.classList.remove("animate"),window.requestAnimationFrame((function(){n.classList.remove("invisible"),i=setTimeout(o,750)}))}}function o(){n.classList.add("animate"),n.classList.add("invisible")}function u(){n.classList.remove("animate"),n.classList.remove("invisible"),n.classList.add("hidden"),n.setAttribute("hidden",""),n.removeAttribute("data-name"),e.innerHTML="",e.classList.remove("filled"),e.classList.remove("animate"),t.events.fire(mc.Ff)}return Ul(n).on("transitionend",(function(t){e.contains(t.target)&&"height"===t.propertyName?setTimeout(o,100):t.target===n&&"opacity"===t.propertyName&&window.requestAnimationFrame(u)})),t.events.on(mc.zl,(function(t){t||r("like",nd.render("icon_heart"))})),t.events.on(mc.ql,(function(t){t||r("unlike",nd.render("icon_broken_heart"))})),t.events.on(mc.Wl,(function(t){t||r("watchlater",nd.render("icon_clock"))})),t.events.on(mc.Gl,(function(t){t||r("unwatchlater",nd.render("icon_clock"))})),t.events.fire(mc.Lf),{}}function xp(t,n){var i=ot(),e=!1,r=!1;function o(t){Ns(t,"facebook",{width:580,height:400})}function u(t){Ns(t,"twitter",{width:550,height:420})}function a(t){Ns(t,"tumblr",{width:540,height:600})}function s(n){var i=t.element.querySelector(".vp-outro-wrapper");return"player_embed"+(i&&i.classList.contains("in")?"_end_screen":"_share_overlay")+(n?"_button":"_keyboard")}var c={get events(){return i},setup:function(){var i;n.classList.remove("vp-share-embed-active","vp-share-embed-only"),(null==(i=t.config.embed.settings.share)?void 0:i.embed_only)&&n.classList.add("vp-share-embed-only");var e=n.querySelector(".js-embedCopy");e&&(e.style.width=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;n=Object.keys(n).map((function(t){return n[t]}));var e=t.cloneNode();e.style.visibility="hidden",e.style.padding=0,t.parentElement.appendChild(e);var r=n.map((function(t){return e.innerText=t,e.clientWidth})),o=Math.max.apply(Math,nt(r)),u=window.getComputedStyle(t),a=parseFloat(u.fontSize);return t.parentElement.removeChild(e),"".concat((o+i)/a,"em")}(e,["Copiar","Copiado"])),t.events.on(mc.kl,o).on(mc.El,u).on(mc.Tl,a)},destroy:function(){t.events.off(mc.kl,o).off(mc.El,u).off(mc.Tl,a)},getShareData:function(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.config.video.title,u=t.config.video.owner.name,a=t.config.video.share_url;e=document.queryCommandSupported&&document.queryCommandSupported("copy");var s=t.config.video.unlisted_hash?"?h=".concat(t.config.video.unlisted_hash):"";return r.template=nd.render("share",{url:t.config.video.url,shareUrl:a,playerShareUrl:"https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/share"),unlistedHashParam:s,title:o,owner:u,embed:"public"===t.config.video.embed_permission&&t.config.embed.settings.embed,embedOnly:null==(n=t.config.embed.settings.share)?void 0:n.embed_only,embedCode:Uv(t.config.video.embed_code),copyButton:e,customizeEmbed:!!t.config.video.url,readOnly:!Ji.touch,facebookIcon:nd.render("icon_facebook",{title:"Compartir en Facebook"}),twitterIcon:nd.render("icon_twitter",{title:"Compartir en Twitter"}),tumblrIcon:nd.render("icon_tumblr",{title:"Compartir en Tumblr"}),emailIcon:nd.render("icon_mail",{title:"Compartir a través del correo electrónico"}),embedIcon:nd.render("icon_embed",{title:"Obtener el código de inserción"}),strings:{share:"Compartir",emailSubject:"Échale un vistazo a “"+o+"” de "+u+" en Vimeo",emailBody:"Échale un vistazo a “"+o+"” de "+u+" en Vimeo.\n\nDisfruta el video para en "+a+"\n\nSi te gusta, ¡asegúrate de compartirlo!\n\nVimeo está repleto de sorprendentes videos. Ve más en https://vimeo.com.",embedTitle:"Insertar",embedSubtitle:"Agrega este video a tu sitio web con el siguiente código de inserción.",copy:"Copiar",copySuccess:"Copiado",customize:'')+"Personaliza esta inserción en Vimeo"}}),r.yv=".js-facebook",(null==(i=t.config.embed.settings.share)?void 0:i.embed_only)&&(r.wrapperClass="embed-only",r.yv=".js-embed-input"),r},showShareView:function(){n.querySelector(".js-share-screen").classList.remove("cloaked"),n.classList.remove("vp-share-embed-active"),i.fire(mc.Rl)},showEmbedView:function(){t.config.embed.settings.share.embed_only||(n.querySelector(".js-embed-screen").classList.remove("cloaked"),n.classList.add("vp-share-embed-active")),i.fire(mc.Dl)},buildBPLocationString:s};return function(){var o;Ul(n).on("transitionend",".js-share-screen",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(i.fire(mc.Ll),this.classList.add("cloaked"))})).on("transitionend",".js-embed-screen",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(i.fire(mc.jl),this.classList.add("cloaked"),Us(n))})).on(["copy","cut"],"input[name=embed_code]",(function(){!function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=cv(t,n,i);ov.BigPictureClient.sendEvent(e)}("workflow.copy_video_embed_code",t,{location:s(r),path:window.location.pathname}),r=!1,t.events.fire(mc.Al)})),Sv(n,".js-facebook",(function(){return t.events.fire(mc.kl,this.href),Os(),!1})),Sv(n,".js-twitter",(function(){return t.events.fire(mc.El,this.href),Os(),!1})),Sv(n,".js-tumblr",(function(){return t.events.fire(mc.Tl,this.href),Os(),!1})),Sv(n,".js-email",(function(){return t.events.fire(mc.Sl),window.top.location=this.href,Os(),!1})),Sv(n,".js-embed",(function(){return t.events.fire(mc.vl),c.showEmbedView(),Os(),!1})),Sv(n,".js-embedCopy",(function(){if(e){n.querySelector("input[name=embed_code]").select(),r=!0;try{document.execCommand("copy")&&function(){t.events.fire(mc.Al);var i=n.querySelector(".js-embedCopy");i.innerHTML=i.getAttribute("data-success-label"),clearTimeout(o),o=setTimeout((function(){i.innerHTML=i.getAttribute("data-label")}),2e3)}()}catch(t){r=!1}return document.activeElement.blur(),!1}})),Ji.touch?Ul(n).on("focus","input[name=embed_code]",(function(){var t=this;setTimeout((function(){t.setSelectionRange(0,9999),t.setAttribute("readonly","readonly")}),0)})).on("blur","input",(function(){this.removeAttribute("readonly")})):Ul(n).on("click","input[name=embed_code]",(function(){this.setSelectionRange(0,9999)}))}(),c}function Cp(t,n,i){var e,o,u,a=i.querySelector(".vp-outro"),s=null,c=!1,l=!1,f=!1,d=!1,h=!1,v=pd(S,250),p=null,m=t.config.request.ads instanceof Object,b=!1;function w(){return!h&&null===s&&!t.config.embed.loop}function g(){if(t.config.embed.outro===Ec.VOD)return o=Ec.VOD,s=y(o),!0===d&&E(),r.resolve(s);h=!0;var n=t.config.embed.email_capture_form||t.config.embed.email||{},i=t.config.video.unlisted_hash?"h=".concat(t.config.video.unlisted_hash,"&"):"";return ir("https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/outro?").concat(i,"on_site=").concat(t.config.embed.on_site,"&type=").concat(t.config.embed.outro,"&email=").concat(n?1:0),{withCredentials:!0}).json().then((function(n){return o=n.type,(s=y(o,n.data))&&(s.bgimage&&Xc(s.bgimage),s.contexts&&s.contexts.forEach((function(t){t.videos.forEach((function(t){Xc(t.thumbnail)}))}))),Kd(t.config.video.owner)&&function(n,i){[Ec.VIDEOS,Ec.THREEVIDEOS,Ec.PROMOTED].includes(n)&&i.contexts&&i.contexts.forEach((function(n){n.videos.reduce((function(n,i){return n.then(function(n){return function(){return t.preloadVideo("auto",n.id,{autoplay:!0}).catch((function(t){}))}}(i))}),r.resolve())}))}(o,s),s}))}function y(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=Yc(t.element.clientWidth*Ji.devicePixelRatio,t.element.clientHeight*Ji.devicePixelRatio),r=e.width,o=e.height;if(i.img_base&&(i.bgimage=Jc({width:r,height:o,baseUrl:i.img_base})),n===Ec.VOD){var u=void 0!==t.config.video.vod.is_preorder?t.config.video.vod.is_preorder:!!t.config.video.vod.date_available,a=t.config.video.vod.is_coming_soon,s=t.config.video.vod.date_available_formatted_datetime||t.config.video.vod.date_available,c="Disponible próximamente en Vimeo On Demand.";a&&s&&(c="Disponible el "+s+" en Vimeo On Demand."),u&&(c="Pídelo por adelantado ahora. Velo el "+s+"."),i={purchased:t.config.user.purchased,title:t.config.video.vod.feature_title,url:t.config.video.vod.url,currency:t.config.request.currency,countries:t.config.video.vod.countries,country:t.config.request.country,buttons:t.config.video.vod.purchase_options,translationMap:t.config.request.dynamic_translation_map,isPreorder:u,isComingSoon:a,releaseDate:s,strings:{watch:u?"Velo el "+s:"Ver ahora",preRelease:c}}}return[Ec.VIDEOS,Ec.THREEVIDEOS,Ec.PROMOTED].includes(n)&&(t.config.user.following=i.following,(i={contexts:Array.isArray(i)?i:[i],owner:t.config.video.owner.id,bgimage:i.bgimage,following:i.following}).contexts&&i.contexts.forEach((function(t){t.videos.forEach((function(n){if(n.fullTitle=n.title,n.byline="",n.owner.id!==i.owner&&(n.fullTitle=n.title+" de "+n.owner.name,n.byline="de "+n.owner.name),n.thumbnail_base){var e=Math.round(r/t.videos.length);n.thumbnail=Jc({width:e,height:Math.round(e/1.778),baseUrl:n.thumbnail_base})}}))}))),n===Ec.LINK&&(i.url=ep(i.url),i.url2=ep(i.url2)),n===Ec.SHARE&&(i.strings={back:"Atrás"}),i}function _(t){a.classList.toggle("vp-outro--link-medium",t)}function k(t){a.classList.toggle("vp-outro--link-large",t)}function E(){if(c=!0,o===Ec.BEGINNING)return a.innerHTML="",void t.events.fire(oc.Js);if(w())g().then((function(){return E()})).catch((function(){}));else{var r=function(){if([Ec.VIDEOS,Ec.THREEVIDEOS,Ec.PROMOTED].includes(o)){var n;if(0===((null==(n=s)?void 0:n.contexts)||[]).reduce((function(t,n){return t+n.videos.length}),0))return null;s.showFollowButton=!t.config.user.owner&&t.config.user.logged_in,s.strings={follow:"Seguir",following:"Siguiendo",unfollow:"Dejar de seguir"}}return s&&(s.target=!t.config.embed.on_site),p=o,[Ec.THREEVIDEOS,Ec.PROMOTED].includes(o)&&(p=Ec.VIDEOS),nd.render("outro_"+p,s)}();r&&(a.innerHTML=r,a.setAttribute("data-type",p),i.classList.remove("hidden"),i.removeAttribute("hidden"),l=!0,[Ec.VIDEOS,Ec.THREEVIDEOS].includes(o)?function(){var t=document.querySelector(".js-outro-followWrap");if(t){var n=window.getComputedStyle(t),i=parseFloat(n.fontSize);t.style.width="".concat(t.clientWidth/i,"em")}}():o===Ec.LINK?(n.watch("ui.outro.isLinkTitleVisible",_),n.watch("ui.outro.isLinkDescriptionVisible",k),_(n.get("ui.outro.isLinkTitleVisible")),k(n.get("ui.outro.isLinkDescriptionVisible"))):o===Ec.SHARE&&function(){var t=i.querySelector(".js-outro-content"),n=e.getShareData();t.innerHTML=n.template,e.setup()}(),window.requestAnimationFrame((function(){window.requestAnimationFrame((function(){i.classList.add("in"),S()}))})))}}function T(){if(l)return e.destroy(),c=!1,f=!1,l=!1,void window.requestAnimationFrame((function(){i.classList.remove("in"),t.events.fire(mc.lf),x()}));c&&(c=!1,t.events.fire(mc.lf))}function S(){var n;if(!f&&i.clientWidth){Ul(window).off("resize",v),f=!0;var e=[];(null==(n=s)?void 0:n.contexts)&&s.contexts.forEach((function(t){t.videos&&t.videos.forEach((function(t){var n=t.id,i=a.querySelector('[data-video-id="'+n+'"]');i&&i.clientWidth>0&&e.push(n)}))})),t.events.fire(mc.cf,e)}}function A(){u=setTimeout((function(){var n=t.config.embed.email_capture_form||t.config.embed.email||{};"after-video"===n.position||"after"===n.position?(t.events.fire(mc.Pl),t.events.on(mc.Cf,(function(){t.events.fire(oc.cc)}))):t.events.fire(oc.cc)}),250)}function x(){Ul(window).off("resize",v),Ul(window).on("resize",v)}return t.events.on(Ai.TIME_UPDATE,(function(t){var n=t.currentTime,i=t.duration;t.timeProgress,d=!1,w()&&n>=i-10&&g().catch((function(){}))})),t.events.on(iu,(function(){[Ec.NOTHING,Ec.BEGINNING,Ec.EMAIL].includes(t.config.embed.outro)&&(o=t.config.embed.outro,s=!1)})),t.events.on(mc.Qf,(function(){b=!0})),t.events.on(mc.Sc,(function(){if(m&&!b)return t.events.on(mc.Qf,A),void(m=!1);A()})),t.events.on(mc._loadVideo,(function(){clearTimeout(u)})),t.events.on(mc.nd,(function(){t.config.video.webinar&&clearTimeout(u)})),t.events.on(oc.cc,(function(n,i){t.performDelegateAction(vc,(function(){n&&(o=n,s=null,h=!1),i&&i.data&&(s=y(n,i.data)),d=!0,E()}))})),Ul(i).on("click",".js-videoLink",(function(n){var i=parseInt(this.getAttribute("data-video-id"),10);t.events.fire(mc.ff,i),Kd(t.config.video.owner)&&(n.preventDefault(),t.loadVideo(i,{autoplay:!0}))})),Ul(i).on("click",".js-cta",(function(n){t.events.fire(mc.Tf,this.href)})),Ul(i).on("click",".js-link",(function(n){t.events.fire(mc.gf,this.href)})),Ul(i).on("click",".js-imageLink",(function(n){t.events.fire(mc.Ef,this.href)})),Ul(i).on("transitionend",(function(t){i.classList.contains("in")||(i.classList.add("hidden"),i.setAttribute("hidden",""))}),!1),t.events.on([oc._hideOutro,oc.Js,Ai.PLAY,Ai.SEEKED,mc.Wc],T),t.events.on(mc.cf,(function(){t.element.classList.add("player-outroVisible")})).on(mc.lf,(function(){t.element.classList.remove("player-outroVisible")})),Sv(i,".js-outro-follow",(function(){t.events.fire(mc.bl)})),Ul(i).on("mouseleave",".js-outro-follow",(function(t){var n=document.querySelector(".js-outro-follow");n&&n.classList.remove("vp-outro-follow--activated")})),t.events.on(mc._f,(function(){var t=document.querySelector(".js-outro-follow");t&&(t.setAttribute("aria-pressed",!0),t.classList.add("vp-outro-follow--activated"))})),t.events.on(mc.kf,(function(){var t=document.querySelector(".js-outro-follow");t&&t.setAttribute("aria-pressed",!1)})),t.events.on(oc._showOverlay,(function(){setTimeout((function(){i.classList.add("hidden")}),150)})),t.events.on(mc.gl,(function(){i.classList.contains("in")&&i.classList.remove("hidden")})),t.events.on(oc.Js,(function(){s=null,h=!1,m=t.config.request.ads instanceof Object})),Sv(i,".js-vod-button",(function(){var n=this.getAttribute("data-product-id");return t.events.fire(mc.pl,n),!1})),Sv(i,".js-vod-watch",(function(){if(!("date_available"in t.config.video.vod))return T(),t.events.fire(mc.pl),!1})),a&&((e=new xp(t,a)).events.on(mc.Dl,(function(){t.config.embed.settings.share.embed_only||(i.querySelector(".js-back").classList.remove("cloaked"),i.classList.add("embed-active"))})).on(mc.Rl,(function(){i.classList.remove("embed-active")})),Sv(i,".js-back",(function(){return e.showShareView(),!1})),e.events.on(mc.jl,(function(){i.querySelector(".js-back").classList.add("cloaked")}))),x(),{}}var Mp=0;function Ip(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"b",n=++Mp;return"".concat(t).concat(n)}Ip(),Ip(),Ip(),Ip(),Ip(),Ip(),Ip(),Ip(),Ip();var Op=Ip(),Rp=Ip(),Dp=Ip(),jp=Ip(),Lp=Ip(),Np=Ip(),Pp=Ip(),Fp=Ip(),Up=Ip(),Vp=Ip(),Bp=Ip(),Hp=Ip(),zp=Ip(),qp=Object.freeze({__proto__:null,CONFIG_CHANGED:Op,TELECINE_READY:Rp,TELECINE_VIDEO_INIT:Dp,PLAY_INITIATED:jp,QUALITY_CHANGED:Lp,FORCED_QUALITY:Np,CUE_CHANGED:Pp,CAPTIONS_CHANGED:Fp,SPATIAL_PLAYBACK_TOGGLED:Up,PICTURE_IN_PICTURE_AVAILABLE:Vp,PICTURE_IN_PICTURE_NOT_AVAILABLE:Bp,PICTURE_IN_PICTURE_ACTIVATED:Hp,PICTURE_IN_PICTURE_DEACTIVATED:zp}),Wp=Object.freeze({__proto__:null,EVENT_PENDING:"liveeventpending",EVENT_ACTIVE:"liveeventactive",EVENT_STARTING:"liveeventstarting",EVENT_STARTED:"liveeventstarted",EVENT_ENDED:"liveeventended",ARCHIVE_STARTED:"livearchivestarted",ARCHIVE_DONE:"livearchivedone",ARCHIVE_ERROR:"livearchiveerror",SETTINGS_UPDATED:"livesettingsupdated",LOW_LATENCY_FALLBACK:"lowlatencyfallback"}),Gp=(G(G(G(G(G(G(G(G(G({},Ai),Mi),Ii),Wp),Oi),xi),Ri),Di),qp),G(G({},Ii),Wp));function Kp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"after-video"===(n=n||t.position)||"after"===n}function Yp(t){return Jc({width:100,height:75,baseUrl:t})}var Jp=function(){function t(t){this.element=t,this.cachedElements={}}var n=t.prototype;return n.getElement=function(t){return this.cachedElements[t]||(this.cachedElements[t]=this.element.querySelector(t)),this.cachedElements[t]},n.removeElement=function(t){this.getElement(t)&&(this.cachedElements[t].remove(),this.cachedElements[t]=null)},n.updateAll=function(t,n){this.updateTitle(t.text||t.custom_message),this.updateSkipBtn(t.allow_skip||t.skippable,t.position),this.updatePrivacyPolicy(t.privacy_policy),this.updateCustomLogo(t.custom_logo),this.updateFields(t.custom_fields,n)},n.updateTitle=function(t){var n=this.getElement(".vp-email-capture-title");t&&n?n.textContent=rm(t):!t&&n&&(n.textContent="")},n.updateSkipBtn=function(t,n){var i=this.getElement(".vp-email-capture-form-button--cancel");if(t&&i)i.value=Kp(null,n)?"Omitir":"Saltar al video";else if(t&&!i){var e=this.getElement(".vp-email-capture-form-skip"),r=nd.render("email_capture_skip",{position:n,skipText:"Omitir",skipToVideoText:"Saltar al video",positionIsAfter:Kp(null,n)});e.insertAdjacentHTML("afterbegin",r)}else!t&&i&&this.removeElement(".vp-email-capture-form-button--cancel")},n.updatePrivacyPolicy=function(t){var n=this.getElement(".vp-email-capture-privacy-policy");if(t&&n)n.href=encodeURI(t);else if(t&&!n){var i=this.getElement(".vp-email-capture-disclaimer-wrapper"),e=nd.render("email_capture_privacy_policy",{text:"Política de privacidad",url:t});i.insertAdjacentHTML("beforeend",e)}else!t&&n&&this.removeElement(".vp-email-capture-privacy-policy")},n.updateCustomLogo=function(t){var n=this.getElement(".vp-email-capture-logo");if(t&&n)n.src=Yp(t);else if(t&&!n){var i=this.getElement(".vp-email-capture-title-logo-wrap"),e=nd.render("email_capture_logo",{url:Yp(t)});i.insertAdjacentHTML("afterbegin",e)}else!t&&n&&this.removeElement(".vp-email-capture-logo")},n.updateFields=function(t,n){var i=this;if(t){var e=this.getElement(".vp-email-capture-form-fields-slider").children;e.length&&U(e).forEach((function(i){t.some((function(t){return i.dataset.id===String(t.id)}))||(i.remove(),n())})),t.forEach((function(t){i.updateField(t,n)}))}},n.updateField=function(t,n){var i=t.id,e=t.field_name,r=t.required,o=t.position_in_form,u=this.getElement(".vp-email-capture-form-fields-slider"),a=this.element.querySelector("[for=custom-field-".concat(i,"]")),s=this.element.querySelector("#custom-field-".concat(i));if(a&&s){var c=s.parentElement,l=u.children;a.textContent=em(e),s.name=e,s.toggleAttribute("required",r),c.classList.toggle("required",r);var f=U(l).indexOf(c);f!==o&&(u.insertBefore(l[f],l[o]),n())}else{var d=nd.render("email_capture_field",{field:t});o===u.children.length?u.insertAdjacentHTML("beforeend",d):u.children[o].insertAdjacentHTML("beforebegin",d),n()}},n.updateWebinarStartTime=function(t){var n=this.getElement(".vp-email-capture-wrapper"),i=n.querySelectorAll(".vp-email-capture-start-time"),e=vd(new Date(t));if(t&&i.length)U(i).forEach((function(t){t.textContent=e}));else if(t&&!i.length){var r=this.getElement(".vp-email-capture-title-logo-wrap"),o=n.querySelectorAll(".vp-email-capture-thank-you-title"),u=nd.render("email_capture_start_time",{startTime:e});r.insertAdjacentHTML("afterbegin",u),U(o).forEach((function(t){u=nd.render("email_capture_start_time",{startTime:e}),t.insertAdjacentHTML("afterbegin",u)}))}else!t&&i.length&&U(i).forEach((function(t){t.parentNode.removeChild(t)}))},n.clearCachedElements=function(){this.cachedElements={}},t}();function $p(t,n,i){return i?n?n(t):t:(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}function Xp(t,n){try{var i=t()}catch(t){return n(t)}return i&&i.then?i.then(void 0,n):i}function Zp(){}function Qp(t){if(t&&t.then)return t.then(Zp)}function tm(t){return function(){for(var n=[],i=0;iTérminos de servicio y la Política de privacidad de Vimeo',host_privacy_policy:"y la Política de privacidad del anfitrión del seminario web.",reg_full:"Lo sentimos, la inscripción está completa.",reg_login_title:"Ingresa tu correo electrónico para ver si estás registrado.",reg_thank_you:"¡Gracias por registrarte!",reg_thank_you_subtitle:"Revisa tu correo electrónico para confirmar tu registro. También te enviaremos un recordatorio y un enlace para ingresar al evento 24 horas antes de que comience.",reg_bypass:"¿Ya te registraste?",reg_go_back:"Regístrate para este evento.",login_thank_you:"¡Buenas noticias! Ya estás registrado.",login_thank_you_subtitle:"Revisa tu correo electrónico para confirmar tu registro.",email_not_valid:"La dirección de correo electrónico no es válida. Intenta con otra dirección de correo electrónico.",email_not_registered:"El correo electrónico no está registrado para este evento.",opt_in:"Elige recibir correos electrónicos del anfitrión del evento.",event_is_live:"Este evento es en vivo.",unscheduled:"No programado",add_to_calendar:"Agregar al calendario",opt_in_error:"Para inscribirse en este seminario web es necesario registrarse."}};function im(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map((function(t){return G(G({},t),{},{field_label:em(t.field_name)})})).sort((function(t,n){return t.position_in_form-n.position_in_form}))}function em(t){switch(t){case"Email address":return"Correo electrónico";case"First name":return"Nombre";case"Last name":return"Apellidos";default:return t}}function rm(t){switch(t){case"Sign up for our mailing list":return"Inscríbete en nuestra lista de distribución de correo";case"Register to watch live":return"Regístrate para ver en vivo";default:return t}}function om(t,n,i){var e,r,o,u,a,s,c,l,f,d,h,v,p,m,b,w,g,y,_=tm((function(){Us(i);var e=G(c),r=t.config.request,o=r.timestamp,u=r.expires;function a(n){b.classList.remove("loading"),3152===(null==n?void 0:n.error_code)?z(!1):(h.setCustomValidity("¡Oh! Hubo un problema. Inténtalo de nuevo."),h.setAttribute("aria-invalid","true"),t.events.fire(mc.mf),j())}var s="https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/webinar/login?context=").concat(encodeURIComponent(A),"&time=").concat(o,"&expires=").concat(u);return b.classList.add("loading"),Qp(Xp((function(){return $p(ir(s,{method:"POST",body:e,headers:{"Content-type":"application/json"},withCredentials:!0}),(function(i){return $p(i.json(),(function(i){!function(i){n.dispatch(Wl(!0,i.video.webinar.registrant)),t.events.fire(mc.bf,i),S?(H(),t.events.fire(mc.Pc)):z(!1)}(i)}))}))}),(function(t){return Qp(Xp((function(){return $p(t.response.json(),(function(t){a(t)}))}),(function(){a()})))})))})),k=tm((function(){Us(i);var e=G(c),r=t.config.request,o=r.timestamp,u=r.expires;function a(n){b.classList.remove("loading"),3152===(null==n?void 0:n.error_code)?z(!0):3158===(null==n?void 0:n.error_code)?q():(h.setCustomValidity("¡Oh! Hubo un problema. Inténtalo de nuevo."),h.setAttribute("aria-invalid","true"),t.events.fire(mc.mf),j())}var s="https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/webinar/registration?context=").concat(encodeURIComponent(A),"&time=").concat(o,"&expires=").concat(u);return b.classList.add("loading"),Qp(Xp((function(){return $p(ir(s,{method:"PUT",body:e,headers:{"Content-type":"application/json"},withCredentials:!0}),(function(i){return $p(i.json(),(function(i){!function(i){n.dispatch(Wl(!0,i.video.webinar.registrant)),t.events.fire(mc.bf,i),S?(H(),t.events.fire(mc.Pc)):z(!0)}(i)}))}))}),(function(t){return Qp(Xp((function(){return $p(t.response.json(),(function(t){a(t)}))}),(function(){a()})))})))})),E=ot(),T=!Fu(null==(e=t.config.video.webinar)?void 0:e.registration_form),S="started"===(null==(r=t.config.video.webinar)?void 0:r.status),A=t.config.embed.context,x=["Vimeo\\Controller\\VideoSettings\\ServiceController.getInteractions","Vimeo\\Controller\\Api\\Resources\\Webinar\\WebinarController."].includes(A),C=new Jp(i),M=!1,I=!1,O=D(t.config),R=13===t.config.view;function D(t){var n,i,e;return T?(null==(e=t.video.webinar)?void 0:e.registration_form)||{}:(null==(n=t.embed)?void 0:n.email_capture_form)||(null==(i=t.embed)?void 0:i.email)||{}}function j(){p.querySelector(".vp-validation-bubble-message").innerHTML=h.validationMessage||"Hay un problema con esta entrada.",p.classList.remove("hidden"),p.classList.remove("vp-validation-bubble-animate"),window.requestAnimationFrame((function(){p.classList.add("vp-validation-bubble-animate")})),h.focus()}function L(){d.classList.add("vp-email-capture-input-invalid"),j()}function N(){p.classList.remove("vp-validation-bubble-animate"),d.classList.remove("vp-email-capture-input-invalid"),m&&(g.classList.remove("vp-webinar-compliance-checkbox-invalid"),m.classList.remove("vp-opt-in-bubble-animate"),m.classList.add("hidden"))}var P=function t(n){n.target===a&&(a.removeEventListener("transitionend",t),h.focus())};function F(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=i.querySelector(".vp-email-capture-disclaimer-wrapper"),r=i.querySelector(".vp-email-capture-current-step"),l=i.querySelector(".vp-email-capture");d&&(d.setAttribute("aria-hidden",!0),h.tabIndex=-1);var p=!u&&!x;f&&(p||x)&&(u=Rs(o).height),d=s[(f=t)-1],h=c[f-1],d&&h&&(d.setAttribute("aria-hidden",!1),h.tabIndex=0),window.requestAnimationFrame((function(){a.style.transform="translateY(-".concat(u*(f-1),"px)"),r.textContent=f,v.style.width="".concat(f/s.length*100,"%")})),n&&a.addEventListener("transitionend",P),l.classList.toggle("vp-email-capture-first-step",1===f),T&&!I&&(e.classList.toggle("hidden",f1&&(l.classList.add("half"),t.classList.remove("hidden"),t.tabIndex=0,t.setAttribute("aria-hidden",!1),window.requestAnimationFrame((function(){t.classList.add("show")}))),f()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(h.value)?!(h.checkValidity&&!h.checkValidity()&&((h.validity.valueMissing||h.validity.typeMismatch)&&h.setCustomValidity("Este campo es obligatorio."),h.validity.typeMismatch&&h.setCustomValidity("Introduce una respuesta válida."),1)):(h.setCustomValidity("Introduce una dirección de correo electrónico válida."),!1))}var H=function(){Ul(i).off(["click","touchend"],".vp-email-capture-form-button--cancel"),Ul(i).off(["click","keydown"],".vp-email-capture-form-button--next"),Ul(i).off(["click","keydown"],".vp-email-capture-form-button--back"),Ul(i).off(["click"],".vp-email-capture-form-button--submit"),Ul(i).off(["keyup","blur"],".vp-email-capture-form-button--next-submit-wrapper"),Ul(i).off("click",".vp-email-capture-wrapper"),Ul(i).off(["keyup","input","focus","blur"],".vp-email-capture-form-input"),Ul(i).off("submit",".vp-email-capture-form"),Ul(i).off(["keyup","click","focus","blur"],".vp-disclaimer-checkbox"),M=!1,E.fire(mc.Cf)};function z(){var n,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=i.querySelector(".vp-email-capture");n=e?i.querySelector(".vp-email-capture-reg-thank-you"):i.querySelector(".vp-email-capture-login-thank-you"),r.classList.add("hidden"),n.classList.remove("hidden"),t.events.once(Gp.EVENT_STARTED,(function(){H()}))}function q(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=i.querySelector(".vp-email-capture"),e=i.querySelector(".vp-email-capture-reg-full");t?(n.classList.remove("hidden"),e.classList.add("hidden")):(n.classList.add("hidden"),e.classList.remove("hidden")),R=!0}function W(){function n(n){b.classList.remove("loading"),h.setCustomValidity("¡Oh! Hubo un problema. Inténtalo de nuevo."),h.setAttribute("aria-invalid","true"),t.events.fire(mc.mf),j()}b.classList.add("loading"),function(e,r){Us(i);var o=U(c),u=new XMLHttpRequest,a=t.config.request,s=a.referrer,l=a.signature,f=a.timestamp,d=a.expires,h="https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/submit-email?signature=").concat(l,"&time=").concat(f,"&expires=").concat(d,"&referrer=").concat(s);u.open("POST",h+window.location.search,!0);var v={};o.forEach((function(t){v[t.name]=t.value}));var p=JSON.stringify(v);u.setRequestHeader("Content-Type","application/json"),u.withCredentials=!0,u.timeout=3e3,u.onload=function(){var e;try{e=JSON.parse(u.responseText)}catch(t){}!function(e,r){!1!==e?(t.config.embed.email_capture_form=null,t.config.embed.email=null,t.events.fire(mc.pf),function(){var t=i.querySelector(".vp-email-capture"),n=i.querySelector(".vp-email-capture-thank-you");t.classList.add("hidden"),n.classList.remove("hidden"),window.requestAnimationFrame((function(){var t=i.querySelector(".vp-email-capture-video-countdown-timer"),e=i.querySelector(".vp-email-capture-video-countdown-meter");n.classList.add("in"),t&&(e.classList.add("vp-email-capture-video-countdown-meter--active"),t.textContent=3);var r=2,o=setInterval((function(){r<=0?(H(),clearInterval(o)):(t&&(t.textContent=r),r-=1)}),1e3)}))}()):n(r.status)}(e,u)},u.onerror=function(t){r(t)},u.send(p)}(0,n)}function G(t){var n={};return U(t).forEach((function(t){var i=t.name,e=t.value;switch(i){case"email":n.email=e;break;case"First name":n.first_name=e;break;case"Last name":n.last_name=e;break;default:n.data||(n.data={}),n.data[i]=e}})),JSON.stringify(n)}var K=function(t){return B()?(N(),F(f+1),!0):(L(),!1)},Y=function(){var n,i;return f===s.length&&(B()?!T||y.getAttribute("checked")||I?((function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"before-video"===(n=n||t.position)||"before"===n}(O)&&!t.config.video.live_event||"started"===(null==(n=t.config.video.live_event)?void 0:n.status))&&(t.events.fire(mc.Pc),t.events.fire(mc.Nc)),N(),t.events.fire(mc.Il),T?I?_():k():(W(),(Kp(O)||t.config.video.live_event)&&"started"!==(null==(i=t.config.video.live_event)?void 0:i.status)||t.events.fire(mc.Pc)),!1):(y.classList.add("vp-disclaimer-checkbox-invalid"),m.classList.remove("hidden"),m.classList.remove("vp-opt-in-bubble-animate"),window.requestAnimationFrame((function(){m.classList.add("vp-opt-in-bubble-animate")})),g.classList.add("vp-webinar-compliance-checkbox-invalid"),y.focus(),!1):(L(),!1))};function J(t){I=t;var n=O.custom_fields;I&&(n=[{field_name:"Email address",required:1,position_in_form:0,id:1,locked:1}]),function(t){var n=nd.render("email_capture_fields",{customFields:im(t),strings:nm});document.querySelector(".vp-email-capture-form-fields-slider").innerHTML=n,i.querySelector(".vp-email-capture-total-steps").innerText=t.length,s=i.querySelectorAll(".vp-email-capture-form-custom-field"),c=i.querySelectorAll(".vp-email-capture-form-input"),d=s[f-1],h=c[f-1],u=null,X(),F(f>s.length?s.length:f,!1)}(n),w.innerHTML=nd.render("webinar_registration_bypass_btn",{showWebinarLogin:I,regBypass:nm.webinar.reg_bypass,regGoBack:nm.webinar.reg_go_back,registrationFull:R});var e=I?nm.webinar.reg_login_title:O.custom_message;document.querySelector(".vp-email-capture-title").innerHTML=nd.render("email_capture_title",{title:e}),N(),R&&q(I)}var $={get events(){return E},getData:function(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};O=D(t.config);var r=e.custom_logo||O.custom_logo,o=e.custom_fields||O.custom_fields||[{field_name:"Email address",required:1,position_in_form:0,id:1,locked:1},{field_name:"Name",required:0,position_in_form:1,id:2,static_field:1}];o.sort((function(t,n){return t.position_in_form-n.position_in_form}));var u=e.privacy_policy||O.privacy_policy,a=(null==(n=t.config.video.webinar)?void 0:n.scheduled_start_time)||null,s=a?vd(new Date(a)):"";return i.template=nd.render("email_capture",{allowSkip:e.allow_skip||O.skippable||O.allow_skip,customLogo:r?Yp(r):null,text:rm(e.text||O.custom_message||O.text),customFields:im(o),privacyPolicy:u,positionIsAfter:Kp(O),strings:nm,showWebinarForm:T,showWebinarLogin:I,webinarStartTime:s,isWebinarStarted:S,registrationFull:e.registration_full||R}),C.clearCachedElements(),i.yv=".vp-email-capture-form-input",i.modal=!0,i.logo=!1,i.preventBackgroundClose=!0,i.noblur=e.noblur,i.nofocus=e.nofocus,i}};function X(){var t=i.querySelector(".locked_field"),n=i.querySelectorAll(".static_field");t&&(t.type="email",t.name="email"),n&&U(n).forEach((function(t){"Name"===t.name&&(t.name="name")}))}return t.events.on(mc.wl,(function(e){if("email-capture"===e){if(o=i.querySelector(".vp-email-capture-form-fields-wrapper"),a=i.querySelector(".vp-email-capture-form-fields-slider"),s=i.querySelectorAll(".vp-email-capture-form-custom-field"),c=i.querySelectorAll(".vp-email-capture-form-input"),l=i.querySelector(".vp-email-capture-form-button--next-submit-wrapper"),v=i.querySelector(".vp-email-capture-progress-meter"),p=i.querySelector(".vp-validation-bubble"),m=i.querySelector(".vp-opt-in-bubble"),b=i.querySelector(".vp-email-capture-form-button--submit"),w=document.querySelector(".vp-email-capture-reg-bypass-wrapper"),g=document.querySelector(".vp-webinar-compliance-checkbox-border"),y=i.querySelector(".vp-disclaimer-checkbox")){var r=function(t){return t=(t=(t=t.replace(/"/g,"'")).replace(/>\s{1,}<")).replace(/\s{2,}/g,""),"".concat(t.replace(/[\r\n%#()<>?\\[\\\]^`{|}]/g,encodeURIComponent))}(nd.render("icon_check"));y.style.backgroundImage='url("data:image/svg+xml;,'.concat(r,'")')}X(),F(1,!1),function(){if(!M){n.watch("ui.player.breakpoint",(function(){u=Rs(o).height,window.requestAnimationFrame((function(){a.style.transform="translateY(-".concat(u*(f-1),"px)")}))}));var e=!1;Sv(i,".vp-email-capture-form-button--cancel",(function(){var n;H(),(Kp(O)||t.config.video.live_event)&&"started"!==(null==(n=t.config.video.live_event)?void 0:n.status)||t.events.fire(mc.Pc)})),Ul(i).on("click",".vp-email-capture-form-button--next",K),Ul(i).on("click",".vp-email-capture-form-button--back",(function(t){N(),F(f-1)})),Ul(i).on("keyup",".vp-email-capture-form-button--next-submit-wrapper",(function(t){l.classList.add("showfocus")})),Ul(i).on("blur",".vp-email-capture-form-button--next-submit-wrapper",(function(t){l.classList.remove("showfocus")})),Ul(i).on("click",".vp-email-capture-wrapper",(function(){l.classList.remove("showfocus"),h.classList.remove("showfocus")})),Ul(i).on("keydown",".vp-email-capture-form-button--back",(function(t){e=!0})),Ul(i).on("keydown",".vp-email-capture-form-button--next",(function(t){e=!0})),Ul(i).on("keyup",".vp-email-capture-form-input",(function(t){"Enter"===t.key&&fs.length?s.length:f,!1)}))})),t.events.on(mc.Zl,(function(){var i=D(t.config);n.get(Yl)||!Fu(O)&&!Fu(i)&&O.id===i.id||t.events.fire(oc._hideOverlay,{name:"email-capture",unmakeModal:!0})})),$}function um(t,n,i){var e,r,o,u=i.querySelector(".vp-overlay-cell"),a=i.querySelector(".vp-overlay"),s=i.querySelector(".vp-overlay-icon-wrapper"),c=s.querySelector(".vp-overlay-icon"),l=i.querySelector(".vp-overlay-logo"),f=!1,d=null,h=null,v=new xp(t,a),p=new om(t,n,a),m=!1,b=!1;function w(){var t=Rs(i),n=Rs(a),e=Rs(l),r=n.bottom+(t.height-n.bottom)/2;return t.height-r-e.height/2+"px"}function g(){var t=Rs(i),n=Rs(a),e=Rs(s),r=t.height/2,o=t.height-(t.bottom-n.bottom)/2;return{top:r-e.height/2+"px",transform:"translateY("+(o-r)+"px)"}}function y(n,e){i.setAttribute("data-name",n),a.innerHTML=e.template,Ji.iOS&&ch.element&&(t.events.fire(mc.cl),ch.exit()),e.noblur||Os(o=document.activeElement),e.modal&&(i.classList.add("modal"),i.setAttribute("data-modal","true")),e.preventBackgroundClose&&i.setAttribute("data-background-close","false"),e.wrapperClass&&i.classList.add(e.wrapperClass),e.icon.type&&(e.logo&&(l.classList.remove("hidden"),s.classList.add("cloaked"),window.requestAnimationFrame((function(){l.innerHTML=nd.render("logo"),l.style.bottom=w()}))),s.classList.remove("hidden"),c.innerHTML=e.icon.html,window.requestAnimationFrame((function(){var t=g();s.style.top=t.top,s.style[Ji.transformProperty]=t.transform})),i.setAttribute("data-icon",e.icon.type),s.setAttribute("data-icon",e.icon.type),c.setAttribute("data-icon",e.icon.type),"private-unlocked"===n&&c.classList.add("open")),i.classList.add("invisible"),i.classList.remove("hidden"),i.removeAttribute("hidden"),i.classList.add("in"),h=e,d=n,f=!0,t.events.fire(mc.wl,n),t.element.classList.add("player-overlayVisible"),window.requestAnimationFrame((function(){i.classList.remove("invisible"),!e.nofocus&&t.element.contains(o)&&function(t){if(t){var n=i.querySelector(t);n&&n.focus()}}(e.yv),window.requestAnimationFrame((function(){a.classList.add("in"),u.classList.add("in")}))}))}function _(){a.classList.remove("in"),a.classList.add("out")}function k(n){if("true"!==i.getAttribute("data-modal")&&f){i.removeAttribute("data-background-close"),u.classList.remove("in"),u.classList.add("out"),_(),i.classList.remove("in"),i.classList.add("out"),clearTimeout(e),e=setTimeout(E,200),(null==n?void 0:n.preventDefault)&&n.preventDefault();var r=i.querySelector(".js-back");r&&r.classList.add("cloaked"),v.destroy(),t.events.fire(mc.gl,d),t.element.classList.remove("player-overlayVisible"),f=!1,d=null,h=null,window.requestAnimationFrame((function(){o&&(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{t.focus()}catch(t){n&&n(t)}}(o),o=null)}))}}function E(){i.setAttribute("hidden",""),i.removeAttribute("data-name"),i.removeAttribute("data-icon"),i.classList.add("hidden"),i.classList.remove("out"),i.classList.remove("embed-active"),i.classList.remove("modal"),i.classList.remove("embed-only"),u.classList.remove("out"),u.classList.remove("in"),s.removeAttribute("data-icon"),s.classList.add("hidden"),s.classList.remove("animate"),c.removeAttribute("data-icon"),c.innerHTML="",l.classList.add("hidden"),a.classList.remove("out"),a.innerHTML="",t.events.fire(mc.yl)}function T(){i.setAttribute("data-modal","false")}function S(t){if("yes"===t.form.getAttribute("data-bubble")){t.form.setAttribute("data-bubble","no");var n=i.querySelector(".vp-validation-bubble");n.querySelector(".vp-validation-bubble-message").innerHTML=t.validationMessage||"There is an error with this input.";var e=Rs(t),r=Rs(t.form);n.style.left=e.left-r.left+"px",n.style.top=e.height+1+"px",n.classList.remove("hidden"),t.focus(),window.requestAnimationFrame((function(){n.classList.add("vp-validation-bubble-animate")})),A()}}function A(t){var n=i.querySelector(".vp-validation-bubble");if(n){if(t)return clearTimeout(r),void n.classList.remove("vp-validation-bubble-animate");clearTimeout(r),r=setTimeout((function(){n.classList.remove("vp-validation-bubble-animate")}),5e3)}}function x(t){var n=i.querySelector("input[type=password]");return n.form.classList.contains("submitted")?(n.setAttribute("aria-invalid","false"),n.setCustomValidity(""),n.checkValidity&&!n.checkValidity()?(n.setAttribute("aria-invalid","true"),n.validity.valueMissing&&n.setCustomValidity("Escribe la contraseña."),t||S(n),!1):(A(!0),!0)):null}function C(){M(),s.classList.remove("cloaked"),s.classList.add("animate"),window.requestAnimationFrame((function(){s.style[Ji.transformProperty]="translateY(-10px)"})),T(),_()}function M(){l.classList.add("animate")}function I(){c.classList.add("open")}function O(){c.classList.add("pulled-back")}function R(n){return n.icon={type:"lock",html:nd.render("icon_lock")},n.yv=".js-login",n.modal=!0,n.logo=!0,n.template=nd.render("private_locked",{action:"https://".concat(t.config.vimeo_url,"/log_in"),strings:{title:"Video privado",subtitle:"Inicia sesión para verlo (si tienes autorización)",logIn:"Iniciar sesión"}}),n}function D(n){return n.icon={type:"lock",html:nd.render("icon_lock")},n.template=nd.render("password",{action:"https://".concat(t.config.player_url,"/video/").concat(t.config.video.id,"/check-password?referrer=").concat(t.config.request.referrer),strings:{title:"Necesitas la contraseña",subtitle:"Si la tienes, escríbela a continuación.",password:"Contraseña",watch:"Ver el video"}}),n.yv=".js-password",n.modal=!0,n.logo=!!t.config.embed.settings.logo,n}function j(t){return t.icon={type:"lock",html:nd.render("icon_lock")},t.template=nd.render("private_unlocked",{strings:{title:"Video privado",subtitle:"Estás en tu sesión y tienes autorización para verlo (felicidades).",watch:"Ver el video"}}),t.yv=".js-watch",t}function L(t,n){return t.template=nd.render("error",{title:n.title,message:n.message,aria_label:"Error"}),t.yv=".js-close",t.modal=!!n.modal,t.logo=!!n.logo,n.icon&&"lock"===n.icon&&(t.icon={type:"lock",html:nd.render("icon_lock")}),t}function N(n){return n.template=nd.render("help",{onSite:t.config.embed.on_site,strings:{title:"Métodos abreviados de teclado",volumeUp:"Subir el volumen",volumeDown:"Bajar el volumen",scrubForward:"Adelantar",scrubBackwards:"Retroceder",like:"Me gusta",share:"Compartir",watchLater:"Ver después",captions:"Alternar las leyendas",prefs:"Abrir/cerrar el menu de preferencias",fullscreen:"Abrir la pantalla completa",viewOnVimeo:"Ver en Vimeo"}}),n.yv=".js-close",n}function P(n){var i,e,r=(null==(i=t.config.video.webinar)?void 0:i.scheduled_start_time)||null,o=r?vd(new Date(r)):"",u=null==(e=t.config.video.webinar)?void 0:e.custom_logo;return n.template=nd.render("webinar_confirmation",{customLogo:u?Yp(u):null,webinarStartTime:o,strings:{thank_you:nm.webinar.login_thank_you,thank_you_subtitle:nm.webinar.login_thank_you_subtitle}}),n.modal=!0,n}function F(t){return t.template=nd.render("webinar_ended",{strings:{title:"El evento en vivo terminó."}}),t.modal=!0,t}function V(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=i.redirectUrl,r=i.title,o=i.buttonText,u=i.ignoreText,a=i.bottomText,s=i.newWindow,c=Hs(t.config.video.privacy,["disable","unlisted"]);return n.template=nd.render("app_redirect",{hideRedirectButton:c,redirectUrl:e,newWindow:s,strings:{title:r,buttonText:o,ignoreText:u,bottomText:a}}),n.modal=!1,n.logo=!1,n.preventBackgroundClose=!0,n}function B(){var n=t.config.embed.email_capture_form||t.config.embed.email||{};if(t.backbone){var i=n.timecode||0;m=t.backbone.currentTime>i}("before-video"===n.position||"before"===n.position)&&!m&&H()}function H(){n.get("ui.overlay.isEmailCaptureVisible")?t.events.fire(oc._showOverlay,"email-capture"):b=!0}return t.events.on(oc._hideOverlay,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.name&&d!==t.name||(t.unmakeModal&&T(),k())})),t.events.on(oc._showOverlay,(function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=function(){var t={modal:!1,template:null,logo:!1,icon:{type:null,html:null}};switch(n){case"share":return y(n,v.getShareData(t,i)),void v.setup();case"private-locked":return void y(n,R(t));case"password":return void y(n,D(t));case"private-unlocked":return void y(n,j(t));case"error":return void y(n,L(t,i));case"help":return void y(n,N(t));case"email-capture":return void y(n,p.getData(t,i));case"app-redirect":return void y(n,V(t,i));case"webinar-confirmation":return void y(n,P(t));case"webinar-blocked":y(n,F(t))}};if(f&&!i.nohide)return"share"!==d&&"help"!==d||d!==n?(t.events.once(mc.yl,e),T(),void k()):void k();e()})),Ul(i).on("input","input",(function(){this.form.classList.add("interacted")})).on("transitionend",".vp-validation-bubble",(function(t){"opacity"===t.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&this.classList.add("hidden")})),t.events.on([mc._l,Ai.PLAY],k),t.events.on(mc.nf,(function(){"private-locked"===d&&(T(),k())})),t.events.on(mc.Zl,(function(){"share"===d&&(h=v.getShareData({modal:!1,template:null,logo:!1,icon:{type:null,html:null}}),a.innerHTML=h.template,v.setup())})),Ul(window).on("resize",(function(){if(f){l.style.bottom=w();var t=g();s.style.top=t.top,s.style[Ji.transformProperty]=t.transform}})),Ul(i).on("transitionend",".vp-overlay-logo",(function(t){"opacity"===t.propertyName&&this.classList.contains("animate")&&(l.classList.add("hidden"),l.classList.remove("animate"))})),Ul(i).on("transitionend",".vp-overlay-icon-wrapper",(function(t){t.propertyName.indexOf("transform")>-1&&(""===this.style[Ji.transformProperty]?(this.classList.remove("centered"),"lock"!==this.getAttribute("data-icon")||c.classList.contains("open")||c.querySelector("canvas")?O():setTimeout(I,100)):"translateY(-10px)"===this.style[Ji.transformProperty]&&(s.classList.add("centered"),s.style[Ji.transformProperty]=""))})),Ul(i).on("transitionend",".vp-overlay-icon",(function(t){t.propertyName.indexOf("transform")>-1&&(this.classList.contains("out")?(T(),k()):this.classList.contains("pulled-back")?(c.classList.add("out"),c.classList.remove("pulled-back")):this.classList.contains("open")&&O())})),n.watch("ui.overlay.isEmailCaptureVisible",(function(n){!n&&f&&"email-capture"===d?(b=f,T(),k()):n&&b&&(b=!1,t.events.fire(oc._showOverlay,"email-capture"))})),t.events.on(mc.Oe,B),t.events.on(mc.Zl,B),t.events.on(Ai.TIME_UPDATE,(function(n){var i=n.currentTime,e=void 0===i?0:i,r=t.config.embed.email_capture_form||t.config.embed.email||{};("during-video"===r.position||"during"===r.position)&&(e=r.timecode&&!m&&(m=!0,H()))})),t.events.on(mc.Pl,(function(){H()})),p.events.on(mc.Cf,(function(){t.events.fire(mc.Cf),T(),k()})),v.events.on(mc.Dl,(function(){t.config.embed.settings.share.embed_only||(i.querySelector(".js-back").classList.remove("cloaked"),i.classList.add("embed-active"))})).on(mc.Rl,(function(){i.classList.remove("embed-active")})),Sv(i,".js-back",(function(){return v.showShareView(),!1})),v.events.on(mc.jl,(function(){i.querySelector(".js-back").classList.add("cloaked")})),Ji.stereoscopic&&(t.events.on(mc.Nl,(function(){t.events.fire(oc._showOverlay,"app-redirect",{redirectUrl:t.doNotTrackEnabled?t.config.video.share_url:xl(t.config.video.id,"player-spatial-redirect"),title:"La visualización por medio de visor no es compatible actualmente con tu navegador móvil.",buttonText:"Ver en la aplicación de Vimeo",ignoreText:null,bottomText:null,newWindow:!t.config.embed.on_site})})),Ul(a).on("click",".app-redirect-ignore",(function(){k()})),Ul(a).on("click","[data-new-window]",(function(t){return window.open(document.querySelector(".app-redirect-button").getAttribute("href")),!1}))),Ul(a).on("click",".popup",(function(){return t.events.fire(oc.Ys,"login-private-locked"),!1})),Ul(a).on("click",".password input[type=submit]",(function(){this.form.classList.add("submitted"),this.form.setAttribute("data-bubble","yes"),x(!0)})).on("submit",".password form",(function(){return function(n){if(!x())return!1;var e=n.querySelector("input[type=password]"),r=n.querySelector("input[type=submit]");function o(t){r.classList.remove("loading"),e.setCustomValidity("¡Oh! Hubo un problema. Inténtalo de nuevo."),e.setAttribute("aria-invalid","true"),S(e)}r.classList.add("loading"),function(t,n,e){Us(i);var r=U(t.querySelectorAll("input")).map((function(t){return t.name?encodeURIComponent(t.name)+"="+encodeURIComponent(window.btoa(function(t){return encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,n){return String.fromCharCode("0x"+n)}))}(t.value))):encodeURIComponent(t.value)})).join("&"),o=new XMLHttpRequest;o.open(t.method,t.action+window.location.search,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.withCredentials=!0,o.timeout=3e3,o.onload=function(){var t;try{t=JSON.parse(o.responseText)}catch(t){}n(t,o)},o.onerror=function(t){e(t)},o.send(r)}(n,(function(n,i){if(!1!==n){if(t.events.fire(mc.tf,n),"icon-hidden"===window.getComputedStyle(u,":after").content)return T(),void k();C()}else o(i.status)}),o)}(this),!1})).on(["focus","input"],[".password input[type=email]",".password input[type=password]"],(function(){x()})),Sv(a,".unlocked button",(function(){0===Rs(c).width?(M(),T(),k()):C(),Ji.iPad||Ji.iPhone||t.events.once(mc.yl,(function(){t.events.fire(mc.Pc)}))})),function(){var n;t.events.on(mc.yc,(function(i){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{modal:!0,final:!0};if(!1!==e.final){n=i;var r={modal:!1,template:null,logo:!1,icon:{type:null,html:null}};if(r.modal=e.modal,r.template=nd.render("error",{title:e.title,message:e.message}),r.yv=".js-close",f)return k(),void t.events.once(mc.yl,(function(){return y(i,r)}));y(i,r)}})),Ul(a).on("click",".error",(function(i){t.events.fire(mc.yf,i.target.href,n)}))}(),t.events.on(mc.Zl,(function(){"email-capture"!==d&&"webinar-confirmation"!==d&&window.requestAnimationFrame((function(){T(),k()}))})),Sv(i,".js-close",(function(){t.events.fire(mc._l)})),Ul(i).on(["click","touchend"],[".vp-overlay-content",".js-share",".vp-overlay-logo"],(function(t){t.stopPropagation()})).on(["click","touchend"],[".vp-overlay-cell","nav"],(function(){return"false"===i.getAttribute("data-background-close")||(t.events.fire(mc._l),!1)})),t.events.on(oc.cc,(function(){i.classList.add("hidden")})),t.events.on(mc.lf,(function(){i.classList.contains("in")&&i.classList.remove("hidden")})),function(){var n;12!==t.config.view||(null==(n=t.config.video.webinar)?void 0:n.status)||(t.events.fire(oc._showOverlay,"webinar-confirmation"),t.events.once(mu.EVENT_STARTED,(function(){t.events.fire(oc._hideOverlay,{unmakeModal:!0})})))}(),t.events.fire(mc.jf),{}}var am=[".vp-title a"],sm=[".vp-title a:hover"],cm=["a",".button-link",".vp-overlay-wrapper .footnote.share a:hover",".vp-title h1",".vp-title span.user",".menu li:hover",".menu li.active",".vp-outro-link:hover",".vp-outro-videosTitle a:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-share-footnote a:hover",".card-link span",".vp-panel-collapsible .vp-panel-button:hover"],lm=["a:hover",".button-link:hover"],fm=[".vp-overlay-wrapper .close:hover .fill",".vp-overlay-wrapper .back:hover .fill",".stats-debug-close:hover .fill",".stats-debug-copy:hover",".card-link:hover .fill"],dm=[".play-bar .on .fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover .fill",".tiny-bars .fill",".vp-sidedock .on .fill",".controls-outro a:hover .fill",".card-link .fill",".vp-panel-collapsible .vp-panel-button:hover .fill"],hm=[".vp-controls .play-bar .vp-cast-button"],vm=[".vp-sidedock .on:hover .fill"],pm=[".play-bar .on .stroke",".vp-sidedock .on .stroke"],mm=[".vp-sidedock .on:hover .stroke"],bm=[".vp-sidedock button:hover",".vp-sidedock button.selected","&.touch-support .vp-sidedock button:active",".vp-controls .play:hover",".vp-controls .play-bar .played","&.no-playbar .play-bar button:not(.toggle):hover",".vp-controls.tiny .play-bar button:not(.toggle):hover",".vp-controls .volume div",".vp-overlay .buttons li",".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-content input[type="submit"]','.vp-overlay .vp-overlay-content a[role="button"]',"li.vp-panel-item-on:before",".vp-controls .replay:hover",".vp-share-buttons li","button.vp-share-embedCopy",".vp-outro-button","a.vp-outro-vodButton","input[type=checkbox][checked].vp-disclaimer-checkbox",".vp-email-capture-progress-meter",".chapter-marker",".vp-chapters-active-indicator"],wm=["li.vp-panel-item-on:before"],gm=[".vp-overlay .vp-overlay-content button",'.vp-overlay .vp-overlay-content input[type="submit"]','.vp-overlay .vp-overlay-content a[role="button"]',".vp-sidedock button:hover",".vp-sidedock button.selected",".vp-sidedock button:hover .vod-label",".vp-sidedock button.selected .vod-label",".play:hover",".vp-share-footnote--embed a",".vp-outro-button",".vp-outro-button:hover",".vp-outro-wrapper .vp-outro-link:hover","button.vp-share-embedCopy",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover","li.vp-panel-item:hover","li.vp-panel-item-on",".vp-panel-collapsible .vp-panel-button:hover","input.vp-email-capture-form-button--next","input.vp-email-capture-form-button--submit"],ym=[".vp-controls .play:hover .fill",".vp-sidedock button:hover .fill",".vp-sidedock button.selected .fill",".play-bar a:hover .fill",".play-bar button:not(.toggle):hover .fill","&.no-playbar .play-bar button:not(.toggle):hover .fill",".vp-controls.tiny .play-bar button:not(.toggle):hover .fill",".vp-sidedock .on .fill",'.vp-share-wrapper a[role="button"] .fill',".vp-outro-vodButton .fill",".vp-panel-collapsible .vp-panel-button:hover .fill"],_m=[".vp-controls .play:hover .stroke",".vp-sidedock button:hover .stroke",".vp-sidedock button.selected .stroke",".vp-sidedock .on .stroke"],km=["li.vp-panel-item-on:before"],Em=["li.vp-panel-item-on:before"],Tm=['.vp-overlay-wrapper .vp-overlay a[role="button"]',".vp-sidedock button:hover",".vp-sidedock button.selected",".play:hover","button.vp-share-embedCopy",".vp-outro-button",".vp-outro-button:hover",".vp-outro-vodWrapper a.vp-outro-vodButton",".vp-outro-vodWrapper a.vp-outro-vodButton:hover","input.vp-email-capture-form-button--next","input.vp-email-capture-form-button--submit"],Sm=[".vp-controls .play:hover .fill",".vp-sidedock button:hover .fill",".vp-sidedock button.selected .fill",".vp-controls .play-bar .fullscreen.tiny:hover .fill",".vp-share-button .fill",".vp-outro-vodButton .fill"],Am=[".vp-sidedock button:hover .stroke",".vp-sidedock button.selected .stroke"],xm=["li.vp-panel-item-on:before",".vp-email-capture-form-fields-slider .vp-email-capture-form-custom-field.focus",".vp-email-capture-disclaimer-wrapper .vp-webinar-compliance-checkbox-border.showFocus"],Cm=['.vp-overlay .vp-overlay-content input[type="submit"]:active','.vp-overlay a[role="button"]:active',".vp-sidedock button:active",".vp-outro-vodWrapper a.vp-outro-vodButton:active",".vp-email-capture-form-button--next:hover",".vp-email-capture-form-button--next:focus",".vp-email-capture-form-button--submit:hover",".vp-email-capture-form-button--submit:focus"],Mm=[".vp-email-capture-form-button--next",".vp-email-capture-form-button--submit"];function Im(t,n){var i=n.uuid,e=n.id,r=n.isMobileDevice,o=null;function u(t,n){var o=".player-".concat(i," "),u=o+t.join(","+o);if(n){var a="".concat(e," ");u+=",".concat(a).concat(t.join(","+a))}return r&&(u=u.replace(/:hover/g,":active")),u.replace(/ &/g,"")}return t.events.on(oc.Qs,(function(n){var e;try{e=new dh(n)}catch(t){e=new dh("00adef")}var r=function(t){o?function(){for(;o.cssRules.length>0;)o.deleteRule(0)}():function(){var t=document.createElement("style");t.setAttribute("data-player",i),document.querySelector("head").appendChild(t),o=t.sheet}();var n=t.complement,e=new dh(30,30,30,.9),r=new dh(0,0,0,.15).overlayOn(t);e.contrast(n).ratio<3&&n.lighten(5,3,e);var a,s=t.lightness<40?t.clone().lighten(15,3,t):t.clone().darken(15,3,t);Ms(u(am,!0),"color:"+t.hex+" !important",o),Ms(u(sm,!0),"color:"+n.hex+" !important",o),Ms(u(xm),"border-color:"+r.hex,o),Ms(u(cm),"color:"+t.hex,o),Ms(u(dm),"fill:"+t.hex,o),Ms(u(hm),"--connected-color:"+t.hex,o),Ms(u(pm),"stroke:"+t.hex,o),Ms(u(bm),"background-color:"+t.hex,o),Ms(u(wm),"border-color:"+t.hex,o),Ms(u(lm),"color:"+n.hex,o),Ms(u(fm),"fill:"+n.hex,o),Ms(u(vm),"fill:"+s.hex,o),Ms(u(mm),"stroke:"+s.hex,o),Ms(u(Cm),"background-color:"+r.hex,o),t.luminance>.95&&(n=t.clone().darken(15,3,t),Ms(u(gm),"color:"+n.hex,o),Ms(u(ym),"fill:"+n.hex,o),Ms(u(_m),"stroke:"+n.hex,o),Ms(u(km),"background-color:"+n.hex,o),Ms(u(Em),"border-color:"+n.hex,o),s=n.clone().darken(15,3,n),Ms(u(vm),"fill:"+s.hex,o),Ms(u(mm),"stroke:"+s.hex,o)),t.yiq>175&&t.luminance<.95&&(a=s.clone().darken(15,3,s),Ms(u(vm),"fill:"+a.hex,o),Ms(u(mm),"stroke:"+a.hex,o),Ms(u(Tm),"color:"+s.hex,o),Ms(u(Sm),"fill:"+s.hex,o),Ms(u(Am),"stroke:"+s.hex,o));var c=new dh(t.hex);return c.alpha=.8,Ms(u(Mm),"background-color:"+c.rgba,o),{main:t.hex,selected:s.hex,sidedockHover:a?s.hex:t.luminance>.95?n.hex:dh.white.hex,sidedockSelected:t.luminance>.95?n.hex:t.hex,sidedockSelectedHover:a?a.hex:s.hex}}(e);t.config._v=r,t.config.embed.color=r.main.replace("#",""),t.events.fire(mc.Xl,t.config.embed.color)})),t.events.fire(oc.Qs,t.config.embed.color),{}}function Om(t){var n=null;return t.events.on(oc.Ys,(function(i,e){var r="https://".concat(t.config.player_url),o="".concat(r,"/video/").concat(t.config.video.id);switch(i){case"login-like":n=Ns("".concat(o,"/login/like"),"login",{width:670,height:545}),t.events.fire(mc.Cl,i);break;case"login-watch-later":n=Ns("".concat(o,"/login/watch-later"),"login",{width:670,height:545}),t.events.fire(mc.Cl,i);break;case"login-private-locked":n=Ns("".concat(o,"/login/private"),"login",{width:670,height:545}),t.events.fire(mc.Cl,i);break;case"purchase":var u="".concat(r,"/video/").concat(t.config.video.vod.feature_id||t.config.video.id,"/purchase/vod");(null==e?void 0:e.productId)&&(u+="/".concat(e.productId)),u+="?referrer=".concat(encodeURIComponent(t.config.request.referrer)),n=Ns(u,"purchase",{width:790,height:670}),t.events.fire(mc.Cl,i)}})),window.closePopup=function(i){if(n){try{n.close(),t.events.fire(mc.Ol,i)}catch(t){}n=null}},t.config.embed.on_site||(window.confirmPurchase=function(n,i,e){i?t.loadVideo(n):e&&t.events.fire(mc.Pc)}),t.config.embed.on_site||(window.confirmLoginAction=function(n,i){t.events.fire(mc.Kl,i)}),{}}function Rm(t,n,i,e){var r=e[n];return r?(r=Dm(r=Lm(t,r),i,e.prices),e.expires_in_duration_str&&(r=r.replace("{TIME}",e.expires_in_duration_str)),e.available_on_formatted&&(r=r.replace("{DATE}",e.available_on_formatted)),r):null}function Dm(t,n,i){var e=i.USD;return n in i&&(e=i[n]),-1!==t.indexOf("${price}")?t.replace("${price}",e):-1!==t.indexOf("{PRICE}")?t.replace("{PRICE}",e):t}function jm(t,n){return!t||0===t.length||-1!==t.indexOf(n)}function Lm(t,n){return void 0!==t&&void 0!==t[n]?t[n]:n}var Nm=Object.freeze({__proto__:null,formatVodLabel:Rm,getDisplayPrice:Dm,isAvailableInCountry:jm,translateFromRequest:Lm});function Pm(t,n){var i,e,r,o,u,a,s,c,l,f=!1,d=!1,h=!1,v=!1,p=!1,m=!1,b=!1,w=!1,g=[],y=[],_=null,k=!1,E=!1,T=null,S=t.config.embed.autoplay&&t.config.request.flags.autohide_controls;function A(){return v||b||w}function x(){f&&(E||(d&&k||A()||S)&&(h||(!p&&!m||A())&&(f=!1,t.events.fire(mc.$c,f),(T||n).classList.add("invisible"))))}function C(){if(!f&&!A()){var i=T||n;i.classList.add("invisible"),i.classList.remove("hidden"),i.removeAttribute("hidden"),n.classList.remove("hidden"),n.removeAttribute("hidden"),n.classList.contains("vod")&&n.classList.remove("vod"),setTimeout((function(){f=!0,t.events.fire(mc.$c,f),i.classList.remove("invisible")}),0)}}function M(n,i,e){var r="data-label-"+e,o="add"!==e||t.config.user.logged_in?r:"data-label-add-logged-out";n.setAttribute("aria-label",n.getAttribute(o)),i.classList.add("hidden"),i.setAttribute("hidden",""),i.firstChild.innerHTML=n.getAttribute(r)}function I(){var t="BUTTON"===this.tagName?this:this.querySelector("button"),n=g.indexOf(t);n>=0&&y[n]&&(_&&(window.cancelAnimationFrame(_),_=null),y[n].classList.add("invisible"))}function O(){if(i){var t=i.parentElement;T.insertBefore(t,T.firstChild)}}function R(){var d;if(1===t.config.view||3===t.config.view||12===t.config.view){var h=t.config.embed.settings,v=t.config.video.vod&&"purchase_options"in t.config.video.vod&&t.config.video.vod.purchase_options.length,p=v&&t.config.video.vod.is_coming_soon,m="ondemand.main"===t.config.embed.context||"Vimeo\\Controller\\OnDemandController.main"===t.config.embed.context,b=t.config.video.vod&&t.config.user.purchased?1:0,w=v&&h.vod&&jm(t.config.video.vod.countries,t.config.request.country);w&&p&&m&&(w=!1);var _=v&&t.config.video.vod.purchase_options[0],k=null;_&&(k=Rm(t.config.request.dynamic_translation_map,"label_string",t.config.request.currency,_)),n.innerHTML=nd.render("sidedock",{loggedIn:!!t.config.user.logged_in,vodButton:w,purchased:b,vodPurchaseInfo:_,vodDisplayLabel:k,likeButton:h.like,liked:t.config.user.liked,watchLaterButton:h.watch_later,addedToWatchLater:t.config.user.watch_later,collectionsButton:h.collections,shareButton:h.share,strings:{like:"Me gusta",likeLoggedOut:"Me gusta (se abrirá en una nueva ventana)",unlike:"Unlike",watchLaterAdd:"Agregar a “Ver después”",watchLaterAddLoggedOut:"Agregar a la lista Ver después (se abrirá en una nueva ventana)",watchLaterRemove:"Eliminar de “Ver después”",collections:"Agregar a las colecciones",share:(null==(d=h.share)?void 0:d.embed_only)?"Insertar":"Compartir"}}),i=n.querySelector(".vod-button"),w&&(T=n.querySelector(".sidedock-inner"),b&&O());var E=T||n;v&&w&&!t.config.embed.settings.instant_sidedock?n.classList.add("vod"):Ji.touch&&(f=!0,t.events.fire(mc.$c,f),E.classList.remove("hidden"),E.removeAttribute("hidden"),E.classList.remove("invisible")),e=n.querySelector(".like-button"),r=n.querySelector(".like-label"),o=n.querySelector(".watch-later-button"),u=n.querySelector(".watch-later-label"),a=n.querySelector(".collections-button"),s=n.querySelector(".collections-label"),c=n.querySelector(".share-button"),l=n.querySelector(".share-label"),g=[i,e,o,c,a],y=[null,r,u,l,s]}}return R(),function(){var n=t.config.embed.settings.instant_sidedock,i=t.config.video.vod,e=i&&"purchase_options"in i&&i.purchase_options.length,r=i&&jm(t.config.video.vod.countries,t.config.request.country);(n||e&&r)&&(S||C())}(),Sv(n,".vod-button",(function(){var n=i.getAttribute("data-product-id");t.events.fire(mc.pl,n)}),I),t.events.on(mc.cf,(function(){O(),n.classList.add("sidedock-outro"),"share"===t.config.embed.outro&&(t.config.embed.settings.share=0,R())})),t.events.on(mc.lf,(function(){!function(){if(i){var t=i.parentElement;n.insertBefore(t,T)}}(),n.classList.remove("sidedock-outro"),"share"===t.config.embed.outro&&(t.config.embed.settings.share=1,R())})),Sv(n,".like-button",(function(){t.events.fire(mc.fl)}),I),t.events.on(mc.zl,(function(){e&&(e.classList.add("on"),M(e,r,"remove"))})),t.events.on(mc.ql,(function(){e&&(e.classList.remove("on"),M(e,r,"add"))})),Sv(n,".watch-later-button",(function(){t.events.fire(mc.dl)}),I),t.events.on(mc.Wl,(function(){o&&(o.classList.add("on"),M(o,u,"remove"))})),t.events.on(mc.Gl,(function(){o&&(o.classList.remove("on"),M(o,u,"add"))})),Sv(n,".collections-button",(function(){t.events.fire(mc.ml)}),I),Sv(n,".share-button",(function(){return t.events.fire(t.config.embed.settings.share.embed_only?mc.vl:mc.hl),!1}),I),Ul(n).on("blur","button",I).on("mouseleave",".box",I).on(["focus","pointerdown","touchstart","mouseenter"],"button",(function(){var t=g.indexOf(this);y.forEach((function(n,i){i!==t&&n&&n.classList.add("invisible")})),t>=0&&y[t]&&(y[t].classList.add("invisible"),y[t].classList.remove("hidden"),y[t].removeAttribute("hidden",""),_=window.requestAnimationFrame((function(){_=window.requestAnimationFrame((function(){y[t].classList.remove("invisible"),y[t].classList.add("visible")}))})))})).on("transitionend","label",(function(t){"opacity"===t.propertyName&&t.target.classList.contains("invisible")&&(t.target.classList.add("hidden"),t.target.setAttribute("hidden",""),t.target.classList.remove("visible"))})),Sv(n,"label",(function(){var t=y.indexOf(this);t>=0&&g[t].click()})),t.events.on([mc.Vl,mc.Hl,mc.Dc],x).on(mc.Bl,C).on(mc.Cc,(function(){k=!0,x()})).on(Ai.PLAY,(function(){d=!0})),Ul(n).on(["pointerenter","pointerleave","mouseenter","mouseleave"],(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE||(h="pointerenter"===t.type||"MSPointerEnter"===t.type):h="mouseover"===t.type})),Ul(n).on("transitionend",(function(t){var e=T||n;"opacity"===t.propertyName&&e.classList.contains("invisible")&&(e.classList.add("hidden"),e.setAttribute("hidden",""),i&&e.contains(i)&&(n.classList.add("hidden"),n.setAttribute("hidden","")))})),t.events.on(mc.al,(function(){h=!1,x()})).on(mc.ll,(function(t){t||(E=!0)})),t.events.on([mc.Hf],(function(){p=!0,C()})).on([mc.zf],(function(){p=!1})),t.events.on(lu,(function(){m=!0,C()})).on(fu,(function(){m=!1})),t.events.on(mc.wl,(function(){v=!0,h=!1,x()})).on(mc.gl,(function(){v=!1,C()})),t.events.on(mc.Uf,(function(t){b=t,t&&x()})),t.events.on([mc.rl,mc.Xc],(function(t,n){n.isCentered()&&n.isVisible()&&(w=!0,h=!1,x()),n.isCentered()&&n.isVisible()||(w=!1,C())})),t.events.on(mc.Zl,(function(){R()})),t.events.on(oc.Js,(function(){h=!1,k=!1,x(),d=!1,h=!1,E=!1})),t.events.fire(mc.Of),{}}function Fm(t,n){var i=!0,e=!1,r=!1,o=!1,u=!1,a=!1,s=!1,c=!0,l=!1,f=!1,d=!1;function h(){i=!1,n.classList.add("invisible")}function v(){n.classList.remove("hidden"),n.removeAttribute("hidden"),setTimeout((function(){i=!0,n.classList.remove("invisible")}),0)}function p(){return r||o||u}function m(){i&&(p()||l?h():a||s&&(c&&e||h()))}function b(){var n;i||(!a||p()?c&&!f&&(l||(s||p()?(null==(n=t.config.embed)?void 0:n.settings.info_on_pause)&&c&&!p()&&v():v())):v())}function w(){var i,e;if(1===t.config.view||3===t.config.view||12===t.config.view){var r=!!t.config.embed.settings.byline,o=0===t.config.embed.on_site,u=t.config.embed.settings.spatial_label,a=t.config.request.file_codecs||t.config.video.file_codecs,s=void 0!==a,c=s&&(null==(i=a.hevc)||null==(e=i.dvh1)?void 0:e.length)>0,l=mp(ec.VIDEO_PORTRAIT,t.config),f=mp(ec.VIDEO_TITLE,t.config),d=mp(ec.VIDEO_BYLINE,t.config),h={ClickTargets:ec,linkToOwner:!!l,ownerLink:rp({url:l,embedded:!t.config.embed.on_site,ownerId:t.config.video.owner.id,element:"owner_portrait"}),targetBlank:o,showPortrait:!!t.config.embed.settings.portrait,portraitImg:t.config.video.owner[Ji.devicePixelRatio>1?"img_2x":"img"],showByline:r,portraitAlt:"Enlace al perfil del propietario del video",showTitle:!!t.config.embed.settings.title,showTitleLink:!!f,titleLink:rp({url:f,embedded:!t.config.embed.on_site,ownerId:t.config.video.owner.id,element:"video_title"}),title:t.config.video.title,is360:t.config.video.spatial&&u,hasHDR:s&&a.hevc.hdr.length>0,hasDolbyVision:c,dolbyVisionLogo:c&&nd.render("icon_dolby_vision"),strings:{}};if(t.config.embed.settings.byline){var v=t.config.embed.settings.byline_badge,p="";(null==v?void 0:v.type)&&(p=nd.render("title_byline_badge",{targetBlank:o,cssClass:v.type,link:v.url||!1,displayBadge:!t.config.video.live_event})),h.strings.byline="de "+nd.render("title_owner_byline",{ClickTargets:ec,linkToOwner:!!d,ownerLink:rp({url:d,embedded:!t.config.embed.on_site,ownerId:t.config.video.owner.id,element:"owner_name"}),targetBlank:o,owner:t.config.video.owner.name})+p}t.config.embed.settings.badge&&(h.showPortrait=!1),t.config.embed.autoplay&&(n.classList.add("hidden"),n.setAttribute("hidden","")),n.innerHTML=nd.render("title",h)}}return w(),t.events.on([mc.Vl,mc.Hl],m).on(mc.Bl,b).on(iu,(function(){s=!0,c=!1,m()})).on([mc.Pc,Ai.PLAY],(function(){c=!1,f=!1,m()})).on(mc.pr,(function(t,n){n||(c=!0,b())})).on(mc.Sc,(function(){l=!0,m()})).on(mc.Wc,(function(){d=c,f=!0})).on(mc.Gc,(function(){d&&(f=!1)})).on(mc.al,(function(){m()})).on(mc.ll,(function(t){t||b()})),Ul(n).on(["pointerenter","pointerleave","mouseenter","mouseleave"],(function(t){"pointerType"in t?"mouse"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE||(e="pointerenter"===t.type||"MSPointerEnter"===t.type):e="mouseover"===t.type})),Ul(n).on("transitionend",(function(t){"opacity"===t.propertyName&&n.classList.contains("invisible")&&(n.classList.add("hidden"),n.setAttribute("hidden",""))}),!1),t.events.on(mc.Sc,(function(t){m()})),t.events.on([mc.Hf],(function(){a=!0,b()})).on([mc.zf],(function(){a=!1,m()})),t.events.on(mc.wl,(function(t){"not-supported"!==t&&"private-unlocked"!==t&&"help"!==t&&(r=!0,e=!1,m())})).on(mc.gl,(function(){r=!1,e=!1,setTimeout(b,0)})),t.events.on(mc.cf,(function(t){o=!0,e=!1,m()})).on(mc.lf,(function(){o=!1,e=!1,setTimeout(b,0)})),t.events.on([mc.rl,mc.Xc],(function(t,n){n.isCentered()&&n.isVisible()&&(u=!0,e=!1,m()),n.isCentered()&&n.isVisible()||(u=!1,e=!1,b())})),t.events.on(mc.Zl,(function(){w(),3===t.config.view&&b()})),t.events.on(oc.Js,(function(){s=!1,c=!0,l=!1,f=!1,b()})),t.events.fire(mc.If),{}}function Um(t,n){function i(){n.classList.remove("hidden"),n.removeAttribute("hidden"),n.classList.remove("invisible")}function e(){Ul(n).on("transitionend",(function(){Ul(n).off("transitionend"),n.classList.contains("invisible")&&(n.classList.add("hidden"),n.setAttribute("hidden",""))})),n.classList.add("invisible")}return function(){var r=t.config.embed.settings.badge;if(r){var o=Ji.devicePixelRatio>1?"img_2x":"img";Ji.svg&&r.svg&&(o="svg"),n.innerHTML=nd.render("badge",{showPortrait:!1,targetBlank:0===t.config.embed.on_site,badge:{link:r.link,img:r[o],margin:r.margin||!1,width:r.width,height:r.height,name:r.name,shadow:r.shadow||!1}}),Sv(n,".vp-badge",(function(){t.events.fire(mc.ol,r.id)})),t.config.embed.autoplay?e():i()}else e()}(),{show:i,hide:e}}function Vm(t,n){var i=t.events;function e(t){t.preventDefault(),i.fire(oc.Gs,!1)}function r(){n.classList.add("invisible"),n.classList.remove("hidden"),n.removeAttribute("hidden"),setTimeout((function(){n.classList.remove("invisible")}),0),i.once(mc.Ac,o)}function o(t){t>0&&!n.classList.contains("invisible")&&u()}function u(){Ul(n).on("transitionend",a),n.classList.add("invisible")}function a(){Ul(n).off("transitionend",a),n.classList.add("hidden"),n.setAttribute("hidden","")}return function(){var t={title:Ji.touch?"Toca para activar el sonido":"Haz clic para activar el sonido"};n.innerHTML=nd.render("unmute_button",t),Sv(n,e),Sv(n,".vp-unmute-button",e),i.once(mc.ul,r),i.on(mu.EVENT_ENDED,u)}(),{}}function Bm(t,n){var i=null,e=!1;function r(){var r=n.querySelector(".vp-badge");if(i=new Um(t,r),r.innerHTML)return 16===t.config.embed.settings.badge.id?(i.show(),void t.events.on(mc.Jc,(function(t){t?i.show():i.hide()}))):void t.events.on([mc.Pc,Ai.PLAY],(function(){e&&i.hide()})).on(iu,(function(){e=!0,i.hide()})).on(mc.Sc,i.hide).on(mc.wl,(function(t){"not-supported"!==t&&"private-unlocked"!==t&&"help"!==t&&i.hide()})).on(mc.gl,(function(){e||i.show()}))}r(),function(){var i=n.querySelector(".vp-unmute");new Vm(t,i)}(),t.events.on(mc.Zl,(function(){r()})),t.events.on(oc.Js,(function(){e=!1,r()}))}var Hm=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=6,e=76,r=parseInt(e*Ji.devicePixelRatio,10),o=parseFloat(n.timecode);if(isNaN(o))throw new TypeError("Time must be a number.");if(o<0)throw new TypeError("Time must be a positive number.");this.time=o,this.data=n,this.id=n.id,this.displayTime=n.display_time||i,n.url&&(this.data.url=ep(n.url)),n.image_url&&(n.image=Jc({width:r,height:r,baseUrl:ep(n.image_url),crop:!0})),this.renderTemplate()}var n=t.prototype;return n.renderTemplate=function(){var t=this,n=document.createElement("div");n.innerHTML=nd.render("card",this.data),this.element=n.children[0],this.data.image&&$c(this.data.image).catch((function(n){t.element.querySelector(".js-cardImageWrap").style.display="none"}))},n.isActive=function(t){return t>=this.time&&t0&&void 0!==arguments[0]?arguments[0]:function(t,n){return tn?this.Av(t,n,i,r-1):t[r]0&&t.apply(void 0,arguments)}};function c(){v(),u.forEach((function(t,n){t.element.parentNode.removeChild(t.element)})),u=new zm,Array.isArray(t.config.embed.cards)&&t.config.embed.cards.length&&(t.config.video.title&&t.config.embed.settings.title&&l(-1,{className:"card--contentInfo",timecode:0,headline:t.config.video.title,teaser:t.config.embed.settings.byline?t.config.video.owner.name:"",image:t.config.video.owner[Ji.devicePixelRatio>1?"img_2x":"img"],id:"title-card"}),t.config.embed.cards.forEach((function(t){l(t.timecode,t)})))}function l(i,e){var r=u.get(i),a=new Hm(t,e);if(u.set(i,a),r)return o.replaceChild(a.element,r.element),a;var s=u.keys().indexOf(i);return o.insertBefore(a.element,o.children[s]),n.dispatch(function(t){return{type:"CARDS_SET_SIZE",payload:t}}(u.size)),a}function f(n){t.element.classList.toggle("player-cardsCarousel",n),t.element.classList.toggle("player-cardsCorner",!n),e.destroy(),n&&e.setUp()}function d(n,i){n&&(i?n.element.classList.add("card-animating"):n.element.classList.remove("card-animating"),n.element.classList.add("card-active"),Ul(n.element.childNodes[1]).on("mouseover",(function(){a=!0})),Ul(n.element.childNodes[1]).on("mouseout",(function(){a=!1})),e.show(n.element),t.events.fire(mc.Sf,n.id,n.data))}function h(t){a||t.classList.remove("card-active")}function v(){U(i.querySelectorAll(".card-active")).forEach(h)}return e=new Vv(o),n.watch("ui.cards.size",(function(n){t.element.classList.toggle("player-withCards",n>0)})),n.watch("ui.cards.isCarouselVisible",f),n.watch("ui.cards.isCardsThumbVisible",(function(t){i.classList.toggle("cards-wrapper--withThumbnails",t)})),f(n.get("ui.cards.isCarouselVisible")),t.events.on(mc.Zl,c),t.events.on(oc._addCard,(function(t){var n=l(t.timecode,t);v(),d(n)})),t.events.on(oc._removeCard,(function(t){v();var n=u.get(t.timecode).element;n.parentNode.removeChild(n),u.delete(t.timecode)})),e.on("slide",s((function(n){var i=u.values()[n];"title-card"!==i.id&&t.events.fire(mc.Sf,i.id,i.data),t.events.fire(oc.mc,i.time)}))),e.on("tap",s((function(n){var i=u.values()[n];i.data.url&&"title-card"!==i.id&&(t.events.fire(mc.Af,i.id,i.data),t.backbone.paused||t.events.fire(mc.Nc),window.open(i.data.url))}))),t.events.on(Ai.TIME_UPDATE,s((function(t){var i=function(t){var i=u.values().filter((function(n){return n.isActive(t)})).slice(-1)[0];if(i)return i;if(n.get("ui.cards.isCarouselVisible")){var e=u.values().slice(-1)[0];if(e&&t>e.end)return e}return null}(t.currentTime);i!==r&&(!i&&a||(a=!1,v(),(r=i)&&"title-card"===r.id?n.get("ui.cards.isCarouselVisible")&&d(r,!0):d(r,!0)))}))),t.events.on(mc.Sc,s(v)),Sv(document,".player-cardsCorner .card",s((function(n){n.preventDefault();var i=qs(n.target,o.children),e=u.values()[i];e.data.url&&"title-card"!==e.id&&(t.events.fire(mc.Af,e.id,e.data),t.backbone.paused||t.events.fire(mc.Nc),window.open(e.data.url))}))),c(),{}}var Wm={16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"};function Gm(t,n,i){var e,r=!!t.config.embed.on_site,o=i.querySelector(".volume"),u=!1,a=null,s=t.config.video.fps/5,c=Math.max(s,.618*t.config.video.duration),l=s,f=0,d=!1,h=pd(g,80);function v(){return!r&&(1===t.config.view||3===t.config.view||12===t.config.view)}function p(){u&&"help"===e&&t.events.fire(mc._l)}function m(t){return"number"!=typeof t.which&&(t.which=t.keyCode),t}function b(t){if("keypress"===t.type){var n=String.fromCharCode(t.which);return t.shiftKey||(n=n.toLowerCase()),n}return t.which in Wm?Wm[t.which]:String.fromCharCode(t.which).toLowerCase()}function w(n){if(t.config.embed.settings.background)return!0;var i=n.target||n.srcElement;return"INPUT"===i.tagName||"SELECT"===i.tagName||"TEXTAREA"===i.tagName||i.isContentEditable}function g(i,e){if(!n.get(cl)){d||(e&&!t.backbone.paused&&t.events.fire(mc.Nc),t.events.fire(mc.Wc,!0,"keyboard"),d=!0),!function(t){var n=t,i=Math.ceil(s),e=Math.ceil(c-s);l=function(t,n,i,e){return t/=100,i*(--t*t*t+1)+n}(n,i,e)}(f),1==++f&&(l=5*t.config.video.fps);var r=e?1:l,o="right"===i?r:-r;!function(n){var i=n/t.config.video.fps;t.events.fire(oc.qs,null,i)}(Math["right"===i?"ceil":"floor"](t.currentTime*t.config.video.fps)+o)}}function y(t){var n=a.getTabindexItems(),i=n.indexOf(document.activeElement),e="up"===t?i-1:i+1,r=null;return!(r=e>=n.length?n[0]:e<0?n[n.length-1]:n[e])||(r.focus(),!1)}function _(){if(a)return!0;if(n.get(cl)&&!n.get(pl))return!0;if(!document.activeElement||document.activeElement===document.body){var i=t.backbone.paused?mc.Pc:mc.Nc;return t.events.fire(i),p(),!1}}function k(){return a?(a.element.contains(document.activeElement)&&a.button.focus(),a.hide(),!1):u?(t.events.fire(mc._l),!1):void 0}function E(){return a?!a.element.contains(document.activeElement)||y("up"):Ji.spatialPlayback&&t.config.video.spatial?(t.backbone.getEffectByName("ThreeSixtyEffect").keyPress("up"),!1):!(!t.config.embed.on_site||!document.activeElement||i.contains(document.activeElement))||(p(),t.events.fire(oc.Ws,.05,!1,!0),!1)}function T(){return a?!a.element.contains(document.activeElement)||y("down"):Ji.spatialPlayback&&t.config.video.spatial?(t.backbone.getEffectByName("ThreeSixtyEffect").keyPress("down"),!1):!(!t.config.embed.on_site||!document.activeElement||i.contains(document.activeElement))||(p(),t.events.fire(oc.Ws,-.05,!1,!0),!1)}function S(n,i){if(a)return!a.element.contains(document.activeElement)||y("left"===i?"up":"down");if(p(),Ji.spatialPlayback&&t.config.video.spatial)return t.backbone.getEffectByName("ThreeSixtyEffect").keyPress(i),!1;if(document.activeElement&&document.activeElement===o){var e="left"===i?-.05:.05;return t.events.fire(oc.Ws,e,!1,!0),!1}n.shiftKey||0===f?g(i,n.shiftKey):h(i,n.shiftKey)}return t.events.on(mc.wl,(function(t){u=!0,e=t,"not-supported"!==t&&"email-capture"!==t||(r=!0)})),t.events.on(mc.gl,(function(){u=!1,e=null})),t.events.on(mc.Xc,(function(t,n){t||a!==n?t&&(a=n):a=null})),t.events.on(mc.Zl,(function(t){t&&(r=!1)})),function(){var i={l:mc.fl,w:mc.dl,s:mc.hl,c:[mc.Uc,!0],h:[mc.Fc,!0],f:mc.Lc,d:mc.Ml,space:_,up:E,down:T,left:S,right:S,esc:k,"?":[oc._showOverlay,"help"]};function r(n){if(m(n),function(t){return!(t.ctrlKey||t.metaKey||t.altKey)&&(t.which in Wm?"keydown"===t.type:"keypress"===t.type)}(n)&&!w(n)&&v()){var r=b(n);if(r in i){if("function"==typeof i[r])return void(!1===i[r](n,r)&&(n.preventDefault(),n.stopPropagation()));!1===function(n){if(n=Array.isArray(n)?n:[n],u&&"help"===e){if(t.events.fire(mc._l),n[0]===oc._showOverlay&&"help"===n[1])return!1;if(n[0]!==oc.Zs)return setTimeout((function(){t.events.fire.apply(null,n)}),250),!1}return t.events.fire.apply(null,n),!1}(i[r])&&(n.preventDefault(),n.stopPropagation())}}}t.config.embed.on_site||(i.v=oc.Zs),t.config.embed.keyboard&&(document.addEventListener("keydown",r,!1),document.addEventListener("keypress",r,!1),document.addEventListener("keyup",(function(i){if(m(i),!w(i)&&v()){var e=b(i);!Ji.spatialPlayback||!t.config.video.spatial||"left"!==e&&"right"!==e&&"up"!==e&&"down"!==e?n.get(cl)||"left"!==e&&"right"!==e||function(n){l=s,f=0;var i=n.shiftKey;t.events.fire(mc.Gc,i),d=!1}(i):t.backbone.getEffectByName("ThreeSixtyEffect").keyUp(e)}}),!1))}(),t.events.on(mc.df,(function(){r=!1})).on(mc.hf,(function(){r=!0})),t.config.embed.on_site&&document.querySelector(".player")===i&&(r=!1),function(){var t,n=!1;document.body.addEventListener("keyup",(function(t){9!==t.which||document.body.classList.contains("showfocus")||document.body.classList.add("showfocus")})),document.body.addEventListener("keydown",(function(i){32!==i.which&&13!==i.which||(n=!0,clearTimeout(t),t=setTimeout((function(){n=!1}),200))})),document.body.addEventListener("click",(function(t){n||document.body.classList.remove("showfocus")}))}(),{pause:function(){r=!0},unpause:function(){r=!1}}}function Km(){}var Ym=function(){function t(t,n){this.sd=t,this.xv=n,this.Cv=!1,this.Rs=!1,this.Ds()}var n=t.prototype;return n.disable=function(){this.Rs=!0},n.Mv=function(){this.sd.backbone.endLive(),this.sd.events.fire(mc.nd),this.sd.events.fire(oc._showOverlay,"webinar-blocked"),this.Cv=!0},n.Iv=function(){this.sd.backbone.reactivate(),this.sd.events.fire(mc.ed),this.sd.events.fire(oc._hideOverlay,{unmakeModal:!0}),this.Cv=!1},n.Ov=function(){try{var t=this,n=t.sd.config.video.webinar.id,i=t.xv.get(Jl),e="https://".concat(t.sd.config.player_url,"/video/").concat(t.sd.config.video.id,"/webinar/").concat(n,"/registrant/").concat(i,"/status");return function(t){if(t&&t.then)return t.then(Km)}(function(n,i){try{var o=function(t,n,i){return t&&t.then||(t=r.resolve(t)),n?t.then(n):t}(ir(e,{withCredentials:!0}).json(),(function(n){n.is_blocked&&!t.Cv?t.Mv():t.Cv&&!n.is_blocked&&t.Iv()}))}catch(t){return i(t)}return o&&o.then?o.then(void 0,i):o}(0,(function(t){Hc.captureException(t)})))}catch(t){return r.reject(t)}},n.Ps=function(){return!!(this.sd.config.video.webinar&&this.sd.config.video.webinar.id&&"ended"!==this.sd.config.video.webinar.status&&this.xv.get(Jl))},n.Ds=function(){this.Rs||(this.Ps()&&this.Ov(),setTimeout(this.Ds.bind(this),this.Cv?6e4:3e4))},t}(),Jm=function(){function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.displayTimeout,e=void 0===i?0:i,r=n.label,o=void 0===r?"Alert":r;ot(this),this.Rv=t,this.Dv=!1,this.jv=null,this.Lv=null,this.Nv=o;var u=Math.round(e/1e3);0!==u&&(this.Nv="".concat(o," Will be dismissed in ").concat(u," seconds")),this.Pv=null,this.Fv=e,this.Uv(),this.In()}var n=t.prototype;return n.show=function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.Fv;if(!0!==this.Dv){clearTimeout(this.Pv),this.Lv.classList.remove("hidden"),this.Lv.removeAttribute("hidden"),window.requestAnimationFrame((function(){n.Lv.classList.add("in")}));var e=this.Lv.querySelector("[data-alert-autofocus]")||this.Lv;e.focus(),this.Dv=!0,this.fire("show",t),0!==i&&(this.Pv=setTimeout((function(){n.hide("timeout")}),i))}},n.hide=function(t){var n=this;!1!==this.Dv&&(clearTimeout(this.Pv),this.Lv.classList.add("leaving"),window.requestAnimationFrame((function(){var t=n;n.Vv(),Ul(n.Lv).on("transitionend",(function n(i){"opacity"===i.propertyName&&(t.Lv.classList.remove("leaving"),t.Lv.classList.add("hidden"),t.Lv.setAttribute("hidden",""),Ul(t.Lv).off("transitionend",n))}))})),this.Dv=!1,this.fire("hide",t))},n.Vv=function(){this.Lv.classList.remove("in")},n.Uv=function(){this.Lv||(this.Lv=document.createElement("div"),this.Lv.classList.add("vp-alert"),this.Lv.setAttribute("role","alertdialog"),this.Lv.setAttribute("aria-atomic","true"),this.Lv.classList.add("hidden"),this.Lv.setAttribute("hidden",""),this.Rv.appendChild(this.Lv),this.Vv()),this.jv instanceof HTMLElement?(this.Lv.innerHTML="",this.Lv.appendChild(this.jv)):(this.Lv.textContent=this.jv,this.Lv.innerHTML=this.jv);var t=document.createElement("button");t.setAttribute("data-close",""),t.setAttribute("aria-label","Close alert"),t.classList.add("close"),t.innerHTML=nd.render("icon_close"),this.Lv.appendChild(t)},n.In=function(){var t=this;Ul(this.Lv).on("click","[data-close]",(function(n){t.hide(n)}))},H(t,[{key:"visible",get:function(){return this.Dv}},{key:"message",get:function(){return this.jv},set:function(t){t instanceof HTMLElement&&this.jv&&t.textContent===this.jv.textContent||t!==this.jv&&(this.jv=t,this.Uv())}}]),t}(),$m=function(){function t(t,n,i){this.player=t,this.backbone=n,this.isBufferingTooLong=!1,this.isBufferingTooFrequent=!1,this.autoAlertWasDismissed=!1,this.bufferCount=-1,this.badPlaybackTimer=null,this.Bv(i),this.Xd()}var n=t.prototype;return n.handleBufferStarted=function(){this.bufferCount+=1,this.Hv()},n.handleBufferEnded=function(){clearTimeout(this.badPlaybackTimer),this.badPlaybackTimer=null,this.isBufferingTooLong=!1},n.Xd=function(){var t=this;this.player.events.on(mc.Ul,(function(){t.zv()})),this.player.events.on(tc.Hs,(function(n){t.qv(n)})),this.player.events.on(tc.zs,(function(n){t.Wv(n)})),this.player.events.on(tc.Bs,this.handleBufferStarted.bind(this)),this.player.events.on(Mi.BUFFER_ENDED,this.handleBufferEnded.bind(this)),this.player.events.on(tc.Vs,(function(){t.autoAlertWasDismissed||(t.showAlert("stream_studder"),Hc.captureBreadcrumb("Alert shown",{message:"stream_studder"},"video"))})),this.player.events.on(mc.xc,(function(n){"auto"===n&&t.alertUI.hide("qualitymenuauto")}))},n.qv=function(t){t||this.showAlert("warning_alert",{strings:{text:'Dale una vistazo a la lista de navegadores compatibles con visualizaciones de 360.'}})},n.zv=function(){this.showAlert("notice",{strings:{text:"Carga de depuración copiada"}},5e3)},n.Wv=function(t){t||this.showAlert("warning_alert",{strings:{text:'¿Quieres ver un video 360? Revisa los navegadores y los ajustes compatibles.'}})},n.showAlert=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2?arguments[2]:void 0;this.alertUI&&!this.player.config.embed.settings.background&&(this.alertUI.message=nd.render(t,n),this.alertUI.show(null,i))},n.Bv=function(t){var n=this;this.alertUI=new Jm(t,{displayTimeout:1e3}),this.alertUI.on("show",(function(t){n.player.events.fire(mc.Uf,!0,t)})),this.alertUI.on("hide",(function(t){var i=t.target,e=i&&"function"==typeof i.getAttribute;if(e)switch(i.getAttribute("data-context")){case"suggestion":n.player.events.fire(oc.Xs,"auto"),t="suggestion";break;default:t="close"}(e||"qualitymenuauto"===t)&&(n.autoAlertWasDismissed=!0),n.player.events.fire(mc.Uf,!1,t)}))},n.Hv=function(){var t=this;null===this.badPlaybackTimer&&0!==this.bufferCount&&(this.badPlaybackTimer=setTimeout((function(){t.isBufferingTooLong=!0,t.Gv()}),1e4))},n.Gv=function(){"MediaSourceScanner"===this.backbone.currentScannerName&&(this.isBufferingTooLong||this.isBufferingTooFrequent)&&(this.backbone.video.currentFile.restrictedStreamIndexes.length<=0||(this.isBufferingTooLong,this.isBufferingTooFrequent,this.player.events.fire(tc.Vs),this.bufferCount=0,this.badPlaybackTimer=null,this.isBufferingTooFrequent=!1,this.isBufferingTooLong=!1))},t}();function Xm(t,n,i){return i?n?n(t):t:(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}function Zm(t,n){try{var i=t()}catch(t){return n(t)}return i&&i.then?i.then(void 0,n):i}function Qm(){}var tb=function(){function t(t,n){this.sd=t,this.xv=n,this.Kv=0,this.Yv()}var n=t.prototype;return n.Jv=function(){this.xv.get(pl)&&(this.sd.element.querySelector(".vp-live-viewer-status-wrapper")||(this.Ch=document.createElement("div"),this.Ch.classList.add("vp-live-viewer-status-wrapper","invisible"),this.Ch.innerHTML=nd.render("live_status"),this.Ch.querySelector(".vp-live-status-circle").classList.remove("offline"),this.sd.element.querySelector(".vp-controls-wrapper").appendChild(this.Ch)))},n.$v=function(){var t=this.sd.element.querySelector(".vp-live-viewer-status-wrapper");t&&this.sd.element.querySelector(".vp-controls-wrapper").removeChild(t)},n.Yv=function(){var t=this;this.xv.watch(wl,(function(){return t.$v()})),this.sd.events.on(mc.Zl,(function(){t.sd.config.video.live_event?t.Jv():t.$v()})),this.sd.events.on(mu.STREAM_ONLINE,(function(){t.Jv(),t.Xv()})),this.sd.events.on(mc.Jc,(function(n){var i;null==(i=t.Ch)||i.classList.toggle("invisible",n)})),this.sd.events.on(mc.nd,(function(){t.sd.config.video.webinar&&t.$v()})),this.sd.events.on(mc.ed,(function(){t.sd.config.video.webinar&&t.Jv()}))},n.Xv=function(){try{var t=this;if(!t.xv.get(pl)||!t.sd.config.video.live_event.show_viewer_count)return;var n=setTimeout((function(){t.Xv()}),3e4),i="".concat(t.sd.config.video.id);"unlisted"===t.sd.config.video.privacy&&(i+=":".concat(t.sd.config.video.unlisted_hash));var e="https://".concat(t.sd.config.vimeo_api_url,"/videos/").concat(i,"/stats/live"),o={jwt_token:t.sd.config.user.vimeo_bucketed_live_client_token};return nb(Zm((function(){return Xm(t.sd.updatePhpTokens(),(function(){return nb(Zm((function(){return Xm(ir({url:e,searchParams:o}).json(),(function(n){n.viewers?(t.Kv=0,t.Zv(n.viewers.current)):t.Kv++}))}),(function(){t.Kv++,t.Qv()&&clearTimeout(n)})))}))}),(function(i){Hc.captureException(i),t.Kv++,t.Qv()&&clearTimeout(n)})))}catch(t){return r.reject(t)}},n.Zv=function(t){this.sd.config.video.live_event.show_viewer_count&&(this.Ch.querySelector(".vp-live-viewer-count")||(this.sd.element.querySelector(".vp-live-viewer-count").style.display="block",this.Ch.innerHTML+=nd.render("live_viewer_count")),U(this.sd.element.querySelectorAll(".vp-live-viewer-count-value")).forEach((function(n){return n.innerHTML=function(t){return t=parseFloat(t),isNaN(t)||t<0?"0":t<1e3?t.toString():t>=1e3&&t<1e6?Math.floor(t/1e3)+"."+Math.round(t%1e3/100)+"k":Math.floor(t/1e6)+"."+Math.round(t%1e6/1e5)+"M"}(t)})))},n.Qv=function(){return this.Kv>3&&(U(this.sd.element.querySelectorAll(".vp-live-viewer-count")).forEach((function(t){return t.classList.add("hidden")})),!0)},t}();function nb(t){if(t&&t.then)return t.then(Qm)}t.BigScreen=ch,t.VimeoPlayer=function(t,n,i,e){nd.helpers=Nm;var o=function(t){if(!0===t)return r.resolve(null);var n=!1;return new r((function(i,e){t.link.addEventListener("load",(function(){if(!n){n=!0;var e=(new Date).getTime()-t.startTime;setTimeout((function(){return i(e)}),100)}}),!1)}))}(i),u=new Tv({element:t,delegate:e,cssLoadedPromise:o}),a=u.store;t.classList.add("js-player-fullscreen");var s=u.expose,c=null,l=null,f=null,d=null,h=null,v=null,p=null,m=null,b=t.querySelector(".vp-controls"),w=t.querySelector(".vp-sidedock"),g=t.querySelector(".vp-title"),y=t.querySelector(".vp-cards-wrapper"),_=Ji.mobileAndroid||Ji.iPhone||Ji.windowsPhone||Ji.browser.bb10,k={tiny:mc.if,mini:mc.ef,normal:mc.rf,none:mc.rf};function E(n){n&&void 0!==k[n]&&(u.events.fire(k[n]),t.classList.toggle("player-normal","normal"===n),t.classList.toggle("player-mini","mini"===n),t.classList.toggle("player-tiny","tiny"===n))}function T(n){Object.keys(Of).forEach((function(i){return t.classList.toggle("player-".concat(i),n===i)}))}function S(){var n=u.config.embed.settings,i=(1===u.config.view||u.config.view,n&&!n.playbar);t.classList.toggle("no-playbar",i),t.classList.toggle("with-fullscreen",!!n.fullscreen);var e=n.custom_logo;t.classList.toggle("with-custom-logo",!!e),t.classList.toggle("with-sticky-custom-logo",e&&e.sticky),t.classList.toggle("hide-controls-mode",!!n.background||0===n.controls),t.classList.toggle("touch-support",Ji.touch)}function A(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.config.video.url;if(!(!n||t&&t.metaKey)){if(-1===n.indexOf("#")&&u.backbone.currentTime>0&&u.backbone.currentTime0&&window.innerHeight>0?t():i=setTimeout(n,250)};u.events.once(mc.Oe,e),u.events.once(mc.yc,e)})),function(){var t=function(t,n){return u.verifyConfig().then((function(){var i=u.config.request,e=i.signature,r=i.session,o=i.timestamp,a=i.expires;return ir("https://".concat(u.config.player_url,"/video/").concat(u.config.video.id,"/").concat(t,"?signature=").concat(e,"&session=").concat(r,"&time=").concat(o,"&expires=").concat(a),{method:n,withCredentials:!0})})).catch((function(i){Hc.captureException(i,{extra:{action:t,method:n}})}))},n=function(t,n){return u.updatePhpTokens().then((function(){var i="following"===t?u.config.video.owner.id:u.config.video.id,e=u.config.user.vimeo_api_interaction_tokens,r="";if(e)switch(r="?auth=",t){case"likes":r+=e.likes;break;case"watchlater":r+=e.watch_later;break;case"following":r+=e.following}var o=u.config.video.unlisted_hash&&"following"!==t?":".concat(u.config.video.unlisted_hash):"";return ir("https://".concat(u.config.vimeo_api_url,"/users/").concat(u.config.user.id,"/").concat(t,"/").concat(i).concat(o).concat(r),{method:n,jwt:u.config.user.vimeo_api_client_token}).catch((function(i){Hc.captureException(i,{extra:{action:t,method:n}})}))})).catch((function(t){Hc.captureException(t)}))};u.events.on(mc.pl,(function(t){if(u.config.user.purchased)return!u.config.video.vod.is_feature&&u.config.video.vod.feature_id?void u.loadVideo(u.config.video.vod.feature_id).then((function(){return u.events.fire(mc.Pc),u.config.video.vod.feature_id})).catch((function(t){Hc.captureException(t),u.events.fire(oc._showOverlay,"error",{title:"Lo sentimos",message:"Hubo un problema. Vuelve a intentarlo."})})):void u.events.fire(mc.Pc);u.config.video.vod&&u.config.video.vod.is_coming_soon?A(null,u.config.video.vod.url):u.performDelegateAction(lc,(function(){u.events.fire(oc.Ys,"purchase",{productId:t})}),[t])})),u.events.on(mc.fl,(function(){u.config.user.logged_in?u.config.user.id!==u.config.video.owner.id&&(u.config.user.liked?u.performDelegateAction(ac,(function(){"disable"!==u.config.video.privacy?n("likes","DELETE"):t("like","DELETE"),u.config.user.liked=!1,u.events.fire(mc.ql)})):u.performDelegateAction(uc,(function(){"disable"!==u.config.video.privacy?n("likes","PUT"):t("like","PUT"),u.config.user.liked=!0,u.events.fire(mc.zl)}))):u.performDelegateAction(dc,(function(){u.events.fire(oc.Ys,"login-like")}))})),u.events.on(mc.dl,(function(){(u.config.video.url||"unlisted"===u.config.video.privacy)&&(u.config.user.logged_in?u.config.user.watch_later?u.performDelegateAction(cc,(function(){n("watchlater","DELETE"),u.config.user.watch_later=!1,u.events.fire(mc.Gl)})):u.performDelegateAction(sc,(function(){n("watchlater","PUT"),u.config.user.watch_later=!0,u.events.fire(mc.Wl)})):u.performDelegateAction(dc,(function(){u.events.fire(oc.Ys,"login-watch-later")})))})),u.events.on(mc.ml,(function(){u.performDelegateAction(hc,(function(){u.config.video.vod&&u.config.video.vod.url?A(null,"".concat(u.config.video.vod.url,"#collections")):u.config.video.url&&A(null,"".concat(u.config.video.url,"#collections"))}))})),u.events.on(mc.hl,(function(){var t=u.config.embed.settings.share&&u.config.embed.settings.share.embed_only,n=function(){u.events.fire(oc._showOverlay,"share",t)};ch.element?n():u.performDelegateAction(fc,n)})),u.events.on(mc.vl,(function(){u.config.embed.settings.share.embed_only&&u.performDelegateAction(fc,(function(){u.events.fire(oc._showOverlay,"share",!0)}))})),u.events.on(mc.bl,(function(){if(u.config.user.logged_in&&u.config.user.id!==u.config.video.owner.id){if(u.config.user.following)return n("following","DELETE"),u.config.user.following=!1,void u.events.fire(mc.kf);n("following","PUT"),u.config.user.following=!0,u.events.fire(mc._f)}}))}(),u.events.on(mc.Ec,(function(){t.classList.add("player-ad")})),u.events.on([mc.Tc,oc.Js],(function(){t.classList.remove("player-ad")})),function(){var n=function(){return function(t,n,i){return t&&t.then||(t=r.resolve(t)),n?t.then(n):t}(v,(function(){var n=function(){var n=Rs(t),i=n.width,e=n.height;return _?e<=200?"10px":i<450?"12px":i<=1024?"11px":"10px":"10px"}();b.style.fontSize=n,w.style.fontSize=n,g.style.fontSize=n}))};u.events.on(mc.sl,n),u.events.on(mc.ll,n),window.addEventListener("orientationchange",n),_&&(t.classList.add("mobile"),n())}(),x(),C(),function(){function n(){var n=t;if(e&&e.getFullscreenElement&&"function"==typeof e.getFullscreenElement){var i=e.getFullscreenElement();i&&i instanceof HTMLElement&&i.contains(t)&&i.classList.contains("js-player-fullscreen")&&(n=i)}return n}u.config.embed.fullscreen=!0,Ji.iPad&&t.classList.add("no-fullscreen-api-support");var i=u.config.embed.playsinline&&Ji.iOS>=10,r=Ji.iPad||i;ch.enabled||r||(t.classList.add("no-fullscreen-support"),Ji.iOS||(u.config.embed.fullscreen=!1));var o=!1,a=!1,s=!1;u.events.on([lu,fu],(function(){s=!0})),u.events.on(oc.rc,(function(){ch.enabled||ch.videoEnabled(t)?(u.events.fire(mc.al),a=!1,ch.request(n())):u.events.fire(oc.sc,!0)})),u.events.on(mc.Lc,(function(){"picture-in-picture"===u.backbone.presentationMode&&u.events.fire(oc.dc),ch.element?(u.events.fire(mc.cl),ch.exit()):(u.events.fire(mc.al),a=!0,ch.request(n()))}));var c=ch.onenter,l=ch.onexit;if(ch.onenter=function(t){o||(n().contains(t)?function(t,i){s?s=!1:o||(o=!0,u.events.fire(mc.sl,n()===t,a))}(t):"function"==typeof c&&c(t))},ch.onexit=function(){o?s?s=!1:o&&(o=!1,u.events.fire(mc.ll,a),a||u.events.fire(oc.sc,!1),a=!1):"function"==typeof l&&l()},Ul(t).on("click","a",(function(t){ch.element===n()&&ch.exit()})),Ul(t).on("gestureend",(function(t){t.scale>1&&u.events.fire(mc.Lc)})),"undefined"!=typeof MSGesture){var f=1,d=new MSGesture;d.target=t,Ul(t).on("pointerdown",(function(t){d.addPointer(t.pointerId)})).on(["MSGestureChange"],(function(t){f*=t.scale})).on(["MSGestureEnd"],(function(){(!o&&f>=2||o&&f<1)&&u.events.fire(mc.Lc),f=1}))}}(),function(){var n=rp({url:mp(ec.VIMEO_LOGO,u.config),embedded:!u.config.embed.on_site,ownerId:u.config.video.owner.id,element:"vimeo_logo"});Sv(t,"a[data-clip-link]",(function(t){return A(t,n)})),u.events.on(oc.Zs,A)}(),Sv(t,"[data-track-click]",(function(t){var n=t.target.dataset.trackClick;u.events.fire(mc.Ic,n)})),M(),u.config.video.webinar?m=new Ym(u,a):m&&(m.disable(),m=null),u.events.on(mc.Zl,(function(){S(),M()})),u.events.on(oc.wc,(function(){p.disable()}))}function O(){c||(c=new um(u,a,t.querySelector(".vp-overlay-wrapper")))}function R(){l||(l=new Im(u,{uuid:u.uuid,id:t.id,isMobileDevice:!1}))}function D(){f||(f=new Om(u))}var j={initializationHandler:function(){return function(){O(),R(),D(),new wp(u,a,b),new yp(u,a,t);var n=new Gm(u,a,t);new Ap(u,t.querySelector(".vp-notification-wrapper")),new Cp(u,a,t.querySelector(".vp-outro-wrapper")),new Pm(u,w),new Fm(u,g),new Bm(u,t),Object.defineProperties(s,{pauseKeyboard:{enumerable:!0,value:n.pause},unpauseKeyboard:{enumerable:!0,value:n.unpause}})}(),I(),r.resolve()},postInitializationHandler:function(){return u.backbone&&(new Ep(t.querySelector(".vp-stats-debug"),u),new qm(u,a,y),new $m(u,u.backbone,t)),r.resolve()},authorizationHandler:function(t){var n,i;C(),x(),t(),O(),R();var e="Error",o="Unhandled video privacy";switch(u.config.view){case 4:return new r((function(t,n){u.events.fire(oc._showOverlay,"password"),u.events.once(mc.tf,(function(n){t(n)}))}));case 2:D();var a="private-locked",s=null;return u.config.user.logged_in&&(a="error",s={title:"Video privado",message:"Lo sentimos, no tienes autorización para verlo.",modal:!0,logo:!!u.config.embed.settings.logo,icon:"lock"}),u.events.fire(oc._showOverlay,a,s),r.reject();case 7:e=u.config.title,o=u.config.message;break;case 10:return D(),u.events.fire(oc._showOverlay,"webinar-confirmation"),r.reject();case 11:if(null==(n=u.config.video.webinar)?void 0:n.registration_form)return new r((function(t,n){u.events.fire(oc._showOverlay,"email-capture"),u.events.once(mc.bf,(function(n){t(n)}))}));break;case 13:if(null==(i=u.config.video.webinar)?void 0:i.registration_form)return new r((function(t,n){u.events.fire(oc._showOverlay,"email-capture",{registration_full:!0}),u.events.once(mc.bf,(function(n){t(n)}))}))}return u.events.fire(oc._showOverlay,"error",{title:e,message:o,modal:!0}),r.reject()}};return u.init(n,j).then((function(){return 3!==u.config.view||u.config.embed.autoplay||u.events.fire(oc._showOverlay,"private-unlocked"),!0})).catch((function(n){Hc.captureException(n),O(),R(),t.classList.remove("loading"),u.events.fire(mc.yc,Ac.id,Ac)})),s},t.requestModule=fr,Object.defineProperty(t,"Od",{value:!0})}(this.window=this.window||{});
_application/javascript_WebResourceTextEncodingNameUutf-8Obplist00wxX$versionX$objectsY$archiverT$top &#)*0123STUVWXYZ[\]^_`abcdefghijklmqrU$null
!"___nsurlrequest_proto_prop_obj_6___nsurlrequest_proto_prop_obj_3R$2___nsurlrequest_proto_prop_obj_0R$3___nsurlrequest_proto_prop_obj_4V$class___nsurlrequest_proto_prop_obj_1R$4R$0___nsurlrequest_proto_prop_obj_5___nsurlrequest_proto_prop_obj_2R$1$ % $% '(WNS.base[NS.relative _7https://f.vimeocdn.com/js_opt/modules/utils/vuid.min.js+,-.Z$classnameX$classesUNSURL-/XNSObject#AƗ$#[ 456DRWNS.keysZNS.objects789:;<=>?@ABC
EFGHIJKLMNOPQ !"#\Content-Type]Last-ModifiedSAge_Content-EncodingWExpires_Timing-Allow-Origin]Cache-ControlTDate^Content-LengthX__hhaa__TEtag]Accept-RangesTVary_text/javascript; charset=utf-8_Thu, 30 Sep 2021 05:42:18 GMTW8885661Tgzip_Sun, 28 Sep 2031 07:01:52 GMTQ*_max-age=315360000_Tue, 11 Jan 2022 03:16:13 GMTT1238_
YnBsaXN0MDDcAQIDBAUGBwgJCgsMDQ8RExUXGRsdHyEjXENvbnRlbnQtVHlwZVRWYXJ5U0FnZV8QEENvbnRlbnQtRW5jb2RpbmdXRXhwaXJlc18QE1RpbWluZy1BbGxvdy1PcmlnaW5dQ2FjaGUtQ29udHJvbFREYXRlXkNvbnRlbnQtTGVuZ3RoVEV0YWddQWNjZXB0LVJhbmdlc11MYXN0LU1vZGlmaWVkoQ5fEB50ZXh0L2phdmFzY3JpcHQ7IGNoYXJzZXQ9dXRmLTihEF8QJkFjY2VwdC1FbmNvZGluZyx4LWh0dHAtbWV0aG9kLW92ZXJyaWRloRJXODg4NTY2MaEUVGd6aXChFl8QHVN1biwgMjggU2VwIDIwMzEgMDc6MDE6NTIgR01UoRhRKqEaXxARbWF4LWFnZT0zMTUzNjAwMDChHF8QHVR1ZSwgMTEgSmFuIDIwMjIgMDM6MTY6MTMgR01UoR5UMTIzOKEgXxAYImE2OC01Y2QyZmU4ZTQ4MjgwLWd6aXAioSJVYnl0ZXOhJF8QHVRodSwgMzAgU2VwIDIwMjEgMDU6NDI6MTggR01UAAgAIQAuADMANwBKAFIAaAB2AHsAigCPAJ0AqwCtAM4A0AD5APsBAwEFAQoBDAEsAS4BMAEyAUYBSAFoAWoBbwFxAYwBjgGUAZYAAAAAAAACAQAAAAAAAAAlAAAAAAAAAAAAAAAAAAABtg==_"a68-5cd2fe8e48280-gzip"Ubytes_&Accept-Encoding,x-http-method-override+,no_NSMutableDictionarynp/\NSDictionary_text/javascript+,st_NSHTTPURLResponseuv/_NSHTTPURLResponse]NSURLResponse_NSKeyedArchiveryz_WebResourceResponse # - 2 7 ` f 8;>` $-/18@KY[]_acegikmoqs +0Qqy~"/AFZ^r { _7https://f.vimeocdn.com/js_opt/modules/utils/vuid.min.jsO
h(function(w){var vuid_assigned=false,vuid,parts,img,send_beacon_support=typeof w.navigator.sendBeacon==="function",beacon_url="https://vimeo.com/ablincoln/vuid",j;function _getrandmax(){return 2147483647}function _rand(max,min){if(arguments.length===0){min=0;max=_getrandmax()}return Math.floor(Math.random()*(max-min+1))+min}function _microtime(get_as_float){var now=(new Date).getTime()/1e3,s=parseInt(now,10);return get_as_float?now:Math.round((now-s)*1e3)/1e3+" "+s}function _round(value,precision,mode){var m,f,isHalf,sgn;precision|=0;m=Math.pow(10,precision);value*=m;sgn=value>0|-(value<0);isHalf=value%1===.5*sgn;f=Math.floor(value);if(isHalf){value=f+(sgn>0)}return(isHalf?value:Math.round(value))/m}function _ord(string){var str=string+"",code=str.charCodeAt(0),hi,low;if(55296<=code&&code<=56319){hi=code;if(str.length===1){return code}low=str.charCodeAt(1);return(hi-55296)*1024+(low-56320)+65536}if(56320<=code&&code<=57343){return code}return code}function _generate32bitRandom(){return _round(_rand()/_getrandmax()*2147483647)}function _generateHash(string_arg){var string=string_arg.toString(),hash=1,pos,current,leftMost7;if(typeof string!=="undefined"&&string!==""){hash=0;pos=string.length-1;for(pos;pos>=0;pos--){current=_ord(string.charAt(pos));hash=(hash<<6&268435455)+current+(current<<14);leftMost7=hash&266338304;if(leftMost7){hash^=leftMost7>>21}}}return hash}function _cookie(name,value,ttl,path,domain,secure,samesite){var future_date,cookie;if(arguments.length>1){if(ttl){future_date=new Date;future_date.setDate(future_date.getDate()+ttl)}document.cookie=name+"="+encodeURIComponent(value)+(future_date?"; expires="+future_date.toGMTString():"")+(path?"; path="+path:"")+(domain?"; domain="+domain:"")+(secure?"; secure":"")+(samesite?"; samesite="+samesite:"");return true}return decodeURIComponent((("; "+document.cookie).split("; "+name+"=")[1]||"").split(";")[0])}vuid={cookie:_cookie("vuid")};if(!vuid.cookie){vuid.cookie="pl"+((_generate32bitRandom()^_generateHash(_microtime()))&2147483647).toString()+"."+((_generate32bitRandom()^_generateHash(w.navigator.userAgent)).toString()&2147483647);vuid_assigned=true}parts=w.location.hostname.split(".");if(parts.length>2){parts.shift()}_cookie("vuid",vuid.cookie,365*2,"/","."+parts.join("."),true,"None");if(vuid_assigned&&_cookie("vuid")){if(typeof w._vuid==="object"&&w._vuid.length){for(j=0;j