{"ast":null,"code":"\"use strict\";\n\nvar __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = {\n enumerable: true,\n get: function () {\n return m[k];\n }\n };\n }\n Object.defineProperty(o, k2, desc);\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\nvar __setModuleDefault = this && this.__setModuleDefault || (Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Value = exports.DescribeResult = exports.CursorEntry = exports.BatchResult = exports.StmtResult = exports.Error = void 0;\nconst js_base64_1 = require(\"js-base64\");\nconst errors_js_1 = require(\"../errors.js\");\nconst d = __importStar(require(\"../encoding/json/decode.js\"));\nfunction Error(obj) {\n const message = d.string(obj[\"message\"]);\n const code = d.stringOpt(obj[\"code\"]);\n return {\n message,\n code\n };\n}\nexports.Error = Error;\nfunction StmtResult(obj) {\n const cols = d.arrayObjectsMap(obj[\"cols\"], Col);\n const rows = d.array(obj[\"rows\"]).map(rowObj => d.arrayObjectsMap(rowObj, Value));\n const affectedRowCount = d.number(obj[\"affected_row_count\"]);\n const lastInsertRowidStr = d.stringOpt(obj[\"last_insert_rowid\"]);\n const lastInsertRowid = lastInsertRowidStr !== undefined ? BigInt(lastInsertRowidStr) : undefined;\n return {\n cols,\n rows,\n affectedRowCount,\n lastInsertRowid\n };\n}\nexports.StmtResult = StmtResult;\nfunction Col(obj) {\n const name = d.stringOpt(obj[\"name\"]);\n const decltype = d.stringOpt(obj[\"decltype\"]);\n return {\n name,\n decltype\n };\n}\nfunction BatchResult(obj) {\n const stepResults = new Map();\n d.array(obj[\"step_results\"]).forEach((value, i) => {\n if (value !== null) {\n stepResults.set(i, StmtResult(d.object(value)));\n }\n });\n const stepErrors = new Map();\n d.array(obj[\"step_errors\"]).forEach((value, i) => {\n if (value !== null) {\n stepErrors.set(i, Error(d.object(value)));\n }\n });\n return {\n stepResults,\n stepErrors\n };\n}\nexports.BatchResult = BatchResult;\nfunction CursorEntry(obj) {\n const type = d.string(obj[\"type\"]);\n if (type === \"step_begin\") {\n const step = d.number(obj[\"step\"]);\n const cols = d.arrayObjectsMap(obj[\"cols\"], Col);\n return {\n type: \"step_begin\",\n step,\n cols\n };\n } else if (type === \"step_end\") {\n const affectedRowCount = d.number(obj[\"affected_row_count\"]);\n const lastInsertRowidStr = d.stringOpt(obj[\"last_insert_rowid\"]);\n const lastInsertRowid = lastInsertRowidStr !== undefined ? BigInt(lastInsertRowidStr) : undefined;\n return {\n type: \"step_end\",\n affectedRowCount,\n lastInsertRowid\n };\n } else if (type === \"step_error\") {\n const step = d.number(obj[\"step\"]);\n const error = Error(d.object(obj[\"error\"]));\n return {\n type: \"step_error\",\n step,\n error\n };\n } else if (type === \"row\") {\n const row = d.arrayObjectsMap(obj[\"row\"], Value);\n return {\n type: \"row\",\n row\n };\n } else if (type === \"error\") {\n const error = Error(d.object(obj[\"error\"]));\n return {\n type: \"error\",\n error\n };\n } else {\n throw new errors_js_1.ProtoError(\"Unexpected type of CursorEntry\");\n }\n}\nexports.CursorEntry = CursorEntry;\nfunction DescribeResult(obj) {\n const params = d.arrayObjectsMap(obj[\"params\"], DescribeParam);\n const cols = d.arrayObjectsMap(obj[\"cols\"], DescribeCol);\n const isExplain = d.boolean(obj[\"is_explain\"]);\n const isReadonly = d.boolean(obj[\"is_readonly\"]);\n return {\n params,\n cols,\n isExplain,\n isReadonly\n };\n}\nexports.DescribeResult = DescribeResult;\nfunction DescribeParam(obj) {\n const name = d.stringOpt(obj[\"name\"]);\n return {\n name\n };\n}\nfunction DescribeCol(obj) {\n const name = d.string(obj[\"name\"]);\n const decltype = d.stringOpt(obj[\"decltype\"]);\n return {\n name,\n decltype\n };\n}\nfunction Value(obj) {\n const type = d.string(obj[\"type\"]);\n if (type === \"null\") {\n return null;\n } else if (type === \"integer\") {\n const value = d.string(obj[\"value\"]);\n return BigInt(value);\n } else if (type === \"float\") {\n return d.number(obj[\"value\"]);\n } else if (type === \"text\") {\n return d.string(obj[\"value\"]);\n } else if (type === \"blob\") {\n return js_base64_1.Base64.toUint8Array(d.string(obj[\"base64\"]));\n } else {\n throw new errors_js_1.ProtoError(\"Unexpected type of Value\");\n }\n}\nexports.Value = Value;","map":{"version":3,"names":["__createBinding","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__setModuleDefault","v","value","__importStar","mod","result","prototype","hasOwnProperty","call","exports","Value","DescribeResult","CursorEntry","BatchResult","StmtResult","Error","js_base64_1","require","errors_js_1","d","obj","message","string","code","stringOpt","cols","arrayObjectsMap","Col","rows","array","map","rowObj","affectedRowCount","number","lastInsertRowidStr","lastInsertRowid","BigInt","name","decltype","stepResults","Map","forEach","i","set","object","stepErrors","type","step","error","row","ProtoError","params","DescribeParam","DescribeCol","isExplain","boolean","isReadonly","Base64","toUint8Array"],"sources":["/Users/shoofle/Projects/the-forest/node_modules/@libsql/hrana-client/lib-cjs/shared/json_decode.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Value = exports.DescribeResult = exports.CursorEntry = exports.BatchResult = exports.StmtResult = exports.Error = void 0;\nconst js_base64_1 = require(\"js-base64\");\nconst errors_js_1 = require(\"../errors.js\");\nconst d = __importStar(require(\"../encoding/json/decode.js\"));\nfunction Error(obj) {\n const message = d.string(obj[\"message\"]);\n const code = d.stringOpt(obj[\"code\"]);\n return { message, code };\n}\nexports.Error = Error;\nfunction StmtResult(obj) {\n const cols = d.arrayObjectsMap(obj[\"cols\"], Col);\n const rows = d.array(obj[\"rows\"]).map((rowObj) => d.arrayObjectsMap(rowObj, Value));\n const affectedRowCount = d.number(obj[\"affected_row_count\"]);\n const lastInsertRowidStr = d.stringOpt(obj[\"last_insert_rowid\"]);\n const lastInsertRowid = lastInsertRowidStr !== undefined\n ? BigInt(lastInsertRowidStr) : undefined;\n return { cols, rows, affectedRowCount, lastInsertRowid };\n}\nexports.StmtResult = StmtResult;\nfunction Col(obj) {\n const name = d.stringOpt(obj[\"name\"]);\n const decltype = d.stringOpt(obj[\"decltype\"]);\n return { name, decltype };\n}\nfunction BatchResult(obj) {\n const stepResults = new Map();\n d.array(obj[\"step_results\"]).forEach((value, i) => {\n if (value !== null) {\n stepResults.set(i, StmtResult(d.object(value)));\n }\n });\n const stepErrors = new Map();\n d.array(obj[\"step_errors\"]).forEach((value, i) => {\n if (value !== null) {\n stepErrors.set(i, Error(d.object(value)));\n }\n });\n return { stepResults, stepErrors };\n}\nexports.BatchResult = BatchResult;\nfunction CursorEntry(obj) {\n const type = d.string(obj[\"type\"]);\n if (type === \"step_begin\") {\n const step = d.number(obj[\"step\"]);\n const cols = d.arrayObjectsMap(obj[\"cols\"], Col);\n return { type: \"step_begin\", step, cols };\n }\n else if (type === \"step_end\") {\n const affectedRowCount = d.number(obj[\"affected_row_count\"]);\n const lastInsertRowidStr = d.stringOpt(obj[\"last_insert_rowid\"]);\n const lastInsertRowid = lastInsertRowidStr !== undefined\n ? BigInt(lastInsertRowidStr) : undefined;\n return { type: \"step_end\", affectedRowCount, lastInsertRowid };\n }\n else if (type === \"step_error\") {\n const step = d.number(obj[\"step\"]);\n const error = Error(d.object(obj[\"error\"]));\n return { type: \"step_error\", step, error };\n }\n else if (type === \"row\") {\n const row = d.arrayObjectsMap(obj[\"row\"], Value);\n return { type: \"row\", row };\n }\n else if (type === \"error\") {\n const error = Error(d.object(obj[\"error\"]));\n return { type: \"error\", error };\n }\n else {\n throw new errors_js_1.ProtoError(\"Unexpected type of CursorEntry\");\n }\n}\nexports.CursorEntry = CursorEntry;\nfunction DescribeResult(obj) {\n const params = d.arrayObjectsMap(obj[\"params\"], DescribeParam);\n const cols = d.arrayObjectsMap(obj[\"cols\"], DescribeCol);\n const isExplain = d.boolean(obj[\"is_explain\"]);\n const isReadonly = d.boolean(obj[\"is_readonly\"]);\n return { params, cols, isExplain, isReadonly };\n}\nexports.DescribeResult = DescribeResult;\nfunction DescribeParam(obj) {\n const name = d.stringOpt(obj[\"name\"]);\n return { name };\n}\nfunction DescribeCol(obj) {\n const name = d.string(obj[\"name\"]);\n const decltype = d.stringOpt(obj[\"decltype\"]);\n return { name, decltype };\n}\nfunction Value(obj) {\n const type = d.string(obj[\"type\"]);\n if (type === \"null\") {\n return null;\n }\n else if (type === \"integer\") {\n const value = d.string(obj[\"value\"]);\n return BigInt(value);\n }\n else if (type === \"float\") {\n return d.number(obj[\"value\"]);\n }\n else if (type === \"text\") {\n return d.string(obj[\"value\"]);\n }\n else if (type === \"blob\") {\n return js_base64_1.Base64.toUint8Array(d.string(obj[\"base64\"]));\n }\n else {\n throw new errors_js_1.ProtoError(\"Unexpected type of Value\");\n }\n}\nexports.Value = Value;\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,eAAe,GAAI,IAAI,IAAI,IAAI,CAACA,eAAe,KAAMC,MAAM,CAACC,MAAM,GAAI,UAASC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAEC,EAAE,EAAE;EAC5F,IAAIA,EAAE,KAAKC,SAAS,EAAED,EAAE,GAAGD,CAAC;EAC5B,IAAIG,IAAI,GAAGP,MAAM,CAACQ,wBAAwB,CAACL,CAAC,EAAEC,CAAC,CAAC;EAChD,IAAI,CAACG,IAAI,KAAK,KAAK,IAAIA,IAAI,GAAG,CAACJ,CAAC,CAACM,UAAU,GAAGF,IAAI,CAACG,QAAQ,IAAIH,IAAI,CAACI,YAAY,CAAC,EAAE;IACjFJ,IAAI,GAAG;MAAEK,UAAU,EAAE,IAAI;MAAEC,GAAG,EAAE,SAAAA,CAAA,EAAW;QAAE,OAAOV,CAAC,CAACC,CAAC,CAAC;MAAE;IAAE,CAAC;EAC/D;EACAJ,MAAM,CAACc,cAAc,CAACZ,CAAC,EAAEG,EAAE,EAAEE,IAAI,CAAC;AACtC,CAAC,GAAK,UAASL,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAEC,EAAE,EAAE;EACxB,IAAIA,EAAE,KAAKC,SAAS,EAAED,EAAE,GAAGD,CAAC;EAC5BF,CAAC,CAACG,EAAE,CAAC,GAAGF,CAAC,CAACC,CAAC,CAAC;AAChB,CAAE,CAAC;AACH,IAAIW,kBAAkB,GAAI,IAAI,IAAI,IAAI,CAACA,kBAAkB,KAAMf,MAAM,CAACC,MAAM,GAAI,UAASC,CAAC,EAAEc,CAAC,EAAE;EAC3FhB,MAAM,CAACc,cAAc,CAACZ,CAAC,EAAE,SAAS,EAAE;IAAEU,UAAU,EAAE,IAAI;IAAEK,KAAK,E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