PageSourceSearch

https://observador.pt/wp-content/themes/observador-child/assets/bu…/observador.min.js?__obsver=5349928d

js observador.pt collected 2026-09-24 08:36:00 UTC 319,786 bytes, 673 lines download raw bytes

1!function(){var e={1461:function(e,t,n){"use strict";n.d(t,{NM:function(){return S},eu:function(){return x}});var o=n(56753),i=n(5847),r=n(14679),a=n(35267);const s="recombeeDetailViewQueue",c=10,l=864e5;let u=null,d=null,p=!1;function f(...e){new URLSearchParams(location.search).has("debugRecom")&&console.log("[recombee-dv]",...e)}function m(){try{const e=localStorage.getItem(s);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function g(e){try{if(!e.length)return void localStorage.removeItem(s);localStorage.setItem(s,JSON.stringify(e.slice(-c)))}catch{}}function h(e,t){return e.itemId===t.itemId&&e.userId===t.userId&&e.ts===t.ts}function v(e){const t=m().filter((t=>!h(t,e)));t.push(e),g(t)}function b(e){g(m().filter((t=>!h(t,e))))}function _(e){const t={timestamp:e.ts};return void 0!==e.duration&&(t.duration=e.duration),e.recommId&&(t.recommId=e.recommId),e.sessionId&&(t.additionalData={sessionId:e.sessionId}),t}function y(e,t){if(!u)return;const n=_(e);f("send",e,n),u.send(new recombee.AddDetailVie
1w(e.userId,e.itemId,n),(n=>{const o=!!n&&409===n.statusCode;n&&!o||b(e),n&&!o&&f("erro",n.statusCode,n.message),t&&function(e,t){w.push({outcome:e,rec:t}),!C&&window.QualityReads&&(C=!0,window.QualityReads.defer((()=>{const e=w.map((({outcome:e,rec:t})=>({t:Date.now(),e:window.QualityReads.EVENT_KIND_INTERACTION,s:window.QualityReads.EVENT_SOURCE_WEB,ct:t.ct??"",ci:t.itemId,cp:!1,cu:!0,si:window.obs_ads?.saw_intro??!1,d1:"RECOMBEE_DV",d2:e})));return w.length=0,e})))}(o?"conflict":n?"failed":"recovered",e)}))}const w=[];let C=!1;async function x(){const e=Date.now(),t=m();if(!t.length)return;const n=t.filter((t=>e-1e3*t.ts<l)).slice(-c);if(n.length!==t.length&&g(n),n.length){try{u=await(0,o.ed)()}catch{return}n.forEach((e=>y(e,!0)))}}async function S(){if(d)return;const e=(0,r.u)();d={itemId:String(contextualData.id),userId:(0,o.Br)(),ts:Date.now()/1e3,ct:contextualData.type,recommId:(0,i.z)()??void 0,sessionId:e??void 0},v(d),(0,a.a)(),p||(p=!0,window.addEventListener("pagehide",k));try{u=await(0,o.ed)()}catch{}}function k(){if(!d)return;const e={...d,duration:(0,a.m)()};d=null,function(e){if(!u)return!1;if("function"!=typeof u._signUrl)return f("sem _signUrl — fallback para o XHR do SDK"),y(e,!1),!1;
1try{const t=new recombee.AddDetailView(e.userId,e.itemId,_(e)),n=(u.useHttps?"https://":"http://")+u.baseUri+u._signUrl(t.path);return f("keepalive",n,e,t.bodyParameters()),fetch(n,{method:"POST",headers:{"Content-Type":"text/plain;charset=UTF-8"},body:JSON.stringify(t.bodyParameters()),keepalive:!0,credentials:"omit"}).then((t=>{t.ok||409===t.status||(f("resposta de erro, a repor na fila",t.status),v(e))})).catch((t=>{f("falhou, a repor na fila",t),v(e)})),!0}catch(e){return f("keepalive falhou a despachar",e),!1}}(e)&&b(e)}},1550:function(e,t,n){"use strict";n.r(t),n.d(t,{ActionTypeE:function(){return r},NET_AUDIENCE_ID:function(){return o},googleIMASdk:function(){return i}});const o="p4.guvO.9_KpbOyQdcUwmcSrTO4WGzf9cp94o31K44..U7",i="//imasdk.googleapis.com/js/sdkloader/ima3.js";var r=(e=>(e.episodeRefresh="episode_refresh",e.radioRefresh="radio_refresh",e.embedRefresh="embed_refresh",e.episodePlay="episode_play",e.episodePause="episode_pause",e.radioPlay="radio_play",e.radioPause="radio_pause",e.embedPlay="embed_play",e.embedPause="embed_pause",e.radio="radio",e.embed="embed",e.episode="episode",e.openComment="open_comments",e.photogallery="photogallery",e.other="other",e.home="home",e.viewSection="view_section",e.viewArticle="view_article",e.viewEpisode="view_episode",e.viewRadio="view_radio",e.interactiveEvents="interactive_events",e))(r||{})},2489:function(e,t,n){"use strict";var o=n(76026),i=n(14399),r=n(61722);async function a(e){const{html:t}=await Promise.resolve().then(n.bind(n,76214)),{render:i}=await Promise.resolve().then(n.bind(n,50172)),{PopupContainer:r}=await Promise.resolve().then(n.bind(n,49059));await(0,o.Ix)("/wp-content/themes/observador-child/assets/build/css/onboarding/onboarding.min.css");const a=document.createElement("popup-container");document.body.append(a),document.body.style.position="relative",document.body.style.overflow="hidden",a.setAttribute("id","popup-container"),window.scrollTo(0,0),i(t` <${r} closePopup=${function(){a.remove(),document.body.style.position="",document.body.style.overflow=""}} popupSettings=${e} /> `,a)}window.communicationPopup=async function(e){const t=i.O.find((t=>t.id===e));if(!t)return void console.log("#### popup not found");const n=`communication_popup_${e}`,o=localStorage.getItem(n);let s=o?JSON.parse(o):{};if(s.visits=s.visits?s.visits+1:1,!(0,r.H0)())if(s.openedUrl)console.log("#### url already opened");else if(t.rules.showPremium||!adamastor.isSubscriber())if(t.rules.showLoggedIn||!adamastor.isLoggedIn())if(t.rules.showNoPremium||adamastor.isSubscriber())if(t.rules.showLoggedOut||adamastor.isLoggedIn()){if(!(s.shows&&s.shows>=t.rules.maxShows))return t.rules.showOnFirstVisit&&1==s.visits?(s.shows=1,localStorage.setItem(n,JSON.stringify(s)),void await a(t)):void(t.rules.showEveryXVisits&&s.visits%t.rules.showEveryXVisits===0&&(s.shows=s.shows?s.shows+1:1,localStorage.setItem(n,JSON.stringify(s)),await a(t)));console.log("#### max shows reached")}else console.log("#### show logged out users: false, user is not logged in");else console.log("#### show no premium users: false, user is not premium");else console.log("#### showloggedin: false, user is logged in");else console.log("#### show premium:false, user is premium")}},3612:function(e,t,n){"use strict";var o,i=n(54586),r=n(41669);o={savedIds:[],init:function(){var e=this;document.addEventListener("DOMContentLoaded",(function(){adamastor.isLoggedIn()?e.initLogged(adamastor.getSessionProfile()):e.initUnlogged()})),document.addEventListener("obsLogout",(function(t){e.initUnlogged()})),document.addEventListener("obsLogin",(function(t){e.initLogged(adamastor.getSessionProfile())})),adamastor.isLoggedIn()?e.initLogged(adamastor.getSessionProfile()):e.initUnlogged()},initLogged:function(e){var t=this;t.userId=e.sub,t.savedIds=[],"post"===contextualData.type&&void 0!==contextualData.id&&SaveArticlesProxy.getInstance().checkSavedArticle(t.userId,contextualData.id,(function(e,n){!0===e.saved&&t.savedIds.push(parseInt(contextualData.id)),t.bindSaveIcon()}),(function(e,t,n){}))},bindSaveIcon:function(){var e=this;r(".save").each((function(t,n){if(r(n).unbind("click"),r(n).removeClass("saved"),adamastor.isLoggedIn()){var o=r(n).data("id");e.savedIds.indexOf(o)>=0&&r(n).addClass("saved"),r(n).bind("click",(function(){const t=r(n).data("position")??"";let o="save";r(r(n)).hasClass("saved")?(o="unsave",e.bindSaved(r(n))):e.bindNotSaved(r(n)),(0,i.VR)({click_action:o,click_label:"",click_location:t,event:i._j.articleinteraction})}))}else r(n).bind("click",(function(){adamastor.showLogin()}))}))},bindSaved:function(e){var t=r(e).data("id");SaveArticlesProxy.getInstance().unSaveArticle(this.userId,t,(function(t,n,o){r(e).removeClass("saved")}),(function(e,t,n){}))},bindNotSaved:function(e){var t=r(e).data("id");SaveArticlesProxy.getInstance().saveArticle(this.userId,t,(function(t,n,o){r(e).addClass("saved")}),(function(e,t,n){}))},initUnlogged:function(){"post"===contextualData.type&&this.bindSaveIcon()}},obsEventListener("DOMContentLoaded",(function(){o.init()}
1)),window.obs.isDevEnvironment()&&Math.random>.7&&(window["_"+[String.fromCharCode(65),String.fromCharCode(82),String.fromCharCode(75),String.fromCharCode(65),String.fromCharCode(78),String.fromCharCode(79),String.fromCharCode(73),String.fromCharCode(68)].join("").toLowerCase()]=function(){r.magnificPopup.open({items:{src:'<div class="cenas" style="width:280px;margin:auto"><div class="mfp-close" style="background-color:white">fechar</div><style>#field{background-color: white; width: 310px; height: 280px; padding-top: 30px; border: 1px solid #ccc; font-size: 0; position: relative;}.brick,.removed{width: 28px; height: 10px; margin: 1px; display: inline-block; box-sizing: border-box;}.brick{background: blue;}.removed{border-color: transparent;}#paddle{width: 62px; height: 5px; background: black; position: absolute; left: 128px; top: 270px;}#ball{width: 10px; height: 10px; background: red; border-radius: 50%; position: absolute;}</style><div id="field"> <div id="paddle"></div><div id="ball" style="left: 154px; top: 258px;"> </div></div></div>',type:"inline"},preloader:!1,callbacks:{open:function(){!function(e,t,n,o,i,r,a,s){field.insertAdjacentHTML("afterbegin",Array(50).fill('<div class="brick"></div>').join(""));var c=field.children,l=setInterval((function(){console.log("lifes",a);
1var e=t(ball.style.left=t(ball.style.left)+i+"px"),o=t(ball.style.top=t(ball.style.top)+r+"px"),u=(o-30)/14|0,d=e/32|0;(e<0&&i<0||e>=310&&i>0)&&(i*=-1),e+6>=n&&e+6<=n+64&&o>=259&&o<=274&&(r*=-1,e+6<=n+21?i=-6:e+6>=n+43?i=6:6==Math.abs(i)&&(i=2*i/3|0)),o<0&&(r*=-1),o>=288&&! --a&&(clearInterval(l),alert("Game over!")),o>=288&&a&&(r*=-1),o>=18&&o<=100&&"removed"!=c[10*u+d].className&&(r*=-1,c[10*u+d].className="removed",i<0&&((0|e)%32<10||(0|e)%32>22)&&(i*=-1),i>0&&((e+12|0)%32<10||(e+12|0)%32>22)&&(i*=-1),++s,console.log("score",s),50==s&&(clearInterval(l),alert("Victory!")))}),1e3/60);document.addEventListener("mousemove",(function(e){n=e.pageX>40?e.pageX<250?e.pageX-40:256:0,paddle.style.left=n+"px"}),!1)}(field.children,parseFloat,129,0,-4,-4,5,0)},close:function(){window.location.reload()}}})})},4344:function(e,t,n){"use strict";var o=n(76026),i=n(54586);window.onWelcomeOffer=async function(){document.body.style.overflow="hidden";const{html:e}=await Promise.resolve().then(n.bind(n,76214)),{render:t}=await Promise.resolve().then(n.bind(n,50172)),{useEffect:r}=await Promise.resolve().then(n.bind(n,45994));await(0,o.Ix)("/wp-content/themes/observador-child/assets/build/css/welcome-offer/welcome-offer.min.css");const a="https://"+location.hostname+"/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0",s=document.createElement("welcome-offer-container");function c(e){document.getElementById("welcome-offer-container")?.remove(),document.body.style.overflow="scroll"}document.body.append(s),s.setAttribute("id","welcome-offer-container");const l=[{iconSrc:"https://static.observador.pt/piano/media/vantagens/icon-ilimitado.svg",title:"Acesso ilimitado",desc:"A todas as notícias e artigos de opinião"},{iconSrc:"https://static.observador.pt/piano/media/vantagens/icon-npub.svg",title:"Menos publicidade",desc:"Sem formatos intrusivos durante a leitura"},{iconSrc:"https://static.observador.pt/piano/media/vantagens/icon-podcasts.svg",title:"Podcasts",desc:"Acesso Antecipado Podcast+"}];t(e`<${function(){return r((()=>{(0,i.VR)({click_action:"show",click_label:"",click_location:"onboarding",event:i._j.modal})}),[]),e`
2            <div class="welcome-offer-card">
3                <button id="welcome-offer-close" onClick=${()=>c()}>
4                    <svg class="obs-icon obs-icon-close-onboarding">
5                        <use href="${a}#obs-icon-close-onboarding"></use>
6                    </svg>
7                </button>
8                <svg class="welcome-offer-logo" width="100%" height="100%" viewBox="0 0 4459 571" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
9                    <rect x="0" y="0" width="4458.33" height="570.833" style="fill:none;"></rect>
10                    <g>
11                        <g transform="matrix(4.15979,0,0,4.15979,7.58043,-469.676)">
12                            <g>
13                                <g transform="matrix(1.19088,0,0,1.19088,197.082,191.031)">
14                                    <path
15                                        d="M0,-15.97C9.572,-15.97 14.632,-19.403 14.632,-25.899L14.632,-26.153C14.632,-32.301 9.762,-35.827 1.271,-35.827L-17.307,-35.827L-17.307,-15.97L0,-15.97ZM5.21,19.858C14.481,19.858 19.588,16.241 19.588,9.675L19.588,9.421C19.588,2.759 14.396,-0.763 4.574,-0.763L-17.307,-0.763L-17.307,19.858L5.21,19.858ZM-34.785,35.954C-35.076,35.954 -35.312,35.718 -35.312,35.426L-35.312,-51.396C-35.312,-51.688 -35.076,-51.924 -34.785,-51.924L4.193,-51.924C21.974,-51.924 33.02,-43.315 33.02,-29.456L33.02,-29.201C33.02,-20.906 29.284,-14.781 21.598,-10.478L20.615,-9.928L21.667,-9.525C33.098,-5.151 37.975,1.237 37.975,11.834L37.975,12.089C37.975,27.256 26.033,35.954 5.21,35.954L-34.785,35.954Z"
16                                        style="fill-rule:nonzero;"
17                                    ></path>
18                                </g>
19                                <g transform="matrix(1.19088,0,0,1.19088,297.556,127.638)">
20                                    <path
21                                        d="M0,90.418C-13.543,90.418 -26.546,85.653 -36.614,77.002C-36.832,76.814 -36.859,76.485 -36.674,76.264L-26.439,64.007C-26.335,63.882 -26.185,63.817 -26.035,63.817C-25.918,63.817 -25.802,63.855 -25.705,63.933C-16.969,70.935 -8.68,74.195 0.381,74.195C8.624,74.195 13.743,70.78 13.743,65.282L13.743,65.028C13.743,59.437 9.806,56.896 -4.57,53.21C-24.275,48.18 -33.654,42.905 -33.654,26.533L-33.654,26.279C-33.654,10.561 -21.355,0 -3.049,0C9.051,0 19.794,3.559 28.88,10.578C29.102,10.75 29.151,11.064 28.991,11.295L19.985,24.353C19.883,24.501 19.718,24.581 19.551,24.581C19.449,24.581 19.346,24.551 19.256,24.49C11.006,18.928 3.627,16.224 -3.304,16.224C-10.572,16.224 -15.268,19.473 -15.268,24.501L-15.268,24.754C-15.268,31.349 -10.191,33.238 4.317,36.954C21.489,41.428 32.13,47.365 32.13,63.123L32.13,63.377C32.13,80.057 19.819,90.418 0,90.418"
22                                        style="fill-rule:nonzero;"
23                                    ></path>
24                                </g>
25                                <g transform="matrix(1.19088,0,0,1.19088,353.895,129.151)">
26                                    <path
27                                        d="M0,87.877C-0.292,87.877 -0.527,87.642 -0.527,87.35L-0.527,0.527C-0.527,0.236 -0.292,0 0,0L62.59,0C62.882,0 63.118,0.236 63.118,0.527L63.118,15.823C63.118,16.114 62.882,16.35 62.59,16.35L17.86,16.35L17.86,35.446L56.872,35.446C57.164,35.446 57.4,35.682 57.4,35.974L57.4,51.269C57.4,51.561 57.164,51.796 56.872,51.796L17.86,51.796L17.86,71.527L63.225,71.527C63.517,71.527 63.753,71.764 63.753,72.055L63.753,87.35C63.753,87.642 63.517,87.877 63.225,87.877L0,87.877Z"
28                                        style="fill-rule:nonzero;"
29                                    ></path>
30                                </g>
31                                <g transform="matrix(1.19088,0,0,1.19088,493.856,182.361)">
32                                    <path
33                                        d="M0,-1.485C9.429,-1.485 15.521,-6.629 15.521,-14.59L15.521,-14.844C15.521,-23.254 9.725,-28.076 -0.381,-28.076L-20.351,-28.076L-20.351,-1.485L0,-1.485ZM15.176,43.196C15,43.196 14.836,43.109 14.738,42.963L-4.165,14.738L-20.351,14.738L-20.351,42.669C-20.351,42.961 -20.587,43.196 -20.879,43.196L-38.336,43.196C-38.628,43.196 -38.864,42.961 -38.864,42.669L-38.864,-44.153C-38.864,-44.445 -38.628,-44.681 -38.336,-44.681L1.271,-44.681C21.946,-44.681 34.289,-33.907 34.289,-15.86L34.289,-15.60
337C34.289,1.036 24.111,8.303 15.573,11.468L14.939,11.703L35.922,42.371C36.031,42.533 36.043,42.742 35.952,42.915C35.86,43.088 35.681,43.196 35.485,43.196L15.176,43.196Z"
34                                        style="fill-rule:nonzero;"
35                                    ></path>
36                                </g>
37                                <g transform="matrix(1.19088,0,0,1.19088,583.242,129.151)">
38                                    <path
39                                        d="M0,87.877C-0.216,87.877 -0.409,87.746 -0.489,87.547L-35.604,0.724C-35.669,0.561 -35.649,0.377 -35.552,0.232C-35.453,0.087 -35.29,0 -35.114,0L-15.806,0C-15.585,0 -15.388,0.137 -15.312,0.344L8.181,62.609L31.675,0.344C31.751,0.137 31.948,0 32.169,0L50.97,0C51.145,0 51.309,0.087 51.406,0.232C51.505,0.377 51.524,0.561 51.459,0.724L16.345,87.547C16.265,87.746 16.07,87.877 15.855,87.877L0,87.877Z"
40                                        style="fill-rule:nonzero;"
41                                    ></path>
42                                </g>
43                                <g transform="matrix(1.19088,0,0,1.19088,697.75,172.224)">
44                                    <path
45                                        d="M0,15.539L-12.638,-15.219L-25.276,15.539L0,15.539ZM15.085,51.708C14.87,51.708 14.676,51.579 14.596,51.38L6.575,31.762L-31.852,31.762L-39.873,51.38C-39.953,51.579 -40.147,51.708 -40.362,51.708L-58.057,51.708C-58.234,51.708 -58.399,51.619 -58.497,51.472C-58.596,51.324 -58.612,51.138 -58.543,50.975L-21.185,-35.848C-21.103,-36.043 -20.91,-36.169 -20.698,-36.169L-4.004,-36.169C-3.792,-36.169 -3.6,-36.043 -3.517,-35.848L33.775,50.975C33.845,51.138 33.828,51.324 33.729,51.472C33.632,51.619 33.466,51.708 33.288,51.708L15.085,51.708Z"
46                                        style="fill-rule:nonzero;"
47                                    ></path>
48                                </g>
49                                <g transform="matrix(1.19088,0,0,1.19088,790.436,148.924)">
50                                    <path
51                                        d="M0,54.67C16.398,54.67 27.416,43.787 27.416,27.589L27.416,27.335C27.416,11.241 16.143,0.001 0,0.001L-15.69,0.001L-15.69,54.67L0,54.67ZM-33.727,71.274C-34.02,71.274 -34.256,71.038 -34.256,70.746L-34.256,-16.076C-34.256,-16.368 -34.02,-16.604 -33.727,-16.604L0,-16.604C27.159,-16.604 46.872,1.768 46.872,27.081L46.872,27.335C46.872,52.795 27.159,71.274 0,71.274L-33.727,71.274Z"
52                                        style="fill-rule:nonzero;"
53                                    ></path>
54                                </g>
55                                <g transform="matrix(1.19088,0,0,1.19088,1025.12,182.361)">
56                                    <path
57                                        d="M0,-1.485C9.455,-1.485 15.564,-6.629 15.564,-14.59L15.564,-14.844C15.564,-23.254 9.752,-28.076 -0.382,-28.076L-20.406,-28.076L-20.406,-1.485L0,-1.485ZM15.218,43.196C15.041,43.196 14.877,43.109 14.778,42.963L-4.177,14.738L-20.406,14.738L-20.406,42.669C-20.406,42.961 -20.643,43.196 -20.936,43.196L-38.442,43.196C-38.734,43.196 -38.971,42.961 -38.971,42.669L-38.971,-44.153C-38.971,-44.445 -38.734,-44.681 -38.442,-44.681L1.274,-44.681C22.007,-44.681 34.384,-33.907 34.384,-15.86L34.384,-15.607C34.384,1.037 24.178,8.303 15.616,11.468L14.98,11.703L36.02,42.371C36.131,42.533 36.142,42.742 36.051,42.915C35.959,43.088 35.779,43.196 35.583,43.196L15.218,43.196Z"
58                                        style="fill-rule:nonzero;"
59                                    ></path>
60                                </g>
61                                <g transform="matrix(1.19088,0,0,1.19088,912.486,214.035)">
62                                    <path
63                                        d="M0,-54.679C-14.955,-54.679 -27.123,-42.415 -27.123,-27.34C-27.123,-12.265 -14.955,0 0,0C14.954,0 27.121,-12.265 27.121,-27.34C27.121,-42.415 14.954,-54.679 0,-54.679M0,18.124C-25.144,18.124 -45.598,-2.272 -45.598,-27.34C-45.598,-52.408 -25.144,-72.803 0,-72.803C25.142,-72.803 45.596,-52.408 45.596,-27.34C45.596,-2.272 25.142,18.124 0,18.124"
64                                        style="fill-rule:nonzero;"
65                                    ></path>
66                                </g>
67                                <g transform="matrix(1.19088,0,0,1.19088,68.4755,137.257)">
68                                    <path d="M0,74.34C-20.528,74.34 -37.17,57.698 -37.17,37.17C-37.17,16.641 -20.528,-0.001 0,-0.001C20.529,-0.001 37.171,16.641 37.171,37.17C37.171,57.698 20.529,74.34 0,74.34M0,-20.33C-31.756,-20.33 -57.5,5.413 -57.5,37.17C-57.5,68.926 -31.756,94.67 0,94.67C31.757,94.67 57.5,68.926 57.5,37.17C57.5,5.413 31.757,-20.33 0,-20.33" style="fill-rule:nonzero;"></path>
69                                </g>
70                            </g>
71                        </g>
72                    </g>
73                </svg>
74                <h2>Uma oferta de boas-vindas</h2>
75                <p class="welcome-offer-subtitle">
76                    Mais de 35.000 leitores já escolheram o Observador.<br />
77                    Experimente <strong>1 mês por 1,99€*</strong>.
78                </p>
79                <div class="welcome-offer-benefits">
80                    ${l.map((({iconSrc:t,title:n,desc:o})=>e`
81                            <div class="welcome-offer-benefit">
82                                <div class="welcome-offer-benefit-icon">
83                                    <img src="${t}" alt="${n}" />
84                                </div>
85                                <div class="welcome-offer-benefit-text">
86                                    <h5>${n}</h5>
87                                    <p>${o}</p>
88                                </div>
89                            </div>
90                        `))}
91                </div>
92                <a
93                    href="/checkout/?price_id=price_1R7Lz2LIdwiNHqVnrl1JiJgH&coupon=leGRp7Fw&utm_source=interno&utm_medium=pop-up-modal&utm_campaign=&utm_content=modal_registo&show=monthly&product=standard"
94                    class="welcome-offer-cta"
95                    onClick=${()=>{(0,i.VR)({click_action:"click",click_label:"",click_location:"onboarding",event:i._j.modal})}}
96                    >Assinar agora</a
97                >
98                <small class="modalbottomline">*Esta oferta corresponde um mês de plano Standard. Renova a 7,99€</small>
99            </div>
100        `}} />`,s),document.addEventListener("keydown",(function e(t){"Escape"===t.key&&(c(),document.removeEventListener("keydown",e))}))}},4438:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});var o=n(76214);function i({text:e="OU"}){return o.html`
101        <div class="or">
102            <span class="line"></span>
103            <span class="or-text">
104                <span>${e}</span>
105            </span>
106        </div>
107    `}},5847:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});const o="recombeeRecommClick",i=6e4;function r(){let e=null;try{e=sessionStorage.getItem(o),e&&sessionStorage.removeItem(o)}catch{return null}if(!e)return null;try{const{recommId:t,path:n,ts:o}=JSON.parse(e);if(t&&n===location.pathname&&Date.now()-o<i)return t}catch{}return null}},6864:function(e,t,n){"use strict";function o(){let e="anon";return localStorage.getItem("OBS-ADAMASTOR")&&(e="lgdin"),adamastor.isSubscriber()&&(e="paid"),e}function i(){return adamastor?adamastor.getSessionProfile()?.sub??"":JSON.parse(localStorage.getItem("OBS-ADAMASTOR"))?.id??""}n.r(t),n.d(t,{getUserId:function(){return i},getUserType:function(){return o}}),window.obsUtils={getUserType:o}},7452:function(e){var t=function(e){"use strict";var t,n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,o){var r=t&&t.prototype instanceof v?t:v,a=Object.create(r.prototype),s=new A(o||[]);return i(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",m="executing",g="completed",h={};function v(){}function b(){}function _(){}var y={};l(y,a,(function(){return this}));var w=Object.getPrototypeOf,C=w&&w(w(O([])));C&&C!==n&&o.call(C,a)&&(y=C);var x=_.prototype=v.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,r,a,s){var c=d(e[i],e,r);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&o.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var r;i(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,i){n(e,o,t,i)}))}return r=r?r.then(i,i):i()}})}function E(e,n,o){var i=p;return function(r,a){if(i===m)throw new Error("Generator is already running");if(i===g){if("throw"===r)throw a;return{value:t,done:!0}}for(o.method=r,o.arg=a;;){var s=o.delegate;if(s){var c=T(s,o);if(c){if(c===h)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===p)throw i=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=m;var l=d(e,n,o);if("normal"===l.type){if(i=o.done?g:f,l.arg===h)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=g,o.method="throw",o.arg=l.arg)}}}function T(e,n){var o=n.method,i=e.iterator[o];if(i===t)return n.delegate=null,"throw"===o&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var r=d(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,h;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function O(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function n(){for(;++i<e.length;)if(o.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=_,i(x,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,c,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},S(k.prototype),l(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,o,i,r){void 0===r&&(r=Promise);var a=new k(u(t,n,o,i),r);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),l(x,c,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},e.values=O,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
107h(I),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(o,i){return s.type="throw",s.arg=e,n.next=o,i&&(n.method="next",n.arg=t),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:O(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7461:function(){window.obsShowPassword=function(e,t,n){var o=document.getElementById(e);"password"===o.type?(o.type="text",document.getElementById(t).style.display="none",document.getElementById(n).style.display="inline-block"):(o.type="password",document.getElementById(t).style.display="inline-block",document.getElementById(n).style.display="none")}},8161:function(e,t,n){"use strict";n.d(t,{Q:function(){return a}});var o=n(45994);const i="6LcGdUwUAAAAAEdlBPCpW7tsy8WC9fM4U-y9Kudl",r="recaptcha-google";function a(){const{isReady:e,containerRef:t,execute:n}=function(){const[e,t]=(0,o.useState)(!1),n=((0,o.useRef)(),(0,o.useRef)());window.adamastorRecaptchaStore=window.adamastorRecaptchaStore||{container:null,widgetId:null},(0,o.useEffect)((()=>{if(document.getElementById(r))return void t(!0);const e=document.createElement("script");return e.id=r,e.src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoad&render=explicit",e.async=!0,e.onload=()=>{const e=document.createElement("div");e.id="recaptcha-container",window.adamastorRecaptchaStore.container=e,document.body.appendChild(n.current),grecaptcha.ready((()=>{window.adamastorRecaptchaStore.widgetId=grecaptcha.render(n.current,{sitekey:i,size:"invisible",badge:"bottomright",callback:()=>t(!0)}),t(!0)}))},document.body.appendChild(e),()=>{delete window.onRecaptchaLoad}}),[]);const a=(0,o.hb)((async()=>{if(!e)throw new Error("reCAPTCHA ainda não está pronto, tente novamente");if(null===window.adamastorRecaptchaStore.widgetId)throw new Error("reCAPTCHA não renderizou");grecaptcha.reset(window.adamastorRecaptchaStore.widgetId);try{return await grecaptcha.execute(window.adamastorRecaptchaStore.widgetId),grecaptcha.getResponse(window.adamastorRecaptchaStore.widgetId)}catch(e){throw new Error("erro no reCAPTCHA")}}),[e]);return{isReady:e,containerRef:n,execute:a}}(),[a,s]=(0,o.useState)(!1);return{isReady:e,isExecuting:a,containerRef:t,execute:(0,o.hb)((async()=>{s(!0);try{return await n()}finally{s(!1)}}),[n])}}},8243:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var o=n(76214),i=n(45994),r=n(54499),a=n(95166),s=n(37223),c=n(26991),l=n(4438),u=n(91597);const d=(0,n(16922).m)((function({onClose:e,onSwitchToLogin:t}){const[n,d]=(0,i.useState)(!1),[p,f]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),[h,v]=(0,i.useState)(!1),b=n&&p;function _(){u._.show({icon:"dialog-success",title:"Verifique a sua caixa de email",text:'Falta pouco! Clique no link que enviámos para o seu e-mail para validar a conta. Se não o encontrar, espreite a pasta de "Spam" ou "Promoções".'}),e()}function y(){g(null)}const w=()=>{g(!0),setTimeout((()=>g(!1)),3e3)};return o.html`
108        <div class="row">
109            <div class="fbg-row row">
110                <div class="fbg-col-4 fbg-col-md-2 columns medium-6 login-panel">
111                    <h3>Registe-se</h3>
112                    <div class="details">
113                        <p>
114                            Já tem uma conta no Observador?<br />
115                            <a href="#" onClick=${t}>Inicie a sessão</a>
116                        </p>
117                    </div>
118                    <${c.f} acceptedTerms=${n} acceptedPrivacy=${p} onTermsChange=${e=>{d(e),m&&g(!1)}} onPrivacyChange=${e=>{f(e),m&&g(!1)}} showError=${m} />
119                    <div class=${"login-buttons"+(h?" social-ready":"")}>
120                        <${r.V} onSuccess=${_} requireTerms=${!0} termsAccepted=${b} onClick=${y} onError=${w} onReady=${()=>v(!0)} type="icon" />
121                        <${a.G} onSuccess=${_} requireTerms=${!0} termsAccepted=${b} onClick=${y} onError=${w} type="icon" />
122                    </div>
123
124                    <${l.c} />
125
126                    <${s.s} onSuccess=${_} termsAccepted=${b} onTermsError=${w} />
127                </div>
128            </div>
129        </div>
130    `}))},9494:function(){!function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){if(r)return r(a,!0);throw new Error("Cannot find module '"+a+"'")}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,o)}return n[a].exports}for(var r=void 0,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(e,t,n){function o(e){this.message=e}o.prototype=new Error,o.prototype.name="InvalidCharacterError",t.exports="undefined"!=typeof window&&window.atob||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new o("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,a=0,s="";i=t.charAt(a++);~i&&(n=r%4?64*n+i:i,r++%4)?s+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
130+/=".indexOf(i);return s}},{}],2:[function(e,t,n){var o=e("./atob");t.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}},{"./atob":1}],3:[function(e,t,n){"use strict";var o=e("./base64_url_decode");t.exports=function(e){if(!e)throw new Error("Invalid token specified");return JSON.parse(o(e.split(".")[1]))}},{"./base64_url_decode":2}],4:[function(e,t,n){var o="undefined"!=typeof self?self:"undefined"!=typeof window?window:{},i=e("./lib/index");"function"==typeof o.window.define&&o.window.define.amd?o.window.define("jwt_decode",(function(){return i})):o.window&&(o.window.jwt_decode=i)},{"./lib/index":3}]},{},[4])},10826:function(e,t,n){"use strict";var o=n(61722);document.addEventListener("DOMContentLoaded",(function(){const e=new IntersectionObserver((e=>{e[0].isIntersecting?document.querySelector(".obs-ad-placeholder-footer-sticky").classList.remove("footer-sticky"):document.querySelector(".obs-ad-placeholder-footer-sticky").classList.add("footer-sticky")}));if(!(0,o.H0)()&&!document.body.classList.contains("premium-user")){const t=document.querySelector(".obs-ad-placeholder-manchete");if(t)e.observe(t);else{let e=0;window.addEventListener("scroll",(function(){let t=window.pageYOffset||document.documentElement.scrollTop;const n=document.querySelector(".obs-ad-placeholder-footer-sticky");n&&(t>e&&t>48?n.classList.add("footer-sticky"):t<e&&n.classList.remove("footer-sticky")),e=t<=0?0:t}),!1)}}setTimeout((()=>{document.body.classList.contains("toaster-expanded")&&document.querySelector(".obs-ad-placeholder-footer-sticky").classList.remove("footer-sticky")}),1400);let t=0;document.addEventListener("scroll",(function(e){(document.body.scrollTop>500||document.documentElement.scrollTop>500)&&0===t&&"none"===document.getElementsByClassName("obs-ad-placeholder-footer-sticky")[0]?.getElementsByTagName("iframe")[0]?.style.display&&(document.querySelector(".obs-ad-placeholder-footer-sticky").style.display="none",t=1)}))}))},11079:function(){window.RameiraProxy=function(){var e;return{getInstance:function(){var t,n,o,i;return e||(t=globalSettings.obsIps.rameiraURL,n=function(e,t,n,o,i){var r=null;null==n&&null==n||(r=JSON.stringify(n));var a=new XMLHttpRequest;a.open(t,e,!0),a.setRequestHeader("Content-type","application/json");var s=adamastor.getToken();a.setRequestHeader("Authorization","Bearer "+s),a.onreadystatechange=function(){if(4==a.readyState)if(a.status>=200&&a.status<400){if(a.responseText)var e="";try{e=JSON.parse(a.responseText)}catch(e){}o(e,a.statusText,a)}else i(a,a.statusText)},a.send(r)},o=function(e,o,i){n(t+e,"GET",null,o,i)},i=function(e,o,i){n(t+"article","POST",e,o,i)},e={addEvent:function(e,t,n){i(e,t,n)},getHistory:function(e,t,n,i,r){var a="article/user/"+e+"/history/events";null!=t&&null!=n&&(a+="?l="+parseInt(t),a+="&o="+parseInt(n)),o(a,i,r)},getSavedArticles:function(e,t,n,i,r){var a="article/user/"+e+"/save";null!=t&&null!=n&&(a+="?l="+parseInt(t),a+="&o="+parseInt(n)),o(a,i,r)},unSaveArticle:function(e,t,n,o){i({postId:t,userId:e,action:"UNSAVE"},n,o)}}),e}}}(),document.addEventListener("DOMContentLoaded",(function(){!function(){if(adamastor.isLoggedIn()){const t=contextualData.type,n=contextualData.id,o=contextualData.status;if("post"===t&&n>0&&"publish"===o){var e={objectType:"post",id:""+n,userId:adamastor.getSessionProfile().sub,anonymous:!1,action:"READ",platform:"desktop",origin:"normal",gorseToken:contextualData.gorseToken??""};RameiraProxy.getInstance().addEvent(e,(function(e,t,n){}),(function(e,t,n){console.log("fail to save user history")}))}}}()}))},12201:function(e,t,n){var o=n(41669);window.ArdinaProxy=function(){var e;return{getInstance:function(){return e||(t=globalSettings.obsIps.ardinaUrl+"v2/",n=globalSettings.obsIps.apiV5Url,i=function(e,t,n,o,i){var r=null;null==n&&null==n||(r=JSON.stringify(n));var a=new XMLHttpRequest;a.open(t,e,!0),a.setRequestHeader("Content-type","application/json");var s=adamastor.getToken();a.setRequestHeader("Authorization","Bearer "+s),a.onreadystatechange=function(){if(4==a.readyState)if(a.status>=200&&a.status<400){if(a.responseText)var e="";try{e=JSON.parse(a.responseText)}catch(e){}o&&o(e,a.statusText,a)}else i&&i(a,a.statusText)},a.send(r)},r=function(e,n,o){i(t+e,"GET",null,n,o)},a=function(e,n,o){i(t+e,"DELETE",null,n,o)},s=function(e,t){console.log("error",e,t)},c=function(e,t,r){var a={};e.forEach((function(e){var t=e;void 0===a[t.context_name]?a[t.context_name]=[t.context_instance_id]:-1===a[t.context_name].indexOf(t.context_instance_id)&&a[t.context_name].push(t.context_instance_id)}),this),function(e,t,r){o.isEmptyObject(e)?t({}):i(n+"search/bulk","POST",e,t,r)}(a,(function(n){var o=n.author,i=n.topic,r=n.program;e.forEach((function(e){switch(e.context_name){case"author":for(var t=0;t<o.length;t++)e.context_instance_id==o[t].id&&(e.name=o[t].displayName,e.url="https://observador.pt/",o[t].isListedAuthor?e.url+="perfil/"+o[t].userName:e.url+="opiniao/autor/"+o[t].userName,t=o.length+1);break;case"topic":for(t=0;t<i.length;t++)e.context_instance_id==i[t].term_id&&(e.name=i[t].name,e.url=i[t].permalink,t=i.length+1);break;case"program":for(t=0;t<r.length;t++)e.context_instance_id==r[t].term_id&&(console.log("topic",r[t]),e.name=r[t].name,e.url=r[t].permalink,t=r.length+1)}}),this);var a=l(e);t(a)}),r)},l=function(e){for(var t={},n=0;n<e.length;++n){var o=e[n];void 0===t[o.context_name]&&(t[o.context_name]={});var i=""+o.context_instance_id.toString();void 0===t[o.context_name][i]&&(t[o.context_name][i]=new Array),t[o.context_name][i].push(o)}return t},e={getAvailableChannels:function(e,n){i(t+"channels","GET",null,e,n)}
130,getAvailablePeriodicities:function(e,n){i(t+"periodicities","GET",null,e,n)},toogleChannelPeriodicity:function(e,n,o,r,a){i(t+"profile/channel/"+n+"/"+o,e?"POST":"DELETE",null,r,a)},setChannelPeriodicity:function(e,n,o,r){i(t+"profile/channel/"+e+"/"+n,"PUT",null,o,r)},toggleAlerts:function(e,n,o){i(t+"profile/"+(1==e?"enable":"disable"),"POST",null,n,o)},getProfile:function(e,n){i(t+"profile","GET",null,e,n)},getSubscriptionsForUi:function(e,t,n){!function(e,t,n){r("subscriptions/user/"+e,(function(e,o){c(e,t,n)}),n||s)}(e,t,n)},getSubscriptions:function(e){return new Promise(((t,n)=>{r("subscriptions/user/"+e,(function(e,n){t(e)}),(()=>n()))}))},getSubscriptionsByCategory:function(e,t,n,o){!function(e,t,n,o){r("subscriptions/user/"+e+"/"+t,(function(e,t){c(e,n,o)}),o||s)}(e,t,n,o)},update:function(e,t,n,o){console.log("implement update:",e,t)},deleteAllForUser:function(e,t,n){a("subscriptions/user/"+e,(function(e,n){t(e,n)}),n||s)},deleteAllForUserWhat:function(e,t,n,o){a("subscriptions/user/"+e+"/"+t,(function(e,t){n(e,t)}),o||s)},deleteAllForUserWhatId:function(e,t,n,o,i){a("subscriptions/user/"+e+"/"+t+"/"+n,(function(e,t){o(e,t)}),i||s)},subscribe:function(e,t,n,o,i){!function(e,t,n,o,i,a){r("subscriptions/user/"+e+"/subscribe/"+t+"/"+n+"/desktop",(function(e,t){c(e,i,a)}),a||s)}(e,t,n,0,o,i)},unsubscribe:function(e,t,n,o,i){!function(e,t,n,o,i){a("subscriptions/user/"+e+"/subscribe/"+t+"/"+n,(function(e,t){o(e,t)}),i||s)}(e,t,n,o,i)},checkForSubscribed:function(e,t,n,o,i,a){r("subscriptions/user/"+e+"/subscribed/"+t+"/"+n,(function(e,t){i(e,t)}),a)}}),e;var t,n,i,r,a,s,c,l}}}()},13179:function(){window.articlesCounter={key:"obs.weeklyArticlesCounter",get:function(){var e=localStorage.getItem(articlesCounter.key);return null!=e?JSON.parse(e):[]},set:function(e){localStorage.setItem(articlesCounter.key,JSON.stringify(e))},week:function(e){var t=e.getDay()||7;return 1!==t&&e.setHours(-24*(t-1)),Math.floor(e.getTime()/864e5)},increment:function(){var e=articlesCounter.week(new Date),t=articlesCounter.get();if(t[0]&&t[0].week&&t[0].week===e)t[0].count+=1,articlesCounter.set(t);else{t.unshift({week:e,count:1});var n=e-365,o=t.filter((function(e){return e.week>=n}));articlesCounter.set(o)}},sum:function(e){var t=0,n=articlesCounter.week(new Date)-7*e;return articlesCounter.get().forEach((function(e){e.week>n&&(t+=e.count)})),t},migrate:function(){var e="obs.history.weeklyArticleCount",t=localStorage.getItem(e);
130if(null!==t){t=JSON.parse(t);var n=[];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(0===(o=parseInt(o)))continue;n.unshift({week:o,count:t[o]})}localStorage.removeItem(e),articlesCounter.set(n)}}},document.addEventListener("DOMContentLoaded",(function(e){"post"===contextualData.type&&articlesCounter.increment()}),!1)},13288:function(e,t,n){"use strict";var o=n(54586),i=n(14318),r=n(41669);const a="https://ugift.observador.pt/api/",s=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],c='<button title="%title%" type="button" class="mfp-close" data-event-name="article_interaction" data-click-action="offer"><svg class="obs-icon obs-icon-closex"><use href="'+siteSettings.SVG_GLOBAL_URL+'#obs-icon-closex"></use></svg></button>';async function l(e,t){if(200===e&&t.remaining>0){document.getElementById("offer_recipient").value="",document.getElementById("message").value="";const e=1===t.remaining?" <strong>artigo</strong> disponivel":" <strong>artigos</strong> disponiveis";return document.getElementById("available-gifts-info").innerHTML="<strong>"+t.remaining+"</strong>"+e,r.magnificPopup.open({items:{src:"#user-gift-pop-container"},type:"inline",closeOnBgClick:!0,closeMarkup:c,fixedContentPos:!0}),void document.getElementById("accept-share-button").addEventListener("click",u)}if(200===e&&0===t.remaining&&0!==t.total)return document.getElementById("gift-reset-date").innerHTML=function(){const e=new Date;return 11===e.getMonth()?s[0]+"de"+e.getFullYear()+1:s[e.getMonth()+1]+" de "+e.getFullYear()}(),document.getElementById("gift-reset").getElementsByClassName("max-gifts-info")[0].innerHTML=6,void r.magnificPopup.open({items:{src:"#gift-reset"},type:"inline",closeOnBgClick:!0,closeMarkup:" "});200!==e||0!==t.remaining||0!==t.total?r.magnificPopup.open({items:{src:"#gift-error"},type:"inline",closeOnBgClick:!0,showCloseBtn:!1}):r.magnificPopup.open({items:{src:"#gift-info-subscriber"},type:"inline",closeOnBgClick:!0,closeMarkup:c})}async function u(e){if(e.preventDefault(),!0!==function(){const e=document.getElementById("offer_recipient");return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e.value)?(e.nextElementSibling.style.display="none",!0):(e.nextElementSibling.style.display="block",!1)}())return;(0,o.VR)({click_action:"offer",click_label:"sent",click_location:"",event:o._j.articleinteraction});const t=adamastor.getToken(),n=adamastor.getSessionProfile().sub,i=new FormData(document.getElementById("gift-form")),s=document.getElementById("user-gift-pop-container"),l=document.getElementById("spinner-container"),u={user_id:n,post_id:parseInt(contextualData.id),offer_recipient:i.get("offer_recipient"),message:i.get("message")};s.classList.add("waiting"),l.classList.add("global-spinner");const d=await fetch(a+"v2/offer",{method:"POST",body:JSON.stringify(u),headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer "+t}});if(s.classList.remove("waiting"),l.classList.remove("global-spinner"),200===d.status){const e=await d.json(),t=1===e.remaining?" artigo disponivel":" artigos disponiveis";document.getElementById("articles-left").innerHTML=e.remaining+t,document.getElementById("receiver_email").innerHTML=e.offered.receiver_email,r.magnificPopup.open({items:{src:"#sended-article"},type:"inline"})}else{const e=document.querySelector("#gift-error").querySelector("#error-message");403===d.status&&(e.textContent="Este artigo já foi oferecido ao utilizador: "+i.get("offer_recipient")),r.magnificPopup.open({items:{src:"#gift-error"},type:"inline",closeOnBgClick:!0,closeMarkup:c})}}async function d(){const e=adamastor.getToken(),t=await fetch(a+"remaining",{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer "+e}}),n=await t.json();return{resStatus:t.status,resBody:n}}document.addEventListener("DOMContentLoaded",(async()=>{const e=document.getElementsByClassName("li_gift_article");Array.from(e).forEach((e=>e.addEventListener("click",(async()=>
130{if("true"!==localStorage.getItem("adamastorLoggedIn"))return localStorage.setItem("dontReload","true"),adamastor.showLogin(),void obsEventListener("obsLogin",(async()=>{const{resStatus:e,resBody:t}=await d();await l(e,t)}),!1);const{resStatus:e,resBody:t}=await d();adamastor.isSubscriber()?await l(e,t):await async function(){document.getElementById("gift-info").getElementsByClassName("max-gifts-info")[0].innerHTML=6,r.magnificPopup.open({items:{src:"#gift-info"},type:"inline",closeOnBgClick:!0,closeMarkup:c})}()}))));const t=new URLSearchParams(location.search);t.get("offer")&&await async function(e){if(adamastor.isLoggedIn()){const t=await fetch(a+"check",{method:"POST",body:JSON.stringify({post_id:parseInt(contextualData.id),token:e}),headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer "+adamastor.getToken()}}),n=await t.json();200===t.status&&((0,i.h)(),document.getElementById("offer-from-user").innerHTML=n.name,r.magnificPopup.open({items:{src:"#gift-intro"},preloader:!1,mainClass:"footer-alert",type:"inline",closeOnBgClick:!0,closeMarkup:c}))}else r.magnificPopup.open({items:{src:"#gift-email-confirmation"},type:"inline",closeOnBgClick:!0,closeMarkup:c})}(t.get("offer"))}))},13295:function(){},13589:function(e,t,n){var o=n(41669);window.BatchCommentsLinks=function(){"use strict";var e=[],t={},n='<span class="global-spinner"><span class="spinner"></span></span><a class="comment-small-icon clickable"><svg class="obs-icon obs-icon-comments"><use href="'+siteSettings.SVG_GLOBAL_URL+'#obs-icon-comments"></use></svg>{{count}}</a>';this.add=function(n){var i=o(n),r=i.closest(i.closest(".news-item")),a=i.closest(i.closest(".recirculation"));if((0===r.length||a.length>0)&&0===i.children().length){var s=i.data("authorid"),c={contentType:"post",objectId:i.data("id").toString(),initialProps:{authorId:s,title:i.data("title"),dontPreFetch:!0}};!function(){if(adamastor.isLoggedIn()){var o=adamastor.getSessionProfile();c.initialProps.userId=o.sub,c.initialProps.userName=o.name,c.initialProps.isCommenter=o.tags.indexOf("commenter")>=0}e.push(c);var r=i.data("id");t[r]={link:i.data("link"),dom:n}}()}},this.createReact=function(){AddUp.getCommentGroups(e).forEach((function(e){var n=e.objectId,o=t[n];o&&(e.createCommentSmallIcon(o.dom,!0,10,o.link),delete t[n])}))},this.create=function(){var t=e.map((function(e){return{id:e.objectId}})).reduce((function(e,t,n){return e+(0==n?"":"&")+"id="+t.id}),"https://barbeiro.observador.pt/comments/count?content_type=post&");o.getJSON(t,(function(e){for(var t in e){var i,r=e[t].object_id,a=0==e[t].count;i=null==e?0:e[t].count,Array.prototype.slice.call(o("span.comments[data-id='"+r+"']").not('article .comments, [data-commentsloaded="true"]')).forEach((function(e){i>10&&(o(e).addClass("clickable").toggleClass("no-comments",a).html(n.replace("{{count}}",i>0?i:"+")).attr("data-commentsloaded","true"),o(e).children("a").attr("href",o(e).data("link")+"#comment-post-"+o(e).data("id"))),o(e).attr("data-commentsloaded","true")}))}}),(function(){}))}}},14117:function(e,t,n){"use strict";n.d(t,{N7:function(){return u},Tx:function(){return s},_Y:function(){return c},lR:function(){return a},p_:function(){return l}});var o=n(76214);const i={unknown_error:"Erro no servidor",authentication_fail:"Dados inválidos. Verifique a senha ou faça login com uma das redes sociais.",email_exists:"Este email já tem uma conta criada",
130invalid_email:"Insira um endereço de email válido",pwd_weak:"A password deve ter pelo menos 6 caracteres",pwd_empty:"É necessário preencher este campo",pwd_not_match:"As passwords não coincidem",invalid_recaptcha:"Erro reCaptcha",not_found:"Email não encontrado. Verifique o email ou faça login com uma das redes sociais.",not_verified:"Utilizador não verificado",bad_request:"Erro no pedido",internal_server_error:"Erro no servidor",missing_email_permission:"Para prosseguir é obrigatório partilhar o seu endereço de email. Volte a tentar",firstname_empty:"É necessário preencher o primeiro nome",lastname_empty:"É necessário preencher o último nome",limit_exceeded:"Limite de dispositivos excedido",login_limit_exceeded:"",invalid_grant:"Sessão inválida",fail_auth_google_callback:"Erro ao autenticar com Google",fail_auth_facebook_callback:"Erro ao autenticar com Facebook",fail_auth_barqueiro_callback:"Erro ao autenticar",fail_auth_apple_callback:"Erro ao autenticar com Apple",fail_auth_token:"Erro ao processar token de autenticação",network_error:"Erro de conexão. Verifique sua internet.",no_uid:"Erro de autenticação"},r={login_limit_exceeded:o.html`Conta temporariamente restrita. Volte a tentar nas próximas horas. Normalmente, isto deve-se à partilha indevida do acesso entre várias pessoas, <a href="https://observador.pt/utilizacao-pessoal-da-assinatura-observador/">mais informação aqui</a>. Cada conta Observador é pessoal. Para partilhar, <a href="https://observador.pt/assinar/planos/">faça upgrade</a> e
131        adicione lugares a preços competitivos.<br /><br />Se acredita que isto é um erro, por favor <a href="https://observador.pt/apoio-a-cliente/">contacte-nos</a>.`};class a extends Error{constructor(e,t=0,n){super(n||i[e]||"Ocorreu um erro"),this.code=e,this.status=t,this.name="AuthError",Error.captureStackTrace&&Error.captureStackTrace(this,a)}}function s(e){if(e instanceof a)return e;if(!e||!e.responseJSON)return new a("network_error",0);const{responseJSON:t}=e,n=t.error||t.errors?.[0]||"internal_server_error",o=e.status||0;return new a(n,o)}function c(e){return e instanceof a?r[e.code]??e.message:"string"==typeof e?e:e instanceof Error?e.message:null==e?"":String(e)}function l(e){const t={};switch(e.code){case"invalid_email":case"email_exists":case"not_found":t.email=e.message;break;case"pwd_weak":case"pwd_empty":case"pwd_not_match":t.password=e.message;break;case"firstname_empty":t.first_name=e.message;break;case"lastname_empty":t.last_name=e.message}return t}function u(e,t){window.airbrake&&window.airbrake.notify({error:e,context:t}),"true"===localStorage.getItem("debug-adamastor")&&console.error("[Adamastor Error]",e,t)}},14246:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var o=n(76214);function i({className:e="",text:t}){return o.html`
132        <div class="global-spinner login-popup-spinner ${e}">
133            <span class="spinner"></span>
134            ${t&&o.html`<span class="spinner-text">${t}</span>`}
135        </div>
136    `}},14318:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var o=n(41669);function i(){if(window.obs_tp.paywallCleared=!0,"post"in contextualData){if("obs_liveblog"===contextualData.post.postType)return o(".piano-article-blocker").hide(),o(".liveblog-livefeed-list").removeClass("js-paywalled").removeClass("lb-paywall"),void o(".liveblog-highlights-list").css("pointer-events","unset");document.body.classList.add("article-shown"),document.body.classList.remove("show-piano-toaster"),document.body.style.overflow="unset";const t=document.querySelector("article");t&&t.setAttribute("shown","true");var e=document.querySelector(".article-body-wrapper");e&&e.classList.remove("js-paywalled"),o(".piano-article-blocker").hide(),o("#piano-toaster").show()}}function r(){window.obs_tp.paywallCleared||"post"in contextualData&&(o(".episode-blocker").show(),o(".article-head-audio").remove(),o(".article-body-wrapper").addClass("js-paywalled"),document.body.classList.add("hide-pub"))}window.obs_tp||(window.obs_tp={paywallTriggered:!1,paywallTriggeredName:"",paywallCleared:!1,paywallMetered:!1}),window.hideText=function(){if(!window.obs_tp.paywallCleared&&"post"in contextualData){if("obs_episode"===contextualData.post.postType&&r(),"obs_liveblog"===contextualData.post.postType)return document.dispatchEvent(new CustomEvent("obsShowPaywall",{detail:{post_id:contextualData.post.id,post_type:contextualData.post.postType}})),o(".piano-article-blocker").show(),o(".liveblog-livefeed-list").addClass("js-paywalled").addClass("lb-paywall"),void o(".liveblog-highlights-list").css("pointer-events","none");if("true"===document.querySelector("article").getAttribute("shown"))return;o(".obs-ad-placeholder-paywall_article_beginning").show();let e=document.getElementById("pub-inside-article"),t=document.querySelector("#piano-article-blocker");e&&o(t).addClass("pub-in-article"),document.querySelector(".is-an-initiative")&&o(t).addClass("is-an-initiative-article"),document.dispatchEvent(new CustomEvent("obsShowPaywall",{detail:{post_id:contextualData.post.id,post_type:contextualData.post.postType}})),o(".piano-article-blocker").show(),o(".article-body-wrapper").addClass("js-paywalled"),document.body.classList.remove("article-shown"),o(".article-footer-meta").hide(),document.body.classList.add("hide-pub"),o("#eyeDiv").hide(),o(".article-body-content .obs-ad-container").hide(),o("#piano-article-cta").hide()}},window.showText=i,window.hideEpisode=r},14399:function(e,t,n){"use strict";n.d(t,{O:function(){return o}});const o=[{id:"prices_survey",title:"A sua opinião é importante para nós",de
136scription:"Ajude-nos a melhorar o Observador. Responda a este breve questionário. O seu feedback é essencial.",buttonText:"Responder",buttonUrl:"https://surveyking.com/w/p9xr6r5",icon:"prices_survey",rules:{showOnFirstVisit:!0,showEveryXVisits:5,maxShows:3,showLoggedOut:!0,showLoggedIn:!0,showPremium:!0,showNoPremium:!0}}]},14679:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});const o="obsSessionId",i=18e5,r=6e4;function a(e){try{return localStorage.setItem(o,JSON.stringify(e)),!0}catch{return!1}}function s(){const e=Date.now(),t=function(){try{const e=localStorage.getItem(o);if(!e)return null;const t=JSON.parse(e);if("string"==typeof t?.id&&t.id&&"number"==typeof t?.lastSeen)return t}catch{}return null}();if(t&&e-t.lastSeen<i)return e-t.lastSeen>r&&a({id:t.id,lastSeen:e}),t.id;const n={id:"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))),lastSeen:e};return a(n)?n.id:null}},15959:function(e,t,n){"use strict";n.d(t,{z:function(){return d}});var o=n(76214),i=n(45994),r=n(54499),a=n(95166),s=n(68845),c=n(4438),l=n(16922),u=n(14117);const d=(0,l.m)((function(e){const{onClose:t,onSwitchToRegister:n,hideRegister:l}=e,[d,p]=(0,i.useState)(null),[f,m]=(0,i.useState)(!1);function g(){t()}function h(e){p((0,u._Y)(e))}function v(){p(null)}return o.html`
137        <div class="row">
138            <div class="fbg-row row">
139                <div class="fbg-col-4 fbg-col-md-2 columns medium-6 login-panel">
140                    <h3 class="login-header">Inicie sessão</h3>
141
142                    ${l??o.html`
143                        <div class="details">
144                            <p>
145                                Ainda não tem conta no Observador?<br />
146                                <a href="#" onClick=${n}>Clique aqui para criar</a>
147                            </p>
148                        </div>
149                    `}
150
151                    <div class=${"login-buttons"+(f?" social-ready":"")}>
152                        <${r.V} onSuccess=${g} onError=${h} onClick=${v} onReady=${()=>m(!0)} type="icon" />
153                        <${a.G} onSuccess=${g} onError=${h} onClick=${v} type="icon" />
154                    </div>
155                    ${d&&o.html`<p class="oauth-error">${d}</p>`}
156                    <${c.c} />
157
158                    <${s.i} onSuccess=${g} onResendActivation=${()=>{alert("Funcionalidade de reenvio de email em desenvolvimento")}} />
159                </div>
160            </div>
161        </div>
162    `}))},16124:function(){var e,t;window.SaveArticlesProxy=(t=globalSettings.obsIps,{getInstance:function(){var n,o,i,r;return e||(n=t.saveArticlesURL,o=function(e,t,n,o,i){var r=null;null==n&&null==n||(r=JSON.stringify(n));var a=new XMLHttpRequest;a.open(t,e,!0),a.setRequestHeader("Content-type","application/json");var s=adamastor.getToken();a.setRequestHeader("Authorization","Bearer "+s),a.onreadystatechange=function(){if(4==a.readyState)if(a.status>=200&&a.status<400){if(a.responseText)var e="";try{e=JSON.parse(a.responseText)}catch(e){}o(e,a.statusText,a)}else i(a,a.statusText)},a.send(r)},i=function(e,t,i){o(n+e,"GET",null,t,i)},r=function(e,t,i,r){o(n+e,"POST",t,i,r)},e={saveArticle:function(e,t,n,o){r("save",{postId:t,userId:e},n,o)},unSaveArticle:function(e,t,n,o){r("unsave",{postId:t,userId:e},n,o)},getSavedIdsArticles:function(e,t,n){i("save/"+e+"/ids",t,n)},checkSavedArticle:function(e,t,n,o){i("save/"+e+"/"+t+"/status",n,o)},getSavedArticles:function(e,t,n,o,r){var a="save/"+e+"/ids";null!=t&&null!=n&&(a+="?l="+parseInt(t),a+="&o="+parseInt(n)),i(a,o,r)},getSavedArticlesComplete:function(e,t,n,o,r){var a="save/"+e;null!=t&&null!=n&&(a+="?l="+parseInt(t),a+="&o="+parseInt(n)),i(a,o,r)},getAllIds:function(e,t,n){i("save/"+e+"/ids?t=1",t,n)}}),e}})},16513:function(e,t,n){"use strict";n(76214),n(45994)},16922:function(e,t,n){"use strict";n.d(t,{m:function(){return i}});var o=n(76214);function i(e){return function(t){const{title:n,onClose:i,hideClose:r}=t,{id:a}=t;return o.html`
163            <div class="login-popup" id=${a} role="dialog" aria-modal="true">
164                ${r??o.html`<a class="adamastor-close" onClick=${i} aria-label="Fechar">
165                    <svg>
166                        <use href="/wp-content/themes/observador-child/assets/build/svg/global.svg#obs-icon-closex"></use>
167                    </svg>
168                </a> `}
169
170                <div class="generic-title">
171                    <h2>${n}</h2>
172                </div>
173
174                <${e} ...${t} />
175            </div>
176        `}}},18752:function(e,t,n){"use strict";n.d(t,{Ux:function(){return h},c:function(){return v}});var o=n(14117),i=n(34049),r=n(91597),a=n(54586),s=n(24039),c=n(50172),l=n(76214),u=n(15959),d=n(8243),p=n(64334),f=n(95166),m=n(54499),g=n(55379);const h="obsUserStateChange";function v(e,t){const n=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0});document.dispatchEvent(n)}
176function b(){this.getSession()||(0,i.A)()||!document.querySelector("#google-one-tap-prompt")||(window.google?.accounts?.id.initialize({auto_select:!0,client_id:this.config.google_client_id,prompt_parent_id:"google-one-tap-prompt",callback:e=>adamastor.googleLogin(e.credential)}),window.google?.accounts?.id.prompt())}function _(){function e(){(0,s.am)(),v("obsLoginCallback"),v(h),"true"===localStorage.getItem("adamastorLoggedIn")&&v("obsLogin",adamastor.getSession())}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}function y(e){try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map((e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2))).join(""));return JSON.parse(n)}catch(e){return console.error("Error decoding JWT:",e),null}}function w(e,t,n){const o=n.toUTCString();document.cookie=`${e}=${t}; expires=${o}; path=/; SameSite=Lax; Secure`}function C(e,t="OBS-ADAMASTOR"){localStorage.setItem(t,JSON.stringify({access_token:e.access_token,refresh_token:e.refresh_token,expires_in:e.expires_in,token_type:e.token_type,id:e.id||e.sub})),localStorage.setItem("PREMIUM_USER",String(e.subscription?.isPremium??!1)),localStorage.setItem("adamastorLoggedIn","true");const n=new Date(Date.now()+2592e6);w("x-observador-token",e.access_token,n)}function x(){window.addEventListener("hashchange",(()=>{"#login-popup"===location.hash&&adamastor.showLogin()}))}function S(){document.querySelectorAll(".header-login").forEach((e=>{(0,c.render)(l.html`<${p.D} container=${e} onShowLogin=${()=>adamastor.showLogin({})} />`,e)})),"#login-popup"===location.hash&&adamastor.showLogin({})}window.adamastor=window.adamastor??new class{constructor(e){if(window.adamastor)throw new Error("Singleton use please, exporting just for typing");localStorage.removeItem("dontReload"),this.loginDialog=document.querySelector("#adamastor-login-dialog"),this.registerDialog=document.querySelector("#adamastor-register-dialog"),this.config={client_id:"3d0abce8-481e-11e5-be5d-2cf0ee2d8267",google_client_id:"439313482366-dvdj8tsff9tpi5csb410roen1r9g3m5q.apps.googleusercontent.com",authority:window.globalSettings?.obsIps?.adamastorUrl||"https://adamastor.observador.pt/",api_endpoint:(window.globalSettings?.obsIps?.peopleUrl||"https://people.observador.pt/")+"api",session_name:"OBS-ADAMASTOR",scope:"openid profile email read write",tokenTimeToExpirePercentage:.8,...e},this.tabId=String(window.performance.now()+1e3*Math.random());let t=new URLSearchParams(window.location.search).get("__adamastor_assume");t?this.logout({reload:!1,notify:!1}).finally((()=>{this.saveSession(this.decodeSession(JSON.parse(t))),window.location.replace(location.pathname)})):(this.initRefreshTokenLoop(),setTimeout(b.bind(this)),setTimeout(_),setTimeout(S),setTimeout(x))}getStoredSession(e="OBS-ADAMASTOR"){try{const t=localStorage.getItem(e);if(!t)return null;const n=JSON.parse(t),o=y(n.access_token);return o?{...n,...o}:null}catch(e){return console.error("Error retrieving session:",e),null}}initRefreshTokenLoop(){this.refreshIntervalTimer=window.setInterval((async()=>{const e=this.getStoredSession(this.config.session_name);if(!e)return window.clearInterval(this.refreshIntervalTimer),void(this.refreshIntervalTimer=null);
176const t=function(e,t=.8){return 1e3*e.iat+1e3*e.expires_in*t}(e,.8);Date.now()<=t||await navigator.locks.request("refresh-token",{ifAvailable:!0},(async e=>{e&&await this.refresh()}))}),2e3)}clearSession(e="OBS-ADAMASTOR"){localStorage.removeItem(e),localStorage.removeItem("PREMIUM_USER"),localStorage.removeItem("adamastorLoggedIn"),localStorage.removeItem("token_expire_date"),localStorage.removeItem("refreshing"),w("x-observador-token","",new Date(0))}async googleLogin(e,t="token"){const n=String(window.contextualData?.id||location.pathname);try{const o=`${this.config.authority}login/google/callback?${t}=${e}`,i=await this.request(o,{method:"GET",credentials:"include"}),r=await this.authorizeWithCode(i.code);return(0,a.VR)({event:a._j.login_flow,click_action:"login",click_label:"sucesso",click_location:n,login_type:"google"}),r}catch(e){throw(0,o.N7)(e,{provider:"google"}),(0,a.VR)({event:a._j.login_flow,click_action:"login",click_label:"insucesso",click_location:n,login_type:"google"}),this.rethrowIfLoginLimit(e),new o.lR("fail_auth_google_callback",0)}}async facebookLogin(e){try{const t=`${this.config.authority}login/facebook/callback?token=${e}`,n=await this.request(t,{method:"GET",credentials:"include"});return await this.authorizeWithCode(n.code)}catch(e){throw(0,o.N7)(e,{provider:"facebook"}),this.rethrowIfLoginLimit(e),new o.lR("fail_auth_facebook_callback",0)}}async appleLogin(e){const t=String(window.contextualData?.id||location.pathname);try{const n=`${this.config.authority}login/apple/callback?token=${e}`,o=await this.request(n,{method:"GET",credentials:"include"}),i=await this.authorizeWithCode(o.code);return(0,a.VR)({event:a._j.login_flow,click_action:"login",click_label:"sucesso",click_location:t,login_type:"apple"}),i}catch(e){throw(0,o.N7)(e,{provider:"apple"}),(0,a.VR)({event:a._j.login_flow,click_action:"login",click_label:"insucesso",click_location:t,login_type:"apple"}),this.rethrowIfLoginLimit(e),new o.lR("fail_auth_apple_callback",0)}}async barqueiroLogin(e){try{const t=`${this.config.authority}login/barqueiro/callback?token=${e}`,n=await this.request(t,{method:"GET",credentials:"include"});return await this.authorizeWithCode(n.code)}catch(e){throw(0,o.N7)(e,{provider:"barqueiro"}),this.rethrowIfLoginLimit(e),new o.lR("fail_auth_barqueiro_callback",0)}}async authorizeWithCode(e){try{const t=`${this.config.authority}oauth2/authorize?code=${e}&client_id=${this.config.client_id}&grant_type=authorization_code&scope=${this.config.scope}`,n=await this.request(t,{method:"GET",credentials:"include"}),o=this.decodeSession(n);return C(o,this.config.session_name),this.trackLogin(o),o}catch(t){(0,o.N7)(t,{code:e});const n=(0,o.Tx)(t);if("login_limit_exceeded"===n.code)throw n;throw new o.lR("fail_auth_token",0)}}async refresh(){const e=this.getStoredSession(this.config.session_name);if(!e)throw new o.lR("invalid_grant",401);let t,n;try{const n=`${this.config.authority}oauth2/token?grant_type=refresh_token&refresh_token=${e.refresh_token}&scope=${this.config.scope}&user_id=${e.sub}`;t=await fetch(n,{method:"GET",credentials:"include"})}catch{throw new o.lR("network_error",0)}if(t.ok){const e=await t.json(),n=this.decodeSession(e);return C(n,this.config.session_name),v(h,n),n}if("application/json"!==t.headers.get("Content-Type"))throw new o.lR("unknown_error",t.status);try{n=await t.json()}catch{throw new o.lR("unknown_error",t.status)}switch(n.error){case"invalid_request":case"invalid_grant":case"limit_exceeded":case"not found":this.logout()}throw new o.lR(n.error,t.status)}refreshTokenUntilPremium(e){const t=this;return new Promise((n=>{let o=3;setTimeout((async function e(){if(t.isLoggedIn()){if(await t.refresh(),t.isSubscriber(),!t.isSubscriber())return o>0?(o--,void setTimeout(e,5e3)):void n(!1);n(!0)}else n(!1)}),e)}))}async logout(e={notify:!0,reload:!0}){const{notify:t,reload:n}=e,o=this.getStoredSession(this.config.session_name);if(o)try{const e=`${this.config.authority}oauth2/logout?refresh_token=${o.refresh_token}`;await fetch(e,{method:"GET",headers:{Authorization:"Bearer "+this.getToken()}})}catch(e){console.error("Logout error:",e)}this.clearSession(this.config.session_name),t&&(v("obsUserStateChange"),v("obsLogout")),n&&location.reload(),navigator.credentials&&navigator.credentials.preventSilentAccess&&navigator.credentials.preventSilentAccess()}
176getToken(){return this.getStoredSession()?.access_token}getSubscriptionsProductsIds(){return this.getStoredSession()?.subscription?.products?.map((e=>e.id))||[]}getSubscriptionsProducts(){return this.getStoredSession()?.subscription?.products||[]}getProductByType(e){return this.getSubscriptionsProducts().find((t=>t.source===e))}getIsUserExSubscriber(){return this.hasPreviousSubscription()&&!this.isSubscriber()}saveSession(e){C(e)}async getProfile(){const e=this.getStoredSession(this.config.session_name);if(!e)throw new o.lR("invalid_grant",401);try{return await this.apiCall(`/users/${e.sub}`,{method:"GET"})}catch(e){throw this.handleError(e)}}async updateProfile(e){const t=this.getStoredSession(this.config.session_name);if(!t)throw new o.lR("invalid_grant",401);try{const n=await this.apiCall(`/users/${t.sub}`,{method:"PUT",body:JSON.stringify(e)});return await adamastor.refresh(),n}catch(e){throw this.handleError(e)}}getSessionProfile(){return this.getStoredSession()}getSubscriptionSettings(){const e={canComment:!1,exclusiveArticles:!1,exclusiveNewsletters:!1,exclusiveOpinion:!1,exclusivePodcasts:!1,lessPub:!1,maxOfferArticles:0,removePub:!1};if(!this.isLoggedIn()||!this.getSession()?.subscription?.isPremium)return e;const t=this.getSession()?.subscription?.settings;if(!t)return e;const{comments:n,offerArticles:o,...i}=t;return i}hasPreviousSubscription(){return null!==this.getPreviousSubscription()}getPreviousSubscription(){const e=this.getSession()?.subscription?.previousSubscription;return e?.subscriptionId?e:null}async getPaymentData(){const e=this.getStoredSession(this.config.session_name);if(!e)throw new o.lR("invalid_grant",401);try{return await this.apiCall(`/paymentData/${e.sub}`,{method:"GET"})}catch(e){throw this.handleError(e)}}getSession(){return this.getStoredSession(this.config.session_name)}isLoggedIn(){return!!this.getSession()}isSubscriber(){const e=this.getSession();return e?.subscription?.isPremium??!1}async apiCall(e,t){const n=this.getStoredSession(this.config.session_name),o=`${this.config.api_endpoint}${e}`,i={"Content-Type":"application/json"};n&&(i.Authorization=`Bearer ${n.access_token}`);const r=await fetch(o,{...t,headers:{...i,...t.headers}});if(!r.ok){const e=await r.json().catch((()=>({})));throw{status:r.status,responseJSON:e}}return await r.json()}async request(e,t){const n=await fetch(e,t);if(!n.ok){const e=await n.json().catch((()=>({})));throw{status:n.status,responseJSON:e}}return await n.json()}decodeSession(e){const t=y(e.access_token);if(!t)throw new o.lR("fail_auth_token",0);return t.picture&&""!==t.picture||(t.picture=window.obs?.USER_DEFAULT_IMAGE||"/wp-content/themes/observador-child/assets/build/img/avatar-default.png"),{access_token:e.access_token,refresh_token:e.refresh_token,expires_in:e.expires_in,token_type:e.token_type,id:e.id,...t}}trackLogin(e,t=!0){if(window.hj&&window.hj("event","user_login_success"),e?.subscription?.isPremium){const t=!!e.subscription.products.find((e=>"stripe"===e.source||"shared"===e.source||"iap"===e.source)),n=e.metadata?.find((e=>"subscriptionLinkingResult"===e.name));t&&"true"===n?.value&&fetch(window.globalSettings.obsIps.porteiro+"v1/api/rrm/sync",{headers:{Authorization:`Bearer ${e.access_token}`}})}if(e?.metadata?.find((e=>"needs_onboarding"===e.name&&"true"===e.value))){const e=["2602995","2962816"],t=window.location.pathname;e.includes(window.contextualData?.id)||t.startsWith("/assinar/")||t.startsWith("/assinatura/")||t.startsWith("/checkout/")||(localStorage.setItem("dontReload","true"),this.updateProfile({metadata:[{name:"needs_onboarding",value:"false"}]}).then((()=>{window.onBoarding?.()})).catch(console.error))}if(new URLSearchParams(location.search).has("obs_welcome_offer")&&(localStorage.setItem("dontReload","true"),window.onWelcomeOffer?.()),function(e){const t=864e5,n=Math.floor((Date.now()-e.created_at)/t)<3;if(!e)return!0;const o=e.metadata?.find((e=>"last_info_request"===e.name));return o?.value?(Date.now()-parseInt(o.value))/t>30:!n}(e)){const{given_name:t,family_name:n}=e;let o=localStorage.getItem("phone_number");const i=()=>{t&&n&&o||this.updateProfile({metadata:[{name:"last_info_request",value:String(Date.now())}]}).then((()=>{this.refresh().finally((()=>{r._.loadAndShowTemplateFiles({componentTag:"obs-ask-for-info",properties:{},hideCloseButton:!0,classes:["big"]}),(0,a.VR)({click_action:"show",click_label:"",click_location:"",event:a._j.ask_info})}
176))})).catch(console.error)};o?i():this.getProfile().then((e=>{o=e?.phone_number??null,o&&localStorage.setItem("phone_number",o),i()})).catch(console.error)}localStorage.setItem("USER_PERFORMED_MANUAL_LOG_IN","true"),localStorage.getItem("dontReload")||!t?(this.refreshIntervalTimer||this.initRefreshTokenLoop(),localStorage.removeItem("dontReload"),this.hideDialogs(),_()):("#login-popup"===location.hash&&(location.hash=""),location.reload())}hideDialogs(){this.registerDialog.close(),this.loginDialog.close()}prepareLogin(e){let{title:t,dontReload:n}=e;return t||(t="Só mais um passo"),n&&localStorage.setItem("dontReload","true"),(0,c.render)(null,this.loginDialog),(0,c.render)(null,this.registerDialog),this.loginDialog.close(),this.registerDialog.close(),{...e,title:t}}showLogin(e){const{onClose:t,hideClose:n,title:o,hideRegister:i}=this.prepareLogin(e??{});(0,c.render)(l.html`
177                <${u.z}
178                    title=${o}
179                    id="login-popup"
180                    onClose=${()=>{this.loginDialog.close(),t?.()}}
181                    onSwitchToRegister=${()=>{this.loginDialog.close(),adamastor.showRegister({onClose:t})}}
182                    hideRegister=${i}
183                    hideClose=${n}
184                />
185            `,this.loginDialog),this.loginDialog.show()}showSingleProvider(e){const{hideClose:t,title:n,onClose:o,hideRegister:i}=this.prepareLogin(e);let{provider:r,claim:a}=e;if(!r)throw new Error("");a||(a="Crie a sua conta Observador para ler em qualquer sitio"),"string"==typeof r&&(r="google"===r?m.V:f.G),(0,c.render)(l.html`
186                <${g.b}
187                    provider=${r}
188                    onClose=${()=>{o?.(),this.loginDialog.close()}}
189                    title=${n}
190                    claim=${a}
191                    hideClose=${t}
192                    hideRegister=${i}
193                />
194            `,this.loginDialog),this.loginDialog.show()}showRegister(e){const{onClose:t,hideClose:n,title:o}=this.prepareLogin(e??{});(0,c.render)(l.html`
195                <${d.H}
196                    title=${o}
197                    id="login-local-popup"
198                    isOpen=${!0}
199                    onClose=${()=>{this.registerDialog.close(),t?.()}}
200                    onSwitchToLogin=${()=>{this.registerDialog.close(),adamastor.showLogin({onClose:t,hideClose:n})}}
201                />
202            `,this.registerDialog),this.registerDialog.show()}handleError(e){return e instanceof o.lR?e:(0,o.Tx)(e)}rethrowIfLoginLimit(e){if(e instanceof o.lR&&"login_limit_exceeded"===e.code)throw e}}},24039:function(e,t,n){"use strict";n.d(t,{am:function(){return c},kf:function(){return r}});const o="FAILED_UPDATE_KEY",i="TERMS_ORIGIN_URL",r="account_creation",a="termos-e-condicoes",s="terms-conditions";async function c(){if(new RegExp(`/${a}/?`).test(location.pathname))return;if(!adamastor.isLoggedIn())return void l();const e=function(){const e=adamastor.getSessionProfile();return e?e.metadata&&e.metadata.find((e=>e?.name===s))||void 0:null}();if(e&&e.value)return;const t=localStorage.getItem(o);t&&await async function(e){if(adamastor.getSessionProfile()){e.date||(e.date=(new Date).getTime());try{await adamastor.updateProfile({metadata:[{name:s,value:JSON.stringify(e)}]}),await adamastor.refresh(),l()}catch(n){t=e,localStorage.setItem(o,JSON.stringify(t))}var t}}(JSON.parse(t)),localStorage.setItem(i,location.href),location.pathname=a}function l(){localStorage.removeItem(o)}},26820:function(){},26991:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var o=n(76214);function i({acceptedTerms:e,acceptedPrivacy:t,onTermsChange:n,onPrivacyChange:i,showError:r=!1}){return o.html`
203        <div class="terms-confirm">
204            ${r&&o.html` <p class="terms-error">Tem de aceitar os Termos e Condições e a Política de Privacidade e Cookies.</p> `}
205
206            <div>
207                <input id="accept-terms" type="checkbox" checked=${e} onChange=${e=>n(e.target.checked)} />
208                <label for="accept-terms">
209                    Aceito os${" "}
210                    <a href="/termos-e-condicoes/" target="_blank">Termos e Condições</a>
211                </label>
212            </div>
213
214            <div>
215                <input id="accept-privacy" type="checkbox" checked=${t} onChange=${e=>i(e.target.checked)} />
216                <label for="accept-privacy">
217                    Aceito a${" "}
218                    <a href="/politica-de-privacidade/" target="_blank">Política de Privacidade e Cookies</a>
219                </label>
220            </div>
221        </div>
222    `}},29002:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var o=function(e,t,n,i){var r;t[0]=0;for(var a=1;a<t.length;a++){var s=t[a++],c=t[a]?(t[0]|=s?1:2,n[t[a++]]):t[++a];3===s?i[0]=c:4===s?i[1]=Object.assign(i[1]||{},c):5===s?(i[1]=i[1]||{})[t[++a]]=c:6===s?i[1][t[++a]]+=c+"":s?(r=e.apply(c,o(e,c,n,["",null])),i.push(r),c[0]?t[0]|=2:(t[a-2]=0,t[a]=r)):i.push(c)}return i},i=new Map;function r(e){var t=i.get(this);return t||(t=new Map,i.set(this,t)),(t=o(this,t.get(e)||(t.set(e,t=function(e){for(var t,n,o=1,i="",r="",a=[0],s=function(e){1===o&&(e||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(0,e,i):3===o&&(e||i)?(a.push(3,e,i),o=2):2===o&&"..."===i&&e?a.push(4,e,0):2===o&&i&&
222!e?a.push(5,0,!0,i):o>=5&&((i||!e&&5===o)&&(a.push(o,0,i,n),o=6),e&&(a.push(o,e,0,n),o=6)),i=""},c=0;c<e.length;c++){c&&(1===o&&s(),s(c));for(var l=0;l<e[c].length;l++)t=e[c][l],1===o?"<"===t?(s(),a=[a],o=3):i+=t:4===o?"--"===i&&">"===t?(o=1,i=""):i=t+i[0]:r?t===r?r="":i+=t:'"'===t||"'"===t?r=t:">"===t?(s(),o=1):o&&("="===t?(o=5,n=i,i=""):"/"===t&&(o<5||">"===e[c][l+1])?(s(),3===o&&(a=a[0]),o=a,(a=a[0]).push(2,0,o),o=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(s(),o=2):i+=t),3===o&&"!--"===i&&(o=4,a=a[0])}return s(),a}(e)),t),arguments,[])).length>1?t:t[0]}},29970:function(){},33169:function(e,t,n){"use strict";n.d(t,{DT:function(){return i},IX:function(){return c},eX:function(){return s}});const o=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;function i(e){return e&&e.trim()?o.test(e)?{isValid:!0}:{isValid:!1,error:"Insira um endereço de email válido"}:{isValid:!1,error:"É necessário preencher este campo"}}function r(e,t=6){return e&&e.trim()?e.length<t?{isValid:!1,error:`A password deve ter pelo menos ${t} caracteres`}:{isValid:!0}:{isValid:!1,error:"É necessário preencher este campo"}}function a(e,t="campo"){return e&&e.trim()?{isValid:!0}:{isValid:!1,error:`É necessário preencher ${t}`}}function s(e){const t={},n=i(e.email);n.isValid||(t.email=n.error);const o=r(e.password);return o.isValid||(t.password=o.error),t}function c(e){const t={},n=i(e.email);n.isValid||(t.email=n.error);const o=a(e.first_name,"o primeiro nome");o.isValid||(t.first_name=o.error);const s=a(e.last_name,"o último nome");s.isValid||(t.last_name=s.error);const c=r(e.password);if(c.isValid||(t.password=c.error),e.password_check){const n=e.password!==e.password_check?{isValid:!1,error:"As passwords não coincidem"}:{isValid:!0};n.isValid||(t.password_check=n.error)}return t}},33891:function(e,t,n){var o,i=n(41669);(o=i).fn.tinkerbell=function(e){var t=this;t.subscriptions=[],t.errors={UNAUTHENTICATED:0,NO_SUBSCRIPTION:1,ERROR:2,NO_NOTIFICATIONS:3},t.isWorking=!1,t.haveMoreNotifications=!0,t.opened=!1;var n=function(e,t){ga("send",{hitType:"event",eventCategory:"alerts-"+e,eventAction:t})},i=function(e,t,n,o,i){var r=null;null==n&&null==n||(r=JSON.stringify(n));var a=new XMLHttpRequest;a.open(t,e,!0);var s=adamastor.getToken();a.setRequestHeader("Content-type","application/json"),a.setRequestHeader("Authorization","Bearer "+s),a.onreadystatechange=function(){if(4==a.readyState)if(a.status>=200&&a.status<400){if(a.responseText)var e="";try{e=JSON.parse(a.responseText)}catch(e){}o(e,a.statusText,a)}else i(a,a.statusText)},a.send(r)},r=function(e){if(!0!==t.isWorking){t.isWorking=!0;var n=!0===e,o=t.urlByUser+"?l=10&o="+t.manyIShow;l(!0),i(o,"GET",null,(function(e,o,i){t.isWorking=!1,l(!1),0==e?.data?.length?c(t.errors.NO_NOTIFICATIONS,i):(t.nUnread=e.unviewedNotifications,s(e,n))}),(function(e,n,o){t.isWorking=!1,l(!1),c(t.errors.ERROR,e)}))}},a=function(){if(0==t.nUnread)return o(t.sininhoCount).hide(),void o(t.sininhoCount).removeClass("active");o(t.sininhoCount).children("span").html(t.nUnread),o(t.sininhoCount).css("display","block"),o(t.sininhoCount).addClass("active")},s=function(e,n){o(e.data).each((function(e,o){if(o.webUri&&"string"==typeof o.webUri){const e=new URL(o.webUri);e.searchParams.set("utm_source","observador_alerts"),e.searchParams.set("utm_medium","alerts_bell_site"),e.searchParams.set("utm_campaign","immediate"),e.searchParams.set("utm_content","article"),o.webUri=e.toString()}t.manyIShow++;var i=o.image.replace(/{{width}}/i,"200");i=i.replace(/{{quality}}/i,"81");var r=function(e){Date.now||(Date.now=function(){return(new Date).getTime()}),Math.floor(1e3*e);var t=new Date(1e3*e),n=("0"+t.getDate()).slice(-2)+"/"+("0"+(t.getMonth()+1)).slice(-2)+"/"+t.getFullYear()+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2),o=Math.floor(Date.now()/1e3)-e;if(o<=480)return{relative:"Agora",formated:n};if(o<=2700)return{relative:"Há "+Math.floor(o/60)+"m",formated:n};if(o<=21600){var i=Math.floor(o/3600);return{relative:"Há "+(i=0==i?1:i)+"h",formated:n}}var r=new Date;return r.getFullYear()==t.getFullYear()&&r.getMonth()==t.getMonth()&&r.getDate()==t.getDate()?{relative:"Hoje",formated:n}:r.getFullYear()==t.getFullYear()&&r.getMonth()==t.getMonth()&&r.getDate()-1==t.getDate()?{relative:"Ontem",formated:n}:(sixMonth=new Date,sixMonth.setMonth(sixMonth.getMonth()-6),e>=sixMonth.getTime()/1e3?{relative:t.getDate()+"&nbsp;de&nbsp;
222"+["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"][t.getMonth()],formated:n}:{relative:n,formated:n})}(o.timestamp),a="";"NEW"==o.status&&(a="unread");var s=parseTemplate(document.getElementById("template-sininho-notification").innerHTML,{element:o,img:i,placeHolderDate:r.formated,relativeTime:r.relative,statusClass:a});n?t.resultsList.prepend(s):t.resultsList.append(s)})),a()},c=function(e,n){switch(t.resultsList.children(".notification_error").remove(),e){case t.errors.UNAUTHENTICATED:t.resultsList.append(parseTemplate(document.getElementById("template-sininho-notErrorAuth").innerHTML,{msg:"Para aceder a esta funcionalidade, por favor faça login."}));break;case t.errors.NO_SUBSCRIPTION:t.resultsList.append(parseTemplate(document.getElementById("template-sininho-notErrorSubs").innerHTML,{msg:"Siga algum autor, tópico ou programa, para ver os alertas."}));break;case t.errors.NO_NOTIFICATIONS:t.manyIShow>0?t.resultsList.append(parseTemplate(document.getElementById("template-sininho-notErrorInline").innerHTML,{msg:"Não tem mais alertas."})):t.resultsList.append(parseTemplate(document.getElementById("template-sininho-notErrorInline").innerHTML,{msg:"Ainda não tem alertas."})),o(t.resultsContainer).off("scroll"),t.haveMoreNotifications=!1;break;case t.errors.ERROR:t.haveMoreNotifications||t.resultsList.append(parseTemplate(document.getElementById("template-sininho-notErrorInline").innerHTML,{msg:"Não foi possível obter os seus alertas."}))}},l=function(e){e?t.loadingSpinner.show():t.loadingSpinner.hide()};t.checkSubscription=function(e,n){return void 0!==t.subscriptions[e]&&void 0!==t.subscriptions[e][n]};var u=function(){r(!1),o("#alert-read-all").click((function(e){var r;e.preventDefault(),r=t.urlByUser+"/read",i(r,"PUT",null,(function(e){t.resultsList.children().each((function(e,t){o(t).removeClass("unread")}))}),(function(e,t,n){console(e)})),n("sininho","mark-all-as-read")})),o(t.resultsContainer).delegate("a.link","click",(function(e){var r=this.href,a=o(this).data("id"),s=o(this).data("postid");n("sininho-notification","open"),function(e,t){var n={objectType:"post",id:""+t,userId:adamastor.getSessionProfile().sub,anonymous:!1,action:"OPEN",platform:"desktop",origin:"sininho"};RameiraProxy.getInstance().addEvent(n,(function(){}))}(0,s),function(e,n,o){var r=t.urlByUser+"/read/"+e,a=o.shiftKey||o.ctrlKey||o.metaKey;function s(){a||(document.location.href=n)}a||o.preventDefault(),i(r,"PUT",null,(function(e){setTimeout(s,200)}),(function(e,t,n){setTimeout(s,200)}))}(a,r,e)})),o(t).children(".obs_drop_trigger").click((function(e){i(t.urlByUser+"/viewed","PUT",null,(function(e){t.nUnread=0,a()}),(function(e,t,n){console.log(e)})),t.nUnread>0?n("sininho","open-with-unread-notifications"):n("sininho","open-without-unread-notifications")})),o(t.resultsContainer).on("scroll",(function(){o(this).scrollTop()+o(this).innerHeight()>=o(this)[0].scrollHeight&&r(!1)}))};return t.pickSininhoMessage=async function(e){if(t.opened)return;const n=adamastor.getSessionProfile().sub,i=ArdinaProxy.getInstance(),r=o(t).find(".message-sininho-comalertas"),a=o(t).find(".message-sininho-semalertas"),s=o(t).find("#alert-read-all");try{const e=await i.getSubscriptions(n);e&&e.length>0?(r.removeClass("message-sininho"),t.nUnread<1&&s.addClass("message-sininho"),s.addClass("message-sininho")):(a.removeClass("message-sininho"),s.addClass("message-sininho")),t.opened=!0}catch(e){console.log("Error getting user subscriptions")}},t.update=function(){u()},t.settings=o.extend({sininho:globalSettings.obsIps.sininho,userId:"",onGetSubscriptions:o.noop.bind()},e),window.loader.loadHTML("alerts/alerts.templates.html","body",(function(){!function(){if(t.header=o(t).find(".obs_drop_content .notifications-header"),t.resultsContainer=o(t).find(".obs_drop_content .notifications-results"),t.resultsList=o(t.resultsContainer).children("ul"),t.sininhoCount=o(t).find(".count_notifications"),t.nUnread=0,t.manyIShow=0,!adamastor.getSessionProfile())return c(t.errors.UNAUTHENTICATED),t.settings.onGetSubscriptions(),t.loadingSpinner=o(t.resultsContainer).children(".loading"),l(!1),t;t.loadingSpinner=o(t.resultsContainer).children(".loading"),t.urlByUser=t.settings.sininho+"/notifications/user/"+t.settings.userId,0==t.settings.userId?(c(t.errors.UNAUTHENTICATED),t.settings.onGetSubscriptions(),l(!1)):(u(),t.settings.onGetSubscriptions(),obsEventEmitter("tinkerbellReady")),t.pickSininhoMessage(),o(t).find(".obs_drop_content").mou
222seenter((function(){o("body").addClass("obs_drop_open")})).mouseleave((function(){o("body").removeClass("obs_drop_open")}))}()})),t}},34049:function(e,t,n){"use strict";function o(){const e=function(){const e={};return location.search.substring(1).split("&").forEach((t=>{const n=t.split("=");e[n[0]]=n[1]})),e}();return!(!e.gaa_at||(e.gaa_n?e.gaa_sig?e.gaa_ts?parseInt(e.gaa_ts,16)<Date.now()/1e3&&(console.error("SwG Entitlements: The `gaa_ts` URL param should contain a hex string timestamp which points to the future."),1):(console.error("SwG Entitlements: The `gaa_ts` URL param is missing."),1):(console.error("SwG Entitlements: The `gaa_sig` URL param is missing."),1):(console.error("SwG Entitlements: The `gaa_n` URL param is missing."),1)))}n.d(t,{A:function(){return o}})},35267:function(e,t,n){"use strict";n.d(t,{a:function(){return s},m:function(){return c}});const o=3600;let i=0,r=null,a=!1;function s(){a||(a=!0,r="visible"===document.visibilityState?Date.now():null,document.addEventListener("visibilitychange",(()=>{"visible"!==document.visibilityState?null!==r&&(i+=Date.now()-r,r=null):null===r&&(r=Date.now())})))}function c(){let e=i;return null!==r&&(e+=Date.now()-r),Math.min(Math.round(e/1e3),o)}},37223:function(e,t,n){"use strict";n.d(t,{s:function(){return p}});var o=n(76214),i=n(45994),r=n(79408),a=n(83455),s=n(8161),c=n(92863),l=n(57506),u=n(14246),d=n(14117);function p({onSuccess:e,termsAccepted:t=!1,onTermsError:n}){const[p,f]=(0,i.useState)(!1),[m,g]=(0,i.useState)(null),{register:h}=(0,r.a)(),{containerRef:v,execute:b}=(0,s.Q)(),{values:_,errors:y,touched:w,handleChange:C,handleBlur:x,validateAll:S,setServerErrors:k,reset:E}=(0,a.X)({first_name:"",last_name:"",email:"",password:""},"register");return o.html`
223        <form onSubmit=${async o=>{if(o.preventDefault(),S())if(t){f(!0),g(null);try{const t=await b();(await h({first_name:_.first_name,last_name:_.last_name,email:_.email,password:_.password,password_check:_.password,"g-recaptcha-response":t})).token?(window.obsFbqTrack?.("RegisterClick",{method:"email"}),E(),e&&e()):g("Não foi possivel concluir o registo")}catch(e){const t=e,n=(0,d.p_)(t);Object.keys(n).length>0?k(n):g(t.message)}finally{f(!1)}}else n&&n()}} action="register">
224            <fieldset>
225                <${c.z} type="text" name="first_name" placeholder="Primeiro nome" value=${_.first_name} error=${w.first_name?y.first_name:void 0} onChange=${e=>C("first_name",e)} onBlur=${()=>x("first_name")} disabled=${p} />
226
227                <${c.z} type="text" name="last_name" placeholder="Último nome" value=${_.last_name} error=${w.last_name?y.last_name:void 0} onChange=${e=>C("last_name",e)} onBlur=${()=>x("last_name")} disabled=${p} />
228
229                <${c.z} type="email" name="email" placeholder="Email" value=${_.email} error=${w.email?y.email:void 0} autocomplete="username" onChange=${e=>C("email",e)} onBlur=${()=>x("email")} disabled=${p} />
230
231                <${c.z} type="password" name="password" placeholder="Palavra-passe" value=${_.password} error=${w.password?y.password:void 0} autocomplete="new-password" onChange=${e=>C("password",e)} onBlur=${()=>x("password")} disabled=${p} showPasswordToggle=${!0} />
232
233                <div class="captcha-field">
234                    <div class="captcha-code" ref=${v}></div>
235                </div>
236            </fieldset>
237
238            ${m&&o.html`<${l.K} message=${m} />`} ${p?o.html` <${u.k} /> `:o.html` <button class="obs-button" type="submit">Registar</button> `}
239        </form>
240    `}},38364:function(){window.obsFbqTrack=function(e,t){if("function"==typeof fbq){var n="undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));fbq("trackCustom",e,t||{},{eventID:n})}},document.addEventListener("DOMContentLoaded",(function(){/\/premium\//.test(window.location.pathname)&&fbq("track","ViewContent",{content_name:"Premium Page"})})),document.addEventListener("obsShowPaywall",(function(e){var t=e&&e.detail||{};window.obsFbqTrack("PaywallView",{post_id:t.post_id||"",post_type:t.post_type||"",content_category:"Premium Article"})}))},38458:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var o=n(14117);class i{constructor(e){this.baseUrl=e||window.globalSettings?.obsIps?.barqueiro||"https://barqueiro.observador.pt/"}async login(e){try{return await this.request("auth/login",{method:"POST",body:JSON.stringify(e)})}catch(e){throw this.handleError(e)}}async register(e){try{return await this.request("auth/register",{method:"POST",body:JSON.stringify(e)})}catch(e){throw this.handleError(e)}}async recover(e){try{return await this.request("auth/recover",{method:"POST",body:JSON.stringify(e)})}catch(e){throw this.handleError(e)}}async reset(e){try{return await this.request("auth/reset",{method:"POST",body:JSON.stringify(e)})}catch(e){throw this.handleError(e)}}async resend(e){try{return await this.request("auth/resend",{method:"POST",body:JSON.stringify(e)})}catch(e){throw this.handleError(e)}}async activate(e,t){try{return await this.request(`auth/activate/${e}/${t}`,{method:"GET"})}catch(e){throw this.handleError(e)}}async request(e,t){const n=`${this.baseUrl}${e}`,o=await fetch(n,{...t,headers:{"Content-Type":"application/json",...t.headers}});if(!o.ok){const e=await o.json().catch((()=>({})));throw{status:o.status,responseJSON:e}}return await o.json()}handleError(e){return e instanceof o.lR?e:(0,o.Tx)(e)}}let r=null;function a(){return r||(r=new i),r}},39558:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var o=n(76214);function i(){return o.html`<svg width="342" height="54" viewBox="0 0 342 54" fill="none" xmlns="http://www.w3.org/2000/svg">
241        <rect width="342" height="54" rx="14" fill="black" class="rect" />
242        <path
243            d="M88.2461 22.6919C88.3822 22.6919 88.6141 22.7135 88.9419 22.7
243568C89.2697 22.8001 89.6284 22.9238 90.0181 23.1279C90.4139 23.3258 90.7726 23.6567 91.0942 24.1206C91.0757 24.1392 90.986 24.2072 90.8252 24.3247C90.6644 24.436 90.485 24.603 90.2871 24.8257C90.0892 25.0422 89.916 25.3205 89.7676 25.6606C89.6191 25.9946 89.5449 26.3936 89.5449 26.8574C89.5449 27.3893 89.6377 27.8408 89.8232 28.2119C90.015 28.583 90.2345 28.883 90.4819 29.1118C90.7355 29.3345 90.9582 29.4984 91.1499 29.6035C91.3478 29.7087 91.453 29.7643 91.4653 29.7705C91.4591 29.7952 91.3787 30.0148 91.2241 30.4292C91.0757 30.8436 90.8283 31.3044 90.4819 31.8115C90.1789 32.2507 89.8511 32.6558 89.4985 33.0269C89.1522 33.3979 88.7347 33.5835 88.2461 33.5835C87.9183 33.5835 87.6493 33.5371 87.439 33.4443C87.2287 33.3454 87.0122 33.2495 86.7896 33.1567C86.5669 33.0578 86.2669 33.0083 85.8896 33.0083C85.5247 33.0083 85.2186 33.0578 84.9712 33.1567C84.73 33.2557 84.498 33.3547 84.2754 33.4536C84.0589 33.5526 83.8022 33.6021 83.5054 33.6021C83.0539 33.6021 82.658 33.4227 82.3179 33.064C81.9777 32.7052 81.6283 32.2754 81.2695 31.7744C80.8551 31.1807 80.4995 30.457 80.2026 29.6035C79.9119 28.7438 79.7666 27.8779 79.7666 27.0059C79.7666 26.0719 79.9429 25.2896 80.2954 24.6587C80.6479 24.0216 81.0994 23.5423 81.6499 23.2207C82.2065 22.8929 82.7817 22.729 83.3755 22.729C83.6909 22.729 83.9878 22.7816 84.2661 22.8867C84.5444 22.9857 84.8042 23.0877 85.0454 23.1929C85.2928 23.298 85.5155 23.3506 85.7134 23.3506C85.9051 23.3506 86.1278 23.2949 86.3813 23.1836C86.6349 23.0723 86.9194 22.964 87.2349 22.8589C87.5503 22.7476 87.8874 22.6919 88.2461 22.6919ZM87.7358 21.5137C87.4946 21.8044 87.1916 22.0487 86.8267 22.2466C86.4618 22.4383 86.1154 22.5342 85.7876 22.5342C85.7196 22.5342 85.6546 22.528 85.5928 22.5156C85.5866 22.4971 85.5804 22.4631 85.5742 22.4136C85.568 22.3641 85.5649 22.3115 85.5649 22.2559C85.5649 21.8848 85.6453 21.526 85.8062 21.1797C85.967 20.8271 86.1494 20.5365 86.3535 20.3076C86.6133 19.9984 86.9411 19.7417 87.3369 19.5376C87.7327 19.3335 88.11 19.2253 88.4688 19.2129C88.4873 19.2933 88.4966 19.3892 88.4966 19.5005C88.4966 19.8716 88.4255 20.2334 88.2832 20.5859C88.141 20.9323 87.9585 21.2415 87.7358 21.5137Z"
244            fill="white"
245            class="icon"
246        />
247        <path
248            d="M103.762 33.8247C102.723 33.8247 101.82 33.667 101.053 33.3516C100.292 33.0299 99.6925 32.5815 99.2534 32.0063C98.8143 31.4312 98.5638 30.757 98.502 29.9839L98.4927 29.854H100.821L100.831 29.9468C100.874 30.3241 101.025 30.6519 101.285 30.9302C101.545 31.2085 101.894 31.4281 102.333 31.5889C102.773 31.7435 103.274 31.8208 103.836 31.8208C104.381 31.8208 104.857 31.7373 105.265 31.5703C105.68 31.4033 106.001 31.1745 106.23 30.8838C106.465 3
2480.5869 106.583 30.2498 106.583 29.8726V29.8633C106.583 29.3747 106.394 28.9788 106.017 28.6758C105.646 28.3665 105.027 28.1222 104.161 27.9429L102.723 27.6367C101.356 27.3522 100.361 26.8914 99.7358 26.2544C99.1112 25.6174 98.7988 24.7979 98.7988 23.7959V23.7866C98.7988 22.9888 99.0091 22.2899 99.4297 21.6899C99.8564 21.09 100.441 20.623 101.183 20.2891C101.931 19.9551 102.788 19.7881 103.753 19.7881C104.743 19.7881 105.599 19.9551 106.323 20.2891C107.046 20.6169 107.615 21.0653 108.03 21.6343C108.444 22.2033 108.676 22.8465 108.726 23.564L108.735 23.6938H106.453L106.434 23.5825C106.378 23.23 106.233 22.9207 105.998 22.6548C105.769 22.3826 105.463 22.1724 105.08 22.0239C104.696 21.8693 104.248 21.792 103.734 21.792C103.24 21.792 102.8 21.8693 102.417 22.0239C102.04 22.1724 101.74 22.3826 101.517 22.6548C101.301 22.9269 101.192 23.2547 101.192 23.6382V23.6475C101.192 24.1175 101.375 24.5072 101.74 24.8164C102.111 25.1195 102.714 25.3576 103.549 25.5308L104.987 25.8369C105.927 26.0348 106.691 26.2977 107.278 26.6255C107.866 26.9533 108.296 27.3615 108.568 27.8501C108.846 28.3325 108.985 28.9139 108.985 29.5942V29.6035C108.985 30.4694 108.772 31.2178 108.345 31.8486C107.925 32.4795 107.322 32.9681 106.536 33.3145C105.757 33.6546 104.832 33.8247 103.762 33.8247ZM111.379 33.5V23.3877H113.689V33.5H111.379ZM112.539 21.7178C112.167 21.7178 111.846 21.5848 111.574 21.3188C111.308 21.0529 111.175 20.7344 111.175 20.3633C111.175 19.986 111.308 19.6675 111.574 19.4077C111.846 19.1418 112.167 19.0088 112.539 19.0088C112.922 19.0088 113.247 19.1418 113.513 19.4077C113.779 19.6675 113.912 19.986 113.912 20.3633C113.912 20.7344 113.779 21.0529 113.513 21.3188C113.247 21.5848 112.922 21.7178 112.539 21.7178ZM120.823 37.0532C119.933 37.0532 119.166 36.9326 118.522 36.6914C117.879 36.4564 117.369 36.1255 116.992 35.6987C116.621 35.272 116.395 34.7772 116.314 34.2144V34.1772H118.625L118.634 34.2144C118.72 34.536 118.952 34.7988 119.33 35.0029C119.707 35.207 120.217 35.3091 120.86 35.3091C121.646 35.3091 122.255 35.1297 122.688 34.771C123.121 34.4185 123.337 33.9206 123.337 33.2773V31.3755H123.189C122.997 31.7404 122.75 32.0496 122.447 32.3032C122.144 32.5506 121.794 32.7393 121.398 32.8691C121.003 32.999 120.573 33.064 120.109 33.064C119.255 33.064 118.516 32.8599 117.892 32.4517C117.267 32.0373 116.788 31.4652 116.454 30.7354C116.12 30.0055 115.953 29.1613 115.953 28.202
2486V28.1841C115.953 27.2007 116.12 26.3379 116.454 25.5957C116.794 24.8473 117.276 24.266 117.901 23.8516C118.532 23.431 119.28 23.2207 120.146 23.2207C120.616 23.2207 121.046 23.2949 121.436 23.4434C121.831 23.5918 122.178 23.8021 122.475 24.0742C122.778 24.3464 123.025 24.6742 123.217 25.0576H123.328V23.3877H125.638V33.2495C125.638 34.0226 125.44 34.6937 125.044 35.2627C124.655 35.8317 124.098 36.2708 123.375 36.5801C122.657 36.8955 121.807 37.0532 120.823 37.0532ZM120.814 31.2271C121.346 31.2271 121.8 31.1003 122.178 30.8467C122.561 30.5931 122.855 30.2406 123.059 29.7891C123.269 29.3314 123.375 28.8026 123.375 28.2026V28.1841C123.375 27.5841 123.269 27.0553 123.059 26.5977C122.855 26.1338 122.561 25.7751 122.178 25.5215C121.8 25.2679 121.346 25.1411 120.814 25.1411C120.288 25.1411 119.837 25.2679 119.459 25.5215C119.088 25.7751 118.804 26.1307 118.606 26.5884C118.408 27.0461 118.309 27.5749 118.309 28.1748V28.1934C118.309 28.7995 118.408 29.3314 118.606 29.7891C118.804 30.2406 119.088 30.5931 119.459 30.8467C119.837 31.1003 120.288 31.2271 120.814 31.2271ZM128.366 33.5V23.3877H130.676V24.937H130.824C131.072 24.3927 131.44 23.966 131.928 23.6567C132.417 23.3475 133.026 23.1929 133.756 23.1929C134.888 23.1929 135.75 23.5207 136.344 24.1763C136.944 24.8319 137.244 25.7596 137.244 26.9595V33.5H134.934V27.4883C134.934 26.709 134.767 26.1214 134.433 25.7256C134.105 25.3298 133.595 25.1318 132.902 25.1318C132.445 25.1318 132.049 25.2339 131.715 25.438C131.387 25.6421 131.13 25.9297 130.945 26.3008C130.765 26.6657 130.676 27.1017 130.676 27.6089V33.5H128.366ZM144.87 33.5V23.3877H147.18V33.5H144.87ZM146.03 21.7178C145.659 21.7178 145.337 21.5848 145.065 21.3188C144.799 21.0529 144.666 20.7344 144.666 20.3633C144.666 19.986 144.799 19.6675 145.065 19.4077C145.337 19.1418 145.659 19.0088 146.03 19.0088C146.413 19.0088 146.738 19.1418 147.004 19.4077C147.27 19.6675 147.403 19.986 147.403 20.3633C147.403 20.7344 147.27 21.0529 147.004 21.3188C146.738 21.5848 146.413 21.7178 146.03 21.7178ZM149.945 33.5V23.3877H152.255V24.937H152.403C152.651 24.3927 153.019 23.966 153.507 23.6567C153.996 23.3475 154.605 23.1929 155.335 23.1929C156.467 23.1929 157.33 23.5207 157.923 24.1763C158.523 24.8319 158.823 25.7596 158.823 26.9595V33.5H156.513V27.4883C156.513 26.709 156.346 26.1214 156.012 25.7256C155.684 25.3298 155.174 25.1318 154.481 25.1318C154.024 25.1318 153.628 25.2339 153.294 25.438C152.966 25.6421 152.709 25.9297 152.524 26.3008C152.345 26.6657 152.255 27.1017 152.255 27.6089V33.5H149.945ZM168.36 33.5L165.614 23.3877H167.934L169.613 31.0044H169.771L171.719 23.3877H173.917L175.875 31.0044H176.023L177.703 23.3877H179.994L177.248 33.5H174.836L172.86 26.1616H172.711L170.745 33.5H168.36ZM181.942 33.5V23.3877H184.252V33.5H181.942ZM183.102 21.7178C182.731 21.7178 182.409 21.5848 182.137 21.3188C181.871 21.0529 181.738 20.7344 181.738 20.3633C181.738 19.986 181.871 19.6675 182.137 19.4077C182.409 19.1418 182.731 19.0088 183.102 19.0088C183.486 19.0088 183.81 19.1418 184.076 19.4077C184.342 19.6675 184.475 19.986 184.475 20.3633C184.475 20.7344 184.342 21.0529 184.076 21.3188C183.81 21.5848 183.486 21.7178 183.102 21.7178ZM190.979 33.5649C189.828 33.5649 188.996 33.3516 188.483 32.9248C187.97 32.4919 187.713 31.7868 187.713 30.8096V25.1782H186.164V23.3877H187.713V20.9014H190.06V23.3877H192.175V25.1782H190.06V30.29C190.06 30.7972 190.165 31.1652 190.375 31.394C190.592 31.6167 190.938 31.728 191.415 31.728C191.575 31.728 191.708 31.7249 191.813 31.7188C191.925 31.7064 192.045 31.694 192.175 31.6816V33.4629C192.014 33.4876 191.832 33.5093 191.628 33.5278C191.424 33.5526 191.207 33.5649 190.979 33.5649ZM194.513 33.5V19.5005H196.823V24.9463H196.972C197.213 24.402 197.578 23.9753 198.066 23.666C198.561 23.3506 199.174 23.1929 199.903 23.1929C200.658 23.1929 201.292 23.3413 201.805 23.6382C202.325 23.9351 202.721 24.3649 202.993 24.9277C203.265 25.4906 203.401 26.174 203.401 26.978V33.5H201.091V27.5068C201.091 26.7214 200.924 26.1307 200.59 25.7349C200.256 25.3328 199.743 25.1318 199.05 25.1318C198.592 25.1318 198.196 25.2339 197.862 25.438C197.528 25.6421 197.272 25.9297 197.092 26.3008C196.913 26.6657 196.823 27.1017 196.823 27.6089V33.5H194.513ZM210.266 33.5L215.025 20.1128H217.001V22.5898H216.296L212.771 33.5H210.266ZM212.66 30.0396L213.291 28.1934H219.423L220.054 30.0396H212.66ZM219.961 33.5L216.445 22.5898V20.1128H217.716L222.475 33.5H219.961ZM224.46 36.8584V23.387
2487H226.771V24.9927H226.919C227.104 24.6154 227.346 24.2969 227.643 24.0371C227.946 23.7773 228.295 23.5763 228.691 23.4341C229.087 23.2918 229.523 23.2207 229.999 23.2207C230.846 23.2207 231.579 23.4341 232.198 23.8608C232.822 24.2876 233.305 24.8906 233.645 25.6699C233.985 26.443 234.155 27.3646 234.155 28.4346V28.4531C234.155 29.5293 233.985 30.457 233.645 31.2363C233.311 32.0156 232.832 32.6156 232.207 33.0361C231.589 33.4567 230.853 33.667 229.999 33.667C229.535 33.667 229.102 33.5959 228.7 33.4536C228.298 33.3052 227.946 33.098 227.643 32.832C227.34 32.5661 227.098 32.2507 226.919 31.8857H226.771V36.8584H224.46ZM229.275 31.728C229.801 31.728 230.253 31.5981 230.63 31.3384C231.007 31.0724 231.295 30.6951 231.493 30.2065C231.697 29.7118 231.799 29.1273 231.799 28.4531V28.4346C231.799 27.7542 231.697 27.1698 231.493 26.6812C231.295 26.1925 231.007 25.8184 230.63 25.5586C230.253 25.2988 229.801 25.1689 229.275 25.1689C228.762 25.1689 228.314 25.3019 227.93 25.5679C227.547 25.8276 227.253 26.2018 227.049 26.6904C226.845 27.1729 226.743 27.7542 226.743 28.4346V28.4531C226.743 29.1273 226.845 29.7087 227.049 30.1973C227.259 30.6859 227.553 31.0632 227.93 31.3291C228.314 31.5951 228.762 31.728 229.275 31.728ZM236.41 36.8584V23.3877H238.72V24.9927H238.868C239.054 24.6154 239.295 24.2969 239.592 24.0371C239.895 23.7773 240.244 23.5763 240.64 23.4341C241.036 23.2918 241.472 23.2207 241.948 23.2207C242.796 23.2207 243.528 23.4341 244.147 23.8608C244.772 24.2876 245.254 24.8906 245.594 25.6699C245.934 26.443 246.104 27.3646 246.104 28.4346V28.4531C246.104 29.5293 245.934 30.457 245.594 31.2363C245.26 32.0156 244.781 32.6156 244.156 33.0361C243.538 33.4567 242.802 33.667 241.948 33.667C241.484 33.667 241.051 33.5959 240.649 33.4536C240.247 33.3052 239.895 33.098 239.592 32.832C239.289 32.5661 239.048 32.2507 238.868 31.8857H238.72V36.8584H236.41ZM241.225 31.728C241.75 31.728 242.202 31.5981 242.579 31.3384C242.956 31.0724 243.244 30.6951 243.442 30.2065C243.646 29.7118 243.748 29.1273 243.748 28.4531V28.4346C243.748 27.7542 243.646 27.1698 243.442 26.6812C243.244 26.1925 242.956 25.8184 242.579 25.5586C242.202 25.2988 241.75 25.1689 241.225 25.1689C240.711 25.1689 240.263 25.3019 239.879 25.5679C239.496 25.8276 239.202 26.2018 238.998 26.6904C238.794 27.1729 238.692 27.7542 238.692 28.4346V28.4531C238.692 29.1273 238.794 29.7087 238.998 30.1973C239.208 30.6859 239.502 31.0632 239.879 31.3291C240.263 31.5951 240.711 31.728 241.225 31.728ZM248.452 33.5V19.5005H250.762V33.5H248.452ZM257.933 33.7041C256.931 33.7041 256.068 33.4907 255.345 33.064C254.627 32.6372 254.074 32.0342 253.684 31.2549C253.294 30.4694 253.1 29.5417 253.1 28.4717V28.4624C253.1 27.3986 253.291 26.474 253.675 25.6885C254.064 24.8968 254.615 24.2845 255.326 23.8516C256.037 23.4124 256.869 23.1929 257.822 23.1929C258.787 23.1929 259.615 23.4032 260.308 23.8237C261.007 24.2443 261.542 24.835 261.913 25.5957C262.29 26.3564 262.479 27.244 262.479 28.2583V29.019H254.259V27.479H261.356L260.252 28.9263V28.0078C260.252 27.3337 260.15 26.777 259.946 26.3379C259.742 25.8926 259.461 25.5586 259.102 25.3359C258.743 25.1133 258.326 25.002 257.85 25.002C257.38 25.002 256.959 25.1164 256.588 25.3452C256.223 25.5741 255.932 25.9142 255.716 26.3657C255.506 26.811 255.4 27.3584 255.4 28.0078V28.9263C255.4 29.5509 255.506 30.0859 255.716 30.5312C255.926 30.9704 256.223 31.3075 256.606 31.5425C256.996 31.7775 257.454 31.895 257.979 31.895C258.394 31.895 258.75 31.8363 259.046 31.7188C259.343 31.5951 259.584 31.4466 259.77 31.2734C259.962 31.1003 260.092 30.9364 260.16 30.7817L260.197 30.7075H262.377L262.358 30.8003C262.278 31.1281 262.13 31.4621 261.913 31.8022C261.703 32.1424 261.415 32.4578 261.05 32.7485C260.692 33.033 260.252 33.265 259.733 33.4443C259.213 33.6175 258.613 33.7041 257.933 33.7041Z"
249            fill="white"
250            class="text"
251        />
252    </svg> `}},40404:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};
252Object.defineProperty(t,"__esModule",{value:!0}),t.chartBeatUtils=t.pageTypeNetA=t.GaEventE=void 0,t.liveblogChangePage=function(){window.pp_gemius_hit&&(window.pp_gemius_hit(l.NET_AUDIENCE_ID,"gA=liveblog_changePage"),ga("send","event",{eventCategory:"net_audience_hit",eventAction:"liveblog_changePage"}),m())},t.gemiusSetup=function(){window.pp_gemius_identifier=l.NET_AUDIENCE_ID,window.pp_gemius_extraparameters;var e,t,n=(0,u.getUserType)(),o="grid"===contextualData.type&&"homepage"===contextualData.context?{page:a.home,cat:""}:"post"===contextualData.type?{page:a.article,cat:(null===(t=null===(e=contextualData.post)||void 0===e?void 0:e.topLevelCategory)||void 0===t?void 0:t.slug)||""}:"grid"===contextualData.type&&"category"===contextualData.context?{page:a.section,cat:contextualData.topCategory}:"/radio/player/"===location.pathname?{page:a.radio,cat:""}:"/pesquisa/"===location.pathname?{page:a.search,cat:""}:{page:a.other,cat:""};switch(o.page){case a.home:window.pp_gemius_extraparameters=new Array("gA=".concat(o.page));break;case a.article:case a.section:window.pp_gemius_extraparameters=new Array("gA="+o.page+"/"+n+"/"+o.cat);break;case a.radio:case a.search:case a.other:window.pp_gemius_extraparameters=new Array("gA="+o.page+"/"+n)}function i(e){window[e]=window[e]||function(){var t=window[e+"_pdata"]=window[e+"_pdata"]||[];t[t.length]=arguments}}i("gemius_hit"),i("gemius_event"),i("pp_gemius_hit"),i("pp_gemius_event"),function(e,t){try{var n=e.createElement(t),o=e.getElementsByTagName(t)[0],i="http"+("https:"==location.protocol?"s":"");n.async=!0,n.src=i+"://gapt.hit.gemius.pl/xgemius.js",o.parentNode.insertBefore(n,o)}catch(e){}}(document,"script")},t.sendToDataLayer=m,t.sendClickEvent=function(e){var t=f();d(o(o({},t),e))},t.sendAnalyticsEvent=function(e){window.pp_gemius_hit(l.NET_AUDIENCE_ID,"gA="+e),ga("send","event",{eventCategory:"net_audience_hit",eventAction:e});var t=f(e);d(o(o({},t),{action_type:e,site_section:contextualData.sections}))};var i,r,a,s,c=n(70583),l=n(1550),u=n(6864);function d(e){if(n=e,new URLSearchParams(location.search).has("analytics")&&console.log(n),dataLayer.push(e),function(e){var t=e;return void 0!==t.click_action||void 0!==t.click_location||void 0!==t.click_label}(e)){var t=new CustomEvent("ga4-click-event",{detail:e});document.dispatchEvent(t)}var n}function p(){if("grid"===contextualData.type&&"homepage"===contextualData.context)return"Observador";if("post"===contextualData.type)return g(contextualData.post.smallTitle);var e=document.title;return"grid"===contextualData.type&&"category"===contextualData.context?g(e.replace(/ \u2013 notícias, opinião, rádio, fotos e podcasts$/,"")):g(e.replace(/ \u2013 Observador$/,""))}function f(e){var t,n;return{event:i.pageview,site_section:"",darkmode_status:"light"!==document.body.id,newsletter_subscribed_number:c.subscriptionsController.getInstance().subscriptions.filter((function(e){return"subscribed"===e.status})).length,adblocker_status:void 0===window.pSUPERFLY,user_id:(0,u.getUserId)(),user_browser_id:null!==(t=localStorage.getItem("qrbid"))&&void 0!==t?t:"",user_profile:(0,u.getUserType)(),page_title:p(),page_path:(n=location.pathname,n.length>99?n.slice(0,96)+"...":n),action_type:null!=e?e:l.ActionTypeE.other,cg1:"web"}}function m(e){var t,n,r,a,s,c,u,p,m=f(e);switch(contextualData.type){case"grid":switch(contextualData.context){case"homepage":m.site_section="homepage",m.action_type=l.ActionTypeE.home;break;case"category":m.site_section="category-"+contextualData.sections,m.action_type=l.ActionTypeE.viewSection;break;case"archive":m.site_section="archive-"+contextualData.sections;break;default:m.site_section="default-context-"+location.pathname}d(m);break;case"post":m.event=i.articleview,m.action_type=l.ActionTypeE.viewArticle;var g=contextualData.post.credits.find((function(e){return"text"===e.creditType}));g||(g=contextualData.post.credits[0]);var h=new Date(contextualData.post.createdAt),v=new Intl.DateTimeFormat("pt-PT",{year:"numeric",month:"2-digit",day:"2-digit"}).format(h),b=o(o({},m),{site_section:contextualData.sections,content_id:contextualData.id,page_title:contextualData.post.smallTitle,content_topic_name:(null===(n=null===(t=contextualData.post)||void 0===t?void 0:t.mainCategory)||void 0===n?void 0:n.slug)||"",content_topic_parent_name:(null===(a=null===(r=contextualData.post)||void 0===r?void 0:r.topLevelCategory)||void 0===a?void 0:a.slug)||"",content_topic_id:null===(c=null===(s=contextualData.post)||void 0===s?void 0:s.mainCategory)||void 0===c?void 0:c.termId,content_topic_parent_id:null===(p=null===(u=contextualData.post)||void 0===u?void 0:u.topLevelCategory)||void 0===p?void 0:p.termId,content_type:contextualData.post.postType,content_level:contextualData.post.premium?"premium":"free",content_author:(null==g?void 0:g.creditAuthorName)||"",content_author_id:(null==g?void 0:g.creditAuthorId)||"",content_author_is_columnist:(null==g?void 0:g.isColumnist)||!1,content_publish_date:v.toString(),content_body_length:contextualData.post.contentLength,amp_check:["post","obs_episode","obs_opinion","obs_longform"].find((function(e){return e===contextualData.post.postType}))?"true-false":"false"});switch(contextualData.post.collection&&(b.content_collection_id=contextualData.post.collection.id),contextualData.post.postType){case"obs_episode":var _=contextualData.post.episode.program.type.find((function(e){return"podcast"===e}))||contextualData.post.episode.program.type[0];m.action_type=l.ActionTypeE.viewEpisode,d(o(o({},b),{content_related_id:contextualData.post.episode.program.id,content_related_name:contextualData.post.episode.program.slug,content_related_type:_}));break;case"obs_newsletter":d(o(o({},b),{content_related_id:contextualData.post.newsletter.id,content_related_name:contextualData.post.newsletter.slug}));break;default:d(b)}break;case"page":m.site_section=contextualData.sections,d(m);break;default:"/radio/player/"===location.pathname?m.site_section="Rádio":m.site_section="observador",d(m)}}function g(e){return void 0===e?"":(e.replace(/\u2013/,"-"),e.length>99?e.slice(0,96)+"...":e)}(r=i||(t.GaEventE=i={})).pageview="obs_page_view",r.articleview="obs_article_page_view",r.articleinteraction="article_interaction",r.game="games",r.audio="audio",r.onboard="onboard",r.previsometro="previsometro",r.toaster="toaster",(s=a||(t.pageTypeNetA=a={})).home="Homepage_do_site",s.article="article",s.section="section",s.radio="radio",s.search="search",s.other="other",t.chartBeatUtils={loadChartBeat:function(e){window._sf_async_config=window._sf_async_config||{},window._sf_async_config.uid=55094,window._sf_async_config.domain=siteSettings.domain,window._sf_async_config.useCanonical=!0,contextualData.type&&"post"==contextualData.type&&1==contextualData.post.premium?window._sf_async_config.sections=contextualData.sections+",premium":window._sf_async_config.sections=contextualData.topCategory?contextualData.topCategory:contextualData.sections||null,window._sf_async_config.zone=contextualData.zones||null,contextualData.type&&"post"===contextualData.type?window._sf_async_config.authors=contextualData.post.chartbeatAuthors:window._sf_async_config.authors=null,e&&(window._sf_async_config=o(o({},window._sf_async_config),e)),window._cbq=window._cbq||[];var t=(0,u.getUserType)();window._cbq.push(["_acct",t]),window._sf_endpt=(new Date).getTime();var n=document.createElement("script"),i=document.getElementsByTagName("script")[0];n.type="text/javascript",n.async=!0,n.src="//static.chartbeat.com/js/chartbeat.js",i.parentNode.insertBefore(n,i)}}},41476:function(e,t,n){"use strict";function o(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}n.d(t,{D:function(){return o}})},41669:function(e){"use strict";e.exports=jQuery},42836:function(e,t,n){var o=n(41669);function i(e){navigator.canShare&&(e.preventDefault(),navigator.share({title:contextualData.title,url:window.location.href}).then((function(){})).catch((function(e){console.log("Sharing failed",e)})))}obsEventListener("DOMContentLoaded",(function(){navigator.canShare&&o(".share_native").show(),o(".share_native").on("click",i)}))},45994:function(e,t,n){"use strict";n.d(t,{Bi:function(){return L},Kr:function(){return S},MN:function(){return T},NT:function(){return E},Nf:function(){return w},WO:function(){return _},Yn:function(){return x},hb:function(){return k},useEffect:function(){return y}
252,useRef:function(){return C},useState:function(){return b}});var o,i,r,a,s=n(50172),c=0,l=[],u=s.fF,d=u.__b,p=u.__r,f=u.diffed,m=u.__c,g=u.unmount,h=u.__;function v(e,t){u.__h&&u.__h(i,e,c||t),c=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function b(e){return c=1,_(M,e)}function _(e,t,n){var r=v(o++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):M(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=i,!i.__f)){var a=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var i=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),s&&s.call(this,e,t,n)||i};i.__f=!0;var s=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(e,t,n){if(this.__e){var o=s;s=void 0,a(e,t,n),s=o}c&&c.call(this,e,t,n)},i.shouldComponentUpdate=a}return r.__N||r.__}function y(e,t){var n=v(o++,3);!u.__s&&$(n.__H,t)&&(n.__=e,n.u=t,i.__H.__h.push(n))}function w(e,t){var n=v(o++,4);!u.__s&&$(n.__H,t)&&(n.__=e,n.u=t,i.__h.push(n))}function C(e){return c=5,S((function(){return{current:e}}),[])}function x(e,t,n){c=6,w((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function S(e,t){var n=v(o++,7);return $(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function k(e,t){return c=8,S((function(){return e}),t)}function E(e){var t=i.context[e.__c],n=v(o++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__}function T(e,t){u.useDebugValue&&u.useDebugValue(t?t(e):e)}function L(){var e=v(o++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function I(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(P),e.__H.__h.forEach(D),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){i=null,d&&d(e)},u.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),h&&h(e,t)},u.__r=function(e){p&&p(e),o=0;var t=(i=e.__c).__H;t&&(r===i?(t.__h=[],i.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(P),t.__h.forEach(D),t.__h=[],o=0)),r=i},u.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===u.requestAnimationFrame||((a=u.requestAnimationFrame)||O)(I)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),r=i=null},u.__c=function(e,t){t.some((function(e){try{e.__h.forEach(P),e.__h=e.__h.filter((function(e){return!e.__||D(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],u.__e(n,e.__v)}})),m&&m(e,t)},u.unmount=function(e){g&&g(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{P(e)}catch(e){t=e}})),n.__H=void 0,t&&u.__e(t,n.__v))};var A="function"==typeof requestAnimationFrame;function O(e){var t,n=function(){clearTimeout(o),A&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,35);A&&(t=requestAnimationFrame(n))}function P(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function D(e){var t=i;e.__c=e.__(),i=t}function $(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function M(e,t){return"function"==typeof t?t(e):t}},47134:function(e,t,n){"use strict";n(76214),n(45994),n(79408),n(81726),n(14246)},48004:function(){},49059:function(e,t,n){"use strict";n.d(t,{PopupContainer:function(){return i}});var o=n(76214);function i(e){return o.html`
253        <style>
254            #dark .popup-container-content {
255                background-color: #111;
256            }
257            .popup-container {
258                background: rgba(0, 0, 0, 0.3);
259                display: flex;
260                align-items: center;
261                justify-content: center;
262                position: absolute;
263                top: 0;
264                left: 0;
265                width: 100vw;
266                height: 100vh;
267                overflow: hidden;
268                z-index: 1004;
269            }
270            .popup-container-content {
271                display: flex;
272                flex-direction: column;
273                align-items: center;
274                position: relative;
275                width: 100%;
276                max-width: 595px;
277                height: auto;
278                max-height: 400px;
279                margin: 15px;
280                box-sizing: border-box;
281                background: #fff;
282                border-radius: 10px;
283                padding: 50px 40px;
284            }
285            .popup-container-close {
286                border: none;
287                background: none;
288                appearance: none;
289                position: absolute;
290                top: 20px;
291                right: 20px;
292            }
293            .popup-container-close svg {
294                width: 20px;
295                height: 20px;
296                color: #262626;
297                cursor: pointer;
298            }
299            #dark .popup-container-close svg {
300                color: #ffffff;
301            }
302            .popup-container-title {
303                margin-top: 0;
304                margin-bottom: 20px;
305                font-size: 24px;
306                text-align: center;
307            }
308            .popup-container-desc {
309                font-size: 18px;
310                text-align: center;
311            }
312            a.popup-container-btn:link,
313            a.popup-container-btn:active,
314            a.popup-container-btn:visited,
315            #dark a.popup-container-btn:link,
316            #dark a.popup-container-btn:active,
317            #dark a.popup-container-btn:visited {
318                margin-top: 20px;
319                padding: 10px 30px;
320                background: #57a0d7;
321                color: #ffffff;
322            }
323        </style>
324
325        <div class="popup-container" id="${e.popupSettings.id}">
326            <div class="popup-container-content">
327                <button class="popup-container-close" onClick=${e.closePopup}>
328                    <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
329                        <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
330                    </svg>
331                </button>
332                <h1 class="popup-container-title">${e.popupSettings.title}</h1>
333                <p class="popup-container-desc">${e.popupSettings.description}</p>
334                <a class="popup-container-btn" onClick=${function(){const t=JSON.parse(localStorage.getItem(`communication_popup_${e.popupSettings.id}`));t.openedUrl=!0,localStorage.setItem(`communication_popup_${e.popupSettings.id}`,JSON.stringify(t))}} href="${e.popupSettings.buttonUrl}" target="_blank">${e.popupSettings.buttonText}</a>
335            </div>
336        </div>
337    `}},49135:function(e,t){"use strict";t._=void 0,t._={DIALOG_GENERIC_ERROR:"Ocorreu um erro, por favor entre em contacto com o Apoio a Cliente",dialog:null,show:function(e){var n,o,i;t._.dialog=document.querySelector("#obs-dialog"),t._.dialog?(t._.hide(),null===(o=t._.dialog.querySelector("#obs-dialog-close"))||void 0===o||o.addEventListener("click",(function(){e.closeCallback&&e.closeCallback(),t._.dialog.close()})),null===(i=t._.dialog.querySelector("#obs-dialog-success"))||void 0===i||i.addEventListener("click",(function(){e.successCallback&&e.successCallback(),t._.dialog.close()})),t._.dialog.classList.forEach((function(e){return t._.dialog.classList.remove(e)})),e.classes&&(n=t._.dialog.classList).add.apply(n,e.classes),e.title&&(t._.dialog.querySelector("#obs-dialog-title").innerText=e.title),e.text&&(t._.dialog.querySelector("#obs-dialog-text").innerText=e.text),e.html&&(t._.dialog.querySelector("#obs-dialog-body").innerHTML=e.html),t._.dialog.showModal()):console.log("DIALOG MANAGER NOT FOUND")},hide:function(){t._.dialog&&t._.dialog.close()}},window.dialogManager||(window.dialogManager=t._)},50172:function(e,t,n){"use strict";n.d(t,{FK:function(){return S},Ob:function(){return G},Qv:function(){return W},_3:function(){return x},fF:function(){return i},h:function(){return w},n:function(){return w},q6:function(){return Z},render:function(){return z},uA:function(){return k},v2:function(){return D}});var o,i,r,a,s,c,l,u,d,p,f,m,g={},h=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function _(e,t){for(var n in t)e[n]=t[n];return e}function y(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,n){var i,r,a,s={};for(a in t)"key"==a?i=t[a]:"ref"==a?r=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]
337);return C(e,s,i,r,null)}function C(e,t,n,o,a){var s={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=i.vnode&&i.vnode(s),s}function x(){return{current:null}}function S(e){return e.children}function k(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function T(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return T(e)}}function L(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!I.__r++||s!=i.debounceRendering)&&((s=i.debounceRendering)||c)(I)}function I(){for(var e,t,n,o,r,s,c,u=1;a.length;)a.length>u&&a.sort(l),e=a.shift(),u=a.length,e.__d&&(n=void 0,r=(o=(t=e).__v).__e,s=[],c=[],t.__P&&((n=_({},o)).__v=o.__v+1,i.vnode&&i.vnode(n),N(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,s,null==r?E(o):r,!!(32&o.__u),c),n.__v=o.__v,n.__.__k[n.__i]=n,H(s,n,c),n.__e!=r&&T(n)));I.__r=0}function A(e,t,n,o,i,r,a,s,c,l,u){var d,p,f,m,v,b,_=o&&o.__k||h,y=t.length;for(c=O(n,t,_,c,y),d=0;d<y;d++)null!=(f=n.__k[d])&&(p=-1==f.__i?g:_[f.__i]||g,f.__i=d,b=N(e,f,p,i,r,a,s,c,l,u),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&U(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==v&&null!=m&&(v=m),4&f.__u||p.__k===f.__k?c=P(f,c,e):"function"==typeof f.type&&void 0!==b?c=b:m&&(c=m.nextSibling),f.__u&=-7);return n.__e=v,c}function O(e,t,n,o,i){var r,a,s,c,l,u=n.length,d=u,p=0;for(e.__k=new Array(i),r=0;r<i;r++)null!=(a=t[r])&&"boolean"!=typeof a&&"function"!=typeof a?(c=r+p,(a=e.__k[r]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?C(null,a,null,null,null):b(a)?C(S,{children:a},null,null,null):null==a.constructor&&a.__b>0?C(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,-1!=(l=a.__i=$(a,n,c,d))&&(d--,(s=n[l])&&(s.__u|=2)),null==s||null==s.__v?(-1==l&&(i>u?p--:i<u&&p++),"function"!=typeof a.type&&(a.__u|=4)):l!=c&&(l==c-1?p--:l==c+1?p++:(l>c?p--:p++,a.__u|=4))):e.__k[r]=null;if(d)for(r=0;r<u;r++)null!=(s=n[r])&&!(2&s.__u)&&(s.__e==o&&(o=E(s)),F(s,s));return o}function P(e,t,n){var o,i;if("function"==typeof e.type){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=P(o[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=E(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some((function(e){D(e,t)})):t.push(e)),t}function $(e,t,n,o){var i,r,a=e.key,s=e.type,c=t[n];if(null===c&&null==e.key||c&&a==c.key&&s==c.type&&!(2&c.__u))return n;if(o>(null==c||2&c.__u?0:1))for(i=n-1,r=n+1;i>=0||r<t.length;){if(i>=0){if((c=t[i])&&!(2&c.__u)&&a==c.key&&s==c.type)return i;i--}if(r<t.length){if((c=t[r])&&!(2&c.__u)&&a==c.key&&s==c.type)return r;r++}}return-1}function M(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||v.test(t)?n:n+"px"}function R(e,t,n,o,i){var r,a;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||M(e.style,t,"");if(n)for(t in n)o&&n[t]==o[t]||M(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])r=t!=(t=t.replace(u,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o?n.u=o.u:(n.u=d,e.addEventListener(t,r?f:p,r)):e.removeEventListener(t,r?f:p,r);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function j(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<n.u)return;return n(i.event?i.event(t):t)}}}function N(e,t,n,o,r,a,s,c,l,u){var d,p,f,m,g,h,v,w,C,x,E,T,L,I,O,P,D,$=t.type;if(null!=t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[c=t.__e=n.__e]),(d=i.__b)&&d(t);e:if("function"==typeof $)try{if(w=t.props,C="prototype"in $&&$.prototype.render,x=(d=$.contextType)&&o[d.__c],E=d?x?x.props.value:d.__:o,n.__c?v=(p=t.__c=n.__c).__=p.__E:(C?t.__c=p=new $(w,E):(t.__c=p=new k(w,E),p.constructor=$,p.render=V),x&&x.sub(p),p.props=w,p.state||(p.state={}),p.context=E,p.__n=o,f=p.__d=!0,p.__h=[],p._sb=[]),C&&null==p.__s&&(p.__s=p.state),C&&null!=$.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=_({}
337,p.__s)),_(p.__s,$.getDerivedStateFromProps(w,p.__s))),m=p.props,g=p.state,p.__v=t,f)C&&null==$.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),C&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(C&&null==$.getDerivedStateFromProps&&w!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(w,E),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(w,p.__s,E)||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=w,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),T=0;T<p._sb.length;T++)p.__h.push(p._sb[T]);p._sb=[],p.__h.length&&s.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(w,p.__s,E),C&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,g,h)}))}if(p.context=E,p.props=w,p.__P=e,p.__e=!1,L=i.__r,I=0,C){for(p.state=p.__s,p.__d=!1,L&&L(t),d=p.render(p.props,p.state,p.context),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[]}else do{p.__d=!1,L&&L(t),d=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++I<25);p.state=p.__s,null!=p.getChildContext&&(o=_(_({},o),p.getChildContext())),C&&!f&&null!=p.getSnapshotBeforeUpdate&&(h=p.getSnapshotBeforeUpdate(m,g)),P=d,null!=d&&d.type===S&&null==d.key&&(P=B(d.props.children)),c=A(e,b(P)?P:[P],t,n,o,r,a,s,c,l,u),p.base=t.__e,t.__u&=-161,p.__h.length&&s.push(p),v&&(p.__E=p.__=null)}catch(e){if(t.__v=null,l||null!=a)if(e.then){for(t.__u|=l?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;a[a.indexOf(c)]=null,t.__e=c}else for(D=a.length;D--;)y(a[D]);else t.__e=n.__e,t.__k=n.__k;i.__e(e,t,n)}else null==a&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=q(n.__e,t,n,o,r,a,s,l,u);return(d=i.diffed)&&d(t),128&t.__u?void 0:c}function H(e,t,n){for(var o=0;o<n.length;o++)U(n[o],n[++o],n[++o]);i.__c&&i.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){i.__e(e,t.__v)}}))}function B(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:b(e)?e.map(B):_({},e)}function q(e,t,n,r,a,s,c,l,u){var d,p,f,m,h,v,_,w=n.props,C=t.props,x=t.type;if("svg"==x?a="http://www.w3.org/2000/svg":"math"==x?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((h=s[d])&&"setAttribute"in h==!!x&&(x?h.localName==x:3==h.nodeType)){e=h,s[d]=null;break}if(null==e){if(null==x)return document.createTextNode(C);e=document.createElementNS(a,x,C.is&&C),l&&(i.__m&&i.__m(t,s),l=!1),s=null}if(null==x)w===C||l&&e.data==C||(e.data=C);else{if(s=s&&o.call(e.childNodes),w=n.props||g,!l&&null!=s)for(w={},d=0;d<e.attributes.length;d++)w[(h=e.attributes[d]).name]=h.value;for(d in w)if(h=w[d],"children"==d);else if("dangerouslySetInnerHTML"==d)f=h;else if(!(d in C)){if("value"==d&&"defaultValue"in C||"checked"==d&&"defaultChecked"in C)continue;R(e,d,null,h,a)}for(d in C)h=C[d],"children"==d?m=h:"dangerouslySetInnerHTML"==d?p=h:"value"==d?v=h:"checked"==d?_=h:l&&"function"!=typeof h||w[d]===h||R(e,d,h,w[d],a);if(p)l||f&&(p.__html==f.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(f&&(e.innerHTML=""),A("template"==t.type?e.content:e,b(m)?m:[m],t,n,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":a,s,c,s?s[0]:n.__k&&E(n,0),l,u),null!=s)for(d=s.length;d--;)y(s[d]);l||(d="value","progress"==x&&null==v?e.removeAttribute("value"):null!=v&&(v!==e[d]||"progress"==x&&!v||"option"==x&&v!=w[d])&&R(e,d,v,w[d],a),d="checked",null!=_&&_!=e[d]&&R(e,d,_,w[d],a))}return e}function U(e,t,n){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){i.__e(e,n)}}function F(e,t,n){var o,r;if(i.unmount&&i.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||U(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){i.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&F(o[r],t,n||"function"!=typeof e.type);n||y(e.__e),e.__c=e.__=e.__e=void 0}function V(e,t,n){return this.constructor(e,n)}function z(e,t,n){var r,a,s,c;t==document&&(t=document.documentElement),i.__&&i.__(e,t),a=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],c=[],N(t,e=(!r&&n||t).__k=w(S,null,[e]),a||g,g,t.namespaceURI,!r&&n?[n]:a?null:t.firstChild?o.call(t.childNodes):null,
vendor: 1,601 bytes, line 337
337s,!r&&n?n:a?a.__e:t.firstChild,r,c),H(s,e,c)}function W(e,t){z(e,t,W)}function G(e,t,n){var i,r,a,s,c=_({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?i=t[a]:"ref"==a?r=t[a]:c[a]=void 0===t[a]&&null!=s?s[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?o.call(arguments,2):n),C(e.type,c,i||e.key,r||e.ref,null)}function Z(e){function t(e){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,L(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+m++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}o=h.slice,i={__e:function(e,t,n,o){for(var i,r,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,o||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},r=0,k.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=_({},this.state),"function"==typeof e&&(e=e(_({},n),this.props)),e&&_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),L(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),L(this))},k.prototype.render=S,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
337ise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},I.__r=0,u=/(PointerCapture)$|Capture$/i,d=0,p=j(!1),f=j(!0),m=0},51591:function(e,t,n){"use strict";n(76214)},53419:function(){},54499:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var o=n(76214),i=n(45994),r=n(79408),a=n(14246);const s="439313482366-dvdj8tsff9tpi5csb410roen1r9g3m5q.apps.googleusercontent.com";function c({type:e,onSuccess:t,onClick:n,onError:c,onReady:l,requireTerms:u=!1,termsAccepted:d=!1}){const[p,f]=(0,i.useState)(!1),[m,g]=(0,i.useState)(!1),h=(0,i.useRef)(null),{loginWithGoogle:v}=(0,r.a)(),b=(0,i.useRef)(u),_=(0,i.useRef)(d),y=(0,i.useRef)(t);(0,i.useEffect)((()=>{b.current=u}),[u]),(0,i.useEffect)((()=>{_.current=d}),[d]),(0,i.useEffect)((()=>{y.current=t}),[t]);const w=(0,i.hb)((async e=>{if(!b.current||_.current){f(!0);try{await v(e.credential),y.current?.()}catch(e){c(e)}finally{f(!1)}}else c(new Error("Tem de aceitar os Termos e Condições e a Política de Privacidade e Cookies."))}),[v]),C=(0,i.hb)((()=>{if(!window.google?.accounts?.id||!h.current)return;window.google.accounts.id.initialize({client_id:s,callback:w}),window.google.accounts.id.renderButton(h.current,{theme:"outline",size:"large",type:e,click_listener:()=>{window.obsFbqTrack?.("RegisterProviderClick",{provider:"google"}),n?.()}}),window.google.accounts.id.prompt();const t=h.current,o=()=>{g(!0),l?.()},i=setTimeout(o,3e3),r=new MutationObserver((()=>{t.hasChildNodes()&&(r.disconnect(),clearTimeout(i),setTimeout(o,300))}));r.observe(t,{childList:!0,subtree:!0})}),[w]),x=(0,i.hb)((()=>{if(document.getElementById("googleapi")){const e=setInterval((()=>{window.google?.accounts?.id&&(clearInterval(e),C())}),100);return}const e=document.createElement("script");e.id="googleapi",e.src="https://accounts.google.com/gsi/client",e.async=!0,e.onload=()=>C(),document.body.insertAdjacentElement("beforeend",e)}),[C]);return(0,i.useEffect)((()=>{window.google?.accounts?.id?C():x()}),[]),o.html` <div class="google-provider">${p?o.html`<${a.k} />`:o.html` <div ref=${h} class="google-signin-container ${e}${m?" ready":""}" aria-label="Entrar com Google" /> `}</div>`}},54586:function(e,t,n){"use strict";n.d(t,{$:function(){return w},$4:function(){return _},VR:function(){return y},We:function(){return l},_j:function(){return a},_w:function(){return C},sP:function(){return g}});var o=n(70583),i=n(1550),r=n(6864),a=(e=>(e.pageview="obs_page_view",e.articleview="obs_article_page_view",e.articleinteraction="article_interaction",e.game="games",e.audio="audio",e.onboard="onboard",e.previsometro="previsometro",e.toaster="toaster",e.header="header",e.moa="moa",e.menu="menu",e.product_awareness="product_awareness",e.associateaccount="associate_account",e.landing="landing",e.ask_info="ask_info",e.manageAccount="manage_account",e.paywall="paywall",e.studentFaqSlides="student_faq_slides",e.widget="widget",e.interactive="interactive",e.login_flow="login_flow",e.cupon="cupon",e.modal="modal",e.podcast_promo="podcast_promo",e))(a||{});function s(e){new URLSearchParams(location.search).has("analytics")&&console.log(e)}function c(e){if(s(e),dataLayer.push(e),function(e){const t=e;return void 0!==t.click_action||void 0!==t.click_location||void 0!==t.click_label}(e)){const t=new CustomEvent("ga4-click-event",{detail:e});document.dispatchEvent(t)}}function l(){window.pp_gemius_hit&&(window.pp_gemius_hit(i.NET_AUDIENCE_ID,"gA=liveblog_changePage"),ga("send","event",{eventCategory:"net_audience_hit",eventAction:"liveblog_changePage"}),_())}const u="__obsGemiusPending",d=250,p=40;function f(e){if(window[e])return;const t=function(){var t=window[e+"_pdata"]=window[e+"_pdata"]||[];t[t.length]=arguments};t[u]=!0,window[e]=t}function m(e,t=p){f("pp_gemius_hit"),(window.pp_gemius_hit[u]||!performance.getEntriesByType("resource").some((e=>-1!==e.name.indexOf("hit.gemius.pl")&&-1!==e.name.indexOf("rexdot.js"))))&&t>0?setTimeout((()=>m(e,t-1)),d):window.pp_gemius_hit(i.NET_AUDIENCE_ID,e)}function g(){window.pp_gemius_identifier=i.NET_AUDIENCE_ID,window.pp_gemius_extraparameters;const e=(0,r.getUserType)(),t="grid"===contextualData.type&&"homepage"===contextualData.context?{page:"Homepage_do_site",cat:""}:"post"===contextualData.type?{page:"article",cat:contextualData.post?.topLevelCategory?.slug||""}:"grid"===contextualData.type&&"category"===contextualData.context?{page:"section",cat:contextualData.topCategory}:"/radio/player/"===location.pathname?{page:"radio",cat:""}:"/pesquisa/"===location.pathname?{page:"search",cat:""}:{page:"other",cat:""};switch(t.page){case"Homepage_do_site":window.pp_gemius_extraparameters=new Array(`gA=${t.page}`);break;case"article":case"section":window.pp_gemius_extraparameters=new Array("gA="+t.page+"/"+e+"/"+t.cat);break;case"radio":case"search":case"other":window.pp_gemius_extraparameters=new Array("gA="+t.page+"/"+e)}f("gemius_hit"),f("gemius_event"),f("pp_gemius_hit"),f("pp_gemius_event"),function(e,t){try{var n=e.createElement(t),o=e.getElementsByTagName(t)[0],i="http"+("https:"==location.protocol?"s":"");n.async=!0,n.src=i+"://gapt.hit.gemius.pl/xgemius.js",o.parentNode.insertBefore(n,o)}catch(e){}}(document,"script")}function h(){if("grid"===contextualData.type&&"homepage"===contextualData.context)return"Observador";if("post"===contextualData.type)return x(contextualData.post.smallTitle);const e=document.title;return"grid"===contextualData.type&&"category"===contextualData.context?x(e.replace(/ \u2013 notícias, opinião, rádio, fotos e podcasts$/,"")):x(e.replace(/ \u2013 Observador$/,""))}function v(e){return{event:"obs_page_view",site_section:"",darkmode_status:"light"!==document.body.id,newsletter_subscribed_number:o.subscriptionsController.getInstance().subscriptions.filter((e=>"subscribed"===e.status)).length,adblocker_status:void 0===window.pSUPERFLY,user_id:(0,r.getUserId)(),user_browser_id:localStorage.getItem("qrbid")??"",user_profile:(0,r.getUserType)(),page_title:h(),page_path:b(),action_type:e??i.ActionTypeE.other,cg
3371:"web"}}function b(){const e=location.pathname;return e.length>99?e.slice(0,96)+"...":e}function _(e){let t=v(e);switch(contextualData.type){case"grid":switch(contextualData.context){case"homepage":t.site_section="homepage",t.action_type=i.ActionTypeE.home;break;case"category":t.site_section="category-"+contextualData.sections,t.action_type=i.ActionTypeE.viewSection;break;case"archive":t.site_section="archive-"+contextualData.sections;break;default:t.site_section="default-context-"+location.pathname}c(t);break;case"post":{t.event="obs_article_page_view",t.action_type=i.ActionTypeE.viewArticle;let e=contextualData.post.credits.find((e=>"text"===e.creditType));e||(e=contextualData.post.credits[0]);const n=new Date(contextualData.post.createdAt),o=new Intl.DateTimeFormat("pt-PT",{year:"numeric",month:"2-digit",day:"2-digit"}).format(n),r={...t,site_section:contextualData.sections,content_id:contextualData.id,page_title:contextualData.post.smallTitle,content_topic_name:contextualData.post?.mainCategory?.slug||"",content_topic_parent_name:contextualData.post?.topLevelCategory?.slug||"",content_topic_id:contextualData.post?.mainCategory?.termId,content_topic_parent_id:contextualData.post?.topLevelCategory?.termId,content_type:contextualData.post.postType,content_level:contextualData.post.premium?"premium":"free",content_author:e?.creditAuthorName||"",content_author_id:e?.creditAuthorId||"",content_author_is_columnist:e?.isColumnist||!1,content_publish_date:o.toString(),content_body_length:contextualData.post.contentLength,amp_check:["post","obs_episode","obs_opinion","obs_longform"].find((e=>e===contextualData.post.postType))?"true-false":"false"};switch(contextualData.post.collection&&(r.content_collection_id=contextualData.post.collection.id),contextualData.post.postType){case"obs_episode":{const e=contextualData.post.episode.program.type.find((e=>"podcast"===e))||contextualData.post.episode.program.type[0];t.action_type=i.ActionTypeE.viewEpisode,c({...r,content_related_id:contextualData.post.episode.program.id,content_related_name:contextualData.post.episode.program.slug,content_related_type:e});break}case"obs_newsletter":c({...r,content_related_id:contextualData.post.newsletter.id,content_related_name:contextualData.post.newsletter.slug});break;default:c(r)}break}case"page":t.site_section=contextualData.sections,c(t);break;default:"/radio/player/"===location.pathname?t.site_section="Rádio":t.site_section="observador",c(t)}}function y(e){s(e),c({...v(),...e})}function w(e){m("gA="+e),ga("send","event",{eventCategory:"net_audience_hit",eventAction:e}),c({...v(e),action_type:e,site_section:contextualData.sections})}const C={loadChartBeat(e){window._sf_async_config=window._sf_async_config||{},window._sf_async_config.uid=55094,window._sf_async_config.domain=siteSettings.domain,window._sf_async_config.useCanonical=!0,contextualData.type&&"post"==contextualData.type&&1==contextualData.post.premium?window._sf_async_config.sections=contextualData.sections+",premium":window._sf_async_config.sections=contextualData.topCategory?contextualData.topCategory:contextualData.sections||null,window._sf_async_config.zone=contextualData.zones||null,contextualData.type&&"post"===contextualData.type?window._sf_async_config.authors=contextualData.post.chartbeatAuthors:window._sf_async_config.authors=null,e&&(window._sf_async_config={...window._sf_async_config,...e}),window._cbq=window._cbq||[];const t=(0,r.getUserType)();window._cbq.push(["_acct",t]),window._sf_endpt=(new Date).getTime();var n=document.createElement("script"),o=document.getElementsByTagName("script")[0];n.type="text/javascript",n.async=!0,n.src="//static.chartbeat.com/js/chartbeat.js",o.parentNode.insertBefore(n,o)}};function x(e){return void 0===e?"":(e.replace(/\u2013/,"-"),e.length>99?e.slice(0,96)+"...":e)}window.sendClickEventGlobal=y},55379:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var o=n(76214),i=n(16922),r=n(45994),a=n(14117);const s=(0,i.m)((function({provider:e,claim:t,onClose:n,hideClose:i,hideRegister:s}){const[c,l]=(0,r.useState)(null),[u,d]=(0,r.useState)(!1);return o.html`
338        <div class="row">
339            <div class="fbg-row row">
340                <div class="fbg-col-4 fbg-col-md-4 columns medium-6 single-provider-claim">
341                    <p>${t}</p>
342                </div>
343            </div>
344            <div class="fbg-row row">
345                <div class="fbg-col-4 fbg-col-md-4 columns medium-6">
346                    <div class=${"login-buttons single-provider"+(u?" social-ready":"")}>${e({type:"standard",onError:function(e){l((0,a._Y)(e))},onSuccess:function(){},onReady:()=>d(!0)})}</div>
347                </div>
348            </div>
349            <div class="fbg-row row">
350                <div class="fbg-col-4 fbg-col-md-4 columns medium-6">
351                    <p class="oauth-error">${c}</p>
352                </div>
353            </div>
354            <div class="fbg-row row">
355                <div class="fbg-col-4 fbg-col-md-4 columns medium-6 single-provider-other-login" onclick=${()=>adamastor.showLogin({onClose:n,hideClose:i,hideRegister:s})}>Outros meios de iniciar sessão</div>
356            </div>
357        </div>
358    `}))},55857:function(e,t,n){"use strict";var o,i=n(1550),r=n(54586),a=n(41669);o={assetsLoaded:!1,commentsConfigurated:!1,shareCommentsPopUp:function(e,t){var n=(document.location.origin,e.object_id);n="https://observador.pt/?p="+e.object_id+t;var o=encodeURIComponent(n),i=e.text;a("#share-coment").remove(),window.loader.loadHTML("templates/templates.templates.html","body",(function(e){var t=parseTemplate(document.getElementById("template-share-comment").innerHTML,{uri:o,text:i});a.magnificPopup.open({items:{src:a(t)},type:"inline",closeOnBgClick:!0})}))},openComments:function(e,t,n,o){(0,r.$)(i.ActionTypeE.openComment);var s=this;if(!0===s.commentsConfigurated)return AddUp.openComments(),void(o&&o());s.instantianteBarbeiro().then((function(){try{n||(n="dummy-author");var i={authorId:n,title:e};document.querySelector("*[data-reactroot]")&&s.unmountComments(),adamastor.isLoggedIn()&&(i={userId:adamastor.getSessionProfile().sub,userName:adamastor.getSessionProfile().name,authorId:n,isCommenter:adamastor.getSessionProfile().tags.indexOf("commenter")>=0,title:e,premiumUser:adamastor.getSubscriptionSettings().canComment});var r=AddUp.getCommentGroup("post",t,i);r.registerLogInRequestListener(adamastor.showLogin),r.registerShareCommentRequestListener(s.shareCommentsPopUp.bind()),document.addEventListener("obsLogin",(function(e){r.userLoggedIn(e.sessionProfile.sub,e.sessionProfile.name,e.sessionProfile.tags.indexOf("commenter")>=0)})),document.addEventListener("obsLogout",(function(){r.userLoggedOut()})),AddUp.openComments=r.openPanel,AddUp.closeComments=r.closePanel,AddUp.openComments(),s.commentsConfigurated=!0,a("body").on("click",".share-comment",(function(e){e.preventDefault(),window.open(e.currentTarget.href,"Partilhar comentario","width=500,height=500"),a.magnificPopup.close()})),o&&o()}catch(e){console.error("CommentsManager: failed to open the comments panel",e)}}))},instantianteBarbeiro:function(){var e=this;if(e.assetsLoaded=!1,!document.querySelector("#commentsContainer")){var t=document.createElement("div");t.id="commentsContainer",document.body.appendChild(t)}return a.Deferred((function(t){0==e.assetsLoaded?e.fetchAssets().then((function(){t.resolve()})):t.resolve()}))},unmountComments:function(){if(this.commentsConfigurated=!1,"post"===contextualData.type)for(var e=document.querySelectorAll("*[data-reactroot]"),t=0;t!=e.length;t++)AddUp.unmount(e[t].parentElement,"post",contextualData.id)},fetchAssets:function(){var e=this,t={library:window.location.origin+"/wp-content/themes/observador-child/assets/vendor/barbeiro/frontend/library.js?ver
358="+contextualData.assetsVersion,barbeiro:window.location.origin+"/wp-content/themes/observador-child/assets/vendor/barbeiro/frontend/app.js?ver="+contextualData.assetsVersion,css:window.location.origin+"/wp-content/themes/observador-child/assets/vendor/barbeiro/frontend/app.css?ver="+contextualData.assetsVersion,config:window.location.origin+"/wp-content/themes/observador-child/assets/vendor/barbeiro/frontend/config.js?ver="+contextualData.assetsVersion};return a.Deferred((function(n){a("<link>").appendTo("head").attr({type:"text/css",rel:"stylesheet",href:t.css}),a.getScript(t.config,(function(){a.getScript(t.library,(function(){a.getScript(t.barbeiro,(function(){e.assetsLoaded=!0,n.resolve()}))}))}))})).promise()},init:function(){var e=this;window.CommentsManager={openComments:e.openComments.bind(e),instantianteBarbeiro:e.instantianteBarbeiro.bind(e)}}},obsEventListener("DOMContentLoaded",(function(){o.init()})),document.addEventListener("DOMContentLoaded",(function(){!function(){if(contextualData.type&&("post"==contextualData.type||"grid"==contextualData.type)){var e=new BatchCommentsLinks;a(".commentSmallIcon").each((function(t,n){e.add(n)}));try{e.create()}catch(e){console.log("=>",e)}}}(),window.location.hash.match("#comment-post-")&&setTimeout((function(){var e=contextualData.post&&contextualData.post.credits,t=e&&e[0]?e[0].creditAuthorId:"";window.CommentsManager.openComments(contextualData.title,contextualData.id,t)}),0)}))},56753:function(e,t,n){"use strict";n.d(t,{Br:function(){return d},ed:function(){return p}});var o=n(76026);const i="https://cdn.jsdelivr.net/gh/recombee/[email protected]/dist/recombee-api-client.min.js",r="eu-west",a=/(^|\.)v2dev\.|(^|\.)staging\.|(^|\.)localhost$/.test(location.hostname),s=a?"observador-dev":"observador-prod",c=a?"wdimOZznm1al4FpDovoAUT4AjSlP56yKn2ljwoqkyRALKG2KEOHhy4MIqUN3wAQ7":"xU2h8ch7YfGScXu4zxNQfiWgmVxnpr5x2GgXvyyenooJQWclnMXKqJjoEu2FuW9x";function l(e){const t="10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)));return e?t:"anonymous-"+t}let u=null;function d(){const e=adamastor.getSessionProfile()?.sub;if(e)return e;try{let e=localStorage.getItem("recombeeUid");return e||(e=l(!1),localStorage.setItem("recombeeUid",e)),e}catch{return u=u??l(!1),u}}async function p(){return void 0!==window.obsRecombeeClient||("undefined"==typeof recombee&&await(0,o.Ik)(i,"recombee-js"),window.obsRecombeeClient=new recombee.ApiClient(s,c,{region:r})),window.obsRecombeeClient}},57506:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var o=n(76214);function i({message:e,type:t="error",className:n=""}){if(!e)return null;const i=["error-text","success"===t?"message":"general-error",n].filter(Boolean).join(" ");return o.html`<p class=${i} role="alert">${e}</p>`}},58804:function(e,t,n){"use strict";var o=n(79244),i=n(61722),r=n(41669);function a(e){const t=document.querySelector(".menu-toggle");"burger"===e?.detail?.click_location&&("open"===e?.detail?.click_action&&(t.dataset.clickAction="close",document.removeEventListener("ga4-click-event",a)),"close"===e?.detail?.click_action&&(t.dataset.clickAction="open",document.removeEventListener("ga4-click-event",a)))}document.querySelectorAll(".menu-toggle.menu").forEach((e=>{e.addEventListener("click",(e=>{document.querySelector("body").classList.toggle("menu-opened"),document.addEventListener("ga4-click-event",a)}))})),document.querySelector(".menu-toggle.highlight").addEventListener("click",(e=>{e.preventDefault(),document.body.classList.add("menu-opened"),document.querySelector(".menu-toggle.menu").dataset.clickAction="close"}));const s=document.querySelector("#menu");s?.addEventListener("click",(function(e){e.target.closest("#menu-container")||(document.body.classList.remove("menu-opened"),document.querySelector(".menu-toggle").dataset.clickAction="open",document.removeEventListener("ga4-click-event",a))})),r(".menu-toggle").keydown((function(e){27==e.keyCode&&r("body").removeClass("menu-opened")})),r(".obs_drop_group").keydown((function(e){27==e.keyCode&&r("li").removeClass("obs_drop_open")})),r(".tinkerbell").keydown((function(e){27==e.keyCode&&r("li").removeClass("obs_drop_open")})),document.body.addEventListener("keypress",(function(e){"Escape"===e.key&&document.document.body.classList.toggle("menu-opened")})),window.obs=window.obs||{},obs.main_header_is_collapsed=!1,obs.main_header_is_collapsed_always=!1,obs.main_header_is_transparent=!1,obs.main_header_was_transparent=!1,obs.piano_header_visible=!1,obs.checkMainHeaderLayout=function(){var e=r(window).scrollTop(),t=130;e<=t&&obs.piano_header_visible?(r("#piano-header").hide(),obs.piano_header_visible=!1):e>t&&!obs.piano_header_visible&&(r("#piano-header").show(),obs.piano_header_visible=!0),e>t&&obs.main_header_is_transparent?(obs.main_header_is_transparent=!1,obs.main_header_was_transparent=!0,r("body").removeClass("main-header-transparent")):!obs.main_header_is_transparent&&obs.main_header_was_transparent&&e<=t&&(obs.main_header_is_transparent=!0,r("body").addClass("main-header-transparent"))},r(window).scroll(obs.checkMainHeaderLayout),document.addEventListener("DOMContentLoaded",(function(){if((0,i.H0)())return;const e=r("body");obs.main_header_is_collapsed_always=e.hasClass("main-header-collapsed-always"),obs.main_header_is_collapsed=obs.main_header_is_collapsed_always||e.hasClass("main-header-collapsed"),obs.main_header_is_transparent=e.hasClass("main-header-transparent"),obs.main_header_was_transparent=obs.main_header_is_transparent,obs.checkMainHeaderLayout(),function(){const e=document.querySelector("#main-header .search.obs_drop_group"),t=e?.querySelector(".obs_drop_trigger"),n=e?.querySelector(".obs_drop_content");t&&n&&(t.addEventListener("click",(e=>e.preventDefault())),(0,o.Ay)(t,{content:n,interactive:!0,trigger:"click",placement:"bottom-start",appendTo:()=>document.body,theme:"observador search",offset:[0,6],maxWidth:"none",onShow(){"function"==typeof window.ga&&window.ga("send","event","Header","click","Pesquisa")},onMount(e){e.popper.querySelector('input[type="search"]')?.focus()}}))}(),r("#dark-mode-switch .obs_drop_group").obsdrop(),function(){const e=document.querySelector(".header-main"),t=document.querySelector(".header-main-spacer");if(!e||!t)return;let n=!1,o=e.offsetHeight,i=window.pageYOffset||document.documentElement.scrollTop;const r=function(){e.classList.remove("is-fixed","is-shown"),t.style.height="",document.body.classList.remove("header-collapsed"),n=!1},a=function(){const a=window.pageYOffset||document.documentElement.scrollTop;n?t.getBoundingClientRect().top+o>0&&r():(o=e.offsetHeight,e.getBoundingClientRect().bottom<=0&&function(){const i=window.getComputedStyle(e),r=e.offsetHeight+(parseFloat(i.marginTop)||0)+(parseFloat(i.marginBottom)||
3580);o=e.offsetHeight,t.style.height=r+"px",e.style.transition="none",e.classList.add("is-fixed"),e.offsetHeight,e.style.transition="",document.body.classList.add("header-collapsed"),n=!0}()),n&&(a<i?e.classList.add("is-shown"):e.classList.remove("is-shown")),i=a<=0?0:a};let s;window.addEventListener("scroll",a,{passive:!0}),window.addEventListener("resize",(function(){window.cancelAnimationFrame(s),s=window.requestAnimationFrame((function(){n&&r(),a()}))})),a()}()}));let c,l=document.getElementsByClassName("collapsible");for(c=0;c<l.length;c++)l[c].addEventListener("click",(function(){this.classList.toggle("active");let e=this.nextElementSibling;e.classList.toggle("active"),e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px"}))},59209:function(){var e,t,n,o;e=window,t=document,e.hj=e.hj||function(){(e.hj.q=e.hj.q||[]).push(arguments)},e._hjSettings={hjid:3887189,hjsv:6},n=t.getElementsByTagName("head")[0],(o=t.createElement("script")).async=1,o.src="https://static.hotjar.com/c/hotjar-"+e._hjSettings.hjid+".js?sv="+e._hjSettings.hjsv,n.appendChild(o),document.addEventListener("obsLoginCallback",(function(){var e=adamastor.getSessionProfile()?.id||null;window.hj("identify",e)}))},61416:function(e,t,n){"use strict";var o=n(1461);document.addEventListener("obsLoginCallback",(async()=>{try{if(await(0,o.eu)(),"post"!==contextualData.type)return;await(0,o.NM)()}catch(e){new URLSearchParams(location.search).has("debugRecom")&&console.log("[recombee-dv] erro no handler",e)}}))},61657:function(e,t,n){"use strict";n(37223)},61722:function(e,t,n){"use strict";n.d(t,{H0:function(){return r},hw:function(){return i},zl:function(){return a}});var o=n(41669);function i(){return new Promise((t=>{if(1===o("script").filter((function(){return"https://www.google.com/recaptcha/api.js"==o(this).attr("src")})).length)t(e());else{const n=document.createElement("script");n.id="grecap",n.src="https://www.google.com/recaptcha/api.js",n.onload=function(){t(e())},document.body.insertAdjacentElement("beforeend",n)}}));function e(){return new Promise((e=>{grecaptcha.ready((function(){let t=document.getElementById("google-recaptcha-nl");t&&t.remove(),t=document.createElement("div"),t.id="google-recaptcha-nl",document.body.appendChild(t);const n=grecaptcha.render(t,{sitekey:"6LcGdUwUAAAAAEdlBPCpW7tsy8WC9fM4U-y9Kudl",size:"invisible",badge:"bottomright",callback:t=>{e(t)}});grecaptcha.execute(n)}))}))}}function r(){return window.location.pathname.startsWith("/wp-admin/")}function a(e,t,n){for(let[o,i]of t.entries())if(e.classList.contains(i[n]))return o;return-1}},61997:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var o=n(76214);function i(){return o.html`<svg width="47" height="47" viewBox="0 0 47 47" fill="none" xmlns="http://www.w3.org/2000/svg">
359        <path d="M47 0H0V47H47V0Z" fill="white" />
360        <path
361            d="M24.1937 15.9231C25.5074 15.9231 27.1542 15.0076 28.1349 13.787C29.023 12.6809 29.6706 11.136 29.6706 9.59123C29.6706 9.38144 29.6521 9.17165 29.6151 9C28.1534 9.05722 26.3956 10.0108 25.3409 11.2886C24.5082 12.2613 23.7496 13.787 23.7496 15.3509C23.7496 15.5798 23.7866 15.8086 23.8051 15.8849C23.8976 15.904 24.0456 15.9231 24.1937 15.9231ZM19.5678 39C21.3627 39 22.1583 37.7603 24.3972 37.7603C26.6731 37.7603 27.1727 38.9619 29.1711 38.9619C31.1324 38.9619 32.4461 37.0928 33.6859 35.2619C35.0736 33.164 35.6472 31.1043 35.6842 31.0089C35.5547 30.9708 31.7985 29.3878 31.7985 24.9441C31.7985 21.0915 34.759 19.356 34.9256 19.2225C32.9642 16.3236 29.9852 16.2473 29.1711 16.2473C26.9692 16.2473 25.1743 17.6205 24.0456 17.6205C22.8244 17.6205 21.2146 16.3236 19.3088 16.3236C15.6822 16.3236 12 19.4132 12 25.2492C12 28.8729 13.3692 32.7063 15.053 35.1856C16.4963 37.2835 17.7545 39 19.5678 39Z"
362            fill="black"
363        />
364    </svg> `}},62514:function(e,t,n){"use strict";n(76214),n(45994),n(38458),n(83455),n(92863),n(57506),n(14246),n(8161)},64334:function(e,t,n){"use strict";n.d(t,{D:function(){return P}});var o=n(50172),i=n(76214),r=n(45994),a=n(79244);function s(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var o in t)if("__source"!==o&&e[o]!==t[o])return!0;return!1}r.Nf;function c(e,t){this.props=e,this.context=t}(c.prototype=new o.uA).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(e,t){return s(this.props,e)||s(this.state,t)};var l=o.fF.__b;o.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),l&&l(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var u=(o.v2,o.fF.__e);o.fF.__e=function(e,t,n,o){if(e.then)for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);u(e,t,n,o)};var d=o.fF.unmount;function p(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return p(e,t,n)}))),e}function f(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return f(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function m(){this.__u=0,this.o=null,this.__b=null}function g(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function h(){this.i=null,this.l=null}o.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),d&&d(e)},(m.prototype=new o.uA).__c=function(e,t){var n=t.__c,o=this;null==o.o&&(o.o=[]),o.o.push(n);var i=g(o.__v),r=!1,a=function(){r||(r=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=f(e,e.__c.__P,e.__c.__O)}var t;for(o.setState({__a:o.__b=null});t=o.o.pop();)t.forceUpdate()}};o.__u++||32&t.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(a,a)},m.prototype.componentWillUnmount=function(){this.o=[]},m.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;
364this.__v.__k[0]=p(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&(0,o.n)(o.FK,null,e.fallback);return r&&(r.__u&=-33),[(0,o.n)(o.FK,null,t.__a?null:e.children),r]};var v=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};(h.prototype=new o.uA).__a=function(e){var t=this,n=g(t.__v),o=t.l.get(e);return o[0]++,function(i){var r=function(){t.props.revealOrder?(o.push(i),v(t,e,o)):i()};n?n(r):r()}},h.prototype.render=function(e){this.i=null,this.l=new Map;var t=(0,o.v2)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},h.prototype.componentDidUpdate=h.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){v(e,n,t)}))};var b="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,_=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,y=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,w=/[A-Z0-9]/g,C="undefined"!=typeof document,x=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};o.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(o.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var S=o.fF.event;function k(){}function E(){return this.cancelBubble}function T(){return this.defaultPrevented}o.fF.event=function(e){return S&&(e=S(e)),e.persist=k,e.isPropagationStopped=E,e.isDefaultPrevented=T,e.nativeEvent=e};var L={enumerable:!1,configurable:!0,get:function(){return this.class}},I=o.fF.vnode;o.fF.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={},r=-1===n.indexOf("-");for(var a in t){var s=t[a];if(!("value"===a&&"defaultValue"in t&&null==s||C&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var c=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===s?s="":"translate"===c&&"no"===s?s=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?a="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||x(t.type)?"onfocus"===c?a="onfocusin":"onblur"===c?a="onfocusout":y.test(a)&&(a=c):c=a="oninput":r&&_.test(a)?a=a.replace(w,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===c&&i[a=c]&&(a="oninputCapture"),i[a]=s}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=(0,o.v2)(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=(0,o.v2)(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",L)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=b,I&&I(e)};var A=o.fF.__r;o.fF.__r=function(e){A&&A(e),e.__c};var O=o.fF.diffed;function P({container:e,onShowLogin:t}){const[n,s]=(0,r.useState)(adamastor.isLoggedIn()?adamastor.getSession():null),c=(0,r.useRef)(null),l=(0,r.hb)((async()=>{window.google?.accounts?.id&&window.google.accounts.id.disableAutoSelect(),navigator.credentials?.preventSilentAccess&&navigator.credentials.preventSilentAccess(),await adamastor.logout()}),[adamastor]);return(0,r.useEffect)((()=>{const t=()=>{e.className="logged-in header-login",s(adamastor.getSession())},n=()=>{e.className="login header-login",s(null)};return document.addEventListener("obsLogin",t),document.addEventListener("obsLogout",n),()=>{document.removeEventListener("obsLogin",t),document.removeEventListener("obsLogout",n)}}),[]),(0,r.Nf)((()=>{e.className=n?"logged-in header-login":"login header-login"}),[]),(0,r.useEffect)((()=>{const e=c.current;if(!n||!e)return;const t=document.createElement("div");t.className="header-account-menu",(0,o.render)(i.html`
365                <ul>
366                    <li>
367                        <a href="/a-minha-conta"><span class="label">A minha conta</span></a>
368                    </li>
369                    <li>
370                        <a href="/assinatura"><span class="label">Assinatura</span></a>
371                    </li>
372                    <li>
373                        <a href="/alertas/"><span class="label">Alertas</span></a>
374                    </li>
375                    <li>
376                        <a href="/comentarios/"><span class="label">Comentários</span></a>
377                    </li>
378                    <li>
379                        <a href="/artigos-guardados/"><span class="label">Guardados</span></a>
380                    </li>
381                    <li>
382                        <a href="/historico"><span class="label">Histórico de artigos</span></a>
383                    </li>
384                    <li>
385                        <a href="/newsletters/"><span class="label">Newsletters</span></a>
386                    </li>
387                    <li>
388                        <a href="/apoio-a-cliente"><span class="label">Apoio a Cliente</span></a>
389                    </li>
390                    <li>
391                        <a
392                            class="logout-button"
393                            role="button"
394                            onClick=${e=>{e.preventDefault(),l()}}
395                        >
396                            <span class="label">Logout</span>
397                        </a>
398                    </li>
399                </ul>
400            `,t);const r=(0,a.Ay)(e,{content:t,interactive:!0,trigger:"click",placement:"bottom-end",appendTo:()=>document.body,theme:"observador account",offset:[0,6],maxWidth:"none",hideOnClick:!0});return t.addEventListener("click",(e=>{e.target.closest("a")&&r.hide()})),()=>{r.destroy(),(0,o.render)(null,t)}}),[n,l,e]),n?i.html`
401        <${o.FK}>
402            <a
403                href="#"
404                class="vc obs_drop_trigger"
405                aria-label="A minha conta"
406                ref=${c}
407                onClick=${e=>e.preventDefault()}
408            >
409                <div class="author-photo" style=${{backgroundImage:`url("${n.picture}")`}} />
410            </a>
411        </${o.FK}>
412    `:window.isIframe?null:i.html`
413            <a
414                href="#login-popup"
415                class="icon vc open-popup-link"
416                title="Faça login"
417                data-ga-event="true"
418                data-ga-category="Header"
419                data-ga-action="click"
420                data-ga-label="Login"
421                onClick=${e=>{e.preventDefault(),t()}}
422            >
423                <svg>
424                    <use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-user" />
425                </svg>
426            </a>
427        `}o.fF.diffed=function(e){O&&O(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value)},r.hb,r.NT,r.MN,r.useEffect,r.Bi,r.Yn,r.Nf,r.Kr,r.WO,r.useRef,r.useState,o.FK,r.useState,r.Bi,r.WO,r.useEffect,r.Nf,r.useRef,r.Yn,r.Kr,r.hb,r.NT,r.MN,o.n,o.q6,o._3,o.FK,o.uA},64402:function(e,t,n){"use strict";n.d(t,{Z$:function(){return s},cL:function(){return r},cP:function(){return a},wI:function(){return i}}),n(70583);const o={chimpURL:window.globalSettings.obsIps.chimpProxy};async function i(e){const t=await fetch(o.chimpURL+"/"+e+"/subscribe",{method:"POST",headers:{"Content-type":"application/json",Authorization:"Bearer "+window.adamastor.getToken()}});if(201!==t.status)throw t.status;return!0}async function r(e){const t=await fetch(o.chimpURL+"/"+e+"/unsubscribe",{method:"POST",headers:{"Content-type":"application/json",Authorization:"Bearer "+window.adamastor.getToken()}});if(200!==t.status)throw t.status;return!0}async function a(e,t,n){const i={email:t,recaptcha_token:n},r=await fetch(o.chimpURL+"/anon/"+e+"/subscribe",{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify(i)});if(201!==r.status)throw r.status;return!0}async function s(e,t,n){const i={email:t,recaptcha_token:n},r=await fetch(o.chimpURL+"/anon/"+e+"/unsubscribe",{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify(i)});if(200!==r.status)throw r.status;return!0}},68845:function(e,t,n){"use strict";n.d(t,{i:function(){return p}});var o=n(76214),i=n(45994),r=n(79408),a=n(83455),s=n(8161),c=n(92863),l=n(57506),u=n(14246),d=n(14117);function p({onSuccess:e,onResendActivation:t}){const[n,p]=(0,i.useState)(!1),[f,m]=(0,i.useState)(null),[g,h]=(0,i.useState)(null),[v,b]=(0,i.useState)(!1),{loginWithCredentials:_,recoverPassword:y}=(0,r.a)(),{containerRef:w,execute:C}=(0,s.Q)(),{values:x,errors:S,touched:k,handleChange:E,handleBlur:T,validateAll:L,setServerErrors:I}=(0,a.X)({email:"",password:""},"login");return o.html`
428        <form onSubmit=${async t=>{if(t.preventDefault(),L()){p(!0),m(null),h(null),b(!1);try{const t=await C();await _({email:x.email,password:x.password,"g-recaptcha-response":t}),e&&e()}catch(e){const t=e,n=(0,d.p_)(t);Object.keys(n).length>0?I(n):m((0,d._Y)(t)),"not_verified"===t.code&&b(!0)}finally{p(!1)}}}} action="login">
429            <fieldset>
430                <${c.z} type="email" name="email" placeholder="Email" value=${x.email} error=${k.email?S.email:void 0} autocomplete="username" onChange=${e=>E("email",e)} onBlur=${()=>T("email")} disabled=${n} />
431
432                <${c.z} type="password" name="password" placeholder="Palavra-passe" value=${x.password} error=${k.password?S.password:void 0} autocomplete="current-password" onChange=${e=>E("password",e)} onBlur=${()=>T("password")} disabled=${n} showPasswordToggle=${!0} />
433
434                <div class="captcha-field">
435                    <div class="captcha-code" ref=${w}></div>
436                </div>
437            </fieldset>
438
439            ${f&&o.html`<${l.K} message=${f} />`}
440
441            <div class="buttons-wrapper">
442                ${g&&o.html`<${l.K} message=${g} type="success" />`} ${n?o.html`<${u.k} />`:o.html`<button class="obs-button obs-button-login" type="submit">Iniciar sessão</button>`}
443
444                <button class="obs-note" type="button" onClick=${async e=>{if(e.preventDefault(),x.email){p(!0),m(null),h(null);try{const e=await C();await y(x.email,e),h("Enviámos o link de recuperação da palavra-passe para o seu email. Caso não o receba, verifique também na pasta de Spam ou Lixo electrónico. Siga as instruções presentes n
444o email")}catch(e){m(e.message)}finally{p(!1)}}else m("Introduza o seu email para recuperar a palavra-passe.")}}>Esqueceu-se da palavra-passe?</button>
445
446                ${v&&o.html`<button
447                    class="obs-note"
448                    type="button"
449                    onClick=${e=>{e.preventDefault(),t&&t()}}
450                >
451                    Reenviar email de ativação de conta?
452                </button>`}
453            </div>
454        </form>
455    `}},70365:function(){"use strict";var e,t,n={isResourceTiming:!1,isElementTiming:!1,maxTime:3e4,reportOptions:{}},o=globalThis,i=o.console,r=o.navigator,a=o.performance,s=function(){return r.deviceMemory},c=function(){return r.hardwareConcurrency},l=function(){return a&&!!a.getEntriesByType&&!!a.now&&!!a.mark},u="4g",d=!1,p={value:0},f={value:{beacon:0,css:0,fetch:0,img:0,other:0,script:0,total:0,xmlhttprequest:0}},m={value:0},g={value:0},h={},v={isHidden:!1,didChange:!1},b=function(){v.isHidden=!1,document.hidden&&(v.isHidden=document.hidden,v.didChange=!0)},_=function(e,t){try{var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe({type:e,buffered:!0}),n}catch(e){i.warn("Perfume.js:",e)}return null},y=function(){return!!(c()&&c()<=4)||!!(s()&&s()<=4)},w=function(e,t){switch(e){case"slow-2g":case"2g":case"3g":return!0;default:return y()||t}},C=function(e){return parseFloat(e.toFixed(4))},x=function(e){return"number"!=typeof e?null:C(e/Math.pow(1024,2))},S=function(e,t,i,a,l){var p,f=function(){n.analyticsTracker&&(v.isHidden&&!["CLS","INP"].includes(e)||n.analyticsTracker({attribution:a,metricName:e,data:t,navigatorInformation:r?{deviceMemory:s()||0,hardwareConcurrency:c()||0,serviceWorkerStatus:"serviceWorker"in r?r.serviceWorker.controller?"controlled":"supported":"unsupported",isLowEndDevice:y(),isLowEndExperience:w(u,d)}:{},rating:i,navigationType:l}))};["CLS","INP"].includes(e)?f():(p=f,"requestIdleCallback"in o?o.requestIdleCallback(p,{timeout:3e3}):p())},k=function(e){e.forEach((function(e){if(!("self"!==e.name||e.startTime<p.value)){var t=e.duration-50;t>0&&(m.value+=t,g.value+=t)}}))};!function(e){e.instant="instant",e.quick="quick",e.moderate="moderate",e.slow="slow",e.unavoidable="unavoidable"}(e||(e={})),(t={})[e.instant]={vitalsThresholds:[100,200],maxOutlierThreshold:1e4},t[e.quick]={vitalsThresholds:[200,500],maxOutlierThreshold:1e4},t[e.moderate]={vitalsThresholds:[500,1e3],maxOutlierThreshold:1e4},t[e.slow]={vitalsThresholds:[1e3,2e3],maxOutlierThreshold:1e4},t[e.unavoidable]={vitalsThresholds:[2e3,5e3],maxOutlierThreshold:2e4};var E,T,L,I,A,O={RT:[100,200],TBT:[200,600],NTBT:[200,600]},P=function(e,t){return O[e]?t<=O[e][0]?"good":t<=O[e][1]?"needsImprovement":"poor":null},D=function(e,t,n){Object.keys(t).forEach((function(e){"number"==typeof t[e]&&(t[e]=C(t[e]))})),S(e,t,null,n||{})},$=function(e){var t=e.attribution,o=e.name,i=e.rating,r=e.value,a=e.navigationType;"FCP"===o&&(p.value=r),["FCP","LCP"].includes(o)&&!h[0]&&(h[0]=_("longtask",k)),"FID"===o&&setTimeout((function(){v.didChange||($({attribution:t,name:"TBT",rating:P("TBT",m.value),value:m.value,navigationType:a}),D("dataConsumption",f.value))}),1e4);var s=C(r);s<=n.maxTime&&s>=0&&S(o,s,i,t,a)},M=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},R=function(e){if("loading"===document.readyState)return"loading";var t=M();if(t){if(e<t.domInteractive)return"loading";if(0===t.domContentLoadedEventStart||e<t.domContentLoadedEventStart)return"dom-interactive";if(0===t.domComplete||e<t.domComplete)return"dom-content-loaded"}return"complete"},j=function(e){var t=e.nodeName;return 1===e.nodeType?t.toLowerCase():t.toUpperCase().replace(/^#/,"")},N=function(e,t){var n="";try{for(;e&&9!==e.nodeType;){var o=e,i=o.id?"#"+o.id:j(o)+(o.classList&&o.classList.value&&o.classList.value.trim()&&o.classList.value.trim().length?"."+o.classList.value.trim().replace(/\s+/g,"."):"");if(n.length+i.length>(t||100)-1)return n||i;if(n=n?i+">"+n:i,o.id)break;e=o.parentNode}}catch(e){}return n},H=-1,B=function(){return H},q=function(e){addEventListener("pageshow",(function(t){t.persisted&&(H=t.timeStamp,e(t))}),!0)},U=function(){var e=M();return e&&e.activationStart||0},F=function(e,t){var n=M(),o="navigate";return B()>=0?o="back-forward-cache":n&&(document.prerendering||U()>0?o="prerender":document.wasDiscarded?o="restore":n.type&&(o=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},V=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch(e){}},z=function(e,t,n,o){var i,r;return function(a){t.value>=0&&(a||o)&&((r=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=r,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},W=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))}
455,G=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},Z=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},J=-1,K=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Y=function(e){"hidden"===document.visibilityState&&J>-1&&(J="visibilitychange"===e.type?e.timeStamp:0,Q())},X=function(){addEventListener("visibilitychange",Y,!0),addEventListener("prerenderingchange",Y,!0)},Q=function(){removeEventListener("visibilitychange",Y,!0),removeEventListener("prerenderingchange",Y,!0)},ee=function(){return J<0&&(J=K(),X(),q((function(){setTimeout((function(){J=K(),X()}),0)}))),{get firstHiddenTime(){return J}}},te=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},ne=[1800,3e3],oe=function(e,t){t=t||{},te((function(){var n,o=ee(),i=F("FCP"),r=V("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(r.disconnect(),e.startTime<o.firstHiddenTime&&(i.value=Math.max(e.startTime-U(),0),i.entries.push(e),n(!0)))}))}));r&&(n=z(e,i,ne,t.reportAllChanges),q((function(o){i=F("FCP"),n=z(e,i,ne,t.reportAllChanges),W((function(){i.value=performance.now()-o.timeStamp,n(!0)}))})))}))},ie=[.1,.25],re={passive:!0,capture:!0},ae=new Date,se=function(e,t){E||(E=t,T=e,L=new Date,ue(removeEventListener),ce())},ce=function(){if(T>=0&&T<L-ae){var e={entryType:"first-input",name:E.type,target:E.target,cancelable:E.cancelable,startTime:E.timeStamp,processingStart:E.timeStamp+T};I.forEach((function(t){t(e)})),I=[]}},le=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){se(e,t),i()},o=function(){i()},i=function(){removeEventListener("pointerup",n,re),removeEventListener("pointercancel",o,re)};addEventListener("pointerup",n,re),addEventListener("pointercancel",o,re)}(t,e):se(t,e)}},ue=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,le,re)}))},de=[100,300],pe=0,fe=1/0,me=0,ge=function(e){e.forEach((function(e){e.interactionId&&(fe=Math.min(fe,e.interactionId),me=Math.max(me,e.interactionId),pe=me?(me-fe)/7+1:0)}))},he=function(){return A?pe:performance.interactionCount||0},ve=[200,500],be=0,_e=function(){return he()-be},ye=[],we={},Ce=function(e){var t=ye[ye.length-1],n=we[e.interactionId];if(n||ye.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var o={id:e.interactionId,latency:e.duration,entries:[e]};we[o.id]=o,ye.push(o)}ye.sort((function(e,t){return t.latency-e.latency})),ye.splice(10).forEach((function(e){delete we[e.id]}))}},xe=[2500,4e3],Se={},ke=[800,1800],Ee=function e(t){document.prerendering?te((function(){return e(t)}
455)):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},Te=function(e,t){t=t||{};var n=F("TTFB"),o=z(e,n,ke,t.reportAllChanges);Ee((function(){var i=M();if(i){var r=i.responseStart;if(r<=0||r>performance.now())return;n.value=Math.max(r-U(),0),n.entries=[i],o(!0),q((function(){n=F("TTFB",0),(o=z(e,n,ke,t.reportAllChanges))(!0)}))}}))},Le=function(e){e.forEach((function(e){e.identifier&&$({attribution:{identifier:e.identifier},name:"ET",rating:null,value:e.startTime})}))},Ie=function(e){e.forEach((function(e){if(n.isResourceTiming&&D("resourceTiming",e),e.decodedBodySize&&e.initiatorType){var t=e.decodedBodySize/1e3;f.value[e.initiatorType]+=t,f.value.total+=t}}))},Ae=function(){!function(e,t){Te((function(e){!function(e){if(e.entries.length){var t=e.entries[0],n=t.activationStart||0,o=Math.max(t.domainLookupStart-n,0),i=Math.max(t.connectStart-n,0),r=Math.max(t.requestStart-n,0);e.attribution={waitingTime:o,dnsTime:i-o,connectionTime:r-i,requestTime:e.value-r,navigationEntry:t}}else e.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}}(e),function(e){e.value>0&&$(e)}(e)}),t)}(0,n.reportOptions.ttfb),function(e,t){!function(e,t){t=t||{},oe(Z((function(){var n,o=F("CLS",0),i=0,r=[],a=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=r[0],n=r[r.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,r.push(e)):(i=e.value,r=[e])}})),i>o.value&&(o.value=i,o.entries=r,n())},s=V("layout-shift",a);s&&(n=z(e,o,ie,t.reportAllChanges),G((function(){a(s.takeRecords()),n(!0)})),q((function(){i=0,o=F("CLS",0),n=z(e,o,ie,t.reportAllChanges),W((function(){return n()}))})),setTimeout(n,0))})))}((function(e){!function(e){if(e.entries.length){var t=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(t&&t.sources&&t.sources.length){var n=(o=t.sources).find((function(e){return e.node&&1===e.node.nodeType}))||o[0];if(n)return void(e.attribution={largestShiftTarget:N(n.node),largestShiftTime:t.startTime,largestShiftValue:t.value,largestShiftSource:n,largestShiftEntry:t,loadState:R(t.startTime)})}}var o;e.attribution={}}(e),function(e){$(e)}(e)}),t)}(0,n.reportOptions.cls),function(e,t){oe((function(e){!function(e){if(e.entries.length){var t=M(),n=e.entries[e.entries.length-1];if(t){var o=t.activationStart||0,i=Math.max(0,t.responseStart-o);return void(e.attribution={timeToFirstByte:i,firstByteToFCP:e.value-i,loadState:R(e.entries[0].startTime),navigationEntry:t,fcpEntry:n})}}e.attribution={timeToFirstByte:0,firstByteToFCP:e.value,loadState:R(B())}}(e),function(e){$(e)}(e)}),t)}(0,n.reportOptions.fcp),function(e,t){!function(e,t){t=t||{},te((function(){var n,o=ee(),i=F("FID"),r=function(e){e.startTime<o.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=function(e){e.forEach(r)},s=V("first-input",a);n=z(e,i,de,t.reportAllChanges),s&&G(Z((function(){a(s.takeRecords()),s.disconnect()}))),s&&q((function(){var o;i=F("FID"),n=z(e,i,de,t.reportAllChanges),I=[],T=-1,E=null,ue(addEventListener),o=r,I.push(o),ce()}))}))}((function(e){!function(e){var t=e.entries[0];e.attribution={eventTarget:N(t.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:R(t.startTime)}}(e),function(e){$(e)}(e)}),t)}(0,n.reportOptions.fid),function(e,t){!function(e,t){t=t||{},te((function(){var n,o=ee(),i=F("LCP"),r=function(e){var t=e[e.length-1];t&&t.startTime<o.firstHiddenTime&&(i.value=Math.max(t.startTime-U(),0),i.entries=[t],n())},a=V("largest-contentful-paint",r);if(a){n=z(e,i,xe,t.reportAllChanges);var s=Z((function(){Se[i.id]||(r(a.takeRecords()),a.disconnect(),Se[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(s,0)}),!0)})),G(s),q((function(o){i=F("LCP"),n=z(e,i,xe,t.reportAllChanges),W((function(){i.value=performance.now()-o.timeStamp,Se[i.id]=!0,n(!0)}))}))}}))}((function(e){!function(e){if(e.entries.length){var t=M();if(t){var n=t.activationStart||0,o=e.entries[e.entries.length-1],i=o.url&&performance.getEntriesByType("resource").filter((function(e){return e.name===o.url}
455))[0],r=Math.max(0,t.responseStart-n),a=Math.max(r,i?(i.requestStart||i.startTime)-n:0),s=Math.max(a,i?i.responseEnd-n:0),c=Math.max(s,o?o.startTime-n:0),l={element:N(o.element),timeToFirstByte:r,resourceLoadDelay:a-r,resourceLoadTime:s-a,elementRenderDelay:c-s,navigationEntry:t,lcpEntry:o};return o.url&&(l.url=o.url),i&&(l.lcpResourceEntry=i),void(e.attribution=l)}}e.attribution={timeToFirstByte:0,resourceLoadDelay:0,resourceLoadTime:0,elementRenderDelay:e.value}}(e),function(e){$(e)}(e)}),t)}(0,n.reportOptions.lcp),function(e,t){!function(e,t){t=t||{},te((function(){var n;"interactionCount"in performance||A||(A=V("event",ge,{type:"event",buffered:!0,durationThreshold:0}));var o,i=F("INP"),r=function(e){e.forEach((function(e){e.interactionId&&Ce(e),"first-input"===e.entryType&&!ye.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Ce(e)}));var t,n=(t=Math.min(ye.length-1,Math.floor(_e()/50)),ye[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,o())},a=V("event",r,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});o=z(e,i,ve,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),G((function(){r(a.takeRecords()),i.value<0&&_e()>0&&(i.value=0,i.entries=[]),o(!0)})),q((function(){ye=[],be=he(),i=F("INP"),o=z(e,i,ve,t.reportAllChanges)})))}))}((function(t){!function(e){if(e.entries.length){var t=e.entries.sort((function(e,t){return t.duration-e.duration||t.processingEnd-t.processingStart-(e.processingEnd-e.processingStart)}))[0],n=e.entries.find((function(e){return e.target}));e.attribution={eventTarget:N(n&&n.target),eventType:t.name,eventTime:t.startTime,eventEntry:t,loadState:R(t.startTime)}}else e.attribution={}}(t),e(t)}),t)}((function(e){return $(e)}),n.reportOptions.inp),n.isResourceTiming&&_("resource",Ie),n.isElementTiming&&_("element",Le)},Oe=function(e){var t="usageDetails"in e?e.usageDetails:{};D("storageEstimate",{quota:x(e.quota),usage:x(e.usage),caches:x(t.caches),indexedDB:x(t.indexedDB),serviceWorker:x(t.serviceWorkerRegistrations)})},Pe={finalMarkToStepsMap:{},startMarkToStepsMap:{},active:{},navigationSteps:{}};obsEventListener("DOMContentLoaded",(function(){!function(e){if(void 0===e&&(e={}),n.analyticsTracker=e.analyticsTracker,n.isResourceTiming=!!e.resourceTiming,n.isElementTiming=!!e.elementTiming,n.maxTime=e.maxMeasureTime||n.maxTime,n.reportOptions=e.reportOptions||n.reportOptions,n.steps=e.steps,n.onMarkStep=e.onMarkStep,l()){"PerformanceObserver"in o&&Ae(),void 0!==document.hidden&&document.addEventListener("visibilitychange",b);var t=function(){if(!l())return{};var e=a.getEntriesByType("navigation")[0];if(!e)return{};var t=e.responseStart,n=e.responseEnd;return{fetchTime:n-e.fetchStart,workerTime:e.workerStart>0?n-e.workerStart:0,totalTime:n-e.requestStart,downloadTime:n-t,timeToFirstByte:t-e.requestStart,headerSize:e.transferSize-e.encodedBodySize||0,dnsLookupTime:e.domainLookupEnd-e.domainLookupStart,redirectTime:e.redirectEnd-e.redirectStart}}();D("navigationTiming",t),t.redirectTime&&$({attribution:{},name:"RT",rating:P("RT",t.redirectTime),value:t.redirectTime}),D("networkInformation",function(){if("connection"in r){var e=r.connection;return"object"!=typeof e?{}:(u=e.effectiveType,d=!!e.saveData,{downlink:e.downlink,effectiveType:e.effectiveType,rtt:e.rtt,saveData:!!e.saveData})}return{}}()),r&&r.storage&&"function"==typeof r.storage.estimate&&r.storage.estimate().then(Oe),n.steps&&n.steps&&(Pe.startMarkToStepsMap={},Pe.finalMarkToStepsMap={},Pe.active={},Pe.navigationSteps={},Object.entries(n.steps).forEach((function(e){var t,n,o=e[0],i=e[1].marks,r=i[0],a=i[1],s=null!==(n=Pe.startMarkToStepsMap[r])&&void 0!==n?n:{};if(s[o]=!0,Pe.startMarkToStepsMap[r]=s,Pe.finalMarkToStepsMap[a]){var c=Pe.finalMarkToStepsMap[a][r]||[];c.push(o),Pe.finalMarkToStepsMap[a][r]=c}else Pe.finalMarkToStepsMap[a]=((t={})[r]=[o],t)})))}}({analyticsTracker:function(e){var t=e.data;switch(e.metricName){case"navigationTiming":ga("send","timing","Perfomance Metrics","Time to First Byte (ms)",t.timeToFirstByte);break;case"fcp":ga("send","timing","Perfomance Metrics","First Contentful Paint (ms)",t);break;case"fid":ga("send","timing","Perfomance Metrics","First Input Delay (ms)",t);break;case"lcp":ga("send","timing","Perfomance Metrics","Largest Contentful Paint (ms)",t);break;case"cls":ga("send","timing","Perfomance Metrics","Cumulative Layout Shift (score)",t);break;case"tbt":ga("send","timing","Perfomance Metrics","Total Blocking Time (ms)",t)}}})}))},70583:function(e,t,n){"use strict";n.r(t),n.d(t,{clearErrorByNewsletterId:function(){return u},getMailchimpId:function(){return h},handleEachSubscriptionClick:function(){return f},handleSubscribeOneNewsletter:function(){return g},handleUnsubscribeOneNewsLetter:function(){return m},logger:function(){return s},messages:function(){return c},mirrorSubscription:function(){return p},paintButtons:function(){return v},setFeedbackByNewsletterId:function(){return d},settings:function(){return a},subscriptionsController:function(){return l}});var o=n(64402),i=n(61722),r=n(41476);const a={userDetails:"user-details"},s={_logs:[],push:function(e){this._logs.push(e)},show:function(){console.log(this._logs)}},c={confirmed:"A newsletter foi subscrita com sucesso",unauthorizedGet:'
455<span class="error-sign">!</span>Ocorreu um erro ao sincronizar o estado de subscrição das NewsLetters, credenciais inválidas',unauthorizedPost:"Ocorreu um erro ao {{action}} a newsletter, credenciais inválidas",paymentRequired:'É necessário ter uma susbscrição ativa para aceder à newsletter, veja os nossos <a href="/premium">planos</a>',badRequest:"Pedido inválido",tooEarly:"Ainda não foi confirmado o pedido anterior",emailNotValid:"O email que inseriu não é válido",syncError:'<span class="error-sign">!</span>Ocorreu um erro {{service}} ao sincronizar o estado de subscrição das NewsLetters',alreadySubscribed:'O email já se encontra subscrito, se não estiver a receber a newsletter entre em contacto com o <a href="/contactos">Apoio a Cliente</a>',nonRegisteredEmail:'<span class="error-sign">!</span> O email <span class="error-user-mail">{{email}}</span> não está registado em nenhuma newsletter.',cleaned:'<span class="error-sign">!</span> Detetámos que o email <span class="error-user-mail">{{email}}</span> tem a subscrição cancelada ou inexistente. Para gerir as suas newsletters, visite <a href="{{formUrl}}"><strong>esta página</strong></a>. (Só tem de efetuar esta operação uma vez.)',updateError:"Ocorreu um erro no {{service}} e não foi possível {{action}} esta newsletter. Por favor, volte a tentar mais tarde.",complianceState:'Detetámos que o email <span class="error-user-mail">{{email}}</span> tem a subscrição cancelada. Para voltar a gerir as suas newsletters, visite <object><a href="{{formUrl}}" target="_blank"><strong>esta página</strong></a></object>. (Só tem de efetuar esta operação uma vez.)',suddenError:'Ocorreu um erro imprevisto, por favor tente mais tarde, ou entre em contacto com o <a href="/contactos">Apoio a Cliente</a>'};class l{static getInstance(){return this.instance||(this.instance=new l),this.instance}constructor(){this.loadFromLocalStorage(),window.addEventListener("storage",(e=>{e.storageArea==localStorage&&e.key===a.userDetails&&this.loadFromLocalStorage()}))}get email(){return this._email}get subscriptions(){return this._subscriptions}get lastSync(){return this._lastSync}set email(e){if(!(0,r.D)(e))throw 600;e!==this._email&&(this._subscriptions=[],this._lastSync=null),this._email=e,this.syncLocalStorage()}set lastSync(e){this._lastSync=e,this.syncLocalStorage()}set subscriptions(e){this._subscriptions=e,this.syncLocalStorage()}loadFromLocalStorage(){const e=JSON.parse(localStorage.getItem(a.userDetails));e?(this._email=e.email,this._subscriptions=e.subscriptions,this.lastSync=e.lastSync||null):(this._email="",this._subscriptions=[],this.lastSync=null)}reset(){this._email="",this._subscriptions=[],localStorage.removeItem(a.userDetails)}subscribe(e){this._subscriptions=this.subscriptions.filter((t=>t.list_id!==e.list_id)),e.status="subscribed",this._subscriptions.push(e),this.syncLocalStorage()}unsubscribe(e){this._subscriptions=this.subscriptions.filter((t=>t.list_id!==e.list_id)),e.status="unsubscribed",this._subscriptions.push(e),this.syncLocalStorage()}syncLocalStorage(){localStorage.setItem(a.userDetails,JSON.stringify({email:this.email,subscriptions:this.subscriptions,lastSync:this._lastSync}))}}function u(e){Array.prototype.slice.call(document.querySelectorAll("[data-error-newsletter-id='"+e+"']")).forEach((function(e){e.style.display="none"}))}function d(e,t,n){const o=l.getInstance();document.querySelectorAll("[data-error-newsletter-id='"+e+"']").forEach((e=>{e.style.display="inline-block";const i=e.querySelector(".error-text");let r=n?"cancelar":"subscrever";switch(t){case 200:i.innerHTML=c.confirmed;break;case 204:i.innerHTML=c.alreadySubscribed;break;case 400:i.innerHTML=c.badRequest;break;case 401:i.innerHTML=c.unauthorizedPost.replace("{{action}}",r);break;case 402:i.innerHTML=c.paymentRequired;break;case 422:let t=e.closest(".newsletter-subscribe").getAttribute("data-newsletter-form");t=t+"&MERGE0="+o.email,i.innerHTML=c.complianceState.replace("{{email}}",o.email).replace("{{formUrl}}",t);break;case 425:i.innerHTML=c.tooEarly;break;case 600:i.innerHTML=c.emailNotValid;break;case 502:i.innerHTML=c.updateError.replace("{{service}}","proxy").replace("{{action}}",r);break;case 599:i.innerHTML=c.updateError.replace("{{service}}","mc proxy").replace("{{action}}",r);break;default:i.innerHTML=c.suddenError}}))}function p(e){document.querySelectorAll('[data-newsletter-id="'+e.list_id+'"]').forEach((t=>{const n="1"===t.getAttribute("data-newsletter-premium"),o=adamastor.getSubscriptionSettings().exclusiveNewsletters;if(!t)return;let i="",r="";switch(e.status){case"subscribed":i="Subscrita",r="unsubscribe";break;case"archived":case"indeterminate":case"cleaned":case"pending":case"transactional":case"unsubscribed":case"not_found":i="Subscrever",r="subscribe"}t.querySelector(".button-newsletter:not(.stateless)").innerHTML=i,"unsubscribe"===r?t.querySelector(".button-newsletter:not(.stateless)").classList.add("subscribed"):t.querySelector(".button-newsletter:not(.stateless)").classList.remove("subscribed"),t.setAttribute("data-newsletter-action",r);const a=l.getInstance().subscriptions.find((t=>t.list_id===e.list_id))?.status;"subscribe"===r&&n&&!o&&("archived"===a||"unsubscribed"===a)&&!h()&&t.querySelector(".button-newsletter").setAttribute("data-piano-trigger","newsletter");
455const s=t.getAttribute("data-newsletter-hide-subscribe");s&&(document.querySelector(s).style.display="unsubscribe"===r?"none":"")}))}async function f(e){const t=e.target.closest(".newsletter-subscribe"),n=t.getAttribute("data-newsletter-name");ga("send","event","newsletter_subscription","click",n);const o=t.getAttribute("data-newsletter-id");if(o&&!t.querySelector(".button-newsletter").getAttribute("data-piano-trigger")){if(t.querySelector(".global-spinner").style.display="inline-block",t.querySelector(".single-subscribe").style.display="none",u(o),"unsubscribe"===t.getAttribute("data-newsletter-action")){const e={list_id:t.getAttribute("data-newsletter-id"),status:"unsubscribed"};try{await m(e.list_id),l.getInstance().unsubscribe(e),p(e)}catch(t){s.push(t),d(e.list_id,t,!0)}}else if("subscribe"===t.getAttribute("data-newsletter-action")){const e={list_id:t.getAttribute("data-newsletter-id"),status:"unsubscribed"},n=t.getAttribute("data-newsletter-id");try{await g(n,e,t)}catch(e){d(n,e,!1),s.push("Error while subscribing newsletter - "+e)}}v(t)}}async function m(e){const t=l.getInstance();try{if(h()){const n=await(0,i.hw)();return await(0,o.Z$)(e,t.email,n)}if(adamastor.isLoggedIn())return await(0,o.cL)(e)}catch(e){throw e}}async function g(e,t,n){const r=l.getInstance();if(!h()&&!adamastor.isLoggedIn())try{r.email=n.closest(".newsletter-subscribe").querySelector(".input-subscribe").value}catch(e){throw e}if(h()||!adamastor.isLoggedIn()){const n=await(0,i.hw)();try{await o.cP(e,r.email,n),r.subscribe(t),h()||d(e,200,!0),p(t)}catch(e){throw 204!==e||h()||(r.subscribe(t),p(t)),e}}else try{await o.wI(e),r.subscribe(t),p(t)}catch(e){throw 204!==e||h()||(r.subscribe(t),p(t)),e}}function h(){return new URLSearchParams(location.search).get("unique_email_id")}function v(e){const t=e.getAttribute("data-newsletter-id");document.querySelectorAll("[data-newsletter-id='"+t+"']").forEach((e=>{h()||adamastor.isLoggedIn()||(e.querySelector(".input-subscribe").style.display="none",e.querySelector(".button-newsletter.stateless").style.display="none","unsubscribe"===e.getAttribute("data-newsletter-action")&&(e.querySelector(".button-newsletter:not(.stateless)").disabled=!0)),e.querySelector(".button-newsletter:not(.stateless)").style.display="flex",e.querySelector(".global-spinner").style.display="none",e.querySelector(".single-subscribe").style.display="flex"}))}},71055:function(){!function(){var e={};this.parseTemplate=function t(n,o){var i=/\W/.test(n)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+n.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):e[n]=e[n]||t(document.getElementById(n).innerHTML);return o?i(o):i}}()},71067:function(){document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".obs-audio-radio-open").forEach((e=>{e.addEventListener("click",(e=>(e.preventDefault(),window.open("/radio/player","popup","width=500,height=700"),!1)))}))}))},73487:function(e,t,n){"use strict";n(7452);var o,i,r,a=n(41669),s=n(41669);o=window.location.protocol+"//"+window.location.host+"/wp-content/themes/observador-child/assets/build/html/",i={},r={loadHTML:function(e,t,n){if(null==a&&(a=s),i.hasOwnProperty(e))n(i[e]);else{var r=new XMLHttpRequest;r.open("GET",o+e+"?ver"+contextualData.assetsVersion),r.onload=function(){a(t).append(r.responseText),i[e]=r.responseText,n(r.responseText)},r.send()}}},window.loader=r},73523:function(e,t,n){"use strict";n(68845)},76026:function(e,t,n){"use strict";async function o(e,t){return new Promise(((n,o)=>{const i=document.createElement("script");i.src=e,i.id=t,i.defer=!1,i.onload=()=>n(!0),i.onerror=()=>o("Can´t load "+t),document.querySelector("script").insertAdjacentElement("afterend",i)}))}function i(e){return new Promise(((t,n)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=e,o.onload=()=>t(!0),o.onerror=()=>n("Can´t load link "+e),document.querySelector("head").appendChild(o)}))}async function r(e,t){const n=await fetch(e),o=await n.text(),i=(new DOMParser).parseFromString(o,"text/html").querySelector("template");i&&document.body.appendChild(i)}async function a(e){const t=`${location.protocol}//${location.host}/wp-content/themes/observador-child/assets/build/`;await Promise.all([r(`${t}html/web-components/${e}.html?version=${contextualData.assetsVersion}`),i(`${t}css/web-components/${e}.min.css?version=${contextualData.assetsVersion}`),o(`${t}js/web-components/${e}/${e}
455.min.js?version=${contextualData.assetsVersion}`,e)])}n.d(t,{Ik:function(){return o},Ix:function(){return i},Qf:function(){return a}})},76214:function(e,t,n){"use strict";n.d(t,{html:function(){return i}});var o=n(50172),i=n(29002).A.bind(o.h)},78556:function(e,t,n){var o,i,r,a=n(41669);i=[n(41669)],void 0===(r="function"==typeof(o=function(e){e.timeago=function(t){return t instanceof Date?i(t):i("string"==typeof t?e.timeago.parse(t):"number"==typeof t?new Date(t):e.timeago.datetime(t))};var t=e.timeago;e.extend(e.timeago,{settings:{max_minutes:149,refreshMillis:6e4,allowPast:!0,allowFuture:!1,localeTitle:!1,cutoff:0,strings:{prefixAgo:"Há",prefixFromNow:null,suffixAgo:"",suffixFromNow:"a partir de agora",inPast:"brevemente",seconds:"menos de um minuto",minute:"um minuto",minutes:"%d minutos",hour:"uma hora",hours:"%d horas",day:"um dia",days:"%d dias",month:"cerca de um mês",months:"%d meses",year:"cerca de um ano",years:"%d anos",wordSeparator:" ",numbers:[]}},inWords:function(t){var n=this.settings.strings,o=n.prefixAgo,i=n.suffixAgo;if(this.settings.allowFuture&&t<0&&(o=n.prefixFromNow,i=n.suffixFromNow),!this.settings.allowPast&&t>=0)return this.settings.strings.inPast;var r=Math.abs(t)/1e3,a=r/60,s=a/60,c=s/24,l=c/365;function u(o,i){var r=e.isFunction(o)?o(i,t):o,a=n.numbers&&n.numbers[i]||i;return r.replace(/%d/i,a)}var d="";if(a<2880){d=r<45&&u(n.seconds,Math.round(r))||r<90&&u(n.minute,1)||a<45&&u(n.minutes,Math.round(a))||a<90&&u(n.hour,1)||s<24&&u(n.hours,Math.round(s))||s<42&&u(n.day,1)||c<30&&u(n.days,Math.round(c))||c<45&&u(n.month,1)||c<365&&u(n.months,Math.round(c/30))||l<1.5&&u(n.year,1)||u(n.years,Math.round(l));var p=n.wordSeparator||"";return void 0===n.wordSeparator&&(p=" "),e.trim([o,d,i].join(p))}return!0!==this.settings.liveblog?"":a<=2880?this.settings.strings.yesterday:void 0},parse:function(t){var n=e.trim(t);return n=(n=(n=(n=(n=n.replace(/\.\d+/,"")).replace(/-/,"/").replace(/-/,"/")).replace(/T/," ").replace(/Z/," UTC")).replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2")).replace(/([\+\-]\d\d)$/," $100"),new Date(n)},datetime:function(n){var o=t.isTime(n)?e(n).attr("datetime"):e(n).attr("title");return t.parse(o)},isTime:function(t){return"time"===e(t).get(0).tagName.toLowerCase()}});var n={init:function(n){var i=t.settings;void 0!==n&&n.liveblog&&(i.strings.prefixAgo="",i.strings.seconds="menos de um 1m",i.strings.minute="1m",i.strings.minutes="%d m",i.strings.hour="Há 1h",i.strings.hours="Há %dh",i.strings.minute="Há 1m",i.strings.minutes="Há %dm",i.strings.seconds="Agora",i.strings.today="Hoje",i.strings.day="Há 1d",i.strings.yesterday="Ontem",i.max_minutes=720,i.today_minutes=1440,i.yesterday_minutes=2880,i.liveblog=!0);var r=e.proxy(o,this);r(),i.refreshMillis>0&&(this._timeagoInterval=setInterval(r,i.refreshMillis))},update:function(n){var i=t.parse(n);e(this).data("timeago",{datetime:i}),t.settings.localeTitle&&e(this).attr("title",i.toLocaleString()),o.apply(this)},updateFromDOM:function(){e(this).data("timeago",{datetime:t.parse(t.isTime(this)?e(this).attr("datetime"):e(this).attr("title"))}),o.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};function o(){var n,o=((n=e(n=this)).data("timeago")||(n.data("timeago",{datetime:t.datetime(n)}),e.trim(n.text())),n.data("timeago")),a=t.settings;if(!isNaN(o.datetime)&&(0==a.cutoff||r(o.datetime)<a.cutoff)){var s=i(o.datetime);""!=s?e(this).text(s).addClass("timeago_active"):e(this).removeClass("timeago_active")}return this}function i(e){return t.inWords(r(e))}function r(e){return(new Date).getTime()-e.getTime()}e.fn.timeago=function(e,t){var o=e?n[e]:n.init;return this.each((function(){o.call(this,t)})),this}})?o.apply(t,i):o)||(e.exports=r),document.addEventListener("DOMContentLoaded",(function(){a("time.timeago").timeago()}))},79244:function(e,t,n){"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){return e instanceof o(e).Element||e instanceof Element}function r(e){return e instanceof o(e).HTMLElement||e instanceof HTMLElement}function a(e){return"undefined"!=typeof ShadowRoot&&(e instanceof o(e).ShadowRoot||e instanceof ShadowRoot)}n.d(t,{Ay:function(){return Ye}});var s=Math.max,c=Math.min,l=Math.round;function u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(u())}function p(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),s=1,c=1;t&&r(e)&&(s=e.offsetWidth>0&&l(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&l(a.height)/e.offsetHeight||1);
vendor: 8,062 bytes, line 455
455var u=(i(e)?o(e):window).visualViewport,p=!d()&&n,f=(a.left+(p&&u?u.offsetLeft:0))/s,m=(a.top+(p&&u?u.offsetTop:0))/c,g=a.width/s,h=a.height/c;return{width:g,height:h,top:m,right:f+g,bottom:m+h,left:f,x:f,y:m}}function f(e){var t=o(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function m(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function h(e){return p(g(e)).left+f(e).scrollLeft}function v(e){return o(e).getComputedStyle(e)}function b(e){var t=v(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function _(e,t,n){void 0===n&&(n=!1);var i,a,s=r(t),c=r(t)&&function(e){var t=e.getBoundingClientRect(),n=l(t.width)/e.offsetWidth||1,o=l(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),u=g(t),d=p(e,c,n),v={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(s||!s&&!n)&&(("body"!==m(t)||b(u))&&(v=(i=t)!==o(i)&&r(i)?{scrollLeft:(a=i).scrollLeft,scrollTop:a.scrollTop}:f(i)),r(t)?((_=p(t,!0)).x+=t.clientLeft,_.y+=t.clientTop):u&&(_.x=h(u))),{x:d.left+v.scrollLeft-_.x,y:d.top+v.scrollTop-_.y,width:d.width,height:d.height}}function y(e){var t=p(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function w(e){return"html"===m(e)?e:e.assignedSlot||e.parentNode||(a(e)?e.host:null)||g(e)}function C(e){return["html","body","#document"].indexOf(m(e))>=0?e.ownerDocument.body:r(e)&&b(e)?e:C(w(e))}function x(e,t){var n;void 0===t&&(t=[]);var i=C(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),a=o(i),s=r?[a].concat(a.visualViewport||[],b(i)?i:[]):i,c=t.concat(s);return r?c:c.concat(x(w(s)))}function S(e){return["table","td","th"].indexOf(m(e))>=0}function k(e){return r(e)&&"fixed"!==v(e).position?e.offsetParent:null}function E(e){for(var t=o(e),n=k(e);n&&S(n)&&"static"===v(n).position;)n=k(n);return n&&("html"===m(n)||"body"===m(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(u());if(/Trident/i.test(u())&&r(e)&&"fixed"===v(e).position)return null;var n=w(e);for(a(n)&&(n=n.host);r(n)&&["html","body"].indexOf(m(n))<0;){var o=v(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}var T="top",L="bottom",I="right",A="left",O="auto",P=[T,L,I,A],D="start",$="end",M="viewport",R="popper",j=P.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+$])}),[]),N=[].concat(P,[O]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+$])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(e){var t=new Map,n=new Set,o=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&i(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),o}var q={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function F(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,o=void 0===n?[]:n,r=t.defaultOptions,a=void 0===r?q:r;return function(e,t,n){void 0===n&&(n=a);var r,s,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,d={state:c,setOptions:function(n){var r="function"==typeof n?n(c.options):n;p(),c.options=Object.assign({},a,c.options,r),c.scrollParents={reference:i(e)?x(e):e.contextElement?x(e.contextElement):[],popper:x(t)};var s,u,f=function(e){var t=B(e);return H.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(o,c.options.modifiers),u=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return c.orderedModifiers=f.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var r=i({state:c,name:t,instance:d,options:o});l.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!u){var e=c.elements,t=e.reference,n=e.popper;if(U(t,n)){c.rects={reference:_(t,E(n),"fixed"===c.options.strategy),popper:y(n)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<c.orderedModifiers.length;o++)if(!0!==c.reset){var i=c.orderedModifiers[o],r=i.fn,a=i.options,s=void 0===a?{}:a,l=i.name;"function"==typeof r&&(c=r({state:c,options:s,name:l,instance:d})||c)}else c.reset=!1,o=-1}}},update:(r=function(){return new Promise((function(e){d.forceUpdate(),e(c)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(r())}))}))),s}),destroy:function(){p(),u=!0}};if(!U(e,t))return d;function p(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var V={passive:!0};function z(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,n=e.reference,o=e.element,i=e.placement,r=i?z(i):null,a=i?W(i):null,s=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2;switch(r){case T:t={x:s,y:n.y-o.height};break;case L:t={x:s,y:n.y+n.height};break;case I:t={x:n.x+n.width,y:c};break;case A:t={x:n.x-o.width,y:c};break;default:t={x:n.x,y:n.y}}var l=r?G(r):null;if(null!=l){var u="y"===l?"height":"width";switch(a){case D:t[l]=t[l]-(n[u]/2-o[u]/2);break;case $:t[l]=t[l]+(n[u]/2-o[u]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n=e.popper,i=e.popperRect,r=e.placement,a=e.variation,s=e.offsets,c=e.position,u=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,f=e.isFixed,m=s.x,h=void 0===m?0:m,b=s.y,_=void 0===b?0:b,y="function"==typeof p?p({x:h,y:_}):{x:h,y:_};h=y.x,_=y.y;var w=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),x=A,S=T,k=window;if(d){var O=E(n),P="clientHeight",D="clientWidth";O===o(n)&&"static"!==v(O=g(n)).position&&"absolute"===c&&(P="scrollHeight",D="scrollWidth"),(r===T||(r===A||r===I)&&a===$)&&(S=L,_-=(f&&O===k&&k.visualViewport?k.visualViewport.height:O[P])-i.height,_*=u?1:-1),r!==A&&(r!==T&&r!==L||a!==$)||(x=I,h-=(f&&O===k&&k.visualViewport?k.visualViewport.width:O[D])-i.width,h*=u?1:-1)}var M,R=Object.assign({position:c},d&&J),j=!0===p?function(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:l(n*i)/i||0,y:l(o*i)/i||0}}({x:h,y:_},o(n)):{x:h,y:_};return h=j.x,_=j.y,u?Object.assign({},R,((M={})[S]=C?"0":"",M[x]=w?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+_+"px)":"translate3d("+h+"px, "+_+"px, 0)",M)):Object.assign({},R,((t={})[S]=C?_+"px":"",t[x]=w?h+"px":"",t.transform="",t))}var Y={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},i=t.elements[e];r(i)&&m(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});
vendor: 4,144 bytes, line 455
455r(o)&&m(o)&&(Object.assign(o.style,a),Object.keys(i).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]},X={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return X[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&a(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function oe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t,n){return t===M?oe(function(e,t){var n=o(e),i=g(e),r=n.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,l=0;if(r){a=r.width,s=r.height;var u=d();(u||!u&&"fixed"===t)&&(c=r.offsetLeft,l=r.offsetTop)}return{width:a,height:s,x:c+h(e),y:l}}(e,n)):i(t)?function(e,t){var n=p(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):oe(function(e){var t,n=g(e),o=f(e),i=null==(t=e.ownerDocument)?void 0:t.body,r=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-o.scrollLeft+h(e),l=-o.scrollTop;return"rtl"===v(i||n).direction&&(c+=s(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:c,y:l}}(g(e)))}function re(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ae(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function se(e,t){void 0===t&&(t={});var n=t,o=n.placement,a=void 0===o?e.placement:o,l=n.strategy,u=void 0===l?e.strategy:l,d=n.boundary,f=void 0===d?"clippingParents":d,h=n.rootBoundary,b=void 0===h?M:h,_=n.elementContext,y=void 0===_?R:_,C=n.altBoundary,S=void 0!==C&&C,k=n.padding,A=void 0===k?0:k,O=re("number"!=typeof A?A:ae(A,P)),D=y===R?"reference":R,$=e.rects.popper,j=e.elements[S?D:y],N=function(e,t,n,o){var a="clippingParents"===t?function(e){var t=x(w(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&r(e)?E(e):e;return i(n)?t.filter((function(e){return i(e)&&ne(e,n)&&"body"!==m(e)})):[]}(e):[].concat(t),l=[].concat(a,[n]),u=l[0],d=l.reduce((function(t,n){var i=ie(e,n,o);return t.top=s(i.top,t.top),t.right=c(i.right,t.right),t.bottom=c(i.bottom,t.bottom),t.left=s(i.left,t.left),t}),ie(e,u,o));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}(i(j)?j:j.contextElement||g(e.elements.popper),f,b,u),H=p(e.elements.reference),B=Z({reference:H,element:$,strategy:"absolute",placement:a}),q=oe(Object.assign({},$,B)),U=y===R?q:H,F={top:N.top-U.top+O.top,bottom:U.bottom-N.bottom+O.bottom,left:N.left-U.left+O.left,right:U.right-N.right+O.right},V=e.modifiersData.offset;if(y===R&&V){var z=V[a];Object.keys(F).forEach((function(e){var t=[I,L].indexOf(e)>=0?1:-1,n=[T,L].indexOf(e)>=0?"y":"x";F[e]+=z[n]*t}))}return F}function ce(e,t,n){return s(e,c(t,n))}function le(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ue(e){return[T,I,L,A].some((function(t){return e[t]>=0}))}var de=F({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,r=i.scroll,a=void 0===r||r,s=i.resize,c=void 0===s||s,l=o(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,V)})),c&&l.addEventListener("resize",n.update,V),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,V)})),c&&l.removeEventListener("resize",n.update,V)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuA
vendor: 4,276 bytes, line 455
455cceleration,i=void 0===o||o,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s,l={placement:z(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Y,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.offset,r=void 0===i?[0,0]:i,a=N.reduce((function(e,n){return e[n]=function(e,t,n){var o=z(e),i=[A,T].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[A,I].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,r),e}),{}),s=a[t.placement],c=s.x,l=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[o]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=void 0===f||f,g=n.allowedAutoPlacements,h=t.options.placement,v=z(h),b=c||(v!==h&&m?function(e){if(z(e)===O)return[];var t=Q(e);return[te(e),t,te(t)]}(h):[Q(h)]),_=[h].concat(b).reduce((function(e,n){return e.concat(z(n)===O?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?N:c,u=W(o),d=u?s?j:j.filter((function(e){return W(e)===u})):P,p=d.filter((function(e){return l.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=se(e,{placement:n,boundary:i,rootBoundary:r,padding:a})[z(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,w=t.rects.popper,C=new Map,x=!0,S=_[0],k=0;k<_.length;k++){var E=_[k],$=z(E),M=W(E)===D,R=[T,L].indexOf($)>=0,H=R?"width":"height",B=se(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),q=R?M?I:A:M?L:T;y[H]>w[H]&&(q=Q(q));var U=Q(q),F=[];if(r&&F.push(B[$]<=0),s&&F.push(B[q]<=0,B[U]<=0),F.every((function(e){return e}))){S=E,x=!1;break}C.set(E,F)}if(x)for(var V=function(e){var t=_.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},G=m?3:1;G>0&&"break"!==V(G);G--);t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,r=void 0===i||i,a=n.altAxis,l=void 0!==a&&a,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.padding,m=n.tether,g=void 0===m||m,h=n.tetherOffset,v=void 0===h?0:h,b=se(t,{boundary:u,rootBoundary:d,padding:f,altBoundary:p}),_=z(t.placement),w=W(t.placement),C=!w,x=G(_),S="x"===x?"y":"x",k=t.modifiersData.popperOffsets,O=t.rects.reference,P=t.rects.popper,$="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,M="number"==typeof $?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(k){if(r){var N,H="y"===x?T:A,B="y"===x?L:I,q="y"===x?"height":"width",U=k[x],F=U+b[H],V=U-b[B],Z=g?-P[q]/2:0,J=w===D?O[q]:P[q],K=w===D?-P[q]:-O[q],Y=t.elements.arrow,X=g&&Y?y(Y):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[H],te=Q[B],ne=ce(0,O[q],X[q]),oe=C?O[q]/2-Z-ne-ee-M.mainAxis:J-ne-ee-M.mainAxis,ie=C?-O[q]/2+Z+ne+te+M.mainAxis:K+ne+te+M.mainAxis,re=t.elements.arrow&&E(t.elements.arrow),ae=re?"
455y"===x?re.clientTop||0:re.clientLeft||0:0,le=null!=(N=null==R?void 0:R[x])?N:0,ue=U+ie-le,de=ce(g?c(F,U+oe-le-ae):F,U,g?s(V,ue):V);k[x]=de,j[x]=de-U}if(l){var pe,fe="x"===x?T:A,me="x"===x?L:I,ge=k[S],he="y"===S?"height":"width",ve=ge+b[fe],be=ge-b[me],_e=-1!==[T,A].indexOf(_),ye=null!=(pe=null==R?void 0:R[S])?pe:0,we=_e?ve:ge-O[he]-P[he]-ye+M.altAxis,Ce=_e?ge+O[he]+P[he]-ye-M.altAxis:be,xe=g&&_e?function(e,t,n){var o=ce(e,t,n);return o>n?n:o}(we,ge,Ce):ce(g?we:ve,ge,g?Ce:be);k[S]=xe,j[S]=xe-ge}t.modifiersData[o]=j}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,i=e.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=z(n.placement),c=G(s),l=[A,I].indexOf(s)>=0?"height":"width";if(r&&a){var u=function(e,t){return re("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ae(e,P))}(i.padding,n),d=y(r),p="y"===c?T:A,f="y"===c?L:I,m=n.rects.reference[l]+n.rects.reference[c]-a[c]-n.rects.popper[l],g=a[c]-n.rects.reference[c],h=E(r),v=h?"y"===c?h.clientHeight||0:h.clientWidth||0:0,b=m/2-g/2,_=u[p],w=v-d[l]-u[f],C=v/2-d[l]/2+b,x=ce(_,C,w),S=c;n.modifiersData[o]=((t={})[S]=x,t.centerOffset=x-C,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&ne(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,a=se(t,{elementContext:"reference"}),s=se(t,{altBoundary:!0}),c=le(a,o),l=le(s,i,r),u=ue(c),d=ue(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),pe="tippy-content",fe="tippy-arrow",me="tippy-svg-arrow",ge={passive:!0,capture:!0},he=function(){return document.body};function ve(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function be(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function _e(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ye(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function we(e){return[].concat(e)}function Ce(e,t){-1===e.indexOf(t)&&e.push(t)}function xe(e){return[].slice.call(e)}function Se(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function ke(){return document.createElement("div")}function Ee(e){return["Element","Fragment"].some((function(t){return be(e,t)}))}function Te(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Le(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ie(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function Ae(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var Oe={isTouch:!1},Pe=0;function De(){Oe.isTouch||(Oe.isTouch=!0,window.performance&&document.addEventListener("mousemove",$e))}function $e(){var e=performance.now();e-Pe<20&&(Oe.isTouch=!1,document.removeEventListener("mousemove",$e)),Pe=e}function Me(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Re=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),je=Object.assign({appendTo:he,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ne=Object.keys(je);function He(e){var t=(e.plugins||[]).reduce((function(t,n){var o,i=n.name,r=n.defaultValue;return i&&(t[i]=void 0!==e[i]?e[i]:null!=(o=je[i])?o:r),t}),{});return Object.assign({},e,t)}function Be(e,t){var n=Object.assign({},t,{content:_e(t.content,[e])},t.ignoreAttributes?{}
vendor: 9,145 bytes, line 455
455:function(e,t){return(t?Object.keys(He(Object.assign({},je,{plugins:t}))):Ne).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},je.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function qe(e,t){e.innerHTML=t}function Ue(e){var t=ke();return!0===e?t.className=fe:(t.className=me,Ee(e)?t.appendChild(e):qe(t,e)),t}function Fe(e,t){Ee(t.content)?(qe(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?qe(e,t.content):e.textContent=t.content)}function Ve(e){var t=e.firstElementChild,n=xe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(pe)})),arrow:n.find((function(e){return e.classList.contains(fe)||e.classList.contains(me)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function ze(e){var t=ke(),n=ke();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=ke();function i(n,o){var i=Ve(t),r=i.box,a=i.content,s=i.arrow;o.theme?r.setAttribute("data-theme",o.theme):r.removeAttribute("data-theme"),"string"==typeof o.animation?r.setAttribute("data-animation",o.animation):r.removeAttribute("data-animation"),o.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?r.setAttribute("role",o.role):r.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||Fe(a,e.props),o.arrow?s?n.arrow!==o.arrow&&(r.removeChild(s),r.appendChild(Ue(o.arrow))):r.appendChild(Ue(o.arrow)):s&&r.removeChild(s)}return o.className=pe,o.setAttribute("data-state","hidden"),Fe(o,e.props),t.appendChild(n),n.appendChild(o),i(e.props,e.props),{popper:t,onUpdate:i}}ze.$$tippy=!0;var We=1,Ge=[],Ze=[];function Je(e,t){var n,o,i,r,a,s,c,l,u=Be(e,Object.assign({},je,He(Se(t)))),d=!1,p=!1,f=!1,m=!1,g=[],h=ye(G,u.interactiveDebounce),v=We++,b=(l=u.plugins).filter((function(e,t){return l.indexOf(e)===t})),_={id:v,reference:e,popper:ke(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(!_.state.isDestroyed){D("onBeforeUpdate",[_,t]),z();var n=_.props,o=Be(e,Object.assign({},n,Se(t),{ignoreAttributes:!0}));_.props=o,V(),n.interactiveDebounce!==o.interactiveDebounce&&(R(),h=ye(G,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?we(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded"),M(),P(),C&&C(n,o),_.popperInstance&&(Y(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),D("onAfterUpdate",[_,t])}},setContent:function(e){_.setProps({content:e})},show:function(){var e=_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,o=Oe.isTouch&&!_.props.touch,i=ve(_.props.duration,0,je.duration);if(!(e||t||n||o||L().hasAttribute("disabled")||(D("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,T()&&(w.style.visibility="visible"),P(),B(),_.state.isMounted||(w.style.transition="none"),T()){var r=A();Te([r.box,r.content],0)}var a,c,l;s=function(){var e;if(_.state.isVisible&&!m){if(m=!0,w.offsetHeight,w.style.transition=_.props.moveTransition,T()&&_.props.animation){var t=A(),n=t.box,o=t.content;Te([n,o],i),Le([n,o],"visible")}$(),M(),Ce(Ze,_),null==(e=_.popperInstance)||e.forceUpdate(),D("onMount",[_]),_.props.animation&&T()&&function(e){U(e,(function(){_.state.isShown=!0,D("onShown",[_])}))}(i)}},c=_.props.appendTo,l=L(),(a=_.props.interactive&&c===he||"parent"===c?l.parentNode:_e(c,[l])).contains(w)||a.appendChild(w),_.state.isMounted=!0,Y()}},hide:function(){var e=!_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,o=ve(_.props.duration,1,je.duration);if(!(e||t||n)&&(D("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,m=!1,d=!1,T()&&(w.style.visibility="hidden"),R(),q(),P(!0),T()){var i=A(),r=i.box,a=i.content;_.props.animation&&(Te([r,a],o),Le([r,a],"hidden"))}$(),M(),_.props.animation?T()&&function(e,t){U(e,(function(){!_.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(o,_.unmount):_.unmount()}},hideWithInteractivity:function(e){I().addEventListener("mousemove",h),Ce(Ge,h),h(e)},enable:function(){_.state.isEnabled=!0},disable:function(){_.hide(),_.state.isEnabled=!1},unmount:function(){_.state.isVisible&&_.hide(),_.state.isMounted&&(X(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w),Ze=Ze.filter((function(e){return e!==_})),_.state.isMounted=!1,D("onHidden",[_]))},destroy:function(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),z(),delete e._tippy,_.state.isDestroyed=!0,D("onDestroy",[_]))}};if(!u.render)return _;var y=u.render(_),w=y.popper,C=y.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+_.id,_.popper=w,e._tippy=_,w._tippy=_;var x=b.map((function(e){return e.fn(_)})),S=e.hasAttribute("aria-expanded");return V(),M(),P(),D("onCreate",[_]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&I().addEventListener("mousemove",h)})),_;function k(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return"hold"===k()[0]}function T(){var e;return!(null==(e=_.props.render)||!e.$$tippy)}function L(){return c||e}function I(){var e,t,n=L().parentNode;return n?null!=(t=we(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function A(){return Ve(w)}function O(e){return _.state.isMounted&&!_.state.isVisible||Oe.isTouch||r&&"focus"===r.type?0:ve(_.props.delay,e?0:1,je.delay)}function P(e){void 0===e&&(e=!1),w.style.pointerEvents=_.props.interactive&&!e?"":"none",w.style.zIndex=""+_.props.zIndex}function D(e,t,n){var o;void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(o=_.props)[e].apply(o,t)}function $(){var t=_.props.aria;if(t.content){var n="aria-"+t.content,o=w.id;we(_.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(_.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var i=t&&t.replace(o,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function M(){!S&&_.props.aria.expanded&&we(_.props.triggerTarget||e).forEach((function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===L()?"true":"false"):e.removeAttribute("aria-expanded")}))}function R(){I().removeEventListener("mousemove",h),Ge=Ge.filter((function(e){return e!==h}))}function j(t){if(!Oe.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!_.props.interactive||!Ae(w,n)){if(we(_.props.triggerTarget||e).some((function(e){return Ae(e,n)}))){if(Oe.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),p=!0,setTimeout((function(){p=!1})),_.state.isMounted||q())}}}function N(){f=!0}function H(){f=!1}function B(){var e=I();e.addEventListener("mousedown",j,!0),e.addEventListener("touchend",j,ge),e.addEventListener("touchstart",H,ge),e.addEventListener("touchmove",N,ge)}function q(){var e=I();e.removeEventListener("mousedown",j,!0),e.removeEventListener("touchend",j,ge),e.removeEventListener("touchstart",H,ge),e.removeEventListener("touchmove",N,ge)}function U(e,t){var n=A().box;function o(e){e.target===n&&(Ie(n,"remove",o),t())}if(0===e)return t();Ie(n,"remove",a),Ie(n,"add",o),a=o}function F(t,n,o){void 0===o&&(o=!1),we(_.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),g.push({node:e,eventType:t,handler:n,options:o})}))}function V(){var e;E()&&(F("touchstart",W,{passive:!0}),F("touchend",Z,{passive:!0})),(e=_.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(F(e,W),e){case"mouseenter":F("mouseleave",Z);break;case"focus":F(Re?"focusout":"blur",J);break;case"focusin":F("focusout",J)}}))}function z(){g.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,i=e.options;t.removeEventListener(n,o,i)})),g=[]}function W(e){var t,n=!1;if(_.state.isEnabled&&!K(e)&&!p){var o="focus"===(null==(t=r)?void 0:t.type);r=e,c=e.currentTarget,M(),!_.state.isVisible&&be(e,"MouseEvent")&&Ge.forEach((function(t){return t(e)})),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||d)&&!1!==_.props.hideOnClick&&_.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!o&&te(e)}}function G(e){var t=e.target,n=L().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var o=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}
455)).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,r=e.props.interactiveBorder,a=i.placement.split("-")[0],s=i.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,l="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,d="left"===a?s.right.x:0,p=t.top-o+c>r,f=o-t.bottom-l>r,m=t.left-n+u>r,g=n-t.right-d>r;return p||f||m||g}))})(o,e)&&(R(),te(e))}}function Z(e){K(e)||_.props.trigger.indexOf("click")>=0&&d||(_.props.interactive?_.hideWithInteractivity(e):te(e))}function J(e){_.props.trigger.indexOf("focusin")<0&&e.target!==L()||_.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function K(e){return!!Oe.isTouch&&E()!==e.type.indexOf("touch")>=0}function Y(){X();var t=_.props,n=t.popperOptions,o=t.placement,i=t.offset,r=t.getReferenceClientRect,a=t.moveTransition,c=T()?Ve(w).arrow:null,l=r?{getBoundingClientRect:r,contextElement:r.contextElement||L()}:e,u=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];T()&&c&&u.push({name:"arrow",options:{element:c,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),_.popperInstance=de(l,w,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function X(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function Q(){return xe(w.querySelectorAll("[data-tippy-root]"))}function ee(e){_.clearDelayTimeouts(),e&&D("onTrigger",[_,e]),B();var t=O(!0),o=k(),i=o[0],r=o[1];Oe.isTouch&&"hold"===i&&r&&(t=r),t?n=setTimeout((function(){_.show()}),t):_.show()}function te(e){if(_.clearDelayTimeouts(),D("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=O(!1);t?o=setTimeout((function(){_.state.isVisible&&_.hide()}),t):i=requestAnimationFrame((function(){_.hide()}))}}else q()}}function Ke(e,t){void 0===t&&(t={});var n=je.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",De,ge),window.addEventListener("blur",Me);var o,i=Object.assign({},t,{plugins:n}),r=(o=e,Ee(o)?[o]:function(e){return be(e,"NodeList")}(o)?xe(o):Array.isArray(o)?o:xe(document.querySelectorAll(o))).reduce((function(e,t){var n=t&&Je(t,i);return n&&e.push(n),e}),[]);return Ee(e)?r[0]:r}Ke.defaultProps=je,Ke.setDefaultProps=function(e){Object.keys(e).forEach((function(t){je[t]=e[t]}))},Ke.currentInput=Oe,Object.assign({},Y,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Ke.setDefaultProps({render:ze});var Ye=Ke},79408:function(e,t,n){"use strict";n.d(t,{a:function(){return u}});var o=n(45994),i=n(18752),r=n(14117),a=n(24039),s=n(38458),c=n(54586);function l(e,t,n){(0,c.VR)({event:c._j.login_flow,click_action:e,click_label:t,click_location:String(window.contextualData?.id||location.pathname),login_type:n})}function u(){const[e,t]=(0,o.useState)(null),[n,c]=(0,o.useState)(!0),[u,d]=(0,o.useState)(null),p=(0,s.c)();(0,o.useEffect)((()=>{const e=adamastor.getSession();function n(e){e.detail&&t(e.detail)}return e&&t(e),c(!1),document.addEventListener(i.Ux,n),()=>{document.removeEventListener(i.Ux,n)}}),[]);const f=(0,o.hb)((async e=>{c(!0),d(null);try{const n=await p.login(e),o=await adamastor.barqueiroLogin(n.token);return t(o),(0,i.c)("obsLogin",o),l("login","sucesso","user_pass"),o}catch(t){const n=t;throw d(n.message),(0,r.N7)(n,{action:"login",email:e.email}),l("login","insucesso","user_pass"),n}finally{c(!1)}}),[]),m=(0,o.hb)((async e=>{c(!0),d(null);
455try{const t={...e,terms_conditions:{date:Date.now(),where:a.kf}},n=await p.register(t);return l("registo",n?.token?"sucesso":"insucesso","user_pass"),n}catch(t){const n=t;throw d(n.message),(0,r.N7)(n,{action:"register",email:e.email}),l("registo","insucesso","user_pass"),n}finally{c(!1)}}),[]),g=(0,o.hb)((async e=>{c(!0),d(null);try{const n=await adamastor.googleLogin(e);return t(n),(0,i.c)("obsLogin",n),n}catch(e){const t=e;throw d(t.message),(0,r.N7)(t,{action:"google_login"}),t}finally{c(!1)}}),[]),h=(0,o.hb)((async e=>{c(!0),d(null);try{const n=await adamastor.facebookLogin(e);return t(n),(0,i.c)("obsLogin",n),n}catch(e){const t=e;throw d(t.message),(0,r.N7)(t,{action:"facebook_login"}),t}finally{c(!1)}}),[]),v=(0,o.hb)((async e=>{c(!0),d(null);try{const n=await adamastor.appleLogin(e);return t(n),(0,i.c)("obsLogin",n),n}catch(e){const t=e;throw d(t.message),(0,r.N7)(t,{action:"apple_login"}),t}finally{c(!1)}}),[]),b=(0,o.hb)((async()=>{c(!0);try{await adamastor.logout(),t(null),(0,i.c)("obsLogout"),window.google?.accounts?.id&&window.google.accounts.id.disableAutoSelect(),window.location.reload()}catch(e){console.error("Logout failed:",e)}finally{c(!1)}}),[]),_=(0,o.hb)((async(e,t)=>{c(!0),d(null);try{await p.recover({email:e,"g-recaptcha-response":t})}catch(e){const t=e;throw d(t.message),t}finally{c(!1)}}),[]),y=(0,o.hb)((async e=>{c(!0),d(null);try{await p.resend({email:e})}catch(e){const t=e;throw d(t.message),t}finally{c(!1)}}),[]);return{session:e,isLoading:n,error:u,isLoggedIn:!!e,isSubscriber:e?.subscription?.isPremium??!1,loginWithCredentials:f,register:m,loginWithGoogle:g,loginWithFacebook:h,loginWithApple:v,logout:b,recoverPassword:_,resendActivation:y,adamastor:adamastor,barqueiro:p}}},81152:function(e,t,n){"use strict";var o=n(79244);o.Ay.setDefaultProps({animation:!1,duration:0,theme:"observador"}),window.tippy=o.Ay},81726:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var o=n(76214),i=n(39558);const r={apple:{icon:n(61997).Y,standard:i.k,title:"Entrar com Apple",className:"apple-signin"}};function a({type:e,provider:t,onClick:n,isLoading:i=!1,showText:a=!1,title:s,containerRef:c}){const l=r[t],u=s||l.title,d="icon"===e?l.icon:l.standard;return o.html` <a href="#" title=${u} class="provider ${l.className}" onClick=${e=>{e.preventDefault(),!i&&n&&n()}} disabled=${i} ref=${c} aria-label=${u}> ${i?o.html` <span class="spinner"></span> `:d()} ${a&&o.html`<span>${u}</span>`} </a> `}},83455:function(e,t,n){"use strict";n.d(t,{X:function(){return r}});var o=n(45994),i=n(33169);function r(e,t,n){const[r,a]=(0,o.useState)(e),[s,c]=(0,o.useState)({}),[l,u]=(0,o.useState)({}),d=(0,o.hb)(((e,t)=>{a((n=>({...n,[e]:t}))),s[e]&&c((t=>{const n={...t};return delete n[e],n}))}),[s]),p=(0,o.hb)((e=>{u((t=>({...t,[e]:!0}))),f(e,r[e])}),[r]),f=(0,o.hb)(((e,o)=>{let a;if("login"!==t||"email"!==e&&"password"!==e){if("register"===t){const t=(0,i.IX)(r);a=t[e]}else if("recover"===t&&"email"===e){const e=(0,i.DT)(o);a=e.error}else if(n){const t=n(r);a=t[e]}}else{const t=(0,i.eX)(r);a=t[e]}a&&c((t=>({...t,[e]:a})))}),[t,r,n]),m=(0,o.hb)((()=>{let e={};if("login"===t)e=(0,i.eX)(r);else if("register"===t)e=(0,i.IX)(r);else if("recover"===t){const t=(0,i.DT)(r.email);t.isValid||(e.email=t.error)}else n&&(e=n(r));c(e);const o=Object.keys(r).reduce(((e,t)=>(e[t]=!0,e)),{});return u(o),0===Object.keys(e).length}),[t,r,n]),g=(0,o.hb)((()=>{a(e),c({}),u({})}),[e]),h=(0,o.hb)((e=>{c(e)}),[]),v=0===Object.keys(s).length,b=JSON.stringify(r)!==JSON.stringify(e);return{values:r,errors:s,touched:l,isValid:v,isDirty:b,handleChange:d,handleBlur:p,validateField:f,validateAll:m,reset:g,setServerErrors:h,setValues:a}}},85775:function(e,t,n){var o,i,r,a=n(41669);i=[n(41669)],o=function(e){var t,n,o,i,r,s,c="Close",l="BeforeClose",u="MarkupParse",d="Open",p="mfp",f="."+p,m="mfp-ready",g="mfp-removing",h=function(){},v=!!a,b=e(window),_=function(e,n){t.ev.on(p+e+f,n)},y=function(t,n,o,i){var r=document.createElement("div");return r.className="mfp-"+t,o&&(r.innerHTML=o),i?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},w=function(n,o){t.ev.triggerHandler(p+n,o),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(o)?o:[o]))},C=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},x=function(){e.magnificPopup.instance||((t=new h).init(),e.magnificPopup.instance=t)};h.prototype={constructor:h,init:function(){var n=navigator.appVersion;t.isIE7=-1!==n.indexOf("MSIE 7."),t.isIE8=-1!==n.indexOf("MSIE 8."),t.isLowIE=t.isIE7||t.isIE8,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(n){var i;
455if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(i=0;i<s.length;i++)if((a=s[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=o,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=y("bg").on("click"+f,(function(){t.close()})),t.wrap=y("wrap").attr("tabindex",-1).on("click"+f,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=y("container",t.wrap)),t.contentContainer=y("content"),t.st.preloader&&(t.preloader=y("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(i=0;i<c.length;i++){var l=c[i];l=l.charAt(0).toUpperCase()+l.slice(1),t["init"+l].call(t)}w("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(_(u,(function(e,t,n,o){n.close_replaceWith=C(o.type)})),r+=" mfp-close-btn-in"):t.wrap.append(C())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+f,(function(e){27===e.keyCode&&t.close()})),b.on("resize"+f,(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var p=t.wH=b.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(p)){var h=t._getScrollbarSize();h&&(g.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body").css("overflow","hidden"):g.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),w("BuildControls"),e("body").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),o.on("focusin"+f,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(p),w(d),n}t.updateItemHTML()},close:function(){t.isOpen&&(w(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){w(c);var n=g+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body").css("overflow",""):i.overflow="",e("body").css(i)}o.off("keyup.mfp focusin"+f),t.ev.off(f),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),t.st.showCloseBtn&&(!t.st.closeBtnInside||!0===t.currTemplate[t.currItem.type])&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,w("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*n;t.wrap.css("height",o),t.wH=o}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),w("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var o=n.type;if(w("BeforeChange",[t.currItem?t.currItem.type:"",o]),t.currItem=n,!t.currTemplate[o]){var r=!!t.st[o]&&t.st[o].markup;w("FirstMarkupParse",r),t.currTemplate[o]=!r||e(r)}i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+o.charAt(0).toUpperCase()+o.slice(1)](n,t.currTemplate[o]);t.appendContent(a,o),n.preloaded=!0,w("Change",n),i=n.type,t.container.prepend(t.contentContainer),w("AfterChange")},appendContent:function(e,n){(t.content=e)?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(C()):t.content=e:t.content="",w("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var o,i=t.items[n];if((i=i.tagName?{el:e(i)}:(o=i.type,{data:i,src:i.src})).el){for(var r=t.types,a=0;a<r.length;a++)if(i.el.hasClass("mfp-"+r[a])){o=r[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=o||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,w("ElementParse",i),t.items[n]},addGroup:function(e,n){var o=function(o){o.mfpEl=this,t._openClick(o,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,o)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,o):(n.items=e).off(i).on(i,o))},_openClick:function(n,o,i){if((void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick)||2!==n.which&&!n.ctrlKey&&!n.metaKey){var r=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(b.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=o.find(i.delegate)),t.open(i)}},updateStatus:function(e,o){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),!o&&"loading"===e&&(o=t.st.tLoading);var i={status:e,text:o};w("UpdateStatus",i),e=i.status,o=i.text,t.preloader.html(o),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var o=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(o&&i)return!0;
455if(!t.content||e(n).hasClass("mfp-close")||e(n).parents(".mfp-close").length||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(o)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,o){var i;o.data&&(n=e.extend(o.data,n)),w(u,[t,n,o]),e.each(n,(function(e,n){if(void 0===n||!1===n)return!0;if(1<(i=e.split("_")).length){var o=t.find(f+"-"+i[0]);if(0<o.length){var r=i[1];"replaceWith"===r?o[0]!==n[0]&&o.replaceWith(n):"img"===r?o.is("img")?o.attr("src",n):o.replaceWith('<img src="'+n+'" class="'+o.attr("class")+'" />'):o.attr(i[1],n)}}else t.find(f+"-"+e).html(n)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(t,n){return x(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},e.fn.magnificPopup=function(n){x();var o=e(this);if("string"==typeof n)if("open"===n){var i,r=v?o.data("magnificPopup"):o[0].magnificPopup,a=parseInt(arguments[1],10)||0;i=r.items?r.items[a]:(i=o,r.delegate&&(i=i.find(r.delegate)),i.eq(a)),t._openClick({mfpEl:i},o,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),v?o.data("magnificPopup",n):o[0].magnificPopup=n,t.addGroup(o,n);return o};var S,k,E,T="inline",L=function(){E&&(k.after(E.addClass(S)).detach(),E=null)};e.magnificPopup.registerModule(T,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(T),_(c+"."+T,(function(){L()}))},getInline:function(n,o){if(L(),n.src){var i=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(k||(S=i.hiddenClass,k=y(S),S="mfp-"+S),E=r.after(k).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),r=e("<div>");return n.inlineElement=r}return t.updateStatus("ready"),t._parseMarkup(o,{},n),o}}});var I,A,O,P="ajax",D=function(){I&&e(document.body).removeClass(I)},$=function(){D(),t.req&&t.req.abort()};e.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(P),I=t.st.ajax.cursor,_(c+"."+P,$),_("BeforeChange."+P,$)},getAjax:function(n){I&&e(document.body).addClass(I),t.updateStatus("loading");var o=e.extend({url:n.src,success:function(o,i,r){var a={data:o,xhr:r};w("ParseAjax",a),t.appendContent(e(a.data),P),n.finished=!0,D(),t._setFocus(),setTimeout((function(){t.wrap.addClass(m)}),16),t.updateStatus("ready"),w("AjaxContentAdded")},error:function(){D(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}}),e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,o=".image";t.types.push("image"),_(d+o,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),_(c+o,(function(){n.cursor&&e(document.body).removeClass(n.cursor),b.off("resize"+f)})),_("Resize"+o,t.resizeImage),t.isLowIE&&_("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,A&&clearInterval(A),e.isCheckingImgSize=!1,w("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,o=e.img[0],i=function(r){A&&clearInterval(A),A=setInterval((function(){0<o.naturalWi
455dth?t._onImageHasSize(e):(200<n&&clearInterval(A),3===++n?i(10):40===n?i(50):100===n&&i(500))}),r)};i(1)},getImage:function(n,o){var i=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,w("ImageLoadComplete")):++i<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,c=o.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",n.el&&n.el.find("img").length&&(l.alt=n.el.find("img").attr("alt")),n.img=e(l).on("load.mfploader",r).on("error.mfploader",a),l.src=n.src,c.is("img")&&(n.img=n.img.clone()),0<(l=n.img[0]).naturalWidth?n.hasSize=!0:l.width||(n.hasSize=!1)}return t._parseMarkup(o,{title:function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var o=t.st.image.titleSrc;if(o){if(e.isFunction(o))return o.call(t,n);if(n.el)return n.el.attr(o)||""}return""}(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(A&&clearInterval(A),n.loadError?(o.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(o.removeClass("mfp-loading"),t.updateStatus("ready"))):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,o.addClass("mfp-loading"),t.findImageSize(n))),o}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,o=".zoom";if(n.enabled&&t.supportsTransition){var i,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=o,t.css(i),t},u=function(){t.content.css("visibility","visible")};_("BuildControls"+o,(function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(r=s(e)).css(t._getOffset()),t.wrap.append(r),i=setTimeout((function(){r.css(t._getOffset(!0)),i=setTimeout((function(){u(),setTimeout((function(){r.remove(),e=r=null,w("ZoomAnimationEnded")}),16)}),a)}),16)}})),_(l+o,(function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),_(c+o,(function(){t._allowZoom()&&(u(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var o,i=(o=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(o.css("padding-top"),10),a=parseInt(o.css("padding-bottom"),10);i.top-=e(window).scrollTop()-r;var s={width:o.width(),height:(v?o.innerHeight():o[0].offsetHeight)-a-r};return void 0===O&&(O=void 0!==document.createElement("p").style.MozTransform),O?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var M="iframe",R=function(e){if(t.currTemplate[M]){var n=t.currTemplate[M].find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(M,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(M),_("BeforeChange",(function(e,t,n){t!==n&&(t===M?R():n===M&&R(!0))})),_(c+"."+M,(function(){R()}))},getIframe:function(n,o){var i=n.src,r=t.st.iframe;e.each(r.patterns,(function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id
455)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1}));var a={};return r.srcAction&&(a[r.srcAction]=i),t._parseMarkup(o,a,n),t.updateStatus("ready"),o}}}),x()},void 0===(r="function"==typeof o?o.apply(t,i):o)||(e.exports=r),i=[n(41669)],o=function(e){var t,n,o,i,r,s,c="Close",l="BeforeClose",u="MarkupParse",d="Open",p=".mfp",f="mfp-ready",m="mfp-removing",g="mfp-prevent-close",h=function(){},v=!!a,b=e(window),_=function(e,n){t.ev.on("mfp"+e+p,n)},y=function(t,n,o,i){var r=document.createElement("div");return r.className="mfp-"+t,o&&(r.innerHTML=o),i?n&&n.appendChild(r):(r=e(r),n&&r.appendTo(n)),r},w=function(n,o){t.ev.triggerHandler("mfp"+n,o),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(o)?o:[o]))},C=function(n){return n===s&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),s=n),t.currTemplate.closeBtn},x=function(){e.magnificPopup.instance||((t=new h).init(),e.magnificPopup.instance=t)};h.prototype={constructor:h,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(n){var i;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,s=n.items;for(i=0;i<s.length;i++)if((a=s[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],r="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=o,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=y("bg").on("click"+p,(function(){t.close()})),t.wrap=y("wrap").attr("tabindex",-1).on("click"+p,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=y("container",t.wrap)),t.contentContainer=y("content"),t.st.preloader&&(t.preloader=y("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(i=0;i<c.length;i++){var l=c[i];l=l.charAt(0).toUpperCase()+l.slice(1),t["init"+l].call(t)}w("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(_(u,(function(e,t,n,o){n.close_replaceWith=C(o.type)})),r+=" mfp-close-btn-in"):t.wrap.append(C())),t.st.alignTop&&(r+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:b.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+p,(function(e){27===e.keyCode&&t.close()})),b.on("resize"+p,(function(){t.updateSize()})),t.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&t.wrap.addClass(r);var m=t.wH=b.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(m)){var h=t._getScrollbarSize();h&&(g.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body").css("overflow","hidden"):g.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),w("BuildControls"),e("body").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(f),t._setFocus()):t.bgOverlay.addClass(f),o.on("focusin"+p,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(m),w(d),n}t.updateItemHTML()},close:function(){t.isOpen&&(w(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(m),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){w(c);var n=m+" "+f+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body").css("overflow",""):i.overflow="",e("body").css(i)}o.off("keyup.mfp focusin"+p),t.ev.off(p),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,w("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*n;t.wrap.css("height",o),t.wH=o}else t.wH=e||b.height();t.fixedContentPos||t.wrap.css("height",t.wH),w("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var o=n.type;if(w("BeforeChange",[t.currItem?t.currItem.type:"",o]),t.currItem=n,!t.currTemplate[o]){var r=!!t.st[o]&&t.st[o].markup;w("FirstMarkupParse",r),t.currTemplate[o]=!r||e(r)}
455i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+o.charAt(0).toUpperCase()+o.slice(1)](n,t.currTemplate[o]);t.appendContent(a,o),n.preloaded=!0,w("Change",n),i=n.type,t.container.prepend(t.contentContainer),w("AfterChange")},appendContent:function(e,n){(t.content=e)?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(C()):t.content=e:t.content="",w("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var o,i=t.items[n];if((i=i.tagName?{el:e(i)}:(o=i.type,{data:i,src:i.src})).el){for(var r=t.types,a=0;a<r.length;a++)if(i.el.hasClass("mfp-"+r[a])){o=r[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=o||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,w("ElementParse",i),t.items[n]},addGroup:function(e,n){var o=function(o){o.mfpEl=this,t._openClick(o,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,o)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,o):(n.items=e).off(i).on(i,o))},_openClick:function(n,o,i){if((void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var r=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(b.width()<r)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=o.find(i.delegate)),t.open(i)}},updateStatus:function(e,o){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),o||"loading"!==e||(o=t.st.tLoading);var i={status:e,text:o};w("UpdateStatus",i),e=i.status,o=i.text,t.preloader.html(o),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass(g)){var o=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(o&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||e(n).parents(".mfp-close").length||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(o)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||b.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,o){var i;o.data&&(n=e.extend(o.data,n)),w(u,[t,n,o]),e.each(n,(function(n,o){if(void 0===o||!1===o)return!0;if(1<(i=n.split("_")).length){var r=t.find(p+"-"+i[0]);if(0<r.length){var a=i[1];"replaceWith"===a?r[0]!==o[0]&&r.replaceWith(o):"img"===a?r.is("img")?r.attr("src",o):r.replaceWith(e("<img>").attr("src",o).attr("class",r.attr("class"))):r.attr(i[1],o)}}else t.find(p+"-"+n).html(o)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(t,n){return x(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){x();var o=e(this);if("string"==typeof n)if("open"===n){var i,r=v?o.data("magnificPopup"):o[0].magnificPopup,a=parseInt(arguments[1],10)||0;i=r.items?r.items[a]:(i=o,r.delegate&&(i=i.find(r.delegate)),i.eq(a)),t._openClick({mfpEl:i},o,r)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1
455));else n=e.extend(!0,{},n),v?o.data("magnificPopup",n):o[0].magnificPopup=n,t.addGroup(o,n);return o};var S,k,E,T="inline",L=function(){E&&(k.after(E.addClass(S)).detach(),E=null)};e.magnificPopup.registerModule(T,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(T),_(c+"."+T,(function(){L()}))},getInline:function(n,o){if(L(),n.src){var i=t.st.inline,r=e(n.src);if(r.length){var a=r[0].parentNode;a&&a.tagName&&(k||(S=i.hiddenClass,k=y(S),S="mfp-"+S),E=r.after(k).detach().removeClass(S)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),r=e("<div>");return n.inlineElement=r}return t.updateStatus("ready"),t._parseMarkup(o,{},n),o}}});var I,A,O,P="ajax",D=function(){I&&e(document.body).removeClass(I)},$=function(){D(),t.req&&t.req.abort()};e.magnificPopup.registerModule(P,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(P),I=t.st.ajax.cursor,_(c+"."+P,$),_("BeforeChange."+P,$)},getAjax:function(n){I&&e(document.body).addClass(I),t.updateStatus("loading");var o=e.extend({url:n.src,success:function(o,i,r){var a={data:o,xhr:r};w("ParseAjax",a),t.appendContent(e(a.data),P),n.finished=!0,D(),t._setFocus(),setTimeout((function(){t.wrap.addClass(f)}),16),t.updateStatus("ready"),w("AjaxContentAdded")},error:function(){D(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}}),e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,o=".image";t.types.push("image"),_(d+o,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),_(c+o,(function(){n.cursor&&e(document.body).removeClass(n.cursor),b.off("resize"+p)})),_("Resize"+o,t.resizeImage),t.isLowIE&&_("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,A&&clearInterval(A),e.isCheckingImgSize=!1,w("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,o=e.img[0],i=function(r){A&&clearInterval(A),A=setInterval((function(){0<o.naturalWidth?t._onImageHasSize(e):(200<n&&clearInterval(A),3===++n?i(10):40===n?i(50):100===n&&i(500))}),r)};i(1)},getImage:function(n,o){var i=0,r=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,w("ImageLoadComplete")):++i<200?setTimeout(r,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=t.st.image,c=o.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",n.el&&n.el.find("img").length&&(l.alt=n.el.find("img").attr("alt")),n.img=e(l).on("load.mfploader",r).on("error.mfploader",a),l.src=n.src,c.is("img")&&(n.img=n.img.clone()),0<(l=n.img[0]).naturalWidth?n.hasSize=!0:l.width||(n.hasSize=!1)}return t._parseMarkup(o,{title:function(n){if(n.data&&void 0!==n.data.title)return n.data.title;
455var o=t.st.image.titleSrc;if(o){if(e.isFunction(o))return o.call(t,n);if(n.el)return n.el.attr(o)||""}return""}(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(A&&clearInterval(A),n.loadError?(o.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",n.src))):(o.removeClass("mfp-loading"),t.updateStatus("ready"))):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,o.addClass("mfp-loading"),t.findImageSize(n))),o}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,o=".zoom";if(n.enabled&&t.supportsTransition){var i,r,a=n.duration,s=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=o,t.css(i),t},u=function(){t.content.css("visibility","visible")};_("BuildControls"+o,(function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void u();(r=s(e)).css(t._getOffset()),t.wrap.append(r),i=setTimeout((function(){r.css(t._getOffset(!0)),i=setTimeout((function(){u(),setTimeout((function(){r.remove(),e=r=null,w("ZoomAnimationEnded")}),16)}),a)}),16)}})),_(l+o,(function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;r=s(e)}r.css(t._getOffset(!0)),t.wrap.append(r),t.content.css("visibility","hidden"),setTimeout((function(){r.css(t._getOffset())}),16)}})),_(c+o,(function(){t._allowZoom()&&(u(),r&&r.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var o,i=(o=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),r=parseInt(o.css("padding-top"),10),a=parseInt(o.css("padding-bottom"),10);i.top-=e(window).scrollTop()-r;var s={width:o.width(),height:(v?o.innerHeight():o[0].offsetHeight)-a-r};return void 0===O&&(O=void 0!==document.createElement("p").style.MozTransform),O?s["-moz-transform"]=s.transform="translate("+i.left+"px,"+i.top+"px)":(s.left=i.left,s.top=i.top),s}}});var M="iframe",R=function(e){if(t.currTemplate[M]){var n=t.currTemplate[M].find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(M,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(M),_("BeforeChange",(function(e,t,n){t!==n&&(t===M?R():n===M&&R(!0))})),_(c+"."+M,(function(){R()}))},getIframe:function(n,o){var i=n.src,r=t.st.iframe;e.each(r.patterns,(function(){if(-1<i.indexOf(this.index))return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1}));var a={};return r.srcAction&&(a[r.srcAction]=i),t._parseMarkup(o,a,n),t.updateStatus("ready"),o}}});var j=function(e){var n=t.items.length;return n-1<e?e-n:e<0?n+e:e},N=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;r+=" mfp-gallery",_(d+i,(function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",(function(){if(1<t.items.length)return t.next(),!1}
455)),o.on("keydown"+i,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),_("UpdateStatus"+i,(function(e,n){n.text&&(n.text=N(n.text,t.currItem.index,t.items.length))})),_(u+i,(function(e,o,i,r){var a=t.items.length;i.counter=1<a?N(n.tCounter,r.index,a):""})),_("BuildControls"+i,(function(){if(1<t.items.length&&n.arrows&&!t.arrowLeft){var o=n.arrowMarkup,i=t.arrowLeft=e(o.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(g),r=t.arrowRight=e(o.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(g);i.click((function(){t.prev()})),r.click((function(){t.next()})),t.container.append(i.add(r))}})),_("Change"+i,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),_(c+i,(function(){o.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=j(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=j(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,o=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:o);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?o:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=j(n),!t.items[n].preloaded){var o=t.items[n];o.parsed||(o=t.parseEl(n)),w("LazyLoad",o),"image"===o.type&&(o.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){o.hasSize=!0})).on("error.mfploader",(function(){o.hasSize=!0,o.loadError=!0,w("LazyLoadError",o)})).attr("src",o.src)),o.preloaded=!0}}}});var H="retina";e.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(1<window.devicePixelRatio){var e=t.st.retina,n=e.ratio;1<(n=isNaN(n)?n():n)&&(_("ImageHasSize."+H,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),_("ElementParse."+H,(function(t,o){o.src=e.replaceSrc(o,n)})))}}}}),x()},void 0===(r="function"==typeof o?o.apply(t,i):o)||(e.exports=r)},86374:function(e,t,n){"use strict";n(76214)},86590:function(e,t,n){"use strict";n(38458),n(79408),n(83455),n(8161),n(14117),n(92863),n(57506),n(14246),n(81726),n(4438),n(26991),n(15959),n(8243),n(64334),n(54499),n(47134),n(95166),n(68845),n(37223),n(62514)},88215:function(e,t,n){"use strict";n(76214)},91597:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var o=n(76026);function i(e,t){return window.dialogManagerState.processing&&!e.force?(window.dialogManagerState.queue.push({type:t,config:e}),!1):(window.dialogManagerState.currentConfig=e,window.dialogManagerState.attachedListeners||(window.dialogManagerState.attachedListeners=!0,this.dialog.querySelector("#obs-dialog-close")?.addEventListener("click",this.hide.bind(this)),this.dialog.querySelector("#obs-dialog-confirm").addEventListener("click",this.confirmCallback.bind(this))),window.dialogManagerState.processing=!0,!0===e?.hideCloseButton?this.dialog.querySelector("#obs-dialog-close").classList.add("hidden"):this.dialog.querySelector("#obs-dialog-close").classList.remove("hidden"),this.dialog.querySelector("#apoio-cliente").
455classList.add("hidden"),e?.spinner?this.dialog.querySelector("#dialog-spinner").classList.remove("hidden"):this.dialog.querySelector("#dialog-spinner").classList.add("hidden"),this.dialog.querySelector("#obs-dialog-confirm").classList.add("hidden"),e?.confirmCallback&&this.dialog.querySelector("#obs-dialog-confirm").classList.remove("hidden"),this.dialog.querySelector("#obs-dialog-confirm").innerHTML=e?.confirmText?e.confirmText:"Confirmar",this.dialog.querySelector("#obs-dialog-text").innerText="",this.dialog.querySelector("#obs-dialog-text").innerHTML="",this.dialog.querySelector("#template-container").classList.add("hidden"),this.dialog.querySelector("#obs-dialog-body").classList.add("hidden"),this.dialog.querySelector("#dialog-icon").classList.add("hidden"),this.dialog.querySelector("#dialog-icon use").setAttribute("href",""),this.dialog.querySelector("#obs-dialog-title").classList.add("hidden"),this.dialog.classList.forEach((e=>this.dialog.classList.remove(e))),e.classes&&this.dialog.classList.add(...e.classes),!0)}const r={DIALOG_GENERIC_ERROR:"Ocorreu um erro, por favor entre em contacto com o Apoio a Cliente",dialog:document.querySelector("#obs-dialog"),confirmCallback(){window.dialogManagerState.currentConfig?.confirmCallback&&window.dialogManagerState.currentConfig.confirmCallback(),this.hide()},init:i,show(e){this.init.call(this,e,"text")&&(this.handleTitle(e),e.text?this.dialog.querySelector("#obs-dialog-text").innerText=e.text:e.html&&(this.dialog.querySelector("#obs-dialog-text").innerHTML=e.html),!0===e?.customerSupport&&this.dialog.querySelector("#apoio-cliente").
455classList.remove("hidden"),this.dialog.querySelector("#obs-dialog-body").classList.remove("hidden"),this.dialog.querySelector("#template-container").classList.add("hidden"),this.dialog.showModal())},hide(){window.dialogManagerState.currentConfig?.closeCallback&&window.dialogManagerState.currentConfig.closeCallback(),window.dialogManagerState.processing=!1;const e=window.dialogManagerState.queue.shift();if(!e)return window.dialogManagerState.currentConfig={},void this.dialog.close();window.dialogManagerState.currentConfig=e.config,"text"!==e.type?"template"!==e.type?"template-load"!==e.type||this.loadAndShowTemplateFiles(e.config):this.showTemplate(e.config):this.show(e.config)},handleTitle(e){e.title&&(this.dialog.querySelector("#obs-dialog-title").classList.remove("hidden"),this.dialog.querySelector("#obs-dialog-title").innerText=e.title),e.icon&&(this.dialog.querySelector("#dialog-icon use").setAttribute("href",`/wp-content/themes/observador-child/assets/build/svg/global.svg?${(new Date).getTime()}#obs-icon-${e.icon}`),this.dialog.querySelector("#dialog-icon").classList.remove("hidden"))},async showTemplate(e){const t=this;if(!i.call(this,e,"template"))return;const{componentTag:n,properties:o,confirmCallback:r}=e;if(!n)return this.show({title:"Erro",text:"Não foi possivel processar o pedido",icon:"dialog-warning"}),void console.warn("Component tag can't be empty");const a=document.querySelector(`#${n}-template`);if(!a)return this.show({title:"Erro",text:"Não foi possivel processar o pedido",icon:"dialog-warning",force:!0}),void console.warn("Template not found: ",n);const s=a.content.cloneNode(!0),c=s.querySelector(n);if(!c)return this.show({title:"Erro",text:"Não foi possivel processar o pedido",icon:"dialog-warning",force:!0}),void console.warn("Component not found in template: ",n);if(o)for(const e in o)c[e]=o[e];c.confirmCallback=function(){r&&r(),t.hide()},this.dialog.querySelector("#template-container").innerHTML="",this.dialog.querySelector("#template-container").appendChild(s);const l=this.dialog.querySelector("#template-container").firstElementChild;!1!==l?.isValid?(this.dialog.querySelector("#obs-dialog-body").classList.add("hidden"),this.dialog.querySelector("#template-container").classList.remove("hidden"),this.handleTitle(e),this.dialog.showModal()):this.hide()},async loadTemplateFiles(e){if(document.querySelector(`#${e}-template`))return!0;try{return await(0,o.Qf)(e),!0}catch(e){return console.error(e),this.show({title:"Erro",text:"Ocorreu um erro ao processar o pedido",icon:"dialog-warning"}),!1}},async loadAndShowTemplateFiles(e){await this.loadTemplateFiles(e.componentTag)&&await this.showTemplate(e)}};window.dialogManager=r,window.dialogManagerState||(window.dialogManagerState={processing:!1,queue:[],currentConfig:{},attachedListeners:!1})},92863:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var o=n(76214),i=n(45994);function r({type:e,name:t,label:n,placeholder:r,value:a,error:s,required:c=!1,autocomplete:l,onChange:u,onBlur:d,disabled:p=!1,showPasswordToggle:f=!1}){const[m,g]=(0,i.useState)(!1),h="password"===e&&m?"text":e;return o.html`
456        <div class="form-field">
457            ${n&&o.html`<label for=${t}>${n}</label>`}
458
459            <div class=${"password"===e&&f?"input-password-container":""}>
460                <input id=${t} type=${h} name=${t} placeholder=${r} value=${a} required=${c} autocomplete=${l} disabled=${p} onInput=${e=>{const t=e.target;u(t.value)}} onBlur=${()=>{d&&d()}} aria-invalid=${s?"true":"false"} aria-describedby=${s?`${t}-error`:void 0} />
461
462                ${"password"===e&&f&&o.html`
463                    <btn-show-pass id="show-password-${t}" onClick=${()=>{g(!m)}}>
464                        <svg id="${t}-svg-on" style=${{display:m?"none":"inline-block"}}>
465                            <use href="/wp-content/themes/observador-child/assets/build/svg/global.svg#obs-icon-eye"></use>
466                        </svg>
467                        <svg id="${t}-svg-off" style=${{display:m?"inline-block":"none"}}>
468                            <use href="/wp-content/themes/observador-child/assets/build/svg/global.svg#obs-icon-eye-off"></use>
469                        </svg>
470                    </btn-show-pass>
471                `}
472            </div>
473
474            <p class="error-text" id="${t}-error" role="alert">${s}</p>
475        </div>
476    `}},92864:function(e,t,n){"use strict";var o=n(64402),i=n(76026),r=n(70583),a=n(54586);window.onBoarding=async function(){(0,a.VR)({click_action:"show",click_label:"",click_location:"",event:a._j.onboard}),window.scrollTo({top:0,behavior:"smooth"});const{html:e}=await Promise.resolve().then(n.bind(n,76214)),{render:t}=await Promise.resolve().then(n.bind(n,50172)),{useRef:s,useEffect:c,useState:l}=await Promise.resolve().then(n.bind(n,45994));await(0,i.Ix)("/wp-content/themes/observador-child/assets/build/css/onboarding/onboarding.min.css");const u=r.subscriptionsController.getInstance(),d=adamastor.getSessionProfile();let p=0;const f=document.createElement("onboarding-container");document.body.append(f),document.body.style.position="relative",document.body.style.overflow="hidden",f.setAttribute("id","onboarding-container");const m="https://"+location.hostname+"/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0";function g(e){return"https://bordalo.observador.pt/v2/f:webp/rs:fill:200:200/plain/https://s3.observador.pt/wp-content/uploads/"+e}let h;var v;let b;(v=h||(h={})).author="author",v.podcast="program",v.newsletter="newsletter",b=/iPad|iPhone|iPod/.test(navigator.userAgent)?"ios":"android";const _={1:"Escolha os seus autores favoritos",2:"Ouça os podcasts",3:"Subscreva as newsletters",4:"Instale a app Observador"};function y(e){(0,a.VR)({click_action:"close",click_label:e,click_location:"bottom",event:a._j.onboard}),document.getElementById("onboarding-container").style.display="none",document.body.style.overflow="scroll",d?.subscription?.isPremium||window.onWelcomeOffer?.()}function w(t){const{label:n}=t;return e` <button
477            id="onboarding-close"
478            onClick=${()=>{y(n)}}
479        >
480            <svg class="obs-icon obs-icon-closex">
481                <use href="${m}#obs-icon-close-onboarding"></use>
482            </svg>
483        </button>`}function C(t){const{active:n}=t;return e` <onboarding-slide-navigation>
484            <a href="#onboarding-1" class="${1===n?"active":""} scroll"></a>
485            <a href="#onboarding-2" class="${2===n?"active":""} scroll"></a>
486            <a href="#onboarding-3" class="${3===n?"active":""} scroll"></a>
487            <a href="#onboarding-4" class="${4===n?"active":""} scroll"></a>
488            <!--                <a href="#onboarding-5" class="${5===n?"active":""} scroll"></a>-->
489        </onboarding-slide-navigation>`}function x(t){const{imgSrc:n,title:o,id:i}=t,[r,s]=l(),[u,p]=l();return c((()=>{p(!0),window.ArdinaProxy.getInstance().checkForSubscribed(d.sub,"author",i,void 0,(e=>{e&&s(!0),p(!1)}),(e=>{console.log("ERROR: ",e),p(!1)}))}),[]),e` <onboarding-autor>
490            <img src=${n} />
491            <onboarding-autor-right>
492                <h5>${o}</h5>
493                <div class="spinner-button-wrapper">
494                    ${!u&&e` <button class="${r&&"following"}" onClick=${function(){p(!0),r?window.ArdinaProxy.getInstance().unsubscribe(d.sub,"author",i,(()=>{(0,a.VR)({click_action:"unfollow_author",click_label:o,click_location:"",event:a._j.onboard}),s(!1),p(!1)}),(e=>{console.log("ERROR: ",e),p(!1)})):window.ArdinaProxy.getInstance().subscribe(d.sub,"author",i,(()=>{(0,a.VR)({click_action:"follow_author",click_label:o,click_location:"",event:a._j.onboard}),s(!0),p(!1)}),(e=>{console.log("ERROR: ",e),p(!1)}))}}>${r?"Alertas ativos":"Ativar alertas"}</button>`}
495                    ${u&&e` <div style="height:25px" class="global-spinner">
496                        <span class="spinner"></span>
497                    </div>`}
498                </div>
499            </onboarding-autor-right>
500        </onboarding-autor>`}function S(t){const{n:n,label:o}=t;return e` <a
501            class="slide-prev scroll"
502            href="#onboarding-${n}"
503            title="Anterior"
504            onClick=${()=>{(0,a.VR)({click_action:"previous",click_label:o,click_location:"bottom",event:a._j.onboard})}}
505        >
506            <svg class="obs-icon obs-icon-onboarding-chevron-left">
507                <use href="${m}#obs-icon-onboarding-chevron-left"></use>
508            </svg>
509        </a>`}function k(t){const{n:n,label:o}=t;return e` <a
510            class="slide-next scroll"
511            href="#onboarding-${n}"
512            title="Seguinte"
513            onClick=${()=>{(0,a.VR)({click_action:"next",click_label:o,click_location:"bottom",event:a._j.onboard})}}
514        >
515            <svg class="obs-icon obs-icon-onboarding-chevron-right">
516                <use href="${m}#obs-icon-onboarding-chevron-right"></use>
517            </svg>
518        </a>`}function E(){return e` <svg class="obs-icon obs-icon-observador logo">
519            <use href="${m}#obs-icon-observador"></use>
520        </svg>`}function T(t){const{src:n,id:i,name:r}=t,[s,d]=l(),[p,f]=l(!1);return c((()=>{const e="subscribed"===u.subscriptions.find((e=>e.list_id===String(i)))?.status;d(e)}),[]),e` <onbording-newsletter class="newsletter-subscribe" data-newsletter-id=${i} data-newsletter-action=${s?"unsubscribe":"subscribe"} data-newsletter-name=${r}>
521            <img src="${n}" />
522            <div class="spinner-button-wrapper">
523                ${!p&&e` <button class="button-newsletter single-subscribe ${s&&"following"}" onClick=${async function(){f(!0);try{if(!s)return(0,a.VR)({click_action:"follow_newsletter",click_label:r,click_location:"",event:a._j.onboard}),await(0,o.wI)(i),u.subscribe({status:"subscribed",list_id:String(i)}),d(!0),void f(!1);(0,a.VR)({click_action:"unfollow_newsletter",click_label:r,click_location:"",event:a._j.onboard}),await(0,o.cL)(i),u.unsubscribe({status:"unsubscribed",list_id:String(i)}),d(!1),f(!1)}catch(e){console.log("ERROR newsletter click: ",e),f(!1)}}}>${s?"Subscrita":"Subscrever"}</button>`}
524                ${p&&e` <div class="global-spinner">
525                    <span class="spinner"></span>
526                </div>`}
527            </div>
528        </onbording-newsletter>`}function L(t){const{id:n,src:o,name:i}=t,[r,s]=l(),[u,p]=l();return c((()=>{p(!0),window.ArdinaProxy.getInstance().checkForSubscribed(d.sub,"program",n,void 0,(e=>{e&&s(!0),p(!1)}),(e=>{console.log("ERROR: ",e),p(!1)}))}),[]),e` <onbording-podcast>
529            <img src="${o}" />
530            <div class="spinner-button-wrapper">
531                ${!u&&e` <button class="${r&&"following"}" onClick=${function(){p(!0),r?window.ArdinaProxy.getInstance().unsubscribe(d.sub,"program",n,(()=>{(0,a.VR)({click_action:"unfollow_podcast",click_label:i,click_location:"",event:a._j.onboard}),s(!1),p(!1)}),(e=>{console.log("ERROR: ",e),p(!1)})):window.ArdinaProxy.getInstance().subscribe(d.sub,"program",n,(()=>{(0,a.VR)({click_action:"follow_podcast",click_label:i,click_location:"",event:a._j.onboard}),s(!0),p(!1)}),(e=>{console.log("ERROR: ",e),p(!1)}))}}>${r?"Alertas ativos":"Ativar alertas"}</button>`}
532                ${u&&e` <div style="height:25px" class="global-spinner">
533                    <span class="spinner"></span>
534                </div>`}
535            </div>
536        </onbording-podcast>`}function I(t){const{n:n,children:o}=t;return c((()=>{}),[n]),e`
537            <onboarding-slide id=${"onboarding-"+n}>
538                <onboarding-slide-content
539                    onTouchEnd=${e=>{let t="next";p!==n&&(n<p&&(t="prev"),p=n,(0,a.VR)({click_action:t,click_label:_[n],click_location:"bottom",event:a._j.onboard}))}}
540                >
541                    <${w} label=${_[n]} />
542                    ${n>1&&e` <${S} n=${n-1} label=${_[n]} />`}
543                    <onboarding-slide-content-text>
544                        <onboarding-slide-text>
545                            <${E} />
546                            ${o}
547                        </onboarding-slide-text>
548                        <${C} active=${n} />
549                    </onboarding-slide-content-text>
550                    ${n<Object.keys(_).length&&e` <${k} n=${n+1} label=${_[n]} />`}
551                </onboarding-slide-content>
552            </onboarding-slide>
553        `}function A(e){(0,a.VR)({click_action:"click_store",click_label:e,click_location:"",event:a._j.onboard})}function O(){return e`
554            <h2>${_[5]}</h2>
555            <p>Tenha acesso ao que mais de importante se passa em Portugal e no mundo com a app. Tenha o Observador no bolso, onde quer que vá e a qualquer hora do dia.</p>
556            <onboarding-stores>
557                <a
558                    href="https://apps.apple.com/pt/app/observador/id859222702"
559                    target="_blank"
560                    class="image-store shop-ios ${b}"
561                    onClick=${()=>{A("apple")}}
562                >
563                    <img src="https://observador.pt/wp-content/themes/observador-child/assets/build/img/app/apple-store-pt_x2.png" />
564                </a>
565                <a
566                    href="https://play.google.com/store/apps/details?id=pt.observador.mobile.android"
567                    target="_blank"
568                    class="image-store shop-android ${b}"
569                    onClick=${()=>{A("google")}}
570                >
571                    <img src="https://observador.pt/wp-content/themes/observador-child/assets/build/img/app/google-play_x2.png" />
572                </a>
573            </onboarding-stores>
574            <onboarding-stores-desktop>
575                <a
576                    href="https://apps.apple.com/pt/app/observador/id859222702"
577                    target="_blank"
578                    class="image-store"
579                    onClick=${()=>{A("apple")}}
580                >
581                    <img src="https://observador.pt/wp-content/themes/observador-child/assets/build/img/app/apple-store-pt_x2.png" />
582                </a>
583                <a
584                    href="https://play.google.com/store/apps/details?id=pt.observador.mobile.android"
585                    target="_blank"
586                    class="image-store"
587                    onClick=${()=>{A("google")}}
588                >
589                    <img src="https://observador.pt/wp-content/themes/observador-child/assets/build/img/app/google-play_x2.png" />
590                </a>
591            </onboarding-stores-desktop>
592        `}function P(e,t=null){const n=e=>Math.floor(e.getBoundingClientRect().top);e.preventDefault();const o=t?t.getAttribute("href"):this.getAttribute("href"),i=document.querySelector(o);if(!i)return;const r=n(i);window.scrollBy({top:r,left:0,behavior:"smooth"});const a=setInterval((function(){const e=window.innerHeight+window.pageYOffset>=document.body.offsetHeight-2;(0===n(i)||e)&&(i.tabIndex="-1",i.focus(),window.history.pushState("","",o),clearInterval(a))}),100)}t(e` <${function(){const[t,n]=l({hasError:!1,message:""});return e`
593            <onboarding-slider id="onboarding-slider">
594                <!-- Onboarding #1 -->
595                <${I} n=${1}>
596                    <h2>${_[1]}</h2>
597                    <onboarding-autores>
598                        <${x}
599                                imgSrc=${"https://bordalo.observador.pt/v2/f:webp/rs:fill:80/plain/https://s3.observador.pt/wp-content/uploads/2017/09/17062216/colunista_mjavillez_467.png"}
600                                title="${"Maria João Avillez"}" id=${73}/>
601                            <${x}
602                                    imgSrc=${"https://bordalo.observador.pt/v2/f:webp/rs:fill:80/plain/https://s3.observador.pt/wp-content/uploads/2022/09/23222658/1q9a027
6027-copia.jpg"}
603                                    title="${"José M. Fernandes"}" id=${17}/>
604                                <${x}
605                                        imgSrc=${"https://bordalo.observador.pt/v2/f:webp/rs:fill:80/plain/https://s3.observador.pt/wp-content/uploads/2022/01/05154211/dventura-contra-corrente-2.jpg"}
606                                        title="${"Helena Matos"}" id=${71}/>
607                                    <${x}
608                                            imgSrc=${"https://bordalo.observador.pt/v2/f:webp/rs:fill:80/plain/https://s3.observador.pt/wp-content/uploads/2015/10/foto_jaimepinto.jpg"}
609                                            title="${"Jaime Nogueira Pinto"}" id=${1662}/>
610                    </onboarding-autores>
611                    <a href="/autores/" target="_blank"
612                       class="explorar"
613                       data-event-name="onboard"
614                       data-click-label=""
615                       data-click-action="explore_authors"
616                       data-click-location="">Explorar todos os autores</a>
617                </${I}>
618
619                <!-- Onboarding #2 -->
620                <${I} n=${2}>
621                    <h2>${_[2]}</h2>
622                    <onbording-podcast-list>
623                        <${L}
624                                src=${g("2026/03/30121255/ficheiros-ccc-433x433-logos-1.jpg")}
625                                id=${61948} name="${"Os Ficheiros do Caso Carlos Castro"}"/>
626                        <${L}
627                                src=${g("2025/10/29102003/3000-podcast-o-bom-o-mau-e-o-vilao-2025.jpg")}
628                                id=${47574} name="${"O Bom, o Mau e o Vilão"}"/>
629                        <${L}
630                                src=${g("2021/04/13110052/433-podcaste-o-resto-e-historia.jpg")}
631                                id=${47588} name="${"E o Resto é História"}"/>
632                        <${L}
633                                src=${g("2025/12/16133255/3000-podcast-contra-corrente-zmf-hm-hg.jpg")}
634                                id=${47573} name="${"Contra-Corrente"}"/>
635                    </onbording-podcast-list>
636                    <a href="/podcasts/" target="_blank" class="explorar"
637                       data-event-name="onboard"
638                       data-click-label=""
639                       data-click-action="explore_podcast"
640                       data-click-location="">Explorar todos os podcasts</a>
641                </${I}>
642
643                <!-- Onboarding #3 -->
644                <${I} n=${3}>
645                    <h2>${_[3]}</h2>
646                    <onbording-newsletter-list>
647                        <${T}
648                                src=${g("2021/06/25120044/360-1x1-1.png")}
649                                id=${"6d73139c79"} name="${"360º"}"/>
650                        <${T}
651                                src=${g("2021/06/25120433/hdf-1x1-1.png")}
652                                id=${"ad20455de1"} name="${"Hora de Fecho"}"/>
653                        <${T}
654                                src=${g("2025/10/14132433/pc-1x1-1.png")}
655                                id=${"12b6e2610d"} name="${"Economia"}"/>
656                        <${T}
657                                src=${g("2026/07/30162003/square-podcast-onboardin-5.png")}
658                                id=${"12725e5668"} name="${"Mental"}"/>
659                    </onbording-newsletter-list>
660                    <a href="/newsletters/" target="_blank" class="explorar"
661                       data-event-name="onboard"
662                       data-click-label=""
663                       data-click-action="explore_newsletters"
664                       data-click-location="">Explorar todos as newsletters</a>
665                </${I}>
666
667                <!-- Onboarding #4 -->
668                <${I} n=${4}>
669                    <${O}/>
670                </${I}>
671            </onboarding-slider>
672        `}} />`,f),document.querySelectorAll(".scroll").forEach((e=>e.onclick=P)),document.addEventListener("keydown",(e=>{"Escape"===e.key&&y("esc")}))}},95164:function(e,t,n){"use strict";var o=n(61722),i=n(54586);window.obsAnalytics||(window.obsAnalytics={liveblogChangePage:i.We,sendClickEvent:i.VR,sendAnalyticsEvent:i.$,lastClickedElement:null,sendToDataLayer:i.$4}),document.addEventListener("DOMContentLoaded",(()=>{(0,o.H0)()||((0,i.sP)(),i._w.loadChartBeat(),(0,i.$4)(),document.querySelectorAll("[data-podcast-promo]").forEach((e=>{(0,i.VR)({event:i._j.podcast_promo,click_action:"impression",click_label:e.dataset.promoId||"",click_location:e.dataset.clickLocation||"article_body"})})),document.body.addEventListener("click",(e=>{let t=e.target,n=t?.dataset;if(window.obsAnalytics.lastClickedElement=t,"undefined"!=typeof contextualData&&"homepage"===contextualData.context){const e=t.closest(".fbg-row");if(e){const t=document.querySelector(".editorial-grid");t&&t.querySelectorAll(".fbg-row").forEach(((t,n)=>{if(t===e)try{sessionStorage.setItem("qr_hp_pos",String(n+1))}catch(e){}}))}}const r=e.target.closest("[data-meta-event]");if(r?.dataset.metaEvent){const e={};for(const t of Object.keys(r.dataset))t.startsWith("meta")&&"metaEvent"!==t&&(e[t.slice(4).toLowerCase()]=r.dataset[t]);window.obsFbqTrack?.(r.dataset.metaEvent,e)}if(!n?.eventName){if(t=t.closest("*[data-event-name]"),!t)return;n=t.dataset}const a={},{clickAction:s,clickLabel:c,clickLocation:l,eventName:u}=n;for(const e of Object.keys(n))e.startsWith("analytics")&&(a[e.substring(9,e.length).toLowerCase()]=n[e]);const d=[{name:"share-lb",event_name:i._j.articleinteraction,action:"share",location:"",label:"open"},{name:"share_desktop",event_name:i._j.articleinteraction,action:"share",location:"",label:""},{name:"share_native",event_name:i._j.articleinteraction,action:"share",location:"",label:""},{name:"share-by-copy",event_name:i._j.articleinteraction,action:"share",location:"",label:"copy"},{name:"share-by-email",event_name:i._j.articleinteraction,action:"share",location:"",label:"email"},{name:"share-on-facebook",event_name:i._j.articleinteraction,action:"share",location:"",label:"facebook"},{name:"share-on-twitter",event_name:i._j.articleinteraction,action:"share",location:"",label:"twitter"},{name:"share-on-linkedin",event_name:i._j.articleinteraction,action:"share",location:"",label:"linkedin"},{name:"share-on-whatsapp",event_name:i._j.articleinteraction,action:"share",location:"",label:"whatsapp"},{name:"li_gift_article",event_name:i._j.articleinteraction,action:"offer",location:"",label:"open"},{name:"comments",event_name:i._j.articleinteraction,action:"comments",location:"",label:"open"},{name:"comment-info-slider",event_name:i._j.articleinteraction,action:"comments",location:"bottom",label:"open"},{name:"comment-small-icon",event_name:i._j.articleinteraction,action:"comments",location:"top",label:"open"},{name:"commentTab",event_name:i._j.articleinteraction,action:"comments",location:"",label:""},{name:"submitComment",event_name:i._j.articleinteraction,action:"comments",location:"",label:"publish_comment"},{name:"commentsCloseButton",event_name:i._j.articleinteraction,action:"comments",location:"",label:"close"},{name:"mfp-close",event_name:i._j.articleinteraction,action:"share",location:"",label:"close"},{name:"liveblog-highlights-item-link",event_name:i._j.articleinteraction,action:"liveblog",location:"liveblog_
672key_moment",label:""},{name:"about-podcast",event_name:i._j.articleinteraction,action:"about",location:"podcast",label:document.querySelector(".sobre-o-programa.show")?"open":"close"},{name:"listen_on",event_name:i._j.articleinteraction,action:"listen",location:"podcast",label:"block"===document.getElementById("ouvir-em-container")?.style.display?"open":"close"},{name:"listen-on-button",event_name:i._j.articleinteraction,action:"listen",location:"podcast",label:""},{name:"capsule-new-post",event_name:i._j.articleinteraction,action:"liveblog",location:"",label:"update_box"},{name:"see-more-lb",event_name:i._j.articleinteraction,action:"liveblog",location:"",label:"read_more"}],p=(0,o.zl)(t,d,"name");-1===p?(0,i.VR)({click_action:s,click_label:c,click_location:l,event:u,...a}):(1!==p&&2!==p||(d[p].label=(e=>{let t;switch(e){case"bottom":t=document.getElementById("opened-share-bottom");break;case"top":t=document.getElementById("opened-share");break;case"podcast":t=document.getElementById("opened-share-podcast");break;default:return"open"}if(t)return"none"===t.style.display?"close":"open"})(l)),(0,i.VR)({click_action:s??d[p].action,click_label:c??d[p].label,click_location:l??d[p].location,event:u??d[p].event_name,...a}))})))}))},95166:function(e,t,n){"use strict";n.d(t,{G:function(){return l}});var o=n(76214),i=n(45994),r=n(79408),a=n(81726),s=n(14246);const c="pt.observador.ios.Observador.SignInWithApple";function l({type:e,onSuccess:t,onClick:n,onError:l,requireTerms:u
672=!1,termsAccepted:d=!1}){const[p,f]=(0,i.useState)(!1),{loginWithApple:m}=(0,r.a)(),g=async()=>{if(u&&!d)return l(new Error("Tem de aceitar os Termos e Condições e a Política de Privacidade e Cookies.")),void f(!1);if(window.AppleID)try{window.AppleID.auth.init({clientId:c,scope:"name email",redirectURI:"observador.pt"===location.host?"https://observador.pt":"https://v2dev.observador.pt",usePopup:!0});const e=(await window.AppleID.auth.signIn()).authorization.id_token;await m(e),t&&t()}catch(e){l(e)}finally{f(!1)}else h()},h=()=>{if(document.getElementById("appleApi"))return;const e=document.createElement("script");e.id="appleApi",e.src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",e.onload=()=>{g()},document.body.insertAdjacentElement("beforeend",e)};return o.html` <div class="apple-provider">${p?o.html`<${s.k} />`:o.html` <${a.w} provider="apple" type=${e} onClick=${()=>{window.obsFbqTrack?.("RegisterProviderClick",{provider:"apple"}),n?.(),p||(f(!0),g())}} isLoading=${p} /> `}</div> `}},96437:function(e,t,n){var o,i,r=n(41669);o=ArdinaProxy.getInstance(),i={bellPlugin:!1,$tinkerbells:!1,init:function(){var e,t,n=this;window.ardinaManager=n,n.$tinkerbells=r(".tinkerbell"),function(){for(var e="_pc_alerts_delay=",t=document.cookie.split(";"),n=0;n<t.length;n++){for(var o=t[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(17,o.length)}return null}()&&r(".alerts-popup-follow").hide(),r(".alerts-popup-close-follow").on("click",(()=>{r(".alerts-popup-follow").hide()})),e="",(t=new Date).setTime(t.getTime()+432e6),e="; expires="+t.toUTCString(),document.cookie="_pc_alerts_delay=1"+e+"; path=/",r(".follow").each((function(e,t){n.bindClicks(t)})),this.instantiateBell(),this.autoSubscribe()},autoSubscribe:function(){if(!new URLSearchParams(location.search).has("subscribe"))return;const e=this,t=document.querySelector(".follow");if(!t)return void console.log("Don't have the element");const n=t.getAttribute("data-what"),o=t.getAttribute("data-id");n&&o?adamastor.isLoggedIn()?this.subscribe(n,o):(localStorage.setItem("dontReload","true"),adamastor.showLogin(),obsEventListener("obsLogin",(async()=>{e.subscribe(n,o)}),!1)):console.log("Don't have the attributes")},checkForSubscribed:function(e,t,n,i){if(r(".follow").addClass("not-following").removeClass("following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Ativar alertas').blur(),e&&!contextualData.bodyClasses.match("page-template-page-user-alerts")){var a='[data-what="'+t+'"][data-id="'+n+'"]';if(!e)return r(a).removeClass("following").addClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Ativar alertas').blur(),!1;o.checkForSubscribed(e,t,n,"",(function(e,t){e?r(a).addClass("following").removeClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Alertas ativos').blur():r(a).removeClass("following").addClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Ativar alertas').blur()}),console.warn)}},checkForSubscribedNew:function(e,t,n){if(e&&!contextualData.bodyClasses.match("page-template-page-user-alerts")){var i='[data-what="'+t+'"][data-id="'+n+'"]';if(!e)return r(i).removeClass("following").addClass("not-following").text("Seguir").blur(),!1;o.checkForSubscribed(e,t,n,"",(function(e,t){e?r(i).addClass("following").removeClass("not-following").text("A seguir").blur():r(i).removeClass("following").addClass("not-following").text("Seguir").blur()}),console.warn)}},rebindEvents:function(){var e=this;r(".follow").each((function(t,n){r(n).removeData(),e.bindClicks(n)}))},instantiateBell:function(){var e=this;window.loader.loadHTML("alerts/alerts.templates.html","body",(function(){e.$tinkerbells.addClass("tinkerbell notifications obs_drop_right obs_drop_group"),e.$tinkerbells.empty().append(parseTemplate(document.getElementById("template-sininho-logged").innerHTML,{}));var t=!!adamastor.isLoggedIn()&&adamastor.getSessionProfile().sub;e.bellPlugin=e.$tinkerbells.tinkerbell({userId:t,onGetSubscriptions:r.noop}),e.$tinkerbells.obsdrop(),e.$tinkerbells.find(".open-popup-link").on("click",(function(){adamastor.showLogin()}))}))},bindClicks:function(e){var t=this;r(e).off("click");var n=r(e).data("what"),o=r(e).data("id"),i='[data-what="'+n+'"][data-id="'+o+'"]';if(adamastor.isLoggedIn()){var a=adamastor.getSessionProfile().sub;t.checkForSubscribed(a,n,o,(function(e){e?r(i).addClass("following").removeClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Alertas ativos').blur():r(i).removeClass("following").addClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Ativar alertas').blur()})),r(e).on("click",(function(e){e.preventDefault(),r(e.target).hasClass("following")?t.unsubscribe(n,o,e.target):t.subscribe(n,o,e.target)}))}else r(i).removeClass("following").addClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Ativar alertas').blur().on("click",(function(){adamastor.showLogin()}))},subscribe:function(e,t,n){var i=adamastor.getSessionProfile().sub;o.subscribe(i,e,t,(function(){r('[data-what="'+e+'"][data-id="'+t+'"]').addClass("following").removeClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Alertas ativos')}),(function(){console.log("error on subscribe",arguments)}))},unsubscribe:function(e,t,n){var i=adamastor.getSessionProfile().sub;o.unsubscribe(i,e,t,(function(){r('[data-what="'+e+'"][data-id="'+t+'"]').removeClass("following").addClass("not-following").html('<svg><use href="/wp-content/themes/observador-child/assets/build/svg/global.svg?v=0#obs-icon-sininho"></use></svg> Ativar alertas')}),(function(){console.log("error on unsubscribe",arguments)}))}},document.addEventListener("obsLoginCallback",(()=>i.init()))},97292:function(e,t,n){"use strict";var o=n(76026);!function(){const e=new CustomEvent("ADS_WALL_REMOVED");window.adsWall=async function(t){try{await async function(t){try{window.google&&window.google.ima||await(0,o.Ik)("https://imasdk.googleapis.com/js/sdkloader/ima3.js","google-ima"),await async function(e){return new Promise(((t,n)=>{const o=document.createElement("link");o.rel="stylesheet",o.href=e,o.onload=t,o.onerror=()=>n(new Error(`Failed to load CSS asset: ${e}`)),document.head.appendChild(o)}))}("/wp-content/themes/observador-child/assets/build/css/reward-ads-wall/reward-ads-wall.min.css"),await async function(t){const n=document.querySelector(t.cssSelector);if(!n)throw new Error(`Container '${t.cssSelector}' not found`);const o=document.createElement("div");o.className="obs-ads-render-wrapper",o.style.cssText=t.mediaPlayerProps?.obsMediaWrapperStyles||"",n.appendChild(o),o.innerHTML='\n            <div class="obs-ads-render-container">\n                <div class="obs-media-wrapper">\n                    <p class="subscribe-cta"><a href="/premium">Torne-se assinante</a> e navegue sem publicidade.</p>\n                    <div class="obs-media-video-container">\n                        <video id="content-video" class="obs-video" style="visibility: hidden;">\n                            <source src="" type="video/mp4" />\n                        </video>\n                        <div class="obs-mute" id="mute-button">\n                            <svg>\n                                <use href="#obs-icon-volumeon"></use>\n                            </svg>\n                        </div>\n                        <div id="ad-container" class="play"></div>\n                    </div>\n                </div>\n            </div>\n        ';const i=document.getElementById("content-video"),r=document.getElementById("ad-container"),a=document.getElementById("mute-button"),s=document.querySelector(".obs-ads-render-container"),c=new google.ima.AdDisplayContainer(r,i);c.initialize();const l=new google.ima.AdsLoader(c);l.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(t=>function(t,n,o,i){const r=t.getAdsManager(n),a=r.getVolume();i.addEventListener("click",(()=>{const e=0===r.getVolume();i.querySelector("use").setAttribute("href",e?"#obs-icon-volumeon":"#obs-icon-volumeoff"),r.setVolume(e?a:0)})),r.addEventListener(google.ima.AdEvent.Type.COMPLETE,(()=>{o.remove(),document.dispatchEvent(e)})),r.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(()=>{o.remove(),document.dispatchEvent(e)})),r.init(n.clientWidth,n.clientHeight,google.ima.ViewMode.NORMAL),r.start()}(t,i,s,a)),!1),l.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(t=>{console.error("Ad Error:",t.getError().toString()),s.remove(),document.dispatchEvent(e)}),!1);const u=new google.ima.AdsRequest;u.adTagUrl="https://pubads.g.doubleclick.net/gampad/ads?sz=640x420|300x600|300x250|640x480|640x360|400x300|300x250&iu=/14628225/RewardWallVideo&env=vp&impl=s&gdfp_req=1&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]",u.linearAdSlotWidth=n.clientWidth,u.linearAdSlotHeight=n.clientHeight,u.nonLinearAdSlotWidth=n.clientWidth,u.nonLinearAdSlotHeight=150,l.requestAds(u)}(t)}catch(t){return void document.dispatchEvent(e)}}(t)}catch(e){console.error("Error loading ad:",e)}}}()},97330:function(){},98166:function(e,t,n){var o=n(41669);document.addEventListener("DOMContentLoaded",(function(){if("true"===localStorage.getItem("obs-user-deleted")){var e=document.createElement("div");e.innerHTML+='<div id="delete-pop-container" style="position: relative;background: #FFF;padding: 30px 30px 30px 30px;width: auto;max-width: 460px;margin: auto;line-height: 14px;">\n<div id="delete-success">\n        <div class="delete-popup-success">\n            <h4 style="text-align: center;font-weight: bold;font-size: 18px;line-height: 23px;margin: 0 auto 20px;width: 260px;">O seu perfil e todos os dados associados foram&nbsp;removidos.</h4>\n            <div style="text-align: center;font-size: 15px;line-height: 21px;">Obrigado por ter feito parte do Observador. Temos pena de o ver partir, mas poderá voltar\n                a criar uma nova conta sempre que quiser. Estaremos aqui à sua espera.\n            </div>\n            <div class="button-group">\n                <button id="close-button" class="button cancel">Fechar</button>\n            </div>\n        </div>\n    </div>\n</div>',document.getElementsByTagName("body")[0].insertAdjacentElement("afterbegin",e),o.magnificPopup.open({items:{src:"#delete-pop-container"},type:"inline",closeOnBgClick:!1,closeBtnInside:!1}),localStorage.removeItem("obs-user-deleted"),o("#close-button").click((function(){o.magnificPopup.instance.close()}))}}))}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};
672return e[o].call(r.exports,r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(73487),n(78556),n(13179),n(71067),n(55857),n(49135),n(91597),n(10826),n(58804),n(59209),n(42836),n(38364),n(56753),n(1461),n(5847),n(61416),n(97292),n(14679),n(71055),n(24039),n(81152),n(13288),n(7461),n(35267),n(13589),n(9494),n(85775),n(14318),n(33891),n(12201),n(96437),n(98166),n(29970),n(14399),n(2489),n(40404),n(54586),n(95164),n(48004),n(92864),n(70365),n(11079),n(16124),n(3612),n(4344),n(86590),n(49059),n(4438),n(57506),n(92863),n(64334),n(14246),n(15959),n(81726),n(8243),n(55379),n(26991),n(16922),n(79408),n(83455),n(8161),n(95166),n(88215),n(47134),n(54499),n(18752),n(38458),n(53419),n(13295),n(26820),n(97330),n(14117),n(33169),n(61997),n(39558),n(51591),n(73523),n(61657),n(86374),n(16513),n(68845),n(37223),n(62514)}();
673//# sourceMappingURL=observador.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.