1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[616],{12636:(e,t,n)=>{"use strict";n.d(t,{hV:()=>eg,BE:()=>eS,Wu:()=>i});let s="playerseekstep",r={backward:"-",forward:"+"},i=(e,t)=>{e.trigger({direction:t,type:s})};var l=n(78547),a=n(59956),o=n(34036),d=n(79081),c=n(61427),u=n(41235),h=n(46567),p=n(67517),m=n(91823);let f=e=>e?e.querySelector('[data-icon-root], [data-testid="icon"]'):null,y=(e,t)=>{if(!e)return;let n=t.match(/_(\d+)$/),s=n?Number.parseInt(n[1],10):24,r=e.getAttribute("width"),i=e.getAttribute("height");e.setAttribute("data-icon",t),e.setAttribute("width",r??String(s)),e.setAttribute("height",i??String(s));let l=e.querySelector("use");l||(l=document.createElementNS("http://www.w3.org/2000/svg","use"),e.replaceChildren(l));let a=(0,m.H)(t);l.setAttribute("href",a),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a)};function g({children:e,onReady:t}){let n=(0,c.useRef)(!1);return(0,c.useLayoutEffect)(()=>{n.current||(n.current=!0,t?.())},[t]),(0,l.jsx)(l.Fragment,{children:e})}let v=u.default.getComponent("Component");class b extends v{getPlayerSafe(){let e=this.player();return!e||e.isDisposed()?null:e}getCurrentIcon(){let e=this.getPlayerSafe();return e?e.paused()?"play_24":"pause_24":"play_24"}handleMounted(){this.iconEl=f(this.el()),this.syncIcon()}createEl(){let e=u.default.dom.createEl("div",{className:"vjs-center-play-wrapper"});return this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)(h.$,{asChild:!0,className:"vjs-center-play",variant:"frost-glass",iconName:this.getCurrentIcon(),onClick:e=>this.toggle(e),children:(0,l.jsx)("span",{})})})),this.attachPlayerEvents(),e}attachPlayerEvents(){let e=this.getPlayerSafe();e&&!this.syncIconHandler&&(this.syncIconHandler=()=>this.syncIcon(),e.on("play",this.syncIconHandler),e.on("pause",this.syncIconHandler),e.on("ended",this.syncIconHandler))}toggle(e){e.preventDefault(),e.stopPropagation();let t=this.getPlayerSafe();t&&(t.paused()?t.play()?.catch(()=>null):t.pause())}syncIcon(){y(this.iconEl,this.getCurrentIcon())}dispose(){let e=this.getPlayerSafe();e&&this.syncIconHandler&&(e.off("play",this.syncIconHandler),e.off("pause",this.syncIconHandler),e.off("ended",this.syncIconHandler)),this.syncIconHandler=void 0,this.iconEl=null;let t=this.root;t&&queueMicrotask(()=>t.unmount()),super.dispose()}constructor(...e){super(...e),this.iconEl=null}}var I=n(10934);let C="root",E="quality",S=[.25,.5,.75,1,1.25,1.5,1.75,2],_=[2160,1440,1080,720,480,360,240,144];var k=n(46868),T=n.n(k);let x="auto",j=new WeakMap,w=e=>{if(e.isDisposed())return null;let t=e.qualityLevels;if("function"!=typeof t)return null;try{return t.call(e)}catch{return null}},N=e=>{let t=w(e);return t?Array.from(t):[]},M=e=>{let t=e.height&&e.width?Math.min(e.height,e.width):e.height??e.width;return t?_.reduce((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e,_[0]):null},P=(e,t)=>{let n=N(e),s=new Map;return n.forEach((e,t)=>{let r,i,l=M(e),a=null!==l?`quality-${l}`:`id-${e.id??t}`,o={id:a,label:null!==(r=M(e))?`${r}p`:e.id??`Level ${t+1}`,levelIndex:t,sortValue:null!==(i=M(e))?i:0},d=s.get(a);if(!d)return void s.set(a,o);let c=n[d.levelIndex??-1],u=c?.bitrate??0,h=e.bitrate??0,p=(c?.height??0)*(c?.width??0),m=(e.height??0)*(e.width??0);(h>u||h===u&&m>p)&&s.set(a,o)}),[{id:x,label:t.autoQualityLabel,levelIndex:null,sortValue:1/0},...Array.from(s.values()).sort((e,t)=>t.sortValue-e.sortValue)]},D=e=>j.get(e)??x,L=(e,t)=>{j.set(e,t)},H=(e,t,n)=>{let s=N(e);if(!s.length)return;if(t===x)return void s.forEach(e=>{e.enabled=!0});let r=P(e,n).find(e=>e.id===t);r&&null!==r.levelIndex?s.forEach((e,t)=>{e.enabled=t===r.levelIndex}):s.forEach(e=>{e.enabled=!0})},A=({labels:e,player:t})=>{let n,s=P(t,e);return{qualityOptions:s,selectedQualityOptionId:(n=D(t),s.some(e=>e.id===n)?n:(L(t,x),x))}},B=({labels:e,player:t})=>{let[n,s]=(0,c.useState)(()=>A({labels:e,player:t}));return(0,c.useEffect)(()=>{if(t.isDisposed())return;let n=w(t),r=()=>{if(t.isDisposed())return;let n=D(t);n!==x&&H(t,n,e),s(A({labels:e,player:t}))};return r(),t.on("loadstart",r),t.on("loadedmetadata",r),n?.on("addqualitylevel",r),n?.on("removequalitylevel",r),()=>{t.isDisposed()||(t.off("loadstart",r),t.off("loadedmetadata",r),n?.off("addqualitylevel",r),n?.off("removequalitylevel",r))}},[t,e]),{...n,setQualityState:s}},F=({labels:e,player:t,onOpen:n})=>{let{qualityOptions:s,selectedQualityOptionId:r}=B({labels:e,player:t}),i=s.find(e=>e.id===r);return s.length<=1?null:(0,l.jsxs)("button",{className:T().menuItem,type:"button",onClick:n,children:[(0,l.jsx)(I.In,{className:T().menuItemIcon,name:"settings_24"}),(0,l.jsxs)("span",{className:T().menuItemLabels,children:[(0,l.jsx)(I.o5,{variant:"h9",children:e.qualityLabel}),(0,l.jsx)(I.o5,{variant:"c2",children:i?.label??e.autoQualityLabel})]})]})},O=({labels:e,player:t})=>{let{qualityOptions:n,selectedQualityOptionId:s,setQualityState:r}=B({labels:e,player:t});return n.map(n=>{let i=s===n.id;return(0,l.jsxs)("button",{className:T().optionItem,type:"button",onClick:()=>{L(t,n.id),H(t,n.id,e),r(A({labels:e,player:t}))},children:[(0,l.jsx)(I.o5,{variant:"h9",children:n.label}),i&&(0,l.jsx)(I.In,{className:T().optionItemCheck,name:"ok_24"})]},n.id)})},R=(e,t)=>1===e?t.normalSpeedLabel:String(e),G=e=>{let[t,n]=(0,c.useState)(e.playbackRate?.()??1);return(0,c.useEffect)(()=>{let t=()=>{n(e.playbackRate?.()??1)};return e.on("ratechange",t),()=>{e.off("ratechange",t)}},[e]),t},$=({labels:e,player:t})=>{let n=G(t);return(0,l.jsx)(I.o5,{variant:"c2",children:R(n,e)})},q=({labels:e,player:t})=>{let n=G(t);return S.map(s=>{let r=.01>Math.abs(n-s);return(0,l.jsxs)("button",{className:T().optionItem,type:"button",onClick:()=>{t.playbackRate(s)},children:[(0,l.jsx)(I.o5,{variant:"h9",children:R(s,e)}),r&&(0,l.jsx)(I.In,{className:T().optionItemCheck,name:"ok_24"})]},s)})},U=u.default.getComponent("Component"),V=({labels:e,player:t})=>{let n=(0,o.Ub)("(max-width: 50em)"),[s,r]=(0,c.useState)(()=>!t.isDisposed()&&t.isFullscreen()),[i,a]=(0,c.useState)(!1),[u,h]=(0,c.useState)(C),p=(0,c.useRef)(null),m=n&&!s;(0,c.useEffect)(()=>
1{if(t.isDisposed())return;let e=()=>{t.isDisposed()||r(t.isFullscreen())};return t.on("fullscreenchange",e),()=>{t.isDisposed()||t.off("fullscreenchange",e)}},[t]),(0,c.useEffect)(()=>{if(!i||m)return;let e=e=>{let t=e.target;t instanceof Node&&(p.current?.contains(t)||(a(!1),h(C)))},t=e=>{"Escape"===e.key&&(a(!1),h(C))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("keydown",t)}},[m,i]);let f=()=>{a(!1),h(C)},y=(0,c.useMemo)(()=>(({labels:e,player:t})=>({screenId:"speed",parentScreenId:C,title:e.speedLabel,menuItem:{iconName:"playCircle_24",title:e.speedLabel,value:(0,l.jsx)($,{labels:e,player:t})},bodyClassName:T().optionList,renderContent:()=>(0,l.jsx)(q,{labels:e,player:t})}))({labels:e,player:t}),[e,t]),g=(0,c.useMemo)(()=>(({labels:e,player:t})=>null===w(t)?null:{screenId:E,parentScreenId:C,title:e.qualityLabel,renderMenuItem:n=>(0,l.jsx)(F,{labels:e,player:t,onOpen:()=>n(E)}),bodyClassName:T().optionList,renderContent:()=>(0,l.jsx)(O,{labels:e,player:t})})({labels:e,player:t}),[e,t]),v=(0,c.useMemo)(()=>({...y?{[y.screenId]:y}:{},...g?{[g.screenId]:g}:{}}),[g,y]),b=(0,c.useMemo)(()=>({screenId:C,title:e.videoSettingsTitle,renderContent:()=>Object.values(v).map(e=>e.renderMenuItem?(0,l.jsx)(c.Fragment,{children:e.renderMenuItem(h)},e.screenId):e.menuItem?(0,l.jsxs)("button",{className:T().menuItem,type:"button",onClick:()=>h(e.screenId),children:[(0,l.jsx)(I.In,{className:T().menuItemIcon,name:e.menuItem.iconName}),(0,l.jsxs)("span",{className:T().menuItemLabels,children:[(0,l.jsx)(I.o5,{variant:"h9",children:e.menuItem.title}),(0,l.jsx)(I.o5,{variant:"c2",children:e.menuItem.value})]})]},e.screenId):null)}),[e.videoSettingsTitle,v]),S=(0,c.useMemo)(()=>({[C]:b,...v}),[b,v]),_=S[u]??b,k=_.parentScreenId,x=void 0!==k,j=k?S[k]?.title??e.videoSettingsTitle:e.videoSettingsTitle,N=()=>{k&&h(k)},M=[...x?[{isLoading:!1,label:e.backLabel,onClick:N}]:[],{isLoading:!1,label:e.closeLabel,onClick:f}],P=(0,l.jsx)("div",{className:(0,d.A)(T().body,!m&&T().desktopBody,_.bodyClassName),children:_.renderContent()});return(0,l.jsxs)("div",{ref:p,className:T().root,children:[(0,l.jsx)(I.$n,{"aria-expanded":i,"aria-label":e.videoSettingsTitle,className:T().triggerButton,type:"button",variant:"frost-glass","aria-haspopup":"dialog",borderRadius:"round",iconName:"settings_24",onClick:()=>{i?f():(h(C),a(!0))}}),m?(0,l.jsx)(I.Xn,{isOpen:i,title:_.title,bottomButtons:M,contentClassName:T().sheetContent,contentPadding:!1,expandToHeight:_.bottomSheetExpandToHeight,onClose:f,onOpenAutoFocus:e=>e.preventDefault(),children:(0,l.jsx)("section",{className:T().sheetScreen,children:P})}):i&&(0,l.jsx)("div",{"aria-hidden":!i,"aria-label":_.title,className:T().panel,role:"dialog",children:(0,l.jsxs)("section",{className:T().screen,children:[(0,l.jsxs)("div",{className:T().header,children:[x&&(0,l.jsx)(I.$n,{"aria-label":j,className:T().iconButton,type:"button",variant:"frost-glass",borderRadius:"round",iconName:"chevronLeft_16",onClick:N}),(0,l.jsx)(I.o5,{variant:"h9",children:_.title})]}),P]})})]})};class W extends U{createEl(){this.disposed=!1;let e=u.default.dom.createEl("div",{className:T().control});return this.root=(0,p.createRoot)(e),this.render(),e}render(){if(this.disposed)return;let{labels:e}=this.options_,t=this.player();!e||!t||t.isDisposed()?this.root?.render(null):this.root?.render((0,l.jsx)(V,{labels:e,player:t}))}dispose(){this.disposed=!0;let e=this.root;this.root=void 0,e&&e.unmount(),super.dispose()}constructor(...e){super(...e),this.disposed=!1}}let X=u.default.getComponent("FullscreenToggle");class Y extends X{constructor(e,t){super(e,t),this.iconEl=null,this.enable()}getCurrentIcon(){let e=this.getPlayer();return!e||e.isDisposed()?"maximize_24":e.isFullscreen()?"minimize_24":"maximize_24"}handleMounted(){this.iconEl=f(this.el()),this.syncIcon()}createEl(){let e=super.createEl();return e.innerHTML="",this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)(h.$,{asChild:!0,className:"vjs-glass-button",variant:"frost-glass",iconName:this.getCurrentIcon(),children:(0,l.jsx)("span",{})})})),e}handleClick(e){(e?.preventDefault(),e?.stopPropagation(),this.shouldUseAlternativeFullscreen())?this.overlay?this.exitAlternativeFullscreen():this.enterAlternativeFullscreen():super.handleClick(e)}handleFullscreenChange(){super.handleFullscreenChange(),this.syncIcon()}shouldUseAlternativeFullscreen(){return u.default.browser.IS_SAFARI&&!u.default.browser.IS_IOS}getPlayer(){return this.player()}getPlayerHostElement(){let e=this.player().el();return e?e.closest("[data-vjs-player]")??e:null}enterAlternativeFullscreen(){let e=this.getPlayer(),t=this.getPlayerHostElement();if(!t||this.overlay)return;let n=t.parentNode;if(!n)return;this.originalParent=n,this.originalNextSibling=t.nextSibling,this.originalDocumentOverflow=document.documentElement.style.overflow,this.originalBodyOverflow=document.body.style.overflow;let s=document.createElement("div");s.classList.add("fullscreen-overlay"),s.dataset.playerFullscreenOverlay="true",s.appendChild(t),document.body.appendChild(s),this.overlay=s,document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden",this.boundEscapeKey=e=>{"Escape"===e.key&&this.exitAlternativeFullscreen()},document.addEventListener("keydown",this.boundEscapeKey),e.isFullscreen(!0),e.trigger("fullscreenchange"),e.trigger("resize"),this.syncIcon()}exitAlternativeFullscreen(){let e=this.getPlayer(),t=this.getPlayerHostElement(),n=this.overlay,s=this.originalParent;t&&n&&s&&(this.originalNextSibling&&this.originalNextSibling.parentNode===s?s.insertBefore(t,this.originalNextSibling):s.appendChild(t)),n?.remove(),this.boundEscapeKey&&document.removeEventListener("keydown",this.boundEscapeKey),document.documentElement.style.overflow=this.originalDocumentOverflow??"",document.body.style.overflow=this.originalBodyOverflow??"",this.overlay=void 0,this.originalParent=null,this.originalNextSibling=null,this.originalDocumentOverflow=void 0,this.originalBodyOverflow=void 0,this.boundEscapeKey=void 0,e.isFullscreen(!1),e.trigger("fullscreenchange"),e.trigger("resize"),this.syncIcon()}syncIcon(){y(this.iconEl,this.getCurrentIcon())}dispose(){this.overlay&&this.exitAlternativeFullscreen(),this.iconEl=null;let e=this.root;e&&queueMicrotask(()=>e.unmount()),super.dispose()}}let z=u.default.getComponent("MuteToggle");class K extends z{getCurrentIcon(){let e=this.player();return!e||e.isDisposed()||e.muted()||0===e.volume()?"volume_slash_24":"volume_high_24"}handleMounted(){this.iconEl=f(this.el()),this.syncIcon()}createEl(){let e=super.createEl();return e.innerHTML="",this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)(h.$,{asChild:!0,className:"vjs-glass-button",variant:"frost-glass",iconName:this.getCurrentIcon(),children:(0,l.jsx)("span",{})})})),this.attachPlayerEvents(),e}attachPlayerEvents(){let e=this.player();!e||e.isDisposed()||this.syncIconHandler||(this.syncIconHandler=()=>this.syncIcon(),e.on("volumechange",this.syncIconHandler),e.on("loadstart",this.syncIconHandler))}syncIcon(){y(this.iconEl,this.getCurrentIcon())}handleClick(e){super.handleClick(e),this.syncIcon()}update(e){super.update(e),this.syncIcon()}dispose(){let e=this.player();e&&this.syncIconHandler&&(e.off("volumechange",this.syncIconHandler),e.off("loadstart",this.syncIconHandler)),this.syncIconHandler=void 0,this.iconEl=null;let t=this.root;t&&queueMicrotask(()=>t.unmount()),super.dispose()}constructor(...e){super(...e),this.iconEl=null}}let Q=u.default.getComponent("PlayToggle");class J extends Q{getCurrentIcon(){let e=this.player();return!e||e.isDisposed()||e.paused()?"play_24":"pause_24"}handleMounted(){this.iconEl=f(this.el()),this.syncPlaybackIcon()}createEl(){let e=super.createEl();return e.innerHTML="",this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)(h.$,{asChild:!0,className:"vjs-glass-button",variant:"frost-glass",iconName:this.getCurrentIcon(),children:(0,l.jsx)("span",{})})})),e}syncIconDom(e){y(this.iconEl,e)}syncPlaybackIcon(){this.syncIconDom(this.getCurrentIcon())}handlePlay(){super.handlePlay(),this.syncIconDom("pause_24")}handlePause(){super.handlePause(),this.syncIconDom("play_24")}handleEnded(){super.handleEnded(),this.syncPlaybackIcon()}dispose(){this.iconEl=null;let e=this.root;e&&queueMicrotask(()=>e.unmount()),super.dispose()}constructor(...e){super(...e),this.iconEl=null}}
1let Z=u.default.getComponent("VolumePanel");class ee extends Z{getCurrentIcon(){let e=this.player();return this.disposed||!e||e.isDisposed()||e.muted()||0===e.volume()?"volume_slash_24":"volume_high_24"}handleMounted(){this.disposed||(this.iconEl=f(this.muteButtonEl),this.syncMuteIcon())}renderMuteButton(e){this.disposed||(this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)(h.$,{asChild:!0,className:"vjs-glass-button",variant:"icon-button",iconName:this.getCurrentIcon(),children:(0,l.jsx)("span",{})})})))}cleanupMountedButton(){this.iconEl=null,this.muteButtonEl=void 0;let e=this.root;this.root=void 0,e&&setTimeout(()=>e.unmount())}ensureMuteButtonAttached(){if(this.disposed)return;let e=this.el();if(!e)return;let t=e.querySelector(".vjs-mute-control");if(!t)return;let n=this.muteButtonEl===t,s=!!this.muteButtonEl?.isConnected,r=!!this.iconEl?.isConnected;if(!n||!s||!r){if(!n){this.cleanupMountedButton(),t.innerHTML="",this.muteButtonEl=t,this.renderMuteButton(t);return}this.iconEl=f(this.muteButtonEl)}}syncMuteIcon(){this.disposed||(this.ensureMuteButtonAttached(),y(this.iconEl,this.getCurrentIcon()))}attachPlayerEvents(){let e=this.player();!e||e.isDisposed()||this.syncMuteIconHandler||(this.syncMuteIconHandler=()=>{this.syncMuteIcon()},e.on("loadstart",this.syncMuteIconHandler),e.on("volumechange",this.syncMuteIconHandler))}createEl(){this.disposed=!1;let e=super.createEl();return e.classList.add("vjs-glass-volume-panel"),this.player_.ready(()=>{this.disposed||(this.ensureMuteButtonAttached(),this.attachPlayerEvents(),this.syncMuteIcon())}),e}dispose(){this.disposed=!0;let e=this.player();e&&this.syncMuteIconHandler&&(e.off("loadstart",this.syncMuteIconHandler),e.off("volumechange",this.syncMuteIconHandler)),this.syncMuteIconHandler=void 0,this.cleanupMountedButton(),super.dispose()}constructor(...e){super(...e),this.iconEl=null,this.disposed=!1}}var et=n(38232),en=n(93553);let es=u.default.getComponent("Component"),er=({current:e,duration:t})=>(0,l.jsx)(et.g,{children:(0,l.jsx)("span",{"data-time-value":!0,children:`${(0,en.f)(e)} / ${(0,en.f)(t)}`})});class ei extends es{getTimeSnapshot(){let e=this.player();return!e||e.isDisposed()?{current:0,duration:0}:{current:e.currentTime?.()??0,duration:e.duration?.()??0}}handleMounted(){var e;this.timeValueEl=(e=this.el(),e?e.querySelector("[data-time-value]"):null),this.syncTime()}createEl(){let e=u.default.dom.createEl("div",{className:"vjs-glass-time-wrapper"}),t=this.getTimeSnapshot();return this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)(er,{current:t.current,duration:t.duration})})),this.attachPlayerEvents(),e}attachPlayerEvents(){let e=this.player();!e||e.isDisposed()||this.syncTimeHandler||(this.syncTimeHandler=()=>this.syncTime(),e.on("loadedmetadata",this.syncTimeHandler),e.on("durationchange",this.syncTimeHandler),e.on("timeupdate",this.syncTimeHandler),e.on("play",this.syncTimeHandler),e.on("pause",this.syncTimeHandler),e.on("seeked",this.syncTimeHandler))}syncTime(){var e,t;let{current:n,duration:s}=this.getTimeSnapshot();e=this.timeValueEl,t=`${(0,en.f)(n)} / ${(0,en.f)(s)}`,e&&(e.textContent=t)}dispose(){let e=this.player();e&&this.syncTimeHandler&&(e.off("loadedmetadata",this.syncTimeHandler),e.off("durationchange",this.syncTimeHandler),e.off("timeupdate",this.syncTimeHandler),e.off("play",this.syncTimeHandler),e.off("pause",this.syncTimeHandler),e.off("seeked",this.syncTimeHandler)),this.syncTimeHandler=void 0,this.timeValueEl=null;let t=this.root;t&&queueMicrotask(()=>t.unmount()),super.dispose()}constructor(...e){super(...e),this.timeValueEl=null}}n(85185),n(30953);let el=u.default.getComponent("Component");class ea extends el{createEl(){let e=u.default.dom.createEl("div",{className:"vjs-custom-error-display vjs-hidden"});return this.root=(0,p.createRoot)(e),this.player().on("error",()=>{this.render(),this.show()}),this.player().on("loadstart",()=>{this.hide()}),this.render(),e}render(){this.root?.render((0,l.jsxs)("div",{className:"custom-error-overlay-content",children:[(0,l.jsx)(I.In,{height:64,name:"mascots/mascotCry",width:64}),(0,l.jsx)(I.o5,{variant:"b2",children:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð²Ð¸Ð´ÐµÐ¾. ÐÑовеÑÑÑе Ñоединение или попÑобÑйÑе позже."})]}))}dispose(){let e=this.root;e&&queueMicrotask(()=>e.unmount()),super.dispose()}}var eo=n(19468),ed=n.n(eo);let ec=u.default.getComponent("Component"),eu=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,d.A)(ed().side,ed().backward),children:(0,l.jsxs)(I.o5,{className:ed().value,variant:"h4",component:"span",children:[r.backward,10]})}),(0,l.jsx)("div",{className:(0,d.A)(ed().side,ed().forward),children:(0,l.jsxs)(I.o5,{className:ed().value,variant:"h4",component:"span",children:[r.forward,10]})})]});class eh extends ec{constructor(e,t){super(e,t),this.accumulatedSeconds=0,this.activeDirection=null,this.activeSource=null,this.feedbackTimer=null,this.lastSeekTimestamp=0,this.pendingTap=null,this.pendingTapTimer=null,this.sequenceStartTime=null,this.tech=null,this.touchDirection=null,this.handleTouchStart=e=>{let t=e.touches.item(0);if(1!==e.touches.length||!t){this.touchDirection=null;return}let n=this.player().el().getBoundingClientRect(),s=t.clientX-n.left,r=.375*n.width;if(s<=r){this.touchDirection="backward";return}if(s>=n.width-r){this.touchDirection="forward";return}this.touchDirection=null},this.handleTouchTap=()=>{let e=this.touchDirection;if(this.touchDirection=null,!e){this.clearPendingTap(),"touch"===this.activeSource&&this.resetFeedback();return}let t=performance.now(),n=this.isActiveSequence(e,t,"touch"),s=this.pendingTap?.direction===e&&t-this.pendingTap.timestamp<=300;if(n||s){this.clearPendingTap(),this.seek(e,t,"touch");return}this.activeDirection&&this.resetFeedback(),this.setPendingTap({direction:e,timestamp:t})},this.handleSeekStepEvent=e=>{("backward"===e.direction||"forward"===e.direction)&&this.seek(e.direction,performance.now(),"keyboard")},this.root=(0,p.createRoot)(this.el()),this.root.render((0,l.jsx)(eu,{})),this.tech=e.tech(!0),this.tech.on("touchstart",this.handleTouchStart),this.tech.on("tap",this.handleTouchTap),e.on(s,this.handleSeekStepEvent)}createEl(){let e=u.default.dom.createEl("div",{className:`${ed().overlay} vjs-seek-step-overlay`});return e.setAttribute("aria-live","polite"),e.setAttribute("aria-label",""),e}seek(e,t,n){"keyboard"===n&&this.clearPendingTap(),this.isActiveSequence(e,t,n)||(this.resetFeedback(),this.activeDirection=e,this.activeSource=n),this.applySeek(e,t,n)}applySeek(e,t,n){let s=this.getPlayerSafe();if(!s)return;let r=(e=>{let t=e.currentTime();if("number"!=typeof t||!Number.isFinite(t))return null;let n=e.duration();if("number"==typeof n&&Number.isFinite(n))return{currentTime:t,rangeEnd:n,rangeStart:0};let s=e.seekable();if(!s.length)return null;let r=s.start(0),i=s.end(s.length-1);return Number.isFinite(r)&&Number.isFinite(i)?{currentTime:t,rangeEnd:i,rangeStart:r}:null})(s);if(!r)return;let{currentTime:i,rangeEnd:l,rangeStart:a}=r,o=this.sequenceStartTime??i,d="forward"===e?Math.max(0,l-o):Math.max(0,o-a),c=Math.min(this.accumulatedSeconds+("touch"===n?10:5),d);c<=0?this.resetFeedback():(s.currentTime("forward"===e?o+c:o-c),s.userActive(!0),this.activeDirection=e,this.accumulatedSeconds=c,this.lastSeekTimestamp=t,this.sequenceStartTime=o,this.show
1Feedback(e))}showFeedback(e){let t=this.el(),n="forward"===e?ed().forward:ed().backward,s=t.querySelector(`.${n} .${ed().value}`),i=Math.max(1,Math.round(this.accumulatedSeconds)),l=`${r[e]}${i}`,a="odd"===t.dataset.pulse?"even":"odd";t.dataset.activeDirection=e,t.dataset.pulse=a,t.setAttribute("aria-label",l),s&&(s.textContent=l),null!==this.feedbackTimer&&window.clearTimeout(this.feedbackTimer),this.feedbackTimer=window.setTimeout(()=>{this.resetFeedback()},700)}setPendingTap(e){this.clearPendingTap(),this.pendingTap=e,this.pendingTapTimer=window.setTimeout(()=>{this.pendingTap===e&&this.clearPendingTap()},300)}isActiveSequence(e,t,n){return this.activeSource===n&&this.activeDirection===e&&t-this.lastSeekTimestamp<=700}clearPendingTap(){null!==this.pendingTapTimer&&(window.clearTimeout(this.pendingTapTimer),this.pendingTapTimer=null),this.pendingTap=null}resetFeedback(){let e=this.el();null!==this.feedbackTimer&&(window.clearTimeout(this.feedbackTimer),this.feedbackTimer=null),e&&(delete e.dataset.activeDirection,delete e.dataset.pulse,e.setAttribute("aria-label","")),this.activeDirection=null,this.activeSource=null,this.accumulatedSeconds=0,this.lastSeekTimestamp=0,this.sequenceStartTime=null}getPlayerSafe(){let e=this.player();return!e||e.isDisposed()?null:e}dispose(){let e=this.getPlayerSafe();this.clearPendingTap(),this.resetFeedback(),this.tech&&(this.tech.off("touchstart",this.handleTouchStart),this.tech.off("tap",this.handleTouchTap),this.tech=null),e&&e.off(s,this.handleSeekStepEvent);let t=this.root;t&&queueMicrotask(()=>t.unmount()),super.dispose()}}let ep=["mousemove","mousedown","mouseup","pointermove","pointerdown","touchmove","touchstart","keydown"];u.default.registerComponent("CustomErrorDisplay",ea),u.default.registerComponent("SeekStepOverlay",eh);let em=({activityTargetRef:e,className:t,sources:s,poster:r,controlsConfig:i,onInstance:o,mountVideoTo:h,autoplay:p,loop:m,videoId:f,seekStepControls:y=!1,inactivityTimeout:g,retryOnError:v=!1,retryOnErrorAttempts:b=a._W,retryOnErrorDelayMs:I=a.sO,sourceMimeType:C,overlayComponents:E})=>{let S=(0,c.useRef)(null),_=(0,c.useRef)(null),k=(0,c.useRef)(o),T=(0,c.useRef)({inProgress:!1,attempts:0}),x=(0,c.useRef)(null),[j,w]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{k.current=o},[o]),(0,c.useEffect)(()=>{S.current&&document.body.contains(S.current)?w(!0):w(!1)},[]),(0,c.useEffect)(()=>{if(!j||!S.current||!document.body.contains(S.current))return;u.default.getPlugin("qualityLevels")||n(95204);let t=s?.filter(Boolean).some(e=>{let t=e.split("?")[0].toLowerCase();return t.endsWith(".m3u8")||t.endsWith(".mpd")})??!1,l=s?.filter(Boolean).map(e=>{let t=(e=>{if(!e)return;let t=e.split("?")[0].toLowerCase();return t.endsWith(".m3u8")?"application/x-mpegURL":t.endsWith(".mpd")?"application/dash+xml":t.endsWith(".webm")?"video/webm":t.endsWith(".ogg")||t.endsWith(".ogv")?"video/ogg":t.endsWith(".mp4")?"video/mp4":void 0})(e)??C;return t?{src:e,type:t}:{src:e}})??[];if(!l.length)return;let a={controls:!0,fill:!0,inactivityTimeout:g,controlBar:{children:i},bigPlayButton:!1,preload:"metadata",responsive:!0,sources:l,poster:r,autoplay:p,loop:m,...t?{html5:{nativeAudioTracks:!1,nativeVideoTracks:!1,vhs:{overrideNative:!u.default.browser.IS_SAFARI,useDevicePixelRatio:!0,limitRenditionByPlayerDimensions:!0}}}:{}},o=(0,u.default)(S.current,a);_.current=o,x.current=i,k.current?.(o,f);let d=((e,t={})=>{let n=t.inactivityTimeout??3e3;if(n<=0)return()=>void 0;let s={capture:!0,passive:!0},r=e.el(),i=new Set,l=new Set,a=null,o=null,d=null,c=null,u=!1,h=()=>{null!==o&&(window.clearTimeout(o),o=null)},p=()=>{if(!(u||e.isDisposed())){let t;if((t=e.el())&&t.querySelector('.vjs-glass-bar:hover, .vjs-glass-seek-bar:hover, .vjs-glass-top-bar > *:hover, .vjs-center-play:hover, .vjs-menu:hover, .vjs-volume-panel:hover, .vjs-control:focus-within, [role="dialog"]:hover, [role="dialog"]:focus-within'))return void m();e.userActive(!1)}};function m(){h(),o=window.setTimeout(p,n)}let f=t=>{if(!(u||e.isDisposed())){if(t&&t instanceof MouseEvent&&("mousemove"===t.type||"pointermove"===t.type)){if(t.screenX===d&&t.screenY===c)return;d=t.screenX,c=t.screenY}t&&("touchstart"===t.type||"pointerdown"===t.type&&"u">typeof PointerEvent&&t instanceof PointerEvent&&"touch"===t.pointerType)&&t.target instanceof Element&&t.target.closest(".vjs-tech")||(e.reportUserActivity(t??{t
1ype:"useractive"}),e.userActive(!0),m())}},y=e=>{!e||l.has(e)||(ep.forEach(t=>{e.addEventListener(t,f,s)}),l.add(e))},g=e=>{e&&(i.add(e),y(e))},v=e=>{ep.forEach(t=>{e.removeEventListener(t,f,s)}),l.delete(e)},b=()=>{if(a?.(),a=null,!e.isFullscreen())return;let t=new Set([document,window]),n=document.fullscreenElement;n&&t.add(n),t.forEach(y),a=()=>{t.forEach(e=>{i.has(e)||v(e)})}},I=()=>f({type:"play"}),C=()=>{h(),e.userActive(!0)};function E(){!u&&(u=!0,h(),a?.(),l.forEach(v),e.isDisposed()||(e.off("play",I),e.off("pause",C),e.off("ended",C),e.off("fullscreenchange",b)))}return g(r),g(t.activityTarget),e.on("play",I),e.on("pause",C),e.on("ended",C),e.on("fullscreenchange",b),e.one("dispose",()=>{E()}),f(),b(),E})(o,{activityTarget:e?.current,inactivityTimeout:g}),c=()=>{let e=o.tech(!0)?.el(),t=o.getChild("LoadingSpinner")?.el();return{tech:e,loader:t,errorDisplay:o.getChild("CustomErrorDisplay")?.el(),posterElement:o.getChild("PosterImage")?.el()}},w=()=>{let e=o.isFullscreen()?o.el():h?.current;e&&(e=>{let{tech:t,loader:n,errorDisplay:s,posterElement:r}=c();e&&(t&&!e.contains(t)&&(t.classList.add("embedded-tech"),e.appendChild(t)),n&&!e.contains(n)&&e.appendChild(n),s&&!e.contains(s)&&e.appendChild(s),r&&!e.contains(r)&&(r.classList.add("poster-embedded"),e.appendChild(r)),o.trigger("resize"))})(e)},N=()=>{h?.current&&(w(),o.on("fullscreenchange",w))},M=!1,P=()=>{let{tech:e,posterElement:t}=c();o.addClass("vjs-controls-before-start"),o.addClass("vjs-poster-visible"),e?.classList.add("before-play"),t?.classList.remove("vjs-hidden")},D=()=>{M=!1;let{tech:e,posterElement:t}=c();o.addClass("vjs-controls-before-start"),o.removeClass("vjs-poster-visible"),e?.classList.remove("before-play"),t?.classList.add("vjs-hidden")},L=()=>{M=!0,P()},H=()=>{M&&!o.ended()&&D()},A=e=>{if(!(e instanceof MouseEvent)||0===e.detail||!(e.target instanceof Element))return;let t=e.target.closest('button, [role="button"]');t instanceof HTMLElement&&t.blur()},B=e=>e.stopPropagation();if(o.ready(()=>{o.addChild("CustomErrorDisplay"),y&&!o.getChild("SeekStepOverlay")&&o.addChild("SeekStepOverlay"),E?.forEach(e=>{o.getChild(e)||o.addChild(e)}),requestAnimationFrame(N),r?P():D(),o.el()?.addEventListener("click",A,{capture:!0}),o.el()?.addEventListener("click",B),o.reportUserActivity({type:"useractive"})}),o.on("play",D),o.on("ended",L),o.on("seeked",H),v&&l.length){let e=()=>{T.current={inProgress:!1,attempts:0}},t=()=>{let{attempts:e,inProgress:t}=T.current;e>=b||t||(T.current={inProgress:!0,attempts:e+1},o.error(void 0),o.src(l),o.load(),p&&o.play()?.catch(()=>null),setTimeout(()=>{T.current={inProgress:!1,attempts:T.current.attempts}},I))};o.on("loadeddata",e),o.on("error",t),o.one("dispose",()=>{o.off("loadeddata",e),o.off("error",t)})}return()=>{let e=_.current;e&&!e.isDisposed()&&(d(),e.off("fullscreenchange",w),e.off("play",D),e.off("ended",L),e.off("seeked",H),e.el()?.removeEventListener("click",A,{capture:!0}),e.el()?.removeEventListener("click",B),e.dispose()),_.current=null,x.current=null,T.current={inProgress:!1,attempts:0}}},[j,t,h,e]),(0,c.useEffect)(()=>{let e=_.current;!e||e.isDisposed()||x.current!==i&&e.ready(()=>{if(!e.isDisposed()){let t;(t=e.getChild("ControlBar"))&&([...t.children()].forEach(n=>{t.removeChild(n);if(!n.isDisposed()){let t=()=>{n.isDisposed()||n.dispose(),e.isDisposed()||e.off("dispose",t)};e.one("dispose",t),e.ready(t)}}
1),i.forEach((e,n)=>{if("string"==typeof e)return void t.addChild(e,{},n);if("object"!=typeof e||null===e||"string"!=typeof e.name)return;let{name:s,...r}=e;t.addChild(s,r,n)}),e.trigger("resize"),e.reportUserActivity({type:"useractive"})),x.current=i}})},[i]),(0,c.useEffect)(()=>{if(_.current&&(_.current.poster(r),!r)){let e=_.current.tech(!0)?.el(),t=_.current.getChild("PosterImage")?.el();_.current.removeClass("vjs-poster-visible"),e?.classList.remove("before-play"),t?.classList.add("vjs-hidden")}},[r]),(0,l.jsx)("div",{"data-vjs-player":!0,className:"player-wrapper-layout-effect",children:(0,l.jsx)("video",{playsInline:!0,ref:S,className:(0,d.A)("video-js",t),poster:r,children:(0,l.jsx)("track",{kind:"captions"})})})};var ef=n(57706),ey=n.n(ef);u.default.registerComponent("GlassTopBarContainer",class extends u.default.getComponent("Component"){createEl(){return u.default.dom.createEl("div",{className:"vjs-glass-top-bar"})}}),u.default.registerComponent("GlassButtonsContainer",class extends u.default.getComponent("Component"){createEl(){return u.default.dom.createEl("div",{className:"vjs-glass-bar"})}}),u.default.registerComponent("GlassSeekBarContainer",class extends u.default.getComponent("Component"){createEl(){return u.default.dom.createEl("div",{className:"vjs-glass-seek-bar"})}}),u.default.registerComponent("GlassPlayToggleButton",J),u.default.registerComponent("GlassFullscreenButton",Y),u.default.registerComponent("GlassVolumePanel",ee),u.default.registerComponent("GlassTimeDisplay",ei),u.default.registerComponent("FrostGlassPlayToggleButton",b),u.default.registerComponent("FrostGlassSettings",W),u.default.registerComponent("GlassMuteToggleButton",K);let eg=e=>{let{withMeta:t,controls:n,centerPlay:s,isGallery:r,settingsLabels:i,className:u,...h}=e,p=(0,o.Ub)("(max-width: 50em)"),m=s??(p||r),f=(0,c.useMemo)(()=>((e={},t={})=>{let n=!!t.centerPlay,s=[],r=[];return e.mute&&r.push("GlassMuteToggleButton"),e.play&&!n&&r.push("GlassPlayToggleButton"),e.volume&&r.push("GlassVolumePanel"),e.time&&r.push("GlassTimeDisplay"),e.settings&&s.push({labels:t.settingsLabels,name:"FrostGlassSettings"}),e.fullscreen&&r.push("GlassFullscreenButton"),[...s.length?[{name:"GlassTopBarContainer",children:s}]:[],...n&&e.play?["FrostGlassPlayToggleButton"]:[],...r.length?[{name:"GlassButtonsContainer",children:r}]:[],...e.seekBar?[{name:"GlassSeekBarContainer",children:["SeekBar"]}]:[]]})(n,{centerPlay:m,settingsLabels:i}),[n,i,m]);return(0,l.jsx)(em,{...h,className:(0,d.A)(ey().contentPlayer,u,t&&ey().vertical,{"vertical-video":t}),controlsConfig:f,inactivityTimeout:a.We})},ev=u.default.getComponent("PlayToggle");class eb extends ev{getCurrentIcon(){let e=this.player();return!e||e.isDisposed()||e.paused()?"play_24":"pause_24"}handleMounted(){this.iconEl=f(this.el()),this.syncPlaybackIcon()}createEl(){let e=super.createEl();return e.innerHTML="",this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)("span",{className:"drop-video-control-button",children:(0,l.jsx)(I.In,{name:this.getCurrentIcon()})})})),e}syncIconDom(e){y(this.iconEl,e)}syncPlaybackIcon(){this.syncIconDom(this.getCurrentIcon())}handlePlay(){super.handlePlay(),this.syncIconDom("pause_24")}handlePause(){super.handlePause(),this.syncIconDom("play_24")}handleEnded(){super.handleEnded(),this.syncPlaybackIcon()}dispose(){this.iconEl=null;let e=this.root;e&&queueMicrotask(()=>e.unmount()),super.dispose()}constructor(...e){super(...e),this.iconEl=null}}let eI=u.default.getComponent("MuteToggle");class eC extends eI{getCurrentIcon(){let e=this.player();return!e||e.isDisposed()||e.muted()||0===e.volume()?"volume_slash_24":"volume_high_24"}handleMounted(){this.iconEl=f(this.el()),this.syncIcon()}createEl(){let e=super.createEl();return e.innerHTML="",this.root=(0,p.createRoot)(e),this.root.render((0,l.jsx)(g,{onReady:()=>this.handleMounted(),children:(0,l.jsx)("span",{className:"drop-video-control-button",children:(0,l.jsx)(I.In,{name:this.getCurrentIcon()})})})),this.attachPlayerEvents(),e}attachPlayerEvents(){let e=this.player();!e||e.isDisposed()||this.syncIconHandler||(this.syncIconHandler=()=>this.syncIcon(),e.on("volumechange",this.syncIconHandler),e.on("loadstart",this.syncIconHandler))}syncIcon(){y(this.iconEl,this.getCurrentIcon())}handleClick(e){super.handleClick(e),this.syncIcon()}update(e){super.update(e),this.syncIcon()}dispose(){let e=this.player();e&&this.syncIconHandler&&(e.off("volumechange",this.syncIconHandler),e.off("loadstart",this.syncIconHandler)),this.syncIconHandler=void 0,this.iconEl=null;let t=this.root;t&&queueMicrotask(()=>t.unmount()),super.dispose()}constructor(...e){super(...e),this.iconEl=null}}var eE=n(36606);u.default.registerComponent("DropButtonsContainer",class extends u.default.getComponent("Component"){createEl(){return u.default.dom.createEl("div",{className:"vjs-glass-bar"})}}),u.default.registerComponent("DropPlayToggleButton",eb),u.default.registerComponent("DropVolumeToggleButton",eC);let eS=e=>{let t=(0,eE.Ub)("(max-width: 50em)"),n=(0,c.useMemo)(()=>[{name:"DropButtonsContainer",children:t?["SeekBar"]:["DropPlayToggleButton","SeekBar","DropVolumeToggleButton"]}],[t]);return(0,l.jsx)(em,{...e,controlsConfig:n})}},19468:e=>{e.exports={overlay:"seekStepOverlay_overlay__UO8mX",side:"seekStepOverlay_side__94g5V",backward:"seekStepOverlay_backward__NaeAg",forward:"seekStepOverlay_forward__WXRHI",value:"seekStepOverlay_value__oh8z4","seek-area-pulse-odd":"seekStepOverlay_seek-area-pulse-odd__0cd2L","seek-area-pulse-even":"seekStepOverlay_seek-area-pulse-even__AkpG1","seek-value-pulse-odd":"seekStepOverlay_seek-value-pulse-odd__whUX3","seek-value-pulse-even":"seekStepOverlay_seek-value-pulse-even__fZKJo"}},30953:()=>{},46868:e=>{e.exports={control:"frostGlassSettings_control__p7cMX",root:"frostGlassSettings_root__qyYWU",triggerButton:"frostGlassSettings_triggerButton__AlgsY",iconButton:"frostGlassSettings_iconButton__V6pVE",panel:"frostGlassSettings_panel__W_pLc",screen:"frostGlassSettings_screen__uiQ9w",sheetScreen:"frostGlassSettings_sheetScreen__Du45j",header:"frostGlassSettings_header__kfFZ6",body:"frostGlassSettings_body__WK8g4",menuItem:"frostGlassSettings_menuItem__zvJmC",optionItem:"frostGlassSettings_optionItem__Y1zwX",de
1sktopBody:"frostGlassSettings_desktopBody__fO2LQ",sheetContent:"frostGlassSettings_sheetContent__LVE0h",optionList:"frostGlassSettings_optionList__uSsMa",menuItemIcon:"frostGlassSettings_menuItemIcon__tmKxk",menuItemLabels:"frostGlassSettings_menuItemLabels__79Sl4",optionItemCheck:"frostGlassSettings_optionItemCheck__4gEIW"}},51618:()=>{},51668:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var s=n(8491),r=n(87670).hp;function i(e){if(e){let t;return t=function(e,t,n){let s,r,i,l,a=String.fromCharCode(120,1),o=[],d=String.fromCharCode(137,80,78,71,13,10,26,10);for(s=0;s<256;s++){for(i=0,r=s;i<8;i++)1&r?r=0xedb88320^r>>>1:r>>>=1;o[s]=r}function c(e){return String.fromCharCode((0xff000000&e)>>>24,(0xff0000&e)>>>16,(65280&e)>>>8,255&e)}function u(e,t,n){let s=0xffffffff^function(e){let t=0xffffffff;for(let n=0;n<e.length;n++)t=o[(t^e.charCodeAt(n))&255]^t>>>8;return t}(t+n);return c(e)+t+n+c(s)}let h=u(0,"IEND",""),p=u(13,"IHDR",c(e)+c(t)+"\b\x06\0\0\0"),m="";for(let t=0;t<n.length;t+=4*e){if(l="\0",Array.isArray(n))for(let s=0;s<4*e;s++)l+=String.fromCharCode(255&n[t+s]);else l+=n.slice(t,t+4*e);m+=l}let f=a+function(e){let t,n,s="";for(let r=0;r<e.length;r+=65535)(t=e.length-r)<=65535?n="\x01":(t=65535,n="\0"),s+=n+String.fromCharCode(255&t,(65280&t)>>>8),s+=String.fromCharCode(255&~t,(65280&~t)>>>8),s+=e.substring(r,r+t);return s}(m)+c(function(e){let t=1,n=0;for(let s=0;s<e.length;s++)n=(n+(t=(t+e.charCodeAt(s))%65521))%65521;return n<<16|t}(m));return d+p+u(f.length,"IDAT",f)+h}(32,32,[...(0,s.D4)(e,32,32)].map(e=>String.fromCharCode(e)).join("")),"data:image/png;base64,"+(void 0!==r?r.from(function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(t)).toString("base64"):btoa(t))}}},57706:e=>{e.exports={contentPlayer:"contentPlayer_contentPlayer__ubc5N"}},60004:(e,t,n)=>{"use strict";n.d(t,{O:()=>c});var s=n(34036),r=n(78612),i=n(61427),l=n(36447),a=n(31604),o=n(43041);let d=new Set,c=e=>{let t=(0,s.jL)(),n=(0,i.useMemo)(()=>(0,r.I)(e),[e]),c=(0,s.GV)(e=>n.map(t=>e.users.entities[t]),l.bN);(0,i.useEffect)(()=>{let e=n.filter((e,t)=>{let n=c[t];return(!n||!!(0,o.l)(n.fetchedAt))&&!d.has(e)});e.length&&(e.forEach(e=>d.add(e)),t((0,a.bf)(e)).finally(()=>{e.forEach(e=>d.delete(e))}))},[n,c,t])}},87358:(e,t,n)=>{"use strict";n.d(t,{KA:()=>y,Ot:()=>m,Qd:()=>_,TO:()=>d,UU:()=>h,Wn:()=>I,_y:()=>p,bJ:()=>T,jp:()=>g,ls:()=>S,q0:()=>f,t1:()=>k,uN:()=>c});var s=n(88567),r=n(59956),i=n(90249),l=n(37496);let a=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,o=e=>!!e&&a.test(e),d=({entityId:e,entityType:t,postId:n})=>{if(t===r.P.CHANNEL){let t=`@${e}`;return(0,i.X)(n?`${t}/${n}`:t)}if(t===r.P.COMMUNITY){let t=`c/${e}`;return(0,i.X)(n?`${t}/${n}`:t)}return(0,i.X)(`u/${e}`)},c=e=>[e.type,e.entityId??"",e.postId??""].join(":"),u=e=>{let t=(e=>{let t=e.trim();if(!t)return null;try{return new URL(t,"https://diom.club").pathname.split("/").map(e=>decodeURIComponent(e)).filter(e=>!!e)}catch{return null}})(e);if(!t?.length)return null;let[n,s,r]=t;if(n?.startsWith("@")){let r=n.slice(1);if(!o(r))return null;if(1===t.length)return{entityId:r,type:l.N0m.CHANNEL,url:e};if(2===t.length&&o(s))return{entityId:r,postId:s,type:l.N0m.CHANNEL_POST,url:e}}if("c"===n&&s){if(!o(s))return null;if(2===t.length)return{entityId:s,type:l.N0m.COMMUNITY,url:e};if(3===t.length&&o(r))return{entityId:s,postId:r,type:l.N0m.COMMUNITY_POST,url:e}}return"u"===n&&o(s)&&2===t.length?{entityId:s,type:l.N0m.PROFILE,url:e}:null},h=e=>{for(let t of e.links){let e=u(t.url);if(e)return e}return null},p=e=>{let t=new Map;return e.forEach(e=>{let n=h(e);n&&t.set(c(n),n)}),Array.from(t.values())},m=(e,t)=>{if(t?.entityId)return e[t.entityId]},f=(e,t)=>{if(t?.entityId)return e[t.entityId]},y=(e,t)=>{if(t?.entityId)return e[t.entityId]},g=(e,t)=>{if(!t?.postId||!t.entityId)return;let n=e[t.postId];if(n&&(t.type===l.N0m.CHANNEL_POST&&"channel_metadata"in n&&n.channel_metadata.channel_id===t.entityId||t.type===l.N0m.COMMUNITY_POST&&"community_metadata"in n&&n.community_metadata.community_id===t.entityId))return n},v=e=>"type"in e.post&&"string"==typeof e.post.type?e.post.type:"post",b=e=>{let t=[...e.media].sort((e,t)=>
1e.position-t.position),n=v(e);if("vertical"===n||"video"===n||"post"===n){let e=t.find(e=>"video"===e.media_type);return e?[e,...t.filter(t=>t.media_id!==e.media_id)]:t}return t},I=e=>e?b(e).map(e=>e.media_id).filter(e=>!!e):[],C=(e,t)=>{if(!(!t||t?.status===s.pc.ERROR||t?.status===s.pc.DELETED))return"video"===e.media_type?"string"==typeof t.metadata?.poster?t.metadata.poster:void 0:"string"==typeof t.url?t.url:void 0},E=(e,t)=>{let n=b(e);return t?n.find(e=>{let n=e.media_id,r=n?t[n]:void 0;return!r||r?.status===s.pc.LOADING||!!C(e,r)}):n[0]},S=(e,t)=>e?E(e,t)?.media_id:void 0,_=({mediaEntities:e,post:t,url:n})=>{let s;"channel_metadata"in t?s=t.channel_metadata?.name:"community_metadata"in t&&(s=t.community_metadata?.name);let r=E(t,e),i=r?.media_id,l=i?e[i]:void 0,a=r?C(r,l):void 0;return{description:t.post.content??void 0,hasMedia:!!i,imageHeight:l?.metadata?.height,imagePreview:l?.metadata?.image_preview,imageUrl:a,imageWidth:l?.metadata?.width,mediaAspectRatio:((e,t)=>{let n=t?.metadata?.width,s=t?.metadata?.height;if(n&&s)return`${n} / ${s}`;let r=v(e);return"vertical"===r?"9 / 16":"video"===r?"16 / 9":"4 / 3"})(t,l),source:s,title:t.post.title,url:n}},k=e=>e.type===l.N0m.CHANNEL_POST||e.type===l.N0m.COMMUNITY_POST,T=(e,t,n)=>{if(null!=e.subscribersCount){if(e.type===r.P.CHANNEL)return t(e.subscribersCount);if(e.type===r.P.COMMUNITY)return n(e.subscribersCount)}return e.description??null}},90249:(e,t,n)=>{"use strict";n.d(t,{X:()=>s});let s=e=>{let t=e.replace(/^\//,"");return`${window.location.origin}/${t}`}},93553:(e,t,n)=>{"use strict";n.d(t,{f:()=>s,h:()=>r});let s=e=>{if(Number.isNaN(e)||e<=0)return"0:00";let t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=Math.floor(e%60);return t>0?`${t}:${String(n).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${n}:${String(s).padStart(2,"0")}`},r=e=>Number.isNaN(e)||e<=0?"0:00":s(Math.floor(e/1e3))}}]);
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.