;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7ae1189b-d784-91c9-ad4d-8f29cbe4910f")}catch(e){}}();
module.exports=[605365,(a,b,c)=>{b.exports=a.x("process",()=>require("process"))},410430,(a,b,c)=>{b.exports=a.x("async_hooks",()=>require("async_hooks"))},522734,(a,b,c)=>{b.exports=a.x("fs",()=>require("fs"))},233405,(a,b,c)=>{b.exports=a.x("child_process",()=>require("child_process"))},254799,(a,b,c)=>{b.exports=a.x("crypto",()=>require("crypto"))},792509,(a,b,c)=>{b.exports=a.x("url",()=>require("url"))},427699,(a,b,c)=>{b.exports=a.x("events",()=>require("events"))},81111,(a,b,c)=>{b.exports=a.x("node:stream",()=>require("node:stream"))},446786,(a,b,c)=>{b.exports=a.x("os",()=>require("os"))},362562,(a,b,c)=>{b.exports=a.x("module",()=>require("module"))},156823,(a,b,c)=>{b.exports=a.x("require-in-the-middle-a99415fa67232f7f",()=>require("require-in-the-middle-a99415fa67232f7f"))},285512,(a,b,c)=>{b.exports=a.x("import-in-the-middle-138cd032e4b029f3",()=>require("import-in-the-middle-138cd032e4b029f3"))},677652,(a,b,c)=>{b.exports=a.x("node:diagnostics_channel",()=>require("node:diagnostics_channel"))},687769,(a,b,c)=>{b.exports=a.x("node:events",()=>require("node:events"))},154993,(a,b,c)=>{b.exports=a.x("diagnostics_channel",()=>require("diagnostics_channel"))},874533,(a,b,c)=>{b.exports=a.x("node:child_process",()=>require("node:child_process"))},902157,(a,b,c)=>{b.exports=a.x("node:fs",()=>require("node:fs"))},660526,(a,b,c)=>{b.exports=a.x("node:os",()=>require("node:os"))},750227,(a,b,c)=>{b.exports=a.x("node:path",()=>require("node:path"))},812057,(a,b,c)=>{b.exports=a.x("node:util",()=>require("node:util"))},601457,(a,b,c)=>{b.exports=a.x("node:readline",()=>require("node:readline"))},925127,(a,b,c)=>{b.exports=a.x("node:worker_threads",()=>require("node:worker_threads"))},37702,(a,b,c)=>{b.exports=a.x("worker_threads",()=>require("worker_threads"))},347299,(a,b,c)=>{b.exports=a.x("node:http",()=>require("node:http"))},743698,(a,b,c)=>{b.exports=a.x("node:https",()=>require("node:https"))},727028,(a,b,c)=>{b.exports=a.x("node:zlib",()=>require("node:zlib"))},761095,(a,b,c)=>{b.exports=a.x("node:net",()=>require("node:net"))},685560,(a,b,c)=>{b.exports=a.x("node:tls",()=>require("node:tls"))},60438,(a,b,c)=>{b.exports=a.x("perf_hooks",()=>require("perf_hooks"))},74667,(a,b,c)=>{b.exports=a.x("import-in-the-middle-6ecbfda1283b1532",()=>require("import-in-the-middle-6ecbfda1283b1532"))},989801,a=>{a.v({name:"@fastify/otel",version:"0.18.0",description:"Official Fastify OpenTelemetry Instrumentation",main:"index.js",type:"commonjs",types:"types/index.d.ts",scripts:{lint:"eslint","lint:fix":"eslint --fix",test:"npm run test:all && npm run test:typescript","test:unit":"c8 --100 node --test","test:all":"npm run test:v4 && npm run test:v5","test:v4":"cross-env FASTIFY_VERSION=fastifyv4 npm run test:unit","test:v5":"cross-env FASTIFY_VERSION=fastify npm run test:unit","test:coverage":"c8 node --test && c8 report --reporter=html","test:typescript":"tsd"},repository:{type:"git",url:"git+https://github.com/fastify/otel.git"},keywords:["plugin","helper","fastify","instrumentation","otel","opentelemetry"],author:"Carlos Fuentes - @metcoder95 (https://metcoder.dev)",license:"MIT",bugs:{url:"https://github.com/fastify/otel/issues"},homepage:"https://github.com/fastify/otel#readme",funding:[{type:"github",url:"https://github.com/sponsors/fastify"},{type:"opencollective",url:"https://opencollective.com/fastify"}],devDependencies:{"@fastify/type-provider-typebox":"^6.1.0","@opentelemetry/context-async-hooks":"^2.0.0","@opentelemetry/contrib-test-utils":"^0.59.0","@opentelemetry/instrumentation-http":"^0.212.0","@opentelemetry/propagator-jaeger":"^2.0.0","@opentelemetry/sdk-trace-base":"^2.0.0","@opentelemetry/sdk-trace-node":"^2.2.0","@types/node":"^25.0.3",c8:"^11.0.0","cross-env":"^10.0.0",eslint:"^9.16.0",fastify:"^5.1.0","fastify-plugin":"^5.1.0",fastifyv4:"npm:fastify@^4.0.0",neostandard:"^0.12.0",tsd:"^0.33.0"},dependencies:{"@opentelemetry/core":"^2.0.0","@opentelemetry/instrumentation":"^0.212.0","@opentelemetry/semantic-conventions":"^1.28.0",minimatch:"^10.2.4"},peerDependencies:{"@opentelemetry/api":"^1.9.0"},tsd:{directory:"types"}})},556271,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={RequestCookies:function(){return f.RequestCookies},ResponseCookies:function(){return f.ResponseCookies},stringifyCookie:function(){return f.stringifyCookie}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(23586)},141908,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ReflectAdapter",{enumerable:!0,get:function(){return d}});class d{static get(a,b,c){let d=Reflect.get(a,b,c);return"function"==typeof d?d.bind(a):d}static set(a,b,c,d){return Reflect.set(a,b,c,d)}static has(a,b){return Reflect.has(a,b)}static deleteProperty(a,b){return Reflect.deleteProperty(a,b)}}},180967,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={isRequestAPICallableInsideAfter:function(){return j},throwForSearchParamsAccessInUseCache:function(){return i},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(608068),g=a.r(324725);function h(a,b){throw Object.defineProperty(new f.StaticGenBailoutError(`Route ${a} with \`dynamic = "error"\` couldn't be rendered statically because it used ${b}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function i(a,b){let c=Object.defineProperty(Error(`Route ${a.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(c,b),a.invalidDynamicUsageError??=c,c}function j(){let a=g.afterTaskAsyncStorage.getStore();return(null==a?void 0:a.rootTaskSpawnPhase)==="action"}},835741,(a,b,c)=>{"use strict";function d(){let a,b,c=new Promise((c,d)=>{a=c,b=d});return{resolve:a,reject:b,promise:c}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"createPromiseWithResolvers",{enumerable:!0,get:function(){return d}})},266391,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d,e={RenderStage:function(){return i},StagedRenderingController:function(){return j}};for(var f in e)Object.defineProperty(c,f,{enumerable:!0,get:e[f]});let g=a.r(196679),h=a.r(835741);var i=((d={})[d.Before=1]="Before",d[d.Static=2]="Static",d[d.Runtime=3]="Runtime",d[d.Dynamic=4]="Dynamic",d[d.Abandoned=5]="Abandoned",d);class j{constructor(a=null,b){this.abortSignal=a,this.hasRuntimePrefetch=b,this.currentStage=1,this.staticInterruptReason=null,this.runtimeInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.runtimeStagePromise=(0,h.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,h.createPromiseWithResolvers)(),this.mayAbandon=!1,a&&(a.addEventListener("abort",()=>{let{reason:b}=a;this.currentStage<3&&(this.runtimeStagePromise.promise.catch(k),this.runtimeStagePromise.reject(b)),(this.currentStage<4||5===this.currentStage)&&(this.dynamicStagePromise.promise.catch(k),this.dynamicStagePromise.reject(b))},{once:!0}),this.mayAbandon=!0)}onStage(a,b){if(this.currentStage>=a)b();else if(3===a)this.runtimeStageListeners.push(b);else if(4===a)this.dynamicStageListeners.push(b);else throw Object.defineProperty(new g.InvariantError(`Invalid render stage: ${a}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}canSyncInterrupt(){if(1===this.currentStage)return!1;let a=this.hasRuntimePrefetch?4:3;return this.currentStage=3&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),b<4&&a>=4){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveRuntimeStage(){let a=this.runtimeStageListeners;for(let b=0;b{d.then(a.bind(null,f),b)}),void 0!==e&&(g.displayName=e),g);return this.abortSignal&&h.catch(k),h}}function k(){}},851899,a=>{"use strict";function b(a,b){let f=b&&b.cache?b.cache:g,h=b&&b.serializer?b.serializer:e;return(b&&b.strategy?b.strategy:function(a,b){var e,f;let g=1===a.length?c:d;return e=b.cache.create(),f=b.serializer,g.bind(this,a,e,f)})(a,{cache:f,serializer:h})}function c(a,b,c,d){let e=null==d||"number"==typeof d||"boolean"==typeof d?d:c(d),f=b.get(e);return void 0===f&&(f=a.call(this,d),b.set(e,f)),f}function d(a,b,c){let d=Array.prototype.slice.call(arguments,3),e=c(d),f=b.get(e);return void 0===f&&(f=a.apply(this,d),b.set(e,f)),f}let e=function(){return JSON.stringify(arguments)};class f{cache;constructor(){this.cache=Object.create(null)}get(a){return this.cache[a]}set(a,b){this.cache[a]=b}}let g={create:function(){return new f}};a.s(["memoize",()=>b,"strategies",0,{variadic:function(a,b){var c,e;return c=b.cache.create(),e=b.serializer,d.bind(this,a,c,e)},monadic:function(a,b){var d,e;return d=b.cache.create(),e=b.serializer,c.bind(this,a,d,e)}}])},294403,a=>{"use strict";function b(a,b){let c=a;return/^\/(\?.*)?$/.test(b)&&(b=b.slice(1)),c+=b}function c(a,b,c){return"string"==typeof a?a:a[b]||c}function d(a){let b=function(){try{return"true"===process.env._next_intl_trailing_slash}catch{return!1}}(),[c,...d]=a.split("#"),e=d.join("#"),f=c;if("/"!==f){let a=f.endsWith("/");b&&!a?f+="/":!b&&a&&(f=f.slice(0,-1))}return e&&(f+="#"+e),f}function e(a,b){let c=d(a),e=d(b);return g(c).test(e)}function f(a,b){return"never"!==b.mode&&b.prefixes?.[a]||"/"+a}function g(a){let b=a.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${b}$`)}function h(a){return a.includes("[[...")}function i(a){return a.includes("[...")}function j(a){return a.includes("[")}function k(a,b){let c=a.split("/"),d=b.split("/"),e=Math.max(c.length,d.length);for(let a=0;af,"getLocalizedTemplate",()=>c,"getSortedPathnames",()=>l,"isPromise",()=>m,"matchesPathname",()=>e,"normalizeTrailingSlash",()=>d,"prefixPathname",()=>b,"templateToRegex",()=>g])},78490,a=>{"use strict";a.s(["HEADER_LOCALE_NAME",()=>"X-NEXT-INTL-LOCALE"])},796653,a=>{"use strict";function b(a){return a}a.s(["getRequestConfig",()=>b],796653)},955289,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},888128,a=>{"use strict";let b=(0,a.i(783505).cache)(function(){return{locale:void 0}});function c(){return b().locale}function d(a){b().locale=a}a.s(["getCachedRequestLocale",()=>c,"setCachedRequestLocale",()=>d])},183751,a=>{"use strict";var b=a.i(783505),c=a.i(146319),d=a.i(450651),e=a.i(686122),f=(0,b.cache)(function(a,b){return function({_cache:a=(0,d.b)(),_formatters:b=(0,d.c)(a),getMessageFallback:c=e.d,messages:f,namespace:g,onError:h=e.b,...i}){return function({messages:a,namespace:b,...c},d){return a=a["!"],b=(0,e.r)(b,"!"),(0,e.a)({...c,messages:a,namespace:b})}({...i,onError:h,cache:a,formatters:b,getMessageFallback:c,messages:{"!":f},namespace:g?`!.${g}`:"!"},0)}({...a,namespace:b})}),g=(0,b.cache)(async function(a){let b,d;return"string"==typeof a?b=a:a&&(d=a.locale,b=a.namespace),f(await (0,c.default)(d),b)});a.s(["getTranslations",()=>g],183751)}];
//# debugId=7ae1189b-d784-91c9-ad4d-8f29cbe4910f
//# sourceMappingURL=%5Broot-of-the-server%5D__dd319889._.js.map