PageSourceSearch

https://thedevdavid-digital-garden.vercel.app/_next/static/chunks/514-a101b40569a8f885.js

js thedevdavid-digital-garden.vercel.app collected 2026-10-03 07:52:28 UTC 19,110 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[514],{876:function(e,t,r){"use strict";var n=r(8496),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,l=n.useLayoutEffect,u=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!a(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),a=n[0].inst,c=n[1];return l(function(){a.value=r,a.getSnapshot=t,s(a)&&c({inst:a})},[e,r,t]),i(function(){return s(a)&&c({inst:a}),e(function(){s(a)&&c({inst:a})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},6635:function(e,t,r){"use strict";e.exports=r(876)},6271:function(){},809:function(e){e.exports={label:"highlighted-label_label__DpVla"}},1081:function(e){e.exports={verified:"icons_verified__C3Vz1"}},7303:function(e){e.exports={root:"quoted-tweet-body_root__vqbMG"}},2135:function(e){e.exports={root:"quoted-tweet-container_root__RMAGG",article:"quoted-tweet-container_article__2Wpoo"}},1308:function(e){e.exports={header:"quoted-tweet-header_header__Q_AEP",avatar:"quoted-tweet-header_avatar__Kzp3O",avatarOverflow:"quoted-tweet-header_avatarOverflow__AwlTu",avatarSquare:"quoted-tweet-header_avatarSquare__M0oOA",author:"quoted-tweet-header_author__mmTc6",authorText:"quoted-tweet-header_authorText__5Keqz",username:"quoted-tweet-header_username__5dY68"}},6285:function(e){e.exports={skeleton:"skeleton_skeleton__0OnCD",loading:"skeleton_loading__1AjDF"}},3073:function(e){e.exports={actions:"tweet-actions_actions___FKOj",like:"tweet-actions_like__s0Ubu",reply:"tweet-actions_reply__S2HQm",copy:"tweet-actions_copy__PSaCA",likeIconWrapper:"tweet-actions_likeIconWrapper__pLNom",likeCount:"tweet-actions_likeCount____reK",replyIconWrapper:"tweet-actions_replyIconWrapper__Kbw6H",copyIconWrapper:"tweet-actions_copyIconWrapper__D3tF8",likeIcon:"tweet-actions_likeIcon__nIZt4",replyIcon:"tweet-actions_replyIcon__BjWNZ",copyIcon:"tweet-actions_copyIcon__Nk__Q",replyText:"tweet-actions_replyText__7x_V0",copyText:"tweet-actions_copyText__VwuRl"}},6799:function(e){e.exports={root:"tweet-body_root__KOjOh"}},9836:function(e){e.exports={root:"tweet-container_root__bW6oV",article:"tweet-container_article__HGxyh"}},694:function(e){e.exports={header:"tweet-header_header__TDkuo",avatar:"tweet-header_avatar__VtNnf",avatarOverflow:"tweet-header_avatarOverflow__8FYp5",avatarSquare:"tweet-header_avatarSquare__tbq96",avatarShadow:"tweet-header_avatarShadow__SYL1z",author:"tweet-header_author__uo1bO",authorLink:"tweet-header_authorLink___N_QJ",authorVerified:"tweet-header_authorVerified__A1qvT",authorLinkText:"tweet-header_authorLinkText__pa0J3",authorMeta:"tweet-header_authorMeta___tavi",authorFollow:"tweet-header_authorFollow___RGT5",username:"tweet-header_username__lvjUb",follow:"tweet-header_follow__jkRYt",separator:"tweet-header_separator__8_a3F",brand:"tweet-header_brand__Ju50D",twitterIcon:"tweet-header_twitterIcon__w97kt"}},7512:function(e){e.exports={root:"tweet-in-reply-to_root__FEcid"}},6807:function(e){e.exports={root:"tweet-info-created-at_root__iGP8p"}},7591:function(e){e.exports={info:"tweet-info_info__Ydw3Q",infoLink:"tweet-info_infoLink__WfURX",infoIcon:"tweet-info_infoIcon__P2mDq"}},3680:function(e){e.exports={root:"tweet-link_root__EEY3w"}},7807:function(e){e.exports={anchor:"tweet-media-video_anchor__dkBgx",videoButton:"tweet-media-video_videoButton__7xsnc",videoButtonIcon:"tweet-media-video_videoButtonIcon__yF8Rb",watchOnTwitter:"tweet-media-video_watchOnTwitter__WJZA6",viewReplies:"tweet-media-video_viewReplies__FSgN4"}},3384:function(e){e.exports={root:"tweet-media_root__f4Ify",rounded:"tweet-media_rounded__7HQcp",mediaWrapper:"tweet-media_mediaWrapper__AhYwG",grid2Columns:"tweet-media_grid2Columns__gjkFX",grid3:"tweet-media_grid3__9MI8r",grid2x2:"tweet-media_grid2x2__82WeS",mediaContainer:"tweet-media_mediaContainer__Tngw6",mediaLink:"tweet-media_mediaLink__3DoNL",skeleton:"tweet-media_skeleton__8HKbX",image:"tweet-media_image__WGSri"}},6706:function(e){e.exports={root:"tweet-not-found_root__D_9uP"}},4500:function(e){e.exports={replies:"tweet-replies_replies__P6NX1",link:"tweet-replies_link__E_nPX",text:"tweet-replies_text__KbphR"}},33:function(e){e.exports={root:"tweet-skeleton_root__D7XUg"}},8715:function(e){e.exports={verifiedOld:"verified-badge_verifiedOld__JtKH1",verifiedBlue:"verified-badge_verifiedBlue__waFRY",verifiedGovernment:"verified-badge_verifiedGovernment__8e_a_"}},317:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{useMounted:function(){return ed},useTweet:function(){return ec}});var a=r(8496),o=r(6635),i=Object.prototype.hasOwnProperty;let l=new WeakMap,u=()=>{},s=u(),c=Object,d=e=>e===s,_=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),w=e=>_(e.then),p={},h={},v="undefined",g=typeof window!=v,m=typeof document!=v,y=g&&"Deno"in window,b=()=>g&&typeof window.requestAnimationFrame!=v,x=(e,t)=>{let r=l.get(e);return[()=>!d(t)&&e.get(t)||p,n=>
1{if(!d(t)){let a=e.get(t);t in h||(h[t]=a),r[5](t,f(a,n),a||p)}},r[6],()=>!d(t)&&t in h?h[t]:!d(t)&&e.get(t)||p]},k=!0,[S,O]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[u,u],T={initFocus:e=>(m&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{m&&document.removeEventListener("visibilitychange",e),O("focus",e)}),initReconnect:e=>{let t=()=>{k=!0,e()},r=()=>{k=!1};return S("online",t),S("offline",r),()=>{O("online",t),O("offline",r)}}},E=!a.useId,j=!g||y,R=e=>b()?window.requestAnimationFrame(e):setTimeout(e,1),I=j?a.useEffect:a.useLayoutEffect,L="undefined"!=typeof navigator&&navigator.connection,C=!j&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),V=new WeakMap,D=e=>c.prototype.toString.call(e),W=(e,t)=>e==="[object ".concat(t,"]"),N=0,F=e=>{let t,r;let n=typeof e,a=D(e),o=W(a,"Date"),i=W(a,"RegExp"),l=W(a,"Object");if(c(e)!==e||o||i)t=o?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=V.get(e))return t;if(t=++N+"~",V.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=F(e[r])+",";V.set(e,t)}if(l){t="#";let n=c.keys(e).sort();for(;!d(r=n.pop());)d(e[r])||(t+=r+":"+F(e[r])+",");V.set(e,t)}}return t},P=e=>{if(_(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?F(e):"",t]},q=0,M=()=>++q;async function A(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let[n,a,o,i]=t,u=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),c=u.populateCache,p=u.rollbackOnError,h=u.optimisticData,v=e=>"function"==typeof p?p(e):!1!==p,g=u.throwOnError;if(_(a)){let e=[];for(let t of n.keys())!/^\$(inf|sub)\$/.test(t)&&a(n.get(t)._k)&&e.push(t);return Promise.all(e.map(m))}return m(a);async function m(e){let r;let[a]=P(e);if(!a)return;let[i,f]=x(n,a),[p,m,y,b]=l.get(n),k=()=>{let t=p[a];return(_(u.revalidate)?u.revalidate(i().data,e):!1!==u.revalidate)&&(delete y[a],delete b[a],t&&t[0])?t[0](2).then(()=>i().data):i().data};if(t.length<3)return k();let S=o,O=!1,T=M();m[a]=[T,0];let E=!d(h),j=i(),R=j.data,I=j._c,L=d(I)?R:I;if(E&&f({data:h=_(h)?h(L,R):h,_c:L}),_(S))try{S=S(L)}catch(e){r=e,O=!0}if(S&&w(S)){if(S=await S.catch(e=>{r=e,O=!0}),T!==m[a][0]){if(O)throw r;return S}O&&E&&v(r)&&(c=!0,f({data:L,_c:s}))}if(c&&!O&&(_(c)?f({data:c(S,L),error:s,_c:s}):f({data:S,error:s,_c:s})),m[a][1]=M(),Promise.resolve(k()).then(()=>{f({_c:s})}),O){if(g)throw r;return}return S}}let B=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},z=(e,t)=>{if(!l.has(e)){let r=f(T,t),n=Object.create(null),a=A.bind(s,e),o=u,i=Object.create(null),c=(e,t)=>{let r=i[e]||[];return i[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let a=i[t];if(a)for(let e of a)e(r,n)},_=()=>{if(!l.has(e)&&(l.set(e,[n,Object.create(null),Object.create(null),Object.create(null),a,d,c]),!j)){let t=r.initFocus(setTimeout.bind(s,B.bind(s,n,0))),a=r.initReconnect(setTimeout.bind(s,B.bind(s,n,1)));o=()=>{t&&t(),a&&a(),l.delete(e)}}};return _(),[e,a,_,o]}return[e,l.get(e)[4]]},[G,K]=z(new Map),X=f({onLoadingSlow:u,onSuccess:u,onError:u,onErrorRetry:(e,t,r,n,a)=>{let o=r.errorRetryCount,i=a.retryCount,l=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;(d(o)||!(i>o))&&setTimeout(n,l,a)},onDiscarded:u,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:C?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:C?5e3:3e3,compare:function e(t,r){var n,a;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((a=t.length)===r.length)for(;a--&&e(t[a],r[a]););return -1===a}if(!n||"object"==typeof t){for(n in a=0,t)if(i.call(t,n)&&++a&&!i.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===a}}return t!=t&&r!=r},isPaused:()=>!1,cache:G,mutate:K,fallback:{}},{isOnline:()=>k,isVisible:()=>{let e=m&&document.visibilityState;return d(e)||"hidden"!==e}}),Y=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:a}
1=e,{use:o,fallback:i}=t;n&&o&&(r.use=n.concat(o)),a&&i&&(r.fallback=f(a,i))}return r},J=(0,a.createContext)({}),Q=g&&window.__SWR_DEVTOOLS_USE__,U=Q?window.__SWR_DEVTOOLS_USE__:[],H=e=>_(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],$=()=>{let e=(0,a.useContext)(J);return(0,a.useMemo)(()=>f(X,e),[e])},Z=U.concat(e=>(t,r,n)=>{let a=r&&((...e)=>{let[n]=P(t),[,,,a]=l.get(G);if(n.startsWith("$inf$"))return r(...e);let o=a[n];return d(o)?r(...e):(delete a[n],o)});return e(t,a,n)}),ee=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}};Q&&(window.__SWR_DEVTOOLS_REACT__=a);let et=()=>{};et(),new WeakMap;let er=a.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),en={dedupe:!0},ea=Promise.resolve(s),eo=()=>u;c.defineProperty(e=>{let{value:t}=e,r=(0,a.useContext)(J),n=_(t),o=(0,a.useMemo)(()=>n?t(r):t,[n,r,t]),i=(0,a.useMemo)(()=>n?o:Y(r,o),[n,r,o]),l=o&&o.provider,u=(0,a.useRef)(s);l&&!u.current&&(u.current=z(l(i.cache||G),o));let c=u.current;return c&&(i.cache=c[0],i.mutate=c[1]),I(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,a.createElement)(J.Provider,f(e,{value:i}))},"defaultValue",{value:X});let ei=(n=(e,t,r)=>{let{cache:n,compare:i,suspense:u,fallbackData:c,revalidateOnMount:p,revalidateIfStale:h,refreshInterval:v,refreshWhenHidden:g,refreshWhenOffline:m,keepPreviousData:y,strictServerPrefetchWarning:b}=r,[k,S,O,T]=l.get(n),[L,C]=P(e),V=(0,a.useRef)(!1),D=(0,a.useRef)(!1),W=(0,a.useRef)(L),N=(0,a.useRef)(t),F=(0,a.useRef)(r),q=()=>F.current,B=()=>q().isVisible()&&q().isOnline(),[z,G,K,X]=x(n,L),Y=(0,a.useRef)({}).current,J=d(c)?d(r.fallback)?s:r.fallback[L]:c,Q=(e,t)=>{for(let r in Y)if("data"===r){if(!i(e[r],t[r])&&(!d(e[r])||!i(es,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},U=!V.current,H=(0,a.useMemo)(()=>{let e=z(),r=X(),n=e=>{let r=f(e);return(delete r._k,(()=>{if(!L||!t||q().isPaused())return!1;if(U&&!d(p))return p;let e=d(J)?r.data:J;return d(e)||h})())?{isValidating:!0,isLoading:!0,...r}:r},a=n(e),o=e===r?a:n(r),i=a;return[()=>{let e=n(z());return Q(e,i)?(i.data=e.data,i.isLoading=e.isLoading,i.isValidating=e.isValidating,i.error=e.error,i):(i=e,e)},()=>o]},[n,L]),$=(0,o.useSyncExternalStore)((0,a.useCallback)(e=>K(L,(t,r)=>{Q(r,t)||e()}),[n,L]),H[0],H[1]),Z=k[L]&&k[L].length>0,et=$.data,ei=d(et)?J&&w(J)?er(J):J:et,el=$.error,eu=(0,a.useRef)(ei),es=y?d(et)?d(eu.current)?ei:eu.current:et:ei,ec=L&&d(ei),ed=(0,a.useRef)(null);j||(0,o.useSyncExternalStore)(eo,()=>(ed.current=!1,ed),()=>(ed.current=!0,ed));let e_=ed.current;b&&e_&&!u&&ec&&console.warn(`Missing pre-initiated data for serialized key "${L}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ef=!(!L||!t||q().isPaused())&&(!Z||!!d(el))&&(U&&!d(p)?p:u?!d(ei)&&h:d(ei)||h),ew=U&&ef,ep=d($.isValidating)?ew:$.isValidating,eh=d($.isLoading)?ew:$.isLoading,ev=(0,a.useCallback)(async e=>{let t,n;let a=N.current;if(!L||!a||D.current||q().isPaused())return!1;let o=!0,l=e||{},u=!O[L]||!l.dedupe,c=()=>E?!D.current&&L===W.current&&V.current:L===W.current,f={isValidating:!1,isLoading:!1},w=()=>{G(f)},p=()=>{let e=O[L];e&&e[1]===n&&delete O[L]},h={isValidating:!0};d(z().data)&&(h.isLoading=!0);try{if(u&&(G(h),r.loadingTimeout&&d(z().data)&&setTimeout(()=>{o&&c()&&q().onLoadingSlow(L,r)},r.loadingTimeout),O[L]=[a(C),M()]),[t,n]=O[L],t=await t,u&&setTimeout(p,r.dedupingInterval),!O[L]||O[L][1]!==n)return u&&c()&&q().onDiscarded(L),!1;f.error=s;let e=S[L];if(!d(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return w(),u&&c()&&q().onDiscarded(L),!1;let l=z().data;f.data=i(l,t)?l:t,u&&c()&&q().onSuccess(t,L,r)}catch(r){p();let e=q(),{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,u&&c()&&(e.onError(r,L,e),(!0===t||_(t)&&t(r))&&(!q().revalidateOnFocus||!q().revalidateOnReconnect||B())&&e.onErrorRetry(r,L,e,e=>{let t=k[L];t&&t[0]&&t[0](3,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return o=!1,w(),!0},[L,n]),eg=(0,a.useCallback)((...e)=>A(n,W.current,...e),[]);if(I(()=>{N.current=t,F.current=r,d(et)||(eu.current=et)}),I(()=>
1{if(!L)return;let e=ev.bind(s,en),t=0;q().revalidateOnFocus&&(t=Date.now()+q().focusThrottleInterval);let r=ee(L,k,(r,n={})=>{if(0==r){let r=Date.now();q().revalidateOnFocus&&r>t&&B()&&(t=r+q().focusThrottleInterval,e())}else if(1==r)q().revalidateOnReconnect&&B()&&e();else if(2==r)return ev();else if(3==r)return ev(n)});return D.current=!1,W.current=L,V.current=!0,G({_k:C}),ef&&!O[L]&&(d(ei)||j?e():R(e)),()=>{D.current=!0,r()}},[L]),I(()=>{let e;function t(){let t=_(v)?v(z().data):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!z().error&&(g||q().isVisible())&&(m||q().isOnline())?ev(en).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,g,m,L]),(0,a.useDebugValue)(es),u){if(!E&&j&&ec)throw Error("Fallback data is required when using Suspense in SSR.");ec&&(N.current=t,F.current=r,D.current=!1);let e=T[L];if(er(!d(e)&&ec?eg(e):ea),!d(el)&&ec)throw el;let n=ec?ev(en):ea;!d(es)&&ec&&(n.status="fulfilled",n.value=!0),er(n)}return{mutate:eg,get data(){return Y.data=!0,es},get error(){return Y.error=!0,el},get isValidating(){return Y.isValidating=!0,ep},get isLoading(){return Y.isLoading=!0,eh}}},function(...e){let t=$(),[r,a,o]=H(e),i=Y(t,o),l=n,{use:u}=i,s=(u||[]).concat(Z);for(let e=s.length;e--;)l=s[e](l);return l(r,a||i.fetcher||null,i)});class el extends Error{constructor({message:e,status:t,data:r}){super(e),this.name="TwitterApiError",this.status=t,this.data=r}}let eu=ei.default||ei;async function es(e){let[t,r]=e,n=await fetch(t,r),a=await n.json();if(n.ok)return a.data||null;throw new el({message:'Failed to fetch tweet at "'.concat(t,'" with "').concat(n.status,'".'),data:a,status:n.status})}let ec=(e,t,r)=>{let{isLoading:n,data:a,error:o}=eu(()=>t||e?[t||e&&"".concat("https://react-tweet.vercel.app","/api/tweet/").concat(e),r]:null,es,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:!!(n||void 0===a&&!o),data:a,error:o}},ed=()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useEffect)(()=>t(!0),[]),e}},3150:function(e,t,r){"use strict";r.r(t),r.d(t,{QuotedTweetContainer:function(){return o}});var n=r(3890),a=r(2135);let o=e=>{let{tweet:t,children:r}=e;return(0,n.jsx)("div",{className:a.root,onClick:e=>{e.preventDefault(),window.open(t.url,"_blank")},children:(0,n.jsx)("article",{className:a.article,children:r})})}},8784:function(e,t,r){"use strict";r.r(t),r.d(t,{TweetActionsCopy:function(){return i}});var n=r(3890),a=r(8496),o=r(3073);let i=e=>{let{tweet:t}=e,[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(r){let e=setTimeout(()=>{i(!1)},6e3);return()=>clearTimeout(e)}},[r]),(0,n.jsxs)("button",{type:"button",className:o.copy,"aria-label":"Copy link",onClick:()=>{navigator.clipboard.writeText(t.url),i(!0)},children:[(0,n.jsx)("div",{className:o.copyIconWrapper,children:r?(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:o.copyIcon,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:o.copyIcon,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),(0,n.jsx)("span",{className:o.copyText,children:r?"Copied!":"Copy link"})]})}},7142:function(e,t,r){"use strict";r.r(t),r.d(t,{TweetMediaVideo:function(){return d}});var n=r(3890),a=r(8496),o=r(2675);let i=(e,t)=>{let r=new URL(e.media_url_https),n=r.pathname.split(".").pop();return n?(r.pathname=r.pathname.replace(`.${n}`,""),r.searchParams.set("format",n),r.searchParams.set("name",t),r.toString()):e.media_url_https},l=e=>{let{variants:t}=e.video_info;return t.filter(e=>"video/mp4"===e.content_type).sort((e,t)=>{var r,n;return(null!=(r=t.bitrate)?r:0)-(null!=(n=e.bitrate)?n:0)})},u=e=>{let t=l(e);return t.length>1?t[1]:t[0]};var s=r(3384),c=r(7807);let d=e=>{let{tweet:t,media:r}=e,[l,d]=(0,a.useState)(!0),[_,f]=(0,a.useState)(!1),[w,p]=(0,a.useState)(!1),h=u(r),v=0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("video",{className:s.image,poster:i(r,"small"),controls:!l,playsInl
1ine:!0,preload:"none",tabIndex:l?-1:0,onPlay:()=>{v&&window.clearTimeout(v),_||f(!0),w&&p(!1)},onPause:()=>{v&&window.clearTimeout(v),v=window.setTimeout(()=>{_&&f(!1),v=0},100)},onEnded:()=>{p(!0)},children:(0,n.jsx)("source",{src:h.url,type:h.content_type})}),l&&(0,n.jsx)("button",{type:"button",className:c.videoButton,"aria-label":"View video on X",onClick:e=>{let t=e.currentTarget.previousSibling;e.preventDefault(),d(!1),t.load(),t.play().then(()=>{f(!0),t.focus()}).catch(e=>{console.error("Error playing video:",e),d(!0),f(!1)})},children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:c.videoButtonIcon,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M21 12L4 2v20l17-10z"})})})}),!_&&!w&&(0,n.jsx)("div",{className:c.watchOnTwitter,children:(0,n.jsx)("a",{href:t.url,className:c.anchor,target:"_blank",rel:"noopener noreferrer",children:l?"Watch on X":"Continue watching on X"})}),w&&(0,n.jsx)("a",{href:t.url,className:(0,o.Z)(c.anchor,c.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})}}}]);

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.