webpackJsonpjwplayer([2],{103:function(a,b,c){var d,e;d=[c(42),c(57),c(56),c(45),c(63),c(62),c(68),c(94),c(69)],e=function(a,b,c,d,e,f,g,h,i){function j(j,m){function n(){window.YT&&window.YT.loaded?(J=window.YT,q()):setTimeout(n,100)}function o(){k=null}function p(){var a=L&&L.parentNode;return a?a:(N||(window.jwplayer(j).onReady(q),N=!0),!1)}function q(){J&&p()&&O&&O.apply(I)}function r(){if(K&&K.getPlayerState){var a=K.getPlayerState();null!==a&&void 0!==a&&a!==R&&A({data:a});var b=J.PlayerState;a===b.PLAYING?t():a===b.BUFFERING&&u()}}function s(a){return Math.round(10*a)/10}function t(){u(),I.sendEvent(e.JWPLAYER_MEDIA_TIME,{position:s(K.getCurrentTime()),duration:K.getDuration()})}function u(){var a=0;K&&K.getVideoLoadedFraction&&(a=Math.round(100*K.getVideoLoadedFraction())),M!==a&&(M=a,I.sendEvent(e.JWPLAYER_MEDIA_BUFFER,{bufferPercent:a}))}function v(){I.state!==f.IDLE&&I.state!==f.COMPLETE&&(S=!0,I.sendEvent(e.JWPLAYER_MEDIA_BEFORECOMPLETE),I.setState(f.COMPLETE),S=!1,I.sendEvent(e.JWPLAYER_MEDIA_COMPLETE))}function w(){I.sendEvent(e.JWPLAYER_MEDIA_META,{duration:K.getDuration(),width:L.clientWidth,height:L.clientHeight})}function x(){var a=arguments,b=a.length-1;return function(){for(var c=b,d=a[b].apply(this,arguments);c--;)d=a[c].call(this,d);return d}}function y(a,b){if(!a)throw"invalid Youtube ID";var c=L.parentNode;if(c){var e={height:"100%",width:"100%",videoId:a,playerVars:d.extend({html5:1,autoplay:0,controls:0,showinfo:0,rel:0,modestbranding:0,playsinline:1,origin:location.protocol+"//"+location.hostname},b),events:{onReady:z,onStateChange:A,onPlaybackQualityChange:B,onError:C}};I.setVisibility(!0),K=new J.Player(L,e),L=K.getIframe(),O=null,D()}}function z(){P&&(P.apply(I),P=null)}function A(a){var b=J.PlayerState;switch(R=a.data){case b.UNSTARTED:return;case b.ENDED:return void v();case b.PLAYING:return d.isFunction(K.unloadModule)&&K.unloadModule("captions"),T=!1,w(),I.sendEvent(e.JWPLAYER_MEDIA_LEVELS,{levels:I.getQualityLevels(),currentQuality:I.getCurrentQuality()}),void I.setState(f.PLAYING);case b.PAUSED:return void I.setState(f.PAUSED);case b.BUFFERING:return void(I.seeking?I.setState(f.LOADING):I.setState(f.STALLED));case b.CUED:return void I.setState(f.IDLE)}}function B(){R!==J.PlayerState.ENDED&&I.play(),I.sendEvent(e.JWPLAYER_MEDIA_LEVEL_CHANGED,{currentQuality:I.getCurrentQuality(),levels:I.getQualityLevels()})}function C(){I.sendEvent(e.JWPLAYER_MEDIA_ERROR,{message:"Error loading YouTube: Video could not be played"})}function D(){l&&(I.setVisibility(!0),b.css("#"+j+" .jwcontrols",{display:"none"}))}function E(){b.css("#"+j+" .jwcontrols",{display:""})}function F(){clearInterval(Q),K&&K.stopVideo&&a.tryCatch(function(){K.stopVideo(),K.clearVideo()})}function G(b){P=null;var c=b.sources[0].file,d=a.youTubeID(c);if(b.image||(b.image="//i.ytimg.com/vi/"+d+"/0.jpg"),I.volume(m.volume),I.mute(m.mute),I.setVisibility(!0),!J||!K)return O=function(){y(d)},void q();if(!K.getPlayerState){var e=function(){I.load(b)};return void(P=P?x(e,P):e)}var f=K.getVideoData().video_id;if(f!==d){T?(F(),K.cueVideoById(d)):K.loadVideoById(d);var g=K.getPlayerState(),h=J.PlayerState;(g===h.UNSTARTED||g===h.CUED)&&D()}else K.getCurrentTime()>0&&K.seekTo(0),w()}this.state=f.IDLE;var H,I=d.extend(this,new g("provider."+this.name)),J=window.YT,K=null,L=document.createElement("div"),M=-1,N=!1,O=null,P=null,Q=-1,R=-1,S=!1,T=l;this.setState=function(a){clearInterval(Q),a!==f.IDLE&&a!==f.COMPLETE&&(Q=setInterval(r,250),a===f.PLAYING?(this.seeking=!1,E()):(a===f.LOADING||a===f.STALLED)&&u()),i.setState.apply(this,arguments)},!J&&k&&k.getStatus()===h.loaderstatus.NEW&&(k.addEventListener(e.COMPLETE,n),k.addEventListener(e.ERROR,o),k.load()),L.id=j+"_youtube",this.init=function(a){G(a)},this.destroy=function(){this.remove(),H=L=J=I=null},this.load=function(a){this.setState(f.LOADING),G(a),I.play()},this.stop=function(){F(),this.setState(f.IDLE)},this.play=function(){T||(K&&K.playVideo?K.playVideo():P=P?x(this.play,P):this.play)},this.pause=function(){T||K.pauseVideo&&K.pauseVideo()},this.seek=function(a){T||K.seekTo&&(this.seeking=!0,K.seekTo(a))},this.volume=function(a){if(d.isNumber(a)){var b=Math.min(Math.max(0,a),100);K&&K.getVolume&&K.setVolume(b)}},this.mute=function(b){var c=a.exists(b)?!!b:!m.mute;K&&K.mute&&(c?K.mute():K.unMute())},this.detachMedia=function(){return null},this.attachMedia=function(){S&&(this.setState(f.COMPLETE),this.sendEvent(e.JWPLAYER_MEDIA_COMPLETE),S=!1)},this.setContainer=function(a){H=a,a.appendChild(L),this.setVisibility(!0)},this.getContainer=function(){return H},this.remove=function(){F(),L&&H&&H===L.parentNode&&H.removeChild(L),O=P=K=null},this.setVisibility=function(a){a=!!a,a?(b.style(L,{display:"block"}),b.style(H,{visibility:"visible",opacity:1})):l||b.style(H,{opacity:0})},this.resize=function(a,b,d){return c.stretch(d,L,a,b,L.clientWidth,L.clientHeight)},this.checkComplete=function(){return S},this.getCurrentQuality=function(){if(!K)return-1;if(K.getAvailableQualityLevels){var a=K.getPlaybackQuality(),b=K.getAvailableQualityLevels();return b.indexOf(a)}return-1},this.getQualityLevels=function(){if(K){if(!d.isFunction(K.getAvailableQualityLevels))return[];var a=K.getAvailableQualityLevels();if(2===a.length&&d.contains(a,"auto"))return{label:d.without(a,"auto")};var b=d.map(a,function(a){return{label:a}});return b.reverse()}},this.setCurrentQuality=function(a){if(K&&K.getAvailableQualityLevels){var b=K.getAvailableQualityLevels();if(b.length){var c=b[b.length-a-1];K.setPlaybackQuality(c)}}},this.getName=function(){return{name:"youtube"}}}var k=new h(window.location.protocol+"//www.youtube.com/iframe_api"),l=a.isMobile();return j.getName=function(){return{name:"youtube"}},{register:function(a){a.api.registerProvider(j)}}}.apply(b,d),!(void 0!==e&&(a.exports=e))}});