{"version":3,"file":"es-builtins-BHCXINQp.mjs","names":[],"sources":["../src/utils/es-builtins.ts"],"sourcesContent":["import * as globals from \"globals\";\n\ntype GlobalsShape = {\n  builtin?: Record<string, boolean>;\n  \"shared-node-browser\"?: Record<string, boolean>;\n  node?: Record<string, boolean>;\n};\n\nconst globalsMap: GlobalsShape =\n  (globals as unknown as { default?: GlobalsShape }).default ?? globals;\n\n/**\n * Runtime globals available in the PF execution environment.\n * Identifiers in this set are excluded from free variable detection\n * since they are always available in the runtime environment.\n *\n * Combines globals.builtin (ECMAScript language builtins) and\n * globals['shared-node-browser'] (shared runtime globals like\n * console, fetch, setTimeout, etc.) from the `globals` npm package.\n */\nexport const ES_BUILTINS = new Set([\n  ...Object.keys(globalsMap.builtin ?? {}),\n  ...Object.keys(globalsMap[\"shared-node-browser\"] ?? {}),\n]);\n\n/**\n * Node-only ambient globals (`process`, `Buffer`, `require`, `setImmediate`,\n * etc.) that `@types/node` puts in the global scope but that are absent from\n * `ES_BUILTINS`, so the Tailor Platform runtime never defines them. Sourced\n * from the same `globals` package as `ES_BUILTINS` instead of a hand-curated\n * list, so a newly recognized Node-only global can't be silently omitted.\n */\nexport const NODE_ONLY_GLOBALS = new Set(\n  Object.keys(globalsMap.node ?? {}).filter((name) => !ES_BUILTINS.has(name)),\n);\n"],"mappings":"0BAQA,MAAM,EACH,EAAkD,SAAW,EAWnD,EAAc,IAAI,IAAI,CACjC,GAAG,OAAO,KAAK,EAAW,SAAW,CAAC,CAAC,EACvC,GAAG,OAAO,KAAK,EAAW,wBAA0B,CAAC,CAAC,CACxD,CAAC,EASY,EAAoB,IAAI,IACnC,OAAO,KAAK,EAAW,MAAQ,CAAC,CAAC,CAAC,CAAC,OAAQ,GAAS,CAAC,EAAY,IAAI,CAAI,CAAC,CAC5E"}