"use strict";(globalThis.webpackChunk_flippingbook_publication=globalThis.webpackChunk_flippingbook_publication||[]).push([[37],{6941:(t,e,o)=>{o.d(e,{findYouTubePoster:()=>c,resolveYouTubeVideoId:()=>s});const n=/(?:youtu\.be|youtube|youtube\.com|youtube-nocookie\.com)\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|)((?:\w|-){11})/,u=new Map,i=new Map;function s(t){return t.match(n)?.[1]}async function c(t,e){if(u.has(t))return u.get(t);if(i.has(t))return i.get(t);const o=new Promise((async o=>{const n=["maxresdefault","sddefault","hqdefault"];for(const i of n)for(const n of[!0,!1]){const s=a(t,i,n);if((await fetch(s,{mode:"no-cors",signal:e.signal})).status<400)return u.set(t,s),void o(s)}})).catch((()=>"")).finally((()=>i.delete(t)));return i.set(t,o),o}function a(t,e,o){return`https://i.ytimg.com/${o?"vi_webp":"vi"}/${t}/${e}.${o?"webp":"jpg"}`}}}]);