try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{})["__faroBundleId_gptengineer-app"]="1762692810866c63191e871"}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{8440:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,4973,23)),Promise.resolve().then(r.t.bind(r,3823,23)),Promise.resolve().then(r.t.bind(r,12468,23)),Promise.resolve().then(r.t.bind(r,22352,23)),Promise.resolve().then(r.t.bind(r,76456,23)),Promise.resolve().then(r.t.bind(r,14966,23)),Promise.resolve().then(r.t.bind(r,77533,23)),Promise.resolve().then(r.bind(r,10760))},77877:(e,t,r)=>{"use strict";let n;r.r(t),r.d(t,{init:()=>v});var o=r(85704),i=r(49862),a=r(32692),l=r(66847),s=r(9689),c=r(42115),p=r(17760),d=r(40074);globalThis.o11y={captureException:(e,t)=>{null==e&&(e=Error("captureException called with empty value: ".concat(e)));let r=e,n=(null==t?void 0:t.type)||(null==r?void 0:r.type)||(null==r?void 0:r.name),i={...(null==t?void 0:t.context)||{}};if((null==r?void 0:r.details)&&("string"!=typeof r.details?i.details=JSON.stringify(r.details):i.details=r.details),(null==t?void 0:t.level)&&(i.level=t.level),(null==t?void 0:t.location)&&(i.location=t.location),o.P.api)try{o.P.api.pushError(r,{type:n,context:i})}catch(e){console.info("Failed to capture exception: %s",e)}else console.error("captureException: error=%s opts=%s",r,t)},setUser:e=>{o.P.api&&o.P.api.setUser(e)}};let u=function(){try{let e=d.env.NEXT_PUBLIC_OTEL_EXPORTER_OTLP_ENDPOINT;void 0!==e&&e.endsWith("/")&&(e=e.slice(0,-1));let t=t=>{if(void 0!==e&&""!==e)return new URL(t,e.toString()+"/").toString()},r=d.env.NEXT_PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT||t("v1/traces"),n=d.env.NEXT_PUBLIC_OTEL_EXPORTER_OTLP_METRICS_ENDPOINT||t("v1/metrics"),o=d.env.NEXT_PUBLIC_OTEL_EXPORTER_OTLP_LOGS_ENDPOINT||t("v1/logs");return{base:e,traces:r,metrics:n,logs:o,faro:"https://otel-faro.p.l5e.io/collect"}}catch(e){return console.error("Failed to resolve OTLP URLs",e),{}}}();function E(e){return e.filter(e=>void 0!==e).map(e=>{try{return new URL(e).host}catch(t){return e}}).map(e=>{let t=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("https?://(?:[a-zA-Z0-9_.-]+.)?".concat(t,"/.*"))})}n=!d.env.NEXT_PUBLIC_SUPPRESS_CONSOLE||"true"===d.env.NEXT_PUBLIC_SUPPRESS_CONSOLE;var f=function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}return new Proxy(e,{get(e,r){switch(r){case"log":case"trace":case"debug":case"info":case"warn":case"error":return t;default:return e[r]}}})};function v(){let e=[...new Set([RegExp(".*_next/.*"),...E([u.faro,u.traces,u.metrics,u.logs,"analytics.google.com","rudderstack.com","sentry.io","posthog.com","identitytoolkit.googleapis.com"])])],t=[...new Set([RegExp("https?://[a-zA-Z0-9_.-]+\\.localhost:\\d+/.*"),...E(["lovable-api.com"])])];if(u.faro&&!o.P.api)try{(0,i.p)({unpatchedConsole:n?f(console):o.P.unpatchedConsole,url:u.faro,app:{name:"gptengineer-app",namespace:"lovable",environment:"prod",version:d.env.NEXT_PUBLIC_APP_VERSION,release:"8f15f3034b7cbdc7e67363c94fe5482b9e406a9f"},preserveOriginalError:!0,beforeSend(e){switch(e.type){case a.f.EXCEPTION:var t;null==e||null==(t=e.payload)||t.originalError;case a.f.EVENT:case a.f.TRACE:case a.f.MEASUREMENT:case a.f.LOG:}return e},pageTracking:{},sessionTracking:{enabled:!0,samplingRate:.1},ignoreUrls:e,ignoreErrors:[/download the react devtools for a better development experience/i],instrumentations:[...(0,l.w)({captureConsole:!0}),new p.v({resourceAttributes:{commit_sha:"8f15f3034b7cbdc7e67363c94fe5482b9e406a9f"},instrumentationOptions:{propagateTraceHeaderCorsUrls:t}})],consoleInstrumentation:{disabledLevels:[s.$b.DEBUG,s.$b.LOG,s.$b.TRACE],errorSerializer:e=>e.map(e=>{if(e instanceof Error)return JSON.stringify({name:e.name,message:e.message,stack:e.stack,cause:e.cause});if("object"==typeof e&&null!==e)try{return JSON.stringify(e)}catch(e){}return String(e)}).join(" ")},internalLoggerLevel:c.wK.OFF})}catch(e){console.error("Faro initialization failed",e)}return null}v()}},e=>{var t=t=>e(e.s=t);e.O(0,[7127,1689],()=>(t(1724),t(8440))),_N_E=e.O()}]);