PageSourceSearch

https://lemonsocial.com/static/js/reactPlayerYouTube.22e89d42.chunk.js

js lemonsocial.com collected 2026-10-07 13:39:37 UTC 14,234 bytes, 3 lines download raw bytes

1/*! For license information please see reactPlayerYouTube.22e89d42.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[8446],{69802:(t,e,n)=>{function i(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}n.d(e,{A:()=>i})},91787:(t,e,n)=>{function i(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(e,{A:()=>i})},77586:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(69802);function s(t,e){return t.get((0,i.A)(t,e))}},11605:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(91787);function s(t,e,n){(0,i.A)(t,e),e.set(t,n)}},83558:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(69802);function s(t,e,n){return t.set((0,i.A)(t,e),n),n}},50025:(t,e,n)=>{n.d(e,{A:()=>s});var i=n(91787);function s(t,e){(0,i.A)(t,e),e.add(t)}},90978:(t,e,n)=>{n.r(e),n.d(e,{default:()=>D});var i,s=n(59419),o=n(37217),a=n(50025),r=n(11605),l=n(37659),u=n(83558),c=n(77586),h=n(69802);const d=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,p=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;const i={src:f(t,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(null==(n=e.config)?void 0:n.referrerpolicy)&&(i.referrerpolicy=e.config.referrerpolicy),e.config&&(i["data-config"]=JSON.stringify(e.config)),"\n    <style>\n      :host {\n        display: inline-block;\n        line-height: 0;\n        position: relative;\n        min-width: 300px;\n        min-height: 150px;\n      }\n      iframe {\n        position: absolute;\n        top: 0;\n        left: 0;\n      }\n    </style>\n    <iframe".concat(function(t){let e="";for(const n in t){const i=t[n];e+=""===i?" ".concat(P(n)):" ".concat(P(n),'="').concat(P("".concat(i)),'"')}return e}(i),"></iframe>\n  ")}function f(t,e){var n;if(!t.src)return;const i=t.src.includes("-nocookie")?"https://www.youtube-nocookie.com/embed":"https://www.youtube.com/embed",o=(0,s.A)({controls:""===t.controls?null:0,autoplay:t.autoplay,loop:t.loop,mute:t.muted,playsinline:t.playsinline,preload:null!==(n=t.preload)&&void 0!==n?n:"metadata",enablejsapi:1,cc_load_policy:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},e.config);if(d.test(t.src)){const e=t.src.match(d),n=e&&e[1];return"".concat(i,"/").concat(n,"?").concat(S(o))}const a=t.src.match(p),r=a&&a[1],l=(0,s.A)({listType:"playlist",list:r},o);return"".concat(i,"?").concat(S(l))}var m=new WeakMap,g=new WeakMap,y=new WeakMap,A=new WeakMap,w=new WeakMap,b=new WeakMap,E=new WeakMap,k=new WeakMap,T=new WeakMap,L=new WeakSet;class C extends(null!==(i=globalThis.HTMLElement)&&void 0!==i?i:class{}){constructor(){super(),(0,a.A)(this,L),(0,l.A)(this,"loadComplete",new I),(0,r.A)(this,m,void 0),(0,r.A)(this,g,void 0),(0,r.A)(this,y,0),(0,r.A)(this,A,!1),(0,r.A)(this,w,void 0),(0,l.A)(this,"isLoaded",!1),(0,r.A)(this,b,null),(0,r.A)(this,E,null),(0,r.A)(this,k,null),(0,r.A)(this,T,1),(0,h.A)(L,this,M).call(this,"config")}get config(){return(0,c.A)(E,this)}set config(t){(0,u.A)(E,this,t)}async load(){if((0,c.A)(m,this))return;this.shadowRoot||this.attachShadow({mode:"open"});const t=!(0,c.A)(g,this);(0,c.A)(g,this)&&(this.loadComplete=new I,this.isLoaded=!1),(0,u.A)(g,this,!0),await(0,u.A)(m,this,Promise.resolve()),(0,u.A)(m,this,null),(0,u.A)(y,this,0),this.dispatchEvent(new Event("emptied"));let e=this.api;if(this.api=null,!this.src)return void(null==e||e.destroy());(0,u.A)(k,this,document.createElement("video")),this.textTracks=(0,c.A)(k,this).textTracks,this.textTracks.addEventListener("change",(()=>{var t;const e=Array.from(this.textTracks).find((t=>"showing"===t.mode));null==(t=this.api)||t.setOption("captions","track",e?{languageCode:e.language}:{})})),this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe"),i=function(t){let e={};for(let n of t)e[n.name]=n.value;return e}(this.attributes);t&&n&&(0,u.A)(E,this,JSON.parse(n.getAttribute("data-config")||"{}")),(null==n?void 0:n.src)&&n.src===f(i,this)||(this.shadowRoot.innerHTML=v(i,this),n=this.shadowRoot.querySelector("iframe"));const s=await async function(t,e,n){if(R[t])return R[t];if(e&&self[e])return await N(0),self[e];return R[t]=new Promise((function(i,s){const o=document.createElement("script");o.src=t;const a=()=>i(self[e]);n&&(self[n]=a),o.onload=()=>!n&&a(),o.onerror=s,document.head.append(o)}))}("https://www.youtube.com/iframe_api","YT","onYouTubeIframeAPIReady");this.api=new s.Player(n,{events:{onReady:()=>{var t;(0,u.A)(y,this,1),this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),1!==(0,c.A)(T,this)&&(null==(t=this.api)||t.setVolume(100*(0,c.A)(T,this))),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:t=>{console.error(t),(0,u.A)(b,this,{code:t.data,message:"YouTube iframe player error #".concat(t.data,"; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.")}),this.dispatchEvent(new Event("error"))}}});let o=!1;this.api.addEventListener("onStateChange",(t=>{var e;const n=t.data;if(n===s.PlayerState.PLAYING||n===s.PlayerState.BUFFERING){o||(o=!0,this.dispatchEvent(new Event("play")));
2(this.api.getOption("captions","tracklist")||[]).forEach((t=>{[...this.textTracks].some((e=>e.language===t.languageCode))||(0,c.A)(k,this).addTextTrack("subtitles",t.displayName,t.languageCode),this.textTracks=(0,c.A)(k,this).textTracks})),this.dispatchEvent(new Event("loadstart"))}if(n===s.PlayerState.PLAYING)this.seeking&&((0,u.A)(A,this,!1),null==(e=(0,c.A)(w,this))||e.resolve(),this.dispatchEvent(new Event("seeked"))),(0,u.A)(y,this,3),this.dispatchEvent(new Event("playing"));else if(n===s.PlayerState.PAUSED){const t=Math.abs(this.currentTime-r);!this.seeking&&t>.1&&((0,u.A)(A,this,!0),this.dispatchEvent(new Event("seeking"))),o=!1,this.dispatchEvent(new Event("pause"))}n===s.PlayerState.ENDED&&(o=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())})),this.api.addEventListener("onPlaybackRateChange",(()=>{this.dispatchEvent(new Event("ratechange"))})),this.api.addEventListener("onVolumeChange",(()=>{var t;const e=(null==(t=this.api)?void 0:t.getVolume())/100;(0,u.A)(T,this,e),this.dispatchEvent(new Event("volumechange"))})),this.api.addEventListener("onVideoProgress",(()=>{this.dispatchEvent(new Event("timeupdate"))})),await this.loadComplete;let a,r=0;
2setInterval((()=>{var t;const e=Math.abs(this.currentTime-r),n=this.buffered.end(this.buffered.length-1);this.seeking&&n>.1?((0,u.A)(A,this,!1),null==(t=(0,c.A)(w,this))||t.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&e>.1&&((0,u.A)(A,this,!0),this.dispatchEvent(new Event("seeking"))),r=this.currentTime}),50);const l=setInterval((()=>{const t=this.buffered.end(this.buffered.length-1);t>=this.duration&&(clearInterval(l),(0,u.A)(y,this,4)),a!=t&&(a=t,this.dispatchEvent(new Event("progress")))}),100)}async attributeChangedCallback(t,e,n){if(e!==n)switch(t){case"src":case"autoplay":case"controls":case"loop":case"playsinline":this.load()}}async play(){var t;return(0,u.A)(w,this,null),await this.loadComplete,null==(t=this.api)||t.playVideo(),function(t){return(e=(e,n)=>{let i;t.addEventListener(e,i=()=>{t.removeEventListener(e,i),n()})},function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return new Promise((t=>{e(...n,(function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n.length>1?t(n):t(n[0])}))}))})("playing");var e}(this)}async pause(){var t;return await this.loadComplete,null==(t=this.api)?void 0:t.pauseVideo()}get seeking(){return(0,c.A)(A,this)}get readyState(){return(0,c.A)(y,this)}get src(){return this.getAttribute("src")}set src(t){this.src!=t&&this.setAttribute("src",t)}get error(){return(0,c.A)(b,this)}get paused(){var t,e;return this.isLoaded?[-1,0,2,5].includes(null==(e=null==(t=this.api)?void 0:t.getPlayerState)?void 0:e.call(t)):!this.autoplay}get duration(){var t,e,n;return null!==(t=null==(n=null==(e=this.api)?void 0:e.getDuration)?void 0:n.call(e))&&void 0!==t?t:NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",Boolean(t))}get buffered(){var t,e;if(!this.isLoaded)return W();const n=(null==(t=this.api)?void 0:t.getVideoLoadedFraction())*(null==(e=this.api)?void 0:e.getDuration());return n>0?W(0,n):W()}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",Boolean(t))}get currentTime(){var t,e,n;return null!==(t=null==(n=null==(e=this.api)?void 0:e.getCurrentTime)?void 0:n.call(e))&&void 0!==t?t:0}set currentTime(t){this.currentTime!=t&&((0,u.A)(w,this,new I),this.loadComplete.then((()=>{var e,n;null==(e=this.api)||e.seekTo(t,!0),this.paused&&(null==(n=(0,c.A)(w,this))||n.then((()=>{var t;(0,c.A)(w,this)&&(null==(t=this.api)||t.pauseVideo())})))})))}set defaultMuted(t){this.defaultMuted!=t&&this.toggleAttribute("muted",Boolean(t))}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",Boolean(t))}set muted(t){this.muted!=t&&this.loadComplete.then((()=>{var e,n;t?null==(e=this.api)||e.mute():null==(n=this.api)||n.unMute()}))}get muted(){var t,e;return this.isLoaded?null==(e=null==(t=this.api)?void 0:t.isMuted)?void 0:e.call(t):this.defaultMuted}get playbackRate(){var t,e,n;return null!==(t=null==(n=null==(e=this.api)?void 0:e.getPlaybackRate)?void 0:n.call(e))&&void 0!==t?t:1}set playbackRate(t){this.playbackRate!=t&&this.loadComplete.then((()=>{var e;null==(e=this.api)||e.setPlaybackRate(t)}))}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.playsInline!=t&&this.toggleAttribute("playsinline",Boolean(t))}get poster(){return this.getAttribute("poster")}set poster(t){this.poster!=t&&this.setAttribute("poster","".concat(t))}set volume(t){this.volume!=t&&((0,u.A)(T,this,t),this.loadComplete.then((()=>{var e;null==(e=this.api)||e.setVolume(100*t)})))}get volume(){var t;return this.isLoaded?(null==(t=this.api)?void 0:t.getVolume())/100:(0,c.A)(T,this)}}function M(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}function P(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function S(t){return String(new URLSearchParams(function(t){let e={};for(let n in t){let i=t[n];!0===i||""===i?e[n]=1:!1===i?e[n]=0:null!=i&&(e[n]=i)}return e}(t)))}(0,l.A)(C,"getTemplateHTML",v),(0,l.A)(C,"shadowRootOptions",{mode:"open"}
2),(0,l.A)(C,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);const R={};const N=t=>new Promise((e=>setTimeout(e,t)));class I extends Promise{constructor(){let t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};super(((i,s)=>{n(i,s),t=i,e=s})),this.resolve=t,this.reject=e}}function W(t,e){return Array.isArray(t)?x(t):x(null==t||null==e||0===t&&0===e?[[0,0]]:[[t,e]])}function x(t){return Object.defineProperties(t,{start:{value:e=>t[e][0]},end:{value:e=>t[e][1]}}),t}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",C);var O=C,V=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),H={className:"class",htmlFor:"for"};function _(t){return t.toLowerCase()}function j(t){return"boolean"===typeof t?t?"":void 0:"function"===typeof t||"object"===typeof t&&null!==t?void 0:t}function B(t,e,n){var i,s;t[e]=n,null==n&&e in(null!==(i=null==(s=globalThis.HTMLElement)?void 0:s.prototype)&&void 0!==i?i:{})&&t.removeAttribute(e)}var D=function(t){let{react:e,tagName:n,elementClass:i,events:o,displayName:a,defaultProps:r,toAttributeName:l=_,toAttributeValue:u=j}=t;const c=Number.parseInt(e.version)>=19,h=e.forwardRef(((t,a)=>{var h,d;const p=e.useRef(null),v=e.useRef(new Map),f={},m={},g={},y={};for(const[e,n]of Object.entries(t)){var A,w;if(V.has(e)){g[e]=n;continue}const t=l(null!==(A=H[e])&&void 0!==A?A:e);if(i.prototype&&e in i.prototype&&!(e in(null!==(w=null==(h=globalThis.HTMLElement)?void 0:h.prototype)&&void 0!==w?w:{}))&&!(null==(d=i.observedAttributes)?void 0:d.some((e=>e===t)))){y[e]=n;continue}if(e.startsWith("on")){f[e]=n;continue}const s=u(n);if(t&&null!=s&&(m[t]=String(s),c||(g[t]=s)),t&&c){const e=j(n);g[t]=s!==e?s:n}}if("undefined"!==typeof window){for(const t in f){var b;const n=f[t],i=t.endsWith("Capture"),s=(null!==(b=null==o?void 0:o[t])&&void 0!==b?b:t.slice(2).toLowerCase()).slice(0,i?-7:void 0);e.useLayoutEffect((()=>{const t=null==p?void 0:p.current;if(t&&"function"===typeof n)return t.addEventListener(s,n,i),()=>{t.removeEventListener(s,n,i)}}),[null==p?void 0:p.current,n])}e.useLayoutEffect((()=>{if(null===p.current)return;const t=new Map;for(const e in y)B(p.current,e,y[e]),v.current.delete(e),t.set(e,y[e]);for(const[e,n]of v.current)B(p.current,e,void 0);v.current=t}))}if("undefined"===typeof window&&(null==i?void 0:i.getTemplateHTML)&&(null==i?void 0:i.shadowRootOptions)){const{mode:n,delegatesFocus:s}=i.shadowRootOptions,o=e.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:s,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(m,t)},key:"ce-la-react-ssr-template-shadow-root"});g.children=[o,g.children]}return e.createElement(n,(0,s.A)((0,s.A)((0,s.A)({},r),g),{},{ref:e.useCallback((t=>{p.current=t,"function"===typeof a?a(t):null!==a&&(a.current=t)}),[a])}),g.children)}));return h.displayName=null!==a&&void 0!==a?a:i.name,h}({react:o,tagName:"youtube-video",elementClass:O,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":_(t)})}}]);
3//# sourceMappingURL=reactPlayerYouTube.22e89d42.chunk.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.