(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,3303,(e,t,r)=>{t.exports=e.r(79520)},14487,10053,12951,19965,e=>{"use strict";let t;var r=e.i(43476),a=e.i(47167);function s(e){return e?e.replace(//g,"").replace(/\[\[CDATA\[/g,"").trim():e}let l=(0,e.i(71645).cache)(async function(e,r,l=!1,n){try{let o,i;e&&""!==e.trim()||(console.warn("⚠️ fetchUHFData called with empty locale, using default en-us"),e="en-us");let c=(o=r?.toLowerCase()||"windows",i=function(){if(t)return t;let e=a.default.env.UHF;if(!e)throw Error("UHF environment variable is missing or empty");return t=JSON.parse(e)}(),o.includes("business")?i.business:o.includes("do-more")?i["do-more-with-windows"]:o.includes("windows")?i.windows:o.includes("learning-center")?i["learning-center"]:o.includes("error")?i.error:i.windows),d=function(e,t,r=!1){let s=`https://uhf.microsoft.com/${e||"en-us"}/shell/xml/${t.partnerId}`,l=new URLSearchParams({HeaderId:t.headerId,FooterId:t.footerId});return(r="true"===a.default.env.USE_PREVIEW||r)&&l.append("preview","1"),`${s}?${l.toString()}`}(e,c,l),u=await fetch(d,{method:"GET",headers:{Accept:"application/xml, text/xml, */*","User-Agent":"Mozilla/5.0 (compatible; NextJS-App)"},signal:n,next:{revalidate:43200,tags:[`uhf-${r}-${e}`]}});if(!u.ok)return console.error(`UHF fetch failed: ${u.status} ${u.statusText}`),{error:`Failed to fetch UHF: HTTP ${u.status}`};let m=await u.text(),h=function(e){let t={};try{let r=e.match(/]*>([\s\S]*?)<\/headerHtml>/i);r&&(t.headerHtml=s(r[1]));let a=e.match(/]*>([\s\S]*?)<\/footerHtml>/i);a&&(t.footerHtml=s(a[1]));let l=e.match(/]*>([\s\S]*?)<\/css>/i);l&&(t.cssIncludes=s(l[1]));let n=e.match(/]*>([\s\S]*?)<\/javascript>/i);if(n&&(t.javascriptIncludes=s(n[1])),!t.headerHtml){let r=e.match(/]*>([\s\S]*?)<\/headerHtml>/i);r&&(t.headerHtml=s(r[1]))}if(!t.footerHtml){let r=e.match(/]*>([\s\S]*?)<\/footerHtml>/i);r&&(t.footerHtml=s(r[1]))}if(!t.cssIncludes){let r=e.match(/]*>([\s\S]*?)<\/cssIncludes>/i);r&&(t.cssIncludes=s(r[1]))}if(!t.javascriptIncludes){let r=e.match(/]*>([\s\S]*?)<\/javascriptIncludes>/i);r&&(t.javascriptIncludes=s(r[1]))}}catch(e){console.error("Error parsing UHF response:",e)}return t}(m);return{headerHtml:h.headerHtml,footerHtml:h.footerHtml,cssIncludes:h.cssIncludes,javascriptIncludes:h.javascriptIncludes}}catch(t){if(t?.digest)throw t;let e=t instanceof Error?t.message:"Unknown error";return console.error("Error fetching UHF data:",e),{error:`Failed to fetch UHF: ${e}`}}});function n(e){return e?e.replaceAll("<","<").replaceAll(">",">").replaceAll("&","&").replaceAll(""",'"').replaceAll("'","'"):""}e.s(["decodeEntities",0,n,"fetchUHFData",0,l],10053);var o=e.i(3303);async function i({locale:e,site:t,data:a,theme:s}){let{headerHtml:c,cssIncludes:d,javascriptIncludes:u,error:m}=a??await l(e,t);if(m)return console.warn(`UHF Header error: ${m}`),null;let h=n(d),f=n(c);"dark"===s&&(f=(f=f.replace(/theme-light/gi,"theme-dark")).replace("https://uhf.microsoft.comhttps://www.microsoft.com/images/microsoft/RE1Mu3b.png","https://cdn-dynmedia-1.microsoft.com/is/image/microsoftcorp/MSFT_mslogo_RWLL6J?scl=1&fmt=png-alpha"));let p=function(e){let t,r=/]*)><\/script>/gi,a=[];for(;t=r.exec(e);){let e=t[1],r=e.match(/src="http://approjects.co.za/?big=([^"]+)"/);/\bdefer\b/i.test(e),a.push({src:r?.[1],type:e.match(/type="([^"]+)"/)?.[1]})}return a}(u||""),g=h?function(e){let t,r=[],a=/]+rel=["']stylesheet["'][^>]+href=["']([^"']+)["'][^>]*>/gi;for(;null!==(t=a.exec(e));)r.push(t[1]);return r}(h):[];return(0,r.jsxs)(r.Fragment,{children:[Array.from(new Set(g)).map((e,t)=>(0,r.jsx)("link",{rel:"stylesheet",href:e},`${e}:${t}`)),f&&(0,r.jsx)("div",{className:"cge-uhf-header",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:f},"data-theme":s}),p.filter(e=>void 0!==e.src).map(e=>(0,r.jsx)(o.default,{src:e.src,strategy:"afterInteractive",type:e.type},e.src))]})}async function c({locale:e,site:t,data:a,theme:s}){let{footerHtml:o,error:i}=a??await l(e,t);if(i)return console.warn(`UHF Footer error: ${i}`),null;let d=n(o);return(0,r.jsx)(r.Fragment,{children:d&&(0,r.jsx)("div",{className:"cge-uhf-footer",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:d},"data-theme":s})})}e.s(["UHFHeader",0,i],14487),e.s(["UHFFooter",0,c],12951),e.s(["buildNotFoundMetadata",0,function(){let e="We are sorry, the page you requested cannot be found";return{title:e,robots:"noindex",other:{Title:e,Description:"The URL may be misspelled or the page you're looking for is no longer available.",ErrorTitle:"We are sorry, an error occurred while loading the page"}}}],19965)},78652,e=>{"use strict";var t=e.i(43476),r=e.i(14487),a=e.i(12951),s=e.i(10053);let l=(0,e.i(19965).buildNotFoundMetadata)();async function n(){let e="en-us",n=await (0,s.fetchUHFData)(e,"error");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.UHFHeader,{locale:e,site:"error",data:n,theme:"light"}),(0,t.jsx)("div",{className:"px-4 py-20 md:py-28 lg:py-36",children:(0,t.jsxs)("div",{className:"mx-auto w-full max-w-6xl text-center",children:[(0,t.jsxs)("h1",{className:"text-2xl font-normal leading-snug text-gray-800 md:text-3xl lg:text-4xl",children:[String(l.other?.ErrorTitle),"."]}),(0,t.jsx)("p",{className:"mt-4 text-lg font-normal leading-snug text-gray-600 md:mt-6 md:text-xl lg:text-2xl",children:String(l.other?.Description)})]})}),(0,t.jsx)(a.UHFFooter,{locale:e,site:"error",data:n,theme:"light"})]})}e.s(["default",0,n,"metadata",0,l])}]);