!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=(new n.Error).stack;o&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[o]="150a0e9b-838e-4c5a-8b8c-e8c47f0585de",n._sentryDebugIdIdentifier="sentry-dbid-150a0e9b-838e-4c5a-8b8c-e8c47f0585de")}catch(n){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[35413],{528267:function(n,o,r){r.d(o,{q:function(){return tn}});var a,e,t,i,c,s,l,u,d,b,g,f,p,m,k,h,v,x,w,y=r(375276),I=r(58168),A=r(198587),D=r(466377),S=r(392395),C=r(853296),j=r(671835),$=r(953838),_=r(693523),N=r(153477),P=r(659480),B=r(922267),E=r(288794),H=r(261413),z=r(441427),L=r(97774),F=r(644035),R=r(296540),U=r(532306),W=r(79004),M=r(312663),G=r(959340),T=r(914421),Z=r(486489),q=r(70642),Q=r(186272),K=r(906719),O=r(502080),V=r(474848),X=["type"],J=["type","showProgressBar"],Y=["closeButton","actions","iconTitle","message","type","timeoutDuration","showProgressBar"],nn=function(n){var o,r=n.type,a=(0,A.A)(n,X);switch(r){case K._.Error:o=(0,V.jsx)(D.P,(0,I.A)({},a));break;case K._.Info:o=(0,V.jsx)(S.h,(0,I.A)({},a));break;case K._.Success:o=(0,V.jsx)(C.i,(0,I.A)({},a));break;case K._.Warning:o=(0,V.jsx)(j.l,(0,I.A)({},a));break;case K.v.InfoLoading:o=(0,V.jsx)(Z.k,{inheritColor:!0,trackColor:"color-opac-b-3"})}return o},on=(0,_.I4)(G.P).withConfig({displayName:"ScSnackbar",componentId:"sc-71f1ah-0"})(["max-width:60rem;min-width:28rem;min-height:4.8rem;padding:"," "," "," ",";",""],(0,N.C)("space-0100"),(0,P.b)("snackbar-inset-padding-right"),(0,N.C)("space-0100"),(0,P.b)("snackbar-inset-padding-left"),(0,B.H)("$type",((s={})[K._.Error]=(0,_.AH)(a||(a=(0,y.A)(["\n background-color: ",";\n color: ",";\n "])),(0,P.b)("color-background-snackbar-error"),(0,P.b)("color-text-snackbar-error")),s[K._.Info]=(0,_.AH)(e||(e=(0,y.A)(["\n background-color: ",";\n color: ",";\n "])),(0,P.b)("color-background-snackbar-info"),(0,P.b)("color-text-snackbar-info")),s[K._.Success]=(0,_.AH)(t||(t=(0,y.A)(["\n background-color: ",";\n color: ",";\n "])),(0,P.b)("color-background-snackbar-success"),(0,P.b)("color-text-snackbar-success")),s[K._.Warning]=(0,_.AH)(i||(i=(0,y.A)(["\n background-color: ",";\n color: ",";\n "])),(0,P.b)("color-background-snackbar-warn"),(0,P.b)("color-text-snackbar-warn")),s[K.v.InfoLoading]=(0,_.AH)(c||(c=(0,y.A)(["\n background-color: ",";\n color: ",";\n "])),(0,P.b)("color-background-snackbar-info"),(0,P.b)("color-text-snackbar-info")),s))),rn=_.I4.div.withConfig({displayName:"ScSnackbarProgressBarContainer",componentId:"sc-71f1ah-1"})([".tw-progress-bar{background:",";}"],(0,P.b)("color-background-progress-snackbar")),an=_.I4.div.withConfig({displayName:"ScIconContainer",componentId:"sc-71f1ah-2"})(["margin-top:",";margin-right:",";position:relative;align-items:start;flex-grow:0;flex-shrink:0;"],(0,N.C)("space-0050"),(0,P.b)("snackbar-icon-gap")),en=(0,_.I4)(W.oG).withConfig({displayName:"ScSnackbarCloseButton",componentId:"sc-71f1ah-3"})(["float:right;display:inline-flex;flex-shrink:0;align-self:center;margin-block-start:",";color:",";"," "," &:active{color:",";}",";"],(function(n){return n.$compact?(0,N.C)("space-0025"):void 0}),(function(n){return n.$type===K._.Info||n.$type===K.v.InfoLoading?(0,P.b)("color-text-snackbar-info"):(0,N.C)("color-black")}),(function(n){return n.$type===K._.Info||n.$type===K.v.InfoLoading?(0,E.k)(l||(l=(0,y.A)(["color: ",";"])),(0,N.C)("color-white")):(0,E.k)(u||(u=(0,y.A)(["color: ",";"])),(0,N.C)("color-black"))}),(0,H.ND)(d||(d=(0,y.A)(["color: ",";"])),(0,N.C)("color-black")),(0,N.C)("color-black"),(0,B.H)("$type",((w={})[K._.Info]=void 0,w[K.v.InfoLoading]=void 0,w[K._.Warning]=(0,_.AH)(b||(b=(0,y.A)(["\n ","\n ","\n &:active {\n background-color: ",";\n }\n "])),(0,E.k)(g||(g=(0,y.A)(["\n background-color: ",";"])),(0,P.b)("color-background-button-warn-hover")),(0,H.ND)(f||(f=(0,y.A)(["\n background-color: ",";"])),(0,P.b)("color-background-button-warn-hover")),(0,P.b)("color-background-button-warn-active")),w[K._.Success]=(0,_.AH)(p||(p=(0,y.A)(["\n ","\n ","\n &:active {\n background-color: ",";\n }\n "])),(0,E.k)(m||(m=(0,y.A)(["\n background-color: ",";"])),(0,P.b)("color-background-button-success-hover")),(0,H.ND)(k||(k=(0,y.A)(["\n background-color: ",";"])),(0,P.b)("color-background-button-success-hover")),(0,P.b)("color-background-button-success-active")),w[K._.Error]=(0,_.AH)(h||(h=(0,y.A)(["\n ","\n ","\n &:active {\n background-color: ",";\n }\n "])),(0,E.k)(v||(v=(0,y.A)(["\n background-color: ",";"])),(0,P.b)("color-background-button-error-hover")),(0,H.ND)(x||(x=(0,y.A)(["\n background-color: ",";"])),(0,P.b)("color-background-button-error-hover")),(0,P.b)("color-background-button-error-active")),w))),tn=function(n){var o=n.type,r=n.showProgressBar,a=void 0!==r&&r,e=(0,A.A)(n,J);return(0,V.jsx)(O.$t.Provider,{value:{type:o,compact:a,id:(0,z.$)()},children:(0,V.jsx)(cn,(0,I.A)({type:o,showProgressBar:a},e))})},cn=function(n){var o,r,a=n.closeButton,e=n.actions,t=n.iconTitle,i=n.message,c=n.type,s=n.timeoutDuration,l=n.showProgressBar,u=void 0!==l&&l,d=(0,A.A)(n,Y),b=(0,F.t)().formatMessage,g=(0,O.k0)().messageId,f=((o={})[K._.Error]=b("Error","Snackbar"),o[K._.Info]=b("Info","Snackbar"),o[K._.Success]=b("Success","Snackbar"),o[K._.Warning]=b("Warning","Snackbar"),o[K.v.InfoLoading]=b("Loading","Snackbar"),o),p=a&&(0,V.jsx)(en,{className:"tw-snackbar__close","aria-label":a["aria-label"],onClick:a.onClick,size:u?"small":"default",$type:c,$compact:u,children:(0,V.jsx)(U.y,{icon:$.g})}),m=(0,V.jsx)(an,{children:nn({type:c,title:!1===t?void 0:null!=t?t:f[c],role:!1===t?"presentation":void 0,"aria-hidden":!1===t||void 0})}),k=(0,R.isValidElement)(i)?null==(r=i.props)?void 0:r.message:void 0,h=void 0!==k;return(0,V.jsxs)(on,(0,I.A)({className:"tw-snackbar"},d,{$type:c,borderRadius:L.Z.Medium,elevation:4,position:T.yX.Relative,display:T.nl.InlineBlock,textAlign:void 0===a&&void 0===e?T.nO.Center:void 0,children:[(0,V.jsxs)(G.P,{display:T.nl.Flex,alignItems:T.k2.Center,gap:.5,children:[(0,V.jsxs)(G.P,{display:T.nl.Flex,flexDirection:"column",flexGrow:1,children:[(0,V.jsxs)(G.P,{display:T.nl.Flex,flexDirection:"row",children:[m,i]}),h&&(0,V.jsx)(G.P,{attachLeft:!0,attachRight:!0,width:"100%",children:"string"==typeof k?(0,V.jsx)(M.N,{as:"p",children:k}):k})]}),e&&(0,V.jsx)(G.P,{display:T.nl.Flex,alignSelf:T.gB.Center,justifyContent:T.A9.End,flexShrink:0,children:e}),p]}),u&&(0,V.jsx)(G.P,{padding:{x:.5,top:.75,bottom:.5},children:(0,V.jsx)(rn,{children:(0,V.jsx)(q.z2,{"aria-labelledby":g,value:100,size:q.Q8.Small,inherit:!0,mask:!0,animationDuration:s?s/1e3:void 0,animationDirection:Q.o.Down})})})]}))};cn.displayName="SnackbarContent",tn.displayName="Snackbar"},502080:function(n,o,r){r.d(o,{$t:function(){return i},k0:function(){return c}});var a=r(58168),e=r(296540),t=r(906719),i=(0,e.createContext)({type:t._.Info}),c=function(){var n=(0,e.useContext)(i),o=n.id?n.id+"-message":void 0;return(0,a.A)({},n,{messageId:o,type:s(n.type)})},s=function(n){return"InfoLoading"===n?t._.Info:n}},958007:function(n,o,r){r.d(o,{z:function(){return g}});var a=r(58168),e=r(693523),t=r(72127),i=r(312663),c=r(588702),s=r(959340),l=r(914421),u=r(502080),d=r(474848),b=e.I4.div.withConfig({displayName:"ScSnackbarMessage",componentId:"sc-1qv3b7j-0"})(["display:inline-flex;align-items:center;min-height:2.8rem;"]),g=function(n){var o=(0,u.k0)().messageId,r=n.title&&"string"==typeof n.title?(0,d.jsx)(s.P,{flexGrow:1,margin:{left:.5,right:1},children:(0,d.jsx)(i.N,{lineHeight:c.aK.Heading,as:"p",fontSize:l.Z4.Size4,fontWeight:l.IT.SemiBold,children:n.title})}):n.title;return(0,d.jsx)(s.P,(0,a.A)({},(0,t.g)(n),{display:l.nl.Flex,flexDirection:"column",width:"100%",children:r&&(0,d.jsx)(b,{className:"tw-snackbar-message",id:o,children:r})}))};g.displayName="SnackbarMessage"},70642:function(n,o,r){r.d(o,{Q8:function(){return c},tS:function(){return s},z2:function(){return _}});var a,e,t,i,c,s,l=r(58168),u=r(198587),d=r(375276),b=r(693523),g=r(922267),f=r(659480),p=r(97774),m=r(27346),k=r(72127),h=r(955522),v=r(216042),x=r(914421),w=r(186272),y=r(474848),I=["mask","borderRadius","status"];!function(n){n.Default="default",n.Small="sm",n.ExtraSmall="xs"}(c||(c={})),function(n){n.Default="default",n.Caution="caution",n.Error="error",n.Success="success"}(s||(s={}));var A=b.I4.div.withConfig({displayName:"ScProgressBarWrapper",componentId:"sc-1aarjxm-0"})(["overflow:hidden;width:100%;height:",";background:",";"],(0,g.H)("$size",((a={})[c.Default]=(0,f.b)("progress-bar-size-default"),a[c.Small]=(0,f.b)("progress-bar-size-small"),a[c.ExtraSmall]=(0,f.b)("progress-bar-size-extra-small"),a)),D);function D(n){return n.$mask?(0,f.b)("color-background-progress"):""}var S=(0,b.i7)(e||(e=(0,d.A)(["\n100% {\n width: 0%;\n}\n"]))),C=(0,b.i7)(t||(t=(0,d.A)(["\n100% {\n width: 100%;\n}\n"]))),j=b.I4.div.withConfig({displayName:"ScProgressBarFill",componentId:"sc-1aarjxm-1"})(["width:",";max-width:100%;height:100%;background:",";animation-name:",";animation-timing-function:linear;animation-fill-mode:both;animation-play-state:",";animation-duration:",";"],(function(n){var o=n.$value,r=n.$animationDirection;return void 0!==o?o+"%":r===w.o.Down?"100%":r===w.o.Up?"0%":"100%"}),(function(n){var o;return n.$inherit?"currentColor":(0,g.H)("$status",((o={})[s.Default]=(0,f.b)("color-background-progress-status"),o[s.Caution]=(0,f.b)("color-background-progress-status-caution"),o[s.Error]=(0,f.b)("color-background-progress-status-error"),o[s.Success]=(0,f.b)("color-background-progress-status-success"),o))}),(0,g.H)("$animationDirection",((i={})[w.o.Down]=S,i[w.o.Up]=C,i)),(function(n){return n.$paused&&"paused"}),(function(n){var o=n.$animationDuration;return void 0!==o&&o+"s"})),$=function(n){var o=n.mask,r=void 0===o||o,a=n.borderRadius,e=void 0===a?p.Z.Large:a,t=n.status,i=void 0===t?s.Default:t,d=(0,u.A)(n,I),b=(0,w.U)({value:d.value,animationDuration:d.animationDuration,animationDirection:d.animationDirection,paused:d.paused});return(0,y.jsx)(v.S,{borderRadius:e,children:(0,y.jsx)(A,(0,l.A)({},(0,m.Fh)(d),(0,k.g)(d),{className:"tw-progress-bar",$mask:r,$size:d.size||c.Default,role:"progressbar","aria-valuenow":b,"aria-valuemin":0,"aria-valuemax":100,children:(0,y.jsx)(v.S,{borderRadius:{topLeft:e,bottomLeft:e},display:x.nl.Block,children:(0,y.jsx)(j,{$status:i,onAnimationEnd:d.onAnimationEnd,$animationDirection:d.animationDirection,$animationDuration:d.animationDuration,$paused:d.paused,$value:d.value,$inherit:d.inherit,"data-a-target":"tw-progress-bar-animation"})})}))})};$.displayName="ProgressBarComponent";var _=(0,h.i)($)},186272:function(n,o,r){r.d(o,{U:function(){return t},o:function(){return a}});var a,e=r(296540);function t(n){var o=n.value,r=n.animationDuration,t=n.animationDirection,i=n.paused,c=t===a.Up?0:100,s=(0,e.useState)(null!=o?o:c),l=s[0],u=s[1];return(0,e.useEffect)((function(){var n=null!=o?o:c;if(u(n),r&&t&&!i){var e=t===a.Up?100:0,s=Date.now(),l=setInterval((function(){var o=Math.min((Date.now()-s)/1e3/r,1);u(Math.round(n+(e-n)*o)),o>=1&&clearInterval(l)}),500);return function(){return clearInterval(l)}}}),[c,o,r,t,i]),l}!function(n){n.Up="up",n.Down="down"}(a||(a={}))}}]);