1import{A as K,o as D,f as W,j as $,d as Le,a3 as Ne,a4 as Fe,e as we,l as B,L as Ie,E as De,m as fe,O as qe,g as j,k as ie,t as be,J as ke,n as de,i as he,K as pe}from"./frJpPpHC.js";import{_ as We}from"./Ds35QOYM.js";const He={},ze={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 12 15",width:"12",height:"15"},Be=$("path",{d:"M4.5 0H0v15h4.5V0ZM12 0H7.5v15H12V0Z"},null,-1),Ze=[Be];function Ge(n,e){return D(),W("svg",ze,Ze)}const Ue=K(He,[["render",Ge]]),Qe={},Ye={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 12 15",width:"12",height:"15"},Je=$("path",{d:"M12 7.5 0 15V0l12 7.5Z"},null,-1),Ke=[Je];function Xe(n,e){return D(),W("svg",Ye,Ke)}const et=K(Qe,[["render",Xe]]),tt={},rt={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16"},nt=$("path",{d:"m14.87 16-2.45-2.44a6.72 6.72 0 0 1-2.24.92v-1.65l.56-.2c.18-.07.35-.15.51-.25L8.57 9.7v4.2L4.53 9.86H1.29V5h2.59L0 1.13 1.13 0 16 14.87 14.87 16Zm-.16-4.69-1.17-1.17a5.5 5.5 0 0 0 .68-2.73A5.54 5.54 0 0 0 10.18 2V.34a7.07 7.07 0 0 1 4.08 2.54 7.05 7.05 0 0 1 1.58 4.53 7.23 7.23 0 0 1-1.13 3.9ZM12 8.61l-1.82-1.82V4.16c.63.3 1.13.74 1.49 1.33A3.69 3.69 0 0 1 12 8.61ZM8.57 5.17l-2.1-2.1 2.1-2.1v4.2Z"},null,-1),it=[nt];function ot(n,e){return D(),W("svg",rt,it)}const at=K(tt,[["render",ot]]),ut={},st={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16",width:"16",height:"16"},ct=$("path",{d:"M10.16 15.1v-1.65a5.53 5.53 0 0 0 4.03-5.4 5.53 5.53 0 0 0-4.03-5.4V1a7.04 7.04 0 0 1 4.07 2.53 7.03 7.03 0 0 1 1.57 4.52c0 1.7-.52 3.21-1.57 4.52a7.04 7.04 0 0 1-4.07 2.53ZM1.3 10.49V5.65h3.22l4.03-4.03v12.9l-4.03-4.03H1.3Zm8.86.8V4.81c.63.3 1.13.73 1.48 1.33a3.68 3.68 0 0 1 0 3.83 3.36 3.36 0 0 1-1.48 1.32Z"},null,-1),lt=[ct];function ft(n,e){return D(),W("svg",st,lt)}const dt=K(ut,[["render",ft]]),ht={},pt={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 13 15",width:"13",height:"15"},vt=$("path",{d:"M5.73 15A6.43 6.43 0 0 1 .5 6.18a6.5 6.5 0 0 1 1.42-2.1l1.45 1.43a4.24 4.24 0 0 0-1.34 3.13c0 1.08.35 2.03 1.04 2.84.7.82 1.58 1.32 2.66 1.5V15Zm1.54 0v-2.01a4.37 4.37 0 0 0 2.65-1.52 4.26 4.26 0 0 0 1.05-2.83c0-1.19-.41-2.2-1.23-3.05a4.33 4.33 0 0 0-3.01-1.35h-.1l.9.9L6.34 6.3 3.15 3.16 6.35 0l1.18 1.18-1.05 1.04h.1c1.8 0 3.31.63 4.56 1.88A6.2 6.2 0 0 1 13 8.64c0 1.62-.55 3.03-1.64 4.24A6.45 6.45 0 0 1 7.26 15Z"},null,-1),mt=[vt];function gt(n,e){return D(),W("svg",pt,mt)}const yt=K(ht,[["render",gt]]),wt={},bt={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 13 13",width:"13",height:"13"},kt=$("path",{"fill-rule":"evenodd",d:"M13 .5V0H9v1h2.3L7.64 4.65l.7.7L12 1.71V4h1V.5ZM12.5 13h.5V9h-1v2.3L8.35 7.64l-.7.7L11.29 12H9v1h3.5ZM0 13V9h1v2.3l3.65-3.65.7.7L1.71 12H4v1H0ZM.5 0H0v4h1V1.7l3.65 3.65.7-.7L1.71 1H4V0H.5Z"},null,-1),_t=[kt];function Pt(n,e){return D(),W("svg",bt,_t)}const Et=K(wt,[["render",Pt]]);/*! @vimeo/player v2.23.0 | (c) 2024 Vimeo | MIT License | https://github.com/vimeo/player.js */function _e(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Pe(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_e(Object(t),!0).forEach(function(r){oe(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function V(){V=function(){return n};var n={},e=Object.prototype,t=e.hasOwnProperty,r=Object.defineProperty||function(l,c,h){l[c]=h.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function d(l,c,h){return Object.defineProperty(l,c,{value:h,enumerable:!0,configurable:!0,writable:!0}),l[c]}try{d({},"")}catch{d=function(c,h,T){return c[h]=T}}function s(l,c,h,T){var y=c&&c.prototype instanceof _?c:_,M=Object.create(y.prototype),S=new x(T||[]);return r(M,"_invoke",{value:p(l,h,S)}),M}function E(l,c,h){try{return{type:"normal",arg:l.call(c,h)}}catch(T){return{type:"throw",arg:T}}}n.wrap=s;var b={};function _(){}function P(){}function k(){}var R={};d(R,o,function(){return this});var O=Object.getPrototypeOf,A=O&&O(O(L([])));A&&A!==e&&t.call(A,o)&&(R=A);var m=k.prototype=_.prototype=Object.create(R);function v(l){["next","throw","return"].forEach(function(c){d(l,c,function(h){return this._invoke(c,h)})})}function f(l,c){function h(y,M,S,F){var I=E(l[y],l,M);if(I.type!=="throw"){var Q=I.arg,ee=Q.value;return ee&&typeof ee=="object"&&t.call(ee,"__await")?c.resolve(ee.__await).then(function(z){h("next",z,S,F)},function(z){h("throw",z,S,F)}):c.resolve(ee).then(function(z){Q.value=z,S(Q)},function(z){return h("throw",z,S,F)})}F(I.arg)}var T;r(this,"_invoke",{value:function(y,M){function S(){return new c(function(F,I){h(y,M,F,I)})}return T=T?T.then(S,S):S()}})}function p(l,c,h){var T="suspendedStart";return function(y,M){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(y==="throw")throw M;return X()}for(h.method=y,h.arg=M;;){var S=h.delegate;if(S){var F=w(S,h);if(F){if(F===b)continue;return F}}if(h.method==="next")h.sent=h._sent=h.arg;else if(h.method==="throw"){if(T==="suspendedStart")throw T="completed",h.arg;h.dispatchException(h.arg)}else h.method==="return"&&h.abrupt("return",h.arg);T="executing";var I=E(l,c,h);if(I.type==="normal"){if(T=h.done?"completed":"suspendedYield",I.arg===b)continue;return{value:I.arg,done:h.done}}I.type==="throw"&&(T="completed",h.method="throw",h.arg=I.arg)}}}function w(l,c){var h=c.method,T=l.iterator[h];
1if(T===void 0)return c.delegate=null,h==="throw"&&l.iterator.return&&(c.method="return",c.arg=void 0,w(l,c),c.method==="throw")||h!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+h+"' method")),b;var y=E(T,l.iterator,c.arg);if(y.type==="throw")return c.method="throw",c.arg=y.arg,c.delegate=null,b;var M=y.arg;return M?M.done?(c[l.resultName]=M.value,c.next=l.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,b):M:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,b)}function C(l){var c={tryLoc:l[0]};1 in l&&(c.catchLoc=l[1]),2 in l&&(c.finallyLoc=l[2],c.afterLoc=l[3]),this.tryEntries.push(c)}function g(l){var c=l.completion||{};c.type="normal",delete c.arg,l.completion=c}function x(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(C,this),this.reset(!0)}function L(l){if(l){var c=l[o];if(c)return c.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var h=-1,T=function y(){for(;++h<l.length;)if(t.call(l,h))return y.value=l[h],y.done=!1,y;return y.value=void 0,y.done=!0,y};return T.next=T}}return{next:X}}function X(){return{value:void 0,done:!0}}return P.prototype=k,r(m,"constructor",{value:k,configurable:!0}),r(k,"constructor",{value:P,configurable:!0}),P.displayName=d(k,a,"GeneratorFunction"),n.isGeneratorFunction=function(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===P||(c.displayName||c.name)==="GeneratorFunction")},n.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,k):(l.__proto__=k,d(l,a,"GeneratorFunction")),l.prototype=Object.create(m),l},n.awrap=function(l){return{__await:l}},v(f.prototype),d(f.prototype,u,function(){return this}),n.AsyncIterator=f,n.async=function(l,c,h,T,y){y===void 0&&(y=Promise);var M=new f(s(l,c,h,T),y);return n.isGeneratorFunction(c)?M:M.next().then(function(S){return S.done?S.value:M.next()})},v(m),d(m,a,"Generator"),d(m,o,function(){return this}),d(m,"toString",function(){return"[object Generator]"}),n.keys=function(l){var c=Object(l),h=[];for(var T in c)h.push(T);return h.reverse(),function y(){for(;h.length;){var M=h.pop();if(M in c)return y.value=M,y.done=!1,y}return y.done=!0,y}},n.values=L,x.prototype={constructor:x,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(g),!l)for(var c in this)c.charAt(0)==="t"&&t.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var c=this;function h(I,Q){return M.type="throw",M.arg=l,c.next=I,Q&&(c.method="next",c.arg=void 0),!!Q}for(var T=this.tryEntries.length-1;T>=0;--T){var y=this.tryEntries[T],M=y.completion;if(y.tryLoc==="root")return h("end");if(y.tryLoc<=this.prev){var S=t.call(y,"catchLoc"),F=t.call(y,"finallyLoc");if(S&&F){if(this.prev<y.catchLoc)return h(y.catchLoc,!0);if(this.prev<y.finallyLoc)return h(y.finallyLoc)}else if(S){if(this.prev<y.catchLoc)return h(y.catchLoc,!0)}else{if(!F)throw new Error("try statement without catch or finally");if(this.prev<y.finallyLoc)return h(y.finallyLoc)}}}},abrupt:function(l,c){for(var h=this.tryEntries.length-1;h>=0;--h){var T=this.tryEntries[h];if(T.tryLoc<=this.prev&&t.call(T,"finallyLoc")&&this.prev<T.finallyLoc){var y=T;break}}y&&(l==="break"||l==="continue")&&y.tryLoc<=c&&c<=y.finallyLoc&&(y=null);var M=y?y.completion:{};return M.type=l,M.arg=c,y?(this.method="next",this.next=y.finallyLoc,b):this.complete(M)},complete:function(l,c){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&c&&(this.next=c),b},finish:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var h=this.tryEntries[c];if(h.finallyLoc===l)return this.complete(h.completion,h.afterLoc),g(h),b}},catch:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var h=this.tryEntries[c];if(h.tryLoc===l){var T=h.completion;if(T.type==="throw"){var y=T.arg;g(h)}return y}}throw new Error("illegal catch attempt")},delegateYield:function(l,c,h){return this.delegate={iterator:L(l),resultName:c,nextLoc:h},this.method==="next"&&(this.arg=void 0),b}},n}function Ee(n,e,t,r,i,o,u){try{var a=n[o](u),d=a.value}catch(s){t(s);return}a.done?e(d):Promise.resolve(d).then(r,i)}function G(n){return function(){var e=this,t=arguments;return new Promise(function(r,i){var o=n.apply(e,t);function u(d){Ee(o,r,i,u,a,"next",d)}function a(d){Ee(o,r,i,u,a,"throw",d)}u(void 0)})}}function Me(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Tt(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,xe(r.key),r)}}function Oe(n,e,t){return e&&Tt(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function oe(n,e,t){return e=xe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Ct(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&ne(n,e)}function re(n){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},re(n)}function ne(n,e){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ne(n,e)}function Se(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ae(n,e,t){return Se()?ae=Reflect.construct.bind():ae=function(i,o,u){var a=[null];a.push.apply(a,o);var d=Function.bind.apply(i,a),s=new d;return u&&ne(s,u.prototype),s},ae.apply(null,arguments)}function Mt(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function me(n){var e=typeof Map=="function"?new Map:void 0;return me=function(r){if(r===null||!Mt(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return ae(r,arguments,re(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ne(i,r)},me(n)}function ue(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Ot(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ue(n)}function St(n){var e=Se();return function(){var r=re(n),i;if(e){var o=re(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ot(this,i)}}function xt(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function xe(n){var e=xt(n,"string");return typeof e=="symbol"?e:String(e)}var je=typeof global<"u"&&{}.toString.call(global)==="[object global]";function Te(n,e){return n.indexOf(e.toLowerCase())===0?n:"".concat(e.toLowerCase()).concat(n.substr(0,1).toUpperCase()).concat(n.substr(1))}function jt(n){return!!(n&&n.nodeType===1&&"nodeName"in n&&n.ownerDocument&&n.ownerDocument.defaultView)}function $t(n){return!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n}function U(n){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.videoji\.hk))(?=$|\/)/.test(n)}function $e(n){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.videoji\.hk))\/video\/\d+/;return e.test(n)}function Rt(n){var e=(n||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.","");return t.endsWith(".videoji.hk")?t:"vimeo.com"}function Re(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.id,t=n.url,r=e||t;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if($t(r))return"https://vimeo.com/".concat(r);if(U(r))return r.replace("http:","https:");throw e?new TypeError("â".concat(e,"â is not a valid video id.")):new TypeError("â".concat(r,"â is not a vimeo.com url."))}var Ce=function(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",u=typeof t=="string"?[t]:t;return u.forEach(function(a){e[i](a,r)}),{cancel:function(){return u.forEach(function(d){return e[o](d,r)})}}},At=typeof Array.prototype.indexOf<"u",Vt=typeof window<"u"&&typeof window.postMessage<"u";if(!je&&(!At||!Vt))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lt(n,e){return e={exports:{}},n(e,e.exports),e.exports}/*! 2 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill 3 * https://github.com/polygonplanet/weakmap-polyfill 4 * Copyright (c) 2015-2021 polygonplanet <[email protected]> 5 * @license MIT 6 */(function(n){if(n.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),r=function(o,u,a){t?Object.defineProperty(o,u,{configurable:!0,writable:!0,value:a}):o[u]=a};n.WeakMap=function(){function o(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id",a("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}r(o.prototype,"delete",function(s){if(u(this,"delete"),!i(s))return!1;var E=s[this._id];return E&&E[0]===s?(delete s[this._id],!0):!1}),r(o.prototype,"get",function(s){if(u(this,"get"),!!i(s)){var E=s[this._id];if(E&&E[0]===s)return E[1]}}),r(o.prototype,"has",function(s){if(u(this,"has"),!i(s))return!1;var E=s[this._id];return!!(E&&E[0]===s)}
6),r(o.prototype,"set",function(s,E){if(u(this,"set"),!i(s))throw new TypeError("Invalid value used as weak map key");var b=s[this._id];return b&&b[0]===s?(b[1]=E,this):(r(s,this._id,[s,E]),this)});function u(s,E){if(!i(s)||!e.call(s,"_id"))throw new TypeError(E+" method called on incompatible receiver "+typeof s)}function a(s){return s+"_"+d()+"."+d()}function d(){return Math.random().toString().substring(2)}return r(o,"_polyfill",!0),o}();function i(o){return Object(o)===o}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:J);var q=Lt(function(n){/*! Native Promise Only 7 v0.8.1 (c) Kyle Simpson 8 MIT License: http://getify.mit-license.org 9*/(function(t,r,i){r[t]=r[t]||i(),n.exports&&(n.exports=r[t])})("Promise",J,function(){var t,r,i,o=Object.prototype.toString,u=typeof setImmediate<"u"?function(v){return setImmediate(v)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(v,f,p,w){return Object.defineProperty(v,f,{value:p,writable:!0,configurable:w!==!1})}}catch{t=function(f,p,w){return f[p]=w,f}}i=function(){var v,f,p;function w(C,g){this.fn=C,this.self=g,this.next=void 0}return{add:function(g,x){p=new w(g,x),f?f.next=p:v=p,f=p,p=void 0},drain:function(){var g=v;for(v=f=r=void 0;g;)g.fn.call(g.self),g=g.next}}}();function a(m,v){i.add(m,v),r||(r=u(i.drain))}function d(m){var v,f=typeof m;return m!=null&&(f=="object"||f=="function")&&(v=m.then),typeof v=="function"?v:!1}function s(){for(var m=0;m<this.chain.length;m++)E(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function E(m,v,f){var p,w;try{v===!1?f.reject(m.msg):(v===!0?p=m.msg:p=v.call(void 0,m.msg),p===f.promise?f.reject(TypeError("Promise-chain cycle")):(w=d(p))?w.call(p,f.resolve,f.reject):f.resolve(p))}catch(C){f.reject(C)}}function b(m){var v,f=this;if(!f.triggered){f.triggered=!0,f.def&&(f=f.def);try{(v=d(m))?a(function(){var p=new k(f);try{v.call(m,function(){b.apply(p,arguments)},function(){_.apply(p,arguments)})}catch(w){_.call(p,w)}}):(f.msg=m,f.state=1,f.chain.length>0&&a(s,f))}catch(p){_.call(new k(f),p)}}}function _(m){var v=this;v.triggered||(v.triggered=!0,v.def&&(v=v.def),v.msg=m,v.state=2,v.chain.length>0&&a(s,v))}function P(m,v,f,p){for(var w=0;w<v.length;w++)(function(g){m.resolve(v[g]).then(function(L){f(g,L)},p)})(w)}function k(m){this.def=m,this.triggered=!1}function R(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function O(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var v=new R(this);this.then=function(p,w){var C={success:typeof p=="function"?p:!0,failure:typeof w=="function"?w:!1};return C.promise=new this.constructor(function(x,L){if(typeof x!="function"||typeof L!="function")throw TypeError("Not a function");C.resolve=x,C.reject=L}),v.chain.push(C),v.state!==0&&a(s,v),C.promise},this.catch=function(p){return this.then(void 0,p)};try{m.call(void 0,function(p){b.call(v,p)},function(p){_.call(v,p)})}catch(f){_.call(v,f)}}var A=t({},"constructor",O,!1);return O.prototype=A,t(A,"__NPO__",0,!1),t(O,"resolve",function(v){var f=this;return v&&typeof v=="object"&&v.__NPO__===1?v:new f(function(w,C){if(typeof w!="function"||typeof C!="function")throw TypeError("Not a function");w(v)})}),t(O,"reject",function(v){return new this(function(p,w){if(typeof p!="function"||typeof w!="function")throw TypeError("Not a function");w(v)})}),t(O,"all",function(v){var f=this;return o.call(v)!="[object Array]"?f.reject(TypeError("Not an array")):v.length===0?f.resolve([]):new f(function(w,C){if(typeof w!="function"||typeof C!="function")throw TypeError("Not a function");var g=v.length,x=Array(g),L=0;P(f,v,function(l,c){x[l]=c,++L===g&&w(x)},C)})}),t(O,"race",function(v){var f=this;return o.call(v)!="[object Array]"?f.reject(TypeError("Not an array")):new f(function(w,C){if(typeof w!="function"||typeof C!="function")throw TypeError("Not a function");P(f,v,function(x,L){w(L)},C)})}),O})}),H=new WeakMap;function te(n,e,t){var r=H.get(n.element)||{};e in r||(r[e]=[]),r[e].push(t),H.set(n.element,r)}function se(n,e){var t=H.get(n.element)||{};return t[e]||[]}function ce(n,e,t){var r=H.get(n.element)||{};if(!r[e])return!0;
9if(!t)return r[e]=[],H.set(n.element,r),!0;var i=r[e].indexOf(t);return i!==-1&&r[e].splice(i,1),H.set(n.element,r),r[e]&&r[e].length===0}function Nt(n,e){var t=se(n,e);if(t.length<1)return!1;var r=t.shift();return ce(n,e,r),r}function Ft(n,e){var t=H.get(n);H.set(e,t),H.delete(n)}function le(n){if(typeof n=="string")try{n=JSON.parse(n)}catch(e){return console.warn(e),{}}return n}function Z(n,e,t){if(!(!n.element.contentWindow||!n.element.contentWindow.postMessage)){var r={method:e};t!==void 0&&(r.value=t);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),n.element.contentWindow.postMessage(r,n.origin)}}function It(n,e){e=le(e);var t=[],r;if(e.event){if(e.event==="error"){var i=se(n,e.data.method);i.forEach(function(u){var a=new Error(e.data.message);a.name=e.data.name,u.reject(a),ce(n,e.data.method,u)})}t=se(n,"event:".concat(e.event)),r=e.data}else if(e.method){var o=Nt(n,e.method);o&&(t.push(o),r=e.value)}t.forEach(function(u){try{if(typeof u=="function"){u.call(n,r);return}u.resolve(r)}catch{}})}var Dt=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","url","vimeo_logo","volume","watch_full_video","width"];function Ae(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Dt.reduce(function(t,r){var i=n.getAttribute("data-vimeo-".concat(r));return(i||i==="")&&(t[r]=i===""?1:i),t},e)}function ge(n,e){var t=n.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=t,e.appendChild(r.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ve(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!U(n))throw new TypeError("â".concat(n,"â is not a vimeo.com url."));var o=Rt(n),u="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(n));for(var a in e)e.hasOwnProperty(a)&&(u+="&".concat(a,"=").concat(encodeURIComponent(e[a])));var d="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;d.open("GET",u,!0),d.onload=function(){if(d.status===404){i(new Error("â".concat(n,"â was not found.")));return}if(d.status===403){i(new Error("â".concat(n,"â is not embeddable.")));return}try{var s=JSON.parse(d.responseText);if(s.domain_status_code===403){ge(s,t),i(new Error("â".concat(n,"â is not embeddable.")));return}r(s)}catch(E){i(E)}},d.onerror=function(){var s=d.status?" (".concat(d.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(s,".")))},d.send()})}function qt(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(n.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};e.forEach(function(r){try{if(r.getAttribute("data-vimeo-defer")!==null)return;var i=Ae(r),o=Re(i);Ve(o,i,r).then(function(u){return ge(u,r)}).catch(t)}catch(u){t(u)}})}function Wt(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(r){if(U(r.origin)&&!(!r.data||r.data.event!=="spacechange")){for(var i=n.querySelectorAll("iframe"),o=0;o<i.length;o++)if(i[o].contentWindow===r.source){var u=i[o].parentElement;u.style.paddingBottom="".concat(r.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function Ht(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(r){if(U(r.origin)){var i=le(r.data);if(!(!i||i.event!=="ready"))for(var o=n.querySelectorAll("iframe"),u=0;u<o.length;u++){var a=o[u],d=a.contentWindow===r.source;
9if($e(a.src)&&d){var s=new ye(a);s.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function zt(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},t=function(i){if(U(i.origin)){var o=le(i.data);if(!(!o||o.event!=="ready"))for(var u=n.querySelectorAll("iframe"),a=function(){var E=u[d],b=E.contentWindow===i.source;if($e(E.src)&&b){var _=new ye(E);_.getVideoId().then(function(P){var k=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(k&&k[1]){var R=decodeURI(k[1]);_.setCurrentTime(R)}}).catch(e)}},d=0;d<u.length;d++)a()}};window.addEventListener("message",t)}}function Bt(){var n=function(){for(var r,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],o=0,u=i.length,a={};o<u;o++)if(r=i[o],r&&r[1]in document){for(o=0;o<r.length;o++)a[i[0][o]]=r[o];return a}return!1}(),e={fullscreenchange:n.fullscreenchange,fullscreenerror:n.fullscreenerror},t={request:function(i){return new Promise(function(o,u){var a=function s(){t.off("fullscreenchange",s),o()};t.on("fullscreenchange",a),i=i||document.documentElement;var d=i[n.requestFullscreen]();d instanceof Promise&&d.then(a).catch(u)})},exit:function(){return new Promise(function(i,o){if(!t.isFullscreen){i();return}var u=function d(){t.off("fullscreenchange",d),i()};t.on("fullscreenchange",u);var a=document[n.exitFullscreen]();a instanceof Promise&&a.then(u).catch(o)})},on:function(i,o){var u=e[i];u&&document.addEventListener(u,o)},off:function(i,o){var u=e[i];u&&document.removeEventListener(u,o)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[n.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[n.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[n.fullscreenEnabled]}}}),t}var Zt={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},Gt=function(n){Ct(t,n);var e=St(t);function t(r,i){var o,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return Me(this,t),o=e.call(this),oe(ue(o),"logger",void 0),oe(ue(o),"speedAdjustment",0),oe(ue(o),"adjustSpeed",function(){var d=G(V().mark(function s(E,b){var _;return V().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(o.speedAdjustment!==b){k.next=2;break}return k.abrupt("return");case 2:return k.next=4,E.getPlaybackRate();case 4:return k.t0=k.sent,k.t1=o.speedAdjustment,k.t2=k.t0-k.t1,k.t3=b,_=k.t2+k.t3,o.log("New playbackRate: ".concat(_)),k.next=12,E.setPlaybackRate(_);case 12:o.speedAdjustment=b;case 13:case"end":return k.stop()}},s)}));return function(s,E){return d.apply(this,arguments)}}()),o.logger=a,o.init(i,r,Pe(Pe({},Zt),u)),o}return Oe(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var r=G(V().mark(function o(u,a,d){var s=this,E,b,_;return V().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,this.waitForTOReadyState(u,"open");case 2:if(d.role!=="viewer"){k.next=10;break}return k.next=5,this.updatePlayer(u,a,d);case 5:E=Ce(u,"change",function(){return s.updatePlayer(u,a,d)}),b=this.maintainPlaybackPosition(u,a,d),this.addEventListener("disconnect",function(){b.cancel(),E.cancel()}),k.next=14;break;case 10:return k.next=12,this.updateTimingObject(u,a);case 12:_=Ce(a,["seeked","play","pause","ratechange"],function(){return s.updateTimingObject(u,a)},"on","off"),this.addEventListener("disconnect",function(){return _.cancel()});case 14:case"end":return k.stop()}},o,this)}));function i(o,u,a){return r.apply(this,arguments)}return i}()},{key:"updateTimingObject",value:function(){var r=G(V().mark(function o(u,a){return V().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.t0=u,s.next=3,a.getCurrentTime();case 3:return s.t1=s.sent,s.next=6,a.getPaused();case 6:if(!s.sent){s.next=10;break}s.t2=0,s.next=13;break;case 10:return s.next=12,a.getPlaybackRate();case 12:s.t2=s.sent;case 13:s.t3=s.t2,s.t4={position:s.t1,velocity:s.t3},s.t0.update.call(s.t0,s.t4);case 16:case"end":return s.stop()}},o)}));function i(o,u){return r.apply(this,arguments)}return i}()},{key:"updatePlayer",value:function(){var r=G(V().mark(function o(u,a,d){var s,E,b;return V().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(s=u.query(),E=s.position,b=s.velocity,typeof E=="number"&&a.setCurrentTime(E),typeof b!="number"){P.next=25;break}if(b!==0){P.next=11;break}return P.next=6,a.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}a.pause();case 9:P.next=25;break;case 11:if(!(b>0)){P.next=25;break}return P.next=14,a.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,a.play().catch(function(){var k=G(V().mark(function R(O){return V().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(O.name==="NotAllowedError"&&d.autoPlayMuted)){m.next=5;break}return m.next=3,a.setMuted(!0);case 3:return m.next=5,a.play().catch(function(v){return console.error("Couldn't play the video from TimingSrcConnector. Error:",v)});case 5:case"end":return m.stop()}},R)}));return function(R){return k.apply(this,arguments)}}());case 18:this.updatePlayer(u,a,d);case 19:return P.next=21,a.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=b,P.t2===P.t3){P.next=25;break}a.setPlaybackRate(b);case 25:case"end":return P.stop()}},o,this)}));function i(o,u,a){return r.apply(this,arguments)}return i}()},{key:"maintainPlaybackPosition",value:function(i,o,u){var a=this,d=u.allowedDrift,s=u.maxAllowedDrift,E=u.minCheckInterval,b=u.maxRateAdjustment,_=u.maxTimeToCatchUp,P=Math.min(_,Math.max(E,s))*1e3,k=function(){var O=G(V().mark(function A(){var m,v,f,p,w;return V().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(g.t0=i.query().velocity===0,g.t0){g.next=6;break}return g.next=4,o.getPaused();case 4:g.t1=g.sent,g.t0=g.t1===!0;case 6:if(!g.t0){g.next=8;break}return g.abrupt("return");case 8:return g.t2=i.query().position,g.next=11,o.getCurrentTime();case 11:if(g.t3=g.sent,m=g.t2-g.t3,v=Math.abs(m),a.log("Drift: ".concat(m)),!(v>s)){g.next=22;break}return g.next=18,a.adjustSpeed(o,0);case 18:o.setCurrentTime(i.query().position),a.log("Resync by currentTime"),g.next=29;break;case 22:if(!(v>d)){g.next=29;break}return f=v/_,p=b,w=f<p?(p-f)/2:p,g.next=28,a.adjustSpeed(o,w*Math.sign(m));case 28:a.log("Resync by playbackRate");case 29:case"end":return g.stop()}},A)}));return function(){return O.apply(this,arguments)}}(),R=setInterval(function(){return k()},P);return{cancel:function(){return clearInterval(R)}}}},{key:"log",value:function(i){var o;(o=this.logger)===null||o===void 0||o.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,o){return new Promise(function(u){var a=function d(){i.readyState===o?u():i.addEventListener("readystatechange",d,{once:!0})};a()})}}]),t}(me(EventTarget)),Y=new WeakMap,ve=new WeakMap,N={},ye=function(){function n(e){var t=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Me(this,n),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!jt(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");
9i&&(e=i)}if(e.nodeName==="IFRAME"&&!U(e.getAttribute("src")||""))throw new Error("The player element passed isnât a Vimeo embed.");if(Y.has(e))return Y.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new q(function(a,d){if(t._onMessage=function(b){if(!(!U(b.origin)||t.element.contentWindow!==b.source)){t.origin==="*"&&(t.origin=b.origin);var _=le(b.data),P=_&&_.event==="error",k=P&&_.data&&_.data.method==="ready";if(k){var R=new Error(_.data.message);R.name=_.data.name,d(R);return}var O=_&&_.event==="ready",A=_&&_.method==="ping";if(O||A){t.element.setAttribute("data-ready","true"),a();return}It(t,_)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var s=Ae(e,r),E=Re(s);Ve(E,s,e).then(function(b){var _=ge(b,e);return t.element=_,t._originalElement=e,Ft(e,_),Y.set(t.element,t),b}).catch(d)}});if(ve.set(this,o),Y.set(this.element,this),this.element.nodeName==="IFRAME"&&Z(this,"ping"),N.isEnabled){var u=function(){return N.exit()};this.fullscreenchangeHandler=function(){N.isFullscreen?te(t,"event:exitFullscreen",u):ce(t,"event:exitFullscreen",u),t.ready().then(function(){Z(t,"fullscreenchange",N.isFullscreen)})},N.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Oe(n,[{key:"callMethod",value:function(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new q(function(o,u){return r.ready().then(function(){te(r,t,{resolve:o,reject:u}),Z(r,t,i)}).catch(u)})}},{key:"get",value:function(t){var r=this;return new q(function(i,o){return t=Te(t,"get"),r.ready().then(function(){te(r,t,{resolve:i,reject:o}),Z(r,t)}).catch(o)})}},{key:"set",value:function(t,r){var i=this;return new q(function(o,u){if(t=Te(t,"set"),r==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){te(i,t,{resolve:o,reject:u}),Z(i,t,r)}).catch(u)})}},{key:"on",value:function(t,r){if(!t)throw new TypeError("You must pass an event name.");if(!r)throw new TypeError("You must pass a callback function.");if(typeof r!="function")throw new TypeError("The callback must be a function.");var i=se(this,"event:".concat(t));i.length===0&&this.callMethod("addEventListener",t).catch(function(){}),te(this,"event:".concat(t),r)}},{key:"off",value:function(t,r){if(!t)throw new TypeError("You must pass an event name.");if(r&&typeof r!="function")throw new TypeError("The callback must be a function.");var i=ce(this,"event:".concat(t),r);i&&this.callMethod("removeEventListener",t).catch(function(o){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=ve.get(this)||new q(function(r,i){i(new Error("Unknown player. Probably unloaded."))});return q.resolve(t)}},{key:"addCuePoint",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:r})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,r){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:r})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return N.isEnabled?N.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return N.isEnabled?N.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return N.isEnabled?q.resolve(N.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new q(function(r){if(ve.delete(t),Y.delete(t.element),t._originalElement&&(Y.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),N.isEnabled&&N.off("fullscreenchange",t.fullscreenchangeHandler),r()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return q.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new q(function(o,u){return u(new TypeError("Argument must be an array."))});var r=new q(function(o){return o(null)}),i=[t[0]?this.set("colorOne",t[0]):r,t[1]?this.set("colorTwo",t[1]):r,t[2]?this.set("colorThree",t[2]):r,t[3]?this.set("colorFour",t[3]):r];return q.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}
9},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:function(){var e=G(V().mark(function r(i,o){var u=this,a;return V().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(i){s.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return s.next=4,this.ready();case 4:return a=new Gt(this,i,o),Z(this,"notifyTimingObjectConnect"),a.addEventListener("disconnect",function(){return Z(u,"notifyTimingObjectDisconnect")}),s.abrupt("return",a);case 8:case"end":return s.stop()}},r,this)}));function t(r,i){return e.apply(this,arguments)}return t}()}]),n}();je||(N=Bt(),qt(),Wt(),Ht(),zt());const Ut=ye,Qt={key:0,class:"absolute bottom-0 z-10 flex h-7 w-full items-center gap-4 bg-black/50 px-4 opacity-0 backdrop-blur transition-opacity duration-500 group-focus-within:opacity-100 group-hover:opacity-100 max-sm:opacity-100 md:bottom-8 md:max-w-[360px] md:rounded-sm"},Yt=["aria-label"],Jt=["aria-label"],Kt={class:"flex h-[9px] flex-1 items-center gap-2"},Xt={class:"font-mono text-xs"},er=$("div",{class:"h-px w-full bg-white/40"},null,-1),tr={class:"font-mono text-xs"},rr=["src","title","width","height"],or=Le({__name:"VideoPlayer",props:Ne({blok:{},showClose:{type:Boolean,default:!1},cover:{type:Boolean,default:!1}},{controls:{default:!0},controlsModifiers:{}}),emits:["update:controls"],setup(n){const e=n,t=Fe(n,"controls"),r=we(()=>{var w,C,g;const f=(g=(C=(w=e.blok)==null?void 0:w.video)==null?void 0:C.vimeo_oembed)==null?void 0:g.response;if(!f)return!1;const p=f.uri.match(/(\d+):?([\w\d]+)?/);return{id:(p==null?void 0:p[1])||!1,hash:(p==null?void 0:p[2])||!1,...f}}),i=B(),o=B(),u=B();let a;const d=B(0),s=B(0),E=we(()=>(s.value/d.value*100).toFixed(2)),b=B(!0),_=B(!0),P=()=>{const{width:f,height:p}=i.value.getBoundingClientRect(),{width:w,height:C}=r.value;u.value=w/C>f/p};e.cover&&Ie(window,"resize",P,300),De(async()=>{e.cover&&P(),a=new Ut(o.value),d.value=await a.getDuration(),a.on("timeupdate",f=>s.value=f.seconds)}),fe(t,f=>{e.showClose&&(_.value=!f)}),fe(b,f=>a==null?void 0:a[f?"play":"pause"]()),fe(_,f=>a==null?void 0:a.setVolume(f?0:1));const k=f=>{const p=f.currentTarget;if(!p&&!a)return;const{left:w,width:C}=p.getBoundingClientRect(),g=(f.clientX-w)/C,x=Math.max(0,Math.min(d.value*g,d.value));s.value=x,a.setCurrentTime(x)},R=f=>{if(!a)return;let p=s.value;f.code==="ArrowLeft"&&(p-=10),f.code==="ArrowRight"&&(p+=10),p=Math.max(0,Math.min(p,d.value)),s.value=p,a.setCurrentTime(p)},O=()=>{a.requestFullscreen()},A=()=>{_.value=!0,t.value=!1},m=()=>{a.setCurrentTime(0)},v=f=>{const p=Math.floor(f/3600),w=Math.floor(f%3600/60),C=Math.floor(f%60);return`${p?`${p}:`:""}${w<10?"0"+w:w}:${C<10?"0"+C:C}`};return qe(()=>a==null?void 0:a.destroy()),(f,p)=>{const w=Ue,C=et,g=at,x=dt,L=yt,X=Et,l=We;return j(r)?(D(),W("div",{key:0,ref_key:"wrapper",ref:i,class:pe(["group flex items-center justify-center overflow-hidden",f.cover?"absolute inset-0 h-full w-full":"relative aspect-[--aspect-ratio] w-full"]),style:ke({"--aspect-ratio":`${j(r).width} / ${j(r).height}`})},[t.value?(D(),W("div",Qt,[$("button",{class:"transition hover:text-pink focus-visible:text-pink","aria-label":j(b)?"Pause video":"Play video",onClick:p[
90]||(p[0]=c=>b.value=!j(b))},[j(b)?(D(),ie(w,{key:0,class:"h-[13px] w-auto"})):(D(),ie(C,{key:1,class:"h-[13px] w-auto"}))],8,Yt),$("button",{class:"transition hover:text-pink focus-visible:text-pink","aria-label":j(_)?"Unmute video":"Mute video",onClick:p[1]||(p[1]=c=>_.value=!j(_))},[j(_)?(D(),ie(g,{key:0,class:"h-[13px] w-auto"})):(D(),ie(x,{key:1,class:"h-[13px] w-auto"}))],8,Jt),$("div",Kt,[$("span",Xt,be(v(j(s))),1),$("button",{class:"relative flex h-1 flex-1 items-center",onClick:k,onKeydown:R},[$("div",{class:"vimeo-progress absolute left-0 h-1 w-full bg-pink",style:ke({width:`${j(E)}%`})},null,4),er],32),$("span",tr,be(v(j(d))),1)]),$("button",{class:"transition hover:text-pink focus-visible:text-pink","aria-label":"Restart video",onClick:m},[de(L,{class:"h-[13px] w-auto"})]),$("button",{class:"transition hover:text-pink focus-visible:text-pink","aria-label":"Enter Fullscreen",onClick:O},[de(X,{class:"h-[13px] w-auto"})]),f.showClose?(D(),W("button",{key:0,class:"transition hover:text-pink focus-visible:text-pink","aria-label":"Hide controls",onClick:A},[de(l,{class:"h-[13px] w-auto"})])):he("",!0)])):he("",!0),$("div",{class:pe(["vimeo-player pointer-events-none relative aspect-[--aspect-ratio]",j(u)?"h-full":"w-full"])},[$("iframe",{ref_key:"iframe",ref:o,class:pe(["absolute -left-[1px] -top-[1px] h-[calc(100%+2px)] w-[calc(100%+2px)] transition-opacity duration-500",!t.value&&"opacity-60"]),src:`https://player.vimeo.com/video/${j(r).id}?h=${j(r).hash}&dnt=1&background=1`,title:j(r).title,width:j(r).width,height:j(r).height,allow:"autoplay;fullscreen",scrolling:"no",loading:"lazy"},null,10,rr)],2)],6)):he("",!0)}}});export{or as _,et as a};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.