1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6397],{6397:function(e,t,n){n.d(t,{findYouTubePoster:function(){return r},resolveYouTubeVideoId:function(){return a}});let o=/(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)(?:\/shorts)?\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/,u=new Map,c=new Map;function a(e){var t;return null===(t=e.match(o))||void 0===t?void 0:t[1]}async function r(e,t){if(u.has(e))return u.get(e);if(c.has(e))return c.get(e);let n=new Promise(async n=>{for(let o of["maxresdefault","sddefault","hqdefault"])for(let c of[!0,!1]){let a="https://i.ytimg.com/".concat(c?"vi_webp":"vi","/").concat(e,"/").concat(o,".").concat(c?"webp":"jpg");if((await fetch(a,{mode:"no-cors",signal:t.signal})).status<400){u.set(e,a),n(a);return}}}).catch(()=>"").finally(()=>c.delete(e));return c.set(e,n),n}}}]);
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.