PageSourceSearch

https://yle.fi/ukko/assets/build/813.ef65885a9e2ed4c06e31.js

js yle.fi collected 2026-09-24 07:29:30 UTC 292,579 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkukko||=[]).push([[813],{92852(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toSeconds=t.end=t.parse=t.pattern=void 0;var i="\\d+",a="".concat(i,"(?:[\\.,]").concat(i,")?"),n="(".concat(i,"Y)?(").concat(i,"M)?(").concat(i,"W)?(").concat(i,"D)?"),r="T(".concat(a,"H)?(").concat(a,"M)?(").concat(a,"S)?"),o="P(?:".concat(n,"(?:").concat(r,")?)"),l=["years","months","weeks","days","hours","minutes","seconds"],s=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0});t.pattern=new RegExp(o);t.parse=function(e){var i=e.replace(/,/g,".").match(t.pattern);if(!i)throw new RangeError("invalid duration: ".concat(e));var a=i.slice(1);if(0===a.filter(function(e){return null!=e}).length)throw new RangeError("invalid duration: ".concat(e));var n=a.findIndex(function(e){return/\./.test(e||"")});if(-1!==n&&n!==a.reduce(function(e,t,i){return null!=t?i:e},-1))throw new RangeError("only the smallest unit can be fractional");return a.reduce(function(e,t,i){return e[l[i]]=parseFloat(t||"0")||0,e},{})};t.end=function(e,t){void 0===t&&(t=new Date);var i=Object.assign({},s,e),a=t.getTime(),n=new Date(a);n.setFullYear(n.getFullYear()+i.years),n.setMonth(n.getMonth()+i.months),n.setDate(n.getDate()+i.days);var r=3600*i.hours*1e3,o=60*i.minutes*1e3;return n.setMilliseconds(n.getMilliseconds()+1e3*i.seconds+r+o),n.setDate(n.getDate()+7*i.weeks),n};t.toSeconds=function(e,i){void 0===i&&(i=new Date);var a=Object.assign({},s,e),n=i.getTime(),r=new Date(n),o=(0,t.end)(a,r),l=60*(i.getTimezoneOffset()-o.getTimezoneOffset());return(o.getTime()-r.getTime())/1e3+l},t.default={end:t.end,toSeconds:t.toSeconds,pattern:t.pattern,parse:t.parse}},9504(e,t,i){i.d(t,{YQ:()=>n,dh:()=>r});var a=i(12888);function n(e,t,i,n){var r=this,o=(0,a.useRef)(null),l=(0,a.useRef)(0),s=(0,a.useRef)(0),c=(0,a.useRef)(null),d=(0,a.useRef)([]),u=(0,a.useRef)(),p=(0,a.useRef)(),h=(0,a.useRef)(e),g=(0,a.useRef)(!0),m=(0,a.useRef)(),f=(0,a.useRef)();h.current=e;var b="undefined"!=typeof window,x=!t&&0!==t&&b;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var v=!!(i=i||{}).leading,y=!("trailing"in i)||!!i.trailing,w=!!i.flushOnExit&&y,k="maxWait"in i,j="debounceOnServer"in i&&!!i.debounceOnServer,I=k?Math.max(+i.maxWait||0,t):null,_=(0,a.useMemo)(function(){var e=function(e){var t=d.current,i=u.current;return d.current=u.current=null,l.current=e,s.current=s.current||e,p.current=h.current.apply(i,t)},i=function(e,t){x&&cancelAnimationFrame(c.current),c.current=x?requestAnimationFrame(e):setTimeout(e,t)},a=function(e){if(!g.current)return!1;var i=e-o.current;return!o.current||i>=t||i<0||k&&e-l.current>=I},_=function(t){return c.current=null,y&&d.current?e(t):(d.current=u.current=null,p.current)},C=function e(){var n=Date.now();if(v&&s.current===l.current&&S(),a(n))return _(n);if(g.current){var r=t-(n-o.current),c=k?Math.min(r,I-(n-l.current)):r;i(e,c)}},S=function(){n&&n({})},T=function(){if(b||j){var n,s=Date.now(),h=a(s);if(d.current=[].slice.call(arguments),u.current=r,o.current=s,w&&!m.current&&(m.current=function(){var e;"hidden"===(null==(e=globalThis.document)?void 0:e.visibilityState)&&f.current.flush()},null==(n=globalThis.document)||null==n.addEventListener||n.addEventListener("visibilitychange",m.current)),h){
1if(!c.current&&g.current)return l.current=o.current,i(C,t),v?e(o.current):p.current;if(k)return i(C,t),e(o.current)}return c.current||i(C,t),p.current}};return T.cancel=function(){var e=c.current;e&&(x?cancelAnimationFrame(c.current):clearTimeout(c.current)),l.current=0,d.current=o.current=u.current=c.current=null,e&&n&&n({})},T.isPending=function(){return!!c.current},T.flush=function(){return c.current?_(Date.now()):p.current},T},[v,k,t,I,y,w,x,b,j,n]);return f.current=_,(0,a.useEffect)(function(){return g.current=!0,function(){var e;w&&f.current.flush(),m.current&&(null==(e=globalThis.document)||null==e.removeEventListener||e.removeEventListener("visibilitychange",m.current),m.current=null),g.current=!1}},[w]),_}function r(e,t,i){var a=void 0===i?{}:i,r=a.leading,o=a.trailing,l=a.flushOnExit;return n(e,t,{maxWait:t,leading:void 0===r||r,trailing:void 0===o||o,flushOnExit:void 0!==l&&l})}},9319(e,t,i){var a=i(42272),n=TypeError;e.exports=function(e,t){if(!delete e[t])throw new n("Cannot delete property "+a(t)+" of "+a(e))}},72419(e,t,i){i.d(t,{Kq:()=>s,Pj:()=>l,Xr:()=>m,fp:()=>f,md:()=>g});var a=i(12888),n=i(22923),r=i(34540);const o=(0,a.createContext)(void 0);function l(e){const t=(0,a.useContext)(o);return(null==e?void 0:e.store)||t||(0,n.zp)()}function s({children:e,store:t}){const i=(0,a.useRef)(null);return t?(0,a.createElement)(o.Provider,{value:t},e):(null===i.current&&(i.current=(0,n.y$)()),(0,a.createElement)(o.Provider,{value:i.current},e))}const c=e=>"function"==typeof(null==e?void 0:e.then),d=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},u=a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(d(e),e)}),p=new WeakMap,h=(e,t,i)=>{const a=(0,r.h7)(e),n=a[26];let o=p.get(t);return o||(o=new Promise((r,l)=>{let s=t;const d=e=>t=>{s===e&&r(t)},u=e=>t=>{s===e&&l(t)},h=()=>{try{const t=i();c(t)?(p.set(t,o),s=t,t.then(d(t),u(t)),n(a,e,t,h)):r(t)}catch(e){l(e)}};t.then(d(t),u(t)),n(a,e,t,h)}),p.set(t,o)),o};function g(e,t){const{delay:i,unstable_promiseStatus:n=!a.use}=t||{},r=l(t),[[o,s,p],g]=(0,a.useReducer)(t=>{const i=r.get(e);return Object.is(t[0],i)&&t[1]===r&&t[2]===e?t:[i,r,e]},void 0,()=>[r.get(e),r,e]);let m=o;if(s===r&&p===e||(g(),m=r.get(e)),(0,a.useEffect)(()=>{const t=r.sub(e,()=>{if(n)try{const t=r.get(e);c(t)&&d(h(r,t,()=>r.get(e)))}catch(e){}if("number"==typeof i)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n  atom: Atom<Value>,\n  options: { delay: number },\n): Value {\n  const { delay } = options\n  const store = useStore(options)\n  const [value, setValue] = useState(() => store.get(atom))\n  useEffect(() => {\n    const unsub = store.sub(atom, () => {\n      setTimeout(() => setValue(store.get(atom)), delay)\n    })\n    return unsub\n  }, [store, atom, delay])\n  return value\n}\n"),void setTimeout(g,i);g()});return g(),t},[r,e,i,n]),(0,a.useDebugValue)(m),c(m)){const t=h(r,m,()=>r.get(e));return n&&d(t),u(t)}return m}function m(e,t){const i=l(t);return(0,a.useCallback)((...t)=>i.set(e,...t),[i,e])}function f(e,t){return[g(e,t),m(e,t)]}},33377(e,t,i){i.d(t,{RH:()=>r});i(12888);var a=i(72419);const n=new WeakMap;function r(e,t){const i=(0,a.Pj)(t),n=o(i);for(const[a,...r]of e)n.has(a)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(n.add(a),i.set(a,...r))}const o=e=>{let t=n.get(e);return t||(t=new WeakSet,n.set(e,t)),t}},22923(e,t,i){i.d(t,{eU:()=>l,y$:()=>d,zp:()=>u});var a=i(34540);let n,r,o=0;function l(e,t){const i="atom"+ ++o,a={toString:()=>i};return"function"==typeof e?a.read=e:(a.init=e,a.read=s,a.write=c),t&&(a.write=t),a}function s(e){return e(this)}function c(e,t,i){return t(this,"function"==typeof i?i(e(this)):i)}function d(){return n?n():(0,a._b)()}function u(){return r||(r=d()),r}},34540(e,t,i){function a(e){return"init"in e}function n(e){return"function"==typeof e.write}function r(e){return"v"in e||"e"in e}function o(e){if("e"in e)throw e.e;return e.v}function l(e){return"function"==typeof(null==e?void 0:e.then)}
1function s(e,t,i){if(!i.p.has(e)){i.p.add(e);const a=()=>i.p.delete(e);t.then(a,a)}}function c(e,t,i){const a=i.get(e),n=null==a?void 0:a.t,r=t.p;if(!(null==n?void 0:n.size))return r;if(!r.size)return n;const o=new Set(n);for(const e of r)o.add(e);return o}i.d(t,{_b:()=>$,h7:()=>L});const d=(e,t,i,...a)=>i.read(...a),u=(e,t,i,...a)=>i.write(...a),p=(e,t,i)=>i.INTERNAL_onInit(t),h=(e,t,i,a)=>{var n;return null==(n=i.onMount)?void 0:n.call(i,a)},g=(e,t,i)=>{var a;const n=e[0];let r=n.get(i);if(!r){const o=e[6],l=e[9];r={d:new Map,p:new Set,n:0},n.set(i,r),null==(a=o.i)||a.call(o,i),function(e){return!!e.INTERNAL_onInit}(i)&&l(e,t,i)}return r},m=(e,t)=>{var i;const a=e[1],n=e[3],r=e[4],o=e[5],l=e[6],s=e[13];if(!(l.f||n.size||r.size||o.size))return;const c=[],d=e=>{try{e()}catch(e){c.push(e)}};do{l.f&&d(l.f);const c=new Set;for(const e of n){const t=null==(i=a.get(e))?void 0:i.l;if(t)for(const e of t)c.add(e)}n.clear();for(const e of o)c.add(e);o.clear();for(const e of r)c.add(e);r.clear();for(const e of c)d(e);n.size&&s(e,t)}while(n.size||o.size||r.size);
1if(c.length)throw new AggregateError(c)},f=(e,t)=>{const i=e[1],a=e[2],n=e[3],r=e[11],o=e[14],l=e[17];if(!n.size)return;const s=[],d=[],u=new WeakSet,p=new WeakSet,h=[],g=[];for(const i of n)h.push(i),g.push(r(e,t,i));for(;h.length;){const n=h.length-1,o=h[n],l=g[n];if(p.has(o))h.pop(),g.pop();else if(u.has(o))a.get(o)===l.n&&(s.push(o),d.push(l)),p.add(o),h.pop(),g.pop();else{u.add(o);for(const a of c(o,l,i))u.has(a)||(h.push(a),g.push(r(e,t,a)))}}for(let i=s.length-1;i>=0;--i){const r=s[i],c=d[i];let u=!1;for(const e of c.d.keys())if(e!==r&&n.has(e)){u=!0;break}u&&(a.set(r,c.n),o(e,t,r),l(e,t,r)),a.delete(r)}},b=(e,t,i)=>{var c,d;const u=e[1],p=e[2],h=e[3],g=e[6],m=e[7],f=e[11],b=e[12],x=e[13],v=e[14],y=e[16],w=e[17],k=e[20],j=e[26],I=e[28],_=f(e,t,i),C=I[0];if(r(_)){if(u.has(i)&&p.get(i)!==_.n||_.m===C)return _.m=C,_;let a=!1;for(const[i,n]of _.d)if(v(e,t,i).n!==n){a=!0;break}if(!a)return _.m=C,_}let S=!0;const T=new Set(_.d.keys()),A=()=>{for(const e of T)_.d.delete(e)},L=()=>{if(u.has(i)){const a=!h.size;w(e,t,i),a&&(x(e,t),b(e,t))}},$=n=>{var c;if(n===i){const i=f(e,t,n);if(!r(i)){if(!a(n))throw new Error("no atom init");k(e,t,n,n.init)}return o(i)}const d=v(e,t,n);try{return o(d)}finally{T.delete(n),_.d.set(n,d.n),l(_.v)&&s(i,_.v,d),u.has(i)&&(null==(c=u.get(n))||c.t.add(i)),S||L()}};let M,B;const E={get signal(){return M||(M=new AbortController),M.signal},get setSelf(){return!B&&n(i)&&(B=(...a)=>{if(!S)try{return y(e,t,i,a)}finally{x(e,t),b(e,t)}}),B}},P=_.n,D=p.get(i)===P;try{0;const a=m(e,t,i,$,E);if(k(e,t,i,a),l(a)){j(e,t,a,()=>null==M?void 0:M.abort());const i=()=>{A(),L()};a.then(i,i)}else A();return null==(c=g.r)||c.call(g,i),_.m=C,_}catch(e){if(function(e){if(!(e instanceof Error))return!1;const t=e.name,i=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(i.includes("call stack")||i.includes("too much recursion")||i.includes("stack overflow"))}(e))throw e;return delete _.v,_.e=e,++_.n,_.m=C,_}finally{S=!1,_.n!==P&&D&&(p.set(i,_.n),h.add(i),null==(d=g.c)||d.call(g,i))}},x=(e,t,i)=>{const a=e[1],n=e[2],r=e[11],o=[i];for(;o.length;){const i=o.pop(),l=r(e,t,i);for(const s of c(i,l,a)){const i=r(e,t,s);n.get(s)!==i.n&&(n.set(s,i.n),o.push(s))}}},v=(e,t,i,n)=>{const r=e[3],l=e[6],s=e[8],c=e[11],d=e[12],u=e[13],p=e[14],h=e[15],g=e[16],m=e[17],f=e[20],b=e[28];let x=!0;const v=i=>o(p(e,t,i)),y=(n,...o)=>{var s;const p=c(e,t,n);try{if(n===i){if(!a(n))throw new Error("atom not writable");0;const i=p.n,c=o[0];return f(e,t,n,c),m(e,t,n),void(i!==p.n&&(++b[0],r.add(n),h(e,t,n),null==(s=l.c)||s.call(l,n)))}return g(e,t,n,o)}finally{x||(u(e,t),d(e,t))}};try{return s(e,t,i,v,y,...n)}finally{x=!1}},y=(e,t,i)=>{var a;const n=e[1],r=e[3],o=e[6],l=e[11],s=e[15],c=e[18],d=e[19],u=l(e,t,i),p=n.get(i);if(p&&u.d.size>0){for(const[n,d]of u.d)if(!p.d.has(n)){const u=l(e,t,n);c(e,t,n).t.add(i),p.d.add(n),d!==u.n&&(r.add(n),s(e,t,n),null==(a=o.c)||a.call(o,n))}for(const a of p.d)if(!u.d.has(a)){p.d.delete(a);const n=d(e,t,a);null==n||n.t.delete(i)}}},w=(e,t,i)=>{var a;const r=e[1],o=e[4],l=e[6],s=e[10],c=e[11],d=e[12],u=e[13],p=e[14],h=e[16],g=e[18],m=c(e,t,i);let f=r.get(i);if(!f){p(e,t,i);for(const a of m.d.keys()){g(e,t,a).t.add(i)}if(f={l:new Set,d:new Set(m.d.keys()),t:new Set},r.set(i,f),n(i)&&function(e){return!!e.onMount}(i)){const a=()=>{let a=!0;const n=(...n)=>{try{return h(e,t,i,n)}finally{a||(u(e,t),d(e,t))}};try{const r=s(e,t,i,n);r&&(f.u=()=>{a=!0;try{r()}finally{a=!1}
1})}finally{a=!1}};o.add(a)}null==(a=l.m)||a.call(l,i)}return f},k=(e,t,i)=>{var a,n;const r=e[1],o=e[5],l=e[6],s=e[11],c=e[19],d=s(e,t,i);let u=r.get(i);if(!u||u.l.size)return u;let p=!1;for(const e of u.t)if(null==(a=r.get(e))?void 0:a.d.has(i)){p=!0;break}if(p)return u;u.u&&o.add(u.u),u=void 0,r.delete(i);for(const a of d.d.keys()){const n=c(e,t,a);null==n||n.t.delete(i)}null==(n=l.u)||n.call(l,i)},j=(e,t,i,a)=>{const n=e[11],r=e[27],o=n(e,t,i),c="v"in o,d=o.v;if(l(a))for(const r of o.d.keys())s(i,a,n(e,t,r));o.v=a,delete o.e,c&&Object.is(d,o.v)||(++o.n,l(d)&&r(e,t,d))},I=(e,t,i)=>o((0,e[14])(e,t,i)),_=(e,t,i,...a)=>{const n=e[3],r=e[12],o=e[13],l=e[16],s=n.size;try{return l(e,t,i,a)}finally{n.size!==s&&(o(e,t),r(e,t))}},C=(e,t,i,a)=>{const n=e[12],r=e[18],o=e[19],l=r(e,t,i).l;return l.add(a),n(e,t),()=>{l.delete(a),o(e,t,i),n(e,t)}},S=(e,t,i,a)=>{const n=e[25];let r=n.get(i);if(!r){r=new Set,n.set(i,r);const e=()=>n.delete(i);i.then(e,e)}r.add(a)},T=(e,t,i)=>{const a=e[25].get(i);null==a||a.forEach(e=>e())},A=new WeakMap;function L(e){const t=A.get(e);const i=t[24];return i?i(t,e):t}function $(...e){const t={get:e=>a(i,t,e),set:(e,...a)=>n(i,t,e,...a),sub:(e,a)=>r(i,t,e,a)},i=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},d,u,p,h,g,m,f,b,x,v,y,w,k,j,I,_,C,void 0,new WeakMap,S,T,[0]].map((t,i)=>e[i]||t);A.set(t,Object.freeze(i));const a=i[21],n=i[22],r=i[23];return t}},7877(e,t,i){let a;i.d(t,{Wx:()=>y,pL:()=>h});var n,r=i(12888),o=Object.defineProperty,l=(e,t,i)=>((e,t,i)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i),s=new Map,c=new WeakMap,d=0;function u(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(i=e.root,i?(c.has(i)||(d+=1,c.set(i,d.toString())),c.get(i)):"0"):e[t]}`;var i}).toString()}function p(e,t,i={},a=n){if(void 0===window.IntersectionObserver&&void 0!==a){const n=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:"number"==typeof i.threshold?i.threshold:0,time:0,boundingClientRect:n,intersectionRect:n,rootBounds:n}),()=>{}}const{id:r,observer:o,elements:l}=function(e){const t=u(e);let i=s.get(t);if(!i){const a=new Map;let n;const r=new IntersectionObserver(t=>{t.forEach(t=>{var i;const r=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),[...null!=(i=a.get(t.target))?i:[]].forEach(e=>{e(r,t)})})},e);n=r.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),i={id:t,observer:r,elements:a},s.set(t,i)}return i}(i),c=l.get(e)||[];l.has(e)||l.set(e,c),c.push(t),o.observe(e);let d=!1;return function(){d||(d=!0,c.splice(c.indexOf(t),1),0===c.length&&(l.delete(e),o.unobserve(e)),0===l.size&&(o.disconnect(),s.delete(r)))}}var h=class extends r.Component{constructor(e){super(e),l(this,"node",null),l(this,"_unobserveCb",null),l(this,"lastInView"),l(this,"handleNode",e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||(this.setState({inView:!!this.props.initialInView,entry:void 0}),this.lastInView=this.props.initialInView)),this.node=e||null,this.observeNode()}),l(this,"handleChange",(e,t)=>{const i=this.lastInView;this.lastInView=e,(void 0!==i||e)&&(e&&this.props.triggerOnce&&this.unobserve(),function(e){return"function"!=typeof e.children}(this.props)||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t))}),this.state={inView:!!e.initialInView,entry:void 0},this.lastInView=e.initialInView}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){e.rootMargin===this.props.rootMargin&&e.scrollMargin===this.props.scrollMargin&&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())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:i,scrollMargin:a,trackVisibility:n,delay:r,fallbackInView:o}=this.props;void 0===this.lastInView&&(this.lastInView=this.props.initialInView),this._unobserveCb=p(this.node,this.handleChange,{threshold:e,root:t,rootMargin:i,scrollMargin:a,trackVisibility:n,delay:r},o)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:e}=this.props;if("function"==typeof e){const{inView:t,entry:i}=this.state;return e({inView:t,entry:i,ref:this.handleNode})}const{as:t,triggerOnce:i,threshold:a,root:n,rootMargin:o,scrollMargin:l,onChange:s,skip:c,trackVisibility:d,delay:u,initialInView:p,fallbackInView:h,...g}=this.props;return r.createElement(t||"div",{ref:this.handleNode,...g},e)}},g=Reflect.get(a||(a=i.t(r,2)),"useInsertionEffect"),m=null!=g?g:r.useEffect;var f,b=(null==(f=r.version)?void 0:f.startsWith("19."))||!1;function x(e,{threshold:t,root:i,rootMargin:a,scrollMargin:n,trackVisibility:o,delay:l,fallbackInView:s,skip:c,triggerOnce:d}){const u=r.useRef(e),h=r.useRef({node:null,stop:void 0,owner:null});return g||(u.current=e),m(()=>{u.current=e},[e]),r.useCallback(function e(r){const g=h.current;if(!r&&g.owner!==e)return;if(r===g.node)return g.owner=e,b?g.stop:void 0;const m=g.stop;if(g.stop=void 0,null==m||m(),!r||c)return g.node=null,void(g.owner=r?e:null);let f,x;function v(){null==f||f(),g.stop===v&&(g.node=null,g.stop=void 0)}return g.node=r,g.owner=e,g.stop=v,f=p(r,(e,t)=>{u.current(e,t,x),x=e,d&&e&&v()},{threshold:t,root:i,rootMargin:a,scrollMargin:n,trackVisibility:o,delay:l},s),g.stop!==v&&f(),b?g.stop:void 0}
1,[Array.isArray(t)?t.toString():t,i,a,n,o,l,s,c,d])}var v="undefined"==typeof window?r.useEffect:r.useLayoutEffect;function y({threshold:e,delay:t,trackVisibility:i,rootMargin:a,scrollMargin:n,root:o,triggerOnce:l,skip:s,initialInView:c,fallbackInView:d,onChange:u}={}){const p=r.useRef(c),[h,g]=r.useState({inView:!!c,entry:void 0}),m=x((e,t)=>{const i=p.current;p.current=e,(void 0!==i||e)&&(g({inView:e,entry:t}),null==u||u(e,t))},{threshold:e,root:o,rootMargin:a,scrollMargin:n,trackVisibility:i,delay:t,fallbackInView:d,skip:s,triggerOnce:l}),f=r.useRef({node:null,reset:!1}),b=r.useCallback(function(e){e?(f.current.node=e,f.current.reset=!1):f.current.node&&(f.current.node=null,f.current.reset=!0);const t=m(e);if(t)return()=>{t(),f.current.node===e&&(f.current.node=null,f.current.reset=!0)}},[m]);v(()=>{f.current.reset&&(f.current.reset=!1,l||s||(g({inView:!!c,entry:void 0}),p.current=c))});const y=[b,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}},47084(e,t,i){i.d(t,{t:()=>n});var a=i(12888);class n extends a.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e.message,t.componentStack)}render(){const{hasError:e}=this.state,{errorView:t,children:i}=this.props;return e?t:i}}},41012(e,t,i){i.d(t,["Bv",0,["aside","audio","bullet-list","card-story","chat","elava-arkisto-video","external-content","facebook-video","feature","flockler","form","gallery","grafomaten","heading","highlight","image","image-pair","infogram","interaction-element","interactive-table","links","livefeed","numbered-list","promo-manual","promo-content","quote","recipe","scrollover-pages","slideshow","some-posting","survey","table","tehtava-assignment","tehtava-carousel","tehtava-exam","text","top-list","video","vimeo-video","youtube-video"],"QX",0,["bullet-list","heading","image","numbered-list","table","text","grafomaten"],"yT",0,["image","video","text","bullet-list","numbered-list"]])},51595(e,t,i){i.d(t,{qE:()=>W,Iq:()=>V,xi:()=>z});i(63773);var a=i(22923),n=i(72419),r=i(33377),o=i(12888);const l=async function(e,t,i){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"GET";const{apiUrl:n,appId:r,appKey:o}=t,l=Object.entries({app_id:r,...i}).filter(e=>{let[,t]=e;return!!t}).map(e=>{let[t,i]=e;return`${t}=${i}`}).join("&"),s=await fetch(`${n}/${e}?${l}`,{credentials:"include",method:a,headers:{Authorization:o}});if(s.ok)return await s.json();throw Error(`Network request failed with code ${s.status}`)};var s=i(3206),c=i(1012);const d=e=>"create"===e.operation&&"post"===e.target,u=e=>"delete"===e.operation&&"post"===e.target,p=e=>"update"===e.operation&&"post"===e.target,h=(e,t)=>{const i=t.filter(u);return e.filter(e=>i.some(t=>e.id===t.id))},g=(e,t)=>t.filter(d).filter(t=>!e.some(e=>e.id===t.id)).map(e=>e.data),m=e=>"post"===e.target,f=e=>{const t=e.at(-1);return t&&(0,s.ay)(t.createdAt).getTime()},b=(e,t)=>!t||(0,s.ay)(e.createdAt).getTime()>=t,x=(e,t)=>{const i=f(e);return t.filter(p).filter(t=>!e.some(e=>e.id===t.id)).map(e=>e.data).filter(e=>b(e,i))},v=e=>e.reduce((e,t)=>e.some(e=>e.id===t.id)?e:e.concat(t),[]),y=e=>(e=>[...e].sort((e,t)=>(e.pinned??0)-(t.pinned??0)))((e=>[...e].sort((e,t)=>(0,s.ay)(t.createdAt).getTime()-(0,s.ay)(e.createdAt).getTime()))(e)),w=e=>e.sharedPost&&(0,c.cO)(e.sharedPost,"image"===e.header.media?.type?(0,c.$i)(e.header.media,[]).accumulatedImages:[]).post,k=(e,t)=>{const i=f(e);return t.filter(m).reduce((e,t)=>{switch(t.operation){case"delete":return e.filter(e=>e.id!==t.id);case"update":{const a=e.find(e=>e.id===t.id),n=t.data;return a?!a.pinned||n.pinned||b(n,i)?e.map(e=>e.id===t.id?{...n}:e):e.filter(e=>e.id!==t.id):((e,t)=>!!e.pinned||b(e,t))(n,i)?[{...n},...e]:e}case"create":return e.findIndex(e=>e.id===t.id)<0?[{...t.data},...e]:e}},e)},j=(e,t)=>e&&t&&((e,t)=>t.reduce((e,t)=>{if((e=>"live"===e.target)(t)&&"update"===t.operation){const{id:i,features:a,...n}=t.data;return{...e,...n}}if(m(t)&&"update"===t.operation&&t.id===e.sharedPost?.id){const i=t.data;return{...e,sharedPost:w({...e,sharedPost:i})}}return e},e))(e,t),I=(e,t)=>e&&t?y(k(e,t)):[],_=(e,t,i)=>{if(!e||!t||!i)return 0;const a=v(g(t,i).concat(x(t,i))),n=h(t.concat(a),i);return e.postCount+a.length-n.length},C=(e,t,i)=>{if(!t||!i)return[];const a=g(t,i),n=x(t,i),r=(e??[]).concat(a,n),o=h(r,i);return v(r.filter(e=>!o.some(t=>t.id===e.id)))};var S=i(83462),T=i(15904);const A=(0,a.eU)(void 0),L=(0,a.eU)(e=>{const t=e(A);return t?.features.find(e=>"feed"===e.type)}),$=(0,a.eU)((new Date).toISOString()),M=(0,a.eU)([]),B=(0,a.eU)(e=>{const t=e(A),i=e(L);return t&&i?.posts?((e,t)=>
1(0,c.v6)({posts:e,header:t?.header}).posts)(i.posts,t):[]}),E=(0,a.eU)(e=>{const t=e(A);return t?.sharedPost}),P=(0,a.eU)(e=>{const t=e(L),i=e(E);if(!t)return!1;const{postCount:a}=t;return a>(i&&!t.posts.some(e=>e.id===i.id)?t.posts.concat(i):t.posts).length}),D=(0,a.eU)({apiUrl:"https://livefeed-data.api-test.yle.fi",appId:"HIEKKALAATIKKO",appKey:"HIEKKALAATIKKO"}),R=(0,a.eU)(!1),F=(0,a.eU)(null,(e,t,i)=>{const a=((e,t)=>e&&{...e,features:e.features.map(e=>"feed"!==e.type?e:{...e,...t})})(e(A),i);t(A,a)}),O=(0,a.eU)(null,async(e,t)=>{const i=e(P),a=e(L);if(a&&i){t(R,!0);try{const i=e(B),r=i.at(-1)?.createdAt??(new Date).toISOString(),o=e(D),{posts:s,totalPosts:c}=await(async(e,t,i,a)=>{const{data:n,meta:r}=await l(`v2/feed/${e}/post`,t,{createdBefore:i,limit:a});return{posts:n,totalPosts:r.postCount}})(a.id,o,r,10),d=y((n=i,s.reduce((e,t)=>e.findIndex(e=>e.id===t.id)<0?[...e,t]:e,n)));t(F,{posts:d,postCount:c})}catch{}finally{t(R,!1)}}var n}),N=(0,a.eU)(null,async(e,t,i)=>{const a=e($),n=e(D),r=await(async(e,t,i)=>l(`v2/live/${e}/updates`,t,{updatedAfter:i}))(i,n,a);return t($,r.meta.timestamp),r}),U=(0,a.eU)(null,(e,t,i)=>{const a=e(A),n=e(M),r=e(B),o=e(L),{updatedLive:l,updatedPosts:s,updatedPostCount:c,updatedNewPosts:d}=(e=>{let{live:t,feed:i,posts:a,newPosts:n,changes:r}=e;return{updatedLive:j(t,r),updatedPosts:I(a,r),updatedPostCount:_(i,a,r),updatedNewPosts:C(n,a,r)}})({live:a,posts:r,newPosts:n,feed:o,changes:i.data});t(A,l),t(M,d),t(F,{posts:s,postCount:c})}),H=(0,a.eU)(null,(e,t)=>{t(M,[])}),Y=(0,a.eU)(null,(e,t)=>{const i=e(A);i&&t(A,{...i,sharedPost:void 0})}),W=()=>{const{appId:e,baseUrls:{livefeedDataApi:t},livefeedDataApiAppKey:i="HIEKKALAATIKKO",articlePollInterval:a=1e4,data:s}=(0,S.o6)();if(!s.live)throw new Error("No livefeed data in article");const c=s.subjects??s.live.subjects,d={...s.live,sharedPost:w(s.live),subjects:c};(0,r.RH)([[A,d],[D,{appId:e,appKey:i,apiUrl:t}]]);const u=(0,n.Xr)(U),p=(0,n.md)(D),h=(0,n.Xr)(N),g=(0,o.useCallback)(()=>{(async()=>{try{const e=await h(d.id);e.data.length&&u(e)}catch{}})()},[h,d.id,u]),m=(0,o.useCallback)(()=>{try{(async(e,t)=>{const{data:i}=await l(`v2/live/${e}/viewers/update`,t,{},"post")})(d.id,p)}catch{}},[p,d.id]);(0,T.y)("livefeedChanges",g,{delay:a,runOnlyFirstCallback:!0}),(0,T.y)("livefeedViewers",m,{delay:3e4,runOnlyFirstCallback:!0})},V=()=>{const e=(0,n.md)(A),t=(0,n.md)(B),i=(0,n.md)(M),a=(0,n.md)(E),r=(0,n.md)(P),o=(0,n.md)(R),l=e?.header;return{live:e,header:l,posts:t,sharedPost:a,newPostsCount:i.length,canLoadMore:r,isLoading:o}},z=()=>({clearNewPosts:(0,n.Xr)(H),clearSharedPost:(0,n.Xr)(Y),loadMore:(0,n.Xr)(O)})},83462(e,t,i){i(63773);var a=i(22923),n=i(72419),r=i(33377),o=i(12888);const l=(0,a.eU)(null);i.d(t,["KI",0,e=>{(0,r.RH)([[l,e]])},"N_",0,()=>{const e=(0,n.Xr)(l);return(0,o.useCallback)(t=>{e(t)},[e])},"o6",0,()=>{const e=(0,n.md)(l);if(!e)throw new Error("Article not initialized");return e}])},15904(e,t,i){var a=i(22923),n=i(72419),r=i(12888);const o=(0,a.eU)({inView:{items:[]},now:{items:[]},livefeedChanges:{items:[]},livefeedViewers:{items:[]}}),l=(0,a.eU)(null,(e,t,i)=>{let{batch:a,item:n,runOnlyFirstCallback:r}=i;const l=e(o),s=l[a],c=0===s.items.length,d=s.items.some(e=>e.id===n.id),u=d?s.items.map(e=>e.id===n.id?n:e):[...s.items,n],p={...l,[a]:{...s,items:u,runOnlyFirstCallback:r}};(r&&c||!r&&!d)&&n.callback(),t(o,p)}),s=(0,a.eU)(null,(e,t,i)=>{const a=e(o)[i],n=a.items;a.runOnlyFirstCallback?n.at(0)?.callback():n.forEach(e=>{e.callback()})});i.d(t,["y",0,(e,t,i)=>{const{delay:a,runOnlyFirstCallback:c}=i,d=(0,r.useId)(),u=(0,n.Xr)(l),p=(0,n.Xr)(s),h=(0,n.Xr)(o);(0,r.useEffect)(()=>{u({batch:e,item:{id:d,callback:t},runOnlyFirstCallback:c})},[u,t,d,e,c]),(0,r.useEffect)(()=>(h(t=>{const i=t[e];if(!i.intervalId){const n=setInterval(()=>{p(e)},a);return{...t,[e]:{...i,intervalId:n}}}return t}),()=>{h(t=>{const i=t[e],a=i.items.filter(e=>e.id!==d);return i.intervalId&&0===a.length&&clearInterval(i.intervalId),{...t,[e]:{...i,items:a}}})}),[d,e,p,h,a,c])}])},24545(e,t,i){var a=i(22923),n=i(72419),r=i(33377),o=i(12888);const l=(0,a.eU)();i.d(t,["QE",0,()=>{const e=(0,n.Xr)(l);return(0,o.useCallback)(t=>{e(t)},[e])},"Zl",0,()=>(0,n.md)(l),"pC",0,e=>
1{(0,r.RH)([[l,e]])}])},31761(e,t,i){var a=i(22923),n=i(72419),r=i(12888),o=i(1012);const l=(0,a.eU)(null),s=(0,a.eU)(null),c=(0,a.eU)([]),d=(0,a.eU)({default:[],gallery:[]}),u=(0,a.eU)(e=>null!==e(l)),p=(e,t,i)=>e.id===t&&e.instanceIndex===i,h=(0,a.eU)(null,(e,t,i)=>{let{id:a,instanceIndex:n}=i;const r=((e,t,i)=>e.default.some(e=>p(e,t,i))?e.default:e.gallery.find(e=>e.some(e=>p(e,t,i)))??[])(e(d),a,n);t(c,r);const o=e(c).findIndex(e=>p(e,a,n));t(s,o),t(l,o)}),g=(0,a.eU)(null,(e,t)=>{t(s,null),t(l,null)}),m=(0,a.eU)(null,(e,t,i)=>{t(l,i)}),f=(0,a.eU)(null,(e,t)=>{const i=e(l),a=e(c);if(null===i)return;const n=i-1,r=n<0?a.length-1:n;t(l,r)}),b=(0,a.eU)(null,(e,t)=>{const i=e(l),a=e(c);if(null===i)return;const n=i+1,r=n>=a.length?0:n;t(l,r)}),x=(0,a.eU)(null,(e,t,i)=>{let{data:a,header:n,posts:r,sharedPost:l,locale:s}=i;t(d,{default:(0,o.LR)({data:a,header:n,posts:r,sharedPost:l,locale:s}),gallery:(0,o.d4)(a)})});i.d(t,["M",0,()=>{const e=(0,n.Xr)(m),t=(0,n.Xr)(g),i=(0,n.Xr)(b),a=(0,n.Xr)(h),o=(0,n.Xr)(f),l=(0,n.Xr)(x);return(0,r.useMemo)(()=>({changeImage:e,closeImageOverlay:t,nextImage:i,openImageOverlay:a,previousImage:o,setImageSources:l}),[e,t,i,a,o,l])},"h",0,()=>{const e=(0,n.md)(l),t=(0,n.md)(s),i=(0,n.md)(c),a=(0,n.md)(u);return(0,r.useMemo)(()=>({currentImageIndex:e,images:i,initialImageIndex:t,visible:a}),[e,i,t,a])}])},60470(e,t,i){i.d(t,{g:()=>c});var a=i(12888);const n=/1-\d+/,r={},o=async e=>{let{baseUrl:t,appId:i,apiKey:a,programId:o}=e;return r[o]??=(async e=>{let{baseUrl:t,appId:i,apiKey:a,programId:r}=e;if(!n.test(r))return;const o=`${t}/v3/schema/v3/items/${r}?app_id=${i}&app_key=${a}&fields=id,title,image,series.image,series.title,publications`;try{const e=await fetch(o);if(e.ok)return(await e.json()).data;console.error("Failed to fetch from programs-api:",e.status," - ",e.statusText)}catch(e){return void console.error("Failed to fetch from programs-api:",e)}})({baseUrl:t,appId:i,apiKey:a,programId:o}),r[o]};var l=i(88588),s=i(83462);const c=e=>{const{appId:t,programsApiAppKey:i,locale:n,baseUrls:{programsApi:r}}=(0,s.o6)(),[c,d]=(0,a.useState)(e?.programResponse);return(0,a.useEffect)(()=>{(async()=>{if(i&&e?.id&&!c){const a=await o({baseUrl:r,appId:t,apiKey:i,programId:e.id});d(a)}})()},[t,e?.id,c,i,r]),c&&(0,l.qi)(c,n)}},85626(e,t,i){i(97700);var a=i(22923),n=i(72419),r=i(12888);const o=(0,a.eU)(!1),l=(0,a.eU)([]),s=(e,t)=>e.find(e=>(!t||e.id!==t)&&e.isInView&&!e.isManuallyPaused),c=e=>e.isVideo&&e.actions.isReady&&"autoplay"===e.playbackBehaviour,d=(e,t)=>e.map(e=>e.id===t.id?{...e,...t}:e),u=(0,a.eU)(null,(e,t,i)=>{const a=e(l),n=a.find(e=>e.id===i),r=e(o),c=a.some(e=>"standby"!==e.state),u=s(a)?.id===i;if(!n||!n.isFocused||!r||c||!u)return;const p=d(a,{...n,state:"playPending"});t(l,p),n.actions.play()}),p=(0,a.eU)(null,(e,t,i)=>{const a=e(l),n=a.find(e=>e.id===i);if(!(n&&["playPending","playing"].includes(n.state)))return;const r=d(a,{...n,state:"autoPausePending"});t(l,r),n.actions.pause()}),h=(0,a.eU)(null,(e,t,i)=>{const a=e(l),n=d(a,{id:i,state:"playPending"});t(l,n),a.filter(e=>e.id!==i).forEach(e=>{t(p,e.id)})}),g=(0,a.eU)(null,(e,t,i)=>{const a=e(l),n=a.find(e=>e.id===i),r=d(a,{id:i,state:"standby",isManuallyPaused:"autoPausePending"!==n?.state});t(l,r);const o=s(r,i);o&&c(o)&&t(u,o.id)}),m=(0,a.eU)(null,(e,t,i)=>{const a=e(l),n=d(a,{id:i,state:"playing"});t(l,n)}),f=(0,a.eU)(null,(e,t,i)=>{const a=e(l),n=a.find(e=>e.id===i.id),r=n?{...n,...i}:{...i,state:"standby"},o=n?d(a,r):[...a,r];return t(l,o),{prevPlayer:n,newPlayer:r}}),b=(0,a.eU)(null,(e,t,i)=>{i.actions.on("play",()=>t(h,i.id)),i.actions.on("pause",()=>t(g,i.id)),i.actions.on("playing",()=>t(m,i.id))}),x=(0,a.eU)(null,(e,t,i)=>{const{prevPlayer:a,newPlayer:n}=t(f,i),{playerDidInitialize:r,becameVisible:o,becameHidden:l,becameBlurred:s}=((e,t)=>{const i=!e?.actions.isReady&&t.actions.isReady;return{playerDidInitialize:i,becameVisible:!!t.isInView&&(i||!e?.isInView),becameHidden:!!e?.isInView&&!t.isInView,becameBlurred:!!e?.isFocused&&!t.isFocused}})(a,i);r&&t(b,i),s&&t(p,i.id),c(n)&&(o&&t(u,i.id),l&&t(p,i.id))});i.d(t,["q",0,e=>"illustrational"!==e.playbackBehaviour,"u",0,e=>{let{autoplayEnabled:t,isVideo:i,actions:a,isInView:l,isFocused:s=!0,playbackBehaviour:c}=e;const d=(0,r.useId)(),u=(0,n.Xr)(o),p=(0,n.Xr)(x);(0,r.useEffect)(()=>{u(t)},[t,u]),(0,r.useEffect)(()=>{p({id:d,isInView:l,isFocused:s,isVideo:i,playbackBehaviour:c,actions:a})},[p,d,l,s,i,c,a])}])},41783(e,t,i){var a=i(12888),n=i(3560),r=i(76256),o=i(83462);
1const l={autoFocus:!1,description:!1,logo:!1,pictureInPicture:!1,previewImage:!0,recommendations:!1,sharing:!1,smallPlayButton:!0,subtitlesBackground:"black",subtitlesDefault:"hardOfHearing",title:!1,replayButton:!0};i.d(t,["P",0,e=>{let{block:t,autoplayEnabled:i,overrideProps:s}=e;const{locale:c,themeMode:d}=(0,o.o6)();return(0,a.useMemo)(()=>{const e="video"===t.type,a={...l,alwaysFocusScreenReaderSubtitles:!1,aspectRatio:(0,n.KD)(t),id:t.id,language:(0,r.e)(c),seek:t.offsetSeconds??void 0,theme:"default"!==d?d:void 0,...s};if(e&&"autoplay"===t.playbackBehaviour)return{...a,autoMute:!0===i,unmuteButton:!0};if(e&&"illustrational"===t.playbackBehaviour){const{analytics:e,replayButton:t,smallPlayButton:n,...r}=a;return{...r,backgroundVideo:!0,autoplay:i??!0}}return a},[i,t,c,s,d])},"n",0,l])},43872(e,t,i){const a=e=>{let{theme:t,alignCenter:i}=e;return{color:t.article.color.textDefault,textAlign:i?"center":void 0}},n=e=>{let{theme:t,alignCenter:i}=e;return{...a({theme:t,alignCenter:i}),...t.article.typography.defaultLBlack,marginBottom:t.article.spacing.spacing16,paddingTop:t.article.spacing.spacing16}},r=n,o=n,l=n;i.d(t,["Ms",0,e=>{let{theme:t,alignCenter:i}=e;return{...a({theme:t,alignCenter:i}),...t.article.typography.defaultXlBlack,marginBottom:t.article.spacing.spacing16,paddingTop:t.article.spacing.spacing16}},"UL",0,r,"UW",0,l,"VU",0,e=>{let{theme:t,alignCenter:i}=e;return{...a({theme:t,alignCenter:i}),...t.article.typography.default2XlBlack,marginBottom:t.article.spacing.spacing16}},"XU",0,n,"jj",0,o])},2299(e,t,i){i.d(t,{Nl:()=>M,wf:()=>L,w_:()=>A,JK:()=>b,MH:()=>k,dx:()=>E,N1:()=>D,cZ:()=>f,fo:()=>B});i(97700);const a=e=>"external-content"===e.type;var n=i(76577),r=i(1012),o=i(76745),l=i(25365),s=i(85606);const c=new Date("2023-01-01"),d=(e,t)=>e.some(e=>e.scripts?.some(e=>e.match(t))),u=e=>(e=>(0,l.Y)((0,s.H)(e.datePublished),c))(e)&&((e=>{const t=e.content.filter(a);return d(t,/plus.yle.fi\/(.*)featurepohja\//)})(e)||(e=>{const t=e.content.filter(a);return d(t,/deski.yle.fi\//)})(e)),p=["column","blog_post"],h=["analysis","commentary","journalist_driven"],g=["Yles bolagskommunikation","Yle Viestintä","Yleisradion Eläkesäätiö"],m=["svenska-nyheter","svenska-sport"],f=e=>"video"===e.type,b=e=>"audio"===e.type,x=e=>"elava-arkisto-video"===e.type,v=e=>"youtube-video"===e.type,y=e=>"vimeo-video"===e.type,w=e=>"facebook-video"===e.type,k=e=>f(e)||b(e)||x(e),j=e=>v(e)||y(e)||w(e),I=(e,t)=>{const i=e.content.at(t);return!!(i&&(a=i,(0,n.TW)(a)||f(a)||b(a)||x(a)||v(a)||y(a)||w(a))&&(!j(i)&&i.id==i.id||j(i)&&i.url==i.url));var a},_=e=>"heading"===e.content.at(0)?.type?0:null,C=e=>{const t=e.mainMedia?.at(0);if(!t)return null;if(I(e,1))return 1;return I(e,2)?2:null},S=e=>{if(e.lead){if(e.mainMedia?.at(0)){const t=e.content.at(2);if("text"===t?.type)return 2}const t=e.content.at(1);if("text"===t?.type)return 1}return null},T=e=>{var t;return"links"===(t=e.content,t.at(-1)?.type)?e.content.length-1:null},A=e=>{const{content:t,headline:i}=e,a=t.at(0);return{heading:"heading"===a?.type?a.text:i.full}},L=e=>{const{content:t}=e,i=t.at(-1);return{relatedLinks:"links"===i?.type?i:void 0}},$=["74-20131998","7-10074645"],M=e=>{const{content:t,format:i,properties:n,journalisticStyle:r,publisher:l}=e,s=e.content.some(a),c=t.some(e=>"feature"===e.type),d=e.content.filter(a).some(e=>!e.supports?.includes("darkmode")),f=g.includes(l.name),b=n?.includes("layout:config.article.leveaupotus")??!1,x="card_story"===i,v="chat_article"===i&&t.some(e=>"chat"===e.type),y="plain_language_digest"===i,w=!!r&&h.includes(r),k="feature"===r&&!u(e),j=!!r&&p.includes(r),I="non_journalistic_content"===r,_="livefeed"===i;return{hasExternalContentBlock:s,hasFeatureBlock:c,hasLightThemeBlock:d,hasYleAsPublisher:f,hasWideEsiLayout:b,isAudioContentEnabled:n?.includes("audio:enabled")??!1,isCardStoryFormat:x,isJournalisticStyleAnalysis:w,isJournalisticStyleFeature:k,isJournalisticStyleOpinion:j,isJournalisticStyleNonJournalisticContent:I,isLivefeedArticleFormat:_,isPlainLanguageArticleFormat:y,imagesAmount:(0,o.yB)(e),isSvenskaArticle:m.includes(l.name),isFullScreenArticle:c||b||x||v,isVerticalMultimediaArticle:"vertical_multimedia_article"===i,isDocumentFormat:"document"===i,isChatArticle:v,isSanapyramidi:$.includes(e.id)}},B=e=>{const{content:t}=(e=>{const t=(0,r.jN)(e).content;return{...e,content:t}})((e=>{const t=[_(e),C(e),S(e),T(e)].filter(e=>null!==e);return{...e,content:e.content.filter((e,i)=>!t.includes(i))}})(e)),i=e.places?.at(0)?.name;return i?((e,t)=>
1t.reduce((t,i)=>{const a="text"===i.type&&!t.locationAdded,n=a?{...i,text:`**${e.toUpperCase()}** ${i.text}`}:i;return{content:t.content.concat(n),locationAdded:a||t.locationAdded}},{content:[],locationAdded:!1}).content)(i,t):t},E=e=>"recipe"===e.type,P=["91","92","93"],D=e=>P.includes(e?.split("-").at(0)??"")},3560(e,t,i){i(63773);var a=i(88588);const n=e=>{if("video"===e.type){const t=e.programResponse&&(0,a.eS)(e.programResponse);return t?.media?.videoTrack?.aspectRatio??e.aspectRatio}},r=e=>{const[t,i]=e.split(":"),a=t&&parseInt(t,10),n=i&&parseInt(i,10);if(!a||!n||Number.isNaN(a)||Number.isNaN(n))throw new Error('Aspect ratio string is not in required "16:9" format');return a/n},o=e=>{const t=n(e),i=t&&r(t);return i||16/9};i.d(t,["KD",0,e=>{const t=n(e);return t&&r(t)?t:"16:9"},"Pm",0,o,"sW",0,e=>o(e)<1])},41982(e,t,i){var a=i(25365),n=i(75688),r=i(88588);i.d(t,["L",0,(e,t)=>{const i=e.programResponse??t;if(i)return(0,r.eS)(i)?.media?.duration},"p",0,(e,t)=>{const i=e.programResponse??t;if(!i?.publications)return!0;const o=(0,r.eS)(i);if(!o)return!1;const l=o.startTime,s=o.endTime;return s?(0,n.v)(new Date,{start:new Date(l),end:new Date(s)}):(0,a.Y)(new Date(l),new Date)}])},53350(e,t,i){const a={test:{arseApi:"https://article-renderer.test.yle.fi/v2",articleStaticAssets:"https://article-static-assets.apps.yle.fi",cardStoryHost:"https://card-stories.ylestatic.fi",chatWidgetUrl:"https://yle-comments-livefeed-widget.apps-test.yle.fi",formsApi:"https://forms.api-test.yle.fi",interactionPlatformUrl:"https://interaction.test.yle.fi",livefeedDataApi:"https://livefeed-data.api-test.yle.fi",programsApi:"https://programs.api.yle.fi",promoLink:"https://yle.onelink.me/46xJ/94bngx50",subject:"https://ukko.test.yle.fi/t",tableApi:"https://taulukkodata.test.ylestatic.fi",tehtavaEmbed:"https://tehtava-ui.apps-test.yle.fi",ylePlayer:"https://app.yle.fi/",snowplowUrl:"https://haavi-test.yle.fi",imageCdn:"https://leipoja.api.yle.fi"},prod:{arseApi:"https://article-renderer.yle.fi/v2",articleStaticAssets:"https://article-static-assets.apps.yle.fi",cardStoryHost:"https://card-stories.ylestatic.fi",chatWidgetUrl:"https://yle-comments-livefeed-widget.apps.yle.fi",formsApi:"https://forms.api.yle.fi",
1interactionPlatformUrl:"https://interaction.yle.fi",livefeedDataApi:"https://livefeed-data.api.yle.fi",programsApi:"https://programs.api.yle.fi",promoLink:"https://yle.onelink.me/46xJ/07zyq6zz",subject:"https://yle.fi/t",tableApi:"https://taulukkodata.ylestatic.fi",tehtavaEmbed:"https://tehtava-ui.apps.yle.fi",ylePlayer:"https://app.yle.fi/",snowplowUrl:"https://haavi.yle.fi",imageCdn:"https://leipoja.api.yle.fi"}},n={fi:"https://areena.yle.fi",sv:"https://arenan.yle.fi"},r={fi:"https://yle.fi/aihe/a/20-10006416",se:"https://yle.fi/aihe/a/20-10008785",sv:"https://yle.fi/a/7-10073614"};i.d(t,["B3",0,e=>r[e]??null,"DO",0,e=>n[e]??n.fi,"eC",0,function(e){return{...a[arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"test":"prod"],...e}}])},3206(e,t,i){i.d(t,{LE:()=>I,qt:()=>C,Fs:()=>S,sL:()=>A,$$:()=>L,TL:()=>$,ro:()=>w,s0:()=>y,DC:()=>j,ay:()=>T});i(63773);var a=i(1061),n=i(89989),r=i(31120),o=i(71952),l=i(78605),s=i(9067);function c(e,t){const i=+(0,s.a)(e)-+(0,s.a)(t);return i<0?-1:i>0?1:i}function d(e,t,i){const[a,n]=(0,l.x)(i?.in,e,t);return 12*(a.getFullYear()-n.getFullYear())+(a.getMonth()-n.getMonth())}function u(e,t){const i=(0,s.a)(e,t?.in);return i.setHours(23,59,59,999),i}function p(e,t){const i=(0,s.a)(e,t?.in),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function h(e,t){const i=(0,s.a)(e,t?.in);return+u(i,t)===+p(i,t)}function g(e,t,i){const[a,n,r]=(0,l.x)(i?.in,e,e,t),o=c(n,r),s=Math.abs(d(n,r));if(s<1)return 0;1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-o*s);let u=c(n,r)===-o;h(a)&&1===s&&1===c(a,r)&&(u=!1);const p=o*(s-+u);return 0===p?0:p}var m=i(85606),f=i(19090);function b(e,t,i){const[a,n]=(0,l.x)(i?.in,e,t);return a.getFullYear()-n.getFullYear()}function x(e,t,i){const[a,n]=(0,l.x)(i?.in,e,t),r=c(a,n),o=Math.abs(b(a,n));a.setFullYear(1584),n.setFullYear(1584);const s=r*(o-+(c(a,n)===-r));return 0===s?0:s}const v="Europe/Helsinki",y=(e,t)=>(0,n.s)(e,t,{in:(0,a.tz)(v)}),w=(e,t)=>(0,r.r)(e,t,{in:(0,a.tz)(v)}),k=(e,t)=>{const i=new a.BB(e,v);return(0,o.GP)(i,t)},j=e=>k(e,"HH:mm"),I=(e,t)=>k(e,"sv"===t?"d.M HH:mm":"d.M. HH:mm"),_=e=>k(e,"d.M.yyyy"),C=e=>k(e,"d.M.yyyy HH:mm"),S=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;const r=(0,m.H)(e);if(i)return k(r,"d.M.yyyy H:mm");const o=n??(0,m.H)((new Date).toISOString());return w(r,o)?k(r,"H:mm"):((e,t)=>g(t,e,{in:(0,a.tz)(v)})<6)(r,o)?I(r,t):k(r,"d.M.yyyy H:mm")},T=e=>{const t=(0,s.a)(e);if(!(0,f.f)(t))throw new Error(`Invalid date: ${e.toString()}`);return t},A=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=T(e),a=new Date;return w(i,a)?j(i):y(i,a)?t?_(i):k(i,"d.M."):k(i,"yyyy")},L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date,a=arguments.length>3?arguments[3]:void 0;const n=T(e);return y(n,i)?I(n,a):t(n)},$=e=>{const t=T(e);return x(new Date,t)}},22874(e,t,i){var a=i(92852);i.d(t,["T",0,e=>Math.max(Math.floor(a.toSeconds(a.parse(e))/60),1),"v",0,e=>{const t=a.toSeconds(a.parse(e));return`${Math.floor(t/60)}:${String(t%60).padStart(2,"0")}`}])},76577(e,t,i){var a=i(3560),n=i(7330);i.d(t,["DW",0,(e,t)=>{if(e.image)return e.image;if(t?.imageId){const i=(0,a.Pm)(e);return{type:"image",id:t.imageId,aspect:i,alt:""}}},"TW",0,e=>"image"===e.type,"tc",0,(e,t)=>{const{alts:i,alt:a}=e;return(i&&(0,n.I)(i,t))??a??""}])},1012(e,t,i){var a=i(23582);const n=(e,t)=>{const i=e.filter(e=>e.id!==t?.id);return t?[t,...i]:i},r=(e,t,i)=>{const a={...e,instanceIndex:t.concat(i.flat()).filter(t=>t.id===e.id).length};return{block:a,accumulatedImages:t.concat(a)}},o=(e,t)=>{const i={...e,instanceIndex:t.filter(t=>t.id===e.id).length};return{block:i,accumulatedImages:t.concat(i)}},l=(e,t,i)=>e.reduce((e,t)=>{const{value:a,acc:n}=i(t,e.acc);return{values:[...e.values,a],acc:n}},{values:[],acc:t}),s=(e,t)=>{const{block:i,accumulatedImages:a}=r(e,t.images,t.galleries);return{value:i,acc:{images:a,galleries:t.galleries}}},c=(e,t)=>"image"===e.type?s(e,t):{value:e,acc:t},d=(e,t)=>{switch(e.type){case"aside":return((e,t)=>{const[i,...a]=e.content,{value:n,acc:r}=c(i,t),{values:o,acc:s}=l(a,r,c);return{value:{...e,content:[n,...o]},acc:s}})(e,t);case"gallery":return((e,t)=>{const{values:i}=l(e.items,t,s);return{value:{...e,items:i},acc:{images:t.images,galleries:[...t.galleries,i]}}})(e,t);case"image":return s(e,t);
1case"recipe":return((e,t)=>{const{value:i,acc:a}=e.coverImage?s(e.coverImage,t):{value:e.coverImage,acc:t},{values:n,acc:r}=l(e.instructions??[],a,c);return{value:{...e,coverImage:i,instructions:n},acc:r}})(e,t);case"slideshow":return((e,t)=>{const{values:i,acc:a}=l(e.slides,t,(e,t)=>{const{value:i,acc:a}=c(e.media,t);return{value:{...e,media:i},acc:a}});return{value:{...e,slides:i},acc:a}})(e,t);case"top-list":return((e,t)=>{const{values:i,acc:a}=l(e.items,t,(e,t)=>{const i=e.content.at(0);if(!i)return{value:e,acc:t};const{value:a,acc:n}=c(i,t);return{value:{...e,content:[a,...e.content.slice(1)]},acc:n}});return{value:{...e,items:i},acc:a}})(e,t);default:return{value:e,acc:t}}},u=e=>{const t=e.mainMedia?.at(0),i="image"===t?.type?s(t,{images:[],galleries:[]}).acc:{images:[],galleries:[]},{values:a,acc:n}=l(e.content,i,d);return{content:a,images:n.images,galleries:n.galleries}},p=(e,t)=>{const{enrichedBlocks:i,enrichedImages:a}=e.content.blocks.reduce((e,t)=>{const{block:i,accumulatedImages:a}=((e,t)=>"image"===e.type?o(e,t):{block:e,accumulatedImages:t})(t,e.enrichedImages);return{enrichedBlocks:e.enrichedBlocks.concat(i),enrichedImages:a}},{enrichedBlocks:[],enrichedImages:t});return{post:{...e,content:{...e.content,blocks:i}},accumulatedImages:a}},h=e=>{let{header:t,posts:i=[]}=e;const a="image"===t?.media?.type?o(t.media,[]).accumulatedImages:[],{enrichedPosts:n,enrichedImages:r}=i.reduce((e,t)=>{const{post:i,accumulatedImages:a}=p(t,e.enrichedImages);return{enrichedPosts:e.enrichedPosts.concat(i),enrichedImages:a}},{enrichedPosts:[],enrichedImages:a});return{posts:n,images:r}};i.d(t,["$i",0,o,"LR",0,e=>{let{data:t,header:i,posts:r,sharedPost:o,locale:l}=e;const{format:s}=t;if("livefeed"===s){return h({header:i,posts:n(r??[],o)}).images.map(e=>(0,a.P)(e,l))}return u(t).images},"cO",0,p,"d4",0,e=>u(e).galleries,"jN",0,u,"oe",0,r,"v6",0,h])},76745(e,t,i){var a=i(1012);const n=1e7;i.d(t,["XS",0,{type:"image",id:"39-42973859c268d07fd2f",aspect:16/9},"e7",0,e=>{let{aspectRatio:t,maxWidth:i,dpr:a}=e;const r=i,o=r*(r/t)*a,l=Math.floor(o>n?Math.sqrt(n*t)/a:r);return{aspectRatio:t,dpr:a,height:Math.floor(l/t),width:l}},"yB",0,e=>(0,a.jN)(e).images.length])},24531(e,t,i){i.d(t,{QM:()=>s});const a=(e,t)=>{if(!(t.length<1))return t.find(t=>Math.abs(t.aspect-e)<=.01)};var n=i(68091),r=i(57909);const o={format:"auto",focus:null},l=(e,t,i,l)=>{const s={...o,...l},{version:c,id:d}=e,u=((e,t)=>{const{crops:i}=e,{aspectRatio:n}=t;if(!n||!i)return"";const r=a(n,i);if(r){const{x:e,y:t,width:i,height:a}=r.coordinates;return["crop_extract",`w_${i}`,`h_${a}`,`x_${e}`,`y_${t}`].join(",")}return""})(e,t),p=((e,t,i)=>{const{width:r,height:o,dpr:l,aspectRatio:s}=t,{crops:c}=e,d=!!s&&c&&a(s,c);return["crop_fill",(0,n.F5)(r)?`w_${r.toFixed(0)}`:void 0,(0,n.F5)(o)?`h_${o.toFixed(0)}`:void 0,d&&d.name?`ar_${d.name}`:void 0,(0,n.F5)(l)?`dpr_${l}`:void 0,i?`focus_${i}`:void 0].filter(e=>e).join(",")})(e,t,s.focus),h=(e=>{const{format:t,quality:i}=e;return[t?`f_${t}`:void 0,i?`q_${i}`:void 0].filter(e=>e).join(",")})(s),g=[u,p,h].filter(e=>e).join("/");return[(0,r.K)(i),g,d,c].filter(e=>e).join("/")},s=(e,t,i,a)=>l(e,t,i,a)},7330(e,t,i){i.d(t,["I",0,(e,t)=>{const i=t=>e.find(e=>e.language===t)?.value;switch(t){case"sv":return i("swe");case"en":return i("eng");case"ru":return i("rus");case"uk":return i("ukr");case"sme":case"se":return i("sme");case"smn":return i("smn");case"sms":return i("sms");default:return i("fin")}},"O",0,["fi","sv","en","ru","se","uk"]])},87266(e,t,i){i.d(t,["HB",0,e=>!!e.embed,"NP",0,e=>{const{htmlContent:t,scripts:i,css:a,darkModeCss:n,styles:r,parameters:o,supports:l}=e;return{type:"external-content",html:"",htmlContent:t,scripts:i,css:r??a,darkModeCss:n,supports:l,parameters:o}},"W0",0,e=>{const{source:t,id:i,offsetSeconds:a,caption:n,aspectRatio:r,metadata:o,playbackBehaviour:l}=e;if(i&&("areena"===t||"elava-arkisto"===t))return"Audio"===o?.mediaType?{type:"audio",id:i,caption:n,offsetSeconds:a}:{type:"video",id:i,caption:n,offsetSeconds:a,aspectRatio:r,playbackBehaviour:l}},"pA",0,e=>{const{type:t,embed:i}=e;return{type:"some-posting",postingType:t,url:i.url,htmlContent:i.html,id:"",description:""}}])},23582(e,t,i){var a=i(93753);const n=e=>{switch(e){case"2:3":return.67;case"1:1":return 1;case"5:2":return 2.5;default:return 1.78}};i.d(t,["P",0,(e,t)=>{const{recommendedFormat:i,licence:r,...o}=e,l=e.additionalProperties?.find(e=>e.blurhash)?.blurhash,s=(e=>{const{aspect:t,width:i,height:a,crops:r}=e,o=t??((e,t)=>{if(e&&t){if(e<t)return"2:3";if(e===t)return"1:1"}return"16:9"})(i,a);return"original"===o?i&&a?i/a:n(o):r?.find(e=>e.name===o)?.aspect??n(o)})(e);return{...o,type:"image",aspect:s,blurhash:l,alt:e.alt&&(0,a.b)(e.alt,t)}}])},93753(e,t,i){i.d(t,["b",0,(e,t)=>{const i="sv"===t?"swe":"fin",a=Object.fromEntries(e.map(e=>[e.language,e.value]));return a[i]??a.fin??a.und}])},68091(e,t,i){const a=e=>e.trim().replace(",",".").replace("−","-").replace(/ /g,"");i.d(t,["F5",0,e=>!!e&&!Number.isNaN(Number(e))&&Number(e)>0,"MU",0,a,"V1",0,e=>!Number.isNaN(Number(a(e)))])},88588(e,t,i){const a=(e,t)=>e[t]??e.fin,n=(e,t)=>{const i=((e,t)=>e[t]??e.fin)(e,t);return i?.id},r=(e,t)=>e.title?.main?a(e.title.main,t):e.title?.episode?a(e.title.episode,t):void 0,o=(e,t)=>e.series?.title?.main?a(e.series.title.main,t):e.title?.episode?a(e.title.episode,t):void 0,l=(e,t)=>
1e.description?.main?a(e.description.main,t):e.description?.short?a(e.description.short,t):void 0,s=(e,t)=>e.image?.main?n(e.image.main,t):e.series?.image?.main?n(e.series.image.main,t):void 0;i.d(t,["eS",0,e=>e.publications&&[...e.publications].sort((e,t)=>e.startTime<=t.startTime?1:-1).find(e=>"Ondemand"===e.kind),"qi",0,(e,t)=>{const i=(e=>{switch(e){case"en":return"eng";case"ru":return"rus";case"se":return"smi";case"sv":return"swe";case"uk":return"ukr";case"fi":return"fin"}})(t);return{id:e.id,description:l(e,i),title:r(e,i),seriesTitle:o(e,i),imageId:s(e,i),publications:e.publications??[]}}])},39446(e,t,i){i(97700);i.d(t,["KJ",0,(e,t,i)=>`<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true" data-lang="${t}" data-theme="${e}"><p lang="en" dir="ltr">${i}</p></blockquote>`,"bO",0,e=>{switch(e){case"instagram":return"consentExternalLinkTextInstagram";case"twitter":return"consentExternalLinkTextTwitter"}},"dj",0,e=>`<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="${e}?utm_source=ig_embed&amp;utm_campaign=loading" data-instgrm-version="14" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:16px;"> <a href="${e}?utm_source=ig_embed&amp;utm_campaign=loading" style=" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;" target="_blank"> <div style=" display: flex; flex-direction: row; align-items: center;"> <div style="background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 40px; margin-right: 14px; width: 40px;"></div> <div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center;"> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 100px;"></div> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 60px;"></div></div></div><div style="padding: 19% 0;"></div> <div style="display:block; height:50px; margin:0 auto 12px; width:50px;"><svg width="50px" height="50px" viewBox="0 0 60 60" version="1.1" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-511.000000, -20.000000)" fill="#000000"><g><path d="M556.869,30.41 C554.814,30.41 553.148,32.076 553.148,34.131 C553.148,36.186 554.814,37.852 556.869,37.852 C558.924,37.852 560.59,36.186 560.59,34.131 C560.59,32.076 558.924,30.41 556.869,30.41 M541,60.657 C535.114,60.657 530.342,55.887 530.342,50 C530.342,44.114 535.114,39.342 541,39.342 C546.887,39.342 551.658,44.114 551.658,50 C551.658,55.887 546.887,60.657 541,60.657 M541,33.886 C532.1,33.886 524.886,41.1 524.886,50 C524.886,58.899 532.1,66.113 541,66.113 C549.9,66.113 557.115,58.899 557.115,50 C557.115,41.1 549.9,33.886 541,33.886 M565.378,62.101 C565.244,65.022 564.756,66.606 564.346,67.663 C563.803,69.06 563.154,70.057 562.106,71.106 C561.058,72.155 560.06,72.803 558.662,73.347 C557.607,73.757 556.021,74.244 553.102,74.378 C549.944,74.521 548.997,74.552 541,74.552 C533.003,74.552 532.056,74.521 528.898,74.378 C525.979,74.244 524.393,73.757 523.338,73.347 C521.94,72.803 520.942,72.155 519.894,71.106 C518.846,70.057 518.197,69.06 517.654,67.663 C517.244,66.606 516.755,65.022 516.623,62.101 C516.479,58.943 516.448,57.996 516.448,50 C516.448,42.003 516.479,41.056 516.623,37.899 C516.755,34.978 517.244,33.391 517.654,32.338 C518.197,30.938 518.846,29.942 519.894,28.894 C520.942,27.846 521.94,27.196 523.338,26.654 C524.393,26.244 525.979,25.756 528.898,25.623 C532.057,25.479 533.004,25.448 541,25.448 C548.997,25.448 549.943,25.479 553.102,25.623 C556.021,25.756 557.607,26.244 558.662,26.654 C560.06,27.196 561.058,27.846 562.106,28.894 C563.154,29.942 563.803,30.938 564.346,32.338 C564.756,33.391 565.244,34.978 565.378,37.899 C565.522,41.056 565.552,42.003 565.552,50 C565.552,57.996 565.522,58.943 565.378,62.101 M570.82,37.631 C570.674,34.438 570.167,32.258 569.425,30.349 C568.659,28.377 567.633,26.702 565.965,25.035 C564.297,23.368 562.623,22.342 560.652,21.575 C558.743,20.834 556.562,20.326 553.369,20.18 C550.169,20.033 549.148,20 541,20 C532.853,20 531.831,20.033 528.631,20.18 C525.438,20.326 523.257,20.834 521.349,21.575 C519.376,22.342 517.703,23.368 516.035,25.035 C514.368,26.702 513.342,28.377 512.574,30.349 C511.834,32.258 511.326,34.438 511.181,37.631 C511.035,40.831 511,41.851 511,50 C511,58.147 511.035,59.17 511.181,62.369 C511.326,65.562 511.834,67.743 512.574,69.651 C513.342,71.625 514.368,73.296 516.035,74.965 C517.703,76.634 519.376,77.658 521.349,78.425 C523.257,79.167 525.438,79.673 528.631,79.82 C531.831,79.965 532.853,80.001 541,80.001 C549.148,80.001 5
150.169,79.965 553.369,79.82 C556.562,79.673 558.743,79.167 560.652,78.425 C562.623,77.658 564.297,76.634 565.965,74.965 C567.633,73.296 568.659,71.625 569.425,69.651 C570.167,67.743 570.674,65.562 570.82,62.369 C570.966,59.17 571,58.147 571,50 C571,41.851 570.966,40.831 570.82,37.631"></path></g></g></g></svg></div><div style="padding-top: 8px;"> <div style=" color:#3897f0; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:550; line-height:18px;">Näytä tämä julkaisu Instagramissa</div></div><div style="padding: 12.5% 0;"></div> <div style="display: flex; flex-direction: row; margin-bottom: 14px; align-items: center;"><div> <div style="background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(0px) translateY(7px);"></div> <div style="background-color: #F4F4F4; height: 12.5px; transform: rotate(-45deg) translateX(3px) translateY(1px); width: 12.5px; flex-grow: 0; margin-right: 14px; margin-left: 2px;"></div> <div style="background-color: #F4F4F4; border-radius: 50%; height: 12.5px; width: 12.5px; transform: translateX(9px) translateY(-18px);"></div></div><div style="margin-left: 8px;"> <div style=" background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 20px; width: 20px;"></div> <div style=" width: 0; height: 0; border-top: 2px solid transparent; border-left: 6px solid #f4f4f4; border-bottom: 2px solid transparent; transform: translateX(16px) translateY(-4px) rotate(30deg)"></div></div><div style="margin-left: auto;"> <div style=" width: 0px; border-top: 8px solid #F4F4F4; border-right: 8px solid transparent; transform: translateY(16px);"></div> <div style=" background-color: #F4F4F4; flex-grow: 0; height: 12px; width: 16px; transform: translateY(-4px);"></div> <div style=" width: 0; height: 0; border-top: 8px solid #F4F4F4; border-left: 8px solid transparent; transform: translateY(-4px) translateX(8px);"></div></div></div> <div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center; margin-bottom: 24px;"> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; margin-bottom: 6px; width: 224px;"></div> <div style=" background-color: #F4F4F4; border-radius: 4px; flex-grow: 0; height: 14px; width: 144px;"></div></div></a></div></blockquote>`,"wz",0,e=>{const t=e.trim();if(t.includes("<blockquote"))return t}])},26719(e,t,i){i.d(t,{Tv:()=>n,tX:()=>o,Uz:()=>r});const a={id:"18-44136"},n=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.id===a.id)return"Uudizet karjalakse";const n=((e,t,i)=>e&&t.title?.[i]?t.title[i]:t.shortTitle?.[i]??t.title?.[i])(i,e,t);if(!n)return;var r;return(r=n,r.at(0)?.toUpperCase().concat(r.slice(1))??"").replace(/^Kotimaan uutiset$/,"Kotimaa").replace(/^Ulkomaan uutiset$/,"Ulkomaat")},r=(e,t)=>!!n(e,t),o=e=>"Yle Uudizet karjalakse"===e?a:void 0},97407(e,t,i){i(97700),i(63773);var a=i(79971);const n=e=>{if(Number.isFinite(e))return e;const t=parseFloat(e);return Number.isNaN(t)?0:t},r=(e,t)=>{const i=`${e}_${t}`;if(!(e=>e in a.Il)(i))throw new Error(`invalid token: ${i}`);return a.Il[i]};i.d(t,["IT",0,e=>{const t=r(e,"FONT_STYLE");if("string"==typeof t)return t},"R3",0,r,"a8",0,e=>{const t=r(e,"FONT_STRETCH");if("string"==typeof t)return t},"gt",0,e=>{const t=n(r(e,"LETTER_SPACING")),i=(e=>{const t=r(e,"TEXT_CASE");if("string"==typeof t&&["capitalize","full-size-kana","full-width","lowercase","uppercase","none"].includes(t))return t})(e);return{letterSpacing:t,textTransform:i}},"l3",0,e=>n(r(e,"LINE_HEIGHT")),"nY",0,e=>{const t=r(e,"FONT_WEIGHT");if("number"==typeof t)return t}])},34820(e,t,i){i.d(t,["E",0,e=>void 0!==e])},57909(e,t,i){i.d(t,["K",0,e=>e.endsWith("/")?e.slice(0,-1):e])},43839(e,t,i){i.d(t,["Q",0,e=>{const{articleUrl:t,type:i,...a}=e;return{type:"video",...a}}])},76256(e,t,i){i.d(t,["W",0,e=>"audio"===e.type,"e",0,e=>{switch(e){case"en":return"eng";case"sv":return"swe";case"se":return"sme";default:return"fin"}}])},28496(e,t,i){i.d(t,{I:()=>s});var a=i(11684),n=i(65241);i(35508),i(12888),i(1061);i(92852);var r=i(44832),o=i(18656);const l=(0,r.I4)(o.f).withConfig({componentId:"aw__sc-16t12w3-0"})(()=>({height:1,left:"-100%",overflow:"hidden",position:"absolute",top:"auto",width:1})),s=e=>{let{children:t,...i}=e;const{t:r}=(0,n.B)();return(0,a.jsx)(l,{...i,className:"yle__accessibilityText",children:t??r("externalContentA11YText")})}},40418(e,t,i){i.d(t,{w:()=>y});var a=i(11684),n=(i(35508),i(12888),i(88588)),r=i(76745),o=(i(1061),i(22874)),l=i(87647),s=i(2971),c=i(35611),d=i(58205),u=i(65212),p=i(44832);const h=p.I4.h3.withConfig({componentId:"aw__sc-uur4t3-0"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultMBold,[t.article.breakpoint.M]:{...t.article.typography.defaultLBold}}}),g=p.I4.span.withConfig({componentId:"aw__sc-uur4t3-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultMBold,[t.article.breakpoint.M]:{...t.article.typography.defaultLBold}}}),m=p.I4.div.withConfig({componentId:"aw__sc-uur4t3-2"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16}}),f=p.I4.a.withConfig({componentId:"aw__sc-uur4t3-3"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"none","&::after":{content:'""',position:"absolute",inset:"0px",zIndex:1}}}),b=p.I4.div.withConfig({componentId:"aw__sc-uur4t3-4"})({display:"flex",justifyContent:"space-between",flexGrow:1,flexDirection:"column"}),x=p.I4.div.withConfig({componentId:"aw__sc-uur4t3-5"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,marginTop:t.article.spacing.spacing16,color:t.article.color.textDefault,display:"flex",alignItems:"center"}}),v=(0,p.I4)(l.oUU).withConfig({componentId:"aw__sc-uur4t3-6"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,marginRight:t.article.spacing.spacing8}}),y=e=>{let{programData:t,url:i,locale:p,themeMode:y,noSpacing:w,noBackgroun
1d:k}=e;const j=(0,s.t)(),I={type:"image",id:t.imageId??r.XS.id,aspect:1},_=t.title??"",C=t.seriesTitle??"",S=(0,n.eS)(t),T=S?.media?.duration&&`${(0,o.T)(S.media.duration)} min`,A="Audio"===S?.media?.type,L={M:{aspectRatio:1,maxWidth:c.T.S.card}},$="default"===y?j??"dark":y;return(0,a.jsx)(u.Z,{$noSpacing:w,$noBackground:k,children:(0,a.jsxs)(d.V,{image:I,noMargin:!0,imageBreakpointOverrides:A?L:void 0,children:[(0,a.jsx)(m,{children:"sv"===p?(0,a.jsx)(l.HV2,{height:"12",width:"80",theme:$}):(0,a.jsx)(l.iTR,{height:"12",width:"80",theme:$})}),(0,a.jsxs)(b,{children:[(0,a.jsx)(f,{href:i,children:(0,a.jsxs)(h,{children:[(0,a.jsx)(g,{children:C&&`${C}: `}),_]})}),(0,a.jsxs)(x,{children:[A&&(0,a.jsx)(v,{width:16,height:16}),T]})]})]})})}},79484(e,t,i){i.d(t,{w:()=>u});var a=i(11684),n=i(65241),r=(i(35508),i(12888),i(1061),i(22874)),o=i(74338),l=i(87647),s=i(44832);const c=s.I4.div.withConfig({componentId:"aw__sc-s119te-0"})({display:"flex",flexDirection:"row",alignItems:"center",cursor:"pointer"}),d=s.I4.span.withConfig({componentId:"aw__sc-s119te-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,color:t.article.color.textDefault,display:"inline-flex",flexDirection:"row",paddingLeft:t.article.spacing.spacing8}}),u=e=>{let{text:t,duration:i,onClick:s,disabled:u=!1}=e;const{t:p}=(0,n.B)(),h=u?p("audioNotAvailable"):t,g=!u&&i?(0,r.v)(i):"",m=g?`${h} ${g}`:h;return(0,a.jsxs)(c,{children:[(0,a.jsx)(o.$,{size:"xs",text:t,onClick:s,iconBefore:u?(0,a.jsx)(l.RIJ,{}):(0,a.jsx)(l.oUU,{}),iconOnly:!0,isDisabled:u,disabled:u,"aria-label":m}),(0,a.jsx)(d,{onClick:s,"aria-hidden":!0,children:(0,a.jsx)("span",{children:m})})]})}},25632(e,t,i){var a=i(11684),n=i(27528),r=i(64126);i.d(t,["n",0,e=>{let{alignCenter:t,isFeatureArticle:i,isShortArticle:o}=e;const{header:{heading:l},data:{headline:{short:s}}}=(0,n.o6)(),c=o&&s?s:l;return(0,a.jsx)(r.D,{level:1,as:o?"h2":void 0,alignCenter:t,isFeatureArticle:i,isShortArticle:o,children:c})}])},84935(e,t,i){i.d(t,{S:()=>he});var a=i(11684),n=i(72419),r=i(12888),o=i(56508);function l({i18n:e,defaultNS:t,children:i}){const a=(0,r.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,r.createElement)(o.gJ.Provider,{value:a},i)}var s=i(35508);const c={en:{article:{A11YHintOpenCookieSettings:"Open cookie settings",A11YHintOpensToBrowser:"Opens browser.",A11YAsideBlock:"Fact box",A11YHideAuthorsButton:"Hide all authors",A11YShowAuthorsButton:"Show all authors",A11YHideSubjectListButton:"Hide all topics",A11YShowSubjectListButton:"Show all topics",A11YPackageContainsArticles_one:"The package contains {{count}} link",A11YPackageContainsArticles_other:"The package contains {{count}} links",areena:"Areena",articleAudioIsSynthesized:"The article is read by an artificial voice.",articleTypeOpinion:"Column",articleIsXYearsOld:"The article is more than {{years}} years old",articleTranslation:"In English",articleTranslationsLabel:"Article in other languages",audioNotAvailable:"Program not available",authorsTitle_one:"Author",authorsTitle_other:"Authors",collapse:"Collapse",consentExternalLinkTextFacebook:"View content on Facebook",consentExternalLinkTextInstagram:"View content on Instagram",consentExternalLinkTextTwitter:"View content on X",consentExternalLinkTextVimeo:"View content on Vimeo",consentExternalLinkTextYoutube:"View content on Youtube",consentTextMarkdown:"Content published on social media can be displayed in Yle’s services. [Check your cookie settings]() to adjust the content displayed in Yle’s services.",consentTitle:"Unable to display content",externalContentA11YText:"Parts of the article content might not be accessible, for example, with a screen reader.",expand:"Expand",figureCopyrightLeft:"left",figureCopyrightsTitle:"Images:",figureCopyrightRight:"right",figureCopyrightTitle:"Image:",formLoadingFailed:"Failed loading form.",imageOverlayBrowsePosPrefix:"Image",imageOverlayCloseLabel:"Close image",imageOverlayNextLabel:"Next image",imageOverlayPrevLabel:"Previous image",groupSize_one:"{{count}} person",groupSize_two:"",groupSize_few:"",groupSize_many:"",groupSize_other:"{{count}} persons",iframeAccessibilityNoticeTitle:"Low accessibility image and video gallery",infogram:{a11yAriaLabel:"Infographic - {{alt}}",a11yHideContent:"Hide infographic content",a11ySkipContent:"Skip infographic",a11yAfterContent:"End of infographic content"},interactiveTableInputPlaceholder:"Search from table",interactiveTableLoadError:"Error while loading table data.",interactiveTableLoading:"Loading table data.",interactiveTableNoSearchResults:"No search results",livefeed:{tab:{feed:"Live blog",chat:"Chat"},share:{post:"Share update {{ postIndex }}",article:"Share article",label:"Share"},timestamp:{updated:"Updated {{ updated }}",now:"latest",lessThanMinuteAgo:"less than a minute ago",minutes:"{{ count }} min",minuteAgo:"a minute ago",minutesAgo:"{{ count }} minutes ago",yesterday:"{{ time }} Yesterday"}
1,errorView:{message:"Error loading content.",button:"Try again"},updates_one:"{{ count }} unread update",updates_other:"{{ count }} unread updates",close:"Close",image:"Picture",a11yNextUpdateBegins:"The next update begins"},listen:"Listen",plainLanguageAudioDescription:"",modified:"Updated",more:"More",moreArticlesOnThisSubject:"More articles on the topic {{ subject }}",openImageOverlay:"Open image viewer",openLink:"Open link",printLabel:"Print article",printLabelShort:"Print",published:"Published",recipe:{cooktime:"Cooking time",ingredients:"Ingredients",instructions:"Instructions",preptime:"Preparation time",quantity:"Quantity",totaltime:"Total time"},searchResultsTotal:"Total search results {{ total }}",shareLabel:"Share article",shareLabelEmail:"Share article via email",shareLabelFacebook:"Share article on Facebook",shareLabelLinkedIn:"Share article on LinkedIn",shareLabelShort:"Share",shareLabelTwitter:"Share article on X",shareLabelWhatsapp:"Share article on Whatsapp",shareLinkCopy:"Copy Link",shareLinkEmail:"Email",shareLinkX:"X",showMorePosts:"Show more posts",someLoadingFailed:"Oops, something went wrong.",sourcesTitle:"Sources",subjectMore:"More on the subject",surveyNotAvailable:"This survey is no longer available.",tehtavaFallbackUITitle:"Loading the content failed",tehtavaFallbackUIInfoText:"Apologies for the inconvenience. We are fixing the error.",twitterHtmlContentNotAvailable:"The link in this embed is incorrect or the update may have been removed.",yleAsPublisher:"Yle as a company"}},fi:{article:{A11YHintOpenCookieSettings:"Avaa evästeasetukset",A11YHintOpensToBrowser:"Aukeaa selaimeen.",A11YAsideBlock:"Faktalaatikko",A11YHideAuthorsButton:"Piilota kaikki tekijät",A11YShowAuthorsButton:"Näytä kaikki tekijät",A11YHideSubjectListButton:"Piilota kaikki aiheet",A11YShowSubjectListButton:"Näytä kaikki aiheet",A11YPackageContainsArticles_one:"Paketissa {{count}} linkki",A11YPackageContainsArticles_other:"Paketissa {{count}} linkkiä",aiSummaryTooltip:"Tämä on tekoälyn avulla tuotettu, toimittajan tarkistama tiivistelmä.",aiSummaryTooltipLabel:"Lisätietoa tiivistelmästä",appPromotionQrCodeAriaLabel:"Skannaa QR-koodi puhelimesi kameralla ja katso lisää videoita Yle-sovelluksessa.",appPromotionText:"Katso lisää videoita Yle-sovelluksessa!",appPromotionTitleAppStore:"Lataa Yle-sovellus App Storesta",appPromotionTitleGooglePlay:"Lataa Yle-sovellus Google Playsta",areena:"Areena",articleAudioIsSynthesized:"Jutun lukee koneääni.",articleTypeOpinion:"Mielipide",articleIsXYearsOld:"Artikkeli on yli {{years}} vuotta vanha",articleTranslation:"Suomeksi",articleTranslationsLabel:"Artikkeli muilla kielillä",audioNotAvailable:"Ohjelma ei ole kuunneltavissa",authorsTitle_one:"Tekijä",authorsTitle_other:"Tekijät",close:"Sulje",collapse:"Sulje",consentExternalLinkTextFacebook:"Katso sisältö Facebookissa",consentExternalLinkTextInstagram:"Katso sisältö Instagramissa",consentExternalLinkTextTwitter:"Katso sisältö X-viestipalvelussa",consentExternalLinkTextVimeo:"Katso sisältö Vimeossa",consentExternalLinkTextYoutube:"Katso sisältö Youtubessa",consentTextMarkdown:"Ylen palveluissa voidaan näyttää sosiaalisessa mediassa julkaistuja sisältöjä. [Tarkista evästeasetuksesi,]() jos haluat säätää sisältöjen näkymistä Ylen palveluissa.",consentTitle:"Sisältöä ei voida näyttää",expand:"Avaa",externalContentA11YText:"Osa artikkelin sisällöstä ei ole välttämättä saavutettavissa esimerkiksi ruudunlukuohjelmalla.",figureCopyrightLeft:"vasen",figureCopyrightsTitle:"Kuvat:",figureCopyrightRight:"oikea",figureCopyrightTitle:"Kuva:",formLoadingFailed:"Lomakkeen lataus epäonnistui.",imageOverlayBrowsePosPrefix:"Kuva",imageOverlayCloseLabel:"Sulje kuva",imageOverlayNextLabel:"Seuraava kuva",imageOverlayPrevLabel:"Edellinen kuva",groupSize_one:"{{count}} henkilö",groupSize_two:"",groupSize_few:"",groupSize_many:"",groupSize_other:"{{count}} henkilöä",iframeAccessibilityNoticeTitle:"Heikko saavutettavuus kuva- ja videosisällössä",infogram:{a11yAriaLabel:"Infografiikka - {{alt}}",a11yHideContent:"Piilota infografiikka",a11ySkipContent:"Ohita infografiikka",a11yAfterContent:"Infografiikan loppu"},interactiveTableInputPlaceholder:"Hae taulukosta",interactiveTableLoadError:"Virhe ladattaessa taulukkoa.",interactiveTableLoading:"Taulukkoa ladataan",interactiveTableNoSearchResults:"Ei hakutuloksia",livefeed:{tab:{feed:"Hetki hetkeltä",chat:"Chat"},share:{post:"Jaa päivitys {{ postIndex }}",article:"Jaa artikkeli",label:"Jaa"},timestamp:{updated:"Päivitetty {{ updated }}",now:"juuri nyt",lessThanMinuteAgo:"alle minuutti sitten",minutes:"{{ count }} min",minuteAgo:"minuutti sitten",minutesAgo:"{{ count }} minuuttia sitten",yesterday:"{{ time }} Eilen"}
1,errorView:{message:"Sisältöä ladatessa tapahtui virhe.",button:"Yritä uudestaan"},updates_one:"{{ count }} lukematon päivitys",updates_other:"{{ count }} lukematonta päivitystä",close:"Sulje",a11yNextUpdateBegins:"Seuraava päivitys alkaa"},listen:"Kuuntele",listenArticle:"Kuuntele juttu",modified:"Päivitetty",more:"Lisää",moreArticlesOnThisSubject:"Lisää artikkeleita aiheesta {{ subject }}",openFullStory:"Avaa koko juttu",openImageOverlay:"Avaa kuvien katselu",openLink:"Avaa Linkki",subscribeToSubjectNotifications:"Tilaa ilmoitukset aiheesta",plainLanguageAudioDescription:"Voit lukea uutiset samanaikaisesti alta.",printLabel:"Tulosta artikkeli",printLabelShort:"Tulosta",published:"Julkaistu",readMore:"Lue lisää.",recipe:{cooktime:"Valmistusaika",ingredients:"Ainekset",instructions:"Ohjeet",preptime:"Valmisteluaika",quantity:"Määrä",totaltime:"Kokonaisaika"},searchResultsTotal:"Hakutuloksia yhteensä {{ total }}",shareLabel:"Jaa artikkeli",shareLabelEmail:"Jaa artikkeli sähköpostilla",shareLabelFacebook:"Jaa artikkeli Facebookissa",shareLabelLinkedIn:"Jaa artikkeli LinkedInissä",shareLabelShort:"Jaa",shareLabelTwitter:"Jaa artikkeli X-viestipalvelussa",shareLabelWhatsapp:"Jaa artikkeli Whatsappissa",shareLinkCopy:"Kopioi linkki",shareLinkEmail:"Sähköposti",shareLinkX:"X-viestipalvelu",shorts:"Lyhyet",showMorePosts:"Näytä lisää päivityksiä",someLoadingFailed:"Hupsis, jotain meni vikaan.",sourcesTitle:"Lähteet",subjectMore:"Aiheesta enemmän",surveyNotAvailable:"Kysely ei ole enää käytettävissä.",tehtavaFallbackUITitle:"Sisällön lataaminen epäonnistui",tehtavaFallbackUIInfoText:"Pahoittelut, korjaamme tilannetta.",twitterHtmlContentNotAvailable:"Tämän upotuksen linkki on virheellinen tai päivitys on voitu poistaa.",yleAsPublisher:"Yle yhtiönä"}},sv:{article:{A11YHintOpenCookieSettings:"Öppna cookieinställningar",A11YHintOpensToBrowser:"Öppnas i webbläsare.",A11YAsideBlock:"Faktaruta",A11YHideAuthorsButton:"Dölj alla skribenter",A11YShowAuthorsButton:"Visa alla skribenter",A11YHideSubjectListButton:"Dölj alla ämnen",A11YShowSubjectListButton:"Visa alla ämnen",A11YPackageContainsArticles_one:"Paketet innehåller {{count}} länk",A11YPackageContainsArticles_other:"Paketet innehåller {{count}} länkar",aiSummaryTooltip:"Sammanfattningen är gjord med stöd av AI och har granskats av en journalist.",aiSummaryTooltipLabel:"Tilläggsinformation om sammanfattningen",appPromotionQrCodeAriaLabel:"Läs av QR-koden med telefonens kamera för att hitta fler videor i Yle-appen.",appPromotionText:"Kolla fler videor i Yle-appen.",appPromotionTitleAppStore:"Hämta Yle-appen i App Store",appPromotionTitleGooglePlay:"Ladda ner Yle-appen på Google Play",areena:"Arenan",articleAudioIsSynthesized:"Artikeln läses upp av en artificiell röst.",articleTypeOpinion:"Kommentar",articleIsXYearsOld:"Artikeln är över {{years}} år gammal",articleTranslation:"På svenska",articleTranslationsLabel:"Artikeln på andra språk",audioNotAvailable:"Programmet är inte tillgängligt",authorsTitle_one:"Gjord av",authorsTitle_other:"Gjord av",collapse:"Stäng",consentExternalLinkTextFacebook:"Se innehållet på Facebook",consentExternalLinkTextInstagram:"Se innehållet på Instagram",consentExternalLinkTextTwitter:"Se innehållet på X-plattformen",consentExternalLinkTextVimeo:"Se innehållet på Vimeo",consentExternalLinkTextYoutube:"Se innehållet på Youtube",consentTextMarkdown:"Yles tjänster kan innehålla material som publicerats på sociala medier. [Kolla dina inställningar]() i fall du vill styra hur inläggen syns.",consentTitle:"Innehållet kan inte visas",expand:"Öppna",externalContentA11YText:"En del av artikelns innehåll är möjligtvis inte tillgängligt till exempel med en skärmläsare.",figureCopyrightLeft:"vänster",figureCopyrightsTitle:"Bilder:",figureCopyrightRight:"höger",figureCopyrightTitle:"Bild:",formLoadingFailed:"Lyckades inte ladda formulär.",imageOverlayBrowsePosPrefix:"Bild",imageOverlayCloseLabel:"Stäng bild",imageOverlayNextLabel:"Nästa bild",imageOverlayPrevLabel:"Föregående bild",groupSize_one:"{{count}} person",groupSize_two:"",groupSize_few:"",groupSize_many:"",groupSize_other:"{{count}} personer",iframeAccessibilityNoticeTitle:"Bild och video galleri med låg tillgänglighet",infogram:{a11yAriaLabel:"Infografik - {{alt}}",a11yHideContent:"Dölj infografiken",a11ySkipContent:"Hoppa över infografiken",a11yAfterContent:"Infografikens slut"},interactiveTableInputPlaceholder:"Sök i tabellen",interactiveTableLoadError:"Ett fel uppstod. Tabellen går inte att visa.",interactiveTableLoading:"Laddar tabellen.",interactiveTableNoSearchResults:"Inga sökresultat",livefeed:{tab:{feed:"Minut för minut",chat:"Chatt"},share:{post:"Dela inlägg {{ postIndex }}",article:"Dela artikeln",label:"Dela"},timestamp:{updated:"Uppdaterad {{ updated }}",now:"just nu",lessThanMinuteAgo:"för mindre än en minut sedan",minutes:"{{ count }} min",minuteAgo:"för en minut sedan",minutesAgo:"för {{ count }} minuter sedan",yesterday:"{{ time }} I går"},errorView:{message:"Ett fel uppstod då innehållet laddades.",button:"Försök pånytt"},updates_one:"{{ count }} oläst uppdatering",updates_other:"{{ count }} olästa uppdateringar",close:"Stäng",image:"Bild",a11yNextUpdateBegins:"Nästa uppdatering börjar"},listen:"Lyssna",listenArticle:"Lyssna (du hör en artificiell röst)",plainLanguageAudioDescription:"",modified:"Uppdaterad",more:"Relaterat",moreArticlesOnThisSubject:"Fler artiklar om ämnet {{ subject }}
1",openImageOverlay:"Öppna bildvisare",openLink:"öppna länk",printLabel:"Skriv ut artikel",printLabelShort:"Skriv ut",published:"Publicerad",readMore:"Läs mer.",recipe:{cooktime:"Tillredningstid",ingredients:"Ingredienser",instructions:"Instruktioner",preptime:"Förberedelsetid",quantity:"Mängd",totaltime:"Total tid"},searchResultsTotal:"Sökresultat sammanlagt {{ total }}",shareLabel:"Dela artikeln",shareLabelEmail:"Dela artikeln via e-post",shareLabelFacebook:"Dela artikeln på Facebook",shareLabelLinkedIn:"Dela artikeln på LinkedIn",shareLabelShort:"Dela",shareLabelTwitter:"Dela artikeln på X-plattformen",shareLabelWhatsapp:"Dela artikeln på Whatsapp",shareLinkCopy:"Kopiera länk",shareLinkEmail:"E-post",shareLinkX:"X-plattformen",shorts:"Video",showMorePosts:"Visa fler uppdateringar",someLoadingFailed:"Ojdå, någonting gick fel.",sourcesTitle:"Källor",subjectMore:"Mer om ämnet",subscribeToSubjectNotifications:"Beställ pushnotiser om",surveyNotAvailable:"Enkäten går inte längre att svara på.",tehtavaFallbackUITitle:"Lyckades inte ladda innehållet",tehtavaFallbackUIInfoText:"Beklagar, vi åtgärdar problemet.",twitterHtmlContentNotAvailable:"Den här länken är felaktig eller uppdateringen kan ha raderats.",yleAsPublisher:"Yle som bolag"}},ru:{article:{A11YHintOpenCookieSettings:"Открыть настройки cookie",A11YHintOpensToBrowser:"Откроется в браузере.",A11YAsideBlock:"Факты",A11YHideAuthorsButton:"Скрыть всех авторов",A11YShowAuthorsButton:"Показать всех авторов",A11YHideSubjectListButton:"Скрыть все темы",A11YShowSubjectListButton:"Показать все темы",A11YPackageContainsArticles_one:"В пакете {{count}} ссылка",A11YPackageContainsArticles_other:"В пакете {{count}} ссылки",aiSummaryTooltip:"Краткое изложение материала выполнено искусственным интеллектом и проверено журналистом.",aiSummaryTooltipLabel:"Дополнительная информация",areena:"Areena",articleTypeOpinion:"Колонка",articleIsXYearsOld:"Статье более {{years}} лет",articleTranslation:"По-русски",articleTranslationsLabel:"Статья на других языках",audioNotAvailable:"Ohjelma ei ole kuunneltavissa",authorsTitle_one:"Автор",authorsTitle:"Авторы",collapse:"Закрыть",consentExternalLinkTextFacebook:"Смотреть публикацию на Facebook",consentExternalLinkTextInstagram:"Смотреть публикацию в Instagram",consentExternalLinkTextTwitter:"Смотреть публикацию в X",consentExternalLinkTextVimeo:"Смотреть публикацию на Vimeo",consentExternalLinkTextYoutube:"Смотреть публикацию на Youtube",consentTextMarkdown:"Опубликованный в соцсетях контент может быть отображен на страницах новостной службы Yle. [Проверьте настройки файлов cookie]() Вы можете повлиять на то какие материалы вы видите на наших страницах.",consentTitle:"Невозможно отобразить содержание",expand:"Открыть",externalContentA11YText:"Часть содержимого данной публикации не отображается в режиме чтения на смартфоне",figureCopyrightLeft:"слева",figureCopyrightsTitle:"Изображения:",figureCopyrightRight:"справа",figureCopyrightTitle:"Изображение:",formLoadingFailed:"Не удалось загрузить анкету.",imageOverlayBrowsePosPrefix:"Изображение",imageOverlayCloseLabel:"Свернуть изображение",imageOverlayNextLabel:"Следующее изображение",imageOverlayPrevLabel:"Предыдущее изображение",groupSize_one:"{{count}} человек",groupSize_two:"",groupSize_few:"{{count}} человека",groupSize_many:"{{count}} человек",groupSize_other:"",iframeAccessibilityNoticeTitle:"Ограниченная доступность фото и видео материалов",infogram:{a11yAriaLabel:"инфографика - {{alt}}",a11yHideContent:"Скрыть инфографику",a11ySkipContent:"Пропустить инфографику",a11yAfterContent:"конец инфографики"},interactiveTableInputPlaceholder:"Искать в таблице",interactiveTableLoadError:"Ошибка при загрузке таблицы",interactiveTableLoading:"Таблица загружается",interactiveTableNoSearchResults:"Не обнаружено результатов",livefeed:{tab:{feed:"Онлайн-трансляция",chat:"Чат"},share:{post:"Поделиться {{ postIndex }}",article:"Поделиться публикацией",label:"Поделиться"},timestamp:{updated:"Обновлено {{ updated }}",now:"прямо сейчас",lessThanMinuteAgo:"менее минуты назад",minutes:"{{ count }} мин",minuteAgo:"минуту назад",minutesAgo_one:"{{ count }} минуту назад",minutesAgo_few:"{{ count }} минуты назад",minutesAgo_many:"{{ count }} минут назад",yesterday:"{{ time }} Вчера"},errorView:{message:"При загрузке данных произошла ошибка.",button:"Попробуйте снова"},updates_one:"{{ count }} непрочитанное обновление",updates_few:"{{ count }} непрочитанных обновления",updates_many:"{{ count }} непрочитанных обновлений",close:"Закрыть",image:"Фото",a11yNextUpdateBegins:"Следующее обновление начинается"},listen:"Слушать",plainLanguageAudioDescription:"",modified:"Обновлено:",more:"Больше",moreArticlesOnThisSubject:"Больше статей по теме {{ subject }}
1",openImageOverlay:"Открыть просмотрщик изображений",openLink:"Открыть ссылку",printLabel:"Печатная публикация",printLabelShort:"Печать",published:"Опубликовано:",searchResultsTotal:"Всего результатов поиска {{ total }}",shareLabel:"Поделиться материалом",shareLabelEmail:"Поделиться материалом в электронной почте",shareLabelFacebook:"Поделиться материалом на Facebook",shareLabelLinkedIn:"Поделиться материалом в LinkedIn",shareLabelShort:"Поделиться",shareLabelTwitter:"Поделиться материалом в X",shareLabelWhatsapp:"Поделиться материалом в Whatsapp",shareLinkCopy:"Копировать ссылку",shareLinkEmail:"Электронная почта",shareLinkX:"X",showMorePosts:"Показать больше",someLoadingFailed:"Кажется произошла ошибка",sourcesTitle:"Источники:",subjectMore:"Больше по теме",surveyNotAvailable:"Не удалось загрузить содержимое страницы.",tehtavaFallbackUIInfoText:"Не удалось загрузить содержимое страницы",tehtavaFallbackUITitle:"Приносим извинения, исправляем ситуацию.",twitterHtmlContentNotAvailable:"Возможно, ссылка на это сообщение в социальной сети недействительна или была удалена.",yleAsPublisher:"Yle as a company"}},se:{article:{A11YHintOpenCookieSettings:"Raba diehtočoahkkostellemiid",A11YHintOpensToBrowser:"Rahpasa neahttaloganii.",A11YAsideBlock:"Diehtokássa",A11YHideAuthorsButton:"Čiega buot dahkkiid",A11YShowAuthorsButton:"Čájet buot dahkkiid",A11YHideSubjectListButton:"Čiega buot fáttáid",A11YShowSubjectListButton:"Čájet buot fáttáid",A11YPackageContainsArticles_one:"Paketteasse {{count}} liŋkka",A11YPackageContainsArticles_two:"Paketteasse {{count}} liŋgat",A11YPackageContainsArticles_other:"Paketteasse {{count}} liŋgat",areena:"Areena",articleAudioIsSynthesized:"Mášenjietna lohká ášši. Muhtun feaillat sáhttet šaddat, muhto mii joatkit dán bargoreaiddu buorideami.",articleTypeOpinion:"Oaivil",articleIsXYearsOld:"Artihkal lea {{years}} jagi boaris.",articleTranslation:"Sámegillii",articleTranslationsLabel:"Article in other languages",audioNotAvailable:"Prográmma ii leat šat gullan láhkai",authorsTitle_one:"Dahkki",authorsTitle_two:"Dahkkit",authorsTitle_other:"Dahkkit",collapse:"Gidde",consentExternalLinkTextFacebook:"Geahča sisdoalu Facebookkas",consentExternalLinkTextInstagram:"Geahča sisdoalu Instagramis",consentExternalLinkTextTwitter:"Geahča sisdoalu X:s",consentExternalLinkTextVimeo:"Geahča sisdoalu Vimeos",consentExternalLinkTextYoutube:"Geahča sisdoalu Youtubes",consentTextMarkdown:"Yle bálvalusain sáhttá čájehit sosiála medias almmuhuvvon sisdoaluid. Dárkkis dihtora čuovusevttohusaidat juos háliidat muddet sisdoaluid oidnoma Yle bálvalusain. [Dárkkis čuovusevttohusaidat]() Sáhttát váikkuhit sisdoaluide maid oainnát min siidduin.",consentTitle:"Sisdoalu ii sáhte čájehit",expand:"Raba",externalContentA11YText:"Oassi artihkkala sisdoaluin ii vealtameahttumit doaimma ovdamearkka dihte šearbmalohkanprográmmain.",figureCopyrightLeft:"válddi",figureCopyrightsTitle:"Govat:",figureCopyrightRight:"oahppa",figureCopyrightTitle:"Govva:",formLoadingFailed:"Skovi luđen ii lihkosmuvvan.",imageOverlayBrowsePosPrefix:"Govva",imageOverlayCloseLabel:"Gidde gova",imageOverlayNextLabel:"Čuovvovaš govva",imageOverlayPrevLabel:"Ovddit govva",groupSize_one:"{{count}} olmmoš",groupSize_two:"{{count}} olbmo",groupSize_few:"",groupSize_many:"",groupSize_other:"{{count}} olbmo",iframeAccessibilityNoticeTitle:"Buot govva- ja videosisdoaluin eai leat čilgehusat, maid sáhtášii guldalit",infogram:{a11yAriaLabel:"Infografihkka - {{alt}}",a11yHideContent:"Čiega infografihka",a11ySkipContent:"Gidde infografihka",a11yAfterContent:"Infografihkka nohká"},interactiveTableInputPlaceholder:"Oza tabeallas",interactiveTableLoadError:"Feaila go luđe tabealla.",interactiveTableLoading:"Luđe tabealla",interactiveTableNoSearchResults:"Eai ohcanbohtosat",livefeed:{tab:{feed:"Bottuid mielde",chat:"Chat"},share:{post:"Juoge beaivádusa {{ postIndex }}",article:"Juoge artihkkala",label:"Juoge"},timestamp:{updated:"Beaividuvvon {{ updated }}",now:"justa dál",lessThanMinuteAgo:"vuollái minuhtta dassái",minutes:"{{ count }} min",minuteAgo:"okta minuhtta dassái",minutesAgo:"{{ count }} minuhta dassái",yesterday:"{{ time }} Ikte"},errorView:{message:"Sisdoalu luđedettiin dáhpáhuvai feaila.",button:"Geahččal ođđasit"},updates_one:"{{ count }} logakeahtes beaivádus",updates_two:"{{ count }} beaivádusa logakeahttá",updates_other:"{{ count }} beaivádusa logakeahttá",close:"Jáddat",image:"Govva",a11yNextUpdateBegins:"Boađus dieđalašvuohta álgá"},listen:"Guldal",listenArticle:"Guldal ášši",plainLanguageAudioDescription:"",modified:"Beaiváduvvon",more:"Lasi",moreArticlesOnThisSubject:"Eanet artihkkalat dán birra {{ subject }}
1",openImageOverlay:"Raba gova stuorábun",openLink:"Raba liŋkka",printLabel:"Čálit artihkkala",printLabelShort:"Čálit",published:"Almmuhuvvon",readMore:"Loga lasi.",searchResultsTotal:"Olbmot ođasmahttit {{ total }}",shareLabel:"Juoge artihkkala",shareLabelEmail:"Juoge artihkkala e-poasttas",shareLabelFacebook:"Juoge artihkkala Facebookkas",shareLabelLinkedIn:"Juoge artihkkala LinkedInis",shareLabelShort:"Juoge",shareLabelTwitter:"Juoge artihkkala X:s",shareLabelWhatsapp:"Juoge artihkkala Whatsappas",shareLinkCopy:"Kopiere liŋkka",shareLinkEmail:"E-poasta",shareLinkX:"X",showMorePosts:"Čájet lasi",someLoadingFailed:"Hups juoga manai boastut.",sourcesTitle:"Gáldut:",subjectMore:"Lasi fáttás",surveyNotAvailable:"Sisdoalu luđen eahpelihkosmuvai.",tehtavaFallbackUIInfoText:"Šállošat, leat divvumin váttisvuođa.",tehtavaFallbackUITitle:"Sisdoalu luđen eahpelihkosmuvai",twitterHtmlContentNotAvailable:"Dán beaivádusa liŋkkas lea feaila dahje dat sáhttá leat sihkkojuvvon eret.",yleAsPublisher:"Yle as a company"}},uk:{article:{A11YHintOpenCookieSettings:"Відкрити налаштування файлів cookie",A11YHintOpensToBrowser:"Відкривається у браузері",A11YAsideBlock:"Інформаційний блок",A11YHideAuthorsButton:"Приховати список авторів",A11YShowAuthorsButton:"Показати список авторів",A11YHideSubjectListButton:"Приховати всі теми",A11YShowSubjectListButton:"Показати всі теми",A11YPackageContainsArticles_one:"У пакеті {{count}} посилання",A11YPackageContainsArticles_other:"У пакеті {{count}} посилання",aiSummaryTooltip:"Це короткий зміст статті, створений штучним інтелектом та перевірений журналістом.",aiSummaryTooltipLabel:"Додаткова інформація",areena:"Areena",articleTypeOpinion:"Точка зору",articleIsXYearsOld:"Стаття більше {{years}} років",articleTranslation:"Українською",articleTranslationsLabel:"Стаття іншими мовами",audioNotAvailable:"Ohjelma ei ole kuunneltavissa",authorsTitle_one:"Автор",authorsTitle:"Автори",collapse:"Закрити",consentExternalLinkTextFacebook:"Подивитися у Facebook",consentExternalLinkTextInstagram:"Подивитися у Instagram",consentExternalLinkTextTwitter:"Подивитися у X",consentExternalLinkTextVimeo:"Подивитися у Vimeo",consentExternalLinkTextYoutube:"Подивитися у Youtube",consentTextMarkdown:"Опублікований в соціальних мережах контент можу бути відображений на сторінках Службі новин Yle. (Перевірте налаштування файлів Cookie). За бажанням, ви можете впливати на зміст відображеного на екрані.",consentTitle:"На жаль, зараз матеріал не може бути переглянутий",expand:"Відкрити",externalContentA11YText:"Частина вмісту статті може бути недоступна, наприклад, під час користування програмою для зчитування тексту.",figureCopyrightLeft:"ліворуч",figureCopyrightsTitle:"Зображення:",figureCopyrightRight:"праворуч",figureCopyrightTitle:"Зображення:",formLoadingFailed:"Не вдалося завантажити форму.",imageOverlayBrowsePosPrefix:"Зображення",imageOverlayCloseLabel:"Закрити зображення",imageOverlayNextLabel:"Наступне зображення",imageOverlayPrevLabel:"Попереднє зображення",groupSize_one:"{{count}} особа",groupSize_two:"",groupSize_few:"{{count}} особи",groupSize_many:"{{count}} осіб",groupSize_other:"",iframeAccessibilityNoticeTitle:"Обмежена доступність фото- та відеоматеріалів",infogram:{a11yAriaLabel:"Інфографіка - {{alt}}",a11yHideContent:"Приховати інфографіку",a11ySkipContent:"Пропустити інфографіку",a11yAfterContent:"Кінець інфографіки"},interactiveTableInputPlaceholder:"Шукати в таблиці",interactiveTableLoadError:"Помилка завантаження таблиці.",interactiveTableLoading:"Таблиця завантажується",interactiveTableNoSearchResults:"Не знайдено результатів",listen:"Слухати",plainLanguageAudioDescription:"",modified:"Оновлено",more:"Більше",moreArticlesOnThisSubject:"Більше статей на тему {{ subject }}
1",openImageOverlay:"Відкрити переглядач зображень",openLink:"Відкрити посилання",printLabel:"Роздрукувати статтю",printLabelShort:"Друк",published:"Опубліковано",searchResultsTotal:"Всього результатів пошуку {{ total }}",shareLabel:"Поділитися матеріалом",shareLabelEmail:"Відправити статтю електронною поштою",shareLabelFacebook:"Поділитися статтею у Facebook",shareLabelLinkedIn:"Поділитися статтею у LinkedIn",shareLabelShort:"Поділитися",shareLabelTwitter:"Поділитися статтею у X",shareLabelWhatsapp:"Поділитися статтею у Whatsapp",shareLinkCopy:"Копіювати посилання",shareLinkEmail:"Електронна пошта",shareLinkX:"X",showMorePosts:"Показати більше",someLoadingFailed:"Здається, щось пішло не так.",sourcesTitle:"Джерела",subjectMore:"Більше на тему",surveyNotAvailable:"Не вдалось завантажити зміст сторінки.",tehtavaFallbackUITitle:"Не вдалось завантажити зміст сторінки",tehtavaFallbackUIInfoText:"Просимо вибачення, виправляємо ситуацію.",twitterHtmlContentNotAvailable:"Посилання в цьому вбудовуванні є неправильним або оновлення, можливо, було видалено.",yleAsPublisher:"Yle as a company"}}};var d=i(7330);var u=i(2299),p=i(53350),h=i(83462),g=i(24545);const m=e=>{let{children:t,...i}=e;const{locale:n="fi"}=i,o=(e=>{const[t,i]=(0,r.useState)(),a=!!t,n=a?t:(0,s.Q_)();return a||(n.init({resources:c,ns:"article",defaultNS:"article",lng:e,fallbackLng:{se:["fi"],default:["en","fi"]},supportedLngs:d.O,nonExplicitSupportedLngs:!0}),i(n)),(0,r.useEffect)(()=>{n.changeLanguage(e)},[n,e]),n})(n);return(e=>{let{appId:t,autoplayEnabled:i=!0,baseUrls:a,consents:n,data:o,locale:l="fi",programsApiAppKey:s="HIEKKALAATIKKO",showImages:c=!0,themeMode:d="light",isTest:m=!1,...f}=e;const b=(0,r.useMemo)(()=>(0,p.eC)(a,m),[a,m]),x=(0,r.useMemo)(()=>(0,u.Nl)(o),[o]),v=(0,r.useMemo)(()=>(0,u.w_)(o),[o]),y=(0,r.useMemo)(()=>(0,u.wf)(o),[o]),w=(0,r.useMemo)(()=>({...o,content:(0,u.fo)(o)}),[o]),k=(0,h.N_)(),j=(0,r.useMemo)(()=>({...f,appId:t,articleInfo:x,autoplayEnabled:i,baseUrls:b,data:w,footer:y,header:v,isTest:m,locale:l,programsApiAppKey:s,showImages:c,themeMode:d}),[t,f,x,i,b,w,y,v,m,l,s,c,d]);(0,h.KI)(j),(0,r.useEffect)(()=>{k(j)},[j,k]);const I=(0,g.QE)();(0,g.pC)(n),(0,r.useEffect)(()=>{I(n)},[n,I])})(i),(0,a.jsx)(l,{i18n:o,children:t})},f=e=>{let{children:t,...i}=e;return(0,a.jsx)(n.Kq,{children:(0,a.jsx)(m,{...i,children:t})})};var b=i(41012),x=(i(1061),i(92852),i(19429)),v=i(44832),y=i(27528),w=i(79971);const k={full:w.r8.FULL,large:w.r8.LARGE,medium:w.r8.MEDIUM,none:w.r8.NONE},j={spacing4:w.YK.SPACING_4,spacing8:w.YK.SPACING_8,spacing12:w.YK.SPACING_12,spacing16:w.YK.SPACING_16,spacing24:w.YK.SPACING_24,spacing32:w.YK.SPACING_32,spacing40:w.YK.SPACING_40,spacing48:w.YK.SPACING_48,spacing56:w.YK.SPACING_56};var I=i(97407),_=i(62351),C=i(24165);const S={S:"@media all",M:_.P1,VERTICAL_MEDIA:_.h$,LANDSCAPE:_.iM},T=e=>({...(0,I.gt)(e),fontFamily:"'Yle Next', sans-serif",fontSize:(0,C.S)(e),lineHeight:(0,I.l3)(e),fontWeight:(0,I.nY)(e),fontStyle:(0,I.IT)(e),fontStretch:(0,I.a8)(e)}),A={default4XlBold:T("DEFAULT_4XL_BOLD"),defaultL:T("DEFAULT_L"),defaultLBold:T("DEFAULT_L_BOLD"),defaultLItalic:T("DEFAULT_L_ITALIC"),defaultM:T("DEFAULT_M"),defaultMAc:T("DEFAULT_M_AC"),defaultMBold:T("DEFAULT_M_BOLD"),defaultMBoldAc:T("DEFAULT_M_BOLD_AC"),defaultMBoldItalic:T("DEFAULT_M_BOLD"),defaultMItalic:T("DEFAULT_M_ITALIC"),defaultS:T("DEFAULT_S"),defaultSAc:T("DEFAULT_S_AC"),defaultSBold:T("DEFAULT_S_BOLD"),defaultSBoldAc:T("DEFAULT_S_BOLD_AC"),defaultXl:T("DEFAULT_XL"),defaultXlBold:T("DEFAULT_XL_BOLD"),defaultXs:T("DEFAULT_XS"),defaultXsBold:T("DEFAULT_XS_BOLD"),defaultXsBoldAc:T("DEFAULT_XS_BOLD_AC"),default2XlBlack:T("DEFAULT_2XL_HEAVY"),default3XlBlack:T("DEFAULT_3XL_HEAVY"),default4XlBlack:T("DEFAULT_4XL_HEAVY"),default5XlBlack:T("DEFAULT_5XL_HEAVY"),default6XlBlack:T("DEFAULT_6XL_HEAVY"),defaultLBlack:T("DEFAULT_L_HEAVY"),defaultXlBlack:T("DEFAULT_XL_HEAVY"),condensed5XlBlack:T("YLE_NEXT_5XL_CONDENSED_HEAVY"),condensed6XlBlack:T("YLE_NEXT_6XL_CONDENSED_HEAVY")},L=e=>w.zQ[e],$={"--arkki-background-aside-gradient-start":"rgba(248, 249, 250, 0)","--arkki-background-external-content":"transparent","--arkki-background-header-opinion":w.yW.INFO_PURPLE_5,"--arkki-background-social-blockquote":"transparent","--arkki-background-table-active":w.yW.GRAY_10,"--arkki-background-table-active-variant":w.yW.GRAY_5,"--arkki-background-table-gradient-start":"19, 20, 21","--arkki-border-social-blockquote":w.yW.TURQUOISE_95,"--arkki-border-table":w.yW.GRAY_20,"--arkki-border-table-variant":w.yW.GRAY_10,"--arkki-tag-label":w.yW.GRAY_5,"--arkki-warning-icon-color":w.yW.GRAY_95},M={"--arkki-background-aside-gradient-start":"rgba(31, 33, 35, 0)","--arkki-background-external-content":"transparent","--arkki-background-header-opinion":w.yW.INFO_PURPLE_90,"--arkki-background-social-blockquote":w.yW.GRAY_90,"--arkki-background-table-active":w.yW.GRAY_80,"--arkki-background-table-active-variant":w.yW.GRAY_90,"--arkki-background-table-gradient-start":"248, 249, 250","--arkki-border-social-blockquote":w.yW.BLUE_10,"--arkki-border-table":w.yW.GRAY_80,"--arkki-border-table-variant":w.yW.GRAY_70,"--arkki-tag-label":w.yW.GRAY_5,"--arkki-warning-icon-color":w.yW.GRAY_5},B={backgroundAsideGradientStart:"var(--arkki-background-aside-gradient-start)",backgroundExternalContent:"var(--arkki-background-external-content)",backgroundHeaderOpinion:"var(--arkki-background-header-opinion)",backgroundSocialBlockquote:"var(--arkki-background-social-blockquote)",backgroundTableActive:"var(--arkki-background-table-active)",backgroundTableActiveVariant:"var(--arkki-background-table-active-variant)",backgroundTableGradientStart:"var(--arkki-background-table-gradient-start)",borderSocialBlockquote:"var(--arkki-border-social-blockquote)",borderTable:"var(--arkki-border-table)",borderTableVariant:"var(--arkki-border-table-variant)",tagLabel:"var(--arkki-tag-label)",warningIconColor:"var(--arkki-warning-icon-color)",actionDisabled:L("ACTION_DISABLED"),actionPrimary:L("ACTION_PRIMARY"),actionPrimaryVariant:L("ACTION_PRIMARY_VARIANT"),actionSecondaryVariant:L("ACTION_SECONDARY_VARIANT"),background:L("BACKGROUND"),backgroundNegative:L("BACKGROUND_NEGATIVE"),backgroundControl:L("BACKGROUND_CONTROL"),backgroundDialog:L("BACKGROUND_DIALOG"),backgroundHighlight:L("BACKGROUND_HIGHLIGHT"),backgroundVariant:L("BACKGROUND_VARIANT"),backgroundInfoSecondary:L("BACKGROUND_INFO_SECONDARY"),backgroundWarning:L("BACKGROUND_WARNING"),border:L("BORDER"),borderDisabled:L("BORDER_DISABLED"),borderSeparator:L("BORDER_SEPARATOR"),feedbackLive:L("FEEDBACK_LIVE"),feedbackHighlight:L("FEEDBACK_HIGHLIGHT"),textDefault:L("TEXT_DEFAULT"),textDisabled:L("TEXT_DISABLED"),textInputPlaceholder:L("TEXT_INPUT_PLACEHOLDER"),textNegative:L("TEXT_NEGATIVE"),backgroundDark:w.yW.GRAY_95,areenaText:w.yW.GRAY_5,backgroundImageOverlayHeaderFooter:w.yW.BLACK_OPACITY_50,backgroundImageOverlayPlaceholder:w.yW.WHITE_OPACITY_5,black:w.yW.BLACK,borderDarkB
1ackground:w.yW.GRAY_60,focusColor:w.yW.TURQUOISE_30,specialTopic:w.yW.BLUE_80,white:w.yW.WHITE},E={shadowSm:"var(--yds-shadow-sm)",shadowMd:"var(--yds-shadow-md)",shadowLg:"var(--yds-shadow-lg)"},P=()=>{const{article:e}=(e=>(0,r.useMemo)(()=>({article:{spacing:j,typography:e,radius:k}}),[e]))(A);return(0,r.useMemo)(()=>({article:{...e,color:B,breakpoint:S,shadow:E}}),[e])};i(97700);var D=i(65241),R=i(31761),F=i(51595);var O=i(87647);const N=v.I4.dialog.withConfig({componentId:"aw__sc-15iqfco-0"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.black,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"100%",overflow:"visible",border:"none"}}),U=v.I4.div.withConfig({componentId:"aw__sc-15iqfco-1"})(e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",height:"56px",justifyContent:"center",position:"absolute",left:0,right:0,top:0,zIndex:2,backgroundColor:t.article.color.backgroundImageOverlayHeaderFooter}}),H=v.I4.p.withConfig({componentId:"aw__sc-15iqfco-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,color:t.article.color.white}}),Y=v.I4.section.withConfig({componentId:"aw__sc-15iqfco-3"})({display:"flex",flexDirection:"column",position:"relative",flex:1,justifyContent:"space-between"}),W=v.I4.button.withConfig({componentId:"aw__sc-15iqfco-4"})({backgroundColor:"transparent",border:"none",cursor:"pointer",height:"56px",padding:0,position:"absolute",width:"56px"}),V=(0,v.I4)(W).withConfig({componentId:"aw__sc-15iqfco-5"})({alignItems:"center",display:"flex",justifyContent:"center",right:"0px"}),z=(0,v.I4)(W).withConfig({componentId:"aw__sc-15iqfco-6"})({top:"calc(50% - 28px)"}),q=(0,v.I4)(z).withConfig({componentId:"aw__sc-15iqfco-7"})(e=>{let{theme:t}=e;return{left:t.article.spacing.spacing16}}),X=(0,v.I4)(z).withConfig({componentId:"aw__sc-15iqfco-8"})(e=>{let{theme:t}=e;return{right:t.article.spacing.spacing16}}),G=(0,v.I4)(O.JGc).withConfig({componentId:"aw__sc-15iqfco-9"})(e=>{let{theme:t}=e;return{color:t.article.color.white}}),K=(0,v.I4)(O.c_$).withConfig({componentId:"aw__sc-15iqfco-10"})(e=>{let{theme:t}=e;return{color:t.article.color.white}}),J=(0,v.I4)(O.bm).withConfig({componentId:"aw__sc-15iqfco-11"})(e=>{let{theme:t}=e;return{color:t.article.color.white}});var Q=i(31225),Z=i(35611),ee=i(57866),te=i(90326);const ie=v.I4.figure.withConfig({componentId:"aw__sc-rote8q-0"})({display:"flex"}),ae=v.I4.figcaption.withConfig({componentId:"aw__sc-rote8q-1"})(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",minHeight:"56px",position:"absolute",left:0,right:0,bottom:0,backgroundColor:t.article.color.backgroundImageOverlayHeaderFooter}}),ne=v.I4.div.withConfig({componentId:"aw__sc-rote8q-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultS,color:t.article.color.white,display:"flex",padding:t.article.spacing.spacing16,maxWidth:"792px",justifySelf:"center"}}),re=v.I4.div.withConfig({componentId:"aw__sc-rote8q-3"})({height:"100dvh",justifyContent:"center",alignItems:"center",display:"flex",flex:1}),oe=v.I4.div.withConfig({componentId:"aw__sc-rote8q-4"})({height:"100%",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),le=v.I4.div.withConfig({componentId:"aw__sc-rote8q-5"})({position:"absolute",left:0,right:0,top:0,bottom:0,visibility:"visible",display:"flex",alignItems:"center",justifyContent:"center"}),se=e=>{let{image:t,imageSourcePrefix:i,hasBeenViewed:n=!1,onImageViewed:o}=e;const{caption:l,source:s}=t,c=(0,r.useRef)(null),d=`${l??""} ${s?`${i} ${s}`:""}`.trim(),u=(0,r.useRef)(null),p=(0,r.useCallback)(()=>{c.current&&(c.current.style.visibility="hidden")},[]);return(0,a.jsx)(ee.X,{entityType:"image",viewMode:"overlay",id:t.id,onEventSuccess:()=>{o?.(t.id)},enabled:!n,elementRef:u,children:(0,a.jsxs)(ie,{ref:u,children:[(0,a.jsxs)(re,{children:[(0,a.jsx)(le,{ref:c,children:(0,a.jsx)(Q.y,{variant:"highlight"})}),(0,a.jsx)(oe,{children:(0,a.jsx)(te.w,{image:t,onLoad:p,noPlaceholder:!0,stretch:!0,imageBreakpoints:{S:{maxWidth:Z.T.S.imageOverlay,aspectRatio:t.aspect},M:{maxWidth:Z.T.M.imageOverlay,aspectRatio:t.aspect}}})})]}),(0,a.jsx)(ae,{children:(0,a.jsx)(ne,{children:d})})]})})},ce=(0,v.DU)({body:{overflow:"hidden"}}),de=()=>{const{data:e,locale:t}=(0,y.o6)(),{header:i,posts:n,sharedPost:o}=(0,F.Iq)(),{visible:l,images:s,currentImageIndex:c}=(0,R.h)(),{closeImageOverlay:d,nextImage:u,previousImage:p,setImageSources:h}=(0,R.M)(),{t:g}=(0,D.B)(),[m,f]=(0,r.useState)(),[b,x]=(0,r.useState)([]),{getViewportScaleState:v}={getViewportScaleState:()=>
1(window.visualViewport?.scale??1)>1},w=(0,r.useRef)(null);(0,r.useEffect)(()=>{h({data:e,header:i,posts:n,sharedPost:o,locale:t})},[e,i,o,t,n,h]);const k=(0,r.useRef)(null),j=(0,r.useRef)(null),I=(0,r.useRef)(null),_=(0,r.useCallback)(()=>{p(),j.current?.focus()},[p]),C=(0,r.useCallback)(()=>{u(),I.current?.focus()},[u]),S=(0,r.useCallback)(e=>{x(t=>t.includes(e)?t:[...t,e])},[]),T=(0,r.useCallback)(e=>{switch(e.key){case"ArrowLeft":_();break;case"ArrowRight":C()}},[C,_]);if((0,r.useEffect)(()=>{l?w.current?.showModal():w.current?.close()},[l]),!s.length)return;const A=c?c+1:1,L=s.length||0;return(0,a.jsxs)(N,{ref:w,onKeyUp:T,onClose:d,children:[l&&(0,a.jsx)(ce,{}),(0,a.jsxs)(U,{children:[(0,a.jsx)(H,{children:`${g("imageOverlayBrowsePosPrefix")} ${A} / ${L}`}),(0,a.jsx)(V,{ref:k,onClick:d,id:"image-overlay-close-btn","aria-label":g("imageOverlayCloseLabel"),autoFocus:!0,children:(0,a.jsx)(J,{height:28,width:28})})]}),(0,a.jsxs)(Y,{onTouchStart:e=>{const t=Array.from(e.touches).at(0);!v()&&t&&f({x:t.clientX,y:t.clientY})},onTouchEnd:e=>{const t=Array.from(e.changedTouches).at(0);if(v()||!m||!t)return void f(null);const{clientX:i,clientY:a}=t,n=i-m.x,r=a-m.y,o=Math.abs(r)-2*Math.abs(n)>0;f(null),o&&Math.abs(r)>30?d():(n>30&&p(),n<-30&&u())},children:[s.map((e,t)=>t===c&&(0,a.jsx)(se,{image:e,imageSourcePrefix:g("figureCopyrightTitle"),hasBeenViewed:b.includes(e.id),onImageViewed:S},e.id)),L>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(q,{ref:j,onClick:_,"aria-label":g("imageOverlayPrevLabel"),children:(0,a.jsx)(G,{height:42,width:42})}),(0,a.jsx)(X,{ref:I,onClick:C,id:"image-overlay-next-btn","aria-label":g("imageOverlayNextLabel"),children:(0,a.jsx)(K,{height:42,width:42})})]})]})]})},ue=(0,v.DU)(e=>{let{theme:t,stickyHeaderHeight:i,hostHeaderHeight:a}=e;return{"*::selection":{color:t.article.color.textNegative,backgroundColor:t.article.color.textDefault},"article.yle__article":{"--sticky-header-height":i??"0px","--host-header-height":a??"0px"},"article.arkki-theme-default":{...$,"@media (prefers-color-scheme: dark)":{...M}},"article.arkki-theme-light":{...$},"article.arkki-theme-dark":{...M}}}),pe=e=>{let{children:t,disableSubjectInteraction:i=!1,enabledBlocks:n=b.Bv,isArseInNative:o=!1,showFooter:l=!0,showPrimarySubject:s=!0,showRelatedArticles:c=!0,showShareButtons:d=!0,showSubjectList:u=!0,includeExternalContentCss:p=!0,stickyHeaderHeight:g,hostHeaderHeight:m,hideImageOverlay:f,...w}=e;const k=(0,h.o6)(),j=(0,y.N_)(),I=P(),_=(0,r.useMemo)(()=>({...k,...w,disableSubjectInteraction:i,enabledBlocks:n,isArseInNative:o,showFooter:l,showPrimarySubject:s,showRelatedArticles:c,showShareButtons:d,showSubjectList:u,includeExternalContentCss:p}),[k,w,i,n,o,l,s,c,d,u,p]);return(0,y.KI)(_),(0,r.useEffect)(()=>{j(_)},[_,j]),(0,a.jsx)(v.NP,{theme:I,children:(0,a.jsxs)(x.n,{theme:"default",children:[(0,a.jsx)(ue,{stickyHeaderHeight:g,hostHeaderHeight:m}),t,!f&&(0,a.jsx)(de,{})]})})},he=e=>{const{children:t,disableSubjectInteraction:i,enabledBlocks:n,getCustomImagePath:r,isArseInNative:o,showFullTimestamps:l,showRelatedArticles:s,showShareButtons:c,ssrTime:d,yleTunnus:u,ylePlayerSDK:p,yleSnowplow:h,showPrimarySubject:g,showSubjectList:m,showFooter:b,stickyHeaderHeight:x,hostHeaderHeight:v,includeExternalContentCss:y,disableAuthorLinks:w,forcedAspectRatioForCustomPathImages:k,webViewEventFeatures:j,themeMode:I="default",hideImageOverlay:_}=e,C={...e,baseUrls:{...e.baseUrls,imageCdn:e.baseUrls?.imageCdn??"https://img.img-cdn.yle.fi"}};return(0,a.jsx)(f,{...C,themeMode:I,children:(0,a.jsx)(pe,{disableSubjectInteraction:i,enabledBlocks:n,getCustomImagePath:r,isArseInNative:o,showFullTimestamps:l,showRelatedArticles:s,showShareButtons:c,ssrTime:d,yleTunnus:u,ylePlayerSDK:p,yleSnowplow:h,showFooter:b,showPrimarySubject:g,showSubjectList:m,includeExternalContentCss:y,stickyHeaderHeight:x,hostHeaderHeight:v,disableAuthorLinks:w,forcedAspectRatioForCustomPathImages:k,webViewEventFeatures:j,hideImageOverlay:_,children:t})})}},86916(e,t,i){i.d(t,{Q:()=>c});i(97700);var a=i(11684),n=i(27528);i(35508),i(12888),i(1061);const r=["56-7-","56-20-","56-74-"],o=["fi","sv","en","ru","se","uk"];i(92852);const l=(e,t,i)=>{if(((e,t,i)=>r.some(t=>e.startsWith(t))&&"Person"===i&&o.includes(t))(e,t,i))return`https://yle.fi/p/${e}/${t}`};var s=i(37289);const c=e=>{let{author:t}=e;const{id:i,name:r,type:o}=t,{isArseInNative:c,disableAuthorLinks:d,locale:u}=(0,n.o6)(),p=(()=>{const{webViewEventFeatures:e}=(0,n.o6)();return e?.split(",")??[]})(),h=!d&&i&&l(i,u,o),g=h&&c&&p.includes("OPEN_AUTHOR_PROFILE")&&(e=>()=>{window.ReactNativeWebView?.postMessage(JSON.stringify({type:"OPEN_AUTHOR_PROFILE",payload:{id:e.id}}))})(t);return!c&&h?(0,a.jsx)(s.y,{$isLink:!0,as:"a",href:h,children:r}):g?(0,a.jsx)(s.y,{$isLink:!0,as:"button",type:"button",onClick:g,children:r}):(0,a.jsx)(s.y,{children:r})}},37501(e,t,i){i.d(t,{w:()=>l});var a=i(11684),n=i(86916),r=i(37289);const o=i(44832).I4.li.withConfig({componentId:"aw__sc-18yw5oa-0"})(e=>{let{$inline:t}=e;return{display:t?"inline":"block"}}),l=e=>{let{author:t,isLast:i,inline:l}=e;return(0,a.jsxs)(o,{$inline:l,children:[(0,a.jsx)(n.Q,{author:t}),!i&&l&&(0,a.jsx)(r.y,{"aria-hidden":"true",children:", "})]})}},27669(e,t,i){i.d(t,{V:()=>l});var a=i(11684),n=i(65241),r=i(37501);const o=i(44832).I4.ul.withConfig({componentId:"aw__sc-600oyb-0"})(e=>{let{theme:t,$alignCenter:i=!1}=e;return{marginBottom:t.article.spacing.spacing8,listStyleType:"none",textAlign:i?"center":void 0}}),l=e=>{let{authors:t,inline:i,alignCenter:l,addAccessibleTitle:s=!0}=e;const{t:c}=(0,n.B)(),d=c("authorsTitle",{count:t.length});return 0===t.length?null:(0,a.jsx)(o,{$alignCenter:l,"aria-label":s?d:void 0,children:t.map((e,n)=>{const o=n===t.length-1;return(0,a.jsx)(r.w,{author:e,isLast:o,inline:i},`author-list-item-${n}`)})})}},37289(e,t,i){const a=i(44832).I4.span.withConfig({componentId:"aw__sc-17ajyyk-0"})(e=>{let{theme:t,$isFirst:i=!1,$isLast:a=!1,$isLink:n=!1}=e;return{marginTop:i?t.article.spacing.spacing16:void 0,marginBottom:a?t.article.spacing.spacing16:void 0,color:t.article.color.textDefault,...t.article.typography.defaultSBoldAc,[t.article.breakpoint.M]:{...t.article.typography.defaultMBoldAc},...n&&{border:"none",background:"none",textDecoration:"underline","&:hover":{backgroundColor:t.article.color.actionSecondaryVariant}}}});i.d(t,["y",0,a])},63476(e,t,i){i.d(t,{N:()=>c});var a=i(11684),n=i(65241),r=(i(35508),i(12888),i(93753)),o=(i(1061),i(92852),i(27528));const l=e=>{let{block:t}=e;const{locale:i}=(0,o.o6)(),{t:l}=(0,n.B)(),{caption:s,left:c,right:d}
1=t,u=(0,r.b)(c.copyright??[],i),p=(0,r.b)(d.copyright??[],i);if(!s&&!u&&!p)return;const h=[u?` ${u} (${l("figureCopyrightLeft")})`:void 0,p?` ${p} (${l("figureCopyrightRight")})`:void 0].filter(e=>void 0!==e),g=h.length>0?`${l("figureCopyrightsTitle")}${h.join(",")}`:"";return(0,a.jsxs)(a.Fragment,{children:[s&&(0,a.jsx)("span",{children:s}),g&&(0,a.jsxs)("span",{children:[s&&" ",g]})]})};var s=i(78958);const c=e=>{let{block:t,alignCenter:i,noHorizontalPadding:c,maxWidth:d}=e;const{locale:u}=(0,o.o6)(),{t:p}=(0,n.B)();if("image-pair"===t.type)return(0,a.jsx)(s.a,{$alignCenter:i,$noHorizontalPadding:c,children:(0,a.jsx)(l,{block:t})});const{caption:h}=t,g="image"===t.type?(0,r.b)(t.copyright??[],u):t.source;if(!h&&!g)return null;const m=g?`${p("figureCopyrightTitle")} ${g}`:"";return(0,a.jsxs)(s.a,{$alignCenter:i,$noHorizontalPadding:c,$maxWidth:d,children:[h&&(0,a.jsx)("span",{children:h}),m&&(0,a.jsxs)("span",{children:[h&&" ",m]})]})}},78958(e,t,i){const a=i(44832).I4.figcaption.withConfig({componentId:"aw__sc-1y9g4h2-0"})(e=>{let{theme:t,$alignCenter:i,$noHorizontalPadding:a,$maxWidth:n}=e;return{...t.article.typography.defaultS,color:t.article.color.textDefault,marginTop:t.article.spacing.spacing8,paddingLeft:a?0:t.article.spacing.spacing16,paddingRight:a?0:t.article.spacing.spacing16,textAlign:i?"center":void 0,[t.article.breakpoint.M]:{paddingLeft:i&&!a?t.article.spacing.spacing16:0,paddingRight:i&&!a?t.article.spacing.spacing16:0,maxWidth:n,marginLeft:n?"auto":void 0,marginRight:n?"auto":void 0}}});i.d(t,["a",0,a])},59448(e,t,i){i.d(t,{D:()=>j});var a=i(11684),n=(i(35508),i(12888),i(76745)),r=(i(1061),i(92852),i(27528)),o=i(30378),l=i(35611),s=i(63476),c=i(31516),d=i(63518);const u=e=>{let{block:t}=e;const{locale:i,baseUrls:{imageCdn:n}}=(0,r.o6)(),o=(0,c.WA)(t,i,n);return(0,a.jsx)(d.Y,{data:o,dataKey:"image"})};var p=i(60470);const h=e=>{let{block:t}=e;const i=(0,p.g)(t),{data:{url:{full:n}},articleInfo:{isVerticalMultimediaArticle:o},baseUrls:{imageCdn:l}}=(0,r.o6)(),s=o?{embedUrl:n,mainEntityOfPage:n}:void 0,u=(0,c.Yo)({block:t,programData:i,overrideParams:s,baseUrl:l});return(0,a.jsx)(d.Y,{data:u,dataKey:"video"})},g=e=>{let{block:t}=e;switch(t.type){case"image":return(0,a.jsx)(u,{block:t});case"video":return(0,a.jsx)(h,{block:t});case"image-pair":return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u,{block:t.left}),(0,a.jsx)(u,{block:t.right})]});default:return null}};var m=i(44832),f=i(62351);const b=m.I4.figure.withConfig({componentId:"aw__sc-1s7cqxv-0"})(e=>{let{$thumbnail:t=!1,$noTopMargin:i=!1,$noMargin:a=!1,$padHorizontally:n=!1,theme:r}=e;return{marginBottom:t||a?0:r.article.spacing.spacing24,marginLeft:t||a?0:`-${r.article.spacing.spacing16}`,marginRight:t||a?0:`-${r.article.spacing.spacing16}`,marginTop:t||i?0:r.article.spacing.spacing16,paddingLeft:n?r.article.spacing.spacing48:0,paddingRight:n?r.article.spacing.spacing48:0,[r.article.breakpoint.M]:{marginBottom:t||a?0:r.article.spacing.spacing32,marginLeft:0,marginRight:0,paddingLeft:0,paddingRight:0}}}),x=m.I4.div.withConfig({componentId:"aw__sc-1s7cqxv-1"})(e=>{let{theme:t}=e;return{[t.article.breakpoint.M]:{backgroundColor:t.article.color.backgroundVariant}}}),v=m.I4.div.withConfig({componentId:"aw__sc-1s7cqxv-2"})(["overflow:hidden;position:relative;&:focus-within{overflow:initial;}"]),y=(0,m.I4)(v).withConfig({componentId:"aw__sc-1s7cqxv-3"})(e=>{let{$imageBreakpoints:t,$dimensions:{height:i,width:a},$aspectRatio:n,theme:r}=e;const o=i&&a?`calc(${i} / ${a} * 100%)`:void 0;return{height:o?0:void 0,paddingBottom:t?.S?.aspectRatio?(0,f.Im)(t.S.aspectRatio):o,[r.article.breakpoint.M]:{paddingBottom:(0,f.Im)(t?.M?.aspectRatio??n)}}}),w=(0,m.I4)(v).withConfig({componentId:"aw__sc-1s7cqxv-4"})(e=>{let{$aspectRatio:t,$stickyHeaderHeight:i,$hostHeaderHeight:a,$isVerticalMultimediaArticle:n,theme:r}=e;const o=`max(${a&&""!==a?a:"0px"}, ${i&&""!==i?i:"0px"})`,l=r.article.spacing.spacing24,s=`min(${700*t+"px"}, ${`calc(100vh * ${t} - ${o} - ${n?l:"0px"})`})`;return{aspectRatio:t,marginLeft:"auto",marginRight:"auto",maxWidth:s,maxHeight:`calc(${s} / ${t})`}}),k=e=>{let{children:t,visible:i}=e;return i?(0,a.jsx)(x,{children:t}):t},j=e=>{let{block:t,aspectRatio:i,children:c,thumbnail:d,noCaption:u,noCaptionPadding:p,noMargin:h,noTopMargin:m,imageBreakpoints:f,darkB
1ackground:x,padHorizontally:v,centeredCaption:j}=e;const I=(0,o.Y)(),{stickyHeaderHeight:_,hostHeaderHeight:C,articleInfo:{isVerticalMultimediaArticle:S}}=(0,r.o6)(),T=(e=>{let{block:t,aspectRatio:i}=e;return"image"===t.type?t.aspect:i??1})({block:t,aspectRatio:i}),A=(0,n.e7)({aspectRatio:T,maxWidth:l.T.S.columnWidth,dpr:I}),L=!!v&&T<1;return(0,a.jsxs)(b,{className:"yle__article__figure",$mediaType:t.type,$thumbnail:d,$noTopMargin:m,$noMargin:h,$padHorizontally:v,children:[(0,a.jsxs)(k,{visible:x,children:[(0,a.jsx)(g,{block:t}),L?(0,a.jsx)(w,{$dimensions:A,$imageBreakpoints:f,$aspectRatio:T,$stickyHeaderHeight:_,$hostHeaderHeight:C,$isVerticalMultimediaArticle:S,children:c}):(0,a.jsx)(y,{$dimensions:A,$imageBreakpoints:f,$aspectRatio:T,children:c})]}),!u&&(0,a.jsx)(s.N,{block:t,alignCenter:j,noHorizontalPadding:p,maxWidth:!x&&L?700*T:void 0})]})}},55353(e,t,i){i.d(t,{Y:()=>pn});var a=i(11684),n=(i(35508),i(12888));i(1061);const r=e=>{const t=e.publication,i=e.publisher.name;return"uutiset"===t||"urheilu"===t?t:"svenska.yle.fi"===t?"svenska":"aihe"===t&&"Yle Elävä arkisto"===i?"elavaarkisto":"aihe"===t&&"Yle Viestintä"===i?"avoinyle":"aihe"===t?t:"yleiset"};var o=i(92852),l=i(27528),s=i(51595),c=i(31225),d=i(65241),u=i(74338),p=i(9504),h=i(26719),g=i(19889),m=i(87647),f=i(44832);const b=f.I4.div.withConfig({componentId:"aw__sc-18qdmm8-0"})(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",flexWrap:"wrap",gap:t.article.spacing.spacing16,margin:`${t.article.spacing.spacing16} 0`,[t.article.breakpoint.M]:{margin:`${t.article.spacing.spacing24} 0`}}}),x=f.I4.div.withConfig({componentId:"aw__sc-18qdmm8-1"})(e=>{let{theme:t}=e;return{marginLeft:`-${t.article.spacing.spacing16}`,marginTop:`-${t.article.spacing.spacing12}`,marginBottom:`-${t.article.spacing.spacing12}`}}),v=(0,f.I4)(m.yQN).withConfig({componentId:"aw__sc-18qdmm8-2"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),y=(0,f.I4)(m.rXn).withConfig({componentId:"aw__sc-18qdmm8-3"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),w=()=>{const{showSubjectList:e,data:t,locale:i}=(0,l.o6)(),{t:r}=(0,d.B)(),[o,s]=(0,n.useState)(!1),c=(0,n.useCallback)(()=>{s(!o)},[o]),{subjects:p}=t,m=p?.filter(e=>(0,h.Uz)(e,i));if(!e||!m||0===m.length)return;const f=o?m:m.slice(0,3);return(0,a.jsxs)(b,{children:[f.map(e=>(0,a.jsx)(g.B,{subject:e,variant:"secondary",showLongTitle:!0},e.id)),m.length>3&&(0,a.jsx)(x,{children:(0,a.jsx)(u.$,{"aria-label":r(o?"A11YHideSubjectListButton":"A11YShowSubjectListButton"),"aria-expanded":o,iconOnly:!0,variant:"text",removePadding:!0,iconBefore:o?(0,a.jsx)(y,{}):(0,a.jsx)(v,{}),onClick:c})})]})};var k=i(1012);var j=i(23582),I=i(64126);const _=f.I4.div.withConfig({componentId:"aw__sc-1o9piu7-0"})(e=>{let{theme:t,$alignCenter:i}=e;return{marginTop:t.article.spacing.spacing8,display:"flex",flexDirection:"column",justifyContent:i?"center":void 0,[t.article.breakpoint.M]:{marginTop:t.article.spacing.spacing16}}}),C=f.I4.div.withConfig({componentId:"aw__sc-2r7nz1-0"})(e=>{let{theme:t,$alignCenter:i}=e;return{marginBottom:t.article.spacing.spacing8,textAlign:i?"center":void 0}}),S=f.I4.div.withConfig({componentId:"aw__sc-s03438-0"})(e=>{let{$alignCenter:t=!1}=e;return{display:"flex",flexDirection:"row",justifyContent:t?"center":"flex-start",alignItems:"center",button:{textTransform:"uppercase"}}}),T=e=>{let{toggleState:[t,i],alignCenter:n,authors:r,controlsId:o}=e;const{t:l}=(0,d.B)(),s=l("authorsTitle",{count:r.length}),c=l(t?"A11YHideAuthorsButton":"A11YShowAuthorsButton");return(0,a.jsx)(S,{$alignCenter:n,children:(0,a.jsx)(u.$,{text:s,accessibleText:c,removePadding:!0,onClick:()=>i(!t),variant:"text",size:"md",iconAfter:t?(0,a.jsx)(m.rXn,{}):(0,a.jsx)(m.yQN,{}),"aria-expanded":t,"aria-controls":o})})},A=f.I4.ul.withConfig({componentId:"aw__sc-19kzi8j-0"})(e=>{let{$hidden:t,$alignCenter:i}=e;return{display:t?"none":"block",textAlign:i?"center":void 0,listStyleType:"none"}});var L=i(37501);const $=e=>{let{authors:t,inline:i,alignCenter:r=!1}=e;
1const[o,l]=(0,n.useState)(!1),s=(0,n.useId)();return 0===t.length?null:(0,a.jsxs)(C,{children:[(0,a.jsx)(T,{toggleState:[o,l],alignCenter:r,authors:t,controlsId:s}),(0,a.jsx)(A,{id:s,$hidden:!o,$alignCenter:r,children:t.map((e,n)=>{const r=n===t.length-1;return(0,a.jsx)(L.w,{author:e,isLast:r,inline:i},`author-list-item-${n}`)})})]})};var M=i(27669);const B=e=>{let{authors:t,alignCenter:i,collapsable:n,inline:r,showTitle:o=!1}=e;const{t:l}=(0,d.B)(),s=l("authorsTitle",{count:t.length});return 0===t.length?null:n?(0,a.jsx)(_,{children:(0,a.jsx)($,{authors:t,inline:r,alignCenter:i})}):(0,a.jsxs)(_,{$alignCenter:i,children:[o&&(0,a.jsx)(I.D,{as:"h2",level:3,children:s}),(0,a.jsx)(M.V,{authors:t,inline:r,alignCenter:i,addAccessibleTitle:!o})]})};var E=i(18656);const P=(0,f.I4)(E.f).withConfig({componentId:"aw__sc-1vg2sqm-0"})(e=>{let{theme:t,$alignCenter:i,$tightBottomMargin:a}=e;return{color:t.article.color.textDefault,...t.article.typography.defaultL,marginBottom:a?t.article.spacing.spacing24:t.article.spacing.spacing32,textAlign:i?"center":void 0,[t.article.breakpoint.M]:{...t.article.typography.defaultXl,marginBottom:t.article.spacing.spacing32}}}),D=e=>{let{children:t,alignCenter:i,tightBottomMargin:n}=e;return(0,a.jsx)(P,{className:"yle__article__paragraph",$alignCenter:i,$tightBottomMargin:n,children:t})};var R=i(18710),F=i(90181);const O=f.I4.div.withConfig({componentId:"aw__sc-11f712m-0"})(e=>{let{theme:t}=e;return{marginRight:t.article.spacing.spacing16}}),N=f.I4.div.withConfig({componentId:"aw__sc-11f712m-1"})(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),U=e=>{let{livemode:t,concept:i}=e;return(0,a.jsxs)(N,{children:[t&&(0,a.jsx)(O,{children:(0,a.jsx)(F.v,{animate:!0,variant:"live",children:"LIVE"})}),i&&(0,a.jsx)(g.B,{variant:"text",subject:i})]})};var H=i(99683);const Y=e=>{let{block:t,noTopMargin:i}=e;const{locale:n}=(0,l.o6)(),r=(0,j.P)(t,n);return(0,a.jsx)(H.D,{block:r,noTopMargin:i})};i(97700);var W=i(76256),V=i(87266),z=i(75929),q=i(13703);const X=e=>{let{block:t,noTopMargin:i}=e;if(!["areena","elava-arkisto"].includes(t.source))return;const n=(0,V.W0)(t);return n?(0,W.W)(n)?(0,a.jsx)(z.Y,{block:n}):(0,a.jsx)(q.F,{block:n,noTopMargin:i}):void 0},G=e=>{let{block:t,noTopMargin:i}=e;return"video"===t.type?(0,a.jsx)(X,{block:t,noTopMargin:i}):(0,a.jsx)(Y,{block:t,noTopMargin:i})};var K=i(9067);function J(e,t){const i=(0,K.a)(e,t?.in);return i.setSeconds(0,0),i}function Q(e,t){return+J(e)===+J(t)}var Z=i(3206),ee=i(83462),te=i(42820),ie=i(87492);function ae(e,t,i){const a=(0,ie.b)(e,t)/1e3;return(0,te.u)(i?.roundingMethod)(a)}var ne=i(22923),re=i(72419),oe=i(15904);const le=(0,ne.eU)(void 0),se=e=>{const[t,i]=(0,re.fp)(le),a=(0,n.useCallback)(()=>{i(new Date)},[i]);return(0,oe.y)("now",a,{delay:15e3}),(0,n.useMemo)(()=>t??e??new Date,[t,e])},ce=e=>{let{live:t,ssrDate:i}=e;const{locale:a}=(0,ee.o6)(),r=se(i),{createdAt:o,updatedAt:l,publishedAt:s,livemode:c}=t,u=(0,n.useMemo)(()=>(0,Z.ay)(s??o),[o,s]),p=(0,n.useMemo)(()=>(0,Z.ay)(l),[l]),h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;const{locale:i}=(0,ee.o6)(),{t:a}=(0,d.B)(),n=ae(t,e);if(n<30)return a("livefeed.timestamp.now");if(n<60)return a("livefeed.timestamp.lessThanMinuteAgo");if(n<3600){const e=Math.floor(n/60);return a(1===e?"livefeed.timestamp.minuteAgo":"livefeed.timestamp.minutesAgo",{count:e})}return(0,Z.$$)(e,Z.qt,void 0,i)}(p,r);return c?{created:"",updated:h}:{created:(0,Z.$$)(u,void 0,r,a),updated:Q(u,p)?"":(0,Z.$$)(p,Z.qt,r,a)}},de=f.I4.div.withConfig({componentId:"aw__sc-chhwhj-0"})({flex:1}),ue=e=>{let{live:t}=e;const{ssrTime:i}=(0,l.o6)(),{t:n}=(0,d.B)(),{created:r,updated:o}=ce({live:t,ssrDate:i?(0,K.a)(i):void 0}),{createdAt:s,updatedAt:c}=t;return(0,a.jsxs)(de,{children:[r&&(0,a.jsx)("time",{dateTime:s,children:r}),r&&o&&" • ",o&&(0,a.jsx)("time",{dateTime:c,children:n("livefeed.timestamp.updated",{updated:o})})]})},pe=f.I4.div.withConfig({componentId:"aw__sc-1pt1cgp-0"})({display:"flex",flexDirection:"column"}),he=f.I4.div.withConfig({componentId:"aw__sc-1pt1cgp-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultS,display:"flex",alignItems:"center",color:t.article.color.textDefault,marginBottom:t.article.spacing.spacing24,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing32}}}),ge=e=>{let{live:t,preferLiveHeaderMainMedia:i=!1}=e;const{locale:n}=(0,l.o6)(),{header:r,livemode:o}=t,s=(e=>e.subjects?.find(e=>"isMainSubjectOf"===e.relationType)??e.subjects?.at(0))(t),c=t.authors.map(e=>({type:"Person",name:`${e.givenName} ${e.familyName}`,id:"",some:e.some,image:e.image&&(0,j.P)(e.image,n)})),d=((e,t)=>{if(e&&t.media)return"image"===t.media.type?(0,k.$i)(t.media,[]).block:t.media})(i,r);return(0,a.jsxs)(pe,{children:[d?(0,a.jsx)(G,{block:d,noTopMargin:!0}):(0,a.jsx)(R.y,{}),(0,a.jsx)(U,{livemode:o,concept:s}),(0,a.jsx)(I.D,{level:1,children:r.title}),r.lead&&(0,a.jsx)(D,{children:r.lead}),(0,a.jsx)(B,{authors:c,collapsable:!0}),(0,a.jsx)(he,{children:(0,a.jsx)(ue,{live:t})})]})},me=e=>{const t=e.at(0);return t?`${t.givenName} ${t.familyName}`:""};var fe=i(90928),be=i(57866);const xe=(e,t)=>`${e}_${t.type}`;var ve=i(69670),ye=i(84132),we=i(33618),ke=i(6474),je=i(21387),Ie=i(47084),_e=i(52283),Ce=i(24165);const Se=f.I4.div.withConfig({componentId:"aw__sc-hft3wx-0"})({display:"flex",flexGrow:1,flexDirection:"column",alignItems:"center",justifyContent:"center",width:160,margin:"0 auto"}),Te=f.I4.span.withConfig({componentId:"aw__sc-hft3wx-1"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,margin:`${t.article.spacing.spacing16} 0`,textAlign:"center"}},e=>{let{theme:t}=e;return(0,Ce.G)(t,"defaultXsBold","defaultSBold")}),Ae=(0,f.I4)(m.hcu).withConfig({componentId:"aw__sc-hft3wx-2"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),Le=()=>{const{t:e}=(0,d.B)();return(0,a.jsxs)(Se,{children:[(0,a.jsx)(Ae,{height:52,width:52}
1),(0,a.jsx)(Te,{children:e("livefeed.errorView.message")})]})},$e=f.I4.div.withConfig({componentId:"aw__sc-eqdthq-0"})(e=>{let{theme:t}=e;return{margin:`${t.article.spacing.spacing8} 0 ${t.article.spacing.spacing24}`}}),Me=e=>{let{block:t}=e;const i=(0,n.useMemo)(()=>(0,V.NP)(t),[t]);return(0,a.jsx)(Ie.t,{errorView:(0,a.jsx)(Le,{}),children:(0,a.jsx)($e,{children:(0,a.jsx)(_e.o,{block:i,isLivefeed:!0})})})},Be=f.I4.h2.withConfig({componentId:"aw__sc-1fr77j0-0"})(e=>{let{theme:t}=e;return(0,Ce.G)(t,"defaultXlBlack","default2XlBlack")},e=>{let{theme:t}=e;return{color:t.article.color.textDefault,whiteSpace:"pre-line",margin:`${t.article.spacing.spacing16} 0`,[t.article.breakpoint.M]:{margin:`${t.article.spacing.spacing24} 0`}}}),Ee=f.I4.p.withConfig({componentId:"aw__sc-1fr77j0-1"})(e=>{let{theme:t}=e;return{margin:`0 0 ${t.article.spacing.spacing16}`,"&:empty":{margin:0},[t.article.breakpoint.M]:{margin:`0 0 ${t.article.spacing.spacing24}`}}}),Pe=f.I4.span.withConfig({componentId:"aw__sc-1uqi69x-0"})(e=>{let{$styling:t,theme:i}=e;return{...i.article.typography.defaultM,color:t?.color??i.article.color.textDefault,...t?.italic?{fontStyle:i.article.typography.defaultMItalic.fontStyle}:{},...t?.bold?{fontWeight:i.article.typography.defaultMBold.fontWeight}:{},whiteSpace:"pre-wrap",[i.article.breakpoint.M]:{...i.article.typography.defaultL,...t?.italic?{fontStyle:i.article.typography.defaultLItalic.fontStyle}:{},...t?.bold?{fontWeight:i.article.typography.defaultLBold.fontWeight}:{}}}}),De=(0,f.I4)(Pe).withConfig({componentId:"aw__sc-1kcnrzg-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"underline","&:hover":{backgroundColor:t.article.color.textNegative}}}),Re=e=>{let{block:t}=e;return(0,a.jsx)(De,{$styling:t.styling,as:"a",href:t.href,children:t.text})},Fe=f.I4.ul.withConfig({componentId:"aw__sc-za0b3r-0"})(e=>{let{theme:t}=e;return{listStyleType:"disc",listStylePosition:"outside",marginLeft:t.article.spacing.spacing8,padding:`${t.article.spacing.spacing8} 0`,[t.article.breakpoint.M]:{padding:`${t.article.spacing.spacing16} 0`},"&&":{paddingInlineStart:t.article.spacing.spacing16}}}),Oe=f.I4.li.withConfig({componentId:"aw__sc-za0b3r-1"})(e=>{let{theme:t}=e;return{listStyleType:"disc",flexDirection:"row",alignItems:"center",padding:`0 0 0 ${t.article.spacing.spacing8}`,margin:`0 0 ${t.article.spacing.spacing16}`,[t.article.breakpoint.M]:{margin:`0 0 ${t.article.spacing.spacing24}`},color:t.article.color.textDefault}}),Ne=e=>{let{styling:t,children:i}=e;return(0,a.jsx)(Pe,{$styling:t,children:i})},Ue=e=>{let{block:t}=e;return(0,a.jsx)(Ne,{styling:t.styling,children:t.text})},He=e=>{let{block:t}=e;return"text"===t.type?(0,a.jsx)(Ue,{block:t}):(0,a.jsx)(Re,{block:t})},Ye=e=>{let{block:t}=e;return"ordered"===t.styling?(0,a.jsx)("ol",{children:t.items.map((e,t)=>(0,a.jsx)(Oe,{children:(0,a.jsxs)("span",{children:[t,".",e.items.map((e,t)=>(0,a.jsx)(He,{block:e},xe(t,e)))]})},xe(t,e)))}):(0,a.jsx)(Fe,{children:t.items.map((e,t)=>(0,a.jsx)(Oe,{children:(0,a.jsx)("span",{children:e.items.map((e,t)=>(0,a.jsx)(He,{block:e},xe(t,e)))})},xe(t,e)))})},We=e=>{let{block:t}=e;switch(t.type){case"h1":case"h2":return(0,a.jsx)(Be,{children:t.text.trim()});case"list":return(0,a.jsx)(Ye,{block:t});case"paragraph":return 0===t.items.length?null:(0,a.jsx)(Ee,{children:t.items.map((e,i)=>(0,a.jsx)(He,{block:e},xe(i,t)))});case"text":return(0,a.jsx)(Ue,{block:t});case"interaction-element":return(0,a.jsx)(we.W,{block:t});case"image":return(0,a.jsx)(Y,{block:t});case"video":return(0,a.jsx)(X,{block:t});case"external-content":return(0,a.jsx)(Me,{block:t});case"infogram":return(0,a.jsx)(ye.J,{block:t});case"twitter":case"instagram":return(0,a.jsx)(ke.o,{block:(0,V.pA)(t)});case"link":return(0,a.jsx)(Re,{block:t});case"tehtava-carousel":case"tehtava-assignment":case"tehtava-exam":return(0,a.jsx)(je.b,{block:t});case"form":return(0,a.jsx)(ve.U,{block:t});default:return null}},Ve=e=>{let{blocks:t}=e;return t?.map((e,t)=>(0,a.jsx)(We,{block:e},xe(t,e)))},ze=f.I4.article.withConfig({componentId:"aw__sc-wxazgo-0"})(e=>{let{theme:t,$isPinned:i,$isShared:a}=e;return{position:"relative",padding:`0 ${t.article.spacing.spacing16}`,margin:`0 -${t.article.spacing.spacing16}`,borderWidth:"1px 0 0 0",borderColor:t.article.color.borderSeparator,borderStyle:"solid",[t.article.breakpoint.M]:{margin:"unset",padding:"unset",...i&&{marginBottom:t.article.spacing.spacing16,padding:`0 ${t.article.spacing.spacing16}`,ul:{paddingRight:t.article.spacing.spacing8}},...a&&{marginBottom:t.article.spacing.spacing16,padding:`0 ${t.article.spacing.spacing24}`}},...i&&{borderWidth:"1px",borderRadius:t.article.radius.large,marginTop:t.article.spacing.spacing8,margin:`0 0 ${t.article.spacing.spacing16}`},...a&&{border:"none",borderRadius:t.article.radius.large,margin:`0 0 ${t.article.spacing.spacing16}`,backgroundColor:t.article.color.backgroundDialog,boxShadow:t.article.shadow.shadowSm}}}),qe=f.I4.header.withConfig({componentId:"aw__sc-wxazgo-1"})(e=>{let{theme:t}=e;return(0,Ce.G)(t,"defaultS","defaultM")},e=>{let{theme:t}=e;return{display:"flex",color:t.article.color.textDefault,flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:32,marginBottom:t.article.spacing.spacing24,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing32}}}),Xe=f.I4.div.withConfig({componentId:"aw__sc-wxazgo-2"})({display:"flex",flexDirection:"column",justifyContent:"center",whiteSpace:"nowrap"}),Ge=(0,f.I4)(Xe).withConfig({componentId:"aw__sc-wxazgo-3"})(e=>{let{theme:t}=e;return{minWidth:0,span:{marginTop:t.article.spacing.spacing24,overflow:"hidden",textOverflow:"ellipsis"}}}),Ke=f.I4.div.withConfig({componentId:"aw__sc-wxazgo-4"})(e=>{let{theme:t}=e;return{marginTop:t.article.spacing.spacing24}}),Je=f.I4.div.withConfig({componentId:"aw__sc-wxazgo-5"})(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",justifyContent:"flex-start",paddingBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{paddingBottom:t.article.spacing.spacing24}}});var Qe=i(75197),Ze=i(85657);const et=(0,f.I4)(Xe).withConfig({componentId:"aw__sc-b5p2gm-0"})({marginRight:"auto"}),tt=f.I4.time.withConfig({componentId:"aw__sc-b5p2gm-1"})(e=>{let{theme:t}=e;return{marginTop:t.article.spacing.spacing24,"&:first-letter":{textTransform:"uppercase"}}}),it=e=>{let{createdAt:t,hideTimestamp:i}=e;const{ssrTime:n}=(0,l.o6)(),r=(e=>{let{date:t,ssrDate:i}=e;const{locale:a}=(0,ee.o6)(),{t:n}=(0,d.B)(),r=se(i),o=(0,Qe.o)(r,t);return o<1?n("livefeed.timestamp.now"):o<60?n("livefeed.timestamp.minutes",{count:o}):(0,Z.ro)(t,r)?(0,Z.DC)(t):(0,Z.ro)(t,(0,Ze.e)(r,1))?n("livefeed.timestamp.yesterday",{time:(0,Z.DC)(t)}):(0,Z.s0)(t,r)?(0,Z.LE)(t,a):(0,Z.qt)(t)})({date:(0,K.a)(t),ssrDate:n?(0,K.a)(n):void 0});return(0,a.jsx)(et,{children:!i&&(0,a.jsx)(tt,{role:"time",dateTime:t,children:r})})};var at=i(60470),nt=i(63518),rt=i(70397),ot=i(31516);const lt=e=>"h1"===e.type||"h2"===e.type,st=e=>"text"===e.type||"paragraph"===e.type,ct=e=>"image"===e.type,dt=e=>"video"===e.type,ut=e=>{let{post:t}=e;const i=(0,rt.$)(t),{locale:n,baseUrls:{imageCdn:r}}=(0,l.o6)(),o=(e=>{const t=e.content.blocks.filter(st).reduce((e,t)=>
1{return`${e} ${i=t,"text"===i.type?i.text:i.items.reduce((e,t)=>`${e} ${t.text}`,"")}`;var i},"");return""!==t?t:void 0})(t),s=((e,t,i)=>{const a=e.content.blocks.find(ct),n=a&&(0,j.P)(a,t);return n&&(0,ot.WA)(n,t,i)})(t,n,r),c=i?.url,d=(e=>e.content.blocks.find(dt))(t),u=t.hideAuthor?void 0:me(t.authors),p=(e=>{const t=e.content.blocks.find(lt);return t?.text})(t),h=(0,at.g)(d),g=d?.id?(0,ot.Yo)({block:{id:d.id,aspectRatio:d.aspectRatio??null,caption:d.caption,source:d.source},programData:h,baseUrl:r}):void 0,m={"@type":"BlogPosting",datePublished:t.createdAt,articleBody:o,image:s,url:c,video:g,author:u,headline:p};return(0,a.jsx)(nt.Y,{data:m,dataKey:"liveBlogUpdate"})},pt=e=>{let{post:t,isShared:i=!1,closeSharedPost:r,ref:o}=e;const{t:l}=(0,d.B)(),s=(0,n.useRef)(null),c=l("livefeed.share.label"),p=l("close"),h=me(t.authors),g=!i&&Boolean(t.pinned&&t.pinned<0);return(0,a.jsx)(be.X,{entityType:"livefeed_post",id:t.id,elementRef:s,children:(0,a.jsxs)(ze,{className:"post-container",ref:o,$isShared:i,$isPinned:g,children:[(0,a.jsxs)(qe,{className:"post-header",children:[(0,a.jsx)(it,{createdAt:t.createdAt,hideTimestamp:g||t.hideTimestamp}),(0,a.jsx)(Ge,{children:!(g||t.hideAuthor)&&(0,a.jsx)("span",{"aria-label":h,title:h,children:h})}),i&&(0,a.jsx)(Ke,{children:(0,a.jsx)(u.$,{onClick:r,"aria-label":p,variant:"text",iconOnly:!0,iconBefore:(0,a.jsx)(m.bm,{})})})]}),(0,a.jsxs)("div",{className:"post-content",children:[(0,a.jsx)(ut,{post:t}),(0,a.jsx)(Ve,{blocks:t.content.blocks})]}),(0,a.jsx)(Je,{className:"share-container",children:!g&&(0,a.jsx)(fe.S,{shareLabel:c,ariaShareLabel:c,urlPath:t.id,excerpt:t.excerpt,showShareButtons:!0})})]})})},ht=(0,n.memo)(pt);var gt=i(28496);const mt=(0,f.I4)(u.$).withConfig({componentId:"aw__sc-1k7zh23-0"})({borderTopRightRadius:0,borderBottomRightRadius:0,paddingRight:0}),ft=(0,f.I4)(u.$).withConfig({componentId:"aw__sc-1k7zh23-1"})(e=>{let{theme:t}=e;return{borderTopLeftRadius:0,borderBottomLeftRadius:0,paddingRight:t.article.spacing.spacing16}}),bt=e=>{let{updateCount:t,onClick:i,onClose:n}=e;const{t:r}=(0,d.B)(),o=r("close");return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(mt,{size:"sm",onClick:i,children:r("livefeed.updates",{count:t})}),(0,a.jsx)(ft,{size:"sm",onClick:e=>{e.stopPropagation(),n()},"aria-label":o,iconBefore:(0,a.jsx)(m.bm,{}),iconOnly:!0}),(0,a.jsx)(gt.I,{"aria-live":"polite",children:r("livefeed.updates",{count:t})})]})},xt=f.I4.section.withConfig({componentId:"aw__sc-15w2qjm-0"})({flex:"1 1 auto"}),vt=f.I4.div.withConfig({componentId:"aw__sc-15w2qjm-1"})({display:"flex",flexGrow:1,alignItems:"center",justifyContent:"center",position:"sticky",zIndex:2,top:74,left:0,right:0}),yt=f.I4.div.withConfig({componentId:"aw__sc-15w2qjm-2"})(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",marginBottom:t.article.spacing.spacing16}}),wt=f.I4.div.withConfig({componentId:"aw__sc-15w2qjm-3"})({position:"relative"}),kt=f.I4.div.withConfig({componentId:"aw__sc-15w2qjm-4"})({position:"absolute",visibility:"hidden",top:"calc(-16px - var(--sticky-header-height, 0px))"}),jt=e=>{let{live:t}=e;const{posts:i,sharedPost:r,canLoadMore:o,newPostsCount:l,isLoading:c}=(0,s.Iq)(),{loadMore:h,clearNewPosts:g,clearSharedPost:m}=(0,s.xi)(),f=(0,n.useRef)(null),{t:b}=(0,d.B)(),x=(0,n.useRef)(null),v=i.findIndex(e=>!e.pinned),y=(0,n.useCallback)(()=>{document.documentElement.scrollTop<(f.current?.clientHeight??0)+(f.current?.offsetTop??0)&&g()},[g]),k=(0,p.YQ)(y,100);(0,n.useEffect)(()=>(y(),window.addEventListener("scroll",k),()=>
1window.removeEventListener("scroll",k)),[y,l,k]);const j=(0,n.useCallback)(()=>{if(m(),r){const e=window.location.href.replaceAll(new RegExp(`[#/]${r.id}`,"g"),"");window.history.replaceState({},"",e)}},[m,r]);return(0,n.useEffect)(()=>{r&&x.current?.scrollIntoView(!0)},[r]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ge,{live:t}),Boolean(l)&&(0,a.jsx)(vt,{children:(0,a.jsx)(bt,{updateCount:l||0,onClick:()=>{g(),f.current?.scrollIntoView(),window.scrollTo(window.scrollX,window.scrollY-50)},onClose:g})}),(0,a.jsxs)(wt,{children:[(0,a.jsx)(kt,{ref:x}),r&&(0,a.jsx)(ht,{isShared:!0,post:r,closeSharedPost:j})]}),i.length>0&&(0,a.jsxs)(xt,{children:[i.map((e,t)=>r?.id===e.id?null:(0,a.jsx)(ht,{post:e,ref:e=>{t===v&&(f.current=e)}},e.id)),o&&(0,a.jsx)(yt,{children:(0,a.jsx)(u.$,{variant:"secondary",onClick:c?()=>{}:h,loading:c,isDisabled:c,children:b("showMorePosts")})})]}),(0,a.jsx)(w,{})]})},It=f.I4.div.withConfig({componentId:"aw__sc-44silu-0"})({display:"flex",justifyContent:"center"}),_t=f.I4.div.withConfig({componentId:"aw__sc-44silu-1"})({flex:1}),Ct=()=>{(0,s.qE)();const{live:e}=(0,s.Iq)();return e?(0,a.jsx)(_t,{children:(0,a.jsx)(jt,{live:e})}):(0,a.jsx)(It,{children:(0,a.jsx)(c.y,{variant:"highlight",size:"md"})})};var St=i(84935),Tt=i(44923);const At=()=>(0,a.jsx)(Tt.w,{});var Lt=i(76745);const $t=f.I4.div.withConfig({componentId:"aw__sc-1bff5gu-0"})({width:"100%",height:"100%"});var Mt=i(35862);const Bt=e=>{let{block:t}=e;const{locale:i,isTest:r}=(0,l.o6)(),o="sv"===i?"sv":"fi",s=r?"test":"production";return(e=>{const{baseUrls:t}=(0,l.o6)(),i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(i.current)return;const a=(0,Mt.n)("script",{src:`${t.chatWidgetUrl}/js/yle-livefeed.js`}),n=(0,Mt.n)("link",{rel:"stylesheet",href:`${t.chatWidgetUrl}/css/yle-livefeed.css`});let r=!1,o=!1;(0,Mt.Oc)(a),(0,Mt.qj)(n);const l=()=>{r&&o&&!i.current&&(i.current=!0,e())};a.onload=()=>{r=!0,l()},n.onload=()=>{o=!0,l()}},[t.chatWidgetUrl,e])})(()=>{window.livefeed&&window.livefeed.core.initialize({chatId:t.chatId,language:o,env:s})}),(0,a.jsx)($t,{id:"yle-livefeed"})},Et="var(--host-header-height, var(--sticky-header-height, 0px))",Pt=f.I4.div.withConfig({componentId:"aw__sc-1com8pa-0"})(e=>{let{theme:t}=e;return{display:"grid",gridTemplateRows:"auto 1fr",height:`calc(100dvh - ${Et})`,[t.article.breakpoint.LANDSCAPE]:{placeContent:"center",gridTemplateRows:"1fr",gridTemplateColumns:"min(720px, 60%) clamp(240px, 40%, 480px)"}}}),Dt=f.I4.div.withConfig({componentId:"aw__sc-1com8pa-1"})(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",justifyContent:"center",[t.article.breakpoint.LANDSCAPE]:{padding:t.article.spacing.spacing16}}}),Rt=f.I4.div.withConfig({componentId:"aw__sc-1com8pa-2"})(e=>{let{theme:t,$hasMainMedia:i,$aspectRatio:a}=e;return{display:i?void 0:"none",width:"100%",[t.article.breakpoint.LANDSCAPE]:{width:`calc(((100dvh - ${Et}) - (2 * ${t.article.spacing.spacing16})) * ${a})`,display:"initial"}}}),Ft=f.I4.div.withConfig({componentId:"aw__sc-1com8pa-3"})({overflowY:"auto"}),Ot=()=>{const{data:{content:e,mainMedia:t}}=(0,l.o6)(),i=e.find(e=>"chat"===e.type);if(!i)return;const n=!!t?.at(0),r=(e=>e?"video"===e.type&&"image"===e.image?.type?e.image.aspect:"number"==typeof e.aspect?e.aspect:Lt.XS.aspect:Lt.XS.aspect)(t?.at(0));return(0,a.jsx)("section",{className:"yle__article__content",children:(0,a.jsxs)(Pt,{children:[(0,a.jsx)(Dt,{children:(0,a.jsx)(Rt,{$hasMainMedia:n,$aspectRatio:r,children:n?(0,a.jsx)(R.y,{}):(0,a.jsx)(H.D,{noTopMargin:!0,noMargin:!0,block:Lt.XS,lazyLoad:!1})})}),(0,a.jsx)(Ft,{children:(0,a.jsx)(Bt,{block:i})})]})})};var Nt=i(2299);const Ut=e=>"video"===e?.type,Ht=["fi","sv","en","se","ru","uk","krl"],Yt=e=>{const t=Ht.findIndex(t=>t===e);return-1===t?Ht.length:t},Wt=["isTranslationOf","translationOf","isVersionedFrom","versionedFrom"],Vt=e=>"article"===e.type&&!!e.relationType&&!!e.language&&Wt.includes(e.relationType);var zt=i(64158);const qt=f.I4.div.withConfig({componentId:"aw__sc-1xeb72-0"})(e=>{let{theme:t}=e;return{margin:`${t.article.spacing.spacing16} 0`,[t.article.breakpoint.M]:{margin:`${t.article.spacing.spacing24} 0`}}}),Xt=f.I4.span.withConfig({componentId:"aw__sc-1xeb72-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultMBold,[t.article.breakpoint.M]:{...t.article.typography.defaultLBold}}}),Gt=()=>{const{data:{meta:e}}=(0,l.o6)(),{t}=(0,d.B)(),i=(e=>(e?.relations?.filter(Vt)??[]).reduce((e,t)=>
1e.find(e=>e.language===t.language&&e.url===t.url)?e:[...e,t],new Array).sort((e,t)=>Yt(e.language)-Yt(t.language)))(e);return i.length?(0,a.jsx)(qt,{className:"yle__article__translations",role:"list","aria-label":t("articleTranslationsLabel"),children:i.map(e=>{const i=t("articleTranslation",{lng:e.language});return(0,a.jsx)("div",{role:"listitem",lang:e.language,"aria-label":i,children:(0,a.jsxs)(zt.N,{href:e.url,hrefLang:e.language,children:[(0,a.jsx)(Xt,{children:`${i}: `}),e.title]})},e.id)})}):null};var Kt=i(96352),Jt=i(88588),Qt=i(53350),Zt=i(40418);const ei=f.I4.div.withConfig({componentId:"aw__sc-1igxi01-0"})(e=>{let{theme:t}=e;return{marginTop:t.article.spacing.spacing16,marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginTop:t.article.spacing.spacing24,marginBottom:t.article.spacing.spacing24}}}),ti=e=>{let{relatedProgram:t}=e;const{locale:i,themeMode:n}=(0,l.o6)();if(!t.programResponse||!t.url)return null;const r=(0,Jt.qi)(t.programResponse,i),o=r.id?`${(0,Qt.DO)(i)}/${r.id}`:t.url;return(0,a.jsx)(ei,{children:(0,a.jsx)(Zt.w,{programData:r,url:o,locale:i,themeMode:n,noSpacing:!0,noBackground:!0})})},ii=e=>{let{relatedPrograms:t,isFirst:i}=e;return t.map((e,t)=>e.id&&(0,a.jsxs)("div",{role:"listitem",children:[(!i||0!==t)&&(0,a.jsx)(Kt.Hr,{noMarginHorizontal:!0}),(0,a.jsx)(ti,{relatedProgram:e})]},`related-program-${e.id}-${t}`))};var ai=i(62044);const ni=e=>{let{children:t,...i}=e;const n="string"==typeof t?t.trim():t;return(0,a.jsx)(ai.Z,{...i,children:n})};var ri=i(73534);const oi=()=>{const{data:{mainMedia:e,content:t,meta:i},footer:{relatedLinks:n},showRelatedArticles:r}=(0,l.o6)(),{t:o}=(0,d.B)(),s=n?.links??[],c=function(e,t){const i=[...arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],...t].filter(Nt.MH).map(e=>e.id),a=t.filter(Nt.dx).flatMap(e=>e.instructions).filter(Ut).map(e=>e.id),n=i.concat(a);return e?.relations?.filter(e=>{return!!(t=e).type&&["program","Program"].includes(t.type)&&!n.includes(e.id);var t})??[]}(i,t,e);return!r||!n&&0===c.length?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ni,{as:"h2",children:`${o("subjectMore")}: ${o("A11YPackageContainsArticles",{count:[...s,...c].length})}`}),(0,a.jsx)(I.D,{as:"h2",level:3,"aria-hidden":!0,children:o("subjectMore")}),(0,a.jsxs)("div",{className:"yle__article__links",role:"list","aria-label":o("subjectMore"),children:[n&&(0,a.jsx)(ri.U,{block:n,trackAsArticleLift:!0}),(0,a.jsx)(ii,{relatedPrograms:c,isFirst:!n})]})]})},li=(0,f.I4)(E.f).withConfig({componentId:"aw__sc-vfcbwi-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,...t.article.typography.defaultSAc,padding:`${t.article.spacing.spacing16} 0`,[t.article.breakpoint.M]:{...t.article.typography.defaultMAc,padding:`${t.article.spacing.spacing24} 0`}}}),si=()=>{const{data:{sources:e}}=(0,l.o6)(),{t}=(0,d.B)(),i=`${t("sourcesTitle")}: `;return e?(0,a.jsxs)(li,{className:"yle__article__sources",children:[i,e]}):null},ci=f.I4.div.withConfig({componentId:"aw__sc-rvfal2-0"})(e=>{let{theme:t}=e;return{[t.article.breakpoint.M]:{marginTop:t.article.spacing.spacing24}}}),di=()=>{const{renderComments:e,renderAfterArticle:t}=(0,l.o6)();return(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)(ci,{children:(0,a.jsx)(e,{})}),(0,a.jsx)(oi,{}),(0,a.jsx)(Gt,{}),(0,a.jsx)(si,{}),t&&(0,a.jsx)(t,{}),(0,a.jsx)(w,{})]})};var ui=i(41783),pi=i(77219),hi=i(97329),gi=i(14144),mi=i(79484);const fi=f.I4.div.withConfig({componentId:"aw__sc-145f9ne-0"})({display:"flex",flexDirection:"column",alignItems:"center",cursor:"pointer"}),bi=f.I4.span.withConfig({componentId:"aw__sc-145f9ne-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,color:t.article.color.textDefault,display:"inline-flex",flexDirection:"row",paddingTop:t.article.spacing.spacing8}}),xi=e=>{let{text:t,onClick:i}=e;return(0,a.jsxs)(fi,{children:[(0,a.jsx)(u.$,{size:"xs",text:t,onClick:i,iconBefore:(0,a.jsx)(m.oUU,{}),iconOnly:!0,"aria-label":t}),(0,a.jsx)(bi,{onClick:i,"aria-hidden":!0,children:(0,a.jsx)("span",{children:t})})]})};var vi=i(22874);const yi=f.I4.div.withConfig({componentId:"aw__sc-1yzvbh7-0"})(e=>{let{theme:t}=e;return{minHeight:t.article.spacing.spacing24}}),wi=f.I4.p.withConfig({componentId:"aw__sc-1yzvbh7-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,color:t.article.color.textDefault}}),ki=f.I4.a.withConfig({componentId:"aw__sc-1yzvbh7-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,color:t.article.color.textDefault,textDecoration:"underline",wordBreak:"break-word","&:before":{content:'" "',display:"inline-block",whiteSpace:"pre"},"&:hover":{backgroundColor:t.article.color.actionSecondaryVariant}}}),ji=e=>{let{isVisible:t,locale:i}=e;const{t:n}=(0,d.B)(),r=(0,Qt.B3)(i),{articleInfo:{isJournalisticStyleFeature:o}}=(0,l.o6)();return o&&t?(0,a.jsxs)(wi,{children:[n("articleAudioIsSynthesized"),r&&(0,a.jsx)(ki,{href:r,children:n("readMore")})]}):(0,a.jsx)(yi,{children:t&&(0,a.jsxs)(wi,{children:[n("articleAudioIsSynthesized"),r&&(0,a.jsx)(ki,{href:r,children:n("readMore")})]})})},Ii=f.I4.div.withConfig({componentId:"aw__sc-1hxaqzd-0"})(e=>{let{$playerVisible:t}=e;return{display:t?"block":"none",width:"100%"}}),_i=f.I4.button.withConfig({componentId:"aw__sc-1hxaqzd-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,alignItems:"center",backgroundColor:"transparent",border:"transparent 2px solid",borderRadius:t.article.radius.medium,color:t.article.color.textDefault,cursor:"pointer",display:"flex",gap:t.article.spacing.spacing8,padding:"2px 0"}}),Ci=f.I4.span.withConfig({componentId:"aw__sc-1hxaqzd-2"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),Si=e=>{let{btnText:t,handleClick:i,locale:n,playerVisible:r,duration:o,ylePlayerRef:l}=e;return(0,a.jsxs)(a.Fragment,{children:[!r&&(0,a.jsxs)(_i,{onClick:i,"data-testid":"default-article-audio-placeholder",children:[(0,a.jsx)(u.$,{as:"span",size:"xs",iconOnly:!0,iconBefore:(0,a.jsx)(m.jGG,{})}),(0,a.jsx)(Ci,{children:`${t} ${o?(0,vi.v)(o):""}`})]}),(0,a.jsx)(Ii,{$playerVisible:r,"aria-hidden":!r,children:(0,a.jsx)("div",{"data-testid":"default-article-audio-player",ref:l})}),(0,a.jsx)(ji,{isVisible:r,locale:n})]})},Ti=f.I4.div.withConfig({componentId:"aw__sc-a4t1lp-0"})(e=>{let{theme:t}=e;return{width:"100%",display:"flex",justifyContent:"center",paddingBottom:t.article.spacing.spacing16}}),Ai=f.I4.button.withConfig({componentId:"aw__sc-a4t1lp-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,color:t.article.color.textDefault,backgroundColor:"transparent",border:"transparent 2px solid",borderRadius:"4px",padding:"2px 0 4px 0",display:"flex",flexDirection:"column",gap:t.article.spacing.spacing8,alignItems:"center",cursor:"pointer"}}),Li=f.I4.span.withConfig({componentId:"aw__sc-a4t1lp-2"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),$i=f.I4.div.withConfig({componentId:"aw__sc-a4t1lp-3"})(e=>{let{$playerVisible:t}=e;return{display:t?"flex":"none",flexDirection:"column",alignItems:"center",width:"100%",paddingBottom:"6px"}}),Mi=f.I4.div.withConfig({componentId:"aw__sc-a4t1lp-4"})(e=>{let{theme:t}=e;return{width:"100%",display:"flex",flexDirection:"column",gap:t.article.spacing.spacing4,[t.article.breakpoint.M]:{width:"70%"}}}),Bi=e=>{let{btnText:t,handleClick:i,locale:n,playerVisible:r,ylePlayerRef:o}=e;return(0,a.jsxs)(Ti,{children:[!r&&(0,a.jsxs)(Ai,{onClick:i,children:[(0,a.jsx)(u.$,{as:"span",size:"xs",iconOnly:!0,iconBefore:(0,a.jsx)(m.jGG,{})}),(0,a.jsx)(Li,{children:t})]}),(0,a.jsx)($i,{$playerVisible:r,"aria-hidden":!r,children:(0,a.jsxs)(Mi,{children:[(0,a.jsx)("div",{"data-testid":"feature-article-audio-player",ref:o}),(0,a.jsx)(ji,{isVisible:r,locale:n})]})})]})},Ei=f.I4.div.withConfig({componentId:"aw__sc-1lspa0q-0"})(e=>{let{theme:t,$isCentered:i}=e;return{marginBottom:t.article.spacing.spacing4,gap:t.article.spacing.spacing4,dis
1play:"flex",flexDirection:"column",alignItems:i?"center":"initial"}}),Pi=f.I4.div.withConfig({componentId:"aw__sc-1lspa0q-1"})(e=>{let{theme:t}=e;return{display:"flex",minHeight:t.article.spacing.spacing40}}),Di=e=>{let{audioContent:t}=e;const{data:{id:i,headline:{full:r,short:s}},articleInfo:{isJournalisticStyleFeature:c},locale:u}=(0,l.o6)(),[p,h]=(0,n.useState)(!1),g=(0,n.useRef)(null),m=(0,n.useMemo)(()=>({...ui.n,id:`87-${i}`,src:t.url,srcDuration:t.duration?o.toSeconds(o.parse(t.duration)):void 0,srcTitle:s??r,language:(0,W.e)(u),playButton:!c}),[i,t.url,t.duration,s,r,u,c]),f=(0,pi.Hv)({element:g,ylePlayerParams:m}),{t:b}=(0,d.B)();(0,hi.u)({isVideo:!1,actions:f});const x=(0,n.useCallback)(()=>{h(!0),f.play(!0)},[f]),v={btnText:b("listenArticle"),handleClick:x,locale:u,playerVisible:p,ylePlayerRef:g};return(0,a.jsx)(Ei,{$isCentered:c,children:c?(0,a.jsx)(Bi,{...v}):(0,a.jsx)(Si,{...v,duration:t.duration})})},Ri=e=>{let{audioContent:t}=e;const{articleInfo:{isJournalisticStyleFeature:i},locale:r}=(0,l.o6)(),{t:o}=(0,d.B)(),[s,c]=(0,n.useState)(!1),u=()=>{(0,gi.f)({type:"article"}),c(!0)},p=o("listenArticle");return(0,a.jsxs)(Ei,{$isCentered:i,children:[i?(0,a.jsx)(xi,{text:p,onClick:u}):(0,a.jsx)(Pi,{children:(0,a.jsx)(mi.w,{text:p,onClick:u,duration:t.duration??void 0})}),(0,a.jsx)(ji,{isVisible:s,locale:r})]})},Fi=()=>{const{data:{audioContent:e},articleInfo:{isAudioContentEnabled:t},inAppAudioPlayerInArseEnabled:i,isArseInNative:n}=(0,l.o6)();if(t&&e)return n&&i?(0,a.jsx)(Ri,{audioContent:e}):(0,a.jsx)(Di,{audioContent:e})};var Oi=i(25632),Ni=i(29345),Ui=i(86916);const Hi=f.I4.span.withConfig({componentId:"aw__sc-14mwgkx-0"})(e=>{let{theme:t,$uppercase:i}=e;return{color:t.article.color.textDefault,...i?t.article.typography.defaultSAc:t.article.typography.defaultS,[t.article.breakpoint.M]:{...i?t.article.typography.defaultMAc:t.article.typography.defaultM}}}),Yi=(0,f.I4)(Hi).withConfig({componentId:"aw__sc-1dorlrr-0"})(e=>{let{$hidden:t}=e;return{display:t?"none":"block"}}),Wi=f.I4.div.withConfig({componentId:"aw__sc-1vts0ub-0"})(e=>{let{theme:t,$noPadding:i}=e;return{paddingBottom:i?0:t.article.spacing.spacing24}}),Vi=e=>{let{author:t,noPadding:i=!1}=e;const{t:n}=(0,d.B)(),{description:r}=t,o=n("authorsTitle",{count:1});return(0,a.jsxs)(Wi,{$noPadding:i,"aria-label":o,children:[(0,a.jsx)(Ui.Q,{author:t}),r?.map((e,t)=>(0,a.jsx)(Ni.o,{markdown:e.text,ruleOverrides:{p:e=>{let{children:t}=e;return(0,a.jsx)(Yi,{children:t})}}},`author-description-${t}`))]})};var zi=i(35611),qi=i(90326);const Xi=f.I4.figure.withConfig({componentId:"aw__sc-1jzvgq3-0"})(e=>{let{theme:t,$isVerticalMultimediaArticle:i}=e;return{borderRadius:t.article.radius.full,flex:"none",overflow:"hidden",position:"relative",height:`${i?zi.T.S.authorVerticalMultimedia:zi.T.S.authorImage}px`,width:`${i?zi.T.S.authorVerticalMultimedia:zi.T.S.authorImage}px`,[t.article.breakpoint.M]:{height:`${i?zi.T.M.authorVerticalMultimedia:zi.T.S.authorImage}px`,width:`${i?zi.T.M.authorVerticalMultimedia:zi.T.S.authorImage}px`}}}),Gi=e=>{let{image:t}=e;const{articleInfo:{isVerticalMultimediaArticle:i}}=(0,l.o6)(),n=t??Lt.XS,r=i?{S:{aspectRatio:1,maxWidth:zi.T.S.authorVerticalMultimedia},M:{aspectRatio:1,maxWidth:zi.T.M.authorVerticalMultimedia}}:{S:{aspectRatio:1,maxWidth:zi.T.S.authorImage}};return(0,a.jsx)(Xi,{$isVerticalMultimediaArticle:i,children:(0,a.jsx)(qi.w,{image:n,imageBreakpoints:r,noPlaceholder:!0})})},Ki=f.I4.div.withConfig({componentId:"aw__sc-148nu15-0"})(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",gap:`0 ${t.article.spacing.spacing16}`,paddingBottom:t.article.spacing.spacing24}}),Ji=e=>{let{author:t}=e;return(0,a.jsxs)(Ki,{children:[(0,a.jsx)(Gi,{image:t.image}),(0,a.jsx)(Vi,{author:t,noPadding:!0})]})};var Qi=i(69813);const Zi=f.I4.div.withConfig({componentId:"aw__sc-fksqfs-0"})(e=>{let{theme:t}=e;return{margin:`0 0 ${t.article.spacing.spacing24} 0`}}),ea=()=>{const{t:e}=(0,d.B)(),{years:t,isOld:i}=(()=>{const{data:{dateContentModified:e}}=(0,ee.o6)(),t=(0,Z.TL)(e);return{years:t,isOld:t>=2}})();if(i)return(0,a.jsx)(Zi,{children:(0,a.jsx)(Qi.E,{level:"info",variant:"secondary",children:e("articleIsXYearsOld",{years:t})})})};var ta=i(34820);const ia=["Yle News","Yle Sapmi","Yle Novosti"],aa=e=>{let{showPrimarySubject:t}=e;const{locale:i,data:{publisher:a,subjects:n}}=(0,ee.o6)();if(t&&n)return ia.includes(a.name)?n.find(e=>{let{title:t}=e;return t?.[i]}):n.at(0)},na=e=>"tagLink"===e.type&&"primary"===e.variant,ra=e=>"tagLink"===e.type&&"text"===e.variant,oa=f.I4.div.withConfig({componentId:"aw__sc-7iijzy-0"})(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",flexWrap:"wrap",gap:t.article.spacing.spacing16,marginBottom:t.article.spacing.spacing16}}),la=()=>{const{t:e}=(0,d.B)(),{showPrimarySubject:t,showSubjectList:i}=(0,l.o6)(),n=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{articleInfo:{hasYleAsPublisher:t,isJournalisticStyleOpinion:i,isSvenskaArticle:a},data:{topic:n,meta:r,publisher:o}}=(0,ee.o6)(),l=(e=>{let{hasYleAsPublisher:t,isJournalisticStyleOpinion:i}=e;const a=(e=>{let{hasYleAsPublisher:t,isJournalisticStyleOpinion:i}=e;return t?"yle_as_publisher":i?"opinion":void 0})({hasYleAsPublisher:t,isJournalisticStyleOpinion:i}),n=a&&("yle_as_publisher"===a?"ylecorporate":"opinion"),r=n&&("yle_as_publisher"===a?"yleAsPublisher":"articleTypeOpinion");return r?{type:"tag",variant:n,textTranslationKey:r}:void 0})({hasYleAsPublisher:t,isJournalisticStyleOpinion:i}),s=(e=>e?.relations?.find(e=>"isEditorialSectionOf"===e.relationType)??void 0)(r),c=(0,h.tX)(o.name),d=aa({showPrimarySubject:e});return[l,n?{type:"tagLink",variant:"primary",subject:n}:void 0,a&&s?{type:"tagLink",variant:"primary",subject:s}:void 0,c?{type:"tagLink",variant:"primary",subject:c}:void 0,d?{type:"tagLink",variant:"text",subject:d}:void 0].filter(ta.E).reduce((e,t)=>
1e.length>=2||"tagLink"===t.type&&e.some(e=>"tagLink"===e.type&&e.subject.id===t.subject.id)?e:"tag"===t.type||na(t)&&!e.some(e=>na(e))||ra(t)&&!e.some(e=>ra(e))?[...e,t]:e,[])}(t);if(!(n.length<1)&&i)return(0,a.jsx)(oa,{children:n.map((t,i)=>"tag"===t.type?(0,a.jsx)(F.v,{variant:t.variant,children:e(t.textTranslationKey)},`header-tag-${i}`):(0,a.jsx)(g.B,{subject:t.subject,variant:t.variant},`header-tag-${i}`))})};var sa=i(15201);const ca=e=>{let{alignCenter:t,tightBottomMargin:i}=e;const{data:{lead:n}}=(0,l.o6)();return n?(0,a.jsx)(D,{alignCenter:t,tightBottomMargin:i,children:n}):null};var da=i(67472);const ua=()=>{const{data:e,articleInfo:{isJournalisticStyleAnalysis:t,isJournalisticStyleOpinion:i,isJournalisticStyleNonJournalisticContent:n}}=(0,l.o6)(),{authors:r}=e;if(!r)return null;const o=r.at(0);return i&&o?(0,a.jsx)(Vi,{author:o}):(t||n)&&o?(0,a.jsx)(Ji,{author:o}):(0,a.jsx)(B,{authors:r,collapsable:r.length>3,inline:r.length<=3})},pa=()=>{const{articleInfo:{isJournalisticStyleOpinion:e}}=(0,l.o6)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ea,{}),(0,a.jsx)(la,{}),(0,a.jsx)(Oi.n,{}),(0,a.jsx)(ca,{}),(0,a.jsx)(R.y,{}),(0,a.jsx)(ua,{}),(0,a.jsx)(sa.o,{children:(0,a.jsx)(da.e,{})}),!e&&(0,a.jsx)(Fi,{})]})},ha=()=>(0,a.jsx)(Tt.w,{header:pa,footer:di}),ga=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(oi,{}),(0,a.jsx)(Gt,{}),(0,a.jsx)(si,{})]}),ma=()=>{const{articleInfo:{hasYleAsPublisher:e}}=(0,l.o6)();return(0,a.jsxs)(a.Fragment,{children:[e&&(0,a.jsx)(la,{}),(0,a.jsx)(Oi.n,{}),(0,a.jsx)(ca,{}),(0,a.jsx)(R.y,{}),(0,a.jsx)(Fi,{})]})},fa=()=>(0,a.jsx)(Tt.w,{header:ma,footer:ga}),ba=()=>(0,a.jsx)(Tt.w,{}),xa=f.I4.div.withConfig({componentId:"aw__sc-14f9hpq-0"})(e=>{let{theme:t,$alignCenter:i,$hidden:a=!1}=e;return{display:a?"none":"grid",padding:0,...i?{gridTemplateColumns:"auto",rowGap:t.article.spacing.spacing4,justifyItems:"center","& > *":{textAlign:"center"}}:{gridTemplateColumns:"auto 1fr",columnGap:48,rowGap:t.article.spacing.spacing16,justifyItems:"flex-start",margin:`0 0 ${t.article.spacing.spacing40} 0`,"& h2":{gridColumn:"1 / span 2"}}}}),va=f.I4.div.withConfig({componentId:"aw__sc-1mzzs76-0"})({display:"contents"}),ya=e=>{let{author:t}=e;return(0,a.jsxs)(va,{children:[(0,a.jsxs)(Hi,{$uppercase:!0,children:[t.role,":"]}),(0,a.jsx)(Ui.Q,{author:t})]})},wa=e=>{let{alignCenter:t,authors:i,showTitle:n=!1}=e;const{t:r}=(0,d.B)(),o=r("authorsTitle",{count:i.length});return(0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)(I.D,{as:"h2",level:3,children:o}),(0,a.jsx)(xa,{$alignCenter:t,children:i.map((e,t)=>(0,a.jsx)(ya,{author:e},`author-${t}`))})]})},ka=f.I4.div.withConfig({componentId:"aw__sc-16670r2-0"})(e=>{let{theme:t}=e;return{marginTop:t.article.spacing.spacing24}}),ja=()=>{const{data:{authors:e}}=(0,l.o6)();return e?e.some(e=>{let{role:t}=e;return!t})?(0,a.jsx)(B,{authors:e,collapsable:!1,inline:!0,showTitle:!0}):(0,a.jsx)(wa,{authors:e,showTitle:!0}):null},Ia=()=>(0,a.jsxs)(ka,{children:[(0,a.jsx)(ja,{}),(0,a.jsx)(di,{})]});var _a=i(3560);const Ca=e=>{let{authors:t,collapsable:i=!0}=e;const[r,o]=(0,n.useState)(!1),l=(0,n.useId)();return 0===t.length?null:(0,a.jsxs)(C,{$alignCenter:!0,children:[(0,a.jsx)(T,{toggleState:[r,o],alignCenter:!0,authors:t,controlsId:l}),(0,a.jsx)(xa,{id:l,$alignCenter:!0,$hidden:i&&!r,children:t.map((e,t)=>(0,a.jsx)(ya,{author:e},`author-${t}`))})]})};var Sa=i(4372),Ta=i(43872);const Aa=f.I4.h1.withConfig({componentId:"aw__sc-1w5jaqk-0"})(e=>{let{theme:t,$alignCenter:i}=e;return{...(0,Ta.VU)({theme:t,alignCenter:i}),...t.article.typography.condensed5XlBlack,minWidth:0,maxWidth:"100%",overflowWrap:"break-word",[t.article.breakpoint.M]:{...t.article.typography.condensed6XlBlack}}}),La=f.I4.div.withConfig({componentId:"aw__sc-1w5jaqk-1"})(e=>{let{theme:t}=e;return{textAlign:"center",display:"flex",justifyContent:"center",alignItems:"stretch",flexDirection:"column",paddingTop:t.article.spacing.spacing24}}),$a=f.I4.div.withConfig({componentId:"aw__sc-1w5jaqk-2"})(e=>{let{theme:t}=e;return{alignItems:"stretch",display:"flex",flexDirection:"column",margin:`0 ${t.article.spacing.spacing16}`,[t.article.breakpoint.M]:{margin:`0 ${t.article.spacing.spacing32}`}}}),Ma=f.I4.div.withConfig({componentId:"aw__sc-1w5jaqk-3"})(e=>{let{theme:t}=e;return{marginTop:t.article.spacing.spacing16}}),Ba=f.I4.div.withConfig({componentId:"aw__sc-1w5jaqk-4"})(e=>{let{$aspectRatio:t,theme:i}=e;const a=652*t;return{width:"100%",marginLeft:"auto",marginRight:"auto",[i.article.breakpoint.M]:{maxWidth:a}}}),Ea=f.I4.div.withConfig({componentId:"aw__sc-1w5jaqk-5"})(e=>{let{theme:t}=e;return{marginTop:t.article.spacing.spacing8,marginBottom:t.article.spacing.spacing8}}),Pa=e=>{let{authors:t}=e;return t?t.some(e=>{let{role:t}=e;return!t})?(0,a.jsx)(B,{authors:t,alignCenter:!0,collapsable:t.length>3,inline:t.length<=3}):t.length<3?(0,a.jsx)(Ma,{children:(0,a.jsx)(wa,{alignCenter:!0,authors:t})}):(0,a.jsx)(Ca,{authors:t}):null},Da=()=>{const{data:{authors:e,mainMedia:t,headline:i,topic:n},header:{heading:r},showPrimarySubject:o}=(0,l.o6)(),s=o&&n,c=aa({showPrimarySubject:o}),d=t?.at(0),u=d?(e=>{switch(e.type){case"image":return e.aspect;case"video":return(0,_a.Pm)(e);default:return 16/9}})(d):16/9,p={S:{aspectRatio:u,maxWidth:zi.T.S.fullWidth}},h=i.full!==r;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ba,{$aspectRatio:u,children:(0,a.jsx)(R.y,{imageBreakpoints:p,centeredCaption:!0}
1)}),(0,a.jsxs)(Sa.l,{children:[(0,a.jsx)(La,{children:(0,a.jsxs)($a,{children:[s&&(0,a.jsx)(Ea,{children:(0,a.jsx)(g.B,{subject:n})}),c&&!s&&(0,a.jsx)(g.B,{subject:c,variant:"text"}),h?(0,a.jsx)(Aa,{className:"yle__article__heading yle__article__heading--1",$alignCenter:!0,children:r}):(0,a.jsx)(Oi.n,{alignCenter:!0,isFeatureArticle:!0})]})}),(0,a.jsx)(ca,{alignCenter:!0}),(0,a.jsx)(Fi,{}),(0,a.jsxs)(sa.o,{$centered:!0,children:[(0,a.jsx)(da.e,{}),(0,a.jsx)(Pa,{authors:e})]}),(0,a.jsx)(ea,{})]})]})},Ra=()=>(0,a.jsx)(Tt.w,{header:Da,footer:Ia}),Fa=()=>(0,a.jsx)(Tt.w,{header:pa,footer:di}),Oa=f.I4.div.withConfig({componentId:"aw__sc-tbzbtt-0"})(e=>{let{theme:t}=e;return{borderTop:`1px solid ${t.article.color.borderSeparator}`,padding:`${t.article.spacing.spacing24} 0`,alignItems:"center",display:"flex",justifyContent:"center",gap:"40px"}}),Na=f.I4.div.withConfig({componentId:"aw__sc-1lytrau-0"})(e=>{let{theme:t}=e;return{display:"none",[t.article.breakpoint.M]:{display:"block"}}}),Ua=(0,f.I4)(m.xjr).withConfig({componentId:"aw__sc-1lytrau-1"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),Ha=()=>{const{t:e}=(0,d.B)();return(0,a.jsx)(Na,{children:(0,a.jsx)(u.$,{variant:"text",onClick:()=>window.print(),iconBefore:(0,a.jsx)(Ua,{height:24,width:24}),"aria-label":e("printLabel"),text:e("printLabelShort")})})},Ya=()=>{const{t:e}=(0,d.B)();return(0,a.jsxs)(Oa,{children:[(0,a.jsx)(Ha,{}),(0,a.jsx)(fe.S,{shareLabel:e("shareLabelShort"),ariaShareLabel:e("shareLabel"),shareButtonShouldHavePadding:!0})]})};var Wa=i(41982);const Va=f.I4.p.withConfig({componentId:"aw__sc-1k34qip-0"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultS,color:t.article.color.textDefault,paddingTop:t.article.spacing.spacing8,[t.article.breakpoint.M]:{...t.article.typography.defaultM,paddingTop:t.article.spacing.spacing16}}}),za=f.I4.div.withConfig({componentId:"aw__sc-1k34qip-1"})(e=>{let{theme:t}=e;return{height:"55px",width:"100%",position:"relative",paddingBottom:t.article.spacing.spacing8}}),qa=f.I4.div.withConfig({componentId:"aw__sc-1k34qip-2"})(e=>{let{$playerVisible:t}=e;return{display:t?"block":"none"}}),Xa=(0,f.I4)(m.jGG).withConfig({componentId:"aw__sc-1k34qip-3"})(e=>{let{theme:t}=e;return{color:t.article.color.textNegative}}),Ga=e=>{let{block:t}=e;const{t:i}
1=(0,d.B)(),r=(0,n.useRef)(null),[o,l]=(0,n.useState)(!1),s=(0,ui.P)({block:t,autoplayEnabled:!1,overrideProps:{playButton:!1}}),c=(0,pi.Hv)({element:r,ylePlayerParams:s}),p=(0,Wa.p)(t),h=(0,n.useCallback)(()=>{l(!0),c.play(!0)},[c]);if(p)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(za,{children:[!o&&(0,a.jsx)(u.$,{text:i("listen"),size:"sm",iconBefore:(0,a.jsx)(Xa,{}),onClick:h}),(0,a.jsx)(qa,{$playerVisible:o,"aria-hidden":!o,children:(0,a.jsx)("div",{"data-testid":"audio-player",ref:r})})]}),(0,a.jsx)(Va,{children:i("plainLanguageAudioDescription")})]})},Ka=f.I4.div.withConfig({componentId:"aw__sc-1a34kfj-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing32}}}),Ja=()=>{const{data:{mainMedia:e}}=(0,l.o6)(),t=e?.at(0);return(0,a.jsxs)(Ka,{children:[(0,a.jsx)(ea,{}),(0,a.jsx)(Oi.n,{}),(0,a.jsx)(ca,{tightBottomMargin:!0}),t&&(0,Nt.JK)(t)&&(0,a.jsx)(Ga,{block:t}),t&&(0,Nt.cZ)(t)&&(0,a.jsx)(q.F,{block:t})]})},Qa=()=>{const{data:e}=(0,l.o6)(),{mainMedia:t}=e,i=t?.at(0),n=i&&((0,Nt.JK)(i)||(0,Nt.cZ)(i));return(0,a.jsx)(Tt.w,{header:n?Ja:pa,footer:n?Ya:void 0})};var Za=i(6274);const en=f.I4.div.withConfig({componentId:"aw__sc-qqdfzi-0"})(e=>{let{theme:t,$isMobile:i}=e;return{display:"flex",alignItems:"center",flexDirection:"column",gap:t.article.spacing.spacing8,borderRadius:"1px",backgroundColor:i?void 0:t.article.color.backgroundVariant,paddingBottom:i?t.article.spacing.spacing24:t.article.spacing.spacing40,marginBottom:t.article.spacing.spacing40}}),tn=f.I4.p.withConfig({componentId:"aw__sc-qqdfzi-1"})(e=>{let{theme:t}=e;return{...t.article.typography.default2XlBlack,color:t.article.color.textDefault,textAlign:"center",padding:`${t.article.spacing.spacing24} 0`,[t.article.breakpoint.M]:{...t.article.typography.defaultLBlack}}}),an=f.I4.a.withConfig({componentId:"aw__sc-qqdfzi-2"})(e=>{let{theme:t}=e;return{display:"block","&:focus-within":{outline:`3px solid ${t.article.color.focusColor}`,outlineOffset:"2px"}}}),nn=f.I4.img.withConfig({componentId:"aw__sc-qqdfzi-3"})({width:"143px"}),rn=f.I4.img.withConfig({componentId:"aw__sc-qqdfzi-4"})({width:"92px",height:"92px"}),on=()=>{const{isAndroid:e,isIos:t}=(0,Za.m)(),{baseUrls:i,locale:n}=(0,l.o6)(),{t:r}=(0,d.B)(),o=e||t,s="https://yle.onelink.me/46xJ/vxi8t5xn";return o?(0,a.jsxs)(en,{$isMobile:o,children:[(0,a.jsx)(tn,{children:r("appPromotionText")}),e&&(0,a.jsx)(an,{href:s,title:r("appPromotionTitleGooglePlay"),children:(0,a.jsx)(nn,{src:`${i.articleStaticAssets}/${"sv"===n?"AndroidBadgeSv.svg":"AndroidBadge.svg"}`,alt:""})}),t&&(0,a.jsx)(an,{href:s,title:r("appPromotionTitleAppStore"),children:(0,a.jsx)(nn,{src:`${i.articleStaticAssets}/${"sv"===n?"IOSBadgeSv.svg":"IOSBadge.svg"}`,alt:""})})]}):(0,a.jsxs)(en,{children:[(0,a.jsx)(tn,{children:r("appPromotionText")}),(0,a.jsx)(rn,{src:`${i.articleStaticAssets}/LyhyetFeedPromotionQRCode.png`,alt:r("appPromotionQrCodeAriaLabel")})]})};var ln=i(35798);const sn=f.I4.div.withConfig({componentId:"aw__sc-brfs1e-0"})(e=>{let{theme:t}=e;return{[t.article.breakpoint.M]:{marginTop:t.article.spacing.spacing16}}}),cn=()=>{const{data:e}=(0,l.o6)(),{authors:t}=e,i=t?.at(0),n=e.content.find(e=>(0,Nt.cZ)(e));return(0,a.jsxs)(Sa.l,{children:[n&&(0,a.jsx)(sn,{children:(0,a.jsx)(q.F,{block:n,darkBackground:!0,noTopMargin:!0})}),(0,a.jsxs)(ln.m,{children:[i&&(0,a.jsx)(Ji,{author:i}),(0,a.jsx)(sa.o,{children:(0,a.jsx)(da.e,{})}),(0,a.jsx)(Oi.n,{}),(0,a.jsx)(ca,{})]}),(0,a.jsx)(on,{})]})},dn=()=>{const{articleInfo:{isJournalisticStyleFeature:e,isJournalisticStyleOpinion:t,isPlainLanguageArticleFormat:i,isLivefeedArticleFormat:n,hasFeatureBlock:r,isCardStoryFormat:o,isVerticalMultimediaArticle:s,isDocumentFormat:c,isChatArticle:d}}=(0,l.o6)();return n?(0,a.jsx)(Ct,{}):i?(0,a.jsx)(Qa,{}):e?(0,a.jsx)(Ra,{}):t?(0,a.jsx)(Fa,{}):o?(0,a.jsx)(At,{}):r?(0,a.jsx)(ba,{}):s?(0,a.jsx)(cn,{}):c?(0,a.jsx)(fa,{}):d?(0,a.jsx)(Ot,{}):(0,a.jsx)(ha,{})},un=e=>{const t=e.themeMode??"default";return(0,a.jsx)(St.S,{...e,children:(0,a.jsx)("article",{className:`yle__article arkki-theme-${t}`,"data-vrsproduct":r(e.data),children:(0,a.jsx)(dn,{})})})},pn=(0,n.memo)(un)},64126(e,t,i){var a=i(11684),n=i(27528),r=i(9832),o=i(81048);i.d(t,["D",0,e=>{let{alignCenter:t,as:i,children:l,level:s,addPaddingTop:c,isShortArt
1icle:d,isFeatureArticle:u,...p}=e;const{primaryHeadingLevel:h=1}=(0,n.o6)(),g=(0,r.H)(h)?h-1:1,m=(0,r.F)({as:i,fallback:s,levelOffset:g}),f="string"==typeof l?l.trim():l,b={as:m,className:`yle__article__heading yle__article__heading--${s}`,$alignCenter:t,$addPaddingTop:c,$isShortArticle:d,$isFeatureArticle:u,...p};return 1===s?(0,a.jsx)(o._,{...b,children:f}):2===s?(0,a.jsx)(o.fV,{...b,children:f}):3===s?(0,a.jsx)(o._B,{...b,children:f}):4===s?(0,a.jsx)(o.f_,{...b,children:f}):5===s?(0,a.jsx)(o.mM,{...b,children:f}):(0,a.jsx)(o.TT,{...b,children:f})}])},81048(e,t,i){i(11684),i(35508),i(12888),i(1061);var a=i(43872),n=(i(92852),i(44832));const r=e=>{let{theme:t,breakpoint:i,$isShortArticle:a,$isFeatureArticle:n}=e;return a?"M"===i?t.article.typography.default3XlBlack:t.article.typography.defaultXlBlack:n?"M"===i?t.article.typography.condensed6XlBlack:t.article.typography.condensed5XlBlack:"M"===i?t.article.typography.default4XlBlack:{}},o=n.I4.h1.withConfig({componentId:"aw__sc-xiym5b-0"})(e=>{let{theme:t,$alignCenter:i,$addPaddingTop:n,$isShortArticle:o,$isFeatureArticle:l}=e;return{...(0,a.VU)({theme:t,alignCenter:i}),...r({theme:t,$isShortArticle:o,$isFeatureArticle:l}),paddingTop:n?t.article.spacing.spacing24:void 0,[t.article.breakpoint.M]:{...r({theme:t,$isShortArticle:o,$isFeatureArticle:l,breakpoint:"M"})}}}),l=n.I4.h2.withConfig({componentId:"aw__sc-xiym5b-1"})(e=>{let{theme:t,$alignCenter:i}=e;return{...(0,a.Ms)({theme:t,alignCenter:i}),[t.article.breakpoint.M]:{...t.article.typography.default2XlBlack,marginBottom:t.article.spacing.spacing24,paddingTop:t.article.spacing.spacing24}}}),s=n.I4.h3.withConfig({componentId:"aw__sc-xiym5b-2"})(e=>{let{theme:t,$alignCenter:i}=e;return{...(0,a.XU)({theme:t,alignCenter:i})}}),c=n.I4.h4.withConfig({componentId:"aw__sc-xiym5b-3"})(e=>{let{theme:t,$alignCenter:i}=e;return{...(0,a.UL)({theme:t,alignCenter:i})}}),d=n.I4.h5.withConfig({componentId:"aw__sc-xiym5b-4"})(e=>{let{theme:t,$alignCenter:i}=e;return{...(0,a.jj)({theme:t,alignCenter:i})}}),u=n.I4.h6.withConfig({componentId:"aw__sc-xiym5b-5"})(e=>{let{theme:t,$alignCenter:i}=e;return{...(0,a.UW)({theme:t,alignCenter:i})}});i.d(t,["TT",0,u,"_",0,o,"_B",0,s,"fV",0,l,"f_",0,c,"mM",0,d])},96352(e,t,i){i.d(t,{Hr:()=>l});var a=i(11684),n=i(44832);const r=n.I4.div.withConfig({componentId:"aw__sc-17m12o0-0"})(e=>{let{theme:t,$darkBackground:i}=e;return{backgroundColor:i?t.article.color.backgroundDark:void 0,margin:i?`0 -${t.article.spacing.spacing16}`:0,[t.article.breakpoint.M]:{margin:0}}}),o=n.I4.hr.withConfig({componentId:"aw__sc-17m12o0-1"})(e=>{let{theme:t,$noMarginHorizontal:i,$darkBackground:a,$verticalMargin:n}=e;return{borderBottom:`1px solid ${a?t.article.color.borderDarkBackground:t.article.color.borderSeparator}`,borderTop:0,borderLeft:0,borderRight:0,marginBottom:i?0:t.article.spacing.spacing16,marginLeft:n?t.article.spacing.spacing16:0,marginRight:n?t.article.spacing.spacing16:0,[t.article.breakpoint.M]:{marginBottom:i?0:t.article.spacing.spacing24,marginLeft:n?t.article.spacing.spacing24:0,marginRight:n?t.article.spacing.spacing24:0}}}),l=e=>{let{noMarginHorizontal:t,verticalMargin:i,darkBackground:n}=e;return(0,a.jsx)(r,{$darkBackground:n,"aria-hidden":!0,children:(0,a.jsx)(o,{$darkBackground:n,$noMarginHorizontal:t,$verticalMargin:i})})}},43080(e,t,i){i.d(t,{r:()=>g});var a=i(11684),n=i(65241),r=(i(35508),i(12888)),o=(i(1061),i(31761)),l=(i(92852),i(74338)),s=i(57866),c=i(27528),d=i(26254),u=i(44832);const p=u.I4.div.withConfig({componentId:"aw__sc-1hn56nn-0"})(e=>{let{theme:t,$disabled:i}=e;return{cursor:i?void 0:"pointer",width:"100%","&:focus-within":{outline:`2px solid ${t.article.color.focusColor}`,outlineOffset:"4px"}}}),h=u.I4.div.withConfig({componentId:"aw__sc-1hn56nn-1"})({position:"absolute",overflow:"hidden",height:"1px",clip:"rect(0, 0, 0, 0)"}),g=e=>{let{block:t,children:i}=e;const{isArseInNative:u,hideImageOverlay:g}=(0,c.o6)(),{openImageOverlay:m}=(0,o.M)(),{sendClickEvent:f}=(0,d.C)(),b=(0,r.useRef)(null),{t:x}=(0,n.B)(),[v,y]=(0,r.useState)(null),w=(0,r.useCallback)(()=>{v&&f({viewId:v,action:"expand"});
1const e={id:t.id,instanceIndex:t.instanceIndex??0};if(u){const t={type:"OPEN_NATIVE_IMAGE_VIEWER",payload:e};window.ReactNativeWebView?.postMessage(JSON.stringify(t))}else m(e)},[t.id,t.instanceIndex,u,m,f,v]);return(0,a.jsx)(s.X,{entityType:"image",id:t.id,onEventSuccess:e=>{y(e)},viewMode:"full",elementRef:b,children:(0,a.jsxs)(p,{onClick:w,ref:b,$disabled:g,children:[i,(0,a.jsx)(h,{children:(0,a.jsx)(l.$,{variant:"secondary",size:"sm",onClick:w,children:x("openImageOverlay")})})]})})}},64158(e,t,i){const a=i(44832).I4.a.withConfig({componentId:"aw__sc-46d9se-0"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,color:t.article.color.textDefault,textDecoration:"underline",wordBreak:"break-word",[t.article.breakpoint.M]:{...t.article.typography.defaultL},"&:hover":{backgroundColor:t.article.color.actionSecondaryVariant}}});i.d(t,["N",0,a])},58205(e,t,i){i.d(t,{V:()=>h});var a=i(11684),n=i(35611),r=i(90326),o=i(44832);const l=o.I4.div.withConfig({componentId:"aw__sc-bbsu8d-0"})(e=>{let{theme:t,$noMargin:i}=e;return{position:"relative",marginTop:i?0:t.article.spacing.spacing16,marginBottom:i?0:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginTop:i?0:t.article.spacing.spacing24,marginBottom:i?0:t.article.spacing.spacing24}}}),s=o.I4.div.withConfig({componentId:"aw__sc-bbsu8d-1"})(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",justifyContent:"space-between",gap:t.article.spacing.spacing16}}),c=o.I4.div.withConfig({componentId:"aw__sc-bbsu8d-2"})({display:"flex",flexDirection:"column",boxSizing:"border-box",minWidth:0,flexGrow:1}),d=o.I4.div.withConfig({componentId:"aw__sc-bbsu8d-3"})(e=>{let{theme:t}=e;return{flexShrink:0,minWidth:"104px",maxWidth:"30%",[t.article.breakpoint.M]:{maxWidth:"196px",maxHeight:"110px"}}}),u=o.I4.div.withConfig({componentId:"aw__sc-bbsu8d-4"})(e=>{let{theme:t}=e;return{borderRadius:t.article.radius.medium,overflow:"hidden",position:"relative"}}),p=o.I4.span.withConfig({componentId:"aw__sc-bbsu8d-5"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultS,color:t.article.color.textDefault,marginTop:t.article.spacing.spacing8,display:"block"}}),h=e=>{let{image:t,source:i,children:o,role:h,noMargin:g,imageBreakpointOverrides:m}=e;return(0,a.jsxs)(l,{role:h,$noMargin:g,children:[(0,a.jsxs)(s,{children:[(0,a.jsx)(c,{children:o}),t&&(0,a.jsx)(d,{children:(0,a.jsx)(u,{children:(0,a.jsx)(r.w,{imageBreakpoints:{S:{aspectRatio:1,maxWidth:n.T.S.card},M:{aspectRatio:16/9,maxWidth:n.T.M.card},...m},image:t})})})]}),i&&(0,a.jsx)(p,{children:i})]})}},29345(e,t,i){i.d(t,{o:()=>S});var a=i.cw(function(e,t){var a=i(11187),n=i(16674),r=i(95807),o=i(69786),l=i(9319),s=i(12504);a({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=n(this),i=r(t),a=arguments.length;if(a){s(i+a);for(var c=i;c--;){var d=c+a;c in t?t[d]=t[c]:l(t,d)}for(var u=0;u<a;u++)t[u]=arguments[u]}return o(t,i+a)}})}),n=i(11684);i(35508),i(12888);i(1061),i(99921);const r=function(e){const t=this.data();(t.micromarkExtensions??(t.micromarkExtensions=[])).push({disable:{null:e.disable}})};i(97700);a();var o=i(50867);const l=["sup","sub","del"],s=[...l,"br"],c=/^<([^/\s]+)(?:\s[^/\s]*)*(?:\s*\/)?>$/,d=/^<\/(\S+)>$/,u=e=>{const t=c.exec(e),i=t?.at(1);if(i&&s.includes(i))return i},p=e=>{const t=d.exec(e),i=t?.at(1);if(i&&s.includes(i))return i},h=()=>e=>{(0,o.YR)(e,"element",e=>{if(e.children.some(e=>"raw"===e.type)){const t=e.children;e.children=[],((e,t)=>{const i=[e];for(const e of t){const t=i.at(0);if("raw"===e.type){const a=u(e.value),n=p(e.value);if(a){const n={type:"element",tagName:a,properties:{},children:[],position:e.position};t?.children.push(n),l.includes(a)&&i.unshift(n)}else if(n&&t?.tagName===n){const a=t;i.shift(),a.position&&e.position&&(a.position.end=e.position.end)}else t?.children.push(e)}else t?.children.push(e)}})(e,t)}})};i(92852);var g=i(66892);const m=/^tel:/i,f=e=>m.test(e)?e:(0,g.Lv)(e);var b=i(96352),x=i(44832),v=i(18656);const y=(0,x.I4)(v.f).withConfig({componentId:"aw__sc-ngllmo-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{...t.article.typography.defaultL,marginBottom:t.article.spacing.spacing24},sup:{verticalAlign:"super",...t.article.typography.defaultXs,[t.article.breakpoint.M]:{...t.article.typography.defaultS}},sub:{verticalAlign:"sub",...t.article.typography.defaultXs,[t.article.breakpoint.M]:{...t.article.typography.defaultS}}}}),w=x.I4.a.withConfig({componentId:"aw__sc-ngllmo-1"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"underline",wordBreak:"break-word","&:hover":{backgroundColor:t.article.color.actionSecondaryVariant}}}
1),k=x.I4.strong.withConfig({componentId:"aw__sc-ngllmo-2"})(e=>{let{theme:t}=e;return{fontWeight:t.article.typography.defaultMBold.fontWeight}}),j=x.I4.em.withConfig({componentId:"aw__sc-ngllmo-3"})(e=>{let{theme:t}=e;return{fontStyle:t.article.typography.defaultMItalic.fontStyle}}),I=x.I4.del.withConfig({componentId:"aw__sc-ngllmo-4"})({textDecoration:"line-through"}),_=["p","a","strong","em","del","sub","sup","hr","br"],C=e=>{let{children:t,href:i,target:a}=e;return(0,n.jsx)(w,{className:"yle__article__link",href:i,target:a,role:"link",children:t})},S=e=>{let{markdown:t,ruleOverrides:i}=e;return(0,n.jsx)(g.oz,{rehypePlugins:[h],remarkPlugins:[[r,{disable:["list","headingAtx","blockQuote"]}]],allowedElements:_,urlTransform:f,components:{p:e=>{let{children:t}=e;return(0,n.jsx)(y,{className:"yle__article__paragraph",children:t})},a:e=>{let{children:t,href:i=""}=e;return(0,n.jsx)(C,{href:i,children:t})},strong:e=>{let{children:t}=e;return(0,n.jsx)(k,{className:"yle__article__strong",children:t})},em:e=>{let{children:t}=e;return(0,n.jsx)(j,{className:"yle__article__emphasis",children:t})},del:e=>{let{children:t}=e;return(0,n.jsx)(I,{className:"yle__article__delete",children:t})},sub:e=>{let{children:t}=e;return(0,n.jsx)("sub",{children:t})},sup:e=>{let{children:t}=e;return(0,n.jsx)("sup",{children:t})},hr:()=>(0,n.jsx)(b.Hr,{}),...i},children:t})}},18656(e,t,i){i.d(t,{f:()=>n});i(11684),i(35508),i(12888),i(1061);const a=e=>{let{theme:t,alignCenter:i,noFontFamily:a}=e;const n={color:t.article.color.textDefault,textAlign:i?"center":void 0};return a?n:{...t.article.typography.defaultM,...n}};i(92852);const n=i(44832).I4.p.withConfig({componentId:"aw__sc-1qwuw0s-0"})(e=>{let{theme:t,$alignCenter:i}=e;return{...a({theme:t,alignCenter:i})}})},65212(e,t,i){const a=i(44832).I4.div.withConfig({componentId:"aw__sc-rg008m-0"})(e=>{let{theme:t,$noSpacing:i,$noBackground:a}=e;return{position:"relative",backgroundColor:a?"transparent":t.article.color.backgroundVariant,padding:i?0:t.article.spacing.spacing16,marginBottom:t.article.spacing.spacing24,borderRadius:i?0:t.article.radius.medium,[t.article.breakpoint.M]:{padding:i?0:t.article.spacing.spacing24,marginBottom:t.article.spacing.spacing32}}});i.d(t,["Z",0,a])},62044(e,t,i){const a={border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",width:"1px"},n=i(44832).I4.div.withConfig({componentId:"aw__sc-q9c0f7-0"})(a);i.d(t,["O",0,a,"Z",0,n])},90928(e,t,i){i.d(t,{u:()=>A,S:()=>L});var a=i(11684),n=i(27528),r=i(70397),o=i(19876),l=i(12888),s=i(6274),c=i(46510),d=i(65241);const u=(e,t,i)=>{const a=new URL(e),{searchParams:n}=a;return i&&Object.entries(i).forEach(e=>{let[t,i]=e;return n.append(t,i)}),n.append("utm_medium","social"),n.append("utm_source",`${t}-share`),a.toString()};var p=i(87647),h=i(44832);const g=(0,h.I4)(p.vvC).withConfig({componentId:"aw__sc-1bsprxl-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),m=e=>{let{articleShareData:t,callback:i}=e;const{t:n}=(0,d.B)(),r=u(t.url,"copy-link"),o=(0,l.useCallback)(async()=>{await navigator.clipboard.writeText(r),i()},[i,r]);return(0,a.jsx)(c.D,{onSelect:o,icon:(0,a.jsx)(g,{height:A,width:A}),"aria-label":n("shareLinkCopy"),children:n("shareLinkCopy")})},f=(0,h.I4)(p.SYj).withConfig({componentId:"aw__sc-n40d47-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),b=e=>{let{url:t,openInstantly:i=!1,title:a="Jaa",dialogWidth:n=550,dialogHeight:r=420,callback:o}=e;return(0,l.useCallback)(()=>{if(i)document.location.href=t;else{const e=window.screen.height/2-r/2,i=window.screen.width/2-n/2;window.open(t,a,`top=${e},left=${i},toolbar=0,status=0,width=${n},height=${r}`)}o?.()},[t,a,n,r,i,o])},x=(0,h.I4)(p.gE4).withConfig({componentId:"aw__sc-1geid74-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),v=e=>{let{articleShareData:t,callback:i}=e;const{t:n}=(0,d.B)(),r=encodeURIComponent(`${t.body}\r\n\r\n${u(t.url,"email")}`),o=`mailto:?subject=${t.title}&body=${r}`,l=b({url:o,title:n("shareLabel"),openInstantly:!0,callback:i});return(0,a.jsx)(c.D,{onSelect:l,icon:(0,a.jsx)(x,{height:A,width:A}),"aria-label":n("shareLabelEmail"),children:n("shareLinkEmail")})},y=(0,h.I4)(p.f1L).withConfig({componentId:"aw__sc-1csipis-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),w=e=>{let{articleShareData:t,callback:i}=e;const{t:n}=(0,d.B)(),r=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(u(t.url,"facebook"))}`,o=b({url:r,title:n("shareLabel"),callback:i});return(0,a.jsx)(c.D,{onSelect:o,icon:(0,a.jsx)(y,{height:A,width:A}),"aria-label":n("shareLabelFacebook"),children:"Facebook"})},k=(0,h.I4)(p.v8h).withConfig({componentId:"aw__sc-2nprk6-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),j=e=>{let{articleShareData:t,callback:i}=e;const{t:n}=(0,d.B)(),r=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(u(t.url,"linkedin"))}`,o=b({url:r,title:n("shareLabel"),callback:i});return(0,a.jsx)(c.D,{onSelect:o,icon:(0,a.jsx)(k,{height:A,width:A}),"aria-label":n("shareLabelLinkedIn"),children:"LinkedIn"})},I=(0,h.I4)(p._e7).withConfig({componentId:"aw__sc-td6pf0-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),_=e=>{let{articleShareData:t,callback:i}=e;const{t:n}=(0,d.B)(),r=`https://twitter.com/intent/tweet/?url=${encodeURIComponent(u(t.url,"twitter",{text:(o=t.title,encodeURIComponent((l=o).length>280?`${l.substring(0,280)}...`:l))}))}`;var o,l;const s=b({url:r,title:n("shareLabel"),callback:i});return(0,a.jsx)(c.D,{onSelect:s,icon:(0,a.jsx)(I,{height:A,width:A}),"aria-label":n("shareLabelTwitter"),children:n("shareLinkX")})},C=(0,h.I4)(p.Nfc).withConfig({componentId:"aw__sc-luhluy-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),S=e=>{let{articleShareData:t,callback:i}=e;const{t:n}=(0,d.B)(),r=`https://wa.me?text=${encodeURIComponent(u(t.url,"whatsapp"))}`,o=b({url:r,title:n("shareLabel"),callback:i});return(0,a.jsx)(c.D,{onSelect:o,icon:(0,a.jsx)(C,{height:A,width:A}),"aria-label":n("shareLabelWhatsapp"),children:"WhatsApp"})},T=e=>{let{articleShareData:t,shareLabel:i,ariaShareLabel:n,shareButtonShouldHavePadding:r=!1}=e;const{isMobile:c}=(0,s.m)(),d=(0,l.useMemo)(()=>({title:t.title,url:t.url}),[t.title,t.url]),u=(0,l.useMemo)(()=>
1{if(!c)return!1;try{return navigator.canShare(d)}catch{return!1}},[d,c]),p=(0,l.useCallback)(async()=>{u&&await navigator.share(d).catch(()=>null)},[d,u]),h=n&&""!==n?n:i;return(0,a.jsxs)(o.W,{id:"share-menu-button",menuId:"share-menu",text:i,variant:"text",removePadding:!r,iconBefore:(0,a.jsx)(f,{}),dropdown:!1,"aria-label":h,onOpen:p,openMenuOnClick:!u,children:[(0,a.jsx)(m,{articleShareData:t,callback:p}),(0,a.jsx)(v,{articleShareData:t,callback:p}),(0,a.jsx)(S,{articleShareData:t,callback:p}),(0,a.jsx)(w,{articleShareData:t,callback:p}),(0,a.jsx)(_,{articleShareData:t,callback:p}),(0,a.jsx)(j,{articleShareData:t,callback:p})]})},A=24,L=e=>{let{shareLabel:t,ariaShareLabel:i,urlPath:o,excerpt:l,showShareButtons:s,shareButtonShouldHavePadding:c}=e;const{showShareButtons:d}=(0,n.o6)(),u=s??d,p=(0,r.$)({urlPath:o,excerpt:l});return u&&p?(0,a.jsx)(T,{articleShareData:p,shareLabel:t,ariaShareLabel:i,shareButtonShouldHavePadding:c}):null}},77885(e,t,i){i.d(t,{p:()=>I});var a=i(11684),n=i(87647),r=i(12888),o=i(65241),l=i(27528),s=i(25632),c=i(84935),d=i(27669),u=i(90928),p=i(44923),h=i(15201),g=i(18710),m=i(67472),f=i(35798),b=i(74338),x=i(44832);const v=x.I4.div.withConfig({componentId:"aw__sc-8ylb28-0"})(e=>{let{theme:t,$isShared:i}=e;return{...i&&{borderRadius:t.article.radius.large,backgroundColor:t.article.color.backgroundDialog,boxShadow:t.article.shadow.shadowSm,padding:t.article.spacing.spacing16},[t.article.breakpoint.M]:{...i&&{padding:t.article.spacing.spacing24}}}}),y=(0,x.I4)(b.$).withConfig({componentId:"aw__sc-8ylb28-1"})({float:"right"}),w=()=>{const{data:{authors:e}}=(0,l.o6)(),{t}=(0,o.B)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.n,{isShortArticle:!0}),e&&(0,a.jsx)(d.V,{authors:e,inline:!0}),(0,a.jsxs)(h.o,{children:[(0,a.jsx)(m.e,{}),(0,a.jsx)(u.S,{shareLabel:t("shareLabelShort"),ariaShareLabel:t("shareLabel")})]}),(0,a.jsx)(g.y,{isShortArticle:!0})]})},k=e=>{let{children:t,shortArticleOptions:i}=e;const{t:r}=(0,o.B)();return(0,a.jsxs)(v,{$isShared:i?.isShared,children:[i?.isShared&&i.closeSharedArticle&&(0,a.jsx)(y,{onClick:i.closeSharedArticle,text:r("close"),iconOnly:!0,iconBefore:(0,a.jsx)(n.bm,{}),size:"sm",variant:"text"}),t]})},j=e=>{const{shortArticleOptions:t,...i}=e;return(0,a.jsx)(c.S,{...i,children:(0,a.jsx)("article",{className:"yle__article",children:(0,a.jsxs)(k,{shortArticleOptions:t,children:[(0,a.jsx)(f.m,{isShortArticle:!0,children:(0,a.jsx)(w,{})}),(0,a.jsx)(p.w,{isShortArticle:!0})]})})})},I=(0,r.memo)(j)},57866(e,t,i){var a=i(11684),n=i(12888),r=i(7877),o=i(26254),l=i(12001);i.d(t,["X",0,e=>{let{entityType:t,id:i,elementRef:s,viewMode:c,onEventSuccess:d,tehtavaEntityType:u,wrapper:p,enabled:h=!0,children:g}=e;const m=(0,n.useRef)(!1),{sendViewEvent:f}=(0,o.C)(),b=(0,l.m)(s,.1),x=(0,n.useCallback)(e=>{m.current&&f(e)},[f]);if(g)return(0,a.jsx)(r.pL,{onChange:e=>{m.current=e,x({entityType:t,id:i,viewMode:c,onEventSuccess:d,tehtavaEntityType:u,wrapper:p})},threshold:b,triggerOnce:!0,skip:!h,children:g})}])},7866(e,t,i){var a=i(11684),n=i(65241),r=(i(35508),i(12888)),o=(i(1061),i(92852),i(39446)),l=i(27528),s=i(54015),c=i(33836),d=i(64126),u=i(29345),p=i(55164);i.d(t,["u",0,e=>{let{children:t,externalUrl:i,platform:h}=e;const g=(0,c.A)(),m=(0,s.Z)(),{isArseInNative:f}=(0,l.o6)(),{t:b}=(0,n.B)(),x=b("consentTextMarkdown"),v=(0,r.useCallback)(()=>{if(f){const e={type:"OPEN_CONSENT_SETTINGS"};window.ReactNativeWebView?.postMessage(JSON.stringify(e))}else g?.show()},[f,g]);if(void 0!==m){if(!m.embedded_social_media){const e=(0,o.bO)(h),t=e?b(e):"";return(0,a.jsxs)(p.mO,{children:[(0,a.jsx)(d.D,{level:2,children:b("consentTitle")}),(0,a.jsx)(u.o,{markdown:x,ruleOverrides:{p:e=>{let{children:t}=e;return(0,a.jsx)(p.EY,{children:t})},a:e=>{let{children:t}=e;return(0,a.jsx)(p.QW,{type:"button",onClick:v,children:t})}}}),i&&(0,a.jsxs)(p.z9,{href:i,children:[(0,a.jsx)(p.GJ,{children:t}),(0,a.jsx)(p.Gr,{})]})]})}return t}}])},55164(e,t,i){var a=i(87647),n=i(44832),r=i(18656);const o=n.I4.div.withConfig({componentId:"aw__sc-e0hsmm-0"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.backgroundVariant,textAlign:"center",padding:t.article.spacing.spacing32,borderRadius:t.article.radius.large,borderWidth:"1px",borderStyle:"solid",borderColor:t.article.color.borderDisabled,marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),l=(0,n.I4)(r.f).withConfig({componentId:"aw__sc-e0hsmm-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultS,color:t.article.color.textDefault,paddingBottom:t.article.spacing.spacing32}}),s=n.I4.button.withConfig({componentId:"aw__sc-e0hsmm-2"})({textDecoration:"underline"}),c=n.I4.a.withConfig({componentId:"aw__sc-e0hsmm-3"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultSBold,textDecoration:"none",color:t.article.color.textDefault,display:"flex",justifyContent:"center",alignItems:"center"}}),d=n.I4.span.withConfig({componentId:"aw__sc-e0hsmm-4"})(e=>{let{theme:t}=e;return{marginRight:t.article.spacing.spacing8}}),u=(0,n.I4)(a.GrD).withConfig({componentId:"aw__sc-e0hsmm-5"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}});i.d(t,["EY",0,l,"GJ",0,d,"Gr",0,u,"QW",0,s,"mO",0,o,"z9",0,c])},63518(e,t,i){var a=i(11684),n=i(27528);
1i.d(t,["Y",0,e=>{let{data:t,dataKey:i}=e;const{data:r}=(0,n.o6)(),o={...{"@id":r.id,"@context":"https://schema.org"},...i?{[i]:t}:t};return(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}})}])},19889(e,t,i){i.d(t,{B:()=>c});var a=i(11684),n=i(65241),r=(i(35508),i(12888),i(1061),i(26719)),o=(i(92852),i(27528)),l=i(31721);const s=(0,i(44832).I4)(l.F).withConfig({componentId:"aw__sc-1f94im5-0"})({textOverflow:"ellipsis",textWrap:"nowrap",overflow:"hidden"}),c=e=>{let{subject:t,variant:i="primary",showLongTitle:l=!1}=e;const{t:c}=(0,n.B)(),{disableSubjectInteraction:d,baseUrls:u,locale:p}=(0,o.o6)(),h=`${u.subject}/${t.id}/${p}`,g=(0,r.Tv)(t,p,l),m=c("moreArticlesOnThisSubject",{subject:g});if(g)return(0,a.jsx)(s,{variant:i,href:d?void 0:h,"aria-label":m,removePadding:"text"===i,children:g})}},73892(e,t,i){var a=i(44832);const n=a.I4.div.withConfig({componentId:"aw__sc-hc8kea-0"})({display:"flex",flexWrap:"wrap",flexDirection:"row"}),r=e=>{let{theme:t}=e;return{...t.article.typography.defaultS,color:t.article.color.textDefault}},o=a.I4.time.withConfig({componentId:"aw__sc-hc8kea-1"})(r),l=a.I4.span.withConfig({componentId:"aw__sc-hc8kea-2"})(r,e=>{let{theme:t}=e;return{padding:`0 ${t.article.spacing.spacing8}`}});i.d(t,["QG",0,o,"cL",0,l,"mO",0,n])},44923(e,t,i){i.d(t,{w:()=>Wa});i(97700);var a=i(11684),n=i(65241),r=(i(35508),i(12888)),o=(i(1061),i(92852),i(27528)),l=i(7877),s=i(9504);const c=e=>{const t=e?.enabled??!0,{onPositionInArticleChanged:i}=(0,o.o6)(),a=(0,r.useRef)(void 0),n=(e=>{const[t,i]=(0,r.useState)(!1),a=(0,r.useRef)(null);return(0,r.useEffect)(()=>(a.current=setTimeout(()=>{i(!0)},e),()=>{a.current&&clearTimeout(a.current)}),[e]),t})(500),c=(0,r.useRef)(void 0),d=(0,r.useCallback)(()=>{const e=a.current?.getBoundingClientRect();if(!e)return null;const t=e.top,i=e.bottom-t,n=(window.innerHeight-t)/i;return Math.min(Math.max(n,0),1)},[]),u=(0,r.useCallback)(()=>{i&&i(d())},[d,i]),p=(0,s.dh)(u,250),{ref:h}=(0,l.Wx)({onChange:e=>{e?(window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",p,{passive:!0}),i?.(d()),c.current=()=>{window.removeEventListener("scroll",p),window.removeEventListener("resize",p),p.cancel(),c.current=void 0}):(c.current?.(),i?.(null))},skip:!t||!n});return(0,r.useEffect)(()=>()=>{c.current?.()},[]),(0,r.useCallback)(e=>{h(e),a.current=e??void 0},[h])};var d=i(28496),u=i(29345),p=i(4372);const h=e=>{let{children:t}=e;const{articleInfo:{hasFeatureBlock:i,hasWideEsiLayout:n,isCardStoryFormat:r},showFooter:l}=(0,o.o6)();return!l||i||n||r?null:(0,a.jsx)("footer",{className:"yle__article__footer",children:(0,a.jsx)(p.l,{children:t})})};var g=i(35798);const m=e=>{const{enabledBlocks:t}=(0,o.o6)();return!("external-content"===e.type&&!e.htmlContent)&&t.includes(e.type)};var f=i(44832);const b=f.I4.aside.withConfig({componentId:"aw__sc-qddrfn-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,paddingTop:t.article.spacing.spacing8,"&:first-child":{paddingTop:0},[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24,paddingTop:t.article.spacing.spacing16}}}),x=f.I4.div.withConfig({componentId:"aw__sc-qddrfn-1"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.backgroundVariant,borderRadius:t.article.radius.medium}});var v=i(41012),y=i(74338),w=i(54015),k=i(26254),j=i(29943);const I=e=>{let{block:t,allowedBlocks:i=[]}=e;return m(t)&&i.includes(t.type)?(0,a.jsx)(Na,{block:t}):(0,a.jsx)(j.A,{block:t})},_=e=>{let{blocks:t,allowedBlocks:i=[]}=e;return(0,a.jsx)(a.Fragment,{children:t.map((e,t)=>(0,a.jsx)(I,{block:e,allowedBlocks:i},`conditional-block-${t}`))})};
1var C=i(87647);const S=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-0"})({display:"flex",flexDirection:"column"}),T=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-1"})(e=>{let{theme:t}=e;return{padding:`${t.article.spacing.spacing8} ${t.article.spacing.spacing16} ${t.article.spacing.spacing16}`,[t.article.breakpoint.M]:{padding:`${t.article.spacing.spacing8} ${t.article.spacing.spacing24} ${t.article.spacing.spacing24}`}}}),A=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-2"})({display:"flex",alignItems:"center"}),L=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-3"})(e=>{let{theme:t}=e;return{display:"flex",padding:`${t.article.spacing.spacing8} ${t.article.spacing.spacing16} 0`,[t.article.breakpoint.M]:{padding:`${t.article.spacing.spacing8} ${t.article.spacing.spacing24} 0`}}}),$=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-4"})({width:"100%"}),M=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-5"})(e=>{let{theme:t}=e;return{padding:`0 ${t.article.spacing.spacing16} ${t.article.spacing.spacing4}`,[t.article.breakpoint.M]:{padding:`0 ${t.article.spacing.spacing24} ${t.article.spacing.spacing4}`}}}),B=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-6"})(e=>{let{theme:t,$isOpen:i,$height:a,$collapseAnimationMs:n}=e;return{height:a,position:"relative",overflow:"hidden",transition:`all ${n}ms ease-out`,pointerEvents:i?void 0:"none","&:before":i?void 0:{position:"absolute",content:"''",top:0,height:"100%",width:"100%",background:`linear-gradient(0deg, ${t.article.color.backgroundVariant} 20%, transparent 100%)`}}}),E=f.I4.div.withConfig({componentId:"aw__sc-1nzbh5f-7"})(e=>{let{theme:t,$isOpen:i}=e;return{marginLeft:"auto",marginRight:"auto",marginTop:i?0:t.article.spacing.spacing16,marginBottom:t.article.spacing.spacing16,transition:"all 250ms ease-out",display:"flex",[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24},"button svg":{transition:"all 250ms ease-out",transform:i?"rotate(-180deg)":"rotate(0deg)"}}}),P=(0,f.I4)(C.yQN).withConfig({componentId:"aw__sc-1nzbh5f-8"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),D=f.I4.div.withConfig({componentId:"aw__sc-12n05s7-0"})({position:"relative"}),R=f.I4.div.withConfig({componentId:"aw__sc-12n05s7-1"})(e=>{let{theme:t}=e;return{zIndex:1,position:"absolute",width:"274px",maxWidth:"80vw",top:"42px",right:0,padding:`${t.article.spacing.spacing12} ${t.article.spacing.spacing16}`,borderRadius:"4px",backgroundColor:t.article.color.backgroundNegative,color:t.article.color.textNegative,...t.article.typography.defaultS}}),F=f.I4.div.withConfig({componentId:"aw__sc-12n05s7-2"})(e=>{let{theme:t}=e;return{zIndex:1,position:"absolute",top:"36px",right:"15px",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderBottom:`6px solid ${t.article.color.backgroundNegative}`}}),O=()=>{const[e,t]=(0,r.useState)(!1),{t:i}=(0,n.B)(),o=i("aiSummaryTooltipLabel");return(0,a.jsxs)(D,{children:[(0,a.jsx)(y.$,{iconBefore:(0,a.jsx)(C.R2D,{}),variant:"text",size:"sm",iconOnly:!0,accessibleText:o,onClick:()=>{t(!e)},onBlur:()=>{t(!1)},onKeyDown:e=>{"Escape"===e.key&&t(!1)}}),(0,a.jsx)("span",{id:"tooltip-bubble",role:"region","aria-live":"polite",children:e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F,{}),(0,a.jsx)(R,{tabIndex:-1,children:i("aiSummaryTooltip")})]})})]})},N=e=>{let{block:t}=e;const{t:i}=(0,n.B)(),{behaviour:o,content:l,context:c}=t,d=(0,r.useId)(),u="collapsed"===o,p="ai_summary"===c,{sendClickEvent:h}=(0,k.C)(),g=(0,w.Z)(),[m,f]=(0,r.useState)(!1),[b,x]=(0,r.useState)(),j=m&&b?b:75,I=(0,s.YQ)(e=>{x(e?.contentRect.height)},100),C=(0,r.useCallback)(e=>{const t=new ResizeObserver(e=>I(e.at(0)));return t.observe(e),()=>{t.disconnect()}},[I]),D=(0,r.useRef)(null),R=(0,r.useCallback)(()=>{const e=D.current;if(!e||!b||b<700)return void f(!1);const t=e.getBoundingClientRect().bottom,i=(a,n)=>{const r=e.getBoundingClientRect().bottom-t;window.scrollTo({top:window.scrollY+r,behavior:"instant"}),n-a>=250||requestAnimationFrame(e=>i(a,e))};requestAnimationFrame(e=>i(e,e)),f(!1)},[b]),F=(0,r.useCallback)(()=>{m?R():f(!m),p&&g?.development&&h({action:"select"})},[m,p,g?.development,h,R]);if(u){if(l.length<1)return;const[e,...t]=l,n=i(m?"collapse":"expand");return(0,a.jsxs)(S,{children:[(0,a.jsxs)(L,{children:[(0,a.jsx)($,{children:(0,a.jsx)(_,{allowedBlocks:v.QX,blocks:[e]})}),"ai_summary"===c&&(0,a.jsx)(A,{children:(0,a.jsx)(O,{})})]}),(0,a.jsx)(B,{id:d,"aria-hidden":!m,$isOpen:m,$height:j,$collapseAnimationMs:250,ref:D,"data-testid":"aside-collapsable-content",children:(0,a.jsx)(M,{ref:C,tabIndex:-1,inert:!m,children:(0,a.jsx)(_,{allowedBlocks:v.QX,blocks:t})})}),(0,a.jsx)(E,{$isOpen:m,children:(0,a.jsx)(y.$,{variant:"secondary",size:"sm",iconAfter:(0,a.jsx)(P,{}),onClick:F,"aria-expanded":m,"aria-controls":d,"aria-label":`${n} ${i("A11YAsideBlock")}`,children:n})})]})}return(0,a.jsx)(T,{children:(0,a.jsx)(_,{allowedBlocks:v.QX,blocks:l})})},U=e=>{let{block:t}=e;const{t:i}=(0,n.B)();return(0,a.jsx)(b,{className:"yle__article__aside","aria-label":i("A11YAsideBlock"),children:(0,a.jsx)(x,{children:(0,a.jsx)(N,{block:t})})})};var H=i(75929);const Y=f.I4.ul.withConfig({componentId:"aw__sc-1yb43iq-0"})(e=>{let{theme:t}=e;return{padding:`${t.article.spacing.spacing8} 0 ${t.article.spacing.spacing8} 20px`,listStylePosition:"outside",listStyleType:"disc",[t.article.breakpoint.M]:{padding:`${t.article.spacing.spacing16} 0 ${t.article.spacing.spacing16} 20px`}}}),W=f.I4.li.withConfig({componentId:"aw__sc-1yb43iq-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,color:t.article.color.textDefault,marginBottom:t.article.spacing.spacing16,paddingLeft:"4px",[t.article.breakpoint.M]:{...t.article.typography.defaultL,paddingLeft:"12px",marginBottom:t.article.spacing.spacing24}}}),V=e=>{let{items:t}=e;return(0,a.jsx)(Y,{className:"yle__article__list yle__article__list--ul",children:t.map((e,t)=>{const i=`item-${t}`;return(0,a.jsx)(W,{children:(0,a.jsx)(u.o,{markdown:e,ruleOverrides:{p:e=>{let{children:t}=e;return(0,a.jsx)("span",{children:t})}}})},i)})})},z=e=>{let{block:{items:t}}=e;return(0,a.jsx)(V,{items:t})},q=f.I4.iframe.withConfig({componentId:"aw__sc-yabdqg-0"})({border:0,height:"100%",left:0,position:"fixed",top:"var(--host-header-height, var(--sticky-header-height, 0))",paddingBottom:"var(--host-header-height, var(--sticky-header-height, 0))",width:"100%",zIndex:999}),X=e=>{let{block:t}=e;const{cardStoryId:i}=t,{baseUrls:r,yleGlue:l}=(0,o.o6)(),{t:s}=(0,n.B)();return l?(0,a.jsx)(q,{allow:"web-share","data-story-glue-id":l,src:`${r.cardStoryHost}/${i}/index.html?yle_glue=${l}`,title:s("iframeAccessibilityNoticeTitle")}):null};var G=i(43839),K=i(13703);const J=e=>{let{block:t}=e;return(0,a.jsx)(K.F,{block:(0,G.Q)(t)})};var Q=i(52283);const Z=f.I4.div.withConfig({componentId:"aw__sc-ce1jba-0"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.backgroundVariant,textAlign:"center",padding:t.article.spacing.spacing32,borderRadius:t.article.radius.large,borderWidth:"1px",borderStyle:"solid",borderColor:t.article.color.borderDisabled,marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),ee=f.I4.a.withConfig({componentId:"aw__sc-ce1jba-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,color:t.article.color.textDefault,display:"flex",justifyContent:"center",gap:t.article.spacing.spacing8,textDecoration:"underline"}}),te=e=>{let{infoText:t,url:i}=e;return(0,a.jsx)(Z,{children:(0,a.jsxs)(ee,{href:i,children:[t,(0,a.jsx)(C.GrD,{})]})})},ie=e=>{let{block:t}=e;const{url:i}=t,{t:r}=(0,n.B)();return(0,a.jsx)(te,{infoText:r("consentExternalLinkTextFacebook"),url:i})};var ae=i(59435),ne=i(18781),re=i(43828),oe=i(96092);const le="500ms",se=e=>({opacity:e?1:0,zIndex:e?"auto":-1,transition:`opacity ${le} ease-${e?"out":"in"}`,transitionDelay:e?void 0:le}),ce=f.I4.div.withConfig({componentId:"aw__sc-1frusl5-0"})(e=>{let{$visible:t}=e;return{position:"absolute",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center",width:"100%",height:"100%","&.yle_areena_player_dynamic":{position:"absolute"},...se(t)}}),de=e=>{let{block:t,visible:i}=e;const n=(0,re.y)(),[o,l]=(0,r.useState)(),s=(0,oe.K)(o),c=(0,r.useCallback)(e=>{l(e)},[]);if((0,r.useEffect)(()=>{i?s.play():s.pause()},[s,i]),void 0!==n)return(0,a.jsx)(ce,{as:"video",muted:!0,loop:!0,playsInl
1ine:!0,autoPlay:i&&n,$visible:i,"aria-hidden":!0,ref:c,children:(0,a.jsx)("source",{src:`${t.url}.mp4`,type:"video/mp4"})})};var ue=i(76577),pe=i(76745),he=i(30378),ge=i(35611),me=i(62351),fe=i(90326);const be=f.I4.img.withConfig({componentId:"aw__sc-1e8lhik-0"})(e=>{let{$visible:t}=e;return{position:"absolute",top:0,left:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"50% 50%",...se(t)}}),xe=e=>{let{block:t,visible:i}=e;const{articleInfo:{isJournalisticStyleFeature:n,hasFeatureBlock:l},showImages:s,data:{language:c},baseUrls:{imageCdn:d}}=(0,o.o6)(),[u,p]=(0,r.useState)(!1),h=(0,he.Y)();if(!s)return null;const g={S:{aspectRatio:2/3,maxWidth:ge.T.S.fullWidth},M:{aspectRatio:16/9,maxWidth:n?ge.T.M.fullWidth:ge.T.M.columnWidth}},m=u?pe.XS:t,f=(0,ue.tc)(t,c),b=(0,ge.G)({error:u,image:m,maxWidth:(0,me.T_)(g)??ge.T.M.fullWidth,dpr:h,baseUrl:d});return(0,a.jsx)(fe.w,{image:t,imageBreakpoints:l?void 0:g,noPlaceholder:!0,children:(0,a.jsx)(be,{onError:()=>p(!0),alt:f,src:b,$visible:i})})};var ve=i(41783),ye=i(77219),we=i(5649),ke=i(60470),je=i(3560);const Ie=e=>{let{block:t,visible:i}=e;const n=(0,ke.g)(t),r=(0,je.Pm)(t),o=(0,ue.DW)(t,n);return o?(0,a.jsx)(xe,{visible:i,block:{...o,aspect:r}}):null},_e=e=>{let{block:t,visible:i}=e;const n={...t,playbackBehaviour:"illustrational"},o=(0,r.useRef)(null),l=(0,ve.P)({block:n,overrideProps:{previewImage:!1}}),s=(0,ye.kj)({element:o,ylePlayerParams:l});return(0,r.useEffect)(()=>{i?s.play():s.pause()},[i,s]),(0,a.jsx)(ce,{$visible:i,children:(0,a.jsx)(we.r,{ylePlayerRef:o,"aria-hidden":!0,children:(0,a.jsx)(Ie,{block:n,visible:i})})})},Ce=e=>{let{scrolloverPages:t,currentSlide:i}=e;return(0,a.jsx)(a.Fragment,{children:t.map((e,t)=>{let{media:n}=e;const r=t===i;switch(n.type){case"external-video":return(0,a.jsx)(de,{block:n,visible:r},t);case"video":return(0,a.jsx)(_e,{block:n,visible:r},t);case"image":return(0,a.jsx)(xe,{block:n,visible:r},t)}})})},Se=f.I4.div.withConfig({componentId:"aw__sc-19xw5pf-0"})(e=>{let{theme:t,$negativeHorizontalMargin:i,$reduceMotion:a,$noMargin:n}=e;return{paddingBottom:a||n?"1px":"2vh",paddingTop:n?0:"2vh",marginTop:n?0:t.article.spacing.spacing16,marginBottom:a||n?"-1px":t.article.spacing.spacing24,marginLeft:`-${t.article.spacing.spacing16}`,marginRight:`-${t.article.spacing.spacing16}`,[t.article.breakpoint.M]:{marginLeft:i?`-${t.article.spacing.spacing24}`:0,marginRight:i?`-${t.article.spacing.spacing24}`:0}}}),Te=f.I4.div.withConfig({componentId:"aw__sc-19xw5pf-1"})(e=>{let{theme:t,$reduceMotion:i,$mobileWrapper:a}=e;return{marginBlockEnd:i?`calc(var(--sticky-header-height, 0) + ${t.article.spacing.spacing24})`:0,marginBlockStart:i?"calc(var(--sticky-header-height, 0) * -1)":0,position:i?"relative":"sticky",top:"var(--sticky-header-height, 0)",left:0,right:0,bottom:0,height:"calc(100vh - var(--sticky-header-height, 0px))",maxWidth:a?"640px":void 0,marginLeft:a?"auto":void 0,marginRight:a?"auto":void 0,minHeight:"-webkit-fill-available","&& video":{height:"100%",maxWidth:"100%",objectFit:"cover",position:"absolute",width:"100%"}}}),Ae=f.I4.div.withConfig({componentId:"aw__sc-i76j0i-0"})(e=>{let{theme:t}=e;return{"-webkit-transform":"translate3d(0, 0, 0)",backgroundColor:t.article.color.backgroundVariant,borderRadius:t.article.radius.medium,padding:t.article.spacing.spacing16,marginBottom:t.article.spacing.spacing24,marginInlineStart:"auto",marginInlineEnd:"auto",textAlign:"left",maxWidth:"80vw",[t.article.breakpoint.M]:{...t.article.typography.defaultL,padding:t.article.spacing.spacing24,maxWidth:"592px"}}});var Le=i(9832),$e=i(64126);const Me=f.I4.div.withConfig({componentId:"aw__sc-1h42ulj-0"})(e=>{let{theme:t,$noOtherBlocksBelow:i}=e;return{"&& h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child":{paddingTop:"0",marginTop:"0",marginBottom:i?0:t.article.spacing.spacing8,lineHeight:"100%"}}}),Be=e=>{let{block:t,scrolloverContent:i,noOtherBlocksBelow:n}=e;const{articleInfo:{isPlainLanguageArticleFormat:r}}=(0,o.o6)(),l=t?.level??2,s=t?.text,c=l>1?"h2":void 0;return(0,Le.H)(l)&&s?i?(0,a.jsx)(Me,{$noOtherBlocksBelow:n,children:(0,a.jsx)($e.D,{as:c,level:l,children:s})}):r?(0,a.jsx)($e.D,{as:"h2",level:1,addPaddingTop:!0,children:s}):(0,a.jsx)($e.D,{as:c,level:l,children:s}):null},Ee=f.I4.div.withConfig({componentId:"aw__sc-fgo2dk-0"})(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"row",marginBottom:t.article.spacing.spacing24,paddingTop:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing32,paddingTop:t.article.spacing.spacing24}}}),Pe=f.I4.div.withConfig({componentId:"aw__sc-fgo2dk-1"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.borderSeparator,borderRadius:t.article.radius.large,width:"6px"}});var De=i(18656);const Re=f.I4.figure.withConfig({componentId:"aw__sc-1w84awu-0"})(e=>{let{theme:t}=e;return{flex:1,paddingLeft:t.article.spacing.spacing16}}),Fe=(0,f.I4)(De.f).withConfig({componentId:"aw__sc-1w84awu-1"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,...t.article.typography.defaultS,[t.article.breakpoint.M]:{...t.article.typography.defaultM}}}),Oe=(0,f.I4)(De.f).attrs({as:"figcaption"}).withConfig({componentId:"aw__sc-1w84awu-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultSBold,marginTop:t.article.spacing.spacing16,[t.article.breakpoint.M]:{...t.article.typography.defaultMBold}}}),Ne=e=>{let{source:t,text:i}=e;return(0,a.jsxs)(Ee,{children:[(0,a.jsx)(Pe,{}),(0,a.jsxs)(Re,{children:[(0,a.jsx)("blockquote",{children:(0,a.jsx)(Fe,{children:i})}),t&&(0,a.jsx)(Oe,{children:t})]})]})},Ue={yle:{path:"M21.9,11.9 C20.6,11.9 20,12.5 19.9,14.1 L23.7,14.1 C23.7,12.6 23.1,11.9 21.9,11.9 M24,15.5 L20,15.5 C20,17.2 20.3,17.6 22.4,17.6 L24,17.5 L24.4,17.5 C24.7,17.5 24.9,17.6 24.9,18 L24.9,18.3 C24.9,18.7 24.7,18.8 24.5,18.9 C23.7234673,19.1384996 22.911347,19.2400146 22.1,19.2 C19.2,19.2 18.1,18.1 18.1,15 C18.1,12 19.3,10.5 21.9,10.5 C24.9,10.5 25.3,12.8 25.3,14.5 C25.3,15 25,15.5 24,15.5 Z M16.1,18.3 C16.1,18.7 16,19.1 15.4,19.1 L15,19.1 C14.5,19.1 14.4,18.8 14.4,18.3 L14.4,8.2 L14,8.2 C13.2,8.2 13,7.8 13,7.6 L13,7 C13,6.5 13.7,6.5 13.9,6.5 L15.1,6.5 C15.9,6.5 16.
11,7.1 16.1,7.8 L16.1,18.3 Z M12.1,12.3 L9.9,21 C9.6,22.1 8.7,22.8 7.4,22.8 C6.1,22.8 5.6,22.8 5.3,22.6 C5.1,22.6 4.9,22.4 4.9,22 L4.9,21.7 C4.9,21.3 5.1,21.1 5.4,21.1 L5.8,21.1 L7.1,21.2 C7.8,21.2 8.1,21.1 8.5,20.2 L8.7,19 L8.1,19 C7.1,19 6.6,18.6 6.4,17.6 L4.9,12.5 L4.7,11.4 C4.7,11 5,10.8 5.4,10.8 L5.9,10.8 C6.3,10.8 6.4,11.1 6.5,11.5 L8,16.8 C8.2,17.5 8.4,17.6 8.8,17.6 L9,17.6 L10.4,11.6 C10.6,11.1 10.7,10.9 11.2,10.9 L11.6,10.9 C12,10.9 12.2,11.1 12.2,11.5 L12.1,12.5 L12.1,12.3 Z M28.6,0.2 L1.4,0.2 C0.6,0 0,0.7 0,1.5 L0,28.5 C0,29.2 0.6,29.8 1.4,29.8 L28.6,29.8 C29.3,29.8 29.9,29.2 29.9,28.4 L29.9,1.4 C29.9,0.7 29.3,0.1 28.6,0.1 L28.6,0.2 Z",viewBox:"0 0 30 30"},quote:{path:"M0.996094 18.9644L3.29009 0.982422H15.5741L10.3201 18.9644H0.996094ZM15.4261 18.9644L17.7201 0.982422H30.0041L24.7501 18.9644H15.4261Z",viewBox:"0 0 31 19"}},He=24,Ye=e=>{let{className:t,fill:i,stroke:n="none",height:r=He,name:o,role:l="img"}=e;const s=(0,f.DP)(),c=Ue[o],d=c.viewBox??"0 0 24 24",{width:u}=(p=r)>0?{width:p/He*He}:{width:He};var p;return(0,a.jsx)("svg",{"aria-hidden":!0,className:t,fill:i??s.article.color.textDefault,stroke:n,height:r,role:l,viewBox:d,width:u,children:(0,a.jsx)("path",{d:c.path})})},We=f.I4.figure.withConfig({componentId:"aw__sc-8ixnw9-0"})(e=>{let{theme:t,$compact:i}=e;return{marginBottom:i?0:t.article.spacing.spacing32,padding:i?0:`${t.article.spacing.spacing24} ${t.article.spacing.spacing16} 0 ${t.article.spacing.spacing16}`,textAlign:"center",[t.article.breakpoint.M]:{marginBottom:i?0:t.article.spacing.spacing40,padding:i?0:`${t.article.spacing.spacing32} ${t.article.spacing.spacing24} 0 ${t.article.spacing.spacing24}`}}}),Ve=(0,f.I4)(De.f).withConfig({componentId:"aw__sc-8ixnw9-1"})(e=>{let{theme:t,$compact:i}=e;return{color:t.article.color.textDefault,marginTop:i?0:t.article.spacing.spacing8,...t.article.typography.defaultXlBlack,[t.article.breakpoint.M]:{...t.article.typography.default2XlBlack}}}),ze=(0,f.I4)(De.f).attrs({as:"figcaption"}).withConfig({componentId:"aw__sc-8ixnw9-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultSBold,color:t.article.color.textDefault,marginTop:t.article.spacing.spacing16}}),qe=e=>{let{text:t,source:i,compact:n=!1}=e;return(0,a.jsxs)(We,{$compact:n,children:[(0,a.jsxs)("blockquote",{children:[(0,a.jsx)(Ye,{name:"quote",height:32}),(0,a.jsx)(Ve,{$compact:n,children:t})]}),i&&(0,a.jsx)(ze,{children:i})]})},Xe=e=>{let{text:t,source:i,style:n}=e;return"long"===n?(0,a.jsx)(Ne,{source:i,text:t}):(0,a.jsx)(qe,{text:t,source:i,compact:!0})},Ge=f.I4.div.withConfig({componentId:"aw__sc-1ji6ibe-0"})(e=>{let{theme:t}=e;return{"&& p:first-child, h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child":{marginTop:0,paddingTop:0,marginBottom:t.article.spacing.spacing8},"&& p:last-child, h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, h6:last-child":{marginBottom:0,paddingBottom:0},"&& p:not(:first-child, :last-child)":{marginBottom:t.article.spacing.spacing8}}}),Ke=e=>{let{block:t,scrolloverContent:i}=e;const{text:n}=t;return i?(0,a.jsx)(Ge,{children:(0,a.jsx)(u.o,{markdown:n})}):(0,a.jsx)(u.o,{markdown:n})},Je=e=>{let{item:t,noOtherBlocksBelow:i}=e;switch(t.type){case"text":return(0,a.jsx)(Ke,{scrolloverContent:!0,block:t});case"heading":return(0,a.jsx)(Be,{scrolloverContent:!0,noOtherBlocksBelow:i,block:t});case"quote":return(0,a.jsx)(Xe,{...t})}},Qe=f.I4.div.withConfig({componentId:"aw__sc-wrdziq-0"})(e=>{let{$first:t,$reduceMotion:i}=e;return{height:t||i?"auto":"50vh",marginBottom:i?0:"100vh",marginTop:0,position:"relative",display:"flex",justifyContent:"center",flexDirection:"column",alignContent:"center",flexWrap:"wrap"}}),Ze=e=>{let{children:t,index:i,currentSlide:n,setCurrentSlide:o}=e;const l=(0,r.createRef)(),s=(0,r.useCallback)(e=>{e.at(0)?.isIntersecting&&n!==i&&o(i)},[n,i,o]);return(0,r.useEffect)(()=>{let e=null;const t=new IntersectionObserver(s,{});return l.current&&(t.observe(l.current),e=l.current),()=>{e&&t.unobserve(e)}},[n,s,l]),(0,a.jsx)(Qe,{ref:l,$first:0===i,children:t},`text_${i}`)},et=e=>["text","quote","heading"].includes(e.type),tt=(0,r.memo)(e=>{let{content:t}=e;return(0,a.jsx)(Ae,{className:"scrollover-content",children:t.map((e,i)=>(0,a.jsx)(Je,{item:e,noOtherBlocksBelow:1===t.length},`${e.type}-${i}`))})}),it=e=>{let{scrolloverPages:t,currentSlide:i,handleSetCurrentSlide:n}=e;return(0,a.jsx)(a.Fragment,{children:t.map((e,t)=>e.content&&(0,a.jsx)(Ze,{index:t,currentSlide:i,setCurrentSlide:n,children:(0,a.jsx)(tt,{content:e.content.filter(et)})},`${e.type}-${t}`))})},at=e=>{let{scrolloverPages:t}=e;const i=(e,i)=>t.slice(0,i).some(t=>t.media.id===e.media.id);return(0,a.jsx)(a.Fragment,{children:t.map((e,n)=>(0,a.jsxs)(r.Fragment,{children:[!i(e,n)&&(0,a.jsx)(Te,{$reduceMotion:!0,children:(0,a.jsx)(Ce,{scrolloverPages:t,currentSlide:n})}),e.content&&(0,a.jsx)(tt,{content:e.content.filter(et)})]},n))})},nt=e=>{let{block:t,noMargin:i=!1,mobileWrapper:n}=e;const{articleInfo:{isJournalisticStyleFeature:l}}=(0,o.o6)(),s=(0,ne.j)()??!1,{pages:c}=t,[d,u]=(0,r.useState)(0),p=(0,r.useCallback)(e=>{e!==d&&u(e)},[d]);return(0,a.jsxs)(Se,{$negativeHorizontalMargin:l,$reduceMotion:s,$noMargin:i,children:[!s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Te,{$mobileWrapper:n,children:(0,a.jsx)(Ce,{scrolloverPages:c,currentSlide:d})}),(0,a.jsx)(it,{scrolloverPages:c,handleSetCurrentSlide:p,currentSlide:d})]}),s&&(0,a.jsx)(at,{scrolloverPages:c})]})},rt=f.I4.div.withConfig({componentId:"aw__sc-640c7k-0"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.backgroundDark}}),ot=e=>{let{block:t}=e;const{data:i}=(0,o.o6)(),{t:r}=(0,n.B)(),l=(0,ae.x)(i.datePublished),s=t.pages.at(-1),c=r("authorsTitle",{count:i.authors?.length??1}),d=r("sourcesTitle"),u=r("published"),p=i.meta?.modifications?.at(-1),h=i.authors?.reduce((e,t)=>
1`${e} ${t.role?t.role+":":""}${t.name}<br>`,`${c}<br>`).concat("<br>")??"",g=i.sources?`${d}<br>${i.sources}<br><br>`:"",m=`${u} ${l??""}${p?.description?`<br>${p.description}`:""}`,f=t.pages.map(e=>({type:"scrollover-page",content:e.content.map(t=>"header"===e.type&&"heading"===t.type&&1!==t.level?{...t,type:"text"}:t),media:e.media})),b=s?[{type:"scrollover-page",content:[{type:"text",text:h.concat(g).concat(m)}],media:s.media}]:[],x={type:"scrollover-pages",pages:f.concat(b)};return(0,a.jsx)(rt,{children:(0,a.jsx)(nt,{block:x,noMargin:!0,mobileWrapper:!0})})};var lt=i(7866),st=i(35862);const ct=e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,padding:t.article.spacing.spacing16}},dt=f.I4.div.withConfig({componentId:"aw__sc-ia8qkl-0"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,"p, a, h1, h2, h3, h4, h5, h6":{color:t.article.color.textDefault},p:{...t.article.typography.defaultM,margin:`${t.article.spacing.spacing16} 0`},a:{textDecoration:"underline"},"a:hover":{backgroundColor:t.article.color.actionSecondaryVariant},strong:{...t.article.typography.defaultMBold},".flockler-btn-new":{...ct({theme:t})},".flockler-btn-load-more":{...ct({theme:t})}}}),ut=e=>{let{block:t}=e;const{streamId:i}=t,n=()=>void 0!==window.flcklr,o=t.count??150,l=t.siteId??17,s=`yle__flocklerContainer--${l}-${i}`;return(0,r.useEffect)(()=>{const e=()=>{window.YLE_FLOCKLER_EMBED=window.flcklr.Embeds.create({container:s,site:`${l}/${i}`,count:o,refresh:5e3})},t=()=>{setTimeout(()=>{n()?e():t()},200)};n()?e():((0,st.qj)((0,st.n)("script",{src:"https://embed-cdn.flockler.com/embed-v2.js",defer:!0})),t())},[s,o,l,i]),(0,a.jsxs)(dt,{className:"yle__article__flockler",children:[(0,a.jsx)(d.I,{}),(0,a.jsx)("div",{id:s})]})},pt=e=>{let{block:t}=e;return(0,a.jsx)(lt.u,{children:(0,a.jsx)(ut,{block:t})})};var ht=i(69670);const gt=f.I4.div.withConfig({componentId:"aw__sc-nk3cx2-0"})(e=>{let{theme:t}=e;return{display:"flex",columnGap:t.article.spacing.spacing16,marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{columnGap:t.article.spacing.spacing24,marginBottom:t.article.spacing.spacing24}}}),mt=f.I4.div.withConfig({componentId:"aw__sc-nk3cx2-1"})({flex:1,flexDirection:"column"});var ft=i(59448),bt=i(43080);const xt=f.I4.div.withConfig({componentId:"aw__sc-ifh6g1-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),vt=e=>{let{block:t}=e;const{articleInfo:{isJournalisticStyleFeature:i}}=(0,o.o6)(),n=i?{S:{maxWidth:ge.T.S.galleryJournalisticStyleFeature,aspectRatio:t.aspect},M:{maxWidth:ge.T.M.galleryJournalisticStyleFeature,aspectRatio:t.aspect}}:{S:{maxWidth:ge.T.S.gallery,aspectRatio:t.aspect},M:{maxWidth:ge.T.M.gallery,aspectRatio:t.aspect}};return(0,a.jsx)(xt,{children:(0,a.jsx)(bt.r,{block:t,children:(0,a.jsx)(ft.D,{block:t,thumbnail:!0,noCaption:!0,children:(0,a.jsx)(fe.w,{image:t,imageBreakpoints:n,roundedCorners:!0})})})})},yt=e=>{let{block:t}=e;const{showImages:i}=(0,o.o6)();if(!i)return null;const n=t.items.filter((e,t)=>{if(t%2==0)return e}),r=t.items.filter((e,t)=>{if(t%2>0)return e});return(0,a.jsxs)(gt,{children:[(0,a.jsx)(mt,{children:n.map((e,t)=>(0,a.jsx)(vt,{block:e},`item-${t}-${e.id}`))}),(0,a.jsx)(mt,{children:r.map((e,t)=>(0,a.jsx)(vt,{block:e},`item-${t}-${e.id}`))})]})};var wt=i(78958),kt=i(57866);const jt=f.I4.div.withConfig({componentId:"aw__sc-1ekhnsc-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,svg:{width:"100%",height:"auto"},[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),It=e=>{let{block:t}=e;const{grafomatenId:i,caption:n,svg:o}=t,l=(0,r.useRef)(null),s={type:"image",id:`13-${i}`,aspect:1,alt:n};return(0,a.jsx)(kt.X,{entityType:"grafomaten",id:i,elementRef:l,children:(0,a.jsxs)(jt,{ref:l,children:[o?(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:o}}):(0,a.jsx)(fe.w,{image:s,format:"svg"}),(0,a.jsx)(wt.a,{$noHorizontalPadding:!0,children:n&&(0,a.jsx)("span",{children:n})})]})})},_t=(0,f.I4)(De.f).withConfig({componentId:"aw__sc-cpdgg2-0"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,...t.article.typography.defaultS,flex:1,paddingLeft:t.article.spacing.spacing16,[t.article.breakpoint.M]:{...t.article.typography.defaultM}}}),Ct=e=>{let{block:t}=e;const{text:i}=t;return(0,a.jsxs)(Ee,{className:"yle__article__paragraph yle__article__highlight",children:[(0,a.jsx)(Pe,{}),(0,a.jsx)(_t,{children:i})]})};var St=i(99683);const Tt=(e,t,i)=>{var a,n,r;const o=(a=i,n=e,r=t,Math.min(Math.max(a,n),r)-e)/(t-e);return isFinite(o)?100*o:0},At=f.I4.div.withConfig({componentId:"aw__sc-1uy1a00-0"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.white,position:"absolute",height:"100%",marginLeft:"-3px",right:"50%",width:"6px",zIndex:2}}),Lt=f.I4.div.withConfig({componentId:"aw__sc-1uy1a00-1"}
1)({height:"100%",marginLeft:"-56px",width:"120px"}),$t=f.I4.div.withConfig({componentId:"aw__sc-1uy1a00-2"})(e=>{let{theme:t}=e;return{alignItems:"center",backgroundColor:t.article.color.white,borderRadius:t.article.radius.full,display:"flex",justifyContent:"center",height:"22px",width:"22px",marginLeft:"-8px",marginTop:"-11px",position:"absolute",textAlign:"center",top:"50%",zIndex:3}}),Mt=f.I4.div.withConfig({componentId:"aw__sc-qr9c42-0"})({overflow:"hidden",position:"absolute",width:"100%"}),Bt=f.I4.div.withConfig({componentId:"aw__sc-qr9c42-1"})({overflow:"hidden",position:"absolute",width:"100%"}),Et=f.I4.div.withConfig({componentId:"aw__sc-qr9c42-2"})({position:"relative"}),Pt=e=>{let{left:t,right:i,rightImageVisibilityPercentage:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Mt,{children:(0,a.jsx)(Et,{children:(0,a.jsx)(fe.w,{image:t})})}),(0,a.jsx)(Bt,{style:{left:n},children:(0,a.jsx)(Et,{style:{right:n},children:(0,a.jsx)(fe.w,{image:i})})})]})},Dt=e=>{let{block:t}=e;const{left:i,firstImageVisibility:n}=t,o=n??50,l=(0,r.useRef)(null),[s,c]=(0,r.useState)({left:1,right:1200}),[d,u]=(0,r.useState)(o),{aspect:p}=i,h={...t.right,width:i.width,height:i.height,aspect:i.aspect},g=(0,r.useCallback)(()=>{if(l.current?.getBoundingClientRect){const e=l.current.getBoundingClientRect();c({left:e.left,right:e.right})}},[]),m=(0,r.useCallback)(e=>{u(Tt(s.left,s.right,e))},[s.left,s.right]),f=`${d.toFixed(1)}%`;return(0,a.jsx)(ft.D,{block:t,aspectRatio:p,children:(0,a.jsxs)("div",{onMouseMove:e=>m(e.pageX),onMouseEnter:g,onTouchMove:e=>{const t=Array.from(e.touches).at(0);t&&m(t.pageX)},onTouchStart:g,ref:l,children:[(0,a.jsx)(Pt,{left:i,right:h,rightImageVisibilityPercentage:f}),(0,a.jsxs)(At,{style:{left:f},children:[(0,a.jsx)($t,{}),(0,a.jsx)(Lt,{})]})]})})};var Rt=i(84132),Ft=i(33618),Ot=i(83462);var Nt=i(69813),Ut=i(68091);const Ht=new Intl.NumberFormat("fi-FI"),Yt=(e,t,i,a,n)=>{const r=e.map((e,t)=>({row:e,originalIndex:t})).filter(e=>{let{row:i}=e;return((e,t,i)=>{if(!i)return!0;const a=i.toLowerCase();return e.some((e,i)=>t.at(i)?.searchable&&e.toLowerCase().includes(a))})(i,t,n)}).sort((e,a)=>{let{row:n}=e,{row:r}=a;return((e,t,i,a)=>{const n=e.at(a),r=t.at(a);if("NUMBER"===i.at(a)?.format){const e=n?parseFloat((0,Ut.MU)(n)):NaN,t=r?parseFloat((0,Ut.MU)(r)):NaN,i=Number.isNaN(e),a=Number.isNaN(t);return i&&a?0:i?1:a?-1:e-t}const o=n?n.toLowerCase():"",l=r?r.toLowerCase():"";return o>l?1:l>o?-1:0})(n,r,t,i)}),o="DESC"===a?[...r].reverse():r;return{rows:o.map(e=>{let{row:t}=e;return t}),keys:o.map(e=>{let{originalIndex:t}=e;return t})}};var Wt=i(81048);const Vt=f.I4.div.withConfig({componentId:"aw__sc-1eanddr-0"})(e=>{let{theme:t}=e;return{marginLeft:`-${t.article.spacing.spacing16}`,marginRight:`-${t.article.spacing.spacing16}`,position:"relative",[t.article.breakpoint.M]:{marginLeft:0,marginRight:0}}}),zt=f.I4.div.withConfig({componentId:"aw__sc-1eanddr-1"})({position:"relative",overflowX:"auto"}),qt=f.I4.table.withConfig({componentId:"aw__sc-1eanddr-2"})(e=>{let{theme:t}=e;return{borderBottomWidth:"1px",borderBottomColor:t.article.color.backgroundTableActive,width:"100%",color:t.article.color.textDefault,borderSpacing:0,borderCollapse:"collapse",borderBottomStyle:"solid",tbody:{verticalAlign:"baseline"}}}),Xt=f.I4.div.withConfig({componentId:"aw__sc-1eanddr-3"})(e=>{let{theme:t,$width:i}=e;return{width:i&&`calc(${i}px - (2 * ${t.article.spacing.spacing4}))`,position:"sticky",left:t.article.spacing.spacing4,top:t.article.spacing.spacing4}}),Gt=(0,f.I4)(Wt._B).attrs({as:"caption"}).withConfig({componentId:"aw__sc-1eanddr-4"})(e=>{let{theme:t,$width:i}=e;return{textAlign:"left",position:"sticky",left:t.article.spacing.spacing16,width:i,maxWidth:`calc(var(--viewportWidthWithoutScrollbar, 100vw) - (2 * ${t.article.spacing.spacing16}))`,[t.article.breakpoint.M]:{left:0}}}),Kt=f.I4.div.withConfig({componentId:"aw__sc-1eanddr-5"})(e=>{let{theme:t,$showHint:i,$top:a=0}=e;return{display:"flex",position:"absolute",right:0,top:a,bottom:0,zIndex:1,opacity:i?1:0,width:`calc(5 * ${t.article.spacing.spacing16})`,pointerEvents:"none",transition:"opacity 0.2s",backgroundImage:`linear-gradient(\n      to right,\n      rgba(${t.article.color.backgroundTableGradientStart},0) 0%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.006) 8.1%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.022) 15.5%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.047) 22.5%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.079) 29%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.117) 35.3%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.158) 41.2%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.203) 47.1%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.247) 52.9%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.292) 58.8%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.333) 64.7%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.371) 71%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.403) 77.5%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.428) 84.5%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.444) 91.9%,\n      rgba(${t.article.color.backgroundTableGradientStart},0.45) 100%\n    )`}}),Jt=f.I4.div.withConfig({componentId:"aw__sc-592q9l-0"})(e=>{let{theme:t}=e;return{padding:`0 0 0 ${t.article.spacing.spacing16}`}}),Qt=(0,f.I4)(C.FUI).withConfig({componentId:"aw__sc-592q9l-1"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),Zt=(0,f.I4)(C.gE3).withConfig({componentId:"aw__sc-592q9l-2"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),ei=(0,f.I4)(C.eqt).withConfig({componentId:"aw__sc-592q9l-3"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault}}),ti=e=>{let{isCurrentSortColumn:t,sortOrder:i}=e;return t?"ASC"===i?(0,a.jsx)(Zt,{}):(0,a.jsx)(ei,{}):(0,a.jsx)(Qt,{})},ii=e=>{let{isCurrentSortColumn:t,sortOrder:i}=e;return(0,a.jsx)(Jt,{children:(0,a.jsx)(ti,{isCurrentSortColumn:t,sortOrder:i})})},ai=f.I4.th.withConfig({componentId:"aw__sc-1q2pb69-0"})(e=>{let{theme:t,$isCurrentSortColumn:i}=e;return{backgroundColor:i?t.article.color.backgroundTableActiveVariant:void 0,borderLeft:i?`1px solid ${t.article.color.borderTable}`:void 0,borderRight:i?`1px solid ${t.article.color.borderTable}`:void 0,...t.article.typography.defaultSBold}}),ni=f.I4.div.withConfig({componentId:"aw__sc-1q2pb69-1"})({display:"flex",alignItems:"center",padding:"16px",justifyContent:"space-between",userSelect:"none",textAlign:"left"}),ri=f.I4.button.withConfig({componentId:"aw__sc-1q2pb69-2"}
1)({background:"inherit",cursor:"pointer",font:"inherit",color:"inherit",fontWeight:"inherit",border:"none",height:"100%",width:"100%"}),oi=e=>{let{column:t,sortFn:i,sortOrder:n,colIndex:r,isCurrentSortColumn:o,shouldUseMarkdown:l}=e;if(t.sortable&&i){const e=o?"ASC"===n?"ascending":"descending":void 0;return(0,a.jsx)(ai,{$isCurrentSortColumn:o,"aria-sort":e,children:(0,a.jsx)(ri,{onClick:()=>i(r),children:(0,a.jsxs)(ni,{children:[l?(0,a.jsx)(u.o,{markdown:t.title,ruleOverrides:{p:e=>{let{children:t}=e;return(0,a.jsx)("span",{children:t})}}}):t.title,(0,a.jsx)(ii,{isCurrentSortColumn:o,sortOrder:n})]})})})}return(0,a.jsx)(ai,{children:(0,a.jsx)(ni,{children:l?(0,a.jsx)(u.o,{markdown:t.title,ruleOverrides:{p:e=>{let{children:t}=e;return(0,a.jsx)("span",{children:t})}}}):t.title})})},li=(0,r.memo)(oi),si=f.I4.tr.withConfig({componentId:"aw__sc-1jfi8i3-0"})(e=>{let{theme:t,$topBorder:i}=e;return{borderTop:i?`1px solid ${t.article.color.borderTable}`:void 0}}),ci=e=>{let{columns:t,interactionComponentRow:i,shouldUseMarkdown:n=!0,sortColumn:r,sortFn:o,sortOrder:l}=e;return(0,a.jsxs)("thead",{children:[i,(0,a.jsx)(si,{$topBorder:!0,children:t.map((e,t)=>(0,a.jsx)(li,{isCurrentSortColumn:r===t,column:e,sortFn:o,sortOrder:l,colIndex:t,shouldUseMarkdown:n},e.title))})]})},di=f.I4.td.withConfig({componentId:"aw__sc-189jssa-0"})(e=>{let{theme:t,$activeRowParity:i,$alignRight:a}=e;return{...t.article.typography.defaultS,padding:t.article.spacing.spacing16,textAlign:a?"right":"left",..."even"===i&&{backgroundColor:t.article.color.backgroundTableActiveVariant,borderLeft:`1px solid ${t.article.color.borderTableVariant}`,borderRight:`1px solid ${t.article.color.borderTableVariant}`},..."odd"===i&&{backgroundColor:t.article.color.backgroundTableActive,borderLeft:`1px solid ${t.article.color.borderTable}`,borderRight:`1px solid ${t.article.color.borderTable}`}}}),ui=e=>{let{cell:t,isNumberFormat:i,shouldUseMarkdown:n,activeRowParity:r}=e;const o=((e,t)=>{if(e&&t&&(0,Ut.V1)(e)){const t=Number((0,Ut.MU)(e));return Ht.format(t)}return e})(t,i);return(0,a.jsx)(di,{$activeRowParity:r,$alignRight:i,children:n?(0,a.jsx)(u.o,{markdown:o,ruleOverrides:{p:e=>{let{children:t}=e;return(0,a.jsx)("span",{children:t})}}}):(0,a.jsx)("span",{children:o})})},pi=(0,r.memo)(ui),hi=f.I4.tr.withConfig({componentId:"aw__sc-1ddffug-0"})(e=>{let{theme:t,$isEven:i}=e;return{backgroundColor:i?t.article.color.background:t.article.color.backgroundVariant}}),gi=e=>{let{rowCells:t,sortColumn:i,isEven:n,columns:r,shouldUseMarkdown:o=!0}=e;return(0,a.jsx)(hi,{$isEven:n,children:t.map((e,t)=>{const l="NUMBER"===r?.at(t)?.format,s=i===t?n?"even":"odd":void 0;return(0,a.jsx)(pi,{cell:e,isNumberFormat:l,shouldUseMarkdown:o,activeRowParity:s},`td-${t}`)})})},mi=(0,r.memo)(gi),fi=e=>{let{caption:t,columns:i,interactionComponent:o,rows:l,rowKeys:c,setSorting:d,shouldUseMarkdown:u=!0,sortColumn:p,sortOrder:h}=e;const[g,m]=(0,r.useState)(!1),[f,b]=(0,r.useState)(),[x,v]=(0,r.useState)(),[y,w]=(0,r.useState)(),k=(0,r.useRef)(null),{t:j}=(0,n.B)(),I=!g&&!!y&&!!x&&y>x,_=(0,r.useMemo)(()=>(0,a.jsx)(si,{ref:k,children:(0,a.jsx)("th",{colSpan:i?.length,children:(0,a.jsx)(Xt,{$width:x,children:o})})}),[i?.length,o,x]),C=(0,r.useMemo)(()=>i&&i.length>0?[j("interactiveTableNoSearchResults")].concat(Array(i.length-1).fill("")):void 0,[i,j]),S=(0,s.YQ)(e=>{e&&v(e.contentRect.width)},100),T=(0,s.YQ)(e=>{m(e.scrollLeft>0)},100),A=(0,r.useCallback)(e=>{const t=()=>T(e),i=new ResizeObserver(e=>S(e.at(0)));return e.addEventListener("scroll",t),i.observe(e),()=>{i.disconnect(),e.removeEventListener("scroll",t)}},[S,T]),L=(0,s.YQ)(e=>{e&&w(e.contentRect.width)},100),$=(0,r.useCallback)(e=>{const t=new ResizeObserver(e=>L(e.at(0)));return t.observe(e),()=>{t.disconnect()}},[L]),M=(0,s.YQ)(e=>{if(!e)return;const t=window.getComputedStyle(e.target),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom);b(e.target.scrollHeight+i)},100),B=(0,r.useCallback)(e=>{const t=new ResizeObserver(e=>M(e.at(0)));return t.observe(e),()=>{t.disconnect()}},[M]);return(0,a.jsxs)(Vt,{children:[(0,a.jsx)(Kt,{$showHint:I,$top:f}),(0,a.jsx)(zt,{ref:A,children:(0,a.jsxs)(qt,{children:[t&&(0,a.jsx)(Gt,{ref:B,$width:x,children:t}),i&&(0,a.jsx)(ci,{columns:i,interactionComponentRow:_,sortOrder:h,sortColumn:p,sortFn:d,shouldUseMarkdown:u}),(0,a.jsxs)("tbody",{ref:$,children:[l.map((e,t)=>(0,a.jsx)(mi,{sortColumn:p,rowCells:e,isEven:(t+1)%2==0,columns:i,shouldUseMarkdown:u},c?.at(t)??`table-row-${t}`)),0===l.length&&C&&(0,a.jsx)(mi,{sortColumn:p,rowCells:C})]})]})})]})},bi=(0,r.memo)(fi),xi=e=>{let{caption:t,columns:i,input:o,interactionComponent:l,rows:s,setSorting:c,sortColumn:u,sortOrder:p}=e;const{t:h}=(0,n.B)(),{rows:g,keys:m}=(0,r.useMemo)(()=>Yt(s,i,u,p,o),[s,i,u,p,o]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(bi,{caption:t,columns:i,interactionComponent:l,rows:g,rowKeys:m,setSorting:c,shouldUseMarkdown:!1,sortColumn:u,sortOrder:p}),(0,a.jsx)(d.I,{"aria-live":"polite",children:h("searchResultsTotal",{total:g.length})})]})},vi=(0,r.memo)(xi),yi=f.I4.div.withConfig({componentId:"aw__sc-19avira-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing40}}),wi=(0,f.I4)(De.f).withConfig({componentId:"aw__sc-19avira-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultS,color:t.article.color.textDefault}}),ki=f.I4.div.withConfig({componentId:"aw__sc-19avira-2"})(e=>{let{theme:t}=e;return{position:"sticky",marginBottom:t.article.spacing.spacing24,textAlign:"initial",maxWidth:`calc(var(--viewportWidthWithoutScrollbar, 100vw) - ${t.article.spacing.spacing16} - ${t.article.spacing.spacing16})`,left:t.article.spacing.spacing16,[t.article.breakpoint.M]:{position:"relative",left:"unset",maxWidth:"unset"}}}),ji=f.I4.div.withConfig({componentId:"aw__sc-19avira-3"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,...t.article.typography.defaultXs,marginLeft:0,marginRight:0,marginTop:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginLeft:t.article.spacing.spacing16,marginRight:t.article.spacing.spacing16}}});var Ii=i(24756);const _i=e=>
1{let{input:t,onChange:i,tableId:r}=e;const{t:o}=(0,n.B)();return(0,a.jsx)(ki,{children:(0,a.jsx)(Ii.k,{id:`table-search-${r}`,icon:{componentFn:C.vji,ariaLabel:""},label:o("interactiveTableInputPlaceholder"),labelOptions:{isHidden:!0},onChange:i,placeholder:o("interactiveTableInputPlaceholder"),type:"text",value:t})})},Ci=(0,r.memo)(_i),Si=e=>{let{block:t}=e;const{tableId:i,versionId:o}=t,[l,s]=(0,r.useState)(""),c=(0,r.useDeferredValue)(l),d=(0,r.useRef)(null),{t:u}=(0,n.B)(),{loading:p,error:h,tableData:g,sort:m,setSort:f}=((e,t)=>{const{baseUrls:i}=(0,Ot.o6)(),[a,n]=(0,r.useState)(!0),[o,l]=(0,r.useState)(null),[s,c]=(0,r.useState)({column:0,order:"ASC"}),[d,u]=(0,r.useState)({caption:"",columns:[],rows:[],source:""}),p=(0,r.useCallback)(async()=>{const a=t?`${e}/${t}.json`:`${e}.json`,n=await fetch(`${i.tableApi}/${a}`);return await n.json()},[i.tableApi,e,t]);return(0,r.useEffect)(()=>{(async()=>{try{const e=await p();c({column:"string"==typeof e.default_sort_column?parseInt(e.default_sort_column,10):e.default_sort_column,order:e.default_sort_order}),u({caption:e.caption??"",columns:e.columns,rows:e.data,source:e.source})}catch(e){l(e)}finally{n(!1)}})()},[p]),{loading:a,error:o,tableData:d,sort:s,setSort:c}})(i,o),b=(0,r.useCallback)(e=>{s(e.target.value||"")},[]),x=(0,r.useCallback)(e=>{f(t=>t.column===e?{column:e,order:"DESC"===t.order?"ASC":"DESC"}:{column:e,order:"DESC"})},[f]),{caption:v,rows:y,columns:w,source:k}=g,{column:j,order:I}=m,_=w.some(e=>e.searchable),C=(0,r.useMemo)(()=>_?(0,a.jsx)(Ci,{input:l,onChange:b,tableId:i}):void 0,[_,l,b,i]);return h?(0,a.jsx)(yi,{className:"yle__article__interactiveTableBlock__container",children:(0,a.jsx)(Nt.E,{level:"error",title:u("interactiveTableLoadError")})}):p?(0,a.jsx)(yi,{className:"yle__article__interactiveTableBlock__container",children:(0,a.jsx)(wi,{children:u("interactiveTableLoading")})}):(0,a.jsx)(kt.X,{entityType:"interactive_table",id:i,elementRef:d,children:(0,a.jsxs)(yi,{className:"yle__article__interactiveTableBlock__container",ref:d,children:[(0,a.jsx)(vi,{caption:v,columns:w,input:c,interactionComponent:C,rows:y,setSorting:x,sortColumn:j,sortOrder:I}),(0,a.jsx)(ji,{children:k})]})})};var Ti=i(73534);const Ai=f.I4.ol.withConfig({componentId:"aw__sc-122a1ie-0"})(e=>{let{theme:t}=e;return{padding:`${t.article.spacing.spacing8} 0 ${t.article.spacing.spacing8} ${t.article.spacing.spacing32}`,listStylePosition:"outside",listStyleType:"decimal",[t.article.breakpoint.M]:{padding:`${t.article.spacing.spacing16} 0 ${t.article.spacing.spacing16} ${t.article.spacing.spacing32}`}}}),Li=f.I4.li.withConfig({componentId:"aw__sc-122a1ie-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,color:t.article.color.textDefault,marginBottom:t.article.spacing.spacing16,paddingLeft:"4px",[t.article.breakpoint.M]:{...t.article.typography.defaultL,paddingLeft:"12px",marginBottom:t.article.spacing.spacing24}}}),$i=f.I4.span.withConfig({componentId:"aw__sc-122a1ie-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,color:t.article.color.textDefault,[t.article.breakpoint.M]:{...t.article.typography.defaultL}}}),Mi=e=>{let{block:t}=e;const{items:i}=t;return(0,a.jsx)(Ai,{className:"yle__article__list yle__article__list--ol",children:i.map((e,t)=>{const i=`item-${t}`;return(0,a.jsx)(Li,{children:(0,a.jsx)(u.o,{markdown:e,ruleOverrides:{p:e=>{let{children:t}=e;return(0,a.jsx)($i,{children:t})}}})},i)})})};var Bi=i(2299),Ei=i(82252),Pi=i(85606),Di=i(3206);const Ri=e=>{if("S"!==e.size)return e.image??e.video?.image};var Fi=i(58205),Oi=i(65212),Ni=i(62044),Ui=i(19889),Hi=i(73892),Yi=i(88588),Wi=i(53350),Vi=i(40418);const zi=f.I4.h3.withConfig({componentId:"aw__sc-1t8msea-0"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,[t.article.breakpoint.M]:{...t.article.typography.defaultL}}}),qi=f.I4.a.withConfig({componentId:"aw__sc-1t8msea-1"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"underline"}}),Xi=f.I4.span.withConfig({componentId:"aw__sc-1t8msea-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultMBold}}),Gi=e=>{let{programData:t,url:i}=e;const{t:r}=(0,n.B)(),o=r("areena"),l=t.title??"";return(0,a.jsx)(Fi.V,{children:(0,a.jsx)(zi,{children:(0,a.jsxs)(qi,{href:i,children:[(0,a.jsxs)(Xi,{children:[o,": "]}),l]})})})},Ki=e=>{let{block:t}=e;const{locale:i,themeMode:n}=(0,o.o6)(),r=t.programResponse;if(!r||!t.url)return null;const l=(0,Yi.qi)(r,i),s=`${(0,Wi.DO)(i)}/${t.id}`;return"S"===t.size?(0,a.jsx)(Gi,{programData:l,url:s}):(0,a.jsx)(Vi.w,{programData:l,url:s,locale:i,themeMode:n})},Ji=f.I4.div.withConfig({componentId:"aw__sc-os9u3y-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing8}}),Qi=f.I4.div.withConfig({componentId:"aw__sc-os9u3y-1"})(e=>{let{theme:t}=e;return{paddingBottom:t.article.spacing.spacing8}}),Zi=f.I4.h3.withConfig({componentId:"aw__sc-os9u3y-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultMBold}}),ea=f.I4.a.withConfig({componentId:"aw__sc-os9u3y-3"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"none"}}),ta=f.I4.time.withConfig({componentId:"aw__sc-os9u3y-4"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,color:t.article.color.textDefault,marginTop:t.article.spacing.spacing16,display:"block"}}),ia=f.I4.h3.withConfig({componentId:"aw__sc-os9u3y-5"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,[t.article.breakpoint.M]:{...t.article.typography.defaultL}}}),aa=f.I4.a.withConfig({componentId:"aw__sc-os9u3y-6"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"underline"}}
1),na=f.I4.strong.withConfig({componentId:"aw__sc-os9u3y-7"})(e=>{let{theme:t}=e;return{fontWeight:t.article.typography.defaultMBold.fontWeight}}),ra=f.I4.span.withConfig({componentId:"aw__sc-1gvl4c3-0"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXsBold}}),oa=f.I4.div.withConfig({componentId:"aw__sc-1gvl4c3-1"})(e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",flexDirection:"row",gap:t.article.spacing.spacing8,marginBottom:t.article.spacing.spacing8}}),la=f.I4.figure.withConfig({componentId:"aw__sc-1gvl4c3-2"})(e=>{let{theme:t}=e;return{borderRadius:t.article.radius.full,flex:"none",height:"28px",overflow:"hidden",position:"relative",width:"28px"}}),sa=e=>{let{author:t}=e;const{name:i,image:n}=t,r={S:{aspectRatio:1,maxWidth:ge.T.S.authorVerticalMultimedia}};return(0,a.jsxs)(oa,{children:[n&&(0,a.jsx)(la,{children:(0,a.jsx)(fe.w,{image:n,imageBreakpoints:r,noPlaceholder:!0})}),(0,a.jsx)(ra,{children:i})]})},ca=e=>{let{block:t}=e;const{t:i}=(0,n.B)(),{authors:r}=t,o=r?.at(0),l=Ri(t)??pe.XS;return"L"===t.size?(0,a.jsx)(Oi.Z,{children:(0,a.jsx)(Fi.V,{role:"listitem",image:l,noMargin:!0,children:(0,a.jsxs)(Qi,{children:[o&&(0,a.jsx)(sa,{author:o}),(0,a.jsx)(Zi,{children:(0,a.jsx)(ea,{href:t.url,children:`${i("shorts")}: ${t.title??""}`})})]})})}):"M"===t.size?(0,a.jsx)(Fi.V,{image:l,children:(0,a.jsx)(ia,{children:(0,a.jsxs)(aa,{href:t.url,children:[(0,a.jsx)(na,{children:i("shorts")+": "}),t.title]})})}):(0,a.jsx)(Fi.V,{children:(0,a.jsx)(ia,{children:(0,a.jsxs)(aa,{href:t.url,children:[(0,a.jsx)(na,{children:i("shorts")+": "}),t.title]})})})},da=e=>{let{block:t}=e;const{t:i}=(0,n.B)(),r=t.id.startsWith("1-"),o=(0,Bi.N1)(t.id);return r?(0,a.jsx)(Ki,{block:t}):o?(0,a.jsx)(ca,{block:t}):t.title&&t.url?"L"===t.size?(0,a.jsx)(Oi.Z,{children:(0,a.jsx)(Fi.V,{role:"listitem",image:Ri(t),noMargin:!0,children:(0,a.jsxs)(Qi,{children:[!!t.subject&&t.subject.title&&(0,a.jsx)(Ji,{children:(0,a.jsx)(Ui.B,{variant:"text",subject:t.subject})}),(0,a.jsx)(Zi,{children:(0,a.jsx)(ea,{href:t.url,children:t.title})}),t.datePublished&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Ni.Z,{children:(0,a.jsxs)(Hi.QG,{dateTime:(0,Ei.x)((0,Pi.H)(t.datePublished)),children:[i("published")," ",(0,Di.sL)(t.datePublished,!0)]})}),(0,a.jsx)(ta,{"aria-hidden":!0,children:(0,Di.sL)(t.datePublished)})]})]})})}):(0,a.jsx)(Fi.V,{image:Ri(t),children:(0,a.jsx)(ia,{children:(0,a.jsxs)(aa,{href:t.url,children:[(0,a.jsx)(na,{children:i("more")+": "}),t.title]})})}):null};var ua=i(57909);const pa=f.I4.h3.withConfig({componentId:"aw__sc-1dzoy9w-0"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,[t.article.breakpoint.M]:{...t.article.typography.defaultL}}}),ha=f.I4.div.withConfig({componentId:"aw__sc-1dzoy9w-1"})(e=>{let{theme:t}=e;return{borderRadius:t.article.radius.medium,backgroundColor:t.article.color.backgroundVariant,padding:t.article.spacing.spacing16,marginBottom:t.article.spacing.spacing16,display:"flex",flexDirection:"column",alignItems:"center",[t.article.breakpoint.M]:{padding:t.article.spacing.spacing24}}}),ga=f.I4.h3.withConfig({componentId:"aw__sc-1dzoy9w-2"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultLBold,color:t.article.color.textDefault,marginBottom:t.article.spacing.spacing16}}),ma=f.I4.p.withConfig({componentId:"aw__sc-1dzoy9w-3"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultM,color:t.article.color.textDefault,marginBottom:t.article.spacing.spacing16,textAlign:"center"}}),fa=f.I4.a.withConfig({componentId:"aw__sc-1dzoy9w-4"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"underline"}}),ba=e=>{let{block:t}=e;const{isArseInNative:i}=(0,o.o6)();return(0,r.useEffect)(()=>{i&&t.appRoute&&window.ReactNativeWebView?.postMessage(JSON.stringify({type:"ADD_APP_ROUTE",payload:{url:(0,ua.K)(t.url),appRoute:t.appRoute}}))},[t.appRoute,t.url,i]),(0,a.jsxs)(ha,{children:[(0,a.jsx)(ga,{children:t.title}),t.lead&&(0,a.jsx)(ma,{children:t.lead}),(0,a.jsx)(y.$,{as:"a",size:"sm",href:t.url,children:t.ctaLabel})]})},xa=e=>{let{block:t}=e;const{image:i,title:n,url:r,ctaLabel:o}=t;return o?(0,a.jsx)(ba,{block:t}):(0,a.jsx)(Fi.V,{image:i,children:(0,a.jsx)(pa,{children:(0,a.jsx)(fa,{href:r,children:n})})})},va=e=>{let{block:t}=e;const{source:i,text:n,style:r}=t;return"long"===r?(0,a.jsx)(Ne,{source:i,text:n}):(0,a.jsx)(qe,{source:i,text:n})};var ya=i(22874),wa=i(31516),ka=i(63518);const ja=e=>{let{block:t}=e;const{locale:i,baseUrls:{imageCdn:n}}=(0,o.o6)(),r=(0,wa.gW)(t,i,n);return(0,a.jsx)(ka.Y,{data:r,dataKey:"recipe"})},Ia=e=>{let{block:t}=e;const{t:i}=(0,n.B)(),{title:r,coverImage:o,cooktime:l,instructions:s,preptime:c,quantity:d,totaltime:u,ingredients:p}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ja,{block:t}),(0,a.jsx)($e.D,{level:2,children:r}),o&&(0,a.jsx)(St.D,{block:o}),d&&(0,a.jsxs)(De.f,{children:[i("recipe.quantity"),": ",d]}),l&&(0,a.jsxs)(De.f,{children:[i("recipe.cooktime"),": ",(0,ya.T)(l)," min"]}),c&&(0,a.jsxs)(De.f,{children:[i("recipe.preptime"),": ",(0,ya.T)(c)," min"]}),u&&(0,a.jsxs)(De.f,{children:[i("recipe.totaltime"),": ",(0,ya.T)(u)," min"]}),p&&p.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)($e.D,{level:3,children:i("recipe.ingredients")}),(0,a.jsx)(V,{items:p})]}),s&&s.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)($e.D,{level:3,children:i("recipe.instructions")}),(0,a.jsx)(_,{blocks:s,allowedBlocks:v.yT})]})]})},_a=e=>{let{item:t}=e;const{title:i,left:n,right:r,counter:o,links:l,media:s}=t,c=[...n,...r],d=`item-${o}`;return(0,a.jsxs)("div",{children:[(0,a.jsx)($e.D,{level:2,children:i}),c.map((e,t)=>(0,a.jsx)(Na,{block:e},`slideshow-${t}`)),l&&(0,a.jsx)(Ti.j,{block:{links:l,type:"links"}}
1),(0,ue.TW)(s)&&(0,a.jsx)(St.D,{block:s})]},d)},Ca=e=>{let{block:t}=e;return(0,a.jsx)(a.Fragment,{children:t.slides.map((e,t)=>(0,a.jsx)(_a,{item:e},`slideshow-item-${t}`))})};var Sa=i(6474);const Ta=f.I4.div.withConfig({componentId:"aw__sc-w8n34p-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing24}}),Aa=()=>{const{t:e}=(0,n.B)();return(0,a.jsx)(Ta,{children:(0,a.jsx)(Nt.E,{level:"warning",children:e("surveyNotAvailable")})})},La=f.I4.div.withConfig({componentId:"aw__sc-1n9mxjq-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing32}}),$a=e=>{let{block:t}=e;const{rows:i,caption:n}=t,r=i.map(e=>e.cells.map(e=>e.text));return(0,a.jsx)(La,{className:"yle__article__tableWrapper",children:(0,a.jsx)(bi,{rows:r,caption:n})})};var Ma=i(21387),Ba=i(34820);const Ea=f.I4.div.withConfig({componentId:"aw__sc-15jjw8l-0"})({display:"flex",flexDirection:"row",justifyContent:"center"}),Pa=f.I4.h2.withConfig({componentId:"aw__sc-15jjw8l-1"})(e=>{let{theme:t}=e;return{...t.article.typography.default4XlBold,backgroundColor:t.article.color.textDefault,borderRadius:t.article.radius.full,color:t.article.color.background,height:64,overflow:"hidden",marginBottom:t.article.spacing.spacing24,marginTop:t.article.spacing.spacing32,textAlign:"center",width:64,display:"flex",justifyContent:"center",alignItems:"center"}}),Da=e=>{let{item:t}=e;const{counter:i,content:n}=t,r=[...n.slice(1),n.at(0)].filter(Ba.E);return(0,a.jsxs)("div",{children:[(0,a.jsx)(Ea,{children:(0,a.jsx)(Pa,{children:i})}),r.map((e,t)=>(0,a.jsx)(Na,{block:e},`toplist-${t}`))]})},Ra=e=>{let{block:t}=e;return(0,a.jsx)(a.Fragment,{children:t.items.map((e,t)=>(0,a.jsx)(Da,{item:e},`top-list-item-${t}`))})},Fa=e=>{let{block:t}=e;const{url:i}=t,{t:r}=(0,n.B)();return(0,a.jsx)(te,{infoText:r("consentExternalLinkTextVimeo"),url:i})},Oa=e=>{let{block:t}=e;const{url:i}=t,{t:r}=(0,n.B)();return(0,a.jsx)(te,{infoText:r("consentExternalLinkTextYoutube"),url:i})},Na=e=>{let{block:t}=e;if(!m(t))return(0,a.jsx)(j.A,{block:t});switch(t.type){case"aside":return(0,a.jsx)(U,{block:t});case"audio":return(0,a.jsx)(H.Y,{block:t});case"bullet-list":return(0,a.jsx)(z,{block:t});case"card-story":return(0,a.jsx)(X,{block:t});case"elava-arkisto-video":return(0,a.jsx)(J,{block:t});case"external-content":return(0,a.jsx)(Q.o,{block:t});case"facebook-video":return(0,a.jsx)(ie,{block:t});case"feature":return(0,a.jsx)(ot,{block:t});case"flockler":return(0,a.jsx)(pt,{block:t});case"form":return(0,a.jsx)(ht.U,{block:t});case"gallery":return(0,a.jsx)(yt,{block:t});case"grafomaten":return(0,a.jsx)(It,{block:t});case"heading":return(0,a.jsx)(Be,{block:t});case"highlight":return(0,a.jsx)(Ct,{block:t});case"image":return(0,a.jsx)(St.D,{block:t});case"image-pair":return(0,a.jsx)(Dt,{block:t});case"infogram":return(0,a.jsx)(Rt.J,{block:t});case"interaction-element":return(0,a.jsx)(Ft.W,{block:t});case"interactive-table":return(0,a.jsx)(Si,{block:t});case"links":return(0,a.jsx)(Ti.j,{block:t});case"numbered-list":return(0,a.jsx)(Mi,{block:t});case"promo-content":return(0,a.jsx)(da,{block:t});case"promo-manual":return(0,a.jsx)(xa,{block:t});case"recipe":return(0,a.jsx)(Ia,{block:t});case"quote":return(0,a.jsx)(va,{block:t});case"scrollover-pages":return(0,a.jsx)(nt,{block:t});case"slideshow":return(0,a.jsx)(Ca,{block:t});case"some-posting":return(0,a.jsx)(Sa.o,{block:t});case"survey":return(0,a.jsx)(Aa,{});case"table":return(0,a.jsx)($a,{block:t});case"tehtava-assignment":case"tehtava-carousel":case"tehtava-exam":return(0,a.jsx)(Ma.b,{block:t});case"text":return(0,a.jsx)(Ke,{block:t});case"top-list":return(0,a.jsx)(Ra,{block:t});case"video":return(0,a.jsx)(K.F,{block:t});case"vimeo-video":return(0,a.jsx)(Fa,{block:t});case"youtube-video":return(0,a.jsx)(Oa,{block:t});default:return(0,a.jsx)(j.A,{block:t})}};var Ua=i(64158);const Ha=(0,f.I4)(Ua.N).withConfig({componentId:"aw__sc-1lkvr9c-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),Ya=e=>!["card_story","mobile_feature"].includes(e),Wa=e=>
1{let{footer:t,header:i,isShortArticle:r}=e;const{data:{content:l,summary:s,lead:m,id:f,format:b,meta:x},articleInfo:{hasExternalContentBlock:v,isFullScreenArticle:y,isSanapyramidi:w},renderBeforeArticle:k}=(0,o.o6)(),{t:j}=(0,n.B)(),I=c({enabled:Ya(b)});if(r){if(y||!x?.characterCount?.body||x.characterCount.body>700)return(0,a.jsxs)("section",{ref:I,className:"yle__article__content",children:[(0,a.jsx)(u.o,{markdown:s??m??""}),(0,a.jsx)(Ha,{href:`/a/${f}`,children:j("openFullStory")})]})}const _=v&&!w;return(0,a.jsxs)(a.Fragment,{children:[k&&(0,a.jsx)(k,{}),(0,a.jsxs)("div",{ref:I,children:[i&&(0,a.jsx)(g.m,{children:(0,a.jsx)(i,{})}),(0,a.jsxs)("section",{className:"yle__article__content",children:[_&&(0,a.jsx)(d.I,{}),l.map((e,t)=>(0,a.jsx)(p.l,{block:e,children:(0,a.jsx)(Na,{block:e})},`article_content_${t}`))]})]}),t&&(0,a.jsx)(h,{children:(0,a.jsx)(t,{})})]})}},4372(e,t,i){i.d(t,{l:()=>d,$:()=>c});var a=i(11684),n=(i(35508),i(12888),i(3560)),r=(i(1061),i(92852),i(27528)),o=(i(97700),i(44832));const l=o.I4.div.withConfig({componentId:"aw__sc-1u2gppd-0"})(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",margin:`0 ${t.article.spacing.spacing16}`,[t.article.breakpoint.M]:{margin:`0 ${t.article.spacing.spacing24}`}}}),s=o.I4.div.withConfig({componentId:"aw__sc-1u2gppd-1"})(e=>{let{theme:t,$widthType:i}=e;return{maxWidth:i??c.defaultArticle,width:"100%",position:"relative",[t.article.breakpoint.M]:{padding:i&&[c.featureWideMedia,c.full].includes(i)?void 0:`0 ${t.article.spacing.spacing40}`}}}),c={featureArticle:"672px",defaultArticle:"680px",featureWideMedia:"878px",full:"100%"},d=e=>{let{children:t,block:i}=e;const{articleInfo:{isJournalisticStyleFeature:o,isVerticalMultimediaArticle:d}}=(0,r.o6)();if(o||d){const e=d?c.defaultArticle:(e=>e?"scrollover-pages"===e.type?c.full:"image"===e.type&&e.aspect>1||"video"===e.type&&(0,n.Pm)(e)>1?c.featureWideMedia:c.featureArticle:c.featureArticle)(i);return(0,a.jsx)(l,{children:(0,a.jsx)(s,{$widthType:e,children:t})})}return t}},15201(e,t,i){const a=i(44832).I4.div.withConfig({componentId:"aw__sc-u8zwhm-0"})(e=>{let{theme:t,$centered:i,$wrapped:a}=e;return{display:"flex",flexDirection:i?"column":"row",justifyContent:"space-between",alignItems:"center",marginBottom:t.article.spacing.spacing24,flexWrap:a?"wrap":"nowrap"}});i.d(t,["o",0,a])},18710(e,t,i){i.d(t,{y:()=>m});i(97700);var a=i(11684),n=(i(35508),i(12888),i(1061),i(92852),i(43839)),r=i(1012),o=i(87266),l=i(23582),s=i(51595),c=i(83462);var d=i(27528),u=i(75929),p=i(99683),h=i(29943),g=i(13703);const m=e=>{let{centeredCaption:t,imageBreakpoints:i,isShortArticle:m}=e;const{articleInfo:{isJournalisticStyleFeature:f,isJournalisticStyleOpinion:b,isChatArticle:x,isLivefeedArticleFormat:v},enabledBlocks:y}=(0,d.o6)(),w=(()=>{const{data:{mainMedia:e},locale:t}=(0,c.o6)(),{header:i}=(0,s.Iq)(),a=e?.at(0);return a?"image"===a.type?(0,r.oe)(a,[],[]).block:a:i?.media?"image"===i.media.type?(0,l.P)((0,r.$i)(i.media,[]).block,t):(0,o.W0)(i.media):void 0})();if(!w)return;const k=b&&!m||x,j=f&&!m||x,I=f||x||v,_=y.includes("image"),C=y.includes("video"),S=y.includes("audio");switch(w.type){case"image":return _?(0,a.jsx)(p.D,{block:w,centeredCaption:t,imageBreakpoints:i,isMainMedia:!0,lazyLoad:!1,noCaption:k,noMargin:j,noTopMargin:!0}):(0,a.jsx)(h.A,{block:w});case"video":case"elava-arkisto-video":{const e="video"===w.type?w:(0,n.Q)(w),i={...e,playbackBehaviour:f?"illustrational":e.playbackBehaviour};return C?(0,a.jsx)(g.F,{block:i,darkBackground:!f,noCaption:k,noMargin:j,noTopMargin:I,centeredCaption:t}):(0,a.jsx)(h.A,{block:w})}case"audio":return S?(0,a.jsx)(u.Y,{block:w,isMainMedia:!0,centeredCaption:t}):(0,a.jsx)(h.A,{block:w});default:return null}}},67472(e,t,i){i.d(t,{e:()=>u});var a=i(11684),n=i(27528),r=i(82252),o=i(85606),l=i(65241),s=i(59435),c=i(73892);const d=e=>{let{modified:t,published:i}=e;const{t:n}=(0,l.B)(),d=(0,s.x)(i),u=(0,s.x)(t);return(0,a.jsxs)(c.mO,{className:"yle__article__date",children:[i&&(0,a.jsx)(c.QG,{className:"yle__article__date--published",dateTime:(0,r.x)((0,o.H)(i)),children:d}),t&&t!==i&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.cL,{"aria-hidden":!0,
1children:"•"}),(0,a.jsxs)(c.QG,{className:"yle__article__date--modified",dateTime:(0,r.x)((0,o.H)(t)),children:[n("modified")," ",u]})]})]})},u=()=>{const{data:{dateContentModified:e,datePublished:t}}=(0,n.o6)();return(0,a.jsx)(d,{modified:e,published:t})}},35798(e,t,i){var a=i(11684),n=i(27528);i.d(t,["m",0,e=>{let{isShortArticle:t,children:i}=e;const{articleInfo:{isFullScreenArticle:r}}=(0,n.o6)();return r&&!t?null:(0,a.jsx)("header",{className:"yle__article__header",children:i})}])},5649(e,t,i){i.d(t,{r:()=>r});var a=i(11684);const n=i(44832).I4.div.withConfig({componentId:"aw__sc-1q2g2ep-0"})({width:"100%",height:"100%"}),r=e=>{let{children:t,ylePlayerRef:i}=e;return(0,a.jsx)(n,{ref:i,"data-testid":"video-player",children:t})}},75929(e,t,i){i.d(t,{Y:()=>B});var a=i(11684),n=i(65241),r=(i(35508),i(12888)),o=i(76577),l=(i(1061),i(60470)),s=i(41982),c=(i(92852),i(27528)),d=i(14144),u=i(35611),p=i(79484),h=i(63476),g=i(63518);const m=e=>{let{block:t}=e;const i={"@type":"AudioObject",description:t.caption,copyrightHolder:t.source};return(0,a.jsx)(g.Y,{data:i,dataKey:"audio"})};var f=i(41783),b=i(43828),x=i(77219),v=i(97329);const y=e=>{let{block:t}=e;const i=(0,r.useRef)(null),n=(0,b.y)(),o=(0,f.P)({block:t,autoplayEnabled:n}),l=(0,x.Hv)({element:i,ylePlayerParams:o});return(0,v.u)({isVideo:!1,actions:l}),(0,a.jsx)("div",{ref:i})};var w=i(90326),k=i(44832);const j=k.I4.figure.withConfig({componentId:"aw__sc-1td3why-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing24,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing32}}}),I=k.I4.div.withConfig({componentId:"aw__sc-1td3why-1"})(e=>{let{theme:t}=e;return{backgroundColor:t.article.color.backgroundVariant,borderRadius:t.article.radius.medium,padding:t.article.spacing.spacing16,[t.article.breakpoint.M]:{padding:t.article.spacing.spacing24}}}),_=k.I4.div.withConfig({componentId:"aw__sc-1td3why-2"})({display:"flex",flexDirection:"row",justifyContent:"space-between"}),C=k.I4.div.withConfig({componentId:"aw__sc-1td3why-3"})(e=>{let{theme:t}=e;return{minWidth:0,flexGrow:1,marginRight:t.article.spacing.spacing12}}),S=k.I4.div.withConfig({componentId:"aw__sc-1td3why-4"})({maxWidth:"50%",flexShrink:0}),T=k.I4.strong.withConfig({componentId:"aw__sc-1td3why-5"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultMBold,color:t.article.color.textDefault,[t.article.breakpoint.M]:{...t.article.typography.defaultLBold}}}),A=k.I4.div.withConfig({componentId:"aw__sc-1td3why-6"})(e=>{let{theme:t}=e;return{marginTop:t.article.spacing.spacing16}}),L=k.I4.div.withConfig({componentId:"aw__sc-1td3why-7"})({overflow:"hidden",position:"relative"}),$={S:{aspectRatio:1,maxWidth:u.T.S.audioPlayer},M:{aspectRatio:1,maxWidth:u.T.M.audioPlayer}},M=e=>{let{block:t,programData:i}=e;const{isArseInNative:r,inAppAudioPlayerInArseEnabled:o}=(0,c.o6)(),{t:l}=(0,n.B)();if(r&&o){const e=(0,s.L)(t,i),n=(0,s.p)(t,i),r=l("listen"),o=()=>{(0,d.f)({type:"areena",id:t.id,duration:e,title:i?.title,imageId:i?.imageId,offsetSeconds:t.offsetSeconds})};return(0,a.jsx)(p.w,{text:r,duration:e,onClick:o,disabled:!n})}return(0,a.jsx)(y,{block:t})},B=e=>{let{block:t,isMainMedia:i=!1,centeredCaption:n}=e;const r=(0,l.g)(t),s=(0,o.DW)(t,r),c=r?.title;return(0,a.jsxs)(j,{className:"yle__article__figure",children:[(0,a.jsx)(m,{block:t}),i?(0,a.jsxs)(a.Fragment,{children:[s&&(0,a.jsx)(L,{children:(0,a.jsx)(w.w,{image:s})}),(0,a.jsxs)(I,{children:[c&&(0,a.jsx)(T,{children:c}),(0,a.jsx)(A,{children:(0,a.jsx)(M,{block:t,programData:r})})]})]}):(0,a.jsxs)(I,{children:[(0,a.jsxs)(_,{children:[(0,a.jsx)(C,{children:(0,a.jsx)(T,{children:r?.title})}),s&&(0,a.jsx)(S,{children:(0,a.jsx)(L,{children:(0,a.jsx)(w.w,{imageBreakpoints:$,image:s,roundedCorners:!0})})})]}),(0,a.jsx)(A,{children:(0,a.jsx)(M,{block:t,programData:r})})]}),(0,a.jsx)(h.N,{block:t,alignCenter:n,noHorizontalPadding:!0})]})}},52283(e,t,i){i.d(t,{o:()=>g});i(97700);var a=i(11684),n=i(25365),r=i(85606),o=i(12888),l=i(27528),s=i(35862),c=i(44832);const d=c.I4.div.withConfig({componentId:"aw__sc-15zqop8-0"})(e=>
1{let{theme:t,$isOld:i,$forceLightTheme:a,$noMargin:n}=e;return{position:"relative",zIndex:1,marginBottom:n?0:t.article.spacing.spacing24,...a&&{background:t.article.color.white,color:t.article.color.black},...i&&{"figure[id^='esi-']":{clear:"both",marginBottom:"20px"},"[id^='esi-']":{lineHeight:1.35,fontSize:"17px"},"[id^='esi-'] h1, [id^='esi-'] h2, [id^='esi-'] h3, [id^='esi-'] h4, [id^='esi-'] h5, [id^='esi-'] h6":{fontWeight:700,lineHeight:1.4,marginBottom:"20px"},"[id^='esi-'] h3":{fontSize:"20px"},"[id^='esi-'] strong, [id^='esi-'] b":{fontWeight:700},"[id^='esi-'] em, [id^='esi-'] i":{fontStyle:"italic"},"[id^='esi-'] em.fa, [id^='esi-'] i.fa":{fontStyle:"normal"},"[id^='esi-'] a":{color:"#2b7ac8",textDecoration:"none"},"[id^='esi-'] img, [id^='esi-'] video":{maxWidth:"100%",height:"auto",display:"block"},"[id^='esi-'] p":{fontWeight:300,marginBottom:"0.85em"},"[id^='esi-'] blockquote":{borderBottom:"1px solid #d3d7da",borderTop:"1px solid #d3d7da",clear:"both",marginBottom:"0.85em",width:"100%",padding:"15px 0"},"[id^='esi-'] blockquote .quote":{color:"#000000",fontSize:"16px",fontWeight:700,lineHeight:"21px",margin:"5px auto",textAlign:"center"},"[id^='esi-'] ul, [id^='esi-'] ol":{fontWeight:300,listStylePosition:"outside",marginBottom:"0.85em"},"[id^='esi-'] ul li, [id^='esi-'] ol li":{marginBottom:0,lineHeight:1.2},"[id^='esi-'] ul":{listStyleType:"disc",paddingLeft:"1em"},"[id^='esi-'] ol":{listStyleType:"decimal",paddingLeft:"2em"},"[id^='esi-'] .writers":{marginBottom:"0.85em",paddingLeft:0},"[id^='esi-'] .writers li":{listStyleType:"none",fontSize:"12px",marginBottom:"0.85em",position:"relative"},"[id^='esi-'] .writers li.with-image":{minHeight:"60px",paddingLeft:"80px"},"[id^='esi-'] .writers li.with-image img":{borderRadius:t.article.radius.full,left:0,position:"absolute",top:0},"[id^='esi-'] .writers li .author":{color:"#000000",cursor:"default",display:"block",marginTop:"5px"},"[id^='esi-'] .writers li .organization":{display:"block",fontWeight:700},"[id^='esi-'] .writers li .twitter":{display:"block"},"[id^='esi-'] figcaption":{color:"#797979",fontSize:"0.85em",lineHeight:1.42,marginLeft:"2px",marginTop:"5px"},"[id^='esi-'] figcaption > .caption":{marginRight:"5px"},"[id^='esi-'] figure":{clear:"both",marginBottom:"20px"},"[id^='esi-'] table":{borderCollapse:"collapse",borderSpacing:0,display:"block",textAlign:"left",position:"relative",overflowX:"auto",width:"100%"},"[id^='esi-'] table td, [id^='esi-'] table th":{border:"1px solid #e1e1e1",padding:"1em"}}}}),u=c.I4.div.withConfig({componentId:"aw__sc-w6q7vt-0"})(e=>{let{$isEnetpulseWidget:t}=e;return{...t?{".wff_widget":{minWidth:"auto !important"}}:{}}}),p=e=>{let{block:t}=e;const{htmlContent:i,parameters:n}=t,r=(0,o.useMemo)(()=>({__html:i??""}),[i]);if(!r.__html)return;const l=n?Object.fromEntries(n.map(e=>[e.name,e.value])):void 0,s=t.parameters?.some(e=>e.value.includes("widget.enetscores.com"));return(0,a.jsx)(u,{$isEnetpulseWidget:s,className:"yle__article__externalContent__html","data-yle-external-content-parameters":JSON.stringify(l),dangerouslySetInnerHTML:r})},h=()=>{const{baseUrls:e}=(0,l.o6)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:'window.Modernizr=function(ah,ag,af){function F(b){Y.cssText=b}function E(d,c){return F(V.join(d+";")+(c||""))}function S(d,c){return typeof d===c}function Q(d,c){return !!~(""+d).indexOf(c)}function O(g,c,j){for(var i in g){var h=c[g[i]];if(h!==af){return j===!1?g[i]:S(h,"function")?h.bind(j||c):h}}return !1}var ae="2.7.1",ad={},ac=!0,ab=ag.documentElement,aa="modernizr",Z=ag.createElement(aa),Y=Z.style,X,W={}.toString,V=" -webkit- -moz- -o- -ms- ".split(" "),U={svg:"http://www.w3.org/2000/svg"},T={},R={},P={},N=[],M=N.slice,K,J=function(v,u,t,s){var r,q,p,o,h=ag.createElement("div"),g=ag.body,b=g||ag.createElement("body");if(parseInt(t,10)){while(t--){p=ag.createElement("div"),p.id=s?s[t]:aa+(t+1),h.appendChild(p)}}return r=["&#173;",\'<style id="s\',aa,\'">\',v,"</style>"].join(""),h.id=aa,(g?h:b).innerHTML+=r,b.appendChild(h),g||(b.style.background="",b.style.overflow="hidden",o=ab.style.overflow,ab.style.overflow="hidden",ab.appendChild(b)),q=u(h,v),g?h.parentNode.removeChild(h):(b.parentNode.removeChild(b),ab.style.overflow=o),!!q},I=function(a){var f=ah.matchMedia||ah.msMatchMedia;if(f){return f(a).matches}var e;return J("@media "+a+" { #"+aa+" { position: absolute; } }",function(c){e=(ah.getComputedStyle?getComputedStyle(c,null):c.currentStyle)["position"]=="absolute"}),e},H={}.hasOwnProperty,G;!S(H,"undefined")&&!S(H.call,"undefined")?G=function(d,c){return H.call(
1d,c)}:G=function(d,c){return c in d&&S(d.constructor.prototype[c],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(a){var h=this;if(typeof h!="function"){throw new TypeError}var g=M.call(arguments,1),f=function(){if(this instanceof f){var b=function(){};b.prototype=h.prototype;var d=new b,c=h.apply(d,g.concat(M.call(arguments)));return Object(c)===c?c:d}return h.apply(a,g.concat(M.call(arguments)))};return f}),T.touch=function(){var a;return"ontouchstart" in ah||ah.DocumentTouch&&ag instanceof DocumentTouch?a=!0:J(["@media (",V.join("touch-enabled),("),aa,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(b){a=b.offsetTop===9}),a},T.fontface=function(){var b;return J(\'@font-face {font-family:"font";src:url("https://")}\',function(k,j){var i=ag.getElementById("smodernizr"),h=i.sheet||i.styleSheet,a=h?h.cssRules&&h.cssRules[0]?h.cssRules[0].cssText:h.cssText||"":"";b=/src/i.test(a)&&a.indexOf(j.split(" ")[0])===0}),b},T.svg=function(){return !!ag.createElementNS&&!!ag.createElementNS(U.svg,"svg").createSVGRect};for(var L in T){G(T,L)&&(K=L.toLowerCase(),ad[K]=T[L](),N.push((ad[K]?"":"no-")+K))}return ad.addTest=function(e,c){if(typeof e=="object"){for(var f in e){G(e,f)&&ad.addTest(f,e[f])}}else{e=e.toLowerCase();if(ad[e]!==af){return ad}c=typeof c=="function"?c():c,typeof ac!="undefined"&&ac&&(ab.className+=" "+(c?"":"no-")+e),ad[e]=c}return ad},F(""),Z=X=null,ad._version=ae,ad._prefixes=V,ad.mq=I,ad.testStyles=J,ab.className=ab.className.replace(/(^|s)no-js(s|$)/,"$1$2")+(ac?" js "+N.join(" "):""),ad}(this,this.document),function(ab,aa){function Q(f,e){var h=f.createElement("p"),g=f.getElementsByTagName("head")[0]||f.documentElement;return h.innerHTML="x<style>"+e+"</style>",g.insertBefore(h.lastChild,g.firstChild)}function P(){var b=I.elements;return typeof b=="string"?b.split(" "):b}function O(d){var c=S[d[U]];return c||(c={},T++,d[U]=T,S[T]=c),c}function N(b,h,f){h||(h=aa);if(R){return h.createElement(b)}f||(f=O(h));var e;return f.cache[b]?e=f.cache[b].cloneNode():W.test(b)?e=(f.cache[b]=f.createElem(b)).cloneNode():e=f.createElem(b),e.canHaveChildren&&!X.test(b)&&!e.tagUrn?f.frag.appendChild(e):e}function M(b,l){b||(b=aa);if(R){return b.createDocumentFragment()}l=l||O(b);var k=l.frag.cloneNode(),j=0,i=P(),h=i.length;for(;j<h;j++){k.createElement(i[j])}return k}function K(d,c){c.cache||(c.cache={},c.createElem=d.createElement,c.createFrag=d.createDocumentFragment,c.frag=c.createFrag()),d.createElement=function(a){return I.shivMethods?N(a,d,c):c.createElem(a)},d.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+P().join().replace(/w+/g,function(b){return c.createElem(b),c.frag.createElement(b),\'c("\'+b+\'")\'})+");return n}")(I,c.frag)}function J(b){b||(b=aa);var d=O(b);return I.shivCSS&&!V&&!d.hasCSS&&(d.hasCSS=!!Q(b,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),R||K(b,d),b}function E(h){var g,l=h.getElementsByTagName("*"),k=l.length,j=RegExp("^(?:"+P().join("|")+")$","i"),i=[];while(k--){g=l[k],j.test(g.nodeName)&&i.push(g.applyElement(D(g)))}return i}function D(g){var f,j=g.attributes,i=j.length,h=g.ownerDocument.createElement(G+":"+g.nodeName);while(i--){f=j[i],f.specified&&h.setAttribute(f.nodeName,f.nodeValue)}return h.style.cssText=g.style.cssText,h}function C(h){var g,l=h.split("{"),k=l.length,j=RegExp("(^|[\\s,>+~])("+P().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),i="$1"+G+"\\:$2";while(k--){g=l[k]=l[k].split("}"),g[g.length-1]=g[g.length-1].replace(j,i),l[k]=g.join("}")}return l.join("{")}function B(d){var c=d.length;while(c--){d[c].removeNode()}}function L(i){function j(){clearTimeout(m._removeSheetTimer),h&&h.removeNode(!0),h=null}var h,n,m=O(i),l=i.namespaces,k=i.parentWindow;return !F||i.printShived?i:(typeof l[G]=="undefined"&&l.add(G),k.attachEvent("onbeforeprint",function(){j();var r,q,p,o=i.styleSheets,g=[],c=o.length,b=Array(c);while(c--){b[c]=o[c]}while(p=b.pop()){if(!p.disabled&&H.test(p.media)){try{r=p.imports,q=r.length}catch(a){q=0}for(c=0;c<q;c++){b.push(r[c])}try{g.push(p.cssText)}catch(a){}}}g=C(g.reverse().join("")),n=E(i),h=Q(i,g)}),k.attachEvent("onafterprint",function(){B(n),clearTimeout(m._removeSheetTimer),m._removeSheetTimer=setTimeout(j,500)}),i.printShived=!0,i)}var Z="3.7.0",Y=ab.html5||{},X=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,W=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,V,U="_html5shiv",T=0,S={},R;(function(){try{var b=aa.createElement("a");b.innerHTML="<xyz></xyz>",V="hidden" in b,R=b.childNodes.length==1||function(){aa.createElement("a");var c=aa.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()}catch(d){V=!0,R=!0}})();var I={elements:Y.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:Z,shivCSS:Y.shivCSS!==!1,supportsUnknownElements:R,shivMethods:Y.shivMethods!==!1,type:"default",shivDocument:J,createElement:N,createDocumentFragment:M};ab.html5=I,J(aa);var H=/^$|\b(?:all|print)\b/,G="html5shiv",F=!R&&function(){var a=aa.documentElement;return typeof aa.namespaces!="undefined"&&typeof aa.parentWindow!="undefined"&&typeof a.applyElement!="undefined"&&typeof a.removeNode!="undefined"&&typeof ab.attachEvent!="undefined"}();
1I.type+=" print",I.shivPrint=L,L(aa)}(this,document);'}}),(0,a.jsx)("script",{type:"text/javascript",src:`${e.articleStaticAssets}/jquery-3.5.1.min.js`}),(0,a.jsx)("script",{type:"text/javascript",src:`${e.articleStaticAssets}/lodash-4.17.21.min.js`})]})},g=e=>{let{block:t,isLivefeed:i=!1}=e;const{css:c,htmlContent:u,scripts:g,darkModeCss:m,supports:f}=t,{data:{datePublished:b},themeMode:x,includeExternalContentCss:v,articleInfo:{hasWideEsiLayout:y}}=(0,l.o6)(),w=(0,o.useRef)(!1),k=v||i;if((0,o.useEffect)(()=>{const e=(e=>{if(e){const t=/class="plus-app plus-app-(.+)"/.exec(e);if(t)return t.at(1)}return null})(u);if(!w.current){if(w.current=!0,!u)return;g?.forEach(e=>{const t=(0,s.n)("script",{src:e});t.async=!1,f?.includes("esmodules")&&(t.type="module"),(0,s.Oc)(t)})}return()=>{e&&window.plusApp?.[e]&&delete window.plusApp[e]}},[u,g,f]),!u)return;const j=(0,n.Y)((0,r.H)(b),new Date("2019-01-01")),I="default"===x?"screen and (prefers-color-scheme: dark)":void 0,_="light"!==x&&!f?.includes("darkmode");return(0,a.jsxs)(d,{className:"yle__article__externalContent",$isOld:j,$forceLightTheme:_,$noMargin:y,children:[k&&c?.map((e,t)=>(0,a.jsx)("link",{rel:"stylesheet",type:"text/css",href:e},`stylesheet-${t}`)),k&&"light"!==x&&m?.map((e,t)=>(0,a.jsx)("link",{rel:"stylesheet",type:"text/css",href:e,media:I},`stylesheet-dark-${t}`)),(0,a.jsx)(p,{block:t}),j&&(0,a.jsx)(h,{})]})}},69670(e,t,i){i.d(t,{U:()=>h});var a=i(11684),n=i(65241),r=(i(35508),i(12888)),o=i(47084),l=(i(1061),i(92852),i(69813)),s=i(27528);var c=i(57866);const d=i(44832).I4.div.withConfig({componentId:"aw__sc-1d1r5zc-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),u=(0,r.lazy)(async()=>({default:(await Promise.all([i.e(342),i.e(589)]).then(()=>i(56589))).FormsRenderer})),p=()=>{const{t:e}=(0,n.B)();return(0,a.jsx)(l.E,{level:"error",title:e("formLoadingFailed")})},h=e=>{let{block:t}=e;const{appId:i,themeMode:n,locale:l,baseUrls:h,formsApiAppKey:g,data:{id:m}}=(0,s.o6)(),f=(()=>{const[e,t]=(0,r.useState)(),{yleTunnus:i}=(0,s.o6)();return(0,r.useEffect)(()=>{i&&(async()=>{const e=await i();t(e)})()},[i]),e})(),b=(0,r.useRef)(null);if(g)return(0,a.jsx)(c.X,{entityType:"form",id:t.formId,elementRef:b,children:(0,a.jsx)(d,{ref:b,children:(0,a.jsx)(o.t,{errorView:(0,a.jsx)(p,{}),children:(0,a.jsx)(r.Suspense,{children:(0,a.jsx)(u,{id:t.formId,appId:i,theme:n,language:l,apiBaseUrl:h.formsApi,appKey:g,yleContentId:m,usePlaceholder:"collapsed"===t.behaviour,tunnus:f})})})})})}},99683(e,t,i){i.d(t,{D:()=>u});var a=i(11684),n=i(27528),r=i(35611),o=i(59448),l=i(43080),s=i(74296);const c=e=>{let{block:t,children:i}=e;const{getCustomImagePath:r}=(0,n.o6)();return r?(0,a.jsx)(s.i,{alt:t.alt,src:r(t)}):(0,a.jsx)(l.r,{block:t,children:i})};var d=i(90326);const u=e=>{let{block:t,noCaption:i,noMargin:l,noTopMargin:s,centeredCaption:u,imageBreakpoints:p,isMainMedia:h,lazyLoad:g=!0}=e;const{showImages:m,getCustomImagePath:f,forcedAspectRatioForCustomPathImages:b,articleInfo:{isJournalisticStyleFeature:x}}=(0,n.o6)();if(!m)return null;const v=x?r.T.M.journalisticStyleFeature:r.T.M.columnWidth,y=f?{S:{aspectRatio:b??t.aspect,maxWidth:r.T.S.columnWidth},M:{aspectRatio:b??t.aspect,maxWidth:r.T.M.columnWidth}}:p??{S:{aspectRatio:t.aspect,maxWidth:r.T.S.columnWidth},M:{aspectRatio:t.aspect,maxWidth:v}};return(0,a.jsx)(o.D,{block:t,noCaption:i,noMargin:l,noTopMargin:s,imageBreakpoints:y,centeredCaption:u,children:(0,a.jsx)(c,{block:t,children:(0,a.jsx)(d.w,{imageBreakpoints:y,image:t,lazyLoad:g,noPlaceholder:h})})})}},90326(e,t,i){i.d(t,{w:()=>I});var a=i(11684),n=(i(35508),i(12888)),r=i(76577),o=i(76745),l=(i(1061),i(92852),i(27528)),s=i(30378),c=i(34820),d=i(24531),u=i(62351);const p=[2,1],h=e=>"M"===e?u.lC:void 0,g=(e,t,i,a)=>p.map(n=>`${(0,d.QM)(e,{...t,dpr:n},i,a)} ${n}x`).join(","),m=(e,t,i,a,n)=>{const r=e[t];if(r)return{key:t,srcSet:g(i,(0,o.e7)({...r,dpr:a}),n),media:h(t)}};var f=i(35611);var b=i(66837);var x=i(44832);const v=x.I4.canvas.withConfig({componentId:"aw__sc-1swowdk-0"})(e=>{let{theme:t,$backgroundSizeS:i,$backgroundSizeM:a}=e;return{backgroundRepeat:"no-repeat",backgroundSize:i,backgroundPosition:"center",position:"absolute",width:"100%",height:"100%",[t.article.breakpoint.M]:{backgroundSize:a}}}),y=e=>e?.height&&e.width?`${e.width}px ${e.height}px`:null,w=e=>{let{block:t,disabled:i,imageBreakpoints:r}=e;const l=(0,s.Y)(),c=t.aspect<1,d=Math.round(32/(c?1:t.aspect)),u=Math.round(32*(c?t.aspect:1)),p=(0,n.useCallback)(e=>{e&&function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:32,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:18;const n=(e=>e.blurhash??"U5Nm.*?bfQ?b~qj[fQj[fQfQfQfQ~qj[fQj[")(t),r=e.getContext("2d");if(!r||!(0,b.O5)(n).result)return;const o=(0,b.D4)(n,i,a,1);e.width=i,e.height=a;const l=r.createImageData(i,a);l.data.set(o),r.putImageData(l,0,0)}(e,t,u,d)}
1,[t,d,u]),h={S:r?.S&&(0,o.e7)({...r.S,dpr:l}),M:r?.M&&(0,o.e7)({...r.M,dpr:l})},g=y(h.S),m=y(h.M);if(g&&m&&!i)return(0,a.jsx)(v,{ref:p,$backgroundSizeS:g,$backgroundSizeM:m})},k=x.I4.div.withConfig({componentId:"aw__sc-obc018-0"})(e=>{let{theme:t,$position:i,$roundedCorners:a,$stretch:n}=e;return{position:i,borderRadius:a?t.article.radius.medium:t.article.radius.none,width:n?"100%":void 0,height:n?"100%":void 0,overflow:"hidden"}});var j=i(74296);const I=e=>{let{children:t,format:i,image:d,imageBreakpoints:p,lazyLoad:h,noPlaceholder:g,onLoad:b,position:x,roundedCorners:v,stretch:y}=e;const[I,_]=(0,n.useState)(!1),[C,S]=(0,n.useState)(!1),{data:{language:T},baseUrls:{imageCdn:A}}=(0,l.o6)(),L=(0,s.Y)(),$=p??{S:{aspectRatio:d.aspect,maxWidth:f.T.S.columnWidth}},M=I||""===d.id?o.XS:d,B="svg"!==i?(e=>{let{imageBreakpoints:t,block:i,dpr:a,baseUrl:n}=e;return[m(t,"M",i,a,n),m(t,"S",i,a,n)].filter(c.E)})({imageBreakpoints:$,block:M,dpr:L,baseUrl:A}):[],E=(0,r.tc)(M,T),P=(0,n.useCallback)(()=>{_(!0)},[]),D=(0,n.useCallback)(()=>{S(!0),b?.()},[b]),R=(0,f.G)({error:I,image:M,dpr:L,maxWidth:(0,u.T_)($)??f.T.S.columnWidth,format:i,baseUrl:A}),F=(0,n.useCallback)(e=>{e?.complete&&D()},[D]),O=g??C;return(0,a.jsxs)(k,{$position:x,$roundedCorners:v,$stretch:y,children:[(0,a.jsx)(w,{block:M,disabled:O,imageBreakpoints:$}),(0,a.jsxs)("picture",{children:[B.map(e=>(0,a.jsx)("source",{"data-testid":`source-for-${e.key}`,media:e.media,srcSet:e.srcSet},e.key)),t??(0,a.jsx)(j.i,{ref:F,onError:P,onLoad:D,alt:E,src:R,loading:h?"lazy":void 0,$stretch:y})]})]})}},74296(e,t,i){const a=i(44832).I4.img.withConfig({componentId:"aw__sc-dklauk-0"})(e=>{let{theme:t,$darkBackground:i,$stretch:a}=e;return{width:"100%",height:a?"100%":void 0,objectFit:a?"scale-down":void 0,display:"block",background:i?t.article.color.black:void 0}});i.d(t,["i",0,a])},84132(e,t,i){i.d(t,{J:()=>b});var a=i(11684),n=(i(35508),i(12888)),r=(i(1061),i(92852),i(87266));var o=i(93423),l=i(57866),s=i(44832);const c=s.I4.div.withConfig({componentId:"aw__sc-1f3k0gk-0"})(e=>{let{theme:t,$height:i}=e;return{position:"relative",marginBottom:t.article.spacing.spacing24,marginLeft:`-${t.article.spacing.spacing16}`,marginRight:`-${t.article.spacing.spacing16}`,paddingTop:t.article.spacing.spacing16,height:i?`${i}px`:void 0,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing32,marginLeft:0,marginRight:0}}});var d=i(65241),u=i(74338),p=i(62044);const h=(0,s.I4)(u.$).withConfig({componentId:"aw__sc-1yphi5n-0"})(e=>{let{theme:t}=e;return{...p.O,"&:focus, &:focus-within":{clip:"auto",height:"auto",width:"auto",margin:`0 0 ${t.article.spacing.spacing8} 0`,overflow:"visible",position:"relative"}}}),g=s.I4.span.withConfig({componentId:"aw__sc-1yphi5n-1"})(p.O),m=e=>{let{alt:t,children:i}=e;const{t:r}=(0,d.B)(),o=(0,n.useRef)(null),l=t?r("infogram.a11yAriaLabel",{alt:t}):r("infogram.a11yAriaLabel",{alt:""}).replace(/ - $/,""),s=(0,n.useCallback)(()=>{o.current?.focus()},[]);return(0,a.jsxs)("div",{role:"region","aria-label":l,children:[(0,a.jsx)(h,{onClick:s,text:r("infogram.a11ySkipContent"),size:"sm"}),i,(0,a.jsx)(g,{ref:o,tabIndex:-1,role:"note","aria-label":r("infogram.a11yAfterContent")})]})},f=e=>{let{block:t,elementRef:i}=e;const o=(e=>{if((0,r.HB)(e))return e.embed.html.replace(/<script[^>]*>[\s\S]*?<\/script>/gi,"");const{infogramId:t,alt:i}=e;return`\n     <div\n       class="infogram-embed"\n       data-id="${t}"\n       data-type="interactive"\n       data-title="${i??""}"\n     ></div>\n  `})(t),l=(0,n.useMemo)(()=>({__html:o}),[o]),s="alt"in t?t.alt??"":"";return(0,a.jsx)(m,{alt:s,children:(0,a.jsx)(c,{className:"yle__article__infogram",dangerouslySetInnerHTML:l,ref:i,"data-testid":"infogram-wrapper"})})},b=e=>{let{block:t}=e;const i=(e=>{if((0,r.HB)(e)){const t=/data-id="([^"]+)"/.exec(e.embed.html),i=t?.at(1);return i}return e.infogramId})(t),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{void 0===window.InfogramEmbeds?(0,o.pc)("infogram"):window.InfogramEmbeds.process()},[]),i?(0,a.jsx)(l.X,{entityType:"infogram",id:i,elementRef:s,children:(0,a.jsx)(f,{block:t,elementRef:s})}):(0,a.jsx)(f,{block:t,elementRef:s})}},33618(e,t,i){i.d(t,{W:()=>c});var a=i(11684),n=i(12888),r=i(27528),o=i(35862),l=i(57866);const s=i(44832).I4.div.withConfig({componentId:"aw__sc-1a593gh-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing24}}}),c=e=>{let{block:t}=e;const{baseUrls:i,themeMode:c}=(0,r.o6)(),d=(0,n.useRef)(null);return(0,n.useEffect)(()=>{const e=(0,o.n)("script",{src:`${i.interactionPlatformUrl}/embed.js`,type:"text/javascript",async:!0,id:"interaction-element-embed"});(0,o.qj)(e)},[i.interactionPlatformUrl]),(0,a.jsx)(l.X,{entityType:"choice",id:t.id,elementRef:d,children:(0,a.jsx)(s,{ref:d,"data-testid":"choice-wrapper",children:(0,a.jsx)("interaction-embed",{theme:c,id:t.id})})})}},73534(e,t,i){i.d(t,{j:()=>S,U:()=>C});var a=i(11684),n=(i(35508),i(12888));i(1061),i(92852);var r=i(26254),o=i(96352),l=i(58205),s=i(57866),c=i(19889),d=i(65241),u=i(82252),p=i(85606),h=i(3206),g=i(62044),m=i(73892),f=i(44832);const b=f.I4.div.withConfig({componentId:"aw__sc-mg4fi6-0"})(e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",margin:`0 -${t.article.spacing.spacing8}`,padding:`${t.article.spacing.spacing12} ${t.article.spacing.spacing8}`,zIndex:2}}),x=f.I4.time.withConfig({componentId:"aw__sc-mg4fi6-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultXs,color:t.article.color.textDefault,display:"block",zIndex:2}}),v=f.I4.div.withConfig({componentId:"aw__sc-mg4fi6-2"})(e=>{let{theme:t}=e;return{display:"flex",gap:`0 ${t.article.spacing.spacing12}`,alignItems:"center",marginBottom:`-${t.article.spacing.spacing24}`}}),y=e=>{let{link:t}=e;const{t:i}=(0,d.B)(),n=t.datePublished,r=t.subject,o=t.topic;if(r&&r.id!==o?.id||n)return(0,a.jsxs)(v,{children:[!!r&&r.id!==o?.id&&(0,a.jsx)(b,{children:(0,a.jsx)(c.B,{variant:"text",subject:r})}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Z,{children:(0,a.jsxs)(m.QG,{dateTime:(0,u.x)((0,p.H)(n)),children:[i("published")," ",(0,h.sL)(n,!0)]})}
1),(0,a.jsx)(x,{"aria-hidden":!0,children:(0,h.sL)(n)})]})]})},w=f.I4.div.withConfig({componentId:"aw__sc-1d9fo1n-0"})(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",flexGrow:"1",justifyContent:"space-between",paddingBottom:t.article.spacing.spacing8}}),k=f.I4.h3.withConfig({componentId:"aw__sc-1d9fo1n-1"})(e=>{let{theme:t}=e;return{...t.article.typography.defaultMBold,[t.article.breakpoint.M]:{...t.article.typography.defaultLBold}}}),j=f.I4.a.withConfig({componentId:"aw__sc-1d9fo1n-2"})(e=>{let{theme:t}=e;return{color:t.article.color.textDefault,textDecoration:"none","&::after":{content:'""',position:"absolute",inset:"0px",zIndex:1}}}),I=f.I4.div.withConfig({componentId:"aw__sc-1d9fo1n-3"})(e=>{let{theme:t}=e;return{alignItems:"center",display:"flex",margin:`-${t.article.spacing.spacing8} -${t.article.spacing.spacing8} 0`,padding:`${t.article.spacing.spacing8} ${t.article.spacing.spacing8} ${t.article.spacing.spacing12}`,position:"relative",zIndex:2}}),_=e=>{let{link:t,isFirst:i,trackAsArticleLift:d=!1}=e;const{external:u,title:p}=t,{sendClickEvent:h}=(0,r.C)(),[g,m]=(0,n.useState)(),f=u?.source,b=t.topic,x=(e=>e.headline?.image?e.headline.image:e.headline?.video?e.headline.video.image:void 0)(t),v=t.internal?.id,_=d&&!!v;return(0,a.jsxs)(s.X,{entityType:"article",viewMode:"lift",id:v??"",wrapper:{type:"list",label:"more-on-the-subject"},onEventSuccess:m,enabled:_,children:[!i&&(0,a.jsx)(o.Hr,{noMarginHorizontal:!0}),(0,a.jsx)(l.V,{role:"listitem",image:x,source:f,children:(0,a.jsxs)(w,{children:[!!b&&(0,a.jsx)(I,{children:(0,a.jsx)(c.B,{subject:b})}),(0,a.jsx)(k,{children:(0,a.jsx)(j,{href:u?.url,onClick:()=>{_&&g&&h({viewId:g,action:"link"})},children:p})}),(0,a.jsx)(y,{link:t})]})})]})},C=e=>{let{block:t,trackAsArticleLift:i=!1}=e;return t.links.map((e,t)=>(0,a.jsx)(_,{link:e,isFirst:0===t,trackAsArticleLift:i},`links-item-${t}`))},S=e=>{let{block:t}=e;return(0,a.jsx)("div",{className:"yle__article__links",role:"list",children:(0,a.jsx)(C,{block:t})})}},29943(e,t,i){var a=i(27528);i.d(t,["A",0,e=>{let{block:t}=e;const{renderMissingBlock:i}=(0,a.o6)(),n=i?.({block:t,type:t.type});return n}])},6474(e,t,i){i.d(t,{o:()=>f});var a=i(11684),n=i(7866),r=(i(35508),i(12888)),o=(i(1061),i(92852),i(39446)),l=i(93423);const s=i(44832).I4.div.withConfig({componentId:"aw__sc-lollp-0"})(e=>{let{theme:t}=e;return{marginBottom:t.article.spacing.spacing24,paddingTop:t.article.spacing.spacing8,blockquote:{color:t.article.color.textDefault,maxWidth:"540px",borderWidth:"1px",borderStyle:"solid",borderColor:t.article.color.borderSocialBlockquote,borderRadius:t.article.radius.large,padding:`${t.article.spacing.spacing12} ${t.article.spacing.spacing16} ${t.article.spacing.spacing8}`,...t.article.typography.defaultL,backgroundColor:t.article.color.backgroundSocialBlockquote,p:{marginBottom:t.article.spacing.spacing16},a:{color:t.article.color.textDefault}},iframe:{minWidth:"286px !important",colorScheme:"light"},[t.article.breakpoint.M]:{marginBottom:t.article.spacing.spacing32,paddingTop:t.article.spacing.spacing16}}}),c=e=>{let{block:t}=e;const{htmlContent:i,url:n,postingType:c}=t,d=i&&(0,o.wz)(i);(0,r.useEffect)(()=>{void 0===window.instgrm?(0,l.pc)("instagram"):window.instgrm.Embeds.process()},[]);const u=d??(0,o.dj)(n),p=(0,r.useMemo)(()=>({__html:u}),[u]);return"instagram"!==c?null:(0,a.jsx)(s,{className:"yle__article__somePosting",dangerouslySetInnerHTML:p})};i(99921);var d=i(65241),u=i(27528),p=i(2971),h=i(35862);const g=e=>{let{block:t}=e;const{htmlContent:i,postingType:n}=t,{locale:c,themeMode:g}=(0,u.o6)(),m=(0,p.t)(),{t:f}=(0,d.B)(),b=(0,r.useRef)(null),x="default"===g?m:g,v=f("twitterHtmlContentNotAvailable"),y=i&&(0,o.wz)(i),w=y??(x&&(0,o.KJ)(x,c,v)),k=(0,r.useMemo)(()=>({__html:w??""}),[w]);return(0,r.useEffect)(()=>{if(!y||!x)return;const e=document.querySelector("meta[name=twitter\\:widgets\\:theme]");e?e.setAttribute("content",x):(0,h.qj)((0,h.n)("meta",{name:"twitter:widgets:theme",content:x})),(()=>{if(void 0===window.twttr){const e=[],t=t=>e.push(t);window.twttr={_e:e,ready:t}}return(0,l.pc)("twitter"),window.twttr})().ready(e=>{e.widgets.load(b.current)})},[y,x]),"twitter"===n&&w?(0,a.jsx)(s,{"data-testid":"twitter-embed",ref:b,className:"yle__article__somePosting",dangerouslySetInnerHTML:k}
1):null},m=e=>{let{block:t}=e;const{postingType:i}=t;switch(i){case"twitter":return(0,a.jsx)(g,{block:t});case"instagram":return(0,a.jsx)(c,{block:t});default:return null}},f=e=>{let{block:t}=e;return(0,a.jsx)(n.u,{externalUrl:t.url,platform:t.postingType,children:(0,a.jsx)(m,{block:t})})}},21387(e,t,i){i.d(t,{b:()=>f});var a=i(11684),n=(i(35508),i(12888));i(1061),i(92852);const r={en:"en-US",fi:"fi-FI",ru:"fi-FI",se:"fi-FI",sv:"sv-FI",uk:"fi-FI"};var o=i(27528),l=i(35862),s=i(31805);var c=i(57866);const d=i(44832).I4.div.withConfig({componentId:"aw__sc-wfjoc8-0"})(e=>{let{theme:t,$marginTop:i}=e;return{marginTop:i?t.article.spacing.spacing40:void 0,marginBottom:t.article.spacing.spacing16,[t.article.breakpoint.M]:{marginTop:i?t.article.spacing.spacing48:void 0,marginBottom:t.article.spacing.spacing24}}});var u=i(65241),p=i(64126),h=i(55164);const g=()=>{const{t:e}=(0,u.B)();return(0,a.jsxs)(h.mO,{children:[(0,a.jsx)(p.D,{level:2,children:e("tehtavaFallbackUITitle")}),(0,a.jsx)(h.EY,{children:e("tehtavaFallbackUIInfoText")})]})},m={default:"auto",light:"off",dark:"on"},f=e=>{let{block:t}=e;
1const[i,u]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),f=(0,n.useRef)(null),{themeMode:b,baseUrls:x,locale:v,articleInfo:{isPlainLanguageArticleFormat:y}}=(0,o.o6)(),w=m[b],k=(e=>r[e])(v);if((0,n.useEffect)(()=>{const e=document.getElementById("tehtava-embed"),t=document.getElementById("tunnus-init");if(void 0===window.tehtavaApp&&null===e){const e=(0,l.n)("script",{src:`${x.tehtavaEmbed}/static/js/load-tehtava-embed.js`,type:"text/javascript",id:"tehtava-embed"});(0,l.qj)(e)}if(void 0===window.tehtavaApp&&null===t){const e=(0,l.n)("script",{src:`${x.tehtavaEmbed}/static/js/yleTunnusInit.js`,type:"text/javascript",id:"tunnus-init"});(0,l.qj)(e)}},[x.tehtavaEmbed,i]),(0,n.useEffect)(()=>{i||(async()=>{try{await(async e=>{let t;try{return await Promise.race([(0,s.w)(),new Promise(i=>{const a=()=>"undefined"!=typeof window&&!!window[e];t=setInterval(()=>{a()&&i(!0)},1e3),a()&&i(!0)})])}finally{clearInterval(t)}})("tehtavaApp"),u(!0)}catch{h(!0)}})()},[i]),(0,n.useEffect)(()=>{(async()=>{if(!i||!window.tehtavaApp)return;switch(t.type){case"tehtava-exam":{const e=t.id,i={darkMode:w,lang:k};await window.tehtavaApp.loadEmbed(),f.current&&window.tehtavaApp.mount(e,f.current,i);break}case"tehtava-assignment":await window.tehtavaApp.loadEmbed(),f.current&&window.tehtavaApp.mountAssignment(f.current,{darkMode:w,lang:k,yleId:t.id});break;case"tehtava-carousel":{if(!t.examId){h(!0);break}const e={darkMode:w,examId:t.examId,examType:"any",lang:k};await window.tehtavaApp.loadEmbed(),f.current&&window.tehtavaApp.mountCarousel(f.current,e);break}default:h(!0)}})()},[t,w,i,k]),p)return(0,a.jsx)(d,{$marginTop:y,children:(0,a.jsx)(g,{})});const j="tehtava-carousel"!==t.type?t.id:t.examId;return(0,a.jsx)(c.X,{id:j??"",entityType:"tehtava",elementRef:f,tehtavaEntityType:t.type,enabled:i&&void 0!==j,children:(0,a.jsx)(d,{$marginTop:y,children:(0,a.jsx)("div",{ref:f,"data-testid":"tehtava"})})})}},13703(e,t,i){i.d(t,{F:()=>v});var a=i(11684),n=(i(35508),i(12888)),r=i(3560),o=(i(1061),i(92852),i(27528)),l=i(59448),s=i(85626),c=i(41783),d=i(43828),u=i(77219),p=i(5649);const h=e=>{let{block:t}=e;const i=(0,d.y)(),r=(0,n.useRef)(null),o=(0,c.P)({block:t,autoplayEnabled:i});return(0,u.kj)({element:r,ylePlayerParams:o}),(0,a.jsx)("div",{children:(0,a.jsx)(p.r,{ylePlayerRef:r})})};var g=i(7877),m=i(12001),f=i(97329);const b=e=>{let{block:t}=e;const i=(0,d.y)(),r=(0,n.useRef)(null),o=(0,m.m)(r),{ref:l,inView:s}=(0,g.Wx)({threshold:o,skip:"autoplay"!==t.playbackBehaviour||!i}),h=(0,c.P)({block:t,autoplayEnabled:i}),b=(0,u.kj)({element:r,ylePlayerParams:h});return(0,f.u)({isVideo:!0,actions:b,isInView:s,playbackBehaviour:t.playbackBehaviour}),(0,a.jsx)("div",{ref:l,children:(0,a.jsx)(p.r,{ylePlayerRef:r})})},x=e=>{let{block:t}=e;return(0,s.q)(t)?(0,a.jsx)(b,{block:t}):(0,a.jsx)(h,{block:t})},v=e=>{let{block:t,darkBackground:i,noCaption:n,noMargin:s,noTopMargin:c,centeredCaption:d}=e;const{articleInfo:{isJournalisticStyleFeature:u}}=(0,o.o6)(),p=(0,r.sW)(t);return(0,a.jsx)(l.D,{aspectRatio:(0,r.Pm)(t),block:t,darkBackground:i&&p,noCaption:n,noCaptionPadding:!u&&p,noMargin:s,noTopMargin:c,padHorizontally:!u&&p,centeredCaption:d,children:(0,a.jsx)(x,{block:t})})}},27528(e,t,i){i(63773);var a=i(22923),n=i(72419),r=i(33377),o=i(12888);const l=(0,a.eU)(null);i.d(t,["KI",0,e=>{(0,r.RH)([[l,e]])},"N_",0,()=>{const e=(0,n.Xr)(l);return(0,o.useCallback)(t=>{e(t)},[e])},"o6",0,()=>{const e=(0,n.md)(l);if(!e)throw new Error("Article not initialized");return e}])},43828(e,t,i){var a=i(27528),n=i(18781);i.d(t,["y",0,()=>{const{autoplayEnabled:e}=(0,a.o6)(),t=(0,n.j)();if(void 0!==t)return e&&!t}])},54015(e,t,i){i(11684),i(35508);var a=i(12888),n=i(24545),r=(i(1061),i(92852),i(33836));i.d(t,["Z",0,()=>{const e=(0,n.Zl)(),t=(0,r.A)(),i=(0,n.QE)();return(0,a.useEffect)(()=>{t?.onChange(e=>{i(e)},{triggerWithInitialConsent:!0})},[i,t]),e}])},30378(e,t,i){i.d(t,{Y:()=>l});i(11684),i(35508);var a=i(12888);i(1061);i(92852);const n=()=>()=>null,r=()=>window.devicePixelRatio>=2?2:1,o=()=>1,l=()=>(0,a.useSyncExternalStore)(n,r,o)},59435(e,t,i){i.d(t,{x:()=>l});i(11684),i(35508);var a=i(12888),n=(i(1061),i(9067)),r=i(3206);i(92852);var o=i(27528);const l=e=>{const{showFullTimestamps:t,locale:i,ssrTime:l}=(0,o.o6)();return((e,t)=>{let{locale:i,showFullTimestamps:o,ssrTime:l}=t;return(0,a.useMemo)(()=>
1{if(!e)return;const t=l?(0,n.a)(l):void 0;return(0,r.Fs)(e,i,o,t)},[e,i,o,l])})(e,{locale:i,showFullTimestamps:t,ssrTime:l})}},96092(e,t,i){i.d(t,{K:()=>l});var a=i.cw(function(e,t){i(11187)({target:"Object",stat:!0},{hasOwn:i(71324)})}),n=(i(11684),i(35508),i(12888));i(1061);a();const r=e=>Object.hasOwn(e,"on");i(92852);var o=i(43828);const l=e=>((e,t)=>{const i=(0,n.useRef)(void 0),a=(0,n.useRef)(!1),o=(0,n.useRef)(!1),l=(0,n.useRef)(!1),s=(0,n.useRef)(!1),c=(0,n.useCallback)(n=>{if(n||t)return e?void(async()=>{if(a.current||i.current)return;const t=e.play();i.current=t,await t,a.current=!0,o.current=!1,i.current=void 0})():(l.current=!!n,void(o.current=!0))},[t,e]),d=(0,n.useCallback)(()=>{e?(async()=>{(a.current||i.current)&&(i.current&&await i.current,e.pause(),a.current=!1)})():o.current=!1},[e]),u=(0,n.useCallback)((t,i)=>{e&&r(e)&&e.on(t,i)},[e]);return(0,n.useEffect)(()=>{e&&o.current&&c(l.current)},[c,e]),(0,n.useEffect)(()=>{e&&r(e)&&!s.current&&(e.on("playing",()=>{a.current=!0}),s.current=!0)},[e]),(0,n.useMemo)(()=>({play:c,pause:d,on:u,isReady:!!e}),[c,d,u,e])})(e,(0,o.y)())},2971(e,t,i){var a=i(12888);const n="(prefers-color-scheme: dark)",r=e=>{const t=window.matchMedia(n);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},o=()=>window.matchMedia(n).matches?"dark":"light",l=()=>{};i.d(t,["t",0,()=>(0,a.useSyncExternalStore)(r,o,l)])},18781(e,t,i){var a=i(12888);const n="(prefers-reduced-motion: reduce)",r=e=>{const t=window.matchMedia(n);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},o=()=>window.matchMedia(n).matches,l=()=>{};i.d(t,["j",0,()=>(0,a.useSyncExternalStore)(r,o,l)])},70397(e,t,i){var a=i(12888),n=i(27528);i.d(t,["$",0,e=>{let{urlPath:t,excerpt:i}=e;const{data:r}=(0,n.o6)();return(0,a.useMemo)(()=>{const e=r.url.short??r.url.full;if(!e)return;const a=r.headline.short??r.headline.full,n=r.lead??r.shortSummary??r.summary??"";return{url:t?`${e}/${t}`:e,title:i??a,body:i?a:n}},[r,i,t])}])},26254(e,t,i){i.d(t,{C:()=>x});var a=i(12888),n=i(6625);function r(e){return{schema:"iglu:fi.yle.engagement/click/jsonschema/2-2-0",data:e}}const o="engagement_view_target",l=(e,t)=>{let{event:i,context:a}=e;t("trackSelfDescribingEvent",{event:i,context:a})},s=(e,t,i)=>"image"===e?{schema:"iglu:fi.yle.content/image/jsonschema/2-0-0",data:{image_id:t,predicate:o}}:"choice"===e?{schema:"iglu:fi.yle.content/choice/jsonschema/2-0-0",data:{choice_id:t,predicate:o}}:"infogram"===e?{schema:"iglu:fi.yle.content/infogram/jsonschema/2-1-0",data:{infogram_id:t,predicate:o}}:"grafomaten"===e?{schema:"iglu:fi.yle.content/grafomaten/jsonschema/2-0-0",data:{grafomaten_id:t,predicate:o}}:"interactive_table"===e?{schema:"iglu:fi.yle.content/interactive_table/jsonschema/2-1-0",data:{interactive_table_id:t,predicate:o}}:"form"===e?{schema:"iglu:fi.yle.content/form/jsonschema/2-0-0",data:{form_id:t,predicate:o}}:"tehtava"===e&&i?{schema:"iglu:fi.yle.content/tehtava/jsonschema/2-0-0",data:{tehtava_id:t,predicate:o,type:i}}:"livefeed_post"===e?{schema:"iglu:fi.yle.content/livefeed_post/jsonschema/2-0-0",data:{livefeed_post_id:t,predicate:o}}:"article"===e?{schema:"iglu:fi.yle.content/article/jsonschema/2-1-0",data:{article_id:t,predicate:o}}:void 0,c=e=>function(e){return{schema:"iglu:fi.yle.ui/wrapper/jsonschema/2-5-0",data:e}}(e),d=(e,t)=>{let{entityType:i,id:a,viewMode:r,tehtavaEntityType:o,wrapper:d}=e;const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"full";return{schema:"iglu:fi.yle.engagement/view/jsonschema/2-6-0",data:{view_id:(0,n.A)(),view_type:"entity",view_entity_type:e,view_mode:t}}}(i,r),p=s(i,a,o),h=[...p?[p]:[],...d?[c(d)]:[]];return l({event:u,context:h},t),u.data.view_id},u=(e,t)=>{let{viewId:i,action:a}=e;"expand"!==a&&"link"!==a||!i||((e,t)=>{let{viewId:i,action:a}=e;const o=r({view_id:i,click_id:(0,n.A)(),action:a});l({event:o,context:[]},t)})({viewId:i,action:a},t),"select"===a&&((e,t)=>{let{action:i}=e;const a=r({click_id:(0,n.A)(),action:i}),o={schema:"iglu:fi.yle.engagement/attribute/jsonschema/3-0-0",data:{action:"article_summary_opened",category:"article",component:"arkki"}};l({event:a,context:[o]},t)})({action:a},t)};var p=i(22923),h=i(72419),g=i(71930),m=i(27528);const f=(0,p.eU)(!1),b=(0,p.eU)(),x=()=>{const e=(()=>{const{yleSnowplow:e}=(0,m.o6)(),[t,i]=(0,a.useState)(!1),[n,r]=(0,h.fp)(b),[o,l]=(0,h.fp)(f);return(0,a.useEffect)(()=>{!n&&t&&(async()=>{const t=await(0,g.K)(e);t&&r({tracker:t})})()},[r,t,n,e]),o||t||(l(!0),i(!0)),n?.tracker})(),t=(0,a.useRef)(void 0),i=(0,a.useRef)(!1),n=(0,a.useCallback)(a=>{if(e||t.current){if(e&&!i.current){if("view"===a.type){const{onEventSuccess:t,type:n,...r}=a,o=d(r,e);i.current=!0,t?.(o)}if("click"===a.type){const{type:t,...n}=a;u(n,e),i.current=!0}}}else t.current=a},[e]),r=(0,a.useCallback)(e=>{n({...e,type:"view"})},[n]),o=(0,a.useCallback)(e=>{n({...e,type:"click"})},[n]);return(0,a.useEffect)(()=>{e&&t.current&&!i.current&&n(t.current)},[n,e]),{sendViewEvent:r,sendClickEvent:o}}},12001(e,t,i){i.d(t,{m:()=>n});i(11684),i(35508);var a=i(12888);i(1061),i(92852);const n=(e,t)=>{const[i,n]=(0,a.useState)(t??.8);return(0,a.useEffect)(()=>
1{if(!e?.current)return;const i=()=>{if(!e.current)return;const i=((e,t,i)=>{if(e<t)return e*(i??.5)/t;return i??.8})(window.innerHeight,e.current.clientHeight,t);n(i)};i(),window.addEventListener("resize",i);const a=new ResizeObserver(i);return a.observe(e.current),()=>{window.removeEventListener("resize",i),a.disconnect()}},[e,t]),i}},6274(e,t,i){var a=i(12888);const n=()=>()=>null,r=()=>navigator.userAgent,o=()=>"";i.d(t,["m",0,()=>{const e=(0,a.useSyncExternalStore)(n,r,o);return{isAndroid:/\bandroid\b/i.test(e),isIos:/\bios|ipad|ipod|iphone\b/i.test(e),isMobile:/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)}}])},33836(e,t,i){i(11684);var a=i(22923),n=i(72419),r=(i(35508),i(12888)),o=i(24545),l=(i(1061),i(92852),i(71930)),s=i(27528);const c=(0,a.eU)(!1),d=(0,a.eU)();i.d(t,["A",0,()=>{const{isArseInNative:e,yleConsentSDK:t}=(0,s.o6)(),i=(0,o.Zl)(),[a,u]=(0,r.useState)(!1),[p,h]=(0,n.fp)(c),[g,m]=(0,n.fp)(d),f=!!i?.embedded_social_media||e;return(0,r.useEffect)(()=>{if(g||f||!a)return;(async()=>{const e=await(0,l.K)(t);e&&m(e)})()},[f,m,a,g,t]),p||a||(h(!0),u(!0)),g}])},77219(e,t,i){i.d(t,{Hv:()=>m,kj:()=>g});var a=i(12888);var n=i(27528),r=i(43828),o=i(96092),l=i(2971),s=i(22923),c=i(72419),d=i(71930);const u=(0,s.eU)(!1),p=(0,s.eU)(),h=e=>{let{element:t,ylePlayerParams:i}=e;const l=(0,r.y)(),s=(0,a.useRef)(!1),h=(()=>{const{ylePlayerSDK:e}=(0,n.o6)(),[t,i]=(0,a.useState)(!1),[r,o]=(0,c.fp)(u),[l,s]=(0,c.fp)(p);return(0,a.useEffect)(()=>{!l&&t&&(async()=>{const t=await(0,d.K)(e);t&&s(t)})()},[s,t,l,e]),r||t||(o(!0),i(!0)),l})(),[g,m]=(0,a.useState)(),f=(0,o.K)(g);return(0,a.useEffect)(()=>{const e=t.current;if(g||!h||!e||s.current||void 0===l)return;(async()=>{s.current=!0;const t=await h.render({element:e,props:i});m(t)})()},[l,t,s,g,i,h]),(0,a.useEffect)(()=>()=>{g?.destroy()},[g]),f},g=h,m=e=>{const{themeMode:t}=(0,n.o6)(),i=((e,t)=>"default"===e?t:e)(t,(0,l.t)());return h({...e,ylePlayerParams:{...e.ylePlayerParams,yleAudioPlayer:!0,theme:i}})}},97329(e,t,i){i.d(t,{u:()=>c});i(11684),i(35508);var a=i(12888),n=(i(1061),i(85626)),r=(i(92852),i(43828));const o=e=>(document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}),l=()=>document.hidden,s=()=>{},c=e=>{const t=(0,r.y)(),i=(0,a.useSyncExternalStore)(o,l,s),c=!(!t||!1!==i);(0,n.u)({...e,autoplayEnabled:c})}},14144(e,t,i){i.d(t,["f",0,e=>{const t={type:"PLAY_AUDIO",payload:e};window.ReactNativeWebView?.postMessage(JSON.stringify(t))}])},35862(e,t,i){i.d(t,["Oc",0,e=>{document.body.appendChild(e)},"n",0,(e,t)=>{const i=document.createElement(e);return t?(Object.keys(t).forEach(e=>{const a=t[e];a&&i.setAttribute(e,a.toString())}),i):i},"qj",0,e=>{document.head.appendChild(e)}])},93423(e,t,i){var a=i(35862);const n={infogram:"https://e.infogram.com/js/dist/embed-loader-min.js",instagram:"https://platform.instagram.com/en_US/embeds.js",twitter:"https://platform.twitter.com/widgets.js"};i.d(t,["pc",0,e=>{if("undefined"!=typeof window)switch(e){case"instagram":if((()=>{const e=document.getElementById("instagram-jsw");return void 0===window.instgrm&&null===e})()){const t=(0,a.n)("script",{src:n[e],id:"instagram-jsw",defer:!0});(0,a.qj)(t)}break;case"infogram":if((()=>{const e=document.getElementById("infogram-async");return void 0===window.InfogramEmbeds&&null===e})()){const t=(0,a.n)("script",{src:n[e],id:"infogram-async",async:!0});(0,a.qj)(t)}break;case"twitter":if(null===document.getElementById("twitter-wjs")){const t=(0,a.n)("script",{src:n[e],id:"twitter-wjs",defer:!0});(0,a.qj)(t)}}}])},9832(e,t,i){i(97700);const a=e=>[1,2,3,4,5,6].includes(e);i.d(t,["F",0,e=>{let{as:t,fallback:i,levelOffset:n}=e;const r=(e=>{let{as:t,fallback:i}=e;if(!t)return i;switch(t){case"h1":return 1;case"h2":return 2;case"h3":return 3;case"h4":return 4;case"h5":return 5;case"h6":return 6}})({as:t,fallback:i}),o=r+n;return a(o)?`h${o}`:"h6"},"H",0,a])},35611(e,t,i){i(11684),i(35508),i(12888);var a=i(76745),n=(i(1061),i(92852),i(24531));i.d(t,["G",0,e=>{let{error:t,image:i,maxWidth:r,dpr:o,format:l,baseUrl:s}=e;return(0,n.QM)(i,(0,a.e7)({aspectRatio:16/9,maxWidth:r,dpr:o}),s,((e,t)=>({...e?{focus:"center"}:{},...t?{format:t}:{}}))(t,l))},"T",0,{S:{audioPlayer:104,authorImage:74,card:104,columnWidth:767,fullWidth:767,gallery:360,galleryJournalisticStyleFeature:328,imageOverlay:1200,authorVerticalMultimedia:32},M:{audioPlayer:135,card:196,columnWidth:636,fullWidth:1800,gallery:306,galleryJournalisticStyleFeature:284,imageOverlay:1200,journalisticStyleFeature:878,authorVerticalMultimedia:56}}])},71930(e,t,i){var a=i(31805);i.d(t,["K",0,async e=>{if(e)try{return await Promise.race([(0,a.w)(),e()])}catch{return}}])},31516(e,t,i){i(11684),i(35508),i(12888);var a=i(88588),n=i(93753),r=i(76745),o=(i(1061),i(76256)),l=(i(92852),i(24531)
1),s=i(35611);const c=(e,t,i)=>{const a=(0,l.QM)({id:e.id},(0,r.e7)({aspectRatio:e.aspect,maxWidth:s.T.S.columnWidth,dpr:2}),i),c=e.tags?.reduce((e,i)=>{const a=i.label?.filter(e=>e.language===(0,o.e)(t)).reduce((e,t)=>t.value,"");return a?""===e?a:`${e},${a}`:e},"");return{"@type":"ImageObject",description:e.caption,copyrightHolder:(0,n.b)(e.copyright??[],t),url:a,keywords:c}};i.d(t,["WA",0,c,"Yo",0,e=>{let{block:t,programData:i,overrideParams:n,baseUrl:o}=e;const c=i?.title,d=i?.id,u=t.caption&&""!==t.caption?t.caption:i?.description,p=i?.imageId?{id:i.imageId}:r.XS,h=(0,l.QM)(p,{width:s.T.M.imageOverlay,height:null},o),g=i&&(0,a.eS)(i),m=g?.startTime,f={"@type":"VideoObject",description:u,copyrightHolder:t.source,name:c,thumbnailUrl:h,uploadDate:m,embedUrl:d?`https://player-v2.yle.fi/video.html?${d}`:void 0};return n?{...f,...n}:f},"gW",0,(e,t,i)=>{const{ingredients:a,title:n,cooktime:r,preptime:o,totaltime:l,instructions:s,quantity:d,coverImage:u}=e,p=s?.flatMap(e=>{switch(e.type){case"numbered-list":case"bullet-list":return e.items.map(e=>({"@type":"HowToStep",text:e}));case"text":return{"@type":"HowToStep",text:e.text};default:return[]}}),h=u??s?.find(e=>"image"===e.type);return{"@type":"Recipe",name:n,cookTime:r,prepTime:o,totalTime:l,recipeYield:d,recipeIngredient:a,image:h?c(h,t,i):void 0,recipeInstructions:p}}])},62351(e,t,i){i(11684),i(35508),i(12888),i(1061),i(92852);const a="(min-width: 768px)",n=`@media${a}`;i.d(t,["Im",0,e=>100/e+"%","P1",0,n,"T_",0,e=>Object.values(e).sort((e,t)=>e.maxWidth>t.maxWidth?-1:1).at(0)?.maxWidth,"h$",0,"@media(min-width: 768px) and (min-height: 700px)","iM",0,"@media(orientation: landscape)","lC",0,a])},31805(e,t,i){i.d(t,["w",0,()=>new Promise((e,t)=>setTimeout(t,1e4))])},24165(e,t,i){i(11684),i(35508),i(12888),i(1061),i(92852);var a=i(97407);i.d(t,["G",0,(e,t,i)=>({...e.article.typography[t],[e.article.breakpoint.M]:i?e.article.typography[i]:{}}),"S",0,e=>(0,a.R3)(e,"FONT_SIZE")])}}]);

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.