@prisma/orm-target-sqlite 8.0.0-rc.18-dev.15 → 8.0.0-rc.18-dev.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-Bp_4Bjff-Cuo0_i6q.d.mts → adapter-Bp_4Bjff-BTxxClhZ.d.mts} +6 -6
- package/dist/{adapter-Bp_4Bjff-Cuo0_i6q.d.mts.map → adapter-Bp_4Bjff-BTxxClhZ.d.mts.map} +1 -1
- package/dist/{adapter-BxyK_xh_.d.mts → adapter-DCJwUEs1.d.mts} +5 -5
- package/dist/{adapter-BxyK_xh_.d.mts.map → adapter-DCJwUEs1.d.mts.map} +1 -1
- package/dist/{adapter-CsuIDFCl-VPvqA3aN.mjs → adapter-DDJTOmkz-oCaiFLLe.mjs} +33 -10
- package/dist/adapter-DDJTOmkz-oCaiFLLe.mjs.map +1 -0
- package/dist/adapter.d.mts +12 -12
- package/dist/adapter.mjs +5 -5
- package/dist/adapter__adapter.d.mts +3 -3
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__codec-types.d.mts +3 -3
- package/dist/adapter__control.d.mts +4 -4
- package/dist/adapter__control.mjs +6 -6
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.d.mts +1 -1
- package/dist/adapter__runtime.mjs +3 -3
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.d.mts +2 -2
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/adapter__types.d.mts +3 -3
- package/dist/{aggregates-C0639xga.d.mts → aggregates-D-yzAlbC.d.mts} +3 -3
- package/dist/{aggregates-C0639xga.d.mts.map → aggregates-D-yzAlbC.d.mts.map} +1 -1
- package/dist/{aggregates-PwypcEux.mjs → aggregates-uX0RsRV6.mjs} +3 -3
- package/dist/{aggregates-PwypcEux.mjs.map → aggregates-uX0RsRV6.mjs.map} +1 -1
- package/dist/codec-descriptor-BU0P0hxL.d.mts +2 -0
- package/dist/{codec-descriptor-gH7UB_pk-B_gmTZ17.mjs → codec-descriptor-CbMiyuVV-CiLsv8hg.mjs} +4 -6
- package/dist/codec-descriptor-CbMiyuVV-CiLsv8hg.mjs.map +1 -0
- package/dist/{codec-descriptor-DRF3mQZS-BfVwEGvo.d.mts → codec-descriptor-DT3GA29e-D9jjnVIM.d.mts} +4 -4
- package/dist/codec-descriptor-DT3GA29e-D9jjnVIM.d.mts.map +1 -0
- package/dist/codec-descriptor-EUFGq72N-BlLkoKCl.d.mts +1 -0
- package/dist/codec-types-B8qP9uEQ.d.mts +1 -0
- package/dist/{codec-types-RGpo5mg_-DwdllfRp.d.mts → codec-types-Dc0O4bw9-52horJp9.d.mts} +6 -17
- package/dist/codec-types-Dc0O4bw9-52horJp9.d.mts.map +1 -0
- package/dist/codec-types-F0PNhRRc.d.mts +2 -0
- package/dist/{codecs-Bpnc9OO2-3poDEyWO.d.mts → codecs-BRjmk9zL-CawaAxP9.d.mts} +63 -69
- package/dist/codecs-BRjmk9zL-CawaAxP9.d.mts.map +1 -0
- package/dist/codecs-Bkcbpy67.d.mts +1 -0
- package/dist/{codecs-C2B4QuOX.mjs → codecs-Pw5Rhv0j.mjs} +3 -3
- package/dist/{codecs-C2B4QuOX.mjs.map → codecs-Pw5Rhv0j.mjs.map} +1 -1
- package/dist/{codecs-Ea350Hl_-Bgfsxc8G.mjs → codecs-xH8Su5NY-BAQqL40w.mjs} +151 -171
- package/dist/codecs-xH8Su5NY-BAQqL40w.mjs.map +1 -0
- package/dist/{contract-contributions-wweWdXMK-D6CBejlZ.mjs → contract-contributions-wweWdXMK-CFknr0Fo.mjs} +2 -2
- package/dist/{contract-contributions-wweWdXMK-D6CBejlZ.mjs.map → contract-contributions-wweWdXMK-CFknr0Fo.mjs.map} +1 -1
- package/dist/{control-B36x0WJy.mjs → control-UHPONhXc.mjs} +6 -6
- package/dist/{control-B36x0WJy.mjs.map → control-UHPONhXc.mjs.map} +1 -1
- package/dist/{control-FYHqV1AN.d.mts → control-h8LnSYCx.d.mts} +9 -6
- package/dist/control-h8LnSYCx.d.mts.map +1 -0
- package/dist/{data-type-entries-B-DjiLVo-B9t48xaX.mjs → data-type-entries-DgF-SCh4-DiJECfQS.mjs} +23 -7
- package/dist/data-type-entries-DgF-SCh4-DiJECfQS.mjs.map +1 -0
- package/dist/{data-types-B_k5-Ohy.d.mts → data-types-BHaRTChJ.d.mts} +13 -2
- package/dist/data-types-BHaRTChJ.d.mts.map +1 -0
- package/dist/data-types-Ca0aw_9L-lsSoq_OT.mjs +154 -0
- package/dist/data-types-Ca0aw_9L-lsSoq_OT.mjs.map +1 -0
- package/dist/default-normalizer-DE4HLhYD.d.mts +25 -0
- package/dist/default-normalizer-DE4HLhYD.d.mts.map +1 -0
- package/dist/default-normalizer-Dqs9eDih-BbhEd5KC.mjs +112 -0
- package/dist/default-normalizer-Dqs9eDih-BbhEd5KC.mjs.map +1 -0
- package/dist/{descriptor-meta-CthMyZ9m-BJfUmecN.mjs → descriptor-meta-Doaqem4j-j08bxUcB.mjs} +5 -5
- package/dist/{descriptor-meta-CthMyZ9m-BJfUmecN.mjs.map → descriptor-meta-Doaqem4j-j08bxUcB.mjs.map} +1 -1
- package/dist/{descriptor-meta-DrNwC4vO-BHbHnBqu.mjs → descriptor-meta-DrNwC4vO-DKdG2JPw.mjs} +3 -3
- package/dist/{descriptor-meta-DrNwC4vO-BHbHnBqu.mjs.map → descriptor-meta-DrNwC4vO-DKdG2JPw.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-Dqtz58eJ-BJ4UjLXW.mjs → descriptor-meta-runtime-CYn16fv9-BjDvboK_.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-Dqtz58eJ-BJ4UjLXW.mjs.map → descriptor-meta-runtime-CYn16fv9-BjDvboK_.mjs.map} +1 -1
- package/dist/{migration-DCerLxfE.mjs → migration-BPuVvYy9.mjs} +2 -2
- package/dist/{migration-DCerLxfE.mjs.map → migration-BPuVvYy9.mjs.map} +1 -1
- package/dist/{op-factory-call-DOyJsczD-DbvU0p5_.mjs → op-factory-call-BSdtE9zX-DXX9SRyR.mjs} +39 -57
- package/dist/op-factory-call-BSdtE9zX-DXX9SRyR.mjs.map +1 -0
- package/dist/{pack-DChRrSsM.d.mts → pack-DwVxqZPz.d.mts} +2 -2
- package/dist/{pack-DChRrSsM.d.mts.map → pack-DwVxqZPz.d.mts.map} +1 -1
- package/dist/{planner-Dwty_fUe-D0-TzhkE.mjs → planner-BDEI0AnB-jdBSlpo0.mjs} +8 -7
- package/dist/planner-BDEI0AnB-jdBSlpo0.mjs.map +1 -0
- package/dist/{planner-produced-sqlite-migration-DC-1t9EA-CNp-PgLE.mjs → planner-produced-sqlite-migration-C5tDf9P4-CX2OeCsX.mjs} +4 -4
- package/dist/{planner-produced-sqlite-migration-DC-1t9EA-CNp-PgLE.mjs.map → planner-produced-sqlite-migration-C5tDf9P4-CX2OeCsX.mjs.map} +1 -1
- package/dist/{render-ops-Z0s3TTq--ifvvn9yX.mjs → render-ops-C0Ee6SlU--RWTd7yC.mjs} +3 -3
- package/dist/{render-ops-Z0s3TTq--ifvvn9yX.mjs.map → render-ops-C0Ee6SlU--RWTd7yC.mjs.map} +1 -1
- package/dist/{runtime-zwgkZ8R0.d.mts → runtime-6kTtFyhW.d.mts} +2 -2
- package/dist/{runtime-zwgkZ8R0.d.mts.map → runtime-6kTtFyhW.d.mts.map} +1 -1
- package/dist/sql-renderer-Bbmr-Y7n.d.mts +1 -0
- package/dist/{sqlite-contract-view-TELBWEt4-CVsdZnpX.mjs → sqlite-contract-view-BGy91QuK-DpVFoeDA.mjs} +5 -3
- package/dist/sqlite-contract-view-BGy91QuK-DpVFoeDA.mjs.map +1 -0
- package/dist/{sqlite-migration-DTN2snAw-DW3tNXzB.mjs → sqlite-migration-BVGmtT-T-DON6OaVa.mjs} +16 -39
- package/dist/sqlite-migration-BVGmtT-T-DON6OaVa.mjs.map +1 -0
- package/dist/target.d.mts +11 -11
- package/dist/target.mjs +16 -16
- package/dist/target__aggregates.d.mts +1 -1
- package/dist/target__aggregates.mjs +1 -1
- package/dist/target__codec-descriptor.d.mts +2 -2
- package/dist/target__codec-descriptor.mjs +1 -1
- package/dist/target__codec-types.d.mts +3 -3
- package/dist/target__codecs.d.mts +2 -2
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__control.mjs +2 -2
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__default-normalizer.d.mts +2 -2
- package/dist/target__default-normalizer.mjs +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-produced-sqlite-migration.mjs +1 -1
- package/dist/target__planner.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.mjs +2 -2
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/types-Do0gYKCj.d.mts +2 -0
- package/dist/{types-RJMd2PlL-BpF9DGSQ.d.mts → types-RJMd2PlL-BT8T5Z6C.d.mts} +3 -3
- package/dist/{types-RJMd2PlL-BpF9DGSQ.d.mts.map → types-RJMd2PlL-BT8T5Z6C.d.mts.map} +1 -1
- package/package.json +9 -9
- package/dist/adapter-CsuIDFCl-VPvqA3aN.mjs.map +0 -1
- package/dist/codec-descriptor-BRAsa6-C-BgEz9r06.d.mts +0 -1
- package/dist/codec-descriptor-C_1o9b8y.d.mts +0 -2
- package/dist/codec-descriptor-DRF3mQZS-BfVwEGvo.d.mts.map +0 -1
- package/dist/codec-descriptor-gH7UB_pk-B_gmTZ17.mjs.map +0 -1
- package/dist/codec-types-Bq0ZnV7f.d.mts +0 -2
- package/dist/codec-types-Cm5wtfyY.d.mts +0 -1
- package/dist/codec-types-RGpo5mg_-DwdllfRp.d.mts.map +0 -1
- package/dist/codecs-Bpnc9OO2-3poDEyWO.d.mts.map +0 -1
- package/dist/codecs-DkmHzY5t.d.mts +0 -1
- package/dist/codecs-Ea350Hl_-Bgfsxc8G.mjs.map +0 -1
- package/dist/control-FYHqV1AN.d.mts.map +0 -1
- package/dist/data-type-entries-B-DjiLVo-B9t48xaX.mjs.map +0 -1
- package/dist/data-types-B_k5-Ohy.d.mts.map +0 -1
- package/dist/data-types-pFQMl37_-B-3aK_wd.mjs +0 -73
- package/dist/data-types-pFQMl37_-B-3aK_wd.mjs.map +0 -1
- package/dist/default-normalizer-B9V7TY5u.d.mts +0 -7
- package/dist/default-normalizer-B9V7TY5u.d.mts.map +0 -1
- package/dist/default-normalizer-Ch3VFnEH-C-h1XtlJ.mjs +0 -88
- package/dist/default-normalizer-Ch3VFnEH-C-h1XtlJ.mjs.map +0 -1
- package/dist/op-factory-call-DOyJsczD-DbvU0p5_.mjs.map +0 -1
- package/dist/planner-Dwty_fUe-D0-TzhkE.mjs.map +0 -1
- package/dist/sql-renderer-C9GzprOC.d.mts +0 -1
- package/dist/sqlite-contract-view-TELBWEt4-CVsdZnpX.mjs.map +0 -1
- package/dist/sqlite-migration-DTN2snAw-DW3tNXzB.mjs.map +0 -1
- package/dist/types-DMDJ_d9M.d.mts +0 -2
|
@@ -101,7 +101,7 @@ const sqliteAggregateDescriptors = [
|
|
|
101
101
|
codecId: SQLITE_BIGINT_NUMBER_CODEC_ID
|
|
102
102
|
},
|
|
103
103
|
nullable: false,
|
|
104
|
-
|
|
104
|
+
emptyResultWire: "0",
|
|
105
105
|
lower: castResultToText("count")
|
|
106
106
|
},
|
|
107
107
|
{
|
|
@@ -112,7 +112,7 @@ const sqliteAggregateDescriptors = [
|
|
|
112
112
|
codecId: SQLITE_BIGINT_CODEC_ID
|
|
113
113
|
},
|
|
114
114
|
nullable: false,
|
|
115
|
-
|
|
115
|
+
emptyResultWire: "0",
|
|
116
116
|
lower: castResultToText("count")
|
|
117
117
|
},
|
|
118
118
|
...INTEGER_CODECS.map((codecId) => produces("sum", {
|
|
@@ -137,4 +137,4 @@ const sqliteAggregateDescriptors = [
|
|
|
137
137
|
//#endregion
|
|
138
138
|
export { sqliteAggregateDescriptors as t };
|
|
139
139
|
|
|
140
|
-
//# sourceMappingURL=aggregates-
|
|
140
|
+
//# sourceMappingURL=aggregates-uX0RsRV6.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregates-
|
|
1
|
+
{"version":3,"file":"aggregates-uX0RsRV6.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/aggregates.mjs"],"sourcesContent":["import { a as SQLITE_INTEGER_CODEC_ID, d as SQL_INT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID, u as SQL_FLOAT_CODEC_ID } from \"./codec-ids-KMliSCRp.mjs\";\nimport { AggregateExpr, CastExpr } from \"@internal/sql-relational-core/ast\";\nimport { ifDefined } from \"@internal/utils/defined\";\n//#region src/core/aggregates.ts\n/** An aggregate whose result is one of the input values, so it carries the input's codec. */\nconst preservesInput = (operation, input) => ({\n\toperation,\n\tinput,\n\toutput: { kind: \"self\" },\n\tnullable: true\n});\n/**\n* Render the aggregate as text.\n*\n* SQLite computes an aggregate into an INTEGER, and the driver reads an integer\n* no JS number can hold as an error rather than a value — so an aggregate whose\n* result is a wide integer leaves the database through this cast, which is the\n* form both integer codecs read anyway. The hook builds the expression and\n* nothing else: which codec the result carries is the descriptor's `output` to\n* declare, not this function's to choose.\n*\n* The `operation` it names is the SQL aggregate the row computes with — its own\n* name for a bare operation, its bare namesake's for a lossless variant, whose\n* name the database does not know.\n*/\nconst castResultToText = (operation) => ({ expr }) => CastExpr.as(new AggregateExpr(operation, expr), \"text\");\n/** The integer results wider than the driver's numeric reads: one read exactly, one read as a `number` and guarded against the safe range. Both leave the database as text. */\nconst WIDE_INTEGER_CODECS = [SQLITE_BIGINT_CODEC_ID, SQLITE_BIGINT_NUMBER_CODEC_ID];\n/** An aggregate whose result is a new value, named by codec and without the input's type parameters. */\nconst produces = (operation, input, codecId) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true,\n\t...ifDefined(\"lower\", WIDE_INTEGER_CODECS.includes(codecId) ? castResultToText(operation) : void 0)\n});\n/** The same, for a lossless variant: an operation whose name the SQL alphabet does not carry, so its lowering names the aggregate it computes with. */\nconst producesVia = (operation, input, codecId, lower) => ({\n\toperation,\n\tinput,\n\toutput: {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t},\n\tnullable: true,\n\tlower\n});\n/** Codecs stored as SQLite integers. Their `sum` is an integer of up to 64 bits — past `sqlite/integer@1`'s range, and past the safe-integer range too, since a total of safe-range values is free to leave it. The bare form therefore guards and the lossless one carries. */\nconst INTEGER_CODECS = [\n\tSQLITE_INTEGER_CODEC_ID,\n\tSQLITE_BIGINT_CODEC_ID,\n\tSQLITE_BIGINT_NUMBER_CODEC_ID,\n\tSQL_INT_CODEC_ID\n];\n/** Codecs stored as SQLite reals. Their `sum` stays real. */\nconst REAL_CODECS = [SQLITE_REAL_CODEC_ID, SQL_FLOAT_CODEC_ID];\n/**\n* Codecs whose `min`/`max` returns the input value and whose traits do not already say so: SQLite compares blobs bytewise and text by its collation, so a datetime, a JSON document, and a blob each have a well-defined least and greatest — unlike the numeric and textual codecs, whose traits carry them.\n*/\nconst MIN_MAX_PRESERVING_CODECS = [\n\tSQLITE_DATETIME_CODEC_ID,\n\tSQLITE_JSON_CODEC_ID,\n\tSQLITE_BLOB_CODEC_ID\n];\nconst orderingDescriptors = (operation) => [\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"numeric\"\n\t}),\n\tpreservesInput(operation, {\n\t\tkind: \"trait\",\n\t\ttrait: \"textual\"\n\t}),\n\t...MIN_MAX_PRESERVING_CODECS.map((codecId) => preservesInput(operation, {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t})),\n\t{\n\t\toperation,\n\t\tinput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID\n\t\t},\n\t\toutput: { kind: \"self\" },\n\t\tnullable: true,\n\t\tlower: castResultToText(operation)\n\t}\n];\n/**\n* Every aggregate overload the SQLite target contributes. The adapter lists these on `types.aggregateDescriptors`, from where emission derives result types and the runtime builds its resolution registry.\n*/\nconst sqliteAggregateDescriptors = [\n\t{\n\t\toperation: \"count\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_NUMBER_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: castResultToText(\"count\")\n\t},\n\t{\n\t\toperation: \"countBigInt\",\n\t\tinput: { kind: \"any\" },\n\t\toutput: {\n\t\t\tkind: \"codec\",\n\t\t\tcodecId: SQLITE_BIGINT_CODEC_ID\n\t\t},\n\t\tnullable: false,\n\t\temptyResultWire: \"0\",\n\t\tlower: castResultToText(\"count\")\n\t},\n\t...INTEGER_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_BIGINT_NUMBER_CODEC_ID)),\n\t...INTEGER_CODECS.map((codecId) => producesVia(\"sumBigInt\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_BIGINT_CODEC_ID, castResultToText(\"sum\"))),\n\t...REAL_CODECS.map((codecId) => produces(\"sum\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_REAL_CODEC_ID)),\n\t...[...INTEGER_CODECS, ...REAL_CODECS].map((codecId) => produces(\"avg\", {\n\t\tkind: \"codec\",\n\t\tcodecId\n\t}, SQLITE_REAL_CODEC_ID)),\n\t...orderingDescriptors(\"min\"),\n\t...orderingDescriptors(\"max\")\n];\n//#endregion\nexport { sqliteAggregateDescriptors };\n\n//# sourceMappingURL=aggregates.mjs.map"],"mappings":";;;;;AAKA,MAAM,kBAAkB,WAAW,WAAW;CAC7C;CACA;CACA,QAAQ,EAAE,MAAM,OAAO;CACvB,UAAU;AACX;;;;;;;;;;;;;;;AAeA,MAAM,oBAAoB,eAAe,EAAE,WAAW,SAAS,GAAG,IAAI,cAAc,WAAW,IAAI,GAAG,MAAM;;AAE5G,MAAM,sBAAsB,CAAC,wBAAwB,6BAA6B;;AAElF,MAAM,YAAY,WAAW,OAAO,aAAa;CAChD;CACA;CACA,QAAQ;EACP,MAAM;EACN;CACD;CACA,UAAU;CACV,GAAG,UAAU,SAAS,oBAAoB,SAAS,OAAO,IAAI,iBAAiB,SAAS,IAAI,KAAK,CAAC;AACnG;;AAEA,MAAM,eAAe,WAAW,OAAO,SAAS,WAAW;CAC1D;CACA;CACA,QAAQ;EACP,MAAM;EACN;CACD;CACA,UAAU;CACV;AACD;;AAEA,MAAM,iBAAiB;CACtB;CACA;CACA;CACA;AACD;;AAEA,MAAM,cAAc,CAAC,sBAAsB,kBAAkB;;;;AAI7D,MAAM,4BAA4B;CACjC;CACA;CACA;AACD;AACA,MAAM,uBAAuB,cAAc;CAC1C,eAAe,WAAW;EACzB,MAAM;EACN,OAAO;CACR,CAAC;CACD,eAAe,WAAW;EACzB,MAAM;EACN,OAAO;CACR,CAAC;CACD,GAAG,0BAA0B,KAAK,YAAY,eAAe,WAAW;EACvE,MAAM;EACN;CACD,CAAC,CAAC;CACF;EACC;EACA,OAAO;GACN,MAAM;GACN,SAAS;EACV;EACA,QAAQ,EAAE,MAAM,OAAO;EACvB,UAAU;EACV,OAAO,iBAAiB,SAAS;CAClC;AACD;;;;AAIA,MAAM,6BAA6B;CAClC;EACC,WAAW;EACX,OAAO,EAAE,MAAM,MAAM;EACrB,QAAQ;GACP,MAAM;GACN,SAAS;EACV;EACA,UAAU;EACV,iBAAiB;EACjB,OAAO,iBAAiB,OAAO;CAChC;CACA;EACC,WAAW;EACX,OAAO,EAAE,MAAM,MAAM;EACrB,QAAQ;GACP,MAAM;GACN,SAAS;EACV;EACA,UAAU;EACV,iBAAiB;EACjB,OAAO,iBAAiB,OAAO;CAChC;CACA,GAAG,eAAe,KAAK,YAAY,SAAS,OAAO;EAClD,MAAM;EACN;CACD,GAAG,6BAA6B,CAAC;CACjC,GAAG,eAAe,KAAK,YAAY,YAAY,aAAa;EAC3D,MAAM;EACN;CACD,GAAG,wBAAwB,iBAAiB,KAAK,CAAC,CAAC;CACnD,GAAG,YAAY,KAAK,YAAY,SAAS,OAAO;EAC/C,MAAM;EACN;CACD,GAAG,oBAAoB,CAAC;CACxB,GAAG,CAAC,GAAG,gBAAgB,GAAG,WAAW,CAAC,CAAC,KAAK,YAAY,SAAS,OAAO;EACvE,MAAM;EACN;CACD,GAAG,oBAAoB,CAAC;CACxB,GAAG,oBAAoB,KAAK;CAC5B,GAAG,oBAAoB,KAAK;AAC7B"}
|
package/dist/{codec-descriptor-gH7UB_pk-B_gmTZ17.mjs → codec-descriptor-CbMiyuVV-CiLsv8hg.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
2
1
|
import { CodecDescriptorImpl, validateCodecTypeParams } from "@prisma/orm-framework/components/codec";
|
|
2
|
+
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
3
3
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
4
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-
|
|
4
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-CbMiyuVV.mjs
|
|
5
5
|
const SQLITE_CODEC_DESCRIPTOR_KIND = "sqlite-codec";
|
|
6
6
|
var SqliteCodecDescriptor = class extends CodecDescriptorImpl {
|
|
7
7
|
descriptorKind = SQLITE_CODEC_DESCRIPTOR_KIND;
|
|
@@ -18,7 +18,6 @@ var SqliteCodecDescriptor = class extends CodecDescriptorImpl {
|
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
var SqliteCodecDescriptorAdapter = class extends SqliteCodecDescriptor {
|
|
21
|
-
descriptor;
|
|
22
21
|
options;
|
|
23
22
|
dataType;
|
|
24
23
|
codecId;
|
|
@@ -29,7 +28,6 @@ var SqliteCodecDescriptorAdapter = class extends SqliteCodecDescriptor {
|
|
|
29
28
|
renderValueLiteral;
|
|
30
29
|
constructor(descriptor, options) {
|
|
31
30
|
super();
|
|
32
|
-
this.descriptor = descriptor;
|
|
33
31
|
this.options = options;
|
|
34
32
|
this.dataType = options.dataType.id;
|
|
35
33
|
this.codecId = descriptor.codecId;
|
|
@@ -42,7 +40,7 @@ var SqliteCodecDescriptorAdapter = class extends SqliteCodecDescriptor {
|
|
|
42
40
|
const renderValueLiteral = descriptor.renderValueLiteral;
|
|
43
41
|
if (renderValueLiteral !== void 0) this.renderValueLiteral = (value, side) => renderValueLiteral.call(descriptor, value, side);
|
|
44
42
|
}
|
|
45
|
-
factory = (params) => this.options.factory
|
|
43
|
+
factory = (params) => this.options.factory(this, this.options.dataType, params);
|
|
46
44
|
jsonProjection(expression, params) {
|
|
47
45
|
return this.options.jsonProjection(expression, params);
|
|
48
46
|
}
|
|
@@ -101,4 +99,4 @@ function candidateCodecId(value) {
|
|
|
101
99
|
//#endregion
|
|
102
100
|
export { sqliteCodec as a, isSqliteCodecDescriptor as i, buildSqliteCodecDescriptorRegistry as n, defineSqliteCodecs as r, SqliteCodecDescriptor as t };
|
|
103
101
|
|
|
104
|
-
//# sourceMappingURL=codec-descriptor-
|
|
102
|
+
//# sourceMappingURL=codec-descriptor-CbMiyuVV-CiLsv8hg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-descriptor-CbMiyuVV-CiLsv8hg.mjs","names":["#descriptors"],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-descriptor-CbMiyuVV.mjs"],"sourcesContent":["import { CodecDescriptorImpl, validateCodecTypeParams } from \"@internal/framework-components/codec\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/core/codec-descriptor.ts\nconst SQLITE_CODEC_DESCRIPTOR_KIND = \"sqlite-codec\";\nvar SqliteCodecDescriptor = class extends CodecDescriptorImpl {\n\tdescriptorKind = SQLITE_CODEC_DESCRIPTOR_KIND;\n\tprojectJson(expression, ref) {\n\t\tif (ref.many === true) throw structuredError(\"RUNTIME.CODEC_DESCRIPTOR_ARRAY_UNSUPPORTED\", `Codec '${ref.codecId}' uses CodecRef.many, but SQLite codec descriptors do not support stored scalar arrays.`, {\n\t\t\twhy: \"SQLite has no stored scalar-array codec protocol, so applying a scalar projection to the whole stored array would be ambiguous.\",\n\t\t\tfix: \"Use a scalar CodecRef or introduce an explicit target representation before projecting stored arrays.\",\n\t\t\tmeta: { codecId: ref.codecId }\n\t\t});\n\t\treturn this.jsonProjection(expression, this.validateParams(ref));\n\t}\n\tvalidateParams(ref) {\n\t\treturn blindCast(validateCodecTypeParams(this, ref));\n\t}\n};\nvar SqliteCodecDescriptorAdapter = class extends SqliteCodecDescriptor {\n\toptions;\n\tdataType;\n\tcodecId;\n\ttraits;\n\tparamsSchema;\n\trenderOutputType;\n\trenderInputType;\n\trenderValueLiteral;\n\tconstructor(descriptor, options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.dataType = options.dataType.id;\n\t\tthis.codecId = descriptor.codecId;\n\t\tthis.traits = descriptor.traits;\n\t\tthis.paramsSchema = blindCast(options.dataType.params);\n\t\tconst renderOutputType = descriptor.renderOutputType;\n\t\tif (renderOutputType !== void 0) this.renderOutputType = (params) => renderOutputType.call(descriptor, params);\n\t\tconst renderInputType = descriptor.renderInputType;\n\t\tif (renderInputType !== void 0) this.renderInputType = (params) => renderInputType.call(descriptor, params);\n\t\tconst renderValueLiteral = descriptor.renderValueLiteral;\n\t\tif (renderValueLiteral !== void 0) this.renderValueLiteral = (value, side) => renderValueLiteral.call(descriptor, value, side);\n\t}\n\tfactory = (params) => this.options.factory(this, this.options.dataType, params);\n\tjsonProjection(expression, params) {\n\t\treturn this.options.jsonProjection(expression, params);\n\t}\n};\nfunction sqliteCodec(descriptor, options) {\n\treturn blindCast(new SqliteCodecDescriptorAdapter(descriptor, options));\n}\nfunction defineSqliteCodecs(descriptors) {\n\treturn descriptors;\n}\nfunction isSqliteCodecDescriptor(value) {\n\treturn typeof value === \"object\" && value !== null && \"descriptorKind\" in value && value.descriptorKind === SQLITE_CODEC_DESCRIPTOR_KIND && \"codecId\" in value && typeof value.codecId === \"string\" && \"traits\" in value && Array.isArray(value.traits) && \"paramsSchema\" in value && (value.paramsSchema === void 0 || isObjectLike(value.paramsSchema) && \"~standard\" in value.paramsSchema && isObjectLike(value.paramsSchema[\"~standard\"]) && \"validate\" in value.paramsSchema[\"~standard\"] && typeof value.paramsSchema[\"~standard\"].validate === \"function\") && \"isParameterized\" in value && typeof value.isParameterized === \"boolean\" && \"factory\" in value && typeof value.factory === \"function\" && \"projectJson\" in value && typeof value.projectJson === \"function\";\n}\nfunction isObjectLike(value) {\n\treturn typeof value === \"object\" && value !== null || typeof value === \"function\";\n}\nvar SqliteCodecDescriptorRegistryImpl = class {\n\t#descriptors;\n\tconstructor(descriptors) {\n\t\tthis.#descriptors = descriptors;\n\t\tObject.freeze(this);\n\t}\n\tdescriptorFor(codecId) {\n\t\treturn this.#descriptors.get(codecId);\n\t}\n\t*values() {\n\t\tyield* this.#descriptors.values();\n\t}\n};\nfunction buildSqliteCodecDescriptorRegistry(descriptors) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (!isSqliteCodecDescriptor(descriptor)) {\n\t\t\tconst codecId = candidateCodecId(descriptor);\n\t\t\tthrow structuredError(\"RUNTIME.CODEC_DESCRIPTOR_INVALID\", `Codec descriptor '${codecId}' is not a valid SQLite codec descriptor.`, {\n\t\t\t\twhy: \"SQLite codec registries require the sqlite-codec discriminant and complete target descriptor methods.\",\n\t\t\t\tfix: \"Extend SqliteCodecDescriptor or adapt a generic descriptor with sqliteCodec().\",\n\t\t\t\tmeta: { codecId }\n\t\t\t});\n\t\t}\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate SQLite codec descriptor id '${descriptor.codecId}'.`, {\n\t\t\twhy: \"Each codecId must resolve to exactly one SQLite descriptor during registry composition.\",\n\t\t\tfix: \"Remove the duplicate target, adapter, or extension contribution.\",\n\t\t\tmeta: {\n\t\t\t\tcodecId: descriptor.codecId,\n\t\t\t\ttarget: \"sqlite\"\n\t\t\t}\n\t\t});\n\t\tbyId.set(descriptor.codecId, descriptor);\n\t}\n\treturn new SqliteCodecDescriptorRegistryImpl(byId);\n}\nfunction candidateCodecId(value) {\n\treturn typeof value === \"object\" && value !== null && \"codecId\" in value && typeof value.codecId === \"string\" ? value.codecId : \"<unknown>\";\n}\n//#endregion\nexport { sqliteCodec as a, isSqliteCodecDescriptor as i, buildSqliteCodecDescriptorRegistry as n, defineSqliteCodecs as r, SqliteCodecDescriptor as t };\n\n//# sourceMappingURL=codec-descriptor-CbMiyuVV.mjs.map"],"mappings":"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"}
|
package/dist/{codec-descriptor-DRF3mQZS-BfVwEGvo.d.mts → codec-descriptor-DT3GA29e-D9jjnVIM.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
2
2
|
import { AnyCodecDescriptor, AnyCodecDescriptorTemplate, Codec, CodecDescriptor, CodecDescriptorImpl, CodecDescriptorTemplate, CodecInstanceContext, CodecRef as CodecRef$1, CodecTrait, DataType } from "@prisma/orm-framework/components/codec";
|
|
3
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-
|
|
3
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-descriptor-DT3GA29e.d.mts
|
|
4
4
|
//#region src/core/codec-descriptor.d.ts
|
|
5
5
|
declare const SQLITE_CODEC_DESCRIPTOR_KIND: "sqlite-codec";
|
|
6
6
|
interface AnySqliteCodecDescriptor extends AnyCodecDescriptor {
|
|
@@ -24,9 +24,9 @@ interface SqliteCodecOptions<P, C extends Codec<string, readonly CodecTrait[], u
|
|
|
24
24
|
readonly dataType: DataType;
|
|
25
25
|
readonly jsonProjection: (expression: ProjectionExpr, params: P) => ProjectionExpr;
|
|
26
26
|
/**
|
|
27
|
-
* Builds the codec
|
|
27
|
+
* Builds the codec: the family codec, or a subclass with SQLite's own rules, constructed with `dataType` and the column's parameters, because a family template names no data type and so builds no codec of its own.
|
|
28
28
|
*/
|
|
29
|
-
readonly factory
|
|
29
|
+
readonly factory: (descriptor: SqliteCodecDescriptor<P>, dataType: DataType, params: P) => (ctx: CodecInstanceContext) => C;
|
|
30
30
|
}
|
|
31
31
|
type AdaptedSqliteCodecDescriptor<D extends AnyCodecDescriptorTemplate> = Pick<D, keyof CodecDescriptorTemplate<DescriptorParams<D>>> & Pick<CodecDescriptor, 'dataType'> & Pick<AnySqliteCodecDescriptor, 'descriptorKind' | 'projectJson'>;
|
|
32
32
|
declare function sqliteCodec<D extends AnyCodecDescriptorTemplate>(descriptor: D, options: SqliteCodecOptions<DescriptorParams<D>, DescriptorCodec<D>>): AdaptedSqliteCodecDescriptor<D>;
|
|
@@ -39,4 +39,4 @@ interface SqliteCodecDescriptorRegistry {
|
|
|
39
39
|
declare function buildSqliteCodecDescriptorRegistry(descriptors: ReadonlyArray<unknown>): SqliteCodecDescriptorRegistry;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { SqliteCodecOptions as a, isSqliteCodecDescriptor as c, SqliteCodecDescriptorRegistry as i, sqliteCodec as l, AnySqliteCodecDescriptor as n, buildSqliteCodecDescriptorRegistry as o, SqliteCodecDescriptor as r, defineSqliteCodecs as s, AdaptedSqliteCodecDescriptor as t };
|
|
42
|
-
//# sourceMappingURL=codec-descriptor-
|
|
42
|
+
//# sourceMappingURL=codec-descriptor-DT3GA29e-D9jjnVIM.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-descriptor-DT3GA29e-D9jjnVIM.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-descriptor-DT3GA29e.d.mts"],"mappings":";;;;cAGc;UACJ,iCAAiC;WAChC,uBAAuB;EAChC,YAAY,YAAY,gBAAgB,KAAK,aAAa;;uBAErC,sBAAsB,kBAAkB,oBAAoB,cAAc;WACtF;qBACU,eAAe,YAAY,gBAAgB,QAAQ,IAAI;EAC1E,YAAY,YAAY,gBAAgB,KAAK,aAAa;UAClD;;KAEL,iBAAiB,UAAU,8BAA8B,UAAU,8BAA8B,KAAK;;KAEtG,gBAAgB,UAAU,8BAA8B,WAAW,WAAW;UACzE,mBAAmB,GAAG,UAAU,uBAAuB,kCAAkC,uBAAuB;;;;;WAK/G,UAAU;WACV,iBAAiB,YAAY,gBAAgB,QAAQ,MAAM;;;;WAI3D,UAAU,YAAY,sBAAsB,IAAI,UAAU,UAAU,QAAQ,OAAO,KAAK,yBAAyB;;KAEvH,6BAA6B,UAAU,8BAA8B,KAAK,SAAS,wBAAwB,iBAAiB,OAAO,KAAK,+BAA+B,KAAK;iBAChK,YAAY,UAAU,4BAA4B,YAAY,GAAG,SAAS,mBAAmB,iBAAiB,IAAI,gBAAgB,MAAM,6BAA6B;iBACrK,yBAAyB,6BAA6B,4BAA4B,aAAa,cAAc;iBAC7G,wBAAwB,iBAAiB,SAAS;UACzD;EACR,cAAc,kBAAkB;EAChC,UAAU,iBAAiB;;iBAEZ,mCAAmC,aAAa,yBAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codec-descriptor-DT3GA29e-D9jjnVIM.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codec-types-F0PNhRRc.mjs";
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-
|
|
2
|
-
import "./codec-descriptor-
|
|
3
|
-
import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as
|
|
1
|
+
import { t as AdaptedSqliteCodecDescriptor } from "./codec-descriptor-DT3GA29e-D9jjnVIM.mjs";
|
|
2
|
+
import "./codec-descriptor-EUFGq72N-BlLkoKCl.mjs";
|
|
3
|
+
import { a as SqliteBlobDescriptor, c as SqliteIntegerDescriptor, d as SqliteTextDescriptor, i as SqliteBigintNumberDescriptor, l as SqliteJsonDescriptor, r as SqliteBigintDescriptor, s as SqliteDatetimeDescriptor, u as SqliteRealDescriptor } from "./codecs-BRjmk9zL-CawaAxP9.mjs";
|
|
4
4
|
import { ExtractCodecTypes } from "@prisma/orm-family-sql/relational-core/ast";
|
|
5
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codec-types-
|
|
5
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codec-types-Dc0O4bw9.d.mts
|
|
6
6
|
//#region src/exports/codec-types.d.ts
|
|
7
7
|
declare const codecDescriptorMap: {
|
|
8
8
|
readonly char: AdaptedSqliteCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlCharDescriptor>;
|
|
9
9
|
readonly varchar: AdaptedSqliteCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlVarcharDescriptor>;
|
|
10
|
-
readonly int: AdaptedSqliteCodecDescriptor<
|
|
11
|
-
factory(): (ctx: import("@prisma/orm-framework/components/codec").CodecInstanceContext) => SqliteSqlIntCodec;
|
|
12
|
-
readonly codecId: "sql/int@1";
|
|
13
|
-
readonly traits: readonly ["equality", "order", "numeric"];
|
|
14
|
-
readonly paramsSchema: undefined;
|
|
15
|
-
get isParameterized(): boolean;
|
|
16
|
-
renderOutputType?(params: void): string | undefined;
|
|
17
|
-
renderInputType?(params: void): string | undefined;
|
|
18
|
-
renderValueLiteral?(value: import("@prisma/orm-framework/contract/types").JsonValue, side: "output" | "input"): string | undefined;
|
|
19
|
-
readonly enumRefusal?: string;
|
|
20
|
-
readonly toCanonicalForm?: import("@prisma/orm-framework/components/codec").ToCanonicalForm;
|
|
21
|
-
}>;
|
|
10
|
+
readonly int: AdaptedSqliteCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlIntDescriptor>;
|
|
22
11
|
readonly float: AdaptedSqliteCodecDescriptor<import("@prisma/orm-family-sql/relational-core/ast").SqlFloatDescriptor>;
|
|
23
12
|
readonly text: SqliteTextDescriptor;
|
|
24
13
|
readonly integer: SqliteIntegerDescriptor;
|
|
@@ -33,4 +22,4 @@ type Resolve<T> = { readonly [K in keyof T]: { readonly [P in keyof T[K]]: T[K][
|
|
|
33
22
|
type CodecTypes = Resolve<ExtractCodecTypes<typeof codecDescriptorMap>>;
|
|
34
23
|
//#endregion
|
|
35
24
|
export { CodecTypes as t };
|
|
36
|
-
//# sourceMappingURL=codec-types-
|
|
25
|
+
//# sourceMappingURL=codec-types-Dc0O4bw9-52horJp9.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-types-Dc0O4bw9-52horJp9.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codec-types-Dc0O4bw9.d.mts"],"mappings":";;;;;;cAKc;WACH,MAAM,yEAAyE;WAC/E,SAAS,yEAAyE;WAClF,KAAK,yEAAyE;WAC9E,OAAO,yEAAyE;WAChF,MAAM;WACN,SAAS;WACT,MAAM;WACN,MAAM;WACN,UAAU;WACV,MAAM;WACN,QAAQ;WACR,cAAc;;KAEpB,QAAQ,iBAAiB,WAAW,gBAAgB,WAAW,EAAE,KAAK,EAAE,GAAG;KAC3E,aAAa,QAAQ,yBAAyB"}
|
|
@@ -1,11 +1,31 @@
|
|
|
1
|
-
import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-
|
|
1
|
+
import { i as SqliteCodecDescriptorRegistry, n as AnySqliteCodecDescriptor, r as SqliteCodecDescriptor } from "./codec-descriptor-DT3GA29e-D9jjnVIM.mjs";
|
|
2
2
|
import { a as SQLITE_INTEGER_CODEC_ID, c as SQLITE_TEXT_CODEC_ID, i as SQLITE_DATETIME_CODEC_ID, n as SQLITE_BIGINT_NUMBER_CODEC_ID, o as SQLITE_JSON_CODEC_ID, r as SQLITE_BLOB_CODEC_ID, s as SQLITE_REAL_CODEC_ID, t as SQLITE_BIGINT_CODEC_ID } from "./codec-ids-CzeDyMWW-BZAcI50I.mjs";
|
|
3
|
-
import { ProjectionExpr
|
|
4
|
-
import { CodecCallContext, CodecImpl, CodecInstanceContext, CodecRegistry,
|
|
3
|
+
import { ProjectionExpr } from "@prisma/orm-family-sql/relational-core/ast";
|
|
4
|
+
import { CodecCallContext, CodecImpl, CodecInstanceContext, CodecRegistry, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
6
6
|
import { ComponentMetadata } from "@prisma/orm-framework/components/components";
|
|
7
7
|
import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/query-lane-context";
|
|
8
|
-
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-
|
|
8
|
+
//#region ../../../3-targets/3-targets/sqlite/dist/codecs-BRjmk9zL.d.mts
|
|
9
|
+
//#region src/core/codec-helpers.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Local `JsonValue` alias for the SQLite target. Codec implementations live in `codecs.ts` (TML-2357); this module retains only the JSON-shape alias the surrounding adapter and tests still import.
|
|
12
|
+
*/
|
|
13
|
+
type JsonValue$1 = string | number | boolean | null | {
|
|
14
|
+
readonly [key: string]: JsonValue$1;
|
|
15
|
+
} | readonly JsonValue$1[];
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/core/codec-registry.d.ts
|
|
18
|
+
type CodecContributor = Pick<ComponentMetadata, 'types'>;
|
|
19
|
+
type SqliteCodecRegistry = CodecRegistry & SqliteCodecDescriptorRegistry;
|
|
20
|
+
declare function assembleSqliteCodecRegistry(target: CodecContributor, extensions: ReadonlyArray<CodecContributor>): SqliteCodecRegistry;
|
|
21
|
+
declare function createSqliteCodecRegistryWithBuiltins(codecDescriptors?: readonly AnySqliteCodecDescriptor[]): SqliteCodecRegistry;
|
|
22
|
+
/**
|
|
23
|
+
* Build a coherent SQLite codec registry populated with built-in descriptors only.
|
|
24
|
+
*
|
|
25
|
+
* The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.
|
|
26
|
+
*/
|
|
27
|
+
declare function createSqliteBuiltinCodecLookup(): SqliteCodecRegistry;
|
|
28
|
+
//#endregion
|
|
9
29
|
//#region src/core/codecs.d.ts
|
|
10
30
|
/**
|
|
11
31
|
* Re-applies SQLite's JSON subtype to a document-valued expression.
|
|
@@ -28,16 +48,11 @@ import { CodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/
|
|
|
28
48
|
* value that was never a document.
|
|
29
49
|
*/
|
|
30
50
|
declare const jsonDocumentRetag: (expression: ProjectionExpr) => ProjectionExpr;
|
|
31
|
-
/** `sql/int@1` as SQLite stores it: its canonical form is `sqlite/integer`'s digit text. */
|
|
32
|
-
declare class SqliteSqlIntCodec extends SqlIntCodec {
|
|
33
|
-
encodeJson(value: number): JsonValue;
|
|
34
|
-
decodeJson(json: JsonValue): number;
|
|
35
|
-
}
|
|
36
51
|
declare class SqliteTextCodec extends CodecImpl<typeof SQLITE_TEXT_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
toWire(value: string, _ctx: CodecCallContext): Promise<string>;
|
|
53
|
+
fromWire(wire: string, _ctx: CodecCallContext): Promise<string>;
|
|
54
|
+
fromDataTypeValue(value: DataTypeValue<string>): string;
|
|
55
|
+
toDataTypeValue(input: string): DataTypeValue;
|
|
41
56
|
}
|
|
42
57
|
declare class SqliteTextDescriptor extends SqliteCodecDescriptor<void> {
|
|
43
58
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
@@ -48,11 +63,11 @@ declare class SqliteTextDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
48
63
|
factory(): (ctx: CodecInstanceContext) => SqliteTextCodec;
|
|
49
64
|
}
|
|
50
65
|
declare const sqliteTextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteTextCodec, undefined>;
|
|
51
|
-
declare class SqliteIntegerCodec extends CodecImpl<typeof SQLITE_INTEGER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
66
|
+
declare class SqliteIntegerCodec extends CodecImpl<typeof SQLITE_INTEGER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | string, number> {
|
|
67
|
+
toWire(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
68
|
+
fromWire(wire: number | string, _ctx: CodecCallContext): Promise<number>;
|
|
69
|
+
fromDataTypeValue(value: DataTypeValue<string>): number;
|
|
70
|
+
toDataTypeValue(input: number): DataTypeValue;
|
|
56
71
|
}
|
|
57
72
|
declare class SqliteIntegerDescriptor extends SqliteCodecDescriptor<void> {
|
|
58
73
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
@@ -63,11 +78,11 @@ declare class SqliteIntegerDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
63
78
|
factory(): (ctx: CodecInstanceContext) => SqliteIntegerCodec;
|
|
64
79
|
}
|
|
65
80
|
declare const sqliteIntegerColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteIntegerCodec, undefined>;
|
|
66
|
-
declare class SqliteRealCodec extends CodecImpl<typeof SQLITE_REAL_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
81
|
+
declare class SqliteRealCodec extends CodecImpl<typeof SQLITE_REAL_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | string, number> {
|
|
82
|
+
toWire(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
83
|
+
fromWire(wire: number | string, _ctx: CodecCallContext): Promise<number>;
|
|
84
|
+
fromDataTypeValue(value: DataTypeValue<JsonValue>): number;
|
|
85
|
+
toDataTypeValue(input: number): DataTypeValue;
|
|
71
86
|
}
|
|
72
87
|
declare class SqliteRealDescriptor extends SqliteCodecDescriptor<void> {
|
|
73
88
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
@@ -78,11 +93,12 @@ declare class SqliteRealDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
78
93
|
factory(): (ctx: CodecInstanceContext) => SqliteRealCodec;
|
|
79
94
|
}
|
|
80
95
|
declare const sqliteRealColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteRealCodec, undefined>;
|
|
81
|
-
declare class SqliteBlobCodec extends CodecImpl<typeof SQLITE_BLOB_CODEC_ID, readonly ['equality'], Uint8Array, Uint8Array> {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
96
|
+
declare class SqliteBlobCodec extends CodecImpl<typeof SQLITE_BLOB_CODEC_ID, readonly ['equality'], Uint8Array | readonly string[], Uint8Array> {
|
|
97
|
+
toWire(value: Uint8Array, _ctx: CodecCallContext): Promise<Uint8Array>;
|
|
98
|
+
/** A row carries the blob's bytes; an include carries the array of their hex text that its projection writes, because SQLite's JSON functions refuse a blob. Anything else a BLOB column holds is refused. */
|
|
99
|
+
fromWire(wire: Uint8Array | readonly string[], _ctx: CodecCallContext): Promise<Uint8Array>;
|
|
100
|
+
fromDataTypeValue(value: DataTypeValue<string>): Uint8Array;
|
|
101
|
+
toDataTypeValue(input: Uint8Array): DataTypeValue;
|
|
86
102
|
}
|
|
87
103
|
declare class SqliteBlobDescriptor extends SqliteCodecDescriptor<void> {
|
|
88
104
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
@@ -94,14 +110,13 @@ declare class SqliteBlobDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
94
110
|
}
|
|
95
111
|
declare const sqliteBlobColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteBlobCodec, undefined>;
|
|
96
112
|
declare class SqliteDatetimeCodec extends CodecImpl<typeof SQLITE_DATETIME_CODEC_ID, readonly ['equality', 'order'], string, Date> {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
113
|
+
toWire(value: Date, _ctx: CodecCallContext): Promise<string>;
|
|
114
|
+
fromWire(wire: string | number, _ctx: CodecCallContext): Promise<Date>;
|
|
115
|
+
fromDataTypeValue(value: DataTypeValue<string>): Date;
|
|
116
|
+
toDataTypeValue(input: Date): DataTypeValue;
|
|
101
117
|
}
|
|
102
118
|
declare class SqliteDatetimeDescriptor extends SqliteCodecDescriptor<void> {
|
|
103
119
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
104
|
-
readonly toCanonicalForm: ToCanonicalForm;
|
|
105
120
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
106
121
|
readonly codecId: "sqlite/datetime@1";
|
|
107
122
|
readonly traits: readonly ["equality", "order"];
|
|
@@ -110,18 +125,17 @@ declare class SqliteDatetimeDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
110
125
|
}
|
|
111
126
|
declare const sqliteDatetimeColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteDatetimeCodec, undefined>;
|
|
112
127
|
declare class SqliteJsonCodec extends CodecImpl<typeof SQLITE_JSON_CODEC_ID, readonly ['equality'], string | JsonValue, JsonValue> {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
128
|
+
toWire(value: JsonValue, _ctx: CodecCallContext): Promise<string>;
|
|
129
|
+
fromWire(wire: string | JsonValue, _ctx: CodecCallContext): Promise<JsonValue>;
|
|
130
|
+
fromDataTypeValue(value: DataTypeValue<string>): JsonValue;
|
|
131
|
+
toDataTypeValue(input: JsonValue): DataTypeValue;
|
|
117
132
|
}
|
|
118
133
|
/**
|
|
119
|
-
* The column stores the document's JSON text and the
|
|
134
|
+
* The column stores the document's JSON text and the stored form is that text, so the stored
|
|
120
135
|
* value is projected as it is: a string the enclosing JSON constructor embeds as a string.
|
|
121
136
|
*/
|
|
122
137
|
declare class SqliteJsonDescriptor extends SqliteCodecDescriptor<void> {
|
|
123
138
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
124
|
-
readonly toCanonicalForm: ToCanonicalForm;
|
|
125
139
|
readonly dataType: import("@prisma/orm-framework/components/codec").DataTypeId;
|
|
126
140
|
readonly codecId: "sqlite/json@1";
|
|
127
141
|
readonly traits: readonly ["equality"];
|
|
@@ -130,7 +144,7 @@ declare class SqliteJsonDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
130
144
|
}
|
|
131
145
|
declare const sqliteJsonColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteJsonCodec, undefined>;
|
|
132
146
|
declare class SqliteBigintCodec extends CodecImpl<typeof SQLITE_BIGINT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, bigint> {
|
|
133
|
-
|
|
147
|
+
toWire(value: bigint, _ctx: CodecCallContext): Promise<number | bigint>;
|
|
134
148
|
/**
|
|
135
149
|
* The wire value is text wherever the value could outrun a JS number: an
|
|
136
150
|
* aggregate SQLite computes leaves the database through the descriptor's cast
|
|
@@ -139,9 +153,9 @@ declare class SqliteBigintCodec extends CodecImpl<typeof SQLITE_BIGINT_CODEC_ID,
|
|
|
139
153
|
* integer — past ±(2^53 − 1) it has already rounded, and converting it would
|
|
140
154
|
* mint a spuriously-exact `bigint` that need not equal the stored value.
|
|
141
155
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
156
|
+
fromWire(wire: number | bigint | string, _ctx: CodecCallContext): Promise<bigint>;
|
|
157
|
+
fromDataTypeValue(value: DataTypeValue<string>): bigint;
|
|
158
|
+
toDataTypeValue(input: bigint): DataTypeValue;
|
|
145
159
|
}
|
|
146
160
|
declare class SqliteBigintDescriptor extends SqliteCodecDescriptor<void> {
|
|
147
161
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
@@ -160,15 +174,15 @@ declare const sqliteBigintColumn: () => import("@prisma/orm-framework/components
|
|
|
160
174
|
* `sqlite/integer` carries, which every codec of that data type shares.
|
|
161
175
|
*/
|
|
162
176
|
declare class SqliteBigintNumberCodec extends CodecImpl<typeof SQLITE_BIGINT_NUMBER_CODEC_ID, readonly ['equality', 'order', 'numeric'], number | bigint | string, number> {
|
|
163
|
-
|
|
177
|
+
toWire(value: number, _ctx: CodecCallContext): Promise<number>;
|
|
164
178
|
/**
|
|
165
179
|
* The driver hands an INTEGER over as a `number` or, in safe-integer mode, a
|
|
166
180
|
* `bigint`; a bigint (or decimal text) is range-checked exactly before any
|
|
167
181
|
* conversion to `number`, so an out-of-range value throws rather than rounds.
|
|
168
182
|
*/
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
183
|
+
fromWire(wire: number | bigint | string, _ctx: CodecCallContext): Promise<number>;
|
|
184
|
+
fromDataTypeValue(value: DataTypeValue<string>): number;
|
|
185
|
+
toDataTypeValue(input: number): DataTypeValue;
|
|
172
186
|
}
|
|
173
187
|
declare class SqliteBigintNumberDescriptor extends SqliteCodecDescriptor<void> {
|
|
174
188
|
protected jsonProjection(expression: ProjectionExpr): ProjectionExpr;
|
|
@@ -181,26 +195,6 @@ declare class SqliteBigintNumberDescriptor extends SqliteCodecDescriptor<void> {
|
|
|
181
195
|
}
|
|
182
196
|
declare const sqliteBigintNumberColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqliteBigintNumberCodec, undefined>;
|
|
183
197
|
//#endregion
|
|
184
|
-
//#region src/core/codec-helpers.d.ts
|
|
185
|
-
/**
|
|
186
|
-
* Local `JsonValue` alias for the SQLite target. Codec implementations live in `codecs.ts` (TML-2357); this module retains only the JSON-shape alias the surrounding adapter and tests still import.
|
|
187
|
-
*/
|
|
188
|
-
type JsonValue$1 = string | number | boolean | null | {
|
|
189
|
-
readonly [key: string]: JsonValue$1;
|
|
190
|
-
} | readonly JsonValue$1[];
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region src/core/codec-registry.d.ts
|
|
193
|
-
type CodecContributor = Pick<ComponentMetadata, 'types'>;
|
|
194
|
-
type SqliteCodecRegistry = CodecRegistry & SqliteCodecDescriptorRegistry;
|
|
195
|
-
declare function assembleSqliteCodecRegistry(target: CodecContributor, extensions: ReadonlyArray<CodecContributor>): SqliteCodecRegistry;
|
|
196
|
-
declare function createSqliteCodecRegistryWithBuiltins(codecDescriptors?: readonly AnySqliteCodecDescriptor[]): SqliteCodecRegistry;
|
|
197
|
-
/**
|
|
198
|
-
* Build a coherent SQLite codec registry populated with built-in descriptors only.
|
|
199
|
-
*
|
|
200
|
-
* The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.
|
|
201
|
-
*/
|
|
202
|
-
declare function createSqliteBuiltinCodecLookup(): SqliteCodecRegistry;
|
|
203
|
-
//#endregion
|
|
204
198
|
//#region src/core/datetime-text.d.ts
|
|
205
199
|
/** The SQLite expression for the current instant, as the text `encodeSqliteDatetime` writes. */
|
|
206
200
|
declare const SQLITE_NOW_EXPRESSION = "strftime('%Y-%m-%dT%H:%M:%fZ','now')";
|
|
@@ -214,5 +208,5 @@ declare const SQLITE_NOW_EXPRESSION = "strftime('%Y-%m-%dT%H:%M:%fZ','now')";
|
|
|
214
208
|
declare const sqliteCodecRegistry: CodecDescriptorRegistry;
|
|
215
209
|
declare const sqliteCodecDescriptorRegistry: SqliteCodecDescriptorRegistry;
|
|
216
210
|
//#endregion
|
|
217
|
-
export {
|
|
218
|
-
//# sourceMappingURL=codecs-
|
|
211
|
+
export { sqliteJsonColumn as C, sqliteIntegerColumn as S, sqliteTextColumn as T, sqliteBigintNumberColumn as _, SqliteBlobDescriptor as a, sqliteCodecRegistry as b, SqliteIntegerDescriptor as c, SqliteTextDescriptor as d, assembleSqliteCodecRegistry as f, sqliteBigintColumn as g, jsonDocumentRetag as h, SqliteBigintNumberDescriptor as i, SqliteJsonDescriptor as l, createSqliteCodecRegistryWithBuiltins as m, SQLITE_NOW_EXPRESSION as n, SqliteCodecRegistry as o, createSqliteBuiltinCodecLookup as p, SqliteBigintDescriptor as r, SqliteDatetimeDescriptor as s, JsonValue$1 as t, SqliteRealDescriptor as u, sqliteBlobColumn as v, sqliteRealColumn as w, sqliteDatetimeColumn as x, sqliteCodecDescriptorRegistry as y };
|
|
212
|
+
//# sourceMappingURL=codecs-BRjmk9zL-CawaAxP9.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codecs-BRjmk9zL-CawaAxP9.d.mts","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs-BRjmk9zL.d.mts"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./codecs-BRjmk9zL-CawaAxP9.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-
|
|
2
|
-
import { t as codecDescriptors } from "./codecs-
|
|
1
|
+
import { n as buildSqliteCodecDescriptorRegistry } from "./codec-descriptor-CbMiyuVV-CiLsv8hg.mjs";
|
|
2
|
+
import { t as codecDescriptors } from "./codecs-xH8Su5NY-BAQqL40w.mjs";
|
|
3
3
|
import { extractCodecLookup } from "@prisma/orm-framework/components/control";
|
|
4
4
|
import { buildCodecDescriptorRegistry } from "@prisma/orm-family-sql/relational-core/codec-descriptor-registry";
|
|
5
5
|
//#region ../../../3-targets/3-targets/sqlite/dist/codecs.mjs
|
|
@@ -46,4 +46,4 @@ function createSqliteBuiltinCodecLookup() {
|
|
|
46
46
|
//#endregion
|
|
47
47
|
export { sqliteCodecRegistry as a, sqliteCodecDescriptorRegistry as i, createSqliteBuiltinCodecLookup as n, createSqliteCodecRegistryWithBuiltins as r, assembleSqliteCodecRegistry as t };
|
|
48
48
|
|
|
49
|
-
//# sourceMappingURL=codecs-
|
|
49
|
+
//# sourceMappingURL=codecs-Pw5Rhv0j.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-
|
|
1
|
+
{"version":3,"file":"codecs-Pw5Rhv0j.mjs","names":[],"sources":["../../../../3-targets/3-targets/sqlite/dist/codecs.mjs"],"sourcesContent":["import { n as buildSqliteCodecDescriptorRegistry } from \"./codec-descriptor-CbMiyuVV.mjs\";\nimport { a as sqliteBigintNumberColumn, c as sqliteIntegerColumn, d as sqliteTextColumn, i as sqliteBigintColumn, l as sqliteJsonColumn, o as sqliteBlobColumn, r as jsonDocumentRetag, s as sqliteDatetimeColumn, t as codecDescriptors, u as sqliteRealColumn } from \"./codecs-xH8Su5NY.mjs\";\nimport { n as SQLITE_NOW_EXPRESSION } from \"./datetime-text-Bniwehv-.mjs\";\nimport { extractCodecLookup } from \"@internal/framework-components/control\";\nimport { buildCodecDescriptorRegistry } from \"@internal/sql-relational-core/codec-descriptor-registry\";\n//#region src/core/registry.ts\n/**\n* Registry of every codec descriptor shipped by `@internal/target-sqlite`.\n*\n* Public consumer surface for the sqlite codec set: the sqlite adapter and any other consumer that needs to enumerate or look up a sqlite codec by id consumes this rather than the raw descriptor array. See ADR 208.\n*/\nconst sqliteCodecRegistry = buildCodecDescriptorRegistry(codecDescriptors);\nconst sqliteCodecDescriptorRegistry = buildSqliteCodecDescriptorRegistry(codecDescriptors);\n//#endregion\n//#region src/core/codec-registry.ts\nfunction descriptorsFrom(contributors) {\n\treturn contributors.flatMap((contributor) => contributor.types?.codecTypes?.codecDescriptors ?? []);\n}\nfunction buildSqliteCodecRegistry(descriptors) {\n\tconst descriptorRegistry = buildSqliteCodecDescriptorRegistry(descriptors);\n\tconst registry = {\n\t\t...extractCodecLookup([{\n\t\t\tid: \"sqlite-codecs\",\n\t\t\ttypes: { codecTypes: { codecDescriptors: Array.from(descriptorRegistry.values()) } }\n\t\t}]),\n\t\tdescriptorFor: (codecId) => descriptorRegistry.descriptorFor(codecId),\n\t\tvalues: () => descriptorRegistry.values()\n\t};\n\treturn Object.freeze(registry);\n}\nfunction assembleSqliteCodecRegistry(target, extensions) {\n\treturn buildSqliteCodecRegistry([\n\t\t...descriptorsFrom([target]),\n\t\t...sqliteCodecDescriptorRegistry.values(),\n\t\t...descriptorsFrom(extensions)\n\t]);\n}\nfunction createSqliteCodecRegistryWithBuiltins(codecDescriptors = []) {\n\treturn buildSqliteCodecRegistry([...sqliteCodecDescriptorRegistry.values(), ...codecDescriptors]);\n}\n/**\n* Build a coherent SQLite codec registry populated with built-in descriptors only.\n*\n* The returned registry supports both ordinary codec materialization and SQLite target behavior. Stack-composed paths build the same combined registry from target, full adapter, and ordered extension contributions.\n*/\nfunction createSqliteBuiltinCodecLookup() {\n\treturn createSqliteCodecRegistryWithBuiltins();\n}\n//#endregion\nexport { SQLITE_NOW_EXPRESSION, assembleSqliteCodecRegistry, createSqliteBuiltinCodecLookup, createSqliteCodecRegistryWithBuiltins, jsonDocumentRetag, sqliteBigintColumn, sqliteBigintNumberColumn, sqliteBlobColumn, sqliteCodecDescriptorRegistry, sqliteCodecRegistry, sqliteDatetimeColumn, sqliteIntegerColumn, sqliteJsonColumn, sqliteRealColumn, sqliteTextColumn };\n\n//# sourceMappingURL=codecs.mjs.map"],"mappings":";;;;;;;;;;AAWA,MAAM,sBAAsB,6BAA6B,gBAAgB;AACzE,MAAM,gCAAgC,mCAAmC,gBAAgB;AAGzF,SAAS,gBAAgB,cAAc;CACtC,OAAO,aAAa,SAAS,gBAAgB,YAAY,OAAO,YAAY,oBAAoB,CAAC,CAAC;AACnG;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,qBAAqB,mCAAmC,WAAW;CACzE,MAAM,WAAW;EAChB,GAAG,mBAAmB,CAAC;GACtB,IAAI;GACJ,OAAO,EAAE,YAAY,EAAE,kBAAkB,MAAM,KAAK,mBAAmB,OAAO,CAAC,EAAE,EAAE;EACpF,CAAC,CAAC;EACF,gBAAgB,YAAY,mBAAmB,cAAc,OAAO;EACpE,cAAc,mBAAmB,OAAO;CACzC;CACA,OAAO,OAAO,OAAO,QAAQ;AAC9B;AACA,SAAS,4BAA4B,QAAQ,YAAY;CACxD,OAAO,yBAAyB;EAC/B,GAAG,gBAAgB,CAAC,MAAM,CAAC;EAC3B,GAAG,8BAA8B,OAAO;EACxC,GAAG,gBAAgB,UAAU;CAC9B,CAAC;AACF;AACA,SAAS,sCAAsC,mBAAmB,CAAC,GAAG;CACrE,OAAO,yBAAyB,CAAC,GAAG,8BAA8B,OAAO,GAAG,GAAG,gBAAgB,CAAC;AACjG;;;;;;AAMA,SAAS,iCAAiC;CACzC,OAAO,sCAAsC;AAC9C"}
|