{"version":3,"file":"_jsonStringifyRest.mjs","names":[],"sources":["../../src/internal/_jsonStringifyRest.ts"],"sourcesContent":["/**\n * Turn a stringified bracketed body into a comma-led continuation.\n *\n * The surrounding brackets are removed; an empty body, which is two characters,\n * gives the empty string.\n *\n * @evidence contracts/common.md#principled-implementation The argument is the stringified tail of an array or object body, that is brackets around zero or more elements, and the function turns it into a comma-led continuation by stripping the brackets, with an empty body (two characters) giving the empty string, so a fixed prefix of tuple elements can be followed by the rest elements.\n * @evidence contracts/common.md#clear-and-simple-design One expression over one string.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts It relies on the caller's bracketed input and does not parse it.\n * @evidence contracts/common.md#meaningful-documentation A comment states the expected input and the empty case.\n */\nexport const _jsonStringifyRest = (str: string): string => {\n  return str.length === 2 ? \"\" : \",\" + str.substring(1, str.length - 1);\n};\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,sBAAsB,QAAwB;CACzD,OAAO,IAAI,WAAW,IAAI,KAAK,MAAM,IAAI,UAAU,GAAG,IAAI,SAAS,CAAC;AACtE"}