1!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new n.Error).stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="f25353fe-fc8c-4970-a0ca-0b0adf1cd3de",n._sentryDebugIdIdentifier="sentry-dbid-f25353fe-fc8c-4970-a0ca-0b0adf1cd3de")}catch(n){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6899],{89874:function(n,e,t){t.d(e,{K3:function(){return w},M2:function(){return y},Mg:function(){return d},O5:function(){return j},it:function(){return f},jk:function(){return p}});var r=t(30137),o=t(76341),i=t(67462),u=t(32207),l=t(93128),a=t(97582),c=t(30396),s=t(34651);function d(){return v.apply(this,arguments)}function v(){return(v=(0,r._)(function(){var n,e,t,r,u=arguments;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return"count"in(n=Object.fromEntries(Object.entries(u.length>0&&void 0!==u[0]?u[0]:{}).filter(function(n){return null!=(0,l._)(n,2)[1]})))?n.count=function(n){if(null==n||""===n)return 1;var e=Number(n);return Number.isFinite(e)?Math.max(1,Math.floor(e)):1}(n.count):n.count=1,[4,c.Z.makeRequest((0,i._)((0,o._)({method:"GET",url:"/v2/promo/active/"},Object.keys(n).length>0?{params:n}:{}),{headers:{"Content-Type":"application/json"}}),{context:"Fetching active promos",feature:"Promo",endpoint:"/v2/promo/active/"})];case 1:if(Array.isArray(r=null!==(t=null==(e=a.sent())?void 0:e.data)&&void 0!==t?t:e))return[2,r];if((null==r?void 0:r.results)&&Array.isArray(r.results))return[2,r.results];if(r&&"object"==typeof r)return[2,[r]];return[2,[]]}})})).apply(this,arguments)}function f(n){return m.apply(this,arguments)}function m(){return(m=(0,r._)(function(n){var e,t,r=arguments;return(0,a.Jh)(this,function(o){switch(o.label){case 0:if(e=r.length>1&&void 0!==r[1]?r[1]:{},null==n||""===n)return[2];t="string"==typeof e.location&&e.location.trim()?e.location.trim():"unknown",o.label=1;case 1:return o.trys.push([1,3,,4]),[4,c.Z.makeRequest({method:"POST",url:"/v2/promo/".concat(n,"/impression/"),data:{location:t},headers:{"Content-Type":"application/json"}},{context:"Tracking promo impression",feature:"Promo",endpoint:"/v2/promo/{id}/impression/"})];case 2:case 3:return o.sent(),[3,4];case 4:return[2]}})})).apply(this,arguments)}function p(n){return h.apply(this,arguments)}function h(){return(h=(0,r._)(function(n){var e,t,r,o,i,u=arguments;return(0,a.Jh)(this,function(l){switch(l.label){case 0:if(e=u.length>1&&void 0!==u[1]?u[1]:{},t=!(null==n||""===n),r="string"==typeof e.location&&e.location.trim()?e.location.trim():"unknown","function"==typeof(null==(i=null!==(o=window.posthog)&&void 0!==o?o:s.ZP)?void 0:i.capture)&&i.capture("advertisement_click",{promo_id:t?n:null,location:r}),!t)return[2];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,c.Z.makeRequest({method:"POST",url:"/v2/promo/".concat(n,"/click/"),data:{location:r},headers:{"Content-Type":"application/json"}},{context:"Tracking promo click",feature:"Promo",endpoint:"/api/v2/promo/{id}/click/"})];case 2:case 3:return l.sent(),[3,4];case 4:return[2]}})})).apply(this,arguments)}var _={horizontal_image_url:{width:1120,height:315},vertical_image_url:{width:315,height:1120},medium_image_url:{width:370,height:325},square_image_url:{width:370,height:370}},g={feed:["horizontal_image_url"],horizontal:["horizontal_image_url","medium_image_url","square_image_url"],square:["square_image_url","medium_image_url","horizontal_image_url"],vertical:["vertical_image_url","medium_image_url","square_image_url"],medium:["medium_image_url","square_image_url","horizontal_image_url"],any:["square_image_url","horizontal_image_url","medium_image_url","vertical_image_url"]};function y(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any",t=function(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";return null!==(e=(g[t]||g.any).find(function(e){var t=null==n?void 0:n[e];return"string"==typeof t&&t.trim()}))&&void 0!==e?e:null}(n,e);if(!t)return null;var r=_[t];return r?{url:n[t].trim(),field:t,width:r.width,height:r.height}:null}function b(n){return!!("string"==typeof(null==n?void 0:n.destination_url)&&n.destination_url.trim())}function w(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";return null!==(t=null===(e=y(n,r))||void 0===e?void 0:e.url)&&void 0!==t?t:null}function k(){return(k=(0,r._)(function(){var n,e,t=arguments;return(0,a.Jh)(this,function(r){switch(r.label){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:{},[4,d((0,i._)((0,o._)({}
1,n),{count:1}))];case 1:return[2,null!=(e=l._.apply(void 0,[r.sent(),1])[0])?e:null]}})})).apply(this,arguments)}function j(){return C.apply(this,arguments)}function C(){return(C=(0,r._)(function(){var n,e,t,r,o,i,l=arguments;return(0,a.Jh)(this,function(a){switch(a.label){case 0:return t=void 0===(e=(n=l.length>0&&void 0!==l[0]?l[0]:{}).placement)?"any":e,o=void 0===(r=n.requireLink)||r,[4,function(){return k.apply(this,arguments)}((0,u._)(n,["placement","requireLink"]))];case 1:if(!(i=a.sent()))return[2,null];return[2,!function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.placement,r=void 0===t?"any":t,o=e.requireLink,i=void 0===o||o;return w(n,r)?!i||b(n):!!w(n,"any")&&(!i||b(n))}(i,{placement:t,requireLink:o})?null:i]}})})).apply(this,arguments)}},18265:function(n,e,t){t.d(e,{s:function(){return r}});function r(n){if(!n||"object"!=typeof n)return{upvotes:0,downvotes:0,voteScore:0,userVote:null,reactions:{},userReactions:[]};var e=n.reactions,t=n.user_reactions,r=n.userReactions,o=n.user_vote,i=n.userVote,u=n.vote_score,l=n.voteScore,a=n.upvotes,c=n.downvotes,s="object"!=typeof e||null===e||Array.isArray(e)?{}:e,d=null!=t?t:r,v=Array.isArray(d)?d.filter(function(n){return"string"==typeof n&&n.trim()}):[],f=null!=o?o:i,m=null;1===f||"1"===f?m=1:(-1===f||"-1"===f)&&(m=-1);var p=null!=u?u:l,h="number"==typeof p?p:Number(p)||0;return{upvotes:Number(a)||0,downvotes:Number(c)||0,voteScore:h,userVote:m,reactions:s,userReactions:v}}},7034:function(n,e,t){t.d(e,{$c:function(){return u},AD:function(){return a},f5:function(){return l}});var r=t(93128),o=t(96760),i=t(18265);function u(n){if(!n||"object"!=typeof n)return"";var e,t="string"==typeof n.slug&&n.slug.trim()||"string"==typeof(null===(e=n.meta)||void 0===e?void 0:e.slug)&&n.meta.slug.trim()||"";if(t)return t;var r="string"==typeof n.url?n.url.trim():"";if(!r||"/news"===r)return"";var o=r.split("?")[0].replace(/\/+$/,"").split("/").filter(Boolean);if(0===o.length)return"";var i=o[o.length-1];return i&&"news"!==i.toLowerCase()?i:""}function l(n){if(!n||"object"!=typeof n||Array.isArray(n))return[];var e=new Map(o.xz.map(function(n,e){return[n,e]}));return Object.entries(n).map(function(n){var e=(0,r._)(n,2);return{emoji:e[0],count:Number(e[1])||0}}).filter(function(n){return n.count>0}).sort(function(n,t){var r=e.has(n.emoji)?e.get(n.emoji):999,o=e.has(t.emoji)?e.get(t.emoji):999;return r!==o?r-o:n.emoji.localeCompare(t.emoji)})}function a(n){if(!n)return null;var e,t,r,o,a,c,s,d,v,f,m,p,h,_,g,y,b,w,k,j,C,N,q,A,S,T,z=null!==(m=n.discussion)&&void 0!==m?m:null,I=z&&"object"==typeof z&&null!==(t=null!==(e=z.article_body)&&void 0!==e?e:z.articleBody)&&void 0!==t?t:null,O=u(n),P=(0,i.s)(I),R=P.userVote,x=P.upvotes,D=P.downvotes,E=function(n,e,t){if(t&&"object"==typeof t){var r,o,i=null!==(o=t.vote_score)&&void 0!==o?o:t.voteScore;if("number"==typeof i&&!Number.isNaN(i))return i}if("number"==typeof(null==n?void 0:n.voteCount)&&!Number.isNaN(n.voteCount))return n.voteCount;var u=null!==(r=null==e?void 0:e.vote_score)&&void 0!==r?r:null==e?void 0:e.voteScore;return"number"!=typeof u||Number.isNaN(u)?0:u}(n,z,I),J=null!==(_=null!==(h=null!==(p=n.commentCount)&&void 0!==p?p:null==z?void 0:z.comment_count)&&void 0!==h?h:null==z?void 0:z.commentCount)&&void 0!==_?_:0,L=l(null==I?void 0:I.reactions),M=L.reduce(function(n,e){return n+e.count},0),V=null!==(b=null!==(y=null!==(g=n.postCount)&&void 0!==g?g:null==z?void 0:z.post_count)&&void 0!==y?y:null==z?void 0:z.postCount)&&void 0!==b?b:0,Z=null!==(q=null!==(N=null!==(C=null!==(j=null!==(k=null!==(w=n.imageSrc)&&void 0!==w?w:null===(r=n.coverImage)||void 0===r?void 0:null===(o=r.rend2)||void 0===o?void 0:o.src)&&void 0!==k?k:null===(a=n.coverImage)||void 0===a?void 0:null===(c=a.rend1)||void 0===c?void 0:c.src)&&void 0!==j?j:null===(s=n.thumbnail)||void 0===s?void 0:null===(d=s.new_thumb)||void 0===d?void 0:d.src)&&void 0!==C?C:null===(v=n.thumbnail)||void 0===v?void 0:null===(f=v.old_thumb)||void 0===f?void 0:f.src)&&void 0!==N?N:"string"==typeof n.thumbnail?n.thumbnail:null)&&void 0!==q?q:"/img/home/hero-background.png";return{title:null!==(A=n.title)&&void 0!==A?A:"",snippet:null!==(S=n.snippet)&&void 0!==S?S:"",url:null!==(T=n.url)&&void 0!==T?T:"/news",slug:O,imageSrc:Z,voteCount:E,upvotes:x,downvotes:D,userVote:R,commentCount:J,reactionBreakdown:L,reactionTotal:M,postCount:V,discussion:z}}}}]); 2//# sourceMappingURL=6899-bf472c66364fe742.js.map
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.