PageSourceSearch

https://www.themonthly.com.au/_next/static/chunks/pages/_app-3117d97796b8ef0c.js

js themonthly.com.au collected 2026-10-02 03:00:05 UTC 113,579 bytes, 68 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{3454:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(7663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(9645)}])},8814:function(e,t,n){"use strict";n.d(t,{A:function(){return I}});var r=n(5893),o=n(1664),i=n.n(o),s=n(7294),a=n(1163),l=n(2451),c=n.n(l);function u(){let{isPreview:e}=(0,a.useRouter)(),[t,n]=s.useState(!1);return(s.useEffect(()=>{n(e&&window.top===window.self)},[e]),t)?(0,r.jsx)("div",{className:c().preview_alert,children:(0,r.jsxs)("p",{children:["This page is an editor’s preview."," ",(0,r.jsx)(i(),{prefetch:!1,href:"/api/exit-preview",children:"Click here"})," ","to exit preview mode."]})}):null}var d=n(2373),f=n(6191),p=n(8858),h=n(2441),m=n(5675),g=n.n(m),w=n(9124),v=n.n(w),b=n(6349),y=n(5216),x=n(778),_=n.n(x);function j(){var e,t;let{currentFont:n,setBodyFont:o}=(0,y.nf)(),i=y.dd.findIndex(e=>{let{font:t}=e;return t===n}),s=-1===i?0:i,a=y.dd[s],l=()=>{var e,t;let n=(s+1)%y.dd.length;o(null!==(t=null===(e=y.dd[n])||void 0===e?void 0:e.font)&&void 0!==t?t:y.wF.GARAMOND)};return(0,r.jsxs)("div",{className:"dark-mode-toggle",onClick:l,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l())},role:"button",tabIndex:0,"aria-label":"Article font ".concat(null!==(e=null==a?void 0:a.label)&&void 0!==e?e:"Classic"),children:[(0,r.jsx)("span",{className:"grey",children:"Article font"}),(0,r.jsx)("span",{className:_().badge,children:null!==(t=null==a?void 0:a.label)&&void 0!==t?t:"Classic"})]})}var C=n(8720);function S(){let{currentSize:e,setTextSize:t}=(0,C.Zk)(),n=[C.yH.NORMAL,C.yH.LARGE,C.yH.XL];return(0,r.jsxs)("div",{className:"dark-mode-toggle",onClick:()=>{let r=(n.indexOf(e)+1)%n.length;t(n[r])},children:[(0,r.jsx)("span",{className:"grey",children:"Text size"}),(0,r.jsx)("span",{className:_().badge,children:(e=>{switch(e){case C.yH.NORMAL:return"M";case C.yH.LARGE:return"L";case C.yH.XL:return"XL";default:return"M"}})(e)})]})}let k=e=>{var t,n;let{toggleMenu:o}=e,[a,l]=s.useState("tab1"),{currentUser:c,logout:u}=(0,d.Hg)(),{currentMode:f,setThemeMode:h,themeModeOptions:m}=(0,b.vs)(),{savedCount:g}=(0,p.g)(),w=m.findIndex(e=>{let{mode:t}=e;return t===f}),y=-1===w?0:w,x=m[y],C=()=>{var e,t;let n=(y+1)%m.length;h(null!==(t=null===(e=m[n])||void 0===e?void 0:e.mode)&&void 0!==t?t:m[0].mode)};return(0,r.jsxs)("div",{className:v().container,children:[(0,r.jsxs)("div",{className:v().left,children:[(0,r.jsxs)("div",{className:v().inner_list,children:[(0,r.jsx)("div",{className:v().burger_contain,onClick:o,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",children:(0,r.jsx)("path",{d:"m253.897-229.795-24.102-24.102L455.897-480 229.795-706.103l24.102-24.102L480-504.103l226.103-226.102 24.102 24.102L504.103-480l226.102 226.103-24.102 24.102L480-455.897 253.897-229.795Z"})})}),(!c||!c.hasValidSubscription)&&(0,r.jsxs)("div",{children:[" ",(0,r.jsx)(i(),{href:"/subscribe",children:(0,r.jsx)("button",{className:"red highlight",children:"Subscribe"})})]}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{href:"/current-issue",children:"Current issue"})}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{href:"/issues",children:"All issues"})}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{href:"/online-latest",children:"Online latest"})}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{href:"/newsletters",children:"Newsletters"})}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{href:"/search",children:"Search"})}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{href:"https://schwartzmedia.com.au/shop",children:"Shop"})}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{className:v().grey,href:"/account",children:"Account"})}),(0,r.jsx)("div",{children:(0,r.jsxs)(i(),{className:v().grey,href:"/saved",children:["Reading list",g>0?" (".concat(g,")"):""]})}),(0,r.jsx)("div",{children:(0,r.jsx)(i(),{className:v().grey,href:"/help",children:"Help"})}),(0,r.jsx)(S,{}),(0,r.jsx)(j,{}),(0,r.jsxs)("div",{className:"dark-mode-toggle",onClick:C,onKeyDown:e=>
1{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),C())},role:"button",tabIndex:0,"aria-label":"Colour mode ".concat(null!==(t=null==x?void 0:x.label)&&void 0!==t?t:"Light"),children:[(0,r.jsx)("span",{className:v().grey,children:"Colour mode"}),(0,r.jsx)("span",{className:_().badge,children:null!==(n=null==x?void 0:x.label)&&void 0!==n?n:"Light"})]})]}),(0,r.jsxs)("div",{className:v().inner_list_social,children:[(0,r.jsx)(i(),{href:"https://www.facebook.com/themonthly/",target:"_blank",className:"",title:"Facebook",children:(0,r.jsx)("svg",{width:"77",height:"70",viewBox:"0 0 77 70",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M31.3739 19.6489C31.3739 19.3373 31.4172 18.6641 31.5037 17.6339C31.5968 16.6014 31.9864 15.5214 32.6855 14.3873C33.3781 13.2574 34.5014 12.2423 36.0641 11.3441C37.6204 10.4502 39.8692 10 42.8041 10H51.0722V19.0104H45.0183C44.4188 19.0104 43.8603 19.2355 43.356 19.6792C42.8561 20.1229 42.5985 20.545 42.5985 20.9368V26.5426H51.07C50.9812 27.6399 50.8838 28.707 50.7713 29.7372L50.4358 32.4601C50.3016 33.3799 50.1653 34.2327 50.0311 35.0184H42.5379V60H31.3739V35.0162H25.9282V26.5426H31.3739V19.6489Z"})})}),(0,r.jsx)(i(),{href:"https://bsky.app/profile/themonthly.com.au",target:"_blank",className:"",title:"Bluesky",children:(0,r.jsx)("svg",{width:"77",height:"70",viewBox:"0 0 77 70",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M22.4158 13.3656C28.9264 18.2533 35.9292 28.1635 38.5003 33.4819C41.0715 28.1639 48.0739 18.2532 54.5847 13.3656C59.2823 9.83885 66.8937 7.11004 66.8937 15.7933C66.8937 17.5274 65.8995 30.3611 65.3163 32.4446C63.2893 39.6882 55.903 41.5358 49.3328 40.4176C60.8174 42.3722 63.739 48.8467 57.4295 55.3212C45.4465 67.6175 40.2064 52.236 38.8631 48.2947C38.617 47.5722 38.5018 47.2341 38.5001 47.5216C38.4984 47.2341 38.3832 47.5722 38.1371 48.2947C36.7944 52.236 31.5544 67.6179 19.5707 55.3212C13.2611 48.8467 16.1826 42.3718 27.6674 40.4176C21.097 41.5358 13.7106 39.6882 11.6838 32.4446C11.1007 30.3609 10.1064 17.5272 10.1064 15.7933C10.1064 7.11004 17.7184 9.83885 22.4158 13.3656Z"})})}),(0,r.jsx)(i(),{href:"https://x.com/THEMONTHLY",target:"_blank",className:"",title:"Twitter / X",children:(0,r.jsx)("svg",{width:"77",height:"70",viewBox:"0 0 77 70",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M43.2578 31.174L61.8589 10H57.4526L41.2944 28.3813L28.3985 10H13.521L33.0263 37.7984L13.521 59.9998H17.9273L34.9797 40.5844L48.6016 59.9998H63.4792M19.5176 13.2539H26.287L57.4492 56.9058H50.6782"})})})]}),(0,r.jsxs)("div",{className:v().inner_list_social,children:[(0,r.jsx)(i(),{href:"https://www.instagram.com/themonthlymagazine/?hl=en",target:"_blank",className:"",title:"Instagram",children:(0,r.jsx)("svg",{width:"77",height:"70",viewBox:"0 0 77 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M38.5026 10C31.713 10 30.8609 10.0297 28.1942 10.151C25.5328 10.2729 23.7161 10.6943 22.1265 11.3125C20.4823 11.951 19.0875 12.8052 17.6979 14.1953C16.3073 15.5849 15.4531 16.9797 14.8125 18.6234C14.1927 20.2135 13.7708 22.0307 13.651 24.6911C13.5317 27.3578 13.5005 28.2104 13.5005 35C13.5005 41.7896 13.5307 42.6391 13.6515 45.3057C13.7739 47.9672 14.1953 49.7839 14.813 51.3734C15.4521 53.0177 16.3062 54.4125 17.6963 55.8021C19.0854 57.1927 20.4802 58.049 22.1234 58.6875C23.714 59.3057 25.5312 59.7271 28.1922 59.849C30.8588 59.9703 31.7104 60 38.4994 60C45.2896 60 46.139 59.9703 48.8057 59.849C51.4672 59.7271 53.2859 59.3057 54.8765 58.6875C56.5203 58.049 57.913 57.1927 59.3021 55.8021C60.6927 54.4125 61.5468 53.0177 62.1875 51.374C62.8021 49.7839 63.2239 47.9667 63.3489 45.3062C63.4687 42.6396 63.5 41.7896 63.5 35C63.5 28.2104 63.4687 27.3583 63.3489 24.6917C63.2239 22.0302 62.8021 20.2135 62.1875 18.624C61.5468 16.9797 60.6927 15.5849 59.3021 14.1953C57.9114 12.8047 56.5208 11.9505 54.875 11.3125C53.2812 10.6943 51.4635 10.2729 48.8021 10.151C46.1354 10.0297 45.2864 10 38.4948 10H38.5026ZM36.2599 14.5052C36.9255 14.5042 37.6682 14.5052 38.5026 14.5052C45.1776 14.5052 45.9687 14.5292 48.6047 14.649C51.0422 14.7604 52.3
1651 15.1677 53.2463 15.5099C54.413 15.963 55.2448 16.5047 56.1192 17.3797C56.9942 18.2547 57.5359 19.088 57.9901 20.2547C58.3323 21.1349 58.7401 22.4578 58.851 24.8953C58.9708 27.5307 58.9968 28.3224 58.9968 34.9943C58.9968 41.6661 58.9708 42.4578 58.851 45.0932C58.7396 47.5307 58.3323 48.8536 57.9901 49.7339C57.5369 50.9005 56.9942 51.7312 56.1192 52.6057C55.2442 53.4807 54.4135 54.0224 53.2463 54.4755C52.3661 54.8193 51.0422 55.2255 48.6047 55.337C45.9692 55.4568 45.1776 55.4828 38.5026 55.4828C31.8271 55.4828 31.0359 55.4568 28.4005 55.337C25.963 55.2245 24.6401 54.8172 23.7583 54.475C22.5916 54.0219 21.7583 53.4802 20.8833 52.6052C20.0083 51.7302 19.4666 50.899 19.0125 49.7318C18.6703 48.8516 18.2625 47.5286 18.1515 45.0911C18.0317 42.4557 18.0078 41.6641 18.0078 34.988C18.0078 28.312 18.0317 27.5245 18.1515 24.8891C18.263 22.4516 18.6703 21.1286 19.0125 20.2474C19.4656 19.0807 20.0083 18.2474 20.8833 17.3724C21.7583 16.4974 22.5916 15.9557 23.7583 15.5016C24.6396 15.1578 25.963 14.7516 28.4005 14.6396C30.7067 14.5354 31.6005 14.5042 36.2599 14.499V14.5052ZM51.8474 18.6562C50.1911 18.6562 48.8474 19.9984 48.8474 21.6552C48.8474 23.3115 50.1911 24.6552 51.8474 24.6552C53.5036 24.6552 54.8474 23.3115 54.8474 21.6552C54.8474 19.999 53.5036 18.6552 51.8474 18.6552V18.6562ZM38.5026 22.1615C31.4125 22.1615 25.664 27.9099 25.664 35C25.664 42.0901 31.4125 47.8359 38.5026 47.8359C45.5927 47.8359 51.339 42.0901 51.339 35C51.339 27.9099 45.5927 22.1615 38.5026 22.1615ZM38.5026 26.6667C43.1047 26.6667 46.8359 30.3974 46.8359 35C46.8359 39.6021 43.1047 43.3333 38.5026 43.3333C33.9 43.3333 30.1692 39.6021 30.1692 35C30.1692 30.3974 33.9 26.6667 38.5026 26.6667Z",fill:"black"})})}),(0,r.jsx)(i(),{href:"https://www.youtube.com/channel/UC_fb0L96kUGYt1AL1qO155Q",target:"_blank",className:"",title:"Youtube",children:(0,r.jsx)("svg",{width:"77",height:"70",viewBox:"0 0 77 70",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M61.5511 20.4269C59.7463 18.2814 56.414 17.4062 50.0502 17.4062H26.9494C20.4398 17.4062 17.0511 18.3379 15.2531 20.6221C13.5 22.8492 13.5 26.1306 13.5 30.6722V39.3285C13.5 48.1271 15.58 52.5943 26.9494 52.5943H50.0503C55.569 52.5943 58.6271 51.8221 60.6055 49.9287C62.6344 47.9871 63.5 44.8169 63.5 39.3285V30.6722C63.5 25.8827 63.3644 22.5819 61.5511 20.4269ZM45.6002 36.1954L35.1102 41.6779C34.8756 41.8004 34.6192 41.8612 34.3631 41.8612C34.0731 41.8612 33.7837 41.7832 33.5274 41.628C33.0448 41.3356 32.7502 40.8125 32.7502 40.2483V29.3187C32.7502 28.7554 33.044 28.2329 33.5256 27.9403C34.0074 27.6477 34.6066 27.6277 35.1065 27.8874L45.5965 33.3345C46.1302 33.6116 46.4653 34.1625 46.4661 34.7637C46.4668 35.3653 46.1331 35.9171 45.6002 36.1954Z",fill:"black"})})}),(0,r.jsx)(i(),{href:"https://www.threads.net/@themonthlymagazine",target:"_blank",className:"",title:"Threads",children:(0,r.jsx)("svg",{style:{height:"30px"},xmlns:"http://www.w3.org/2000/svg","aria-label":"Threads",viewBox:"0 0 192 192",children:(0,r.jsx)("path",{d:"M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"})})})]})]}),(0,r.jsxs)("div",{className:v().middle,children:[(0,r.jsx)("div",{className:"red",children:"Sections"}),(0,r.jsx)("div",{className:v().menuLinkItem,children:(0,r.jsxs)(i(),{href:"/section/nation-reviewed",children:[(0,r.jsx)("span",{className:v().linkTitle,children:"The Nation Reviewed"}),(0,r.jsx)("span",{className:v().linkDescription,children:"Observations of life around the country"})]})}),(0,r.jsx)("div",{className:v().menuLinkItem,children:(0,r.jsxs)(i(),{href:"/section/essays",children:[(0,r.jsx)("span",{className:v().linkTitle,children:"Essays"}),(0,r.jsx)("span",{className:v().linkDescription,children:"Long-form journalism on public affairs, politics, ideas and culture"})]})}),(0,r.jsx)("div",{className:v().menuLinkItem,children:(0,r.jsxs)(i(),{href:"/section/vox",children:[(0,r.jsx)("span",{className:v().linkTitle,children:"Vox"}),(0,r.jsx)("span",{className:v().linkDescription,children:"Personal writing from Australia’s best authors"})]})}),(0,r.jsx)("div",{className:v().menuLinkItem,children:(0,r.jsxs)(i(),{href:"/section/arts-letters",children:[(0,r.jsx)("span",{className:v().linkTitle,children:"Arts and Letters"}),(0,r.jsx)("span",{className:v().linkDescription,children:"Cultural criticism, reviews, interviews and dispatches"})]})}),(0,r.jsx)("div",{className:v().menuLinkItem,children:(0,r.jsxs)(i(),{href:"/section/life-sentences",children:[(0,r.jsx)("span",{className:v().linkTitle,children:"Life Sentences"}),(0,r.jsx)("span",{className:v().linkDescription,children:"Long-remembered advice, touchstones, mantras and earworms"})]})})]})]})};var E=n(9255);function N(){let e=(0,a.useRouter)();return(0,s.useEffect)(()=>{let t=()=>{[".piano-inject",".bottom-piano-banner",".subscriber-push-end",".last-free-article-div",".fadeout-div"].forEach(e
1=>{let t=document.querySelector(e);t&&(t.innerHTML="")})};return e.events.on("routeChangeStart",t),()=>{e.events.off("routeChangeStart",t)}},[e.events]),null}var T=n(9332);function P(){let e=(0,T.usePathname)(),t=(0,T.useSearchParams)();return(0,s.useEffect)(()=>{let n=()=>{let n=JSON.parse(sessionStorage.getItem("scrollPositions")||"{}");n[e+t.toString()]=window.scrollY,sessionStorage.setItem("scrollPositions",JSON.stringify(n))};return window.addEventListener("beforeunload",n),(()=>{let n=JSON.parse(sessionStorage.getItem("scrollPositions")||"{}")[e+t.toString()];void 0!==n&&window.scrollTo(0,n)})(),()=>{window.removeEventListener("beforeunload",n)}},[e,t]),null}var L=n(634),M=n.n(L);function R(e){if(null!==e)try{let t=sessionStorage.getItem(d.mW);if(!t)return;JSON.parse(t).createdAt===e&&sessionStorage.removeItem(d.mW)}catch(e){}}function O(){let{currentUser:e,loading:t}=(0,d.Hg)(),[n,o]=(0,s.useState)(null),[a,l]=(0,s.useState)(!1),[c,u]=(0,s.useState)(!1),f=(0,s.useRef)(null),p=(0,s.useRef)(null),h=(0,s.useRef)(null),m=(0,s.useRef)(null),g=()=>{p.current&&window.clearTimeout(p.current),h.current&&window.clearTimeout(h.current),m.current&&window.clearTimeout(m.current)};return((0,s.useEffect)(()=>{if(t)return;let n=null;try{let e=sessionStorage.getItem(d.mW);e&&(n=JSON.parse(e))}catch(e){return}if(!n||!Number.isFinite(n.createdAt)||Date.now()-n.createdAt>12e4){try{sessionStorage.removeItem(d.mW)}catch(e){}return}if(!e){g(),f.current=null,l(!1);return}f.current!==n.createdAt&&(f.current=n.createdAt,l(!1),g(),p.current=window.setTimeout(()=>{let t="boolean"==typeof n.hasValidSubscription?n.hasValidSubscription:e.hasValidSubscription,r=t&&window.matchMedia("(max-width: 600px)").matches?6e3:8e3;o(t),u(!1),l(!0),h.current=window.setTimeout(()=>u(!0),r-250),m.current=window.setTimeout(()=>{R(n.createdAt),l(!1)},r)},300))},[e,t]),(0,s.useEffect)(()=>g,[]),a&&null!==n)?(0,r.jsxs)("div",{className:[M().notice,n?M().active:M().inactive,c?M().leaving:""].join(" "),role:"status","aria-live":"polite",children:[(0,r.jsx)("span",{className:M().icon,"aria-hidden":"true",children:n?"✓":"!"}),(0,r.jsxs)("div",{className:M().message,children:[(0,r.jsx)("strong",{children:"Logged in successfully."}),(0,r.jsx)("span",{children:n?"Your subscription is active.":"No active subscription was found for this account."}),!n&&(0,r.jsxs)("span",{className:M().actions,children:[(0,r.jsx)(i(),{href:"/account",children:"Check account"}),(0,r.jsx)(i(),{href:"/subscribe",children:"Subscribe"})]})]}),(0,r.jsx)("button",{type:"button",className:M().close,onClick:()=>{R(f.current),u(!0),g(),m.current=window.setTimeout(()=>l(!1),250)},"aria-label":"Dismiss login confirmation",children:"\xd7"})]}):null}var A=n(3454);function I(e){let{children:t,hideAds:n=!1,hidePianoBanner:o=!1}=e,[l,c]=(0,s.useState)(!1),m=(0,s.useRef)(null),{currentUser:w,loading:v,setTags:x}=(0,d.Hg)(),{savedCount:_}=(0,p.g)(),{nid:j}=(0,h.K)(),C=(0,a.useRouter)(),{currentMode:S,setThemeMode:T,themeModeOptions:L}=(0,b.vs)(),{currentFont:M,setBodyFont:R}=(0,y.nf)(),[I,z]=(0,s.useState)("/"!==C.pathname),[H,D]=(0,s.useState)(!1);(0,s.useEffect)(()=>{D(!0)},[]);let U=H&&(null==w?void 0:w.email)&&(w.email.toLowerCase().endsWith("@themonthly.com.au")||w.email.toLowerCase().endsWith("@schwartzmedia.com.au")),F=A.env.NEXT_PUBLIC_BACKEND_DOMAIN?"https://".concat(A.env.NEXT_PUBLIC_BACKEND_DOMAIN):"https://admin.themonthly.com.au",V=U&&j?"".concat(F,"/node/").concat(j,"/edit?destination=/admin/content"):null;function W(e){return C.pathname===e?"activeLink":"inactiveLink"}let B=()=>{c(!l)};(0,s.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&c(!1)};return l?(document.body.classList.add("menu-open"),document.addEventListener("mousedown",e)):document.body.classList.remove("menu-open"),()=>{document.removeEventListener("mousedown",e)}},[l]);let[q,G]=(0,s.useState)(!1),Z=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=e=>{Z.current&&!Z.current.contains(e.target)&&G(!1)};return q&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[q]),(0,s.useEffect)(()=>{let e=()=>{if("/"===C.pathname){let e=document.querySelector(".app-masthead-contain");e&&(e.getBoundingClientRect().bottom<50?z(!0):z(!1))}else z(!0)};return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[C.pathname]),(0,r.jsxs)("div",{id:"tm-html",children:[(0,r.jsx)(P,{}),(0,r.jsx)(u,{}),(0,r.jsx)(O,{}),!n&&(0,r.jsx)(E.Z,{type:"banner"}),(0,r.jsxs)("div",{className:"layout",children:[(0,r.jsx)("nav",{className:"topnav",children:(0,r.jsxs)("div",{className:"topnav-internal",children:[(0,r.jsx)(r.Fragment,{children:l&&(0,r.jsx)("div",{className:"menu-backdrop"})}),(0,r.jsxs)("div",{className:"left",children:[(0,r.jsx)("div",{className:"burger",onClick:B,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",height:"40",viewBox:"0 -960 960 960",width:"40",children:(0,r.jsx)("path",{d:"M160-269.231v-33.846h640v33.846H160Zm0-193.846v-33.846h640v33.846H160Zm0-193.846v-33.846h640v33.846H160Z"})})}),l&&(0,r.jsx)("div",{ref:m,className:"menu",children:(0,r.jsx)(k,{toggleMenu:B})}),(0,r.jsxs)("div",{className:"leftMiddle",children:[(0,r.jsx)(i(),{href:"/current-issue",children:(0,r.jsx)("h4",{className:W("/current-issue"),children:"Current issue, \xa0"})}),(0,r.jsx)(i(),{href:"/issues",children:(0,r.jsx)("h4",{className:W("/issues"),children:"All issues, \xa0"})}),(0,r.jsx)(i(),{href:"/newsletters",children:(0,r.jsx)("h4",{className:W("/newsletters"),children:"Newsletters"})})]})]}),(0,r.jsx)("div",{className:"center masthead ".concat(I||"/"!==C.pathname?"":"masthead-hidden"),children:(0,r.jsx)(i(),{href:"/",children:(0,r.jsx)(g(),{alt:"The Monthly",width:150,height:26,src:"/logos/tm_logo_singleline_black.svg",className:"logo-image"})})}),(0,r.jsx)("div",{className:"right header-user-info",children:v?(0,r.jsx)("div",{className:"loading-user",children:(0,r.jsx)("span",{className:"loading-dots"})}):w?(0,r.jsxs)("div",{className:"horizontal",children:[(0,r.jsx)("div",{className:"search-link no-mobile",children:(0,r.jsx)(i(),{href:"/search#gsc.tab=0",children:(0,r.jsx)("h4",{className:"inactiveLink",children:"Search"})})}),V&&(0,r.jsx)("a",{href:V,target:"_blank",rel:"noopener noreferrer",className:"edit-node-link",children:"Edit"}),(0,r.jsxs)("div",{className:"user-account-section",ref:Z,children:[w.needsEmailConfirmation&&(0,r.jsxs)(i(),{href:"/account",className:"confirm-email-alert",children:[(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"16",height:"16",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"#f0c36d",stroke:"#d4a012",strokeWidth:"1"}),(0,r.jsx)("text",{x:"12",y:"17",textAnchor:"middle",fontSize:"14",fontWeight:"bold",fill:"#7a5d00",children:"!"})]}),(0,r.jsx)("span",{className:"confirm-email-text",children:"Confirm email"})]}),(0,r.jsxs)("button",{onClick:()=>{G(!q)},className:"account-button ".concat(w.hasValidSubscription?"subscriber":"non-subscriber"),children:[(0,r.jsx)("span",{className:"user-status-indicator",children:w.hasValidRRMESubscription?(0,r.jsx)(()=>(0,r.jsx)("svg",{viewBox:"0 0 24 24",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsxs)("g",{transform:"matrix(1, 0, 0, 1, 27.009001, -39.238998)",children:[(0,r.jsx)("path",{fill:"#4285F4",d:"M -3.264 51.509 C -3.264 50.719 -3.334 49.969 -3.454 49.239 L -14.754 49.239 L -14.754 53.749 L -8.284 53.749 C -8.574 55.229 -9.424 56.479 -10.684 57.329 L -10.684 60.329 L -6.824 60.329 C -4.564 58.239 -3.264 55.159 -3.264 51.509 Z"}),(0,r.jsx)("path",{fill:"#34A853",d:"M -14.754 63.239 C -11.514 63.239 -8.804 62.159 -6.824 60.329 L -10.684 57.329 C -11.764 58.049 -13.134 58.489 -14.754 58.489 C -17.884 58.489 -20.534 56.379 -21.484 53.529 L -25.464 53.529 L -25.464 56.619 C -23.494 60.539 -19.444 63.239 -14.754 63.239 Z",children:" "})," ",(0,r.jsx)("path",{fill:"#FBBC05",d:"M -21.484 53.529 C -21.734 52.809 -21.864 52.039 -21.864 51.239 C -21.864 50.439 -21.724 49.669 -21.484 48.949 L -21.484 45.859 L -25.464 45.859 C -26.284 47.479 -26.754 49.299 -26.754 51.239 C -26.754 53.179 -26.284 54.999 -25.464 56.619 L -21.484 53.529 Z"}),(0,r.jsx)("path",{fill:"#EA4335",d:"M -14.754 43.989 C -12.984 43.989 -11.404 44.599 -10.154 45.789 L -6.734 42.369 C 
1-8.804 40.429 -11.514 39.239 -14.754 39.239 C -19.444 39.239 -23.494 41.939 -25.464 45.859 L -21.484 48.949 C -20.534 46.099 -17.884 43.989 -14.754 43.989 Z"})]})}),{}):w.hasValidSubscription?(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"11.5",fill:"var(--white)",stroke:"#28a745"}),(0,r.jsx)("path",{d:"M12 6c1.654 0 3 1.346 3 3s-1.346 3-3 3-3-1.346-3-3 1.346-3 3-3zm0 8c3.866 0 7 1.567 7 3.5V19H5v-1.5c0-1.933 3.134-3.5 7-3.5z",fill:"#28a745"})]}),{}):(0,r.jsx)(()=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"18",height:"18",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"11.5",fill:"var(--white)",stroke:"#dc3545"}),(0,r.jsx)("path",{d:"M12 6c1.654 0 3 1.346 3 3s-1.346 3-3 3-3-1.346-3-3 1.346-3 3-3zm0 8c3.866 0 7 1.567 7 3.5V19H5v-1.5c0-1.933 3.134-3.5 7-3.5z",fill:"#dc3545"})]}),{})}),(0,r.jsx)("span",{className:"account-text",children:"Account"}),(0,r.jsx)("span",{className:"dropdown-arrow ".concat(q?"open":""),children:" ▼ "})]}),q&&(0,r.jsxs)("div",{className:"account-dropdown",children:[(0,r.jsxs)("div",{className:"user-info-section",children:[(0,r.jsx)("div",{className:"user-email",children:(0,r.jsx)("span",{children:w.email})}),w.hasValidSubscription&&(0,r.jsx)("div",{className:"subscription-name",children:w.subscriptionName||"Active Subscription"})]}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)("button",{onClick:()=>{C.push("/account")},className:"dropdown-item",children:"My Account"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/saved",children:(0,r.jsxs)("button",{className:"dropdown-item",children:["Reading List",_>0?" (".concat(_,")"):""]})})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/help",children:(0,r.jsx)("button",{className:"dropdown-item",children:"Help Centre"})})}),!w.hasValidSubscription&&(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/subscribe",children:(0,r.jsx)("button",{className:"dropdown-item highlight",children:"Subscribe Now"})})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/gift",children:(0,r.jsx)("button",{className:"dropdown-item",children:"Give a gift"})})}),(0,r.jsxs)("li",{className:"font-select-row",children:[(0,r.jsx)("span",{className:"font-select-label",children:"Font"}),(0,r.jsx)("div",{className:"font-select-buttons",children:y.dd.map(e=>{let{font:t,label:n}=e;return(0,r.jsx)("button",{type:"button",className:"font-select-btn ".concat(M===t?"active":""),onClick:()=>R(t),"aria-pressed":M===t,"aria-label":"Article font ".concat(n),children:n},t)})})]}),(0,r.jsxs)("li",{className:"theme-select-row",children:[(0,r.jsx)("span",{className:"theme-select-label",children:"Colour"}),(0,r.jsx)("div",{className:"theme-select-buttons",children:L.map(e=>{let{mode:t,label:n}=e;return(0,r.jsx)("button",{type:"button",className:"theme-select-btn ".concat(S===t?"active":""),onClick:()=>T(t),"aria-pressed":S===t,"aria-label":"".concat(n," mode"),children:n},t)})})]}),(0,r.jsx)("li",{children:(0,r.jsx)(f.r9,{className:"dropdown-item",children:"Sign Out"})})]})]})]})]}):(0,r.jsxs)("div",{className:"login-search-subscribe",children:[(0,r.jsx)("div",{className:"search-link no-mobile",children:(0,r.jsx)(i(),{href:"/search#gsc.tab=0",children:(0,r.jsx)("h4",{className:"inactiveLink",children:"Search"})})}),(0,r.jsx)("div",{className:"pointer",children:(0,r.jsx)(f.YW,{className:"login-link",children:(0,r.jsx)("h4",{className:"inactiveLink",children:"Login"})})}),(0,r.jsx)("div",{className:"no-mobile",children:(0,r.jsx)(i(),{href:"/subscribe",className:"no-mobile",children:(0,r.jsx)("button",{className:"red highlight",children:"Subscribe"})})})]})})]})}),(0,r.jsx)("main",{children:(0,r.jsx)("div",{className:"container",children:t})})]}),!n&&(0,r.jsx)(E.Z,{type:"bottom"}),(0,r.jsx)("footer",{className:"footer",children:(0,r.jsxs)("div",{className:"footer-contain",children:[(0,r.jsxs)("div",{className:"footer-section",children:[(0,r.jsx)("h3",{children:"The Monthly"}),(0,r.jsxs)("ul",{className:"leftlist",children:[(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/about",children:"About"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/contact",children:"Contact"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/issues",children:"All issues"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://schwartzmedia.com.au/shop",children:"Shop"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/find",children:"Find a stockist"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://schwartzmedia.com.au/advertise",children:"Advertise"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/editorial-guidelines",children:"Editorial Guidelines"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/help",children:"Help Centre"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/account",children:"Account & Login"})}),(0,r.jsx)(i(),{href:"/subscribe",className:"footer-button",children:(0,r.jsx)("li",{className:"red highlight",children:"Subscribe"})}),(0,r.jsx)(i(),{href:"/gift",className:"footer-button",children:(0,r.jsx)("li",{className:"red highlight",children:"Give a gift"})})]})]}),(0,r.jsxs)("div",{className:"footer-section connect",children:[(0,r.jsx)("h3",{children:"Connect"}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://www.instagram.com/themonthlymagazine/",children:"Instagram"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://www.facebook.com/themonthly/",children:"Facebook"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://x.com/themonthly",children:"X"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"/feed.xml",children:"RSS Feed"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://news.google.com/publications/CAAqLQgKIidDQklTRndnTWFoTUtFWFJvWlcxdmJuUm9iSGt1WTI5dExtRjFLQUFQAQ",children:"Google News"})})]})]}),(0,r.jsxs)("div",{className:"footer-section",children:[(0,r.jsx)("h3",{children:"Also from Schwartz Media"}),(0,r.jsxs)("ul",{children:[(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://thesaturdaypaper.com.au/",children:"The Saturday Paper"})}),(0,r.jsx)("li",{children:(0,r.jsx)(i(),{href:"https://australianforeignaffairs.com.au/",children:"Australian Foreign Affairs"})})]})]}),(0,r.jsxs)("div",{className:"footer-details",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"title-text",children:"The Monthly"})," is a magazine published by Schwartz Media."]}),(0,r.jsx)("p",{children:"For subscription enquiries, call 1800 077 514 or email [email protected]"}),(0,r.jsx)("p",{children:"For editorial enquiries, email [email protected]"}),(0,r.jsxs)("p",{children:["\xa9 ",new Date().getFullYear()," The Monthly. All rights reserved."]})]})]})}),!o&&(0,r.jsx)("div",{className:"bottom-piano-banner"}),(0,r.jsx)(N,{})]})}},9255:function(e,t,n){"use strict";var r=n(5893),o=n(7294),i=n(1163),s=n(4256),a=n.n(s),l=n(1424),c=n(2496),u=n(4530);t.Z=e=>{let{type:t}=e,n=(0,o.useId)(),s="tm-ad-".concat(t,"-").concat(n.replace(/[^a-zA-Z0-9_-]/g,"")),d=(0,i.useRouter)(),f=(0,o.useSyncExternalStore)(l.kv,l.zu,l.p),p=(0,o.useSyncExternalStore)(u.UC,u.XE,u.y0),[h,m]=(0,o.useState)(null),[g,w]=(0,o.useState)(null),[v,b]=(0,o.useState)(null),y=d.asPath.split("#")[0],x=p.page===y&&"skipped"===p.status,_=p.page===y&&"ready"===p.status,j="".concat(y,":").concat(p.visit,":").concat(f,":").concat(null==h?void 0:h.adUnitPath);(0,o.useEffect)(()=>{let e;let n=()=>{let e=function(e,t){if(t>=970){if("banner"===e)return{adUnitPath:"/1042965/TM_Billboard",size:[970,250],className:a().billboard};if("halfpage"===e)return{adUnitPath:"/1042965/TM_Halfpage",size:[300,600],className:a().halfpage};if("bottom"===e)return{adUnitPath:"/1042965/TM_Leaderboard",size:[728,90],className:a().leaderboard}}if(t>=729){if("banner"===e)return{adUnitPath:"/1042965/TM_TabletLeaderboard",size:[728,90],className:a().tabletLeaderboard};if("halfpage"===e)return{adUnitPath:"/1042965/TM_Halfpage",size:[300,600],className:a().halfpage};if("bottom"===e)return{adUnitPath:"/1042965/TM_Leaderboard",size:[728,90],className:a().leaderboard}}return"banner"===e?{adUnitPath:"/1042965/TM_MobileLocked",size:[320,50],className:a().mobileLocked}:"halfpage"===e?{adUnitPath:"/1042965/TM_MobileMREC",size:[300,250],className:a().mrec}:"bottom"===e?{adUnitPath:"/1042965/TM_MobileTop",size:[320,50],className:a().mobilebottom}:null}(t,window.innerWidth);m(t=>(null==t?void 0:t.adUnitPath)===(null==e?void 0:e.adUnitPath)?t:e)};n();let r=()=>{clearTimeout(e),e=setTimeout(n,250)};return window.addEventListener("resize",r),()=>{clearTimeout(e),window.removeEventListener("resize",r)}},[t]),(0,o.useEffect)(()=>{let e,t;if(w(null),b(null),!h||"unknown"===f||!_)return;let n=!1,r=t=>{n||t.slot!==e||w({key:j,empty:t.isEmpty})},o=()=>{null==t||t(),e&&(window.googletag.pubads().removeEventListener("slotRenderEnded",r),window.googletag.destroySlots([e]),e=void 0)};return(0,c.X)().then(()=>
1{if(n||(0,l.zu)()!==f||!(0,u.P)(p.visit))return;let o=window.googletag.pubads();if(!(e=window.googletag.defineSlot(h.adUnitPath,h.size,s))){b(j);return}e.addService(o),o.addEventListener("slotRenderEnded",r),window.googletag.display(s),t=(0,c.d)(e,f,p.visit)}).catch(e=>{n||(o(),b(j),console.error("GPT slot error:",e))}),()=>{n=!0,o()}},[s,f,h,j,_,p.visit]);let C=(null==g?void 0:g.key)===j;return(0,r.jsx)("div",{className:a().ad_container,"data-ad-type":t,"data-ad-skipped":x||void 0,"data-ad-failed":v===j||void 0,"data-ad-empty":C&&g.empty||void 0,style:h?{width:"100%",maxWidth:"".concat(h.size[0],"px"),height:"".concat(h.size[1],"px"),minHeight:"".concat(h.size[1],"px")}:void 0,children:(0,r.jsx)("div",{className:null==h?void 0:h.className,style:{visibility:C?"visible":"hidden"},children:(0,r.jsx)("div",{id:s},j)})})}},5167:function(e,t,n){"use strict";var r,o;function i(e){function t(){return!window.localStorage}return{localStorageHas:function(n){if(t())return!1;let o=localStorage.getItem(n);return null!==o&&(!function(t){if(!(null==e?void 0:e.timeoutSeconds))return!1;let n=1e3*e.timeoutSeconds;return t.datestamp+n<Date.now()}(r.decode(o))||(localStorage.removeItem(n),!1))},getLocalStorage:function(e){if(t())return null;let n=localStorage.getItem(e);return r.decode(n).value},setLocalStorage:function(e,n){if(t())return;let o=r.create(n);localStorage.setItem(e,r.encode(o))},removeLocalStorage:function(e){localStorage.removeItem(e)}}}n.d(t,{_:function(){return i}}),(o=r||(r={})).create=function(e){return{value:e,datestamp:Date.now()}},o.encode=function(e){return btoa(JSON.stringify(e))},o.decode=function(e){return JSON.parse(atob(e))}},5216:function(e,t,n){"use strict";n.d(t,{QQ:function(){return p},dd:function(){return d},nf:function(){return h},pE:function(){return u},wF:function(){return o}});var r,o,i=n(5893),s=n(7294),a=n(5167);(r=o||(o={})).GARAMOND="bodyfont-garamond",r.LYON="bodyfont-lyon",r.ATKINSON="bodyfont-atkinson";let l=["bodyfont-garamond","bodyfont-lyon","bodyfont-atkinson"];function c(e){return"string"==typeof e&&l.includes(e)}function u(e){switch(e){case"bodyfont-lyon":return"sans";case"bodyfont-atkinson":return"legible";default:return"default"}}let d=[{font:"bodyfont-garamond",label:"Classic"},{font:"bodyfont-lyon",label:"Serif"},{font:"bodyfont-atkinson",label:"Legible"}],f=s.createContext({currentFont:"bodyfont-garamond",setBodyFont:()=>{}}),p=e=>{let{children:t}=e,[n,r]=s.useState("bodyfont-garamond"),{localStorageHas:o,getLocalStorage:u,setLocalStorage:d,removeLocalStorage:p}=(0,a._)(),h="bodyFont";function m(e){"undefined"!=typeof document&&(document.documentElement.classList.remove(...l),document.documentElement.classList.add(e))}return s.useEffect(()=>{function e(){try{p(h)}catch(e){}}try{if(!o(h))return;let t=u(h);if(!c(t)){e(),r("bodyfont-garamond"),m("bodyfont-garamond");return}r(t),m(t)}catch(t){e(),r("bodyfont-garamond"),m("bodyfont-garamond")}},[u,o,p]),(0,i.jsx)(f.Provider,{value:{currentFont:n,setBodyFont:function(e){if(c(e)){try{d(h,e)}catch(e){}r(e),m(e)}}},children:t})},h=()=>s.useContext(f)},6349:function(e,t,n){"use strict";n.d(t,{Wk:function(){return d},vs:function(){return f}});var r,o,i=n(5893),s=n(7294),a=n(5167);(r=o||(o={})).LIGHT="light",r.WARM="warm",r.DARK="dark";let l=[{mode:"light",label:"Light",analyticsValue:"light"},{mode:"warm",label:"Warm",analyticsValue:"warm"},{mode:"dark",label:"Dark",analyticsValue:"dark"}];function c(e){return"dark"===e?"dark":"warm"===e?"warm":"light"}let u=s.createContext({lightDarkDisplay:"Light mode",onLightDarkClick:()=>{},htmlClass:null,currentMode:"light",setThemeMode:()=>{},themeModeOptions:l}),d=e=>{let{children:t}=e,[n,r]=s.useState(null),[o,d]=s.useState(!1),{localStorageHas:f,getLocalStorage:p,setLocalStorage:h,removeLocalStorage:m}=(0,a._)(),g="mode",w=s.useCallback(e=>{"undefined"!=typeof document&&(document.documentElement.classList.remove("light","warm","dark"),document.documentElement.classList.add(c(e)))},[]);function v(e){h(g,e),r(e),w(e)}return s.useEffect(()=>{if(d(!0),f(g)){var e;let t="light"===(e=p(g))||0===e?"light":"dark"===e||1===e?"dark":"warm"===e?"warm":null;t?(r(t),w(t)):(m(g),w(null))}else w(null)},[w,p,f,m]),(0,i.jsx)(u.Provider,{value:{lightDarkDisplay:"dark"===n?"Light mode":"Dark mode",onLightDarkClick:function(){v("dark"===n?"light":"dark")},htmlClass:o?c(n):null,currentMode:null!=n?n:"light",setThemeMode:v,themeModeOptions:l},children:t})},f=()=>s.useContext(u)},2441:function(e,t,n){"use strict";n.d(t,{I:function(){return s},K:function(){return a}});var r=n(5893),o=n(7294);let i=(0,o.createContext)({nid:null,setNid:()=>{}});function s(e){let{children:t}=e,[n,s]=(0,o.useState)(null),a=(0,o.useCallback)(e=>s(e),[]);return(0,r.jsx)(i.Provider,{value:{nid:n,setNid:a},children:t})}let a=()=>(0,o.useContext)(i)},2373:function(e,t,n){"use strict";n.d(t,{Hg:function(){return k},Pk:function(){return x},XR:function(){return S},b1:function(){return u},dH:function(){return _},mW:function(){return y},nq:function(){return j}});var r=n(5893),o=n(1163),i=n(1424),s=n(7294),a=n(6349),l=n(5216);let c="RLAGB4N",u="RZQRBJS",d="twistridelotoperationmature",f=(0,s.createContext)({currentUser:null,loading:!0,isInitialized:!1,login:()=>{},logout:()=>{}
1,refreshUser:async()=>void 0,checkValidSubscription:()=>!1,openLoginModal:()=>{},openRegisterModal:()=>{},openResetPasswordModal:()=>{},setTags:()=>{},trackPageview:()=>{},executeExperience:()=>{}}),p=e=>e.some(e=>!0===e.granted&&(e.resource.rid===c||e.resource.rid===u)),h=e=>e.some(e=>!0===e.granted&&"BRE903ZF"===e.resource.rid),m=e=>{let t=e.find(e=>!0===e.granted&&e.resource.rid===c);if(t)return t.resource.name;let n=e.find(e=>!0===e.granted&&e.resource.rid===u);return n?n.resource.name:"The Monthly subscription"},g=()=>{if("undefined"==typeof document)return"unknown";let e=document.cookie.split("; ").find(e=>e.startsWith("__adblocker="));return e?"true"===e.slice(12)?"enabled":"disabled":"unknown"},w=(e,t)=>{if(void 0!==t)try{localStorage.setItem(e,JSON.stringify(t))}catch(t){console.error('Error storing data in localStorage for key "'.concat(e,'":'),t)}},v=e=>{let t=localStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(t){return console.error('Error parsing localStorage data for key "'.concat(e,'":'),t),null}},b="__tm_piano_auth_started_at",y="__tm_piano_login_notice";function x(e){let t={createdAt:Date.now(),..."boolean"==typeof e?{hasValidSubscription:e}:{}};try{sessionStorage.setItem(y,JSON.stringify(t))}catch(e){}}function _(){let e=Date.now();window.__tmPianoAuthStartedAt=e;try{sessionStorage.setItem(b,String(e))}catch(e){}}function j(){delete window.__tmPianoAuthStartedAt;try{sessionStorage.removeItem(b)}catch(e){}}let C=e=>{if(e.startsWith("http"))return e;{let t=e.startsWith("/")?e:"/".concat(e);return"".concat(window.location.origin).concat(t)}},S=e=>{let{children:t}=e,[n,c]=(0,s.useState)(null),[u,y]=(0,s.useState)(!0),[S,k]=(0,s.useState)(!1),E=(0,s.useRef)(!0),N=(0,s.useRef)(!1),T=(0,s.useRef)(!1),P=(0,o.useRouter)(),L=(0,s.useRef)(["regular-page"]),M=(0,s.useRef)(null),R=(0,s.useRef)(null),O=(0,s.useRef)(!1),A=(0,s.useRef)(null),I=(0,s.useRef)(null),z=(0,s.useRef)(()=>{}),H=(0,s.useRef)(null),{htmlClass:D}=(0,a.vs)(),{currentFont:U}=(0,l.nf)(),F=(0,s.useRef)(null),V=(0,s.useRef)(D),W=(0,s.useRef)(U);(0,s.useEffect)(()=>{F.current=n},[n]),(0,s.useEffect)(()=>{V.current=D},[D]),(0,s.useEffect)(()=>{W.current=U},[U]);let B=(0,s.useCallback)(()=>"dark"===V.current?"true":"false",[]),q=(0,s.useCallback)(()=>{if("undefined"!=typeof document){let e=document.documentElement.classList;if(e.contains("dark"))return"dark";if(e.contains("warm"))return"warm"}let e=V.current;return"dark"===e||"warm"===e?e:"light"},[]),G=(0,s.useCallback)(()=>{if("undefined"!=typeof document){let e=document.documentElement.classList;if(e.contains(l.wF.ATKINSON))return(0,l.pE)(l.wF.ATKINSON);if(e.contains(l.wF.LYON))return(0,l.pE)(l.wF.LYON)}return(0,l.pE)(W.current)},[]),Z=(0,s.useCallback)(()=>new Promise(e=>{if(window.tp&&window.tp.push&&"function"==typeof window.tp.push){e();return}let t=null,n=null,r=()=>{t&&clearInterval(t),n&&clearTimeout(n)};t=setInterval(()=>{window.tp&&window.tp.push&&"function"==typeof window.tp.push&&(r(),e())},50),n=setTimeout(()=>{r(),e()},1e4)}),[]),X=(0,s.useCallback)(async()=>{var e,t;return(await Z(),null===(t=window.tp)||void 0===t?void 0:null===(e=t.api)||void 0===e?void 0:e.callApi)?new Promise((e,t)=>{let n=setTimeout(()=>e({code:-1,data:[],total:0}),1e4);try{window.tp.api.callApi("/access/list",{expand_bundled:!0,cross_app:!0},t=>{clearTimeout(n),e(t)})}catch(e){clearTimeout(n),t(e)}}):{code:-1,data:[],total:0}},[Z]),K=(0,s.useRef)(0),J=(0,s.useCallback)(()=>{K.current+=1,(0,i.i6)("anonymous"),localStorage.removeItem("user"),localStorage.removeItem("subscriptions"),c(null),y(!1),document.cookie="__sma_sub=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; secure; samesite=strict",w("tm_sub",!1)},[]),Y=(0,s.useCallback)(async()=>{var e;if(!N.current||!(null===(e=window.tp)||void 0===e?void 0:e.pianoId))return;let t=++K.current;y(!0);try{if(!window.tp.pianoId.isUserValid())return J(),null;{let e=window.tp.pianoId.getUser(),n=await X();if(t!==K.current)return;if(!n||0!==n.code||!Array.isArray(n.data)){console.warn("PianoContext: subscription check failed; keeping ad audience unchanged.",{code:null==n?void 0:n.code,hasAccessList:Array.isArray(null==n?void 0:n.data)});return}let r=n.data,o=p(r);(0,i.i6)(o?"subscriber":"registered");let s=!1;if((null==e?void 0:e.pre_confirmed_user)===!0)try{s=!await new Promise(e=>{window.tp.api.callApi("/email/confirmation/check",{},t=>{e(0===t.code&&!0===t.data)})})}catch(e){s=!0}if(t!==K.current)return;let a={email:e.email,first_name:e.first_name,last_name:e.last_name,uid:e.uid,subscriptions:r,subscriptionName:o?m(r):null,hasValidRRMESubscription:!!o&&h(r),hasValidSubscription:o,needsEmailConfirmation:s};return c(a),w("user",a),w("subscriptions",r),document.cookie=o?"__sma_sub=true; path=/; secure; samesite=strict":"__sma_sub=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; secure; samesite=strict",w("tm_sub",o),sessionStorage.removeItem("piano_login_token"),A.current=null,a}}catch(e){console.error("PianoContext: Error refreshing user data:",e);return}finally{E.current&&t===K.current&&y(!1)}},[J,X]),Q=(0,s.useRef)({page:"",attempts:0}),$=P.asPath.split("#")[0];(0,s.useEffect)(()=>
1{if(!S||u||"unknown"!==(0,i.zu)()||(Q.current.page!==$&&(Q.current={page:$,attempts:0}),Q.current.attempts>=2))return;let e=setTimeout(()=>{E.current&&"unknown"===(0,i.zu)()&&(Q.current.attempts+=1,Y())},0===Q.current.attempts?250:1e3);return()=>clearTimeout(e)},[$,S,u,Y]);let ee=(0,s.useCallback)(e=>{try{let t;let n=new URL(e).searchParams.get("share");if(!n)return{isValid:!1,bypassRegistration:!1};try{t=atob(n)}catch(e){return{isValid:!1,bypassRegistration:!1}}let r=t.split("|");if(3!==r.length)return{isValid:!1,bypassRegistration:!1};let[o,i,s]=r;if("v1"!==o)return{isValid:!1,bypassRegistration:!1};let a=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return Math.abs(t).toString(16).padStart(8,"0").slice(-8)}(s+d);if(i!==a)return{isValid:!1,bypassRegistration:!1};let l=(function(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=String.fromCharCode(r^d.charCodeAt(n%d.length))}return t})(s).split(",");if(l.length<2||l.length>3)return{isValid:!1,bypassRegistration:!1};let[c,u,f]=l;if(!c||!u)return{isValid:!1,bypassRegistration:!1};let p=new Date(c),h=new Date(u),m=new Date;if(isNaN(p.getTime())||isNaN(h.getTime()))return{isValid:!1,bypassRegistration:!1};return{isValid:m>=p&&m<=h,bypassRegistration:"1"===f}}catch(e){return console.error("Error processing share parameter:",e),{isValid:!1,bypassRegistration:!1}}},[]),et=(0,s.useCallback)(()=>{if(M.current&&(clearTimeout(M.current),M.current=null),N.current&&window.tp){if("undefined"!=typeof sessionStorage&&sessionStorage.getItem("piano_login_token")){let e=Date.now();A.current||(A.current=e);let t=e-A.current;if(t<15e3){I.current||(I.current=window.setTimeout(()=>{I.current=null,E.current&&z.current()},Math.min(2e3,15e3-t)));return}sessionStorage.removeItem("piano_login_token"),A.current=null}else A.current=null;try{let e=F.current,t=C(window.location.href);window.tp.push(["setPageURL",t]);let n=[...L.current],r=ee(t),o=n.indexOf("sharebypass"),i=n.indexOf("sharebypass-noregwall");-1!==o&&n.splice(o,1),-1!==i&&n.splice(i,1),r.isValid&&(r.bypassRegistration?n.push("sharebypass-noregwall"):n.push("sharebypass")),n.length>0&&window.tp.push(["setTags",n]),window.tp.scrollDepth&&window.tp.scrollDepth.clearMaxScrolledPosition();let s=window.location.pathname;["/account","/login"].includes(s)||window.tp.experience.execute(),"function"==typeof window.plausible&&window.plausible("pageview",{props:{logged_in:e?"true":"false",subscribed:(null==e?void 0:e.hasValidSubscription)?"true":"false",dark_mode:B(),theme_mode:q(),article_font:G(),ad_blocker:g()}}),"zaraz"in window?window.zaraz.track("pageview",{page_path:t,page_location:t,page_title:document.title,user_logged_in:e?"true":"false",user_subscribed:(null==e?void 0:e.hasValidSubscription)?"true":"false"}):console.warn("Zaraz not available for tracking")}catch(e){console.error("PianoContext: Error executing Piano experience:",e)}}},[G,B,q,ee]),en=(0,s.useCallback)(()=>{M.current&&clearTimeout(M.current),M.current=setTimeout(()=>{M.current=null,E.current&&et()},300)},[et]),er=(0,s.useCallback)(()=>{M.current&&(clearTimeout(M.current),M.current=null,et())},[et]),eo=(0,s.useCallback)(e=>{let t=window.tp=window.tp||[];t.push(["setContentSection",e.section||""]),t.push(["setContentCreated",e.created||""]),t.push(["setContentAuthor",e.author||""]),L.current=e.tags.length>0?[...e.tags]:["regular-page"],O.current=!0,N.current&&en()},[en]),ei=(0,s.useCallback)(e=>{eo({tags:e})},[eo]);(0,s.useEffect)(()=>{z.current=en},[en]),(0,s.useEffect)(()=>{let e,t=!1;E.current=!0,window.__pianoHandlers={...window.__pianoHandlers,onLoginSuccess:async e=>{if(!E.current)return;(0,i.i6)("unknown");let t="PIANOID"===e.source&&function(){let e=window.__tmPianoAuthStartedAt||0;try{e=Math.max(e,parseInt(sessionStorage.getItem(b)||"0",10))}catch(e){}return!(!e||Date.now()-e>6e5)||(j(),!1)}(),n=await Y();t&&(x(null==n?void 0:n.hasValidSubscription),j())},onCheckoutComplete:async e=>{var t,n;if(!E.current)return;K.current+=1,(0,i.i6)("unknown"),window.fbq;let r=null===(n=window.tp)||void 0===n?void 0:null===(t=n.pianoId)||void 0===t?void 0:t.getUser();if((null==r?void 0:r.uid)&&(null==r?void 0:r.pre_confirmed_user)===!0)try{await fetch("/api/piano/confirm-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:r.uid})})}catch(e){console.error("Failed to auto-confirm email after checkout:",e)}await Y()},onLogout:()=>{E.current&&J()}};let n=e=>{e.data&&"pianoPhoneCapture"===e.data.action&&w("piano_pending_phone",e.data.phone)};return window.addEventListener("message",n),(async()=>{try{if(await Z(),t)return;if(N.current){k(!0);return}H.current=setInterval(()=>{var e,t,n,r;if((null===(e=window.tp)||void 0===e?void 0:e.pianoId)&&"function"==typeof window.tp.pianoId.init&&"function"==typeof(null===(t=window.tp.api)||void 0===t?void 0:t.callApi)){if(N.current)clearInterval(H.current),H.current=null;else{clearInterval(H.current),H.current=null,N.current=!0,k(!0);let e=v("user"),t=v("subscriptions");
1if(e&&t&&c({...e,subscriptions:t,hasValidSubscription:p(t)}),Y(),null===(r=window.tp)||void 0===r?void 0:null===(n=r.pianoId)||void 0===n?void 0:n.isUserValid()){let e=window.tp.pianoId.getUser(),t=v("piano_pending_phone");t&&(null==e?void 0:e.uid)&&fetch("/api/piano/update-phone",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uid:e.uid,phone:t})}).then(e=>e.json()).then(e=>{e.success&&localStorage.removeItem("piano_pending_phone")}).catch(()=>{})}T.current||(T.current=!0,O.current?en():R.current=setTimeout(()=>{R.current=null,E.current&&!O.current&&en()},1500))}}},100),e=setTimeout(()=>{H.current&&(clearInterval(H.current),H.current=null)},1e4)}catch(e){console.error("PianoContext: Error in initializePianoContext:",e),E.current&&y(!1)}})(),()=>{E.current=!1,t=!0,clearTimeout(e),N.current=!1,K.current+=1,window.removeEventListener("message",n),window.__pianoHandlers&&delete window.__pianoHandlers,H.current&&(clearInterval(H.current),H.current=null),I.current&&(clearTimeout(I.current),I.current=null),M.current&&(clearTimeout(M.current),M.current=null),R.current&&(clearTimeout(R.current),R.current=null)}},[Y,Z]),(0,s.useEffect)(()=>{if(!S||!N.current)return;let e=()=>{R.current&&(clearTimeout(R.current),R.current=null),er(),O.current=!1,L.current=["regular-page"],window.tp&&"function"==typeof window.tp.push&&(window.tp.push(["setContentAuthor",""]),window.tp.push(["setContentSection",""]),window.tp.push(["setContentCreated",""]))},t=()=>{R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{R.current=null,E.current&&!O.current&&en()},1500)};return P.events.on("routeChangeStart",e),P.events.on("routeChangeComplete",t),()=>{R.current&&(clearTimeout(R.current),R.current=null),P.events.off("routeChangeStart",e),P.events.off("routeChangeComplete",t)}},[P.events,S,en,er]),(0,s.useEffect)(()=>{if(!S||!N.current)return;let e=()=>{"visible"===document.visibilityState&&E.current&&(null==n?void 0:n.needsEmailConfirmation)&&Y()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[S,null==n?void 0:n.needsEmailConfirmation,Y]);let es=(0,s.useCallback)(()=>{if(N.current&&window.tp)try{_(),window.tp.pianoId.show({screen:"login",displayMode:"modal"})}catch(e){console.error("Error showing Piano login modal:",e)}},[]),ea=(0,s.useCallback)(()=>{N.current&&window.tp&&(_(),window.tp.pianoId.show({screen:"register",displayMode:"modal"}))},[]),el=(0,s.useCallback)(()=>{N.current&&window.tp&&(_(),window.tp.pianoId.show({screen:"restore",displayMode:"modal"}))},[]),ec=(0,s.useCallback)(()=>es(),[es]),eu=(0,s.useCallback)(()=>{var e;let t=!1,n=()=>{t||(t=!0,J(),window.location.href="/")};if(!N.current||!(null===(e=window.tp)||void 0===e?void 0:e.pianoId)){n();return}try{window.tp.pianoId.logout(n),window.setTimeout(n,4e3)}catch(e){console.error("PianoContext: Error logging out:",e),n()}},[J]);return(0,r.jsx)(f.Provider,{value:{currentUser:n,loading:u,isInitialized:S,login:ec,logout:eu,refreshUser:Y,checkValidSubscription:p,openLoginModal:es,openRegisterModal:ea,openResetPasswordModal:el,setTags:ei,trackPageview:eo,executeExperience:en},children:t})},k=()=>(0,s.useContext)(f)},6191:function(e,t,n){"use strict";n.d(t,{YW:function(){return a},ej:function(){return l},r9:function(){return u},xM:function(){return c}});var r=n(5893),o=n(7294),i=n(2373);let s=()=>{let{isInitialized:e,openLoginModal:t,openRegisterModal:n,openResetPasswordModal:r,logout:s}=(0,i.Hg)();return(0,o.useEffect)(()=>{let n=()=>{"#login"===window.location.hash&&e&&t()};return e&&("#login"===window.location.hash&&t(),window.addEventListener("hashchange",n)),()=>{window.removeEventListener("hashchange",n)}},[e,t]),{openLoginModal:t,openRegisterModal:n,openResetPasswordModal:r,logout:s,isReady:e}},a=e=>{let{children:t,className:n,...o}=e,{openLoginModal:i,isReady:a}=s();return(0,r.jsx)("button",{className:"id-form ".concat(n||""),onClick:e=>{if(e.preventDefault(),a){let t=e.currentTarget;t.style.color="#EF0A0A",t.style.fontWeight="bold",setTimeout(()=>{t.style.color="",t.style.fontWeight=""},1500),i()}},...o,children:t||"Log in"})},l=e=>{let{children:t,className:n,...o}=e,{openRegisterModal:i,isReady:a}=s();return(0,r.jsx)("button",{className:"register-form ".concat(n||""),onClick:e=>{if(e.preventDefault(),a){let t=e.currentTarget;t.style.filter="blur(1px)",setTimeout(()=>{t.style.filter="blur(0)"},1500),i()}},...o,children:t||"Register"})},c=e=>{let{children:t,className:n,...o}=e,{openResetPasswordModal:i,isReady:a}=s();return(0,r.jsx)("button",{className:"reset_pass-form ".concat(n||""),onClick:e=>{if(e.preventDefault(),a){let t=e.currentTarget;t.style.filter="blur(1px)",setTimeout(()=>{t.style.filter="blur(0)"},1500),i()}},...o,children:t||"Reset Password"})},u=e=>{let{children:t,className:n,...o}=e,{logout:i,isReady:a}=s();return(0,r.jsx)("button",{className:"piano-logout-form ".concat(n||""),onClick:e=>{e.preventDefault(),a&&i()},...o,children:t||"Logout"})}},8858:function(e,t,n){"use strict";n.d(t,{g:function(){return f},w:function(){return d}});var r=n(5893),o=n(7294),i=n(2373);let s=(0,o.createContext)({savedArticles:[],isSaved:()=>!1,toggleSave:()=>{},removeSaved:()=>{},clearAll:()=>{},savedCount:0,isLoading:!0}),a="saved_articles_tm";function l(){if("undefined"==typeof document)return null;let e=document.cookie.match(/(?:^|;\s*)__utp=([^;]*)/);return e?decodeURIComponent(e[1]):null}function c(){let e=l();return e?{Authorization:"Bearer ".concat(e)}:{}}function u(e){try{localStorage.setItem(a,JSON.stringify(e))}catch(e){console.error("SavedArticles: localStorage write failed",e)}}let d=e=>{let{children:t}=e,[n,d]=(0,o.useState)([]),[f,p]=(0,o.useState)(!0),{currentUser:h,isInitialized:m,openLoginModal:g}=(0,i.Hg)(),w=(0,o.useRef)(!1),v=(0,o.useRef)(!1),b=(0,o.useRef)(0);(0,o.useEffect)(()=>{d(function(){try{let e=localStorage.getItem(a);if(!e)return[];return JSON.parse(e).map(e=>({nid:e.nid,savedAt:e.savedAt}))}catch(e){return[]}}()),p(!1)},[]);let y=(0,o.useCallback)(e=>{(null==h?void 0:h.uid)&&fetch("/api/saved-articles",{method:"POST",headers:{"Content-Type":"application/json",...c()},body:JSON.stringify({articles:e})}).then(e=>{e.ok||console.warn("SavedArticles: API route responded with",e.status)}).catch(e=>{console.error("SavedArticles: failed to sync to Piano",e)})},[h]),x=(0,o.useCallback)(()=>{!(!(null==h?void 0:h.uid)||v.current||Date.now()-b.current<3e4)&&l()&&(v.current=!0,fetch("/api/saved-articles",{headers:c()}).then(e=>{if(!e.ok)throw Error("API returned ".concat(e.status));return e.json()}).then(e=>{let t=(e.articles||[]).map(e=>({nid:e.nid,savedAt:e.savedAt}));d(t),u(t),b.current=Date.now()}).catch(e=>{console.error("SavedArticles: error reading from Piano",e)}).finally(()=>{v.current=!1}))},[h,y]);(0,o.useEffect)(()=>{m&&(null==h?void 0:h.uid)&&!w.current&&(w.current=!0,x())},[m,h,x]),(0,o.useEffect)(()=>{let e=()=>{"visible"===document.visibilityState&&(null==h?void 0:h.uid)&&x()};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[h,x]),(0,o.useEffect)(()=>{let e=()=>{w.current=!1,d([]),localStorage.removeItem(a)};return window.addEventListener("piano:logout",e),()=>window.removeEventListener("piano:logout",e)},[]);let _=(0,o.useCallback)(e=>n.some(t=>t.nid===e),[n]),j=(0,o.useCallback)(e=>{if(!h){g();return}let t=!1;d(n=>{let r=(t=n.some(t=>t.nid===e))?n.filter(t=>t.nid!==e):[{nid:e,savedAt:Date.now()},...n].slice(0,200);return u(r),y(r),r}),"function"==typeof window.plausible&&window.plausible(t?"SaveArticleRemove":"SaveArticleSave",{props:{nid:String(e)}})},[h,g,y]),C=(0,o.useCallback)(e=>{"function"==typeof window.plausible&&window.plausible("SaveArticleRemove",{props:{nid:String(e)}}),d(t=>{let n=t.filter(t=>t.nid!==e);return u(n),y(n),n})},[y]),S=(0,o.useCallback)(()=>{d([]),u([]),y([])},[y]);return(0,r.jsx)(s.Provider,{value:{savedArticles:n,isSaved:_,toggleSave:j,removeSaved:C,clearAll:S,savedCount:n.length,isLoading:f},children:t})},f=()=>(0,o.useContext)(s)},8720:function(e,t,n){"use strict";n.d(t,{Zk:function(){return u},sC:function(){return c},yH:function(){return o}});var r,o,i=n(5893),s=n(7294),a=n(5167);(r=o||(o={})).NORMAL="normal",r.LARGE="large",r.XL="xl";let l=s.createContext({currentSize:"normal",setTextSize:()=>{}}),c=e=>{let{children:t}=e,[n,r]=s.useState("normal"),{localStorageHas:o,getLocalStorage:c,setLocalStorage:u}=(0,a._)(),d="textSize";return s.useEffect(()=>{if(o(d)){let e=c(d);e&&(r(e),"undefined"!=typeof document&&(document.documentElement.classList.remove("normal","large","xl"),document.documentElement.classList.add(e)))}},[c,o]),(0,i.jsx)(l.Provider,{value:{currentSize:n,setTextSize:function(e){u(d,e),r(e),"undefined"!=typeof document&&(document.documentElement.classList.remove("normal","large","xl"),document.documentElement.classList.add(e))}},children:t})},u=()=>s.useContext(l)},1424:function(e,t,n){"use strict";n.d(t,{X0:function(){return l},i6:function(){return c},kv:function(){return a},p:function(){return s},zu:function(){return i}});let r="unknown",o=new Set,i=()=>r,s=()=>"unknown";function a(e){return o.add(e),()=>{o.delete(e)}}function l(){let e=window.googletag.pubads();if(["user_status","subscription_status","TM_Sub","sub"].forEach(t=>e.clearTargeting(t)),"unknown"===r)return;let t="subscriber"===r;e.setTargeting("user_status","anonymous"===r?"logged_out":"logged_in"),e.setTargeting("subscription_status",t?"subscribed":"not_subscribed"),e.setTargeting("TM_Sub",t?"Valid":"None"),e.setTargeting("sub",t?"true":"false")}function c(e){e!==r&&(r=e,window.googletag=window.googletag||{cmd:[]}
1,window.googletag.cmd.push(l),o.forEach(e=>e()))}},4530:function(e,t,n){"use strict";let r;n.d(t,{$e:function(){return m},P:function(){return g},UC:function(){return d},XE:function(){return c},y0:function(){return u}});var o=n(1424);let i={page:null,visit:0,status:"waiting",deadline:0},s=i,a=!1,l=new Set,c=()=>s,u=()=>i;function d(e){return l.add(e),()=>{l.delete(e)}}function f(e){s=e,l.forEach(e=>e())}function p(){clearTimeout(r),f({...s,status:"waiting",deadline:Date.now()+1500}),r=setTimeout(()=>{f({...s,status:"skipped"})},1500)}function h(){if(null!==s.page&&"skipped"!==s.status){if("unknown"===(0,o.zu)()){"ready"===s.status&&p();return}"waiting"===s.status&&(clearTimeout(r),f({...s,status:Date.now()>=s.deadline?"skipped":"ready"}))}}function m(e){let t=e.split("#")[0];s.page!==t&&(a||((0,o.kv)(h),a=!0),clearTimeout(r),s={page:t,visit:s.visit+1,status:"ready",deadline:0},"unknown"===(0,o.zu)()?p():f(s))}function g(e){return s.visit===e&&"ready"===s.status&&"unknown"!==(0,o.zu)()}},1891:function(e,t,n){"use strict";n.d(t,{ec:function(){return c},j3:function(){return s},qq:function(){return i},uv:function(){return l}});let r=null,o=null;function i(e){r=null!=e&&""!==e?String(e):null,a()}function s(e){o=e||null,a()}function a(){var e;(null===(e=window.googletag)||void 0===e?void 0:e.cmd)&&window.googletag.cmd.push(()=>{let e=window.googletag.pubads();e.clearTargeting("tm-nid"),e.clearTargeting("TM_Section"),r&&e.setTargeting("tm-nid",r),o&&e.setTargeting("TM_Section",o)})}let l=a;function c(e){return e&&e.toLowerCase().replace(/\//g,"").replace(/[^a-z0-9_-]/g,"")||null}},2496:function(e,t,n){"use strict";let r,o;n.d(t,{X:function(){return u},d:function(){return f}});var i=n(1424),s=n(1891),a=n(4530);let l="https://securepubads.g.doubleclick.net/tag/js/gpt.js",c=!1;function u(){return r||(window.googletag=window.googletag||{cmd:[]},r=new Promise((e,t)=>{if(window.googletag.cmd.push(()=>{if(!c){let e=window.googletag.pubads();e.disableInitialLoad(),e.collapseEmptyDivs(),e.enableVideoAds(),e.enableSingleRequest(),window.googletag.enableServices(),c=!0}e()}),document.querySelector('script[src="'.concat(l,'"]')))return;let n=document.createElement("script");n.async=!0,n.src=l,n.onerror=()=>{n.remove(),r=void 0,t(Error("Failed to load GPT"))},document.head.appendChild(n)}))}let d=new Map;function f(e,t,n){return d.set(e,{audience:t,visit:n}),clearTimeout(o),o=setTimeout(()=>{o=void 0,window.googletag.cmd.push(()=>{let e=(0,i.zu)(),t=new Set(window.googletag.pubads().getSlots()),n=Array.from(d.entries()).filter(n=>{let[r,o]=n;return t.has(r)&&(0,a.P)(o.visit)&&o.audience===e}).map(e=>{let[t]=e;return t});d.clear(),n.length&&((0,s.uv)(),(0,i.X0)(),window.googletag.pubads().refresh(n))})},150),()=>{d.delete(e)}}},256:function(e,t,n){"use strict";n.d(t,{Br:function(){return o},CU:function(){return i},PA:function(){return r}});let r="https://www.themonthly.com.au",o="".concat(r,"/icons/TM25_social_share_fallback_SS2_SS1.png");function i(e){let t=null==e?void 0:e.trim();if(!t)return!1;try{let e=new URL(t,r);if("http:"!==e.protocol&&"https:"!==e.protocol)return!1;let n=e.pathname.replace(/\/+$/,"");if(!n||"/"===n||e.pathname.endsWith("/")||/\/sites\/default\/files\/styles\/[^/]+\/public$/i.test(n))return!1;return!0}catch(e){return!1}}},3525:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(4001).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r.actionAsyncStorage}});let r=n(3525);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4001:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return i}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function i(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6432:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return p},usePathname:function(){return d},useRouter:function(){return f},useSearchParams:function(){return u},useSelectedLayoutSegment:function(){return m},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(7294),o=n(257),i=n(2608),s=n(1288),a=n(6406),l=n(2717),c=n(5988);function u(){let e=(0,r.useContext)(i.SearchParamsContext);return(0,r.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,r.useContext)(i.PathnameContext)}function f(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(i.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let i;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)i=t[1][n];else{var l;let e=t[1];i=null!=(l=e.children)?l:Object.values(e)[0]}if(!i)return o;let c=i[0],u=(0,s.getSegmentValue)(c);return!u||u.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(u),e(i,n,!1,o))}(t.tree,e):null}function m(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2717:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return s},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(7511),o=n(3394);class i extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class s extends URLSearchParams{append(){throw new i}delete(){throw new i}set(){throw new i}sort(){throw new i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3394:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4234:function(e,t){"use strict";var n,r;
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7511:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return m},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return f},permanentRedirect:function(){return d},redirect:function(){return u}});let i=n(2595),s=n(6361),a=n(4234),l="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(l);r.digest=l+";"+t+";"+e+";"+n+";";let o=i.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function u(e,t){void 0===t&&(t="replace");let n=s.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let n=s.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function f(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),i=Number(o);return t===l&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(i)&&i in a.RedirectStatusCode}function p(e){return f(e)?e.digest.split(";",3)[2]:null}function h(e){if(!f(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function m(e){if(!f(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(4001).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2595:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(5329);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1288:function(e,t){"use strict";function n(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8199:function(e,t){"use strict";var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return s},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return f},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let s="refresh",a="navigate",l="restore",c="server-patch",u="prefetch",d="fast-refresh",f="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(i=r||(r={})).fresh="fresh",i.reusable="reusable",i.expired="expired",i.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return o}});let r=n(8337);function o(e,t,o,i){{let s=n(5183).normalizeLocalePath,a=n(4166).detectDomainLocale,l=t||s(e,o).detectedLocale,c=a(i,void 0,l);if(c){let t="http"+(c.http?"":"s")+"://",n=l===c.defaultLocale?"":"/"+l;return""+t+c.domain+(0,r.normalizePathTrailingSlash)(""+n+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(8754),o=n(1757),i=n(5893),s=o._(n(7294)),a=r._(n(3935)),l=r._(n(3867)),c=n(5283),u=n(6594),d=n(3945);n(3179);let f=n(1928),p=r._(n(3872)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function m(e,t,n,r,o,i,s){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let w=(0,s.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:a,width:l,decoding:c,className:u,style:d,fetchPriority:f,placeholder:p,loading:h,unoptimized:w,fill:v,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:x,setShowAltText:_,sizesInput:j,onLoad:C,onError:S,...k}=e;return(0,i.jsx)("img",{...k,...g(f),loading:h,width:l,height:a,decoding:c,"data-nimg":v?"fill":"1",className:u,style:d,sizes:o,srcSet:r,src:n,ref:(0,s.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&m(e,p,b,y,x,w,j))},[n,p,b,y,x,S,w,j,t]),onLoad:e=>{m(e.currentTarget,p,b,y,x,w,j)},onError:e=>{_(!0),"empty"!==p&&x(!0),S&&S(e)}})});function v(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,i.jsx)(l.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(f.RouterContext),r=(0,s.useContext)(d.ImageConfigContext),o=(0,s.useMemo)(()=>{var e;let t=h||r||u.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),o=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:o,qualities:i}},[r]),{onLoad:a,onLoadingComplete:l}=e,m=(0,s.useRef)(a);(0,s.useEffect)(()=>{m.current=a},[a]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[b,y]=(0,s.useState)(!1),[x,_]=(0,s.useState)(!1),{props:j,meta:C}=(0,c.getImgProps)(e,{defaultLoader:p.default,imgConf:o,blurComplete:b,showAltText:x});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w,{...j,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:_,sizesInput:e.sizes,ref:t}),C.priority?(0,i.jsx)(v,{isAppRouter:!n,imgAttributes:j}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8342:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(8754),o=n(5893),i=r._(n(7294)),s=n(6075),a=n(3955),l=n(8041),c=n(9903),u=n(5490),d=n(1928),f=n(257),p=n(4229),h=n(7195),m=n(9470),g=n(8199),w=new Set;function v(e,t,n,r,o,i){if(i||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let o=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(w.has(o))return;w.add(o)}(async()=>i?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let y=i.default.forwardRef(function(e,t){let n,r;let{href:l,as:w,children:y,prefetch:x=null,passHref:_,replace:j,shallow:C,scroll:S,locale:k,onClick:E,onMouseEnter:N,onTouchStart:T,legacyBehavior:P=!1,...L}=e;n=y,P&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let M=i.default.useContext(d.RouterContext),R=i.default.useContext(f.AppRouterContext),O=null!=M?M:R,A=!M,I=!1!==x,z=null===x?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:H,as:D}=i.default.useMemo(()=>{if(!M){let e=b(l);return{href:e,as:w?b(w):e}}let[e,t]=(0,s.resolveHref)(M,l,!0);return{href:e,as:w?(0,s.resolveHref)(M,w):t||e}},[M,l,w]),U=i.default.useRef(H),F=i.default.useRef(D);P&&(r=i.default.Children.only(n));let V=P?r&&"object"==typeof r&&r.ref:t,[W,B,q]=(0,p.useIntersection)({rootMargin:"200px"}),G=i.default.useCallback(e=>{(F.current!==D||U.current!==H)&&(q(),F.current=D,U.current=H),W(e),V&&("function"==typeof V?V(e):"object"==typeof V&&(V.current=e))},[D,V,H,q,W]);i.default.useEffect(()=>{O&&B&&I&&v(O,H,D,{locale:k},{kind:z},A)},[D,H,B,k,I,null==M?void 0:M.locale,O,A,z]);let Z={ref:G,onClick(e){P||"function"!=typeof E||E(e),P&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),O&&!e.defaultPrevented&&function(e,t,n,r,o,s,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let f=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:s,locale:c,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};u?i.default.startTransition(f):f()}(e,O,H,D,j,C,S,k,A)},onMouseEnter(e){P||"function"!=typeof N||N(e),P&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),O&&(I||!A)&&v(O,H,D,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},A)},onTouchStart:function(e){P||"function"!=typeof T||T(e),P&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),O&&(I||!A)&&v(O,H,D,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},A)}};if((0,c.isAbsoluteUrl)(D))Z.href=D;else if(!P||_||"a"===r.type&&!("href"in r.props)){let e=void 0!==k?k:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)(D,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);Z.href=t||(0,m.addBasePath)((0,u.addLocale)(D,e,null==M?void 0:M.defaultLocale))}return P?i.default.cloneElement(r,Z):(0,o.jsx)("a",{...L,...Z,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5183:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});let r=(e,t)=>n(4165).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4229:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(7294),o=n(4474),i="function"==typeof IntersectionObserver,s=new Map,a=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,c=l||!i,[u,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{f.current=e},[]);return(0,r.useEffect)(()=>
1{if(i){if(c||u)return;let e=f.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=s.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},a.push(n),s.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),s.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,n,t,u,f.current]),[p,u,(0,r.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),n(3179);let r=n(6630),o=n(6594);function i(e){return void 0!==e.default}function s(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var n,a;let l,c,u,{src:d,sizes:f,unoptimized:p=!1,priority:h=!1,loading:m,className:g,quality:w,width:v,height:b,fill:y=!1,style:x,overrideSrc:_,onLoad:j,onLoadingComplete:C,placeholder:S="empty",blurDataURL:k,fetchPriority:E,decoding:N="async",layout:T,objectFit:P,objectPosition:L,lazyBoundary:M,lazyRoot:R,...O}=e,{imgConf:A,showAltText:I,blurComplete:z,defaultLoader:H}=t,D=A||o.imageConfigDefault;if("allSizes"in D)l=D;else{let e=[...D.deviceSizes,...D.imageSizes].sort((e,t)=>e-t),t=D.deviceSizes.sort((e,t)=>e-t),r=null==(n=D.qualities)?void 0:n.sort((e,t)=>e-t);l={...D,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===H)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let U=O.loader||H;delete O.loader,delete O.srcSet;let F="__next_img_default"in U;if(F){if("custom"===l.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:n,...r}=t;return e(r)}}if(T){"fill"===T&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[T];t&&!f&&(f=t)}let V="",W=s(v),B=s(b);if("object"==typeof(a=d)&&(i(a)||void 0!==a.src)){let e=i(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(c=e.blurWidth,u=e.blurHeight,k=k||e.blurDataURL,V=e.src,!y){if(W||B){if(W&&!B){let t=W/e.width;B=Math.round(e.height*t)}else if(!W&&B){let t=B/e.height;W=Math.round(e.width*t)}}else W=e.width,B=e.height}}let q=!h&&("lazy"===m||void 0===m);(!(d="string"==typeof d?d:V)||d.startsWith("data:")||d.startsWith("blob:"))&&(p=!0,q=!1),l.unoptimized&&(p=!0),F&&d.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(p=!0),h&&(E="high");let G=s(w),Z=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:L}:{},I?{}:{color:"transparent"},x),X=z||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:W,heightInt:B,blurWidth:c,blurHeight:u,blurDataURL:k||"",objectFit:Z.objectFit})+'")':'url("'+S+'")',K=X?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{}
1,J=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:s,loader:a}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:c}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,s),u=l.length-1;return{sizes:s||"w"!==c?s:"100vw",srcSet:l.map((e,r)=>a({config:t,src:n,quality:i,width:e})+" "+("w"===c?e:r+1)+c).join(", "),src:a({config:t,src:n,quality:i,width:l[u]})}}({config:l,src:d,unoptimized:p,width:W,quality:G,sizes:f,loader:U});return{props:{...O,loading:q?"lazy":m,fetchPriority:E,width:W,height:B,decoding:N,className:g,style:{...Z,...K},sizes:J.sizes,srcSet:J.srcSet,src:_||J.src},meta:{unoptimized:p,priority:h,placeholder:S,fill:y}}}},6630:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:s}=e,a=r?40*r:t,l=o?40*o:n,c=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+c+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(c?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},6210:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return a}});let r=n(8754),o=n(5283),i=n(4080),s=r._(n(3872));function a(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=i.Image},3872:function(e,t){"use strict";function n(e){var t;let{config:n,src:r,width:o,quality:i}=e,s=i||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+o+"&q="+s}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},5988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return i}});let r=n(1757)._(n(7294)),o=r.default.createContext(null);function i(e){let t=(0,r.useContext)(o);t&&t(e)}},7734:function(e,t,n){"use strict";n.r(t);var r=n(5893),o=n(8814),i=n(9008),s=n.n(i),a=n(7294),l=n(1664),c=n.n(l),u=n(1163),d=n.n(u);class f extends a.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.error("Uncaught error:",e,t)}render(){return this.state.hasError?(0,r.jsxs)(o.A,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:"Error | The Monthly"})}),(0,r.jsx)("div",{children:"Sorry, we ran into an unexpected problem."}),(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{className:"my-2",type:"button",onClick:()=>d().back(),children:"Click here to go back"}),(0,r.jsx)(c(),{href:"/",children:(0,r.jsx)("h4",{children:"Back to the home page"})}),(0,r.jsx)(c(),{href:"/current-issue",children:(0,r.jsx)("h4",{children:"Current issue"})}),(0,r.jsx)(c(),{href:"/search",children:(0,r.jsx)("h4",{children:"Search"})})]})]}):this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}t.default=f},9645:function(e,t,n){"use strict";n.r(t);var r=n(5893),o=n(7294),i=n(1163),s=n(9008),a=n.n(s),l=n(4298),c=n.n(l),u=n(3457),d=n.n(u),f=n(6349),p=n(8720),h=n(5216),m=n(7734),g=n(2373),w=n(2496),v=n(4530),b=n(8858),y=n(2441);n(9165),n(653),n(3932),n(1240),n(6822),n(168),n(2073);var x=n(256),_=n(3454);let j="The Monthly",C="true"===_.env.NEXT_PUBLIC_ROUTE_PREFETCH_ENABLED,S={aid:"EpZnA0skpa",cxenseSiteId:"5856226139038227175",endpoint:"https://vx.themonthly.com.au",composerHost:"https://c2.themonthly.com.au",staticDomain:"https://cdn.themonthly.com.au",pianoIdUrl:"https://auth.schwartz.media",scriptUrl:"https://cdn.themonthly.com.au/api/tinypass.min.js"};t.default=function(e){let{Component:t,pageProps:n}=e,s=(0,i.useRouter)();(0,o.useEffect)(()=>{(0,v.$e)(s.asPath)},[s.asPath]);let[l,u]=(0,o.useState)(!1),[_,k]=(0,o.useState)({piano:!1,gpt:!1,plausible:!1});(0,o.useEffect)(()=>
1{if(C)return;let e=s.prefetch.bind(s);return s.prefetch=async()=>{},()=>{s.prefetch=e}},[s]);let E=()=>{window.tp&&(window.tp=window.tp||[],window.tp.push(["setAid",S.aid]),S.cxenseSiteId&&window.tp.push(["setCxenseSiteId",S.cxenseSiteId]),window.tp.push(["setUseTinypassAccounts",!1]),window.tp.push(["setUsePianoIdUserProvider",!0]),window.tp.push(["setSwgDisabled",!0]),window.tp.push(["setEndpoint",S.endpoint]),S.composerHost&&window.tp.push(["setComposerHost",S.composerHost]),S.staticDomain&&window.tp.push(["setStaticDomain",S.staticDomain]),window.tp.push(["setPianoIdUrl",S.pianoIdUrl]),window.tp.push(["setCloudflareWorkerUrl","".concat(window.location.origin,"/api/piano/itp-cookies")]),N(),window.pdl=window.pdl||{},window.pdl.requireConsent="v2",window.pdl.consent={products:["PA"]},k(e=>({...e,piano:!0})),u(!0),window.tp.push(["init",function(){window.tp.consent.getByPurpose()||window.tp.consent.setByPurpose("AM","opt-in","PA")}]))},N=()=>{function e(e,t,n,r){if(!e){console.error("No iframe ID provided for Piano message");return}var o=document.getElementById(e);o&&o.contentWindow?o.contentWindow.postMessage({piano:{success:t,message:n,field:r||null}},"*"):console.error("Could not find Piano iframe with ID:",e)}window.tp.push(["addHandler","checkoutComplete",function(e){var t;"zaraz"in window&&window.zaraz.track("purchase",{transaction_id:e.termConversionId||e.conversionId,value:e.chargeAmount,currency:e.chargeCurrency,content_category:"tm subscription",content_ids:[e.termId]}),(null===(t=window.__pianoHandlers)||void 0===t?void 0:t.onCheckoutComplete)&&window.__pianoHandlers.onCheckoutComplete(e)}]),window.tp.push(["addHandler","checkoutClose",function(e){if(e&&"checkoutCompleted"===e.state){var t;(null===(t=window.__pianoHandlers)||void 0===t?void 0:t.onCheckoutClose)?window.__pianoHandlers.onCheckoutClose(e):location.reload()}}]),window.tp.push(["addHandler","checkoutCustomEvent",function(){}]),window.tp.push(["addHandler","checkoutCancel",function(){}]),window.tp.push(["addHandler","checkoutError",function(){}]),window.tp.push(["addHandler","checkoutSubmitPayment",function(){}]),window.tp.push(["addHandler","loginRequired",function(){return!1}]),window.tp.push(["addHandler","loginSuccess",function(e){var t;(null===(t=window.__pianoHandlers)||void 0===t?void 0:t.onLoginSuccess)&&window.__pianoHandlers.onLoginSuccess(e)}]),window.tp.push(["addHandler","meterExpired",function(){}]),window.tp.push(["addHandler","meterActive",function(){}]),window.tp.push(["addHandler","experienceExecute",function(e){}]),window.tp.push(["addHandler","experienceExecutionFailed",function(e){console.error("Experience execution failed",e)}]),window.tp.push(["addHandler","setResponseVariable",function(e){var t,n,r,o,i,s;let a={...null!=e?e:{},...null!==(i=null==e?void 0:e.responseVariables)&&void 0!==i?i:{}};a.set_custom_field&&(null===(o=window.tp)||void 0===o?void 0:null===(r=o.pianoId)||void 0===r?void 0:null===(n=r.getUser)||void 0===n?void 0:null===(t=n.call(r))||void 0===t?void 0:t.uid)&&fetch("/api/piano/set-custom-field",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({field:String(a.set_custom_field),value:String(null!==(s=a.custom_field_value)&&void 0!==s?s:"")})}).catch(e=>console.error("set-custom-field update failed",e))}]),window.tp.push(["addHandler","externalCheckoutComplete",function(e){location.reload()}]),window.tp.push(["addHandler","logout",function(){var e;(null===(e=window.__pianoHandlers)||void 0===e?void 0:e.onLogout)?window.__pianoHandlers.onLogout():window.dispatchEvent(new Event("piano:logout"))}]),window.tp.push(["addHandler","customEvent",function(t){if("email-signup"===t.eventName){var n,r="",o=[];try{n=JSON.parse(t.params.params).iframeId}catch(e){console.error("Error parsing Piano params:",e);return}if(t.params.email&&t.params.email.length>0)r=t.params.email;else{e(n,!1,"Please enter a valid email address");return}if(o=t.params.newsletters&&t.params.newsletters.length>0?t.params.newsletters.split(",").map(e=>e.trim()):[],!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r)){e(n,!1,"Please enter a valid email address");return}Promise.allSettled(o.map(e=>fetch("/newsletters/regwall",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:r,newsletter:e,fullname:""})}).then(e=>{if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));return e}).catch(t=>{throw console.error("Error signing up for ".concat(e,":"),t),t}))).then(t=>{var r=t.filter(e=>"rejected"===e.status);if(0===r.length)e(n,!0,"Successfully subscribed!");else if(r.length===t.length)e(n,!1,"Signup failed. Please try again.");else{var o=t.length-r.length;e(n,!0,"Subscribed to ".concat(o," of ").concat(t.length," newsletters"))}}).catch(t=>{console.error("Unexpected error in newsletter signup:",t),e(n,!1,"An unexpected error occurred. Please try again.")})}}])};return(0,o.useEffect)(()=>{},[]),(0,o.useEffect)(()=>{let e=(e,t)=>
1{if(null==e?void 0:e.cancelled)return;let n="__staleBuildRecovery:"+t;try{if(sessionStorage.getItem(n))return;sessionStorage.setItem(n,"1"),sessionStorage.setItem("__staleNavAt",String(Date.now()))}catch(e){}window.location.assign(t)};return s.events.on("routeChangeError",e),()=>s.events.off("routeChangeError",e)},[s.events]),(0,o.useEffect)(()=>{if(!s.isReady)return;let e=new URL(window.location.href);if(!e.searchParams.has("_r"))return;e.searchParams.delete("_r");let t="".concat(e.pathname).concat(e.search).concat(e.hash);window.history.replaceState(window.history.state,document.title,t)},[s.isReady]),(0,o.useEffect)(()=>{var e,t;let n="_build_reload",r=Date.now(),o=null;window.__monthlyHydrated=!0;let i=()=>{o&&clearTimeout(o),o=setTimeout(()=>{try{sessionStorage.removeItem(n)}catch(e){}},3e4)},a=()=>{r=Date.now(),i()};s.events.on("routeChangeComplete",a),i();let l=e=>{if(Date.now()-r>=2500)return;let t=parseInt(sessionStorage.getItem(n)||"0",10);if(t>=2)return;console.warn("[App] ".concat(e," during initial-load window - reloading")),sessionStorage.setItem(n,String(t+1));let o=new URL(window.location.href);o.searchParams.set("_r",String(Date.now())),window.location.replace(o.toString())},c=e=>{let t=e.target;((null==t?void 0:t.tagName)==="LINK"||(null==t?void 0:t.tagName)==="SCRIPT")&&("LINK"!==t.tagName||"prefetch"!==t.rel)&&(t.href||t.src||"").includes("/_next/static/")&&l("asset-404")};window.addEventListener("error",c,!0);let u=e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.type)==="BUILD_MISMATCH"&&l("sw-build-mismatch")};null===(t=navigator)||void 0===t||null===(e=t.serviceWorker)||void 0===e||e.addEventListener("message",u);let d=e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.action)==="reloadPage"&&location.reload()};window.addEventListener("message",d),"serviceWorker"in navigator&&window.addEventListener("load",()=>{if(!new Set(["www.themonthly.com.au","staging.themonthly.com.au","localhost","127.0.0.1"]).has(window.location.hostname)){console.info("Skipping service worker registration on non-canonical host:",window.location.hostname);return}navigator.serviceWorker.register("/sw.js",{scope:"/",updateViaCache:"none"}).catch(e=>console.error("ServiceWorker registration failed:",e))});let f=()=>(0,w.X)().then(()=>{k(e=>({...e,gpt:!0}))}),p=()=>new Promise((e,t)=>{if(window.plausible=window.plausible||function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];(window.plausible.q=window.plausible.q||[]).push(t)},document.querySelector('script[data-domain="themonthly.com.au"][src="/_tm/v.js"]')){k(e=>({...e,plausible:!0})),e();return}let n=document.createElement("script");n.src="/_tm/v.js",n.defer=!0,n.setAttribute("data-domain","themonthly.com.au"),n.setAttribute("data-api","/_tm/e"),n.onload=()=>{k(e=>({...e,plausible:!0})),e()},n.onerror=e=>{console.error("Failed to load Plausible script:",e),t(e)},document.head.appendChild(n)});return(async()=>{let e=[f().catch(e=>console.error("GPT script error:",e))];e.push(p().catch(e=>console.error("Plausible script error:",e)));try{await Promise.all(e)}catch(e){console.error("Error loading scripts:",e)}})(),()=>{var e,t;window.removeEventListener("error",c,!0),null===(t=navigator)||void 0===t||null===(e=t.serviceWorker)||void 0===e||e.removeEventListener("message",u),window.removeEventListener("message",d),s.events.off("routeChangeComplete",a),o&&clearTimeout(o)}},[s.events]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a(),{children:[(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,r.jsx)("meta",{name:"application-name",content:j}),(0,r.jsx)("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),(0,r.jsx)("meta",{name:"apple-mobile-web-app-status-bar-style",content:"default"}),(0,r.jsx)("meta",{name:"apple-mobile-web-app-title",content:j}),(0,r.jsx)("meta",{name:"description",content:"Australia's leading current affairs magazine"}),(0,r.jsx)("meta",{name:"format-detection",content:"telephone=no"}),(0,r.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"}),(0,r.jsx)("meta",{name:"theme-color",content:"#000000"}),(0,r.jsx)("meta",{name:"cXenseParse:pageclass",content:"frontpage"},"cxense-pageclass"),(0,r.jsx)("meta",{property:"og:type",content:"website"},"og-type"),(0,r.jsx)("meta",{property:"og:image",content:x.Br},"og-image"),(0,r.jsx)("meta",{name:"twitter:image",content:x.Br},"twitter-image"),(0,r.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter-card"),(0,r.jsx)("meta",{httpEquiv:"Permissions-Policy",content:'payment=(self "https://pay.google.com" "https://news.google.com" "https://pay.sandbox.google.com")'}),(0,r.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,r.jsx)("link",{rel:"apple-touch-icon",href:"/icons/android-launchericon-192-192.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/icons/32.png"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/icons/16.png"})]}),(0,r.jsx)(c(),{id:"error-handlers",strategy:"beforeInteractive",children:"\n          (function() {\
1n            // Add a global function to manually close popup\n            window.closeSwgPopup = function() {\n              if (window.location.pathname.includes('subscribe')) {\n                window.location.href = '/account';\n              }\n            };\n            \n            // Handle unhandled promise rejections\n            window.addEventListener('unhandledrejection', function(event) {\n              const error = event.reason;\n              \n              // Check for RpcError or payment-related errors\n              const errorStr = String(error);\n              const isPaymentError = errorStr.includes('RpcError') || \n                                    errorStr.includes('payment') ||\n                                    errorStr.includes('SWG') ||\n                                    errorStr.includes('Google') ||\n                                    (error && error.name === 'RpcError') ||\n                                    (error && error.name && error.name.includes('Rpc'));\n              \n              if (isPaymentError) {\n                event.preventDefault();\n                \n                // Close any open popups and redirect\n                setTimeout(function() {\n                  if (window.location.pathname.includes('subscribe')) {\n                    window.location.href = '/account';\n                  }\n                }, 500);\n              }\n            }, true); // Use capture phase\n          })();\n        "}),(0,r.jsx)(c(),{src:S.scriptUrl,strategy:"afterInteractive",onLoad:()=>{console.log("Piano tinypass.min.js loaded from custom CDN"),E()},onError:e=>{console.error("Failed to load Piano script:",e)}}),(0,r.jsx)(c(),{id:"swg-loader",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n            (function() {\n              var script = document.createElement('script');\n              script.src = 'https://news.google.com/swg/js/v1/swg.js';\n              script.async = true;\n              script.type = 'application/javascript';\n              script.setAttribute('subscriptions-control', 'manual');\n              script.onerror = function(e) {\n                console.error('Failed to load swg.js:', e);\n              };\n              document.head.appendChild(script);\n            })();\n          "}}),(0,r.jsx)(c(),{id:"swg-config",strategy:"beforeInteractive",dangerouslySetInnerHTML:{__html:"\n            window.__SWG_CONFIG__ = {\n              productId: '".concat("themonthly.com.au:subscriber","'\n            };\n          ")}}),(0,r.jsx)(c(),{id:"swg-init",src:"/swg-init.js",strategy:"afterInteractive"}),(0,r.jsx)(d(),{color:"#ff4438",options:{showSpinner:!1}}),(0,r.jsx)(f.Wk,{children:(0,r.jsx)(p.sC,{children:(0,r.jsx)(h.QQ,{children:(0,r.jsx)(g.XR,{children:(0,r.jsx)(b.w,{children:(0,r.jsx)(y.I,{children:(0,r.jsx)(m.default,{children:(0,r.jsx)(t,{...n})})})})})})})})]})}},634:function(e){e.exports={notice:"_loginSuccessNotice_notice__aglpr","login-notice-enter":"_loginSuccessNotice_login-notice-enter__N9z2U",active:"_loginSuccessNotice_active__vgx2l",inactive:"_loginSuccessNotice_inactive__aCu9N",leaving:"_loginSuccessNotice_leaving__wHdDA","login-notice-exit":"_loginSuccessNotice_login-notice-exit__HzrLz",icon:"_loginSuccessNotice_icon__7JG3K",message:"_loginSuccessNotice_message__IAHiY",actions:"_loginSuccessNotice_actions__LzKM4",close:"_loginSuccessNotice_close__q3MQI"}},2451:function(e){e.exports={preview_alert:"_preview_preview_alert__hQxKG"}},4256:function(e){e.exports={ad_container:"_ads_ad_container__t4V9v",billboard:"_ads_billboard__mLDa_",halfpage:"_ads_halfpage__bEAWQ",leaderboard:"_ads_leaderboard__n_5SU",tabletLeaderboard:"_ads_tabletLeaderboard__Ypl2b",mobileLocked:"_ads_mobileLocked__auXoR",mrec:"_ads_mrec__AUD_X",mobilebottom:"_ads_mobilebottom__2UahH",sidebar_ad:"_ads_sidebar_ad__D2lY5",footer_banner_ad:"_ads_footer_banner_ad__6l_RC"}},9124:function(e){e.exports={container:"_burgerMenu_container__tknXa",left:"_burgerMenu_left__AcHz_",middle:"_burgerMenu_middle__ShNSK",right:"_burgerMenu_right___DXo0",inner_list:"_burgerMenu_inner_list__idltE",burger_contain:"_burgerMenu_burger_contain__Vt2A_",inner_list_social:"_burgerMenu_inner_list_social__bWtL8",menuLinkItem:"_burgerMenu_menuLinkItem__QvQoQ",linkTitle:"_burgerMenu_linkTitle___xvti",linkDescription:"_burgerMenu_linkDescription__7K9EN",tab_row:"_burgerMenu_tab_row__p4PlY",tab:"_burgerMenu_tab__Ls6s0",active:"_burgerMenu_active__w0VNk",accounts:"_burgerMenu_accounts__Zs1_k",wrapper:"_burgerMenu_wrapper__AUdsd",footer_text:"_burgerMenu_footer_text__1XXgv",grey:"_burgerMenu_grey__gQsST"}},778:function(e){e.exports={badge:"_textSizeToggle_badge__fdbVn"}},1240:function(){},6822:function(){},2073:function(){},168:function(){},653:function(){},3932:function(){},9165:function(){},7663:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:s}
1catch(e){n=s}}();var l=[],c=!1,u=-1;function d(){c&&r&&(c=!1,r.length?l=r.concat(l):u=-1,l.length&&f())}function f(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(r=l,l=[];++u<t;)r&&r[u].run();u=-1,t=l.length}r=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},s=!0;try{t[e](i,i.exports,r),s=!1}finally{s&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},9008:function(e,t,n){e.exports=n(3867)},5675:function(e,t,n){e.exports=n(6210)},1664:function(e,t,n){e.exports=n(8342)},9332:function(e,t,n){e.exports=n(6432)},1163:function(e,t,n){e.exports=n(3079)},4298:function(e,t,n){e.exports=n(3381)},3457:function(e,t,n){let r;var o=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=e=>i(e,"__esModule",{value:!0}),d=(e,t)=>i(e,"name",{value:t,configurable:!0}),f=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))!c.call(e,o)&&(n||"default"!==o)&&i(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e},p=(e,t)=>f(u(i(null!=e?o(l(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),h=(r="undefined"!=typeof WeakMap?new WeakMap:0,(e,t)=>r&&r.get(e)||(t=f(u({}),e,1),r&&r.set(e,t),t)),m={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(m,{default:()=>x});var g=p(n(1163)),w=p(n(4865)),v=p(n(5697)),b=p(n(7294)),y=d(({color:e="#29D",startPosition:t=.3,stopDelayMs:n=200,height:r=3,showOnShallow:o=!0,options:i,nonce:s,transformCSS:a=d(e=>b.createElement("style",{nonce:s},e),"transformCSS")})=>{let l=null;b.useEffect(()=>(i&&w.configure(i),g.default.events.on("routeChangeStart",c),g.default.events.on("routeChangeComplete",u),g.default.events.on("routeChangeError",f),()=>{g.default.events.off("routeChangeStart",c),g.default.events.off("routeChangeComplete",u),g.default.events.off("routeChangeError",f)}),[]);let c=d((e,{shallow:n})=>{(!n||o)&&(w.set(t),w.start())},"routeChangeStart"),u=d((e,{shallow:t})=>{(!t||o)&&(l&&clearTimeout(l),l=setTimeout(()=>{w.done(!0)},n))},"routeChangeEnd"),f=d((e,t,{shallow:r})=>{(!r||o)&&(l&&clearTimeout(l),l=setTimeout(()=>{w.done(!0)},n))},"routeChangeError");return a(`
2    #nprogress {
3      pointer-events: none;
4    }
5    #nprogress .bar {
6      background: ${e};
7      position: fixed;
8      z-index: 9999;
9      top: 0;
10      left: 0;
11      width: 100%;
12      height: ${r}px;
13    }
14    #nprogress .peg {
15      display: block;
16      position: absolute;
17      right: 0px;
18      width: 100px;
19      height: 100%;
20      box-shadow: 0 0 10px ${e}, 0 0 5px ${e};
21      opacity: 1;
22      -webkit-transform: rotate(3deg) translate(0px, -4px);
23      -ms-transform: rotate(3deg) translate(0px, -4px);
24      transform: rotate(3deg) translate(0px, -4px);
25    }
26    #nprogress .spinner {
27      display: block;
28      position: fixed;
29      z-index: 1031;
30      top: 15px;
31      right: 15px;
32    }
33    #nprogress .spinner-icon {
34      width: 18px;
35      height: 18px;
36      box-sizing: border-box;
37      border: solid 2px transparent;
38      border-top-color: ${e};
39      border-left-color: ${e};
40      border-radius: 50%;
41      -webkit-animation: nprogresss-spinner 400ms linear infinite;
42      animation: nprogress-spinner 400ms linear infinite;
43    }
44    .nprogress-custom-parent {
45      overflow: hidden;
46      position: relative;
47    }
48    .nprogress-custom-parent #nprogress .spinner,
49    .nprogress-custom-parent #nprogress .bar {
50      position: absolute;
51    }
52    @-webkit-keyframes nprogress-spinner {
53      0% {
54        -webkit-transform: rotate(0deg);
55      }
56      100% {
57        -webkit-transform: rotate(360deg);
58      }
59    }
60    @keyframes nprogress-spinner {
61      0% {
62        transform: rotate(0deg);
63      }
64      100% {
65        transform: rotate(360deg);
66      }
67    }
68  `)},"NextNProgress");y.propTypes={color:v.string,startPosition:v.number,stopDelayMs:v.number,height:v.number,showOnShallow:v.bool,options:v.object,nonce:v.string,transformCSS:v.func};var x=b.memo(y);e.exports=h(m)},4865:function(e,t,n){var r,o;void 0!==(o="function"==typeof(r=function(){var e,t,n,r={};r.version="0.2.0";var o=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(e,t,n){return e<t?t:e>n?n:e}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(o[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=i(e,o.minimum,1),r.status=1===e?null:e;var n=r.render(!t),l=n.querySelector(o.barSelector),c=o.speed,u=o.easing;return n.offsetWidth,s(function(t){var i,s;""===o.positionUsing&&(o.positionUsing=r.getPositioningCSS()),a(l,(i=e,(s="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+i)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+i)*100+"%,0)"}:{"margin-left":(-1+i)*100+"%"}).transition="all "+c+"ms "+u,s)),1===e?(a(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){a(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},c)},c)):setTimeout(t,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){r.status||r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*o.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()&&(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)})),this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var n,i=t.querySelector(o.barSelector),s=e?"-100":(-1+(r.status||0))*100,l=document.querySelector(o.parent);return a(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(n=t.querySelector(o.spinnerSelector))&&f(n),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(t),t},r.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var s=(n=[],function(e){n.push(e),1==n.length&&function e(){var t=n.shift();t&&t(e)}()}),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,o){var i;r=t[i=(i=r).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[i]=function(t){var n=document.body.style;if(t in n)return t;for(var r,o=e.length,i=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((r=e[o]+i)in n)return r;return t}(i)),n.style[r]=o}return function(e,t){var r,o,i=arguments;if(2==i.length)for(r in t)void 0!==(o=t[r])&&t.hasOwnProperty(r)&&n(e,r,o);else n(e,i[1],i[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=d(e),r=n+t;l(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=d(e);l(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r})?r.call(t,n,t,e):r)&&(e.exports=o)},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
68:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(3079)}),_N_E=e.O()}]);

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.