"use strict";(()=>{vare={};e.id=536,e.ids=[536],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){returnfunctione(r,t){returntinr?r[t]:"then"inr&&"function"==typeofr.then?r.then(r=>e(r,t)):"function"==typeofr&&"default"===t?r:void0}}})},36968:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>m});vars={};t.r(s),t.d(s,{default:()=>p});varn=t(89947),i=t(2706),a=t(96762),o=t(6420),u=t.n(o),l=t(77538),c=t.n(l);t(27825);vard=t(51348),f=t.n(d);asyncfunctionp(e,r){if("POST"!==e.method)returnr.json({user:null,msg:"Registration Failed!"});lett=awaitu()(e,r,!0);if(!t)returnr.json({success:!1,msg:"Unauthorized"});let{id:s}=e.body;try{lete=awaitf()("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[s,t.id]),n=e?.[0];if(!n?.id)throwError("Active User couldn't be verified");if(String(n.primary)?.match(/1/))throwError("Cannot Delete Primary User");leti=`dsql_user_${t.id}`,a=n.host;awaitf()("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),awaitf()(`DROP USER '${i}'@'${a}'`),r.json({success:!0})}catch(e){c()({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}t(29021);letS=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),m=newn.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{lets=t(29021),{IncomingMessage:n}=t(81630);e.exports=asyncfunction({user:e,message:r,component:t,noMail:n,req:i}){leta=newDate,o=(()=>{if(!i)returnnull;try{lete=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)returnnull;returnString(n)}catch(e){returnnull}})();try{letn=`🚀 SERVER ERROR ===========================