"use strict";exports.id=671,exports.ids=[671],exports.modules={671:(a,b,c)=>{c.d(b,{INPROC_TOKEN_HEADER:()=>k,getInprocToken:()=>j});var d=c(77598),e=c(73024),f=c(76760),g=c(83498);let h="__madarxInprocToken",i=f.join(g.nJ,".inproc-token");function j(){let a=process.env.MADARX_INPROC_TICK_TOKEN;return a&&a.trim().length>0?a.trim():(globalThis[h]||(globalThis[h]=function(){try{let a=e.readFileSync(i,"utf8").trim();if(a)return a}catch{}let a=(0,d.randomBytes)(32).toString("base64url");try{e.mkdirSync(g.nJ,{recursive:!0});let b=e.openSync(i,"wx",384);try{e.writeSync(b,`${a}
`)}finally{e.closeSync(b)}try{e.chmodSync(i,384)}catch{}return a}catch{try{let a=e.readFileSync(i,"utf8").trim();if(a)return a}catch{}return a}}()),globalThis[h])}let k="x-inproc-token"}};