1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4506,5935,11785,16411,22261,26887,28316,34166,44642,49268,56547,67023,71649,82125,89404,94030,98862],{3780:(e,t,r)=>{r.d(t,{a:()=>d,b:()=>c});var i=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,l=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,d=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},c=(e,t,r)=>(r=null!=e?i(l(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of n(t))o.call(e,i)||void 0===i||s(e,i,{get:()=>t[i],enumerable:!(r=a(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e))},12934:(e,t,r)=>{let i,s,a;r.d(t,{zu:()=>u});var n=r(70266),l=r(16706),o=r(66959),d=(0,r(3780).b)((0,o.a)(),1),c=class{constructor(e,t){if(this._video=null,this._playlist=null,this.embedData=e,this.settings=t,this.embedId=e.id,this.isSingleVideo){let e=this.getSingleVideo();this._video=l.a.isViewable(e)?new l.a(e):null}else this._playlist=new n.a(e.media)}getSingleVideo(){return this.isPlaylist||this.isRelatedPlaylist?(this.embedData?.media?.videos||[])[0]??this.embedData.media:this.embedData.media}get video(){return this._video}get playlist(){return this._playlist}set playlist(e){this._playlist=e}get isPlaylist(){return"playlist"===(0,d.default)(this.embedData,"media_type",!1)}get isRelatedPlaylist(){return(0,d.default)(this.embedData,"related",!1)}get isDynamicPlaylist(){return this.isPlaylist&&1===this.playlistType}get playlistType(){return this.isPlaylist?(0,d.default)(this.embedData,"media.type"):null}get videoId(){return(0,d.default)(this.embedData,"media.id","")}get embedAspectRatio(){return(0,d.default)(this.embedData,"aspect_ratio",void 0)}get role(){return(0,d.default)(this.embedData,"role")}get source(){return(0,d.default)(this.embedData,"media.source")}get isSingleVideo(){return"video"===(0,d.default)(this.embedData,"media_type",!1)&&!this.isRelatedPlaylist||!!this.settings.isSingleVideoEmbed}get baseAdTag(){return(0,d.default)(this.embedData,"site.video_ads.videoConfig.adTag")||(0,d.default)(this.embedData,"site.ad_tag","")}get videoAdConfig(){return(0,d.default)(this.embedData,"site.video_ads")}get videoConfigAdTag(){return(0,d.default)(this.embedData,"site.video_ads.videoConfig.adTag")??null}get embedAdDisabled(){return this.embedData.ads_disabled}get videoAdsDisabled(){return(0,d.default)(this.embedData,"media.ads_disabled",!1)}get isVideoHub(){return"hub"===this.settings.source.assetType}get autoplay(){return(0,d.default)(this.embedData,"autoplay")}get muted(){return(0,d.default)(this.embedData,"mute")}};r(59105);var u=((i=u||{}).Video="video",i.Playlist="playlist",i.Generic="generic",i),h=((s=h||{})[s.SLIDE=1]="SLIDE",s[s.SOCIAL=2]="SOCIAL",s[s.LEDE=3]="LEDE",s[s.BODY_MEDIA=4]="BODY_MEDIA",s[s.MARQUEE=5]="MARQUEE",s[s.SPONSORED_MARQUEE=6]="SPONSORED_MARQUEE",s[s.PREVIEW=7]="PREVIEW",s[s.ASSOCIATED_IMAGE=8]="ASSOCIATED_IMAGE",s[s.ASSOCIATED_VIDEO=9]="ASSOCIATED_VIDEO",s[s.CUSTOM_PREVIEW_IMAGE=10]="CUSTOM_PREVIEW_IMAGE",s[s.CONTENT_TESTING=11]="CONTENT_TESTING",s[s.INDEX=12]="INDEX",s[s.SECTION_VIDEO=13]="SECTION_VIDEO",s[s.VIDEO_HUB=14]="VIDEO_HUB",s[s.MEDIA_ROLE_PINTEREST=16]="MEDIA_ROLE_PINTEREST",s[s.OFF_PLATFORM=16]="OFF_PLATFORM",s[s.CUSTOM_PROMO=17]="CUSTOM_PROMO",s[s.FEED=18]="FEED",s[s.GHOST_SLIDE=19]="GHOST_SLIDE",s[s.SPOTLIGHT_MARQUEE=20]="SPOTLIGHT_MARQUEE",s[s.EMBEDDED_CONTENT=21]="EMBEDDED_CONTENT",s),p=((a=p||{}).Video="video",a.Embed="embed",a.Playlist="playlist",a.Unknown="unknown",a),f=r(66288),{error:g}=console;async function m(e){return fetch(e).then(e=>e.json()).catch(e=>g(e))}r(14565);var y=class e{constructor(t){this.embed=null,this.video=null,this.playlist=null,e.setVersion(),this.settings=t,t.source?this.source=t.source:this.source={type:"fetch",id:t.embedId??"",assetType:t.nitehawkType??"embeds",...t.videoHubSettings?{videoHubSettings:t.videoHubSettings}:{}},this.assetType=this.source.assetType,this._url=t.url||e.globalUrl||function(e="feature"){return f.a[e]??"https://nitehawk.kubefeature.hearstapps.net"}(t.env||e.globalEnv)}get resolvedVideo(){return this.embed?.video?this.embed.video:this.video?this.video:null}get resolvedPlaylist(){return this.embed?.playlist?this.embed.playlist:this.playlist?this.playlist:null}get resolvedId(){return this.source.id}static setVersion(){"u">typeof window&&window.videoPlayerManager?.setVersion("Nitehawk",e.VERSION)}async fetchNitehawkData(){let e="";if("hub"===this.source.assetType&&"fetch"===this.source.type&&this.source.videoHubSettings){let{overrideType:t,overrideId:r}=this.source.videoHubSettings;e=`?${t}=${r}`}return m(`${this.url}/${this.assetType}/${this.resolvedId}${e}`)}setup(e){try{switch(this.assetType){case"hub":case"embeds":this.embed=new c(e,{...this.settings,source:this.source});break;case"videos":this.video=new l.a(e);break;case"playlists":this.playlist=new n.a(e)}}catch(t){let{error:e}=console;return e("Failed to setup Nitehawk",t),null}return this}static get globalUrl(){return e._globalUrl}static set globalUrl(t){e._globalUrl=t}get url(){return this._url}set url(e){this._url=e}static get globalEnv(){return e._globalEnv}static set globalEnv(t){e._globalEnv=t}};y._globalEnv="feature",y.VERSION="1.7.8"},14565:(e,t,r)=>{let i;r.d(t,{a:()=>s});var s=((i=s||{}).MP4="video/mp4",i.AVI="video/avi",i.OGG="video/ogg",i.M3U8="m3u8",i.WEBM="video/webm",i.MOV="video/quicktime",i.WMV="video/x-ms-wmv",i.MPEG="video/mpeg",i)},16706:(e,t,r)=>{r.d(t,{a:()=>d});var i=r(14565),s=r(66959),a=new Set(["apple_m3u8","original"]),n=/(\d+)p/i;function l(e){let t=n.exec(e.display_name)??n.exec(e.preset_name);return t?Number.parseInt(t[1],10):1/0}function o(e){return{src:e.full_url,type:d.getVideoType(e),displayName:e.display_name,presetName:e.preset_name}}var d=class{constructor(e){this.getFallbackSource=()=>{let[e]=this.videoMedia.transcodings.filter(e=>!a.has(e.mapped_preset_name)&&"H_265"!==e.codec).sort((e,t)=>
1l(e)-l(t));return e?o(e):void 0},this.videoMedia=e,this.title=e.title,this.shortTitle=e.short_title,this.description=e.description,this.duration=e.duration,this.poster=e.cropped_preview_image,this.source={title:e?.source?.title||""},this.sources=this.getSources(),this.fallbackSource=this.getFallbackSource(),this.id=e.id}get aspectRatio(){return this.videoMedia.nearest_aspect_ratio}getSources(){return this.videoMedia.transcodings.map(o)}static getVideoType(e){return"apple_m3u8"===e.mapped_preset_name?i.a.M3U8:i.a.MP4}static isViewable(e){return(0,s.c)(e)}}},30362:(e,t,r)=>{r.d(t,{Rg:()=>m,ZG:()=>i,hR:()=>s,vy:()=>a});let i=((p={})[p.default=0]="default",p[p.parser=1]="parser",p[p.traverse=3]="traverse",p[p.render=4]="render",p[p.DEFAULT=0]="DEFAULT",p[p.PARSER=1]="PARSER",p[p.TRAVERSE=3]="TRAVERSE",p[p.RENDER=4]="RENDER",p),s=((f={}).default="default",f.html="html",f.markdown="markdown",f.DEFAULT="default",f.HTML="html",f.MARKDOWN="markdown",f),a=((g={}).default="default",g.react="react",g.preact="preact",g.html="html",g.markdown="markdown",g.DEFAULT="default",g.REACT="react",g.PREACT="preact",g.HTML="html",g.MARKDOWN="markdown",g),n=Symbol("pluginOptions");function l(e){let t=e;for(;t&&t.default&&"object"==typeof t.default&&!Array.isArray(t.default);){if(Object.keys(t.default).some(e=>!isNaN(Number(e))))return t.default;t=t.default}return t&&t.default||t}function o(e,t,r){return void 0===r?`${e}:${t}`:`${e}:${t}:${r}`}function d(e,t,r,i){if(void 0!==e.id){let s,a=(...t)=>e(...t);return Object.defineProperty(a,"name",{value:e.name,configurable:!0}),(s=e.displayName)&&Object.defineProperty(a,"displayName",{value:s,configurable:!0}),a.key=t,a.id=globalThis.crypto?.randomUUID(),a.options=i,r?a.src=r:e.src&&(a.src=e.src),a}return e.key=t,e.id=globalThis.crypto?.randomUUID(),e.options=i,r&&(e.src=r),e}function c({target:e,source:t,pluginName:r,pluginOptions:i}){Object.entries(t).forEach(([t,s])=>{let a;"function"==typeof s&&"name"!==t&&(Number.isNaN(a="number"==typeof t?t:Number(t))||0!==a&&1!==a&&3!==a&&4!==a)&&(e[t]||(e[t]=[]),e[t].push(d(s,t,r,i)))})}function u({target:e,phaseBag:t,pluginName:r,pluginOptions:i}){Object.entries(t).forEach(([t,s])=>{"function"==typeof s&&(e[t]||(e[t]=[]),e[t].push(d(s,t,r,i)))})}function h({bag:e,renderer:t,pluginName:r,pluginOptions:i,target:s}){if(!e||"object"!=typeof e||Array.isArray(e)||(("default"===t||"react"===t||"preact"===t)&&c({target:s,source:e,pluginName:r,pluginOptions:i}),"default"===t))return;let a=e[t];!a||"object"!=typeof a||Array.isArray(a)||c({target:s,source:a,pluginName:r,pluginOptions:i})}var p,f,g,m=class{plugins;callbacks={};loading={};constructor(e){this.plugins=function(e){let t={1:[],3:[],4:[],0:[]},r=Object.keys(t);return r.splice(r.indexOf("0"),1),e.forEach(e=>{if(!e)return;if(Array.isArray(e)){if(!e.length)return;if("function"!=typeof e[0]){let t;try{t=JSON.stringify(e[0])}catch{[t]=e}console.error("The first argument in the array should be a function returning a dynamic import. Plugin will be skipped.",`The value is: ${t}`);return}if(e[1]?.constructor!==Object)console.warn(`Missing options object for plugin: 2 3${e[0]}. 4 5Add "phase", "options", and/or "name" keys or remove the array wrapper.`);else if(e[1].phase){let{phase:r}=e[1];if(t[r]){t[r].push(e),Object.defineProperty(t[r],"enabled",{enumerable:!1,value:!0});return}console.warn(`Invalid phase "${r}" for plugin: 6 7${e[0]}. 8 9Valid phases: PHASES.parser, PHASES.traverse, PHASES.render. 10 11Switching to "PHASES.default".`)}else void 0===e[1].options&&void 0===e[1].phase&&void 0===e[1].name&&console.warn(`Missing options "phase", "options", and "name" for plugin: 12 13${e[0]}. 14 15Add at least one or remove the array wrapper.`)}else if("function"!=typeof e){let t;try{t=JSON.stringify(e)}catch{t=e}console.error("The first argument should be a function returning a dynamic import. Plugin will be skipped.",`The value is: ${t}`);return}let i=t[0].push(e)-1;r.forEach(e=>t[e].push(i))}),r.forEach(e=>{t[Number(e)].enabled||(t[e]=[])}),t}(e)}async process(e=0,{format:t="html",renderer:r}={}){await this.load(e);let i=4===e?r??"react":void 0,s=o(e,t,i);return void 0===this.callbacks[s]?this.sort(e,t,i)||{}:this.callbacks[s]}async load(e){let t=this.plugins[e].length>0?e:0;if(0!==t&&this.hasSharedIndexes(t)&&await this.ensureSharedLoaded(),0===t)return this.ensureSharedLoaded();let r=this.loading[t];if(r)return r;let i=this.runLoad(t);return this.loading[t]=i,i}hasSharedIndexes(e){return this.plugins[e].some(e=>"number"==typeof e)}ensureSharedLoaded(){let e=this.loading[0];if(e)return e;let t=this.runLoad(0);return this.loading[0]=t,t}async runLoad(e){let t=[];return this.plugins[e].forEach((e,r)=>{if("number"==typeof e)return;let i=e,s={},a;if(Array.isArray(e)&&([i,s,a]=[e[0],e[1]?.options||{},e[1]?.name]),"function"!=typeof i)return;let n=Promise.resolve(i()).then(l).then(e=>({response:e,options:s,configName:a,index:r})).catch(e=>Promise.reject({err:e,index:r}));t.push(n)}),Promise.allSettled(t).then(t=>{t.forEach(t=>{if("fulfilled"===t.status){let{index:r,options:i,configName:s}=t.value,{response:a}=t.value;if("function"==typeof a&&(a=a(i)),!a)return;if("function"==typeof a.then)return void console.error("Error: plugins should not return a promise");let l={...a};s&&!l.name&&(l.name=s),Object.defineProperty(l,n,{value:i,enumerable:!1,
15configurable:!0}),this.plugins[e][r]=l}else{let{err:r,index:i}=t.reason;console.error("Error from loading plugin",r),this.plugins[e][i]=void 0}})}).catch(t=>{console.error("Error in loader.load allSettled promise",t),this.plugins[e]=[]})}sort(e,t="html",r){if(0===e)return!1;let i=4===e?r??"react":"default",s=o(e,t,4===e?i:void 0);if(void 0!==this.callbacks[s])return!1;let a=this.plugins[e];if(!a)return!1;let l=a.length?a:this.plugins[0],d={},p=!1;return l.forEach(r=>{let s=isNaN(Number(r))?r:this.plugins[0][Number(r)];s&&(p=!0,function({plugin:e,phase:t,format:r,renderer:i,target:s}){let a=e.name,l=e[n]||{};if(4===t){if(h({bag:e[t],renderer:i,pluginName:a,pluginOptions:l,target:s}),"default"===r)return;let n=e[r];if(!n||"object"!=typeof n||Array.isArray(n))return;h({bag:n[t],renderer:i,pluginName:a,pluginOptions:l,target:s});return}c({target:s,source:e,pluginName:a,pluginOptions:l});let o=e[t];if(o&&"object"==typeof o&&u({target:s,phaseBag:o,pluginName:a,pluginOptions:l}),"default"===r)return;let d=e[r];if(!d||"object"!=typeof d||Array.isArray(d))return;c({target:s,source:d,pluginName:a,pluginOptions:l});let p=d[t]??d[String(t)];p&&"object"==typeof p&&u({target:s,phaseBag:p,pluginName:a,pluginOptions:l})}({plugin:s,phase:e,format:t,renderer:i,target:d}))}),!!p&&(this.callbacks[s]=d,this.callbacks[s])}}},49268:(e,t,r)=>{r.d(t,{Bonsai:()=>o,PHASES:()=>i.ZG,State:()=>s.Uw});var i=r(30362),s=r(50956),a=r(62654);let n=[[()=>Promise.all([r.e(67748),r.e(34082)]).then(r.bind(r,34082)),{phase:i.ZG.parser}]],l=[()=>Promise.all([r.e(37254),r.e(42718)]).then(r.bind(r,86104)),{phase:i.ZG.parser}];var o=class{dom;loader;nodeHandler;traverseHandlers;parser;markdownParser;callbacks;markdownCallbacks;prepared;preparedTraverse;preparedMarkdownParse;nodeAdapter;parserOptions;markdownOptions;handlerOptions;sanitizeTreeUrls;singleRun;name;resolveOptions({plugins:e=[],callbacks:t={},nodeAdapter:r={},parserOptions:i={},markdownOptions:s={},handlerOptions:a={},sanitizeTreeUrls:n=!1,internalPlugins:l=!0,singleRun:o=!0,name:d}){let c,u=(c={},d&&c[d]||c);return{plugins:u?.plugins||e,callbacks:u?.callbacks||t,nodeAdapter:u?.nodeAdapter||r,parserOptions:u?.parserOptions||i,markdownOptions:u?.markdownOptions||s,handlerOptions:u?.handlerOptions||a,sanitizeTreeUrls:u?.sanitizeTreeUrls??n,internalPlugins:u?.internalPlugins??l,singleRun:u?.singleRun??o,name:d}}constructor({plugins:e=[],callbacks:t={},nodeAdapter:r={},parserOptions:s={},markdownOptions:a={},handlerOptions:o={},sanitizeTreeUrls:d=!1,internalPlugins:c=!0,singleRun:u=!0,name:h}={}){let p=this.resolveOptions({plugins:e,callbacks:t,nodeAdapter:r,parserOptions:s,markdownOptions:a,handlerOptions:o,sanitizeTreeUrls:d,internalPlugins:c,singleRun:u,name:h}),f=[...p.internalPlugins?n:[],...p.markdownOptions.embedInHtml?[l]:[],...p.plugins];this.loader=new i.Rg(f),this.callbacks=p.callbacks,this.nodeAdapter=p.nodeAdapter,this.parserOptions=p.parserOptions,this.markdownOptions=p.markdownOptions,this.handlerOptions=p.handlerOptions,this.sanitizeTreeUrls=p.sanitizeTreeUrls,this.prepared={},this.preparedTraverse={},this.traverseHandlers={},this.singleRun=p.singleRun,this.name=p.name}async prepare(e){let t=this.prepared[e];if(t)return t;let r=this.prepareParse();this.prepared[e]=r;try{let t=await r;return this.prepared[e]=t,t}catch(t){throw delete this.prepared[e],t}}async prepareParse(){this.callbacks[i.ZG.parser]=await this.loader.process(i.ZG.parser,{format:i.hR.html});let{BonsaiParser:e}=await Promise.all([r.e(67748),r.e(4462)]).then(r.bind(r,4462));return e}async prepareParseMarkdown(){let e=this.preparedMarkdownParse;if(e)return e;let t=(async()=>{this.markdownCallbacks=await this.loader.process(i.ZG.parser,{format:i.hR.markdown});let{MarkdownParser:e}=await Promise.all([r.e(37254),r.e(75174)]).then(r.bind(r,52304));return e})();this.preparedMarkdownParse=t;try{let e=await t;return this.preparedMarkdownParse=e,e}catch(e){throw this.preparedMarkdownParse=void 0,e}}async prepareTraverse(e=i.hR.html){let t=String(e),s=this.preparedTraverse[t];if(s)return s;let a=(async()=>{let t=await this.loader.process(i.ZG.traverse,{format:e});e===i.hR.html&&(this.callbacks[i.ZG.traverse]=t);let{rebuild:s}=await Promise.resolve().then(r.bind(r,62654));return{callbacks:t,rebuild:s}})();this.preparedTraverse[t]=a;try{let e=await a;return this.preparedTraverse[t]=e,e}catch(e){throw delete this.preparedTraverse[t],e}}static async parseDOM(e,t){let{HTMLParser:i,DomHandler:s}
15=await Promise.all([r.e(67748),r.e(4462)]).then(r.bind(r,4462)),a=new s(void 0,t);return new i(a,t).end(e),a.root.children}async parse(e,t,r){let s=await this.prepare(i.ZG.parser),a,n=()=>new s(this.callbacks[i.ZG.parser],{parserOptions:this.parserOptions,handlerOptions:this.handlerOptions,nodeAdapter:this.nodeAdapter,state:r,format:i.hR.html,sanitizeTreeUrls:this.sanitizeTreeUrls,markdownOptions:this.markdownOptions,getMarkdownCallbacks:()=>this.prepareParseMarkdown().then(()=>this.markdownCallbacks??{})});this.singleRun?(this.parser||=n(),(a=this.parser).nodeHandler.setState(r)):a=n();let l=await a.parse(e,t);return this.singleRun&&(this.dom=l),l}async parseMarkdown(e,t,r){let s=await this.prepareParseMarkdown(),a,n=()=>new s(this.markdownCallbacks??{},{handlerOptions:this.handlerOptions,nodeAdapter:this.nodeAdapter,state:r,format:i.hR.markdown,markdownOptions:this.markdownOptions,sanitizeTreeUrls:this.sanitizeTreeUrls});this.singleRun?(this.markdownParser||=n(),(a=this.markdownParser).nodeHandler.setState(r)):a=n();let l=await a.parse(e,t);return this.singleRun&&(this.dom=l),l}async createMarkdownStream(e,t){let r=(await this.prepareParseMarkdown()).createStream(this.markdownCallbacks??{},{handlerOptions:this.handlerOptions,nodeAdapter:this.nodeAdapter,state:t,format:i.hR.markdown,markdownOptions:this.markdownOptions,sanitizeTreeUrls:this.sanitizeTreeUrls},e);if(!this.singleRun)return r;let s=e=>(this.dom=e.dom,e);return{get nodeHandler(){return r.nodeHandler},write:async e=>s(await r.write(e)),end:async e=>s(await r.end(e)),abort:()=>r.abort()}}async *parseMarkdownStream(e,t,r){let i=await this.createMarkdownStream(t,r);try{for await(let t of e)yield await i.write(t);yield await i.end()}finally{i.abort()}}async getRenderCallbacks({format:e=i.hR.html,renderer:t=i.vy.react}={}){let r=await this.loader.process(i.ZG.render,{format:e,renderer:t});return e===i.hR.html&&t===i.vy.react&&(this.callbacks[i.ZG.render]=r),r}async traverse(e,t,n,l){let o,{rebuild:d}=await Promise.resolve().then(r.bind(r,62654)),c=d(e,l),u=(o=c?.format)===i.hR.html||o===i.hR.markdown?o:i.hR.html,{callbacks:h}=await this.prepareTraverse(u),{adapter:p={}}=c,f,g=()=>new s.ZT(h,{...this.handlerOptions,nodeAdapter:p,state:n,format:u});if(this.singleRun){let e=String(u);this.traverseHandlers[e]||(this.traverseHandlers[e]=g()),f=this.traverseHandlers[e],this.nodeHandler=f,f.setState(n),f.setNodeAdapter(p)}else f=g();f.setContext(t||{});try{await f.handleNodes(c.children),await f.processRegistry(),this.sanitizeTreeUrls&&(0,a.QR)(c,p);let{state:e}=f;return Object.defineProperty(c,"state",{writable:!0,value:e}),this.singleRun&&(this.dom=c),c}finally{f.resetDocument()}}}},50956:(e,t,r)=>{r.d(t,{ZT:()=>x,Uw:()=>N,Bz:()=>T}),(g=m||(m={})).Root="root",g.Text="text",g.Directive="directive",g.Comment="comment",g.Script="script",g.Style="style",g.Tag="tag",g.CDATA="cdata",g.Doctype="doctype",m.Root,m.Text,m.Directive,m.Comment,m.Script,m.Style,m.Tag,m.CDATA,m.Doctype;class i{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return p(this,e)}}class s extends i{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class a extends s{type=m.Text;get nodeType(){return 3}}class n extends s{type=m.Comment;get nodeType(){return 8}}class l extends s{type=m.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class o extends i{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class d extends o{type=m.CDATA;get nodeType(){return 4}}class c extends o{type=m.Root;get nodeType(){return 9}}class u extends o{name;attribs;type;constructor(e,t,r=[],i="script"===e?m.Script:"style"===e?m.Style:m.Tag){super(r),this.name=e,this.attribs=t,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}function h(e){return e.type===m.Comment}function p(e,t=!1){let r;if(e.type===m.Text)r=new a(e.data);else if(h(e))r=new n(e.data);else if(e.type===m.Tag||e.type===m.Script||e.type===m.Style){let i=t?f(e.children):[],s=new u(e.name,{...e.attribs},i);for(let e of i)e.parent=s;null!=e.namespace&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...e["x-attribsPrefix"]}),r=s}else if(e.type===m.CDATA){let i=t?f(e.children):[],s=new d(i);for(let e of i)e.parent=s;r=s}else if(e.type===m.Root){let i=t?f(e.children):[],s=new c(i);for(let e of i)e.parent=s;e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else if(e.type===m.Directive){let t=new l(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),r=t}else throw Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function f(e){let t=e.map(e=>p(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var g,m,y=r(85102);let b=r.n(y)()("@media-platforms/bonsai-collector"),{error:w}=console;var v=class extends Map{ids;#e=new Set;async processQueries(e={}){let t=[];this.forEach((r,i)=>{if(i&&"AsyncFunction"===i.constructor.name){let s=r.filter(e=>!e?.controller?.signal?.aborted);return t.push(i(s,e))}let s=Promise.resolve();return r.forEach(t=>{s=s.then(()=>i?.controller?.signal?.aborted?Promise.resolve():t(i,e).then((t={})=>e.addNodeData(i,t)))}),t.push(s)}),this.ids&&this.ids.length&&(this.ids=[],this.#e.clear()),await Promise.allSettled(t).then(e=>{let t=Array.from(this.entries());e.forEach((e,r)=>{if("rejected"===e.status){let i=t[r],s=" from a plugin";if(i){let[e,t]=i;if(e&&e.constructor?.name==="AsyncFunction"){let e=t?.[0]?.controller?.callback;e?.src&&(s=` (from plugin: ${e.src})`)}else{let t=e?.controller?.callback;
15t?.src&&(s=` (from plugin: ${t.src})`)}}w(`Async query${s} caused an error`,e.reason)}})}).catch(e=>{b("Error processing queries",e)})}registerAsync=(e,t)=>{if("AsyncFunction"!==t.constructor.name){let e=` 16 17"registerAsync" only accepts an async function as a callback. 18 19`;throw w(e),Error(e)}let r=this.get(e);r?r.push(t):this.set(e,[t])};registerAsyncAll=(e,t)=>{if("AsyncFunction"!==t.constructor.name){let e=` 20 21"registerAsyncAll" only accepts an async function as a callback. 22 23`;throw w(e),Error(e)}let r=this.get(t);if(!r){this.ids?!this.ids.length&&this.#e.size&&this.#e.clear():(this.ids=[],this.#e.clear());let{controller:t}=e,r=t?.callback??{};if(r.id){if(this.#e.has(r.id)){let e=` 24 25"registerAsyncAll"${r.src?` (from plugin: ${r.src})`:" from a plugin"} already registered a method for this callback. 26 The method has to be same for every call 27 28`;throw w(e),Error(e)}this.ids.push(r.id),this.#e.add(r.id)}}r?r.push(e):this.set(t,[e])}};function k(e){return"object"==typeof e&&!!e&&!Array.isArray(e)}let{warn:O}=console;var E=class{callback;fingerprint;previousFingerprint;fingerprintHistory;lineage;signal;constructor(){this.signal={aborted:!1,node:null,replacement:null}}setCallback(e){this.callback=e}abort(e=null){this.signal.aborted||(this.signal.node=e,this.signal.aborted=!0)}createFingerprintHistory(e=[]){return this.fingerprintHistory=e,this.fingerprintHistory}createLineage(e=[]){return this.lineage=e,this.lineage}clear(){delete this.signal.node,this.fingerprintHistory=null}fingerprintNode(e){return JSON.stringify(function e(t){return k(t)||Array.isArray(t)?Array.isArray(t)?t.map(t=>Array.isArray(t)||k(t)?e(t):t):Object.keys(t).sort().map(r=>[r,e(t[r])]):t}(this.toFingerprintNode(e)))}toFingerprintNode(e){let t={type:e.type,name:e.name,tagName:e.tagName,data:e.data,attribs:e.attribs,properties:e.properties,_data:e._data};return e.children?.length&&(t.children=e.children.map(e=>this.toFingerprintNode(e))),t}compareFingerprints(e,t){return this.fingerprint&&e===this.fingerprint?(O("This is the same node"),!1):t.includes(e)?(O("New node is in history"),!1):(t.push(e),!0)}compareNodeFingerprint(e,t){let r=this.fingerprintHistory||this.createFingerprintHistory();this.previousFingerprint&&(r.push(this.previousFingerprint),delete this.previousFingerprint),this.fingerprint=this.fingerprintNode(e);let i=this.fingerprintNode(t);return this.compareFingerprints(i,r)}};let S=["parent","prev","next","state","adapter"];function T(e,t={}){let r={};return Object.entries(e).forEach(([e,i])=>{let s=t[e]??e;!1!==s&&(S.includes(e)?Object.defineProperty(r,s,{writable:!0,configurable:!0,value:i}):r[s]=i,s!==e&&Object.defineProperty(r,e,{writable:!0,configurable:!0,value:r[s]}))}),r}var N=class extends Map{setIfMissing(e,t,r={}){if(this.has(e))return this.get(e);let{process:i=!1}=r,s=i&&"function"==typeof t?t(...Array.isArray(i)?i:[]):t;return this.set(e,s),s}deleteKeys(e=[]){e.forEach(e=>this.delete(e))}};let{error:P}=console;function D(e){return Object.defineProperty(e,"controller",{value:new E}),e}function R(e){return!!e&&"function"==typeof e.then}function _(e,t){let r=e.src?` (from plugin: ${e.src})`:" from a plugin";P(`Callback "${e.key}"${r} caused an error`,t)}var x=class{registry;callbackRegistry;callbacks;callbackOptions;format;collector;detachedCallbacks;boundAsyncAllQueries;state;parser;nodeAdapter;maxRegistryPasses;maxDerivedNodeDepth;constructor(e,{nodeAdapter:t={},state:r=new Map,parser:i=null,maxRegistryPasses:s=100,maxDerivedNodeDepth:l=100,format:o}={}){let d=r instanceof N?r:new N([...r]);this.state=d,this.parser=i,this.format=o,this.registry=new Set,this.callbackRegistry=new Map,this.callbacks=e,this.nodeAdapter=t,this.maxRegistryPasses=s,this.maxDerivedNodeDepth=l,this.collector=new v,this.detachedCallbacks=new WeakSet,this.boundAsyncAllQueries=new WeakMap;let{registerAsync:c,registerAsyncAll:p}=this.collector;this.callbackOptions={registerAsync:c,registerAsyncAll:p,createElement:(e,t,r)=>{let i=new u(e,t||void 0,r||void 0),s=T(i,this.nodeAdapter);return Array.isArray(s.children)||Object.defineProperty(s,"children",{writable:!0,enumerable:!1,
28configurable:!0,value:i.children}),s},createDataElement:(e,t)=>{let r="comment"===e?new n(t):new a(t);return T(h(r)?r:new a(t),this.nodeAdapter)},addNodeData:(e,t)=>(e._data=e._data?{...e._data,...t}:t,e._data),detachCallback:e=>{let{callback:t}=e.controller;this.detachedCallbacks.add(t)},state:d,parser:i,format:o,options:{}}}getCallbackOptions(e){let t=e?.options??{},r=this.format??this.callbackOptions.format,i=e??this.callbackOptions;return{...this.callbackOptions,format:r,options:t,registerAsync:(e,i)=>{this.collector.registerAsync(e,async(e,s)=>i(e,{...s,format:r,options:t}))},registerAsyncAll:(e,s)=>{let a=this.boundAsyncAllQueries.get(i);a||(a=new WeakMap,this.boundAsyncAllQueries.set(i,a));let n=a.get(s);n||(n=async(e,i)=>s(e,{...i,format:r,options:t}),a.set(s,n)),this.collector.registerAsyncAll(e,n)}}}reset(){this.registry.clear()}resetDocument(){this.reset(),this.callbackRegistry.clear(),this.collector.clear()}onend(){let e=this.callbacks.onend;e&&e.forEach(e=>{e(this.getCallbackOptions(e),e)})}setContext(e={}){this.callbackOptions.context=e}setStreamContext(e){this.callbackOptions.stream=e}setState(e=new Map){let t=e instanceof N?e:new N([...e]);this.state=t,this.callbackOptions.state=t}setNodeAdapter(e={}){this.nodeAdapter=e}handleNode(e,t){let r=this.filterCachedCallbacks(e),i=e.controller?e:D(e);if(r)return this.invokeCallbacks({callbacks:r,node:i,shouldAwait:t})}handleNodes(e,t=null,r=0){let i=!1,s=e=>{t&&t(e),i=e};for(let a=r;a<e.length;a++){let r=e[a];if(r.children&&r.children.length){let n=this.handleNodes(r.children,s);if(i)return i=!1,Promise.resolve(n).then(()=>{let n=this.handleNode(r,s);if(i)return i=!1,Promise.resolve(n).then(()=>this.handleNodes(e,t,a+1)).then(()=>e);let l=this.handleNodes(e,t,a+1);return R(l)?l.then(()=>e):e});let l=this.handleNode(r,s);if(i)return i=!1,Promise.resolve(l).then(()=>this.handleNodes(e,t,a+1)).then(()=>e)}else{let n=this.handleNode(r,s);if(i)return i=!1,Promise.resolve(n).then(()=>this.handleNodes(e,t,a+1)).then(()=>e)}}return e}filterCachedCallbacks(e){let t=this.callbacks[e[this.nodeAdapter.name||"name"]],r=this.callbacks[e[this.nodeAdapter.type||"type"]];return t?r?{primary:t,secondary:r}:{primary:t}:r?{primary:r}:void 0}invokeCallbacks({callbacks:e,node:t,shouldAwait:r}){let{controller:i}=t,s=Array.isArray(e)?{primary:e}:e,a=()=>{if(!i.signal.node)return;let e=i.signal.node,s=e.controller?e:D(i.signal.node),{controller:a}=s,{callback:n}=t.controller,l=i.lineage?[...i.lineage]:[];if(null!=n.id&&l.push({id:n.id,key:n.key,src:n.src}),l.length>this.maxDerivedNodeDepth){let e=n.src?` (from plugin: ${n.src})`:" from a plugin";return"function"==typeof r&&r(!0),Promise.reject(Error(`Callback "${n.key}"${e} exceeded maxDerivedNodeDepth (${this.maxDerivedNodeDepth}). Lineage: ${l.map(({key:e,src:t})=>`${e||"unknown"}${t?`(${t})`:""}`).join(" -> ")}.`))}a.createLineage(l);let o=function e(t,r,i=[]){return(t.type===r||t.name===r)&&i.push(t),t.children&&t.children.length&&t.children.forEach(t=>{e(t,r,i)}),i}(s,n.key);if(o.length){let e=this.callbackRegistry.get(n.id);e||(e=new Set,this.callbackRegistry.set(n.id,e)),o.forEach(t=>e.add(t))}i.fingerprintHistory?a.fingerprintHistory=i.fingerprintHistory:(a.createFingerprintHistory(),a.previousFingerprint=a.fingerprintNode(t)),i.clear(),i.signal.replacement=s,this.registry.add(s)},n=e=>{let{primary:t,secondary:r}=s;return e<t.length?t[e]:r[e-t.length]},l=s.primary.length+(s.secondary?.length||0),o=(e=0)=>{for(let s=e;s<l;s++){let e=n(s);if(!this.detachedCallbacks.has(e)){i.setCallback(e);try{if(this.parser||i.fingerprintHistory||i.createFingerprintHistory(),function(e,t,r,i){if(null==t.id||!r?.length)return!1;let s=e[i.name||"name"],a=e[i.type||"type"];return r.some(({id:e,key:r})=>e===t.id&&(!r||r===s||r===a))}(t,e,i.lineage,this.nodeAdapter))continue;let n=this.callbackRegistry.get(e.id);if(n?.has(t))continue;n?n.add(t):this.callbackRegistry.set(e.id,new Set([t]));let l=e(t,this.getCallbackOptions(e));if(R(l))return"function"==typeof r&&r(!0),l.then(()=>i.signal.aborted?a():o(s+1),t=>(_(e,t),i.signal.aborted?a():o(s+1)))}catch(t){_(e,t)}if(i.signal.aborted)break}}return a()};return o()}async processRegistry(e=0){let t=e;for(;this.registry.size||this.collector.size;){if(t>=this.maxRegistryPasses)throw Error(`NodeHandler exceeded maxRegistryPasses (${this.maxRegistryPasses}). Pending nodes: ${this.registry.size}. Pending async collectors: ${this.collector.size}.`);let e=Array.from(this.registry.keys());this.reset(),e.length&&await this.handleNodes(e),this.collector.size&&(await this.collector.processQueries(this.callbackOptions),this.collector.clear()),t++}return this.onend()}}},56422:(e,t,r)=>{r.d(t,{Ui:()=>k});var i,s,a=r(71055),n=r(12625),l=r(60227),o=r(56317),d=r(52886);function c(e,t){let r=new Set(e),i=new Set(t);return e===t||r.size===i.size&&Array.from(r).every(i.has.bind(i))}function u(e){return"write"in e}let h=new WeakMap,p={},{read:f,write:g}=(0,o.eU)(null);function m(e,t,r){let[i,s,a,,n]=e,l=i.get(t);if(l)return l;if(r===e){let i=s.get(t);
28return i||(i=[v(e,t,r),r],s.set(t,i)),i}let o=r??p,d=a.get(o);d||(d=new WeakMap,a.set(o,d));let c=d.get(t);if(!c){let[i,s]=n?m(n,t,r):[t];c=[t.read===f?i:v(e,t,s),s],d.set(t,c)}return c}function y(e){for(let t of e[5])t()}function b(e,t,r,i,s){if(r.read===f&&u(r)&&u(t)&&r.write!==g&&e!==i){let{write:a}=r;return t.write=w(e,r.write.bind(r),i,s),()=>{t.write=a}}}function w(e,t,r,i=r){return function(s,a,...n){return t(function(t){let[i]=m(e,t,r);return s(i)},function(t,...s){let[n]=m(e,t,r),l=b(e,n,t,r,i);try{return a(n,...s)}finally{null==l||l()}},...n)}}function v(e,t,r){var i;let s=Object.getOwnPropertyDescriptors(t);Object.keys(s).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>s[e].configurable=!0);let a=Object.create(Object.getPrototypeOf(t),s);return a.read!==f&&(i=t.read.bind(t),a.read=function(t,s){return i(function(i){let[s]=m(e,i,r);return t(s)},s)}),u(a)&&u(t)&&a.write!==g&&(a.write=w(e,t.write.bind(t),r)),a}let k=(i=n.Kq,s=n.Pj,function(e){let{atoms:t=[],atomFamilies:r=[],children:n,scope:o,name:u}=e,p=s(),f=Array.from(t,e=>Array.isArray(e)?e[0]:e);function g(){return[o??function({atoms:e=[],atomFamilies:t=[],parentStore:r,name:i}){let s=new WeakSet(e),a=h.get(r),n=(null==a?void 0:a[3])??r,l=[new WeakMap,new WeakMap,new WeakMap,n,a,new Set,void 0],o=l[0],c=l[5],u=function(e){let t=e[3],r=[...(0,d.oJ)(t)],i=r[21],s=r[22],a=r[23],n=r[9],l={};r[9]=(e,t)=>n(o,t),r[21]=p(i),r[22]=function(t,r,...i){let[a,n]=m(e,r),l=b(e,a,r,n,e);try{return s(t,a,...i)}finally{null==l||l()}},r[23]=p(a),r[24]=([...t])=>{var r;let i,s=[f(t[0],c),f(t[1],u),f(t[2]),g(t[3]),t[4],t[5],(r=t[6],Object.defineProperties(i={get f(){return r.f},set f(A){r.f=A}},Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>l[t]??(l[t]=function(t){if(!t)return;let r=h(t);return r.add=function(r,i){if(void 0===r)return t.add(void 0,i);let[s]=m(e,r);return t.add(s,i)},r}(r[t])),set(e){delete l[t],r[t]=e},configurable:!0,enumerable:!0}]))),Object.assign(i,r)),p(t[7]),p(t[8]),t[9],p(t[10]),p(t[11],e=>{var t,r;return t=s[0],r=e,function(e,i){return t.get(i)||(t.set(i,r(e,i)),t.get(i))}}),t[12],t[13],p(t[14]),p(t[15]),p(t[16]),p(t[17]),p(t[18]),p(t[19]),p(t[20]),p(t[21]),p(t[22]),p(t[23]),()=>t];return s};let o=(0,d.ff)(...r);return o;function c(t){let r=new WeakMap;return function(i){let s=r.get(i);if(s)return s;let a=t(i);if(a)return s={...a,d:f(a.d,function(t){return r=>t(m(e,r)[0])}),p:g(a.p),get n(){return a.n},set n(W){a.n=W},get v(){return a.v},set v(W){a.v=W},get e(){return a.e},set e(W){a.e=W}},r.set(i,s),s}}function u(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i)return i;let s=e(r);if(s)return i={...s,d:g(s.d),t:g(s.t),get u(){return s.u},set u(W){s.u=W}},t.set(r,i),i}}function h(t,r){return function(i,...s){let[a]=m(e,i);return(r?r(t):t)(a,...s)}}function p(t,r){return function(i,s,...a){let[n]=m(e,s);return(r?r(t):t)(i,n,...a)}}function f(e,t){return{get:h(e.get.bind(e),t),set:h(e.set.bind(e)),has:h(e.has.bind(e)),delete:h(e.delete.bind(e))}}function g(t){return{get size(){return t.size},add:h(t.add.bind(t)),has:h(t.has.bind(t)),delete:h(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(h(e)),*[Symbol.iterator](){for(let r of t)yield m(e,r)[0]}}}}(l);for(let t of(l[6]=u,Object.assign(u,{name:i}),h.set(u,l),new Set(e)))o.set(t,[v(l,t,l),l]);for(let e of new Set(t)){for(let t of e.getParams()){let r=e(t);o.has(r)||o.set(r,[v(l,r,l),l])}let t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||o.has(t)?"REMOVE"!==e||s.has(t)||o.delete(t):o.set(t,[v(l,t,l),l])});c.add(t)}return u}({atoms:f,atomFamilies:r,parentStore:p,name:u}),function(e){return p!==e.parentStore||!c(f,e.atoms)||!c(r,e.atomFamilies)||o!==e.providedScope}]}let[[w,k],O]=(0,a.useState)(g);if(k({atoms:f,atomFamilies:r,parentStore:p,providedScope:o})){let e=h.get(w);e&&y(e),O(g)}return(0,l.RH)(Array.from(t).filter(Array.isArray),{store:w}),(0,a.useEffect)(()=>{let e=h.get(w);return()=>{e&&y(e)}},[w]),(0,a.createElement)(i,{store:w,children:n})})},59105:(e,t,r)=>{let i;r.d(t,{a:()=>s});var s=((i=s||{})[i.CURATED=0]="CURATED",i[i.DYNAMIC=1]="DYNAMIC",i)},66288:(e,t,r)=>{let i,s,a;r.d(t,{a:()=>n,b:()=>l,c:()=>o});var n=((i=n||{}).development="https://nitehawk.kubefeature.hearstapps.net",i.feature="https://nitehawk.kubefeature.hearstapps.net",i.stage="https://stage-nitehawk.hearst.io",i.prod="https://nitehawk.hearst.io",i.production="https://nitehawk.hearst.io",i),l=((s=l||{}).embeds="embeds",s.playlists="playlists",s.videos="videos",s.videohub="hub",s),o=((a=o||{}).prefetched="prefetched",a.fetch="fetch",a)},66959:(e,t,r)=>{r.d(t,{a:()=>s,c:()=>n});var i=r(3780),s=(0,i.a)((e,t)=>{"object"==typeof e&&"u">
28typeof t?t.exports=function(e,t,r,i,s){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:s;return e===s?r:e}:"function"==typeof define&&r.amdO?define(function(){return function(e,t,r,i,s){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:s;return e===s?r:e}}):e.dlv=function(e,t,r,i,s){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:s;return e===s?r:e}}),a=(0,i.b)(s(),1);function n(e){return function({isDisabled:e,publishFrom:t,publishTo:r}){let i,s,a,n;return!(e||r&&(i=new Date(r),s=new Date,i&&s>i))&&(a=new Date(t),n=new Date,!!a&&n>a)}({isDisabled:(0,a.default)(e,"is_disabled"),publishFrom:(0,a.default)(e,"publish_from"),publishTo:(0,a.default)(e,"publish_to")})}},70266:(e,t,r)=>{r.d(t,{a:()=>a});var i=r(16706),s=r(66959),a=class{constructor(e){this.playlist=e,this._videos=this.parseVideos()}get title(){return this.playlist.title}get description(){return this.playlist.description}get id(){return this.playlist.id}get videos(){return this._videos}set videos(e){this._videos=e}parseVideos(){return(this.playlist.videos||[]).filter(e=>(0,s.c)(e)).map(e=>new i.a(e))}}}}]);
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.