owncast/static/web/_next/static/chunks/pages/index-4b3a53f1ee12efb4.js
2022-08-26 22:02:55 +00:00

1 line
41 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n(89877)}])},89877:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return xn}});var r=n(85893),o=n(97183),s=n(4480),a=n(9008),i=n.n(a),c=n(67294),l=n(39370),u=n(94199),d=n(20550),h=n(13229),p=n(92910),f=n.n(p),m=o.Z.Header;function x(e){var t=e.name,n=void 0===t?"Your stream title":t,o=e.chatAvailable;return(0,r.jsxs)(m,{className:"".concat(f().header),children:[(0,r.jsxs)("div",{className:"".concat(f().logo),children:[(0,r.jsx)(h.C,{variant:"contrast"}),(0,r.jsx)("span",{children:n})]}),o&&(0,r.jsx)(h.w,{}),!o&&(0,r.jsx)(u.Z,{title:"Chat is available when the stream is live.",placement:"left",children:(0,r.jsx)(d.Z,{color:"processing",style:{cursor:"pointer"},children:"Chat offline"})})]})}var g,v,j,_,y,w=n(87412),C=n(71577),b=n(9764),N=n(36531),k=n(66017),Z=n(11622),S=n(13545),M=n.n(S),T=n(93174),E=n.n(T);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}var U=function(e){return c.createElement("svg",A({height:500,viewBox:"0 0 132.292 132.292",width:500,xmlns:"http://www.w3.org/2000/svg"},e),g||(g=c.createElement("linearGradient",{id:"moderator_svg__a",gradientUnits:"userSpaceOnUse",x1:432.851,x2:464.644,y1:49.977,y2:49.977},c.createElement("stop",{offset:0,stopColor:"#2087e2"}),c.createElement("stop",{offset:1,stopColor:"#b63fff"}))),v||(v=c.createElement("path",{d:"M438.672 34.08h20.151a5.82 5.82 45 0 1 5.82 5.821v20.151a5.82 5.82 135 0 1-5.82 5.821h-20.15a5.82 5.82 45 0 1-5.822-5.82V39.9a5.82 5.82 135 0 1 5.821-5.82z",fill:"url(#moderator_svg__a)",transform:"matrix(4.16112 0 0 4.16112 -1801.146 -141.814)"})),j||(j=c.createElement("path",{d:"M121.11 29.551c-6.93 47.444-30.074 104.618-77.642 79.674l25.83 23.067h38.772c13.377 0 24.22-10.845 24.22-24.222V40.864z",fill:"#1d1535",fillOpacity:.335})),_||(_=c.createElement("path",{d:"M66.775 13.257s-7.129 57.999-.63 99.312c6.565 41.724-81.568-74.394-49.619-79.203 31.949-4.809 50.249-20.11 50.249-20.11z",fill:"#e2e8f0",fillOpacity:.306})),y||(y=c.createElement("path",{d:"M435.995 42.072c6.797.447 12.753-4.806 12.753-4.806s5.955 5.253 12.752 4.806c-.581 12.745-7.495 20.586-12.752 20.628-5.188.042-12.172-7.883-12.753-20.628z",fill:"none",stroke:"#fff",strokeLinejoin:"round",strokeWidth:2,transform:"matrix(4.16112 0 0 4.16112 -1801.146 -141.814)"})))};function B(){return(0,r.jsxs)("div",{className:E().chatModerationNotification,children:[(0,r.jsx)(U,{className:E().icon}),"You are now a moderator."]})}var F=n(47049),O=n(31681),P=n.n(O);function H(e){var t=e.message,n=e.highlightString,o=t.body,s=t.user.displayName;return(0,r.jsxs)("div",{className:P().chatSystemMessage,children:[(0,r.jsx)("div",{className:P().user,children:(0,r.jsx)("span",{className:P().userName,children:s})}),(0,r.jsx)(F.y,{search:n,children:(0,r.jsx)("div",{className:P().message,dangerouslySetInnerHTML:{__html:o}})})]})}var L=n(83066),D=n.n(L),R=n(79010),I=n.n(R);function J(e){var t=e.badge,n=e.userColor,o="var(--theme-user-colors-".concat(n,")"),s={color:o,borderColor:o};return(0,r.jsx)("span",{style:s,className:I().badge,children:t})}function z(e){var t=e.isAuthorModerator,n=e.userColor,o=e.displayName,s="var(--theme-user-colors-".concat(n,")");return(0,r.jsxs)("div",{className:D().join,children:[(0,r.jsxs)("span",{style:{color:s},children:[o,t&&(0,r.jsx)("span",{children:(0,r.jsx)(J,{badge:"mod",userColor:n})})]})," ","joined the chat."]})}function V(e){var t=e.messages,n=e.usernameToHighlight,o=e.chatUserId,s=e.isModerator,a=(0,c.useState)(!1),i=a[0],l=a[1],u=(0,c.useRef)(null),d=function(e,a){switch(a.type){case Z.C.CHAT:var i,c,l;return(0,r.jsx)(Ee,{message:a,showModeratorMenu:s,highlightString:n,sentBySelf:(null===(i=a.user)||void 0===i?void 0:i.id)===o,sameUserAsLast:W(t,e),isAuthorModerator:null===(c=a.user.scopes)||void 0===c?void 0:c.includes("MODERATOR"),isAuthorAuthenticated:null===(l=a.user)||void 0===l?void 0:l.authenticated},a.id);case Z.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,o=n.displayName,s=n.displayColor,a="var(--theme-user-colors-".concat(s,")");return(0,r.jsxs)("div",{className:M().nameChangeView,children:[(0,r.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,r.jsx)(N.Z,{})}),(0,r.jsxs)("div",{className:M().nameChangeText,children:[(0,r.jsx)("span",{style:{color:a},children:t}),(0,r.jsx)("span",{className:M().plain,children:" is now known as "}),(0,r.jsx)("span",{style:{color:a},children:o})]})]})}(a);case Z.C.CONNECTED_USER_INFO:return function(e){if(!Y(e))return(0,r.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,r.jsx)(B,{})}(a);case Z.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,o=t.displayColor,s=Y(e);return(0,r.jsx)(z,{displayName:n,userColor:o,isAuthorModerator:s})}(a);case Z.C.SYSTEM:return(0,r.jsx)(H,{message:a,highlightString:n},a.id);default:return null}},h=(0,c.useMemo)((function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(b.OO,{style:{height:"calc(100vh - 170px)",width:"auto"},ref:u,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return d(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return l(e)}}),!i&&(0,r.jsx)("div",{className:M().toBottomWrap,children:(0,r.jsx)(C.Z,{type:"default",icon:(0,r.jsx)(k.Z,{}),onClick:function(){return u.current.scrollToIndex({index:t.length-1,behavior:"smooth"})},children:"Go to last message"})})]})}),[t,n,o,s,i]);return(0,r.jsxs)("div",{style:{height:"100%"},children:[h,(0,r.jsx)(We,{})]})}function W(e,t){if(e.length<2)return!1;var n=e[t],r=n.user.id,o=e[t-1];if((null===o||void 0===o?void 0:o.type)!==Z.C.CHAT)return!1;if(!o.timestamp||!n.timestamp)return!1;var s=new Date(o.timestamp).getTime();return!(new Date(n.timestamp).getTime()-s>12e4)&&r===(null===o||void 0===o?void 0:o.user.id)}function Y(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var G=n(14924),q=n(86492),X=n.n(q),K=n(94184),Q=n.n(K),$=n(78583),ee=n.n($);function te(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var ne=n(47568),re=n(34051),oe=n.n(re),se=n(11475),ae=n(90420),ie=n(18429),ce=n(64942),le=n(85402),ue=n(12461),de=n(66516),he=n(38504),pe=n(26713),fe=n(25968),me=n(6226),xe=n(11382),ge=n(51438),ve=function(){function e(){(0,ge.Z)(this,e)}return e.removeMessage=function(e,t){return(0,ne.Z)(oe().mark((function n(){var r,o,s;return oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new URL("/api/chat/messagevisibility",window.location.toString())).searchParams.append("accessToken",t),o=r.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})},n.next=6,fetch(o,s);case 6:case"end":return n.stop()}}),n)})))()},e.banUser=function(e,t){return(0,ne.Z)(oe().mark((function n(){var r,o,s;return oe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new URL("/api/chat/users/setenabled",window.location.toString())).searchParams.append("accessToken",t),o=r.toString(),s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})},n.next=6,fetch(o,s);case 6:case"end":return n.stop()}}),n)})))()},e}(),je=n(91391),_e=n.n(je),ye=function(){var e=(0,ne.Z)(oe().mark((function e(t,n){return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{ve.removeMessage(t,n)}catch(r){console.error(r)}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),we=function(e){var t=e.label,n=e.value;return(0,r.jsxs)(fe.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(me.Z,{span:12,children:t}),(0,r.jsx)(me.Z,{span:12,children:n})]})},Ce=function(e){var t=e.id,n=e.body,o=e.accessToken;return(0,r.jsxs)(fe.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(me.Z,{span:18,children:n}),(0,r.jsx)(me.Z,{children:(0,r.jsx)(C.Z,{onClick:function(){return ye(t,o)},children:"X"})})]})},be=function(e){var t=e.client,n=t.messageCount,o=t.userAgent,s=t.connectedAt,a=t.geo;return(0,r.jsxs)("div",{children:[(0,r.jsx)(we,{label:"Messages Sent",value:"".concat(n)}),(0,r.jsx)(we,{label:"Geo",value:a}),(0,r.jsx)(we,{label:"Connected At",value:s.toString()}),(0,r.jsx)(we,{label:"User Agent",value:o})]})},Ne=function(e){var t=e.color,n="var(--theme-user-colors-".concat(t,")");return(0,r.jsxs)(fe.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(me.Z,{span:12,children:"Color"}),(0,r.jsx)(me.Z,{span:12,children:(0,r.jsx)("div",{className:_e().colorBlock,style:{backgroundColor:n},children:t})})]})};function ke(e){var t=e.userId,n=e.accessToken,o=(0,c.useState)(null),s=o[0],a=o[1],i=(0,c.useState)(!0),l=i[0],u=i[1],d=function(){var e=(0,ne.Z)(oe().mark((function e(){var n;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/moderation/chat/user/".concat(t));case 3:return e.next=5,e.sent.json();case 5:n=e.sent,a(n),u(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();if((0,c.useEffect)((function(){d()}),[]),!s)return null;var h=s.user,p=s.connectedClients,f=s.messages,m=h.displayName,x=h.displayColor,g=h.createdAt,v=h.previousNames,j=h.scopes,_=h.isBot,y=h.authenticated;return(0,r.jsx)("div",{className:_e().modalContainer,children:(0,r.jsxs)(xe.Z,{spinning:l,children:[(0,r.jsx)("h1",{children:m}),(0,r.jsxs)(fe.Z,{justify:"space-around",align:"middle",children:[j.map((function(e){return(0,r.jsx)(me.Z,{children:e})})),y&&(0,r.jsx)(me.Z,{children:"Authenticated"}),_&&(0,r.jsx)(me.Z,{children:"Bot"})]}),(0,r.jsx)(Ne,{color:x}),(0,r.jsx)(we,{label:"User Created",value:g.toString()}),(0,r.jsx)(we,{label:"Previous Names",value:v.join(",")}),(0,r.jsx)("hr",{}),(0,r.jsx)("h2",{children:"Currently Connected"}),p.length>0&&(0,r.jsx)(fe.Z,{gutter:[15,15],wrap:!0,children:p.map((function(e){return(0,r.jsx)(me.Z,{flex:"auto",children:(0,r.jsx)(be,{client:e})})}))}),(0,r.jsx)("hr",{}),f.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{children:"Recent Chat Messages"}),(0,r.jsx)("div",{className:_e().chatHistory,children:f.map((function(e){return(0,r.jsx)(Ce,{id:e.id,body:e.body,accessToken:n},e.id)}))})]})]})})}var Ze=n(31833),Se=n.n(Ze),Me=le.Z.confirm;function Te(e){var t=e.messageID,n=e.userID,o=e.userDisplayName,s=e.accessToken,a=(0,c.useState)(!1),i=a[0],l=a[1],u=function(){var e=(0,ne.Z)(oe().mark((function e(){return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ve.banUser(n,s);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0),ue.ZP.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=(0,ne.Z)(oe().mark((function e(){return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ve.removeMessage(t,s);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0),ue.ZP.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,ne.Z)(oe().mark((function e(){return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Me({icon:(0,r.jsx)(se.Z,{}),content:"Are you sure you want to remove this message from ".concat(o,"?"),onOk:function(){d()}});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=(0,ne.Z)(oe().mark((function e(){return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Me({icon:(0,r.jsx)(se.Z,{}),content:"Are you sure you want to ban ".concat(o," from chat?"),onOk:function(){u()}});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),f=(0,r.jsx)(de.Z,{onClick:function(e){var t=e.key;"hide-message"===t?h():"ban-user"===t?p():"more-info"===t&&l(!0)},items:[{label:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:Se().icon,children:(0,r.jsx)(ae.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:Se().icon,children:(0,r.jsx)(ie.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,r.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(he.Z,{overlay:f,trigger:["click"],children:(0,r.jsx)("button",{type:"button",onClick:function(e){return e.preventDefault()},children:(0,r.jsx)(pe.Z,{children:(0,r.jsx)(ce.Z,{})})})}),(0,r.jsx)(le.Z,{visible:i,okText:"Ban User",okButtonProps:{danger:!0},onOk:u,onCancel:function(){l(!1)},children:(0,r.jsx)(ke,{userId:n,accessToken:s})})]})}function Ee(e){var t=e.message,n=e.highlightString,o=e.showModeratorMenu,s=e.sentBySelf,a=e.sameUserAsLast,i=e.isAuthorModerator,l=e.isAuthorAuthenticated,d=t.id,h=t.body,p=t.user,f=t.timestamp,m=p.id,x=p.displayName,g=p.displayColor,v="var(--theme-user-colors-".concat(g,")"),j="Sent ".concat(te(f)),_=(0,c.useState)(h),y=_[0],w=_[1],C=[i&&"mod",l&&"auth"].filter((function(e){return!!e})).map((function(e){return(0,r.jsx)(J,{badge:e,userColor:g},e)}));return(0,c.useEffect)((function(){w(X().decode(h))}),[t]),(0,r.jsx)("div",{className:Q()(ee().messagePadding,a&&ee().messagePaddingCollapsed),children:(0,r.jsxs)("div",{className:Q()(ee().root,(0,G.Z)({},ee().ownMessage,s)),style:{borderColor:v},children:[!a&&(0,r.jsx)(u.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,r.jsxs)("div",{className:ee().user,style:{color:v},children:[(0,r.jsx)("span",{className:ee().userName,children:x}),(0,r.jsx)("span",{children:C})]})}),(0,r.jsx)(u.Z,{title:j,mouseEnterDelay:1,children:(0,r.jsx)(F.y,{search:n,children:(0,r.jsx)("div",{className:ee().message,children:y})})}),o&&(0,r.jsx)("div",{className:ee().modMenuWrapper,children:(0,r.jsx)(Te,{messageID:d,accessToken:"",userID:m,userDisplayName:x})}),(0,r.jsx)("div",{className:ee().customBorder,style:{color:v}}),(0,r.jsx)("div",{className:ee().background,style:{color:v}})]})})}var Ae=n(26042),Ue=n(69396),Be=n(93045),Fe=n(27496),Oe=n(55241),Pe=n(77493),He=n(96391),Le=n(57741);function De(e){var t=(0,c.useState)([]),n=t[0],o=t[1],s=e.onEmojiSelect,a=(0,c.useRef)(),i=function(){var e=(0,ne.Z)(oe().mark((function e(){var t,n;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/emoji");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,o(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("cannot fetch custom emoji",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){i()}),[]),(0,c.useEffect)((function(){(0,Le.wU)({rootElement:a.current,custom:n}).addEventListener("emoji:select",(function(e){console.log("Emoji selected:",e.emoji),s(e)}))}),[n]),(0,r.jsx)("div",{ref:a})}var Re=n(25882),Ie=n.n(Re),Je=function(e){var t=e.element;return(0,r.jsx)("img",{src:t.url,alt:"emoji",style:{display:"inline",position:"relative",width:"30px",bottom:"10px"}})},ze=function(e){var t=e.attributes,n=e.children;return"image"===e.element.type?(0,r.jsx)(Je,(0,Ae.Z)({},e)):(0,r.jsx)("p",(0,Ue.Z)((0,Ae.Z)({},t),{children:n}))},Ve=function(e){if(Pe.xv.isText(e))return e.text;var t=e.children.map((function(e){return Ve(e)})).join("");switch(e.type){case"paragraph":return"<p>".concat(t,"</p>");case"image":return'<img src="'.concat(e.url,'" alt="emoji" />');default:return t}};function We(e){var t=(0,c.useState)(!1),n=t[0],o=t[1],a=(0,s.sJ)(l.Gt),i=(0,c.useState)((function(){return function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,He.BU)((0,Pe.Jh)()))})),u=i[0],d=function(){if(a){var e=Ve(u);a.send({type:Z.C.CHAT,body:e}),Pe.YR.select(u,[0,u.children.length-1]),Pe.YR.delete(u)}else console.log("websocketService is not defined")};return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:Ie().root,children:[(0,r.jsxs)(He.mH,{editor:u,value:[{type:"paragraph",children:[{text:""}]}],onChange:function(){},children:[(0,r.jsx)(He.CX,{onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),d())},renderElement:function(e){return(0,r.jsx)(ze,(0,Ae.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,r.jsx)(Oe.Z,{content:(0,r.jsx)(De,{onEmojiSelect:function(e){if(He.F3.focus(u),e.url)e.url;else{var t=e.emoji;Pe.YR.insertText(u,t)}}}),trigger:"click",onVisibleChange:function(e){return o(e)},visible:n})]}),(0,r.jsx)("button",{type:"button",className:Ie().emojiButton,title:"Emoji picker button",onClick:function(){return o(!n)},children:(0,r.jsx)(Be.Z,{})}),(0,r.jsx)(C.Z,{className:Ie().sendButton,size:"large",type:"ghost",icon:(0,r.jsx)(Fe.Z,{}),onClick:d})]})})}We.defaultProps={value:""};var Ye=n(75347),Ge=n.n(Ye);function qe(){var e=(0,s.sJ)(l.j$),t=(0,s.sJ)(l.w4),n=(0,s.sJ)(l.uy),o=(0,s.sJ)(l.fE);return(0,r.jsx)(w.ZP,{className:Ge().root,collapsedWidth:0,width:320,children:(0,r.jsx)(V,{messages:e,usernameToHighlight:t,chatUserId:n,isModerator:o})})}var Xe=n(35603),Ke=n.n(Xe),Qe=o.Z.Footer;function $e(e){var t=e.version;return(0,r.jsx)(Qe,{className:Ke().footer,children:(0,r.jsx)("a",{href:"https://owncast.online",children:t})})}var et=n(828),tt=n(87961),nt=n(73682),rt=n(28105),ot=n.n(rt);function st(e){var t=e.content;return(0,r.jsx)("div",{className:ot().pageContentContainer,children:(0,r.jsx)("div",{className:ot().customPageContent,dangerouslySetInnerHTML:{__html:t}})})}var at=n(14633),it=n(3698),ct=n(24093),lt=n(4300),ut=n.n(lt);function dt(e){var t=e.follower;return(0,r.jsx)("div",{className:ut().follower,children:(0,r.jsx)("a",{href:t.link,target:"_blank",rel:"noreferrer",children:(0,r.jsxs)(fe.Z,{wrap:!1,children:[(0,r.jsx)(me.Z,{span:6,children:(0,r.jsx)(ct.C,{src:t.image,alt:"Avatar",className:ut().avatar,children:(0,r.jsx)("img",{src:"/logo",alt:"Logo",className:ut().placeholder})})}),(0,r.jsxs)(me.Z,{children:[(0,r.jsx)(fe.Z,{children:t.name}),(0,r.jsx)(fe.Z,{className:ut().account,children:t.username})]})]})})})}function ht(){var e=(0,c.useState)([]),t=e[0],n=e[1],o=(0,c.useState)(0),s=o[0],a=o[1],i=(0,c.useState)(1),l=i[0],u=i[1],d=Math.ceil(s/24),h=function(){var e=(0,ne.Z)(oe().mark((function e(){var t,r;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat("/api/followers","?page=").concat(l));case 3:return t=e.sent,e.next=6,t.json();case 6:r=e.sent,n(r.response),a(r.total),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){h()}),[]),(0,c.useEffect)((function(){h()}),[l]);var p=(0,r.jsx)("div",{children:"A message explaining how to follow goes here since there are no followers."});return(null===t||void 0===t?void 0:t.length)?(0,r.jsxs)("div",{className:ut().followers,children:[(0,r.jsx)(fe.Z,{wrap:!0,gutter:[10,10],justify:"space-around",children:t.map((function(e){return(0,r.jsx)(me.Z,{children:(0,r.jsx)(dt,{follower:e},e.link)})}))}),(0,r.jsx)(it.Z,{current:l,pageSize:24,total:d||1,onChange:function(e){u(e)},hideOnSinglePage:!0})]}):p}var pt=n(63291),ft=n.n(pt),mt=n(46218),xt=n.n(mt);function gt(e){var t=e.children;return(0,r.jsx)("div",{className:"".concat(xt().row),children:t})}var vt=n(32365),jt=n(49418),_t=n.n(jt);function yt(e){var t=e.action,n=t.url,o=t.title,s=t.description,a=t.icon,i=t.color,l=t.openExternally,u=(0,c.useState)(!1),d=u[0],h=u[1];return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(C.Z,{type:"primary",className:"".concat(_t().button),onClick:function(){l?window.open(n,"_blank"):h(!0)},style:{backgroundColor:i},children:[(0,r.jsx)("img",{src:a,className:"".concat(_t().icon),alt:s}),o]}),(0,r.jsx)(vt.Z,{title:s||o,url:n,visible:d,height:"80vh",handleCancel:function(){return h(!1)}})]})}var wt=n(97937),Ct=n(18668),bt=n.n(Ct);function Nt(e){var t=e.children,n=e.visible,o=e.notificationClicked,s=e.notificationClosed,a=(0,c.useState)(n),i=a[0],l=a[1],u=(0,c.useState)(!1),d=u[0],h=u[1];(0,c.useEffect)((function(){l(n)}),[n]),(0,c.useEffect)((function(){h(!0)}),[]);var p=(0,r.jsx)("div",{className:bt().title,children:"Stay updated!"}),f=function(e){e.stopPropagation(),o()},m=(0,r.jsxs)("div",{onClick:f,onKeyDown:f,role:"menuitem",tabIndex:0,children:[(0,r.jsx)("button",{type:"button",className:bt().closebutton,onClick:function(e){e.stopPropagation(),l(!1),s()},children:(0,r.jsx)(wt.Z,{})}),(0,r.jsxs)("div",{className:bt().contentbutton,children:["Click and never miss",(0,r.jsx)("br",{}),"future streams!"]})]});return d&&(0,r.jsx)(Oe.Z,{placement:"topLeft",defaultVisible:i,visible:i,destroyTooltipOnHide:!0,title:p,content:m,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},children:t})}var kt=n(1698),Zt=n(34447),St=n(14670),Mt=n(69677),Tt=n(42288),Et=n.n(Tt);function At(e){var t=e.handleClose,n=e.account,o=e.name,s=(0,c.useState)(null),a=s[0],i=s[1],l=(0,c.useState)(!1),u=l[0],d=l[1],h=(0,c.useState)(!1),p=h[0],f=h[1],m=(0,c.useState)(null),x=m[0],g=m[1],v=function(e){i(e),!function(e){var t=e.replace(/^@+/,"");return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())}(e)?d(!1):d(!0)},j=function(){var e=(0,ne.Z)(oe().mark((function e(){var n,r,o,s;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u){e.next=2;break}return e.abrupt("return");case 2:return f(!0),e.prev=3,n=a.replace(/^@+/,""),r={account:n},e.next=8,fetch("/api/remotefollow",{method:"POST",body:JSON.stringify(r)});case 8:return o=e.sent,e.next=11,o.json();case 11:if((s=e.sent).redirectUrl&&(window.open(s.redirectUrl,"_blank"),t()),s.success){e.next=17;break}return g(s.message),f(!1),e.abrupt("return");case 17:if(s.redirectUrl){e.next=21;break}return g("Unable to follow."),f(!1),e.abrupt("return");case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(3),g(e.t0.message);case 26:f(!1);case 27:case"end":return e.stop()}}),e,null,[[3,23]])})));return function(){return e.apply(this,arguments)}}();return(0,r.jsxs)(pe.Z,{direction:"vertical",children:[(0,r.jsxs)("div",{className:Et().header,children:["By following this stream you'll get notified on the Fediverse when it goes live. Now is a great time to",(0,r.jsx)("a",{href:"https://owncast.online/join-fediverse",target:"_blank",rel:"noreferrer",children:"learn about the Fediverse"}),"if it's new to you."]}),(0,r.jsxs)(xe.Z,{spinning:p,children:[x&&(0,r.jsx)(St.Z,{message:"Follow Error",description:x,type:"error",showIcon:!0}),(0,r.jsxs)("div",{className:Et().account,children:[(0,r.jsx)("img",{src:"/logo",alt:"logo",className:Et().logo}),(0,r.jsxs)("div",{className:Et().username,children:[(0,r.jsx)("div",{className:Et().name,children:o}),(0,r.jsx)("div",{children:n})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:Et().instructions,children:"Enter your username @server to follow"}),(0,r.jsx)(Mt.Z,{value:n,size:"large",onChange:function(e){return v(e.target.value)},placeholder:"Your fediverse account @account@server",defaultValue:n}),(0,r.jsx)("div",{className:Et().footer,children:"You'll be redirected to your Fediverse server and asked to confirm the action."})]}),(0,r.jsxs)(pe.Z,{className:Et().buttons,children:[(0,r.jsx)(C.Z,{disabled:!u,onClick:j,children:"Follow"}),(0,r.jsx)(C.Z,{onClick:function(){window.open("https://owncast.online/join-fediverse","_blank")},children:"Join the Fediverse"})]})]})]})}function Ut(e){var t=(0,c.useState)(!1),n=t[0],o=t[1],a=(0,s.sJ)(l.g1),i=a.name,u=a.federation.account;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C.Z,(0,Ue.Z)((0,Ae.Z)({},e),{type:"primary",className:_t().button,icon:(0,r.jsx)(Zt.Z,{}),onClick:function(){o(!0)},children:"Follow"})),(0,r.jsx)(vt.Z,{title:"Follow ".concat(i),visible:n,handleCancel:function(){return o(!1)},width:"550px",height:"200px",children:(0,r.jsx)(At,{account:u,name:i,handleClose:function(){return o(!1)}})})]})}var Bt=n(71578);function Ft(e){var t=e.onClick;return(0,r.jsx)(C.Z,{type:"primary",className:"".concat(_t().button),icon:(0,r.jsx)(Bt.Z,{}),onClick:t,children:"Notify"})}var Ot=n(84485);function Pt(e,t,n){return Ht.apply(this,arguments)}function Ht(){return(Ht=(0,ne.Z)(oe().mark((function e(t,n,r){var o;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"/api/notifications/register",o={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channel:t,destination:n})},e.prev=2,e.next=5,fetch("".concat("/api/notifications/register","?accessToken=").concat(r),o);case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),console.error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[2,7]])})))).apply(this,arguments)}function Lt(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),n=window.atob(t),r=new Uint8Array(n.length),o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r}function Dt(e){return Rt.apply(this,arguments)}function Rt(){return(Rt=(0,ne.Z)(oe().mark((function e(t){var n,r;return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.serviceWorker.ready;case 2:return n=e.sent,e.next=5,n.pushManager.getSubscription();case 5:if(r=e.sent){e.next=10;break}return e.next=9,n.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Lt(t)});case 9:r=e.sent;case 10:return e.abrupt("return",JSON.stringify(r));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var It=n(71121),Jt=n.n(It);function zt(){return"serviceWorker"in navigator&&"PushManager"in window}var Vt=Ot.Z.Title;function Wt(){return(0,r.jsx)("div",{children:"Browser notifications are not supported in your browser."})}function Yt(){return(0,r.jsx)("div",{children:"Notifications enabled"})}function Gt(e){var t=e.start;return(0,r.jsx)("div",{id:"browser-push-preview-box",className:Jt().pushPreview,children:(0,r.jsxs)("div",{className:Jt().inner,children:[(0,r.jsxs)("div",{className:Jt().title,children:[window.location.toString()," wants to"]}),(0,r.jsxs)("div",{className:Jt().permissionLine,children:[(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M14 12.3333V13H2V12.3333L3.33333 11V7C3.33333 4.93333 4.68667 3.11333 6.66667 2.52667C6.66667 2.46 6.66667 2.4 6.66667 2.33333C6.66667 1.97971 6.80714 1.64057 7.05719 1.39052C7.30724 1.14048 7.64638 1 8 1C8.35362 1 8.69276 1.14048 8.94281 1.39052C9.19286 1.64057 9.33333 1.97971 9.33333 2.33333C9.33333 2.4 9.33333 2.46 9.33333 2.52667C11.3133 3.11333 12.6667 4.93333 12.6667 7V11L14 12.3333ZM9.33333 13.6667C9.33333 14.0203 9.19286 14.3594 8.94281 14.6095C8.69276 14.8595 8.35362 15 8 15C7.64638 15 7.30724 14.8595 7.05719 14.6095C6.80714 14.3594 6.66667 14.0203 6.66667 13.6667",fill:"#676670"})}),"Show notifications"]}),(0,r.jsxs)("div",{className:Jt().buttonRow,children:[(0,r.jsx)(C.Z,{type:"primary",className:Jt().allow,onClick:function(){t()},children:"Allow"}),(0,r.jsx)("button",{type:"button",className:Jt().disabled,children:"Block"})]})]})})}function qt(){var e=(0,c.useState)(null),t=e[0],n=e[1],o=(0,s.sJ)(l.FI),a=(0,s.sJ)(l.g1),i=(0,c.useState)(!1),u=i[0],d=i[1],h=zt()&&"default"!==Notification.permission,p=a.notifications.browser,f=p.publicKey,m=p.enabled&&zt();if(h)return(0,r.jsx)(Yt,{});var x=function(){var e=(0,ne.Z)(oe().mark((function e(){return oe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!zt()||"default"===Notification.permission){e.next=2;break}return e.abrupt("return");case 2:return d(!0),e.prev=3,e.next=6,Dt(f);case 6:Pt("BROWSER_PUSH_NOTIFICATION",e.sent,o),n(null),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),n("Error registering for live notifications: ".concat(e.t0.message,". Make sure you're not inside a private browser environment or have previously disabled notifications for this stream."));case 14:d(!1);case 15:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}();return m?(0,r.jsxs)(xe.Z,{spinning:u,children:[(0,r.jsxs)(fe.Z,{align:"top",children:[(0,r.jsx)(Vt,{children:"Browser Notifications"}),"Get notified right in the browser each time this stream goes live. Blah blah blah more description text goes here."]}),(0,r.jsx)(fe.Z,{children:t}),(0,r.jsx)(fe.Z,{align:"top",children:(0,r.jsx)(me.Z,{span:12,children:(0,r.jsx)(Gt,{start:function(){return x()}})})})]}):(0,r.jsx)(Wt,{})}var Xt=n(52740),Kt=n.n(Xt);function Qt(e){var t=e.links;return(0,r.jsx)("div",{className:Kt().links,children:t.map((function(e){return(0,r.jsx)("a",{href:e.url,className:Kt().link,target:"_blank",rel:"noreferrer",children:(0,r.jsx)("img",{src:e.icon,alt:e.platform,title:e.platform,className:Kt().link})},e.platform)}))})}var $t=n(74688),en=n.n($t);function tn(e){var t=e.name,n=e.title,o=e.summary,s=e.logo,a=e.tags,i=e.links;return(0,r.jsx)("div",{className:en().root,children:(0,r.jsxs)("div",{className:en().logoTitleSection,children:[(0,r.jsx)("div",{className:en().logo,children:(0,r.jsx)(ln,{src:s})}),(0,r.jsxs)("div",{className:en().titleSection,children:[(0,r.jsx)("div",{className:Q()(en().title,en().row),children:t}),(0,r.jsx)("div",{className:Q()(en().subtitle,en().row),children:n||o}),(0,r.jsx)("div",{className:Q()(en().tagList,en().row),children:a.length>0&&a.map((function(e){return(0,r.jsxs)("span",{children:["#",e,"\xa0"]},e)}))}),(0,r.jsx)("div",{className:Q()(en().socialLinks,en().row),children:(0,r.jsx)(Qt,{links:i})})]})]})})}var nn=tt.Z.TabPane,rn=o.Z.Content;function on(){var e=(0,s.sJ)(l.Q),t=(0,s.sJ)(l.g1),n=(0,s.sJ)(l.pT),o=(0,et.Z)((0,s.FV)(l.hz),2),a=o[0],i=o[1],u=(0,s.sJ)(l.YW),d=(0,s.sJ)(l.RI),h=d.viewerCount,p=d.lastConnectTime,f=d.lastDisconnectTime,m=d.streamTitle,x=t.extraPageContent,g=t.version,v=t.name,j=t.summary,_=t.socialHandles,y=t.tags,w=t.externalActions,C=t.offlineMessage,b=(0,c.useState)(!1),N=b[0],k=b[1],Z=(0,c.useState)(!1),S=Z[0],M=Z[1],T=w.map((function(e){return(0,r.jsx)(yt,{action:e},e.url)})),E=function(){M(!1),k(!1),(0,nt.qQ)(nt.dA.hasDisplayedNotificationModal,!0)},A=function(){var e=window.innerWidth;void 0===a&&i(e<=768),!a&&e<=768&&i(!0),a&&e>768&&i(!1)};(0,c.useEffect)((function(){!function(){var e=parseInt((0,nt.$o)(nt.dA.userVisitCount),10);Number.isNaN(e)&&(e=0),(0,nt.qQ)(nt.dA.userVisitCount,e+1),e>2&&!(0,nt.$o)(nt.dA.hasDisplayedNotificationModal)&&k(!0)}(),A(),window.addEventListener("resize",A)}),[]);var U=Q()(ft().root,(0,G.Z)({},ft().mobile,a));return(0,r.jsxs)(rn,{className:U,children:[(0,r.jsxs)("div",{className:ft().leftContent,children:[(0,r.jsx)(xe.Z,{className:ft().loadingSpinner,size:"large",spinning:e.appLoading}),(0,r.jsxs)("div",{className:ft().topHalf,children:[u&&(0,r.jsx)(at.Z,{source:"/hls/stream.m3u8",online:u}),!u&&(0,r.jsx)(kt.Z,{name:v,text:C||"Please follow and ask to get notified when the stream is live."}),(0,r.jsx)(un.Z,{online:u,lastConnectTime:p,lastDisconnectTime:f,viewerCount:h}),(0,r.jsxs)("div",{className:ft().buttonsLogoTitleSection,children:[(0,r.jsxs)(gt,{children:[T,(0,r.jsx)(Ut,{size:"small"}),(0,r.jsx)(Nt,{visible:N,notificationClicked:function(){return M(!0)},notificationClosed:function(){return E()},children:(0,r.jsx)(Ft,{onClick:function(){return M(!0)}})})]}),(0,r.jsx)(vt.Z,{title:"Notify",visible:S,afterClose:function(){return E()},handleCancel:function(){return E()},children:(0,r.jsx)(qt,{})})]})]}),(0,r.jsxs)("div",{className:ft().lowerHalf,children:[(0,r.jsx)(tn,{name:v,title:m,summary:j,tags:y,links:_,logo:"/logo"}),(0,r.jsxs)(tt.Z,{defaultActiveKey:"0",style:{height:"100%"},children:[n&&a&&(0,r.jsx)(nn,{tab:"Chat",style:{height:"100%"}},"0"),(0,r.jsx)(nn,{tab:"About",className:ft().pageContentSection,children:(0,r.jsx)(st,{content:x})},"2"),(0,r.jsx)(nn,{tab:"Followers",className:ft().pageContentSection,children:(0,r.jsx)(ht,{})},"3")]}),!a&&(0,r.jsx)($e,{version:g})]})]}),n&&!a&&(0,r.jsx)(qe,{})]})}var sn=n(79216),an=n(7918),cn=n.n(an);function ln(e){var t=e.src;return(0,r.jsx)("div",{className:cn().root,children:(0,r.jsx)("div",{className:cn().container,children:(0,r.jsx)(sn.Z,{src:t,alt:"Logo",className:cn().image,rootClassName:cn().image})})})}var un=n(36887),dn=n(60536),hn=n.n(dn);function pn(e){var t=e.title,n=e.message;return(0,r.jsxs)(le.Z,{title:t,visible:!0,footer:null,closable:!1,keyboard:!1,width:900,centered:!0,className:"modal",children:[(0,r.jsx)(hn(),{id:"56f94180e07a07dd",children:".modal .ant-modal-content,.modal .ant-modal-header{background-color:var(--warning-color)}"}),(0,r.jsx)("p",{className:"jsx-56f94180e07a07dd",children:n})]})}var fn=n(82670);var mn=function(){var e=(0,s.sJ)(l.g1),t=e.name,n=e.title,a=e.customStyles,u=(0,s.sJ)(l.di),d=(0,s.sJ)(l.ap),h=(0,c.useRef)(null);return(0,c.useEffect)((function(){!function(e){var t=function(e){e.setAttribute("rel","noopener noreferrer ")};e.querySelectorAll("a").forEach((function(e){return t(e)})),new MutationObserver((function(e){var n=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var i=s.value,c=!0,l=!1,u=void 0;try{for(var d,h=i.addedNodes[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var p=d.value;(0,fn.Z)(p,HTMLElement)&&"a"===p.tagName.toLowerCase()&&t(p)}}catch(f){l=!0,u=f}finally{try{c||null==h.return||h.return()}finally{if(l)throw u}}}}catch(f){r=!0,o=f}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}})).observe(e,{attributes:!1,childList:!0,subtree:!0})}(h.current)}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i(),{children:[(0,r.jsx)("meta",{name:"description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:site_name",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"og:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"og:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"og:type",content:"video.other"}),(0,r.jsx)("meta",{property:"video:tag",content:"{{.TagsString}}"}),(0,r.jsx)("meta",{property:"og:image",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:url",content:"{{.Thumbnail}}"}),(0,r.jsx)("meta",{property:"og:image:alt",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"og:video",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:secure_url",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"og:video:height",content:"315"}),(0,r.jsx)("meta",{property:"og:video:width",content:"560"}),(0,r.jsx)("meta",{property:"og:video:type",content:"text/html"}),(0,r.jsx)("meta",{property:"og:video:actor",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:title",content:"{{.Name}}"}),(0,r.jsx)("meta",{property:"twitter:url",content:"{{.RequestedURL}}"}),(0,r.jsx)("meta",{property:"twitter:description",content:"{{.Summary}}"}),(0,r.jsx)("meta",{property:"twitter:image",content:"{{.Image}}"}),(0,r.jsx)("meta",{property:"twitter:card",content:"player"}),(0,r.jsx)("meta",{property:"twitter:player",content:"{{.RequestedURL}}embed/video"}),(0,r.jsx)("meta",{property:"twitter:player:width",content:"560"}),(0,r.jsx)("meta",{property:"twitter:player:height",content:"315"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"57x57",href:"/img/favicon/apple-icon-57x57.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"60x60",href:"/img/favicon/apple-icon-60x60.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"72x72",href:"/img/favicon/apple-icon-72x72.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"76x76",href:"/img/favicon/apple-icon-76x76.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"114x114",href:"/img/favicon/apple-icon-114x114.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"120x120",href:"/img/favicon/apple-icon-120x120.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"144x144",href:"/img/favicon/apple-icon-144x144.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"152x152",href:"/img/favicon/apple-icon-152x152.png"}),(0,r.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-icon-180x180.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"192x192",href:"/img/favicon/android-icon-192x192.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"96x96",href:"/img/favicon/favicon-96x96.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{href:"/api/auth/provider/indieauth"}),(0,r.jsx)("meta",{name:"msapplication-TileColor",content:"#ffffff"}),(0,r.jsx)("meta",{name:"msapplication-TileImage",content:"/img/favicon/ms-icon-144x144.png"}),(0,r.jsx)("meta",{name:"theme-color",content:"#ffffff"}),(0,r.jsx)("style",{children:a})]}),(0,r.jsx)(l.me,{}),(0,r.jsxs)(o.Z,{ref:h,children:[(0,r.jsx)(x,{name:n||t,chatAvailable:u}),(0,r.jsx)(on,{}),d&&(0,r.jsx)(pn,{title:d.title,message:d.message})]})]})};function xn(){return(0,r.jsx)(mn,{})}},49418:function(e){e.exports={button:"ActionButton_button__8GQFL",icon:"ActionButton_icon__g9rfM"}},46218:function(e){e.exports={row:"ActionButtons_row__asg2y"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19"}},83066:function(e){e.exports={join:"ChatJoinMessage_join__fP0IQ"}},31833:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},91391:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__9cyjY",chatHistory:"ChatModerationDetailsModal_chatHistory__O2jaB",colorBlock:"ChatModerationDetailsModal_colorBlock__ev2E8"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrapper:"ChatTextField_inputWrapper__qBEWv",submitButtonWrapper:"ChatTextField_submitButtonWrapper__YBPMe",sendButton:"ChatTextField_sendButton__MOmD4",emojiButton:"ChatTextField_emojiButton__ON_Cu"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",customBorder:"ChatUserMessage_customBorder__YudkU",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}},74688:function(e){e.exports={root:"ContentHeader_root__HaUG0",row:"ContentHeader_row__9Q8gH",logoTitleSection:"ContentHeader_logoTitleSection__Z8pUc",logo:"ContentHeader_logo__wo_HN",titleSection:"ContentHeader_titleSection___6Y15",title:"ContentHeader_title__E_DsI",subtitle:"ContentHeader_subtitle__n1Wew",tagList:"ContentHeader_tagList__rx3jY"}},71121:function(e){e.exports={pushPreview:"BrowserNotifyModal_pushPreview__87oXX",inner:"BrowserNotifyModal_inner__M7joz",title:"BrowserNotifyModal_title__mtuWS",permissionLine:"BrowserNotifyModal_permissionLine__6BMbw",buttonRow:"BrowserNotifyModal_buttonRow__M94pj",disabled:"BrowserNotifyModal_disabled__ErJzX",allow:"BrowserNotifyModal_allow__6VHkV"}},42288:function(e){e.exports={header:"FollowModal_header__sJdVk",buttons:"FollowModal_buttons__MoVO0",instructions:"FollowModal_instructions__8x9jJ",footer:"FollowModal_footer__Yw5UB",account:"FollowModal_account__wG_UC",logo:"FollowModal_logo__d7tS5",username:"FollowModal_username__w9KO6",name:"FollowModal_name__wGMmS"}},63291:function(e){e.exports={root:"Content_root__h1mNK",leftCol:"Content_leftCol__U2TDq",loadingSpinner:"Content_loadingSpinner__mDlYC",mobile:"Content_mobile__Ep0QM",topHalf:"Content_topHalf__lQN4D",lowerHalf:"Content_lowerHalf__eKamJ",mobileChat:"Content_mobileChat__5V09A"}},28105:function(e){e.exports={pageContentContainer:"CustomPageContent_pageContentContainer__EG4tU",customPageContent:"CustomPageContent_customPageContent__Mr981",summary:"CustomPageContent_summary___Zgps"}},4300:function(e){e.exports={follower:"Followers_follower__I5QSp",avatar:"Followers_avatar__F9UDU",account:"Followers_account__3FOSk",placeholder:"Followers_placeholder__Wziqm",followers:"Followers_followers__7O5WG"}},35603:function(e){e.exports={footer:"Footer_footer__mPuvf"}},92910:function(e){e.exports={header:"Header_header__U4Ro1",logo:"Header_logo__HLZ6Z"}},7918:function(e){e.exports={root:"Logo_root__jKiJC",container:"Logo_container__A4UYT",image:"Logo_image__Ahkom"}},18668:function(e){e.exports={contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}},75347:function(e){e.exports={root:"Sidebar_root__8HE0A"}},52740:function(e){e.exports={link:"SocialLinks_link___CcSm",links:"SocialLinks_links__gOAb7"}}},function(e){e.O(0,[2544,1272,8700,384,5938,2001,1082,6175,4935,9774,2888,179],(function(){return t=48312,e(e.s=t);var t}));var t=e.O();_N_E=t}]);