PageSourceSearch

https://www.manutd.com/_next/static/chunks/9472-93e066dc0e475f7e.js

js manutd.com collected 2026-10-02 02:15:40 UTC 41,941 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9472],{29312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(57437),o=n(2265);t.default=function(e){let{html:t,height:n=null,width:a=null,children:i,dataNtpc:s=""}=e;return(0,o.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,r.jsxs)(r.Fragment,{children:[i,t?(0,r.jsx)("div",{style:{height:null!=n?`${n}px`:"auto",width:null!=a?`${a}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:t}}):null]})}},40779:function(e,t,n){"use strict";var r;let o;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let a=n(57437),i=n(2265),s=(r=n(91351))&&r.__esModule?r:{default:r};t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:n="dataLayer"}=e;return void 0===o&&(o=n),(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
2          window['${n}'] = window['${n}'] || [];
3          function gtag(){window['${n}'].push(arguments);}
4          gtag('js', new Date());
5
6          gtag('config', '${t}');`}}),(0,a.jsx)(s.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===o){console.warn("@next/third-parties: GA has not been initialized");return}window[o]?window[o].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${o} does not exist`)}},28267:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(57437),a=n(54248),i=r(n(29312));t.default=function(e){let{apiKey:t,...n}=e,r={...n,key:t},{html:s}=(0,a.GoogleMapsEmbed)(r);return(0,o.jsx)(i.default,{height:r.height||null,width:r.width||null,html:s,dataNtpc:"GoogleMapsEmbed"})}},31635:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let o=n(57437),a=n(2265),i=(r=n(91351))&&r.__esModule?r:{default:r},s="dataLayer";t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:n="dataLayer",auth:r,preview:l,dataLayer:u}=e;s=n;let c="dataLayer"!==n?`&l=${n}`:"",d=r?`&gtm_auth=${r}`:"",f=l?`&gtm_preview=${l}&gtm_cookies_win=x`:"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
7      (function(w,l){
8        w[l]=w[l]||[];
9        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
10        ${u?`w[l].push(${JSON.stringify(u)})`:""}
11      })(window,'${n}');`}}),(0,o.jsx)(i.default,{id:"_next-gtm","data-ntpc":"GTM",src:`https://www.googletagmanager.com/gtm.js?id=${t}${c}${d}${f}`})]})},t.sendGTMEvent=(e,t)=>{let n=t||s;window[n]=window[n]||[],window[n].push(e)}},1981:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var o=n(28267);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return r(o).default}});var a=n(99613);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return r(a).default}});var i=n(31635);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return i.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return i.sendGTMEvent}});var s=n(40779);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return s.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return s.sendGAEvent}})},99613:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
11dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let o=n(57437),a=r(n(91351)),i=n(54248),s=r(n(29312)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:n,stylesheets:r}=(0,i.YouTubeEmbed)(e);return(0,o.jsx)(s.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==n?void 0:n.map(e=>(0,o.jsx)(a.default,{src:e.url,strategy:l[e.strategy],stylesheets:r},e.url))})}},90950:function(e,t,n){var r;r=function(e){"use strict";var t="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),n={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o=/[١٢٣٤٥٦٧٨٩٠]/g,a=/،/g,i=/\d/g,s=/,/g,l={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:t,monthsShort:t,weekStart:6,meridiem:function(e){return e>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(e){return e.replace(o,function(e){return r[e]}).replace(a,",")},postformat:function(e){return e.replace(i,function(e){return n[e]}).replace(s,"،")},ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(l,null,!0),l},e.exports=r(n(75596))},66614:function(e){var t;t=function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}}},e.exports=t()},48416:function(e,t,n){var r;r=function(e){"use strict";var t={name:"ko",weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),ordinal:function(e){return e+"일"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},meridiem:function(e){return e<12?"오전":"오후"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t},e.exports=r(n(75596))},25284:function(e,t,n){var r;r=function(e){"use strict";var t={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;
11return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t},e.exports=r(n(75596))},50894:function(e){var t;t=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,a=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,r,o=this.$locale().formats,i=(n=t,r=void 0===o?{}:o,n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var a=o&&o.toUpperCase();return n||r[o]||e[o]||r[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return a.call(this,i)}}},e.exports=t()},95458:function(e){var t;t=function(){return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach(function(e){r[e]=t[e]}),r}}},e.exports=t()},51625:function(e,t,n){var r=n(89256)(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});e.exports=r},73575:function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,{g:function(){return r}})},61885:function(e,t,n){"use strict";n.d(t,{default:function(){return l}});var r=n(73575),o=n(99485),a=n(72301),i=n(2265),s=n(94167),l=(0,i.forwardRef)(function(e,t){let{defaultLocale:n,href:l,locale:u,localeCookie:c,onClick:d,prefetch:f,unprefixed:p,...h}=e,m=(0,s.Z)(),_=null!=u&&u!==m,v=u||m,g=function(){let[e,t]=(0,i.useState)();return(0,i.useEffect)(()=>{t(window.location.host)},[]),e}(),y=g&&p&&(p.domains[g]===v||!Object.keys(p.domains).includes(g)&&m===n&&!u)?p.pathname:l,b=(0,a.usePathname)();return _&&(f&&console.error("The `prefetch` prop is currently not supported when using the `locale` prop on `Link` to switch the locale.`"),f=!1),i.createElement(o.default,(0,r.g)({ref:t,href:y,hrefLang:_?u:void 0,onClick:function(e){(function(e,t,n,r){if(!e||!(r!==n&&null!=r)||!t)return;let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.pathname;return"/"===e?t:t.replace(e,"")}(t),{name:a,...i}=e;i.path||(i.path=""!==o?o:"/");let s="".concat(a,"=").concat(r,";");for(let[e,t]of Object.entries(i))s+="".concat("maxAge"===e?"max-age":e),"boolean"!=typeof t&&(s+="="+t),s+=";";document.cookie=s})(c,b,m,u),d&&d(e)},prefetch:f},h))})},23544:function(e,t,n){"use strict";n.d(t,{default:function(){return d}});var r=n(73575),o=n(72301),a=n(2265),i=n(94167);function s(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function l(e,t){let n;return"string"==typeof e?n=u(t,e):(n={...e},e.pathname&&(n.pathname=u(t,e.pathname))),n}function u(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}n(25566);var c=n(61885);let d=(0,a.forwardRef)(function(e,t){let{href:n,locale:u,localeCookie:d,localePrefixMode:f,prefix:p,...h}=e,m=(0,o.usePathname)(),_=(0,i.Z)(),v=u!==_,[g,y]=(0,a.useState)(()=>s(n)&&("never"!==f||v)?l(n,p):n);return(0,a.useEffect)(()=>{m&&y(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!s(e))return e;let a=r===o||r.startsWith("".concat(o,"/"));return(t!==n||a)&&null!=o?l(e,o):e}(n,u,_,m,p))},[_,n,u,m,p]),a.createElement(c.default,(0,r.g)({ref:t,href:g,locale:u,localeCookie:d},h))});d.displayName="ClientLink"},94167:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(72301),o=n(89450);let a="locale",i=!1;function s(){let e;let t=(0,r.useParams)();try{e=(0,o.useLocale)()}catch(n){if("string"!=typeof(null==t?void 0:t[a]))throw n;i||(console.warn("Deprecation warning: `useLocale` has returned a default from `useParams().locale` since no `NextIntlClientProvider` ancestor was found for the calling component. This behavior will be removed in the next major version. Please ensure all Client Components that use `next-intl` are wrapped in a `NextIntlClientProvider`."),i=!0),e=t[a]}return e}},54248:function(e,t,n){"use strict";
11Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var r=n(98951);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return r.GoogleAnalytics}});var o=n(95060);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return o.GoogleMapsEmbed}});var a=n(81722);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return a.YouTubeEmbed}})},98951:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let a=o(n(46893)),i=n(59090);t.GoogleAnalytics=e=>{var t=r(e,[]);return(0,i.formatData)(a.default,t)}},95060:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let a=o(n(46362)),i=n(59090);t.GoogleMapsEmbed=e=>{var t=r(e,[]);return(0,i.formatData)(a.default,t)}},81722:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let a=o(n(95825)),i=n(59090);t.YouTubeEmbed=e=>{var t=r(e,[]);return(0,i.formatData)(a.default,t)}},59090:function(e,t){"use strict";function n(e,t,n=!1){return t?Object.keys(e).filter(e=>n?!t.includes(e):t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}):{}}function r(e,t,n,r){let o=r&&Object.keys(r).length>0?new URL(Object.values(r)[0],e):new URL(e);return t&&n&&t.forEach(e=>{n[e]&&o.searchParams.set(e,n[e])}),o.toString()}function o(e,t,n,o,a){var i;if(!t)return`<${e}></${e}>`;let s=(null===(i=t.src)||void 0===i?void 0:i.url)?Object.assign(Object.assign({},t),{src:r(t.src.url,t.src.params,o,a)}):t,l=Object.keys(Object.assign(Object.assign({},s),n)).reduce((e,t)=>{let r=null==n?void 0:n[t],o=s[t],a=null!=r?r:o,i=!0===a?t:`${t}="${a}"`;return a?e+` ${i}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=r,t.createHtml=o,t.formatData=function(e,t){var a,i,s,l,u;let c=n(t,null===(a=e.scripts)||void 0===a?void 0:a.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null===(s=null===(i=e.html)||void 0===i?void 0:i.attributes.src)||void 0===s?void 0:s.params),f=n(t,[null===(u=null===(l=e.html)||void 0===l?void 0:l.attributes.src)||void 0===u?void 0:u.slugParam]),p=n(t,[...Object.keys(c),...Object.keys(d),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?o(e.html.element,e.html.attributes,p,d,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:r(e.url,e.params,c)})):null})}},67087:function(e,t,n){"use strict";n.d(t,{S1:function(){return k},Uv:function(){return A},VO:function(){return Y},Vd:function(){return j},ac:function(){return tn},au:function(){return S},eI:function(){return tg},pN:function(){return tr},tA:function(){return ty},yU:function(){return tv}});var r,o,a,i,s,l,u,c,d,f,p,h,m,_,v,g,y,b,w=n(2265),M=n(75596),E=n(87410),O=n(58717),x=n(18240);let L=e=>{let{callback:t}=e,n=(0,w.useCallback)(()=>t(),[t]),r=(0,w.useRef)(!1);(0,w.useEffect)(()=>()=>{r.current=!0},[]),(0,w.useEffect)(()=>()=>{r.current&&n()},[n])},j=(e,t)=>{(0,w.useEffect)(()=>{function n(n){return(null==e?void 0:e.current)&&(n.target instanceof HTMLElement||n.target instanceof SVGElement)&&!e.current.contains(n.target)?t():null}return document.addEventListener("pointerdown",n),()=>{document.removeEventListener("pointerdown",n)}},[e,t])},S=e=>{let{targetDate:t,padWithZero:n=!1}
11=e,r=M(t),[o,a]=(0,w.useState)(r.diff(M()));return(0,w.useEffect)(()=>{let e=setInterval(()=>{a(r.diff(M()))},1e3);return()=>clearInterval(e)},[r]),(e=>{let t=Math.floor(e/864e5),r=Math.floor(e%864e5/36e5),o=Math.floor(e%36e5/6e4),a=Math.floor(e%6e4/1e3),i=e=>e<1?"0":n?e.toString().padStart(2,"0"):e.toString();return{days:i(t<1?0:t),hours:i(r<1?0:r),minutes:i(o<1?0:o),seconds:i(a<1?0:a)}})(o)},T=()=>{let[e,t]=(0,w.useState)(void 0);return{errorMessage:e,setErrorMessage:t}},Y=()=>{let e="//cdn.iframe.ly/embed.js",[t,n]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(!document.querySelector(`script[src="${e}"]`)){let t=document.createElement("script");t.type="text/javascript",t.src=e,document.body.appendChild(t),t.onload=()=>n(!0);return}n(!0)},[]),{isAssetsLoaded:t}};function k(e,t){let{threshold:n=0,root:r=null,rootMargin:o="0%",once:a=!1}=t,[i,s]=(0,w.useState)(),l=(0,w.useMemo)(()=>(null==i?void 0:i.isIntersecting)&&a,[i,a]),u=(0,w.useMemo)(()=>(null==i?void 0:i.isIntersecting)||!1,[i]),c=e=>{let[t]=e;s(t)};return(0,w.useEffect)(()=>{let t=null==e?void 0:e.current;if(!window.IntersectionObserver||l||!t)return;let a=new IntersectionObserver(c,{threshold:n,root:r,rootMargin:o});return a.observe(t),()=>a.disconnect()},[n,r,o,l,e]),{entry:i,isInView:u}}let A=()=>{let[e,t]=(0,w.useState)(!1);return{isBodyLocked:e,lock:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{y:n}=document.body.getBoundingClientRect();document.body.classList.add("locked"),e&&document.body.scrollTo({top:-n}),t(!0)},unlock:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{scrollTop:r}=document.body;document.body.classList.remove("locked"),t(!1),e&&(n?window.scrollTo({top:r}):(document.documentElement.style.scrollBehavior="auto",setTimeout(()=>window.scrollTo({top:r}),5),setTimeout(()=>{document.documentElement.style.scrollBehavior="smooth"},5)))}}},P=[200],C=[204,404],$={s:"--p-breakpointsize-s",m:"--p-breakpointsize-m",l:"--p-breakpointsize-l",xl:"--p-breakpointsize-xl",xxl:"--p-breakpointsize-xxl"},R={API_ERROR:e=>`There was an error fetching data from ${e}`};var D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},U="object"==typeof D&&D&&D.Object===Object&&D,I="object"==typeof self&&self&&self.Object===Object&&self,G=U||I||Function("return this")(),N=G.Symbol,H=Object.prototype,z=H.hasOwnProperty,F=H.toString,W=N?N.toStringTag:void 0,B=Object.prototype.toString,V=function(e){var t=z.call(e,W),n=e[W];try{e[W]=void 0;var r=!0}catch(e){}var o=F.call(e);return r&&(t?e[W]=n:delete e[W]),o},J=N?N.toStringTag:void 0,X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":J&&J in Object(e)?V(e):B.call(e)},q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Z=G["__core-js_shared__"],K=(a=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",Q=Function.prototype.toString,ee=function(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""},et=function(e){if(!q(e))return!1;var t=X(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},en=/^\[object .+?Constructor\]$/,er=Object.prototype,eo=Function.prototype.toString,ea=er.hasOwnProperty,ei=RegExp("^"+eo.call(ea).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),es=function(e,t){var n,r=null==e?void 0:e[t];return q(n=r)&&(!K||!(K in n))&&(et(n)?ei:en).test(ee(n))?r:void 0},el=es(G,"DataView"),eu=es(G,"Map"),ec=es(G,"Promise"),ed=es(G,"Set"),ef=es(G,"WeakMap"),ep="[object Map]",eh="[object Promise]",em="[object Set]",e_="[object WeakMap]",ev="[object DataView]",eg=ee(el),ey=ee(eu),eb=ee(ec),ew=ee(ed),eM=ee(ef),eE=X;(el&&eE(new el(new ArrayBuffer(1)))!=ev||eu&&eE(new eu)!=ep||ec&&eE(ec.resolve())!=eh||ed&&eE(new ed)!=em||ef&&eE(new ef)!=e_)&&(eE=function(e){var t=X(e),n="[object Object]"==t?e.constructor:void 0,r=n?ee(n):"";if(r)switch(r){case eg:return ev;case ey:return ep;case eb:return eh;case ew:return em;case eM:return e_}return t});var eO=function(e){return null!=e&&"object"==typeof e},ex=function(e){return eO(e)&&"[object Arguments]"==X(e)},eL=Object.prototype,ej=eL.hasOwnProperty,eS=eL.propertyIsEnumerable,eT=ex(function(){return arguments}
11())?ex:function(e){return eO(e)&&ej.call(e,"callee")&&!eS.call(e,"callee")},eY=Array.isArray,ek={exports:{}};ek.exports,c=(u=(l=(s=(i=ek.exports)&&!i.nodeType&&i)&&ek&&!ek.nodeType&&ek)&&l.exports===s?G.Buffer:void 0)?u.isBuffer:void 0,ek.exports=c||function(){return!1},ek.exports;var eA={exports:{}};eA.exports,h=(p=(f=(d=eA.exports)&&!d.nodeType&&d)&&eA&&!eA.nodeType&&eA)&&p.exports===f&&U.process,m=function(){try{var e=p&&p.require&&p.require("util").types;if(e)return e;return h&&h.binding&&h.binding("util")}catch(e){}}(),eA.exports=m;var eP=eA.exports;eP&&eP.isTypedArray;let eC={DEFAULT_1:"default1",DEFAULT_2:"default2",COLOUR_THEME_1:"colourTheme1",COLOUR_THEME_2:"colourTheme2",COLOUR_THEME_3:"colourTheme3",COLOUR_THEME_4:"colourTheme4",COLOUR_THEME_5:"colourTheme5",COLOUR_THEME_6:"colourTheme6"};var e$=N?N.prototype:void 0;e$&&e$.toString;var eR=Object.create,eD=function(){function e(){}return function(t){if(!q(t))return{};if(eR)return eR(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),eU=function(){};function eI(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}eI.prototype=eD(eU.prototype),eI.prototype.constructor=eI;var eG=N?N.isConcatSpreadable:void 0,eN=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},eH=function(e){return eY(e)||eT(e)||!!(eG&&e&&e[eG])},ez=function e(t,n,r,o,a){var i=-1,s=t.length;for(r||(r=eH),a||(a=[]);++i<s;){var l=t[i];n>0&&r(l)?n>1?e(l,n-1,r,o,a):eN(a,l):o||(a[a.length]=l)}return a},eF=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},eW=Math.max,eB=function(){try{var e=es(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),eV=eB?function(e,t){return eB(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:function(e){return e},eJ=Date.now,eX=(_=0,v=0,function(){var e=eJ(),t=16-(e-v);if(v=e,t>0){if(++_>=800)return arguments[0]}else _=0;return eV.apply(void 0,arguments)}),eq=ef&&new ef,eZ=eq?function(e){return eq.get(e)}:function(){},eK={},eQ=Object.prototype.hasOwnProperty,e0=function(e){for(var t=e.name+"",n=eK[t],r=eQ.call(eK,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t};function e1(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}e1.prototype=eD(eU.prototype),e1.prototype.constructor=e1;var e5=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},e2=function(e){if(e instanceof e1)return e.clone();var t=new eI(e.__wrapped__,e.__chain__);return t.__actions__=e5(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},e4=Object.prototype.hasOwnProperty;function e6(e){if(eO(e)&&!eY(e)&&!(e instanceof e1)){if(e instanceof eI)return e;if(e4.call(e,"__wrapped__"))return e2(e)}return new eI(e)}e6.prototype=eU.prototype,e6.prototype.constructor=e6;var e9=function(e){var t=e0(e),n=e6[t];if("function"!=typeof n||!(t in e1.prototype))return!1;if(e===n)return!0;var r=eZ(n);return!!r&&e===r[0]};eX((o=eW((o=void 0,(r=function(e){var t=e.length,n=t,r=eI.prototype.thru;for(g&&e.reverse();n--;){var o=e[n];if("function"!=typeof o)throw TypeError("Expected a function");if(r&&!a&&"wrapper"==e0(o))var a=new eI([],!0)}for(n=a?n:t;++n<t;){var i=e0(o=e[n]),s="wrapper"==i?eZ(o):void 0;a=s&&e9(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?a[e0(s[0])].apply(a,s[3]):1==o.length&&e9(o)?a[i]():a.thru(o)}return function(){var n=arguments,r=n[0];if(a&&1==n.length&&eY(r))return a.plant(r).value();for(var o=0,i=t?e[o].apply(this,n):r;++o<t;)i=e[o].call(this,i);return i}}).length-1),0),function(){for(var e,t=arguments,n=-1,a=eW(t.length-o,0),i=Array(a);++n<a;)i[n]=t[o+n];n=-1;for(var s=Array(o+1);++n<o;)s[n]=t[n];return s[o]=(null==(e=i)?0:e.length)?ez(e,1):[],eF(r,this,s)}),r+"");let e3={default1:"var(--cs-base-1-background-default)",default2:"var(--cs-base-2-background-default)",light:"var(--cs-base-1-background-default)",dark:"var(--cs-base-2-background-default)",colourTheme1:"var(--cs-colorset-1-background-default)",colourTheme2:"var(--cs-colorset-2-background-default)",colourTheme3:"var(--cs-colorset-3-background-default)",colourTheme4:"var(--cs-colorset-4-background-default)",colourTheme5:"var(--cs-colorset-5-background-default)",colourTheme6:"var(--cs-colorset-6-background-default)"};
11Object.values(eC),Object.values(eC).reduce((e,t,n)=>(0,O._)((0,E._)({},e),{[t]:{title:`colourTheme${n+1}`,themeId:t,settings:{backgroundColour:e3[t]}}}),{}),(0,O._)((0,E._)({},{CREST_URL:"crestImageUrl",CLUB_NAME:"name",CLUB_SHORT_NAME:"shortName",OPPONENT_CREST_URL:"opponentCrestImageUrl",OPPONENT_CLUB_NAME:"opponentName"}),{POINTS:"points",POSITION:"position",PLAYED:"played",WON:"won",DRAWN:"drawn",LOST:"lost",GOALS_FOR:"goalsFor",GOALS_AGAINST:"goalsAgainst",POSITION_CHANGE:"positionChange",GOAL_DIFFERENCE:"goalDifference",RECENT_FORM:"recentForm",DIVIDER:"divider"}),y={exports:{}},function(){var e={}.hasOwnProperty;function t(){for(var r="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(r=n(r,function(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)e.call(r,a)&&r[a]&&(o=n(o,a));return o}(a)))}return r}function n(e,t){return t?e?e+" "+t:e+t:e}y.exports?(t.default=t,y.exports=t):window.classNames=t}();let e7=e=>window.getComputedStyle(document.documentElement).getPropertyValue(e),e8={mediaUp:"min-width",mediaDown:"max-width"},te=new AbortController,{signal:tt}=te,tn=e=>{let{breakpoints:t,type:n="mediaUp"}=e;L({callback:()=>{te.abort()}});let r=(0,w.useCallback)(e=>{if("undefined"!=typeof window)return window.matchMedia(`(${e8[n]}: ${e7($[e])})`)},[n]),[o,a]=(0,w.useState)((()=>{let e={};return null==t||t.forEach(t=>{let n=r(t.size);e[t.size]={matches:!!(null==n?void 0:n.matches),size:parseInt(e7($[t.size]),10)}}),e})());return(0,w.useEffect)(()=>{let e=(e,t)=>{a((0,O._)((0,E._)({},o),{[e.size]:{matches:!!t.matches,size:parseInt(e7($[e.size]),10)}}))};null==t||t.forEach(t=>{let n=r(t.size);try{null==n||n.addEventListener("change",()=>e(t,n),{signal:tt})}catch(e){console.error(e)}})},[r,t,o]),(e=>{let t=Math.max(...Object.values(e).filter(e=>e.matches).map(e=>e.size)),r=Math.min(...Object.values(e).filter(e=>e.matches).map(e=>e.size));return Object.fromEntries(Object.entries(e).filter(e=>e[1].size===("mediaUp"===n?t:r)))})(o)},tr=(e,t)=>{(0,w.useEffect)(()=>{let n=n=>{e.current&&!e.current.contains(n.target)&&t&&"function"==typeof t&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[t,e])};var to=/\s/,ta=function(e){for(var t=e.length;t--&&to.test(e.charAt(t)););return t},ti=/^\s+/,ts=0/0,tl=/^[-+]0x[0-9a-f]+$/i,tu=/^0b[01]+$/i,tc=/^0o[0-7]+$/i,td=parseInt,tf=function(){return G.Date.now()},tp=function(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||eO(t)&&"[object Symbol]"==X(t))return ts;if(q(e)){var t,n,r="function"==typeof e.valueOf?e.valueOf():e;e=q(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(n=e)?n.slice(0,ta(n)+1).replace(ti,""):n;var o=tu.test(e);return o||tc.test(e)?td(e.slice(2),o?2:8):tl.test(e)?ts:+e},th=Math.max,tm=Math.min;let t_=(b=function(e,t,n){var r,o,a,i,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function p(t){var n=r,a=o;return r=o=void 0,u=t,i=e.apply(a,n)}function h(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=a}function m(){var e,n,r,o=tf();if(h(o))return _(o);s=setTimeout(m,(e=o-l,n=o-u,r=t-e,d?tm(r,a-n):r))}function _(e){return(s=void 0,f&&r)?p(e):(r=o=void 0,i)}function v(){var e,n=tf(),a=h(n);if(r=arguments,o=this,l=n,a){if(void 0===s)return u=e=l,s=setTimeout(m,t),c?p(e):i;if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),i}return t=tp(t)||0,q(n)&&(c=!!n.leading,a=(d="maxWait"in n)?th(tp(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?i:_(tf())},v}).__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b,tv=e=>{let[t,n]=(0,w.useState)(void 0),[r,o]=(0,w.useState)(null),a=e=>{var t,r;n(null===(r=e[0])||void 0===r?void 0:null===(t=r.contentBoxSize[0])||void 0===t?void 0:t.inlineSize)};(0,w.useEffect)(()=>{let e=new ResizeObserver(t_(a,150));return r&&e.observe(r),()=>e.disconnect()},[r]);let i=(0,w.useMemo)(()=>!!(e&&t&&t>=e),[e,t]);return{width:t,setNode:o,matches:i}},tg=()=>{let[e,t]=(0,w.useState)({width:"undefined"==typeof window?0:window.innerWidth,height:"undefined"==typeof window?0:window.innerHeight});return(0,w.useEffect)(()=>
11{if("undefined"==typeof window)return;let e=()=>{t({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e},ty=e=>{var t,n;let{url:r,dictionary:o,catch404:a=!1,onSuccess:i,onFailure:s}=e,{errorMessage:l,setErrorMessage:u}=T(),[c,d]=(0,w.useState)(!1),[f,p]=(0,w.useState)(void 0),h=(0,w.useCallback)((t=(0,x._)(function*(e){let t=yield fetch(r,(0,E._)({method:"GET"},e?{signal:e}:{}));if(C.includes(t.status))throw Error(R.API_ERROR(r.href),{cause:t.status});if(!P.includes(t.status))throw Error(R.API_ERROR(r.href));return yield t.json()}),function(e){return t.apply(this,arguments)}),[r]);return{errorMessage:l,fetchItems:(0,w.useCallback)((n=(0,x._)(function*(e){u(void 0),d(!0);try{let t=yield h(e.signal);p(t),i&&i(t)}catch(e){if((null==e?void 0:e.name)==="AbortError")return;if(a&&C.includes(null==e?void 0:e.cause)){u({label:o.noContent.label,text:o.noContent.text}),s&&s();return}u({label:o.error.label,text:o.error.text})}finally{d(!1)}}),function(e){return n.apply(this,arguments)}),[u,h,i,a,o.error.label,o.error.text,o.noContent.label,o.noContent.text,s]),isLoading:c,data:f}}},19191:function(e,t,n){"use strict";n.d(t,{eA:function(){return eo},zB:function(){return en},w7:function(){return er},kP:function(){return K}});var r=n(57437),o=n(2265);class a extends Error{constructor(e,t){e instanceof Error?super(void 0,{cause:{err:e,...e.cause,...t}}):"string"==typeof e?(t instanceof Error&&(t={err:t,...t.cause}),super(e,t)):super(void 0,e),this.name=this.constructor.name,this.type=this.constructor.type??"AuthError",this.kind=this.constructor.kind??"error",Error.captureStackTrace?.(this,this.constructor);let n=`https://errors.authjs.dev#${this.type.toLowerCase()}`;this.message+=`${this.message?". ":""}Read more at ${n}`}}class i extends a{}i.kind="signIn";class s extends a{}s.type="AdapterError";class l extends a{}l.type="AccessDenied";class u extends a{}u.type="CallbackRouteError";class c extends a{}c.type="ErrorPageLoop";class d extends a{}d.type="EventError";class f extends a{}f.type="InvalidCallbackUrl";class p extends i{constructor(){super(...arguments),this.code="credentials"}}p.type="CredentialsSignin";class h extends a{}h.type="InvalidEndpoints";class m extends a{}m.type="InvalidCheck";class _ extends a{}_.type="JWTSessionError";class v extends a{}v.type="MissingAdapter";class g extends a{}g.type="MissingAdapterMethods";class y extends a{}y.type="MissingAuthorize";class b extends a{}b.type="MissingSecret";class w extends i{}w.type="OAuthAccountNotLinked";class M extends i{}M.type="OAuthCallbackError";class E extends a{}E.type="OAuthProfileParseError";class O extends a{}O.type="SessionTokenError";class x extends i{}x.type="OAuthSignInError";class L extends i{}L.type="EmailSignInError";class j extends a{}j.type="SignOutError";class S extends a{}S.type="UnknownAction";class T extends a{}T.type="UnsupportedStrategy";class Y extends a{}Y.type="InvalidProvider";class k extends a{}k.type="UntrustedHost";class A extends a{}A.type="Verification";class P extends i{}P.type="MissingCSRF";class C extends a{}C.type="DuplicateConditionalUI";class $ extends a{}$.type="MissingWebAuthnAutocomplete";class R extends a{}R.type="WebAuthnVerificationError";class D extends i{}D.type="AccountNotLinked";class U extends a{}U.type="ExperimentalFeatureNotEnabled";class I extends a{}class G extends a{}async function N(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=`${H(t)}/${e}`;try{let e={headers:{"Content-Type":"application/json",...r?.headers?.cookie?{cookie:r.headers.cookie}:{}}};r?.body&&(e.body=JSON.stringify(r.body),e.method="POST");let t=await fetch(o,e),n=await t.json();if(!t.ok)throw n;return n}catch(e){return n.error(new I(e.message,e)),null}}function H(e){return"undefined"==typeof window?`${e.baseUrlServer}${e.basePathServer}`:e.basePath}function z(){return Math.floor(Date.now()/1e3)}function F(e){let t=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(e||t),r=("/"===n.pathname?t.pathname:n.pathname).replace(/\/$/,""),o=`${n.origin}${r}`;return{origin:n.origin,host:n.host,path:r,base:o,toString:()=>
11o}}var W=n(25566);let B={baseUrl:F(W.env.NEXTAUTH_URL??W.env.VERCEL_URL).origin,basePath:F(W.env.NEXTAUTH_URL).path,baseUrlServer:F(W.env.NEXTAUTH_URL_INTERNAL??W.env.NEXTAUTH_URL??W.env.VERCEL_URL).origin,basePathServer:F(W.env.NEXTAUTH_URL_INTERNAL??W.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:()=>{}},V=null;function J(){return"undefined"==typeof BroadcastChannel?{postMessage:()=>{},addEventListener:()=>{},removeEventListener:()=>{},name:"next-auth",onmessage:null,onmessageerror:null,close:()=>{},dispatchEvent:()=>!1}:new BroadcastChannel("next-auth")}function X(){return null===V&&(V=J()),V}let q={debug:console.debug,error:console.error,warn:console.warn},Z=o.createContext?.(void 0);function K(e){if(!Z)throw Error("React Context is unavailable in Server Components");let t=o.useContext(Z),{required:n,onUnauthenticated:r}=e??{},a=n&&"unauthenticated"===t.status;return(o.useEffect(()=>{if(a){let e=`${B.basePath}/signin?${new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href})}`;r?r():window.location.href=e}},[a,r]),a)?{data:t.data,update:t.update,status:"loading"}:t}async function Q(e){let t=await N("session",B,q,e);return(e?.broadcast??!0)&&J().postMessage({event:"session",data:{trigger:"getSession"}}),t}async function ee(){let e=await N("csrf",B,q);return e?.csrfToken??""}async function et(){return N("providers",B,q)}async function en(e,t,n){let{callbackUrl:r,...o}=t??{},{redirect:a=!0,redirectTo:i=r??window.location.href,...s}=o,l=H(B),u=await et();if(!u){let e=`${l}/error`;window.location.href=e;return}if(!e||!u[e]){let e=`${l}/signin?${new URLSearchParams({callbackUrl:i})}`;window.location.href=e;return}let c=u[e].type;if("webauthn"===c)throw TypeError(`Provider id "${e}" refers to a WebAuthn provider.
12Please use \`import { signIn } from "next-auth/webauthn"\` instead.`);let d=`${l}/${"credentials"===c?"callback":"signin"}/${e}`,f=await ee(),p=await fetch(`${d}?${new URLSearchParams(n)}`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({...s,csrfToken:f,callbackUrl:i})}),h=await p.json();if(a){let e=h.url??i;window.location.href=e,e.includes("#")&&window.location.reload();return}let m=new URL(h.url).searchParams.get("error")??void 0,_=new URL(h.url).searchParams.get("code")??void 0;return p.ok&&await B._getSession({event:"storage"}),{error:m,code:_,status:p.status,ok:p.ok,url:m?null:h.url}}async function er(e){let{redirect:t=!0,redirectTo:n=e?.callbackUrl??window.location.href}=e??{},r=H(B),o=await ee(),a=await fetch(`${r}/signout`,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Auth-Return-Redirect":"1"},body:new URLSearchParams({csrfToken:o,callbackUrl:n})}),i=await a.json();if(X().postMessage({event:"session",data:{trigger:"signout"}}),t){let e=i.url??n;window.location.href=e,e.includes("#")&&window.location.reload();return}return await B._getSession({event:"storage"}),i}function eo(e){if(!Z)throw Error("React Context is unavailable in Server Components");let{children:t,basePath:n,refetchInterval:a,refetchWhenOffline:i}=e;n&&(B.basePath=n);let s=void 0!==e.session;B._lastSync=s?z():0;let[l,u]=o.useState(()=>(s&&(B._session=e.session),e.session)),[c,d]=o.useState(!s);o.useEffect(()=>(B._getSession=async function(){let{event:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{let t="storage"===e;if(t||void 0===B._session){B._lastSync=z(),B._session=await Q({broadcast:!t}),u(B._session);return}if(!e||null===B._session||z()<B._lastSync)return;B._lastSync=z(),B._session=await Q(),u(B._session)}catch(e){q.error(new G(e.message,e))}finally{d(!1)}},B._getSession(),()=>{B._lastSync=0,B._session=void 0,B._getSession=()=>{}}),[]),o.useEffect(()=>{let e=()=>B._getSession({event:"storage"});return X().addEventListener("message",e),()=>X().removeEventListener("message",e)},[]),o.useEffect(()=>{let{refetchOnWindowFocus:t=!0}=e,n=()=>{t&&"visible"===document.visibilityState&&B._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",n,!1),()=>document.removeEventListener("visibilitychange",n,!1)},[e.refetchOnWindowFocus]);let f=function(){let[e,t]=o.useState("undefined"!=typeof navigator&&navigator.onLine),n=()=>t(!0),r=()=>t(!1);return o.useEffect(()=>(window.addEventListener("online",n),window.addEventListener("offline",r),
12()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}),[]),e}(),p=!1!==i||f;o.useEffect(()=>{if(a&&p){let e=setInterval(()=>{B._session&&B._getSession({event:"poll"})},1e3*a);return()=>clearInterval(e)}},[a,p]);let h=o.useMemo(()=>({data:l,status:c?"loading":l?"authenticated":"unauthenticated",async update(e){if(c)return;d(!0);let t=await N("session",B,q,void 0===e?void 0:{body:{csrfToken:await ee(),data:e}});return d(!1),t&&(u(t),X().postMessage({event:"session",data:{trigger:"getSession"}})),t}}),[l,c]);return(0,r.jsx)(Z.Provider,{value:h,children:t})}},46893:function(e){"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},46362:function(e){"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},95825:function(e){"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}}]);
13//# sourceMappingURL=9472-93e066dc0e475f7e.js.map

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