!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(global,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>r,hudConfig:()=>o});const n={sink:{url:process.env.HUD_HOST||"https://api-prod.hud.io",timeout:5e3,session_attr:"X-Session-ID"},endpoints:{init:"sink/init",send:"sink/send",batch:"sink/batch",logs:"sink/logs",fatalError:"sink/redline",getMode:"sink/getMode"},logger:{default:{levels:{app:"warn",worker:"warn",instrument:"warn"},transports:{file:!0,console:!1}},verbose:{levels:{app:"info",worker:"info",instrument:"info"},transports:{file:!0,console:!0}},debug:{levels:{app:"debug",worker:"debug",instrument:"debug"},transports:{file:!0,console:!0}}},customerLoggerLevel:"info",hudModuleName:"@code-hud/hud-node-sdk",invocationSampling:new Map([[[300n,null],100],[[200n,300n],50],[[100n,200n],25],[[0n,100n],10]]),aggregationInterval:5e3,mainFlushInterval:100,callerResetInterval:36e5,modeInterval:3e5,logsSendInterval:6e4,logPerfInterval:3e5,endpointsInterval:18e5,endpointsFirstSendWaitTime:12e4,graphqlInterval:5e3,flowMetricInterval:5e3,huddBinWidth:1.2,detachOnInactivity:!1,inactivityDetachThreshold:1e4,workerGrace:6e4,workerTimeout:2e4,timeoutOnInit:3e4,workerMessageTimeout:1e4,communicationBatchSize:100,writePatched:!1,defaultOff:!0,disableOnBadApiKey:!0,disableOnBadServiceName:!0,cpuTimeCollection:!1,workloadMetadata:{sendInterval:3e5,aws:{imds:{baseURL:"http://169.254.169.254/latest",tokenURI:"/api/token",identityURI:"/dynamic/instance-identity/document",lifeCycleURI:"/meta-data/instance-life-cycle",requestTimeout:5e3},metadataFile:"/run/cloud-init/instance-data.json"},kubernetes:{namespaceFile:"/var/run/secrets/kubernetes.io/serviceaccount/namespace",uuidFile:"/sys/class/dmi/id/product_uuid",podMemoryLimitFile:"/sys/fs/cgroup/memory/memory.stat",podCPULimitFile:"/sys/fs/cgroup/cpuacct/cpu.shares"}},deleteLogsAfterSending:!0,supportSourceMap:{enable:!0,skipOnNodeFlag:!0},editInline:!0,bundlerBuildIdVarName:"hudFileBuildID",bundlerBuildUuidNamespace:"00c1e90b-af75-4d8e-9935-68485877f759",wrapVarPrefix:"_HUD",monitorNodeModules:[],frameworksToPatch:new Map([["express",{version:"<=4",patcher:"express"}],["koa",{version:"^2.0.0",patcher:"koa"}],["graphql/execution/execute",{version:"14 - 16",patcher:"graphql"}],["http",{version:"*",patcher:"http"}],["https",{version:"*",patcher:"http"}],["@nestjs/core/interceptors/interceptors-consumer",{version:"*",patcher:"nestjsInterceptor"}],["@nestjs/core/router/router-execution-context",{version:"*",patcher:"nestjsRouterExecutionContext"}]]),communicationKeepalive:!1,communicationKeepaliveGrace:5e3,maxWrappedFileSize:2831155,express:{routeNamesVarName:"hudRoutes",layerStateVarName:"hudState",markedVarName:"hudMarked",wrapAllCallbacks:!0},supportedNodeVersions:["18","20","21","22"],codegenMode:process.env.HUD_CODEGEN_MODE??"swc",hudPatchedName:"hudPatched",hudMetricName:"hudMetric"},o=function(e={}){return{...n,...e}}({logger:{default:{levels:{app:"info",worker:"info",instrument:"info"},transports:{file:!0,console:!1}},verbose:{levels:{app:"info",worker:"info",instrument:"info"},transports:{file:!0,console:!0}},debug:{levels:{app:"debug",worker:"debug",instrument:"debug"},transports:{file:!0,console:!0}}},deleteLogsAfterSending:!1,communicationKeepalive:!0}),r=o;return t})()));