function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if("undefined"!=typeof fv_flowplayer_conf){var FVAbrController,parseIOSVersion=function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1'+fv_flowplayer_translations.mobile_browser_detected_1+' '+fv_flowplayer_translations.mobile_browser_detected_2+" .
")})),o.trigger("fv_player_videos_parse",a),a}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return!0}}function fv_escape_attr(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function fv_player_preload(){function e(){jQuery(".flowplayer.fp-is-embed").each(function(){var e=jQuery(this);e.hasClass("has-chapters")||e.hasClass("has-transcript")||0!=jQuery(".fp-playlist-external[rel="+e.attr("id")+"]").length||e.height(jQuery(window).height())})}if(flowplayer.support.touch&&jQuery(".fp-playlist-external.fv-playlist-design-2017").addClass("visible-captions"),flowplayer(function(n,r){localStorage.flowplayerTestStorage&&delete localStorage.flowplayerTestStorage;var e,t,o,i=(r=jQuery(r)).find(".fp-player"),l=!1,a=(r.hasClass("fixed-controls")&&r.find(".fp-controls").on("click",function(e){n.loading||n.ready||(e.preventDefault(),e.stopPropagation(),n.load())}),0==r.data("volume")&&r.hasClass("no-controlbar")&&r.find(".fp-volume").remove(),jQuery(".fp-playlist-external[rel="+r.attr("id")+"]")),s=((!n.conf.playlist||0==n.conf.playlist.length)&&a.length&&0 '),t.prepend(e)),e.attr("alt",o.fv_title?fv_escape_attr(o.fv_title):"video"),e.attr("src",a)):e.length&&e.remove()}n.bind("load",function(e,t,o){var a;t.conf.playlist.length&&(o.type.match(/^audio/)&&!l&&(a=(a=(o=(t=s.find("a").eq(o.index)).data("item")).splash)||t.find("img").attr("src"),d(r,i,o,a)),l=!1)}),n.bind("ready",function(e,t,o){setTimeout(function(){var e;-1'+fv_flowplayer_translations.playlist_current+" "),e.parent().find(".flowplayer").length||(a=!0),(e.hasClass("fp-playlist-vertical")||e.hasClass("fp-playlist-horizontal")&&e.hasClass("is-audio"))&&!function(e){var t=e.getBoundingClientRect(),o=t.top,a=t.height,n=o+a,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.bottom==!1)return;if(o<=t.top)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientHeight}(t.get(0))?(o=a?e.parent():e).animate({scrollTop:o.scrollTop()+(t.position().top-o.position().top)},750):e.hasClass("fp-playlist-horizontal")&&!function(e){var t=e.getBoundingClientRect(),o=t.left,a=t.width,n=o+a,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.right==!1)return;if(o<=t.left)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientWidth}(t.get(0))&&(o=a?e.parent():e).animate({scrollLeft:o.scrollLeft()+(t.position().left-o.position().left)},750)}function fv_parse_sharelink(e){var t,o="fvp_";return(e=e.replace("https?://[^./].","")).match(/(youtube.com)/)?o+e.match(/(?:v=)([A-Za-z0-9_-]*)/)[1]:e.match(/(vimeo.com)|(youtu.be)/)?o+e.match(/(?:\/)([^/]*$)/)[1]:(t=e.match(/(?:\/)([^/]*$)/))?o+t[1].match(/^[^.]*/)[0]:o+e}function fv_player_get_video_link_hash(e){var t=fv_parse_sharelink((void 0!==e.video.sources_original&&void 0!==e.video.sources_original[0]?e.video.sources_original:e.video.sources)[0].src);return t=void 0!==e.video.id?fv_parse_sharelink(e.video.id.toString()):t}function fv_player_time_hms(e){var t,o,a;return isNaN(e)?NaN:(t=parseInt(e,10),o=Math.floor(t/3600),a=Math.floor(t/60)%60,e=t%60,o?o+="h":o="",o&&a<10?a="0"+a+"m":a?a+="m":a="",(o||a)&&e<10&&(e="0"+e),o+a+(e+="s"))}function fv_player_time_hms_ms(e){var t;return isNaN(e)?NaN:(t=void 0!==(t=((e=parseFloat(e).toFixed(3))+"").split("."))[1]&&0'),jQuery(".fp-player",e).append(a)),jQuery(''+t+"
"));return a.append(n),"string"==typeof o&&jQuery(e).data("flowplayer").on(o,function(){n.fadeOut(100,function(){jQuery(this).remove()})}),0 ")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function is_ga_4(e){return!(void 0===e.conf.fvanalytics||!e.conf.fvanalytics||!e.conf.fvanalytics.startsWith("G-"))}function fv_player_track(e,t,o,a,n,r){if("object"!=_typeof(e)&&(r=n,n=a,a=o,o=t,t=e,e=!1),t=t||flowplayer.conf.fvanalytics,void 0===a&&(a="Unknown engine"),/fv_player_track_debug/.test(window.location.href)&&console.log("FV Player Track: "+o+" - "+a+" '"+n+"'",r),"undefined"!=typeof gtag)is_ga_4(e)?gtag("event",o,{video_title:n,video_current_time:e.video.time,video_provider:a,video_duration:e.video.duration,value:r||1}):gtag("event",o,{event_category:a,event_label:n,value:r||1});else if(t&&"undefined"!=typeof ga)ga("create",t,"auto",n,{allowLinker:!0}),ga("require","linker"),r?ga("send","event",o,a,n,r):ga("send","event",o,a,n);else if(t&&"undefined"!=typeof _gat){e=_gat._getTracker(t);if(void 0===e._setAllowLinker)return;e._setAllowLinker(!0),r?e._trackEvent(o,a,n,r):e._trackEvent(o,a,n)}flowplayer.conf.matomo_domain&&flowplayer.conf.matomo_site_id&&"undefined"!=typeof _paq&&(r?_paq.push(["trackEvent",o,a,n,r]):_paq.push(["trackEvent",o,a,n]))}function fv_player_track_name(e,t){e=e.attr("title");return(e=(e=e||void 0===t.fv_title?e:t.fv_title)||void 0===t.title?e:t.title)||void 0===t.src||(e=t.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,""),t.type.match(/mpegurl/)&&(e=t.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+e)),e}flowplayer(function(o,r){var n,t,i,a,l;function e(){var e;"dash"==o.engine.engineName?((e=i[o.engine.dash.getQualityFor("video")]).qualityIndex!=a&&(a=e.qualityIndex,s(e.qualityIndex,i)),t.match(/dash_debug/)&&f(e.width,e.height,e.bitrate)):"hlsjs-lite"==o.engine.engineName&&(n.currentLevel!=a&&(a=n.currentLevel,s(n.currentLevel,n.levels)),t.match(/hls_debug/))&&(e=n.levels[n.currentLevel])&&f(e.width,e.height,e.bitrate)}function s(e,t){var o,a,n;t[e]&&(o=t[e].height,a=541,n=1e5,jQuery(t).each(function(e,t){720<=t.height&&t.height<1400&&(a=720),t.heighto&&(o=e)}),o&&(console.log("FV Player: Picked "+t.levels[o].height+"p quality"),n.startLevel=o,n.currentLevel=o)})}),r=jQuery(r),t=document.location.search,localStorage.FVPlayerDashQuality&&(o.conf.dash||(o.conf.dash={}),o.conf.dash.initialVideoQuality="restore"),r.on("click",".fp-qsel-menu a",function(){var e;"hlsjs-lite"==o.engine.engineName&&(-1==(e=jQuery(this).data("quality"))?localStorage.removeItem("FVPlayerHLSQuality"):(e=n.levels[e],localStorage.FVPlayerHLSQuality=e.height))}),0!=r.data("hd_streaming")&&(localStorage.FVPlayerHLSQuality?(o.conf.hlsjs.startLevel=parseInt(localStorage.FVPlayerHLSQuality),o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&(o.conf.hlsjs.startLevel=3,o.conf.hlsjs.testBandwidth=!1,o.conf.hlsjs.autoLevelEnabled=!1)),o.bind("quality",function(e,t,o){"dash"==t.engine.engineName&&(-1==o?localStorage.removeItem("FVPlayerDashQuality"):i[o]&&(localStorage.FVPlayerDashQuality=i[o].height))}),i=[],a=-1,o.bind("ready",function(e,t){var a;r.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality),"dash"==t.engine.engineName?(i=t.engine.dash.getBitrateInfoListFor("video"),localStorage.FVPlayerDashQuality&&t.conf.dash.initialVideoQuality&&t.quality(t.conf.dash.initialVideoQuality),c()):"hlsjs-lite"==t.engine.engineName?(r.addClass("is-loading"),t.loading=!0,t.one("progress",function(){t.loading&&(r.removeClass("is-loading"),t.loading=!1)}),t.video.qualities&&2').appendTo(r.find(".fp-player"))),o.bind("ready progress",e),o.bind("quality",function(){setTimeout(e,0)}))}),flowplayer(function(a,n){var r=(n=jQuery(n)).attr("id"),i=!1;function l(){var t,o,e=n.attr("data-ad");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return}!i&&!n.hasClass("is-cva")&&n.width()>=parseInt(e.width)&&(e=(e=e.html).replace("%random%",Math.random()),i=jQuery(''+e+"
"),n.find(".fp-player").append(i),t=0,o=setInterval(function(){var e=i&&i.find(".adsbygoogle").height();(200<++t||0n.height()&&i.addClass("tall-ad")},50),setTimeout(function(){n.find(".wpfp_custom_ad video").length&&a.pause()},500))}}function o(e){var t=n.attr("data-popup");if(void 0!==t&&t.length){try{t=JSON.parse(t)}catch(e){return}("finish"==e||t.pause||t.html.match(/fv-player-ppv-purchase-btn-wrapper/))&&0==n.find(".wpfp_custom_popup").length&&(n.addClass("is-popup-showing"),n.find(".fp-player").append('"))}}n.data("end_popup_preview")&&jQuery(document).ready(function(){a.trigger("finish",[a])}),a.bind("ready",function(e,t){1==i.length&&(i.remove(),i=!1),n.data("ad_show_after")||l()}).bind("progress",function(e,t,o){o>n.data("ad_show_after")&&l()}).bind("finish",function(e,t){void 0!==t.video.index&&t.video.index+1!=t.conf.playlist.length||o(e.type)}).bind("pause",function(e,t){o(e.type)}).bind("resume unload seek",function(e,t){n.hasClass("is-popup-showing")&&(n.find(".wpfp_custom_popup").remove(),n.removeClass("is-popup-showing"))})}),jQuery(document).on("click",".fv_fp_close",function(){var e=jQuery(this).parents(".wpfp_custom_ad_content"),t=e.find("video");return e.fadeOut(),t.length&&t[0].pause(),!1}),jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!0)}),jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!1)}),flowplayer(function(a,s){var n,r,e,t,o,s=jQuery(s),i=flowplayer.bean,l=0,f=0,c=("undefined"==typeof ga&&a.conf.fvanalytics&&"undefined"==typeof _gat&&"undefined"==typeof gtag&&(is_ga_4(a)?jQuery.getScript({url:"https://www.googletagmanager.com/gtag/js?id="+a.conf.fvanalytics,cache:!0},function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",a.conf.fvanalytics)}):jQuery.getScript({url:"https://www.google-analytics.com/analytics.js",cache:!0},function(){ga("create",a.conf.fvanalytics,"auto")})),!window._paq&&a.conf.matomo_domain&&a.conf.matomo_site_id&&(e="//"+a.conf.matomo_domain+"/",(o=window._paq=window._paq||[]).push(["setTrackerUrl",e+"matomo.php"]),o.push(["setSiteId",a.conf.matomo_site_id]),t=(o=document).createElement("script"),o=o.getElementsByTagName("script")[0],t.type="text/javascript",t.async=!0,t.src=e+"matomo.js",o.parentNode.insertBefore(t,o)),a.bind("progress",function(e,t,o){var a=t.video,n=a.duration,r=0,i=fv_player_track_name(s,a);if(n&&(19*n/20 strong:visible").length+n.find(".fp-controls > .fp-icon:visible").length,t()},0)}),a.on("unload pause finish error",function(){"undefined"!=typeof checker&&clearInterval(checker)})}),jQuery(window).on("resize tabsactivate",function(){jQuery(".fp-playlist-external").each(function(){var e=jQuery(this);900<=e.parent().width()?e.addClass("is-wide"):e.removeClass("is-wide")})}).trigger("resize"),flowplayer(function(e,a){a=jQuery(a),e.bind("ready",function(){/Chrome/.test(navigator.userAgent)&&54'+fv_flowplayer_translations.mobile_browser_detected_1+' '+fv_flowplayer_translations.mobile_browser_detected_2+" ."))}if(isIE11&&(jQuery(document).ready(function(){jQuery(".fp-waiting").hide()}),flowplayer(function(e,t){e.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})),flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9&&jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width")),jQuery(this).css("height",jQuery(this).css("max-height"))}),location.href.match(/elementor-preview=/)?(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)):location.href.match(/brizy-edit-iframe/)&&(console.log("FV Player: Brizy editor is active"),setInterval(fv_player_load,1e3)),window.DELEGATE_NAMES&&flowplayer(function(e,t){fv_player_notice(t,fv_flowplayer_translations.chrome_extension_disable_html5_autoplay)}),flowplayer(function(e,t){flowplayer.bean.off(t,"contextmenu")}),location.href.match(/elementor-preview=/)&&(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)),flowplayer(function(o,a){void 0!==(a=jQuery(a)).data("fv-embed")&&a.data("fv-embed")&&"false"!=a.data("fv-embed")&&(o.embedCode=function(){o.video;var e=a.width(),t=a.height();return t+=2,(a.hasClass("has-chapters")||a.hasClass("has-transcript"))&&(t+=300),0'})}),jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var e,t,o=jQuery(this).closest(".flowplayer");return"undefined"!=typeof fv_player_editor_conf?fv_player_notice(o,fv_player_editor_translations.embed_notice,2e3):(e=jQuery(this),"function"==typeof(o=(t=e.parents(".flowplayer")).data("flowplayer")).embedCode&&t.find(".embed-code textarea").val(o.embedCode()),fv_player_clipboard(t.find(".embed-code textarea").val(),function(){fv_player_notice(t,fv_flowplayer_translations.embed_copied,2e3)},function(){e.parents(".fvp-share-bar").find(".embed-code").toggle(),e.parents(".fvp-share-bar").toggleClass("visible")})),!1}),flowplayer(function(a,n){var r,i,l,s,f,c,p,e,d;function t(e){for(var t=n;t;){try{var o=getComputedStyle(t);o.transform&&(t.style.transform=e?"none":""),o.zIndex&&(t.style.zIndex=e?"auto":"")}catch(e){}t=t.parentNode}}0!=jQuery(n).data("fullscreen")&&(a.one("ready",function(e,t,o){0==jQuery(n).find(".fp-fullscreen").length&&jQuery(n).find(".fp-header").append(' ')}),r="fullscreen",i="fullscreen-exit",l=flowplayer.support.fullscreen,s=window,p=flowplayer.bean,a.fullscreen=function(e){if(!a.disabled){var t,o=d.find("video.fp-engine",n)[0];if(!(flowplayer.conf.native_fullscreen&&o&&flowplayer.support.iOS))return t=jQuery(n).find(".fp-player")[0],(e=void 0===e?!a.isFullscreen:e)&&(c=s.scrollY,f=s.scrollX),l?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof t[e]&&(t[e]({navigationUI:"hide"}),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||t[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):a.trigger(e?r:i,[a]),a;a.trigger(r,[a]),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===o&&(p.off(document,".nativefullscreen"),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(p.off(document,".nativefullscreen"),a.trigger(i,[a]))}))}),o.webkitEnterFullScreen(),p.one(o,"webkitendfullscreen",function(){p.off(document,"fullscreenchange.nativefullscreen"),a.trigger(i,[a]),d.prop(o,"controls",!0),d.prop(o,"controls",!1)})}},d=flowplayer.common,a.on("mousedown.fs",function(){+new Date-e<150&&a.ready&&a.fullscreen(),e=+new Date}),a.on(r,function(){d.addClass(n,"is-fullscreen"),d.toggleClass(n,"fp-minimal-fullscreen",d.hasClass(n,"fp-minimal")),d.removeClass(n,"fp-minimal"),l||(d.css(n,"position","fixed"),t(!0)),a.isFullscreen=!0}).on(i,function(){var e;d.toggleClass(n,"fp-minimal",d.hasClass(n,"fp-minimal-fullscreen")),d.removeClass(n,"fp-minimal-fullscreen"),l||"html5"!==a.engine||(e=n.css("opacity")||"",d.css(n,"opacity",0)),l||(d.css(n,"position",""),t(!1)),d.removeClass(n,"is-fullscreen"),l||"html5"!==a.engine||setTimeout(function(){n.css("opacity",e)}),a.isFullscreen=!1,"fvyoutube"!=a.engine.engineName&&s.scrollTo(f,c)}).on("unload",function(){a.isFullscreen&&a.fullscreen()}),a.on("shutdown",function(){FULL_PLAYER=null,d.removeNode(wrapper)}))}),flowplayer(function(o,a){a=jQuery(a);var e,n,t,r,i,l=jQuery(".fp-playlist-external[rel="+a.attr("id")+"]"),l=l.hasClass("fp-playlist-season")||l.hasClass("fp-playlist-polaroid");function s(){var e=window.innerWidthe}function f(){o.isFullscreen&&window.innerWidth>window.innerHeight&&s()&&!i&&(fv_player_notice(a,fv_flowplayer_translations.iphone_swipe_up_location_bar,"resize-good"),i=setTimeout(function(){i=!1,o.trigger("resize-good")},5e3))}flowplayer.conf.wpadmin||jQuery(a).hasClass("is-audio")||(e=1==a.data("fsforce"),0==a.data("fullscreen"))||0==a.data("fsforce")||(flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||!flowplayer.support.fullscreen&&e||l?(flowplayer.support.fullscreen?a.on("click",function(){o.ready&&!o.paused||o.fullscreen(!0)}):o.bind("ready",function(){o.video.vr||o.one("progress",function(){o.fullscreen(!0)})}),jQuery("[rel="+a.attr("id")+"] a").on("click",function(e){o.isFullscreen||(o.fullscreen(),o.resume())}),o.on("resume",function(){o.video.vr||o.isFullscreen||(flowplayer.support.fullscreen?o.fullscreen():o.one("progress",function(){o.fullscreen(!0)}))}),o.on("finish",function(){0!=o.conf.playlist.length&&o.conf.playlist.length-1!=o.video.index||o.fullscreen(!1)}).on("fullscreen",function(e,t){a.addClass("forced-fullscreen")}).on("fullscreen-exit",function(e,t){t.pause(),a.removeClass("forced-fullscreen")})):e&&(t=a.find(".fp-unload"),r=!1,o.isFakeFullscreen=!1,a.addClass("is-closeable"),a.on("click",function(e){o.ready||e.target==t[0]||o.fakeFullscreen(!0)}),t.on("click",function(e){return o.ready&&o.isFullscreen?o.fullscreen(!1):o.loading&&(r=!0,o.one("resume",function(e){r=!1,o.pause()})),o.fakeFullscreen(!1),!1}),jQuery("[rel="+a.attr("id")+"] a").on("click",function(e){o.isFakeFullscreen||(o.fakeFullscreen(),o.resume())}),o.on("resume",function(){r||o.isFakeFullscreen||o.fakeFullscreen()}).on("finish",function(){0!=o.conf.playlist.length&&o.conf.playlist.length-1!=o.video.index||o.fakeFullscreen(!1)}).on("fullscreen",function(e,t){a.removeClass("fake-fullscreen")}).on("fullscreen-exit",function(e,t){t.isFakeFullscreen&&t.fakeFullscreen(!0,!0)}).on("unload",function(e,t){}),o.fakeFullscreen=function(e,t){(t||o.isFakeFullscreen!=e&&!o.disabled)&&(void 0===n&&(n=a.css("position")),void 0===e&&(e=!o.isFakeFullscreen),o.isFakeFullscreen=e,o.trigger(e?"fakefullscreen":"fakefullscreen-exit",[o]),a.toggleClass("is-fullscreen fake-fullscreen forced-fullscreen",e),e?a.css("position","fixed"):a.css("position",n))}),flowplayer.support.android&&flowplayer.conf.mobile_landscape_fullscreen&&window.screen&&window.screen.orientation&&o.on("fullscreen",function(e,t){void 0!==(t=t).video.width&&void 0!==t.video.height&&0!=t.video.width&&0!=t.video.height&&t.video.width'+fv_flowplayer_translations.audio_button+""),(s=jQuery('').insertAfter(a.find(".fp-controls"))).append(""+fv_flowplayer_translations.audio_menu+" "),n.forEach(function(e){s.append(''+e.name+" ")}),l.insertAfter(a.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),s.hasClass("fp-active")?o.hideMenu(s[0]):(a.click(),o.showMenu(s[0]))}),jQuery("a",s).on("click",function(e){var t=e.target.getAttribute("data-audio");if(r){var o=r.audioTracks[r.audioTrack].groupId,e=r.audioTracks.filter(function(e){return e.groupId===o&&(e.name===t||e.lang===t)})[0];r.audioTrack=e.id,c(e)}else{var a,n=f();for(a in n)n.hasOwnProperty(a)&&n[a].label==t&&(n[a].enabled=!0,c(n[a]))}}),r)c(r.audioTracks[r.audioTrack]);else{var e,t=f();for(e in t)t.hasOwnProperty(e)&&t[e].enabled&&c(t[e])}}flowplayer.engine("hlsjs-lite").plugin(function(e){r=e.hls}),o.bind("ready",function(e,t){var o;jQuery(s).remove(),jQuery(l).remove(),r&&"application/x-mpegurl"==t.video.type&&(i=[],n=[],(o=r).levels.forEach(function(e){e=e.attrs.AUDIO;e&&i.indexOf(e)<0&&i.push(e),i.length&&(n=o.audioTracks.filter(function(e){return e.groupId===i[0]}))}),p())}),o.one("progress",function(){if("html5"==o.engine.engineName&&"application/x-mpegurl"==o.video.type){i=[],n=[];var e,t=f();for(e in t)t.hasOwnProperty(e)&&n.push({id:t[e].id,name:t[e].label});p()}})}),flowplayer(function(e,n){var r=-1,i=!1;e.on("error",function(e,t,o){var a;4==o.code&&"hlsjs"==t.engine.engineName&&(console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS"),t.error=t.loading=!1,jQuery(n).removeClass("is-error"),jQuery(flowplayer.engines).each(function(e,t){"hlsjs"==flowplayer.engines[e].engineName&&(r=e,i=flowplayer.engines[e],delete flowplayer.engines[e])}),(a=(0<(o=void 0!==t.video.index?t.video.index:0)?t.conf.playlist[o]:t.conf.clip).sources).index=o,t.load({sources:a}),t.bind("unload error",function(){flowplayer.engines[r]=i}))})}),flowplayer(function(e,l){var s,t=e.conf.live_stream_reload||30,f=t,c=fv_flowplayer_translations.live_stream_retry;function p(e){e=Number(e);var t=Math.floor(e/86400),o=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),e=Math.floor(e%60),n=fv_flowplayer_translations,t=0'+fv_flowplayer_translations.live_stream_failed+""),n.addClass("is-error")},1e4),jQuery(e.currentTarget).data("live_check",a))}).bind("ready",function(e,t,o){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,t,o){e=jQuery(e.currentTarget);e.data("live")&&e.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)})}),!function(a){flowplayer(function(e,o){jQuery(o).hasClass("is-cva")||a(document).on("submit","#"+jQuery(o).attr("id")+" .mailchimp-form",function(e){e.preventDefault(),a(".mailchimp-response",o).remove(),a("input[type=submit]",o).attr("disabled","disabled").addClass("fv-form-loading");var t={action:"fv_wp_flowplayer_email_signup"};a("[name]",this).each(function(){t[this.name]=a(this).val()}),a.post(fv_player.ajaxurl,t,function(e){e=JSON.parse(e),a('
').insertAfter(".mailchimp-form",o),e.text.match(/already subscribed/)&&(e.status="ERROR"),"OK"===e.status?(a(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",o).val(""),a(".mailchimp-response",o).removeClass("is-fv-error").html(e.text),setTimeout(function(){a(".wpfp_custom_popup",o).fadeOut()},2e3)):a(".mailchimp-response",o).addClass("is-fv-error").html(e.text),a("input[type=submit]",o).removeAttr("disabled").removeClass("fv-form-loading")})})})}(jQuery),"undefined"!=typeof fv_flowplayer_mobile_switch_array)for(var fv_flowplayer_mobile_switch_i in fv_flowplayer_mobile_switch_array)fv_flowplayer_mobile_switch_array.hasOwnProperty(fv_flowplayer_mobile_switch_i)&&fv_flowplayer_mobile_switch(fv_flowplayer_mobile_switch_i);function fv_flowplayer_browser_chrome_fail(a,n,r,i){jQuery("#wpfp_"+a).bind("error",function(e,t,o){!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||null==o||3!=o.code&&4!=o.code&&5!=o.code||(t.unload(),jQuery("#wpfp_"+a).attr("id","bad_wpfp_"+a),jQuery("#bad_wpfp_"+a).after('
'),jQuery("#wpfp_"+a).flowplayer({playlist:[[{mp4:r}]]}),i?jQuery("#wpfp_"+a).bind("ready",function(e,t){t.play()}):jQuery("#wpfp_"+a).flowplayer().play(0),jQuery("#bad_wpfp_"+a).remove())})}if(flowplayer(function(n,e){var t,o;function a(e,t,o){var a;n.ready?(n.seek(o),(a=t).addClass("is-active"),setTimeout(function(){a.removeClass("is-active")},500)):n.toggle(),e.preventDefault()}flowplayer.support.touch&&(jQuery.fn.fv_single_double_click=function(a,n,r){return this.each(function(){var t=0,o=this;jQuery(this).on("click",function(e){1==++t&&setTimeout(function(){(1==t?a:n).call(o,e),t=0},r||300)})})},e=jQuery(e),t=jQuery('-10s
'),o=jQuery('+10s
'),t.fv_single_double_click(function(){n.toggle()},function(e){a(e,t,!!n.ready&&n.video.time-10)}),o.fv_single_double_click(function(){n.toggle()},function(e){a(e,o,!!n.ready&&n.video.time+10)}),e.find(".fp-ui").append(t).append(o))}),flowplayer(function(a,e){var n=(e=jQuery(e)).data("flowplayer-instance-id");flowplayer.audible_instance=-1,a.one("load",function(){setTimeout(function(){a.conf.splash=!1},0)}),a.on("ready",function(){var o=0==e.data("volume");o||(flowplayer.audible_instance=n),jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e=jQuery(this).data("flowplayer"),t=jQuery(this).data("flowplayer-instance-id");-1!=flowplayer.audible_instance&&t!=flowplayer.audible_instance&&t!=n&&e&&(e.ready?a.conf.multiple_playback?o||e.mute(!0,!0):e.playing&&e.pause():(e.clearLiveStreamCountdown(),e.unload()))})}).on("mute",function(e,t,o){o||flowplayer.audible_instance==n||(flowplayer(flowplayer.audible_instance).mute(!0,!0),flowplayer.audible_instance=n)}).on("resume",function(){a.muted||(flowplayer.audible_instance=n),a.conf.multiple_playback||jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e;n!=jQuery(this).data("flowplayer-instance-id")&&(e=jQuery(this).data("flowplayer"))&&e.playing&&e.pause()})})}),"undefined"!=typeof fv_flowplayer_browser_chrome_fail_array)for(var fv_flowplayer_browser_chrome_fail_i in fv_flowplayer_browser_chrome_fail_array)fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(fv_flowplayer_browser_chrome_fail_i)&&fv_flowplayer_browser_chrome_fail(fv_flowplayer_browser_chrome_fail_i,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].attrs,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].mp4,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].auto_buffer);function fv_flowplayer_browser_ie(e){(flowplayer.support.browser&&flowplayer.support.browser.msie&&9<=parseInt(flowplayer.support.browser.version,10)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if("undefined"!=typeof fv_flowplayer_browser_ie_array)for(var fv_flowplayer_browser_ie_i in fv_flowplayer_browser_ie_array)fv_flowplayer_browser_ie_array.hasOwnProperty(fv_flowplayer_browser_ie_i)&&fv_flowplayer_browser_ie(fv_flowplayer_browser_ie_i);function fv_flowplayer_browser_chrome_mp4(e){var t=window.navigator.appVersion.match(/Chrome\/(\d+)\./);null!=t&&(t=parseInt(t[1],10),/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<28&&-1!=navigator.appVersion.indexOf("Win")||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<27&&-1!=navigator.appVersion.indexOf("Linux")&&-1==navigator.userAgent.toLowerCase().indexOf("android"))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")&&-1==navigator.userAgent.toLowerCase().indexOf("android")||flowplayer(function(e,t){e.bind("error",function(e,t,o){10==o.code&&jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)})}),jQuery(document).ready(function(){-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")||jQuery(window).trigger("load"),jQuery(".flowplayer").on("mouseleave",function(){jQuery(this).find(".fvp-share-bar").removeClass("visible"),jQuery(this).find(".embed-code").hide()})}),"undefined"!=typeof flowplayer&&flowplayer(function(e,a){a=jQuery(a);var n,r=!1,t=(flowplayer.engine("hlsjs-lite").plugin(function(e){n=e.hls}),e.conf.playlist.length?e.conf.playlist:[e.conf.clip]);function i(e){l();var t="Video is being processed",o="Please return later to see the actual video in this player.";e.pending_encoding_error?(t="Video unavailable",o="There was an error in the video encoding."):e.pending_encoding_progress&&(o+=" ("+e.pending_encoding_progress+" done)"),r=jQuery('Item 1.'),i=jQuery('Item 1. '),l=jQuery('').insertAfter(t.find(".fp-controls")),n=0,s=[],f=[],jQuery(o.conf.playlist).each(function(e,t){void 0===t.click&&(t=c(a.find("h4").eq(n)),l.append(''+(n+1)+". "+t+" "),f[e]=t,s.push(e),n++)}),r.insertAfter(t.find(".fp-controls .fp-volume")).on("click",e),i.insertAfter(r).on("click",e),jQuery("a",l).on("click",function(){var e=jQuery(this).data("index"),t=e-1;void 0!==o.conf.playlist[t]&&void 0!==o.conf.playlist[t].click?o.play(t):o.play(e)}),o.on("ready",function(e,t,o){l.find("a").removeClass("fp-selected");var a=l.find("a[data-index="+o.index+"]"),n=(a.addClass("fp-selected"),fv_flowplayer_translations.playlist_item_no);n=(n=n.replace(/%d/,s.indexOf(o.index)+1)).replace(/%s/,c(a.find("h4"))),r.html(n),i.html(s.indexOf(o.index)+1+". "+f[o.index])}))}),flowplayer(function(e,a){a=jQuery(a);var n,r=e.conf.playlist;e.bind("load",function(e,t,o){n=o.index}),e.bind("error",function(e,t,o){setTimeout(function(){if(0r.length-1&&(n=0),console.log("FV Player: Playlist item failure, auto-advancing to "+(n+1)+". item"),t.play(n)}},1e3)})}),flowplayer(function(e,r){var i,l,s;function f(o){return o=[],jQuery(e.conf.playlist).each(function(e,t){o.push(e)}),o=function(e){for(var t,o,a=e.length;a;a--)t=Math.floor(Math.random()*a),o=e[a-1],e[a-1]=e[t],e[t]=o;return e}(o),console.log("FV Player Randomizer random seed:",o),o}((r=jQuery(r)).data("button-no_picture")||r.data("button-repeat")||r.data("button-rewind"))&&e.bind("ready",function(e,t){var o,a,n;void 0===l&&void 0===i&&(l=t.next,i=t.prev),!t.video.type.match(/^audio/)&&r.data("button-no_picture")&&0==r.find(".fv-fp-no-picture").length&&jQuery(' ').insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(".fp-engine",r).slideToggle(20),jQuery(this).toggleClass("is-active fp-color-fill"),r.toggleClass("is-no-picture")}),r.data("button-repeat")&&((!t.have_visible_playlist&&0 '+n.playlist_replay_all+' '+n.playlist_shuffle+' '+n.playlist_replay_video+' '+n.playlist_play_all_button+" "),a=jQuery('").insertAfter(r.find(".fp-controls")),t.conf.playlist_shuffle=t.conf.track_repeat=!1,s=f(),t.conf.advance,o.insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),"auto"!==a.css("right")&&a.css({right:"auto",left:o.position().left+"px"}),a.hasClass("fp-active")?t.hideMenu(a[0]):(r.trigger("click"),t.showMenu(a[0]))}),jQuery("a",a).on("click",function(){jQuery(this).siblings("a").removeClass("fp-selected"),jQuery(this).addClass("fp-selected"),o.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var e=jQuery(this).data("action");"repeat_playlist"==e?(o.addClass("mode-repeat-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.video.loop=t.conf.track_repeat=!1,t.conf.playlist_shuffle=!1):"shuffle_playlist"==e?(o.addClass("mode-shuffle-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.conf.playlist_shuffle=!0):"repeat_track"==e?(o.addClass("mode-repeat-track"),t.conf.track_repeat=t.video.loop=!0,t.conf.loop=t.conf.playlist_shuffle=!1):"normal"==e&&(o.addClass("mode-normal"),t.conf.track_repeat=t.video.loop=!1,t.conf.loop=t.conf.playlist_shuffle=!1),t.conf.playlist_shuffle?(t.next=function(){t.play(s.pop()),0==s.length&&(s=f())},t.prev=function(){t.play(s.shift()),0==s.length&&(s=f())}):(t.next=l,t.prev=i)}),t.conf.loop&&jQuery("a[data-action=repeat_playlist]",a).trigger("click"),t.on("progress",function(){t.video.loop=t.conf.track_repeat}),t.on("finish.pl",function(e,t){console.log("playlist_repeat",t.conf.loop,"advance",t.conf.advance,"video.loop",t.video.loop),t.conf.playlist_shuffle&&(t.play(s.pop()),0==s.length)&&(s=f())})):0!=r.find(".fv-fp-track-repeat").length||(t.have_visible_playlist||0!=t.conf.playlist.length)&&t.have_visible_playlist()||((n=jQuery(' ')).insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(this).toggleClass("is-active fp-color-fill",t.video.loop),t.video.loop?t.video.loop=!1:t.video.loop=!0}),t.conf.loop&&n.addClass("is-active fp-color-fill"))),r.data("button-rewind")&&(0==r.find(".fv-fp-rewind").length&&((n=jQuery(' ')).insertBefore(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time-10)}),n.toggle(!t.video.live||t.video.dvr)),0==r.find(".fv-fp-forward").length)&&((n=jQuery(' ')).insertAfter(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time+10)}),n.toggle(!t.video.live||t.video.dvr))}).bind("unload",function(){r.find(".fv-fp-no-picture").remove(),r.find(".fv-fp-playlist").remove(),r.find(".fv-fp-track-repeat").remove()})}),flowplayer(function(e,t){var o=jQuery(t),a=o.data("playlist_start");function n(){1!==o.data("position_changed")&&e.conf.playlist.length&&(a--,void 0===e.conf.playlist[a].click&&(e.engine&&"hlsjs-lite"==e.engine.engineName&&(e.loading=!1),e.play(a)),o.data("position_changed",1))}void 0!==a&&(e.bind("unload",function(){a=o.data("playlist_start"),o.removeData("position_changed"),e.one("ready",n)}),e.one("ready",n),jQuery(".fp-ui",t).on("click",function(){n(),o.data("position_changed",1)}))}),document.addEventListener("custombox:overlay:close",function(e){console.log("FV Player: Custombox/Popup anything ligtbox closed");var t=jQuery(this).find(".flowplayer");0!=t.length&&(console.log("FV Player: Custombox/Popup anything ligtbox contains a player"),t.each(function(e,t){var o=jQuery(t).data("flowplayer");void 0!==o&&(o.playing?(console.log("FV Player: Custombox/Popup anything ligtbox video pause"),o.pause()):o.loading&&o.one("ready",function(){console.log("FV Player: Custombox/Popup anything ligtbox video unload"),o.unload()}))}))}),flowplayer(function(t,e){t.bind("finish",function(){var e=t.video.time;t.video.loop&&t.one("pause",function(){e<=t.video.time&&t.resume()})})}),flowplayer(function(o,a){(a=jQuery(a)).find(".fp-logo").removeAttr("href"),a.hasClass("no-controlbar")&&((e=o.sliders.timeline).disable(!0),o.bind("ready",function(){e.disable(!0)})),jQuery(".fvfp_admin_error",a).remove(),a.find(".fp-logo, .fp-header").on("click",function(e){e.target===this&&a.find(".fp-ui").trigger("click")}),jQuery(".fvp-share-bar .sharing-facebook",a).append('Facebook '),jQuery(".fvp-share-bar .sharing-twitter",a).append('Twitter '),jQuery(".fvp-share-bar .sharing-email",a).append('Email '),jQuery(".fp-header",a).prepend(jQuery(".fvp-share-bar",a)),(!o.have_visible_playlist&&0'),i=jQuery(' '),a.find(".fp-controls .fp-playbtn").before(t).after(i),t.on("click",function(){o.trigger("prev",[o]),o.prev()}),i.on("click",function(){o.trigger("next",[o]),o.next()})),"undefined"!=typeof fv_player_editor_conf&&a.on("click",".fvp-sharing > li",function(e){return e.preventDefault(),fv_player_notice(a,fv_player_editor_translations.link_notice,2e3),!1}),o.bind("pause resume finish unload ready",function(e,t){a.addClass("no-brand")}),o.one("ready",function(){a.find(".fp-fullscreen").clone().appendTo(a.find(".fp-controls"))}),o.on("ready",function(e,t,o){setTimeout(function(){jQuery(".fvp-share-bar",a).show(),jQuery(".fv-player-buttons-wrap",a).appendTo(jQuery(".fv-player-buttons-wrap",a).parent().find(".fp-ui"))},100)}),o.bind("finish",function(){var e,t=a.data("fv_redirect");!t||void 0!==o.video.is_last&&!o.video.is_last||flowplayer.conf.is_logged_in_editor&&(e=(e=fv_flowplayer_translations.redirection).replace(/%url%/,t),!confirm(e))||(location.href=t)}),flowplayer.support.iOS&&11==flowplayer.support.iOS.version&&o.bind("error",function(e,t,o){4==o.code&&a.find(".fp-engine").hide()}),jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()}),o.one("ready",function(e,t,o){a.find(".fp-chromecast").insertAfter(a.find(".fp-header .fp-fullscreen"))}),a.find(".fp-waiting").html('
');var e,n=a.attr("id"),r=!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen,t="fakefullscreen",i="fakefullscreen-exit";flowplayer.support.fullscreen||(t+=" fullscreen",i+=" fullscreen-exit"),o.bind(t,function(e,t){jQuery("#wpadminbar, .nc_wrapper").hide(),!r&&"fakefullscreen"!=e.type||"video/youtube"==t.video.type||(a.before(' '),a.appendTo("body"))}),o.bind(i,function(e,t,o){jQuery("#wpadminbar, .nc_wrapper").show(),!r&&"fakefullscreen-exit"!=e.type||jQuery("span[data-fv-placeholder="+n+"]").replaceWith(a)})}),function(){function e(p){p(function(a,n){var r,e,i,l,s;function f(e){return Math.round(100*e)/100}function c(t){r.find(".fp-speed",n)[0].innerHTML=t+"x",r.find(".fp-speed-menu a",n).forEach(function(e){r.toggleClass(e,"fp-selected",e.getAttribute("data-speed")==t),r.toggleClass(e,"fp-color",e.getAttribute("data-speed")==t)})}jQuery(n).data("speedb")&&(e=p.support).video&&e.inlineVideo&&(r=p.common,e=p.bean,i=r.find(".fp-ui",n)[0],l=r.find(".fp-controls",i)[0],s=a.conf.speeds,e.on(n,"click",".fp-speed",function(){var e=r.find(".fp-speed-menu",n)[0];r.hasClass(e,"fp-active")?a.hideMenu():a.showMenu(e)}),e.on(n,"click",".fp-speed-menu a",function(e){e=e.target.getAttribute("data-speed");a.speed(e)}),a.on("speed",function(e,t,o){1Speed"),s.forEach(function(e){e=r.createElement("a",{"data-speed":f(e)},f(e)+"x");o.appendChild(e)}),i.appendChild(o),c(a.currentSpeed),jQuery(n).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed))}))})}"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e:"function"==typeof window.flowplayer&&e(window.flowplayer)}(),flowplayer(function(e,t){void 0===fv_flowplayer_conf.disable_localstorage&&(e.on("speed",function(e,t,o){try{window.localStorage.fv_player_speed=o}catch(e){}}),e.on("ready",function(){window.localStorage.fv_player_speed&&jQuery(t).find("strong.fp-speed").is(":visible")&&e.speed(parseFloat(window.localStorage.fv_player_speed)),0==jQuery(t).data("volume")&&e.mute(!0,!0)}))}),function(l){var s={},f=!1;flowplayer(function(e,t){t=l(t);var a,o=-1,n=0;if(e.conf.fv_stats&&(e.conf.fv_stats.enabled||t.data("fv_stats")&&"no"!=t.data("fv_stats"))){try{var r=t.data("fv_stats_data");if(!r)return}catch(e){return!1}e.on("ready finish",function(e,t){t.one("progress",function(e,t){o!=i()&&(o=i(),l.post(t.conf.fv_stats.url,{blog_id:t.conf.fv_stats.blog_id,video_id:t.video.id||0,player_id:r.player_id,post_id:r.post_id,user_id:t.conf.fv_stats.user_id,tag:"play"}))}),a=!(n=0)}).on("finish",function(){o=-1}).on("progress",function(e,t,o){0!=o&&(t.seeking?n=o:a?a=!1:n=(0==n||o<=n||(s[r.player_id]||(s[r.player_id]={}),s[r.player_id][r.post_id]||(s[r.player_id][r.post_id]={}),s[r.player_id][r.post_id][t.video.id]||(s[r.player_id][r.post_id][t.video.id]=0),s[r.player_id][r.post_id][t.video.id]+=o-n,f=!0),o))})}function i(){return e.video.index||0}}),l(window).on("beforeunload pagehide",function(){var e,t;flowplayer.conf.stats_sent||(flowplayer.conf.stats_sent=!0,f&&(fv_player_stats_watched(),e=(window.freedomplayer?freedomplayer:flowplayer).conf,(t=new FormData).append("tag","seconds"),t.append("blog_id",e.fv_stats.blog_id),t.append("user_id",e.fv_stats.user_id),t.append("watched",encodeURIComponent(JSON.stringify(s))),navigator.sendBeacon(e.fv_stats.url,t)))}),window.fv_player_stats_watched=function(){l.each(s,function(e,t){console.log("player id: "+e),l.each(t,function(e,t){console.log("post id: "+e),l.each(t,function(e,t){console.log("video id: "+e+" seconds: "+t)})})})}}(jQuery),flowplayer(function(o,a){var n,r=jQuery(a),e=r.find(".fp-player"),t=r.data("fvsticky"),i=!1,l=r.find(".fp-ratio");if(o.is_sticky=!1,(i="off"!=flowplayer.conf.sticky_video&&void 0===t?!0:i)||t){if(!flowplayer.support.firstframe)return;var s=flowplayer.conf.sticky_place;i=jQuery(window),n=r,o.on("unload",function(){c(),r.removeClass("is-unSticky")}),i.on("resize",function(){p()||"all"==flowplayer.conf.sticky_video||o.is_sticky&&c()}).on("scroll",function(){var e,t;if(p()||"all"==flowplayer.conf.sticky_video)if(e=n[0],(t=e.getBoundingClientRect()).top>=0-jQuery(e).outerHeight()/2&&0<=t.left&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+jQuery(e).outerHeight()/2&&t.right<=(window.innerWidth||document.documentElement.clientWidth)||!(o.playing||o.loading||flowplayer.audible_instance==r.data("freedomplayer-instance-id")||"object"==_typeof(a.fv_player_vast)&&"object"==_typeof(a.fv_player_vast.adsManager_)&&"function"==typeof a.fv_player_vast.adsManager_.getRemainingTime&&0'),e.prepend(l.clone()),d(!0),o.is_sticky=!0,o.trigger("sticky",[o]),e.parent(".flowplayer").addClass("is-stickable"))}function c(){e.removeClass("is-sticky"),e.removeClass("is-sticky-"+s),e.css("max-width",""),e.find(".fp-ratio").remove(),e.parent(".flowplayer").removeClass("is-stickable"),o.is_sticky&&(d(),o.is_sticky=!1,o.trigger("sticky-exit",[o]))}function p(){return jQuery(window).innerWidth()>=fv_flowplayer_conf.sticky_min_width}function d(e){for(var t=a;t;){try{getComputedStyle(t).transform&&(t.style.transform=e?"none":"")}catch(e){}t=t.parentNode}}o.sticky=function(e,t){void 0===e&&(e=!o.is_sticky),t&&r.toggleClass("is-unSticky",!e),(e?f:c)()}}),jQuery(function(o){o(document).on("click","a.fp-sticky",function(){var e=o("div.flowplayer.is-stickable"),t=e.data("flowplayer"),e=(e.addClass("is-unSticky"),e.find(".fp-player"));e.removeClass("is-sticky"),e.removeClass("is-sticky-right-bottom"),e.removeClass("is-sticky-left-bottom"),e.removeClass("is-sticky-right-top"),e.removeClass("is-sticky-left-top"),e.css("width",""),e.css("height",""),e.css("max-height",""),t.is_sticky&&(t.is_sticky=!1,t.trigger("sticky-exit",[t]))}),o(document).on("click","div.flowplayer.is-unSticky",function(){o("div.flowplayer").removeClass("is-unSticky")})}),flowplayer(function(e,n){var r;n=jQuery(n),void 0===fv_flowplayer_conf.disable_localstorage&&(r=window.localStorage,e.on("ready",function(e,o,t){var a;t.subtitles&&t.subtitles.length&&(r.fv_player_subtitle&&o.video.subtitles.length?"none"===r.fv_player_subtitle?o.disableSubtitles():o.video.subtitles.forEach(function(e,t){e.srclang===r.fv_player_subtitle&&o.loadSubtitles(t)}):(a=t.subtitles.filter(function(e){return e.fv_default})[0])&&o.loadSubtitles(t.subtitles.indexOf(a))),n.find(".fp-subtitle-menu").on("click",function(e){var t=e.target.getAttribute("data-subtitle-index");if("string"==typeof t)try{r.fv_player_subtitle=-1 '+fv_flowplayer_translations.click_to_unmute+"")).on("click touchstart",function(){t.mute(!1),t.volume(1)}),a.find(".fp-ui").append(o),a.addClass("has-fp-message-muted"),setTimeout(l,1e4)))}),o.on("mute volume",function(){(!o.muted||0'),a=jQuery(e).prev(".fv-player-warning-wrapper")),0==a.find(".fv-player-warning-"+o).length&&(e=jQuery(""+t+"
"),a.append(e),e.slideDown())},flowplayer(function(t,a){a=jQuery(a),navigator.userAgent.match(/iPhone.* OS [0-6]_/i)&&t.one("progress",function(e){void 0!==t.video.subtitles&&t.video.subtitles.length&&fv_player_warning(a,fv_flowplayer_translations.warning_iphone_subs)}),flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)&&(t.on("ready",function(e,t,o){setTimeout(function(){o.src&&o.src.match(/fpdl.vimeocdn.com/)&&(0==o.time||1==o.time)&&(fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox"),t.on("progress",function(e,t){a.prev().find(".fv-player-warning-firefox").remove()}))},1500)}),t.on("error",function(e,t,o){2==o.MEDIA_ERR_NETWORK&&o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_unstable_android,"firefox")})),/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)&&t.on("error",function(e,t,o){o.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(a,fv_flowplayer_translations.warning_old_safari)});var e=flowplayer.support;e.android&&(e.android.samsung&&parseInt(e.browser.version)<66||e.browser.safari)&&t.on("error",function(e,t,o){fv_player_warning(a,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})}));