"use strict";(()=>{var e={id:497,ids:[497]};e.modules={145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},159:e=>{e.exports=import("iron-session/next")},6249:(e,t)=>{function n(e,t){return t in e?e[t]:"then"in e&&"function"===typeof e.then?e.then((e=>n(e,t))):"function"===typeof e&&"default"===t?e:void 0}Object.defineProperty(t,"l",{enumerable:!0,get:function(){return n}})},4666:(e,t,n)=>{n.a(e,(async(e,r)=>{try{n.r(t),n.d(t,{config:()=>d,default:()=>u,routeModule:()=>f});var a=n(1802),i=n(7153),o=n(6249),c=n(4269),s=e([c]);c=(s.then?(await s)():s)[0];const u=(0,o.l)(c,"default"),d=(0,o.l)(c,"config"),f=new a.PagesAPIRouteModule({definition:{kind:i.x.PAGES_API,page:"/api/auth/[action]",pathname:"/api/auth/[action]",bundlePath:"",filename:""},userland:c});r()}catch(u){r(u)}}))},1176:(e,t,n)=>{n.a(e,(async(e,r)=>{try{n.d(t,{I:()=>s});var a=n(159),i=n(809),o=e([a]);function s(e){const t="production"===(0,i._w)("production"),n=t?process.env.IRON_SESSION_PASSWORD:"a1a2fec0-252b-499c-af1c-ce4bef7f2351";return(0,a.withIronSessionApiRoute)(e,{cookieName:"msal-service-auth",cookieOptions:{sameSite:"strict",secure:t},password:n})}a=(o.then?(await o)():o)[0],r()}catch(c){r(c)}}))},809:(e,t,n)=>{function r(e){if(e){return e.replace(/[\r\n]+/gm,"").replace("\\r","")}return e}n.d(t,{_w:()=>r})},4269:(e,t,n)=>{n.a(e,(async(e,r)=>{try{n.r(t),n.d(t,{default:()=>s});var a=n(1176),i=e([a]);async function c(e,t){const{action:n}=e.query;if("logout"===n)await u(e,t);else t.status(404).end()}const s=(0,(a=(i.then?(await i)():i)[0]).I)(c);async function u(e,t){e.session.destroy(),t.redirect("/")}r()}catch(o){r(o)}}))},7153:(e,t)=>{var n;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return n}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(n||(n={}))},1802:(e,t,n)=>{e.exports=n(145)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var n,r=(n=4666,t(t.s=n));module.exports=r})();