1var Z=Object.defineProperty;var K=(i,e,n)=>e in i?Z(i,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[e]=n;var q=(i,e,n)=>(K(i,typeof e!="symbol"?e+"":e,n),n);import{t as ee,r as te,i as ne,l as re}from"../index.a621a35b.js";/*! @vimeo/player v2.30.4 | (c) 2026 Vimeo | MIT License | https://github.com/vimeo/player.js */const ie=typeof global<"u"&&{}.toString.call(global)==="[object global]",oe=typeof Bun<"u",se=typeof Deno<"u",ae=typeof WebSocketPair=="function"&&typeof(caches==null?void 0:caches.default)<"u",B=ie||oe||se||ae;function z(i,e){return i.indexOf(e.toLowerCase())===0?i:`${e.toLowerCase()}${i.substr(0,1).toUpperCase()}${i.substr(1)}`}function ue(i){return Boolean(i&&i.nodeType===1&&"nodeName"in i&&i.ownerDocument&&i.ownerDocument.defaultView)}function le(i){return!isNaN(parseFloat(i))&&isFinite(i)&&Math.floor(i)==i}function k(i){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(i)}function H(i){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(i)}function ce(i){const e=(i||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(e&&e[1]||"").replace("player.",""),t=[".videoji.hk",".vimeo.work",".videoji.cn"];for(const r of t)if(n.endsWith(r))return n;return"vimeo.com"}function Q(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=i.id,n=i.url,t=e||n;if(!t)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(le(t))return`https://vimeo.com/${t}`;if(k(t))return t.replace("http:","https:");throw e?new TypeError(`\u201C${e}\u201D is not a valid video id.`):new TypeError(`\u201C${t}\u201D is not a vimeo.com url.`)}const U=function(i,e,n){let t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener";const o=typeof e=="string"?[e]:e;return o.forEach(s=>{i[t](s,n)}),{cancel:()=>o.forEach(s=>i[r](s,n))}};function j(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;if(!i||!e||typeof e.querySelectorAll!="function")return null;const n=e.querySelectorAll("iframe");for(let t=0;t<n.length;t++)if(n[t]&&n[t].contentWindow===i)return n[t];return null}const de=typeof Array.prototype.indexOf<"u",fe=typeof window<"u"&&typeof window.postMessage<"u";if(!B&&(!de||!fe))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var R=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function he(i,e){return e={exports:{}},i(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(i){if(i.WeakMap)return;var e=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}}(),t=function(o,s,l){n?Object.defineProperty(o,s,{configurable:!0,writable:!0,value:l}):o[s]=l};i.WeakMap=function(){function o(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(t(this,"_id",l("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}t(o.prototype,"delete",function(f){if(s(this,"delete"),!r(f))return!1;var g=f[this._id];return g&&g[0]===f?(delete f[this._id],!0):!1}),t(o.prototype,"get",function(f){if(s(this,"get"),!!r(f)){var g=f[this._id];if(g&&g[0]===f)return g[1]}}),t(o.prototype,"has",function(f){if(s(this,"has"),!r(f))return!1;var g=f[this._id];return!!(g&&g[0]===f)}),t(o.prototype,"set",function(f,g){if(s(this,"set"),!r(f))throw new TypeError("Invalid value used as weak map key");var E=f[this._id];return E&&E[0]===f?(E[1]=g,this):(t(f,this._id,[f,g]),this)});function s(f,g){if(!r(f)||!e.call(f,"_id"))throw new TypeError(g+" method called on incompatible receiver "+typeof f)}function l(f){return f+"_"+m()+"."+m()}function m(){return Math.random().toString().substring(2)}return t(o,"_polyfill",!0),o}();function r(o){return Object(o)===o}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:R);var b=he(function(i){/*! Native Promise Only 7 v0.8.1 (c) Kyle Simpson 8 MIT License: http://getify.mit-license.org 9*/(function(n,t,r){t[n]=t[n]||r(),i.exports&&(i.exports=t[n])})("Promise",R,function(){var n,t,r,o=Object.prototype.toString,s=typeof setImmediate<"u"?function(a){return setImmediate(a)}:setTimeout;try{Object.defineProperty({},"x",{}),n=function(a,u,d,h){return Object.defineProperty(a,u,{value:d,writable:!0,configurable:h!==!1})}}catch{n=function(u,d,h){return u[d]=h,u}}r=function(){var a,u,d;function h(p,w){this.fn=p,this.self=w,this.next=void 0}return{add:function(w,T){d=new h(w,T),u?u.next=d:a=d,u=d,d=void 0},drain:function(){var w=a;for(a=u=t=void 0;w;)w.fn.call(w.self),w=w.next}}}();function l(c,a){r.add(c,a),t||(t=s(r.drain))}function m(c){var a,u=typeof c;return c!=null&&(u=="object"||u=="function")&&(a=c.then),typeof a=="function"?a:!1}function f(){for(var c=0;c<this.chain.length;c++)g(this,this.state===1?this.chain[c].success:this.chain[c].failure,this.chain[c]);this.chain.length=0}function g(c,a,u){var d,h;try{a===!1?u.reject(c.msg):(a===!0?d=c.msg:d=a.call(void 0,c.msg),d===u.promise?u.reject(TypeError("Promise-chain cycle")):(h=m(d))?h.call(
9d,u.resolve,u.reject):u.resolve(d))}catch(p){u.reject(p)}}function E(c){var a,u=this;if(!u.triggered){u.triggered=!0,u.def&&(u=u.def);try{(a=m(c))?l(function(){var d=new x(u);try{a.call(c,function(){E.apply(d,arguments)},function(){P.apply(d,arguments)})}catch(h){P.call(d,h)}}):(u.msg=c,u.state=1,u.chain.length>0&&l(f,u))}catch(d){P.call(new x(u),d)}}}function P(c){var a=this;a.triggered||(a.triggered=!0,a.def&&(a=a.def),a.msg=c,a.state=2,a.chain.length>0&&l(f,a))}function A(c,a,u,d){for(var h=0;h<a.length;h++)(function(w){c.resolve(a[w]).then(function(_){u(w,_)},d)})(h)}function x(c){this.def=c,this.triggered=!1}function N(c){this.promise=c,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function v(c){if(typeof c!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var a=new N(this);this.then=function(d,h){var p={success:typeof d=="function"?d:!0,failure:typeof h=="function"?h:!1};return p.promise=new this.constructor(function(T,_){if(typeof T!="function"||typeof _!="function")throw TypeError("Not a function");p.resolve=T,p.reject=_}),a.chain.push(p),a.state!==0&&l(f,a),p.promise},this.catch=function(d){return this.then(void 0,d)};try{c.call(void 0,function(d){E.call(a,d)},function(d){P.call(a,d)})}catch(u){P.call(a,u)}}var $=n({},"constructor",v,!1);return v.prototype=$,n($,"__NPO__",0,!1),n(v,"resolve",function(a){var u=this;return a&&typeof a=="object"&&a.__NPO__===1?a:new u(function(h,p){if(typeof h!="function"||typeof p!="function")throw TypeError("Not a function");h(a)})}),n(v,"reject",function(a){return new this(function(d,h){if(typeof d!="function"||typeof h!="function")throw TypeError("Not a function");h(a)})}),n(v,"all",function(a){var u=this;return o.call(a)!="[object Array]"?u.reject(TypeError("Not an array")):a.length===0?u.resolve([]):new u(function(h,p){if(typeof h!="function"||typeof p!="function")throw TypeError("Not a function");var w=a.length,T=Array(w),_=0;A(u,a,function(X,G){T[X]=G,++_===w&&h(T)},p)})}),n(v,"race",function(a){var u=this;return o.call(a)!="[object Array]"?u.reject(TypeError("Not an array")):new u(function(h,p){if(typeof h!="function"||typeof p!="function")throw TypeError("Not a function");A(u,a,function(T,_){h(_)},p)})}),v})});const M=new WeakMap;function S(i,e,n){const t=M.get(i.element)||{};e in t||(t[e]=[]),t[e].push(n),M.set(i.element,t)}function D(i,e){return(M.get(i.element)||{})[e]||[]}function V(i,e,n){const t=M.get(i.element)||{};if(!t[e])return!0;if(!n)return t[e]=[],M.set(i.element,t),!0;const r=t[e].indexOf(n);return r!==-1&&t[e].splice(r,1),M.set(i.element,t),t[e]&&t[e].length===0}function me(i,e){const n=D(i,e);if(n.length<1)return!1;const t=n.shift();return V(i,e,t),t}function ge(i,e){const n=M.get(i);M.set(e,n),M.delete(i)}function I(i){if(typeof i=="string")try{i=JSON.parse(i)}catch(e){return console.warn(e),{}}return i}function C(i,e,n){if(!i.element.contentWindow||!i.element.contentWindow.postMessage)return;let t={method:e};n!==void 0&&(t.value=n);const r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(t=JSON.stringify(t)),i.element.contentWindow.postMessage(t,i.origin)}function pe(i,e){e=I(e);let n=[],t;if(e.event)e.event==="error"&&D(i,e.data.method).forEach(o=>{const s=new Error(e.data.message);s.name=e.data.name,o.reject(s),V(i,e.data.method,o)}),n=D(i,`event:${e.event}`),t=e.data;else if(e.method){const r=me(i,e.method);r&&(n.push(r),t=e.value)}n.forEach(r=>{try{if(typeof r=="function"){r.call(i,t);return}r.resolve(t)}catch{}})}const we=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","disable_context_menu","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Y(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return we.reduce((n,t)=>{const r=i.getAttribute(`data-vimeo-${t}`);return(r||r==="")&&(n[t]=r===""?1:r),n},e)}function L(i,e){let{html:n}=i;if(!e)throw new TypeError("An element must be provided");
9if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");const t=document.createElement("div");return t.innerHTML=n,e.appendChild(t.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function J(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((t,r)=>{if(!k(i))throw new TypeError(`\u201C${i}\u201D is not a vimeo.com url.`);let s=`https://${ce(i)}/api/oembed.json?url=${encodeURIComponent(i)}`;for(const m in e)e.hasOwnProperty(m)&&(s+=`&${m}=${encodeURIComponent(e[m])}`);const l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",s,!0),l.onload=function(){if(l.status===404){r(new Error(`\u201C${i}\u201D was not found.`));return}if(l.status===403){r(new Error(`\u201C${i}\u201D is not embeddable.`));return}try{const m=JSON.parse(l.responseText);if(m.domain_status_code===403){L(m,n),r(new Error(`\u201C${i}\u201D is not embeddable.`));return}t(m)}catch(m){r(m)}},l.onerror=function(){const m=l.status?` (${l.status})`:"";r(new Error(`There was an error fetching the embed code from Vimeo${m}.`))},l.send()})}function ye(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;const e=[].slice.call(i.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=t=>{"console"in window&&console.error&&console.error(`There was an error creating an embed: ${t}`)};e.forEach(t=>{try{if(t.getAttribute("data-vimeo-defer")!==null)return;const r=Y(t),o=Q(r);J(o,r,t).then(s=>L(s,t)).catch(n)}catch(r){n(r)}})}function be(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(window.VimeoPlayerResizeEmbeds_)return;window.VimeoPlayerResizeEmbeds_=!0;const e=n=>{if(!k(n.origin)||!n.data||n.data.event!=="spacechange")return;const t=n.source?j(n.source,i):null;if(t){const r=t.parentElement;r.style.paddingBottom=`${n.data.data[0].bottom}px`}};window.addEventListener("message",e)}function ve(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(window.VimeoSeoMetadataAppended)return;window.VimeoSeoMetadataAppended=!0;const e=n=>{if(!k(n.origin))return;const t=I(n.data);if(!t||t.event!=="ready")return;const r=n.source?j(n.source,i):null;r&&H(r.src)&&new W(r).callMethod("appendVideoMetadata",window.location.href)};window.addEventListener("message",e)}function Ee(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(window.VimeoCheckedUrlTimeParam)return;
9window.VimeoCheckedUrlTimeParam=!0;const e=t=>{"console"in window&&console.error&&console.error(`There was an error getting video Id: ${t}`)},n=t=>{if(!k(t.origin))return;const r=I(t.data);if(!r||r.event!=="ready")return;const o=t.source?j(t.source,i):null;if(o&&H(o.src)){const s=new W(o);s.getVideoId().then(l=>{const m=new RegExp(`[?&]vimeo_t_${l}=([^&#]*)`).exec(window.location.href);if(m&&m[1]){const f=decodeURI(m[1]);s.setCurrentTime(f)}}).catch(e)}};window.addEventListener("message",n)}function Pe(){if(window.VimeoDRMEmbedsUpdated)return;window.VimeoDRMEmbedsUpdated=!0;const i=e=>{if(!k(e.origin))return;const n=I(e.data);if(!n||n.event!=="drminitfailed")return;const t=e.source?j(e.source):null;if(!t)return;const r=t.getAttribute("allow")||"";if(!r.includes("encrypted-media")){t.setAttribute("allow",`${r}; encrypted-media`);const s=new URL(t.getAttribute("src"));s.searchParams.set("forcereload","drm"),t.setAttribute("src",s.toString());return}};window.addEventListener("message",i)}function Te(){const i=function(){let t;const r=[["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"]];let o=0;const s=r.length,l={};for(;o<s;o++)if(t=r[o],t&&t[1]in document){for(o=0;o<t.length;o++)l[r[0][o]]=t[o];return l}return!1}(),e={fullscreenchange:i.fullscreenchange,fullscreenerror:i.fullscreenerror},n={request(t){return new Promise((r,o)=>{const s=function(){n.off("fullscreenchange",s),r()};n.on("fullscreenchange",s),t=t||document.documentElement;const l=t[i.requestFullscreen]();l instanceof Promise&&l.then(s).catch(o)})},exit(){return new Promise((t,r)=>{if(!n.isFullscreen){t();return}const o=function(){n.off("fullscreenchange",o),t()};n.on("fullscreenchange",o);const s=document[i.exitFullscreen]();s instanceof Promise&&s.then(o).catch(r)})},on(t,r){const o=e[t];o&&document.addEventListener(o,r)},off(t,r){const o=e[t];o&&document.removeEventListener(o,r)}};return Object.defineProperties(n,{isFullscreen:{get(){return Boolean(document[i.fullscreenElement])}},element:{enumerable:!0,get(){return document[i.fullscreenElement]}},isEnabled:{enumerable:!0,get(){return Boolean(document[i.fullscreenEnabled])}}}),n}const ke={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1};class Me extends EventTarget{constructor(n,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;super();q(this,"logger");q(this,"speedAdjustment",0);q(this,"adjustSpeed",async(n,t)=>{if(this.speedAdjustment===t)return;const r=await n.getPlaybackRate()-this.speedAdjustment+t;this.log(`New playbackRate: ${r}`),await n.setPlaybackRate(r),this.speedAdjustment=t});this.logger=o,this.init(t,n,{...ke,...r})}disconnect(){this.dispatchEvent(new Event("disconnect"))}async init(n,t,r){if(await this.waitForTOReadyState(n,"open"),r.role==="viewer"){await this.updatePlayer(n,t,r);const o=U(n,"change",()=>this.updatePlayer(n,t,r)),s=this.maintainPlaybackPosition(n,t,r);this.addEventListener("disconnect",()=>{s.cancel(),o.cancel()})}else{await this.updateTimingObject(n,t);const o=U(t,["seeked","play","pause","ratechange"],()=>this.updateTimingObject(n,t),"on","off");this.addEventListener("disconnect",()=>o.cancel())}}async updateTimingObject(n,t){const[r,o,s]=await Promise.all([t.getCurrentTime(),t.getPaused(),t.getPlaybackRate()]);n.update({position:r,velocity:o?0:s})}async updatePlayer(n,t,r){const{position:o,velocity:s}=n.query();typeof o=="number"&&t.setCurrentTime(o),typeof s=="number"&&(s===0?await t.getPaused()===!1&&t.pause():s>0&&(await t.getPaused()===!0&&(await t.play().catch(async l=>{l.name==="NotAllowedError"&&r.autoPlayMuted&&(await t.setMuted(!0),await t.play().catch(m=>console.error("Couldn't play the video from TimingSrcConnector. Error:",m)))}),this.updatePlayer(n,t,r)),await t.getPlaybackRate()!==s&&t.setPlaybackRate(s)))}maintainPlaybackPosition(n,t,r){const{allowedDrift:o,maxAllowedDrift:s,minCheckInterval:l,maxRateAdjustment:m,maxTimeToCatchUp:f}=r,g=Math.min(f,Math.max(l,s))*1e3,E=async()=>
9{if(n.query().velocity===0||await t.getPaused()===!0)return;const A=n.query().position-await t.getCurrentTime(),x=Math.abs(A);if(this.log(`Drift: ${A}`),x>s)await this.adjustSpeed(t,0),t.setCurrentTime(n.query().position),this.log("Resync by currentTime");else if(x>o){const N=x/f,v=m,$=N<v?(v-N)/2:v;await this.adjustSpeed(t,$*Math.sign(A)),this.log("Resync by playbackRate")}},P=setInterval(()=>E(),g);return{cancel:()=>clearInterval(P)}}log(n){var t;(t=this.logger)==null||t.call(this,`TimingSrcConnector: ${n}`)}waitForTOReadyState(n,t){return new Promise(r=>{const o=()=>{n.readyState===t?r():n.addEventListener("readystatechange",o,{once:!0})};o()})}}const F=new WeakMap,O=new WeakMap;let y={};class W{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(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)),!ue(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){const r=e.querySelector("iframe");r&&(e=r)}if(e.nodeName==="IFRAME"&&!k(e.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if(F.has(e))return F.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";const t=new b((r,o)=>{if(this._onMessage=s=>{if(!k(s.origin)||this.element.contentWindow!==s.source)return;this.origin==="*"&&(this.origin=s.origin);const l=I(s.data);if(l&&l.event==="error"&&l.data&&l.data.method==="ready"){const P=new Error(l.data.message);P.name=l.data.name,o(P);return}const g=l&&l.event==="ready",E=l&&l.method==="ping";if(g||E){this.element.setAttribute("data-ready","true"),r();return}pe(this,l)},this._window.addEventListener("message",this._onMessage),this.element.nodeName!=="IFRAME"){const s=Y(e,n),l=Q(s);J(l,s,e).then(m=>{const f=L(m,e);return this.element=f,this._originalElement=e,ge(e,f),F.set(this.element,this),m}).catch(o)}});if(O.set(this,t),F.set(this.element,this),this.element.nodeName==="IFRAME"&&C(this,"ping"),y.isEnabled){const r=()=>y.exit();this.fullscreenchangeHandler=()=>{y.isFullscreen?S(this,"event:exitFullscreen",r):V(this,"event:exitFullscreen",r),this.ready().then(()=>{C(this,"fullscreenchange",y.isFullscreen)})},y.on("fullscreenchange",this.fullscreenchangeHandler)}return this}static isVimeoUrl(e){return k(e)}callMethod(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if(e==null)throw new TypeError("You must pass a method name.");return new b((o,s)=>this.ready().then(()=>{S(this,e,{resolve:o,reject:s}),t.length===0?t={}:t.length===1&&(t=t[0]),C(this,e,t)}).catch(s))}get(e){return new b((n,t)=>(e=z(e,"get"),this.ready().then(()=>{S(this,e,{resolve:n,reject:t}),C(this,e)}).catch(t)))}set(e,n){return new b((t,r)=>{if(e=z(e,"set"),n==null)throw new TypeError("There must be a value to set.");return this.ready().then(()=>{S(this,e,{resolve:t,reject:r}),C(this,e,n)}).catch(r)})}on(e,n){if(!e)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");D(this,`event:${e}`).length===0&&this.callMethod("addEventListener",e).catch(()=>{}),S(this,`event:${e}`,n)}off(e,n){if(!e)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");V(this,`event:${e}`,n)&&this.callMethod("removeEventListener",e).catch(r=>{})}loadVideo(e){return this.callMethod("loadVideo",e)}ready(){const e=O.get(this)||new b((n,t)=>{t(new Error("Unknown player. Probably unloaded."))});return b.resolve(e)}addCuePoint(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:n})}removeCuePoint(e){return this.callMethod("removeCuePoint",e)}enableTextTrack(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:n,showing:t})}disableTextTrack(){return this.callMethod("disableTextTrack")}selectAudioTrack(e,n){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:n})}selectDefaultAudioTrack(){return this.callMethod("selectDefaultAudioTrack")}pause(){return this.callMethod("pause")}play(){return this.callMethod("play")}requestFullscreen(){return y.isEnabled?y.request(this.element):this.callMethod("requestFullscreen")}
9exitFullscreen(){return y.isEnabled?y.exit():this.callMethod("exitFullscreen")}getFullscreen(){return y.isEnabled?b.resolve(y.isFullscreen):this.get("fullscreen")}requestPictureInPicture(){return this.callMethod("requestPictureInPicture")}exitPictureInPicture(){return this.callMethod("exitPictureInPicture")}getPictureInPicture(){return this.get("pictureInPicture")}remotePlaybackPrompt(){return this.callMethod("remotePlaybackPrompt")}unload(){return this.callMethod("unload")}destroy(){return new b(e=>{if(O.delete(this),F.delete(this.element),this._originalElement&&(F.delete(this._originalElement),this._originalElement.removeAttribute("data-vimeo-initialized")),this.element&&this.element.nodeName==="IFRAME"&&this.element.parentNode&&(this.element.parentNode.parentNode&&this._originalElement&&this._originalElement!==this.element.parentNode?this.element.parentNode.parentNode.removeChild(this.element.parentNode):this.element.parentNode.removeChild(this.element)),this.element&&this.element.nodeName==="DIV"&&this.element.parentNode){this.element.removeAttribute("data-vimeo-initialized");const n=this.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&this._originalElement&&this._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}this._window.removeEventListener("message",this._onMessage),y.isEnabled&&y.off("fullscreenchange",this.fullscreenchangeHandler),e()})}getAutopause(){return this.get("autopause")}setAutopause(e){return this.set("autopause",e)}getBuffered(){return this.get("buffered")}getCameraProps(){return this.get("cameraProps")}setCameraProps(e){return this.set("cameraProps",e)}getChapters(){return this.get("chapters")}getCurrentChapter(){return this.get("currentChapter")}getColor(){return this.get("color")}getColors(){return b.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}setColor(e){return this.set("color",e)}setColors(e){if(!Array.isArray(e))return new b((r,o)=>o(new TypeError("Argument must be an array.")));const n=new b(r=>r(null)),t=[e[0]?this.set("colorOne",e[0]):n,e[1]?this.set("colorTwo",e[1]):n,e[2]?this.set("colorThree",e[2]):n,e[3]?this.set("colorFour",e[3]):n];return b.all(t)}getCuePoints(){return this.get("cuePoints")}getCurrentTime(){return this.get("currentTime")}setCurrentTime(e){return this.set("currentTime",e)}getDuration(){return this.get("duration")}getEnded(){return this.get("ended")}getLoop(){return this.get("loop")}setLoop(e){return this.set("loop",e)}setMuted(e){return this.set("muted",e)}getMuted(){return this.get("muted")}getPaused(){return this.get("paused")}getPlaybackRate(){return this.get("playbackRate")}setPlaybackRate(e){return this.set("playbackRate",e)}getPlayed(){return this.get("played")}getQualities(){return this.get("qualities")}getQuality(){return this.get("quality")}setQuality(e){return this.set("quality",e)}getRemotePlaybackAvailability(){return this.get("remotePlaybackAvailability")}getRemotePlaybackState(){return this.get("remotePlaybackState")}getSeekable(){return this.get("seekable")}getSeeking(){return this.get("seeking")}getTextTracks(){return this.get("textTracks")}getAudioTracks(){return this.get("audioTracks")}getEnabledAudioTrack(){return this.get("enabledAudioTrack")}getDefaultAudioTrack(){return this.get("defaultAudioTrack")}getVideoEmbedCode(){return this.get("videoEmbedCode")}getVideoId(){return this.get("videoId")}getVideoTitle(){return this.get("videoTitle")}getVideoWidth(){return this.get("videoWidth")}getVideoHeight(){return this.get("videoHeight")}getVideoUrl(){return this.get("videoUrl")}getVolume(){return this.get("volume")}setVolume(e){return this.set("volume",e)}async setTimingSrc(e,n){if(!e)throw new TypeError("A Timing Object must be provided.");await this.ready();const t=new Me(this,e,n);return C(this,"notifyTimingObjectConnect"),t.addEventListener("disconnect",()=>C(this,"notifyTimingObjectDisconnect")),t}}B||(y=Te(),ye(),be(),ve(),Ee(),Pe());const xe={__name:"VideoBlockVimeo",props:{videoId:String},emits:["on-player-loaded"],setup(i,{emit:e}){const n=i,t=e,r=ee(null);let o=null;return te(()=>{o=new W(r.value,{id:n.videoId,dnt:!0}),o.ready().then(()=>{t("on-player-loaded",o)}),o.on("playing",function(){t("on-play")})}),(s,l)=>(ne(),re("div",{ref_key:"playerRef",ref:r},null,512))}};export{xe as default}; 10//# sourceMappingURL=VideoBlockVimeo.1a85dba1.js.map
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.