티스토리 수익 글 보기

티스토리 수익 글 보기

!function(){try{var t=”undefined”!=typeof window?window:”undefined”!=typeof global?global:”undefined”!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]=”4cfef0b0-76b6-40e4-92c4-aed3c919486b”,t._sentryDebugIdIdentifier=”sentry-dbid-4cfef0b0-76b6-40e4-92c4-aed3c919486b”)}catch(t){}}(),(self.webpackChunktwitch_twilight=self.webpackChunktwitch_twilight||[]).push([[17184],{559742:function(t,e,i){i.d(e,{hJ:function(){return r},uS:function(){return y}});var r,n=i(331635),a=i(474848),o=i(826094),s=i(882439),d=i(296540),u=i(415044),c=i(859406),h=i(739604),l=i(192941),p=i(148223),f=i(368770),_=i(66066),E=i(528461),m=i(697621),g=i(558148),v=i(332884),I=i(603191),A=i(62026),D=i(110657);!function(t){t.Amazon=”AAX”}(r||(r={}));var w=(0,h.U)({name:”AdSlot”,category:”monetization”}),R=w.Available,S=w.Unavailable,T=function(t){function e(e){var i=t.call(this,e)||this;return i.logger=c.vF.withCategory(“ad-slot”),i.adSessionId=(0,p.k3)(),i.originParams=s.parse(window.location.search),i.containTagFilters=i.originParams.tl||window.location.pathname.includes(“directory/tags”)||window.location.pathname.includes(“directory/all/tags”),i.createSlot=function(t,e){return(0,n.__awaiter)(i,void 0,void 0,(function(){var i,a,s,d,u,h,l,_,w,R,S,T,y,O,C,P=this;return(0,n.__generator)(this,(function(b){switch(b.label){case 0:if(this.state.slotCreated&&!e)return[2];this.setState({slotCreated:!0}),b.label=1;case 1:if(b.trys.push([1,6,,7]),””===(i=(0,m.TN)(t.slotID)))throw”invalid bda placement”;return a=i===A.A3.HEADLINER,s=(0,p.yr)(32),d=new Date,123,u=(0,f.wz)(c.x2.store.getState()),h={sdk:r.Amazon,tagParams:{platform:”web”},adFormat:i,sessionID:this.adSessionId,duration:123,twitchCorrelator:s,roll:D.df.Mid,game:null===(O=t.targeting)||void 0===O?void 0:O.game,status:status,requestTime:123,targetingTag:null===(C=t.targeting)||void 0===C?void 0:C.tag,userId:null==u?void 0:u.id},l=h,_=(0,I.L9)(new g.C,l),w=function(e,i){var a;return c.E5.track(e,(0,n.__assign)((0,n.__assign)({},i||{}),{ad_session_id:l.sessionID,requested_ad_size:JSON.stringify(t.adSize),ad_placement:t.slotID,allocation_strategy:t.slotID,date:d.toDateString(),browser:navigator.userAgent,game:null===(a=t.targeting)||void 0===a?void 0:a.game,sdk:r.Amazon,emitting_service:”AdvantEdge”,twitch_correlator:s,stitched:!1,pbyp_visible:!1,is_mafs:!!l.mafsDecision,format_name:A.gz.BROWSE_DISPLAY}))},[4,E.F.requestAd(_,w)];case 2:if(R=b.sent(),(0,v.Jp)(R))throw new Error(“response is not a display bid”);return S=R.resp,[4,E.F.renderCreative(S,this.iframeRef,w,a,t.slotID)];case 3:return b.sent(),t.setCompetitiveSeparationParams&&t.setHeadlinerStatus?[4,t.setCompetitiveSeparationParams(S.adv,S.cat)]:[3,5];case 4:b.sent(),t.setHeadlinerStatus(“Filled”),b.label=5;case 5:return this.setState({shouldDisplay:!0,dsaContext:(0,m.A9)(S,this.props.slotID,this.adSessionId)},(function(){P.props.onDisplay&&P.props.onDisplay()})),[3,7];case 6:return T=b.sent(),this.logger.warn(“Unable to create ad slot”,{slotID:t.slotID,adUnit:t.adUnit,adSize:t.adSize,targeting:t.targeting,autoEnable:t.autoEnable}),t.setHeadlinerStatus&&t.setHeadlinerStatus(“Unfilled”),(y=(0,o.d)(T)).includes(“error”)&&this.setState({slotError:{error:!0,message:y}}),[3,7];case 7:return[2]}}))}))},i.renderExistingBid=function(t,e){return(0,n.__awaiter)(i,void 0,void 0,(function(){var i,a,s,d,u=this;return(0,n.__generator)(this,(function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),this.state.slotCreated&&!e?[2]:(this.setState({slotCreated:!0}),i=”headliner”===this.props.slotID,a=function(e,i){var a;return c.E5.track(e,(0,n.__assign)((0,n.__assign)({},i||{}),{ad_session_id:u.adSessionId,requested_ad_size:JSON.stringify(u.props.adSize),ad_placement:u.props.slotID,allocation_strategy:u.props.slotID,date:(new Date).toDateString(),browser:navigator.userAgent,game:null===(a=u.props.targeting)||void 0===a?void 0:a.game,sdk:r.Amazon,emitting_service:”AdvantEdge”,twitch_correlator:(0,p.yr)(32),stitched:!1,pbyp_visible:!1,is_mafs:!!t.updatedMafsDecision,format_name:A.gz.BROWSE_DISPLAY}))},[4,E.F.renderCreative(t,this.iframeRef,a,i,this.props.slotID)]);case 1:return h.sent(),this.setState({shouldDisplay:!0,dsaContext:(0,m.A9)(t,this.props.slotID,this.adSessionId)},(function(){u.props.onDisplay&&u.props.onDisplay()})),[3,3];case 2:return s=h.sent(),this.logger.warn(“Unable to create ad slot”,{slotID:this.props.slotID,adUnit:this.props.adUnit,adSize:this.props.adSize,targeting:this.props.targeting,autoEnable:this.props.autoEnable}),(d=(0,o.d)(s)).includes(“error”)&&this.setState({slotError:{error:!0,message:d}}),[3,3];case 3:return[2]}}))}))},i.setIFrameRef=function(t){return i.iframeRef=t},i.renderDSAButton=function(t){return(0,a.jsx)(_.V,{dsaContext:i.state.dsaContext,format:t})},i.state={dsaContext:{adInput:{advertiserIDNS:””,campaignIDNS:””},clientInput:{},countryInfo:{geoCode:null,isFromEU:!1}},shouldDisplay:!1},i}return(0,n.__extends)(e,t),e.prototype.componentDidMount=function(){c.E5.track(“ad_request_opportunity”,{ad_placement:this.props.slotID,ad_session_id:this.adSessionId,requested_format:JSON.stringify([A.gz.BROWSE_DISPLAY]),sdk:r.Amazon}),this.props.trackingSet?(this.logger.debug(“Tracking is set. Creating slot (componentDidMount)”,this.props.slotID),this.containTagFilters||(this.props.displayBid?this.renderExistingBid(this.props.displayBid):this.createSlot(this.props))):(this.logger.debug(“Tracking is not set. Skipping slot creation (componentDidMount)”,this.props.slotID),this.props.setHeadlinerStatus&&this.props.setHeadlinerStatus(“Unfilled”))},e.prototype.componentDidUpdate=function(t){var e=!this.state.slotCreated&&!this.containTagFilters,i=!this.state.slotCreated&&”string”==typeof this.props.targeting.tag&&”string”==typeof t.targeting.tag&&t.targeting.tag!==this.props.targeting.tag;this.state.slotCreated&&!i||(this.props.trackingSet&&(t.trackingSet!==this.props.trackingSet&&e||i)?(this.logger.debug(“Tracking is set. Creating slot (componentDidUpdate)”,this.props.slotID),this.props.displayBid?this.renderExistingBid(this.props.displayBid,i):this.createSlot(this.props,i)):(this.logger.debug(“Tracking is not set. Skipping slot creation (componentDidUpdate)”,this.props.slotID),this.props.setHeadlinerStatus&&this.props.setHeadlinerStatus(“Unfilled”)))},e.prototype.render=function(){var t;if(null===(t=this.state.slotError)||void 0===t?void 0:t.error)return(0,a.jsx)(S,{reason:this.state.slotError.message});var e=(0,n.__assign)({},this.props.injectStyles);this.state.shouldDisplay||(e.display=”none”);var i={height:”100%”,width:”100%”},r=(0,c.hw)(“Display Ad”,”AdSlot”);return(0,a.jsx)(R,{children:(0,a.jsx)(“div”,(0,n.__assign)({style:e,id:this.props.slotID},(0,l.F)(this.props),{children:”headliner”===this.props.slotID?(0,a.jsxs)(a.Fragment,{children:[this.renderDSAButton(this.props.slotID),(0,a.jsx)(“iframe”,{title:r,style:i,ref:this.setIFrameRef,scrolling:”no”,marginHeight:0,marginWidth:0})]}):(0,a.jsxs)(“div”,{style:{position:”relative”,width:”fit-content”,margin:”auto”},children:[this.renderDSAButton(this.props.slotID),(0,a.jsx)(“iframe”,{title:r,style:i,ref:this.setIFrameRef,scrolling:”no”,marginHeight:0,marginWidth:0})]})}))})},e}(d.Component);var y=(0,u.Ng)((function(t){return{trackingSet:t.ads.trackingSet}}),null)(T)},66066:function(t,e,i){i.d(e,{V:function(){return d}});var r=i(331635),n=i(474848),a=(i(296540),i(508952)),o=i(957773),s=a.x.wrap((function(){return i.e(20956).then(i.bind(i,209082))}),”DSAButton”,{failSilently:!0,placeholder:null}),d=function(t){return(0,o.QN)((function(t){return t.session.firstPageLoaded}))?(0,n.jsx)(s,(0,r.__assign)({},t)):null}},894597:function(t,e,i){i.d(e,{f:function(){return n}});var r=i(456809),n=function(){function t(){}return t.prototype.childByName=function(t,e){if(!t)return null;for(var i=0,r=Array.from(t.childNodes);i3600||a>60?-1:s+o+a},t}()},528461:function(t,e,i){i.d(e,{F:function(){return E},q:function(){return p}});var r=i(331635),n=i(826094),a=i(882439),o=i(859406),s=i(148223),d=i(559742),u=i(697621),c=i(332884),h=i(727925),l=i(62026),p={XML:”XML”,JSON:”JSON”},f=/[^A-Za-z0-9]+/g,_=o.x2.logger.withCategory(“OutstreamAds”),E=function(){function t(){}return t.isInitialized=function(){return this.isReady},t.startProcessingRequests=function(){this.isReady=!0,this.processDeferredCmds()},t.setAppWideTracking=function(t,e){this.appWideTracking[t]=this.normalizeTargetingValue(e)},t.clearAppWideTracking=function(t){delete this.appWideTracking[t]},t.decline=function(t,e){void 0===e&&(e={sendEvent:!0}),this.declineReason||(e.sendEvent&&o.E5.track(“ad_sdk_declined”,{sdk:d.hJ.Amazon,sdk_decline_reason:t}),this.declineReason=t,this.processDeferredCmds())},t.requestAd=function(t,e,i){var a=this,o=this.augmentRequest(t).buildAdTagURL();return new Promise((function(s,d){a.deferredCmd({fn:function(){var u=Date.now();e(“ad_edge_request”,{}),fetch(o,{method:”GET”,credentials:”include”}).then((function(i){return(0,r.__awaiter)(a,void 0,void 0,(function(){var n,a,o,d,f,_,E,m,g,v,I,A;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return 204!==i.status?[3,1]:(e(“ad_edge_request_response”,{available_impressions:0,request_duration:Date.now()-u}),e(“ad_csai_served_impressions”,{available_impressions:0}),s({}),[3,11]);case 1:return 200!==i.status?[3,9]:[4,i.headers.get(“Content-Type”)];case 2:return”application/json”!==(n=r.sent())?[3,4]:[4,i.json()];case 3:if(a=r.sent(),!this.validateAdEdgeDisplayBid(a))throw new Error(“Invalid ad edge display bid response”);return(0,h.df)(a.width,a.height)&&(e(“ad_request_response_drop”,{reason:”skyscraper kill switch on”}),s({})),e(“ad_edge_request_response”,{ad_size:””.concat(a.width,”x”).concat(a.height),available_impressions:a.creativeHtml?1:0,format_name:(0,l.uN)(a.returnedAdFormat),sub_format_name:(0,c.Fn)(a.returnedAdFormat,a.height,a.width),request_duration:Date.now()-u}),e(“ad_csai_bid_parse_success”,{ad_size:””.concat(a.width,”x”).concat(a.height),available_impressions:a.creativeHtml?1:0,format_name:(0,l.uN)(a.returnedAdFormat),sub_format_name:(0,c.Fn)(a.returnedAdFormat,a.height,a.width)}),s({type:p.JSON,resp:a}),e(“ad_csai_served_impressions”,{ad_size:””.concat(a.width,”x”).concat(a.height),available_impressions:a.creativeHtml?1:0,format_name:(0,l.uN)(a.returnedAdFormat),sub_format_name:(0,c.Fn)(a.returnedAdFormat,a.height,a.width)}),[3,8];case 4:return”application/xml”!==n?[3,7]:[4,i.text()];case 5:return o=r.sent(),d=this.parseXML(o),[4,i.headers.get(“X-Ad-Format”)];case 6:if(f=r.sent(),_=null!==(A=this.getVideoAdFormatFromPreviewSlot())&&void 0!==A?A:(0,l.V2)(f),(E=’‘!==o)&&!this.getVideoAdFormatFromPreviewSlot()&&![l.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO,l.Z$.OUTSTREAM_VERTICAL_VIDEO,l.Z$.OUTSTREAM_HOME_PAGE_VIDEO,l.Z$.OUTSTREAM_BROWSE_PAGE_VIDEO,l.Z$.OUTSTREAM_VERTICAL_VIDEO_PLAYABLE].includes(_))throw new Error(“Invalid ad edge response format header”);return m=E?(0,l.uN)(_):t.adFormat,e(“ad_edge_request_response”,{request_duration:Date.now()-u,format_name:m}),s({type:p.XML,format:_,resp:d}),[3,8];case 7:throw new Error(“Invalid ad edge response content type”);case 8:return[3,11];case 9:return g=Error.bind,I=(v=”Status “.concat(i.status,” “)).concat,[4,i.text()];case 10:throw new(g.apply(Error,[void 0,I.apply(v,[r.sent()])]));case 11:return[2]}}))}))})).catch((function(t){var r=Date.now()-u;null==i||i(r);var a=(0,n.d)(t,{useRawMessage:!0});e(“ad_edge_request_error”,{error_message:a,request_duration:r}),e(“ad_csai_bid_parse_error”,{error:a,available_impression:0}),d(a)}))},decline:function(t){e(“ad_request_format_declined”,{reason:JSON.stringify([t])}),d(“Request declined for reason “.concat(t))}})}))},t.renderCreative=function(t,e,i,n,a,o){return new Promise((function(d,u){if(e.id=(0,s.k3)(),e.frameBorder=”0″,e.marginHeight=”0″,e.marginWidth=”0″,e.style.marginTop=”0″,e.style.marginLeft=”0″,e.scrolling=”no”,n?(e.style.width=”100%”,e.style.height=”100%”):(e.style.width=””.concat(t.width,”px”),e.style.height=””.concat(t.height,”px”)),e.setAttribute(“sandbox”,”allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-scripts”),t.imp){var h=new Image;h.addEventListener(“error”,(function(){_.debug(“Error firing impression to AAX”,t.imp)})),h.src=t.imp,i(“ad_impression”,(0,r.__assign)((0,r.__assign)({},o||{}),{impression_id:e.id,ad_size:””.concat(t.width,”x”).concat(t.height),format_name:(0,l.uN)(t.returnedAdFormat),sub_format_name:(0,c.Fn)(t.returnedAdFormat,t.height,t.width),ad_id:t.adId,tas_line_item_id:t.adId,tas_creative_id:t.creativeCfId})),i(“ad_client_impression”,{ad_size:””.concat(t.width,”x”).concat(t.height),format_name:(0,l.uN)(t.returnedAdFormat),creative_id:e.id,advertiser_id:t.adv,pbyp_visible:!1,pbyp_play_session_id:void 0,emitting_service:”AdvantEdge”,allocation_strategy:a,available_impressions:t.creativeHtml?1:0,sub_format_name:(0,c.Fn)(t.returnedAdFormat,t.height,t.width),ad_id:t.adId,tas_line_item_id:t.adId,tas_creative_id:t.creativeCfId})}else t.isPreview||u(“impression url empty in non-preview bid”);e.srcdoc=t.creativeHtml,d()}))},t.reset=function(){this.isReady=!1,this.appWideTracking={},this.deferredCmds=[],this.declineReason=null},t.validateAdEdgeDisplayBid=function(t){return t.creativeHtml&&t.width&&t.height},t.deferredCmd=function(t){this.declineReason?t.decline(this.declineReason):this.isReady?t.fn():this.deferredCmds.push(t)},t.processDeferredCmds=function(){for(;this.deferredCmds.length>0;){var t=this.deferredCmds.shift();t&&(this.declineReason?t.decline(this.declineReason):this.isReady&&t.fn())}},t.normalizeTargetingValue=function(t){var e=function(t){return t.toString().replace(f,”_”).toLowerCase()};return Array.isArray(t)?t.map(e):e(t)},t.augmentRequest=function(t){this.appWideTracking.campaign&&t.withCampaign(this.appWideTracking.campaign.toString());var e=a.parse(window.location.search),i=Number(e.amzpvw);if((e.force_lower_third_display||e.force_squeezeback_display||e.force_headliner_display||e.force_banner_display||e.force_outstream_video)&&t.withForceRender(),e.amzpvw&&Number.isInteger(i)&&i>0&&(e.previewSize&&(0,u.UK)(e.previewSize.toString())||e.previewSlot)){var r=””;e.env&&e.env.toString()&&(r=e.env.toString()),e.previewSize&&t.withPreviewOnSize(e.amzpvw.toString(),e.previewSize.toString(),r),e.previewSlot&&t.withPreviewOnSlot(e.amzpvw.toString(),e.previewSlot.toString(),r),e.previewCountryCode&&t.withGeocode(e.previewCountryCode.toString())}return t},t.parseXML=function(t){return(new DOMParser).parseFromString(t,”application/xml”)},t.getVideoAdFormatFromPreviewSlot=function(){var t,e=a.parse(window.location.search);return e.amzpvw&&e.previewSlot?(0,l.sW)((null===(t=e.previewSlot)||void 0===t?void 0:t.toString())||””):null},t.isReady=!1,t.appWideTracking={},t.deferredCmds=[],t}()},697621:function(t,e,i){i.d(e,{A9:function(){return b},C_:function(){return I},Fz:function(){return y},Hb:function(){return O},MA:function(){return h},TN:function(){return C},UK:function(){return S},Wj:function(){return p},ZJ:function(){return v},Zl:function(){return T},_i:function(){return m},cL:function(){return g},fS:function(){return D},iN:function(){return _},ot:function(){return E},qi:function(){return u},qx:function(){return l},rF:function(){return A},rW:function(){return w},rg:function(){return c},tJ:function(){return P},zf:function(){return R}});var r=i(430228),n=i(859406),a=i(494693),o=i(876531),s=i(59889),d=i(62026),u=”sda_suppress_flag”,c=”sda_v_experiment”,h=”sda_v_ctrs”,l=”78a931ff037d8cf739df0089321f27c1a8bd2d09575413b9c4d99352a2e11f11″,p=”audio_maf_web”,f=”ads_freeform_tags_deprecation”,_={directory:{banner:”directory-banner”,rectangle:”directory-rectangle”},headliner:”headliner”,stream:{lowerthird:”stream-lowerthird”,squeezeback:”stream-squeezeback”}},E={directory:{banner:[[970,66],[728,90]],rectangle:[[300,250]]},headliner:[[830,350]],stream:{lowerthird:[[970,66],[728,90]],squeezeback:[[300,1050],[160,600]]}},m={directory:”/”.concat(n.$W.dfpNetworkCode,”/twitch/directory”),headliner:”/”.concat(n.$W.dfpNetworkCode,”/twitch/headliner”)},g={games:”games”,frontpage:”homepage”,stream:”stream”};new r.EventEmitter;function v(t){return t===d.Z$.STANDARD_AUDIO}function I(t){return t===d.Z$.OUTSTREAM_VERTICAL_VIDEO||t===d.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO||t===d.Z$.OUTSTREAM_HOME_PAGE_VIDEO||t===d.Z$.OUTSTREAM_BROWSE_PAGE_VIDEO||t===d.Z$.OUTSTREAM_VERTICAL_VIDEO_PLAYABLE}function A(t){return void 0!==t&&(I(t)||w(t))}function D(t){return t===d.Z$.OUTSTREAM_MIRROR_PBYP_VIDEO||t===d.Z$.OUTSTREAM_HOME_PAGE_VIDEO||t===d.Z$.OUTSTREAM_BROWSE_PAGE_VIDEO}function w(t){return void 0!==t&&(t===d.Z$.LOWER_THIRD||t===d.Z$.SQUEEZEBACK)}function R(t){return t===d.Z$.STANDARD_AUDIO||t===d.Z$.STANDARD_VIDEO}function S(t){return t.match(/^([0-9]+x[0-9]+)$/)}function T(t){return t.getElementsByTagName(“Ad”).length>0}function y(t){if(T(t)){var e=t.getElementsByTagName(“ClickTracking”);return e.length>0?e[0].textContent:””}return””}function O(t,e){var i=n.Zn.get(f,!1)?null:(0,s.mV)((e||””).toLowerCase())||null;return(0,a.jP)([i,(0,s.mV)(t.filter((function(t){return t.scope===o.H3L.CATEGORY})).map((function(t){return(0,s.mV)(t.tagName.toLowerCase())})).join(“|”))||null]).join(“|”)}function C(t){switch(t){case _.headliner:return d.A3.HEADLINER;case _.directory.banner:return d.A3.DIRECTORY_BANNER;case _.directory.rectangle:return d.A3.DIRECTORY_RECTANGLE;default:return””}}function P(t){switch(t){case _.headliner:return.5;case”mirrorc”:return 4;case”video”:case”9″:return 1;default:return 0}}function b(t,e,i,r){var n,a,o,s,d,u,c,h,l,p,f;return{adInput:{adIDValue:t.adId,adProgramIDValue:t.programId,adSessionIDValue:i,advertiserIDNS:null!==(a=null===(n=t.transparencyInfo)||void 0===n?void 0:n.advertiserIdNS)&&void 0!==a?a:””,campaignIDNS:null!==(s=null===(o=t.transparencyInfo)||void 0===o?void 0:o.campaignIdNS)&&void 0!==s?s:””,creativeIDValue:t.creativeCfId,pageURL:document.URL,selectionSignals:{dsaPastActivity:null===(u=null===(d=t.transparencyInfo)||void 0===d?void 0:d.selectionSignals)||void 0===u?void 0:u.pastActivity,dsaVersion:null===(c=t.transparencyInfo)||void 0===c?void 0:c.version,isShownBasedOffUserDsaContext:null===(l=null===(h=t.transparencyInfo)||void 0===h?void 0:h.selectionSignals)||void 0===l?void 0:l.context,isShownBasedOffUserDsaLocation:null===(f=null===(p=t.transparencyInfo)||void 0===p?void 0:p.selectionSignals)||void 0===f?void 0:f.location},slotName:e},clientInput:{ttMedium:e===_.directory.banner||e===_.directory.rectangle?”twitch_browse_directory”:e===_.headliner?”twitch_home”:”channel_videos”},countryInfo:{geoCode:null!=r?r:null,isFromEU:!1}}}},558148:function(t,e,i){i.d(e,{C:function(){return s}});var r=i(859406),n=i(62026),a=i(760674),o={PREROLL:”preroll”,MIDROLL:”midroll”,POSTROLL:”postroll”},s=function(){function t(){this.logger=r.x2.logger.withCategory(“AdRequestBuilder”),this.baseDomain=a.x6,this.bidPath=a.ww,this.pageLoadId=””.concat(Math.round(1e12*Math.random())).concat(Date.now()),this.cacheBuster=Math.round(1e7*Math.random()).toString(),this.breakPositions=o}return t.prototype.withReturnType=function(t){if(-1===a.le.indexOf(t)){var e=JSON.stringify(a.le);throw new Error(“Invalid return type: “.concat(t,”. Valid values are: “).concat(e))}return this.returnType=t,this},t.prototype.withAdFormat=function(t){return this.adFormat=t,this.baseDomain=a.VS,t===n.Z$[n.Z$.OUTSTREAM_HOME_PAGE_VIDEO]||t===n.Z$[n.Z$.OUTSTREAM_BROWSE_PAGE_VIDEO]?this.bidPath=a.G1:this.bidPath=a.we,this},t.prototype.withDuration=function(t){return t>a.iB&&(t/=1e3,this.logger.debug(“Duration value was adjusted from milliseconds to seconds : “.concat(t))),t>0&&tr)throw new Error(“Invalid value for “.concat(t,”. Valid Range is [“).concat(i,”, “).concat(r,”]”))},t.prototype.addParam=function(t,e,i){i&&(t[e]=i)},t}()},760674:function(t,e,i){i.d(e,{AG:function(){return p},G1:function(){return o},VS:function(){return n},f0:function(){return r},iB:function(){return h},jI:function(){return l},le:function(){return f},p2:function(){return u},we:function(){return s},wl:function(){return c},ww:function(){return d},x6:function(){return a}});var r,n=”https://edge.ads.twitch.tv”,a=”https://vaes.amazon-adsystem.com”,o=”/ads”,s=”/ads/format”,d=”/2018-01-01/3p/ads”,u=”V6SJavaScriptSDK”,c=4,h=3600,l=30,p=new Set([“beta”,”gamma”,”prod”]),f=[“vast2″,”vast3″,”json”];!function(t){t.AD_FORMAT=”afmt”,t.AD_SESSION_ID=”sid”,t.ADVERTISING_ID=”aid”,t.APP=”app”,t.BLOCKED_ADVERTISERS=”badvs”,t.BLOCKED_CATEGORIES=”bcats”,t.BLOCKED_CREATIVES=”bcrids”,t.BNDL=”bndl”,t.BREAK_POSITION=”bp”,t.BROADCAST_TYPE=”btype”,t.BYPASS_CACHE=”bypassCache”,t.CACHE_BUSTER=”cb”,t.CAMPAIGN=”campaign”,t.CATEGORY_ID=”catid”,t.CATEGORY_NAME=”cat”,t.CHANNEL_ID=”chanid”,t.CHANNEL_NAME=”chan”,t.CHANNEL_TYPE=”chantype”,t.COMMERCIAL_ID=”commid”,t.CONTENT_LABELS=”content_labels”,t.CUSTOMER_ID=”cid”,t.DECLINED_FORMATS=”dfmts”,t.DEVICE_CATEGORY=”dcat”,t.DEVICE_ID=”did”,t.DEVICE_PLATFORM=”dplat”,t.DEVICE_TYPE=”dt”,t.DO_NOT_TRACK=”dnt”,t.DURATION=”dur”,t.ENVIRONMENT_ID=”env”,t.FORCE_RENDER=”isForcedRender”,t.GDPR_CONSENT=”gdprc”,t.GDPR_ENABLED=”gdpre”,t.GDPRL=”gdprl”,t.GEOCODE=”geoc”,t.IP=”ip”,t.IS_MATURE=”mat”,t.KEY_VALUES=”pj”,t.MAFS_DECISION=”mafs”,t.MAX_SEQUENCE=”mseq”,t.OS=”os”,t.PAGE_LOAD_ID=”pid”,t.PLATFORM=”plat”,t.PREVIEW_CREATIVE_ID=”pcid”,t.PREVIEW_SIZE=”psize”,t.PREVIEW_SLOT=”pslot”,t.PRODUCER_ID=”pdid”,t.PRODUCER_NAME=”pdcn”,t.PUBLISHER_EXTENDED_ID=”pext_id”,t.PUBLISHER_EXTENDED_SOURCE=”pext_id_source”,t.PUBLISHER_ID=”pbid”,t.PUBLISHER_NAME=”pbn”,t.RADS_TOKEN=”rtok”,t.RATING=”rating”,t.RAW_PAGE_REFERRER=”pr”,t.RETURN_TYPE=”rt”,t.SDK_VERSION=”sdkv”,t.SEQUENCE_NUMBER=”sdaseq”,t.SLOTS=”slots”,t.TAGS=”tags”,t.TWITCH_CORRELATOR=”tcor”,t.URL=”u”,t.USER_AGENT=”uagent”,t.USER_ID=”uid”,t.USER_LANGUAGE=”ulang”,t.VOD_TYPE=”vtype”,t.WINDOW_SIZE=”ws”}(r||(r={}))},332884:function(t,e,i){i.d(e,{Fn:function(){return d},Jp:function(){return c},Tm:function(){return p},UK:function(){return l},V4:function(){return u},x4:function(){return f},zB:function(){return s}});var r=i(894597),n=i(528461),a=i(697621),o=i(62026);function s(t){return t===o.Z$.SQUEEZEBACK?{slotId:a.iN.stream.squeezeback,size:a.ot.stream.squeezeback}:{slotId:a.iN.stream.lowerthird,size:a.ot.stream.lowerthird}}function d(t,e,i){return t===o.Z$.LOWER_THIRD?”LOWER_THIRD”:t===o.Z$.SQUEEZEBACK&&600===e&&160===i?”SKYSCRAPER”:t===o.Z$.SQUEEZEBACK&&(1050===e&&300===i||1050===e&&276===i)?”MIRROR-C”:null}function u(t,e,i){return{adFormat:t.adFormat,adSessionId:t.sessionID,stitched:!1,status:”ready”,duration:t.duration,adPosition:0,numberOfAds:1,roll:t.roll,start:0,isVLM:!!t.isVLM,trackingParams:i,bid:e}}var c=function(t){return t.type===n.q.XML};function h(t){var e;try{return null!==(e=Array.from(t.getElementsByTagName(“Extension”)).find((function(t){return”playAdConfig”===t.getAttribute(“type”)})))&&void 0!==e?e:null}catch(t){return null}}function l(t){return null!==h(t)}function p(t){var e,i,r=h(t);if(!r)return null;var n=r.getElementsByTagName(“AdParameters”)[0];return(null!==(i=null===(e=null==n?void 0:n.textContent)||void 0===e?void 0:e.trim())&&void 0!==i?i:null)||null}function f(t){try{var e=new r.f,i=t.getElementsByTagName(“Duration”)[0];if(!i)return null;var n=e.parseNodeText(i),a=e.parseDuration(n);return a>0?a:null}catch(t){return null}}},603191:function(t,e,i){i.d(e,{L9:function(){return _},ff:function(){return v}});var r=i(331635),n=i(859406),a=i(306730),o=i(673850),s=i(202897),d=i(59889),u=i(62026),c=i(212276),h=i(366824),l=i(249448),p=”csai”,f=”publisher_ext_ids”;function _(t,e){var i,d,c,_,I,A,D,w,R,S=window.navigator.userAgent,T=v(e.adFormat),y=e.adFormat===u.Z$.OUTSTREAM_HOME_PAGE_VIDEO,O=e.adFormat===u.Z$.OUTSTREAM_BROWSE_PAGE_VIDEO;if(t.withURL(window.location.href).withDuration(e.duration).withGeocode((0,a.If)()||”US”).withGDPRL({status:”no-cmp”}).withCurrentWindowSize().withBreakPosition(e.roll).withRawPageReferrer(e.tagParams.embedUrl||””).withPublisherID(“twitch”),(0,o.e5)()&&t.withGDPRL({status:”cmp”}),e.mafsDecision&&(t=t.withMAFSDecision(e.mafsDecision).withCategoryId((null===(i=e.game)||void 0===i?void 0:i.id)||””).withCategoryName((null===(d=e.game)||void 0===d?void 0:d.name)||””).withChannelName((null===(c=e.broadcaster)||void 0===c?void 0:c.login)||””).withChannelId((null===(_=e.broadcaster)||void 0===_?void 0:_.id)||””).withChannelType(g(e.broadcaster)).withIsMature(!!(null===(A=null===(I=e.broadcaster)||void 0===I?void 0:I.broadcastSettings)||void 0===A?void 0:A.isMature)).withPlatform(“web”).withRadsToken(e.radsToken||””).withTags(E(e)).withTwitchCorrelator(e.twitchCorrelator).withUserId((null===(D=e.currentUser)||void 0===D?void 0:D.id)||””).withCustomerID((null===(w=e.currentUser)||void 0===w?void 0:w.id)||””).withCommercialId(e.commercialID||””).withVodType((0,l.DG)(e.content)?”live”:””).withBroadcastType((null===(R=e.video)||void 0===R?void 0:R.broadcastType)||””).withAdvertisingID(n.x2.session.deviceID).withDeviceID(n.x2.session.deviceID).withAdSessionId(e.sessionID).withDeviceType((0,h.h)(S)).withContentLabels(m(e.video)),e.previewCreativeId&&e.previewCreativeSlot&&(t=(t=t.withPreviewOnSlot(e.previewCreativeId||””,e.previewCreativeSlot||””)).withGeocode(e.previewCountryCode||”US”))),y&&(t=t.withAdFormat(u.Z$[u.Z$.OUTSTREAM_HOME_PAGE_VIDEO]).withCommercialId(e.commercialID||””).withPlatform(“web”).withRadsToken(e.radsToken||””).withTwitchCorrelator(e.twitchCorrelator).withAdvertisingID(n.x2.session.deviceID).withDeviceID(n.x2.session.deviceID).withAdSessionId(e.sessionID).withVodType(“live”).withDeviceType((0,h.h)(S)).withUserId(e.userId||””).withContentLabels(e.contentLabels).withBlockedAdvertisers(e.blockedAdvertisers).withBlockedCategories(e.blockedCategories)),O&&(t=t.withTags(e.targetingTag).withAdFormat(u.Z$[u.Z$.OUTSTREAM_BROWSE_PAGE_VIDEO]).withCommercialId(e.commercialID||””).withPlatform(“web”).withRadsToken(e.radsToken||””).withTwitchCorrelator(e.twitchCorrelator).withAdvertisingID(n.x2.session.deviceID).withDeviceID(n.x2.session.deviceID).withAdSessionId(e.sessionID).withVodType(“live”).withDeviceType((0,h.h)(S)).withCategoryName(e.game).withUserId(e.userId||””)),T&&(t=t.withTags(e.targetingTag).withAdFormat(e.adFormat.toString()).withCommercialId(e.commercialID||””).withPlatform(“web”).withRadsToken(e.radsToken||””).withTwitchCorrelator(e.twitchCorrelator).withAdvertisingID(n.x2.session.deviceID).withDeviceID(n.x2.session.deviceID).withAdSessionId(e.sessionID).withDeviceType((0,h.h)(S)).withCategoryName(e.game).withUserId(e.userId||””)),n.x2.experiments.__hardcodedStaleExperiment(f,”treatment”)===s.eY.Treatment&&!T){var C=(0,h.h)(S);t=3===C&&null===e.currentUser?t.withDeviceType(C).withPublisherExtendedID(n.x2.session.deviceID).withPublisherExtendedSource(“twitch”):t.withDeviceType(C)}var P=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},e.tagParams),{delivery_type:p,vb:null,adunit:”web_”.concat(p)}),!(T||y||O)&&e&&{loggedin:!!e.currentUser,v:e.video&&e.video.broadcastType||void 0,vod_type:(0,l.DG)(e.content)?”live”:void 0,embed_url:e.tagParams.embedUrl||null,game_id:e.game&&e.game.id,user_lang:n.x2.intl.getLanguageCode()||””}),T&&e&&{game:e.game});return Object.keys(P).forEach((function(e){t=t.withKeyValuePair(e,P[e])})),t}var E=function(t){var e=t.broadcaster,i=t.video,n=t.content,a=[];return n.type!==c.FC.Live&&i&&i.contentTags&&(a=(0,r.__spreadArray)((0,r.__spreadArray)([],a,!0),i.contentTags,!0)),n.type!==c.FC.Live&&i&&i.game&&i.game.tags&&(a=(0,r.__spreadArray)((0,r.__spreadArray)([],a,!0),i.game.tags,!0)),n.type===c.FC.Live&&e&&e.stream&&e.stream.tags&&(a=(0,r.__spreadArray)((0,r.__spreadArray)([],a,!0),e.stream.tags,!0)),n.type===c.FC.Live&&e&&e.stream&&e.stream.game&&e.stream.game.tags&&(a=(0,r.__spreadArray)((0,r.__spreadArray)([],a,!0),e.stream.game.tags,!0)),a.map((function(t){return(0,d.mV)(t.tagName.toLowerCase())})).join(“|”)},m=function(t){var e;return(null===(e=null==t?void 0:t.contentClassificationLabels)||void 0===e?void 0:e.filter((function(t){return t.isEnabled})).map((function(t){return t.id})).join(“|”))||””},g=function(t){var e,i;return(null===(e=null==t?void 0:t.roles)||void 0===e?void 0:e.isPartner)?”partner”:(null===(i=null==t?void 0:t.roles)||void 0===i?void 0:i.isAffiliate)?”affiliate”:”basic”},v=function(t){return t===u.A3.HEADLINER||t===u.A3.DIRECTORY_BANNER||t===u.A3.DIRECTORY_RECTANGLE}},202897:function(t,e,i){i.d(e,{eY:function(){return r},SD:function(){return h}});var r,n=i(882439),a=i(859406),o=function(){function t(){this.keyValuePairs={},this.logger=a.x2.logger.withCategory(“AdSlotRequestBuilder”)}return t.prototype.withId=function(t){return this.id=t,this},t.prototype.withSize=function(t){return this.size=t,this},t.prototype.withMediaType=function(t){return this.mediaType=t,this},t.prototype.withAdUnit=function(t){return this.adUnit=t,this},t.prototype.withKeyValuePair=function(t,e){return this.keyValuePairs[t]=””.concat(e),this},t.prototype.build=function(){if(this.validateRequiredField(“id”,this.id),this.validateRequiredField(“size”,this.size),this.validateRequiredField(“mediaType”,this.mediaType),this.adUnit&&this.keyValuePairs.adUnit&&this.adUnit!==this.keyValuePairs.adUnit)throw new Error(“Conflict between adUnit input [“.concat(this.adUnit,”] and keyValuePair [“).concat(this.keyValuePairs.adUnit,”]. Please only set one of them”));return this.logger.debug(“Parameters passed validation”),this.adUnit&&this.withKeyValuePair(“adUnit”,this.adUnit),{id:this.id,mt:this.mediaType,kv:this.keyValuePairs,s:this.size}},t.prototype.validateRequiredField=function(t,e){if(null==e)throw new Error(“Missing required field: “.concat(t))},t}(),s=i(558148),d=i(760674),u=i(603191),c=”to_the_edge”;function h(t){var e=t.request,i=t.sdkVersion,h=n.parse(window.location.search).testAdToken;if(h)return”https://edge.ads.twitch.tv/2018-01-01/ads?testAdToken=”.concat(encodeURIComponent(h.toString()));var l=(new o).withId(“twitch-player-ui”).withSize(“640×480”).withMediaType(“v”).build(),p=(new s.C).withV6SSdkVersion(i).withSlot(l).withReturnType(“vast3″);return a.x2.experiments.__hardcodedStaleExperiment(c,”treatment”)===r.Treatment&&(p=p.withAdvertisingID(a.x2.session.deviceID).withDomain(d.VS),e.currentUser&&(p=p.withCustomerID(e.currentUser.id))),(p=(0,u.L9)(p,e)).buildAdTagURL()}!function(t){t.Control=”control”,t.Treatment=”treatment”}(r||(r={}))},727925:function(t,e,i){i.d(e,{Ny:function(){return a},c0:function(){return n},df:function(){return o}});var r=i(859406);function n(){return(0,r.hw)(“Stream Display Ad”,”StreamDisplayAd”)}function a(t){return 160===t.width&&600===t.height}function o(t,e){var i=r.Zn.get(“skyscraper_kill_switch”,!1);return 160===t&&600===e&&i}},59889:function(t,e,i){i.d(e,{Ix:function(){return d},SG:function(){return c},mV:function(){return s},qA:function(){return h},vK:function(){return u}});var r=i(859406),n=i(148223),a=i(875235),o=i(62026);function s(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,”_”)}function d(t){return”string”==typeof t&&-1!==Object.values(o.gz).indexOf(t)}function u(t){return”string”!=typeof t&&t in o.Z$}function c(){return(0,n.yr)(32)}function h(t,e){void 0===e&&(e=void 0),r.x2.flags.getAssignment(“ads_sprig_trigger”,”boolean”,!1,{event_name:t})||(0,a.d$)(t,e)}},62026:function(t,e,i){var r,n,a;i.d(e,{A3:function(){return a},V2:function(){return d},Z$:function(){return r},Zj:function(){return o},gz:function(){return n},sW:function(){return u},uN:function(){return s}}),function(t){t[t.STANDARD_VIDEO=0]=”STANDARD_VIDEO”,t[t.STANDARD_AUDIO=2]=”STANDARD_AUDIO”,t[t.SQUEEZEBACK=3]=”SQUEEZEBACK”,t[t.LOWER_THIRD=4]=”LOWER_THIRD”,t[t.OUTSTREAM_VERTICAL_VIDEO=5]=”OUTSTREAM_VERTICAL_VIDEO”,t[t.OUTSTREAM_MIRROR_PBYP_VIDEO=6]=”OUTSTREAM_MIRROR_PBYP_VIDEO”,t[t.OUTSTREAM_HOME_PAGE_VIDEO=7]=”OUTSTREAM_HOME_PAGE_VIDEO”,t[t.OUTSTREAM_BROWSE_PAGE_VIDEO=8]=”OUTSTREAM_BROWSE_PAGE_VIDEO”,t[t.OUTSTREAM_VERTICAL_VIDEO_PLAYABLE=9]=”OUTSTREAM_VERTICAL_VIDEO_PLAYABLE”}(r||(r={})),function(t){t.STANDARD_VIDEO=”ClientSideStandardVideo”,t.BROWSE_DISPLAY=”BDA”}(n||(n={})),function(t){t.HEADLINER=”HEADLINER”,t.DIRECTORY_BANNER=”DIRECTORY_BANNER”,t.DIRECTORY_RECTANGLE=”DIRECTORY_RECTANGLE”}(a||(a={}));var o=function(t){var e;return((e={})[r.LOWER_THIRD]={},e)[t]||null},s=function(t){switch(t){case r.LOWER_THIRD:return”LOWER_THIRD”;case r.SQUEEZEBACK:return”SQUEEZEBACK”;case r.OUTSTREAM_VERTICAL_VIDEO:return”OUTSTREAM_VERTICAL_VIDEO”;case r.OUTSTREAM_MIRROR_PBYP_VIDEO:return”OUTSTREAM_MIRROR_PBYP_VIDEO”;case r.OUTSTREAM_HOME_PAGE_VIDEO:return”OUTSTREAM_HOME_PAGE_VIDEO”;case r.OUTSTREAM_BROWSE_PAGE_VIDEO:return”OUTSTREAM_BROWSE_PAGE_VIDEO”;case r.OUTSTREAM_VERTICAL_VIDEO_PLAYABLE:return”OUTSTREAM_VERTICAL_VIDEO_PLAYABLE”;case r.STANDARD_AUDIO:return”STANDARD_AUDIO”;default:return”STANDARD_VIDEO”}},d=function(t){switch(t){case”LOWER_THIRD”:return r.LOWER_THIRD;case”SQUEEZEBACK”:return r.SQUEEZEBACK;case”OUTSTREAM_VERTICAL_VIDEO”:return r.OUTSTREAM_VERTICAL_VIDEO;case”OUTSTREAM_MIRROR_PBYP_VIDEO”:return r.OUTSTREAM_MIRROR_PBYP_VIDEO;case”OUTSTREAM_HOME_PAGE_VIDEO”:return r.OUTSTREAM_HOME_PAGE_VIDEO;case”OUTSTREAM_BROWSE_PAGE_VIDEO”:return r.OUTSTREAM_BROWSE_PAGE_VIDEO;case”OUTSTREAM_VERTICAL_VIDEO_PLAYABLE”:return r.OUTSTREAM_VERTICAL_VIDEO_PLAYABLE;case”STANDARD_AUDIO”:return r.STANDARD_AUDIO;default:return r.STANDARD_VIDEO}},u=function(t){switch(t){case”twitch-outstream-vertical-video”:return r.OUTSTREAM_VERTICAL_VIDEO;case”twitch-outstream-above-chat”:return r.OUTSTREAM_MIRROR_PBYP_VIDEO;case”twitch-outstream-homepage”:return r.OUTSTREAM_HOME_PAGE_VIDEO;case”twitch-outstream-browse”:return r.OUTSTREAM_BROWSE_PAGE_VIDEO;default:return r.STANDARD_VIDEO}}},110657:function(t,e,i){var r,n;i.d(e,{df:function(){return r},em:function(){return s},iG:function(){return u},jA:function(){return d},ne:function(){return a},sC:function(){return n},tV:function(){return o}}),function(t){t.Pre=”preroll”,t.Mid=”midroll”,t.Post=”postroll”}(r||(r={})),function(t){t.Pending=”pending”,t.Processed=”processed”,t.Transferred=”transferred”,t.Preparing=”preparing”,t.Filled=”filled”}(n||(n={}));var a=”CgQSAggE”,o=”CgQSAggD”,s=”CgQSAggF”,d=”CgQSAggG”,u=”CgISAA==”},366824:function(t,e,i){i.d(e,{h:function(){return o},n:function(){return s}});var r=i(859406),n=i(876531),a=i(368600);function o(t){var e=(0,a.m)(t);return e.platform.isDesktop()?2:e.platform.isTv()?3:e.platform.isMobile()?4:e.platform.isTablet()?5:4}function s(t){var e=(0,a.m)(t),i=r.x2.tracking.getPlatform();if(e.platform.isMobile()||e.platform.isTablet()){if(e.os.isAndroid())return{deviceMake:”Android”,deviceOS:e.os.name(),deviceType:n.S7w.IAB_DEVICE_TYPE_MOBILE_TABLET_GENERAL,platform:i};if(e.os.isIOS())return{deviceMake:”Apple”,deviceOS:e.os.name(),deviceType:n.S7w.IAB_DEVICE_TYPE_MOBILE_TABLET_GENERAL,platform:i}}else{if(e.platform.isDesktop())return{deviceMake:””,deviceOS:””,deviceType:n.S7w.IAB_DEVICE_TYPE_PERSONAL_COMPUTER,platform:i};if(e.platform.isTv())return{deviceMake:””,deviceOS:”tvos”,deviceType:n.S7w.IAB_DEVICE_TYPE_CONNECTED_TV,platform:i}}return{deviceMake:””,deviceOS:””,deviceType:n.S7w.IAB_DEVICE_TYPE_PERSONAL_COMPUTER,platform:i}}},249448:function(t,e,i){i.d(e,{pk:function(){return L},hd:function(){return I},gm:function(){return b},Qc:function(){return P},Eq:function(){return S},tK:function(){return C},jz:function(){return O},dB:function(){return y},N1:function(){return m},J8:function(){return g},jp:function(){return D},b3:function(){return R},NM:function(){return w},lI:function(){return A},eT:function(){return V},L$:function(){return U},xq:function(){return N},hq:function(){return T},Jn:function(){return f},P3:function(){return p},lp:function(){return l},rX:function(){return h},MV:function(){return c},JN:function(){return _},If:function(){return v},DG:function(){return d},wy:function(){return u}});var r=i(331635),n=i(882439),a=i(166012),o=i(212276),s=i(702190);function d(t){return t.type===o.FC.Live}function u(t){return t.type===o.FC.VOD}function c(t){return u(t)&&l(t)}function h(t){return d(t)&&l(t)}function l(t){switch(t.type){case o.FC.Live:return!!t.dvrVideoID;case o.FC.VOD:return!!t.isDVR;default:return!1}}function p(t){return t.type===o.FC.Collection}function f(t){return t.type===o.FC.Clip}function _(t){return!!(u(t)||p(t)||f(t))&&!!t.editing}function E(t){if(u(t)||p(t)||f(t))return t.editing}function m(t){var e=E(t);return e&&e.segments}function g(t){var e=E(t);return!!(null==e?void 0:e.isPostEdit)}function v(t){return t.type===o.FC.Invalid}function I(t){if(d(t)||u(t)||p(t)||f(t))return t.channelLogin}function A(t){if(d(t))return t.multiview}function D(t){if(d(t))return t.channelLogin}function w(t){if(d(t)&&t.multiview)return t.multiview.parentChannelLogin}function R(t){if(d(t)&&t.multiview)return t.multiview.parentChannelID}function S(t){if(p(t))return t.collectionID}function T(t){return u(t)||p(t)?t.vodID:null}function y(t){var e;switch(t.type){case o.FC.Live:return null!==(e=t.dvrVideoID)&&void 0!==e?e:null;case o.FC.VOD:return t.isDVR?t.vodID:null;default:return null}}function O(t,e){var i=t&&y(t);return i&&t.type===o.FC.Live&&l(t)?(0,r.__assign)((0,r.__assign)({},t),{type:o.FC.VOD,isDVR:!0,videoOffset:e,vodID:i}):null}function C(t){var e=t&&I(t);return e&&t.type===o.FC.VOD&&l(t)?(0,r.__assign)((0,r.__assign)({},t),{type:o.FC.Live,channelLogin:e,dvrVideoID:t.vodID}):null}function P(t){return f(t)?t.clipSlug:null}function b(t){return f(t)?t.clipLocation:null}function N(t){if(f(t)||u(t)||p(t))return t.videoOffset}function V(t){return d(t)&&t.squad?t.squad.streamID:null}var L=function(t){return f(t)||u(t)||p(t)};function U(t,e,i){switch(t.type){case o.FC.Live:var d=(0,a.VV)(“/”.concat(t.channelLogin));return e?””.concat(d,”?”).concat(n.stringify(e)):d;case o.FC.VOD:return u=t.vodID,c=i&&i.getPosition(),h=e,l=void 0!==c?(0,s.W)(Math.floor(c)):void 0,(p=n.stringify((0,r.__assign)({t:l},h)))?(0,a.VV)(“/videos/”.concat(u,”?”).concat(p)):(0,a.VV)(“/videos/”.concat(u));case o.FC.Clip:return function(t,e){var i=n.stringify((0,r.__assign)({},e));return i?(0,a.VV)(“/”.concat(t,”?”).concat(i),”clips”):(0,a.VV)(“/”.concat(t),”clips”)}(t.clipSlug,e);default:return”https://www.twitch.tv”}var u,c,h,l,p}}}]);