1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="52cab91b-6b16-8757-b8b4-549718b79dbc")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,394580,e=>{"use strict";let t=Symbol.for("logtape.categoryPrefix");function r(){let e=h.getLogger(),r=e.contextLocalStorage?.getStore();if(null==r)return[];let i=r[t];return Array.isArray(i)?i:[]}function i(){let e=h.getLogger(),t=e.contextLocalStorage?.getStore();if(null==t)return{};let r={};for(let e of Object.keys(t))r[e]=t[e];return r}let n=["trace","debug","info","warning","error","fatal"];function o(e,t){let r=n.indexOf(e);if(r<0)throw TypeError(`Invalid log level: ${JSON.stringify(e)}.`);let i=n.indexOf(t);if(i<0)throw TypeError(`Invalid log level: ${JSON.stringify(t)}.`);return r-i}let l=Symbol.for("logtape.lazy"),s=Symbol.for("LogTape.throttlingSummaryRecord");function a(e){return null!=e&&"object"==typeof e&&l in e&&!0===e[l]}function g(e){let t={};for(let r in e){let i=e[r];t[r]=a(i)?i.getter():i}if(Object.prototype.propertyIsEnumerable.call(e,s)){let r=e[s];t[s]=a(r)?r.getter():r}return t}function f(e,t,r,i){if("function"!=typeof i)return void e.log(t,r,i??{});if(!e.isEnabledFor(t))return Promise.resolve();let n=i();if(n instanceof Promise||"[object Promise]"===Object.prototype.toString.call(n)&&"function"==typeof n.then)return Promise.resolve(n).then(i=>{e.log(t,r,i)});e.log(t,r,n)}let u=Symbol.for("logtape.rootLogger");function c(e){return 2===e.length&&"logtape"===e[0]&&"meta"===e[1]}var h=class e{parent;children;category;sinks;parentSinks="inherit";filters;lowestLevel="trace";contextLocalStorage;static getLogger(t=[]){let r=u in globalThis?globalThis[u]??null:null;return(null==r&&(r=new e(null,[]),globalThis[u]=r),"string"==typeof t)?r.getChild(t):0===t.length?r:r.getChild(t)}static getNearestExistingLogger(t){let r=e.getLogger();for(let i of t){let t=r.children[i],n=t instanceof e?t:t?.deref();if(null==n)break;r=n}return r}constructor(e,t){this.parent=e,this.children={},this.category=t,this.sinks=[],this.filters=[]}getChild(t){let r="string"==typeof t?t:t[0],i=this.children[r],n=i instanceof e?i:i?.deref();return(null==n&&(n=new e(this,[...this.category,r]),this.children[r]="WeakRef"in globalThis?new WeakRef(n):n),"string"==typeof t||1===t.length)?n:n.getChild(t.slice(1))}reset(){for(;this.sinks.length>0;)this.sinks.shift();for(this.parentSinks="inherit";this.filters.length>0;)this.filters.shift();this.lowestLevel="trace"}resetDescendants(){for(let t of Object.values(this.children)){let r=t instanceof e?t:t.deref();null!=r&&r.resetDescendants()}this.reset()}with(e){return new p(this,{...e})}filter(e){for(let t of this.filters)if(!t(e))return!1;return!(this.filters.length<1)||(this.parent?.filter(e)??!0)}*getSinks(e){if(!(null===this.lowestLevel||0>o(e,this.lowestLevel))){if(null!=this.parent&&"inherit"===this.parentSinks)for(let t of this.parent.getSinks(e))yield t;for(let e of this.sinks)yield e}}isEnabledFor(t){let i=c(this.category)?[]:r();return(i.length>0?e.getNearestExistingLogger([...i,...this.category]):this).isEnabledForResolved(t)}isEnabledForResolved(e){if(null===this.lowestLevel||0>o(e,this.lowestLevel))return!1;for(let t of this.getSinks(e))return!0;return!1}emit(t,i){let n="category"in t?t.category:this.category,o=c(n)?[]:r(),l=o.length>0?[...o,...n]:n,s=Object.getOwnPropertyDescriptors(t);s.category={value:l,enumerable:!0,configurable:!0};let a=Object.defineProperties({},s);(o.length>0?e.getNearestExistingLogger(l):this).emitResolved(a,i)}emitResolved(e,t){let r;if(null===this.lowestLevel||0>o(e.level,this.lowestLevel)||!this.filter(e))return;let i=[...this.getSinks(e.level)];if(i.length<1)return;let n=!1;
2for(let o of i)if(!t?.has(o))try{if(null==r&&!n)try{r=function(e){let t=g(e.properties),r=Object.getOwnPropertyDescriptors(e);return r.properties={value:t,enumerable:!0,configurable:!0},Object.defineProperties({},r)}(e)}catch{n=!0,r=e}o(r??e)}catch(i){let r=new Set(t);r.add(o),y.log("fatal","Failed to emit a log record to sink {sink}: {error}",{sink:o,error:i,record:e},r)}}log(e,t,r,n){let o,l,s=i(),a="function"==typeof r?{category:this.category,level:e,timestamp:Date.now(),get message(){return null==l&&(l=m(t,this.properties)),l},rawMessage:t,get properties(){return null==o&&(o=g({...s,...r()})),o}}:{category:this.category,level:e,timestamp:Date.now(),get message(){return null==l&&(l=m(t,this.properties)),l},rawMessage:t,get properties(){return null==o&&(o=g({...s,...r})),o}};this.emit(a,n)}logLazily(e,t,r={}){let n,o,l=i();function s(){if((null==o||null==n)&&(o=t((e,...t)=>(n=e,d(e,t))),null==n))throw TypeError("No log record was made.");return[o,n]}this.emit({category:this.category,level:e,get message(){return s()[0]},get rawMessage(){return s()[1]},timestamp:Date.now(),properties:{...l,...r}})}logTemplate(e,t,r,n={}){let o=i();this.emit({category:this.category,level:e,message:d(t,r),rawMessage:t,timestamp:Date.now(),properties:{...o,...n}})}trace(e,...t){if("string"==typeof e)return f(this,"trace",e,t[0]);"function"==typeof e?this.logLazily("trace",e):Array.isArray(e)?this.logTemplate("trace",e,t):this.log("trace","{*}",e)}debug(e,...t){if("string"==typeof e)return f(this,"debug",e,t[0]);"function"==typeof e?this.logLazily("debug",e):Array.isArray(e)?this.logTemplate("debug",e,t):this.log("debug","{*}",e)}info(e,...t){if("string"==typeof e)return f(this,"info",e,t[0]);"function"==typeof e?this.logLazily("info",e):Array.isArray(e)?this.logTemplate("info",e,t):this.log("info","{*}",e)}logError(e,t,r){if("function"!=typeof r)return void this.log(e,"{error.message}",{...r,error:t});if(!this.isEnabledFor(e))return Promise.resolve();let i=r();if(i instanceof Promise)return i.then(r=>{this.log(e,"{error.message}",{...r,error:t})});this.log(e,"{error.message}",{...i,error:t})}warn(e,...t){if(e instanceof Error)return this.logError("warning",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("warning",e,{error:t[0]});else{if("string"==typeof e)return f(this,"warning",e,t[0]);"function"==typeof e?this.logLazily("warning",e):Array.isArray(e)?this.logTemplate("warning",e,t):this.log("warning","{*}",e)}}warning(e,...t){if(e instanceof Error)return this.logError("warning",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("warning",e,{error:t[0]});else{if("string"==typeof e)return f(this,"warning",e,t[0]);"function"==typeof e?this.logLazily("warning",e):Array.isArray(e)?this.logTemplate("warning",e,t):this.log("warning","{*}",e)}}error(e,...t){if(e instanceof Error)return this.logError("error",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("error",e,{error:t[0]});else{if("string"==typeof e)return f(this,"error",e,t[0]);"function"==typeof e?this.logLazily("error",e):Array.isArray(e)?this.logTemplate("error",e,t):this.log("error","{*}",e)}}fatal(e,...t){if(e instanceof Error)return this.logError("fatal",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("fatal",e,{error:t[0]});else{if("string"==typeof e)return f(this,"fatal",e,t[0]);"function"==typeof e?this.logLazily("fatal",e):Array.isArray(e)?this.logTemplate("fatal",e,t):this.log("fatal","{*}",e)}}},p=class e{logger;properties;constructor(e,t){this.logger=e,this.properties=t}get category(){return this.logger.category}get parent(){return this.logger.parent}getChild(e){return this.logger.getChild(e).with(this.properties)}with(t){return new e(this.logger,{...this.properties,...t})}log(e,t,r,i){let n=this.properties;this.logger.log(e,t,"function"==typeof r?()=>g({...n,...r()}):()=>g({...n,...r}),i)}logLazily(e,t){this.logger.logLazily(e,t,g(this.properties))}logTemplate(e,t,r){this.logger.logTemplate(e,t,r,g(this.properties))}emit(e){let t={...e,properties:g({...this.properties,...e.properties})};this.logger.emit(t)}isEnabledFor(e){return this.logger.isEnabledFor(e)}trace(e,...t){if("string"==typeof e)return f(this,"trace",e,t[0]);"function"==typeof e?this.logLazily("trace",e):Array.isArray(e)?this.logTemplate("trace",e,t):this.log("trace","{*}",e)}debug(e,...t){if("string"==typeof e)return f(this,"debug",e,t[0]);"function"==typeof e?this.logLazily("debug",e):Array.isArray(e)?this.logTemplate("debug",e,t):this.log("debug","{*}",e)}info(e,...t){if("string"==typeof e)return f(this,"info",e,t[0]);"function"==typeof e?this.logLazily("info",e):Array.isArray(e)?this.logTemplate("info",e,t):this.log("info","{*}",e)}logError(e,t,r){if("function"!=typeof r)return void this.log(e,"{error.message}",{...r,error:t});if(!this.isEnabledFor(e))return Promise.resolve();let i=r();if(i instanceof Promise)return i.then(r=>{this.log(e,"{error.message}",{...r,error:t})});this.log(e,"{error.message}",{...i,error:t})}warn(e,...t){if(e instanceof Error)return this.logError("warning",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("warning",e,{error:t[0]});else{if("string"==typeof e)return f(this,"warning",e,t[0]);"function"==typeof e?this.logLazily("warning",e):Array.isArray(e)?this.logTemplate("warning",e,t):this.log("warning","{*}",e)}}warning(e,...t){if(e instanceof Error)return this.logError("warning",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("warning",e,{error:t[0]});else{if("string"==typeof e)return f(this,"warning",e,t[0]);"function"==typeof e?this.logLazily("warning",e):Array.isArray(e)?this.logTemplate("warning",e,t):this.log("warning","{*}",e)}}error(e,...t){if(e instanceof Error)return this.logError("error",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("error",e,{error:t[0]});else{if("string"==typeof e)return f(this,"error",e,t[0]);"function"==typeof e?this.logLazily("error",e):Array.isArray(e)?this.logTemplate("error",e,t):this.log("error","{*}",e)}}fatal(e,...t){if(e instanceof Error)return this.logError("fatal",e,t[0]);if("string"==typeof e&&t[0]instanceof Error)this.log("fatal",e,{error:t[0]});else{if("string"==typeof e)return f(this,"fatal",e,t[0]);"function"==typeof e?this.logLazily("fatal",e):Array.isArray(e)?this.logTemplate("fatal",e,t):this.log("fatal","{*}",e)}}};let y=h.getLogger(["logtape","meta"]);function m(e,t){let r=e.length;if(0===r)return[""];if(!e.includes("{"))return[e];let i=[],n=0;for(let o=0;o<r;o++){let l=e[o];if("{"===l){let l;if("{"===(o+1<r?e[o+1]:"")){o++;continue}let s=e.indexOf("}",o+1);if(-1===s)continue;let a=e.slice(n,o);i.push(a.replace(/{{/g,"{").replace(/}}/g,"}"));let g=e.slice(o+1,s),f=g.trim();if("*"===f)l=g in t?t[g]:"*"in t?t["*"]:t;else void 0===(l=g!==f?g in t?t[g]:t[f]:t[g])&&(f.includes(".")||f.includes("[")||f.includes("?."))&&(l=function(e,t){if(null==e||0===t.length||t.endsWith("."))return;let r=e,i=0,n=t.length;for(;i<n;){if("?."===t.slice(i,i+2)){if(i+=2,null==r)return}else if(null==r)return;let e=function(e,t){let r,i=e.length,n=t;if(n>=i)return null;
2if("["===e[n]){if(++n>=i)return null;if('"'===e[n]||"'"===e[n]){let t=e[n];n++;let o="";for(;n<i&&e[n]!==t;)if("\\"===e[n]){if(++n<i){let t=e[n];switch(t){case"n":o+="\n";break;case"t":o+=" ";break;case"r":o+="\r";break;case"b":o+="\b";break;case"f":o+="\f";break;case"v":o+="\v";break;case"0":o+="\0";break;case"\\":o+="\\";break;case'"':o+='"';break;case"'":o+="'";break;case"u":if(n+4<i){let r=Number.parseInt(e.slice(n+1,n+5),16);Number.isNaN(r)?o+=t:(o+=String.fromCharCode(r),n+=4)}else o+=t;break;default:o+=t}n++}}else o+=e[n],n++;if(n>=i)return null;r=o,n++}else{let t=n;for(;n<i&&"]"!==e[n]&&"'"!==e[n]&&'"'!==e[n];)n++;if(n>=i)return null;let o=e.slice(t,n);if(0===o.length)return null;let l=Number(o);r=Number.isNaN(l)?o:l}for(;n<i&&"]"!==e[n];)n++;n<i&&n++}else{let t=n;for(;n<i&&"."!==e[n]&&"["!==e[n]&&"?"!==e[n]&&"]"!==e[n];)n++;if(0===(r=e.slice(t,n)).length)return null}return n<i&&"."===e[n]&&n++,{segment:r,nextIndex:n}}(t,i);if(null===e)return;let{segment:n,nextIndex:o}=e;if(i=o,void 0===(r=function(e,t){if("string"==typeof t)return"__proto__"!==t&&"prototype"!==t&&"constructor"!==t&&("object"==typeof e||"function"==typeof e)&&null!==e?Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0:void 0;if(Array.isArray(e)&&t>=0&&t<e.length)return e[t]}(r,n)))return}return r}(t,f));i.push(l),n=(o=s)+1}else"}"===l&&o+1<r&&"}"===e[o+1]&&o++}let o=e.slice(n);return i.push(o.replace(/{{/g,"{").replace(/}}/g,"}")),i}function d(e,t){let r=[];for(let i=0;i<e.length;i++)r.push(e[i]),i<t.length&&r.push(t[i]);return r}e.s(["inspect",0,function(e,t){return JSON.stringify(e,null,t?.compact===!0?void 0:2)}],615043);var b=e.i(615043);let w={trace:"TRC",debug:"DBG",info:"INF",warning:"WRN",error:"ERR",fatal:"FTL"},v="u">typeof document||"u">typeof navigator&&"ReactNative"===navigator.product?e=>JSON.stringify(e):"Deno"in globalThis&&"inspect"in globalThis.Deno&&"function"==typeof globalThis.Deno.inspect?(e,t)=>globalThis.Deno.inspect(e,{strAbbreviateSize:1/0,iterableLimit:1/0,...t}):null!=b&&"inspect"in b&&"function"==typeof b.inspect?(e,t)=>b.inspect(e,{maxArrayLength:1/0,maxStringLength:1/0,...t}):e=>JSON.stringify(e),S=(e,t)=>String(v(e,t)),T=new TextEncoder;function $(e,t){let r=e.length;if(1===r)return e[0];if(r<=6){let i="";for(let n=0;n<r;n++)i+=n%2==0?e[n]:t(e[n]);return i}let i=Array(r);for(let n=0;n<r;n++)i[n]=n%2==0?e[n]:t(e[n]);return i.join("")}function k(e){return e<10?`0${e}`:`${e}`}let E=/^([+-])(0\d|1\d|2[0-3]):([0-5]\d)$/;function L(e,t){let r=e<0?"-":"+",i=Math.abs(e),n=k(Math.floor(i/60)),o=k(i%60);return t||"00"!==o?`${r}${n}:${o}`:`${r}${n}`}function A(e){if(void 0===e)return{kind:"utc"};if(null===e)return{kind:"local"};let t=E.exec(e);if(null!=t)return{kind:"offset",minutes:("-"===t[1]?-1:1)*(60*Number(t[2])+Number(t[3]))};if("u"<typeof Intl||"function"!=typeof Intl.DateTimeFormat)throw TypeError(`Invalid timeZone option: ${JSON.stringify(e)}. This environment does not support IANA time zones.`);try{return{kind:"iana",formatter:new Intl.DateTimeFormat("en-CA",{timeZone:e,hour12:!1,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}}catch{throw TypeError(`Invalid timeZone option: ${JSON.stringify(e)}. Expected an IANA time zone name (e.g., "Asia/Seoul") or a fixed UTC offset string (e.g., "+09:00").`)}}function N(e,t){return"none"===e?()=>null:"rfc3339"===e&&"utc"===t.kind?e=>new Date(e).toISOString():r=>{let i=function(e,t){var r;let i=new Date(e),n=(r=i.getUTCMilliseconds())<10?`00${r}`:r<100?`0${r}`:`${r}`;if("utc"===t.kind)return{year:`${i.getUTCFullYear()}`,month:k(i.getUTCMonth()+1),day:k(i.getUTCDate()),hour:k(i.getUTCHours()),minute:k(i.getUTCMinutes()),second:k(i.getUTCSeconds()),ms:n,offsetMinutes:0};if("local"===t.kind)return{year:`${i.getFullYear()}`,month:k(i.getMonth()+1),day:k(i.getDate()),hour:k(i.getHours()),minute:k(i.getMinutes()),second:k(i.getSeconds()),ms:n,offsetMinutes:-i.getTimezoneOffset()};if("offset"===t.kind){let r=new Date(e+6e4*t.minutes);return{year:`${r.getUTCFullYear()}`,month:k(r.getUTCMonth()+1),day:k(r.getUTCDate()),hour:k(r.getUTCHours()),minute:k(r.getUTCMinutes()),second:k(r.getUTCSeconds()),ms:n,offsetMinutes:t.minutes}}let o=function(e,t){let r=e.formatToParts(new Date(t)),i="",n="",o="",l="",s="",a="";for(let e of r)"year"===e.type?i=e.value:"month"===e.type?n=e.value:"day"===e.type?o=e.value:"hour"===e.type?l=e.value:"minute"===e.type?s=e.value:"second"===e.type&&(a=e.value);return{year:i,month:n,day:o,hour:l,minute:s,second:a}}(t.formatter,e),l=Math.round((Date.UTC(Number(o.year),Number(o.month)-1,Number(o.day),Number(o.hour),Number(o.minute),Number(o.second),i.getUTCMilliseconds())-e)/6e4);return{...o,ms:n,offsetMinutes:l}}(r,t),n=`${i.year}-${i.month}-${i.day}`,o=`${i.hour}:${i.minute}:${i.second}.${i.ms}`,l=L(i.offsetMinutes,!0),s=L(i.offsetMinutes,!1);return"date-time-timezone"===e?`${n} ${o} ${l}`:"date-time-tz"===e?`${n} ${o} ${s}`:"date-time"===e?`${n} ${o}`:"time-timezone"===e?`${o} ${l}`:"time-tz"===e?`${o} ${s}`:"time"===e?o:"date"===e?n:`${n}T${o}${l}`}}let O={trace:"trc",debug:"dbg",info:"inf",warning:"wrn",error:"err",fatal:"ftl"},x={trace:"TRACE",debug:"DEBUG",info:"INFO",warning:"WARNING",error:"ERROR",fatal:"FATAL"},C={trace:"trace",debug:"debug",info:"info",warning:"warning",error:"error",fatal:"fatal"},D={trace:"T",debug:"D",info:"I",warning:"W",error:"E",fatal:"F"},z={trace:"t",debug:"d",info:"i",warning:"w",error:"e",fatal:"f"};function I(e){return"crlf"===e?"\r\n":"\n"}function U(e,t){if(!(t instanceof Error))return t;let r={name:t.name,message:t.message};"string"==typeof t.stack&&(r.stack=t.stack);let i=t.cause;for(let e of(void 0!==i&&(r.cause=i),"u">typeof AggregateError&&t instanceof AggregateError&&(r.errors=t.errors),Object.keys(t)))e in r||(r[e]=t[e]);return r}function j(e={}){let t,r,i=(t=e.timestamp,r=A(e.timeZone),null==t?N("date-time-timezone",r):"disabled"===t?N("none",r):"str
2ing"==typeof t&&("date-time-timezone"===t||"date-time-tz"===t||"date-time"===t||"time-timezone"===t||"time-tz"===t||"time"===t||"date"===t||"rfc3339"===t||"none"===t)?N(t,r):t),n=e.category??"·",o=e.value?t=>e.value(t,S):S,l=(()=>{let t=e.level;if(null==t||"ABBR"===t)return e=>w[e];if("abbr"===t)return e=>O[e];if("FULL"===t)return e=>x[e];if("full"===t)return e=>C[e];if("L"===t)return e=>D[e];else if("l"===t)return e=>z[e];else return t})(),s=I(e.lineEnding),a=e.format??(({timestamp:e,level:t,category:r,message:i})=>`${e?`${e} `:""}[${t}] ${r}: ${i}`);return e=>{let t=$(e.message,o),r=i(e.timestamp),g=l(e.level),f="function"==typeof n?n(e.category):e.category.join(n);return`${a({timestamp:r,level:g,category:f,message:t,record:e})}${s}`}}j();let M="\x1b[0m",R={black:"\x1b[30m",red:"\x1b[31m",green:"\x1b[32m",yellow:"\x1b[33m",blue:"\x1b[34m",magenta:"\x1b[35m",cyan:"\x1b[36m",white:"\x1b[37m"},F={bold:"\x1b[1m",dim:"\x1b[2m",italic:"\x1b[3m",underline:"\x1b[4m",strikethrough:"\x1b[9m"},P={trace:null,debug:"blue",info:"green",warning:"yellow",error:"red",fatal:"magenta"};!function(e={}){let t=e.format,r=void 0===e.timestampStyle?"dim":e.timestampStyle,i=e.timestampColor??null,n=`${null==r?"":F[r]}${null==i?"":R[i]}`,o=null==r&&null==i?"":M,l=void 0===e.levelStyle?"bold":e.levelStyle,s=e.levelColors??P,a=void 0===e.categoryStyle?"dim":e.categoryStyle,g=e.categoryColor??null,f=`${null==a?"":F[a]}${null==g?"":R[g]}`,u=null==a&&null==g?"":M;j({timestamp:"date-time-tz",value:(e,t)=>t(e,{colors:!0}),...e,format({timestamp:e,level:r,category:i,message:a,record:g}){let c=s[g.level];return e=null==e?null:`${n}${e}${o}`,r=`${null==l?"":F[l]}${null==c?"":R[c]}${r}${null==l&&null==c?"":M}`,null==t?`${null==e?"":`${e} `}${r} ${f}${i}:${u} ${a}`:t({timestamp:e,level:r,category:`${f}${i}${u}`,message:a,record:g})}})}(),!function(e={}){let t,r,i,n=I(e.lineEnding);if(!e.categorySeparator&&!e.message&&!e.properties)return e=>{if(3===e.message.length)return JSON.stringify({"@timestamp":new Date(e.timestamp).toISOString(),level:"warning"===e.level?"WARN":e.level.toUpperCase(),message:e.message[0]+JSON.stringify(e.message[1])+e.message[2],logger:e.category.join("."),properties:e.properties},U)+n;if(1===e.message.length)return JSON.stringify({"@timestamp":new Date(e.timestamp).toISOString(),level:"warning"===e.level?"WARN":e.level.toUpperCase(),message:e.message[0],logger:e.category.join("."),properties:e.properties},U)+n;let t=e.message[0];for(let r=1;r<e.message.length;r++)t+=1&r?JSON.stringify(e.message[r]):e.message[r];return JSON.stringify({"@timestamp":new Date(e.timestamp).toISOString(),level:"warning"===e.level?"WARN":e.level.toUpperCase(),message:t,logger:e.category.join("."),properties:e.properties},U)+n};let o="template"===e.message,l=e.properties??"nest:properties";if("function"==typeof e.categorySeparator)t=e.categorySeparator;else{let r=e.categorySeparator??".";t=e=>e.join(r)}if("flatten"===l)r=e=>e;else if(l.startsWith("prepend:")){let e=l.substring(8);if(""===e)throw TypeError(`Invalid properties option: ${JSON.stringify(l)}. It must be of the form "prepend:<prefix>" where <prefix> is a non-empty string.`);r=t=>{let r={};for(let i in t)r[`${e}${i}`]=t[i];return r}}else if(l.startsWith("nest:")){let e=l.substring(5);r=t=>({[e]:t})}else throw TypeError(`Invalid properties option: ${JSON.stringify(l)}. It must be "flatten", "prepend:<prefix>", or "nest:<key>".`);i=o?e=>{if("string"==typeof e.rawMessage)return e.rawMessage;let t="";for(let r=0;r<e.rawMessage.length;r++)r>0&&(t+="{}"),t+=e.rawMessage[r];return t}:e=>{let t=e.message.length;if(1===t)return e.message[0];let r="";for(let i=0;i<t;i++)r+=i%2<1?e.message[i]:JSON.stringify(e.message[i]);return r}}(),!function(e={}){let t,r="prepend:",i=I(e.lineEnding),n=N("rfc3339",A(e.timeZone)),o="template"===e.message,l=e.properties??"flatten";if("function"==typeof e.categorySeparator)t=e.categorySeparator;else{let r=e.categorySeparator??".";t=e=>e.join(r)}let s="";if("flatten"===l)s="";else if(l.startsWith(r)){if(""===(s=l.substring(r.length)))throw TypeError("Invalid properties option: "+JSON.stringify(l)+'. It must be of the form "prepend:<prefix>" where <prefix> is a non-empty string.')}else throw TypeError(`Invalid properties option: ${JSON.stringify(l)}. It must be "flatten" or "prepend:<prefix>".`)}();let J={trace:"background-color: gray; color: white;",debug:"background-color: gray; color: white;",info:"background-color: white; color: black;",warning:"background-color: orange; color: black;",error:"background-color: red; color: white;",fatal:"background-color: maroon; color: white;"};function W(e){let t="",r=[];for(let i=0;i<e.message.length;i++)i%2==0?t+=e.message[i]:(t+="%o",r.push(e.message[i]));let i=new Date(e.timestamp),n=`${i.getUTCHours().toString().padStart(2,"0")}:${i.getUTCMinutes().toString().padStart(2,"0")}:${i.getUTCSeconds().toString().padStart(2,"0")}.${i.getUTCMilliseconds().toString().padStart(3,"0")}`;return[`%c${n} %c${w[e.level]}%c %c${e.category.join("·")} %c${t}`,"color: gray;",J[e.level],"background-color: default;","color: gray;","color: default;",...r]}function B(e={}){let t=e.formatter??W,r={trace:"debug",debug:"debug",info:"info",warning:"warn",error:"error",fatal:"error",...e.levelMap??{}},i=e.console??globalThis.console,n=e=>{let n=t(e),o=r[e.level];if(void 0===o)throw TypeError(`Invalid log level: ${e.level}.`);if("string"==typeof n){let e=n.replace(/\r?\n$/,"");i[o](e)}else i[o](...n)};if(!e.nonBlocking)return n;let o=!0===e.nonBlocking?{}:e.nonBlocking,l=o.bufferSize??100,s=o.flushInterval??100,a=[],g=null,f=null,u=!1,c=!1,h=2*l;function p(){if(0!==a.length)for(let e of a.splice(0))try{n(e)}catch{}}let y=e=>{!u&&(a.length>=h&&a.shift(),a.push(e),a.length>=l?c||(c=!0,f=setTimeout(()=>{f=null,c=!1,p()},0)):null===g&&(null!==g||u||(g=setInterval(()=>{p()},s))))};return y[Symbol.dispose]=()=>{u=!0,null!==g&&(clearInterval(g),g=null),null!==f&&(clearTimeout(f),f=null,c=!1),p()},y}Symbol.for("logtape.asyncSinkError");let H=null,Z=new Set,_=new Set,G=new Set,Y=new Set,K=new Set;function q(){let e=h.getLogger([]);
2e.resetDescendants(),delete e.contextLocalStorage,Z.clear(),H=null}async function Q(){let e=[];try{X(_)}catch(t){e.push(t)}try{await ee()}catch(t){e.push(t)}try{X(G)}catch(t){e.push(t)}try{await et()}catch(t){e.push(t)}en(e)}function V(){let e=[];try{X(_)}catch(t){e.push(t)}try{X(G)}catch(t){e.push(t)}en(e)}function X(e){let t=[];try{for(let r of e)try{r[Symbol.dispose]()}catch(e){t.push(e)}finally{e.delete(r)}}finally{e.clear()}en(t)}async function ee(){await er(Y)}async function et(){await er(K)}async function er(e){let t=[];try{for(let r of e)try{t.push(Promise.resolve(r[Symbol.asyncDispose]()))}catch(e){t.push(Promise.reject(e))}finally{e.delete(r)}}finally{e.clear()}await ei(t)}async function ei(e){en((await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason))}function en(e){if(!(e.length<1)){if(1===e.length)throw e[0];throw AggregateError(e,"Multiple errors occurred while disposing LogTape resources.")}}var eo=class extends Error{constructor(e){super(e),this.name="ConfigError"}};let el="ap-frontend",es=!1;e.s(["getAppLogger",0,(...e)=>(function(e=[]){return h.getLogger(e)})([el,...e]),"setupClientLogging",0,()=>{if(!es){var e={reset:!0,sinks:{console:B()},loggers:[{category:[el],lowestLevel:"fatal",sinks:["console"]},{category:["logtape","meta"],lowestLevel:"fatal",sinks:["console"]}]};if(null!=H&&!e.reset)throw new eo("Already configured; if you want to reset, turn on the reset flag.");if(Y.size>0||K.size>0)throw new eo("Previously configured async disposables are still active. Use configure() instead or explicitly dispose them using dispose().");V(),q();try{!function(e,t){H=e;let r=!1,i=new Set;for(let t of e.loggers){(function(e){let t=Array.isArray(e.category)?e.category:[e.category];return 0===t.length||1===t.length&&"logtape"===t[0]||2===t.length&&"logtape"===t[0]&&"meta"===t[1]})(t)&&(r=!0);let n=Array.isArray(t.category)?JSON.stringify(t.category):JSON.stringify([t.category]);if(i.has(n))throw new eo(`Duplicate logger configuration for category: ${n}. Each category can only be configured once.`);i.add(n);let o=h.getLogger(t.category);for(let r of t.sinks??[]){let t=e.sinks[r];if(!t)throw new eo(`Sink not found: ${r}.`);o.sinks.push(t)}for(let r of(o.parentSinks=t.parentSinks??"inherit",void 0!==t.lowestLevel&&(o.lowestLevel=t.lowestLevel),t.filters??[])){let t=e.filters?.[r];if(void 0===t)throw new eo(`Filter not found: ${r}.`);o.filters.push("function"==typeof t?t:function(e){if(null==e)return()=>!1;if("fatal"===e)return e=>"fatal"===e.level;if("error"===e)return e=>"fatal"===e.level||"error"===e.level;if("warning"===e)return e=>"fatal"===e.level||"error"===e.level||"warning"===e.level;if("info"===e)return e=>"fatal"===e.level||"error"===e.level||"warning"===e.level||"info"===e.level;if("debug"===e)return e=>"fatal"===e.level||"error"===e.level||"warning"===e.level||"info"===e.level||"debug"===e.level;else if("trace"===e)return()=>!0;throw TypeError(`Invalid log level: ${e}.`)}(t))}Z.add(o)}for(let r of(h.getLogger().contextLocalStorage=e.contextLocalStorage,Object.values(e.sinks))){if(Symbol.asyncDispose in r)if(t)K.add(r);else throw new eo("Async disposables cannot be used with configureSync().");Symbol.dispose in r&&G.add(r)}for(let r of Object.values(e.filters??{}))if(null!=r&&"string"!=typeof r){if(Symbol.asyncDispose in r){if(t)Y.add(r);else throw new eo("Async disposables cannot be used with configureSync().");K.delete(r)}Symbol.dispose in r&&(_.add(r),G.delete(r))}!function(e){let t=e?Q:V;if("string"!=typeof globalThis.EdgeRuntime&&"process"in globalThis&&!("Deno"in globalThis)){let e=globalThis.process,r=e?.on;if("function"==typeof r)return r.call(e,"exit",t)}let r=globalThis.addEventListener;"function"==typeof r&&("Deno"in globalThis?r.call(globalThis,"unload",t):r.call(globalThis,"pagehide",t))}(t);let n=h.getLogger(["logtape","meta"]);r||n.sinks.push(B()),n.info("LogTape loggers are configured. Note that LogTape itself uses the meta logger, which has category {metaLoggerCategory}. The meta logger is used to log internal diagnostics such as sink exceptions. It's recommended to configure the meta logger with a separate sink so that you can easily notice if logging itself fails or is misconfigured. To turn off this message, configure the meta logger with higher log levels than {dismissLevel}. See also <https://logtape.org/manual/categories#meta-logger>.",{metaLoggerCategory:["logtape","meta"],dismissLevel:"info"})}(e,!1)}catch(e){throw e instanceof eo&&(V(),q()),e}es=!0}}],394580)}]); 3
4//# debugId=52cab91b-6b16-8757-b8b4-549718b79dbc
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.