!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="37f4c6cf-4af3-47cd-bd0f-e4ff5d6291da",e._sentryDebugIdIdentifier="sentry-dbid-37f4c6cf-4af3-47cd-bd0f-e4ff5d6291da")}catch(e){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[86650],{106448:function(e,n,i){"use strict";i.d(n,{YB:function(){return o},fw:function(){return t},s6:function(){return a},xu:function(){return r},yI:function(){return d}});var t={rain:14,rainOptout:10,fireworks:25,fireworksOptout:16},a=7e3,r=5e3,d={simmer:58,simmerRain:276,simmerRainShort:216,rainOptout:40,fireworks:276,fireworksShort:216,fireworksOptout:149},o=[{src:"https://d3aqoihi2n8ty8.cloudfront.net/celebi/diamond.png",token:"diamond"},{src:"https://d3aqoihi2n8ty8.cloudfront.net/celebi/star.png",token:"star"},{src:"https://static-cdn.jtvnw.net/emoticons/v1/9/1.0",token:"heart"}]},288872:function(e,n,i){"use strict";var t,a,r;i.d(n,{K6:function(){return t},nn:function(){return a},rw:function(){return r}}),function(e){e.Control="Control",e.VariantA="VariantA",e.VariantB="VariantB",e.VariantC="VariantC"}(t||(t={})),function(e){e[e.Unknown=0]="Unknown",e.Complete="Complete",e.NearComplete="NearComplete"}(a||(a={})),function(e){e.NoAnimations="no_animation",e.Simmer="simmer",e.SimmerRain="simmer_rain",e.Fireworks="fireworks",e.RainOptOut="rain_optout",e.FireworksOptOut="fireworks_optout"}(r||(r={}))},501909:function(e,n,i){"use strict";i.d(n,{$e:function(){return v},Q7:function(){return l},RM:function(){return o},RQ:function(){return u},W5:function(){return s},km:function(){return c}});var t=i(621241),a=i(384131),r=i(106448),d=i(288872),o=function(e,n,i){if(e===a.SI.Inactive||(0,a.M4)(e)||e===a.SI.Ending||e===a.SI.RewardsDistributing||!n)return{level:0,status:d.nn.Unknown,noCelebration:!0};if(e===a.SI.PreLevelUp||e===a.SI.LevelUp)return{level:n.progress.level.value,status:d.nn.Complete,noCelebration:!1};var r=Math.min(100,n.progress.progression/n.progress.goal*100);return r>=95&&r<=100||e!==a.SI.ATHReached&&(0,t.wb)(n,i)?{level:n.progress.level.value,status:d.nn.NearComplete,noCelebration:!1}:{level:n.progress.level.value,status:d.nn.Unknown,noCelebration:!0}},u=function(e,n){return e.noCelebration?d.rw.NoAnimations:e.status===d.nn.NearComplete?d.rw.Simmer:e.status===d.nn.Complete?e.level===n?d.rw.Fireworks:d.rw.SimmerRain:d.rw.NoAnimations},s=function(e,n){var i=new Image;return i.src=e.src,i.alt=e.token,i.width=n,i.height=n,i},l=function(e){switch(e){case d.rw.Simmer:case d.rw.SimmerRain:return r.fw.rain;case d.rw.Fireworks:return r.fw.fireworks;case d.rw.RainOptOut:return r.fw.rainOptout;case d.rw.FireworksOptOut:return r.fw.fireworksOptout;default:return 0}},c=function(e){return e.noCelebration||e.status===d.nn.Unknown?"0":"level_".concat(e.level,"_").concat(e.status===d.nn.Complete?"complete":"95")},v=function(e,n){return e.level!==n.level||e.noCelebration!==n.noCelebration||e.status!==n.status}},621241:function(e,n,i){"use strict";i.d(n,{Qd:function(){return r},wb:function(){return d},wy:function(){return o}});var t=i(876531),a=i(37434),r=function(e,n){var i=(null==e?void 0:e.sharedHypeTrainDetails)?(0,a.vP)(e,n):null==e?void 0:e.progress.allTimeHighState;return null!=i?i:t.Q8_.NONE},d=function(e,n){return r(e,n)===t.Q8_.REACHED},o=function(e,n){var i=(null==e?void 0:e.sharedHypeTrainDetails)?(0,a.Jq)(e,n):null==e?void 0:e.allTimeHigh;return null!=i?i:void 0}},37434:function(e,n,i){"use strict";i.d(n,{Jq:function(){return u},MP:function(){return r},q:function(){return o},vP:function(){return a},xt:function(){return d}});var t=i(876531),a=function(e,n){var i,t;return null===(t=null===(i=null==e?void 0:e.sharedHypeTrainDetails)||void 0===i?void 0:i.sharedProgress.find((function(e){return e.user.id===n})))||void 0===t?void 0:t.channelProgress.allTimeHighState},r=function(e,n){return a(e,n)===t.Q8_.REACHED},d=function(e,n){var i,t;return!!(null===(t=null===(i=null==e?void 0:e.sharedHypeTrainDetails)||void 0===i?void 0:i.sharedProgress.find((function(e){return e.user.id===n})))||void 0===t?void 0:t.channelProgress.total)},o=function(e,n){var i,t;return null===(t=null===(i=null==e?void 0:e.sharedHypeTrainDetails)||void 0===i?void 0:i.sharedConductors.find((function(e){return e.user.id===n})))||void 0===t?void 0:t.conductors},u=function(e,n){var i,t,a;return null!==(a=null===(t=null===(i=null==e?void 0:e.sharedHypeTrainDetails)||void 0===i?void 0:i.sharedAllTimeHighRecords.find((function(e){return e.user.id===n})))||void 0===t?void 0:t.channelAllTimeHigh)&&void 0!==a?a:void 0}},586650:function(e,n,i){"use strict";i.d(n,{E_:function(){return I}});var t=i(331635),a=i(10982),r=i(225745),d=i(973421),o=i.n(d),u=i(917705),s=i(296540),l=i(415044),c=i(29896),v=i(910889),m=i(308966),p=i(664865),k=i(198437),f=i(876531),g=i(368770),h=function(e,n){var i=Object.entries(n.participations).map((function(e){return T(e[0],e[1])}));return{__typename:"HypeTrainConductor",id:n.id,source:e,participation:i,user:{__typename:"User",id:n.user.id,login:n.user.login,displayName:n.user.display_name,profileImageURL:n.user.profile_image_url}}},T=function(e,n){var i=e.split(".");return{__typename:"HypeTrainParticipation",source:i[0],action:i[1],quantity:n}},y=function(e){switch(e.type){case f.Asq.BADGE:return{__typename:"HypeTrainBadgeReward",id:e.id,type:f.Asq.BADGE,badge:{__typename:"Badge",id:e.badge_id||e.id,setID:e.group_id,imageURL:e.image_url||""}};case f.Asq.EMOTE:return{__typename:"HypeTrainEmoteReward",id:e.id,type:f.Asq.EMOTE,emote:{__typename:"Emote",id:e.id,token:e.token||""}};default:throw new Error("unknown reward type found")}},S=function(e){switch(e){case f.Q8_.APPROACHING:return f.Q8_.APPROACHING;case f.Q8_.REACHED:return f.Q8_.REACHED;default:return f.Q8_.NONE}},N=i(905882),_=i.n(N),F=i(298359),D=i.n(F),C=i(121669),R=i.n(C),w=i(38064),x=i.n(w),b=i(739489),E=i.n(b),H=i(457761),A=i.n(H),P=i(158253),U=i(321501),L=i(500722),I=function(e){var n=e.channelLogin,i=e.channelID,d=(0,l.d4)(g.wz),T=s.useRef(null),y=s.useRef(-1),S=s.useRef(null),N=s.useRef(null),F=(0,c.IT)(_(),{variables:{userLogin:null!=n?n:""},skip:null===n||null===i,fetchPolicy:"cache-and-network"}),C=F.client,w=F.data,b=F.loading,H=F.updateQuery;(0,v.s)({topic:(0,k.Ou)((null==d?void 0:d.id)||""),skip:!(null==d?void 0:d.id),onMessage:function(e){var n,i,t,a;if(e.type===m.PD.HypeTrainRewardEligibility){var r=e;if(r.data.hypeTrainID===(null===(t=null===(i=null===(n=null==w?void 0:w.user)||void 0===n?void 0:n.channel)||void 0===i?void 0:i.hypeTrain.execution)||void 0===t?void 0:t.id)&&r.data.userID===(null==d?void 0:d.id)&&r.data.isEligibleForRewards!==(null===(a=w.user.channel.hypeTrain.execution.self)||void 0===a?void 0:a.isEligibleForRewards)){var u=(0,p.G5)(w.user.channel.hypeTrain.execution);u&&(0,p.WY)({id:u,fragment:R(),fragmentName:"hypeTrainExecutionSelfEdgeUpdate",mutator:function(e){return o()(e,(function(e){return e.self}),(function(){return{__typename:"HypeTrainExecutionSelfEdge",isEligibleForRewards:r.data.isEligibleForRewards}}))}},C)}}}});var I=(0,k.tf)(i||"");(0,v.s)({topic:I,skip:null===n||null===i,onMessage:function(e){var t=Date.now()/1e3;switch(e.type){case m.PD.HypeTrainProgression:var a=e;if(a.messageReceivedTime=t,a.data.sequence_id<=y.current)return;T.current=a,y.current=a.data.sequence_id;break;case m.PD.HypeTrainConductorUpdate:var r=e;r.messageReceivedTime=t,r.data.source===f.lTw.BITS?N.current=r:r.data.source===f.lTw.SUBS&&(S.current=r);break;case m.PD.HypeTrainApproaching:H((function(n){return B(e,n,t)}));break;case m.PD.HypeTrainStart:H((function(n){return G(e,n,i||"",t)})),y.current=-1;break;case m.PD.HypeTrainLevelUp:H((function(a){return O(e,a,i||"",n||"",t)}));break;case m.PD.HypeTrainEnd:H((function(n){return M(e,n,t,i||"")}));break;case m.PD.HypeTrainSharedChannelLeft:H((function(n){return K(e,n,i)}));break;case m.PD.HypeTrainMergeTrains:case m.PD.HypeTrainSharedConversion:H((function(n){return Q(e,n,y)}))}}});var q=s.useState(0),W=q[0],z=q[1];s.useEffect((function(){var e,n;if(null===(n=null===(e=null==w?void 0:w.user)||void 0===e?void 0:e.channel)||void 0===n?void 0:n.hypeTrain.execution){var i=(0,u.differenceInMilliseconds)(w.user.channel.hypeTrain.execution.endedAt||w.user.channel.hypeTrain.execution.expiresAt,new Date);if((0,L.$m)(w)||!(i<=-15e3)){z(350);var t=setTimeout((function(){z(0)}),i+15e3+1);return function(){return clearTimeout(t)}}z(0)}else z(0)}),[w]),(0,a.$)((function(){var e,n,t,a,r,d,u,s,l,c,v,m,k,f,g,_,F,R=null;if(T.current){if(T.current.data.id!==(null===(t=null===(n=null===(e=null==w?void 0:w.user)||void 0===e?void 0:e.channel)||void 0===n?void 0:n.hypeTrain.execution)||void 0===t?void 0:t.id))return T.current=null,void(y.current=-1);R=T.current,T.current=null}if(R&&(null===(r=null===(a=null==w?void 0:w.user)||void 0===a?void 0:a.channel)||void 0===r?void 0:r.hypeTrain.execution)){if(w.user.channel.hypeTrain.execution.progress.level.valuew.user.channel.hypeTrain.execution.expiresAt&&H((function(e){var n,i;return!(null===(i=null===(n=e.user)||void 0===n?void 0:n.channel)||void 0===i?void 0:i.hypeTrain.execution)||R.data.expires_at<=e.user.channel.hypeTrain.execution.expiresAt?e:o()(e,(function(e){return e.user.channel.hypeTrain.execution.expiresAt}),(function(){return R.data.expires_at}))})),(0,P.TK)({channel_id:i||"",status:P.Up.Success,event_loc:P.X7.Progress,error_type:P.Cs.None,pubsub_message_received_time:R.messageReceivedTime}));if(R.data.sharedProgress&&(null===(m=w.user.channel.hypeTrain.execution.sharedHypeTrainDetails)||void 0===m?void 0:m.sharedProgress))(M=(0,p.G5)(w.user.channel.hypeTrain.execution.sharedHypeTrainDetails))&&(0,p.WY)({id:M,fragment:A(),fragmentName:"sharedHypeTrainProgressUpdate",mutator:function(e){return $(e,R.data.sharedProgress)}},C)}if(S.current||N.current){var b=null!==(f=null===(k=S.current)||void 0===k?void 0:k.messageReceivedTime)&&void 0!==f?f:0;N.current&&N.current.messageReceivedTime>b&&(b=N.current.messageReceivedTime);var U=N.current;N.current=null;var L=S.current;S.current=null;var I=[];if(U&&I.push(h(U.data.source,U.data)),L&&I.push(h(L.data.source,L.data)),I.length>0&&(null===(F=null===(_=null===(g=null==w?void 0:w.user)||void 0===g?void 0:g.channel)||void 0===_?void 0:_.hypeTrain)||void 0===F?void 0:F.execution)){var M,O=w.user.channel.hypeTrain.execution.sharedHypeTrainDetails,G=!!O,B=(null==O?void 0:O.id)===i;if(!G||B)(M=(0,p.G5)(w.user.channel.hypeTrain.execution))&&((0,p.WY)({id:M,fragment:D(),fragmentName:"hypeTrainConductorUpdate",mutator:function(e){return X(e,I)}},C),(0,P.TK)({channel_id:i||"",status:P.Up.Success,event_loc:P.X7.Pubsub_TrainConductorUpdate,error_type:P.Cs.None,pubsub_message_received_time:b}));G&&i&&H((function(e){return o()(e,(function(e){return e.user.channel.hypeTrain.execution.sharedHypeTrainDetails.sharedConductors}),(function(e){return V(e,i,I)}))}))}}}),W);var j=s.useRef(null);s.useEffect((function(){var e,n,i,t,a,r,d,u,s,l;if((0,L.B$)(w)&&(0,L.Io)(null===(n=null===(e=null==w?void 0:w.user)||void 0===e?void 0:e.channel)||void 0===n?void 0:n.hypeTrain.approaching)){var c=null===(r=null===(a=null===(t=null===(i=null==w?void 0:w.user)||void 0===i?void 0:i.channel)||void 0===t?void 0:t.hypeTrain.approaching)||void 0===a?void 0:a.eventsRemaining)||void 0===r?void 0:r.find((function(e){return 1===(null==e?void 0:e.events)})),v=null===(l=null===(s=null===(u=null===(d=null==w?void 0:w.user)||void 0===d?void 0:d.channel)||void 0===u?void 0:u.hypeTrain.approaching)||void 0===s?void 0:s.eventsRemaining)||void 0===l?void 0:l.find((function(e){return 2===(null==e?void 0:e.events)}));j.current&&(clearTimeout(j.current),j.current=null),c&&v&&(j.current=setTimeout((function(){return H((function(e){var n,i;return(null===(i=null===(n=e.user)||void 0===n?void 0:n.channel)||void 0===i?void 0:i.hypeTrain.approaching)?o()(e,(function(e){return e.user.channel.hypeTrain.approaching.eventsRemaining}),(function(e){return!e||e.length1?f.Yip.COMPLETED:f.Yip.EXPIRED})})):e}))}),d)}}),[w,H]),(0,r.i)((function(){var e,n;clearTimeout(null!==(e=J.current)&&void 0!==e?e:-1),clearTimeout(null!==(n=j.current)&&void 0!==n?n:-1)})),{data:w,loading:b}},M=function(e,n,i,a){var r,d,u,s,l;return(null===(u=null===(d=null===(r=null==n?void 0:n.user)||void 0===r?void 0:r.channel)||void 0===d?void 0:d.hypeTrain)||void 0===u?void 0:u.execution)?e.data.id!==(null===(l=null===(s=n.user)||void 0===s?void 0:s.channel)||void 0===l?void 0:l.hypeTrain.execution.id)?((0,P.TK)({channel_id:a,status:P.Up.Failure,event_loc:P.X7.End,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:i}),n):((0,P.TK)({channel_id:a,status:P.Up.Success,event_loc:P.X7.End,error_type:P.Cs.None,pubsub_message_received_time:i}),o()(n,(function(e){return e.user.channel.hypeTrain.execution}),(function(n){return(0,t.__assign)((0,t.__assign)({},n),{endedAt:new Date(e.data.ended_at).toISOString(),endReason:e.data.ending_reason,participations:e.data.participation_totals.map((function(e){return{__typename:"HypeTrainParticipation",source:e.source,action:e.action,quantity:e.quantity}}))})}))):((0,P.TK)({channel_id:a,status:P.Up.Failure,event_loc:P.X7.End,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:i}),n)},O=function(e,n,i,t,a){var r,d,u;return e.data.hype_train.self=null,n?n.user&&n.user.channel?(null===(u=null===(d=null===(r=n.user)||void 0===r?void 0:r.channel)||void 0===d?void 0:d.hypeTrain)||void 0===u?void 0:u.execution)?n:((0,P.TK)({channel_id:i||"",status:P.Up.Failure,event_loc:P.X7.Pubsub_TrainLevelUp,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:a}),o()(n,(function(e){return e.user.channel.hypeTrain}),(function(n){return{__typename:"HypeTrain",execution:e.data.hype_train,approaching:(null==n?void 0:n.approaching)||null}}))):((0,P.TK)({channel_id:i||"",status:P.Up.Failure,event_loc:P.X7.Pubsub_TrainLevelUp,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:a}),o()(n,(function(e){return e.user}),(function(){return{__typename:"User",id:i,displayName:t,channel:{__typename:"Channel",id:i,hypeTrain:{__typename:"HypeTrain",execution:e.data.hype_train,approaching:null}}}}))):((0,P.TK)({channel_id:i||"",status:P.Up.Failure,event_loc:P.X7.Pubsub_TrainLevelUp,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:a}),{user:{__typename:"User",id:i,displayName:t,channel:{__typename:"Channel",id:i,hypeTrain:{__typename:"HypeTrain",execution:e.data.hype_train,approaching:null}}}})},G=function(e,n,i,t){var a,r;return(null===(r=null===(a=null==n?void 0:n.user)||void 0===a?void 0:a.channel)||void 0===r?void 0:r.hypeTrain)?((0,P.TK)({channel_id:i,status:P.Up.Success,event_loc:P.X7.Pubsub_TrainStarting,error_type:P.Cs.None,pubsub_message_received_time:t}),e.data.self=null,e.data.treasureTrainDetails||(e.data.treasureTrainDetails=null),e.data.variantTrainDetails||(e.data.variantTrainDetails=null),o()(n,(function(e){return e.user.channel.hypeTrain.execution}),(function(){return e.data}))):((0,P.TK)({channel_id:i,status:P.Up.Failure,event_loc:P.X7.Pubsub_TrainStarting,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:t}),n)},B=function(e,n,i){var t,a,r=e.data,d=r.channel_id,u=r.goal,s=r.events_remaining_durations,l=r.level_one_rewards,c=r.creator_color,v=r.participants,m=r.is_golden_kappa_train,p=r.expires_at,k=r.potential_rewards,f=r.is_treasure_train,g=r.treasure_train_details,h=r.hype_train_type,T=function(e){return Array.from(Object.keys(e)).map((function(n){return{__typename:"HypeTrainApproachingEventsRemaining",events:parseInt(n,10),secondsRemaining:e[n]}}))}(s),S=l.reduce((function(e,n){try{var t=y(n);t&&e.push(t)}catch(e){(0,P.TK)({channel_id:d,status:P.Up.Failure,event_loc:P.X7.Approaching,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:i})}return e}),[]);return(null===(a=null===(t=null==n?void 0:n.user)||void 0===t?void 0:t.channel)||void 0===a?void 0:a.hypeTrain)?((0,P.TK)({channel_id:d,status:P.Up.Success,event_loc:P.X7.Approaching,error_type:P.Cs.None,pubsub_message_received_time:i}),o()(n,(function(e){return e.user.channel.hypeTrain.approaching}),(function(){return{__typename:"HypeTrainApproaching",id:d,goal:u,creatorColor:c,participants:v,isGoldenKappaTrain:m,eventsRemaining:T,levelOneRewards:S,potentialRewards:k,expiresAt:p,isTreasureTrain:f,treasureTrainDetails:g,hypeTrainType:h}}))):((0,P.TK)({channel_id:d,status:P.Up.Failure,event_loc:P.X7.Approaching,error_type:P.Cs.MissingGQLData,pubsub_message_received_time:i}),n)},K=function(e,n,i){var t,a,r,d,u,s,l,c;if(!i)return n;var v=null===(d=null===(r=null===(a=null===(t=n.user)||void 0===t?void 0:t.channel)||void 0===a?void 0:a.hypeTrain)||void 0===r?void 0:r.execution)||void 0===d?void 0:d.id;if(!v||v!==e.data.id)return n;var m=null===(c=null===(l=null===(s=null===(u=n.user)||void 0===u?void 0:u.channel)||void 0===s?void 0:s.hypeTrain.execution)||void 0===l?void 0:l.sharedHypeTrainDetails)||void 0===c?void 0:c.id,p=e.data.user.id;return m===i?n:p===m||p===i?o()(n,(function(e){return e.user.channel.hypeTrain.execution}),(function(){return null})):n},Q=function(e,n,i){var t,a,r,d,u;if(!(null===(a=null===(t=n.user)||void 0===t?void 0:t.channel)||void 0===a?void 0:a.hypeTrain))return n;if(e.data.hypeTrain.treasureTrainDetails||(e.data.hypeTrain.treasureTrainDetails=null),e.data.hypeTrain.variantTrainDetails||(e.data.hypeTrain.variantTrainDetails=null),e.data.hypeTrain.self||(e.data.hypeTrain.self=null),e.type!==m.PD.HypeTrainMergeTrains&&e.type!==m.PD.HypeTrainSharedConversion||(e.data.hypeTrain.self=(null===(r=n.user.channel.hypeTrain.execution)||void 0===r?void 0:r.self)||null),e.data.hypeTrain.id!==(null===(d=n.user.channel.hypeTrain.execution)||void 0===d?void 0:d.id))return i.current=-1,o()(n,(function(e){return e.user.channel.hypeTrain.execution}),(function(){return e.data.hypeTrain}));if(e.data.sequenceID>=i.current)return i.current=e.data.sequenceID,o()(n,(function(e){return e.user.channel.hypeTrain.execution}),(function(){return e.data.hypeTrain}));var s=n.user.channel.hypeTrain.execution.progress,l=null===(u=n.user.channel.hypeTrain.execution.sharedHypeTrainDetails)||void 0===u?void 0:u.sharedProgress,c=e.data.hypeTrain;return c=o()(c,(function(e){return e.progress}),(function(){return s})),l&&c.sharedHypeTrainDetails&&(c=o()(c,(function(e){return e.sharedHypeTrainDetails.sharedProgress}),(function(){return l}))),o()(n,(function(e){return e.user.channel.hypeTrain.execution}),(function(){return c}))},q=function(e,n){switch(n.length){case 0:return e;case 1:var i=(0,t.__spreadArray)([],n,!0);return e.forEach((function(e){e.id!==n[0].id&&i.push((0,t.__assign)((0,t.__assign)({},e),{participation:(0,t.__spreadArray)([],e.participation,!0)}))})),i;default:return(0,t.__spreadArray)([],n,!0)}},V=function(e,n,i){var a=e.find((function(e){var i;return(null===(i=null==e?void 0:e.user)||void 0===i?void 0:i.id)===n}));return a||(a={__typename:"SharedHypeTrainConductor",user:{__typename:"User",id:n},conductors:[]}),(0,t.__spreadArray)((0,t.__spreadArray)([],e.filter((function(e){var i;return(null===(i=null==e?void 0:e.user)||void 0===i?void 0:i.id)!==n})),!0),[o()(a,(function(e){return e.conductors}),(function(e){return q(e,i)}))],!1)},X=function(e,n){return o()(e,(function(e){return e.conductors}),(function(e){return q(e,n)}))},Y=function(e,n){return o()(e,(function(e){return e}),(function(e){return{id:e.id,progression:n.data.progress.value,goal:n.data.progress.goal,total:n.data.progress.total,allTimeHighState:S(n.data.progress.all_time_high_state)}}))},$=function(e,n){return o()(e,(function(e){return e.sharedProgress}),(function(){return n}))},Z=function(e,n){return o()(e,(function(e){return e}),(function(e){var i=e.progress.level.id.split(":");return{__typename:e.__typename,progress:{__typename:e.progress.__typename,id:e.progress.id,progression:n.data.progress.value,goal:n.data.progress.goal,total:n.data.progress.total,allTimeHighState:S(n.data.progress.all_time_high_state),level:{__typename:e.progress.level.__typename,id:"".concat(i[0],":").concat(i[1],":").concat(n.data.progress.level.value),value:n.data.progress.level.value,goal:n.data.progress.level.goal,rewards:n.data.progress.level.rewards.map(y)}},variantTrainDetails:n.data.variantTrainDetails||null,expiresAt:n.data.expires_at}}))}},384131:function(e,n,i){"use strict";i.d(n,{EQ:function(){return h},M4:function(){return k},SI:function(){return t},o4:function(){return g},z8:function(){return T}});var t,a=i(727234),r=i(726561),d=i(225745),o=i(917705),u=i(296540),s=i(876531),l=i(621241),c=i(500722),v=i(214171),m=i(749633);!function(e){e.Inactive="INACTIVE",e.Approaching="APPROACHING",e.Kickoff="KICKOFF",e.Starting="STARTING",e.Baseline="BASELINE",e.FastMode="FASTMODE",e.PreLevelUp="PRELEVELUP",e.LevelUp="LEVELUP",e.ATHReached="ATHREACHED",e.Merging="MERGING",e.Leaving="LEAVING",e.OtherChannelATHReached="OTHER_CHANNEL_ATH",e.Contributions="CONTRIBUTIONS",e.Ending="ENDING",e.RewardsDistributing="REWARDS_DISTRIBUTING",e.TreasureTrainDiscountReached="TT_DISCOUNT_REACHED",e.CommunityTrainRewardReached="CM_EMOTES_UNLOCKED"}(t||(t={}));var p=new Set([t.Approaching,t.Kickoff]),k=function(e){return p.has(e)},f=new Set([t.Starting,t.Baseline,t.FastMode,t.PreLevelUp,t.LevelUp,t.ATHReached,t.TreasureTrainDiscountReached,t.Ending,t.RewardsDistributing,t.Leaving,t.Merging,t.Contributions,t.OtherChannelATHReached,t.CommunityTrainRewardReached]),g=function(e){return f.has(e)},h=function(e){return e===t.Leaving},T=function(e){var n,i,p,k,f,g,h,T,S,N=e.data,_=e.currentChannelInitiatorLeft,F=e.clearInitiatorLeavingState,D=e.nextMergeEvent,C=e.removeMergeEvent,R=e.previousLevelProgress,w=e.currentLevelProgress,x=e.previousLevelTotal,b=e.currentLevelTotal,E=e.channelsWithNewRecords,H=e.expireRecord,A=(0,a.Z)(N),P=u.useState((function(){return y(N)})),U=P[0],L=P[1],I=u.useState(null),M=I[0],O=I[1],G=(0,a.Z)(U),B=(0,a.Z)(M),K=function(e){"string"==typeof e?(L(e),O(null)):(L(e.type),O(e))},Q=u.useRef(null),q=u.useRef(null),V=u.useState(!1),X=V[0],Y=V[1],$=u.useState(!1),Z=$[0],W=$[1],z=u.useState(!1),j=z[0],J=z[1],ee=u.useCallback((function(){if(!N)return t.Inactive;var e=function(e){var n,i,a,r,d,o,u,p,k,f,g,h=null===(i=null===(n=null==A?void 0:A.user)||void 0===n?void 0:n.channel)||void 0===i?void 0:i.hypeTrain.execution,T=null===(r=null===(a=null==N?void 0:N.user)||void 0===a?void 0:a.channel)||void 0===r?void 0:r.hypeTrain.execution,y=(0,v.l)(T);return h&&!h.sharedHypeTrainDetails&&(null==T?void 0:T.sharedHypeTrainDetails)&&T.sharedHypeTrainDetails.sharedProgress.length<2?t.Starting:T?(0,c.$m)(N)?_?(F(),{type:t.Leaving,progress:T.progress}):D?(C(D.uuid),{type:t.Merging,mergeEvent:D}):!Z&&T.isTreasureTrain&&(null===(k=T.treasureTrainDetails)||void 0===k?void 0:k.status)===s.lHC.REACHED&&(W(!0),h&&e!==t.Starting)?t.TreasureTrainDiscountReached:!j&&y===s.Z6D.COMMUNITY&&T.variantTrainDetails&&(null===(f=(0,m.Y)(T.variantTrainDetails))||void 0===f?void 0:f.status)===s.EMM.REACHED&&(J(!0),h&&e!==t.Starting)?t.CommunityTrainRewardReached:h&&h.progress.level.value-1&&(Q.current=setTimeout((function(){return ne.current()}),h))}}),[U,G,M,B,ne,null===(i=null===(n=null==N?void 0:N.user)||void 0===n?void 0:n.channel)||void 0===i?void 0:i.hypeTrain.execution,null===(p=null==N?void 0:N.user)||void 0===p?void 0:p.id]),u.useEffect((function(){var e,n,i,a,r,d,u,s,l;U===t.Approaching?q.current&&(null===(i=null===(n=null===(e=null==A?void 0:A.user)||void 0===e?void 0:e.channel)||void 0===n?void 0:n.hypeTrain.approaching)||void 0===i?void 0:i.expiresAt)===(null===(d=null===(r=null===(a=null==N?void 0:N.user)||void 0===a?void 0:a.channel)||void 0===r?void 0:r.hypeTrain.approaching)||void 0===d?void 0:d.expiresAt)||(q.current&&(clearTimeout(q.current),q.current=null),!(null===(l=null===(s=null===(u=null==N?void 0:N.user)||void 0===u?void 0:u.channel)||void 0===s?void 0:s.hypeTrain.approaching)||void 0===l?void 0:l.expiresAt)||(0,o.isPast)(N.user.channel.hypeTrain.approaching.expiresAt)?ne.current():q.current=setTimeout((function(){return ne.current()}),(0,o.differenceInMilliseconds)(N.user.channel.hypeTrain.approaching.expiresAt,new Date))):q.current&&(clearTimeout(q.current),q.current=null)}),[U,null===(g=null===(f=null===(k=null==N?void 0:N.user)||void 0===k?void 0:k.channel)||void 0===f?void 0:f.hypeTrain.approaching)||void 0===g?void 0:g.expiresAt,ne,null===(S=null===(T=null===(h=null==A?void 0:A.user)||void 0===h?void 0:h.channel)||void 0===T?void 0:T.hypeTrain.approaching)||void 0===S?void 0:S.expiresAt]),(0,d.i)((function(){var e,n;clearTimeout(null!==(e=Q.current)&&void 0!==e?e:-1),clearTimeout(null!==(n=q.current)&&void 0!==n?n:-1)})),{bannerState:U,bannerStateMetadata:M}},y=function(e){var n,i,a;if(e){if((0,c.B$)(e))return t.Approaching;if((0,c.$m)(e))return(null===(a=null===(i=null===(n=e.user)||void 0===n?void 0:n.channel)||void 0===i?void 0:i.hypeTrain.execution)||void 0===a?void 0:a.isFastMode)?t.FastMode:t.Baseline}return t.Inactive}},158253:function(e,n,i){"use strict";i.d(n,{Cs:function(){return o},LE:function(){return c},TK:function(){return p},Up:function(){return r},X7:function(){return d},h7:function(){return m},t9:function(){return v}});var t,a,r,d,o,u,s=i(883474),l=i(501909),c="hype-train";function v(e){var n={channel_id:e.channel_id,hype_train_level:(0,l.km)(e.hype_train_level),animation_type:e.animation_type,train_id:e.train_id,channel_treatment:e.channel_treatment};s.E5.track("hype_train_celebration_impression",n)}function m(e){e.channel_id&&s.E5.track("hype_train_approaching_impression",e)}function p(e){var n=s.Zn.get("hype_train_availability_sample_rate",0);Math.random()5:(e.goal||0)>5)}},214171:function(e,n,i){"use strict";i.d(n,{l:function(){return a}});var t=i(876531),a=function(e){var n;return"CommunityTrainDetails"===(null===(n=null==e?void 0:e.variantTrainDetails)||void 0===n?void 0:n.__typename)?t.Z6D.COMMUNITY:t.Z6D.REGULAR}},912771:function(e,n,i){"use strict";i.d(n,{Zc:function(){return r}});var t=i(917705),a=.5;function r(e){var n=(0,t.differenceInMilliseconds)(e,new Date)-1e3*a;return Math.max(0,n/1e3)}},749633:function(e,n,i){"use strict";function t(e){return"CommunityTrainDetails"===(null==e?void 0:e.__typename)?e:null}i.d(n,{Y:function(){return t}})},905882:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetHypeTrainExecution"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"userLogin"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[{kind:"Argument",name:{kind:"Name",value:"login"},value:{kind:"Variable",name:{kind:"Name",value:"userLogin"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"channel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hypeTrain"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"execution"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainExecution"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"approaching"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainApproaching"},directives:[]}]}}]}}]}}]}}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function d(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){d(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){d(e,n)})),e.definitions&&e.definitions.forEach((function(e){d(e,n)}))}t.definitions=t.definitions.concat(r(i(6934).definitions)),t.definitions=t.definitions.concat(r(i(515592).definitions));var o={};t.definitions.forEach((function(e){if(e.name){var n=new Set;d(e,n),o[e.name.value]=n}})),e.exports=t},346209:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainApproachingEventsRemaining"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainApproachingEventsRemaining"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"events"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"secondsRemaining"},arguments:[],directives:[]}]}}]}},48330:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"approachingTreasureTrainDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApproachingTreasureTrainDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountLevelThreshold"},arguments:[],directives:[]}]}}]}},515592:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainApproaching"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainApproaching"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"creatorColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"participants"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isGoldenKappaTrain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expiresAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isTreasureTrain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hypeTrainType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"treasureTrainDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"approachingTreasureTrainDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"potentialRewards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainPotentialReward"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"eventsRemaining"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainApproachingEventsRemaining"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"levelOneRewards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainReward"},directives:[]}]}}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}t.definitions=t.definitions.concat(r(i(62013).definitions)),t.definitions=t.definitions.concat(r(i(617842).definitions)),t.definitions=t.definitions.concat(r(i(346209).definitions)),t.definitions=t.definitions.concat(r(i(48330).definitions)),e.exports=t},784391:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainBadgeReward"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainBadgeReward"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"badge"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"setID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"DOUBLE"}}],directives:[]}]}}]}}]}},975711:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainCalloutEmote"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Emote"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]}]}}]}},403927:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"communityTrainDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommunityTrainDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentRewardAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rewardLevelThreshold"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"previousRewardAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextRewardAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxRewardLevel"},arguments:[],directives:[]}]}}]}},960003:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainCompleted"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainCompleted"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"level"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"goal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progression"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]}]}}]}},652509:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainConductorReward"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainConductorReward"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rewards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainReward"},directives:[]}]}}]}}]},a={};t.definitions=t.definitions.concat(i(62013).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))),e.exports=t},298359:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainConductorUpdate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainExecution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"conductors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainConductor"},directives:[]}]}}]}}]},a={};t.definitions=t.definitions.concat(i(569687).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))),e.exports=t},569687:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainConductor"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainConductor"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"participation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainParticipation"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"50"}}],directives:[]}]}}]}}]},a={};t.definitions=t.definitions.concat(i(591963).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))),e.exports=t},524354:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainConfig"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainConfig"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"difficulty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"difficultySettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"difficulty"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxLevel"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"conductorRewards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainConductorReward"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"participationConversionRates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainParticipationConversionRate"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"calloutEmote"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainCalloutEmote"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"willUseCreatorColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"primaryHexColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"potentialRewards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainPotentialReward"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"kickoff"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"minPoints"},arguments:[],directives:[]}]}}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}t.definitions=t.definitions.concat(r(i(975711).definitions)),t.definitions=t.definitions.concat(r(i(652509).definitions)),t.definitions=t.definitions.concat(r(i(558415).definitions)),t.definitions=t.definitions.concat(r(i(617842).definitions)),e.exports=t},888268:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainEmoteReward"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainEmoteReward"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"emote"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"token"},arguments:[],directives:[]}]}}]}}]}},121669:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainExecutionSelfEdgeUpdate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainExecution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"self"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEligibleForRewards"},arguments:[],directives:[]}]}}]}}]}},6934:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainExecution"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainExecution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"startedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"expiresAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endReason"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainProgress"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"conductors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainConductor"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"config"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainConfig"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"allTimeHigh"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainCompleted"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"participations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"action"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"sharedHypeTrainDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedHypeTrainDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isGoldenKappaTrain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isFastMode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isTreasureTrain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"treasureTrainDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"treasureTrainDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"variantTrainDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"variantTrainDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"self"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"isEligibleForRewards"},arguments:[],directives:[]}]}}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}t.definitions=t.definitions.concat(r(i(960003).definitions)),t.definitions=t.definitions.concat(r(i(569687).definitions)),t.definitions=t.definitions.concat(r(i(524354).definitions)),t.definitions=t.definitions.concat(r(i(667197).definitions)),t.definitions=t.definitions.concat(r(i(550231).definitions)),t.definitions=t.definitions.concat(r(i(35414).definitions)),t.definitions=t.definitions.concat(r(i(241952).definitions)),e.exports=t},38064:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainLevelUpdate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainExecution"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainProgressUpdate"},directives:[]},{kind:"Field",name:{kind:"Name",value:"level"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainLevel"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"variantTrainDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"variantTrainDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"expiresAt"},arguments:[],directives:[]}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}t.definitions=t.definitions.concat(r(i(739489).definitions)),t.definitions=t.definitions.concat(r(i(604422).definitions)),t.definitions=t.definitions.concat(r(i(241952).definitions)),e.exports=t},604422:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainLevel"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainLevel"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rewards"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainReward"},directives:[]}]}}]}}]},a={};t.definitions=t.definitions.concat(i(62013).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))),e.exports=t},558415:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainParticipationConversionRate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainParticipationConversionRate"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"action"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}]}},591963:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainParticipation"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainParticipation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"action"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]}]}}]}},617842:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainPotentialReward"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainPotentialReward"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"level"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainReward"},directives:[]}]}}]}}]},a={};t.definitions=t.definitions.concat(i(62013).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))),e.exports=t},739489:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainProgressUpdate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainProgress"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progression"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allTimeHighState"},arguments:[],directives:[]}]}}]}},667197:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainProgress"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainProgress"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"level"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainLevel"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"goal"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progression"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allTimeHighState"},arguments:[],directives:[]}]}}]},a={};t.definitions=t.definitions.concat(i(604422).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))),e.exports=t},62013:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"hypeTrainReward"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainReward"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainEmoteReward"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainEmoteReward"},directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainBadgeReward"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainBadgeReward"},directives:[]}]}}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}t.definitions=t.definitions.concat(r(i(888268).definitions)),t.definitions=t.definitions.concat(r(i(784391).definitions)),e.exports=t},550231:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"treasureTrainDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TreasureTrainDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discountPercentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountLevelThreshold"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}},241952:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"variantTrainDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VariantTrainDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CommunityTrainDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"communityTrainDetails"},directives:[]}]}}]}}]},a={};t.definitions=t.definitions.concat(i(403927).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))),e.exports=t},122037:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"sharedHypeTrainChannel"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"login"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"displayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"profileImageURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"50"}}],directives:[]}]}}]}},35414:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"sharedHypeTrainDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SharedHypeTrainDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sharedConductors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"conductors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainConductor"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"sharedProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedHypeTrainChannel"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"channelProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedHypeTrainProgress"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"sharedAllTimeHighRecords"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"channelAllTimeHigh"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hypeTrainCompleted"},directives:[]}]}}]}}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}t.definitions=t.definitions.concat(r(i(569687).definitions)),t.definitions=t.definitions.concat(r(i(122037).definitions)),t.definitions=t.definitions.concat(r(i(77949).definitions)),t.definitions=t.definitions.concat(r(i(960003).definitions)),e.exports=t},457761:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"sharedHypeTrainProgressUpdate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SharedHypeTrainDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sharedProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedHypeTrainChannel"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"channelProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedHypeTrainProgress"},directives:[]}]}}]}}]}}]},a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}t.definitions=t.definitions.concat(r(i(122037).definitions)),t.definitions=t.definitions.concat(r(i(77949).definitions)),e.exports=t},77949:function(e){e.exports={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"sharedHypeTrainProgress"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"HypeTrainProgress"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"allTimeHighState"},arguments:[],directives:[]}]}}]}}}]);