{"version":3,"file":"_httpFormDataReadBlob.mjs","names":[],"sources":["../../src/internal/_httpFormDataReadBlob.ts"],"sourcesContent":["/**\n * Read one form field as a Blob.\n *\n * A Blob passes through, a missing field is absent, `null` is null and other\n * text is kept for the assertion to reject.\n *\n * @evidence contracts/common.md#principled-implementation A Blob is passed through, a missing field is absent, the text `null` is null and any other text is returned unchanged for the validator to reject. It requires a global Blob, which exists in current runtimes.\n * @evidence contracts/common.md#clear-and-simple-design One conditional chain.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts No text is converted into a Blob.\n * @evidence contracts/common.md#meaningful-documentation A comment states the cases.\n */\nexport const _httpFormDataReadBlob = (\n  input: string | Blob | null,\n): Blob | null | undefined =>\n  input instanceof Blob\n    ? input\n    : input === null\n      ? undefined\n      : input === \"null\"\n        ? null\n        : (input as any);\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,yBACX,UAEA,iBAAiB,OACb,QACA,UAAU,OACR,KAAA,IACA,UAAU,SACR,OACC"}