(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23480,e=>{"use strict";var t,r=((t={}).Unauthorized="unauthorized_error",t.Forbidden="forbidden_error",t.NotFound="not_found_error",t.BadRequest="bad_request_error",t.InternalServerError="internal_server_error",t.PaymentCreationFailure="payment_not_created_error",t.NoAvailableUsersFound="no_available_users_found_error",t.ChargeCardFailure="couldnt_charge_card_error",t.CollectCardFailure="couldnt_collect_card_error",t.RequestBodyWithouEnd="request_body_end_time_internal_error",t.AlreadySignedUpForBooking="already_signed_up_for_this_booking_error",t.FixedHostsUnavailableForBooking="fixed_hosts_unavailable_for_booking",t.RoundRobinHostsUnavailableForBooking="round_robin_host_unavailable_for_booking",t.EventTypeNotFound="event_type_not_found_error",t.BookingNotFound="booking_not_found_error",t.BookingSeatsFull="booking_seats_full_error",t.MissingPaymentCredential="missing_payment_credential_error",t.MissingPaymentAppId="missing_payment_app_id_error",t.NotEnoughAvailableSeats="not_enough_available_seats_error",t.AvailabilityNotFoundInSchedule="availability_not_found_in_schedule_error",t.CancelledBookingsCannotBeRescheduled="cancelled_bookings_cannot_be_rescheduled",t.UnableToSubscribeToThePlatform="unable_to_subscribe_to_the_platform",t.UpdatingOauthClientError="updating_oauth_client_error",t.CreatingOauthClientError="creating_oauth_client_error",t.BookingTimeOutOfBounds="booking_time_out_of_bounds_error",t.BookingConflict="booking_conflict_error",t.BookerLimitExceeded="booker_limit_exceeded_error",t.BookerLimitExceededReschedule="booker_limit_exceeded_error_reschedule",t.BookingNotAllowedByRestrictionSchedule="booking_not_allowed_by_restriction_schedule_error",t.RestrictionScheduleNotFound="restriction_schedule_not_found_error",t.EventTypeNoHosts="event_type_no_hosts",t.RequestBodyInvalid="request_body_invalid_error",t.PrivateLinkExpired="private_link_expired",t.BookerEmailBlocked="booker_email_blocked",t.BookerEmailRequiresLogin="booker_email_requires_login",t.InvalidVerificationCode="invalid_verification_code",t.UnableToValidateVerificationCode="unable_to_validate_verification_code",t);e.s(["ErrorCode",()=>r])},388752,e=>{"use strict";function t(e){return e instanceof Error?e:"string"==typeof e?Error(e,{cause:e}):Error(`Unhandled error of type '${typeof e}''`)}e.i(23480),e.s(["getErrorFromUnknown",()=>t])},294951,e=>{"use strict";var t=e.i(247167);let r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]};function s(e,t,o,i=!1){let n=String(t),a=(e,t)=>`\u001b[${t[0]}m${e}\u001b[${t[1]}m`,l=(e,t)=>null!=t&&"string"==typeof t?a(e,r[t]):null!=t&&Array.isArray(t)?t.reduce((e,t)=>l(e,t),e):null!=t&&null!=t[e.trim()]?l(e,t[e.trim()]):null!=t&&null!=t["*"]?l(e,t["*"]):e;return n.replace(/{{(.+?)}}/g,(t,s)=>{let n=null!=o[s]?String(o[s]):i?"":t;return e.stylePrettyLogs?l(n,e?.prettyLogStyles?.[s]??null)+a("",r.reset):n})}function o(e,t=2,r=0){return null!=e&&isNaN(e)?"":(e=null!=e?e+r:e,2===t?null==e?"--":e<10?"0"+e:e.toString():null==e?"---":e<10?"00"+e:e<100?"0"+e:e.toString())}function i(e){let t=new Set;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}function n(e,t){let r={seen:[],stylize:l};return null!=t&&O(r,t),a(r.showHidden)&&(r.showHidden=!1),a(r.depth)&&(r.depth=2),a(r.colors)&&(r.colors=!0),a(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),_(r,e,r.depth)}function a(e){return void 0===e}function l(e){return e}function u(e,t){let r=n.styles[t];return null!=r&&n?.colors?.[r]?.[0]!=null&&n?.colors?.[r]?.[1]!=null?"\x1b["+n.colors[r][0]+"m"+e+"\x1b["+n.colors[r][1]+"m":e}function c(e){return"function"==typeof e}function d(e){return"string"==typeof e}n.colors=r,n.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function h(e){return m(e)&&"[object RegExp]"===y(e)}function m(e){return"object"==typeof e&&null!==e}function p(e){return m(e)&&("[object Error]"===y(e)||e instanceof Error)}function f(e){return m(e)&&"[object Date]"===y(e)}function y(e){return Object.prototype.toString.call(e)}function b(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,r=0){var s,o,i;let a,l;if(e.customInspect&&null!=t&&c(t)&&t?.inspect!==n&&!(t?.constructor&&t?.constructor.prototype===t)){if("function"!=typeof t.inspect&&null!=t.toString)return t.toString();let s=t?.inspect(r,e);return d(s)||(s=_(e,s,r)),s}let u=w(e,t);if(u)return u;let m=Object.keys(t),y=(l={},m.forEach(e=>{l[e]=!0}),l);try{e.showHidden&&Object.getOwnPropertyNames&&(m=Object.getOwnPropertyNames(t))}catch(e){}if(p(t)&&(m.indexOf("message")>=0||m.indexOf("description")>=0))return b(t);if(0===m.length)if(!c(e.stylize))return t;else{if(c(t)){let r=t.name?": "+t.name:"";return e.stylize("[Function"+r+"]","special")}if(h(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(f(t))return e.stylize(Date.prototype.toISOString.call(t),"date");if(p(t))return b(t)}let O="",x=!1,E=["{\n","\n}"];if(Array.isArray(t)&&(x=!0,E=["[\n","\n]"]),c(t)&&(O=" [Function"+(t.name?": "+t.name:"")+"]"),h(t)&&(O=" "+RegExp.prototype.toString.call(t)),f(t)&&(O=" "+Date.prototype.toUTCString.call(t)),p(t)&&(O=" "+b(t)),0===m.length&&(!x||0==t.length))return E[0]+O+E[1];if(r<0)if(h(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");else return e.stylize("[Object]","special");return e.seen.push(t),a=x?function(e,t,r,s,o){let i=[];for(let o=0,n=t.length;o{o.match(/^\d+$/)||i.push(v(e,t,r,s,o,!0))}),i}(e,t,r,y,m):m.map(s=>v(e,t,r,y,s,x)),e.seen.pop(),s=a,o=O,(i=E)[0]+(""===o?"":o+"\n")+" "+s.join(",\n ")+" "+i[1]}function v(e,t,r,s,o,i){let n,l,u={value:void 0};try{u.value=t[o]}catch(e){}try{Object.getOwnPropertyDescriptor&&(u=Object.getOwnPropertyDescriptor(t,o)||u)}catch(e){}if(u.get?l=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(l=e.stylize("[Setter]","special")),g(s,o)||(n="["+o+"]"),!l&&(0>e.seen.indexOf(u.value)?(l=null===r?_(e,u.value,void 0):_(e,u.value,r-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map(e=>" "+e).join("\n").substr(2):"\n"+l.split("\n").map(e=>" "+e).join("\n")):l=e.stylize("[Circular]","special")),a(n)){if(i&&o.match(/^\d+$/))return l;(n=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(n=n.substr(1,n.length-2),n=e.stylize(n,"name")):(n=n.replace(/'/g,"\\'").replace(/\\"/g,"\\'").replace(/(^"|"$)/g,"'"),n=e.stylize(n,"string"))}return n+": "+l}function w(e,t){if(a(t))return e.stylize("undefined","undefined");if(d(t)){let r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,"\\'")+"'";return e.stylize(r,"string")}return"number"==typeof t?e.stylize(""+t,"number"):"boolean"==typeof t?e.stylize(""+t,"boolean"):null===t?e.stylize("null","null"):void 0}function O(e,t){if(!t||!m(t))return e;let r={...e},s={...t},o=Object.keys(t),i=o.length;for(;i--;)r[o[i]]=s[o[i]];return e}let x={getCallerStackFrame:N,getErrorTrace:L,getMeta:function(e,t,r,s,o,i){return Object.assign({},E,{name:o,parentNames:i,date:new Date,logLevelId:e,logLevelName:t,path:s?void 0:N(r)})},transportJSON:function(e){console.log(i(e))},transportFormatted:function(e,t,r,s){let o=(r.length>0&&t.length>0?"\n":"")+r.join("\n");s.prettyInspectOptions.colors=s.stylePrettyLogs,console.log(e+function(e,...t){let r={seen:[],stylize:l};null!=e&&O(r,e);let s=t[0],o=0,a="",u="";if("string"==typeof s){let l;if(1===t.length)return s;let c=0;for(let u=0;u(S(r)?e.errors.push(P(r,t)):e.args.push(r),e),{args:[],errors:[]})},prettyFormatErrorObj:P},E={runtime:[typeof window,typeof document].includes("undefined")?"Generic":"Browser",browser:globalThis?.navigator?.userAgent},k=/(?:(?:file|https?|global code|[^@]+)@)?(?:file:)?((?:\/[^:/]+){2,})(?::(\d+))?(?::(\d+))?/;function N(e,t=Error()){return j(t?.stack?.split("\n")?.filter(e=>!e.includes("Error: "))?.[e])}function L(e){return e?.stack?.split("\n")?.filter(e=>!e.includes("Error: "))?.reduce((e,t)=>(e.push(j(t)),e),[])}function j(e){let t=globalThis?.location?.origin,r={fullFilePath:void 0,fileName:void 0,fileNameWithLine:void 0,fileColumn:void 0,fileLine:void 0,filePath:void 0,filePathWithLine:void 0,method:void 0};if(null!=e){let s=e.match(k);if(s){r.filePath=s[1].replace(/\?.*$/,""),r.fullFilePath=`${t}${r.filePath}`;let e=r.filePath.split("/");r.fileName=e[e.length-1],r.fileLine=s[2],r.fileColumn=s[3],r.filePathWithLine=`${r.filePath}:${r.fileLine}`,r.fileNameWithLine=`${r.fileName}:${r.fileLine}`}}return r}function S(e){return e instanceof Error}function P(e,t){let r=L(e).map(e=>s(t,t.prettyErrorStackTemplate,{...e},!0)),o={errorName:` ${e.name} `,errorMessage:Object.getOwnPropertyNames(e).reduce((t,r)=>("stack"!==r&&t.push(e[r]),t),[]).join(", "),errorStack:r.join("\n")};return s(t,t.prettyErrorTemplate,o)}class C{constructor(e,t,r=4){this.logObj=t,this.stackDepthLevel=r,this.runtime=x,this.settings={type:e?.type??"pretty",name:e?.name,parentNames:e?.parentNames,minLevel:e?.minLevel??0,argumentsArrayName:e?.argumentsArrayName,hideLogPositionForProduction:e?.hideLogPositionForProduction??!1,prettyLogTemplate:e?.prettyLogTemplate??"{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}} {{logLevelName}} {{filePathWithLine}}{{nameWithDelimiterPrefix}} ",prettyErrorTemplate:e?.prettyErrorTemplate??"\n{{errorName}} {{errorMessage}}\nerror stack:\n{{errorStack}}",prettyErrorStackTemplate:e?.prettyErrorStackTemplate??" • {{fileName}} {{method}}\n {{filePathWithLine}}",prettyErrorParentNamesSeparator:e?.prettyErrorParentNamesSeparator??":",prettyErrorLoggerNameDelimiter:e?.prettyErrorLoggerNameDelimiter??" ",stylePrettyLogs:e?.stylePrettyLogs??!0,prettyLogTimeZone:e?.prettyLogTimeZone??"UTC",prettyLogStyles:e?.prettyLogStyles??{logLevelName:{"*":["bold","black","bgWhiteBright","dim"],SILLY:["bold","white"],TRACE:["bold","whiteBright"],DEBUG:["bold","green"],INFO:["bold","blue"],WARN:["bold","yellow"],ERROR:["bold","red"],FATAL:["bold","redBright"]},dateIsoStr:"white",filePathWithLine:"white",name:["white","bold"],nameWithDelimiterPrefix:["white","bold"],nameWithDelimiterSuffix:["white","bold"],errorName:["bold","bgRedBright","whiteBright"],fileName:["yellow"],fileNameWithLine:"white"},prettyInspectOptions:e?.prettyInspectOptions??{colors:!0,compact:!1,depth:1/0},metaProperty:e?.metaProperty??"_meta",maskPlaceholder:e?.maskPlaceholder??"[***]",maskValuesOfKeys:e?.maskValuesOfKeys??["password"],maskValuesOfKeysCaseInsensitive:e?.maskValuesOfKeysCaseInsensitive??!1,maskValuesRegEx:e?.maskValuesRegEx,prefix:[...e?.prefix??[]],attachedTransports:[...e?.attachedTransports??[]],overwrite:{mask:e?.overwrite?.mask,toLogObj:e?.overwrite?.toLogObj,addMeta:e?.overwrite?.addMeta,addPlaceholders:e?.overwrite?.addPlaceholders,formatMeta:e?.overwrite?.formatMeta,formatLogObj:e?.overwrite?.formatLogObj,transportFormatted:e?.overwrite?.transportFormatted,transportJSON:e?.overwrite?.transportJSON}}}log(e,t,...r){let s,o;if(e0?this._mask(i):i,a=null!=this.logObj?this._recursiveCloneAndExecuteFunctions(this.logObj):void 0,l=this.settings.overwrite?.toLogObj!=null?this.settings.overwrite?.toLogObj(n,a):this._toLogObj(n,a),u=this.settings.overwrite?.addMeta!=null?this.settings.overwrite?.addMeta(l,e,t):this._addMetaToLogObj(l,e,t);return this.settings.overwrite?.formatMeta!=null&&(s=this.settings.overwrite?.formatMeta(u?.[this.settings.metaProperty])),this.settings.overwrite?.formatLogObj!=null&&(o=this.settings.overwrite?.formatLogObj(n,this.settings)),"pretty"===this.settings.type&&(s=s??this._prettyFormatLogObjMeta(u?.[this.settings.metaProperty]),o=o??this.runtime.prettyFormatLogObj(n,this.settings)),null!=s&&null!=o?this.settings.overwrite?.transportFormatted!=null?this.settings.overwrite?.transportFormatted(s,o.args,o.errors,this.settings):this.runtime.transportFormatted(s,o.args,o.errors,this.settings):this.settings.overwrite?.transportJSON!=null?this.settings.overwrite?.transportJSON(u):"hidden"!==this.settings.type&&this.runtime.transportJSON(u),null!=this.settings.attachedTransports&&this.settings.attachedTransports.length>0&&this.settings.attachedTransports.forEach(e=>{e(u)}),u}attachTransport(e){this.settings.attachedTransports.push(e)}getSubLogger(e,t){let r={...this.settings,...e,parentNames:this.settings?.parentNames!=null&&this.settings?.name!=null?[...this.settings.parentNames,this.settings.name]:this.settings?.name!=null?[this.settings.name]:void 0,prefix:[...this.settings.prefix,...e?.prefix??[]]};return new this.constructor(r,t??this.logObj,this.stackDepthLevel)}_mask(e){let t=!0!==this.settings.maskValuesOfKeysCaseInsensitive?this.settings.maskValuesOfKeys:this.settings.maskValuesOfKeys.map(e=>e.toLowerCase());return e?.map(e=>this._recursiveCloneAndMaskValuesOfKeys(e,t))}_recursiveCloneAndMaskValuesOfKeys(e,t,r=[]){if(r.includes(e))return{...e};if("object"==typeof e&&null!==e&&r.push(e),this.runtime.isError(e)||this.runtime.isBuffer(e))return e;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(Array.isArray(e))return e.map(e=>this._recursiveCloneAndMaskValuesOfKeys(e,t,r));if(e instanceof Date)return new Date(e.getTime());else if(e instanceof URL)return{href:e.href,protocol:e.protocol,username:e.username,password:e.password,host:e.host,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search,searchParams:[...e.searchParams].map(([e,t])=>({key:e,value:t})),hash:e.hash,origin:e.origin};else if(null!==e&&"object"==typeof e){let s=this.runtime.isError(e)?this._cloneError(e):Object.create(Object.getPrototypeOf(e));return Object.getOwnPropertyNames(e).reduce((s,o)=>(s[o]=t.includes(this.settings?.maskValuesOfKeysCaseInsensitive!==!0?o:o.toLowerCase())?this.settings.maskPlaceholder:this._recursiveCloneAndMaskValuesOfKeys(e[o],t,r),s),s)}else{if("string"==typeof e){let t=e;for(let e of this.settings?.maskValuesRegEx||[])t=t.replace(e,this.settings?.maskPlaceholder||"");return t}return e}}_recursiveCloneAndExecuteFunctions(e,t=[]){return this.isObjectOrArray(e)&&t.includes(e)?this.shallowCopy(e):(this.isObjectOrArray(e)&&t.push(e),Array.isArray(e))?e.map(e=>this._recursiveCloneAndExecuteFunctions(e,t)):e instanceof Date?new Date(e.getTime()):this.isObject(e)?Object.getOwnPropertyNames(e).reduce((r,s)=>{let o=Object.getOwnPropertyDescriptor(e,s);if(o){Object.defineProperty(r,s,o);let i=e[s];r[s]="function"==typeof i?i():this._recursiveCloneAndExecuteFunctions(i,t)}return r},Object.create(Object.getPrototypeOf(e))):e}isObjectOrArray(e){return"object"==typeof e&&null!==e}isObject(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}shallowCopy(e){return Array.isArray(e)?[...e]:{...e}}_toLogObj(e,t={}){return e=e?.map(e=>this.runtime.isError(e)?this._toErrorObject(e):e),t=null==this.settings.argumentsArrayName?1!==e.length||Array.isArray(e[0])||!0===this.runtime.isBuffer(e[0])||e[0]instanceof Date?{...t,...e}:"object"==typeof e[0]&&null!=e[0]?{...e[0],...t}:{0:e[0],...t}:{...t,[this.settings.argumentsArrayName]:e}}_cloneError(e){let t=new e.constructor;return Object.getOwnPropertyNames(e).forEach(r=>{t[r]=e[r]}),t}_toErrorObject(e){return{nativeError:e,name:e.name??"Error",message:e.message,stack:this.runtime.getErrorTrace(e)}}_addMetaToLogObj(e,t,r){return{...e,[this.settings.metaProperty]:this.runtime.getMeta(t,r,this.stackDepthLevel,this.settings.hideLogPositionForProduction,this.settings.name,this.settings.parentNames)}}_prettyFormatLogObjMeta(e){if(null==e)return"";let t=this.settings.prettyLogTemplate,r={};t.includes("{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}")?t=t.replace("{{yyyy}}.{{mm}}.{{dd}} {{hh}}:{{MM}}:{{ss}}:{{ms}}","{{dateIsoStr}}"):"UTC"===this.settings.prettyLogTimeZone?(r.yyyy=e?.date?.getUTCFullYear()??"----",r.mm=o(e?.date?.getUTCMonth(),2,1),r.dd=o(e?.date?.getUTCDate(),2),r.hh=o(e?.date?.getUTCHours(),2),r.MM=o(e?.date?.getUTCMinutes(),2),r.ss=o(e?.date?.getUTCSeconds(),2),r.ms=o(e?.date?.getUTCMilliseconds(),3)):(r.yyyy=e?.date?.getFullYear()??"----",r.mm=o(e?.date?.getMonth(),2,1),r.dd=o(e?.date?.getDate(),2),r.hh=o(e?.date?.getHours(),2),r.MM=o(e?.date?.getMinutes(),2),r.ss=o(e?.date?.getSeconds(),2),r.ms=o(e?.date?.getMilliseconds(),3));let i="UTC"===this.settings.prettyLogTimeZone?e?.date:new Date(e?.date?.getTime()-e?.date?.getTimezoneOffset()*6e4);r.rawIsoStr=i?.toISOString(),r.dateIsoStr=i?.toISOString().replace("T"," ").replace("Z",""),r.logLevelName=e?.logLevelName,r.fileNameWithLine=e?.path?.fileNameWithLine??"",r.filePathWithLine=e?.path?.filePathWithLine??"",r.fullFilePath=e?.path?.fullFilePath??"";let n=this.settings.parentNames?.join(this.settings.prettyErrorParentNamesSeparator);return n=null!=n&&e?.name!=null?n+this.settings.prettyErrorParentNamesSeparator:void 0,r.name=e?.name!=null||null!=n?((n??"")+e?.name)??"":"",r.nameWithDelimiterPrefix=r.name.length>0?this.settings.prettyErrorLoggerNameDelimiter+r.name:"",r.nameWithDelimiterSuffix=r.name.length>0?r.name+this.settings.prettyErrorLoggerNameDelimiter:"",this.settings.overwrite?.addPlaceholders!=null&&this.settings.overwrite?.addPlaceholders(e,r),s(this.settings,t,r)}}var T=e.i(24509);let B={minLevel:parseInt(t.default.env.NEXT_PUBLIC_LOGGER_LEVEL||"4"),maskValuesOfKeys:["password","passwordConfirmation","credentials","credential"],prettyLogTimeZone:T.IS_PRODUCTION?"UTC":"local",prettyErrorStackTemplate:" • {{fileName}} {{method}}\n {{filePathWithLine}}",prettyErrorTemplate:"\n{{errorName}} {{errorMessage}}\nerror stack:\n{{errorStack}}",prettyLogTemplate:"{{hh}}:{{MM}}:{{ss}}:{{ms}} [{{logLevelName}}] ",stylePrettyLogs:!T.IS_PRODUCTION,prettyLogStyles:{name:"yellow",dateIsoStr:"blue"},type:T.IS_PRODUCTION?"json":"pretty"},A=new class extends C{constructor(e,t){const r="u">typeof window&&"u">typeof document,s=!!r&&void 0!==window.chrome&&void 0!==window.CSS&&window.CSS.supports("color","green"),o=!!r&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent);(e=e||{}).stylePrettyLogs=(!e.stylePrettyLogs||!r||!!s)&&e.stylePrettyLogs,super(e,t,o?4:5)}log(e,t,...r){return super.log(e,t,...r)}silly(...e){return super.log(0,"SILLY",...e)}trace(...e){return super.log(1,"TRACE",...e)}debug(...e){return super.log(2,"DEBUG",...e)}info(...e){return super.log(3,"INFO",...e)}warn(...e){return super.log(4,"WARN",...e)}error(...e){return super.log(5,"ERROR",...e)}fatal(...e){return super.log(6,"FATAL",...e)}getSubLogger(e,t){return super.getSubLogger(e,t)}}(B);e.s(["default",0,A],294951)},605681,e=>{"use strict";class t extends Error{cause;statusCode;message;url;method;data;constructor(e){super(e.message??`HTTP Error ${e.statusCode} `),Object.setPrototypeOf(this,t.prototype),this.name=t.prototype.constructor.name,this.cause=e.cause,this.statusCode=e.statusCode,this.url=e.url,this.method=e.method,this.message=e.message??`HTTP Error ${e.statusCode}`,this.data=e.data,e.cause instanceof Error&&e.cause.stack&&(this.stack=e.cause.stack)}static fromRequest(e,r,s){return new t({message:r.statusText,url:r.url,method:e.method,statusCode:r.status,data:s.data})}}e.s(["HttpError",()=>t])},323758,e=>{"use strict";var t=e.i(843476),r=e.i(271645);e.i(436864);var s=e.i(605681),o=e.i(857739);let i={displayDebug:!1},n=e=>{let{error:r}=e,o=[["error.message",r?.message],["error.name",r?.name],["error.class",r instanceof Error?r.constructor.name:void 0],["http.url",r instanceof s.HttpError?r.url:void 0],["http.status",r instanceof s.HttpError?r.statusCode:void 0],["http.cause",r instanceof s.HttpError?r.cause?.message:void 0],["error.stack",r instanceof Error?r.stack:void 0]];return(0,t.jsx)("div",{className:"bg-default overflow-hidden shadow sm:rounded-lg",children:(0,t.jsx)("div",{className:"border-subtle border-t px-4 py-5 sm:p-0",children:(0,t.jsx)("dl",{className:"sm:divide-subtle sm:divide-y",children:o.map(([e,r])=>{if(void 0!==r)return(0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 sm:py-5",children:[(0,t.jsx)("dt",{className:"text-emphasis text-sm font-bold",children:e}),(0,t.jsx)("dd",{className:"text-emphasis mt-1 text-sm sm:col-span-2 sm:mt-0",children:r})]},e)})})})})};e.s(["ErrorPage",0,e=>{let{message:s,statusCode:a,error:l,displayDebug:u}={...i,...e};return(0,r.useLayoutEffect)(()=>{a&&(window.CalComPageStatus=a.toString())},[a]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"bg-subtle flex h-screen",children:(0,t.jsxs)("div",{className:"rtl: bg-default m-auto rounded-md p-10 text-right ltr:text-left",children:[(0,t.jsx)("h1",{className:"font-cal text-emphasis text-6xl",children:a}),(0,t.jsx)("h2",{className:"text-emphasis mt-6 max-w-2xl text-2xl font-medium",children:"It's not you, it's us."}),(0,t.jsx)("p",{className:"text-default mb-6 mt-4 max-w-2xl text-sm",children:"Something went wrong on our end. Get in touch with our support team, and we'll get it fixed right away for you."}),(0,t.jsxs)("div",{className:"mb-8 flex flex-col",children:[(0,t.jsx)("p",{className:"text-default mb-4 max-w-2xl text-sm",children:"Please provide the following text when contacting support to better help you:"}),(0,t.jsx)("pre",{className:"bg-emphasis text-emphasis w-full max-w-2xl whitespace-normal wrap-break-word rounded-md p-4",children:s})]}),(0,t.jsx)(o.Button,{href:"mailto:support@cal.com",children:"Contact Support"}),(0,t.jsx)(o.Button,{color:"secondary",className:"ml-2",onClick:()=>{window.location.reload(),e.reset?.()},children:"Try again"})]})}),u&&(0,t.jsx)("div",{className:"flex-wrap",children:(0,t.jsx)(n,{error:l})})]})}])},836,e=>{"use strict";var t=e.i(843476),r=e.i(662537),s=e.i(271645),o=e.i(388752),i=e.i(605681),n=e.i(294951),a=e.i(24509);let l=n.default.getSubLogger({prefix:["[redactError]"]});var u=e.i(323758);let c=n.default.getSubLogger({prefix:["[error]"]});function d({error:e,reset:n}){s.default.useEffect(()=>{c.error(e),(0,r.captureException)(e)},[e]);let d=s.default.useMemo(()=>{let t=(0,o.getErrorFromUnknown)(e);if(t instanceof i.HttpError){var r;let e,s=(r=t)instanceof Error?(l.debug("Type of Error: ",r.constructor),(e=r.name||"",/Prisma/i.test(e)&&a.IS_PRODUCTION)?(l.error("Error: ",JSON.stringify(r)),Error("An error occurred while querying the database.")):r):r;return{statusCode:t.statusCode,title:s.name,name:s.name,message:s.message,url:t.url,method:t.method,cause:t.cause}}return{statusCode:500,title:"Internal Server Error",name:"Internal Server Error",message:"An unexpected error occurred."}},[e]);return(0,t.jsx)(u.ErrorPage,{reset:n,statusCode:d.statusCode,error:d,message:d.message})}e.s(["default",()=>d],836)},566083,e=>{"use strict";var t=e.i(843476),r=e.i(662537),s=e.i(271645),o=e.i(836);let i=e=>((0,s.useEffect)(()=>{r.captureException(e.error)},[e.error]),(0,t.jsx)("html",{children:(0,t.jsx)("body",{children:(0,t.jsx)(o.default,{...e})})}));e.s(["GlobalError",0,i,"default",0,i])}]); //# sourceMappingURL=5c78c3eb7771e59b.js.map