1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4439],{85034:(function(fe,A,E){function v(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(n){return typeof n}:v=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v(e)}Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0;var T=Y(E(67294)),p=E(56281),C=E(99790);function N(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return N=function(){return e},e}function Y(e){if(e&&e.__esModule)return e;if(e===null||v(e)!=="object"&&typeof e!="function")return{default:e};var t=N();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M(Object(n),!0).forEach(function(r){c(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B(e,t){return W(e)||$(e,t)||G(e,t)||H()}function H(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(e,t){if(e){if(typeof e=="string")return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return V(e,t)}}function V(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var u=e[Symbol.iterator](),o;!(r=(o=u.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(l){a=!0,i=l}finally{try{!r&&u.return!=null&&u.return()}finally{if(a)throw i}}return n}}function W(e){if(Array.isArray(e))return e}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function z(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),e}function Z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}
2function L(e,t){return L=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},L(e,t)}function q(e){var t=J();return function(){var r=b(e),a;if(t){var i=b(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return x(this,a)}}function x(e,t){return t&&(v(t)==="object"||typeof t=="function")?t:y(e)}function y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},b(e)}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q="https://www.youtube.com/iframe_api",K="YT",X="onYouTubeIframeAPIReady",S=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,I=/user\/([a-zA-Z0-9_-]+)\/?/,ee=/youtube-nocookie\.com/,te="https://www.youtube-nocookie.com",U=(function(e){Z(n,e);var t=q(n);function n(){var r;F(this,n);for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r=t.call.apply(t,[this].concat(i)),c(y(r),"callPlayer",p.callPlayer),c(y(r),"parsePlaylist",function(o){if(o instanceof Array)return{listType:"playlist",playlist:o.map(r.getID).join(",")};if(S.test(o)){var l=o.match(S),f=B(l,2),P=f[1];return{listType:"playlist",list:P.replace(/^UC/,"UU")}}if(I.test(o)){var _=o.match(I),m=B(_,2),d=m[1];return{listType:"user_uploads",list:d}}return{}}),c(y(r),"onStateChange",function(o){var l=o.data,f=r.props,P=f.onPlay,_=f.onPause,m=f.onBuffer,d=f.onBufferEnd,w=f.onEnded,g=f.onReady,D=f.loop,O=f.config,h=O.playerVars,k=O.onUnstarted,s=window[K].PlayerState,re=s.UNSTARTED,ne=s.PLAYING,ae=s.PAUSED,oe=s.BUFFERING,ie=s.ENDED,ue=s.CUED;if(l===re&&k(),l===ne&&(P(),d()),l===ae&&_(),l===oe&&m(),l===ie){var le=!!r.callPlayer("getPlaylist");D&&!le&&(h.start?r.seekTo(h.start):r.play()),w()}l===ue&&g()}),c(y(r),"mute",function(){r.callPlayer("mute")}),c(y(r),"unmute",function(){r.callPlayer("unMute")}),c(y(r),"ref",function(o){r.container=o}),r}return z(n,[{key:"componentDidMount",value:function(){this.props.onMount&&this.props.onMount(this)}},{key:"getID",value:function(a){return!a||a instanceof Array||S.test(a)?null:a.match(C.MATCH_URL_YOUTUBE)[1]}},{key:"load",value:function(a,i){var u=this,o=this.props,l=o.playing,f=o.muted,P=o.playsinline,_=o.controls,m=o.loop,d=o.config,w=o.onError,g=d.playerVars,D=d.embedOptions,O=this.getID(a);if(i){if(S.test(a)||I.test(a)||a instanceof Array){this.player.loadPlaylist(this.parsePlaylist(a));return}this.player.cueVideoById({videoId:O,startSeconds:(0,p.parseStartTime)(a)||g.start,endSeconds:(0,p.parseEndTime)(a)||g.end});return}(0,p.getSDK)(Q,K,X,function(h){return h.loaded}).then(function(h){u.container&&(u.player=new h.Player(u.container,R({width:"100%",height:"100%",videoId:O,playerVars:R(R({autoplay:l?1:0,mute:f?1:0,controls:_?1:0,start:(0,p.parseStartTime)(a),end:(0,p.parseEndTime)(a),origin:window.location.origin,playsinline:P?1:0},u.parsePlaylist(a)),g),events:{onReady:function(){m&&u.player.setLoop(!0),u.props.onReady()},onStateChange:u.onStateChange,onError:function(s){return w(s.data)}},host:ee.test(a)?te:void 0},D)))},w),D.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause")}},{key:"play",value:function(){this.callPlayer("playVideo")}},{key:"pause",value:function(){this.callPlayer("pauseVideo")}},{key:"stop",value:function(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}},{key:"seekTo",value:function(a){this.callPlayer("seekTo",a),this.props.playing||this.pause()}},{key:"setVolume",value:function(a){this.callPlayer("setVolume",a*100)}},{key:"setPlaybackRate",value:function(a){this.callPlayer("setPlaybackRate",a)}},{key:"setLoop",value:function(a){this.callPlayer("setLoop",a)}},{key:"getDuration",value:function(){return this.callPlayer("getDuration")}},{key:"getCurrentTime",value:function(){return this.callPlayer("getCurrentTime")}},{key:"getSecondsLoaded",value:function(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}},{key:"render",value:function(){var a=this.props.display,i={width:"100%",height:"100%",display:a};return T.default.createElement("div",{style:i},T.default.createElement("div",{ref:this.ref}))}}]),n})(T.Component);
2A.default=U,c(U,"displayName","YouTube"),c(U,"canPlay",C.canPlay.youtube)})}]);
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.