1async function e(e){if(e.aborted)throw new DOMException("AbortError","AbortError");return new Promise(((t,n)=>{e.addEventListener("abort",(()=>{n(new DOMException("AbortError","AbortError"))}))}))}function t(e,t=void 0){return new Promise((n=>setTimeout((()=>n(t)),e)))}async function n(e,t,n=void 0){let o;try{return await new Promise((function(r,i){o=setTimeout((()=>i(n)),t),e.then(r,i)}))}finally{clearTimeout(o)}}function o(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise((function(n,o){e=n,t=o})),resolve:e,reject:t}}function r(e){let t;return function(){return t||(t=e.call(this),async function(){try{await t}catch(e){}t=null}(),t)}}function i(...e){return t=>e.reduceRight(((e,t)=>t(e)),t)}function a(e){let t,n=!1;return function(...o){return n||(t=e.call(this,...o),n=!0,e=null),t}}const s="function"==typeof self.reportError?self.reportError:function(e){const t=new CustomEvent("report",{detail:e});c().dispatchEvent(t)},c=a((function(){if(!self.EventTarget)return{dispatchEvent(e){setTimeout((()=>l(e)))}};const e=new self.EventTarget;return e.addEventListener("report",l),e}));function l({detail:e}){throw e}const u=f(document);function d(e){return new Promise(((t,n)=>{function o({type:r}){"load"===r?t():n(),e.removeEventListener("load",o),e.removeEventListener("error",o)}e.addEventListener("load",o),e.addEventListener("error",o)}))}async function f(e){if("loading"===e.readyState)return new Promise((t=>{e.addEventListener("DOMContentLoaded",(()=>t()),{once:!0})}))}async function p(t,n,o=null){const r=new Promise((e=>{!function(e,t,n,{capture:o=!1,passive:r=!1,once:i=!1,signal:a=null}){null!=a&&a.aborted||(e.addEventListener(t,n,{capture:o,passive:r,once:i}),null==a||a.addEventListener("abort",(function(){e.removeEventListener(t,n,o)}),{once:!0}))}(self,"message",(function o({data:r,source:i}){if(!n({data:r}))return;const a=Array.from(t.getElementsByTagName("iframe")).find((e=>e.contentWindow===i));a&&(e({iframe:a,data:r}),self.removeEventListener("message",o))}),{signal:o})}));return o?async function(t,n){return Promise.race([e(t),n])}(o,r):r}function h(e){const t=document.createElement("script");return t.src=e,document.head.append(t),d(t)}function m(e){const t=document.getElementById("av-meta-data-"+e);if(t)return t.content}async function g(e){return v(e,document)}async function v(e,t){await f(t);const n=t.getElementById("av-script-data-"+e);if(n)return JSON.parse(n.textContent)}async function y(e,t){return new Promise((function(n){if(r(e.childNodes))return;const o=new MutationObserver((function(e){for(const{addedNodes:t}of e)if(r(t))return void o.disconnect()}));function r(e){for(const o of e){try{if(!t(o))continue}catch(e){s(e);continue}return n(o),!0}return!1}o.observe(e,{childList:!0})}))}function w(e,...t){try{e(...t)}catch(e){s(e)}}function b(e,...t){for(const n of e)w(n,...t)}const{port1:_,port2:k}=new MessageChannel,S=[];var E,I;k.start(),k.addEventListener("message",(function(){S.shift()()}));const x="isIntersecting"in(null!=(E=null==(I=self.IntersectionObserverEntry)?void 0:I.prototype)?E:{}),N=r((function(){return new Promise((e=>function(e){if("function"!=typeof e)throw new TypeError("Function expected");S.push(e),_.postMessage(null)}(e)))}));async function C(e,...t){await N(),e(...t)}function L(e,t,n=!0){return null!==n&&C(t,n),()=>{}}const A=new Map;function T(e){if(!x)return L;if(!A.has(e)){const t=function(e){const t=new WeakMap,n=new IntersectionObserver(o,{rootMargin:e});function o(e){for(const{target:n,isIntersecting:o}of e){const e=t.get(n);e.isIntersecting=o,b(e.callbacks,o)}}return function(e,o){if(!t.has(e)){n.observe(e);const o={callbacks:new Set,isIntersecting:null};t.set(e,o)}const{callbacks:r,isIntersecting:i}=t.get(e),a=function(e,t=null){let n=null;null!==t&&C((()=>{null===n&&o(t)}));return o;function o(t){t!==n&&(n=t,w(e,t))}}(o,i);return r.add(a),()=>{r.delete(a),0===r.size&&(t.delete(e),n.unobserve(e))}}}(e);return A.set(e,t),t}return A.get(e)}function O(e,...t){return T(e)(...t)}async function M(e,t,...n){return new Promise((o=>{const r=O(e,t,(function(e){if(!e)return;r(),o()}),...n)}))}const P="150px",q=T(P);async function R(e,...t){return M("0px",e,...t)}async function j(e,...t){return async function(e,t,...n){return new Promise((o=>{const r=O(e,t,(function(e){e||(r(),o())}),...n)}))}("0px",e,...t)}const D=a((function(){const e=document.createElement("div");return Object.assign(e.style,{position:"absolute",top:0,left:0,right:0}),document.documentElement.append(e),e}));function U(...e){return q(D(),...e)}const $="function"==typeof URL.parse?URL.parse:function(e,t=void 0){try{return new URL(e,t)}catch(e){return null}};const F=Symbol(),H=Symbol(),B=Symbol(),W=Symbol();function G(e,t,{includeCredentials:n=!1}={}){const o=new URL(e);if(n||(o.username="",o.password=""),t===F);else if(t===H)o.hash="";else if(t===B)o.hash="",o.query="";else{if(t!==W)throw new RangeError;o.hash="",o.query="",o.path=""}return o.href}const z="AVPageVisibilityChange",V=[];let K=0;const X={container:document,anchorTop:null,originalDocument:document,title:document.title,url:document.URL,referrer:document.referrer};function J(e){if(!e)return null;const t=V.findIndex((t=>t.container.contains(e)));return-1===t?null:t}function Y(){return K}function Z(e=Y()){const{title:t,url:n,referrer:o}=V[e];return{title:t,url:n,referrer:o,pageIndex:e}}async function Q(e,t){return v(t,V[e].originalDocument)}function ee(e){return G(e,H,{includeCredentials:!1})}V.push(X);const te=a((async function(){const{platform:e}=await g("common");return"giallozafferano"===e}));async function ne(e=null){var t;return oe(null!=(t=J(e))?t:Y())}async function oe(e=0){if(!await te())throw Error();const t=await async function(e=0){if(re.has(e))return re.get(e);const{url:t}=Z(e),n=ae(t);return re.set(e,n),n}(e);return function(e){const t=ce(se(e,"MAINLEMMAS")),n=ce(se(e,"PEOPLE")),o=ce(se(e,"ORGANIZATIONS")),r=ce(se(e,"PLACES")),i=ce(e.admants),a=ce(e.categories),s=[...i,...a];return{lemmas:t,people:n,companies:o,places:r,admants:i,categories:a,label:s}}(t)}const re=new Map;const ie=2e3;async function ae(e,{retryCount:n=1}={}){try{const t=await async function(e){const t={key:"69abaf6b2f7ca5773c43d4f4659194c6e187d375e984ac967929bcd50f0670bc",mode:"async",method:"descriptor",filter:["default"],decorator:"json",type:"url",body:e},n=new URL("https://euasync01.admantx.com/admantx/service");n.searchParams.set("request",JSON.stringify(t));const o=await fetch(n.href),r=await o.json();if("OK"!==r.valid)throw Error();if("other"===r.descriptor)throw Error();return r}(e);return t}catch(o){if(n>0)return await t(ie),ae(e,{retryCount:n-1});throw o}}function se(e,t){return e.entities.filter((e=>e.type===t))}function ce(e){return e.map((e=>e.name)).sort()}var le;function ue(e,t,{handleUnmapped:n="keep"}={}){const o={};for(const[r,i]of Object.entries(e))if(r in t){const e=t[r];if(null==e)continue;o[e]=i}else if("keep"===n)o[r]=i;else if("error"===n)throw new RangeError(`Key ${r} unsupported`);return o}const de=null!=(le=Object.hasOwn)?le:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function fe(e,t,n=void 0){const o=Object.getOwnPropertyDescriptor(e,t);if(!o)throw new RangeError(n);return function({value:e,get:t},n){return t?t.call(n):e}(o,e)}function pe(e,...t){self.__tcfapi(e,2,...t)}const he={addEventListener(e){pe("addEventListener",e)},removeEventListener:e=>new Promise(((t,n)=>{pe("removeEventListener",(e=>e?t():n()),e)}))},me=r((async function(){return await u,new Promise(((e,t)=>{he.addEventListener((function(n,o){if(!o)return void t();const r=n.eventStatus;if("tcloaded"!==r&&"useractioncomplete"!==r)return;e(n),he.removeEventListener(n.listenerId)}))}))})),ge=Symbol(),ve=Symbol(),ye=Symbol();let we;function be(e){he.addEventListener(e)}function _e(e){return async(...t)=>(await me(),e(...t))}!function(){try{if(!self.__tcfapi)return void(we=ge);we=ve,he.addEventListener((function(e,t){t||(we=ye),we=e}))}catch(e){we=ye}}();const ke=Symbol(),Se=Symbol(),Ee=Symbol(),Ie=Symbol(),xe=1,Ne=2,Ce=Symbol();function Le(e,t,n=null){const o=[];for(const[r,i]of Object.entries(t)){const t=Ae(e,r,i,n);null===t||o.push(t)}return 0===o.length?null:o}function Ae(e,t,n,o=null){const r=function(e,t,n,o=null){var r,i;if(null===o){if(n!==ke&&n!==Se)throw new RangeError("Invalid requirement: can't use flexible requirements without vendorId");return n}const{publisher:{restrictions:a}}=e,s=null!=(r=null==(i=a[t])?void 0:i[o])?r:Ce,c=function(e,t){const n=fe(Te,e,"Unknown requirement type");if(0===t)return null;return fe(n,t,"Unknown purpose restriction type")}(n,s);return c}(e,t,n,o),i=null!==r&&function(e,t,n,o=null){const r=Oe[n];if(null!==o&&!0!==e.vendor[r][o])return!1;return!0===e.purpose[r][t]}(e,t,r,o);return i?null:{purposeId:t,unsatisfiedRequirement:n,unsatisfiedRestrictedRequirement:r}}const Te={[ke]:{[Ce]:ke,[xe]:ke,[Ne]:null},[Se]:{[Ce]:Se,[xe]:null,[Ne]:Se},[Ee]:{[Ce]:ke,[xe]:ke,[Ne]:Se},[Ie]:{[Ce]:Se,[xe]:ke,[Ne]:Se}};const Oe={[ke]:"consents",[Se]:"legitimateInterests"};const Me=new TextEncoder;function Pe(e){return Me.encode(e)}function qe(e){return Re(new Uint8Array(e))}function Re(e){const t=2*e.constructor.BYTES_PER_ELEMENT;let n="";for(let o=0;o<e.length;o++)n+=e[o].toString(16).padStart(t,"0");return n}function je(e){var t;return(null!=(t=self.crypto)?t:self.msCrypto).getRandomValues(e)}function De(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Ue(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $e(e,t){return e.get(De(e,t))}function Fe(e,t,n){Ue(e,t),t.set(e,n)}function He(e,t,n){return e.set(De(e,t),n),n}function Be(e,t){Ue(e,t),t.add(e)}function We(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}const Ge=1e3,ze=864e5;function Ve(e,t){const n=e-e%1e3;return function(e){const t={year:NaN,month:NaN,day:NaN,hour:NaN,minute:NaN,second:NaN};let n;for(const n of Object.keys(t))t[n]=Number(e.find((({type:e})=>e===n)).value);for(const{type:o,value:r}of e)"era"===o&&(n=r),o in t&&(t[o]=Number(r));"BC"===n&&(t.year=1-t.year);24===t.hour&&(t.hour=0);const o=new Date;return o.setUTCFullYear(t.year,t.month-1,t.day),o.setUTCHours(t.hour,t.minute,t.second,0),o}(new Intl.DateTimeFormat("en-us",{timeZone:t,era:"short",hour12:!1,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}).formatToParts(e))-n}const Ke=["domain"],Xe=Symbol(),Je=a((async function(){const e="av_tmp_"+Math.floor(Math.random()*36**10).toString(36),t=self.location.hostname;let n=t.lastIndexOf(".");for(;n>0;){n=t.lastIndexOf(".",n-1);const o=t.slice(n+1);if(await tt(e,"",{domain:o,maxAge:Ge,secure:!1}),null!==await Ye(e))return o}throw Error("Unable to find cookie highest level available domain")}));async function Ye(e){var t,n;return null!=(t=null==(n=(await async function(){return document.cookie.split("; ").map((e=>e.split("=",2)))}()).find((([t])=>t===e)))?void 0:n[1])?t:null}async function Ze(e,t){await tt(e,"",Object.assign({},t,{maxAge:0}
1))}const Qe=Object.freeze({NONE:"None",STRICT:"Strict",LAX:"Lax"}),et=Object.values(Qe);async function tt(e,t,{maxAge:n=null,domain:o=null,path:r="/",sameSite:i=Qe.STRICT,secure:a=!0}){if(0===e.length||e.includes("=")||e.includes(";")||e.trim()!==e)throw new TypeError("Invalid cookie name");if(t.includes(";"))throw new TypeError("Invalid cookie value");const s={[e]:t};if(null!==o&&(s.Domain=await nt(o)),null!==n&&(s.Expires=new Date(Date.now()+Number(n)).toUTCString()),s.Path=r.replace(/;.*/,""),a&&(s.Secure=""),!et.includes(i))throw new RangeError("Invalid sameSite value");if(i===Qe.NONE&&!a)throw new TypeError("SameSite=None requires Secure to be set");s.SameSite=i;const c=Object.entries(s).map((([e,t])=>`${e}=${t}`)).join(";");document.cookie=c}async function nt(e){if(e===Xe)return Je();if(e.startsWith(".")||e.includes(";"))throw new TypeError("Invalid domain");return e}const ot="_ga",rt={maxAge:31536e6,sameSite:Qe.LAX,domain:Xe,path:"/",secure:!1},it=a((async function(){const e=await Ye(ot);try{await async function(e,t){let{domain:n}=t,o=We(t,Ke);const r=await nt(n),i=self.location.hostname;if(r===i)return;const a="."+r;if(!i.endsWith(a))throw Error("Invalid top domain");await Promise.all(function*(){let t=i.length-a.length;for(;t>0;){t=i.lastIndexOf(".",t-1);const n=i.slice(t+1);yield Ze(e,Object.assign({},o,{domain:n}))}}())}(ot,rt)}catch(e){s(e)}if(e){const n=null==(t=e.match(/^(?:(?:GA)?1\.[\d-]+\.|(?=amp-))(.*)/))?void 0:t[1];if(n)return e.startsWith("amp-")&&at(ot,e),n}var t;const n="amp-"+(o=je(new Uint8Array(16)),btoa(String.fromCharCode(...o)).replace(/[+/=]/g,(e=>st[e])));var o;return at(ot,n),n}));function at(e,t){tt(e,t,rt)}const st={"+":"-","/":"_","=":""};const ct=a((async function(){var e,t;const n=null!=(e=self.gaGlobal)?e:{};Object.defineProperty(self,"gaGlobal",{configurable:!1,enumerable:!0,set(e){Object.assign(n,e)},get:()=>n});const o=await it(),r=null!=(t=n.hid)?t:Math.floor(2147483647*Math.random());return Object.defineProperties(n,{cid:lt(o),hid:lt(r),sid:lt(void 0),vid:lt(void 0)}),n}));function lt(e){return{configurable:!1,enumerable:!0,get:()=>e,set(){}}}function ut(){return void 0!==m("disable-audience-tracking")}const dt={2:ke,4:ke,8:ke,9:ke},ft={1:ke,2:ke,3:ke,4:ke,5:ke,6:ke,7:ke,8:ke,9:ke,10:ke},pt=a((async function({organizationId:e,apiKey:t,workspaceId:n,publisherId:o,publisherTag:r,environment:i="production"}){const a=await me(),s=!Le(a,ft,450)&&!Le(a,dt,361);if(!s)return null;const c=self.permutive||{q:[]};self.permutive=c,c.config={consentRequired:!0,apiKey:t,workspaceId:n,environment:i};try{const e=function(){const e=je(new Uint8Array(16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,`${Re(e.subarray(0,4))}-${Re(e.subarray(4,6))}-${Re(e.subarray(6,8))}-${Re(e.subarray(8,10))}-${Re(e.subarray(10,16))}`}();c.config.viewId=e}catch(e){}const l=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"];for(const e of l)c[e]=function(...t){c.q.push({functionName:e,arguments:t})};c.consent({opt_in:s,token:a.tcString}),c.identify([{id:o,tag:r,priority:1}]);const u=self._exaudiMediaset||[];return self._exaudiMediaset=u,u.push(["S",["_cm","PERMUTIVE"]]),await h("https://c.neodatagroup.com/mediaset.js"),await h(`https://${e}.edge.permutive.app/${n}-web.js`),c}));async function ht(e,t=0){const n=await Q(t,"permutive"),o=new Date,r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][o.getDay()],i=o.getHours();let a=null;i>22||i<=6?a="Night":i>17?a="Evening":i>12?a="Afternoon":i>6&&(a="Morning");const s=await async function(e){try{const{lemmas:t,people:n,categories:o,places:r,companies:i,label:a}=await oe(e);return[...a,...t,...n,...o,...r,...i]}catch(e){}return null}(t),c={page:Object.assign({},n,s?{semantic_label:s}:null,{time_of_day:a,day_of_week:r})};e.addon("web",c)}const mt=a((async function(e){return await me(),await h(`https://sb.scorecardresearch.com/cs/${e}/beacon.js`),self.COMSCORE}));const gt="sdktesto",vt="rilevazionevolumetrica",yt=Symbol(),wt=Symbol(),bt=Symbol();const _t="NOLBUNDLE";let kt=0;const St=function(e){const{customElements:t}=e;return t?{customElementBaseClass:e.HTMLElement,define(e,n){t.define(e,n)}}:function(e){const t=new Map,n=new Map;let o="",r=null;const i=new WeakMap;function a(e,t=null){s(e,t);
1const n=e.querySelectorAll(o);for(let e=0;e<n.length;e++)s(n[e],t)}function s(e,t=null){const o=i.get(e);var a;if(o)return void(null==(a=o[t])||a.call(e));const s=n.get(e.localName);if(!s)return;i.set(e,s);const c=e.ownerDocument.contains(e);r=e;try{if(new s.elementConstructor!==e)throw new TypeError}finally{r=null}var l;c&&(null==(l=s.connectedCallback)||l.call(e))}function c(){const n=this.constructor,o=t.get(n);let a=r;a||(a=e.document.createElement(o.name),i.set(a,o));const s=n.prototype;return Object.setPrototypeOf(a,s),a}c.prototype=e.HTMLElement.prototype;const l={define(r,i){if(n.has(r)||t.has(i))throw new DOMException("NotSupportedError","NotSupportedError");const{connectedCallback:s,disconnectedCallback:c}=i.prototype,l={name:r,elementConstructor:i,connectedCallback:s,disconnectedCallback:c};t.set(i,l),n.set(r,l),o+=(o?",":"")+r,a(e.document.documentElement)},customElementBaseClass:c};return new MutationObserver((function(e){for(let t=0;t<e.length;t++){const{addedNodes:n,removedNodes:o}=e[t];for(let e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&a(t,"connectedCallback")}for(let e=0;e<o.length;e++){const t=o[e];1===t.nodeType&&a(t,"disconnectedCallback")}}})).observe(e.document,{subtree:!0,childList:!0}),l}(e)}(self),{customElementBaseClass:Et,define:It}=St;class xt extends Et{async connectedCallback(){const e=await y(this,(e=>{var t,n;return null!==(null!=(t=null==(n=e.dataset)?void 0:n.avInject)?t:null)}));e.remove();const t=[{selector:"h1, h2, h3, h4, h5, h6, hgroup",niceAbove:100,avoidBelow:500},{selector:"ol, ul, dl",avoidAbove:200},{selector:"av-adv-slot, .av-adv-admin-placeholder",excludeAbove:360,excludeBelow:900}];!function(e,t,{minDistance:n,minAvailableWidth:o=300,minContainerHeight:r=300,niceSnapDistance:i=n/2,rules:a=[]}){var s;Ot(n),Ot(o),Ot(r),Ot(i);const c=function(e,t){if(!t(e))return[];let n=e.firstElementChild;if(!n)return[];const o=[];for(;;)if(n.firstElementChild&&t(n))n=n.firstElementChild;else{for(o.push(n);!n.nextElementSibling;)if(n=n.parentElement,n===e)return o;n=n.nextElementSibling}}(e,y);if(!c.length)return;const l=function(e,t){const n=[];for(const o of e){let e=o;for(;!e.previousElementSibling&&e.parentElement!==t;)e=e.parentElement;n.push(Ct(e))}return n}(c,e),u=function(e,{minAvailableWidth:t}){const n=[];for(const o of e){const{y:e,width:r}=o.getBoundingClientRect();r<t||n.push({y:e,width:r,element:o})}return Lt(n),n}(l,{minAvailableWidth:o}),{niceCandidates:d,avoidRanges:f,excludeRanges:p}=function(e,t,n){const o=new Set,r=[],i=[];for(const t of e){const{selector:e,niceAbove:o=null,niceBelow:a=null,avoidAbove:c=null,avoidBelow:l=null,excludeAbove:u=null,excludeBelow:d=null}=t;Mt(o),Mt(a),Mt(c),Mt(l),Mt(u),Mt(d);const f=n.querySelectorAll(e);for(const e of f){const t=e.getBoundingClientRect();s(At,o,t.top),s(Tt,a,t.top),Rt(r,c,l,t),Rt(i,u,d,t)}}const a=[...o];return Lt(a),r.sort(((e,t)=>e[0]-t[0])),i.sort(((e,t)=>e[0]-t[0])),{niceCandidates:a,avoidRanges:r,excludeRanges:i};function s(e,n,r){if(e!==At&&e!==Tt)throw new TypeError;if(null===n)return;const i=(e===At?Pt:qt)(t,r,n);null!==i&&o.add(i)}}(a,u,e);let h=(null==(s=u[0])?void 0:s.y)+n,m=0,g=d[m],v=0;for(const e of u){const{y:o}=e;if(o<h)continue;if(!(v<t.length))break;for(;m<d.length&&g.y<o;)m++,g=d[m];const r=g&&g.y-o<i?g:e,a=r.y;r!==g&&jt(f,a)||(jt(p,a)||(r.element.after(t[v]),v++,h=a+n))}for(const e of l)e.remove();function y(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI)return!1;if(Nt.has(e.localName))return!1;const{classList:t}=e;if(t.contains("is-layout-grid")||t.contains("is-layout-flex"))return!1;const n=e.style.height;if(n&&"auto"!==n)return!1;const i=self.getComputedStyle(e),{display:a,position:s,overflow:c,maxHeight:l}=i;return("block"===a||"flow-root"===a||"contents"===a)&&(("static"===s||"relative"===s)&&("visible"===c&&(("none"===l||"min-content"===l||"max-content"===l)&&(!(e.clientWidth<o)&&!(e.clientHeight<r)))))}}(this.dataset.target?this.parentElement.closest(this.dataset.target):this,[e.content],{minDistance:900,rules:t})}}const Nt=new Set(["p","ul","ol","dl","figure","search","blockquote","pre","h1","h2","h3","h4","h5","h6","hgroup","aside","header","footer","nav","img","picture","audio","video","iframe","object","embed","canvas","a","form","fieldset","label","input","button","select","textarea","output","progress","meter","details","dialog","table","template","script","style"]);function Ct(e){const t=document.createElement("div");return t.style.setProperty("all","unset","important"),t.style.setProperty("display","block","important"),e.before(t),t}function Lt(e){e.sort(((e,t)=>e.y-t.y))}const At=Symbol(),Tt=Symbol();function Ot(e){if(!Number.isFinite(e))throw new RangeError;if(e<0)throw new RangeError}function Mt(e){null!==e&&Ot(e)}function Pt(e,t,n=1/0){let o=0,r=e.length;for(;o<r;){const n=o+r>>1;e[n].y<=t?o=n+1:r=n}if(o--,o<0)return null;const i=e[o];return t-i.y>n?null:i}function qt(e,t,n=1/0){let o=0,r=e.length;for(;o<r;){const n=o+r>>1;e[n].y<t?o=n+1:r=n}if(o>=e.length)return null;const i=e[o];return i.y-t>n?null:i}function Rt(e,t,n,o){if(null===t&&null===n)return;const r=null!=t?t:0,i=null!=n?n:0;e.push([o.top-r,o.bottom+i])}function jt(e,t){for(const[n,o]of e){if(t<=n)return!1;if(t<o)return!0}return!1}const Dt="fixed",Ut="expand",$t="adsense",Ft="16:9";function Ht(e){return e.filter(Boolean).join("+")}function Bt(e,t){return null===t?null:{[e]:t}}let Wt=!1;async function Gt({client:e,host:t=null}){if(Wt)throw Error("AdSense loading already requested");Wt=!0;const n=new URL("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js");n.searchParams.set("client",e),t&&n.searchParams.set("host",t);const o=document.createElement("script");o.crossorigin="anonymous",o.src=n.href,o.dataset.checkedHead="true",document.head.append(o),await d(o);const r=self.adsbygoogle;
1return{init:async function({autoAds:{hostChannels:n=[],anchorAds:o=null,vignetteAds:a=null,sideRailAds:c=null}={}}={}){const l=Ht(n),u=Object.assign({google_ad_client:e,enable_page_level_ads:Object.assign({},t?{google_ad_host:t,google_ad_host_channel:l}:null)},Bt("overlays",o),Bt("vignettes",a),Bt("side_rails",c));try{var d;null!=(d=self)["google_ad_modifications"]||(d.google_ad_modifications={}),self.google_ad_modifications.head_tag_slot_vars=u.enable_page_level_ads}catch(e){s(e)}try{r.push(u)}catch(e){s(e)}return{slotFiller:i}}};async function i(n,{client:o=e,unit:i=null,host:a=t,hostChannels:s=[],w:c=null,h:l=null}){const u=Ht(s),d=Object.assign({google_ad_client:o,google_ad_slot:i},t?{google_ad_host:a,google_ad_host_channel:u}:null),f=document.createElement("div");f.classList.add("av-adsense-full-width-container");const p=document.createElement("div");p.classList.add("av-adsense-container");const h=document.createElement("ins");h.classList.add("adsbygoogle"),h.style.display="block";const m=function(e,t){if(Number.isFinite(t))return t;const{heightMode:n,height:o}=e.getHeightInfo();return n===Dt?o:null}(n,l);null!==m?(h.style.height=m+"px",Number.isFinite(c)&&(h.style.width=c+"px")):(d.google_ad_format="auto",d.google_full_width_responsive="true"),f.append(h),p.append(f),n.el.append(p);const g=function(e,t){return Vt.observe(t,{attributes:!0,attributeFilter:Object.keys(Kt)}),new Promise(((n,o)=>{zt.set(t,{container:e,displayedResolve:n,displayedReject:o})}))}(p,h);return r.push({element:h,params:d}),g}}const zt=new WeakMap,Vt=new MutationObserver((function(e){for(const{attributeName:t,target:n}of e){const e=zt.get(n);w(Kt[t],n,e)}})),Kt={style(e,{container:t}){t.style.minHeight=e.style.height},"data-ad-status"(e,{displayedResolve:t,displayedReject:n}){const{adStatus:o}=e.dataset;"filled"===o?t():"unfilled"!==o&&"unfill-optimized"!==o||n()}};const Xt="function"==typeof IntersectionObserver,Jt=new Map,Yt=Xt&&new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting||void 0===e.isIntersecting){const t=e.target;Yt.unobserve(t),Jt.get(t)(),Jt.delete(t)}}))}),{rootMargin:"0px 0px 100% 0px"});function Zt(e){return async(t,n)=>{if(Qt(n)&&Xt){const{el:e}=t;Yt.observe(e),await new Promise((t=>Jt.set(e,t)))}return e(t,n)}}function Qt(e){return e.lazy}const en=Symbol(),tn=Symbol(),nn=Symbol(),on={1:ke,2:Ie,7:Ie,9:Ie,10:Ie},rn={1:ke,2:Ie,3:ke,4:ke,7:Ie,9:Ie,10:Ie};function an(e){if(!Le(e,rn,755))return en;return Le(e,on,755)?nn:tn}const sn=r((async function(){return an(await me())})),cn="googleDiscover",ln="searchGoogle",un="search",dn="social",fn="referral",pn="unknown",hn=/^www\.google(?:\.[a-z]{2,3}){1,2}$/,mn=RegExp("^(?:duckduckgo\\.com|www\\.(?:bing\\.com|ecosia\\.org))$|(?:^|\\.)search\\.yahoo\\.(?:\\.[a-z]{2,3}){1,2}$"),gn=/^(?:android-app:\/\/com\.pinterest\/|ios-app:\/\/429047995)$/,vn=RegExp("(?:^|\\.)(?:facebook\\.com|instagram\\.com|youtube\\.com|pinterest\\.com|t\\.co)$");const yn="avSession";const wn=a((function(){var e;const t=null!=(e=function(){try{const e=self.sessionStorage.getItem(yn),{e:t,d:n}=JSON.parse(e);if(Date.now()<t&&"object"==typeof n)return n}catch(e){}return null}())?e:{};var n;return(n=t.source)!==cn&&n!==ln&&n!==un&&n!==dn&&n!==fn&&n!==pn&&(t.source=function(e,t=null){const n=$(e);if(!n)return pn;const{hostname:o,protocol:r,href:i}=n;return"android-app://com.google.android.googlequicksearchbox/"===i?cn:gn.test(i)?dn:"http:"!==r&&"https:"!==r?pn:hn.test(o)?ln:mn.test(o)?un:vn.test(o)?dn:null!==t&&t===o?pn:fn}(document.referrer,self.location.hostname)),function(e){const t=Date.now()+18e5,n=JSON.stringify({e:t,d:e});self.sessionStorage.setItem(yn,n)}(t),t.source})),bn=["unitName","hostChannelNames"],_n=Symbol(),kn=Symbol(),Sn=Symbol(),En=Symbol(),In=Symbol(),xn=Symbol(),Nn=Symbol(),Cn=Symbol(),Ln=Symbol(),An=Symbol(),Tn=Symbol(),On=Symbol(),Mn=Symbol(),Pn=Symbol(),qn="ca-host-pub-3881938158959979",Rn={[qn]:{channels:{[_n]:"9312416333",[kn]:"2938579671",[Sn]:"1625498005",[En]:"1023712833",[In]:"4634804726",[xn]:"2008641380",[Nn]:"7119962562",[Cn]:"9695559711",[Ln]:"3517631340",[An]:"1234356586",[Tn]:"1709725652",[On]:"9396643988",[Mn]:"7608193248",[Pn]:"7265304661",position_content_top_silver:"9224215608",position_content_top:"7149287429",position_content_middle:"5564743012",position_content_middle_inread_alternative:"2336794504",position_content_middle_inread_fallback:"6877824686",position_fluid_fallback:"8190906359",position_fluid_premium:"1706438107",position_fluid_premium_fallback:"4085893700",position_content_middle_secondary:"7911133935",position_content_bottom:"5836205757",position_sticky_top:"6485663749",position_sticky_top_before_av:"8382478048",position_sticky_top_fallback_av:"6789623958",position_sticky_bottom_tablet:"7069396376",position_sticky_bottom_phone:"7044628028",position_sticky_bottom_chain_1:"4116394895",position_sticky_bottom_chain_fallback_1:"1685434992",position_sticky_bottom_chain_2:"7508607314",position_sticky_bottom_chain_fallback_2:"9372353320",position_sticky_bottom_chain_3:"8929500193",position_sticky_bottom_chain_fallback_3:"9
1020999533",position_skin_fallback:"4443233038",position_header_desktop_sequence_1:"1537297273","position_header_desktop_sequence_4+n":"9503988029",position_header_desktop_woavb:"1817069697",position_header_tablet_woavb:"8462369090",position_sidebar_top_woavb:"3130151368",position_sidebar_top_av_alternative:"9775450764",position_gutenberg_block:"3649876170",position_classic_widget:"4251661341"}}},jn={[cn]:Ln,[ln]:An,[un]:Tn,[dn]:On,[fn]:Mn,[pn]:Pn},Dn=a((function(){try{const e=wn();return{name:fe(jn,e)}}catch(e){return null}})),Un=a((function(){return void 0!==m("disable-adsense")})),$n=a((async function(){const e=await g("adsense");if(void 0===e)return null;const{client:t,units:n,host:o=null,advGroupHostChannelId:r=null}=e,i=null!==o&&de(Rn,o)?o:qn;return{client:t,units:n,advGroupHostChannelId:r,hostInfo:Object.assign({},Rn[i],{host:i})}}));async function Fn({unitName:e=null,hostChannels:t=[]}){var n;const{client:o=null,units:r,hostInfo:{host:i,channels:a}={}}=null!=(n=await $n())?n:{};if(null===o)return null;const s=(l=r,null===(c=e)?null:de(l,c)?l[c]:null!=(u=l.AUTO)?u:null);var c,l,u;const d=t.filter((e=>null!==e)).map((function({name:e=null,id:t=null}){if(t)return t;if(e)return function(e,t){return de(t,e)?t[e]:null}(e,a);throw new TypeError}));return{client:o,unit:s,host:i,hostChannels:d}}const Hn=a((async function(){var e;if(Un())return null;const{client:t=null,hostInfo:{host:n}={}}=null!=(e=await $n())?e:{};if(null===t)return null;await async function(){try{return await ct()}catch(e){return s(e),null}}();const{init:o}=await Gt({client:t,host:n}),r=[await Wn(),{name:_n},await Kn(),await Vn(),Dn()],{hostChannels:i}=await Fn({hostChannels:r}),a={hostChannels:i,sideRailAds:false};await me();const{slotFiller:c}=await o({autoAds:a});return c}));const Bn=i((function(e){return async(t,n)=>{if(null===await Hn())throw Error();return e(t,n)}}),Zt)((async function(e,t){const n=await Hn(),{unitName:o,hostChannelNames:r=[]}=t,i=We(t,bn),a=[await Wn(),...r.map((e=>({name:e}))),await Vn(),Gn(t),Dn()],s=await Fn({unitName:o,hostChannels:a});return n(e,Object.assign({},i,s))}));async function Wn(){const{advGroupHostChannelId:e}=await $n();return e?{id:e}:null}function Gn(e){return{name:zn(e)}}function zn(e){return Xt?Qt(e)?Sn:En:kn}async function Vn(){const e=await async function(){const e=await sn();if(e===en)return In;if(e===tn)return xn;if(e===nn)return Nn;return null}();return e?{name:e}:null}async function Kn(){return await async function(){await u;const e=document.querySelectorAll("script[data-block-on-consent]");for(const n of e){var t;const e=$(n.src);if(e&&("pagead2.googlesyndication.com"===e.hostname&&"/pagead/js/adsbygoogle.js"===e.pathname&&null!=(t=e.searchParams.get("host"))&&t.endsWith("pub-2644536267352236")))return n.remove(),!0}return!1}()?{name:Cn}:null}function Xn(e,t=null){var n;const o=null!=(n=m("adserver-host"))?n:"ad.altervista.org",r=new URL(`https://${o}/js.ad/size=${e}/`);if(r.searchParams.set("ref",`${self.location.hostname}${self.location.pathname}`),r.searchParams.set("r",Math.floor(Math.random()*36**10).toString(36)),t)for(const[e,n]of Object.entries(t))null!=n&&r.searchParams.set(e,n);const i=document.createElement("script");i.src=r;const a=async function(e){return await d(e),self.avadv.list.find((t=>t.el===e))}(i);return{content:i,displayed:(async()=>{const e=await a;return await e.displayed,{track(){self.avadv.track(e)}}})(),fetched:(async e=>{const t=await a;return null!=(e=t.fetched)?e:t.displayed})()}}let Jn=!1;const Yn=a((async function(){return await h("https://widgets.teads-xo.com/outbrain.js"),self.OBR})),Zn=a((function(){return self.matchMedia("(min-width: 488px)")}));const Qn=a((async function(){var e,t;return null!=(e=self)._taboola||(e._taboola=[]),self._taboola.push({article:"auto"}),null==(t=self.performance)||null==t.mark||t.mark("tbl_ic"),await h("https://cdn.taboola.com/libtrc/mondadoriitalian-network/loader.js"),self._taboola}));let eo=!1;function to(){eo=!0}
1function no(){return eo}let oo=!1;let ro=!1;const io=new WeakMap,ao=new MutationObserver((function(e){for(const{attributeName:t,target:n}of e){const e=io.get(n);w(so[t],n,e)}})),so={"data-ad-status"(e,{displayedResolve:t,displayedReject:n}){const{adStatus:o}=e.dataset;"filled"===o?t():"unfilled"===o&&n()}};const co=Object.isExtensible(document.adoptedStyleSheets)&&self.CSSStyleSheet.prototype.replaceSync,lo=co?function(e){const t=new self.CSSStyleSheet;return t.replaceSync(e),t}:function(e){const t=document.createElement("style");t.textContent=e;return(new self.Document).append(t),t.sheet};const uo=co?function(e,...t){e.adoptedStyleSheets.push(...t)}:function(e,...t){for(const n of t){const t=n.ownerNode.cloneNode(!0);e.append(t)}};function fo(e){return e.join(",")}function po(e){if(!self.CSS.supports(`(${e})`))throw new DOMException(`CSS feature ${e} not supported`,"NotSupportedError")}function ho(e){var t;return((null==(t=self.CSS)?void 0:t.escape)||mo)(e)}function mo(e){if(0===arguments.length)throw new TypeError("argument required");let t=e+"";return"-"===t?"\\-":(t=t.replace(/\0/g,"�"),t=t.replace(/[ -,./:-@[-^`{-~]/g,"\\$&"),t=t.replace(/[\x01-\x1F\x7F]/g,(e=>`\\${e.charCodeAt(0).toString(16)} `)),t=t.replace(/^(-?)(\d)/,"$1\\3$2 "),t)}const go=["iframeSource","headerHeight"];var vo=new WeakMap;class yo extends Et{constructor(){super(),Fe(this,vo,void 0);const e=document.createElement("a");e.relList.add("nofollow","noopener","noreferrer","sponsored"),e.target="_blank",e.classList.add("av-skin-link");const t=document.createElement("div");t.classList.add("av-skin-header");const n=document.createElement("div");n.classList.add("av-skin-layer-container"),n.append(t);const o=document.createElement("div");o.classList.add("av-skin-image");const r=document.createElement("div");r.classList.add("av-skin-layer-container"),r.append(o),e.append(n,r),He(vo,this,e)}connectedCallback(){this.append($e(vo,this))}loadSkin({backgroundColor:e,imageURL:t,smallImageURL:n=t,destinationURL:o,headerHeight:r,stickyHeight:i=0,scroll:a=!1}){const s=new URL(o);if("https:"!==s.protocol&&"http:"!==s.protocol)throw Error("Invalid skin destination URL protocol");if(!/^#([a-fA-F0-9]{3}){1,2}$/.test(e))throw Error("Invalid skin background color");
1if(!Number.isFinite(r)||r<=0||!Number.isFinite(i)||i<0||i>r)throw new RangeError("Invalid skin measures");const c={"background-color":e,"image-url":`url("${ho(t)}")`,"small-image-url":`url("${ho(n)}")`,"header-height":r+"px","sticky-height":i+"px"};for(const[e,t]of Object.entries(c))document.documentElement.style.setProperty("--av-skin-"+e,t);document.body.classList.toggle("av-skin-displayed",!0),document.body.classList.toggle("av-skin-scroll",a),document.body.classList.toggle("av-skin-sticky",i>0),$e(vo,this).href=s.href}}const wo=a((()=>It("av-adv-skin",yo)));async function bo(e,t=null){const{iframe:n,data:{avSkin:{colore_sfondo:o,img_web:r,img_web_low:i,url_puntamento_personalizzazione:a,altezza_testata:s,posizione:c}}}=await p(e,(({data:e})=>e.avSkin),t);return{iframeSource:n,backgroundColor:o,imageURL:r,smallImageURL:i,destinationURL:a,headerHeight:s,scroll:"fixed"!==c}}var _o=new WeakMap,ko=new WeakMap,So=new WeakSet;class Eo{constructor(e,t){Be(this,So),Fe(this,_o,void 0),Fe(this,ko,void 0),He(_o,this,e),He(ko,this,t)}check(){return De(So,this,Io).call(this)<=Date.now()}consume(){const e=Date.now();return!(De(So,this,Io).call(this)>e)&&(self.localStorage.setItem($e(_o,this),e+$e(ko,this)),!0)}}function Io(){const e=self.localStorage.getItem($e(_o,this)),t=Number(e);return Number.isFinite(t)?t:0}const xo="function"==typeof navigator.sendBeacon?(...e)=>navigator.sendBeacon(...e):function(e,t=null){const n=t instanceof URLSearchParams?t.toString():t;return fetch(e,{body:n,method:"POST",mode:"no-cors",credentials:"include",keepalive:!0}),!0};const No={clientId:"client_id",location:"page_location",title:"page_title",referrer:"page_referrer",language:"language",contentGroup:"content_group",contentId:"content_id",contentType:"content_type",linkClasses:"link_classes",linkDomain:"link_domain",linkId:"link_id",linkText:"link_text",linkUrl:"link_url",sessionEngaged:"session_engaged",value:"value"},Co=["clientId","eventName"];function Lo(e){return"string"==typeof e||"number"==typeof e?e:e+""}const Ao=["clientId","eventName"],To=Symbol(),Oo=Symbol(),Mo=Symbol(),Po={page_location:To,page_title:To,page_referrer:To,language:To,content_group:To,content_id:To,content_type:To,link_classes:To,link_domain:To,link_id:To,link_text:To,link_url:To,outbound:To,visible:To,session_engaged:To,value:Oo};const qo=new Set(["clientId","eventName",...Object.keys(Po),...Object.keys(No)]);const Ro=["eventName"],jo=a((function(){return self.dataLayer=self.dataLayer||[],Do("js",new Date),h("https://www.googletagmanager.com/gtag/js")}));function Do(){self.dataLayer.push(arguments)}function Uo(...e){jo(),Do(...e)}function $o(){return void 0!==m("disable-google-analytics")}function Fo(e){const t=a(e);return async e=>{(await t())(e)}}function Ho(){return()=>{}}function Bo(e){return $o()?Ho:e}const Wo=Bo((function({measurementId:e,apiSecret:t,userProperties:n=[]}){const o=new URL("https://www.google-analytics.com/mp/collect");o.searchParams.set("measurement_id",e),o.searchParams.set("api_secret",t);const r=new Set(n),i=function(e){if(0===e.size)return No;const t=Object.assign({},No);for(const n of e)t[n]=null;return t}(r);return function(e){let{clientId:t,eventName:n}=e,a=We(e,Co);const s={};for(const e of r)e in a&&(s[e]={value:Lo(a[e])});const c=ue(a,i);for(const[e,t]of Object.entries(c))c[e]=Lo(t);xo(o,JSON.stringify({client_id:t,user_properties:s,events:[{name:n,params:c}]}))}})),Go=Bo((function(e,{parametersDefinition:t={}}={}){!function(e){for(const[t,n]of Object.entries(e))if(qo.has(t)||n!==To&&n!==Oo&&n!==Mo)throw new RangeError}(t);const n=Object.assign({},t,Po);return function(t){let{clientId:o,eventName:r}=t,i=We(t,Ao);!function(e){if(/^([^a-zA-Z])|[^a-zA-Z0-9_]/.test(e))throw new RangeError(`Invalid GA4 event name "${e}"`)}(r);const a={v:2,tid:e,cid:o},s={en:r};for(const[e,t]of Object.entries(ue(i,No))){if(!de(n,e))throw new RangeError(`Invalid parameter "${e}": not defined`);const o=n[e],r=o===Oo,i=`${o===Mo?"u":"e"}p${r?"n":""}`,a=r?Number(t):t+"";s[`${i}.${e}`]=a}const c=new URLSearchParams(s);xo("https://www.google-analytics.com/g/collect?"+new URLSearchParams(a),c)}})),zo=Bo((function(e,t={}){const n=Object.assign({cookie_prefix:"gtag",groups:"av"},ue(t,No),{send_page_view:!1});return Uo("config",e,n),function(t){let{eventName:n}=t,o=We(t,Ro);Uo("event",n,Object.assign({},ue(o,No),{send_to:e}))}}));function Vo(...e){return t=>function(n){const o=e.map((e=>"function"==typeof e?e():e)),r=Object.assign({},...o);return t(Object.assign({},r,n))}}function Ko(){return e=>function(t){const n=Object.assign({},t);for(const[e,t]of Object.entries(n))null==t&&delete n[e];return e(n)}}function Xo(e){return t=>function(n){return t(Object.assign({},n,{[e]:Jo()}))}}function Jo(){const e=we;if(e===ge)return"error: no `__tcfapi`";if(e===ve)return"not available: CMP loading";if(e===ye)return"error";try{const{eventStatus:t}=e;if("cmpuishown"===t)return"not available: CMP showing UI";if("tcloaded"!==t&&"useractioncomplete"!==t)return"error: invalid `eventStatus`";const n=an(e);return n===en?"available: Google can serve personalized ads":n===tn?"available: Google can serve only nonpersonalized ads":n===nn?"available: Google can serve only limited ads 2.0":"error: unreachable"}catch(e){return"error: object reading"}}function Yo(){try{const[e]=self.performance.getEntriesByType("navigation");if(e)return e}catch(e){}return function(){const e=["redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","unloadEventStart","unloadEventEnd","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],t=["navigate","reload","back_forward"],n={n
1ame:document.URL,entryType:"navigation",startTime:0,get duration(){return this.loadEventEnd-this.startTime},initiatiorType:"navigation",nextHopProtocol:"",redirectCount:self.performance.navigation.redirectCount,type:t[self.performance.navigation.type]};for(const t of e){Object.defineProperty(n,t,{get:()=>Math.max(self.performance.timing[t]-self.performance.timing.navigationStart,0)})}return n}()}function Zo(e){const t=e.split(",");if(t.length<1||t.length>4)return null;let n=null;if(t[0].endsWith("-")&&(n=t.shift().slice(0,-1),!n||n.includes("-")||0===t.length))return null;let o=null;if(t.at(-1).startsWith("-")&&(o=t.pop().slice(1),!o||o.includes("-")||0===t.length))return null;if(t.length>2)return null;const[r,i=null]=t;return""===r||r.includes("-")||""===i||null!=i&&i.includes("-")?null:{prefix:Qo(n),start:Qo(r),end:Qo(i),suffix:Qo(o)}}function Qo(e){if(null===e)return null;try{return decodeURIComponent(e)}catch(t){return e}}const er=Symbol(),tr=Symbol(),nr=Symbol(),or=Symbol();async function rr(){const e=function(){const e=Yo(),{hash:t}=new URL(e.name),n=t.indexOf(":~:");if(-1===n)return{confidence:or,present:!1};const o=t.slice(n+3);return{confidence:er,present:!0,fragmentDirective:o}}();return e.confidence===er?e:async function(){const e=self.location.hash;await u;const t=document.querySelector(":target");if(null===t)return{confidence:or,present:!1};const{hash:n}=self.location,o=ir(n);if(n===e)return o===t?{confidence:tr,present:!1}:{confidence:tr,present:!0,element:t};const r=ir(e);if(o===t||r===t)return{confidence:nr,present:!1};return{confidence:nr,present:!0,element:t}}()}function ir(e){var t,n;const o=e.slice(1);if(!o)return;return null!=(t=null!=(n=document.getElementById(o))?n:document.querySelector(`a[name="${ho(o)}"]`))?t:null}const ar=["sourceElement"],sr=Symbol();function cr(e){return t=>async function(n){var o;const{sourceElement:r=null}=n,i=We(n,ar),a=r===sr?0:null!=(o=J(r))?o:Y(),{title:s,url:c,referrer:l}=Z(a);return t(Object.assign({title:s,location:G(c,H),referrer:l},await(null==e?void 0:e(a)),i))}}const lr=a((function(){let e=self.localStorage.getItem("av_cid");return e||(e=Math.floor(Math.random()*36**10).toString(36),self.localStorage.setItem("av_cid",e)),e}));async function ur(){const{accountId:e}=await g("common");return`${lr()}@${e}`}async function dr(e){return Q(e,"tracking")}const fr=Fo((async function(){return i(cr(pr),Ko())(zo("G-PK6YP6G4WV",{clientId:await ur()}))}));async function pr(e){const{accountId:t}=await g("common"),{branch:n,wpVersion:o,phpVersion:r,postId:i,postType:a,course:s,wellness:c,device:l,theme:u,autopilotSettings:d,advGroup:f,advTag:p,specialSponsorship:h}=await dr(e);return{wp_version:`WP ${o} @ PHP ${r}`,wpVersion:o,phpVersion:r,account:t,branch:n,postId:i,post_type:a,course:s,wellness:c,subpage_index:Z(e).pageIndex,device:l,theme:u,autopilot_settings:d,adv_group:f,adv_tag:p,special_sponsorship:null==h?void 0:h.name}}const hr=a((async function(){const{platform:e}=await g("common");return e})),mr={giallozafferano:"G-BKMXXCDHL5",giallozafferanoen:"G-8Y361YYB64",cookaround:"G-4HRXJDCP75",pianetamamma:"G-P324T0KMEY",zingarate:"G-ZFJZRZMCJP",soldionline:"G-DFW9G1N19T"},gr=Fo((async function(){const e=mr[await hr()];if(!e)return()=>{};const t={cookie_prefix:"",clientId:await it()};return i(cr(vr),Ko())(zo(e,t))}));async function vr(e){const{specialSponsorship:t,course:n}=await dr(e),{accountId:o}=await g("common"),r=t?`${t.hub?"Hub Ingredienti | ":""}${t.name}`:null;
1return{avAccount:o,avSubpage:Z(e).pageIndex,dimension7:r,dimension2:n}}const yr={[er]:"certain",[tr]:"high",[nr]:"medium",[or]:"low"};const wr="â¦";function br(e,t){if(e.length<=t)return e;const n=(t-wr.length)/2;if(n<=0)return e.slice(0,t);const o=e.slice(0,Math.ceil(n)),r=e.slice(-Math.floor(n));return`${o}${wr}${r}`}const _r="blank_target",kr="external_link",Sr=new Set,Er=new Set,Ir=new Set,xr=Lr(Sr),Nr=Lr(Er),Cr=Lr(Ir);function Lr(t){return function(n,{signal:o=null}={}){return self.addEventListener("click",Ar,{capture:!0}),t.add(n),o&&e(o).catch((()=>r())),r;function r(){t.delete(n),0===Sr.size&&0===Er.size&&0===Ir.size&&self.removeEventListener("click",Ar,{capture:!0})}}}function Ar(e){const t=e.composedPath().find((e=>"a"===e.localName));if(!t)return;const n=Tr(t);b(Ir,t,{previousIneligibilityReasons:n});const o=Tr(t);o.length?b(Er,t,{ineligibilityReasons:o,previousIneligibilityReasons:n}):b(Sr,t,{preventDefault:function(){e.preventDefault(),e.stopImmediatePropagation()},previousIneligibilityReasons:n})}function Tr(e){const{href:t,target:n}=e,o=[];if(""!==n&&"_self"!==n&&("_blank"===n?o.push(_r):o.push("invalid_target")),e.download&&o.push("download_link"),!t)return o.push("no_href"),o;const r=$(t);if(!r)return o.push("invalid_url"),o;"https:"!==r.protocol&&"http:"!==r.protocol&&o.push("invalid_protocol");const i=new URL(e.ownerDocument.location.href);return r.hostname!==i.hostname?o.push(kr):function(e,t){if(!e.href.includes("#"))return!1;const n=/#.*/;return e.href.replace(n,"")===t.href.replace(n,"")}(r,i)&&o.push("fragment_link"),o}var Or=new WeakMap,Mr=new WeakMap,Pr=new WeakMap,qr=new WeakMap,Rr=new WeakMap,jr=new WeakSet;class Dr extends Et{constructor({ad:{content:e,fetched:t},closeButtonLabel:n}){super(),Be(this,jr),Fe(this,Or,void 0),Fe(this,Mr,new AbortController),Fe(this,Pr,void 0),Fe(this,qr,void 0),Fe(this,Rr,void 0);const r=document.createElement("div");if(n){const e=document.createElement("button");e.textContent=n,e.addEventListener("click",(()=>{e.disabled=!0,De(jr,this,Wr).call(this)})),r.append(e)}else r.classList.add("av-no-close-button");const i=document.createElement("div");i.classList.add("av-interstitial-ad-container"),i.append(e),r.classList.add("av-interstitial-container"),r.append(i),He(Or,this,r),He(Pr,this,o()),t.then((()=>De(jr,this,Hr).call(this))).catch($e(Pr,this).reject),$e(Pr,this).promise.catch((()=>null)).then((()=>$e(Mr,this).abort()))}async connectedCallback(){try{if(await De(jr,this,Fr).call(this),!$e(qr,this).check())throw Error("Rate limit exceeded for interstitial banner");$e(Or,this).hidden=!0,this.append($e(Or,this))}catch(e){$e(Pr,this).reject(e)}}disconnectedCallback(){$e(Pr,this).reject()}get displayed(){return $e(Pr,this).promise}}function Ur(){$e(Or,this).hidden=!0}function $r(){$e(Or,this).hidden=!1,$e(Pr,this).resolve()}async function Fr(){const{accountId:e}=await g("common");He(qr,this,new Eo("AVAdvInterstitial@"+e,144e5))}function Hr(){xr(De(jr,this,Br).bind(this),{signal:$e(Mr,this).signal})}function Br(e,{preventDefault:t}){if(!$e(qr,this).consume())return;t();const n=e.href;He(Rr,this,n),self.history.pushState({avInterstitialNavigation:n},document.title),self.addEventListener("popstate",(({state:e})=>{const{avInterstitialNavigation:t}=null!=e?e:{};t?self.location.replace(t):De(jr,this,Ur).call(this)}));const o=document.createElement("link");o.rel="prefetch",o.as="document",o.href=n;const r=document.createElement("link");r.rel="prerender",r.as="document",r.href=n,$e(Or,this).append(o,r),De(jr,this,$r).call(this)}function Wr(){self.location.replace($e(Rr,this))}function Gr(...e){const{content:t,displayed:o}=Xn(...e),r=Vr(t),i=async function(){const{track:e}=await o,t=p(r,(e=>{var t;return null==(t=e.data)?void 0:t.avInterstitial})),{iframe:i,data:a}=await n(t,4e3),{avInterstitial:{width:s,height:c,mode:l}}=a;if("iframe"!==l)throw new RangeError;Kr(s),Kr(c),i.width=s,i.height=c;const u=R(i);return async function(){await u;i.contentWindow.postMessage({avInterstitial:{status:"visible"}},"*"),e()}(),{displayed:u}}();return{content:r,fetched:i}}function zr(...e){const{content:t,fetched:n}=Xn(...e);return{content:Vr(t),fetched:n}}function Vr(e){const t=document.createElement("div");return t.classList.add("av-interstitial-wrap"),t.append(e),t}function Kr(e){if(!Number.isInteger(e))throw new TypeError;if(e<=0)throw new RangeError}const Xr=a((()=>It("av-adv-interstitial",Dr)));let Jr=!1;const Yr=Fo((async function(){const e={account:To,postType:To,theme:To,autopilotSettings:To,advGroup:To,branch:To,device:To,tcfStatus:To,unit:To,error:To},{accountId:t}=await g("common"),{postType:n,theme:o,autopilotSettings:r,advGroup:a,branch:s,device:c}=await g("tracking");return i(Vo({clientId:Math.random().toString(),location:document.location.href,account:t,postType:n,theme:o,autopilotSettings:r,advGroup:a,branch:s,device:c}),Xo("tcfStatus"))(Go("G-MMP4H4GNTJ",{parametersDefinition:e}))}));function Zr(e,{previousIneligibilityReasons:t}){Yr({eventName:"eligibleClick",linkUrl:e.href,linkText:e.innerText,error:t.length?"Was ineligible: "+t.join(" "):"None"})}function Qr(e,{ineligibilityReasons:t}){Yr({eventName:"ineligibleClick",linkUrl:e.href,linkText:e.innerText,error:"Ineligibility reasons: "+t.join(" ")})}const ei=["rateLimit"];const ti="data-av-experiment-",{documentElement:ni}=document;function oi(e){return ni.getAttribute(`${ti}${e}`)}const ri=["resize"];const ii={googleConsentCheck:async(e,{canServe:t,cannotServe:n})=>ai(e,await sn()===nn?n:t),async __experimentalChain(e,{chain:n}){let o;for(const{config:r,loadNextAfter:i}of n)o=await ai(e,r),await t(i);return o},async sequence(e,{key:t,sequence:n}){const o="AVAdvSequence"+t,r=Math.max(0,parseInt(await Ye(o),10)||0),i=n[Math.min(r,n.length-1)];return tt(o,r+1+"",{maxAge:144e5,domain:self.location.hostname,secure:!1}),ai(e,i)},async abntest(e,{variants:t,per:n="pageview"}){let o,r=0;for(const{frequency:e}of t)r+=e;if("pageview"===n)o=Math.random()*r;else{if("day@Europe/Rome"!==n)throw new RangeError;{const e=new Date,t=Ve(e,"Europe/Rome");o=(e.getTime()+t)/ze%r}}for(const{config:n,frequency:r}of t)if(o-=r,o<0)return ai(e,n);throw Error()},async pageExperiment(e,{id:t,variants:n,missing:o}){const r=oi(t);return ai(e,null===r?o:fe(n,r))},async fallback(e,{chain:t}){for(const n of t)try{return await ai(e,n)}catch(e){}throw Error()},avSkin:i(_e)((async function(e){!function(){const e="pointer-events:none",t="--a:var(--b)";if(po("(position:sticky) or (position:-webkit-sticky)"),po(e),po(t),!self.matchMedia("(min-width: 1280px)").matches)throw Error("Viewport too narrow for skin")}();const{content:t,displayed:o}=Xn("6X6"),r=document.createElement("div");r.classList.add("av-skin-viewability-box"),r.append(t);const i=document.createElement("div");i.classList.add("av-skin-viewability-layer"),i.append(r);const a=document.createElement("div");a.classList.add("av-skin-layer-container"),a.append(i),e.el.append(a),wo();const s=new yo,c=new AbortController,l=bo(a,c.signal);try{const{track:t}=await n(o,8e3),r=await n(l,4e3);e.el.append(s),u(r),t()}catch(e){throw c.abort(),e}return void async function(){for(;;)u(await bo(a))}();function u(t){var n;let{iframeSource:o,headerHeight:r}=t,i=We(t,go);const a=null!=(n=e.getHeightInfo().height)?n:1/0,c=Math.max(Math.min(Number(r),a),0);s.loadSkin(Object.assign({},i,{stickyHeight:0,headerHeight:c})),function(e){e.classList.add("av-skin-viewable"),e.classList.add("skin-viewability")}(o)}})),avInterstitial:i(_e)((async function(e,{unit:t,subUnit:n=null,oop:o=!1}){Xr();const r=await async function(e,t,n){var o;const r={"it-IT":"Chiudi annuncio","en-US":"Close ad"},i=null!=(o=r[document.documentElement.lang])?o:r["en-US"];return{ad:(n?Gr:zr)(e,{subUnit:t}),closeButtonLabel:i}}(t,n,o),i=new Dr(r);return e.el.append(i),i.displayed.then((()=>{fr({eventName:"interstitial_internal_link_display",visible:null!=n?n:t})})),i.displayed})),avVideo:i(_e)((async function(e,{videoId:t=null,inline:n=!1}){var o;if(Jr)throw new DOMException("Only a single video banner per page is supported","NotSupportedError");Jr=!0;const r=null!=(o=null!=t?t:m("adv-video-default-id"))?o:null,i=n?"":null,{content:a,displayed:s}=Xn("10X0",{videoId:r,videoContent:i});return e.el.append(a),s})),altervista:i(Zt,_e,(function(e){return async(t,n)=>{let{resize:o=null}=n,r=We(n,ri);if(o){const{heightMode:e,height:n}=function(e){if(!de(e,"height"))throw Error("Missing required `height` property");const{height:t,allow_layout_shift_inducing_expansion:n=!1}=e;if("adsense_responsive"===t)return{heightMode:$t,height:null};if("aspect_ratio_16_9"===t)return{heightMode:Ft,height:null};return{heightMode:n?Ut:Dt,height:t}}(o);t.requestResize(e,n)}return e(t,r)}}))((async function(e,{unit:t,subUnit:n}){const{content:o,displayed:r}=Xn(t,{subUnit:n});return e.el.append(o),r})),outbrain:i((function(e){return async(t,n)=>{if(await async function(){const{advGroup:e}=await g("tracking");return e.endsWith("MarcoPolo")?3:e.endsWith("Platinum")?2:e.endsWith("Gold")?1:0}()<2)throw Error();return e(t,n)}}),Zt,_e,(function(e){return async(t,n)=>{let{rateLimit:o=null}=n,r=We(n,ei);if(o){const{key:e,interval:t}=o;if("string"!=typeof e)throw new TypeError;if(!Number.isFinite(t)||t<=0)throw new TypeError;const{accountId:n}=await g("common");
1if(!new Eo(`av_adv_ratelimit_${e}@${n}`,t).consume())throw Error("Rate limit exceeded for "+e)}return e(t,r)}}))((async function(e,{unit:t,wideUnit:n=null}){const o=J(e.el);if(0!==o&&null!==o)throw new DOMException("Outbrain is not supported in secondary pages","NotSupportedError");const r=document.createElement("div");var i,a;r.dataset.widgetId=(i=t,null===(a=n)?i:Zn().matches?a:i),r.classList.add("OUTBRAIN"),e.el.append(r),(await Yn()).extern.researchWidget()})),taboola:i(Zt,_e)((async function(e,{mode:t,placement:n}){const o=J(e.el);if(0!==o&&null!==o)throw new DOMException("Taboola is not supported in secondary pages","NotSupportedError");const r=document.createElement("div"),i=Math.floor(1296*Math.random()).toString(36);r.id="taboola-container-"+i;const a=await Qn();a.push({container:r.id,mode:t,placement:n}),e.el.append(r),a.push({flush:!0})})),avInRead:i(Zt,_e)((async function(e){if(oo)throw new DOMException("Only a single inread banner per page is supported","NotSupportedError");if(no())throw new DOMException("An InRead banner has already been requested","NotSupportedError");oo=!0,to();const{content:t,displayed:n}=Xn("640X5");return e.el.append(t),n})),teadsInRead:i(Zt,_e)((async function(e){var t;const n=null!=(t=m("adv-teads-inread-page-id"))?t:null;if(null===n)throw new DOMException("Teads InRead is not supported for this account","NotSupportedError");if(ro)throw new DOMException("Only a single teads banner per page is supported","NotSupportedError");if(no())throw new DOMException("An InRead banner has already been requested","NotSupportedError");ro=!0,to();const o=document.createElement("div");o.id="inRead",e.el.append(o);const r=(i=o,ao.observe(i,{attributes:!0,attributeFilter:Object.keys(so)}),new Promise(((e,t)=>{io.set(i,{displayedResolve:e,displayedReject:t})})));var i;return await h(`https://a.teads.tv/page/${n}/tag`),r})),experimentalAdkImpact:i(_e)((async function(e){if(Jn)throw new DOMException("Only a single impact banner per page is supported","NotSupportedError");Jn=!0;const{content:t,displayed:n}=Xn("2X7");return e.el.append(t),n})),adsense:Bn,staticImage:i(Zt)((async function(e,{imgSrc:t,linkHref:n,linkTitle:o,w:r,h:i,showOnPlatforms:a=null,showOnDevices:s=null,trackName:c=null,trackDetail:l=null}){if(!t||!n||!o)throw Error("Invalid config: missing parameters");if(!(Number.isFinite(r)&&r>0&&Number.isFinite(i)&&i>0))throw new TypeError("Invalid width or height");if(a){const{platform:e}=await g("common");if(!a.includes(e))throw Error("Banner disabled on current platform")}if(s){const{device:e}=await g("tracking");if(!s.includes(e))throw Error("Banner disabled on current device type")}const u=document.createElement("img");u.src=t,u.width=r,u.height=i,u.alt=o;const f=document.createElement("a");f.href=n,f.title=o,f.relList.add("nofollow","noopener","noreferrer","sponsored"),f.target="_blank",f.append(u),e.el.append(f);const p=d(u);return c&&function(e,t,n,o){const r=n.replace(/^./,(e=>e.toUpperCase()));let i=!1;e.addEventListener("click",(e=>{e.defaultPrevented||Yr({eventName:`ad${r}Click`,unit:o,visible:i})})),async function(){await t,i=!0,await R(e),Yr({eventName:`ad${r}View`,unit:o})}()}(u,p,c,l),p}
1)),track:async function(e,{name:t,detail:n=""}){if("string"!=typeof t)throw new TypeError;return Yr({eventName:"track"+t.replace(/^./,(e=>e.toUpperCase())),unit:n}),Promise.reject()}};async function ai(e,t){return e.el.textContent="",ii[t.type](e,t)}function si(e){return function(e,t){return e.endsWith(t)?Number(e.slice(0,-t.length)):NaN}(e,"px")}function ci(e){if(e!==Dt&&e!==Ut&&e!==$t&&e!==Ft)throw new RangeError}var li=new WeakMap,ui=new WeakMap;class di{constructor(e,t){Fe(this,li,void 0),Fe(this,ui,void 0),He(li,this,e),He(ui,this,t)}get el(){return $e(ui,this)}async requestResize(e,t=null){if(await j($e(li,this)),e===Dt||e===Ut){if(!Number.isInteger(t)||t<0)throw new RangeError("Invalid height value")}else{if(e!==$t&&e!==Ft)throw new RangeError("Unknown height mode");if(null!==t)throw new RangeError("Invalid height value, only `null` allowed")}const n=null!==t?t+"px":"";var o;$e(li,this).style.setProperty("--av-adv-slot-height",n),$e(li,this).dataset.avAdvSlotHeightMode=(ci(o=e),o)}getHeightInfo(){const e=$e(li,this),t=e.style.getPropertyValue("--av-adv-slot-height"),n=t?si(t):null;try{const t=function(e){return ci(e),e}(e.dataset.avAdvSlotHeightMode);return{heightMode:t,height:n}}catch(e){return{heightMode:null,height:null}}}}const fi=(function(e){if(e.length>1)throw Error();return lo(e.raw[0])})`:host>div{min-height:var(--av-adv-slot-height);grid-template-columns:100%;display:grid}:host>div>*{grid-area:1/1;display:flow-root}slot:not([name]){contain:strict}slot[hidden],:host(:not(.av-adv-stack-isolated)) slot:not([name]){display:none}:host(.av-adv-stack-isolated) slot[name=ad]{isolation:isolate}:host(.av-adv-stack-isolated[data-av-adv-slot-height-mode=fixed]) slot[name=ad]{height:var(--av-adv-slot-height);overflow:clip}`;var pi,hi=new WeakMap,mi=new WeakMap;class gi extends Et{constructor(e=null){super(),Fe(this,hi,o()),Fe(this,mi,void 0),e&&(this.dataset.avadvConfig=JSON.stringify(e));const t=this.attachShadow({mode:"closed"});uo(t,fi);const n=document.createElement("div"),r=document.createElement("slot");He(mi,this,r);const i=document.createElement("slot");i.name="ad",n.append(r,i),t.append(n)}get advDisplayed(){return $e(hi,this).promise}async connectedCallback(){const e=document.createElement("div");e.slot="ad",this.append(e);const t=new di(this,e);try{await ai(t,JSON.parse(this.dataset.avadvConfig)),$e(mi,this).hidden=!0,$e(hi,this).resolve()}catch(n){$e(hi,this).reject(n),e.textContent="",await t.requestResize(Dt,0),this.hidden=!0}}}class vi extends Et{async connectedCallback(){const e=this.dataset.videoId,t=new gi({type:"avVideo",videoId:e,inline:!0});this.prepend(t);try{await t.advDisplayed}catch(e){t.remove();const n=await y(this,(e=>{var t,n;return null!==(null!=(t=null==(n=e.dataset)?void 0:n.avFallback)?t:null)}));this.replaceChildren(n.content)}}}async function yi({method:e,pathname:t,sortedQuery:n,sortedHeaders:o,payload:r,service:i,region:a,accessKeyId:s,secretAccessKey:c}){let l="";for(const[e,t]of Object.entries(o))l+=`${e}:${t}\n`;const u=Object.keys(o).join(";"),d=e+"\n"+t+"\n"+n+"\n"+l+"\n"+u+"\n"+await bi(r),f=await bi(d),p=o["x-amz-date"],h=[p.slice(0,8),a,i,"aws4_request"],m=h.join("/");let g=Pe("AWS4"+c);for(const e of h)g=await _i(g,e);const v="AWS4-HMAC-SHA256\n"+p+"\n"+m+"\n"+f;return`AWS4-HMAC-SHA256 Credential=${s}/${m}, SignedHeaders=${u}, Signature=`+qe(await _i(g,v))}const wi=null!=(pi=self.crypto)?pi:self.msCrypto;async function bi(e){return qe(await wi.subtle.digest("SHA-256",Pe(e)))}async function _i(e,t){const n=await wi.subtle.importKey("raw",e,{name:"HMAC",hash:"SHA-256"},!1,["sign"]);return wi.subtle.sign("HMAC",n,Pe(t))}const[ki,Si]=function(e){let t="",n=0;for(;;){for(const o of e){const e=o.charAt(n);if(!e)return t;t+=e}n++}}(["AIXNKAAMR4:Th44d6FCnOSjIkvaIwT4","KAYVE67H5OwmXwM24Fn/K/o6tO9jKO"]).split(":"),Ei=function({stream:e,region:t,accessKeyId:n,secretAccessKey:o}){const r="firehose",i=`${r}.${t}.amazonaws.com`;return async function(a){const s=JSON.stringify(a)+"\n",c=btoa(String.fromCharCode(...Pe(s))),l=JSON.stringify({Record:{Data:c},PartitionKey:Math.random()<.5?"main":"dual",DeliveryStreamName:e}),u=(new Date).toISOString(),d={host:i,"x-amz-date":u.replace(/[:-]|\.\d{3}/g,""),"x-amz-target":"Firehose_20150804.PutRecord"},f="POST",p=Object.assign({},d,{"Content-Type":"application/x-amz-json-1.1",Authorization:await yi({method:f,pathname:"/",sortedQuery:"",sortedHeaders:d,payload:l,service:r,region:t,accessKeyId:n,secretAccessKey:o})});fetch(`https://${i}/`,{method:f,headers:p,body:l})}}({stream:"IconaDeliveryStream",region:"eu-central-1",accessKeyId:ki,secretAccessKey:Si});async function Ii(e,t="view"){const{accountId:n}=await g("common"),o={timestamp:Date.now(),account:n,action:t,source:document.location.href,destination:e.href};e.dataset.storeProductId&&(o.asin=e.dataset.storeProductId),Ei(o)}
1class xi extends Et{connectedCallback(){U((e=>this.classList.toggle("visible",!e)),!1)}}let Ni,Ci;const Li=a((async function(){if("reload"!==Yo().type)return!1;return self.performance.timeOrigin-Number(self.sessionStorage.getItem(await Ti()))<1e4}));async function Ai(){return await Li()?"autoreload":async function(){const e=Yo();return e.activationStart||document.prerendering?"prerender":e.type}()}async function Ti(){const{accountId:e}=await g("common");return"autoreload@"+e}function Oi(e){if(!e)return Ni=Date.now(),void(Ci>0||"visible"!==document.visibilityState&&async function(){const e=self.performance.timeOrigin+self.performance.now();self.sessionStorage.setItem(await Ti(),e),self.location.reload()}());Ci-=Date.now()-Ni}const Mi=a((()=>Ui("first-input",(e=>({value:e.processingStart-e.startTime,entry:e}))))),Pi=a((()=>Ui("paint",(e=>"first-contentful-paint"!==e.name?null:{value:e.startTime,entry:e})))),qi=a((()=>Ui("paint",(e=>"first-paint"!==e.name?null:{value:e.startTime,entry:e})))),Ri=a((()=>new Promise((e=>{let t=null;const{unregister:n,syncFlush:o}=$i("largest-contentful-paint",(e=>{t=e})),r=["scroll","click","keydown","visibilitychange"];function i(){o(),t&&e({value:t.startTime,entry:t});for(const e of r)document.removeEventListener(e,i,{capture:!0});n()}for(const e of r)document.addEventListener(e,i,{capture:!0})})))),ji=a((function(){if(!Fi("layout-shift"))return()=>null;let e=0;const{syncFlush:t}=$i("layout-shift",(function(t){t.hadRecentInput||(e+=t.value)}));return function(){return t(),{value:e}}}));const Di=a((function(){if(!Fi("layout-shift"))return()=>null;let e,t=0,n=[],o=0,r=-1/0,i=-1/0;const{syncFlush:a}=$i("layout-shift",(function(a){if(a.hadRecentInput)return;const s=a.startTime;(i+1e3<s||r+5e3<s)&&(r=s,o=0,e=[]),o+=a.value,i=s,e.push(a),t<o&&(t=o,n=e)}));return function(){return a(),{value:t,entries:n}}}));function Ui(e,t){return new Promise((n=>{const{unregister:o}=$i(e,(function(e){const r=t(e);r&&(n(r),o())}))}))}function $i(e,t){if(!Fi(e))return{unregister(){},syncFlush(){}};function n(e){for(const n of e)try{t(n)}catch(e){}}const o=new PerformanceObserver((e=>n(e.getEntries())));return o.observe({type:e,buffered:!0}),{unregister(){o.disconnect()},syncFlush(){n(o.takeRecords())}}}function Fi(e){var t;return!!(null==(t=self.PerformanceObserver)||null==(t=t.supportedEntryTypes)?void 0:t.includes(e))}const Hi={metricName:"FP",goodThreshold:1e3,buckets:[0,250,500,750,1e3,1500,2e3]},Bi={metricName:"FCP",goodThreshold:1500,buckets:[0,500,1e3,1500,2e3,2500,3e3]},Wi={metricName:"LCP",goodThreshold:2500,buckets:[0,1e3,1500,2e3,2500,3e3,3500]},Gi={metricName:"FID",goodThreshold:100,buckets:[0,25,50,75,100,125,150]},zi={metricName:"classicCLS",goodThreshold:.1,buckets:[0,.025,.05,.075,.1,.125,.15]},Vi={metricName:"windowedCLS",goodThreshold:.1,buckets:[0,.025,.05,.075,.1,.125,.15]},Ki={metricName:"INP",goodThreshold:200,buckets:[0,50,100,150,200,250,300]};let Xi=0;function Ji(){const e=ji()();if(!e)return;const{value:t}=e;ra(zi,{value:t-Xi,totalValue:t}),Xi=t}let Yi=0;function Zi(){const e=Di()();if(!e)return;const{value:t,entries:n}=e;let o=null,r=0;for(const e of n)for(const t of e.sources){if(!t.node)continue;const e=Math.max(da(t.currentRect),da(t.previousRect));e>r&&(r=e,o=t.node)}ra(Vi,{value:t-Yi,totalValue:t},o),Yi=t}const Qi=a((async function(){const{accountId:e}=await g("common"),{postType:t,theme:n,autopilotSettings:o,advGroup:r,branch:a,device:s}=await g("tracking"),c=Math.random().toString(),l=await Ai();return i(Vo({clientId:c,location:document.location.href,pageviewId:c,account:e,postType:t,theme:n,autopilotSettings:o,advGroup:r,branch:a,device:s,navigationType:l}),Xo("tcfStatus"),Ko())})),ea=["pageFP","pageFPBucketed","pageFPGood","pageFCP","pageFCPBucketed","pageFCPGood","pageLCP","pageLCPBucketed","pageLCPGood","pageFID","pageFIDBucketed","pageFIDGood","pageClassicCLS","pageClassicCLSBucketed","pageClassicCLSGood","pageWindowedCLS","pageWindowedCLSBucketed","pageWindowedCLSGood"],ta=Fo((async function(){return i(await Qi())(Wo({measurementId:"G-JCVJYE14HH",apiSecret:"RciieJt8Tk6b59Hmqr8vTQ",userProperties:ea}))})),na=Fo((async function(){return i(await Qi())(Wo({measurementId:"G-X6H12JT5CD",apiSecret:"2mwuXfJ-QbqqKNfQLHI5GA",userProperties:["pageINP","pageINPBucketed","pageINPGood"]}))})),oa=new Map;function ra({metricName:e,goodThreshold:t,buckets:n},{value:o,totalValue:r=o,nodeAlt:i=null,dataExtra:a={}},s=null,c=ta){var l;const u=null!=(l=oa.get(e))?l:0;oa.set(e,u+1);const d=e.replace(/^./,(e=>e.toUpperCase())),f=Object.assign({},a,{eventName:e,eventNo:u,value:o,bucketedValue:ua(o,n),isGood:o<=t,["page"+d]:r,[`page${d}Bucketed`]:ua(r,n),[`page${d}Good`]:r<=t});if(s){const e=fa(s);f.nodePath=e.path,f.nodeText=e.text}if(i){const e=fa(i);f.nodeAltPath=e.path,f.nodeAltText=e.text}c(f)}const ia=a((async function(){return(async()=>Function("_","return import(_)")("https://unpkg.com/web-vitals@3/dist/web-vitals.attribution.js?module"))()}));function aa(){return function(e){const t=e.slice().sort();let n="";for(const e of t){var o;n+=`${e}:${null!=(o=oi(e))?o:""};`}return n}(function(){const e=[];for(const t of ni.getAttributeNames())t.startsWith(ti)&&e.push(t.substring(19));return e}().filter((e=>e.startsWith("inp-"))))}const sa=[];function ca(e){if(sa.length>=30)return;const t=self.performance.now(),n=e.target;sa.push({timestamp:t,target:n})}function la(e,t){for(const{timestamp:n,target:o}of sa)if(e<=n&&n<=t)return o;return null}function ua(e,t){for(const n of t)if(e<=n)return n;return"> "+t[t.length-1]}function da({width:e,height:t}){return e*t}function fa(e){if(!e)return{path:"none",text:""};const t=e.textContent.slice(0,100);let n="",o=e;for(e.nodeType!==Node.ELEMENT_NODE&&(n=`(${e.nodeName})`,o=o.parentNode);o&&o.nodeType===Node.ELEMENT_NODE;){let e=pa(o);const t=!!e;if(!e){e=`${o.tagName}${Array.from(o.classList).map((e=>"."+e)).join("")}`}if(n=e+(n?" > "+n:""),t)break;o=o.parentNode}return n=`${e.isConnected?"":"!"}${n}`,{path:n,text:t}}function pa(e){if(e===e.ownerDocument.body)return e.tagName;
1const t=[".hentry","BUTTON.iubenda-cs-accept-btn","BUTTON.iubenda-cs-reject-btn","BUTTON.iubenda-cs-customize-btn"];for(const n of t)if(e.matches(n))return n;return e.id?"#"+e.id:null}const ha={1:ke,3:ke,5:ke,8:ke,9:ke,10:ke},ma=a((async function(){if(Le(await me(),ha))return null;const e=function(){if(self.fbq)return self.console.warn("fbevents.js was already initialized, aborting our init. It might be too late for `disablePushState` to take effect, extra pageview events might be sent."),self.fbq;function e(...t){e.callMethod?e.callMethod(...t):e.queue.push(t)}Object.assign(e,{loaded:!0,version:"2.0",push:e,queue:[],disablePushState:!0}),self.fbq=e,self._fbq||(self._fbq=self.fbq);return e}();return await h("https://connect.facebook.net/en_US/fbevents.js"),e}));const ga={1:ke,3:ke,5:ke,8:ke,9:ke,10:ke},va=a((async function(){if(Le(await me(),ga))throw Error();const e=document.documentElement.lang.replace("-","_");await h("https://connect.facebook.net/"+e+"/sdk.js");const t=self.FB;return t.init({version:"v20.0"}),t}));class ya extends Et{async connectedCallback(){const e=await va(),t=document.createElement("div");t.classList.add("fb-video"),t.dataset.href=this.dataset.href,t.dataset.allowfullscreen="true",t.dataset.lazy="true",this.appendChild(t),e.XFBML.parse(this)}}function wa(e,t){const n=e.groupIndex+"_"+e.itemIndex+"_"+e.alternativeIndex;void 0===t.hits[n]?t.missing[n]=e:t.items[n]=t.hits[n]}function ba(e,t,n){if(!e)return;const o=e.children;if(o.length>0&&"a"===o[0].tagName.toLowerCase())return;const r=document.createElement("a");n&&r.setAttribute("title",n),r.setAttribute("href",t),r.setAttribute("target","_blank"),r.setAttribute("rel","nofollow sponsored noopener"),r.setAttribute("data-auto","1"),r.textContent=e.textContent,e.textContent="",e.appendChild(r)}const _a=fo([".recipe-tools-group",".wp-block-altervista-tools-group"]),ka=fo([".av-recipe-list li",".wp-block-altervista-tools-group > .av-inner-blocks-content > .wp-block-altervista-tool"]);function Sa(e){for(const t of e){let e=document.querySelectorAll(_a)[t.groupIndex].querySelectorAll(ka)[t.itemIndex];!1!==t.alternativeIndex&&(e=e.querySelectorAll(".av-recipe-tool-alternative, .tool-alternative")[t.alternativeIndex]);const n=e.querySelector(".av-recipe-tool-category, .tool-category"),o=e.querySelector(".av-recipe-tool-model, .tool-model");t.modelUrl&&ba(o,t.modelUrl,t.modelTitle),t.categoryUrl&&ba(n,t.categoryUrl,t.categoryTitle)}}let Ea,Ia;async function xa(e,t){return Ea=e,Ia=t,await async function(){return await h("https://www.gstatic.com/firebasejs/11.1.0/firebase-app-compat.js"),h("https://www.gstatic.com/firebasejs/11.1.0/firebase-messaging-compat.js")}(),async function(){const e={apiKey:"AIzaSyCyrmdgp18m4jIfizAbdFMy62KtCbNcz9g",authDomain:"av-test-f4c9c.firebaseapp.com",databaseURL:"https://av-test-f4c9c.firebaseio.com",projectId:"av-test-f4c9c",storageBucket:"av-test-f4c9c.firebasestorage.app",messagingSenderId:"43975754916",appId:"1:43975754916:web:66900d62f957cef4271231",measurementId:"G-1G6EFY3ZZ6"};self.firebase.initializeApp(e);const t=self.firebase.messaging();if("serviceWorker"in navigator){const e=Ea.service_worker_url;self.console.log("Service Worker URL:",e),navigator.serviceWorker.register(e).then((function(e){self.console.log("Service worker registration succeeded:",e),Ia.setServiceWorkerRegistration(e),Ia.get_token()})).catch((function(e){self.console.log("Service worker registration failed:",e)})),navigator.serviceWorker.addEventListener("message",(function(e){self.console.log("Client message received",e.data)}))}else self.console.log("Service workers are not supported."),"function"==typeof Ia.onUnsupported&&Ia.onUnsupported();t.onMessage((function(e){self.console.log("Message received. ",e)}))}()}const Na={get(e){let t,n;const o=self.document.cookie,r=e+"=";if(!o)return null;if(n=o.indexOf("; "+r),-1===n){if(n=o.indexOf(r),0!==n)return null}else n+=2;return t=o.indexOf(";",n),-1===t&&(t=o.length),decodeURIComponent(o.substring(n+r.length,t))},set(e,t,n,o,r,i){const a=new Date;"object"==typeof n&&n.toGMTString?n=n.toGMTString():parseInt(n,10)?(a.setTime(a.getTime()+1e3*parseInt(n,10)),n=a.toGMTString()):n="",self.document.cookie=e+"="+encodeURIComponent(t)+(n?"; expires="+n:"")+(o?"; path="+o:"")+(r?"; domain="+r:"")+(i?"; secure":"")},remove(e,t,n,o){this.set(e,"",-1e3,t,n,o)}};let Ca,La,Aa,Ta={};async function Oa(e,t,n){return Ca=e,La=t,Ta=n,await u,Aa=self.document.getElementById("enable_push_notification"),!!Aa&&(await async function(){Ta.displayBox=function(){const e=Na.get("push_notification_denied");if("denied"!==self.Notification.permission&&"yes"!==e)document.querySelector(".av-webpush").style.display="flex";else{self.console.log("Il visitatore ha negato o chiuso il box delle notifiche");const e=new Event("push_permissiondenied");self.document.dispatchEvent(e)}}
1,Ta.afterTokenRequest=function(){!function(){if(""!==Ta.token){self.console.log("token found");let e,t=[];if("undefined"!=typeof Storage){const n=Na.get("push_notification_token");t=Na.get("push_notification_topics"),e=Na.get("push_notification_disable_ws"),n!==Ta.token&&(e="no"),t&&n===Ta.token?(self.console.log("cache topics"),t=t.split(",")):t=[]}-1===t.indexOf("default")&&"yes"!==e?(self.console.log('Il topic "default" non è associato al cookie del visitatore'),La.get_token_topics(Ta.token,(function(e){if(self.console.log("Ho chiesto al web service i topics del visitatore",e.topics),e.success&&e.topics.length>0&&(t=e.topics),Na.set("push_notification_topics",t.join(","),86400,Ca.cookie_path),Na.set("push_notification_token",Ta.token,86400,Ca.cookie_path),Na.set("push_notification_disable_ws","yes",86400,Ca.cookie_path),0===e.code)-1===t.indexOf("default")?(self.console.log("Il topic 'default' non risulta neanche sul web service per l'attuale visitatore, devo chiedere l'approvazione"),Ta.displayBox()):(self.console.log("Il topic 'default' risulta sul web service per l'attuale visitatore, non devo fare altro"),self.console.log("is_first",Ta.isFirstRequestPermission),Ta.isFirstRequestPermission&&(Ta.event_element.dispatchEvent(new Event("push_notification_ready")),self.console.log("Notification permission ready.")));else if(404===e.code){Ta.event_element.dispatchEvent(new Event("push_notification_domain_ready")),self.console.log("Notification permission domain ready."),self.console.log("Il token non esiste. à stato dato il consenso alle notifiche su un altro blog dello stesso dominio"),self.console.log("Comunico al web service questo nuovo token, ma non lo associo a nessun topic");const e=(new self.Intl.DateTimeFormat).resolvedOptions();La.create_token(Ta.token,e.locale,e.timeZone),self.console.log("Mostro il popup per richiedere il consenso"),Ta.displayBox()}}))):-1!==t.indexOf("default")?(self.console.log("Il topic 'default' risulta nel cookie di cache, non devo fare altro"),self.console.log("is_first",Ta.isFirstRequestPermission),Ta.isFirstRequestPermission&&(Ta.event_element.dispatchEvent(new Event("push_notification_ready")),self.console.log("Notification permission ready."))):(self.console.log("Il dominio ha il consenso, ma default di questo blog non è associato (ho già controllato sul Web Service). Chiedo il consenso. (ex caso loop)"),Ta.displayBox())}else self.console.log("token not found"),Ta.displayBox()}()},Ta.onUnsupported=function(){const e=new Event("push_unsupported");self.document.dispatchEvent(e)},Ta.onNoPermission=function(){Na.set("push_notification_denied","yes",86400,Ca.cookie_path),self.console.log("permesso negato per le notifiche");const e=new Event("push_nopermission");self.document.dispatchEvent(e)},Ta.event_element.addEventListener("push_notification_domain_ready",(function(){self.console.log("push_notification_domain_ready event")}))}(),async function(){Ta.document_ready=!0,self.document.body.addEventListener("push_notification_token_ready",(()=>{Na.set("push_notification_token",Ta.token,86400,Ca.cookie_path)})),self.document.body.addEventListener("push_notification_granted",(()=>{document.querySelector(".av-webpush").style.display="none",self.document.getElementById("av-webpush-dialog").showModal(),Ta.sendTokenToServer(),Na.set("push_notification_topics","default",86400,Ca.cookie_path),self.console.log("push_notification_granted event")})),self.document.getElementById("enable_push_notification").addEventListener("click",(async()=>{""!==Ta.token?self.document.body.dispatchEvent(new Event("push_notification_granted")):await Ta.request_permission()}))}())}const Ma={objectToFormData(e,t,n){const o=t||new FormData;let r;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r=n?n+"["+t+"]":t,"object"!=typeof e[t]||e[t]instanceof self.File?o.append(r,e[t]):Ma.objectToFormData(e[t],o,r));return o},ajax(e){const t={};t.method=e.type,void 0===e.headers&&(e.headers={}),void 0===e.data&&(e.data={}),!1===e.cache&&(e.data.cb=Date.now());const n=new URLSearchParams(Ma.objectToFormData(e.data)).toString();"post"===e.type?(e.headers=Ma.merge_headers({"Content-Type":"application/x-www-form-urlencoded"},e.headers),t.body=n):e.url+="?"+n,t.headers=Ma.merge_headers(e.headers,t.headers),fetch(e.url,t).then((t=>t.ok?t.json().then((t=>e.success(t))):("function"==typeof e.always&&e.always(t),null))).catch((t=>e.error(t)))},merge_headers(e,t={}){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}};let Pa;
1class qa extends Et{async connectedCallback(){await async function(e,...t){return M(P,e,...t)}(this);(await async function(){return await h("https://www.google.com/recaptcha/api.js"),new Promise((e=>self.grecaptcha.ready((()=>e(self.grecaptcha)))))}()).render(this,{sitekey:"6LeyKZIUAAAAALjNzIpBvxs65ToCb-L_wBlVrU5n"})}}const Ra=new Set;function ja(e){if(Ra.has(e))return;Ra.add(e),function(e){const t=e.querySelector(".av-affiliation-banner-slides"),n=t.getAttribute("data-preferred-mode");if(t.setAttribute("data-mode","single"),t.setAttribute("data-columns",1),"single"===n)return;const o=300,r=5,i=function(e){const t=document.defaultView.getComputedStyle(e);let n=e.clientWidth;return n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),n}(e),a=Math.min(r,Math.ceil(i/o)),s=e.querySelectorAll(".av-affiliation-banner-slide").length;if(t.setAttribute("data-log-width",i),t.setAttribute("data-log-min-banners-number",a),t.setAttribute("data-log-current-banners-number",s),s<a||1===a)return;t.classList.add("columns-"+a),t.setAttribute("data-columns",a),t.setAttribute("data-mode","multiple"),e.parentElement.classList.add("multiple"),e.parentElement.style.height="244px"}(e);const t=e.querySelectorAll(".av-affiliation-banner-slides");if(t.length>0){const e=t.item(0);e.setAttribute("data-index",Ra.size),function(e){const t=Ua(e);if(e.querySelectorAll(".av-affiliation-banner-slide").length>t){const t=document.createElement("span");t.innerHTML="❮",t.classList.add("av-prev");const n=document.createElement("span");n.innerHTML="❯",n.classList.add("av-next"),e.appendChild(t),e.appendChild(n),function(e){let t;e.addEventListener("mouseenter",(()=>{Ha.mouseoverSliderIndex=Fa(e)})),e.addEventListener("mouseleave",(()=>{Ha.mouseoverSliderIndex=!1})),t=e.querySelectorAll(".av-next");for(let e=0;e<t.length;e++)t[e].addEventListener("click",Ba);t=e.querySelectorAll(".av-prev");for(let e=0;e<t.length;e++)t[e].addEventListener("click",Wa);setInterval((()=>{Va(e,1,!1)}),5e3)}(e)}Ga(e)}(e)}}class Da extends Et{connectedCallback(){this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML="<slot></slot>";this.shadowRoot.querySelector("slot").addEventListener("slotchange",(e=>{e.target.assignedElements().forEach((e=>{ja(e)}))}))}}function Ua(e){return parseInt(e.getAttribute("data-columns"),10)}function $a(e){return"single"===e.getAttribute("data-mode")}function Fa(e){return e.getAttribute("data-index")}const Ha={mouseoverSliderIndex:!1};function Ba(e){e.target.matches(".av-affiliation-banner-slides .av-next")&&Va(e.target.closest(".av-affiliation-banner-slides"),1,!0)}function Wa(e){e.target.matches(".av-affiliation-banner-slides .av-prev")&&Va(e.target.closest(".av-affiliation-banner-slides"),-1,!0)}function Ga(e){const t=e.querySelectorAll(".av-affiliation-banner-slide");let n=za(e);for(let e=0;e<t.length;e++)t[e].style.display="none";if($a(e))t[n-1].style.display="block";else{const o=Ua(e);n--;for(let e=0;e<o;e++){t[(n+e)%t.length].style.display="block"}}}function za(e){return parseInt(e.getAttribute("data-slide"),10)}function Va(e,t,n){const o=Fa(e);if(!n&&o===Ha.mouseoverSliderIndex)return;let r=za(e);r+=t*Ua(e),function(e,t){let n=t;const o=e.querySelectorAll(".av-affiliation-banner-slide"),r=o.length,i=Ua(e);if(isNaN(n)&&(n=1),$a(e))t>r&&(n=1),t<1&&(n=r);else{let a=t-1;if(a+i>r){n=r-i+1;for(let t=0;t<a+i-r;t++)e.appendChild(o[t])}if(t<1){n=1;let t=1;for(;a<0;)e.prepend(o[o.length-t]),t++,a++}}e.setAttribute("data-slide",n.toString())}(e,r),Ga(e)}function Ka(e,{previousIneligibilityReasons:t}){if(!(t.includes(_r)&&!t.includes(kr)))return;null!==e.closest(m("force-internal-link-self-target"))&&(e.target="")}class Xa extends Et{async connectedCallback(){const e=await y(this,(e=>{var t;return"recipe-servings-control"===(null==(t=e.dataset)?void 0:t.avTemplate)}));this.data=JSON.parse(this.dataset.json),this.data&&this.isAvailable()&&this.addServingsControl(e)}isAvailable(){return this.getServingsNode()&&this.querySelectorAll(".wp-block-altervista-ingredient").length>0&&!isNaN(this.getServingsInt())}getServingsNode(){return this.querySelector(".wp-block-altervista-recipe .wp-block-altervista-recipe-quick-info li.servings")}getServingsValueNode(){const e=this.getServingsNode().querySelector(".recipe-value, .recipe-servings-value");if(!e)throw Error();return e}getServingsInt(){return parseInt(this.getServingsValueNode().textContent,10)}setServingsTextByDelta(e){const t=this.getServingsInt(),n=parseInt(e,10);if(isNaN(n)||0===n)return;const o=t+n;if(o<1)return;
1this.getServingsValueNode().textContent=o.toString();const r=parseInt(this.getServingsValueNode().dataset.value,10);if(isNaN(r))return;const i=o/r;this.recalculateQuantity(i);const a=this.querySelector(".recipe-servings-update");1!==i?(a.querySelector(".recipe-servings-updated-value").textContent=o,a.style.display="block"):a.style.display=""}async addServingsControl(e){const t=e.content.cloneNode(!0),n=this.getServingsValueNode(),o=this.getServingsInt().toString(),r=this.getServingsNode(),i=r.querySelector(".portions-label");i&&(r.querySelector(".recipe-label").textContent=i.textContent),n.parentNode.replaceChild(t,n),r.querySelector(".recipe-servings-value").textContent=o,r.querySelector(".recipe-servings-value").dataset.value=o,r.querySelectorAll(".recipe-servings-button").forEach((e=>{e.addEventListener("click",(e=>{const t=e.target.closest("button").dataset.delta;this.setServingsTextByDelta(t)}))}));this.querySelectorAll(".wp-block-altervista-ingredient").forEach((e=>{if(e.querySelectorAll(".ingredient-alt-qty, .ingredient-qty").forEach((e=>{const t=this.getValue(e);t&&(e.dataset.value=t.toString(),this.haveFraction(e)&&(e.dataset.fraction="1"))})),!e.querySelector(".ingredient-qty")){const t=document.createElement("span");t.classList.add("ingredient-number","ingredient-qty"),t.dataset.value="0";const n=e.querySelector(".ingredient-qty-wrapper");n.insertBefore(t,n.firstChild)}}));const a=this.querySelector("[data-av-template='recipe-servings-update']").content.cloneNode(!0),s=this.querySelector(".wp-block-altervista-ingredients");s.insertBefore(a,s.querySelector(".av-inner-blocks-content"))}haveFraction(e){if(!e)return!1;const{ingredientAlternativeQuantities:t}=this.data;let n=t.filter((e=>{const{floatValue:t}=e;return t>0}));return n=n.map((e=>e.label)),e.querySelectorAll("sup").length>0||n.includes(e.textContent)}getValue(e){if(!e)return null;const{ingredientAlternativeQuantities:t}=this.data,n=t.find((t=>t.label===e.textContent));if(n){const{floatValue:e}=n;return e}const o=this.haveFraction(e)?null:parseFloat(e.textContent);return isNaN(o)?null:o}findFraction(e){if(e<=0)return 0;const t=[2,3,4,8];let n,o,r=Number.MAX_VALUE;for(let i=1;i<8;i++)for(let a=0;a<t.length;a++){const s=t[a],c=i/s,l=Math.abs(e-c);c<1&&l<r&&(o=s,n=i,r=l)}return"<sup>"+n+"</sup><span>/</span><sub>"+o+"</sub>"}recalculateQuantity(e){this.querySelectorAll(".wp-block-altervista-ingredient").forEach((t=>{let n=0,o=!1;t.querySelectorAll(".ingredient-alt-qty, .ingredient-qty").forEach((e=>{if(e.dataset.value){e.classList.contains("ingredient-alt-qty")&&e.dataset.fraction&&(o=!0),n+=parseFloat(e.dataset.value)}}));const r=n*e,i=Math.floor(r),a=r-i;t.querySelectorAll(".ingredient-alt-qty, .ingredient-qty").forEach((e=>{if(!e.dataset.value)return;const t=e.classList.contains("ingredient-alt-qty");let n=r;if(n=o?t?this.findFraction(a):i:Math.round(100*n)/100,!t){const t=e.closest(".ingredient-item");if(t){const e=t.dataset.unit,n=this.getUnitLabel(r,e);if(n){const e=t.querySelector(".ingredient-unit");e&&(e.textContent=n)}}}const s="string"==typeof n;e.innerHTML=n>0||s?s?n:n.toString():""}))}))}getUnitLabel(e,t){const{ingredientUnits:n}=this.data;if(null==n||!n[t])return null;let o=e;return e>0&&e<1&&(o=1),1===o?n[t].singular:n[t].plural}}function Ja(e,t){const n=e.getAttribute("on");if(!n)return;n.split(";").forEach((e=>{const[,n,o]=/^([^:\n]+):([^\n]+)$/.exec(e);if(!n||!o)return;o.match(/(^|[^,])[^,(]*(\(.*?\))?/g).forEach((e=>{const o=/^([^.\n]+)\.([^(\n]+)(?:\((.*)\))?$/.exec(e);o&&function(e,t,n,o,r=!1){const i={};r&&r.split(",").forEach((e=>{const[t,n]=e.split("=").map((e=>e.trim()));i[t]=n.replace(/'/g,"")}));if({submit:"submit","submit-success":"submit",tap:"click"}[t]!==e)return;const a=document.getElementById(n);if(!a)return;if("toggle"===o&&n.includes("comments")){a.parentElement.toggleAttribute("expanded")}if("toggleClass"===o){const e=[];i.force&&e.push(i.force),a.classList.toggle(i.class,...e)}if("toggleVisibility"===o){const e=a.toggleAttribute("hidden");if(Za(a,!e),e)a.contains(document.activeElement)&&Qa(a);else{const e=a.querySelector("[autofocus]");e&&e.focus()}}"showModal"===o&&("function"!=typeof a.showModal||a.open||a.showModal());"focus"===o&&a.focus()}(t,n,o[1],o[2],o[3])}))}))}function Ya(e){return Array.from(document.querySelectorAll(`[aria-controls="${e.id}"]`))}function Za(e,t){for(const n of Ya(e))n.setAttribute("aria-expanded",t+"")}function Qa(e,t=null){var n;const o=Ya(e).find((e=>e.getClientRects().length>0));null==(n=null!=o?o:t)||n.focus()}!async function(){if(ut())return;const e=await it(),t=await pt({organizationId:"0801f79c-c3b0-44f6-9f5a-37611e3c986d",apiKey:"4135c4c3-0caf-4f32-8398-66f881bfd4d9",workspaceId:"08cdfe71-67da-407d-b4cc-64aaab77
1de67",publisherId:e,publisherTag:"ame_publisher_id"});if(!t)return;const n=new Set([0]);document.addEventListener(z,(()=>{const e=Y();n.has(e)||(n.add(e),ht(t,e))})),ht(t)}(),async function(){if(await u,ut())return;const e=(t="33682214",async function(){(await mt(t)).beacon({c2:t})});var t;const n=new Set([0]);document.addEventListener(z,(()=>{const t=Y();n.has(t)||(n.add(t),e())})),e()}(),async function(){if(await u,ut())return;const{appId:e,section:t,assetId:n}=await g("nielsen");(function(e,t={}){const n=async function(e,t={}){var n;const o=await async function(){await new Promise((function(e){be((()=>e()))}));const e=self._iub;if(!e)return bt;try{const{purposes:t=null}=e.cs.api.getPreferences();if(null===t&&e.csConfiguration.additionalPurposes.some((({id:e,value:t})=>e===vt&&!0===t)))return wt;if(!0===t[gt])return yt;if(!0===t[vt])return wt}catch(e){s(e)}return bt}();if(o===bt)return null;null!=(n=self)[_t]||(n[_t]={});const r=self[_t],i="avInstance"+(kt>0?kt:"");kt++;const a=o!==yt,c=[];r[i]={g:Object.assign({},t,{optout:a}),q:c,ggPM(e,t=void 0,n=void 0,o=void 0,r=void 0){c.push([e,t,n,o,r])}};const l=r[i],u=new URLSearchParams({ns:_t,name:i});return h(`https://cdn-gl.imrworldwide.com/conf/${e}.js#${u}`),l}(e,t);return function(e,...t){!async function(){const o=await n;o&&o.ggPM(e,...t)}()}})(e)("staticstart",{type:"static",section:t,assetid:n})}(),async function(){!async function(){Object.defineProperty(self,"avadvGetAdmantxData",{writable:!1,configurable:!1,enumerable:!0,value:ne})}(),async function(){It("av-adv-autoplacer-experiment",xt)}(),It("av-adv-slot",gi),It("av-adv-video",vi),It("av-adv-sticky-bottom",xi),await u,Hn(),async function(){await u;const e=["[href*='amzn.eu'i]","[href*='amzn.to'i]","[href*='amazon.'i][href*='tag='i]"],t=document.querySelectorAll(e.join(","));for(const e of t)Ii(e);document.body.addEventListener("click",(t=>{t.target.matches(e.join(","))&&Ii(t.target,"click")}))}()}(),async function(){$o()||(xr(Zr),Nr(Qr))}(),async function(){await u;const e=await g("reading_list");if(void 0===e)return;const{options:t}=e,n=e.posts,o=document.querySelector(".av-site-footer"),r=document.querySelector("#av-reading-list-topbar"),i=r.querySelector(".av-rl-socials"),a=r.querySelector(".av-rl-progress .internal"),s=r.querySelector(".av-rl-title h2"),c=document.querySelector(".av-site-content");V[0].container=c,c.classList.add("page-active"),c.querySelector(".post-navigation")&&c.querySelector(".post-navigation").remove(),function(){v(V[0].container),r.querySelector(".av-rl-nav .total").innerHTML=n.length,y(V[0]);const e=r.querySelector(".av-rl-nav .btn.prev"),t=r.querySelector(".av-rl-nav .btn.next");e.addEventListener("click",(()=>{if(0===K)return;const{container:e}=V[K-1];e.querySelector(".scroll-anchor-top").scrollIntoView({behavior:"smooth"})})),t.addEventListener("click",(async()=>{var e;if(K===n.length-1)return;null!=(e=V[K+1])&&e.container||await p(!0);const{container:t}=V[K+1];t.querySelector(".scroll-anchor-top").scrollIntoView({behavior:"smooth"})}))}(),U((e=>r.classList.toggle("visible",!e)),!0);let l=!1,d=1;const f=1500;function p(e=!1){let t=e;if("boolean"!=typeof e&&(t=!1),d!==n.length){if(!l)return t||document.documentElement.offsetHeight-self.scrollY<f?(l=!0,async function(e){const t=await fetch(e);if(!t.ok)throw Error();const n=await t.text(),r=(new DOMParser).parseFromString(n,"text/html");!function(e){const t=Array.from(document.styleSheets).filter((e=>e.href)).map((e=>e.href)),n=Array.from(e.querySelectorAll("link[rel=stylesheet]"));n.filter((e=>!t.includes(e.href))).forEach((e=>document.head.append(e)))}(r);const i=r.querySelector(".av-site-content"),a=function(e){const t=function(e){if("MAIN"!==e.tagName)return e.removeAttribute("id"),e;const t=document.createElement("div");for(const n of Array.from(e.attributes))t.setAttribute(n.name,n.value);return t.removeAttribute("id"),t.removeAttribute("tabindex"),t.append(...e.childNodes),t}(e);[t.querySelector(".author-bio"),t.querySelector(".post-navigation")].forEach((e=>null==e?void 0:e.remove()));for(const e of t.querySelectorAll("script"))e.replaceWith(h(e));return t}(document.adoptNode(i));!function(e){if(!function(){const{userAgent:e}=self.navigator;return e.includes("AppleWebKit/")&&!e.includes("Chrome/")}())return;e.querySelectorAll("img[srcset]").forEach((e=>{e.srcset=e.srcset}))}(a);const s={container:a,anchorTop:null,originalDocument:r,title:r.title,url:e,referrer:ee(V[V.length-1].url)};y(s),V.push(s),o.parentElement.insertBefore(a,o),l=!1}(n[d++].url)):void 0}else document.removeEventListener("scroll",p)}function h(e,t=document){const n=t.createElement("script");for(const t of e.attributes){const e=t.cloneNode();n.setAttributeNode(e)}return n.text=e.text,n}function m(){var e,t,n;const o=self.scrollY,i=null==(e=V[K-1])?void 0:e.container,s=null==(t=V[K])?void 0:t.container,c=null==(n=V[K+1])?void 0:n.container;
1if(c&&c.offsetTop-o<200){V.forEach((e=>e.container.classList.remove("page-active"))),c.classList.add("page-active"),K++,r.querySelector(".av-rl-nav .current").innerHTML=K+1;const{title:e,url:t}=V[K];self.history.pushState({},e,t),document.title=e,v(c),document.dispatchEvent(new Event(z))}if(i&&s&&s.offsetTop-o>200){V.forEach((e=>e.container.classList.remove("page-active"))),i.classList.add("page-active"),K--,r.querySelector(".av-rl-nav .current").innerHTML=K+1;const{title:e,url:t}=V[K];self.history.pushState({},e,t),document.title=e,v(i),document.dispatchEvent(new Event(z))}let l=o;const u=V[K].anchorTop;u&&(l=l-u+60*K);let d=l/s.scrollHeight*100;d<=1?d=.75:d>=99&&(d=99.25),a.style.width=d+"%"}function v(e){s.textContent=e.querySelector(".entry-title").textContent;const{facebook_only_mode:n,share_label:o}=t,r=function(e,t){const n=e.querySelector(".av-social-share");if(!n)return[];const o=n.querySelectorAll(":scope > av-share-button");if(t){const e=[...o].find((e=>"facebook"===e.dataset.type));if(!e)return[];const n=e.cloneNode(!0);return delete n.dataset.style,n.firstElementChild.textContent=t.label,[n]}const r=[];for(const e of o){const t=e.cloneNode(!0);t.dataset.style="icon-only",r.push(t)}return r}(e,n?{label:o}:null);i.replaceChildren(...r)}function y(e){const t=e.container;t.style.position="relative";const n=document.createElement("div");n.classList.add("scroll-anchor-top"),n.style.cssText="position: absolute; top: -60px;",t.insertBefore(n,t.firstChild),setTimeout((()=>{e.anchorTop=n.getBoundingClientRect().top+self.scrollY}),20)}document.addEventListener("scroll",p),document.addEventListener("scroll",m),p(),m()}(),async function(){if($o())return;
1const e=await async function(){const e="textFragment",t="textFragmentConfidence";try{return await async function({confidenceDimensionName:e,textFragmentDimensionName:t,dimensionValueMaxLength:n=100}={}){var o;const{confidence:r,present:i,fragmentDirective:a=null,element:s=null}=await rr(),c=null!=(o=yr[r])?o:"error",l=i?null!==a?function(e,t){let n="";const o=function(e){const t=e.split("&"),n=[];for(const e of t){if(!e.startsWith("text="))continue;const t=Zo(e.slice(5));null!==t&&n.push(t)}return n}(e);for(const{start:e,end:r}of o){if(n.length+1>=t)break;n&&(n+="|"),n+=br(`${e}${r?`${wr}${r}`:""}`,t-n.length)}return n}(a,n):s?br("~"+s.textContent,n):"error":"";return{[e]:c,[t]:l}}({textFragmentDimensionName:e,confidenceDimensionName:t,dimensionValueMaxLength:500})}catch(o){var n;const r=("ERROR: "+(null!=(n=null==o?void 0:o.message)?n:"unknown")).slice(0,500);return{[e]:r,[t]:"error"}}}();fr(Object.assign({eventName:"page_view"},e)),gr(Object.assign({eventName:"page_view"},e));const t=new Set([0]);document.addEventListener(z,(()=>{const e=Y();t.has(e)||(t.add(e),function(e){const t=function(e){return V[e].container}(e);fr({eventName:"page_view",sourceElement:t}),gr({eventName:"page_view",sourceElement:t})}(e))})),function(e){be((function(t){const n=(()=>{const{eventStatus:e}=t;return"useractioncomplete"===e?"AcquireConsent":"tcloaded"===e?"ReadConsent":"cmpuishown"===e?"UiConsent":"ErrorStatus"})(),o=(()=>{const e=an(t);return e===en?"GPersonalized":e===tn?"GNonpersonalized":e===nn?"GLimited":"ErrorUnreachable"})();if("UiConsent"!==n){const r=`tcf${n}${o}`,i=`${t.cmpId}:${t.cmpVersion}`;e({eventName:r,tcfConsent:o,tcfCmpInfo:i})}}))}(fr)}(),async function(){const e=await g("facebook_pixel");if(void 0===e)return;const{ids:t}=e,n=await ma();if(!n)return;for(const e of t)n("init",e),n("trackSingle",e,"PageView");const o=new Set([0]);document.addEventListener(z,(()=>{const e=Y();if(!o.has(e)){o.add(e);for(const e of t)n("trackSingle",e,"PageView")}}))}(),async function(){It("av-facebook-video",ya)}(),async function(){$o()||Math.random()>=.05||(qi().then((e=>ra(Hi,e))),Pi().then((e=>ra(Bi,e))),Ri().then((e=>ra(Wi,e,e.entry.element))),Mi().then((e=>ra(Gi,e))),document.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&(Ji(),Zi())})),async function(){if(!Fi("event"))return;const{onINP:e}=await ia();self.addEventListener("click",ca,{capture:!0}),e((({value:e,delta:t,entries:n})=>{var o;const r=null==(o=n.find((e=>e.target)))?void 0:o.target,i=function(e){for(const{processingStart:t,processingEnd:n}of e){const e=la(t,n);if(e)return e}return null}(n),a=function(e){let t,n=0;for(const o of e){const e=o.endTime-o.startTime;e<n||(n=e,t=o)}return t}(n),s={slowestEvent:`${a.entryType}.${a.name}`,slowestProcessing:ua(a.processingEnd-a.processingStart,[0,20,40,60,80,100]),experiments:aa()};ra(Ki,{value:t,totalValue:e,nodeAlt:i,dataExtra:s},r,na)}))}())}(),async function(){await u;const e=await g("affiliation_tools_data");if(!e)return;e.doRequest=!!parseInt(e.doRequest,10),function(e){e.items={},e.missing={},e.toolsGroups.forEach((function(t,n){t.items.forEach((function(t,o){t.link_url||(wa({groupIndex:n,itemIndex:o,alternativeIndex:!1,terms:t.model.name,category:t.category_label},e),t.alternatives.forEach((function(t,r){t.link_url||wa({groupIndex:n,itemIndex:o,alternativeIndex:r,terms:t.model.name,category:t.category_label},e)})))}))}))}(e);const t=Object.values(e.items);if(t.length)Sa(t);else if(e.doRequest&&Object.keys(e.missing).length>0){const t={method:"POST",body:JSON.stringify({nonce:e.nonce,postId:e.postId,hits:e.items,miss:e.missing})};fetch(e.ajaxurl,t).then((t=>t.ok?t.json().then((t=>{t.success&&(e.items=t.data.hits,Sa(Object.values(e.items)))})):t))}}(),async function(){await u;const e=new URL(document.location).searchParams;if(e.has("highlight_link")){const t=e.get("highlight_link");document.querySelectorAll('a[href="'+t+'"]').forEach(((e,t)=>{Object.assign(e.style,{color:"red","font-weight":"bold","text-decoration":"underline"}),0===t&&e.scrollIntoView()}))}}(),async function(){if(!(self&&"ServiceWorkerGlobalScope"in self?"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSub
1scription.prototype.hasOwnProperty("getKey"):navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")))return;if(Pa=await g("push_notifications_data"),!Pa)return;const e=await async function(e){const t={headers(t){const n={};for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&(n[t]=e.headers[t]);for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n},create_token(n,o,r,i){Ma.ajax({headers:t.headers({"X-Http-Method-Override":"POST"}),cache:!1,url:e.ajax_url+"token/",type:"post",dataType:"json",data:{act:"create_token",platform:e.platform,account:e.account,token:n,locale:o,timezone:r},success(e){"function"==typeof i&&i(e)},error(){self.console.log("create_token error")}})},replace_topics(n,o,r){Ma.ajax({headers:t.headers({"X-Http-Method-Override":"PUT"}),cache:!1,url:e.ajax_url+"topics/",type:"post",dataType:"json",data:{act:"replace_topics",platform:e.platform,account:e.account,token:n,topics:o},success(e){"function"==typeof r&&r(e)},error(){self.console.log("replace_topics error")}})},add_topics(n,o,r){Ma.ajax({headers:t.headers({"X-Http-Method-Override":"POST"}),cache:!1,url:e.ajax_url+"topics/",type:"post",dataType:"json",data:{act:"add_topics",platform:e.platform,account:e.account,token:n,topics:o},success(e){"function"==typeof r&&r(e)},error(){self.console.log("add_topics error")}})},get_token_topics(n,o){Ma.ajax({headers:t.headers({"X-Http-Method-Override":"GET"}),cache:!1,url:e.ajax_url+"topics/",type:"post",dataType:"json",data:{act:"get_token_topics",platform:e.platform,account:e.account,token:n},success(e){"function"==typeof o&&o(e)},error(){self.console.log("get_token_topics error")}})},get_topics(n){Ma.ajax({headers:t.headers({"X-Http-Method-Override":"GET"}),cache:!1,url:e.ajax_url+"topics/",type:"post",dataType:"json",data:{act:"get_topics",platform:e.platform,account:e.account},success(e){"function"==typeof n&&n(e)},error(e){self.console.error("get_topics error"),self.console.error(e)}})},get_token(n){Ma.ajax({headers:t.headers({"X-Http-Method-Override":"GET"}),cache:!1,url:e.ajax_url+"token/",type:"post",dataType:"json",data:{act:"get_token",platform:e.platform,account:e.account,token:n},success(){},error(){self.console.log("get_token error")}})},track_notification_click(n,o,r){Ma.ajax({headers:t.headers({"X-Http-Method-Override":"POST"}),cache:!1,url:e.ajax_url+"notification_click/",type:"post",dataType:"json",data:{act:"track_notification_click",platform:e.platform,account:e.account,token:n,notification_id:o,hash:r},success(){},error(){self.console.log("track_notification_click error")}})}};return t}(Pa),t=await async function(e,t){const n={event_element:self.document.createElement("span"),isFirstRequestPermission:!0,token:"",supported:!1,serviceWorkerRegistration:null,setServiceWorkerRegistration(e){n.serviceWorkerRegistration=e},getQueryParams(e){const t={};let n,o,r;const i=e.split("&");for(o=0,r=i.length;o<r;o++)n=i[o].split("="),t[n[0]]=n[1];return t},sendTokenToServer(){if(!n.token)return;const e=(new self.Intl.DateTimeFormat).resolvedOptions();t.create_token(n.token,e.locale,e.timeZone,(function(){self.console.log("push notification add_topics"),t.add_topics(n.token,["default"])}))},async request_permission(){"granted"===await self.Notification.requestPermission()?(n.isFirstRequestPermission=!1,n.get_token()):"function"==typeof n.onNoPermission&&n.onNoPermission()},get_token(){"granted"===self.Notification.permission?self.firebase.messaging().getToken({vapidKey:"BDeKenI14DkmteMr2AiF1155ZRuH6t0FhpP_ma4RhAcRy0UmpgbD8mc9fpEK4GrCNN28hy-TH93sd7URecvMIbM",serviceWorkerRegistration:n.serviceWorkerRegistration}).then((function(e){if(null!==e){if(""===n.token&&(self.console.log("get_token token",e),n.token=e,self.document.body.dispatchEvent(new Event("push_notification_token_ready")),n.isFirstRequestPermission||self.document.body.dispatchEvent(new Event("push_notification_granted"))),self.location.search.length>0){let o=self.location.search;o=o.substring(o.indexOf("?")+1);const r=n.getQueryParams(o);void 0!==r.notification_id&&void 0!==r.hash&&t.track_notification_click(e,r.notification_id,r.hash)}"function"==typeof n.afterTokenRequest&&n.afterTokenRequest()}})).catch((function(e){self.console.log("Error retrieving Instance ID token. ",e),e.toString().includes("messaging/permission-blocked")?n.displayBox():"function"==typeof n.onUnsupported&&n.onUnsupported()})):"function"==typeof n.afterTokenRequest&&n.afterTokenRequest()}};return n}(0,e);await xa(Pa,t),await Oa(Pa,e,t)}(),async function(){!async function(){It("av-captcha",qa)}()}(),async function(){It("av-affiliation-banner-slot",Da)}(),async function(){const{refreshPriceEndpoint:e}=await g("affiliation-banner");document.querySelectorAll(".av-affiliation-banner-slide").forEach((async t=>{const n=t.getAttribute("data-asin"),o=t.getAttribute("data-hash"),r=t.getAttribute("data-store");if(!n||!o||!r||"amazon"!==r)return;const i={method:"GET",headers:{Authorization:"Bearer "+o}},a=await fetch(e+n,i),s=await a.json();if(!s.success)return;const c=document.documentElement.lang,l=new Intl.NumberFormat(c,{style:"currency",currency:"EUR"}),u=l.format(s.results.full_price),d=s.results.price>0?l.format(s.results.price):u,f=Math.round(s.results.amount_saved),p=Math.round(s.results.percentage_saved),h=u!==d?u:"";t.querySelectorAll(".av-affiliation-banner-item-price span").forEach((e=>{e.textContent=h}));const m=t.querySelector(".av-price-savings");m&&(m.textContent=d);const g=t.querySelector(".av-affiliation-banner-item-discount");
1g&&(g.style.display="",f>=5?g.innerHTML="-"+f+"â¬":p>0?g.innerHTML="-"+p+"%":(g.innerHTML="",g.style.display="none"))}))}(),async function(){!async function(){if(!await Li())return;self.sessionStorage.removeItem(await Ti())}(),await u,document.hasFocus()||await new Promise((e=>{self.addEventListener("focus",(()=>e()),{once:!0})}));const e=m("autoreload");if(void 0===e)return;document.querySelector("#disqus_thread")||(Ci=parseInt(e,10)*Ge,await me(),Ni=Date.now(),self.addEventListener("focus",(()=>Oi(!0))),self.addEventListener("blur",(()=>Oi(!1))),self.setInterval((()=>{document.hasFocus()||"visible"!==document.visibilityState&&(Oi(!0),Oi(!1))}),3e3))}(),async function(){m("force-internal-link-self-target")&&Cr(Ka)}(),async function(){await u,0!==document.getElementsByClassName("av-recipe-feedback").length&&document.addEventListener("click",(e=>{const t=e.target.closest(".av-rating-item");if(!t)return;if(parseInt(t.value.replace("av_",""),10)>4)return;const n=t.closest(".av-recipe-feedback");if(!n)return;const o=[...n.children].filter((e=>"form"===e.localName));if(0===o.length)return;const r=n.querySelector(".av-review-hidden");r.style.display="none";const i=o[0];i.style.display="",i.onsubmit=e=>{e.preventDefault();const t=new FormData(i),n=new URLSearchParams(t).toString(),o=document.getElementById("recipe_feedback_notice");o.style.display="none",fetch(i.getAttribute("action"),{headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST",body:n}).then((e=>e.json())).then((e=>{e.success?(i.style.display="none",r.style.display="",r.scrollIntoView({behavior:"smooth"})):o.style.display="block"}))}}))}(),It("av-recipe-servings",Xa),async function(){document.addEventListener("click",(e=>{let t=e.target;for(;t&&t.parentNode;)Ja(t,"click"),t=t.parentNode})),document.addEventListener("keydown",(e=>{if("Escape"!==e.key)return;const t=document.querySelector('[aria-controls][aria-expanded="true"]');if(!t)return;const n=document.getElementById(t.getAttribute("aria-controls"));n&&(n.setAttribute("hidden",""),Za(n,!1),Qa(n,t))})),document.addEventListener("submit",(e=>{const t=e.target,n=t.getAttribute("action-xhr"),o=t.getAttribute("method")||"GET",r=new FormData(t),i=e.submitter||document.activeElement;i.name&&i.value&&r.append(i.name,i.value);const a="GET"===o?"?"+new URLSearchParams(r):"",s="GET"!==o?r:null;n&&(e.preventDefault(),fetch(n+a,{method:o,body:s}).then(function(e,...t){return function(n){200===n.status&&e(...t)}}(Ja,t,"submit")))}))}();
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.