{"version":3,"file":"getMachineId-darwin-DcGT-99Y.mjs","names":["__require","require_execAsync","require_getMachineId_darwin","exports","execAsync_1","api_1","getMachineId","idLine","line","parts"],"sources":["../../../../node_modules/.pnpm/@opentelemetry+resources@2.8.0_@opentelemetry+api@1.9.1/node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-darwin.js"],"sourcesContent":["\"use strict\";\n/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getMachineId = void 0;\nconst execAsync_1 = require(\"./execAsync\");\nconst api_1 = require(\"@opentelemetry/api\");\nasync function getMachineId() {\n    try {\n        const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c \"IOPlatformExpertDevice\"');\n        const idLine = result.stdout\n            .split('\\n')\n            .find(line => line.includes('IOPlatformUUID'));\n        if (!idLine) {\n            return undefined;\n        }\n        const parts = idLine.split('\" = \"');\n        if (parts.length === 2) {\n            return parts[1].slice(0, -1);\n        }\n    }\n    catch (e) {\n        api_1.diag.debug(`error reading machine id: ${e}`);\n    }\n    return undefined;\n}\nexports.getMachineId = getMachineId;\n//# sourceMappingURL=getMachineId-darwin.js.map"],"ignoreList":[0],"mappings":"oHAKA,OAAO,eAAeG,EAAS,aAAc,CAAE,MAAO,EAAK,CAAC,EAC5D,EAAQ,aAAe,IAAK,GAC5B,IAAMC,EAAAH,EAAA,EACAI,EAAAL,EAAgB,oBAAoB,EAC1C,eAAeM,GAAe,CAC1B,GAAI,CAEA,IAAMC,GAAS,MADO,EAAGH,EAAY,UAAA,CAAW,wCAAwC,EAAA,CAClE,OACjB,MAAM;CAAI,CAAC,CACX,KAAK,GAAQI,EAAK,SAAS,gBAAgB,CAAC,EACjD,GAAI,CAACD,EACD,OAEJ,IAAME,EAAQF,EAAO,MAAM,OAAO,EAClC,GAAIE,EAAM,SAAW,EACjB,OAAOA,EAAM,EAAE,CAAC,MAAM,EAAG,EAAE,CAEnC,OACO,EAAG,CACNJ,EAAM,KAAK,MAAM,6BAA6B,GAAG,CACrD,CAEJ,CACA,EAAQ,aAAeC"}