1(()=>{"use strict";var e={},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.rv=function(){return"1.2.3"},n.ruid="[email protected]";let i="WPbnb",r="force-breaking-news";function o(e){var t;let n;if(!e)return"";try{n=JSON.parse(e)}catch(e){return""}if(!("object"==typeof(t=n)&&null!==t&&"string"==typeof t.link&&"number"==typeof t.dismissedAt&&Number.isFinite(t.dismissedAt)))return"";let i=Date.now()-n.dismissedAt;return i>=864e5||i<=-864e5?"":n.link}function a(){try{var e,t,n;return null!==(n=null===(t=window.WP)||void 0===t?void 0:null===(e=t.storage)||void 0===e?void 0:e.get(i))&&void 0!==n?n:""}catch(e){return""}}function l(e){var t,n;let r=JSON.stringify({link:e,dismissedAt:Date.now()});!function(e){try{var t,n;null===(n=window.WP)||void 0===n||null===(t=n.storage)||void 0===t||t.set(i,e)}catch(e){}}(r),null===(n=window.WP)||void 0===n||null===(t=n.storageXD)||void 0===t||t.set(i,r,()=>{})}async function c(e,t){try{var n;let i=new URL(`${window.location.origin}/frontendparts/breaking-news`);i.searchParams.append("device",e),t&&i.searchParams.append(r,"");let o=await fetch(i.href,{method:"GET"});if(!o.ok)throw Error(`HTTP error! Status: ${o.status}`);let a=await o.json();return null!==(n=a.html)&&void 0!==n?n:""}catch(e){return console.error("Error fetching breaking news:",e),""}}let s=!1;async function d(){if(s)return;let e=document.getElementById("wp-breaking-news-anchor");if(!e)return;s=!0;let t=e.dataset.device;if(!t){e.remove();return}let n=new URLSearchParams(window.location.search).has(r),[d,u]=await Promise.all([c(t,n),new Promise(e=>{let t=setTimeout(()=>e(o(a())),1e3);!function(e){var t;let n=null===(t=window.WP)||void 0===t?void 0:t.storageXD;if(!n){e(o(a()));return}n.get(i,t=>{e(o(null==t?void 0:t.value)||o(a()))})}(n=>{clearTimeout(t),e(n)})})]);if(!d){e.remove();return}let p=function(e,t){let n=document.createElement("div");n.innerHTML=t;let i=n.firstElementChild;return i?(e.replaceWith(i),i):null}(e,d);if(!p)return;let h=p.querySelector(".news-link"),_=p.dataset.breakingNewsLink||(null==h?void 0:h.getAttribute("href"))||"",f=null==h?void 0:h.href;if(!_||!f){p.remove();return}let{pathname:m}=window.location;if("/"!==m&&_.includes(m)){l(_),p.remove();return}if(!n&&u===_){p.remove();return}null==h||h.addEventListener("click",()=>{l(_)});let v=p.querySelector(".news-close");null==v||v.addEventListener("click",()=>{l(_),p.remove()},{once:!0}),setTimeout(()=>{p.style.display="flex",function(e,t){var n;let i=window.location.origin+window.location.pathname,r={type:"area",areaid:"livebar",length:1,isLogged:!!(null===(n=window.wp_dot_addparams)||void 0===n?void 0:n.isLogged),url:i},o=window.WP.pwp.registerContainer(r);"number"==typeof o&&window.WP.pwp.registerBox(e,{type:"button",index:0,url:i,areaid:"livebar",target_url:t,id:"livebar",yd:"livebar"},o,{time:1,percent:50})}(p,f)},3e3)}function u(e,t,n="traffic"){if(window.location.hostname.includes("localhost")){console.info("SEND_WAVE => ",e,t,n);return}if("undefined"!=typeof window&&window.WP)try{window.WP.push(function(){window.WP.stat.wave(e,t,n)})}catch(e){console.error("WP_STAT_WAVE_ERROR: ",e)}}let p=new Set,h=new IntersectionObserver(function(e){e.forEach(e=>{if(e.isIntersecting){let t=e.target.getAttribute("data-uxc");t&&!p.has(t)&&(p.add(t),u("evt_ux_consumption",{event:"view",pos:String(t)})),h.unobserve(e.target)}})},{threshold:0,root:null});var _,f,m,v,g,w,y,b,x,k,C,N={},I=[],E=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,S=Array.isArray;function A(e,t){for(var n in t)e[n]=t[n];return e}function T(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function z(e,t,n){var i,r,o,a={};for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?_.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return L(e,a,i,r,null)}function L(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++m,__i:-1,__u:0};return null==r&&null!=f.vnode&&f.vnode(o),o}function O(e){return e.children}function P(e,t){this.props=e,this.context=t}function $(e,t){if(null==t)return 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):null}function M(e){(!e.__d&&(e.__d=!0)&&v.push(e)&&!R.__r++||g!==f.debounceRendering)&&((g=f.debounceRendering)||w)(R)}function R(){var e,t,n,i,r,o,a,l;for(v.sort(y);e=v.shift();)e.__d&&(t=v.length,i=void 0,o=(r=(n=e).__v).__e,a=[],l=[],n.__P&&((i=A({},r)).__v=r.__v+1,f.vnode&&f.vnode(i),H(n.__P,i,r,n.__n,n.__P.namespaceURI,32&r.__u?[o]:null,a,o??$(r),!!(32&r.__u),l),i.__v=r.__v,i.__.__k[i.__i]=i,B(a,i,l),i.__e!=o&&function e(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return e(t)}}(i)),v.length>t&&v.sort(y));R.__r=0}function W(e,t,n,i,r,o,a,l,c,s,d){var u,p,h,_,m,v,g=i&&i.__k||I,w=t.length;for(c=function(e,t,n,i,r){var o,a,l,c,s,d=n.length,u=d,p=0;for(e.__k=Array(r),o=0;o<r;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?(c=o+p,(a=e.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?L(null,a,null,null,null):S(a)?L(O,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?L(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,l=null,-1!==(s=a.__i=function(e,t,n,i){var r,o,a=e.key,l=e.type,c=t[n];if(null===c||c&&a==c.key&&l===c.type&&!(2&c.__u))return n;if(i>(null==c||2&c.__u?0:1))for(r=n-1,o=n+1;r>=0||o<t.length;){if(r>=0){if((c=t[r])&&!(2&c.__u)&&a==c.key&&l===c.type)return r;r--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&l===c.type)return o;o++}}return -1}(a,n,c,u))&&(u--,(l=n[s])&&(l.__u|=2)),null==l||null===l.__v?(-1==s&&p--,"function"!=typeof a.type&&(a.__u|=4)):s!=c&&(s==c-1?p--:s==c+1?p++:(s>c?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)null==(l=n[o])||2&l.__u||(l.__e==i&&(i=$(l)),function e(t,n,i){var r,o;
vendor: 4,161 bytes, line 1
1if(f.unmount&&f.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||G(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){f.__e(e,n)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&e(r[o],n,i||"function"!=typeof t.type);i||T(t.__e),t.__c=t.__=t.__e=void 0}(l,l));return i}(n,t,g,c,w),u=0;u<w;u++)null!=(h=n.__k[u])&&(p=-1===h.__i?N:g[h.__i]||N,h.__i=u,v=H(e,h,p,r,o,a,l,c,s,d),_=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&G(p.ref,null,h),d.push(h.ref,h.__c||_,h)),null==m&&null!=_&&(m=_),4&h.__u||p.__k===h.__k?c=function e(t,n,i){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,n=e(r[o],n,i));return n}t.__e!=n&&(n&&t.type&&!i.contains(n)&&(n=$(t)),i.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}(h,c,e):"function"==typeof h.type&&void 0!==v?c=v:_&&(c=_.nextSibling),h.__u&=-7);return n.__e=m,c}function D(e,t){return t=t||[],null==e||"boolean"==typeof e||(S(e)?e.some(function(e){D(e,t)}):t.push(e)),t}function j(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||E.test(t)?n:n+"px"}function U(e,t,n,i,r){var o;e:if("style"==t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||j(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||j(e.style,t,n[t])}}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(b,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i?n.u=i.u:(n.u=x,e.addEventListener(t,o?C:k,o)):e.removeEventListener(t,o?C:k,o);else{if("http://www.w3.org/2000/svg"==r)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]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function F(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=x++;else if(t.t<n.u)return;return n(f.event?f.event(t):t)}}}function H(e,t,n,i,r,o,a,l,c,s){var d,u,p,h,m,v,g,w,y,b,x,k,C,I,E,z,L,M=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[l=t.__e=n.__e]),(d=f.__b)&&d(t);e:if("function"==typeof M)try{if(w=t.props,y="prototype"in M&&M.prototype.render,b=(d=M.contextType)&&i[d.__c],x=d?b?b.props.value:d.__:i,n.__c?g=(u=t.__c=n.__c).__=u.__E:(y?t.__c=u=new M(w,x):(t.__c=u=new P(w,x),u.constructor=M,u.render=V),b&&b.sub(u),u.props=w,u.state||(u.state={}),u.context=x,u.__n=i,p=u.__d=!0,u.__h=[],u._sb=[]),y&&null==u.__s&&(u.__s=u.state),y&&null!=M.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=A({},u.__s)),A(u.__s,M.getDerivedStateFromProps(w,u.__s))),h=u.props,m=u.state,u.__v=t,p)y&&null==M.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),y&&null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(y&&null==M.getDerivedStateFromProps&&w!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(w,x),!u.__e&&(null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(w,u.__s,x)||t.__v==n.__v)){for(t.__v!=n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(w,u.__s,x),y&&null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(h,m,v)})}if(u.context=x,u.props=w,u.__P=e,u.__e=!1,C=f.__r,I=0,y){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),E=0;E<u._sb.length;E++)u.__h.push(u._sb[E]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++I<25);u.state=u.__s,null!=u.getChildContext&&(i=A(A({},i),u.getChildContext())),y&&!p&&null!=u.getSnapshotBeforeUpdate&&(v=u.getSnapshotBeforeUpdate(h,m)),l=W(e,S(z=null!=d&&d.type===O&&null==d.key?d.props.children:d)?z:[z],t,n,i,r,o,a,l,c,s),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),g&&(u.__E=u.__=null)}
1catch(e){if(t.__v=null,c||null!=o){if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,t.__e=l}else for(L=o.length;L--;)T(o[L])}else t.__e=n.__e,t.__k=n.__k;f.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,i,r,o,a,l,c){var s,d,u,p,h,m,v,g=n.props,w=t.props,y=t.type;if("svg"==y?r="http://www.w3.org/2000/svg":"math"==y?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o){for(s=0;s<o.length;s++)if((h=o[s])&&"setAttribute"in h==!!y&&(y?h.localName==y:3==h.nodeType)){e=h,o[s]=null;break}}if(null==e){if(null==y)return document.createTextNode(w);e=document.createElementNS(r,y,w.is&&w),l&&(f.__m&&f.__m(t,o),l=!1),o=null}if(null===y)g===w||l&&e.data===w||(e.data=w);else{if(o=o&&_.call(e.childNodes),g=n.props||N,!l&&null!=o)for(g={},s=0;s<e.attributes.length;s++)g[(h=e.attributes[s]).name]=h.value;for(s in g)if(h=g[s],"children"!=s){if("dangerouslySetInnerHTML"==s)u=h;else if(!(s in w)){if("value"==s&&"defaultValue"in w||"checked"==s&&"defaultChecked"in w)continue;U(e,s,null,h,r)}}for(s in w)h=w[s],"children"==s?p=h:"dangerouslySetInnerHTML"==s?d=h:"value"==s?m=h:"checked"==s?v=h:l&&"function"!=typeof h||g[s]===h||U(e,s,h,g[s],r);if(d)l||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),W(e,S(p)?p:[p],t,n,i,"foreignObject"==y?"http://www.w3.org/1999/xhtml":r,o,a,o?o[0]:n.__k&&$(n,0),l,c),null!=o)for(s=o.length;s--;)T(o[s]);l||(s="value","progress"==y&&null==m?e.removeAttribute("value"):void 0===m||m===e[s]&&("progress"!=y||m)&&("option"!=y||m===g[s])||U(e,s,m,g[s],r),s="checked",void 0!==v&&v!==e[s]&&U(e,s,v,g[s],r))}return e}(n.__e,t,n,i,r,o,a,c,s);return(d=f.diffed)&&d(t),128&t.__u?void 0:l}function B(e,t,n){for(var i=0;i<n.length;i++)G(n[i],n[++i],n[++i]);f.__c&&f.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){f.__e(e,t.__v)}})}function G(e,t,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){f.__e(e,n)}}function V(e,t,n){return this.constructor(e,n)}function Y(e,t,n){var i,r,o;t==document&&(t=document.documentElement),f.__&&f.__(e,t),i=t.__k,r=[],o=[],H(t,e=t.__k=z(O,null,[e]),i||N,N,t.namespaceURI,i?null:t.firstChild?_.call(t.childNodes):null,r,i?i.__e:t.firstChild,!1,o),B(r,e,o)}_=I.slice,f={__e:function(e,t,n,i){for(var r,o,a;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},m=0,P.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=A({},this.state),"function"==typeof e&&(e=e(A({},n),this.props)),e&&A(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},P.prototype.render=O,v=[],w="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,y=function(e,t){return e.__v.__b-t.__v.__b},R.__r=0,b=/(PointerCapture)$|Capture$/i,x=0,k=F(!1),C=F(!0);var Z=0;function q(e,t,n,i,r,o){t||(t={});var a,l,c=t;if("ref"in c)for(l in c={},t)"ref"==l?a=t[l]:c[l]=t[l];var s={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Z,__i:-1,__u:0,__source:r,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return f.vnode&&f.vnode(s),s}var K,J,Q,X,ee=0,et=[],en=f,ei=en.__b,er=en.__r,eo=en.diffed,ea=en.__c,el=en.unmount,ec=en.__;function es(e,t){en.__h&&en.__h(J,e,ee||t),ee=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ed(e){return ee=1,eu(eb,e)}function eu(e,t,n){var i=es(K++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):eb(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=J,!J.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);var a=i.__c.props!==e;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),o&&o.call(this,e,t,n)||a};J.u=!0;var o=J.shouldComponentUpdate,a=J.componentWillUpdate;J.componentWillUpdate=function(e,t,n){if(this.__e){var i=o;o=void 0,r(e,t,n),o=i}a&&a.call(this,e,t,n)},J.shouldComponentUpdate=r}return i.__N||i.__}function ep(e,t){var n=es(K++,3);!en.__s&&ey(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function eh(e){return ee=5,e_(function(){return{current:e}},[])}function e_(e,t){var n=es(K++,7);return ey(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ef(e,t){return ee=8,e_(function(){return e},t)}function em(){for(var e;e=et.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(eg),e.__H.__h.forEach(ew),e.__H.__h=[]}catch(t){e.__H.__h=[],en.__e(t,e.__v)}}en.__b=function(e){J=null,ei&&ei(e)},en.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ec&&ec(e,t)},en.__r=function(e){er&&er(e),K=0;var t=(J=e.__c).__H;t&&(Q===J?(t.__h=[],J.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0})):(t.__h.forEach(eg),t.__h.forEach(ew),t.__h=[],K=0)),Q=J},en.diffed=function(e){eo&&eo(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==et.push(t)&&X===en.requestAnimationFrame||((X=en.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),ev&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);ev&&(t=requestAnimationFrame(n))})(em)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.i=void 0})),Q=J=null},en.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eg),e.__h=e.__h.filter(function(e){return!e.__||ew(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],en.__e(n,e.__v)}}),ea&&ea(e,t)},en.unmount=function(e){el&&el(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{eg(e)}catch(e){t=e}}),n.__H=void 0,t&&en.__e(t,n.__v))};var ev="function"==typeof requestAnimationFrame;function eg(e){var t=J,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),J=t}function ew(e){var t=J;e.__c=e.__(),J=t}function ey(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function eb(e,t){return"function"==typeof t?t(e):t}let ex="WPgeoudc",ek="weatherv2",eC="u">typeof window&&window.API_WEATHER?window.API_WEATHER:"https://www.wp.pl/v1/weather",eN="u">typeof window&&window.API_TABS?window.API_TABS:"https://www.wp.pl/v1/tab";function eI(e){let t=e+"=",n=decodeURIComponent(document.cookie).split(";");for(let e=0;e<n.length;e++){let i=n[e];for(;" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""}let eE=/^\d{1,3}(\.\d{1,3}){3}$/;function eS(e){let{name:t,value:n,exdays:i,domain:r,sameSite:o,secure:a}=e,l=new Date;l.setTime(l.getTime()+864e5*i);let c=`${t}=${n};expires=${l.toUTCString()};path=/`;r&&(c+=`;domain=${r}`),o&&(c+=`;SameSite=${o}`),a&&(c+=";Secure"),document.cookie=c}function eA(){return eI(ex)||eI(ek)}function eT(e){eS({name:ex,value:e,domain:function(e=window.location.hostname){if(!("localhost"===e||eE.test(e))&&e.includes("."))return e}(),exdays:365,sameSite:"None",secure:!0}),eS({name:ek,value:e,exdays:365})}function ez(e,t){let[n,i]=eu(function(e,t){return"LOADING"===t.type?{state:t.type,data:void 0,error:void 0}:"ERROR"===t.type?{state:t.type,error:t.payload}:"FETCHED"===t.type?{state:t.type,error:void 0,data:t.payload}:e},{error:void 0,data:void 0,state:"LOADING"});return ep(()=>{e&&(async()=>{i({type:"LOADING"});try{let n=await fetch(e,t);if(!n.ok)throw Error(n.statusText);let r=await n.json();i({type:"FETCHED",payload:r})}catch(e){i({type:"ERROR",payload:e})}})()},[e]),n}function eL(e,t){try{localStorage&&localStorage.setItem(e,t);return}catch{return}}function eO(e){try{return localStorage?localStorage.getItem(e):null}catch{return null}}let eP=()=>{let[e,t]=ed([]);return ep(()=>{let e=eO("lastSearchedCities");if(e)try{let n=JSON.parse(e);t(n)}catch(e){console.log(e)}},[]),[e,n=>{let i=e.filter(e=>e.geonameid!==n.geonameid).slice(0,3),r=[n,...i];eL("lastSearchedCities",JSON.stringify(r)),t(r)}]},e$=e=>{let{intervals:t,airQuality:n,...i}=e;return e?{airQuality:n&&n.level,intervals:Array.isArray(t)&&t.length?t:[],...i,time:"00:00"}:null},eM=()=>q("span",{className:"mx-1.5 mb-1 inline-block rotate-45 border-b border-r border-solid border-inherit p-[3px]"}),eR=()=>q("span",{className:"mx-1 mb-1 inline-block rotate-45 border-b border-l-0 border-r border-t-0 border-solid border-[var(--wp-weather-text-primary,#059)] p-0.5"}),eW=()=>q("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",transform:"matrix(-1,0,0,1,0,0)",children:[q("path",{d:"M19.0711 12.0002L4.92893 12.0002",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"}),q("path",{d:"M12 19.0713L4.92893 12.0002L12 4.92915",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"})]});function eD({areaId:e,useTime:t=!1,skip:n=!1,onRegistered:i}){let r=eh(null);return ep(()=>
1{if(n)return;let o=r.current;if(!o)return;let a=o.querySelectorAll("[data-vab-box]");if(a.length)try{let n={type:"area",areaid:e,length:a.length},r=window.WP.pwp.registerContainer(n);a.forEach((n,i)=>{let o={type:"button",areaid:e,index:i,target_url:n.getAttribute("href")||"",id:n.dataset.vabBox||""};window.WP.pwp.registerBox(n,o,r,t?{useTime:!0}:void 0)}),null==i||i()}catch(t){console.log(`Error registering ${e}: ${String(t)}`)}},[n]),r}let ej=e=>{let{iconId:t,cdnURL:n="https://sgwp.wpcdn.pl/static/images/weather/",messUrl:i,...r}=e,o=function(e){return e in eU?eU[e]:null}(t);if(!o)return null;let a=`${n}${o.id}.svg`;return q("img",{src:i?i(a):a,...r,alt:o.alt||"pogoda"})},eU={1:{id:1,night:!1,heavy:!1,name:"freezing light rain",alt:"marznÄ
cy lekki deszcz",precipitation:"RAIN",storm:!1},2:{id:2,night:!1,heavy:!1,name:"freezing rain",alt:"marznÄ
cy deszcz",precipitation:"HAIL",storm:!1},3:{id:3,night:!1,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},4:{id:4,night:!1,heavy:!0,name:"heavy snow",alt:"duże opady Åniegu",precipitation:"SNOW",storm:!1},5:{id:5,night:!1,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},6:{id:6,night:!1,heavy:!1,name:"light sleet",alt:"sÅaby deszcz ze Åniegiem",precipitation:"SLEET",storm:!1},7:{id:7,night:!1,heavy:!1,name:"sleet",alt:"deszcz ze Åniegiem",precipitation:"SLEET",storm:!1},8:{id:8,night:!1,heavy:!1,name:"snow",alt:"Ånieg",precipitation:"SNOW",storm:!1},9:{id:9,night:!1,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},10:{id:10,night:!1,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},11:{id:11,night:!1,heavy:!1,name:"cloudy",alt:"",precipitation:"NONE",storm:!1},12:{id:12,night:!1,heavy:!1,name:"fog",alt:"",precipitation:"NONE",storm:!1},13:{id:13,night:!0,heavy:!1,name:"freezing drizzle",alt:"",precipitation:"RAIN",storm:!1},14:{id:14,night:!0,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},15:{id:15,night:!0,heavy:!0,name:"heavy sleet",alt:"",precipitation:"SLEET",storm:!1},16:{id:16,night:!0,heavy:!0,name:"heavy snow",alt:"",precipitation:"SNOW",storm:!1},17:{id:17,night:!0,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},18:{id:18,night:!0,heavy:!1,name:"light sleet",alt:"",precipitation:"SLEET",storm:!1},19:{id:19,night:!0,heavy:!1,name:"rain",alt:"",precipitation:"RAIN",storm:!1},20:{id:20,night:!0,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},21:{id:21,night:!0,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},22:{id:22,night:!0,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},23:{id:23,night:!0,heavy:!1,name:"cloudy",alt:"",precipitation:"NONE",storm:!1},24:{id:24,night:!0,heavy:!1,name:"fog",alt:"",precipitation:"NONE",storm:!1},25:{id:25,night:!0,heavy:!1,name:"partly fog",alt:"",precipitation:"NONE",storm:!1},26:{id:26,night:!0,heavy:!1,name:"various clouds",alt:"",precipitation:"NONE",storm:!1},27:{id:27,night:!0,heavy:!1,name:"freezing drizzle",alt:"",precipitation:"HAIL",storm:!1},28:{id:28,night:!0,heavy:!1,name:"freezing rain",alt:"",precipitation:"RAIN",storm:!1},29:{id:29,night:!0,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},30:{id:30,night:!0,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},31:{id:31,night:!0,heavy:!1,name:"light sleet",alt:"",precipitation:"SLEET",storm:!1},32:{id:32,night:!0,heavy:!1,name:"light snow",alt:"",precipitation:"SNOW",storm:!1},33:{id:33,night:!0,heavy:!1,name:"rain",alt:"",precipitation:"RAIN",storm:!1},34:{id:34,night:!0,heavy:!1,name:"sleet",alt:"",precipitation:"SLEET",storm:!1},35:{id:35,night:!0,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},36:{id:36,night:!0,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},37:{id:37,night:!0,heavy:!1,name:"night",alt:"",precipitation:"NONE",storm:!1},38:{id:38,night:!1,heavy:!1,name:"freezing drizzle",alt:"",precipitation:"HAIL",storm:!1},39:{id:39,night:!1,heavy:!1,name:"freezing rain",alt:"",precipitation:"HAIL",storm:!1},40:{id:40,night:!1,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},41:{id:41,night:!1,heavy:!1,name:"heavy sleet",alt:"",precipitation:"SLEET",storm:!1},42:{id:42,night:!1,heavy:!1,name:"heavy snow",alt:"",precipitation:"SNOW",storm:!1}
1,43:{id:43,night:!1,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},44:{id:44,night:!1,heavy:!1,name:"o_rain",alt:"",precipitation:"RAIN",storm:!1},45:{id:45,night:!1,heavy:!1,name:"sleet",alt:"",precipitation:"SLEET",storm:!1},46:{id:46,night:!1,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},47:{id:47,night:!1,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},48:{id:48,night:!1,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0},49:{id:49,night:!1,heavy:!1,name:"overcast",alt:"",precipitation:"NONE",storm:!1},50:{id:50,night:!1,heavy:!1,name:"partly fog",alt:"",precipitation:"NONE",storm:!1},51:{id:51,night:!1,heavy:!1,name:"sunny",alt:"",precipitation:"NONE",storm:!1},52:{id:52,night:!1,heavy:!1,name:"various clouds",alt:"",precipitation:"NONE",storm:!1},53:{id:53,night:!1,heavy:!1,name:"freezing rain",alt:"",precipitation:"HAIL",storm:!1},54:{id:54,night:!1,heavy:!0,name:"heavy drizzle",alt:"",precipitation:"RAIN",storm:!1},55:{id:55,night:!1,heavy:!0,name:"heavy rain",alt:"ulewa",precipitation:"RAIN",storm:!1},56:{id:56,night:!1,heavy:!1,name:"light drizzle",alt:"",precipitation:"RAIN",storm:!1},57:{id:57,night:!1,heavy:!1,name:"light rain",alt:"lekki deszcz",precipitation:"RAIN",storm:!1},58:{id:58,night:!1,heavy:!1,name:"light sleet",alt:"",precipitation:"SLEET",storm:!1},59:{id:59,night:!1,heavy:!1,name:"light snow",alt:"",precipitation:"SNOW",storm:!1},60:{id:60,night:!1,heavy:!1,name:"rain",alt:"",precipitation:"RAIN",storm:!1},61:{id:61,night:!1,heavy:!1,name:"showers",alt:"",precipitation:"RAIN",storm:!1},62:{id:62,night:!1,heavy:!1,name:"sleet",alt:"",precipitation:"SLEET",storm:!1},63:{id:63,night:!1,heavy:!1,name:"snow",alt:"",precipitation:"SNOW",storm:!1},64:{id:64,night:!1,heavy:!1,name:"snow thunder storms",alt:"burze z piorunami i opady Åniegu",precipitation:"SNOW",storm:!0},65:{id:65,night:!1,heavy:!1,name:"thunder storms",alt:"burze z piorunami",precipitation:"RAIN",storm:!0}};function eF(e,t=!1){return(function(e,t=!1){return Object.values(eU).filter(n=>n.precipitation===e&&n.storm===t)})(e,t).map(e=>e.id)}function eH(e,t,n){void 0===n&&(n={});var i,r,o,a=null!=(i=n.isImmediate)&&i,l=null!=(r=n.callback)&&r,c=n.maxWait,s=Date.now(),d=[],u=function(){var n=[].slice.call(arguments),i=this;return new Promise(function(r,u){var p=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout(function(){if(o=void 0,s=Date.now(),!a){var t=e.apply(i,n);l&&l(t),d.forEach(function(e){return(0,e.resolve)(t)}),d=[]}},function(){if(void 0!==c){var e=Date.now()-s;if(e+t>=c)return c-e}return t}()),p){var h=e.apply(i,n);return l&&l(h),r(h)}d.push({resolve:r,reject:u})})};return u.cancel=function(e){void 0!==o&&clearTimeout(o),d.forEach(function(t){return(0,t.reject)(e)}),d=[]},u}let eB=()=>parseInt(eO("lastGeo")||"",10)||0,eG=()=>{eL("lastGeo",String(new Date().getTime()))},eV=(e=36e5)=>{let t=new Date(eB()).getTime();return Date.now()-t>e},eY=e=>!(!eV()||e===null.denied);async function eZ(e){if(!(window&&"permissions"in window.navigator))return null.denied;let{permissions:t}=window.navigator;return(await t.query({name:e})).state}function eq(e,t){try{if(t){window.WP.geo.setGeolocation(t,e);return}navigator.geolocation.getCurrentPosition(t=>{window.WP.geo.setGeolocation(t,e)})}catch(e){console.error(e)}}async function eK(){return new Promise((e,t)=>{navigator.geolocation.getCurrentPosition(e,t)})}function eJ(e){let[t,n]=ed(!1);return ep(()=>{let t=({key:t})=>{t===e&&n(!1)};function i({key:t}){t===e&&n(!0)}return window.addEventListener("keydown",i),window.addEventListener("keyup",t),()=>{window.removeEventListener("keydown",i),window.removeEventListener("keyup",t)}},[e]),t}let eQ=()=>q("div",{className:"py-2.5 text-center",children:q("div",{className:"inline-block h-9 w-9",children:q("div",{className:"flex h-6 w-6 animate-spin items-center justify-between",children:[q("div",{className:"h-1.5 w-1.5 rounded-md bg-[#059]"}),q("div",{className:"h-1.5 w-1.5 rounded-md bg-[#059]"}),q("div",{className:"h-1.5 w-1.5 rounded-md bg-[#059]"})]})})});function eX(e,t){var n,i;if(!(null!=(i=null==(n=null==window?void 0:window.WP)?void 0:n.stat)&&i.wave)){console.log(e,t);return}try{window.WP.stat.wave(e,t)}catch(e){console.error({error:e,message:"problem with sending event show - wpjslib"})}}let e0="weather-widget";function e1(e){let{event:t,device:n,areaId:i}=e,r={event:t,device:n,areaid:i};"desktop"===e.device&&(r.location=e.location),eX(e0,r)}function e2(e){let{event:t,device:n,localization:i,areaId:r}=e,o={event:t,device:n,areaid:r};i&&(o.localization=i),"desktop"===e.device&&(o.location=e.location),eX(e0,o)}
1let e3=(e,t,n)=>{eX(e0,{event:"auto_localization",device:e,areaid:n,...t})},e5=async e=>{let{coords:{latitude:t,longitude:n,accuracy:i}}=e??await eK(),r=await (await fetch(`https://pogoda.wp.pl/v2/api/geoname/lat/${t}/lon/${n}`)).json();return{city:{geonameid:Number(r.geonameid),name:r.name,country:r.country,admin1:r.admin1,admin2:r.admin2},coords:{latitude:t,longitude:n,accuracy:i}}},e7=e=>new Promise((t,n)=>{eZ("geolocation").then(async i=>{if(eY(i))try{let n=await eK();eq(e,n);let i=await e5(n);eG(),t(i)}catch(e){n(e)}else n({message:"auto-geolocation not available"})}).catch(e=>{n(e)})}),e4=(e,t)=>new Promise((n,i)=>{e7(t).then(i=>{e3(e,i.city,t),eL("WPGeo","1"),n(i)}).catch(e=>{i(e)})}),e6=({message:e})=>q("div",{className:"pb-2 text-sm text-[#8f8f8f]",children:e});function e8(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i)}return r}(e))&&(i&&(i+=" "),i+=t);return i}let e9=({onClick:e,totalElements:t})=>q("button",{className:"mt-4 flex h-10 w-full cursor-pointer items-center justify-center gap-1 rounded-lg bg-[--color-blue-400] text-base font-medium text-white hover:underline",type:"button",onClick:e,children:["WiÄcej",q("span",{children:["(",t,")"]})]}),te=e=>{let{setCurrentCityIndex:t,searchedCities:n=[],onCityChange:i,loadMoreCities:r,totalElements:o,searchCityLoading:a,isLastSearchedCities:l,onToggleShowMore:c,sourceAreaId:s,widgetLocation:d}=e,u=!!(o&&o>1&&!a);return n.length||a?q("div",{className:"relative max-h-80 flex-1 overflow-auto rounded-lg bg-[var(--wp-weather-bg,initial)]",children:[l&&n&&n.length>0&&q("div",{className:"py-2 text-base text-[#22242d] dark:text-white",children:"Ostatnio sprawdzane:"}),q("ul",{className:e8(a&&"opacity-50","relative cursor-pointer"),"data-vab-box":null.selectLocation,children:[n&&n.length>0&&n.map((e,n)=>q(tt,{id:(n+1).toString(),geonameid:e.geonameid,onCityChange:i,onToggleShowMore:c,voivodeshipOrState:e.admin1,city:e.name,country:e.country,setCurrentCityIndex:t,district:e.admin2,isLastSearchedCities:l,sourceAreaId:s,widgetLocation:d},`${e.geonameid}_${n}`)),a&&q("div",{className:e8(o&&"absolute bottom-40 left-[calc(50%-35px)]","py-2.5"),children:q(eQ,{})}),u&&o&&n.length>0&&q(e9,{totalElements:o,onClick:r})]})]}):null},tt=e=>{let{setCurrentCityIndex:t,city:n,country:i,voivodeshipOrState:r,onCityChange:o,id:a,geonameid:l,onToggleShowMore:c,district:s,isLastSearchedCities:d,sourceAreaId:u,widgetLocation:p}=e;return q("li",{className:"group w-full py-2 text-base",id:a,onMouseDown:()=>{o({geonameid:l,name:n,country:i,admin1:r,admin2:s}),c(!1),e2({event:d?"history_click":"search_list_click",device:"desktop",localization:n,location:p,areaId:u})},onMouseEnter:e=>{t&&t(parseInt(e.currentTarget.id))},children:[q("span",{className:"mr-1 break-words text-[--color-blue-400] group-hover:underline dark:text-white",children:n}),q("span",{className:"text-xs text-[#636880] dark:text-[#ccd1dd]",children:(()=>{if("Polska"===i&&s){let e=s.includes("powiat")?s.replace("powiat","pow."):`pow. ${s}`;return`(woj. ${r} / ${e})`}return"Polska"===i?`(woj. ${r})`:`(${i} - ${r})`})()})]})},tn=async(e,t=0,n)=>{try{return await (await fetch(`https://pogoda.wp.pl/v2/api/geoname/search/${e}?page=${t}&size=${n}`)).json()}catch(e){console.log(e)}},ti=async e=>{let{coords:t}=e;try{return await (await fetch(`https://pogoda.wp.pl/v2/api/geoname/lat/${t.latitude}/lon/${t.longitude}`)).json()}catch(e){console.log(e)}},tr=e=>q("svg",{fill:"none",viewBox:"0 0 41 41",xmlns:"http://www.w3.org/2000/svg",...e,children:[q("path",{d:"m30.75 11.81c0 7.1929-10.25 18.085-10.25 18.085s-10.25-10.892-10.25-18.085c0-2.4527 1.0799-4.805 3.0022-6.5393 1.9222-1.7343 4.5293-2.7087 7.2478-2.7087s5.3256 0.97434 7.2478 2.7087c1.9223 1.7343 3.0022 4.0866 3.0022 6.5393z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.7"}),q("path",{d:"m20.501 16.23c1.8869 0 3.4166-1.5297 3.4166-3.4167s-1.5297-3.4167-3.4166-3.4167c-1.887 0-3.4167 1.5297-3.4167 3.4167s1.5297 3.4167 3.4167 3.4167z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.7"}),q("path",{d:"m11.959 29.897c-1.7083 0-5.125 0.6597-5.125 3.1318 0 2.0443 6.1188 3.7016 13.667 3.7016 7.5478 0 13.667-1.6573 13.667-3.7016s-2.5625-3.1318-4.2708-3.1318",stroke:"currentColor","stroke-linecap":"round","stroke-width":"1.7"})]}),to=e=>{let{onClick:t}=e;return q("button",{type:"button",className:"flex h-10 w-full cursor-pointer items-center justify-center gap-2 rounded-lg border-none bg-[--color-blue-400] text-base font-medium text-white no-underline hover:underline",onClick:t,"data-vab-box":null.detectLocation,children:[q(tr,{class:"size-6 text-white"}),q("div",{children:"Rozpoznaj lokalizacjÄ"})]})};function ta(e){let{title:t,cityName:n,onModalOpen:i}=e;return q("div",{className:"flex w-full justify-between gap-4 text-base/5 font-bold text-white",children:[q("span",{className:"flex-none",children:t}),q("button",{type:"button",className:"inline-flex max-w-full cursor-pointer items-center gap-1 overflow-hidden rounded border-none bg-[--bg-secondary] px-1.5 text-[--text-secondary] hover:underline",onClick:i,"data-vab-box":null.changeLocation,children:[q("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n}),q("span",{className:"mx-1.5 mb-1 inline-block rotate-45 border-b border-r border-solid border-inherit p-[3px]"})]})]})}let tl=e=>q("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...e,children:q("path",{d:"M10.653 15.858a5.732 5.732 0 1 0 0-11.464 5.732 5.732 0 0 0 0 11.464m9.927 3.748-5.4-5.4",stroke:"currentColor","stroke-width":"1.7","stroke-linecap":"round","stroke-linejoin":"round"})}),tc=e=>
1{let{onChange:t,onFocus:n,onBlur:i,onCityChange:r,cityObj:o,onToggleShowMore:a,inputRef:l,header:c,city:s,sourceAreaId:d}=e,u=c?"header":"widget",[p,h]=ed(s||"");return q("div",{className:"relative",children:[q("input",{className:"h-10 w-full rounded-lg border border-solid border-[--color-blue-400] bg-transparent pl-5 pr-10 text-base text-[--color-blue-400] shadow-none outline-none placeholder:text-[#636880] dark:border-white dark:text-white dark:placeholder:text-[#ccd1dd]",ref:l,type:"text",placeholder:"Wpisz minimum 3 znaki",onChange:function(e){h(e.currentTarget.value),"function"==typeof t&&t(e)},onFocus:function(){p===s&&h(""),"function"==typeof n&&n()},onBlur:i,value:p}),q("div",{onClick:function(){o&&void 0===o.geonameid||(o&&(r&&o&&r(o),e2({event:"search_click",device:"desktop",localization:o.name,location:u,areaId:d})),a&&a())},className:"absolute right-4 top-2 cursor-pointer","data-vab-box":null.searchLocation,children:q(tl,{className:"text-[--color-blue-400] dark:text-white"})})]})},ts=({onSearchInputChange:e,onInputFocus:t,onInputBlur:n,onCityChange:i,searchedCities:r,currentInputValue:o,onToggleShowMore:a,currentCityIndex:l,setInputFocused:c,inputRef:s,header:d,city:u,sourceAreaId:p})=>{let h=d?"header":"widget",_={geonameid:r[l]&&r[l].geonameid,name:r[l]&&r[l].name,country:r[l]&&r[l].country,admin1:r[l]&&r[l].admin1,admin2:r[l]&&r[l].admin2};return q("form",{onSubmit:e=>{e.preventDefault(),o.length>2&&(i(_),a(!0),c(!1),e2({event:"search_list_click",device:"desktop",localization:_.name,location:h,areaId:p}))},children:q(tc,{onChange:e,onFocus:t,onBlur:n,onCityChange:i,cityObj:_,onToggleShowMore:a,inputRef:s,header:d,city:u,sourceAreaId:p})})},td=e=>{let{location:t,onCityChange:n,city:i,lastSearchedCities:r=[],onClose:o,disableAutoGeolocation:a=!1,triggerRef:l,sourceAreaId:c}=e,s=eD({areaId:null.weatherLayer,useTime:!0}),[d,u]=ed([]),[p,h]=ed(!1),[_,f]=ed(!1),[m,v]=ed(0),[g,w]=ed(0),[y,b]=ed(!1),[x,k]=ed(""),[C,N]=ed(1),I=eJ("ArrowUp"),E=eJ("ArrowDown"),S=eh(null);function A(){u([]),w(0),N(1)}ep(()=>{I&&N(e=>e>1?e-1:e),E&&N(e=>e<d.length?e+1:e)},[I,E,d.length]),ep(()=>{"header"===t||a||e4("desktop",c).then(e=>{let{city:t}=e;n(t)}).catch(e=>console.log(e.message))},[t,n,a,c]);let T=ef(function(e){let{current:t}=s,n=l.current;!t||e.target===t||t.contains(e.target)||null!=n&&n.contains(e.target)||(o(),k(""),b(!1),A())},[t,o]);ep(()=>(document.addEventListener("mousedown",T),document.addEventListener("touchstart",T),()=>{document.removeEventListener("mousedown",T),document.removeEventListener("touchstart",T)}),[T]);let z=async(e,t=0)=>{let n=await tn(e,t,6);!n||n.error||setTimeout(()=>{0===t?(u(n.content),w(n.totalElements-6),v(0)):(u([...d,...n.content]),w(g-6)),f(!1)},100)},L=ef(eH(e=>z(e),300),[]),P=async e=>{x.length<1&&e1({event:"search_type",device:"desktop",location:t,areaId:c});let n=e.currentTarget.value;k(n),A(),n.length>2&&(f(!0),await L(n))},$=async()=>{e1({event:"search_list_more",device:"desktop",location:t,areaId:c}),f(!0),v(m+1),await z(x,m+1),S.current&&S.current.focus()},M=async e=>{let i=eO("WPGeo");eL("WPGeo","1"),eq(c,e);let r=await ti(e);if(!r)return null;let{geonameid:a,name:l,country:s,admin1:d,admin2:u}=r;o(),h(!1),n({geonameid:a,name:l,country:s,admin1:d,admin2:u}),eG(),e2({event:"1"!==i?"localization_approved":"localization_change",device:"desktop",localization:l,location:t,areaId:c})};async function R(){if(e1({event:"recognize",device:"desktop",location:t,areaId:c}),navigator.geolocation){A(),k(""),h(!0);try{let e=await eK();await M(e)}catch{navigator.permissions?await eZ("geolocation")!==null.granted?(e1({event:"localization_denied",device:"desktop",location:t,areaId:c}),h(!1),alert("Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki.")):eL("WPGeo","0"):(e1({event:"localization_unavailable",device:"desktop",location:t,areaId:c}),h(!1))}}}let W=e=>{k(""),b(!1),A(),n(e)};return q("div",{ref:s,className:"absolute left-[--popup-offset-left] top-[--popup-offset-top] z-50 flex w-[360px] cursor-auto flex-col gap-4 roun
1ded-lg bg-[var(--wp-weather-bg,#fff)] p-4",children:[q("div",{className:"text-lg/[21px] font-bold text-[#22242d] dark:text-white",children:"ZmieÅ lokalizacjÄ"}),navigator.geolocation&&q(to,{onClick:R}),p&&q(eQ,{}),!p&&q(O,{children:[q(ts,{onSearchInputChange:P,onCityChange:W,onInputBlur:()=>{b(!1)},onInputFocus:()=>{x.length<1&&e1({event:"search_enter",device:"desktop",location:t,areaId:c}),b(!0)},searchedCities:d,currentInputValue:x,onToggleShowMore:function(e=!1){A(),k(""),e&&o()},currentCityIndex:C-1,setInputFocused:b,inputRef:S,header:"header"===t,city:i,sourceAreaId:c}),x.length>2&&y&&d&&!d.length&&!_&&q(e6,{message:"Nie znaleziono wynik\xf3w."})]}),!p&&q(te,{onCityChange:W,onToggleShowMore:o,searchCityLoading:_&&x.length>2,searchedCities:x.length<3&&!y?r:d&&x.length>2?d:!r.length||d.length||y?[]:r,isLastSearchedCities:r&&r.length>0&&0===x.length&&!y,totalElements:g,loadMoreCities:$,setCurrentCityIndex:N,sourceAreaId:c,widgetLocation:t})]})},tu=e=>{let{city:t,location:n="header",...i}=e,[r,o]=ed(!1),a=eh(null),l=()=>{o(e=>!e)};return q("div",{ref:a,className:"relative w-full",children:[q("div",{"data-vab-box":null.changeLocation,className:"header"===n?"wp-weather-header-location":void 0,children:q(th,{onClick:l,city:t,location:n})}),r&&q(td,{onClose:l,city:t,location:n,triggerRef:a,...i})]})};function tp(e){return q("div",{onClick:e.onClick,className:"flex items-center overflow-hidden text-[var(--wp-weather-text-primary,initial)] no-underline hover:cursor-pointer hover:underline",children:e.children})}function th(e){let{onClick:t,city:n,location:i}=e;return"locationWidget"===i?q("button",{onClick:e.onClick,className:"flex items-center overflow-hidden bg-transparent text-white no-underline hover:cursor-pointer hover:underline",children:[q("div",{className:"line-clamp-1 max-w-[230px] text-left text-base/5 font-bold",children:n}),q(eM,{})]}):"header"===i?q(tp,{onClick:t,location:i,children:[q("span",{className:"inline-block max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap xl:max-w-[100px]",children:n}),q(eR,{})]}):q(ta,{title:"POGODA DLA:",cityName:n,onModalOpen:e.onClick})}let t_=e=>{let t=null.find(t=>t.id===e);return t?t.slug:"warszawa"},tf=e=>`https://pogoda.wp.pl/pogoda-na-dzis/${t_(e)}/${e}`,tm=e=>`https://pogoda.wp.pl/pogoda-na-jutro/${t_(e)}/${e}`,tv=e=>`https://pogoda.wp.pl/pogoda-dlugoterminowa/${t_(e)}/${e}`;function tg(e){let t=tf(e);!function(e){try{let t=window.scrollY/document.body.clientHeight*100;window.WP.stat.wave("headerClick",{link:e,scrolledSoFar:t})}catch(e){console.log(e)}}(t);let n=window.open(t,"_blank");(!n||n.closed||typeof n.closed>"u")&&(window.location.href=t)}function tw(e){let{onCityChange:t,widgetLocation:n="headerLink",cityId:i,city:r,temperature:o,sourceAreaId:a}=e;async function l(e){let i=eO("WPGeo");eL("WPGeo","1"),eq(a,e);let r=await ti(e);if(!r)return null;let{geonameid:o,name:l,country:c,admin1:s,admin2:d}=r;return t({geonameid:o,name:l,country:c,admin1:s,admin2:d}),eG(),e2({event:"1"!==i?"localization_approved":"localization_change",device:"desktop",localization:l,location:n,areaId:a}),o}async function c(){if(e1({event:"recognize",device:"desktop",location:n,areaId:a}),!navigator.geolocation||!navigator.permissions){e1({event:"localization_unavailable",device:"desktop",location:n,areaId:a}),tg(i);return}try{if(await eZ("geolocation")!==null.prompt){tg(i);return}let e=await eK(),t=await l(e);tg(t||i)}catch(e){tg(i),console.error(e)}}return q(O,{children:[q("button",{onClick:c,type:"button",className:"wp-weather-container-link","aria-label":r&&o?`${r} ${o}\xb0`:""}),q("button",{onClick:c,type:"button",className:"wp-weather-cta","data-vab-box":null.weatherDetails,children:["Sprawdź pogodÄ na 7 dni ",q(eW,{})]})]})}let ty=e=>{let{cityId:t,city:n,temperature:i,iconId:r,onCityChange:o,lastSearchedCities:a,disableAutoGeolocation:l=!1,messUrl:c,registeredDataRef:s,sourceAreaId:d}=e;return q("div",{className:"size-full",ref:eD({areaId:null.weather,useTime:!0,skip:s.current.box,onRegistered:()=>{s.current.box=!0}}),children:[q("div",{className:"wp-weather-header",children:q("div",{className:"relative flex h-11 items-center py-1 xl:gap-4",children:q("div",{className:"flex cursor-pointer py-1",children:[q("div",{className:"flex items-center",children:r?q(ej,{className:"h-8 w-9 text-transparent",iconId:r,messUrl:c}):null}),q("div",{className:"ml-1 text-[10px]/none text-white",children:[q("div",{className:"relative z-[11] mb-0.5 [--popup-offset-left:-20px] [--popup-offset-top:-8px]",children:q(tu,{onCityChange:o,city:n,lastSearchedCities:a,location:"header",disableAutoGeolocation:l,sourceAreaId:d})}),q("span",{className:"wp-weather-temperature-info text-lg/none no-underline",children:[i,"\xb0"]})]})]})})}),q(tw,{onCityChange:o,cityId:t,city:n,temperature:i,sourceAreaId:d})]})};function tb(e){return q("a",{href:e.href,target:"_blank",rel:"noopener",className:"wp-weather-cta",children:["Sprawdź pogodÄ na 7 dni ",q(eW,{})]})}let tx=e=>{let{lastSearchedCities:t,onCityChange:n,data:i,loadingState:r,disableAutoGelocation:o=!1,messUrl:a,sourceAreaId:l}=e,c=eh(null);return q("div",{className:"size-full",children:q(tk,{loadingState:r,children:i?q(ty,{disableAutoGeolocation:o,lastSearchedCities:t,...i,onCityChange:n,messUrl:a,registeredDataRef:c,sourceAreaId:l}):null})})},tk=e=>{let{children:t,loadingState:n}=e;return"FETCHED"===n?t:q(tb,{href:"https://pogoda.wp.pl"})};function tC(e){let{title:t,cityName:n,onModalOpen:i}=e;return q("div",{className:"flex w-full justify-between gap-4 text-lg/[21px] font-bold min-[400px]:text-xl",children:[q("span",{className:"flex-none",children:t}),q("button",{type:"button",className:"inline-flex max-w-full items-center gap-1 overflow-hidden rounded border-none bg-[--bg-secondary] px-1.5 text-[--text-secondary]",onClick:i,"data-vab-box":null.changeLocation,children:[q("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:n}),q("span",{className:"mx-1.5 mb-1 inline-block flex-none rotate-45 border-b border-r border-solid border-inherit p-[3px]"})]})]})}function tN(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}function tI(){return document.body.classList.contains("wp-scroll-lock-ios")}function tE(e){return ep(()=>((function(){if(!tN()){document.body.classList.add("wp-scroll-lock");return}if(tI())return;let e=window.pageYOffset;document.body.classList.add("wp-scroll-lock-ios"),document.body.style.top=`-${e}px`})(),()=>{(function(){if(!tN()){document.body.classList.remove("wp-scroll-lock");return}if(!tI())return;let e=document.body.style.top;document.body.classList.remove("wp-scroll-lock-ios"),document.body.style.top="",window.scrollTo(0,-1*parseInt(e||"0"))})()})),q("div",{children:e.children})}function tS(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function tA(e,t){this.props=e,this.context=t}(tA.prototype=new P).isPureReactComponent=!0,tA.prototype.shouldComponentUpdate=function(e,t){return tS(this.props,e)||tS(this.state,t)};var tT=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tT&&tT(e)};var tz=f.__e;f.__e=function(e,t,n,i){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}tz(e,t,n,i)};var tL=f.unmount;function tO(){this.__u=0,this.o=null,this.__b=null}function tP(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function t$(){this.i=null,this.l=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),tL&&tL(e)},(tO.prototype=new P).__c=function(e,t){var n=t.__c,i=this;null==i.o&&(i.o=[]),i.o.push(n);var r=tP(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(l):l())};n.__R=a;var l=function(){if(!--i.__u){if(i.state.__a){var e,t=i.state.__a;i.__v.__k[0]=function e(t,n,i){return t&&i&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=i)),t}(t,t.__c.__P,t.__c.__O)}for(i.setState({__a:i.__b=null});e=i.o.pop();)e.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},tO.prototype.componentWillUnmount=function(){this.o=[]},tO.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}
1(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&z(O,null,e.fallback);return r&&(r.__u&=-33),[z(O,null,t.__a?null:e.children),r]};var tM=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]}};function tR(e){return this.getChildContext=function(){return e.context},e.children}function tW(e){var t=this,n=e.h;t.componentWillUnmount=function(){Y(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),Y(z(tR,{context:t.context},e.__v),t.v)}function tD(e,t){var n=z(tW,{__v:e,h:t});return n.containerInfo=t,n}(t$.prototype=new P).__a=function(e){var t=this,n=tP(t.__v),i=t.l.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),tM(t,e,i)):r()};n?n(o):o()}},t$.prototype.render=function(e){this.i=null,this.l=new Map;var t=D(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},t$.prototype.componentDidUpdate=t$.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){tM(e,n,t)})};var tj="u">typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,tU=/^(?: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]/,tF=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tH=/[A-Z0-9]/g,tB="u">typeof document;P.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(P.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var tG=f.event;function tV(){}function tY(){return this.cancelBubble}function tZ(){return this.defaultPrevented}f.event=function(e){return tG&&(e=tG(e)),e.persist=tV,e.isPropagationStopped=tY,e.isDefaultPrevented=tZ,e.nativeEvent=e};var tq={enumerable:!1,configurable:!0,get:function(){return this.class}},tK=f.vnode;f.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={},r=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||tB&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var l,c=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===c&&"no"===a?a=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?o="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||(l=t.type,("u">typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(l))?"onfocus"===c?o="onfocusin":"onblur"===c?o="onfocusout":tF.test(o)&&(o=c):c=o="oninput":r&&tU.test(o)?o=o.replace(tH,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===c&&i[o=c]&&(o="oninputCapture"),i[o]=a}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=D(t.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==n&&null!=i.defaultValue&&(i.value=D(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",tq)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=tj,tK&&tK(e)};var tJ=f.__r;f.__r=function(e){tJ&&tJ(e),e.__c};var tQ=f.diffed;f.diffed=function(e){tQ&&tQ(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)};let tX=e=>{let{id:t,children:n}=e;return tD(n,function(e){let t=eh(null);return ep(()=>{let n=document.getElementById(e),i=n||function(e){let t=document.createElement("div");return t.setAttribute("id",e),t}(e);return n||document.body.appendChild(i),t.current&&i.appendChild(t.current),()=>{t.current&&t.current.remove(),i.childElementCount||i.remove()}},[e]),t.current||(t.current=document.createElement("div")),t.current}(t))};function t0(e){let{setCurrentCityIndex:t,searchedCities:n=[],onCityChange:i,loadMoreCities:r,totalElements:o,searchCityLoading:a,isLastSearchedCities:l,onToggleShowMore:c,sourceAreaId:s}=e,d=!!(o&&o>1&&!a);return q("div",{className:"relative max-h-none flex-1 overflow-auto px-4 pb-4",children:[l&&n&&n.length>0&&q("div",{className:"py-2 text-base text-[#22242d] dark:text-white",children:"Ostatnio sprawdzane"}),q("ul",{className:e8("relative",a&&"opacity-50"),"data-vab-box":null.selectLocation,children:[n&&n.length>0&&n.map((e,n)=>q(t1,{id:(n+1).toString(),geonameid:e.geonameid,onCityChange:i,onToggleShowMore:c,voivodeshipOrState:e.admin1,city:e.name,country:e.country,setCurrentCityIndex:t,isLastSearchedCities:l,district:e.admin2,sourceAreaId:s},`${e.geonameid}_${n}`)),a&&q("div",{className:e8("py-2.5",o&&"absolute bottom-40 left-[calc(50%-35px)] top-[calc(50%-35px)]"),children:q(eQ,{})}),d&&o&&n.length>0&&q(e9,{totalElements:o,onClick:r})]})]})}function t1(e){let{isLastSearchedCities:t,setCurrentCityIndex:n,city:i,country:r,voivodeshipOrState:o,onCityChange:a,id:l,geonameid:c,onToggleShowMore:s,district:d,sourceAreaId:u}=e;return q("li",{className:"w-full py-2 text-base text-[--color-blue-400] dark:text-white",id:l,onMouseDown:()=>{a({geonameid:c,name:i,country:r,admin1:o,admin2:d}),s(!1),e2({event:t?"history_click":"search_list_click",device:"mobile",localization:i,areaId:u})},onMouseEnter:e=>{n&&n(parseInt(e.currentTarget.id))},children:[q("span",{className:"mr-1 break-words",children:i}),q("span",{className:"text-xs text-[#636880] dark:text-[#ccd1dd]",children:(()=>
1{if("Polska"===r&&d){let e=d.includes("powiat")?d.replace("powiat","pow."):`pow. ${d}`;return`(woj. ${o} / ${e})`}return"Polska"===r?`(woj. ${o})`:`(${r} - ${o})`})()})]})}let t2=e=>{let{onChange:t,onFocus:n,onBlur:i,onCityChange:r,city:o,cityObj:a,onToggleShowMore:l,inputRef:c,sourceAreaId:s}=e;return q("div",{className:"relative",children:[q("input",{className:"mb-2 h-10 w-full rounded-lg border border-solid border-[--color-blue-400] bg-transparent pl-4 pr-10 text-base text-[--color-blue-400] shadow-none outline-none dark:border-white dark:text-white",ref:c,type:"text",onChange:t,onFocus:n,onBlur:i,value:o}),q("div",{onClick:function(){a&&void 0===a.geonameid||(a&&(r&&a&&r(a),e2({event:"search_click",device:"mobile",localization:a.name,areaId:s})),l&&l())},className:"absolute right-4 top-2","data-vab-box":null.searchLocation,children:q(tl,{className:"text-[--color-blue-400] dark:text-white"})})]})},t3=()=>q("svg",{width:"12px",height:"12px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:q("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:q("g",{transform:"translate(-974.000000, -26.000000)",fill:"currentColor",children:q("g",{transform:"translate(942.000000, 0.000000)",children:q("g",{transform:"translate(32.000000, 26.000000)",children:q("g",{children:[q("path",{d:"M-1.16981132,9.48528137 L19.1698113,9.48528137 C19.6280755,9.48528137 20,9.03728137 20,8.48528137 C20,7.93328137 19.6280755,7.48528137 19.1698113,7.48528137 L-1.16981132,7.48528137 C-1.62807547,7.48528137 -2,7.93328137 -2,8.48528137 C-2,9.03728137 -1.62807547,9.48528137 -1.16981132,9.48528137 Z",id:"Path-Copy",transform:"translate(9.000000, 8.485281) rotate(-45.000000) translate(-9.000000, -8.485281) "}),q("path",{d:"M-1.16981132,9.48528137 L19.1698113,9.48528137 C19.6280755,9.48528137 20,9.03728137 20,8.48528137 C20,7.93328137 19.6280755,7.48528137 19.1698113,7.48528137 L-1.16981132,7.48528137 C-1.62807547,7.48528137 -2,7.93328137 -2,8.48528137 C-2,9.03728137 -1.62807547,9.48528137 -1.16981132,9.48528137 Z",id:"Path-Copy-2",transform:"translate(9.000000, 8.485281) scale(1, -1) rotate(-45.000000) translate(-9.000000, -8.485281) "})]})})})})})}),t5=e=>{let{onClick:t}=e;return q("button",{type:"button",className:"flex h-10 w-full items-center justify-center gap-2 rounded-lg bg-[--color-blue-400] text-base font-medium text-white min-[400px]:text-lg",onClick:t,"data-vab-box":null.detectLocation,children:[q(tr,{class:"size-6 text-white"}),q("div",{children:"Rozpoznaj lokalizacjÄ"})]})},t7=()=>q("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:q("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:q("g",{transform:"translate(-16.000000, -28.000000)",fill:"currentColor",children:q("g",{transform:"translate(16.000000, 28.000000)",children:[q("polygon",{fillRule:"nonzero",transform:"translate(5.000000, 8.000000) scale(1, -1) translate(-5.000000, -8.000000) ",points:"0 8 8.5 16 10 14.5714286 3 8 10 1.42857143 8.5 0"}),q("rect",{x:"2",y:"7",width:"14",height:"2"})]})})})}),t4=e=>{let{onBackClicked:t}=e;return q("a",{onClick:t,children:q(t7,{})})},t6=({onBackClicked:e,onSearchInputChange:t,onSearchFocus:n,onSearchBlur:i,onSearchIconClicked:r,city:o})=>{let a=eh(null),[l,c]=ed(o);return ep(()=>{a.current&&a.current.focus({preventScroll:!0})},[]),q("div",{className:"relative flex-none p-4 text-black dark:text-white",children:[q(t4,{onBackClicked:e}),q("input",{className:"ml-4 h-10 w-[calc(100%-32px)] rounded-lg border border-solid border-[--color-blue-400] bg-transparent px-4 text-base/none text-black outline-none placeholder:text-[#636880] dark:border-white dark:text-white dark:placeholder:text-[#ccd1dd]",ref:a,onChange:e=>{c(e.currentTarget.value),t(e)},onFocus:n,onBlur:i,value:l,placeholder:"Wpisz minimum 3 znaki"}),q("a",{className:"absolute right-8 top-6",onClick:r,children:q(tl,{className:"text-[--color-blue-400] dark:text-white"})})]})},t8=({onBackClicked:e,onCityChange:t,lastSearchedCities:n,onToggleShowMore:i,sourceAreaId:r})=>{let[o,a]=ed([]),[l,c]=ed(!1),[s,d]=ed(0),[u,p]=ed(0),[h,_]=ed(!1),[f,m]=ed(""),v=async(e,t=0)=>{let n=await tn(e,t,10);n&&setTimeout(()=>{0===t?(a(n.content),p(n.totalElements-10),d(0)):(a([...o,...n.content]),p(u-10)),c(!1)},100)},g=ef(eH(e=>v(e),300),[]),w=async()=>{c(!0),d(s+1),await v(f,s+1),e1({event:"search_list_more",device:"mobile",areaId:r})},y=async e=>{p(0),m(e),a([]),e.length>2&&(c(!0),await g(e))},b=async e=>{f.length<1&&e1({event:"search_type",device:"mobile",areaId:r});let t=e.currentTarget.value;await y(t)},x={geonameid:o[0]&&o[0].geonameid,name:o[0]&&o[0].name,country:o[0]&&o[0].country,admin1:o[0]&&o[0].admin1,admin2:o[0]&&o[0].admin2};return q("div",{className:"fixed left-0 top-0 z-50 flex h-full w-full flex-col content-stretch overflow-hidden overscroll-none bg-white dark:bg-[#0e0c18]",children:[q(t6,{onBackClicked:e,onSearchInputChange:b,onSearchBlur:()=>{_(!1)},onSearchFocus:()=>{_(!0)},onSearchIconClicked:function(){void 0!==x.geonameid&&(t&&x&&t(x),e(),i&&i(),e2({event:"search_click",device:"mobile",localization:x.name,areaId:r}))}}),q("div",{className:"flex-none px-4",children:h&&q(O,{children:f.length>2&&!o.length&&!l&&q("div",{className:"text-sm text-black dark:text-white",children:"Nie znaleziono wynik\xf3w."})})}),q(t0,{onCityChange:t,searchCityLoading:l&&f.length>2,searchedCities:0===f.length&&n?n:o&&f.length>2?o:[],isLastSearchedCities:!f.length,totalElements:u,loadMoreCities:w,onToggleShowMore:i,sourceAreaId:r})]})},t9=e=>{let{city:t,lastSearchedCities:n,onClose:i,onCityChange:r,sourceAreaId:o}=e,[a,l]=ed(!1),[c,s]=ed(!1),d=eD({areaId:null.weatherLayer,useTime:!0}),u=e=>{s(!1),r(e)},p=async e=>{let t=eO("WPGeo");eL("WPGeo","1"),eq(o,e),eG();let{coords:n}=e,a=await fetch(`https://pogoda.wp.pl/v2/api/geoname/lat/${n.latitude}/lon/${n.longitude}`);if(!a.ok)throw Error(`Geolocation API error: ${a.status}`);let l=await a.json();i(),r({geonameid:l.geonameid,name:l.name,country:l.country,admin1:l.admin1,admin2:l.admin2}),e2({event:"1"!==t?"localization_approved":"localization_change",device:"mobile",localization:l.name,areaId:o})};async function h(){if(e1({event:"recognize",device:"mobile",areaId:o}),navigator.geolocation){l(!0);try{let e=await eK();await p(e)}catch{navigator.permissions?await eZ("geolocation")!==null.granted?(e1({event:"localization_denied",device:"mobile",areaId:o}),l(!1),alert("Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki.")):localStorage.setItem("WPGeo","0"):(l(!1),e1({event:"localization_unavailable",device:"mobile",areaId:o}),alert("Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki."))}}}return q(tE,{children:q(tX,{id:"citylist-portal",children:q("div",{ref:d,className:"fixed inset-0 z-50 bg-white dark:bg-[#0e0c18]",children:[q("div",{className:"flex flex-col gap-4 px-4 pt-4",children:[q("span",{className:"text-lg/[21px] font-bold text-[#22242d] dark:text-white min-[400px]:text-xl",children:"ZmieÅ lokalizacjÄ"}),q("a",{className:"absolute right-4 top-4 size-4 text-black dark:text-white",onClick:i,"data-vab-box":null.close,children:q(t3,{})}),navigator.geolocation&&q(t5,{onClick:h}),a&&q(eQ,{}),!a&&q(t2,{onFocus:()=>{e1({event:"search_enter",device:"mobile",areaId:o}),s(!0)},city:t,sourceAreaId:o})]}),n.length>0&&!a&&q(t0,{onCityChange:u,searchedCities:n,isLastSearchedCities:!0,onToggleShowMore:i,sourceAreaId:o}),c&&q(t8,{onToggleShowMore:i,city:t,onBackClicked:function(){s(!1)},onCityChange:u,lastSearchedCities:n,sourceAreaId:o})]})})})},ne=e=>{let{lastSearchedCities:t,onCityChange:n,city:i,disableAutoGeolocation:r,isCityPicker:o,sourceAreaId:a}=e,[l,c]=ed(!1);function s(){c(!0)}return ep(()=>{r||e4("mobile",a).then(({city:e})=>{n(e)}).catch(e=>console.log(e.message))},[r,a]),q("div",{className:e8("relative flex items-center justify-between",!o&&"w-full"),children:[o?q("div",{className:"flex items-center text-base/5 font-bold capitalize text-white min-[400px]:text-lg/[21px]",onClick:s,"data-vab-box":null.changeLocation,children:[q("div",{className:"line-clamp-1",children:i}),q(eM,{})]}):q(tC,{title:"Pogoda dla:",cityName:i,onModalOpen:s}),l&&q(t9,{city:i,lastSearchedCities:t,onClose:function(){c(!1)},onCityChange:n,sourceAreaId:a})]})},nt="Brak zgody na dostÄp do geolokalizacji. Możesz na to zezwoliÄ w ustawieniach przeglÄ
darki.",nn=e=>{let{variant:t="mobile",city:n,lastSearchedCities:i,onCityChange:r,disableAutoGeolocation:o=!1,sourceAreaId:a}=e,l=!!(parseInt(eA()||"0")&&null!=n&&n.name),c=!l||(null==n?void 0:n.country)==="Polska",s=function(e,t){return e&&t&&t.name&&"Pol
1ska"===t.country?t.name:"CaÅa Polska"}(l,n),d=function(e,t){return e&&t&&t.admin1&&"Polska"===t.country?`Wojew\xf3dztwo ${t.admin1}`:""}(l,n),u=eD({areaId:null.localWidgetGeo}),p=e=>{if("desktop"===t){e1({event:e,device:"desktop",location:"locationWidget",areaId:a});return}e1({event:e,device:"mobile",areaId:a})},h=(e,n)=>{if("desktop"===t){e2({event:e,device:"desktop",localization:n,location:"locationWidget",areaId:a});return}e2({event:e,device:"mobile",localization:n,areaId:a})},_=async e=>{let t=eO("WPGeo");eL("WPGeo","1"),eq(a,e);let n=await ti(e);if(!n)return null;let{geonameid:i,name:o,country:l,admin1:c,admin2:s}=n;r({geonameid:i,name:o,country:l,admin1:c,admin2:s}),eG(),h("1"!==t?"localization_approved":"localization_change",o)},f=async()=>{if(p("recognize"),navigator.geolocation)try{let e=await eK();await _(e)}catch{navigator.permissions?await eZ("geolocation")!==null.granted?(p("localization_denied"),alert(nt)):eL("WPGeo","0"):(p("localization_unavailable"),alert(nt))}};return"desktop"===t?q("div",{className:"flex h-[142px] w-full flex-col justify-between gap-2 rounded-lg bg-[--color-blue-400] p-2.5 text-white",ref:u,children:q(ni,{cityName:s,voivodeship:d,lastSearchedCities:i,onCityChange:r,onLocalizationClick:f,hasLocation:l,disableAutoGeolocation:o,isPoland:c,sourceAreaId:a})}):q("div",{className:e8("bg-[--color-blue-400] py-2.5",l&&c?"h-[90px] min-[400px]:h-[97px]":"h-[138px] min-[400px]:h-[152px]"),ref:u,children:q("div",{className:"wp-inner-content max-w-mobile mx-auto flex w-full flex-col justify-between gap-2 text-white",children:q(nr,{cityName:s,voivodeship:d,lastSearchedCities:i,onCityChange:r,onLocalizationClick:f,hasLocation:l,disableAutoGeolocation:o,isPoland:c,sourceAreaId:a})})})},ni=e=>{let{cityName:t,voivodeship:n,lastSearchedCities:i,onCityChange:r,onLocalizationClick:o,hasLocation:a,disableAutoGeolocation:l,isPoland:c,sourceAreaId:s}=e;return q(O,{children:[q(nl,{className:"text-base/5 font-bold uppercase",children:a?"Twoja okolica, Twoje wiadomoÅci":"WiadomoÅci lokalne dla"}),q("div",{className:"my-auto flex items-center gap-2",children:[q(tr,{className:"size-10 text-white"}),q("div",{className:"flex flex-col [--popup-offset-left:-48px] [--popup-offset-top:48px]",children:[q(tu,{onCityChange:r,city:t,lastSearchedCities:i,location:"locationWidget",disableAutoGeolocation:l,sourceAreaId:s}),q(na,{className:"text-sm",voivodeship:n})]})]}),c?q(nc,{hasLocation:a,onClick:o,className:"text-base/5 font-medium text-[--color-blue-400] hover:cursor-pointer hover:underline"}):q(no,{className:"text-sm"})]})},nr=e=>{let{cityName:t,voivodeship:n,lastSearchedCities:i,onCityChange:r,onLocalizationClick:o,hasLocation:a,disableAutoGeolocation:l,isPoland:c,sourceAreaId:s}=e;return q(O,{children:[q(nl,{className:"text-[18px]/[21px] font-bold min-[400px]:text-[20px]/7",children:a?"Twoja okolica, Twoje wiadomoÅci":"WiadomoÅci lokalne dla"}),q("div",{className:"my-auto flex items-center gap-2",children:[q(tr,{className:"size-10 text-white"}),q("div",{className:"flex flex-col",children:[q(ne,{onCityChange:r,cities:null,city:t,lastSearchedCities:i,disableAutoGeolocation:l,isCityPicker:!0,sourceAreaId:s}),q(na,{className:"text-sm min-[400px]:text-base/5",voivodeship:n})]})]}),c?q(nc,{hasLocation:a,onClick:o,className:"text-base/5 font-medium text-[--color-blue-400] min-[400px]:text-[18px]/[21px]"}):q(no,{className:"text-sm min-[400px]:text-base/5"})]})};function no(e){return q("span",{className:e.className,children:"WiadomoÅci lokalne sÄ
dostÄpne tylko dla polskich miast."})}function na(e){return e.voivodeship?q("span",{className:e.className,children:e.voivodeship}):null}function nl(e){return q("span",{className:e.className,children:e.children})}function nc(e){return e.hasLocation?null:q("button",{onClick:e.onClick,className:"flex h-10 w-full flex-none items-center justify-center rounded-lg bg-white px-1","data-vab-box":null.weatherDetailsGeo,children:q("div",{className:e.className,children:"UdostÄpnij lokalizacjÄ"})})}function ns(e){let{cityId:t}=e,n=tm(t),i=tv(t);return q("div",{className:"flex items-center gap-5",children:[q("a",{className:"flex h-10 flex-1 items-center justify-center rounded-lg border border-solid border-current bg-transparent px-1 text-base/5 font-medium text-white no-underline",href:n,"data-vab-box":null.weatherTomorrow,target:"_blank",rel:"noopener",children:"Pogoda na jutro"}),q("a",{className:"flex h-10 flex-1 items-center justify-center rounded-lg border border-solid border-current bg-transparent px-1 text-base/5 font-medium text-white no-underline",href:i,"data-vab-box":null.weather28Days,target:"_blank",rel:"noopener",children:"Pogoda na 28 dni"})]})}
1function nd(e){return!(!e||"unknown"===e)}function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var np,nh={exports:{}};nh.exports;let n_=nu(function(){var e;return np||(np=1,e=function(){var e="millisecond",t="second",n="minute",i="hour",r="week",o="month",a="quarter",l="year",c="date",s="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},h="en",_={};_[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var f="$isDayjsObject",m=function(e){return e instanceof y||!(!e||!e[f])},v=function e(t,n,i){var r;if(!t)return h;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(r=o),n&&(_[o]=n,r=o);var a=t.split("-");if(!r&&a.length>1)return e(a[0])}else{var l=t.name;_[l]=t,r=l}return!i&&r&&(h=r),r||!i&&h},g=function(e,t){if(m(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new y(n)},w={s:p,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+p(Math.floor(n/60),2,"0")+":"+p(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(i,o),a=n-r<0,l=t.clone().add(i+(a?-1:1),o);return+(-(i+(n-r)/(a?r-l:l-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(s){return({M:o,y:l,w:r,d:"day",D:c,h:i,m:n,s:t,ms:e,Q:a})[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};w.l=v,w.i=m,w.w=function(e,t){return g(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var y=function(){function p(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[f]=!0}var h=p.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(d);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return w},h.isValid=function(){return this.$d.toString()!==s},h.isSame=function(e,t){var n=g(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return g(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<g(e)},h.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,a){var s=this,d=!!w.u(a)||a,u=w.p(e),p=function(e,t){var n=w.w(s.$u?Date.UTC(s.$y,t,e):new Date(s.$y,t,e),s);return d?n:n.endOf("day")},h=function(e,t){return w.w(s.toDate()[e].apply(s.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),s)},_=this.$W,f=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case l:return d?p(1,0):p(31,11);case o:return d?p(1,f):p(0,f+1);case r:var g=this.$locale().weekStart||0,y=(_<g?_+7:_)-g;return p(d?m-y:m+(6-y),f);case"day":case c:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case n:return h(v+"Seconds",2);case t:return h(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(r,a){var s,d=w.p(r),u="set"+(this.$u?"UTC":""),p=((s={}).day=u+"Date",s[c]=u+"Date",s[o]=u+"Month",s[l]=u+"FullYear",s[i]=u+"Hours",s[n]=u+"Minutes",s[t]=u+"Seconds",s[e]=u+"Milliseconds",s)[d],h="day"===d?this.$D+(a-this.$W):a;if(d===o||d===l){var _=this.clone().set(c,1);
1_.$d[p](h),_.init(),this.$d=_.set(c,Math.min(this.$D,_.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[w.p(e)]()},h.add=function(e,a){var c,s=this;e=Number(e);var d=w.p(a),u=function(t){var n=g(s);return w.w(n.date(n.date()+Math.round(t*e)),s)};if(d===o)return this.set(o,this.$M+e);if(d===l)return this.set(l,this.$y+e);if("day"===d)return u(1);if(d===r)return u(7);var p=((c={})[n]=6e4,c[i]=36e5,c[t]=1e3,c)[d]||1,h=this.$d.getTime()+e*p;return w.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||s;var i=e||"YYYY-MM-DDTHH:mm:ssZ",r=w.z(this),o=this.$H,a=this.$m,l=this.$M,c=n.weekdays,d=n.months,p=n.meridiem,h=function(e,n,r,o){return e&&(e[n]||e(t,i))||r[n].slice(0,o)},_=function(e){return w.s(o%12||12,e,"0")},f=p||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i};return i.replace(u,function(e,i){return i||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return w.s(t.$y,4,"0");case"M":return l+1;case"MM":return w.s(l+1,2,"0");case"MMM":return h(n.monthsShort,l,d,3);case"MMMM":return h(d,l);case"D":return t.$D;case"DD":return w.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return h(n.weekdaysMin,t.$W,c,2);case"ddd":return h(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(o);case"HH":return w.s(o,2,"0");case"h":return _(1);case"hh":return _(2);case"a":return f(o,a,!0);case"A":return f(o,a,!1);case"m":return String(a);case"mm":return w.s(a,2,"0");case"s":return String(t.$s);case"ss":return w.s(t.$s,2,"0");case"SSS":return w.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")})},h.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},h.diff=function(e,c,s){var d,u=this,p=w.p(c),h=g(e),_=(h.utcOffset()-this.utcOffset())*6e4,f=this-h,m=function(){return w.m(u,h)};switch(p){case l:d=m()/12;break;case o:d=m();break;case a:d=m()/3;break;case r:d=(f-_)/6048e5;break;case"day":d=(f-_)/864e5;break;case i:d=f/36e5;break;case n:d=f/6e4;break;case t:d=f/1e3;break;default:d=f}return s?d:w.a(d)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return _[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=v(e,t,!0);return i&&(n.$L=i),n},h.clone=function(){return w.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},p}(),b=y.prototype;return g.prototype=b,[["$ms",e],["$s",t],["$m",n],["$H",i],["$W","day"],["$M",o],["$y",l],["$D",c]].forEach(function(e){b[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),g.extend=function(e,t){return e.$i||(e(t,y,g),e.$i=!0),g},g.locale=v,g.isDayjs=m,g.unix=function(e){return g(1e3*e)},g.en=_[h],g.Ls=_,g.p={},g},nh.exports=e()),nh.exports}());var nf,nm={exports:{}};nm.exports;let nv=nu(function(){var e;return nf||(nf=1,e=function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}},nm.exports=e()),nm.exports}());var ng,nw={exports:{}};nw.exports;let ny=nu(function(){var e;return ng||(ng=1,e=function(){return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}},nw.exports=e()),nw.exports}());function nb(e){let{startDay:t,startMonth:n,endDay:i,endMonth:r,currentDate:o=new Date}=e,a=o.getFullYear(),l=new Date(`${a}-${n}-${t}T00:00:00`),c=new Date(`${a}-${r}-${i}T23:59:59`);return!n_(l).isAfter(c)&&function(e,t,n){let i=n_(e),r=n_(t),o=n_(n);return i.isSameOrAfter(r,"day")&&i.isSameOrBefore(o,"day")}(o,l,c)}n_.extend(nv),n_.extend(ny);let nx=e=>q("svg",{width:"31px",height:"10px",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","stroke-linejoin":"round","stroke-giterlimit":"2","clip-rule":"evenodd",viewBox:"0 0 1000 318",fill:"currentColor",...e,children:[q("link",{id:"dark-mode-general-link",rel:"stylesheet",type:"text/css"}),q("style",{id:"dark-mode-custom-style",type:"text/css"}),q("style",{id:"dark-mode-native-style",type:"text/css"}),q("path",{id:"logo-primary",fill:"none",d:"M0 0H1000V318H0z"}),q("clipPath",{id:"_clip1",children:q("path",{d:"M0 0H1000V318H0z"})}),q("g",{fill:"currentColor",clipPath:"url(#_clip1)",children:[q("path",{d:"M579.6 82.5V244h-21.3v-31.6c-13.6 21.6-36.5 35.5-65.2 35.5-45.5 0-83.3-36.8-83.3-84.6s37.8-84.6 83.3-84.6c28.7 0 51.7 13.9 65.2 35.5V82.5h21.3zm-21.3 80.7c0-35.8-27.8-63.9-63.6-63.9S431 127.4 431 163.2s27.8 63.9 63.6 63.9 63.7-28.1 63.7-63.9zM614.4 32.7c0-8.4 6.8-15.5 15.5-1
15.5s15.5 7.1 15.5 15.5-6.8 15.5-15.5 15.5-15.5-7.1-15.5-15.5zm4.9 49.8h21.3V244h-21.3V82.5zM752.6 79.9v20.7c-25.8 0-51 13.6-51 53.6V244h-21.3V82.5h21.3v26.8c11.3-22.6 30.4-29.4 51-29.4z"}),q("path",{d:"M788.2 8.2H809.5V243.89999999999998H788.2z"}),q("path",{d:"M1000 82.5l-69.1 176.3c-12.3 31-36.2 52-65.2 49.7v-20c21 2.3 35.5-12.6 44.2-33.6l4.2-10-72.3-162.4h22.6l60.7 135.3 52.3-135.3h22.6z"}),q("g",{children:q("path",{d:"M97.9 63.7c.7 0 5.3-.4 10.4-1.5C138.8 56 151 30.5 143.6 0L122 4.4c6.3 30.4-11.8 56.8-24.1 59.3zM51 125.7c.5-.5 3.8-3.7 7-7.8 19.3-24.4 12.3-51.7-13-70.3L31.3 64.8C55.6 84 58.7 115.9 51 125.7zM54.8 203.3c.1-.7.5-5.3.3-10.5-.9-31.1-23.9-47.5-55.2-45.5l.6 22c31.1-.9 54 21.6 54.3 34zM107.7 260.3c-.4-.6-3-4.4-6.5-8.3-20.6-23.2-48.8-21.1-71.5.6l14.6 16.5c23.2-20.6 55.1-18.1 63.4-8.8zM184.8 270c-.7-.2-5.1-1.4-10.3-2.2-30.7-4.5-50.9 15.2-54.4 46.4l21.8 3.2c4.5-30.6 30.6-49.2 42.9-47.4zM250.2 227.9c-.7.3-4.8 2.2-9.3 5-26.5 16.3-29.2 44.4-11.8 70.5l18.7-11.5c-16.3-26.5-8.3-57.5 2.4-64zM273.1 153.6c-.4.6-2.3 4.8-3.9 9.8-9.8 29.5 6.2 52.8 36.3 61.6l6.9-20.9c-29.5-9.8-43.3-38.7-39.3-50.5zM242.9 81.9c.1.7 1.3 5.2 3.3 10 11.4 28.9 38.7 36.5 67.4 23.9l-8.1-20.5c-28.9 11.5-58-1.8-62.6-13.4zM173.7 46.4c.6.5 4.3 3.1 8.9 5.6 27.3 14.8 53.1 3.1 67-25l-19.4-10.5c-14.6 27.3-45.5 35.9-56.5 29.9z"})})]})]}),nk=e=>{let{airQuality:t,messUrl:n}=e,i="very_low"===t||"low"===t?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return q("div",{className:"flex items-center text-[10px]/none",children:[q("img",{src:n?n(i):i,alt:"",width:"36",height:"36"}),q("div",{className:"ml-2.5 flex flex-col",children:[q("div",{className:"mb-px flex",children:[q("div",{className:"mr-2 whitespace-nowrap text-[10px] text-white",children:"JakoÅÄ powietrza:"}),q(nx,{})]}),q("div",{className:"text-xs text-white",children:null[t]})]})]})},nC=eF("NONE"),nN=eF("RAIN"),nI=eF("RAIN",!0),nE=eF("HAIL"),nS=eF("SNOW"),nA=eF("SNOW",!0),nT=eF("SLEET"),nz=[...nN,...nI,...nE,...nS,...nA];function nL(e,t){return nC.includes(e)?"CLEAR":nN.includes(e)?t>=7.5?"HEAVY_RAIN":"RAIN":nI.includes(e)?t>=7.5?"HEAVY_STORM":"STORM":nE.includes(e)?"HAIL":nS.includes(e)?"SNOW":nT.includes(e)?"SLEET":nA.includes(e)?"SNOW":"NO_PRECIPITATION"}function nO(e){let{iconId:t,precipitation:n,forecastData:i,currentHour:r=new Date().getHours()}=e;if(!i)return null;let o=r>=21,a=!!nz&&!!i&&i.some(e=>nz.includes(e.iconId));if(!nz.includes(t)&&!a)return{...null.NO_PRECIPITATION,time:"CONSTANTLY",timeDescription:"bez opad\xf3w"};let l=nL(t,n),c=null[l],s=i.findIndex(e=>["00:00","00:15","00:45"].includes(e.time)),d=i.reduce((e,t,n)=>{let{time:i,iconId:r,precipitation:a}=t,l=nL(r,a);if(!o&&s<=n)return e;let c=`od ok. ${i}`;return l?[...e,{...t,type:l,timeDescription:c}]:e},[]);if(!d.filter(e=>e.type!==l).length)return"CLEAR"===l?{...null.NO_PRECIPITATION,time:"CONSTANTLY",timeDescription:"bez opad\xf3w"}:"SNOW"===l?{...null.CONTINUOUS_SNOW,time:"CONSTANTLY",timeDescription:"Åniegu"}:{...null.CONTINUOUS_RAIN,time:"CONSTANTLY",timeDescription:"deszczu"};if("CLEAR"===l){let[e]=d.filter(e=>"CLEAR"!==e.type);return{...null[e.type],time:e.time,timeDescription:e.timeDescription}}let u=d.find(e=>null[e.type].priority>c.priority);return u?{...null[u.type],time:u.time,timeDescription:u.timeDescription}:{...null.CONTINUOUS_RAIN,time:"CONSTANTLY",timeDescription:"deszczu"}}let nP=e=>{let{iconId:t,precipitation:n,forecastData:i,messUrl:r}=e,o=e_(()=>nO({iconId:t,precipitation:n,forecastData:i}),[t,n,i]);if(!o)return null;let{title:a,timeDescription:l,type:c}=o,s="NO_PRECIPITATION"===c||"CLEAR"===c?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return q(O,{children:[q("img",{src:r?r(s):s,alt:"",width:"35",height:"35"}),q("div",{className:"ml-2.5 flex flex-col justify-end text-white",children:q("div",{className:"mt-1 flex w-24 whitespace-nowrap text-xs",children:[a," ",l?q("br",{}):null," ",l]})})]})},n$=e=>{let{cityId:t,city:n,onCityChange:i,temperature:r,iconId:o,airQuality:a,intervals:l,precipitation:c,lastSearchedCities:s,disableAutoGeolocation:d=!1,dailyIntervals:u,messUrl:p,sourceAreaId:h,hasLocation:_}=e,f=eD({areaId:null.localWidgetWeather,useTime:!0}),m=!nb(null)&&nd(a);return q("div",{className:"flex h-[228px] flex-col gap-2 rounded-[--wp-weather-box-radius] bg-[--color-blue-400] p-2.5",ref:f,children:[q("div",{className:"flex items-center px-1.5 [--popup-offset-left:-6px] [--popup-offset-top:28px]",children:q(tu,{onCityChange:i,city:n,lastSearchedCities:s,location:"widget",disableAutoGeolocation:d,sourceAreaId:h})}),q("div",{className:"flex items-center justify-between px-1.5",children:[q("div",{className:"mb-1.5 flex items-center",children:[o?q("div",{className:"flex",children:q(ej,{iconId:o,width:35,height:35,messUrl:p})}):null,q("div",{className:"ml-2.5 flex flex-col justify-between self-start text-[10px]/none text-white",children:[q("div",{children:"TERAZ"}),q("div",{className:"text-3xl/none",children:[r,"\xb0"]})]})]}),q("div",{className:"mb-1.5 flex items-center px-1.5",children:m?q(nk,{airQuality:a,messUrl:p}):q(nP,{forecastData:l,iconId:o,precipitation:c,messUrl:p})})]}),u&&u.length?q("div",{className:"mb-0.5 flex items-center justify-between",children:u.slice(0,4).map((e,t)=>q("div",{className:"flex h-[76px] w-[66px] flex-col justify-between rounded-lg bg-white/10 px-2.5 py-0.5 text-white",children:[q("span",{className:"text-base/5",children:e.dayName}),q("div",{className:"flex justify-center",children:q(ej,{iconId:e.iconId,width:25,height:25,messUrl:p})}),q("div",{className:"flex items-end gap-0.5",children:[q("div",{className:"text-xl/6",children:[e.maxTemperature,"\xb0"]}),q("div",{className:"text-sm text-[#bfc6ff]",children:[e.minTemperature,"\xb0"]})]})]},t))}):null,_?q(ns,{cityId:t}):q("a",{className:"block rounded-lg border border-solid border-transparent bg-white px-2 py-[9px] text-center text-base/5 font-medium text-[--color-blue-400] no-underline hover:underline",href:tf(t),target:"_blank",rel:"noopener","data-vab-box":null.weatherMore,children:"Pogoda godzinowa"})]})};function nM(){return q("svg",{className:"wp-weather-loader",viewBox:"0 0 26 26",xmlns:"http://www.w3.org/2000/svg",children:[q("path",{d:"m13.17 3.2289c-0.5402 0-0.9823-0.44206-0.9823-0.98226v-0.86432c0-0.54019 0.4421-0.98226 0.9823-0.98226s0.9822 0.44206 0.9822 0.98226v0.86432c0 0.5402-0.442 0.98226-0.9822 0.98226z",fill:"#03357D"}),q("path",{d:"m10.098 3.7159c-0.51408 0.16701-1.0709-0.11704-1.2379-0.63068l-0.26695-0.82245c-0.16701-0.51409 0.11704-1.0709 0.63068-1.238 0.51409-0.16701 1.0709 0.11704 1.2379 0.63068l0.267 0.822c0.167 0.51409-0.1171 1.0709-0.6307 1.238v4.5e-4z",fill:"#03357D"}),q("path",{d:"m7.3268 5.1281c-0.43711 0.31737-1.0547 0.21968-1.3721-0.21743l-0.50823-0.69955c-0.31782-0.43711-0.21968-1.0547 0.21743-1.3721 0.43711-0.31782 1.0547-0.21968 1.3721 0.21743l0.50824
10.69955c0.31736 0.43711 0.21968 1.0547-0.21743 1.3721z",fill:"#03357D"}),q("path",{d:"m5.1274 7.3272c-0.31737 0.43711-0.93499 0.5348-1.3721 0.21743l-0.69956-0.50824c-0.43711-0.31781-0.53479-0.93499-0.21743-1.3721 0.31737-0.43711 0.935-0.53479 1.3721-0.21743l0.69955 0.50824c0.43711 0.31737 0.5348 0.93499 0.21743 1.3721z",fill:"#03357D"}),q("path",{d:"m3.7156 10.098c-0.16702 0.5141-0.72387 0.7977-1.238 0.6306l-0.822-0.2669c-0.51409-0.167-0.79769-0.72387-0.63068-1.238 0.16701-0.51408 0.72387-0.79769 1.238-0.63068l0.822 0.26695c0.51409 0.16701 0.7977 0.72387 0.63069 1.238z",fill:"#03357D"}),q("path",{d:"m3.2287 13.17c0 0.5402-0.44206 0.9823-0.98226 0.9823h-0.86432c-0.5402 0-0.98226-0.4421-0.98226-0.9823s0.44206-0.9823 0.98226-0.9823h0.86432c0.5402 0 0.98226 0.4421 0.98226 0.9823z",fill:"#03357D"}),q("path",{d:"m3.7156 16.242c0.16702 0.5141-0.11704 1.0709-0.63068 1.2379l-0.822 0.267c-0.51409 0.167-1.0709-0.1171-1.238-0.6307-0.16701-0.5141 0.11704-1.0709 0.63068-1.2379l0.822-0.267c0.51409-0.167 1.0709 0.1171 1.238 0.6307z",fill:"#03357D"}),q("path",{d:"m5.1274 19.014c0.31782 0.4371 0.21968 1.0547-0.21743 1.3721l-0.69955 0.5082c-0.43711 0.3174-1.0547 0.2197-1.3721-0.2174-0.31736-0.4371-0.21968-1.0548 0.21743-1.3721l0.69956-0.5083c0.43711-0.3173 1.0547-0.2197 1.3721 0.2175z",fill:"#03357D"}),q("path",{d:"m7.3271 21.212c0.43711 0.3173 0.5348 0.935 0.21743 1.3721l-0.50824 0.6995c-0.31781 0.4371-0.93499 0.5348-1.3721 0.2175-0.43711-0.3174-0.53479-0.935-0.21743-1.3721l0.50824-0.6996c0.31736-0.4371 0.93499-0.5348 1.3721-0.2174z",fill:"#E1E6F1"}),q("path",{d:"m10.098 22.625c0.514 0.167 0.7976 0.7238 0.6306 1.2379l-0.2669 0.822c-0.167 0.5141-0.72388 0.7977-1.238 0.6307s-0.79769-0.7239-0.63068-1.238l0.26695-0.822c0.16701-0.5141 0.72386-0.7977 1.238-0.6306z",fill:"#E1E6F1"}),q("path",{d:"m13.17 23.111c0.5402 0 0.9822 0.4421 0.9822 0.9823v0.8643c0 0.5402-0.442 0.9823-0.9822 0.9823s-0.9823-0.4421-0.9823-0.9823v-0.8643c0-0.5402 0.4421-0.9823 0.9823-0.9823z",fill:"#E1E6F1"}),q("path",{d:"m16.242 22.625c0.514-0.167 1.0709 0.117 1.2379 0.6307l0.267 0.822c0.167 0.514-0.1171 1.0709-0.6307 1.2379-0.5141 0.167-1.071-0.117-1.238-0.6307l-0.2669-0.822c-0.167-0.5141 0.117-1.0709 0.6307-1.2379z",fill:"#E1E6F1"}),q("path",{d:"m19.013 21.212c0.4371-0.3178 1.0547-0.2197 1.3721 0.2174l0.5082 0.6996c0.3178 0.4371 0.2197 1.0547-0.2174 1.3721-0.4371 0.3178-1.0547 0.2196-1.3721-0.2175l-0.5083-0.6995c-0.3178-0.4371-0.2196-1.0548 0.2175-1.3721z",fill:"#E1E6F1"}),q("path",{d:"m21.212 19.014c0.3173-0.4372 0.935-0.5348 1.3721-0.2175l0.6995 0.5083c0.4371 0.3173 0.5348 0.935 0.2174 1.3721-0.3178 0.4371-0.9349 0.5348-1.3721 0.2174l-0.6995-0.5082c-0.4371-0.3174-0.5348-0.935-0.2174-1.3721z",fill:"#E1E6F1"}),q("path",{d:"m22.624 16.242c0.167-0.5141 0.7239-0.7977 1.238-0.6307l0.822 0.267c0.514 0.167 0.7976 0.7238 0.6306 1.2379s-0.7238 0.7977-1.2379 0.6307l-0.822-0.2669c-0.5141-0.167-0.7977-0.7239-0.6307-1.238z",fill:"#E1E6F1"}),q("path",{d:"m23.111 13.17c0-0.5402 0.4421-0.9823 0.9823-0.9823h0.8643c0.5402 0 0.9823 0.4421 0.9823 0.9823s-0.4421 0.9823-0.9823 0.9823h-0.8643c-0.5402 0-0.9823-0.4421-0.9823-0.9823z",fill:"#E1E6F1"}),q("path",{d:"m22.624 10.098c-0.1671-0.51411 0.117-1.071 0.6306-1.238l0.822-0.26695c0.5141-0.16701 1.071 0.11705 1.238 0.63068 0.167 0.51409-0.117 1.0709-0.6307 1.2379l-0.822 0.267c-0.5141 0.167-1.0709-0.1171-1.2379-0.6307z",fill:"#E1E6F1"}),q("path",{d:"m21.212 7.3272c-0.3179-0.43711-0.2197-1.0547 0.2174-1.3721l0.6995-0.50824c0.4371-0.31736 1.0548-0.21968 1.3721 0.21743 0.3174 0.43711 0.2197 1.0547-0.2174 1.3721l-0.6995 0.50824c-0.4372 0.31737-1.0548 0.21968-1.3721-0.21743z",fill:"#E1E6F1"}),q("path",{d:"m19.013 5.1281c-0.4371-0.31736-0.5348-0.93499-0.2175-1.3721l0.5083-0.69956c0.3178-0.4371 0.935-0.53479 1.3721-0.21742 0.4371 0.31736 0.5348 0.93499 0.2174 1.3721l-0.5082 0.69955c-0.3174 0.43711-0.935 0.5348-1.3721 0.21743z",fill:"#E1E6F1"}),q("path",{d:"m16.242 3.7155c-0.5141-0.16701-0.7977-0.72386-0.6307-1.238l0.267-0.822c0.167-0.51409 0.7238-0.79769 1.2379-0.63068 0.5141 0.16701 0.7977 0.72386 0.6307 1.238l-0.2669 0.82245c-0.1671 0.51409-0.7239 0.79769-1.238 0.63068v-4.5e-4z",fill:"#E1E6F1"})]})}let nR=()=>q("div",{className:"wp-weather-loader-box",children:[q(nM,{}),q("span",{className:"wp-weather-box-info",children:["Sprawdzamy pogodÄ dla Twojej ",q("br",{})," lokalizacji"]})]});function nW(){return q("div",{className:"wp-weather-error-box",children:[q(tr,{class:"size-[41px] text-white"}),q("div",{className:"wp-weather-box-info",children:"Nie możemy teraz sprawdziÄ pogody dla Twojej lokalizacji. Spr\xf3buj odÅwieżyÄ stronÄ, albo przejdź do peÅnej prognozy"}),q("a",{href:"https://pogoda.wp.pl",target:"_blank",className:"wp-weather-cta",rel:"noopener",children:"Sprawdź pogodÄ na Pogoda.wp.pl"})]})}let nD=e=>{let{lastSearchedCities:t,onCityChange:n,data:i,loadingState:r,messUrl:o,disableAutoGeolocation:a,sourceAreaId:l,hasLocation:c}=e;return q(nj,{loadingState:r,children:i?q(n$,{lastSearchedCities:t,...i,onCityChange:n,messUrl:o,disableAutoGeolocation:a,sourceAreaId:l,hasLocation:c}):null})},nj=e=>{let{children:t,loadingState:n}=e;return"FETCHED"===n?q(O,{children:t}):"ERROR"===n?q(nU,{children:q(nW,{})}):q(nU,{children:q(nR,{})})};function nU(e){return q("div",{className:"ml-auto flex h-[228px] w-full items-center justify-center rounded-lg bg-[--color-blue-400] text-white",children:e.children})}function nF(e){let{data:t}=ez(e?`${eC}/hourly/location/${e}`:void 0);return{data:t?function(e){let t=e.items[0];return t?{city:e.name,cityId:e.locationId,iconId:t.icon,temperature:t.temperature,description:t.description}:null}(t):null}}function nH({geonameId:e}){let{data:t}=nF(e),n=eD({areaId:"weather",useTime:!0});return t?q("div",{className:"size-full",ref:n,children:q("div",{className:"wp-weather-header",children:q("div",{className:"relative flex h-11 items-center py-1 xl:gap-4",children:q("div",{className:"flex gap-2 py-1",children:[q("div",{className:"flex items-center",children:t.iconId?q(ej,{className:"h-8 w-9 text-transparent",iconId:t.iconId}):null}),q("div",{className:"ml-1",children:[q("div",{className:"relative z-[11] ",children:q("span",{className:"inline-block max-w-[80px] overflow-hidden text-ellipsis whitespace-nowrap text-xs leading-none xl:max-w-[100px]",children:t.city})}),q("span",{className:"wp-weather-temperature-info text-xl font-medium leading-none no-underline",children:[t.temperature,"\xb0"]})]})]})})})}):null}function nB(e){let{airQuality:t,messUrl:n}=e,i="very_low"===t||"low"===t?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return q("div",{className:"flex items-center gap-1",children:[q("img",{src:n?n(i):i,alt:"",width:"35",height:"35"}),q("div",{className:"flex flex-col gap-1 text-xs text-white",children:[q(nx,{}),null[t]," jakoÅÄ powietrza"]})]})}let nG=e=>{let{iconId:t,precipitation:n,forecastData:i,messUrl:r}=e,o=e_(()=>nO({iconId:t,precipitation:n,forecastData:i}),[n,i,t]);if(!o)return null;let{title:a,type:l,timeDescription:c}=o,s="NO_PRECIPITATION"===l||"CLEAR"===l?"https://sgwp.wpcdn.pl/static/images/weather/smile2.svg":"https://sgwp.wpcdn.pl/static/images/weather/sad2.svg";return q("div",{className:"flex items-center gap-1",children:[q("img",{src:r?r(s):s,alt:"",width:"35",height:"35"}),q("div",{className:"text-xs text-[--text-primary,#fff] first-letter:uppercase",children:[a," ",c]})]})},nV=e=>{let{onClick:t,cityId:n,onCityChange:i,temperature:r,iconId:o,precipitation:a,airQuality:l,intervals:c=[],city:s,lastSearchedCities:d=[],disableAutoGeolocation:u,messUrl:p,registeredDataRef:h,vabAreaId:_=null.weather,sourceAreaId:f,hasLocation:m}=e,v=t?{onClick:t}:{href:tf(n),target:"_blank",rel:"noopener"},g=eD({areaId:_,useTime:!0,skip:h.current.box,onRegistered:()=>{h.current.box=!0}}),w=!nb(null)&&nd(l);return q("div",{className:"wp-weather-box",ref:g,children:[q(ne,{sourceAreaId:f,onCityChange:i,cities:null,city:s,lastSearchedCities:d,disableAutoGeolocation:u}),q("div",{className:"flex justify-evenly gap-6",children:[q("div",{className:"flex items-center",children:[q(ej,{iconId:o,width:36,height:36,messUrl:p,className:"text-transparent"}),q("div",{className:"ml-2 flex flex-col",children:q("div",{className:"text-4xl",children:[r,"\xb0"]})})]}),w?q(nB,{airQuality:l,messUrl:p}):c&&c.length&&q(nG,{forecastData:c,iconId:o,precipitation:a,messUrl:p})]}),m?q(ns,{cityId:n}):q("a",{"data-vab-box":null.weatherDetails,className:"wp-weather-cta",...v,children:"Pogoda godzinowa"})]})};function nY(){return q("div",{className:"wp-weather-error-box",children:[q("div",{className:"flex flex-auto items-center",children:q("div",{className:"flex items-start gap-2",children:[q(tr,{class:"size-10 flex-none"}),q("div",{className:"wp-weather-box-info",children:"Nie możemy teraz sprawdziÄ pogody dla Twojej lokalizacji. Spr\xf3buj odÅwieżyÄ stronÄ albo przejdź do peÅnej prognozy"})]})}),q("a",{href:"https://pogoda.wp.pl",target:"_blank",className:"wp-weather-cta",rel:"noopener",children:["Sprawdź pogodÄ na Pogoda.wp.pl",q("svg",{fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:[q("path",{d:"m3.332 8h9.3334",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round"}),q("path",{d:"M8 3.33268L12.6667 7.99935L8 12.666",stroke:"#fff","stroke-linecap":"round","stroke-linejoin":"round"})]})]})]})}let nZ=e=>{let{disableAutoGeolocation:t,lastSearchedCities:n,onCityChange:i,data:r,loadingState:o,messUrl:a,vabAreaId:l,sourceAreaId:c,hasLocation:s}=e,d=eh(null);return"FETCHED"===o&&r?q(nV,{...r,"data-st-area":"weather-box",onCityChange:i,lastSearchedCities:n,disableAutoGeolocation:t,messUrl:a,registeredDataRef:d,vabAreaId:l,sourceAreaId:c,hasLocation:s}):"ERROR"===o?q(nY,{}):q(nR,{})},nq=e=>{let t="u">typeof document&&document.getElementById&&document.getElementById("wp-local-news-weather-widget");if(!t)return null;let n=t.querySelector("#wp-local-news-weather-loader");return n&&n.remove(),tD(e.children,t)};var nK,nJ,nQ,nX,n0,n1,n2,n3,n5,n7,n4,n6={},n8=[],n9=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ie=Array.isArray;function it(e,t){for(var n in t)e[n]=t[n];return e}function ii(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ir(e,t,n){var i,r,o,a={};
1for(o in t)"key"==o?i=t[o]:"ref"==o?r=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?nK.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return io(e,a,i,r,null)}function io(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++nQ,__i:-1,__u:0};return null==r&&null!=nJ.vnode&&nJ.vnode(o),o}function ia(e){return e.children}function il(e,t){this.props=e,this.context=t}function ic(e,t){if(null==t)return e.__?ic(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?ic(e):null}function is(e){(!e.__d&&(e.__d=!0)&&nX.push(e)&&!id.__r++||n0!==nJ.debounceRendering)&&((n0=nJ.debounceRendering)||n1)(id)}function id(){for(var e,t,n,i,r,o,a=1;nX.length;)nX.length>a&&nX.sort(n2),e=nX.shift(),a=nX.length,e.__d&&(t=void 0,i=(n=e.__v).__e,r=[],o=[],e.__P&&((t=it({},n)).__v=n.__v+1,nJ.vnode&&nJ.vnode(t),iv(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,r,i??ic(n),!!(32&n.__u),o),t.__v=n.__v,t.__.__k[t.__i]=t,function(e,t,n){for(var i=0;i<n.length;i++)ig(n[i],n[++i],n[++i]);nJ.__c&&nJ.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){nJ.__e(e,t.__v)}})}(r,t,o),t.__e!=i&&function e(t){var n,i;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(i=t.__k[n])&&null!=i.__e){t.__e=t.__c.base=i.__e;break}return e(t)}}(t)));id.__r=0}function iu(e,t,n,i,r,o,a,l,c,s,d){var u,p,h,_,f,m,v=i&&i.__k||n8,g=t.length;for(c=function(e,t,n,i,r){var o,a,l,c,s,d=n.length,u=d,p=0;for(e.__k=Array(r),o=0;o<r;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?(c=o+p,(a=e.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?io(null,a,null,null,null):ie(a)?io(ia,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?io(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,l=null,-1!==(s=a.__i=function(e,t,n,i){var r,o,a=e.key,l=e.type,c=t[n];if(null===c||c&&a==c.key&&l===c.type&&!(2&c.__u))return n;if(i>(null==c||2&c.__u?0:1))for(r=n-1,o=n+1;r>=0||o<t.length;){if(r>=0){if((c=t[r])&&!(2&c.__u)&&a==c.key&&l===c.type)return r;r--}if(o<t.length){if((c=t[o])&&!(2&c.__u)&&a==c.key&&l===c.type)return o;o++}}return -1}(a,n,c,u))&&(u--,(l=n[s])&&(l.__u|=2)),null==l||null===l.__v?(-1==s&&p--,"function"!=typeof a.type&&(a.__u|=4)):s!=c&&(s==c-1?p--:s==c+1?p++:(s>c?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)null==(l=n[o])||2&l.__u||(l.__e==i&&(i=ic(l)),function e(t,n,i){var r,o;if(nJ.unmount&&nJ.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||ig(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){nJ.__e(e,n)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&e(r[o],n,i||"function"!=typeof t.type);i||ii(t.__e),t.__c=t.__=t.__e=void 0}(l,l));return i}(n,t,v,c,g),u=0;u<g;u++)null!=(h=n.__k[u])&&(p=-1===h.__i?n6:v[h.__i]||n6,h.__i=u,m=iv(e,h,p,r,o,a,l,c,s,d),_=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&ig(p.ref,null,h),d.push(h.ref,h.__c||_,h)),null==f&&null!=_&&(f=_),4&h.__u||p.__k===h.__k?c=function e(t,n,i){var r,o;if("function"==typeof t.type){for(r=t.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=t,n=e(r[o],n,i));return n}t.__e!=n&&(n&&t.type&&!i.contains(n)&&(n=ic(t)),i.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType);return n}(h,c,e):"function"==typeof h.type&&void 0!==m?c=m:_&&(c=_.nextSibling),h.__u&=-7);return n.__e=f,c}function ip(e,t){return t=t||[],null==e||"boolean"==typeof e||(ie(e)?e.some(function(e){ip(e,t)}):t.push(e)),t}function ih(e,t,n){"-"==t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||n9.test(t)?n:n+"px"}function i_(e,t,n,i,r){var o;e:if("style"==t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||ih(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||ih(e.style,t,n[t])}}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(n3,"$1")),t=t.toLowerCase()in e||"onFocusOut"==t||"onFocusIn"==t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i?n.u=i.u:(n.u=n5,e.addEventListener(t,o?n4:n7,o)):e.removeEventListener(t,o?n4:n7,o);else{if("http://www.w3.org/2000/svg"==r)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]=n??"";break e}catch{}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function im(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=n5++;else if(t.t<n.u)return;return n(nJ.event?nJ.event(t):t)}}}function iv(e,t,n,i,r,o,a,l,c,s){var d,u,p,h,_,f,m,v,g,w,y,b,x,k,C,N,I,E,S=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[l=t.__e=n.__e]),(d=nJ.__b)&&d(t);
vendor: 4,612 bytes, line 1
1e:if("function"==typeof S)try{if(v=t.props,g="prototype"in S&&S.prototype.render,w=(d=S.contextType)&&i[d.__c],y=d?w?w.props.value:d.__:i,n.__c?m=(u=t.__c=n.__c).__=u.__E:(g?t.__c=u=new S(v,y):(t.__c=u=new il(v,y),u.constructor=S,u.render=iw),w&&w.sub(u),u.props=v,u.state||(u.state={}),u.context=y,u.__n=i,p=u.__d=!0,u.__h=[],u._sb=[]),g&&null==u.__s&&(u.__s=u.state),g&&null!=S.getDerivedStateFromProps&&(u.__s==u.state&&(u.__s=it({},u.__s)),it(u.__s,S.getDerivedStateFromProps(v,u.__s))),h=u.props,_=u.state,u.__v=t,p)g&&null==S.getDerivedStateFromProps&&null!=u.componentWillMount&&u.componentWillMount(),g&&null!=u.componentDidMount&&u.__h.push(u.componentDidMount);else{if(g&&null==S.getDerivedStateFromProps&&v!==h&&null!=u.componentWillReceiveProps&&u.componentWillReceiveProps(v,y),!u.__e&&(null!=u.shouldComponentUpdate&&!1===u.shouldComponentUpdate(v,u.__s,y)||t.__v==n.__v)){for(t.__v!=n.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),b=0;b<u._sb.length;b++)u.__h.push(u._sb[b]);u._sb=[],u.__h.length&&a.push(u);break e}null!=u.componentWillUpdate&&u.componentWillUpdate(v,u.__s,y),g&&null!=u.componentDidUpdate&&u.__h.push(function(){u.componentDidUpdate(h,_,f)})}if(u.context=y,u.props=v,u.__P=e,u.__e=!1,x=nJ.__r,k=0,g){for(u.state=u.__s,u.__d=!1,x&&x(t),d=u.render(u.props,u.state,u.context),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[]}else do u.__d=!1,x&&x(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++k<25);u.state=u.__s,null!=u.getChildContext&&(i=it(it({},i),u.getChildContext())),g&&!p&&null!=u.getSnapshotBeforeUpdate&&(f=u.getSnapshotBeforeUpdate(h,_)),I=(N=null!=d&&d.type===ia&&null==d.key)?d.props.children:d,N&&(d.props.children=null),l=iu(e,ie(I)?I:[I],t,n,i,r,o,a,l,c,s),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),m&&(u.__E=u.__=null)}catch(e){if(t.__v=null,c||null!=o){if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,t.__e=l}else for(E=o.length;E--;)ii(o[E])}else t.__e=n.__e,t.__k=n.__k;nJ.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,i,r,o,a,l,c){var s,d,u,p,h,_,f,m=n.props,v=t.props,g=t.type;if("svg"==g?r="http://www.w3.org/2000/svg":"math"==g?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o){for(s=0;s<o.length;s++)if((h=o[s])&&"setAttribute"in h==!!g&&(g?h.localName==g:3==h.nodeType)){e=h,o[s]=null;break}}if(null==e){if(null==g)return document.createTextNode(v);e=document.createElementNS(r,g,v.is&&v),l&&(nJ.__m&&nJ.__m(t,o),l=!1),o=null}if(null===g)m===v||l&&e.data===v||(e.data=v);else{if(o=o&&nK.call(e.childNodes),m=n.props||n6,!l&&null!=o)for(m={},s=0;s<e.attributes.length;s++)m[(h=e.attributes[s]).name]=h.value;for(s in m)if(h=m[s],"children"!=s){if("dangerouslySetInnerHTML"==s)u=h;else if(!(s in v)){if("value"==s&&"defaultValue"in v||"checked"==s&&"defaultChecked"in v)continue;i_(e,s,null,h,r)}}for(s in v)h=v[s],"children"==s?p=h:"dangerouslySetInnerHTML"==s?d=h:"value"==s?_=h:"checked"==s?f=h:l&&"function"!=typeof h||m[s]===h||i_(e,s,h,m[s],r);if(d)l||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),iu("template"===t.type?e.content:e,ie(p)?p:[p],t,n,i,"foreignObject"==g?"http://www.w3.org/1999/xhtml":r,o,a,o?o[0]:n.__k&&ic(n,0),l,c),null!=o)for(s=o.length;s--;)ii(o[s]);l||(s="value","progress"==g&&null==_?e.removeAttribute("value"):void 0===_||_===e[s]&&("progress"!=g||_)&&("option"!=g||_===m[s])||i_(e,s,_,m[s],r),s="checked",void 0!==f&&f!==e[s]&&i_(e,s,f,m[s],r))}return e}(n.__e,t,n,i,r,o,a,c,s);return(d=nJ.diffed)&&d(t),128&t.__u?void 0:l}function ig(e,t,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){nJ.__e(e,n)}}function iw(e,t,n){return this.constructor(e,n)}nK=n8.slice,nJ={__e:function(e,t,n,i){for(var r,o,a;t=t.__;)if((r=t.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(e)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),a=r.__d),a)return r.__E=r}catch(t){e=t}throw e}},nQ=0,il.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=it({},this.state),"function"==typeof e&&(e=e(it({},n),this.props)),e&&it(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),is(this))},il.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),is(this))},il.prototype.render=ia,nX=[],n1="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,n2=function(e,t){return e.__v.__b-t.__v.__b},id.__r=0,n3=/(PointerCapture)$|Capture$/i,n5=0,n7=im(!1),n4=im(!0);var iy,ib,ix,ik=[],iC=nJ,iN=iC.__b,iI=iC.__r,iE=iC.diffed,iS=iC.__c,iA=iC.unmount,iT=iC.__;function iz(){for(var e;e=ik.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(iO),e.__H.__h.forEach(iP),e.__H.__h=[]}catch(t){e.__H.__h=[],iC.__e(t,e.__v)}}iC.__b=function(e){iy=null,iN&&iN(e)},iC.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),iT&&iT(e,t)},iC.__r=function(e){iI&&iI(e);var t=(iy=e.__c).__H;t&&(ib===iy?(t.__h=[],iy.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(iO),t.__h.forEach(iP),t.__h=[])),ib=iy},iC.diffed=function(e){iE&&iE(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ik.push(t)&&ix===iC.requestAnimationFrame||((ix=iC.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(i),iL&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);iL&&(t=requestAnimationFrame(n))})(iz)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),ib=iy=null},iC.__c=function(e,t){t.some(function(e){try{e.__h.forEach(iO),e.__h=e.__h.filter(function(e){return!e.__||iP(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],iC.__e(n,e.__v)}}),iS&&iS(e,t)},iC.unmount=function(e){iA&&iA(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{iO(e)}catch(e){t=e}}),n.__H=void 0,t&&iC.__e(t,n.__v))};var iL="function"==typeof requestAnimationFrame;function iO(e){var t=iy,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),iy=t}function iP(e){var t=iy;e.__c=e.__(),iy=t}function i$(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function iM(e,t){this.props=e,this.context=t}(iM.prototype=new il).isPureReactComponent=!0,iM.prototype.shouldComponentUpdate=function(e,t){return i$(this.props,e)||i$(this.state,t)};var iR=nJ.__b;nJ.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),iR&&iR(e)};var iW=nJ.__e;nJ.__e=function(e,t,n,i){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}iW(e,t,n,i)};var iD=nJ.unmount;function ij(){this.__u=0,this.o=null,this.__b=null}function iU(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function iF(){this.i=null,this.l=null}nJ.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),iD&&iD(e)},(ij.prototype=new il).__c=function(e,t){var n=t.__c,i=this;null==i.o&&(i.o=[]),i.o.push(n);var r=iU(i.__v),o=!1,a=function(){o||(o=!0,n.__R=null,r?r(l):l())};n.__R=a;var l=function(){if(!--i.__u){if(i.state.__a){var e,t=i.state.__a;i.__v.__k[0]=function e(t,n,i){return t&&i&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)}),t.__c&&t.__c.__P===n&&(t.__e&&i.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=i)),t}(t,t.__c.__P,t.__c.__O)}for(i.setState({__a:i.__b=null});e=i.o.pop();)e.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},ij.prototype.componentWillUnmount=function(){this.o=[]},ij.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,i){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===i&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,i)})),t}
1(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&ir(ia,null,e.fallback);return r&&(r.__u&=-33),[ir(ia,null,t.__a?null:e.children),r]};var iH=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]}};(iF.prototype=new il).__a=function(e){var t=this,n=iU(t.__v),i=t.l.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),iH(t,e,i)):r()};n?n(o):o()}},iF.prototype.render=function(e){this.i=null,this.l=new Map;var t=ip(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},iF.prototype.componentDidUpdate=iF.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){iH(e,n,t)})};var iB="u">typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,iG=/^(?: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]/,iV=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,iY=/[A-Z0-9]/g,iZ="u">typeof document;il.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(il.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var iq=nJ.event;function iK(){}function iJ(){return this.cancelBubble}function iQ(){return this.defaultPrevented}nJ.event=function(e){return iq&&(e=iq(e)),e.persist=iK,e.isPropagationStopped=iJ,e.isDefaultPrevented=iQ,e.nativeEvent=e};var iX={enumerable:!1,configurable:!0,get:function(){return this.class}},i0=nJ.vnode;nJ.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={},r=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||iZ&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var l,c=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===c&&"no"===a?a=!1:"o"===c[0]&&"n"===c[1]?"ondoubleclick"===c?o="ondblclick":"onchange"!==c||"input"!==n&&"textarea"!==n||(l=t.type,("u">typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(l))?"onfocus"===c?o="onfocusin":"onblur"===c?o="onfocusout":iV.test(o)&&(o=c):c=o="oninput":r&&iG.test(o)?o=o.replace(iY,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===c&&i[o=c]&&(o="oninputCapture"),i[o]=a}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=ip(t.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==n&&null!=i.defaultValue&&(i.value=ip(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",iX)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=iB,i0&&i0(e)};var i1=nJ.__r;nJ.__r=function(e){i1&&i1(e),e.__c};var i2=nJ.diffed;function i3(){return(i3=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}
1function i5(e,t){return(i5=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}nJ.diffed=function(e){i2&&i2(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)};var i7=new Map,i4=new WeakMap,i6=0,i8=void 0,i9=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function re(e){return"function"!=typeof e.children}var rt=function(e){function t(t){var n;return(n=e.call(this,t)||this).node=null,n._unobserveCb=null,n.handleNode=function(e){!n.node||(n.unobserve(),e||n.props.triggerOnce||n.props.skip||n.setState({inView:!!n.props.initialInView,entry:void 0})),n.node=e||null,n.observeNode()},n.handleChange=function(e,t){e&&n.props.triggerOnce&&n.unobserve(),re(n.props)||n.setState({inView:e,entry:t}),n.props.onChange&&n.props.onChange(e,t)},n.state={inView:!!t.initialInView,entry:void 0},n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i5(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},n.componentWillUnmount=function(){this.unobserve(),this.node=null},n.observeNode=function(){if(!(!this.node||this.props.skip)){var e=this.props,t=e.threshold,n=e.root,i=e.rootMargin,r=e.trackVisibility,o=e.delay,a=e.fallbackInView;this._unobserveCb=function(e,t,n,i){if(void 0===n&&(n={}),void 0===i&&(i=i8),typeof window.IntersectionObserver>"u"&&void 0!==i){var r=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),function(){}}var o=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var n;return t+"_"+("root"===t?(n=e.root)?(i4.has(n)||(i6+=1,i4.set(n,i6.toString())),i4.get(n)):"0":e[t])}).toString(),n=i7.get(t);if(!n){var i,r=new Map,o=new IntersectionObserver(function(t){t.forEach(function(t){var n,o=t.isIntersecting&&i.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&typeof t.isVisible>"u"&&(t.isVisible=o),null==(n=r.get(t.target))||n.forEach(function(e){e(o,t)})})},e);i=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},i7.set(t,n)}return n}(n),a=o.id,l=o.observer,c=o.elements,s=c.get(e)||[];return c.has(e)||c.set(e,s),s.push(t),l.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(c.delete(e),l.unobserve(e)),0===c.size&&(l.disconnect(),i7.delete(a))}}(this.node,this.handleChange,{threshold:t,root:n,rootMargin:i,trackVisibility:r,delay:o},a)}},n.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},n.render=function(){if(!re(this.props)){var e=this.state,t=e.inView,n=e.entry;return this.props.children({inView:t,entry:n,ref:this.handleNode})}var i=this.props,r=i.children,o=i.as,a=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(i,i9);return ir(o||"div",i3({ref:this.handleNode},a),r)},t}(il);function rn(){return q("div",{className:"h-[267px] w-full bg-[--bg-primary] py-2.5 text-[--text-primary]",children:q("div",{className:"max-w-mobile wp-inner-content mx-auto flex h-full flex-col",children:[q("div",{className:"flex flex-1 flex-col items-center justify-center gap-2",children:[q(tr,{className:"size-10"}),q("span",{className:"text-center text-base/5 font-medium",children:"Nie możemy teraz sprawdziÄ informacji dla Twojej lokalizacji. Spr\xf3buj odÅwieżyÄ stronÄ."})]}),q("button",{className:"w-fit border-none bg-transparent text-base/5 text-inherit underline decoration-[10%] underline-offset-[24%]",onClick:function(){window.location.reload()},children:"OdÅwież stronÄ"})]})})}function ri(){return q("div",{className:"wp-loader-box",children:[q(nM,{}),q("span",{className:"wp-info-box",children:["Sprawdzamy informacje dla ",q("br",{})," Twojej lokalizacji"]})]})}function rr(e){return q("button",{type:"button",className:"flex h-10 w-full items-center justify-center rounded-lg bg-[--bg-secondary] text-lg font-medium text-[--text-secondary]",onClick:e.onClick,"data-vab-box":null.weatherDetailsGeo,children:e.text})}rt.displayName="InView",rt.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1};let ro=e=>q("svg",{fill:"none",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg",...e,children:q("path",{d:"M12.5 16.667V12.5m0-4.167h.01M22.917 12.5c0 5.753-4.664 10.418-10.418 10.418S2.082 18.253 2.082 12.5 6.746 2.083 12.5 2.083 22.917 6.747 22.917 12.5Z",stroke:"currentColor","stroke-linecap":"round","stroke-width":"2"})});function ra(){return q("div",{className:"flex size-full items-center justify-center gap-2.5 rounded-lg border border-solid border-white/10 bg-white/5 px-2.5 py-5 text-[--text-primary]",children:[q(ro,{className:"size-6 shrink-0"}),q("span",{className:"text-sm/4 font-medium",children:"Dla zagranicznych miast nie mamy jeszcze lokalnych wiadomoÅci."})]})}function rl(e){let{iconId:t,messUrl:n,temperature:i,intervals:r,precipitation:o}=e;return q("div",{className:"flex items-center justify-between",children:[q("div",{className:"flex items-center",children:[q(ej,{iconId:t,width:36,height:36,messUrl:n}),q("div",{className:"ml-2 flex flex-col",children:q("div",{className:"text-4xl",children:[i,"\xb0"]})})]}),!!(null!=r&&r.length)&&q(nG,{forecastData:r,iconId:t,precipitation:o,messUrl:n})]})}function rc(e){let{messUrl:t,onCityChange:n,data:i,hasLocation:r,lastSearchedCities:o,sourceAreaId:a}=e,[l,c]=ed(!1),{weather:s,teaser:d}=i,u="Polska"===s.country?d:null,p=function(e,t){let n=eh(null);return ep(()=>{let t=n.current;t&&e&&function(e,t,n){var i,r,o;let a=document.createElement("a");
1a.classList.add("wp-teaser-inline"),a.id=`${t.id}-${t.categoryId}`,a.href=t.url,a.setAttribute("data-bdbd",JSON.stringify({type:"sgTeaser",teaserId:t.id,categoryId:t.categoryId,baseTeaserId:t.baseTeaserId,pinned:t.pinned,siteVisited:t.siteVisited,teaserVisited:!1,teaserClicked:t.teaserClicked,teaserViewed:t.teaserViewed,indexInCategory:t.indexInCategory,banditScore:t.banditScore,dotParams:t.wp_dot_addparams,globalIndex:t.globalIndex,alternativesCount:t.alternativesCount})),a.setAttribute("data-st-clk",`{"teaserId":"${t.id}","sgcat":"${t.categoryId}","sgcatidx":"${t.indexInCategory}"}`);let l=document.createElement("div");l.classList.add("wp-image-wrapper");let c=document.createElement("div");c.classList.add("wp-image-placeholder");let s=document.createElement("img"),d=function(e,t="",n="",i){return e?`//i.wpimg.pl/${t}x${n}/${e.replace(/(https?:)?\/\//g,"")}`:e}(t.images.r1_365,236)||t.images.r1_365;s.src=(null==(o=null==(r=null==(i=window.WP)?void 0:i.crux)?void 0:r.mess)?void 0:o.call(r,d))??d,s.setAttribute("data-bdimg","true"),c.appendChild(s),l.appendChild(c);let u=document.createElement("div");u.classList.add("wp-content-wrapper");let p=document.createElement("h3");if(p.classList.add("wp-title"),t.titlePrefix){let e=document.createElement("span");e.textContent=`${t.titlePrefix} `,p.appendChild(e)}p.append(t.title),u.appendChild(p),a.appendChild(l),a.appendChild(u),e.appendChild(a)}(t,e)},[e]),n}(u),h=r&&!!u;function _(){c(!1)}function f(){c(!0)}return q(O,{children:q("div",{ref:eD({areaId:null.localWeather}),className:"w-full bg-[--bg-primary] py-2.5 text-[--text-primary]",children:q("div",{className:"max-w-mobile wp-inner-content mx-auto flex w-full flex-col gap-5",children:[q(tC,{title:"Twoja okolica:",cityName:s.city,onModalOpen:f}),l&&q(t9,{city:s.city,lastSearchedCities:o,onClose:_,onCityChange:function(e){n(e),_()},sourceAreaId:a}),q(rl,{precipitation:s.precipitation,intervals:s.intervals,iconId:s.iconId,temperature:s.temperature,cityId:s.geonameId,messUrl:t}),u?q("div",{ref:p,className:"flex h-[86px] w-full"}):q(ra,{}),h?q(ns,{cityId:s.geonameId}):q(rr,{text:r?"ZmieÅ lokalizacjÄ":"ZmieÅ na swojÄ
lokalizacjÄ",onClick:f})]})})})}function rs({geonameId:e}){let{data:t}=nF(e),n=eD({areaId:"weather",useTime:!0});if(!t)return null;let{iconId:i,temperature:r,description:o}=t;return q("div",{className:"wp-weather-widget-local",ref:n,children:q("div",{className:"flex items-center justify-center",children:[q("div",{className:"flex items-center",children:[i?q(ej,{iconId:i,width:40,height:40,className:"text-transparent"}):null,q("div",{className:"ml-2 text-2xl font-medium leading-none",children:[r,"\xb0"]})]}),o?q("div",{className:"ml-[1rem] text-base/tight text-[--text-primary,#fff] first-letter:uppercase",children:o}):null]})})}function rd(e,t,n={}){let i=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;n.expires&&(i+=`; expires=${n.expires.toUTCString()}`),n.domain&&(i+=`; domain=${n.domain}`),n.path&&(i+=`; path=${n.path}`),n.secure&&(i+="; secure"),n.sameSite&&(i+=`; samesite=${n.sameSite}`),document.cookie=i}function ru(){window.dispatchEvent(new CustomEvent("wp:theme-change"))}let rp=e=>{rd("wp_dark",e?"0":"1",{..."localhost"===window.location.hostname?{path:"/"}:{domain:window.__INIT_CONFIG__.cookieDomain,path:"/",sameSite:"none",secure:!0},expires:new Date(Date.now()+31536e6)})};function rh(e,t=!0){try{window.WP.push(function(){window.WP.stat.setDarkMode(e)}),t&&u("evt_menu",{event:e?"darkmode_on":"darkmode_off"})}catch(e){console.error(e)}}function r_(e){let t=document.querySelector('meta[name="logo"]');if(!t)return;let n=t.content;if(e){let e=n.replace("logo.png","logoDark.png"),i=new Image;i.onload=()=>t.content=e,i.src=e}else t.content=n.replace("logoDark.png","logo.png")}let rf=!1,rm=0,rv=null;function rg(e){let t=e instanceof Element?e:null;for(;t&&t!==document.body;){if(function(e){let t=window.getComputedStyle(e).overflowY;return("auto"===t||"scroll"===t)&&e.scrollHeight>e.clientHeight}(t))return t;t=t.parentElement}return null}function rw(e){1===e.targetTouches.length?(rm=e.targetTouches[0].clientY,rv=rg(e.target)):rv=null}function ry(e){if(1!==e.targetTouches.length)return;let t=null!=rv?rv:rg(e.target);if(!t){e.preventDefault();return}let n=e.targetTouches[0].clientY-rm,{scrollTop:i,scrollHeight:r,clientHeight:o}=t;(i<=0&&n>0||i+o>=r&&n<0)&&e.preventDefault()}function rb(){document.body.classList.add("wp-scroll-lock"),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&!rf&&(rf=!0,document.addEventListener("touchstart",rw,{passive:!0}),document.addEventListener("touchmove",ry,{passive:!1}))}function rx(){document.body.classList.remove("wp-scroll-lock"),rf&&(rf=!1,rv=null,document.removeEventListener("touchstart",rw),document.removeEventListener("touchmove",ry))}function rk(){let e=document.createElement("div");return e.className="h-0",e}function rC(e){return{get:(t,n)=>
1"push"===n?function(...n){return rS===e&&n.forEach(e=>"function"==typeof e&&e()),Array.prototype.push.apply(t,n)}:Reflect.get(t,n)}}let rN=new Proxy([],rC("wide")),rI=new Proxy([],rC("narrow")),rE=new Proxy([],rC("extrawide")),rS=null,rA=[],rT=new Proxy(rA,{get:(e,t)=>"push"===t?function(...t){if(null!==rz){let e=rz;t.forEach(t=>"function"==typeof t&&t(e))}return Array.prototype.push.apply(e,t)}:Reflect.get(e,t)}),rz=null;function rL(e){rz=e,rA.forEach(t=>t(e))}function rO(e,t,n,i,r,o){let a;if(o){e.forEach(e=>"function"==typeof e&&e());return}a=r&&window.innerWidth>=r?"extrawide":window.innerWidth>=i?"wide":"narrow",rS!==a&&(rS=a,"wide"===a&&t.length&&t.forEach(e=>"function"==typeof e&&e()),"extrawide"===a&&n.length&&n.forEach(e=>"function"==typeof e&&e()),"narrow"===a&&e.length&&e.forEach(e=>"function"==typeof e&&e()))}let rP={registerNative:function(e,t,n,i="recommendations-bottom-new"){window.WP.push(()=>{try{let r=window.location.origin+window.location.pathname,o=function(e,t){if(t in window.__GOFER_FACTORY__.userActions.containers)return window.__GOFER_FACTORY__.userActions.containers[t];let n=function(e,t){let n=window.__INIT_CONFIG__.isLoggedIn,i=window.location.origin+window.location.pathname;return window.WP.pwp.registerContainer({type:"area",areaid:t,length:e,isLogged:n,url:i})}(e,t);return"number"!=typeof n?null:(window.__GOFER_FACTORY__.userActions.containers[t]=n,n)}(n,i);if(null===o)return;let a={type:e.dataNative.src?"teaser":"teaserNoPhoto",index:t,url:r,areaid:i,target_url:e.dataNative.url,img:e.dataNative.src,recommendationType:"moth"===e.type?"big-data":"ad",yd:""};window.WP.pwp.registerBox(e.originalEl,a,o,{time:1,percent:50})}catch(e){console.error(e)}})},registerNativeIntextTeaser:function(e,t,n){window.WP.push(()=>{try{let i=window.location.origin+window.location.pathname,r=window.__INIT_CONFIG__.isLoggedIn,o=window.WP.pwp.registerContainer({type:"area",areaid:"adspace-recommendation",length:n,isLogged:r,position:t,url:i});if("number"!=typeof o)return;let a={type:"intextTeaser",index:0,url:i,img:e.dataNative.src,areaid:"adspace-photorecommendation",target_url:e.dataNative.url,position:t,recommendationType:"big-data",yd:""};window.WP.pwp.registerBox(e.originalEl,a,o,{time:1,percent:50})}catch(e){console.error(e)}})},containers:{}},r$="data-navigate-href",rM=`[${r$}]`,rR=new Set(["A","BUTTON"]);function rW(e,t){let n=e.getAttribute(r$),i=t||"_blank"===e.getAttribute("data-navigate-target");if(e.hasAttribute("data-navigate-back")&&!i&&window.history.length>1){window.history.back();return}if(n){if(i){window.open(n,"_blank","noopener");return}window.location.href=n}}function rD(e){return e instanceof Element?e.closest(rM):null}function rj(e){let t=rD(e.target);t&&(e.preventDefault(),rW(t,e.metaKey||e.ctrlKey||e.shiftKey))}function rU(e){if(1!==e.button)return;let t=rD(e.target);t&&(e.preventDefault(),rW(t,!0))}function rF(e){if("Enter"!==e.key&&" "!==e.key)return;let t=rD(e.target);!(!t||rR.has(t.tagName))&&(e.preventDefault(),rW(t,!1))}function rH(e){!rR.has(e.tagName)&&(e.hasAttribute("role")||e.setAttribute("role","link"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"))}function rB(e){e instanceof Element&&e.matches(rM)&&rH(e),(e instanceof Element||e instanceof Document)&&e.querySelectorAll(rM).forEach(rH)}let rG=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var rV="object"==typeof global&&global&&global.Object===Object&&global,rY="object"==typeof self&&self&&self.Object===Object&&self,rZ=rV||rY||Function("return this")();let rq=function(){return rZ.Date.now()};var rK=/\s/;let rJ=function(e){for(var t=e.length;t--&&rK.test(e.charAt(t)););return t};var rQ=/^\s+/,rX=rZ.Symbol,r0=Object.prototype,r1=r0.hasOwnProperty,r2=r0.toString,r3=rX?rX.toStringTag:void 0;let r5=function(e){var t=r1.call(e,r3),n=e[r3];try{e[r3]=void 0;var i=!0}catch(e){}var r=r2.call(e);return i&&(t?e[r3]=n:delete e[r3]),r};var r7=Object.prototype.toString,r4=rX?rX.toStringTag:void 0;let r6=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r4&&r4 in Object(e)?r5(e):r7.call(e)},r8=function(e){return"symbol"==typeof e||null!=e&&"object"==typeof e&&"[object Symbol]"==r6(e)};var r9=0/0,oe=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,on=/^0o[0-7]+$/i,oi=parseInt;let or=function(e){if("number"==typeof e)return e;if(r8(e))return r9;if(rG(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=rG(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,rJ(t)+1).replace(rQ,""):t;var i=ot.test(e);return i||on.test(e)?oi(e.slice(2),i?2:8):oe.test(e)?r9:+e};var oo=Math.max,oa=Math.min;let ol=function(e,t,n){var i,r,o,a,l,c,s=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function h(t){var n=i,o=r;return i=r=void 0,s=t,a=e.apply(o,n)}function _(e){var n=e-c,i=e-s;return void 0===c||n>=t||n<0||u&&i>=o}function f(){var e,n,i,r=rq();if(_(r))return m(r);l=setTimeout(f,(e=r-c,n=r-s,i=t-e,u?oa(i,o-n):i))}function m(e){return(l=void 0,p&&i)?h(e):(i=r=void 0,a)}function v(){var e,n=rq(),o=_(n);if(i=arguments,r=this,c=n,o){if(void 0===l)return s=e=c,l=setTimeout(f,t),d?h(e):a;if(u)return clearTimeout(l),l=setTimeout(f,t),h(c)}return void 0===l&&(l=setTimeout(f,t)),a}return t=or(t)||0,rG(n)&&(d=!!n.leading,o=(u="maxWait"in n)?oo(or(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==l&&clearTimeout(l),s=0,i=c=r=l=void 0},v.flush=function(){return void 0===l?a:m(rq())},v},oc=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw TypeError("Expected a function");return rG(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ol(e,t,{leading:i,maxWait:t,trailing:r})},os=` 2 <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"> 3 <path d="M11.5 3L6.75 7.75L4.25 5.25L0.5 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 4 <path d="M8.5 3H11.5V6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 5 </svg> 6`,od=e=>1===e?"osoba czyta teraz!":e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?"osoby czytajÄ teraz!":"os\xf3b czyta teraz!",ou=` 7 <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"> 8 <path d="M0.5 6C0.5 6 2.5 2 6 2C9.5 2 11.5 6 11.5 6C11.5 6 9.5 10 6 10C2.5 10 0.5 6 0.5 6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 9 <path d="M6 7.5C6.82843 7.5 7.5 6.82843 7.5 6C7.5 5.17157 6.82843 4.5 6 4.5C5.17157 4.5 4.5 5.17157 4.5 6C4.5 6.82843 5.17157 7.5 6 7.5Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> 10 </svg> 11`,op=`<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"> 12 <path d="M10.5 5.75001C10.5017 6.40995 10.3475 7.06096 10.05 7.65001C9.69722 8.35589 9.15488 8.9496 8.48372 9.36465C7.81257 9.77971 7.03912 9.99971 6.25 10C5.59007 10.0017 4.93906 9.84755 4.35 9.55001L1.5 10.5L2.45 7.65001C2.15247 7.06096 1.99828 6.40995 2 5.75001C2.00031 4.96089 2.22031 4.18744 2.63536 3.51629C3.05041 2.84514 3.64413 2.3028 4.35 1.95001C4.93906 1.65248 5.59007 1.49829 6.25 1.50001H6.5C7.54217 1.55751 8.52652 1.99739 9.26457 2.73544C10.0026 3.47349 10.4425 4.45784 10.5 5.50001V5.75001Z" stroke="black" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/> 13</svg>`;function oh(e){let t=document.createElement("span");return t.className="wp-comments-count-label",t.insertAdjacentHTML("beforeend",op),t.appendChild(document.createTextNode(e)),t}
13let o_=`<svg width="7" height="10" viewBox="0 0 7 10" fill="none" xmlns="http://www.w3.org/2000/svg"> 14 <path d="M0 8.6539C0 9.50826 1.00212 9.96917 1.65079 9.41316L6.1142 5.58738C6.57981 5.18829 6.57981 4.46796 6.1142 4.06887L1.65079 0.243089C1.00212 -0.312917 0 0.147993 0 1.00235V8.6539Z" fill="black"/> 15</svg>`,of="https://sgwp.wpcdn.pl/static/logotypes/feed",om={"autocentrum.pl":{img:`${of}/autocentrum.svg`,name:"AUTOCENTRUM.PL"},"autokult.pl":{img:`${of}/autokult.svg`,name:"AUTOKULT"},"benchmark.pl":{img:`${of}/benchmark.svg`,name:"BENCHMARK.PL"},"dobreprogramy.pl":{img:`${of}/dobreprogramy.svg`,name:"DOBREPROGRAMY"},"e.autokult.pl":{img:`${of}/eautokut.svg`,name:"E-AUTOKULT"},"fotoblogia.pl":{img:`${of}/fotoblogia.svg`,name:"FOTOBLOGIA"},"gadzetomania.pl":{img:`${of}/gadzetomania.svg`,name:"GADÅ»ETOMANIA"},"genialne.pl":{img:`${of}/genialne.svg`,name:"GENIALNE.PL"},"jastrzabpost.pl":{img:`${of}/jastrzabpost.svg`,name:"JASTRZABPOST.PL"},"komorkomania.pl":{img:`${of}/komorkomania.svg`,name:"KOM\xd3RKOMANIA"},"money.pl":{img:`${of}/money.svg`,name:"MONEY.PL",badgeColor:"#03357d"},"o2.pl":{img:`${of}/o2.svg`,name:"O2.PL",badgeColor:"#0d45d7"},"polygamia.pl":{img:`${of}/polygamia.svg`,name:"POLYGAMIA.PL"},"pudelek.pl":{img:`${of}/pudelek.svg`,name:"PUDELEK.PL",badgeColor:"#da2f73"},"pysznosci.pl":{img:`${of}/pysznosci.svg`,name:"PYSZNOÅCI.PL"},"deliciousmagazine.pl":{img:`${of}/pysznosci.svg`,name:"PYSZNOÅCI.PL"},"informacje.wp.pl":{img:`${of}/informacje.svg`,name:"INFORMACJE"},"sportowefakty.wp.pl":{name:"SPORTOWE FAKTY",color:"#166c00"},"wiadomosci.wp.pl":{name:"WIADOMOÅCI",color:"#c00"},"tech.wp.pl":{name:"TECH",color:"#734db2"},"abczdrowie.pl":{name:"ABC ZDROWIE",color:"#fb434b"},"teleshow.wp.pl":{name:"TELESHOW",color:"#4069a2"},"wideo.wp.pl":{name:"WIDEO",color:"#c00"},"finanse.wp.pl":{name:"FINANSE",color:"#d26740"},"kuchnia.wp.pl":{name:"KUCHNIA",color:"#66bf00"},"parenting.pl":{name:"PARENTING",color:"#e15aa2"},"kobieta.wp.pl":{name:"KOBIETA",color:"#a65867"},"facet.wp.pl":{name:"FACET",color:"#80838a"},"gry.wp.pl":{name:"GRY",color:"#406c94"},"turystyka.wp.pl":{name:"TURYSTYKA",color:"#3d6fb0"},"film.wp.pl":{name:"FILM",color:"#694BBD"},"moto.wp.pl":{name:"MOTO",color:"#e54600"},"pogoda.wp.pl":{name:"POGODA",color:"#02ade3"},"wszechmocne.wp.pl":{name:"WSZECHMOCNE",color:"#a65867"},"kultura.wp.pl":{name:"KULTURA",color:"#ca0044"},"dom.wp.pl":{name:"DOM",color:"#31b4d0"},"popularne.pl":{name:"POPULARNE",color:"#d21f15"},"gwiazdy.wp.pl":{name:"GWIAZDY",color:"#9c7aaa"},"premium.wp.pl":{name:"PREMIUM",color:"#22242d"},"rolnicy.wp.pl":{name:"ROLNICY",color:"#13663C"},"zwierzaki.wp.pl":{name:"ZWIERZAKI",color:"#FE5C0B"}};function ov(e){let t=function(e){for(let t in om)if(e.includes(t))return om[t];return null}(e);if(!t)return null;let n=document.createElement("div");n.className="wp-service-label";let i=document.createElement("div");if(i.className="wp-service-logo",t.img){let e=document.createElement("img"),n=window.WP.crux.mess(t.img);e.src=n,e.alt="",e.height=18,e.width=18,i.appendChild(e)}if(t.color){i.style.backgroundColor=t.color;let e=document.createElement("img"),n=window.WP.crux.mess("https://sgwp.wpcdn.pl/static/images/svg/logo.svg");e.src=n,e.alt="",e.width=13,e.height=8,i.appendChild(e)}return n.appendChild(i),n.appendChild(document.createTextNode(t.name)),n}function og(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let ow="cHJldmVudENC";function oy(e){if(!e)return null;try{return new URL(e)}catch(e){return null}}class ob extends Array{push(...e){let t=super.push(...e);return e.forEach(e=>{"function"==typeof this.handler&&this.handler(e)}),t}constructor(e){super(),og(this,"handler",void 0),this.handler=e}}let ox=()=>` 16 <svg 17 xmlns="http://www.w3.org/2000/svg" 18 fill="currentColor" 19 viewBox="0 0 14 24" 20 > 21 <path d="M9.48 11.648a.5.5 0 0 1 0 .704L.7 21.195a1 1 0 0 0 0 1.41l.676.68a1 1 0 0 0 1.419 0L13.3 12.705a1 1 0 0 0 0-1.41L2.795.715a1 1 0 0 0-1.42 0l-.675.68a1 1 0 0 0 0 1.41z"></path> 22 </svg> 23 `,ok="service_header_back",oC=e=>e?new URL(e,window.location.href).href:void 0,oN=e=>{let{containerId:t,currentUrl:n}=e,i=document.getElementById("service_logo");i&&window.WP.pwp.registerBox(i,{type:"button",index:0,url:n,areaid:"service_header",target_url:i.href,id:"service_logo",yd:""},t,{time:1,percent:50})},oI=e=>{let{containerId:t,currentUrl:n}=e,i=document.getElementById("wp-sgwp-logo-link");i&&window.WP.pwp.registerBox(i,{type:"button",index:1,url:n,areaid:"service_header",target_url:i.dataset.vabTargetUrl,id:"sgwp_logo",yd:""},t,{time:1,percent:50})},oE=e=>{let{containerId:t,currentUrl:n,isLogged:i,isMobile:r}=e,o=document.getElementById("wp-poczta-link");o&&window.WP.pwp.registerBox(o,{type:"button",isLogged:i,url:n,areaid:"service_header",index:r?2:8,id:"poczta"},t)},oS=e=>{let{containerId:t,currentUrl:n,isLogged:i,isMobile:r}=e,o=document.getElementById("wp-login-button");o&&window.WP.pwp.registerBox(o,{type:"button",isLogged:i,url:n,areaid:"service_header",index:r?3:10,id:"login"},t)},oA=e=>{let{containerId:t,currentUrl:n,isLogged:i}=e,r=document.getElementById("wp-logged-button");r&&window.WP.pwp.registerBox(r,{type:"button",isLogged:i,url:n,areaid:"service_header",index:0,id:"profil"},t)},{isMobile:oT,isLoggedIn:oz,goferGoogleTagManagerID:oL}=window.__INIT_CONFIG__;window.NativeAdManager=new class{initAsyncQueue(){var e;(null===(e=window.asyncNativeQueue)||void 0===e?void 0:e.length)&&window.asyncNativeQueue.forEach(e
23=>{e.action&&e.payload&&this.handleAction(e)}),window.asyncNativeQueue=new ob(this.handleAction)}getElement(e){return document.querySelector(`.${e}`)}createNativeTeaser(e,t,n,i){let r=t.labelText||"REKLAMA",o=document.createElement("a"),a=document.createElement("div"),l=document.createElement("img"),c=document.createElement("span"),s=e.getAttribute("data-position"),d=t.commentsCount||"0",u=t.videoLength||0;if(o.classList.add("wp-native-teaser-anchor"),o.setAttribute("href",t.url||""),a.classList.add("wp-native-img-container"),l.setAttribute("src",t.src||""),c.textContent=t.text||"",e.classList.contains("wp-cockroach-native-teaser")){var p;let{containerRatio:e,mismatchThreshold:n}=window.__INIT_CONFIG__.isMobile?{containerRatio:1.87619,mismatchThreshold:1.28}:{containerRatio:1.90909,mismatchThreshold:1.3};"number"==typeof(p=t.imageAspectRatio)&&Math.max(p/e,e/p)>n&&(a.dataset.fit="contain")}if(a.appendChild(l),o.appendChild(a),o.appendChild(c),e.appendChild(o),t.privacyIcon&&t.privacyLink){let n=document.createElement("a");n.classList.add("wp-native-privacy-anchor");let i=document.createElement("img");n.setAttribute("href",t.privacyLink),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"),i.setAttribute("src",t.privacyIcon),n.appendChild(i),o.setAttribute("data-privacy","true"),e.appendChild(n)}let h={type:"native",dataNative:t,originalEl:o};if(!t.hideLabel)return o.classList.add(ow),o.setAttribute("data-before",r),h;if(oy(t.originalUrl)){let e=s?parseInt(s):0,t=n&&parseInt(d)>5,r=i&&u>0;if(t||r){let e=document.createElement("div");e.className="wp-labels-container",r&&e.appendChild(function(e){let t=document.createElement("span");return t.className="wp-video-duration-label",t.insertAdjacentHTML("beforeend",o_),t.appendChild(document.createTextNode(function(e){let t=Math.floor(e/3600),n=Math.floor(e%3600/60),i=String(e%60).padStart(2,"0"),r=String(n).padStart(2,"0");return t>0?`${t}:${r}:${i}`:`${n}:${i}`}(e))),t}(u)),t&&e.appendChild(oh(d)),a.appendChild(e)}e>0&&o.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:e})),h.type="moth"}return h}createNativeTeaserWithLabels(e,t){let n=t.labelText||"REKLAMA",i=document.createElement("a"),r=document.createElement("div"),o=document.createElement("img"),a=document.createElement("span"),l=e.getAttribute("data-position");if(i.classList.add("wp-native-teaser-anchor"),i.setAttribute("href",t.url||""),r.classList.add("wp-native-img-container"),o.setAttribute("src",t.src||""),a.textContent=t.text||"",r.appendChild(o),i.appendChild(r),i.appendChild(a),e.appendChild(i),t.privacyIcon&&t.privacyLink){let n=document.createElement("a");n.classList.add("wp-native-privacy-anchor");let r=document.createElement("img");n.setAttribute("href",t.privacyLink),n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"),r.setAttribute("src",t.privacyIcon),n.appendChild(r),i.setAttribute("data-privacy","true"),e.appendChild(n)}let c={type:"native",dataNative:t,originalEl:i};if(!t.hideLabel)return i.classList.add(ow),i.setAttribute("data-before",n),c;if(oy(t.originalUrl)){let n=parseInt(e.getAttribute("data-readers")||"0"),r=parseInt(e.getAttribute("data-views")||"0");if(n)i.appendChild(function(e){let t=document.createElement("div");t.className="wp-readers-label";let n=document.createElement("span");return n.innerHTML=`<b>${e}</b> ${od(e)}`,t.insertAdjacentHTML("beforeend",os),t.appendChild(n),t}(n));else if(r)i.appendChild(function(e){let t=document.createElement("div");t.className="wp-views-label";let n=document.createElement("span");return n.innerHTML=`<b>${e} tys.</b> wyÅwietleÅ`,t.insertAdjacentHTML("beforeend",ou),t.appendChild(n),t}(r));else if(t.originalUrl){let e=ov(t.originalUrl);e&&i.appendChild(e)}let o=l?parseInt(l):0;o>0&&i.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:o})),c.type="moth"}return c}createExitPopupNativeTeaser(e,t){let n=document.createElement("a"),i=document.createElement("div"),r=document.createElement("div"),o=document.createElement("img"),a=document.createElement("span"),l=document.createElement("span"),c=e.getAttribute("data-position"),s=t.commentsCount||"0";if(n.classList.add("wp-native-teaser-anchor"),n.setAttribute("href",t.url||""),i.classList.add("wp-native-teaser-content-container"),r.classList.add("wp-native-img-container"),o.setAttribute("src",t.src||""),a.textContent=t.text||"",a.classList.add("wp-native-teaser-text"),l.innerHTML=`Zobacz caÅy artykuÅ ${ox()}`,l.classList.add("wp-native-teaser-button"),r.appendChild(o),i.appendChild(r),i.appendChild(a),n.appendChild(i),n.appendChild(l),e.appendChild(n),t.privacyIcon&&t.privacyLink){let i=document.createElement("a");i.classList.add("wp-native-privacy-anchor");let r=document.createElement("img");i.setAttribute("href",t.privacyLink),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer"),r.setAttribute("src",t.privacyIcon),i.appendChild(r),n.setAttribute("data-privacy","true"),e.appendChild(i)}let d={type:"native",dataNative:t,originalEl:n},u=oy(t.originalUrl);
23if(u){let e=u.hostname.replace(/^www\./,"").toUpperCase();n.setAttribute("data-service",e),parseInt(s)>5&&r.appendChild(oh(s));let t=c?parseInt(c):0;t>0&&n.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:t})),d.type="moth"}return d}createBottombarPanelTeaser(e,t){let n=document.createElement("a");n.href=t.url||"",n.className="wp-timeline-teaser wp-timeline-teaser-horizontal";let i=e.getAttribute("data-position");if(t.src){let e=document.createElement("img");e.src=t.src,e.alt=t.text||"",e.className="timeline-teaser-image timeline-teaser-image-horizontal",n.appendChild(e)}let r=document.createElement("span");if(r.className="teaser-content teaser-content-horizontal",r.textContent=t.text||"",n.appendChild(r),e.appendChild(n),t.privacyIcon&&t.privacyLink){let i=document.createElement("a");i.classList.add("wp-native-privacy-anchor");let r=document.createElement("img");i.setAttribute("href",t.privacyLink),i.setAttribute("target","_blank"),i.setAttribute("rel","noopener noreferrer"),r.setAttribute("src",t.privacyIcon),i.appendChild(r),n.setAttribute("data-privacy","true"),e.appendChild(i)}let o={type:"native",dataNative:t,originalEl:n},a=oy(t.originalUrl);if(a){let e=a.hostname.replace(/^www\./,"").toUpperCase();n.setAttribute("data-service",e);let t=i?parseInt(i):0;t>0&&n.setAttribute("data-st-clk",JSON.stringify({mth_type:"s",mth_index:t})),o.type="moth"}return o}createNativeTeaserWithoutPhoto(e,t,n=!1,i=!1,r="",o=!1){let a=document.createElement("div");a.className="wp-superteaser wp-superteaser-teaser-without-photo",i||a.classList.add("wp-superteaser-disable-border");let l=document.createElement("a");if(l.className="wp-link",r&&l.classList.add(r),l.href=t.url||"",t.originalUrl){let e=ov(t.originalUrl);e&&l.appendChild(e)}let c=document.createElement("div");c.className="wp-content";let s=document.createElement("div");s.className="wp-title";let d=document.createElement("span");if(d.textContent=t.text||"",s.appendChild(d),c.appendChild(s),t.leadText){let e=document.createElement("p");e.innerHTML=t.leadText,c.appendChild(e)}if(l.appendChild(c),o){let e=t.commentsCount||"0";parseInt(e)>5&&l.appendChild(oh(e))}let u=document.createElement("div");u.className="wp-action-bar",n&&u.classList.add("all-article-button");let p=document.createElement("span");return p.className=n?"wp-look-all-article-button":"wp-see-more-button",n?p.innerHTML=`Zobacz caÅy artykuÅ ${ox()}`:p.textContent="Czytaj wiÄcej",u.appendChild(p),l.appendChild(u),a.appendChild(l),e.appendChild(a),{type:"native",dataNative:t,originalEl:a}}updateTeaserVisibility(e,t){let n=this.getElement(e);n&&(n.style.display="hide"===t?"none":"inherit")}handleNativeTeaser(e){let t;let{dataNative:n,onViewCallback:i,teaserClassName:r,nativeSlotClassName:o,template:a}=e,l=this.getElement(o);if(!l)return null;if(n.src)switch(a){case"bottombar-panel":t=this.createBottombarPanelTeaser(l,n);break;case"exitpopup":t=this.createExitPopupNativeTeaser(l,n);break;case"recommendations-splited":t=this.createNativeTeaserWithLabels(l,n);break;case"recommendations-video":t=this.createNativeTeaser(l,n,!1,!1);break;default:t=this.createNativeTeaser(l,n,!0,!0)}else switch(a){case"exitpopup":t=this.createNativeTeaserWithoutPhoto(l,n,!0,!0,"wp-exit-popup-native-teaser-link",!0);break;case"bottombar-panel":t=this.createNativeTeaserWithoutPhoto(l,n);break;default:t=this.createNativeTeaserWithoutPhoto(l,n,!1,!0)}return this.updateTeaserVisibility(r,"hide"),i({el:l}),t}handleNativeScreening(e,t){let n=this.getElement(e);return n?(t({el:n}),n.dataset.screening="true",n):null}handleScreeningEndSection(e,t){let n=`${e}-observer`,i=document.getElementById(n);if(!i)return;let r=0;function o(){let e=i.getBoundingClientRect().top-t.getBoundingClientRect().top;r!==e&&(t.style.maxHeight=`${e}px`,r=e)}let a=oc(o,350);o(),window.addEventListener("scroll",()=>a(),{passive:!0})}handleGlobalScreeningClass(e,t){document.body.classList.add("fullServiceWallpaper"===e||t?"fullpage":"glopage")}constructor(e){og(this,"options",void 0),og(this,"handlers",void 0),og(this,"handleAction",void 0),og(this,"onTeaser",void 0),og(this,"onAlternativeScreening",void 0),og(this,"onFullpageScreening",void 0),og(this,"onScreening",void 0),og(this,"onPanelPremium",void 0),og(this,"onSectionPremiumBranding",void 0),og(this,"onLabelTarget",void 0),this.options=e,this.handleAction=e=>{"onTeaser"===e.action&&this.onTeaser(e.payload),"onScreening"===e.action&&this.onScreening(e.payload),"onAlternativeScreening"===e.action&&this.onAlternativeScreening(e.payload),"onFullpageScreening"===e.action&&this.onFullpageScreening(e.payload),"onPanelPremium"===e.action&&this.onPanelPremium(e.payload),"onLabelTarget"===e.action&&this.onLabelTarget(e.payload),"onSectionPremiumBranding"===e.action&&this.onSectionPremiumBranding(e.payload)},this.onTeaser=e=>{if(!e.dataNative)return;let{type:t}
23=e.dataNative,{teaserClassName:n,nativeSlotClassName:i,alternativeContainerClassName:r,dataNative:o,onViewCallback:a,template:l}=e;if("teaser"===t&&"function"==typeof e.onViewCallback){let t=this.handleNativeTeaser({dataNative:o,onViewCallback:a,teaserClassName:n,nativeSlotClassName:i,template:l});"function"==typeof e.onRenderCallback&&t&&e.onRenderCallback(t)}if("teaserHide"===t&&this.updateTeaserVisibility(n,"hide"),"teaserShow"===t&&this.updateTeaserVisibility(n,"show"),"alternativeSlot"===t&&"function"==typeof a){let e=this.getElement(r);if(!e)return;a({el:e})}},this.onAlternativeScreening=e=>{var t,n,i;if(!e.dataNative||"function"!=typeof e.onViewCallback)return;let{screeningWallpaperClassName:r,alternativeContainerClassName:o,slotNumber:a,dataNative:l,onViewCallback:c}=e,{type:s}=l;if("alternativeSlot"===s){let e=this.getElement(o);if(!e)return;l.buildPlaceholder&&this.handlers.onRegisterPlaceholder(a,null!==(n=null==e?void 0:null===(t=e.parentNode)||void 0===t?void 0:t.parentNode)&&void 0!==n?n:null),c({el:e})}"wallpaper"===s&&(this.handleNativeScreening(r,c),null===(i=document.querySelector(".wp-rail-margin-reserved"))||void 0===i||i.classList.add("wallpaper-active"))},this.onFullpageScreening=e=>{if(e.dataNative&&"function"==typeof e.onViewCallback&&("wallpaper"===e.dataNative.type||"fullServiceWallpaper"===e.dataNative.type)){let t=this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback),n=!!e.dataNative.endSection&&"glonews"!==e.dataNative.endSection;if(this.handleGlobalScreeningClass(e.dataNative.type,n),t&&e.dataNative.endSection)this.handleScreeningEndSection(e.dataNative.endSection,t)}},this.onScreening=e=>{if(!e.dataNative||"wallpaper"!==e.dataNative.type||"function"!=typeof e.onViewCallback)return;let t=this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback);t&&e.dataNative.endSection&&"tourism"===e.dataNative.endSection&&(this.handleGlobalScreeningClass(e.dataNative.type,!0),t.setAttribute("data-takeover","true"))},this.onPanelPremium=e=>{e.dataNative&&("wallpaper"===e.dataNative.type&&"function"==typeof e.onViewCallback&&this.handleNativeScreening(e.screeningWallpaperClassName,e.onViewCallback),"function"==typeof e.onRenderCallback&&e.onRenderCallback(e.dataNative))},this.onSectionPremiumBranding=e=>{if(e.dataNative&&"function"==typeof e.onViewCallback){if("sectionBranding"===e.dataNative.type){let t=document.querySelector(e.sectionSelector);t&&e.onViewCallback({el:t});return}this.onLabelTarget({targetId:e.targetId,dataNative:e.dataNative,onViewCallback:e.onViewCallback})}},this.onLabelTarget=e=>{let t=document.getElementById(e.targetId);t&&e.onViewCallback({el:t})},this.handlers=e,this.initAsyncQueue()}}({onRegisterPlaceholder:(e,t,n)=>{try{"function"==typeof window.WP.gaf.registerPlaceholder&&window.WP.gaf.registerPlaceholder(e,t,n)}catch(e){console.error(e)}}}),function(e){var t,n,i;window.__GOFER_FACTORY__={},window.__GOFER_FACTORY__.onNarrow=rI,window.__GOFER_FACTORY__.onWide=rN,window.__GOFER_FACTORY__.onExtraWide=rE,window.__GOFER_FACTORY__.createSlot=rk,window.__GOFER_FACTORY__.createPlaceholder=(t=window.__INIT_CONFIG__.randvar,n=window.__INIT_CONFIG__.randomClasses,i=window.__INIT_CONFIG__.removePaddingBottom,function(e,r,o,a){let l=document.createElement("div");return l.classList.add(t||""),l.classList.add(n[e]||""),r&&l.classList.add(n.transparent||""),o&&l.classList.add(n.placeholderMargin||""),a&&l.classList.add(n.boxSizingContentBox||""),i&&l.classList.add(n.removePaddingBottom||""),l}),window.__GOFER_FACTORY__.onTabChangeTrigger=rL,window.__GOFER_FACTORY__.onTabChange=rT,window.__GOFER_FACTORY__.disableBodyScroll=rb,window.__GOFER_FACTORY__.clearBodyScroll=rx,window.__GOFER_FACTORY__.userActions=rP,rO(window.__GOFER_FACTORY__.onNarrow,rN,rE,e.breakpointNarrow,e.breakpointExtraWide,e.isMobile),window.addEventListener("resize",()=>{rO(window.__GOFER_FACTORY__.onNarrow,rN,rE,e.breakpointNarrow,e.breakpointExtraWide,e.isMobile)})}({breakpointNarrow:window.breakpointNarrow,breakpointExtraWide:window.breakpointExtraWide,isMobile:oT}),function(e){e&&window.WP.push(function(){var t;null===(t=window.WP.gdpr)||void 0===t||t.runAfterConsent(function(){var t;window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":new Date().getTime(),event:"gtm.js"});let n=document.getElementsByTagName("script")[0],i=document.createElement("script");i.async=!0,i.src=`https://www.googletagmanager.com/gtm.js?id=${e}`,(null!==(t=null==n?void 0:n.parentNode)&&void 0!==t?t:document.head).insertBefore(i,null!=n?n:null)})})}(oL),function(e=!0){var t;let n=document.getElementById("darkModeCheckbox");n&&("localhost"!==window.location.hostname&&`.${window.location.hostname}`!==window.__INIT_CONFIG__.cookieDomain&&rd("wp_dark","",{expires:new Date(0),domain:window.location.hostname,path:"/"}),n.addEventListener("click",()=>{let t=document.documentElement.classList.contains("dark");document.documentElement.classList.toggle("dark"),r_(!t),rp(t),rh(!t,e),ru()}),null===(t=window.matchMedia("(prefers-color-scheme: dark)"))||void 0===t||t.addEventListener("change",function(t){if(null!==function(e){for(let t of document.cookie.split("; ")){let[n,i]=t.split("=");if(decodeURIComponent(n)===e)return decodeURIComponent(i)}return null}("wp_dark"))return;let n=t.matches;n!==document.documentElement.classList.contains("dark")&&(document.documentElement.classList.toggle("dark"),r_(n),rh(n,e),ru())}))}(),function(e=document){rB(e),window.__NAVIGATE_LINKS_INITIALIZED__||(document.addEventListener("click",rj),document.addEventListener("auxclick",rU),document.addEventListener("keydown",rF),window.__NAVIGATE_LINKS_INITIALIZED__=!0),window.__NAVIGATE_LINKS_OBSERVER_STARTED__||(window.__NAVIGATE_LINKS_OBSERVER_STARTED__=!0,function(e=document.body){new MutationObserver(e=>
23{e.forEach(e=>{e.addedNodes.forEach(e=>rB(e))})}).observe(e,{childList:!0,subtree:!0})}())}(),function(){let e=document.getElementById("wp-main-menu");if(!e)return;let{height:t}=e.getBoundingClientRect();t&&document.body.style.setProperty("--nav-header-height",`${t+17.5}px`)}(),function(){let e=document.querySelector(".wp-ticker-container");if(!e)return;let t=window.scrollY,n=0,i=function(e,t=200){let n;return(...i)=>{clearTimeout(n),n=setTimeout(()=>{e(...i)},t)}}(function(){let i=e.offsetHeight,r=window.scrollY,o=e.hasAttribute("data-ticker-hidden"),a=r>t,l=r<t,c=r-t;a&&c>2?n+=c:a||(n=0),a&&!o&&n>i?e.setAttribute("data-ticker-hidden","true"):l&&o&&e.removeAttribute("data-ticker-hidden"),t=r},100);window.addEventListener("scroll",i,{passive:!0})}(),function(){var e;let t=document.getElementById("weather-widget-local-root"),n=Number.parseInt(null!==(e=null==t?void 0:t.dataset.geonameId)&&void 0!==e?e:"",10);if(!n)return;let{isMobile:i}=window.__INIT_CONFIG__;i?function(e){let t=document.getElementById("weather-widget-local-root");t&&Y(q(rs,{geonameId:e.geonameId}),t)}({geonameId:n}):function(e){let t=document.getElementById("weather-widget-local-root");t&&Y(q(nH,{geonameId:e.geonameId}),t)}({geonameId:n})}(),d();let oO=window.location.href;function oP(){let e=document.createElement("script");e.crossOrigin="anonymous",e.src=window.__INIT_CONFIG__.scriptSrc,e.defer=!0,document.body.appendChild(e)}u("evt_ux_consumption",{event:"view",pos:"started"}),function(){let e=document.querySelectorAll("[data-uxc]");e.length&&e.forEach(e=>h.observe(e))}(),function(e,t,n){window.WP.push(()=>{(function(e,t,n){try{let i=window.WP.pwp.registerContainer({type:"area",areaid:"service_header",length:2,isLogged:e,url:t});if("number"!=typeof i)return;oN({containerId:i,currentUrl:t}),oI({containerId:i,currentUrl:t}),oE({containerId:i,currentUrl:t,isLogged:e,isMobile:n}),oS({containerId:i,currentUrl:t,isLogged:e,isMobile:n}),oA({containerId:i,currentUrl:t,isLogged:e})}catch(e){var i,r;null===(i=(r=window.WP).captureError)||void 0===i||i.call(r,e)}})(t,n,e),e?function(e,t){let n="bottombar",i=document.querySelectorAll(`[data-vab-container="${n}"]`);i.length&&function(e,t,n,i){let r={type:"area",areaid:e,length:t.length,isLogged:n,url:i},o=window.WP.pwp.registerContainer(r);"number"==typeof o&&t.forEach((t,r)=>{if(t){let a={type:"button",index:r,url:i,areaid:e,isLogged:n,id:t.dataset.vabBoxId,yd:""};window.WP.pwp.registerBox(t,a,o,{time:1,percent:50})}})}(n,i,e,t)}(t,n):function(e,t){try{let n=document.getElementById("wp-sg-back-button");if(!n)return;let i=document.querySelector(".back-button-hover-content"),r=window.WP.pwp.registerContainer({type:"area",areaid:ok,length:1,isLogged:e,url:t});if("number"!=typeof r)return;let o=(e,n)=>{let i={type:"button",index:0,url:t,areaid:ok,target_url:oC(e.dataset.vabTargetUrl),id:e.dataset.vabBoxId,yd:""};window.WP.pwp.registerBox(e,i,r,{time:1,percent:50,...n})};o(n),i&&o(i,{noView:!0})}catch(e){var n,i;null===(n=(i=window.WP).captureError)||void 0===n||n.call(i,e)}}(t,n)})}(oT,oz,oO),function(){let{body:e}=document;if("true"===e.getAttribute("data-wp-loaded")){oP();return}let t=new MutationObserver(n=>{n.forEach(n=>{"data-wp-loaded"===n.attributeName&&"true"===e.getAttribute("data-wp-loaded")&&(oP(),t.disconnect())})});t.observe(e,{attributes:!0,attributeFilter:["data-wp-loaded"]})}()})();
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.