/*! @vimeo/player v2.15.3 | (c) 2021 Vimeo | MIT License | https://github.com/vimeo/player.js */ !function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((r="undefined"!=typeof globalThis?globalThis:r||self).Vimeo=r.Vimeo||{},r.Vimeo.Player=t())}(this,function(){function r(c,b){for(var a=0;ae&&(d=JSON.stringify(d)),c.element.contentWindow.postMessage(d,c.origin))}function U(c,b){var a,d,e=[];(b=O(b)).event?("error"===b.event&&C(c,b.data.method).forEach(function(a){var d=Error(b.data.message);d.name=b.data.name;a.reject(d);D(c,b.data.method,a)}),e=C(c,"event:".concat(b.event)),a=b.data):!b.method||(d=function(a,b){var c=C(a,b);if(1>c.length)return!1;c=c.shift();return D(a,b,c),c}(c,b.method))&&(e.push(d),a=b.value);e.forEach(function(b){try{if("function"==typeof b)return void b.call(c, a);b.resolve(a)}catch(d){}})}var P="undefined"!=typeof global&&"[object global]"==={}.toString.call(global),G=void 0!==Array.prototype.indexOf,V="undefined"!=typeof window&&void 0!==window.postMessage;if(!(P||G&&V))throw Error("Sorry, the Vimeo Player API is not available in this browser.");var Q,L,m,E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(Q="undefined"!=typeof self?self:"undefined"!=typeof window? window:E).WeakMap||(L=Object.prototype.hasOwnProperty,m=function(c,b,a){Object.defineProperty?Object.defineProperty(c,b,{configurable:!0,writable:!0,value:a}):c[b]=a},Q.WeakMap=(m(v.prototype,"delete",function(c){if(B(this,"delete"),Object(c)!==c)return!1;var b=c[this._id];return!(!b||b[0]!==c)&&(delete c[this._id],!0)}),m(v.prototype,"get",function(c){if(B(this,"get"),Object(c)===c){var b=c[this._id];return b&&b[0]===c?b[1]:void 0}}),m(v.prototype,"has",function(c){if(B(this,"has"),Object(c)!==c)return!1; var b=c[this._id];return!(!b||b[0]!==c)}),m(v.prototype,"set",function(c,b){if(B(this,"set"),Object(c)!==c)throw new TypeError("Invalid value used as weak map key");var a=c[this._id];return a&&a[0]===c?a[1]=b:m(c,this._id,[c,b]),this}),m(v,"_polyfill",!0),v));var R,p=(function(c){E.Promise=E.Promise||function(){function b(a,b){this.fn=a;this.self=b;this.next=void 0}function a(a,b){m.add(a,b);H=H||t(m.drain)}function c(a){var b,d=typeof a;return null==a||"object"!=d&&"function"!=d||(b=a.then),"function"== typeof b&&b}function e(){for(var a=0;a