1!function(){var e={},t={};function o(l){var i=t[l];if(void 0!==i)return i.exports;var n=t[l]={exports:{}};return e[l](n,n.exports,o),n.exports}o.rv=function(){return"1.5.2"},o.ruid="[email protected]",window.addEventListener("load",()=>{var e;let t,o,l=window.matchMedia("(max-width: 1024px)").matches,i=window.matchMedia("(max-width: 640px)").matches,n=document.querySelector(".google-preferred"),s=document.querySelectorAll(".social-icon-share"),r=document.querySelector(".custom-tooltip");if(i){let e=document.querySelector(".full-width__social-mobile");if(e){n=e.querySelector(".google-preferred"),r=e.querySelector(".custom-tooltip");let t=document.querySelector(".full-width__actions-desktop");s=Array.from(document.querySelectorAll(".social-icon-share")).filter(e=>!t||!t.contains(e))}}let a=e=>{Object.assign(e.style,{position:"absolute",padding:"12px 16px",background:"white",border:"1px solid #dddee6",borderRadius:"6px",boxShadow:"0px 0px 8px 0px rgba(120, 120, 140, 0.2)",maxWidth:"300px",fontSize:"14px",lineHeight:"1.4",zIndex:99,opacity:0,display:"none",pointerEvents:"auto"})};a(r);let{scheduleHide:c,cancelHide:d}=(e=r,t=null,o=null,{scheduleHide:()=>{t=setTimeout(()=>{e.style.opacity=0,o=setTimeout(()=>{e.style.display="none"},200)},200)},cancelHide:()=>{t&&(clearTimeout(t),t=null),o&&(clearTimeout(o),o=null)}}),p=(e,t,o=!1,l=!1)=>{let i,n,{scrollX:s,innerWidth:r}=window,a=e.getBoundingClientRect();t.style.display="block",(i=o?s+a.right-t.offsetWidth:s+a.left+a.width/2-t.offsetWidth/2)+t.offsetWidth>s+r&&(n=10),i<s+8&&(i=s+8);let{style:c}=t;if(n?c.right=`${n}px`:c.left=`${i}px`,l){let e=t.offsetParent?t.offsetParent.getBoundingClientRect().top:0,o=a.top-e-t.offsetHeight-10;c.top=`${o}px`}},u=e=>{r.innerHTML=e,r.style.display="block",r.style.opacity=1},y=(e,t=null)=>{if(!l)return e;let o=t?`<button class="${t}">×</button>`:"";return`<div style="position:relative; padding-right:24px;"> 2 <span>${e}</span> 3 ${o} 4 </div>`};if(n){let e=()=>{if(d(),u(y(n.dataset.tooltip,"tooltip-close-btn")),p(n,r,l),l){let e=document.querySelector(".tooltip-close-btn");e&&e.addEventListener("click",e=>{e.stopPropagation(),c(),sessionStorage.setItem("googleTooltipClosed","true")})}};l||(n.addEventListener("pointerenter",e),n.addEventListener("pointerleave",c)),l&&"true"!==sessionStorage.getItem("googleTooltipClosed")&&e()}document.querySelectorAll(".google-preferred").forEach((e,t)=>{if(0===t||e===n)return;let o=e.closest("ul").nextElementSibling;if(!o||!o.classList.contains("custom-tooltip"))return;a(o);let i=null,s=null,r=()=>{i&&(clearTimeout(i),i=null),s&&(clearTimeout(s),s=null)},c=(e,t=0)=>{r(),i=setTimeout(()=>{e.style.opacity=0,s=setTimeout(()=>{e.style.display="none"},200)},t)};l||(e.addEventListener("pointerenter",()=>{r();let i=`tooltip-close-btn-${t}`;o.innerHTML=y(e.dataset.tooltip,i),o.style.display="block",o.style.opacity=1;let n=e.closest(".social-button-list");if(p(e,o,l,n),l){let e=o.querySelector(`.tooltip-close-btn-${t}`);e&&e.addEventListener("click",e=>{e.stopPropagation(),c(o),sessionStorage.setItem("googleTooltipClosed","true")})}}),e.addEventListener("pointerleave",()=>{c(o,200)}))});let g=[],f=e=>{e.style.opacity=0,setTimeout(()=>{e.style.display="none";let t=window.gettext("Copy link");e.querySelectorAll(".share-copy-link .social-icon__text").forEach(e=>{e.textContent=t})},200)};s.forEach(e=>{let t=e.nextElementSibling;t&&(g.push({shareIcon:e,shareTooltip:t}),Object.assign(t.style,{border:"1px solid #dddee6",borderRadius:"6px",boxShadow:"0px 0px 8px 0px rgba(120, 120, 140, 0.2)"}),e.addEventListener("click",o=>{if(o.stopPropagation(),"block"===t.style.display)f(t);else{t.style.display="block";let o=e.closest(".social-button-list");p(e,t,!1,o),t.style.opacity=1}}))}),g.length>0&&(document.addEventListener("keydown",e=>{"Escape"===e.key&&g.forEach(({shareTooltip:e})=>{"block"===e.style.display&&f(e)})}),document.addEventListener("click",e=>{let t=e.target.closest(".share-copy-link");if(t)return void navigator.clipboard.writeText(t.dataset.copyUrl).then(()=>{let e=t.querySelector(".social-icon__text");e&&(e.textContent=window.pgettext("refers to copy and paste action","Copied!"))}).catch(()=>console.error("Failed to copy link."));g.forEach(({shareIcon:t,shareTooltip:o})=>{t.contains(e.target)||o.contains(e.target)||"block"!==o.style.display||f(o)})}));let x=document.querySelector(".js-social-icon-license");x&&!l&&(x.addEventListener("pointerenter",()=>{d(),u(x.dataset.tooltip),p(x,r)}),x.addEventListener("pointerleave",c))})}(); 5//# sourceMappingURL=articleTooltip.bundle.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.