PageSourceSearch

https://twouring-postiz.zeabur.app/_next/static/chunks/5250-74eedadd8fb718c0.js

js twouring-postiz.zeabur.app collected 2026-10-03 08:21:22 UTC 92,274 bytes, 4 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1945d94b-18b8-41b3-8f0d-7dc58ed897a8",e._sentryDebugIdIdentifier="sentry-dbid-1945d94b-18b8-41b3-8f0d-7dc58ed897a8")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5250],{90607:function(e,t,n){n.d(t,{j:function(){return l}});var r=n(68833),o=n(43953),a=n(70089),i=n(64121),s=n(44638),u=n(56498);function l(e={}){let t=u.m9.document,n=t?.head||t?.body;if(!n){s.X&&r.fF.error("[showReportDialog] Global document not defined");return}let l=(0,o.nZ)(),c=(0,o.s3)(),p=c?.getDsn();if(!p){s.X&&r.fF.error("[showReportDialog] DSN not configured");return}let f={...e,user:{...l.getUser(),...e.user},eventId:e.eventId||(0,a.eW)()},d=u.m9.document.createElement("script");d.async=!0,d.crossOrigin="anonymous",d.src=(0,i.h)(p,f);let{onLoad:g,onClose:m}=f;if(g&&(d.onload=g),m){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{m()}finally{u.m9.removeEventListener("message",e)}};u.m9.addEventListener("message",e)}n.appendChild(d)}},5250:function(e,t,n){let r,o,a,i,s,u;n.r(t),n.d(t,{BrowserClient:function(){return t2.R},ErrorBoundary:function(){return r_},MULTIPLEXED_TRANSPORT_EXTRA_KEY:function(){return A},OpenFeatureIntegrationHook:function(){return n3},Profiler:function(){return rd},SDK_VERSION:function(){return d.J},SEMANTIC_ATTRIBUTE_SENTRY_OP:function(){return E.$J},SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:function(){return E.S3},SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:function(){return E.TE},SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:function(){return E.Zj},Scope:function(){return I.s},WINDOW:function(){return g.m9},addBreadcrumb:function(){return x.n},addEventProcessor:function(){return R.Qy},addIntegration:function(){return O.M5},breadcrumbsIntegration:function(){return nu.f},browserApiErrorsIntegration:function(){return nf.t},browserProfilingIntegration:function(){return nZ.x},browserSessionIntegration:function(){return nQ.O},browserTracingIntegration:function(){return nU.E8},buildLaunchDarklyFlagUsedHandler:function(){return n0},captureConsoleIntegration:function(){return L},captureEvent:function(){return R.eN},captureException:function(){return R.Tb},captureFeedback:function(){return M.N},captureMessage:function(){return R.uT},captureReactException:function(){return ra},captureSession:function(){return R.cg},chromeStackLineParser:function(){return nr.$3},close:function(){return R.xv},consoleLoggingIntegration:function(){return q.y},contextLinesIntegration:function(){return nx},continueTrace:function(){return U.yn},createConsolaReporter:function(){return W},createLangChainCallbackHandler:function(){return eU},createReduxEnhancer:function(){return rv},createTransport:function(){return eD.q},createUserFeedbackEnvelope:function(){return na},dedupeIntegration:function(){return eJ.R},defaultRequestInstrumentationOptions:function(){return nq.k3},defaultStackLineParsers:function(){return nr.d8},defaultStackParser:function(){return nr.Dt},diagnoseSdkConnectivity:function(){return n2},endSession:function(){return R.TM},eventFiltersIntegration:function(){return eB.I},eventFromException:function(){return no.dr},eventFromMessage:function(){return no.aB},exceptionFromError:function(){return no.GJ},extraErrorDataIntegration:function(){return eX},featureFlagsIntegration:function(){return e0},feedbackAsyncIntegration:function(){return _},feedbackIntegration:function(){return b.r},feedbackSyncIntegration:function(){return b.r},flush:function(){return R.yl},forceLoad:function(){return ni.Eg},functionToStringIntegration:function(){return e1.C},geckoStackLineParser:function(){return nr.$Q},getActiveSpan:function(){return eZ.HN},getClient:function(){return f.s3},getCurrentScope:function(){return f.nZ},getDefaultIntegrations:function(){return ni.nV},getFeedback:function(){return p.qm},getGlobalScope:function(){return f.lW},getIsolationScope:function(){return f.aF},getReplay:function(){return nL.T},getRootSpan:function(){return eZ.Gx},getSpanDescendants:function(){return eZ.Dp},getSpanStatusFromHttpCode:function(){return G.ix},getTraceData:function(){return e3.u},globalHandlersIntegration:function(){return nl.ks},graphqlClientIntegration:function(){return nF},growthbookIntegration:function(){return n8},httpClientIntegration:function(){return nk},httpContextIntegration:function(){return nc.s},inboundFiltersIntegration:function(){return eB.S},init:function(){return rr.S},instrumentAnthropicAiClient:function(){return to},instrumentGoogleGenAIClient:function(){return tf},instrumentLangGraph:function(){return tg},instrumentOpenAiClient:function(){return tA},instrumentOutgoingRequests:function(){return nq.L7},instrumentSupabaseClient:function(){return tN},isEnabled:function(){return R._k},isInitialized:function(){return R.dk},lastEventId:function(){return R.eW}
1,launchDarklyIntegration:function(){return nY},lazyLoadIntegration:function(){return y},linkedErrorsIntegration:function(){return np.O},logger:function(){return l},makeBrowserOfflineTransport:function(){return nX},makeFetchTransport:function(){return ne.f},makeMultiplexedTransport:function(){return T},metrics:function(){return c},moduleMetadataIntegration:function(){return tQ},onLoad:function(){return ni.lA},openFeatureIntegration:function(){return n1},opera10StackLineParser:function(){return nr.NP},opera11StackLineParser:function(){return nr.HH},parameterize:function(){return tj},reactErrorHandler:function(){return ri},reactRouterV3BrowserTracingIntegration:function(){return rS},reactRouterV4BrowserTracingIntegration:function(){return rE},reactRouterV5BrowserTracingIntegration:function(){return rI},reactRouterV6BrowserTracingIntegration:function(){return or},reactRouterV7BrowserTracingIntegration:function(){return ou},registerSpanErrorInstrumentation:function(){return tY.a},registerWebWorker:function(){return rn},replayCanvasIntegration:function(){return nM.m},replayIntegration:function(){return nL.G},reportPageLoaded:function(){return nD},reportingObserverIntegration:function(){return nh},rewriteFramesIntegration:function(){return t0.v},sendFeedback:function(){return p.fA},setActiveSpanInBrowser:function(){return nB},setContext:function(){return R.v},setCurrentClient:function(){return t1.K},setExtra:function(){return R.sU},setExtras:function(){return R.rJ},setHttpStatus:function(){return G.Q0},setMeasurement:function(){return t3.o},setTag:function(){return R.YA},setTags:function(){return R.mG},setUser:function(){return R.av},showReportDialog:function(){return ns.j},spanToBaggageHeader:function(){return t9.uc},spanToJSON:function(){return eZ.XU},spanToTraceHeader:function(){return eZ.Hb},spotlightBrowserIntegration:function(){return nz},startBrowserTracingNavigationSpan:function(){return nU.og},startBrowserTracingPageLoadSpan:function(){return nU.Wo},startInactiveSpan:function(){return U.qp},startNewTrace:function(){return U.Iw},startSession:function(){return R.yj},startSpan:function(){return U.GK},startSpanManual:function(){return U.V0},statsigIntegration:function(){return n7},supabaseIntegration:function(){return tC},suppressTracing:function(){return U.hE},tanstackRouterBrowserTracingIntegration:function(){return rw},thirdPartyErrorFilterIntegration:function(){return t5},uiProfiler:function(){return nn},unleashIntegration:function(){return n9},updateSpanName:function(){return eZ.g5},useProfiler:function(){return rm},webWorkerIntegration:function(){return re},winjsStackLineParser:function(){return nr.R2},withActiveSpan:function(){return U._d},withErrorBoundary:function(){return rb},withIsolationScope:function(){return f.wi},withProfiler:function(){return rg},withScope:function(){return f.$e},withSentryReactRouterV6Routing:function(){return os},withSentryReactRouterV7Routing:function(){return ol},withSentryRouting:function(){return rR},wrapCreateBrowserRouterV6:function(){return oa},wrapCreateBrowserRouterV7:function(){return oc},wrapCreateMemoryRouterV6:function(){return oi},wrapCreateMemoryRouterV7:function(){return op},wrapUseRoutesV6:function(){return oo},wrapUseRoutesV7:function(){return of},zodErrorsIntegration:function(){return t7}});var l={};n.r(l),n.d(l,{debug:function(){return tM},error:function(){return tD},fatal:function(){return tJ},fmt:function(){return tP},info:function(){return tq},trace:function(){return tL},warn:function(){return tU}});var c={};n.r(c),n.d(c,{count:function(){return tV},distribution:function(){return tG},gauge:function(){return tH}});var p=n(64471),f=n(43953),d=n(65445),g=n(56498);let m={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"},h=g.m9;async function y(e,t){let n=m[e],r=h.Sentry=h.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;let a=function(e){let t=(0,f.s3)(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${d.J}/${e}.min.js`,n).toString()}(n),i=g.m9.document.createElement("script");
1i.src=a,i.crossOrigin="anonymous",i.referrerPolicy="strict-origin",t&&i.setAttribute("nonce",t);let s=new Promise((e,t)=>{i.addEventListener("load",()=>e()),i.addEventListener("error",t)}),u=g.m9.document.currentScript,l=g.m9.document.body||g.m9.document.head||u?.parentElement;if(l)l.appendChild(i);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch{throw Error(`Error when loading integration: ${e}`)}let c=r[e];if("function"!=typeof c)throw Error(`Could not load integration: ${e}`);return c}let _=(0,p.rp)({lazyLoadIntegration:y});var b=n(8369),k=n(64121),v=n(89703),S=n(81594);let A="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function w(e,t){let n;return(0,S.gv)(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function T(e,t){return n=>{let r=e(n),o=new Map,a=t||(e=>{let t=e.getEvent();return t?.extra?.[A]&&Array.isArray(t.extra[A])?t.extra[A]:[]});function i(t,r){let a=r?`${t}:${r}`:t,i=o.get(a);if(!i){let s=(0,v.U4)(t);if(!s)return;let u=(0,k.U)(s,n.tunnel);i=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=w(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:u}):e({...n,url:u}),o.set(a,i)}return[t,i]}return{send:async function(e){let t=a({envelope:e,getEvent:function(t){return w(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send((0,S.Jd)(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...o.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var E=n(32634),I=n(33561),x=n(18621),R=n(70089),O=n(21150),N=n(85327),$=n(68833),C=n(21029),j=n(52201),P=n(15093),F=n(13079);let L=(0,O._I)((e={})=>{let t=e.levels||$.RU,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in F.GLOBAL_OBJ&&(0,N.e)(({args:r,level:o})=>{(0,f.s3)()===e&&t.includes(o)&&function(e,t,n){let r=(0,j.V)(t),o=Error(),a={level:(0,j.V)(t),extra:{arguments:e}};(0,f.$e)(i=>{if(i.addEventProcessor(e=>(e.logger="console",(0,C.EG)(e,{handled:n,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){let t=`Assertion failed: ${(0,P.nK)(e.slice(1)," ")||"console.assert"}`;i.setExtra("arguments",e.slice(1)),i.captureMessage(t,r,{captureContext:a,syntheticException:o})}return}let s=e.find(e=>e instanceof Error);if(s){(0,R.Tb)(s,a);return}let u=(0,P.nK)(e," ");i.captureMessage(u,r,{captureContext:a,syntheticException:o})})}(r,o,n)})}}});var M=n(5246),q=n(97975),U=n(60437),D=n(36076),J=n(82753);let B=["trace","debug","info","warn","error","fatal"];function W(e={}){let t=new Set(e.levels??B),n=e.client;return{log(e){let{type:r,level:o,message:a,args:i,tag:s,date:u,...l}=e,c=n||(0,f.s3)();if(!c)return;let p=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=V[e];if(t)return t}if("number"==typeof t){let e=H[t];if(e)return e}return"info"}(r,o);if(!t.has(p))return;let{normalizeDepth:d=3,normalizeMaxBreadth:g=1e3}=c.getOptions(),m=[];a&&m.push(a),i&&i.length>0&&m.push((0,J.TN)(i,d,g));let h=m.join(" ");l["sentry.origin"]="auto.log.consola",s&&(l["consola.tag"]=s),r&&(l["consola.type"]=r),null!=o&&"number"==typeof o&&(l["consola.level"]=o),(0,D.hQ)({level:p,message:h,attributes:l})}}}let V={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},H={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};var G=n(45885);let X="gen_ai.system",Z="gen_ai.request.model",K="gen_ai.request.stream",z="gen_ai.request.temperature",Q="gen_ai.request.max_tokens",Y="gen_ai.request.frequency_penalty",ee="gen_ai.request.presence_penalty",et="gen_ai.request.top_p",en="gen_ai.request.top_k",er="gen_ai.response.finish_reasons",eo="gen_ai.response.model",ea="gen_ai.response.id",ei="gen_ai.usage.input_tokens",es="gen_ai.usage.output_tokens",eu="gen_ai.usage.total_tokens",el="gen_ai.operation.name",ec="gen_ai.request.messages",ep="gen_ai.response.text",ef="gen_ai.request.available_tools",ed="gen_ai.response.streaming",eg="gen_ai.response.tool_calls",em="gen_ai.agent.name",eh="openai.response.model",ey={CHAT:"chat",RESPONSES:"responses",EMBEDDINGS:"embeddings"},e_="anthropic.response.timestamp",eb="auto.ai.langchain",ek={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},ev=e=>new TextEncoder().encode(e).length,eS=e=>ev(JSON.stringify(e));function eA(e,t){if(ev(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){let a=Math.floor((n+r)/2),i=e.slice(0,a);ev(i)<=t?(o=i,n=a+1):r=a-1}return o}function ew(e,t){return"string"==typeof e?t:{...e,text:t}}function eT(e){return!!e&&"object"==typeof e&&("type"in e&&"string"==typeof e.type&&"source"in e&&eT(e.source)||eE(e)||"media_type"in e&&"string"==typeof e.media_type&&"data"in e||"image_url"in e&&"string"==typeof e.image_url&&e.image_url.startsWith("data:")||"type"in e&&("blob"===e.type||"base64"===e.type)||"b64_json"in e||"type"in e&&"result"in e&&"image_generation"===e.type||"uri"in e&&"string"==typeof e.uri&&e.uri.startsWith("data:"))}function eE(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function eI(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}let ex="[Filtered]",eR=["image_url","data","content","b64_json","result","uri"];function eO(e){let t={...e};
1for(let n of(eT(t.source)&&(t.source=eO(t.source)),eE(e)&&(t.inlineData={...e.inlineData,data:ex}),eR))"string"==typeof t[n]&&(t[n]=ex);return t}function eN(e){return function(e,t){var n,r;if(!Array.isArray(e)||0===e.length)return e;let o=function e(t){return t.map(t=>{let n;return t&&"object"==typeof t&&(null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)?n={...t,content:e(t.content)}:"content"in t&&eT(t.content)&&(n={...t,content:eO(t.content)}),eI(t)&&(n={...n??t,parts:e(t.parts)}),eT(n)?n=eO(n):eT(t)&&(n=eO(t))),n??t})}(e);if(2e4>=eS(o))return o;let a=o.map(eS),i=0,s=o.length;for(let e=o.length-1;e>=0;e--){let t=a[e];if(t&&i+t>2e4)break;t&&(i+=t),s=e}return s===o.length?(n=o[o.length-1],r=2e4,n&&"object"==typeof n?null!==n&&"object"==typeof n&&"content"in n&&"string"==typeof n.content?function(e,t){let n=t-eS({...e,content:""});if(n<=0)return[];let r=eA(e.content,n);return[{...e,content:r}]}(n,r):eI(n)?function(e,t){let{parts:n}=e,r=n.map(e=>ew(e,"")),o=t-eS({...e,parts:r});if(o<=0)return[];let a=[];for(let e of n){let t="string"==typeof e?e:"text"in e?e.text:"",n=ev(t);if(n<=o)a.push(e),o-=n;else if(0===a.length){let n=eA(t,o);n&&a.push(ew(e,n));break}else break}return a.length<=0?[]:[{...e,parts:a}]}(n,r):[]:[]):o.slice(s)}(e,2e4)}let e$=(e,t,n)=>{null!=n&&(e[t]=n)},eC=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function ej(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function eP(e){let t=e.toLowerCase();return ek[t]??t}function eF(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function eL(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function eM(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:eP(t.call(e)),content:ej(e.content)};let n=e.constructor?.name;if(n)return{role:eP(eF(n)),content:ej(e.content)};if(e.type)return{role:eP(String(e.type).toLowerCase()),content:ej(e.content)};if(e.role)return{role:eP(String(e.role)),content:ej(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:eP("string"==typeof n?eF(n):"user"),content:ej(e.kwargs?.content)}}return{role:"user",content:ej(e.content)}})}function eq(e,t,n,r,o,a){return{[X]:ej(e??"langchain"),[el]:n,[Z]:ej(t),[E.S3]:eb,...function(e,t,n){let r={},o="kwargs"in e?e.kwargs:void 0;return eC(r,z,t?.temperature??n?.ls_temperature??o?.temperature),eC(r,Q,t?.max_tokens??n?.ls_max_tokens??o?.max_tokens),eC(r,et,t?.top_p??o?.top_p),eC(r,Y,t?.frequency_penalty),eC(r,ee,t?.presence_penalty),t&&"stream"in t&&e$(r,K,!!t.stream),r}(r,o,a)}}function eU(e={}){let t=e.recordInputs??!1,n=e.recordOutputs??!1,r=new Map,o=e=>{let t=r.get(e);t?.isRecording()&&(t.end(),r.delete(e))},a={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,o,a,i,s,u,l){let c=function(e,t,n,r,o){let a=eq(o?.ls_provider,r?.model??o?.ls_model_name??"unknown","pipeline",e,r,o);return n&&Array.isArray(t)&&t.length>0&&e$(a,ec,ej(t.map(e=>({role:"user",content:e})))),a}(e,n,t,eL(s),u),p=c[Z],f=c[el];(0,U.V0)({name:`${f} ${p}`,op:"gen_ai.pipeline",attributes:{...c,[E.$J]:"gen_ai.pipeline"}},e=>(r.set(o,e),e))},handleChatModelStart(e,n,o,a,i,s,u,l){let c=function(e,t,n,r,o){let a=eq(o?.ls_provider??e.id?.[2],r?.model??o?.ls_model_name??"unknown","chat",e,r,o);return n&&Array.isArray(t)&&t.length>0&&e$(a,ec,ej(eN(eM(t.flat())))),a}(e,n,t,eL(s),u),p=c[Z],f=c[el];(0,U.V0)({name:`${f} ${p}`,op:"gen_ai.chat",attributes:{...c,[E.$J]:"gen_ai.chat"}},e=>(r.set(o,e),e))},handleLLMEnd(e,t,a,i,s){let u=r.get(t);if(u?.isRecording()){let r=function(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(r.length>0&&e$(n,er,ej(r)),!function(e,t){let n=[];for(let t of e.flat()){let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}n.length>0&&e$(t,eg,ej(n))}(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&e$(n,ep,ej(t))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)eC(t,ei,n.promptTokens),eC(t,es,n.completionTokens),eC(t,eu,n.totalTokens);else if(r){eC(t,ei,r.input_tokens),eC(t,es,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),o=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);o>0&&eC(t,eu,o),void 0!==r.cache_creation_input_tokens&&eC(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&eC(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,n);let r=e.llmOutput,o=e.generations?.[0]?.[0],a=o?.message,i=r?.model_name??r?.model??a?.response_metadata?.model_name;i&&e$(n,eo,i);let s=r?.id??a?.id;s&&e$(n,ea,s);let u=r?.stop_reason??a?.response_metadata?.finish_reason;return u&&e$(n,"gen_ai.response.stop_reason",ej(u)),n}(e,n);r&&u.setAttributes(r),o(t)}},handleLLMError(e,t){let n=r.get(t);n?.isRecording()&&(n.setStatus({code:G.jt,message:"llm_error"}),o(t)),(0,R.Tb)(e,{mechanism:{handled:!1,type:`${eb}.llm_error_handler`}})},handleChainStart(e,n,o,a){let i=e.name||"unknown_chain",s={[E.S3]:"auto.ai.langchain","langchain.chain.name":i};t&&(s["langchain.chain.inputs"]=JSON.stringify(n)),(0,U.V0)({name:`chain ${i}`,op:"gen_ai.invoke_agent",attributes:{...s,[E.$J]:"gen_ai.invoke_agent"}},e=>(r.set(o,e),e))},handleChainEnd(e,t){let a=r.get(t);a?.isRecording()&&(n&&a.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),o(t))},handleChainError(e,t){let n=r.get(t);n?.isRecording()&&(n.setStatus({code:G.jt,message:"chain_error"}),o(t)),(0,R.Tb)(e,{mechanism:{handled:!1,type:`${eb}.chain_error_handler`}})},handleToolStart(e,n,o,a){let i=e.name||"unknown_tool",s={[E.S3]:eb,"gen_ai.tool.name":i};t&&(s["gen_ai.tool.input"]=n),(0,U.V0)({name:`execute_tool ${i}`,op:"gen_ai.execute_tool",attributes:{...s,[E.$J]:"gen_ai.execute_tool"}},e=>(r.set(o,e),e))},handleToolEnd(e,t){let a=r.get(t);a?.isRecording()&&(n&&a.setAttributes({"gen_ai.tool.output":JSON.stringify(e)}),o(t))},handleToolError(e,t){let n=r.get(t);n?.isRecording()&&(n.setStatus({code:G.jt,message:"tool_error"}),o(t)),(0,R.Tb)(e,{mechanism:{handled:!1,type:`${eb}.tool_error_handler`}})},copy:()=>a,toJSON:()=>
1({lc:1,type:"not_implemented",id:a.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:a.lc_id})};return a}var eD=n(26460),eJ=n(94994),eB=n(63785),eW=n(37077),eV=n(62996),eH=n(61172),eG=n(1067);let eX=(0,O._I)((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){let{maxValueLength:a}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!(0,eV.VZ)(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,i=function e(t,n,r){try{let o=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};for(let e of Object.keys(t)){if(-1!==o.indexOf(e))continue;let n=t[e];a[e]=(0,eV.VZ)(n)||"string"==typeof n?r?(0,P.$G)(`${n}`,r):`${n}`:n}if(n&&void 0!==t.cause){if((0,eV.VZ)(t.cause)){let n=t.cause.name||t.cause.constructor.name;a.cause={[n]:e(t.cause,!1,r)}}else a.cause=t.cause}if("function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];a[t]=(0,eV.VZ)(n)?n.toString():n}}return a}catch(e){eW.X&&$.fF.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,o);if(i){let t={...e.contexts},r=(0,eH.Fv)(i,n);return(0,eV.PO)(r)&&((0,eG.xp)(r,"__sentry_skip_normalization__",!0),t[a]=r),{...e,contexts:t}}return e}(e,r,t,n,a)}}});var eZ=n(90619);let eK="flag.evaluation.";function ez(e){let t=(0,f.nZ)().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function eQ(e,t,n=100){let r=(0,f.nZ)().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r){eW.X&&$.fF.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let o=e.findIndex(e=>e.flag===t);-1!==o&&e.splice(o,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function eY(e,t,n=10){if("boolean"!=typeof t)return;let r=(0,eZ.HN)();if(!r)return;let o=(0,eZ.XU)(r).data;if(`${eK}${e}` in o){r.setAttribute(`${eK}${e}`,t);return}Object.keys(o).filter(e=>e.startsWith(eK)).length<n&&r.setAttribute(`${eK}${e}`,t)}let e0=(0,O._I)(()=>
1({name:"FeatureFlags",processEvent:(e,t,n)=>ez(e),addFeatureFlag(e,t){eQ(e,t),eY(e,t)}}));var e1=n(6570),e3=n(74291),e9=n(39675);function e6(e){return e.includes("messages")?"messages":e.includes("completions")?"completions":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function e5(e){return`gen_ai.${e6(e)}`}function e4(e,t){return e?`${e}.${t}`:t}function e8(e,t,n,r,o){void 0!==t&&e.setAttributes({[ei]:t}),void 0!==n&&e.setAttributes({[es]:n}),(void 0!==t||void 0!==n||void 0!==r||void 0!==o)&&e.setAttributes({[eu]:(t??0)+(n??0)+(r??0)+(o??0)})}function e7(e){return"string"==typeof e?eA(e,2e4):Array.isArray(e)?JSON.stringify(eN(e)):JSON.stringify(e)}function e2(e,t,n,r){!e||"object"!=typeof e||"type"in e&&"string"==typeof e.type&&"error"===e.type&&(r.setStatus({code:G.jt,message:e.error?.type??"internal_error"}),(0,R.Tb)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),1)||(!function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}(e,t),"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}),function(e,t,n){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,n),function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let o=r.inputJsonParts.join("");try{n=o?JSON.parse(o):{}}catch{n={__unparsed:o}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t))}async function*te(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let o of e)e2(o,r,n,t),yield o}finally{r.responseId&&t.setAttributes({[ea]:r.responseId}),r.responseModel&&t.setAttributes({[eo]:r.responseModel}),e8(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[ed]:!0}),r.finishReasons.length>0&&t.setAttributes({[er]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[ep]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[eg]:JSON.stringify(r.toolCalls)}),t.end()}}let tt=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"];function tn(e,t){let n=function(e){let{system:t,messages:n}=e;return[..."string"==typeof t?[{role:"system",content:e.system}]:[],...Array.isArray(n)?n:null!=n?[n]:[]]}(t);if(n.length){let t=e7(n);e.setAttributes({[ec]:t})}if("input"in t){let n=e7(t.input);e.setAttributes({[ec]:n})}"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function tr(e,t,n){throw(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:G.jt,message:"internal_error"}),t.end()),e}function to(e,t){let n=!!f.s3()?.getOptions().sendDefaultPii;return function e(t,n="",r){return new Proxy(t,{get(t,o){let a=t[o],i=e4(n,String(o));return"function"==typeof a&&tt.includes(i)?new Proxy(a,{apply(e,n,o){let s=function(e,t){let n={[X]:"anthropic",[el]:e6(t),[E.S3]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(n[ef]=JSON.stringify(t.tools)),n[Z]=t.model??"unknown","temperature"in t&&(n[z]=t.temperature),"top_p"in t&&(n[et]=t.top_p),"stream"in t&&(n[K]=t.stream),"top_k"in t&&(n[en]=t.top_k),"frequency_penalty"in t&&(n[Y]=t.frequency_penalty),"max_tokens"in t&&(n[Q]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?n[Z]=e[0]:n[Z]="unknown";return n}(o,i),u=s[Z]??"unknown",l=e6(i),c="object"==typeof o[0]?o[0]:void 0,p=!!c?.stream,f="messages.stream"===i;return p||f?function(e,t,n,r,o,a,i,s,u,l,c){let p=o[Z]??"unknown",f={name:`${a} ${p}
1 stream-response`,op:e5(i),attributes:o};return l&&!c?(0,U.V0)(f,async t=>{try{u.recordInputs&&s&&tn(t,s);let o=await e.apply(n,r);return te(o,t,u.recordOutputs??!1)}catch(e){return tr(e,t,i)}}):(0,U.V0)(f,e=>{try{u.recordInputs&&s&&tn(e,s);let o=t.apply(n,r);return function(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",e=>{e2(e,r,n,t)}),e.on("message",()=>{t.isRecording()&&(r.responseId&&t.setAttributes({[ea]:r.responseId}),r.responseModel&&t.setAttributes({[eo]:r.responseModel}),e8(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[ed]:!0}),r.finishReasons.length>0&&t.setAttributes({[er]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[ep]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[eg]:JSON.stringify(r.toolCalls)}),t.end())}),e.on("error",e=>{(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:G.jt,message:"stream_error"}),t.end())}),e}(o,e,u.recordOutputs??!1)}catch(t){return tr(t,e,i)}})}(a,e,t,o,s,l,i,c,r,p,f):(0,U.GK)({name:`${l} ${u}`,op:e5(i),attributes:s},n=>(r.recordInputs&&c&&tn(n,c),(0,e9.i)(()=>e.apply(t,o),e=>{(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:i}}})},()=>{},e=>(function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type){t.error&&(e.setStatus({code:G.jt,message:t.error.type||"internal_error"}),(0,R.Tb)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));return}n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[ep]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[eg]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[ep]:t.completion}),"input_tokens"in t&&e.setAttributes({[ep]:JSON.stringify(t.input_tokens)})}(e,t),"id"in t&&"model"in t&&(e.setAttributes({[ea]:t.id,[eo]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[e_]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[e_]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&e8(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}})(n,e,r.recordOutputs))))}}):"function"==typeof a?a.bind(t):a&&"object"==typeof a?e(a,i,r):a}})}(e,"",{recordInputs:n,recordOutputs:n,...t})}let ta=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],ti="chats.create";async function*ts(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let o of e)!o||function(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:G.jt,message:`Content blocked: ${e}`}),(0,R.Tb)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(o,t)||(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);let n=e.usageMetadata;n&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount))}(o,r),function(e,t,n){for(let r of(Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason),r?.content?.parts??[]))n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}(o,r,n)),yield o}finally{let e={[ed]:!0};r.responseId&&(e[ea]=r.responseId),r.responseModel&&(e[eo]=r.responseModel),void 0!==r.promptTokens&&(e[ei]=r.promptTokens),void 0!==r.completionTokens&&(e[es]=r.completionTokens),void 0!==r.totalTokens&&(e[eu]=r.totalTokens),r.finishReasons.length&&(e[er]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(e[ep]=r.responseTexts.join("")),n&&r.toolCalls.length&&(e[eg]=JSON.stringify(r.toolCalls)),t.setAttributes(e),t.end()}}function tu(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>tu(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function tl(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function tc(e,t){let n=[];"config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&n.push(...tu(t.config.systemInstruction,"system")),"history"in t&&n.push(...tu(t.history,"user")),"contents"in t&&n.push(...tu(t.contents,"user")),"message"in t&&n.push(...tu(t.message,"user")),n.length&&e.setAttributes({[ec]:JSON.stringify(eN(n))})}function tp(e,t,n,r){let o=t===ti;return new Proxy(e,{apply(e,a,i){let s=i[0],u=function(e,t,n){let r={[X]:"google_genai",[el]:e6(e),[E.S3]:"auto.ai.google_genai"};if(t){if(r[Z]=tl(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e=t.config;if(Object.assign(r,function(e){let t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[z]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[et]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[en]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[Q]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[Y]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[ee]=e.presencePenalty
1),t}(e)),"tools"in e&&Array.isArray(e.tools)){let t=e.tools.flatMap(e=>e.functionDeclarations);r[ef]=JSON.stringify(t)}}}else r[Z]=tl({},n);return r}(t,s,n),l=u[Z]??"unknown",c=e6(t);return t.includes("Stream")?(0,U.V0)({name:`${c} ${l} stream-response`,op:e5(t),attributes:u},async o=>{try{r.recordInputs&&s&&tc(o,s);let t=await e.apply(n,i);return ts(t,o,!!r.recordOutputs)}catch(e){throw o.setStatus({code:G.jt,message:"internal_error"}),(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),o.end(),e}}):(0,U.GK)({name:o?`${c} ${l} create`:`${c} ${l}`,op:e5(t),attributes:u},a=>(r.recordInputs&&s&&tc(a,s),(0,e9.i)(()=>e.apply(n,i),e=>{(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{o||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(eo,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[ei]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[es]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[eu]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[ep]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[eg]:JSON.stringify(n)})}}}(a,e,r.recordOutputs)})))}})}function tf(e,t){let n=!!f.s3()?.getOptions().sendDefaultPii;return function e(t,n="",r){return new Proxy(t,{get:(t,o,a)=>{let i=Reflect.get(t,o,a),s=e4(n,String(o));if("function"==typeof i&&function(e){if(ta.includes(e))return!0;let t=e.split(".").pop();return ta.includes(t)}(s)){if(s===ti){let n=tp(i,s,t,r);return function(...t){let o=n(...t);return o&&"object"==typeof o?e(o,"chat",r):o}}return tp(i,s,t,r)}return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,r):i}})}(e,"",{recordInputs:n,recordOutputs:n,...t})}let td="auto.ai.langgraph";function tg(e,t){var n,r;return e.compile=(n=e.compile.bind(e),r=t||{},new Proxy(n,{apply:(e,t,n)=>(0,U.GK)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[E.S3]:td,[E.$J]:"gen_ai.create_agent",[el]:"create_agent"}},o=>{try{var a;let i=Reflect.apply(e,t,n),s=n.length>0?n[0]:{};s?.name&&"string"==typeof s.name&&(o.setAttribute(em,s.name),o.updateName(`create_agent ${s.name}`));let u=i.invoke;return u&&"function"==typeof u&&(i.invoke=(a=u.bind(i),new Proxy(a,{apply:(e,t,n)=>(0,U.GK)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[E.S3]:td,[E.$J]:"gen_ai.invoke_agent",[el]:"invoke_agent"}},async o=>{try{let a=s?.name;a&&"string"==typeof a&&(o.setAttribute("gen_ai.pipeline.name",a),o.setAttribute(em,a),o.updateName(`invoke_agent ${a}`));let u=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(i);u&&o.setAttribute(ef,JSON.stringify(u));let l=r.recordInputs,c=r.recordOutputs,p=n.length>0?n[0].messages??[]:[];if(p&&l){let e=eM(p),t=eN(e);o.setAttribute(ec,JSON.stringify(t))}let f=await Reflect.apply(e,t,n);return c&&function(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let o=t?.length??0,a=r.length>o?r.slice(o):[];if(0===a.length)return;let i=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(a);i&&e.setAttribute(eg,JSON.stringify(i));let s=eM(a);e.setAttribute(ep,JSON.stringify(s));let u=0,l=0,c=0;for(let t of a){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let o=e.usage_metadata;return"number"==typeof o.input_tokens&&(t=o.input_tokens),"number"==typeof o.output_tokens&&(n=o.output_tokens),"number"==typeof o.total_tokens&&(r=o.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let o=e.response_metadata;if(o.tokenUsage&&"object"==typeof o.tokenUsage){let e=o.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);u+=n.inputTokens,l+=n.outputTokens,c+=n.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(eo,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(er,[n.finish_reason])}}(e,t)}u>0&&e.setAttribute(ei,u),l>0&&e.setAttribute(es,l),c>0&&e.setAttribute(eu,c)}(o,p??null,f),f}catch(e){throw o.setStatus({code:G.jt,message:"internal_error"}),(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}))),i}catch(e){throw o.setStatus({code:G.jt,message:"internal_error"}),(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})),e}
1let tm=["responses.create","chat.completions.create","embeddings.create"],th=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];function ty(e){return e.includes("chat.completions")?ey.CHAT:e.includes("responses")?ey.RESPONSES:e.includes("embeddings")?ey.EMBEDDINGS:e.split(".").pop()||"unknown"}function t_(e){return`gen_ai.${ty(e)}`}function tb(e,t,n,r){void 0!==t&&e.setAttributes({"openai.usage.prompt_tokens":t,[ei]:t}),void 0!==n&&e.setAttributes({"openai.usage.completion_tokens":n,[es]:n}),void 0!==r&&e.setAttributes({[eu]:r})}function tk(e,t,n,r){e.setAttributes({"openai.response.id":t,[ea]:t}),e.setAttributes({[eh]:n,[eo]:n}),e.setAttributes({"openai.response.timestamp":new Date(1e3*r).toISOString()})}async function*tv(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let o of e)null!==o&&"object"==typeof o&&"object"in o&&"chat.completion.chunk"===o.object?function(e,t,n){for(let r of(t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens),e.choices??[]))n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function){if(e in t.chatCompletionToolCalls){let r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}}(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}(o,r,n):null!==o&&"object"==typeof o&&"type"in o&&"string"==typeof o.type&&o.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e)){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:G.jt,message:"internal_error"}),(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!th.includes(e.type)){t.eventTypes.push(e.type);return}if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta)){t.responseTexts.push(e.delta);return}if("response"in e){let{response:r}=e;t.responseId=r.id??t.responseId,t.responseModel=r.model??t.responseModel,t.responseTimestamp=r.created_at??t.responseTimestamp,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(o,r,n,t),yield o}finally{tk(t,r.responseId,r.responseModel,r.responseTimestamp),tb(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[ed]:!0}),r.finishReasons.length&&t.setAttributes({[er]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[ep]:r.responseTexts.join("")});let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];e.length>0&&t.setAttributes({[eg]:JSON.stringify(e)}),t.end()}}function tS(e,t){if("messages"in t){let n=e7(t.messages);e.setAttributes({[ec]:n})}if("input"in t){let n=e7(t.input);e.setAttributes({[ec]:n})}}function tA(e,t){let n=!!f.s3()?.getOptions().sendDefaultPii;return function e(t,n="",r){return new Proxy(t,{get(t,o){var a;let i=t[o],s=(a=String(o),n?`${n}.${a}`:a);return"function"==typeof i&&tm.includes(s)?async function(...e){let n=function(e,t){let n={[X]:"openai",[el]:ty(t),[E.S3]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0],r=[...Array.isArray(t.tools)?t.tools:[],...t.web_search_options&&"object"==typeof t.web_search_options?[{type:"web_search_options",...t.web_search_options}]:[]];r.length>0&&(n[ef]=JSON.stringify(r))}if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];n[Z]=t.model??"unknown","temperature"in t&&(n[z]=t.temperature),"top_p"in t&&(n[et]=t.top_p),"frequency_penalty"in t&&(n[Y]=t.frequency_penalty),"presence_penalty"in t&&(n[ee]=t.presence_penalty),"stream"in t&&(n[K]=t.stream),"encoding_format"in t&&(n["gen_ai.request.encoding_format"]=t.encoding_format),"dimensions"in t&&(n["gen_ai.request.dimensions"]=t.dimensions)}else n[Z]="unknown";return n}(e,s),o=n[Z]||"unknown",a=ty(s),u=e[0];return u&&"object"==typeof u&&!0===u.stream?(0,U.V0)({name:`${a} ${o}
1 stream-response`,op:t_(s),attributes:n},async n=>{try{r.recordInputs&&u&&tS(n,u);let o=await i.apply(t,e);return tv(o,n,r.recordOutputs??!1)}catch(e){throw n.setStatus({code:G.jt,message:"internal_error"}),(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:s}}}),n.end(),e}}):(0,U.GK)({name:`${a} ${o}`,op:t_(s),attributes:n},async n=>{try{r.recordInputs&&u&&tS(n,u);let o=await i.apply(t,e);return function(e,t,n){if(t&&"object"==typeof t){if(null!==t&&"object"==typeof t&&"object"in t&&"chat.completion"===t.object){if(function(e,t,n){if(tk(e,t.id,t.model,t.created),t.usage&&tb(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let r=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(r.length>0&&e.setAttributes({[er]:JSON.stringify(r)}),n){let n=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&e.setAttributes({[eg]:JSON.stringify(n)})}}}(e,t,n),n&&t.choices?.length){let n=t.choices.map(e=>e.message?.content||"");e.setAttributes({[ep]:JSON.stringify(n)})}}else null!==t&&"object"==typeof t&&"object"in t&&"response"===t.object?(function(e,t,n){if(tk(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[er]:JSON.stringify([t.status])}),t.usage&&tb(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n&&Array.isArray(t.output)&&t.output.length>0){let n=t.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);n.length>0&&e.setAttributes({[eg]:JSON.stringify(n)})}}(e,t,n),n&&t.output_text&&e.setAttributes({[ep]:t.output_text})):null!==t&&"object"==typeof t&&"object"in t&&"list"===t.object&&"string"==typeof t.model&&t.model.toLowerCase().includes("embedding")&&(e.setAttributes({[eh]:t.model,[eo]:t.model}),t.usage&&tb(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens))}}(n,o,r.recordOutputs),o}catch(e){throw(0,R.Tb)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:s}}}),e}})}:"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,r):i}})}(e,"",{recordInputs:n,recordOutputs:n,...t})}let tw=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],tT=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],tE={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},tI=["select","insert","upsert","update","delete"];function tx(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function tR(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function tO(e,t=!1){return new Proxy(e,{apply:(n,r,o)=>(0,U.GK)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[E.S3]:"auto.db.supabase",[E.$J]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:G.jt}),(0,R.Tb)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:G.OP}),e.end(),t)).catch(t=>{throw e.setStatus({code:G.jt}),e.end(),(0,R.Tb)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))})}let tN=e=>{var t;if(!e){eW.X&&$.fF.warn("Supabase integration was not installed because no Supabase client was provided.");return}tR((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,n){let r=Reflect.apply(e,t,n);return function(e){for(let t of tI)tR(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){let o=Reflect.apply(e,n,r),a=o.constructor;return eW.X&&$.fF.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),tR(a.prototype.then)||(a.prototype.then=new Proxy(a.prototype.then,{apply(e,t,n){let r=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(t.method,t.headers);if(!tI.includes(r)||!t?.url?.pathname||"string"!=typeof t.url.pathname)return Reflect.apply(e,t,n);let o=t.url.pathname.split("/"),a=o.length>0?o[o.length-1]:"",i=[];
1for(let[e,n]of t.url.searchParams.entries())i.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[r,...o]=t.split(".");return n=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&tE[r]||"filter",`${n}(${e}, ${o.join(".")})`}(e,n));let s=Object.create(null);if((0,eV.PO)(t.body))for(let[e,n]of Object.entries(t.body))s[e]=n;let u=`${"select"===r?"":`${r}${s?"(...) ":""}`}${i.join(" ")} from(${a})`,l={"db.table":a,"db.schema":t.schema,"db.url":t.url.origin,"db.sdk":t.headers["X-Client-Info"],"db.system":"postgresql","db.operation":r,[E.S3]:"auto.db.supabase",[E.$J]:"db"};return i.length&&(l["db.query"]=i),Object.keys(s).length&&(l["db.body"]=s),(0,U.GK)({name:u,attributes:l},o=>Reflect.apply(e,t,[]).then(e=>{if(o&&(e&&"object"==typeof e&&"status"in e&&(0,G.Q0)(o,e.status||500),o.end()),e.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};i.length&&(n.query=i),Object.keys(s).length&&(n.body=s),(0,R.Tb)(t,e=>(e.addEventProcessor(e=>((0,C.EG)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let t={type:"supabase",category:`db.${r}`,message:u},n={};return i.length&&(n.query=i),Object.keys(s).length&&(n.body=s),Object.keys(n).length&&(t.data=n),(0,x.n)(t),e},e=>{throw o&&((0,G.Q0)(o,500),o.end()),e}).then(...n))}}),tx(a.prototype.then)),o}}),tx(e.prototype[t]))}(r.constructor),r}}),tx(t.prototype.from)),function(e){let t=e.auth;if(!(!t||tR(e.auth))){for(let n of tw){let r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=tO(r))}for(let n of tT){let r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=tO(r,!0))}tx(e.auth)}}(e)},t$=e=>({setupOnce(){tN(e)},name:"Supabase"}),tC=(0,O._I)(e=>t$(e.supabaseClient));function tj(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}let tP=tj;function tF(e,t,n,r,o){(0,D.hQ)({level:e,message:t,attributes:n,severityNumber:o},r)}function tL(e,t,{scope:n}={}){tF("trace",e,t,n)}function tM(e,t,{scope:n}={}){tF("debug",e,t,n)}function tq(e,t,{scope:n}={}){tF("info",e,t,n)}function tU(e,t,{scope:n}={}){tF("warn",e,t,n)}function tD(e,t,{scope:n}={}){tF("error",e,t,n)}function tJ(e,t,{scope:n}={}){tF("fatal",e,t,n)}var tB=n(86156);function tW(e,t,n,r){(0,tB.iw)({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function tV(e,t=1,n){tW("counter",e,t,n)}function tH(e,t,n){tW("gauge",e,t,n)}function tG(e,t,n){tW("distribution",e,t,n)}let tX=new Map,tZ=new Set;function tK(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{var n;if(!t.filename||t.module_metadata)return;let r=(n=t.filename,!function(e){if(F.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(F.GLOBAL_OBJ._sentryModuleMetadata)){let n=F.GLOBAL_OBJ._sentryModuleMetadata[t];if(!tZ.has(t)){for(let r of(tZ.add(t),e(t).reverse()))if(r.filename){tX.set(r.filename,n);break}}}}(e),tX.get(n));r&&(t.module_metadata=r)})})}function tz(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let tQ=(0,O._I)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,S.gv)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(tz(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||tK(e.getOptions().stackParser,t)})}}));var tY=n(86180),t0=n(76202),t1=n(19798),t3=n(48920),t9=n(77950),t6=n(88511);let t5=(0,O._I)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,S.gv)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(tz(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||tK(e.getOptions().stackParser,t)})},processEvent(t){let n=function(e){let t=(0,t6.Fr)(e);if(t)return t.filter(e=>!!e.filename&&(e.lineno??e.colno)!=null).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(t4)).map(e=>e.slice(t4.length)):[])}(t);if(n&&n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}})),t4="_sentryBundlerPluginAppKey:";function t8(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let t7=(0,O._I)((e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>(function(e,t=!1,n,r){var o;if(!n.exception?.values||!r.originalException||(o=r.originalException,!((0,eV.VZ)(o)&&"ZodError"===o.name&&Array.isArray(o.issues)))||0===r.originalException.issues.length)return n;try{let o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(t8);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
1ilename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,P.$G)(n.join(", "),100)}`}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
2${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,n,r)}});var t2=n(77043),ne=n(20472),nt=n(44638);let nn={startProfiler:function(){let e=(0,f.s3)();if(!e){nt.X&&$.fF.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){nt.X&&$.fF.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,f.s3)();if(!e){nt.X&&$.fF.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){nt.X&&$.fF.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};var nr=n(55948),no=n(88161);function na(e,{metadata:t,tunnel:n,dsn:r}){let o={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,v.RA)(r)}};return(0,S.Jd)(o,[[{type:"user_report"},e]])}var ni=n(25996),ns=n(90607),nu=n(83760),nl=n(39716),nc=n(94026),np=n(36815),nf=n(95144),nd=n(39382);let ng=F.GLOBAL_OBJ,nm=new WeakMap,nh=(0,O._I)((e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(nm.has((0,f.s3)()))for(let t of e)(0,f.$e)(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,r="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}(0,R.uT)(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){(0,nd.zb)()&&new ng.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){nm.set(e,!0)}}});var ny=n(89206),n_=n(17866),nb=n(98860);let nk=(0,O._I)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){(0,nd.t$)()&&(0,ny.Uf)(n=>{if((0,f.s3)()!==e)return;let{response:r,args:o,error:a,virtualError:i}=n,[s,u]=o;r&&function(e,t,n,r,o){if(nA(e,n.status,n.url)){let e,a,i,s;let u=!r&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,r);nT()&&([e,i]=nv("Cookie",u),[a,s]=nv("Set-Cookie",n));let l=nw({url:u.url,method:u.method,status:n.status,requestHeaders:e,responseHeaders:a,requestCookies:i,responseCookies:s,error:o,type:"fetch"});(0,R.eN)(l)}}(t,s,r,u,a||i)},!1),"XMLHttpRequest"in F.GLOBAL_OBJ&&(0,nb.UK)(n=>{if((0,f.s3)()!==e)return;let{error:r,virtualError:o}=n,a=n.xhr,i=a[nb.xU];if(!i)return;let{method:s,request_headers:u}=i;try{!function(e,t,n,r,o){if(nA(e,t.status,t.responseURL)){let e,a,i;if(nT()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(a=nS(e))}catch{}try{i=function(e){let t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{}}(t)}catch{}e=r}let s=nw({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:i,responseCookies:a,error:o,type:"xhr"});(0,R.eN)(s)}}(t,a,s,u,r||o)}catch(e){nt.X&&$.fF.warn("Error while extracting response event form XHR response",e)}})}}});function nv(e,t){let n;let r=function(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}(t.headers);try{let t=r[e]||r[e.toLowerCase()]||void 0;t&&(n=nS(t))}catch{}return[r,n]}function nS(e){return e.split("; ").reduce((e,t)=>
2{let[n,r]=t.split("=");return n&&r&&(e[n]=r),e},{})}function nA(e,t,n){return e.failedRequestStatusCodes.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&e.failedRequestTargets.some(e=>"string"==typeof e?n.includes(e):e.test(n))&&!(0,n_.W)(n,(0,f.s3)())}function nw(e){let t=(0,f.s3)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,a={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,C.EG)(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function nT(){let e=(0,f.s3)();return!!e&&!!e.getOptions().sendDefaultPii}var nE=n(66747);let nI=F.GLOBAL_OBJ,nx=(0,O._I)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let n=nI.document,r=nI.location&&(0,nE.rt)(nI.location.href);if(!n||!r)return e;let o=e.exception?.values;if(!o?.length)return e;let a=n.documentElement.innerHTML;if(!a)return e;let i=["<!DOCTYPE html>","<html>",...a.split("\n"),"</html>"];return o.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>(e.filename===r&&e.lineno&&i.length&&(0,C.go)(i,e,t),e)))}),e})(e,t)}});var nR=n(2094);function nO(e){if(nj(e))return`persisted ${e.operationName}`;if(nC(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function nN(e){let t;if("xhr"in e){let n=e.xhr[nb.xU];t=n&&(0,nR.SI)(n.body)[0]}else{let n=(0,nR.dn)(e.input);t=(0,nR.SI)(n)[0]}return t}function n$(e){return"object"==typeof e&&null!==e}function nC(e){return n$(e)&&"string"==typeof e.query}function nj(e){return n$(e)&&"string"==typeof e.operationName&&n$(e.extensions)&&n$(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function nP(e){try{let t=JSON.parse(e);if(nC(t)||nj(t))return t;return}catch{return}}let nF=(0,O._I)(e=>({name:"GraphQLClient",setup(t){(function(e,t){e.on("beforeOutgoingRequestSpan",(e,n)=>{let r=(0,eZ.XU)(e).data||{};if("http.client"!==r[E.$J])return;let o=r[E.fv]||r["http.url"],a=r[E.qE]||r["http.method"];if(!(0,eV.HD)(o)||!(0,eV.HD)(a))return;let{endpoints:i}=t,s=(0,P.U0)(o,i),u=nN(n);if(s&&u){let t=nP(u);if(t){let n=nO(t);e.updateName(`${a} ${o} (${n})`),nC(t)&&e.setAttribute("graphql.document",t.query),nj(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})})(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,n)=>{let{category:r,type:o,data:a}=e;if("http"===o&&("fetch"===r||"xhr"===r)){let e=a?.url,{endpoints:r}=t,o=(0,P.U0)(e,r),i=nN(n);if(o&&a&&i){let e=nP(i);if(!a.graphql&&e){let t=nO(e);a["graphql.operation"]=t,nC(e)&&(a["graphql.document"]=e.query),nj(e)&&(a["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}(t,e)}}));var nL=n(48885),nM=n(41046),nq=n(54121),nU=n(99646);function nD(e=(0,f.s3)()){e?.emit("endPageloadSpan")}var nJ=n(57855);function nB(e){let t=(0,eZ.HN)();if(t===e)return;let n=(0,f.nZ)();e.end=new Proxy(e.end,{apply:(e,r,o)=>((0,nJ.D)(n,t),Reflect.apply(e,r,o))}),(0,nJ.D)(n,e)}var nW=n(95513);function nV(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function nH(e){return nV(e.getAllKeys())}function nG(e){let t;function n(){return void 0==t&&(t=function(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=nV(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{var r,o;let a=await (0,S.V$)(t);await (r=n(),o=e.maxQueueSize||30,r(e=>nH(e).then(t=>{if(!(t.length>=o))return e.put(a,Math.max(...t,0)+1),nV(e.transaction)})))}catch{}},unshift:async t=>{try{var r,o;let a=await (0,S.V$)(t);await (r=n(),o=e.maxQueueSize||30,r(e=>nH(e).then(t=>{if(!(t.length>=o))return e.put(a,Math.min(...t,0)-1),nV(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>nH(e).then(t=>{let n=t[0];if(null!=n)return nV(e.get(n)).then(t=>(e.delete(n),nV(e.transaction).then(()=>t)))}));if(e)return(0,S.f4)(e)}catch{}}}}function nX(e=ne.f){var t;return t=function(e){function t(...e){eW.X&&$.fF.log("[Offline]:",...e)}return n=>{let r;let o=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let a=n.createStore(n),i=5e3;function s(e){r&&clearTimeout(r),"number"!=typeof(r=setTimeout(async()=>{r=void 0;let e=await a.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),l(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&r.unref&&r.unref()}function u(){r||(s(i),i=Math.min(2*i,36e5))}async function l(e,r=!1){if(!r&&(0,S.R)(e,["replay_event","replay_recording"]))return await a.push(e),s(100),{};
2try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await o.send(e),r=100;if(t){if(t.headers?.["retry-after"])r=(0,nW.JY)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),i=5e3,t}catch(o){var l;if(await (l=i,!(0,S.R)(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,o,l))))return r?await a.unshift(e):await a.push(e),u(),t("Error sending. Event queued.",o),{};throw o}}return n.flushAtStartup&&u(),{send:l,flush:e=>(void 0===e&&(i=5e3,s(100)),o.flush(e))}}}(e),e=>{let n=t({...e,createStore:nG});return g.m9.addEventListener("online",async e=>{await n.flush()}),n}}var nZ=n(33843),nK=n(80604);let nz=(0,O._I)((e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{nt.X&&$.fF.log("Using Sidecar URL",t)},processEvent:e=>"transaction"===e.type&&e.spans&&e.contexts?.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some(({description:e})=>e?.includes("#sentry-spotlight"))?null:e,afterAllSetup:e=>{!function(e,t){let n=(0,nK.L2)("fetch"),r=0;e.on("beforeEnvelope",e=>{if(r>3){$.fF.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:(0,S.V$)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>{r++,$.fF.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}});var nQ=n(37720);let nY=(0,O._I)(()=>
2({name:"LaunchDarkly",processEvent:(e,t,n)=>ez(e)}));function n0(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{eQ(e,t.value),eY(e,t.value)}}}let n1=(0,O._I)(()=>({name:"OpenFeature",processEvent:(e,t,n)=>ez(e)}));class n3{after(e,t){eQ(t.flagKey,t.value),eY(t.flagKey,t.value)}error(e,t,n){eQ(e.flagKey,e.defaultValue),eY(e.flagKey,e.defaultValue)}}let n9=(0,O._I)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,eG.hl)(t,"isEnabled",n6)},processEvent:(e,t,n)=>ez(e)}));function n6(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(eQ(n,r),eY(n,r)):nt.X&&$.fF.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}let n5=(0,O._I)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,eG.hl)(t,"isOn",n4),"function"==typeof t.getFeatureValue&&(0,eG.hl)(t,"getFeatureValue",n4)}
2,processEvent:(e,t,n)=>ez(e)}));function n4(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(eQ(n,r),eY(n,r)),r}}let n8=({growthbookClass:e})=>n5({growthbookClass:e}),n7=(0,O._I)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{eQ(e.gate.name,e.gate.value),eY(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>ez(e)}));async function n2(){let e=(0,f.s3)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await (0,U.hE)(()=>fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let re=(0,O._I)(({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>rt(e))},addWorker:e=>rt(e)}));function rt(e){e.addEventListener("message",e=>{(function(e){if(!(0,eV.PO)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryWorkerError"in e;return!!((t||n)&&(!t||(0,eV.PO)(e._sentryDebugIds)||void 0===e._sentryDebugIds)&&(!n||(0,eV.PO)(e._sentryWorkerError)))})(e.data)&&(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(nt.X&&$.fF.log("Sentry debugId web worker message received",e.data),g.m9._sentryDebugIds={...e.data._sentryDebugIds,...g.m9._sentryDebugIds}),e.data._sentryWorkerError&&(nt.X&&$.fF.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,f.s3)();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,a=(0,eV.pt)(o)?(0,nl.ge)(o):(0,no.ME)(n,o,void 0,r,!0);a.level="error",e.filename&&(a.contexts={...a.contexts,worker:{filename:e.filename}}),(0,R.eN)(a,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),nt.X&&$.fF.log("Captured worker unhandled rejection",o)}(e.data._sentryWorkerError)))})}function rn({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0}),e.addEventListener("unhandledrejection",t=>{let n={reason:(0,nl.YO)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),nt.X&&$.fF.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),nt.X&&$.fF.log("[Sentry Worker] Registered worker with unhandled rejection handling")}var rr=n(55753),ro=n(7653);function ra(e,{componentStack:t},n){if(function(e){let t=e.match(/^([^.]+)/);return null!==t&&parseInt(t[0])>=17}(ro.version)&&(0,eV.VZ)(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,function(e,t){let n=new WeakSet;!function e(t,r){if(!n.has(t)){if(t.cause)return n.add(t),e(t.cause,r);t.cause=r}}(e,t)}(e,n)}return(0,f.$e)(r=>(r.setContext("react",{componentStack:t}),(0,R.Tb)(e,n)))}function ri(e){return(t,n)=>{let r=!!e,o=ra(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,o)}}var rs=n(87443);let ru="ui.react.render",rl="ui.react.mount";var rc=n(49463),rp=n.t(rc,2);let rf=rc||rp;class rd extends ro.Component{constructor(e){super(e);let{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=(0,U.qp)({name:`<${t}>`,onlyIfParent:!0,op:rl,attributes:{[E.S3]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=(0,rs.ph)();this._updateSpan=(0,U._d)(this._mountSpan,()=>(0,U.qp)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[E.S3]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=(0,rs.ph)(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=(0,eZ.XU)(this._mountSpan).timestamp;(0,U._d)(this._mountSpan,()=>{let r=(0,U.qp)({onlyIfParent:!0,name:`<${t}>`,op:ru,startTime:n,attributes:{[E.S3]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function rg(e,t){let n=t?.name||e.displayName||e.name||"unknown",r=r=>ro.createElement(rd,{...t,name:n,updateProps:r},ro.createElement(e,{...r}));return r.displayName=`profiler(${n})`,rf(r,e),r}
2function rm(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=ro.useState(()=>{if(!t?.disabled)return(0,U.qp)({name:`<${e}>`,onlyIfParent:!0,op:rl,attributes:{[E.S3]:"auto.ui.react.profiler","ui.component_name":e}})});ro.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=(0,eZ.XU)(n).timestamp,r=(0,rs.ph)(),o=(0,U.qp)({name:`<${e}>`,onlyIfParent:!0,op:ru,startTime:t,attributes:{[E.S3]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(r)}}),[])}Object.assign(rd,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});let rh="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ry={componentStack:null,error:null,eventId:null};class r_ extends ro.Component{constructor(e){super(e),this.state=ry,this._openFallbackReportDialog=!0;let t=(0,f.s3)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&(0,ns.j)({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:o,showDialog:a,dialogOptions:i}=this.props;(0,f.$e)(s=>{r&&r(s,e,n);let u=ra(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});o&&o(e,n,u),a&&(this._lastEventId=u,this._openFallbackReportDialog&&(0,ns.j)({...i,eventId:u})),this.setState({error:e,componentStack:n,eventId:u})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===ry?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(ry)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?ro.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return ro.isValidElement(r)?r:(e&&rh&&$.fF.warn("fallback did not produce a valid ReactElement"),null)}}function rb(e,t){let n=e.displayName||e.name||"unknown",r=ro.memo(n=>ro.createElement(r_,{...t},ro.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,rf(r,e),r}let rk={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function rv(e){let t={...rk,...e};return e=>(n,r)=>{function o(e){return(n,r)=>{let o=e(n,r),a=(0,f.nZ)(),i=t.actionTransformer(r);null!=i&&(0,x.n)({category:"redux.action",data:i,type:"info"});let s=t.stateTransformer(o);if(null!=s){let e=(0,f.s3)(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:s}};(0,eG.xp)(r,"__sentry_override_normalization_depth__",3+n),a.setContext("state",r)}else a.setContext("state",null);let{configureScopeWithState:u}=t;return"function"==typeof u&&u(a,o),o}}t.attachReduxState&&(0,f.lW)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});let a=e(o(n),r);return a.replaceReducer=new Proxy(a.replaceReducer,{apply:function(e,t,n){e.apply(t,[o(n[0])])}}),a}}function rS(e){let t=(0,nU.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),a&&g.m9.location&&rA(r,g.m9.location,o,(t,n="url")=>{(0,nU.Wo)(e,{name:t,attributes:{[E.$J]:"pageload",[E.S3]:"auto.pageload.react.reactrouter_v3",[E.Zj]:n}})}),i&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&rA(r,t,o,(t,n="url")=>{(0,nU.og)(e,{name:t,attributes:{[E.$J]:"navigation",[E.S3]:"auto.navigation.react.reactrouter_v3",[E.Zj]:n}})})})}}}function rA(e,t,n,r){let o=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(o);let a=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let r=t[e];if(r.path?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>{let n="/"===e||""===e?t:`/${t}`;return`${e}${n}`},"")}(n.routes||[]);return 0===a.length||"/*"===a?r(o):r(o=a,"route")})}function rw(e,t={}){let n=(0,nU.E8)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:o=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let a=g.m9.location;if(r&&a){let n=e.matchRoutes(a.pathname,e.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),r=n[n.length-1];(0,nU.Wo)(t,{name:r?r.routeId:a.pathname,attributes:{[E.$J]:"pageload",[E.S3]:"auto.pageload.react.tanstack_router",[E.Zj]:r?"route":"url",...rT(r)}})}o&&e.subscribe("onBeforeNavigate",n=>{if(!n.fromLocation||n.toLocation.state===n.fromLocation.state)return;let r=e.matchRoutes(n.toLocation.pathname,n.toLocation.search,{preload:!1,throwOnError:!1}),o=r[r.length-1],a=g.m9.location,i=(0,nU.og)(t,{name:o?o.routeId:a.pathname,attributes:{[E.$J]:"navigation",[E.S3]:"auto.navigation.react.tanstack_router",[E.Zj]:o?"route":"url"}}),s=e.subscribe("onResolved",t=>{if(s(),i){let n=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),r=n[n.length-1];r&&(i.updateName(r.routeId),i.setAttribute(E.Zj,"route"),i.setAttributes(rT(r)))}})})}}}function rT(e){if(!e)return{};let t={};
2return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`url.path.parameter.${e}`]=n,t[`params.${e}`]=n}),t}function rE(e){let t=(0,nU.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),rx(e,a,i,n,"reactrouter_v4",r,o)}}}function rI(e){let t=(0,nU.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:o,instrumentPageLoad:a=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),rx(e,a,i,n,"reactrouter_v5",r,o)}}}function rx(e,t,n,r,o,a=[],i){function s(e){if(0===a.length||!i)return[e,"url"];for(let t of function e(t,n,r,o=[]){return t.some(t=>{let a=t.path?r(n,t):o.length?o[o.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return a&&(o.push({route:t,match:a}),t.routes&&e(t.routes,n,r,o)),!!a}),o}(a,e,i))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:g.m9.location?g.m9.location.pathname:void 0;if(t){let[n,r]=s(t);(0,nU.Wo)(e,{name:n,attributes:{[E.$J]:"pageload",[E.S3]:`auto.pageload.react.${o}`,[E.Zj]:r}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=s(t.pathname);(0,nU.og)(e,{name:n,attributes:{[E.$J]:"navigation",[E.S3]:`auto.navigation.react.${o}`,[E.Zj]:r}})}})}function rR(e){let t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,n=function(){let e=(0,eZ.HN)(),t=e&&(0,eZ.Gx)(e);if(!t)return;let n=(0,eZ.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,f.nZ)().setTransactionName(e),n&&(n.updateName(e),n.setAttribute(E.Zj,"route"))}return ro.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,rf(n,e),n}let rO=!1,rN=[];function r$(){let e=rN.length;return e>0?rN[e-1]??null:null}function rC(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function rj(e){return e.endsWith("*")}function rP(e){return e.includes("/*")||e.endsWith("*")}function rF(e,t){return rj(e)&&!!t.route.children?.length||!1}function rL(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function rM(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}function rq(e){return"/"===e[0]?e:`/${e}`}function rU(e,t){return rO?rM(e.pathname,t):e.pathname||""}function rD(e,t,n,o,a=""){let i;let s="url",u=function(e,t){let n=r(t,e);if(n)for(let e of n){var o;if(!(o=e.route).children&&o.element&&o.path?.endsWith("/*")&&e.params["*"])return!0}return!1}(e,n);return u&&(i=rq(function e(t,n){let o=r(t,n);if(!o||0===o.length)return"";for(let r of o)if(r.route.path&&"*"!==r.route.path){var a;let o="*"===(a=r.route.path||"")[a.length-1]?a.slice(0,-1):a,i=rM(n.pathname,rq(r.pathnameBase));if(n.pathname===i)return rC(i);return rC(rC(o||"")+rq(e(t.filter(e=>e!==r.route),{pathname:i})))}return""}(n,e)),s="route"),u&&i||([i,s]=function(e,t,n,r=""){if(!e||0===e.length)return[rO?rM(t.pathname,r):t.pathname,"url"];if(!n)return[rU(t,r),"url"];let o="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>0?e:rO?rM(t,n):t,o="/*"===r.slice(-2)?r.slice(0,-2):r;return o.length>1&&"/"===o[o.length-1]&&(o=o.slice(0,-1)),[o,"route"]}(o,e.pathname,r);let a=n.path;if(!a||rF(a,e))continue;let i="/"===a[0]||"/"===o[o.length-1]?a:`/${a}`;if(o=rC(o)+rq(i),rC(t.pathname)===rC(r+e.pathname)){if(rL(o)!==rL(e.pathname)&&!rj(o))return[(rO?"":r)+i,"route"];return rF(o,e)&&(o=o.slice(0,-1)),[(rO?"":r)+o,"route"]}}return[rU(t,r),"url"]}(t,e,o,a)),[i||e.pathname,s]}function rJ(){let e=(0,eZ.HN)(),t=e?(0,eZ.Gx)(e):void 0;if(!t)return;let n=(0,eZ.XU)(t).op;return"navigation"===n||"pageload"===n?t:void 0}function rB(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let o=new Proxy(e,{apply(e,o,a){let i=function(){let e=r$();if(e?.targetPath)return{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"};if(void 0!==g.m9)try{let e=g.m9.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{rh&&$.fF.warn("[React Router] Could not access window.location")}return null}(),s=function(){let e=r$();return e?e.span:rJ()}(),u=e.apply(o,a);return function(e,t,n,r,o,a){(0,eV.J8)(e)?e.then(e=>{Array.isArray(e)&&r(e,t,o??void 0,a)}).catch(e=>{rh&&$.fF.warn(`Error resolving async handler '${n}' for route`,t,e)}):Array.isArray(e)&&r(e,t,o??void 0,a)}(u,t,n,r,i,s),u}});return(0,eG.xp)(o,"__sentry_proxied__",!0),o}(r,e,n,t))}if(Array.isArray(e.children))for(let n of e.children)rB(n,t)}let rW=!1,rV=3e3,rH=new WeakSet,rG=new WeakMap,rX=new Set,rZ=new WeakMap;function rK(e){g.m9?.cancelAnimationFrame?g.m9.cancelAnimationFrame(e):clearTimeout(e)}function rz(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function rQ(e){return e.includes(":")||e.includes("*")}
2function rY(e,t,n=null,r){e.forEach(e=>{rX.add(e),rW&&rB(e,rY)}),t&&function(e,t){let n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}(e,t);let o=r??rJ();if(o){let e=(0,eZ.XU)(o);if(e.timestamp){rh&&$.fF.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,a=n;if(!a&&!r&&void 0!==g.m9){let e=g.m9.location;e?.pathname&&(a={pathname:e.pathname})}a&&("pageload"===t?r2({activeRootSpan:o,location:{pathname:a.pathname},routes:Array.from(rX),allRoutes:Array.from(rX)}):"navigation"===t&&r0(o,a,Array.from(rX),!1,u))}}function r0(e,t,n,r=!1,o){let a=(0,eZ.XU)(e),i=a.description,s=e?.__sentry_navigation_name_set__,u=i&&rP(i);if((!s||r||u)&&!a.timestamp){let r=o(n,t),[l,c]=rD(t,n,n,r||[],""),p=a.data?.[E.Zj];!l||i&&(s||"route"===p&&"route"!==c)&&("route"===p||"route"!==c)&&("route"!==p||"route"!==c||!u)||(e.updateName(l),e.setAttribute(E.Zj,c),rP(l)||"route"!==c||(0,eG.xp)(e,"__sentry_navigation_name_set__",!0))}}function r1(e,t,n,r,o){let a=!1,i=!!o&&"pageload"===(0,eZ.XU)(o).op,s=!1,u=null,l=null;e.subscribe(e=>{if(!a){let t=rJ();t&&"pageload"===(0,eZ.XU)(t).op?i=!0:i&&("POP"!==e.historyAction||s?a=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&a){let o=rz(e.location),a=()=>{l!==o&&(l=o,u=null,r8({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(rX)}))};"idle"!==e.navigation.state?(l!==o&&(l=null),null!==u&&rK(u),u=g.m9?.requestAnimationFrame?g.m9.requestAnimationFrame(a):setTimeout(a,0)):(null!==u&&(rK(u),u=null),a())}})}function r3(e,t){return o&&a&&i&&u?function(n,r){if(r7(n),rW)for(let e of n)rB(e,rY);let o=e(n,r4(r)),a=r?.basename,i=rJ();return"POP"===o.state.historyAction&&i&&r2({activeRootSpan:i,location:o.state.location,routes:n,basename:a,allRoutes:Array.from(rX)}),r1(o,n,t,a,i),o}:(rh&&$.fF.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function r9(e,t){return o&&a&&i&&u?function(n,r){let o;if(r7(n),rW)for(let e of n)rB(e,rY);let a=e(n,r4(r,!0)),i=r?.basename,s=r?.initialEntries,u=r?.initialIndex,l=s&&1===s.length,c=void 0!==u&&s&&s[u],p=(o=l?s[0]:c?s[u]:void 0)?"string"==typeof o?{pathname:o}:o:a.state.location,f=rJ();return"POP"===a.state.historyAction&&f&&r2({activeRootSpan:f,location:p,routes:n,basename:i,allRoutes:Array.from(rX)}),r1(a,n,t,i,f),a}:(rh&&$.fF.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function r6(e,t){let n=(0,nU.E8)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:l,useLocation:c,useNavigationType:p,createRoutesFromChildren:f,matchRoutes:d,stripBasename:m,enableAsyncRouteHandlers:h=!1,instrumentPageLoad:y=!0,instrumentNavigation:_=!0,lazyRouteTimeout:b}=e;return{...n,setup(t){n.setup(t);let g=e.finalTimeout??3e4,y=(e.idleTimeout??1e3)*3,_=b??y;_===1/0?(rV=g,rh&&$.fF.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",g,"ms to prevent indefinite hangs")):Number.isNaN(_)?(rh&&$.fF.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",y),rV=y):_<0?(rh&&$.fF.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",_,"falling back to:",y),rV=y):rV=_,o=l,a=c,i=p,u=d,s=f,rW=h,function(e,t=!1){r=e,rO=t}(d,m||!1)},afterAllSetup(e){n.afterAllSetup(e);let r=g.m9.location?.pathname;y&&r&&(0,nU.Wo)(e,{name:r,attributes:{[E.Zj]:"url",[E.$J]:"pageload",[E.S3]:`auto.pageload.react.reactrouter_v${t}`}}),_&&rH.add(e)}}}function r5(e,t){if(!o||!a||!i||!u)return rh&&$.fF.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let n=n=>{let r=ro.useRef(!0),{routes:s,locationArg:u}=n,l=e(s,u),c=a(),p=i(),f="string"==typeof u||u?.pathname?u:c;return o(()=>{let e="string"==typeof f?{pathname:f}:f;r.current?(r7(s),r2({activeRootSpan:rJ(),location:e,routes:s,allRoutes:Array.from(rX)}),r.current=!1):r8({location:e,routes:s,navigationType:p,version:t,allRoutes:Array.from(rX)})},[p,f]),l};return(e,t)=>ro.createElement(n,{routes:e,locationArg:t})}function r4(e,t=!1){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let n=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let r=e?.path,o=rJ();if(!t){let t=e?.patch;t&&(e.patch=(e,n)=>{r7(n);let o=rJ();return r&&o&&"navigation"===(0,eZ.XU)(o).op&&r0(o,{pathname:r,search:"",hash:"",state:null,key:"default"},Array.from(rX),!0,u),t(e,n)})}let a=(async()=>{let a;let i=function(e,t){let n={};return rN.length>=10&&(rh&&$.fF.warn("[React Router] Navigation context stack overflow - removing oldest context"),rN.shift()),rN.push({token:n,targetPath:e,span:t}),n}(r,o);try{a=await n(e)}finally{!function(e){let t=rN[rN.length-1];t?.token===e&&rN.pop()}(i)}let s=rJ();if(s&&"navigation"===(0,eZ.XU)(s).op){let e=t?r:r||g.m9.location?.pathname;e&&r0(s,{pathname:e,search:"",hash:"",state:null,key:"default"},Array.from(rX),!1,u)}return a})();if(o){let e;(e=rZ.get(o))||(e=new Set,rZ.set(o,e)),e.add(a),a.finally(()=>{let e=rZ.get(o);e&&e.delete(a)})}return a}}}function r8(e){let{location:t,routes:n,navigationType:r,version:o,matches:a,basename:i,allRoutes:s}=e,l=Array.isArray(a)?a:u(s||n,t,i),c=(0,f.s3)();if(!c||!rH.has(c))return;let p=rJ();if((!p||"pageload"!==(0,eZ.XU)(p).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&l){let e;let[r,a]=rD(t,s||n,s||n,l,i),u=rz(t),p=rG.get(c),f=!!p&&!p.isPlaceholder&&!!(0,eZ.XU)(p.span).timestamp,{skip:d,shouldUpdate:g}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){let t=!!e.routeName&&rP(e.routeName),r=rP(n),o=!!e.routeName&&rQ(e.routeName),a=rQ(n),i=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!o&&a||i))}}return{skip:!1,shouldUpdate:!1}}(p,u,r,f);if(d){if(g&&p){let e=p.routeName;p.isPlaceholder?(p.routeName=r,rh&&$.fF.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${r}" (will apply to real span)`)):(p.span.updateName(r),p.span.setAttribute(E.Zj,a),(0,eG.xp)(p.span,"__sentry_navigation_name_set__",!0),p.routeName=r,rh&&$.fF.log(`[Tracing] Updated navigation span name from "${e}" to "${r}"`))}else rh&&$.fF.log(`[Tracing] Skipping duplicate navigation for location: ${u}`);return}let m={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:u,isPlaceholder:!0};rG.set(c,m);try{e=(0,nU.og)(c,{name:m.routeName,attributes:{[E.Zj]:a,[E.$J]:"navigation",[E.S3]:`auto.navigation.react.reactrouter_v${o}`}})}catch(e){throw rG.delete(c),e}e?(rG.set(c,{span:e,routeName:m.routeName,pathname:t.pathname,locationKey:u}),ot(e,t,n,i,s,"navigation")):rG.delete(c)}}
2function r7(e){e.forEach(e=>{(function e(t,n=new Set){return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n})(e).forEach(e=>{rX.add(e)})})}function r2({activeRootSpan:e,location:t,routes:n,matches:r,basename:o,allRoutes:a}){let i=Array.isArray(r)?r:u(a||n,t,o);if(i){let[r,s]=rD(t,a||n,a||n,i,o);(0,f.nZ)().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(E.Zj,s),ot(e,t,n,o,a,"pageload"))}}function oe(e,t,n,r,o,a,i,s){try{let l=t.data?.[E.Zj];if("route"===l&&n&&!rP(n))return;let c=Array.from(s),p=c.length>0?c:o,f=u(p,r,a);if(!f)return;let[d,g]=rD(r,p,p,f,a),m=function(e,t,n,r,o=!1){return!!n&&(!!(!e&&o||e&&rP(e)&&"route"===r&&!rP(n))||"route"!==t&&"route"===r)}(n,l,d,g,!0),h="pageload"===i||!t.timestamp;m&&h&&(e.updateName(d),e.setAttribute(E.Zj,g))}catch(e){rh&&$.fF.warn(`Error updating span details before ending: ${e}`)}}function ot(e,t,n,r,o,a){let i=`__sentry_${a}_end_patched__`;if(e?.[i]||!e.end)return;let s=o?new Set(o):rX,u=e.end.bind(e),l=!1;e.end=function(...o){if(l)return;l=!0;let i=o.length>0?o[0]:Date.now()/1e3,c=(0,eZ.XU)(e),p=c.description,d=c.data?.[E.Zj],g=()=>{let t=(0,f.s3)();if(t&&"navigation"===a){let n=rG.get(t);n&&n.span===e&&rG.delete(t)}},m=rZ.get(e);if(m&&m.size>0&&p&&(rP(p)||"route"!==d)){if(0===rV){oe(e,c,p,t,n,r,a,s),g(),u(i);return}
2let o=Promise.allSettled(m).then(()=>{});(rV===1/0?o:Promise.race([o,new Promise(e=>setTimeout(e,rV))])).then(()=>{let o=(0,eZ.XU)(e);oe(e,o,o.description,t,n,r,a,s),g(),u(i)}).catch(()=>{g(),u(i)});return}oe(e,c,p,t,n,r,a,s),g(),u(i)},(0,eG.xp)(e,i,!0)}function on(e,t){if(!o||!a||!i||!s||!u)return rh&&$.fF.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
3      useEffect: ${o}. useLocation: ${a}. useNavigationType: ${i}.
4      createRoutesFromChildren: ${s}. matchRoutes: ${u}.`),e;let n=n=>{let r=ro.useRef(!0),u=a(),l=i();return o(()=>{let e=s(n.children);r.current?(r7(e),r2({activeRootSpan:rJ(),location:u,routes:e,allRoutes:Array.from(rX)}),r.current=!1):r8({location:u,routes:e,navigationType:l,version:t,allRoutes:Array.from(rX)})},[u,l]),ro.createElement(e,{...n})};return rf(n,e),n}function or(e){return r6(e,"6")}function oo(e){return r5(e,"6")}function oa(e){return r3(e,"6")}function oi(e){return r9(e,"6")}function os(e){return on(e,"6")}function ou(e){return r6(e,"7")}function ol(e){return on(e,"7")}function oc(e){return r3(e,"7")}function op(e){return r9(e,"7")}function of(e){return r5(e,"7")}}}]);

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.