{"version":3,"file":"validate.js","names":[],"sources":["esm/platform/screen-capture/validate.js"],"sourcesContent":["function validateViewTag(viewTag) {\n  if (!Number.isInteger(viewTag) || viewTag < 1 || viewTag > 2147483647)\n    throw new TypeError(\n      \"ScreenCapture.captureView requires a positive 32-bit integer view tag\"\n    );\n}\nconst preventDefaultKey = \"default\";\nfunction assertPreventKey(key, verb) {\n  if (typeof key !== \"string\" || key.length === 0)\n    throw new TypeError(`ScreenCapture.${verb} requires a non-empty string key`);\n}\nexport {\n  assertPreventKey,\n  preventDefaultKey,\n  validateViewTag\n};\n//# sourceMappingURL=validate.js.map\n"],"mappings":";AAAA,SAAS,gBAAgB,SAAS;CAChC,IAAI,CAAC,OAAO,UAAU,OAAO,KAAK,UAAU,KAAK,UAAU,YACzD,MAAM,IAAI,UACR,uEACF;AACJ;AACA,MAAM,oBAAoB;AAC1B,SAAS,iBAAiB,KAAK,MAAM;CACnC,IAAI,OAAO,QAAQ,YAAY,IAAI,WAAW,GAC5C,MAAM,IAAI,UAAU,iBAAiB,KAAK,iCAAiC;AAC/E"}