/*! FAKTOR VIER Video Controller v0.1.4 | (c) 2023 FAKTOR VIER GmbH | http://faktorvier.ch */ function onYouTubeIframeAPIReady(){if("undefined"!=typeof $.video)for(callback_index in $.video.global.youtube_api_ready_callbacks)$.video.global.youtube_api_ready_callbacks[callback_index]()}var video_postmessage_event_func="attachEvent",video_postmessage_event="onmessage";window.addEventListener&&(video_postmessage_event_func="addEventListener",video_postmessage_event="message"); window[video_postmessage_event_func](video_postmessage_event,function(c){if(!/^https?:\/\/player.vimeo.com/.test(c.origin))return!1;var f=JSON.parse(c.data);c="undefined"==typeof f.event?null:f.event;f=$("#"+f.player_id);var h=f.getVideoConfig();null==h&&(f.initVideo(),h=f.getVideoConfig());if(null!=h)switch(c){case "ready":$.video.vimeo_postmessage(f,"addEventListener","play");$.video.vimeo_postmessage(f,"addEventListener","pause");$.video.vimeo_postmessage(f,"addEventListener","finish");f.data("video-player", f);f.attr(h.attr_ready,"");f.trigger("ready"+$.video.global.event_suffix);break;case "play":f.removeAttr(h.attr_paused);f.attr(h.attr_playing,"");f.trigger("play"+$.video.global.event_suffix);break;case "pause":f.removeAttr(h.attr_playing);f.attr(h.attr_paused,"");f.trigger("pause"+$.video.global.event_suffix);break;case "finish":f.removeAttr(h.attr_playing),f.removeAttr(h.attr_paused),f.trigger("finish"+$.video.global.event_suffix)}},!1); (function(c){c.video={global:{event_suffix:"_video",youtube_api_ready_callbacks:[],youtube_iframe_api:"https://www.youtube.com/iframe_api"},config:{attr_ready:"data-video-ready",attr_playing:"data-video-playing",attr_paused:"data-video-paused"}};var f=function(b,a){var e=b.data("video").config;if("undefined"==typeof b.data("video-player")){var d=function(){var g=new YT.Player(b[0],{events:{onReady:function(k){b.attr(e.attr_ready,"");a(k.target)},onStateChange:function(k){switch(k.data){case 0:b.removeAttr(e.attr_paused); b.removeAttr(e.attr_playing);b.trigger("finish"+c.video.global.event_suffix);break;case 1:b.removeAttr(e.attr_paused);b.attr(e.attr_playing,"");b.trigger("play"+c.video.global.event_suffix);break;case 2:b.removeAttr(e.attr_playing),b.attr(e.attr_paused,""),b.trigger("pause"+c.video.global.event_suffix)}}}});b.data("video-player",g)};"undefined"==typeof YT||"undefined"==typeof YT.Player?(c.video.global.youtube_api_ready_callbacks.push(function(){d()}),0==c('script[src="https://www.youtube.com/iframe_api"]').length&& 0==c('script[src="http://www.youtube.com/iframe_api"]').length&&c("