1"use strict";(self.webpackChunkmicroblog=self.webpackChunkmicroblog||[]).push([[5316],{96402(e,t,l){var a=l(2435),r=l(69627),i=l(14643),n=l(79201);let o=["src","alt"],u=(0,a.pM)({__name:"BaseBadge",props:{user:{}},setup(e){let t=(0,a.EW)(()=>e.user.badge.getIcon()),l=(0,a.EW)(()=>(0,n.Ay)(e.user.badge.getTitleTranslationKey()));return(n,u)=>e.user.badge?((0,a.uX)(),(0,a.CE)("img",{key:0,src:(0,r.R1)(t),class:(0,i.C4)(e.user.badge.isPending?"filter-blur-1px":null),alt:(0,r.R1)(l),loading:"lazy",width:"96",height:"96"},null,10,o)):(0,a.Q3)("",!0)}});l.d(t,["A",0,u])},78473(e,t,l){let a;l(3362);var r=l(2435),i=l(27897),n=l(79201),o=l(5634),u=l(41046),s=l(73352),v=l(84971),d=l(29245);async function p(){if(a)return a;let{default:e}=await l.e(7225).then(()=>l(71557));return e.addLanguage("fa",await l.e(7225).then(()=>l.t(52317,19))),e.addLanguage("ar",await l.e(7225).then(()=>l.t(86107,19))),e.options.crossorigin="anonymous",a=e,e}let c=(0,r.pM)({__name:"BaseVideoJS",props:{video:{},options:{},isLiveStream:{type:Boolean},poster:{},liveStream:{},hideError:{type:Boolean}},emits:["play","pause","timeupdate","loadstart","loadeddata","retryplaylist","controlbarVisiblityChanged","ended","reload"],setup(e,{expose:t,emit:a}){let c=(0,n.TH)(),m=(0,s.KR)(),y=(0,s.KR)(),f=(0,i.l)("sm");async function h(){var t;if(!(null!=(t=e.video)&&t.SID))throw(0,v.mT)({message:(0,n.Ay)("fetch-media-failed"),track:!1});await u.M.downloadMedia(e.video)}return(0,r.sV)(async()=>{var t,r,i,u,s,b,g,k,x,R,w,L,I;let W=m.value;if(!W)return;W.poster=null!=(t=null!=(r=e.poster)?r:null==(i=e.video)?void 0:i.cover.getPublicLink())?t:l(78773);let A=await p();if(!W)return;let _=(null==(u=e.video)?void 0:u.getLink())||e.liveStream;y.value=A(W,{...e.options||{},loop:null!=(s=null==(b=e.options)?void 0:b.loop)&&s,sources:[{src:_,type:e.isLiveStream?"application/vnd.apple.mpegurl":"video/mp4"}],controls:null==(g=null==(k=e.options)?void 0:k.controls)||g,language:c.language,preload:e.isLiveStream?"auto":"none",controlBar:{volumePanel:{inline:!0},pictureInPictureToggle:!1,playbackRateMenuButton:!0,skipButtons:e.isLiveStream||!f.value?void 0:{forward:10,backward:10}},playbackRates:e.isLiveStream?void 0:[.75,1,1.25,1.5,1.75,2]}),y.value.addClass("flex-center"),y.value.on("play",()=>a("play")),y.value.on("pause",()=>a("pause")),y.value.on("ended",()=>{a("ended"),a("controlbarVisiblityChanged",!0)}),y.value.on("timeupdate",()=>{a("timeupdate"),a("controlbarVisiblityChanged",y.value.el().classList.contains("vjs-user-active"))}),y.value.on("loadstart",()=>a("loadstart")),y.value.on("loadeddata",()=>a("loadeddata")),e.isLiveStream?(y.value.on("ready",()=>{y.value.tech().on("retryplaylist",()=>{a("retryplaylist")})}),y.value.on("error",async()=>{var e;let t=null==(e=y.value)?void 0:e.error();t&&3===t.code&&(console.warn("trying to reload live stream"),await (0,o.uk)(1e3),a("reload"))})):e.hideError||y.value.on("error",e=>{throw(0,d.fH)({subtitle:(0,n.Ay)("try-to-download-media"),okText:(0,n.Ay)("download"),action:h,type:"secondary",title:(0,n.Ay)("download-media"),icon:l(82342)}),(0,v.mT)({message:(0,n.Ay)("fetch-media-failed"),meta:{error:e}})}),null!=(x=e.options)&&x.currentTime&&y.value.currentTime(e.options.currentTime),(null==(R=e.options)?void 0:R.muted)!=null&&y.value.muted(e.options.muted),null!=(w=e.options)&&w.autoplay&&(e.isLiveStream?setTimeout(()=>{var e;null==(e=y.value)||e.play()},5e3):null==(I=y.value)||I.play()),null!=(L=e.options)&&L.playbackRate&&y.value.playbackRate(e.options.playbackRate)}),(0,r.nT)(()=>{e.poster&&m.value&&(m.value.poster=e.poster)}),(0,r.xo)(()=>{let e=y.value;e&&(e.isInPictureInPicture()?e.on("leavepictureinpicture",()=>{e.dispose()}):e.dispose())}),t({player:y}),(e,t)=>((0,r.uX)(),(0,r.CE)("video-js",{ref_key:"video",ref:m,crossorigin:"anonymous"},null,512))}});l.d(t,["A",0,c])},30577(e,t,l){l(23792),l(3362),l(62953);var a=l(2435),r=l(46249),i=l(69627),n=l(14643),o=l(99604),u=l(93388),s=l(6439),v=l(91842),d=l(15213),p=l(51984),c=l(46807),m=l(24092),y=l(3656),f=l(64639),h=l(55910),b=l(27897),g=l(32964),k=l(1652),x=l(93699),R=l(21820),w=l(68042),L=l(89450),I=l(73352),W=l(43422),A=l(13114);let _={class:"shadow-lg rounded-2xl flex relative"},E=["aria-label"],T={key:0,inert:"",class:"absolute inset-0 rounded-inherit bg-blackLight/30"},C={key:0,class:"absolute start-0 bottom-0 p-2 flex items-center max-w-full min-w-0"},P={key:0,class:"absolute inset-x-0 top-0 flex p-2 justify-between pointer-events-none"},F=(0,a.pM)({__name:"PictureInPicture",setup(e){let t=(0,I.KR)(),l=(0,I.KR)(),F=(0,L.t)(),B=(0,b.l)("md"),S=(0,a.EW)(()=>{var e;return null==(e=g.Wl.post)?void 0:e.user}),M=(0,a.EW)(()=>g.Wl.video),K=(0,a.EW)(()=>{var e;return null==(e=l.value)?void 0:e.player});(0,a.wB)(K,e=>{e&&e.on("ended",()=>{Q()})});let z=(0,I.KR)(g.Wl.currentTime||0);(0,a.wB)([()=>g.Wl.isOpen,()=>{var e;return null==(e=g.Wl.video)?void 0:e.SID}],([e])=>{e&&(z.value=g.Wl.currentTime||0)});let D=(0,a.EW)(()=>{var e;let t=(null==(e=K.value)?void 0:e.duration())||M.value.duration;return t?Math.min(Math.max(z.value/t,0),1).toFixed(4):"0"}),X=(0,I.KR)(!1),V=(0,I.KR)(!1),H=(0,I.KR)(!1),q=(0,a.EW)(()=>{let e=(0,R.qE)(M.value.getAspectRatio(),9/16,16/9),t=(0,W.f)(110);return e>1?{width:t*e+"px",height:t+"px"}:{width:t+"px",height:t/e+"px"}});function Q(){$(),(0,g.X4)()}(0,f.t)(()=>g.Wl.isOpen||V.value,()=>{(0,f.t)(()=>!B.value,()=>{let e="--current-pip-height",t=document.documentElement.style;t.setProperty(e,q.value.height),(0,i.jr)(()=>{t.removeProperty(e)})}),(0,h.E)(K)}),(0,f.t)(()=>K.value,()=>{let e=K.value;e.on("play",function(){X.value=!0,U().catch(console.error)}),e.on("pause",function(){X.value=!1,$()}),e.on("timeupdate",function(){let t=e.currentTime()||0;(t||0===z.value)&&(z.value=t)}),X.value=!e.paused()});let j=(0,I.KR)({});(0,f.t)(()=>B.value,()=>{let{style:e}=(0,A.PMY)(t,{initialValue:{x:(0,W.f)(10),y:(0,W.f)(10)}});j.value.style=e});let N=(0,a.EW)(()=>
1{if(j.value.style)return j.value.style+"bottom:auto;right:auto;"}),O=(0,a.EW)(()=>{var e;return null==(e=M.value)?void 0:e.SID});function $(){let e=O.value;e&&w.r.clearIfSame({id:e,type:"video"})}async function U(){let e=K.value,t=O.value;e&&t&&await w.r.requestPlay({id:t,type:"video",play:()=>e.play(),pause:()=>e.pause(),isAlive:()=>{var t;return(null==(t=l.value)?void 0:t.player)===e}})}function Y(){let e=K.value;e&&(e.paused()?U().catch(console.error):(e.pause(),$()))}function J(){var e,t,l,a;if(!g.Wl.video)return;let r={currentTime:z.value,duration:null==(e=K.value)?void 0:e.duration(),isPlaying:X.value,muted:null==(t=K.value)?void 0:t.muted(),playbackRate:null==(l=K.value)?void 0:l.playbackRate()};if("tvFullscreenPlayer"===g.Wl.source&&g.Wl.tvItem){$();let e=(0,i.ux)(g.Wl.tvItem);F.openFullscreenPlayer(e,r);return}let n=g.Wl.video.SID,o=(null==(a=g.Wl.post)?void 0:a.getVideos().findIndex(e=>e.SID===n))||0;$(),(0,k.V5)({video:g.Wl.video,post:g.Wl.post,currentTime:r.currentTime,muted:r.muted,index:o,playbackRate:r.playbackRate})}let G={filter:"drop-shadow(0px 1.44px 5.03px rgba(0, 0, 0, 0.25))"};return(e,f)=>((0,a.uX)(),(0,a.Wv)(a.Im,{to:"#teleports"},[(0,a.bF)(r.eB,{name:"fade-zoom",appear:"",onBeforeLeave:f[2]||(f[2]=e=>V.value=!0),onAfterLeave:f[3]||(f[3]=e=>V.value=!1),onLeaveCancelled:f[4]||(f[4]=e=>V.value=!1)},{default:(0,a.k6)(()=>{var h;let b;return[(0,i.R1)(g.Wl).isOpen?((0,a.uX)(),(0,a.CE)("div",{ref_key:"containerElement",ref:t,key:(0,i.R1)(M).SID,class:"h-$current-pip-height z-header fixed max-w-500px mb-1 start-4 fix-bottom-120px p-fars:mb-[calc(var(--spacing-footer)_-_var(--current-pip-height))] p-fars:bottom-1",style:(0,n.Tr)((0,i.R1)(N)),onMouseover:f[0]||(f[0]=e=>H.value=!0),onMouseleave:f[1]||(f[1]=e=>H.value=!1)},[(0,a.Lk)("div",_,[f[5]||(f[5]=(0,a.Lk)("div",{class:"absolute start-0 -bottom-1 rounded-s-inherit bg-primaryLight-500 h-8 -z-1 w-5"},null,-1)),(0,a.Lk)("div",{class:"absolute start-0 -bottom-1 rounded-e-inherit ms-4 w-[calc(100%_-_16px)] bg-primaryLight-500 h-8 -z-1 scale-x-1 will-change-transform transition-transform ease-linear duration-300 transform-origin-start",style:(0,n.Tr)({transform:`scaleX(${(0,i.R1)(D)})`})},null,4),(0,a.Lk)("div",{role:"button",class:"rounded-inherit shrink-0 flex flex-col of-hidden relative cursor-pointer no-hover","aria-label":(0,i.R1)(X)?e.__("pause"):e.__("play"),style:(0,n.Tr)((0,i.R1)(q)),onClick:Y},[(0,a.bF)(m.A,{ref_key:"videoComponent",ref:l,video:(0,i.R1)(M),options:{autoplay:null!=(h=(b=(0,i.ux)(g.Wl)).isPlaying)&&h,currentTime:b.currentTime,muted:b.muted,controls:!1,playbackRate:b.playbackRate},class:"grow s-inherit",inert:""},null,8,["video","options"])],12,E),(0,a.bF)(r.eB,{name:"fade"},{default:(0,a.k6)(()=>[!(0,i.R1)(X)||(0,i.R1)(H)?((0,a.uX)(),(0,a.CE)("div",T)):(0,a.Q3)("",!0)]),_:1}),(0,a.bF)(r.eB,{name:"fade"},{default:(0,a.k6)(()=>[(0,i.R1)(X)&&(0,i.R1)(H)?((0,a.uX)(),(0,a.CE)("div",{key:0,inert:"",class:"absolute inset-0 m-auto flex-center s-8 p-2px",style:G},[(0,a.bF)(c.A,{class:"text-whiteLight s-full",src:o})])):(0,i.R1)(X)?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",{key:1,inert:"",class:"absolute inset-0 m-auto flex-center s-8 p-2px",style:G},[(0,a.bF)(c.A,{class:"text-whiteLight s-full",src:u})]))]),_:1}),(0,a.bF)(r.eB,{name:"fade"},{default:(0,a.k6)(()=>[!(0,i.R1)(X)||(0,i.R1)(H)?((0,a.uX)(),(0,a.CE)("div",C,[(0,a.bF)(x.A,{user:(0,i.R1)(S),size:"small","no-tooltip":""},null,8,["user"]),(0,a.bF)(y.A,{user:(0,i.R1)(S),class:"@text-subtitle-m mx-1 text-whiteLight truncate min-w-0",style:G,"no-tooltip":""},null,8,["user"]),(0,a.bF)(d.A,{user:(0,i.R1)(S),class:"s-3"},null,8,["user"])])):(0,a.Q3)("",!0)]),_:1}),(0,a.bF)(r.eB,{name:"fade"},{default:(0,a.k6)(()=>[!(0,i.R1)(X)||(0,i.R1)(H)?((0,a.uX)(),(0,a.CE)("div",P,[(0,a.bF)(p.A,{"style-type":"text",size:"none",class:"px-0 s-7 flex-center pointer-events-auto","aria-label":e.__("back"),onClick:J},{default:(0,a.k6)(()=>[(0,a.bF)(c.A,{src:s,class:"s-6 text-whiteLight"})]),_:1},8,["aria-label"]),(0,a.bF)(p.A,{"style-type":"text",size:"none",class:"px-0 s-7 flex-center pointer-events-auto","aria-label":e.__("close"),onClick:Q},{default:(0,a.k6)(()=>[(0,a.bF)(c.A,{src:v,class:"s-3 text-whiteLight"})]),_:1},8,["aria-label"])])):(0,a.Q3)("",!0)]),_:1})])],36)):(0,a.Q3)("",!0)]}),_:1})]))}});
1l.d(t,["A",0,F])},97273(e,t,l){var a=l(2435),r=l(69627);let i=["innerHTML"],n=(0,a.pM)({__name:"UserFullName",props:{user:{},noTooltip:{type:Boolean},noLink:{type:Boolean},tag:{}},setup(e){let t=(0,a.EW)(()=>!!e.user.isCurrentUser||e.noTooltip),l=(0,a.EW)(()=>e.tag?e.tag:e.noLink?"span":"router-link");return(n,o)=>((0,a.uX)(),(0,a.Wv)((0,a.$y)((0,r.R1)(l)),{class:"n-scquwg",dir:e.user.displayNameDirection,"data-userid":(0,r.R1)(t)?void 0:e.user.userID,to:e.noLink?void 0:e.user.link},{default:(0,a.k6)(()=>[(0,a.Lk)("span",{innerHTML:e.user.sanitizedFullName},null,8,i)]),_:1},8,["dir","data-userid","to"]))}});l.d(t,["A",0,n])},15213(e,t,l){let a=l(96402).A;l.d(t,["A",0,a])},24092(e,t,l){let a=l(78473).A;l.d(t,["A",0,a])},85316(e,t,l){l.r(t);let a=l(30577).A;l.d(t,["default",0,a])},3656(e,t,l){let a=l(97273).A;l.d(t,["A",0,a])},55910(e,t,l){l.d(t,{E:()=>o});var a=l(99790),r=l(47572),i=l(13114),n=l(69627);function o(e){(0,a.sf)()&&(0,i.MLh)(document,"visibilitychange",()=>{let t=(0,n.R1)(e);t&&("hidden"===document.visibilityState?t.paused()||t.requestPictureInPicture().catch(r.l):t.isInPictureInPicture()&&t.exitPictureInPicture())})}},89450(e,t,l){l(78350),l(23792),l(44114),l(30237),l(18111),l(22489),l(20116),l(30531),l(13579),l(3362),l(17642),l(58004),l(33853),l(45876),l(32475),l(15024),l(31698),l(62953);var a=l(32964),r=l(96566),i=l(13593),n=l(46645),o=l(35011),u=l(73352),s=l(2435);let v=(0,n.nY)("tv",()=>{let e=(0,o.rd)(),t=(0,u.KR)(!1),l=(0,u.KR)(!1),n=(0,u.KR)(),v=(0,u.KR)(),d=(0,u.KR)(),p=(0,u.KR)(),c=(0,u.KR)([]),m=(0,u.KR)(),y=(0,s.EW)(()=>c.value.flatMap(e=>e.tvItem)),f=(0,s.EW)(()=>{let e=new Set;return(m.value?[m.value,...y.value]:y.value).filter(t=>!("video"!==t.post.mediaType||e.has(t.postID))&&(e.add(t.postID),!0))}),h=0,b=0;async function g(e){let t=++h,l=await i.v.tvSearch(e);return t===h&&function(e,t){t&&(c.value=[]);let l=[...e],a=c.value,r=a[a.length-1];if(r)switch(r.tvItem.length){case 1:r.tvItem.push(...l.splice(0,2));break;case 2:r.tvItem.push(...l.splice(0,1))}for(let e=0;e<l.length;e+=3){let t=l.slice(e,e+3);switch(a.length%6){case 0:a.push({type:"bigEnd",tvItem:t});break;case 3:a.push({type:"bigStart",tvItem:t});break;default:a.push({type:"normal",tvItem:t})}}}(l.indexes,e.shouldRefresh),l}async function k(e){var t;let l=++b;if((null==(t=m.value)?void 0:t.postID)===e)return m.value;let a=y.value.find(t=>t.postID===e);if(a)return m.value=void 0,a;let i=(0,r.D)(),{index:n}=await i.fetchPost({postID:e});if(n&&"video"===n.post.mediaType)return l===b&&(m.value=n),n}return{rows:c,allTvItems:y,videoItems:f,isPlayerOpen:t,isFullscreenPlayerOpen:l,fullscreenPlayerOptions:n,selectedTvItem:v,selectedLiveStream:d,selectedTvChannel:p,getList:g,resolveFullscreenItem:k,openPlayer:function(e){v.value=e.tvItem,d.value=e.liveStream,p.value=e.channel,t.value=!0,l.value=!1,n.value=void 0,(0,a.X4)()},openFullscreenPlayer:function(r,i){if(b++,m.value=y.value.some(e=>e.postID===r.postID)?void 0:r,v.value=r,d.value=void 0,p.value=void 0,t.value=!1,n.value=i,l.value=!0,(0,a.X4)(),e.currentRoute.value.path!==r.post.tvFullscreenLink)return e.push({path:r.post.tvFullscreenLink,query:e.currentRoute.value.query})},closePlayer:function(){b++,v.value=void 0,d.value=void 0,p.value=void 0,t.value=!1,l.value=!1,n.value=void 0,m.value=void 0}}});l.d(t,["t",0,v])},91842(e){e.exports='<svg fill="none" viewBox="0 0 10 11"><path fill="currentColor" d="m5.88 5.391 3.605-3.604a.623.623 0 0 0-.88-.88L5 4.51 1.395.907a.623.623 0 0 0-.88.88L4.12 5.39.515 8.996a.623.623 0 0 0 .88.88L5 6.27l3.605 3.605a.62.62 0 0 0 .88 0 .623.623 0 0 0 0-.88z"/></svg>'},6439(e){e.exports='<svg fill="none" viewBox="0 0 26 26"><path fill="currentColor" d="M14 5h5.7v5.6h-1.4V7.4l-3.6 3.5-1-1 3.6-3.5H14zm-1 7.7-3.6 3.6h3.2v1.4H7V12h1.4v3.3l3.6-3.6z"/></svg>'},99604(e){e.exports='<svg fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M10 3H5v18h5zm9 0h-5v18h5z"/></svg>'},93388(e){e.exports='<svg fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M22.016 10.877a1.297 1.297 0 0 1 0 2.246L6.945 21.824A1.297 1.297 0 0 1 5 20.702V3.298C5 2.3 6.08 1.677 6.945 2.176z"/></svg>'}}]);
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.