1"use strict";(self.webpackChunkpolitico_theme=self.webpackChunkpolitico_theme||[]).push([[4964],{4964:function(e,t,r){var n=r(246),l=r(3470);t.default=()=>{const e={...l.A},t=t=>{if(!t)return;const r=t.parentElement.querySelector(e.sharingElSelector),n=t.parentElement.parentElement?.dataset?.placeholderItems||e.sharingTopItemsCount;if(!r)return;const l=[];if(t.children)for(let e=0;e<t.children.length&&e<n;e++)t.children[e].dataset.id&&l.push(t.children[e].dataset.id);if(l.length>0){const e=r.dataset.shareText;let t="";if(l.length>1){const e=l.pop();t=`${l.join(", ")} and ${e}`}else t=l.toString();if(e&&""!==t){const n=e.replace("INSERT_NAMES",t);r.querySelectorAll("a").forEach((e=>{const{href:t}=e,r=new URL(t);t.indexOf("facebook")>=0&&r.searchParams.set("quote",n),t.indexOf("twitter")>=0&&r.searchParams.set("text",n),t.indexOf("linkedin")>=0&&(document.title&&r.searchParams.set("title",document.title),r.searchParams.set("summary",n)),e.href=r.href}))}r.setAttribute("aria-hidden","false")}else r.setAttribute("aria-hidden","true")},r=(r,n)=>{if(!r||!n)return;const l=r.parentElement;"previous"===n&&r.previousElementSibling&&l.insertBefore(r,r.previousElementSibling),"next"===n&&r.nextElementSibling.nextElementSibling?l.insertBefore(r,r.nextElementSibling.nextElementSibling):"next"===n&&r.nextElementSibling&&l.insertBefore(r.nextElementSibling,r),r.querySelector(e.dragHandleSelector).focus();const a=[];if(l.children){for(let e=0;e<l.children.length;e++)l.children[e].dataset.id&&a.push(l.children[e].dataset.id);window.gamificationList=JSON.stringify(a)}t(l)};var a;a=document.querySelector(e.sortableListSelector),n.Ay.create(a,{group:{name:"shared"},sort:!1,animation:e.sortableJSAnimationSpeed,chosenClass:e.sortableJSChosenClass,ghostClass:e.sortableJSGhostClass,handle:a.querySelector(e.dragHandleSelector)?e.dragHandleSelector:null}),a.classList.add(e.jsAppliedIndicatorClass),a.querySelectorAll(`li ${e.dragHandleSelector}`).forEach((e=>{e.setAttribute("tabindex","0"),e.addEventListener("keyup",(t=>{"ArrowUp"!==t.code&&"ArrowLeft"!==t.code||(t.preventDefault(),r(e.parentElement,"previous")),"ArrowDown"!==t.code&&"ArrowRight"!==t.code||(t.preventDefault(),r(e.parentElement,"next"))}))})),(l=>{const a=l.parentElement.parentElement?.dataset?.placeholderItems||e.sharingTopItemsCount;n.Ay.create(l,{group:{name:"shared",put:function(e){return e.el.children.length<a}},animation:e.sortableJSAnimationSpeed,chosenClass:e.sortableJSChosenClass,ghostClass:e.sortableJSGhostClass,handle:l.querySelector(e.dragHandleSelector)?e.dragHandleSelector:null,store:{set:e=>{const t=e.toArray();window.gamificationList=JSON.stringify(t)}},onSort:()=>{t(l)}}),l.classList.add(e.jsAppliedIndicatorClass),l.querySelectorAll(`li ${e.dragHandleSelector}`).forEach((e=>{e.setAttribute("tabindex","0"),e.addEventListener("keyup",(t=>{"ArrowUp"!==t.code&&"ArrowLeft"!==t.code||(t.preventDefault(),r(e.parentElement,"previous")),"ArrowDown"!==t.code&&"ArrowRight"!==t.code||(t.preventDefault(),r(e.parentElement,"next"))}))}))})(document.querySelector(e.curateListSelector))}}}]);
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.