PageSourceSearch

https://nodeassets.nbcnews.com/_next/static/chunks/device-yv.de4da3ebc010dd82.js

js nbcnews.com collected 2026-09-24 09:06:45 UTC 7,806 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1495],{10449:(e,t,s)=>{s.d(t,{j:()=>r});function r(e){let t="hidden",s="visibilitychange",r="visibilityState";return void 0===e.hidden&&void 0!==e.webkitHidden&&(t="webkitHidden",s="webkitvisibilitychange",r="webkitVisibilityState"),{hiddenAttribute:t,visibilityChangeEvent:s,visibilityStateKey:r}}},32307:(e,t,s)=>{s.d(t,{p:()=>n});var r=s(94657),i=s(97571);class n{keyCodeMap={};preventDefault=new Set([-1]);keyUpObservable=new i.c;keyDownObservable=new i.c;constructor(e){e.onkeydown=e=>{this.handleKeyDown(e)},e.onkeyup=e=>{this.handleKeyUp(e)}}onKeyUp(e){this.keyUpObservable.registerObserver(e,this)}onKeyDown(e){this.keyDownObservable.registerObserver(e,this)}removeKeyUpListener(e){this.keyUpObservable.unregisterObserver(e)}removeKeyDownListener(e){this.keyDownObservable.unregisterObserver(e)}removeAllKeyUpListeners(){this.keyUpObservable.unregisterObservers(this)}removeAllKeyDownListeners(){this.keyDownObservable.unregisterObservers(this)}removeAllListeners(){this.keyUpObservable.unregisterObservers(this),this.keyDownObservable.unregisterObservers(this)}handleKeyDown(e){this.handleKeyEvent(this.keyDownObservable,e)}handleKeyUp(e){this.handleKeyEvent(this.keyUpObservable,e)}handleKeyEvent(e,t){this.preventDefault.has(t.keyCode)&&t.preventDefault&&t.preventDefault();let s=(0,r.t)(this.keyCodeMap,t.keyCode),[i,n,...o]=s,l={key:i,keyCode:t.keyCode};s.length>1&&(l.secondaryKey=n,l.otherKeys=[n,...o]),e.notifyObservers(l)}}},37831:(e,t,s)=>{s.d(t,{P:()=>i,v:()=>o});var r,i,n=s(97571);(r=i||(i={})).Fullscreen="fullscreen",r.Resume="resume",r.Suspend="suspend";class o{observables={};on(e,t){(this.observables[e]||=new n.c).registerObserver(t,this)}off(e,t){let s=this.observables[e];s&&s.unregisterObserver(t)}notify(e,t){let s=this.observables[e];s&&s.notifyObservers(t)}isAppBackgrounded(){return!1}onResuming(e){this.on("resume",e)}unregisterResuming(e){this.off("resume",e)}onSuspending(e){this.on("suspend",e)}unregisterSuspending(e){this.off("suspend",e)}onFullscreenChanged(e){this.on("fullscreen",e)}unregisterFullscreenChanged(e){this.off("fullscreen",e)}}},47947:(e,t,s)=>{s.d(t,{P:()=>n});var r=s(37831),i=s(10449);class n extends r.v{context;hiddenAttribute;constructor(e){super(),this.context=e;const t=e.document,{hiddenAttribute:s,visibilityChangeEvent:r}=(0,i.j)(t);this.hiddenAttribute=s,t.addEventListener(r,()=>{t[this.hiddenAttribute]?this.notify("suspend"):this.notify("resume")}),t.addEventListener("fullscreenchange",()=>{this.notify("fullscreen",t.fullscreen||!!t.fullscreenElement)})}isAppBackgrounded(){return this.context.document[this.hiddenAttribute]}}},71653:(e,t,s)=>{s.d(t,{v:()=>i});var r=s(77995);class i{storage;setSecureItem=this.setItem;getSecureItem=this.getItem;removeSecureItem=this.removeItem;getAllSecureKeys=this.getAllKeys;constructor(e){this.storage=e.localStorage}setItem(e,t){return null===t?(this.storage.removeItem(e),Promise.resolve()):(0,r.j)(()=>this.storage.setItem(e,t))}getItem(e){return(0,r.j)(()=>this.storage.getItem(e))}removeItem(e){return(0,r.j)(()=>this.storage.removeItem(e))}clear(){return(0,r.j)(()=>this.storage.clear())}getAllKeys(){return(0,r.j)(()=>Object.keys(this.storage))}}},75893:(e,t,s)=>{s.d(t,{YouViewDeviceFactory:()=>p});var r=s(63438),i=s(71653),n=s(82763),o=s(47947),l=s(13383),u=s(9778),a=s(98224);class h{version;constructor(e){this.version=this.parse(e)}valueOf(){return this.version}isGreaterOrEqualTo(e){let[t,s,r]=this.version,[i,n,o]=e;return!!(t>i)||t===i&&!!(s>n)||t===i&&s===n&&!!(r>=o)}parse(e){let t=e.split("CDS/")[1]?.split(";")[0];return t?t.split(".").map(e=>parseInt(e,10)):[0,0,0]}}class d{userAgent;constructor(e){this.userAgent=e}hasLowerEndSpecs(){return!1}requiresLicensingSigning(){return!1}hasThumbnailScrubbingSupport(){return!0}hasExtendedDvrSupport(){return!0}prefersHttp(){return!!this.userAgent.includes("Huawei")||!!this.userAgent.includes("Humax")&&!new h(this.userAgent).isGreaterOrEqualTo([32,138,10])}getHardwareCapabilities(){return Promise.resolve({audioFormats:[l.S.Stereo],colourSpaces:[a.K1.SDR],videoFormat:a.T4.HD})}getPlayoutCapabilities(){return{default:u.h5,[a.T4.UHD]:u.Bd}}}var c=s(83627);class v{window;browserName="YouViewHTML";deviceBrand="YouView";deviceType="Settop";operatingSystemName="YouView";userFriendlyName="YouView";browserVersion="";deviceManufacturer="";deviceModel="";deviceFullModel="";deviceVersion="";frameworkName="";frameworkVersion="";operatingSystemVersion="";containerVersion="";uniqueDeviceId="";constructor(e){this.window=e}initialise(){return this.parseDeviceInfoFromUserAgent(),this.containerVersion=(0,c.Q)(this.window.location.href),this.getYouVie
1wDeviceId().then(e=>{this.uniqueDeviceId=e})}getYouViewDeviceId(){return new Promise((e,t)=>{this.window.youview?.device?.getContentPublisherToken&&this.window.youview.localstorage?.cp?.getContentPublisherToken?this.window.youview.device.getContentPublisherToken().then(t=>{setTimeout(()=>e(t),0)}):t(Error("YouView ContentPublisherToken API does not exist"))})}parseDeviceInfoFromUserAgent(){let e=this.window.navigator.userAgent.split(/\s*[;)(]\s*/);e.length>4&&(this.browserVersion=e[0],this.deviceManufacturer=e[1],this.deviceModel=this.deviceFullModel=e[2],this.deviceVersion=e[3],this.operatingSystemVersion=e[4])}}var w=s(32307),T=s(94657);let E={[T.w.UP]:[38],[T.w.DOWN]:[40],[T.w.LEFT]:[37],[T.w.RIGHT]:[39],[T.w.ENTER]:[13],[T.w.BACK]:[8,27],[T.w.FF]:[417],[T.w.RW]:[412],[T.w.SKIP_NEXT]:[425],[T.w.SKIP_PREV]:[424],[T.w.SEARCH]:[170],[T.w.HELP]:[156],[T.w.DELETE]:[460],[T.w.PLAY]:[415],[T.w.PAUSE]:[19],[T.w.PLAY_PAUSE]:[402],[T.w.STOP]:[413],[T.w.RED]:[403],[T.w.GREEN]:[404],[T.w.YELLOW]:[405],[T.w.BLUE]:[406],[T.w.INFO]:[457],[T.w.SUBTITLES]:[460],[T.w.AD]:[57347],[T.w.SHORTCUT_9]:[403]},b=new Set([27,37,38,39,40,13,8]);class g extends w.p{keyCodeMap=E;preventDefault=b}class p{config;constructor(e={}){this.config=e}initialise(){let e=new i.v(self),t=new v(self),s=new g(self),l=new o.P(self),u=new d(self.navigator.userAgent),a=new n.v(self,!0,this.config.deeplinkCheckPattern);return t.initialise().then(()=>({type:r.b.YouView,input:s,deviceInfo:t,storage:e,lifecycle:l,capabilities:u,deeplink:a}))}}},77995:(e,t,s)=>{s.d(t,{j:()=>r});function r(e){return new Promise(t=>t(e()))}},82763:(e,t,s)=>{s.d(t,{h:()=>o,v:()=>n});var r=s(54013),i=s(89759);class n{data="";constructor(e=self,t=!0,s=i.b){t&&(this.data=o(e.location.href,s))}onDeeplink(e){}}let o=(e,t=i.b)=>{if(e)try{let s=decodeURIComponent(e.replace(/\+/g,"%20")),r=t.exec(s);if(r&&r.length>0)return r[1]}catch(t){r.k.error("Unable to decode deeplink",e,t)}return""}},83627:(e,t,s)=>{let r;function i(e){let t;return r||=(t=/container(?:_v|V)ersion=([^&#]+)/.exec(decodeURI(e)))?t[1]:""}s.d(t,{Q:()=>i})},89759:(e,t,s)=>{s.d(t,{b:()=>r,p:()=>i});let r=/deeplinkData=([^&]+)/,i=/([^&]+)/},94657:(e,t,s)=>{s.d(t,{t:()=>i,w:()=>r});let r={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",AD:"AD",BACK:"BACK",BLUE:"BLUE",CHANNEL_DOWN:"CHANNEL_DOWN",CHANNEL_PREV:"CHANNEL_PREV",CHANNEL_UP:"CHANNEL_UP",DELETE:"DELETE",DOWN:"DOWN",ENTER:"ENTER",EXIT:"EXIT",FF:"FF",GREEN:"GREEN",HELP:"HELP",INFO:"INFO",INSTANT_REPLAY:"INSTANT_REPLAY",L3:"L3",LEFT:"LEFT",PAUSE:"PAUSE",PLAY:"PLAY",PLAY_PAUSE:"PLAY_PAUSE",RED:"RED",RIGHT:"RIGHT",RW:"RW",SEARCH:"SEARCH",SHORTCUT_1:"SHORTCUT_1",SHORTCUT_2:"SHORTCUT_2",SHORTCUT_3:"SHORTCUT_3",SHORTCUT_4:"SHORTCUT_4",SHORTCUT_5:"SHORTCUT_5",SHORTCUT_6:"SHORTCUT_6",SHORTCUT_7:"SHORTCUT_7",SHORTCUT_8:"SHORTCUT_8",SHORTCUT_9:"SHORTCUT_9",SKIP_NEXT:"SKIP_NEXT",SKIP_PREV:"SKIP_PREV",START:"START",STOP:"STOP",SUBTITLES:"SUBTITLES",UNKNOWN:"UNKNOWN",UP:"UP",Y:"Y",YELLOW:"YELLOW"};function i(e,t){let s=[];for(let r in e)-1!==e[r].indexOf(t)&&s.push(r);return 0===s.length&&s.push(r.UNKNOWN),s}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.