@prisma/orm-target-postgres 8.0.0-rc.18-dev.25 → 8.0.0-rc.18-dev.27
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-UEtFYllx-DXa1Ekth.mjs → adapter-BkfuSVLm-DmjWB5c9.mjs} +14 -14
- package/dist/adapter-BkfuSVLm-DmjWB5c9.mjs.map +1 -0
- package/dist/{adapter-CA0jY1EK.d.mts → adapter-vfsQ80l6.d.mts} +3 -3
- package/dist/adapter-vfsQ80l6.d.mts.map +1 -0
- package/dist/adapter.d.mts +3 -4
- package/dist/adapter.mjs +6 -7
- package/dist/adapter__adapter.d.mts +1 -1
- package/dist/adapter__adapter.mjs +2 -2
- package/dist/adapter__control.d.mts +2 -3
- package/dist/adapter__control.mjs +8 -9
- package/dist/adapter__control.mjs.map +1 -1
- package/dist/adapter__runtime.mjs +6 -6
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/adapter__sql-renderer.mjs +1 -1
- package/dist/{authoring-mmK5aduF-BltVG_HJ.mjs → authoring-DhyLHFHA-pB4NuFxh.mjs} +5 -5
- package/dist/{authoring-mmK5aduF-BltVG_HJ.mjs.map → authoring-DhyLHFHA-pB4NuFxh.mjs.map} +1 -1
- package/dist/{autoincrement-widths-djl9Gw7k-C4Vk6s7I.mjs → autoincrement-widths-1v9UfTSw-NFaqRGCV.mjs} +3 -3
- package/dist/{autoincrement-widths-djl9Gw7k-C4Vk6s7I.mjs.map → autoincrement-widths-1v9UfTSw-NFaqRGCV.mjs.map} +1 -1
- package/dist/{check-expressions-DoxKokL1-RVvYRdA6.mjs → check-expressions-7uCCP01t-WtUqfqkP.mjs} +3 -3
- package/dist/{check-expressions-DoxKokL1-RVvYRdA6.mjs.map → check-expressions-7uCCP01t-WtUqfqkP.mjs.map} +1 -1
- package/dist/{codec-registry-CvKdYTYj-4xXqgKKs.mjs → codec-registry-T79ktJL4-B9_zlIhI.mjs} +4 -4
- package/dist/{codec-registry-CvKdYTYj-4xXqgKKs.mjs.map → codec-registry-T79ktJL4-B9_zlIhI.mjs.map} +1 -1
- package/dist/{codecs-D183NDmb-DKryvPH2.mjs → codecs-UZ1NEbvk-CMnI6Ti0.mjs} +3 -3
- package/dist/{codecs-D183NDmb-DKryvPH2.mjs.map → codecs-UZ1NEbvk-CMnI6Ti0.mjs.map} +1 -1
- package/dist/{contract-contributions-DrHk5h_E-BbmViVsC.mjs → contract-contributions-CQqafzSC-DrMFSSO4.mjs} +49 -40
- package/dist/contract-contributions-CQqafzSC-DrMFSSO4.mjs.map +1 -0
- package/dist/{contract-free-CiUW36L2.mjs → contract-free-Kwm74Hg9.mjs} +3 -3
- package/dist/{contract-free-CiUW36L2.mjs.map → contract-free-Kwm74Hg9.mjs.map} +1 -1
- package/dist/{control-policy-BdfDPcjX-BueP9PBT.mjs → control-policy-BHjZnca1-DUWuKmdJ.mjs} +65 -89
- package/dist/control-policy-BHjZnca1-DUWuKmdJ.mjs.map +1 -0
- package/dist/{control-l0spLFiu.d.mts → control-vBNwKZ7Q.d.mts} +6 -4
- package/dist/control-vBNwKZ7Q.d.mts.map +1 -0
- package/dist/{data-type-entries-KJ4Mn8C5-DY3rLz33.mjs → data-type-entries-CqnLlCkK-uN0WjREd.mjs} +3 -3
- package/dist/{data-type-entries-KJ4Mn8C5-DY3rLz33.mjs.map → data-type-entries-CqnLlCkK-uN0WjREd.mjs.map} +1 -1
- package/dist/{data-types-BkFfMhgz.d.mts → data-types-BTUMiCZS.d.mts} +5 -2
- package/dist/data-types-BTUMiCZS.d.mts.map +1 -0
- package/dist/{data-types-CQs1yW4F-CSexn8mK.mjs → data-types-Cs-LkJBw-CJN57Y5M.mjs} +4 -4
- package/dist/{data-types-CQs1yW4F-CSexn8mK.mjs.map → data-types-Cs-LkJBw-CJN57Y5M.mjs.map} +1 -1
- package/dist/{ddl-V9Yxnoa6-BcStSw33.mjs → ddl-2L13tYjC-enYPQJnG.mjs} +5 -5
- package/dist/{ddl-V9Yxnoa6-BcStSw33.mjs.map → ddl-2L13tYjC-enYPQJnG.mjs.map} +1 -1
- package/dist/{default-normalizer-BqFHmlox-CP8ywN-r.mjs → default-normalizer-BqK6XxdC-BAgxt9FF.mjs} +10 -12
- package/dist/default-normalizer-BqK6XxdC-BAgxt9FF.mjs.map +1 -0
- package/dist/{default-normalizer-CTAiFe9Y.d.mts → default-normalizer-P-u2VRBf.d.mts} +5 -5
- package/dist/default-normalizer-P-u2VRBf.d.mts.map +1 -0
- package/dist/{descriptor-meta-axWY-kHl-Bt2_NjH4.mjs → descriptor-meta-Bzs7kSyA-BjbnpZLW.mjs} +8 -8
- package/dist/{descriptor-meta-axWY-kHl-Bt2_NjH4.mjs.map → descriptor-meta-Bzs7kSyA-BjbnpZLW.mjs.map} +1 -1
- package/dist/{descriptor-meta-CvJvXGfx-CGIgsveo.mjs → descriptor-meta-DDh7-s6c-D6qC3SDx.mjs} +4 -4
- package/dist/{descriptor-meta-CvJvXGfx-CGIgsveo.mjs.map → descriptor-meta-DDh7-s6c-D6qC3SDx.mjs.map} +1 -1
- package/dist/{descriptor-meta-runtime-CMaPJG46-CPYTMJ7t.mjs → descriptor-meta-runtime-C1AjrKaP-CYer0qt7.mjs} +3 -3
- package/dist/{descriptor-meta-runtime-CMaPJG46-CPYTMJ7t.mjs.map → descriptor-meta-runtime-C1AjrKaP-CYer0qt7.mjs.map} +1 -1
- package/dist/{diff-database-schema-DLIpM5BX-DlEJquxk.mjs → diff-database-schema-DyCIRT80-C1zMCmRx.mjs} +7 -7
- package/dist/{diff-database-schema-DLIpM5BX-DlEJquxk.mjs.map → diff-database-schema-DyCIRT80-C1zMCmRx.mjs.map} +1 -1
- package/dist/{full-text-search-document-DbegbX0J-jrbc8kfp.mjs → full-text-search-document-Doy5TF7c-DezgYsP-.mjs} +3 -3
- package/dist/{full-text-search-document-DbegbX0J-jrbc8kfp.mjs.map → full-text-search-document-Doy5TF7c-DezgYsP-.mjs.map} +1 -1
- package/dist/{indexes-ca4Dxsym-By_PZuYD.d.mts → indexes-DtIXFHAb-DBubdl32.d.mts} +3 -2
- package/dist/indexes-DtIXFHAb-DBubdl32.d.mts.map +1 -0
- package/dist/{issue-planner-B3E9yChD.d.mts → issue-planner-DrWlNiAf.d.mts} +5 -6
- package/dist/issue-planner-DrWlNiAf.d.mts.map +1 -0
- package/dist/migration-CbOh59ZJ.mjs.map +1 -1
- package/dist/{migration-cGzKlTv0.d.mts → migration-DO23kNde.d.mts} +3 -3
- package/dist/{migration-cGzKlTv0.d.mts.map → migration-DO23kNde.d.mts.map} +1 -1
- package/dist/native-type-normalizer-DFE5L3YY.d.mts +30 -0
- package/dist/native-type-normalizer-DFE5L3YY.d.mts.map +1 -0
- package/dist/native-type-normalizer-a1XJSlk6.mjs +24 -0
- package/dist/native-type-normalizer-a1XJSlk6.mjs.map +1 -0
- package/dist/op-factory-call-CijzNDaJ.d.mts +1 -0
- package/dist/{op-factory-call-B-EoYQIO-BIfzqVX6.mjs → op-factory-call-No9Z2tdw-Lap8xvVy.mjs} +35 -27
- package/dist/op-factory-call-No9Z2tdw-Lap8xvVy.mjs.map +1 -0
- package/dist/{op-factory-call-z5TKsamx-DDfPa57U.d.mts → op-factory-call-kdPO0kgG-DV8hS6qA.d.mts} +10 -9
- package/dist/op-factory-call-kdPO0kgG-DV8hS6qA.d.mts.map +1 -0
- package/dist/{planner-BBGH1cAB.d.mts → planner-B_MRApHM.d.mts} +3 -3
- package/dist/{planner-BBGH1cAB.d.mts.map → planner-B_MRApHM.d.mts.map} +1 -1
- package/dist/{planner-BNoWx3rb-rkajA65G.mjs → planner-C1czBCmI-C-x1Ip-_.mjs} +10 -10
- package/dist/{planner-BNoWx3rb-rkajA65G.mjs.map → planner-C1czBCmI-C-x1Ip-_.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-Bo_8ozOV-AMIs8Og7.mjs → planner-ddl-builders-B8PhQZ2T-D1KBJxcS.mjs} +3 -3
- package/dist/{planner-ddl-builders-Bo_8ozOV-AMIs8Og7.mjs.map → planner-ddl-builders-B8PhQZ2T-D1KBJxcS.mjs.map} +1 -1
- package/dist/{planner-ddl-builders-Byw5BICu.d.mts → planner-ddl-builders-DbG9_uAk.d.mts} +3 -3
- package/dist/{planner-ddl-builders-Byw5BICu.d.mts.map → planner-ddl-builders-DbG9_uAk.d.mts.map} +1 -1
- package/dist/{planner-identity-values-Dr5FgyF1.d.mts → planner-identity-values-B-NAiN7I.d.mts} +3 -3
- package/dist/planner-identity-values-B-NAiN7I.d.mts.map +1 -0
- package/dist/{planner-identity-values--pbIuAZR-lgKcM-Zu.mjs → planner-identity-values-BnxSwhlS-CzyBeK0a.mjs} +3 -3
- package/dist/{planner-identity-values--pbIuAZR-lgKcM-Zu.mjs.map → planner-identity-values-BnxSwhlS-CzyBeK0a.mjs.map} +1 -1
- package/dist/{planner-produced-postgres-migration-sxhIP3Te-Cn3sD9zE.d.mts → planner-produced-postgres-migration-B6NsNaam-BmvloI2L.d.mts} +3 -3
- package/dist/planner-produced-postgres-migration-B6NsNaam-BmvloI2L.d.mts.map +1 -0
- package/dist/planner-produced-postgres-migration-BW8GJFjS.d.mts +1 -0
- package/dist/{planner-produced-postgres-migration-BIKLMKpf-B5h4hpvf.mjs → planner-produced-postgres-migration-F9joIngl-C04yYu-i.mjs} +4 -4
- package/dist/{planner-produced-postgres-migration-BIKLMKpf-B5h4hpvf.mjs.map → planner-produced-postgres-migration-F9joIngl-C04yYu-i.mjs.map} +1 -1
- package/dist/planner-sql-checks-CB4oLSuZ.d.mts +1 -0
- package/dist/planner-sql-checks-CxlrM4J2-VqQpmMwn.d.mts +37 -0
- package/dist/planner-sql-checks-CxlrM4J2-VqQpmMwn.d.mts.map +1 -0
- package/dist/planner-sql-checks-pkURMYMz-2QAIKyW-.mjs +139 -0
- package/dist/planner-sql-checks-pkURMYMz-2QAIKyW-.mjs.map +1 -0
- package/dist/{postgres-codec-traits-Da2UyO_9-BsGjYJHf.mjs → postgres-codec-traits-D3muwxMS-OwnBG0Mz.mjs} +3 -3
- package/dist/{postgres-codec-traits-Da2UyO_9-BsGjYJHf.mjs.map → postgres-codec-traits-D3muwxMS-OwnBG0Mz.mjs.map} +1 -1
- package/dist/{postgres-contract-view-csjnSNLt-M2QaYBn0.mjs → postgres-contract-view-B-bLZB7o-zpuamDXT.mjs} +7 -7
- package/dist/{postgres-contract-view-csjnSNLt-M2QaYBn0.mjs.map → postgres-contract-view-B-bLZB7o-zpuamDXT.mjs.map} +1 -1
- package/dist/{postgres-migration-BGkcs09r-BmUXCs80.mjs → postgres-migration-BbXm1l5I-DDy8IgYB.mjs} +15 -32
- package/dist/postgres-migration-BbXm1l5I-DDy8IgYB.mjs.map +1 -0
- package/dist/{postgres-migration-D6_R3__I-rFg_i2gz.d.mts → postgres-migration-CRLV93uK-ThJW3tFf.d.mts} +3 -3
- package/dist/{postgres-migration-D6_R3__I-rFg_i2gz.d.mts.map → postgres-migration-CRLV93uK-ThJW3tFf.d.mts.map} +1 -1
- package/dist/{postgres-schema-BtW3Sw0F-CH3NqoOo.mjs → postgres-schema-DyUXtYIT-vb-RxpRN.mjs} +3 -3
- package/dist/{postgres-schema-BtW3Sw0F-CH3NqoOo.mjs.map → postgres-schema-DyUXtYIT-vb-RxpRN.mjs.map} +1 -1
- package/dist/{prisma7-binding-XSuxkjqy.d.mts → prisma7-binding-C5RLV6kJ.d.mts} +12 -121
- package/dist/prisma7-binding-C5RLV6kJ.d.mts.map +1 -0
- package/dist/{prisma7-binding-ZUOUC530.mjs → prisma7-binding-CzO7rkpS.mjs} +80 -141
- package/dist/prisma7-binding-CzO7rkpS.mjs.map +1 -0
- package/dist/{render-ops-WhXRiDGu-LZMJf0aV.mjs → render-ops-MeXLgeOa-nL4PdJzz.mjs} +3 -3
- package/dist/{render-ops-WhXRiDGu-LZMJf0aV.mjs.map → render-ops-MeXLgeOa-nL4PdJzz.mjs.map} +1 -1
- package/dist/{resolve-ddl-schema-B8cX92k0-DzN6Alxy.mjs → resolve-ddl-schema-IdPEiyLX-BZGpy8Wz.mjs} +3 -3
- package/dist/{resolve-ddl-schema-B8cX92k0-DzN6Alxy.mjs.map → resolve-ddl-schema-IdPEiyLX-BZGpy8Wz.mjs.map} +1 -1
- package/dist/{sql-renderer-CD5aYQos-DZotmt9U.mjs → sql-renderer-CD5aYQos-1hGCWT0S.mjs} +3 -3
- package/dist/{sql-renderer-CD5aYQos-DZotmt9U.mjs.map → sql-renderer-CD5aYQos-1hGCWT0S.mjs.map} +1 -1
- package/dist/{sql-utils-DxE_vJt4-Dkjw9U45.mjs → sql-utils-Bnw3JbWf-zvWDkyrr.mjs} +3 -178
- package/dist/sql-utils-Bnw3JbWf-zvWDkyrr.mjs.map +1 -0
- package/dist/target.d.mts +17 -16
- package/dist/target.mjs +29 -29
- package/dist/target__codecs.mjs +2 -2
- package/dist/target__contract-free.mjs +3 -3
- package/dist/target__control.mjs +2558 -3
- package/dist/target__control.mjs.map +1 -0
- package/dist/target__data-types.d.mts +2 -2
- package/dist/target__data-types.mjs +3 -3
- package/dist/target__default-normalizer.d.mts +1 -1
- package/dist/target__default-normalizer.mjs +1 -1
- package/dist/target__diff-database-schema.mjs +1 -1
- package/dist/target__full-text-index-authoring.mjs +1 -1
- package/dist/target__issue-planner.d.mts +1 -1
- package/dist/target__issue-planner.mjs +1 -1
- package/dist/target__migration.d.mts +2 -2
- package/dist/target__migration.mjs +2 -2
- package/dist/target__native-type-normalizer.d.mts +2 -2
- package/dist/target__native-type-normalizer.mjs +2 -2
- package/dist/target__op-factory-call.d.mts +2 -2
- package/dist/target__op-factory-call.mjs +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__planner-ddl-builders.d.mts +1 -1
- package/dist/target__planner-ddl-builders.mjs +1 -1
- package/dist/target__planner-identity-values.d.mts +1 -1
- package/dist/target__planner-identity-values.mjs +1 -1
- package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
- package/dist/target__planner-produced-postgres-migration.mjs +1 -1
- package/dist/target__planner-sql-checks.d.mts +3 -2
- package/dist/target__planner-sql-checks.mjs +2 -2
- package/dist/target__planner.d.mts +1 -1
- package/dist/target__planner.mjs +2 -2
- package/dist/target__prisma7-binding.d.mts +1 -1
- package/dist/target__prisma7-binding.mjs +1 -1
- package/dist/target__render-ops.mjs +1 -1
- package/dist/target__runtime.mjs +5 -5
- package/dist/target__runtime.mjs.map +1 -1
- package/dist/target__schema-ir-annotations.mjs +1 -1
- package/dist/target__sql-utils.mjs +2 -2
- package/dist/target__types.mjs +2 -2
- package/dist/{infer-psl-contract-CKP3nwjB-x1_ji7Z9.mjs → type-constructors-CrNUrtwZ-dmWF-mtV.mjs} +385 -15
- package/dist/type-constructors-CrNUrtwZ-dmWF-mtV.mjs.map +1 -0
- package/package.json +9 -9
- package/dist/adapter-CA0jY1EK.d.mts.map +0 -1
- package/dist/adapter-UEtFYllx-DXa1Ekth.mjs.map +0 -1
- package/dist/contract-contributions-DrHk5h_E-BbmViVsC.mjs.map +0 -1
- package/dist/control-CwTFk4YS.mjs +0 -2929
- package/dist/control-CwTFk4YS.mjs.map +0 -1
- package/dist/control-l0spLFiu.d.mts.map +0 -1
- package/dist/control-policy-BdfDPcjX-BueP9PBT.mjs.map +0 -1
- package/dist/data-types-BkFfMhgz.d.mts.map +0 -1
- package/dist/default-normalizer-BqFHmlox-CP8ywN-r.mjs.map +0 -1
- package/dist/default-normalizer-CTAiFe9Y.d.mts.map +0 -1
- package/dist/indexes-ca4Dxsym-By_PZuYD.d.mts.map +0 -1
- package/dist/infer-psl-contract-CKP3nwjB-x1_ji7Z9.mjs.map +0 -1
- package/dist/issue-planner-B3E9yChD.d.mts.map +0 -1
- package/dist/native-type-normalizer-BFo5tSyh.d.mts +0 -37
- package/dist/native-type-normalizer-BFo5tSyh.d.mts.map +0 -1
- package/dist/native-type-normalizer-CwyVR7xB.mjs +0 -96
- package/dist/native-type-normalizer-CwyVR7xB.mjs.map +0 -1
- package/dist/op-factory-call-B-EoYQIO-BIfzqVX6.mjs.map +0 -1
- package/dist/op-factory-call-uVDKZqw1.d.mts +0 -1
- package/dist/op-factory-call-z5TKsamx-DDfPa57U.d.mts.map +0 -1
- package/dist/planner-identity-values-Dr5FgyF1.d.mts.map +0 -1
- package/dist/planner-produced-postgres-migration-D-ZcNy7h.d.mts +0 -1
- package/dist/planner-produced-postgres-migration-sxhIP3Te-Cn3sD9zE.d.mts.map +0 -1
- package/dist/planner-sql-checks-C54jJ5qt.d.mts +0 -39
- package/dist/planner-sql-checks-C54jJ5qt.d.mts.map +0 -1
- package/dist/planner-sql-checks-pAQfWJz_-CosbjrRp.mjs +0 -132
- package/dist/planner-sql-checks-pAQfWJz_-CosbjrRp.mjs.map +0 -1
- package/dist/postgres-migration-BGkcs09r-BmUXCs80.mjs.map +0 -1
- package/dist/prisma7-binding-XSuxkjqy.d.mts.map +0 -1
- package/dist/prisma7-binding-ZUOUC530.mjs.map +0 -1
- package/dist/sql-utils-DxE_vJt4-Dkjw9U45.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codecs-D183NDmb-DKryvPH2.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/codecs-D183NDmb.mjs"],"sourcesContent":["import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID } from \"./codec-ids-Cb0yO-IS.mjs\";\nimport { a as errorTemporalUnrepresentable, c as postgresError, i as errorTemporalUnavailableForDefault, n as errorTemporalNonIsoCalendar, o as errorTemporalWrongType, r as errorTemporalUnavailable, s as errorTimestampTextWrongType } from \"./errors-BrhQYgdL.mjs\";\nimport { A as pgTimestamptz, B as postgresYearText, C as pgPrecisionParams, E as pgTime, F as pgUuid, G as intervalFieldsOf, H as ISO_DURATION, I as pgVarbit, K as microsFromFraction, L as pgVarchar, M as pgTimetz, O as pgTimestamp, P as pgTsquery, S as pgNumericParams, T as pgTextArray, U as MICROS_PER_SECOND, V as BYTEA_TEXT, W as formatIsoDuration, X as postgresIntervalFields, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, d as pgEnumParams, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptzStoredText, m as pgInet, n as pgBit, o as pgChar, p as pgFloat8, r as pgBitLengthParams, s as pgCharacterLengthParams, u as pgEnum, v as pgInterval, w as pgText, x as pgNumeric, y as pgJson, z as isoYearText } from \"./data-types-CQs1yW4F.mjs\";\nimport { a as postgresCodec, r as definePostgresCodecs, t as PostgresCodecDescriptor } from \"./codec-descriptor-DSMjoW72.mjs\";\nimport \"./namespace-ids-xtp_ZY86.mjs\";\nimport { t as PostgresNativeEnum } from \"./postgres-native-enum-CdP3b_-R.mjs\";\nimport { CastExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlTextCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlTextDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { numeralText } from \"@internal/sql-contract/data-type\";\nimport { storedNumeralText } from \"@internal/sql-contract/data-type-support\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\nimport { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, floatToJson, isNonFiniteText, readJsonFloat, readJsonIntegerText, refuseJsonValue, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { parse } from \"postgres-array\";\n//#region src/core/codec-helpers.ts\n/**\n* A `numeric` value as its canonical decimal text. A number is written out without an exponent,\n* because `numeric` text has no exponent syntax and `toDataTypeValue` refuses one.\n*/\nconst pgNumericDecode = (wire) => {\n\tif (typeof wire === \"number\") return numeralText(wire);\n\treturn wire;\n};\nconst DECIMAL_INTEGER = /^-?\\d+$/;\n/**\n* Requires an application value to be of the JS type the codec reads.\n*\n* A range check reads a value of the wrong type as a value out of range, and\n* reports a number plainly inside the range as outside it — so the type is\n* established first and answered for on its own terms, naming what a caller\n* has to change.\n*/\nconst requireJsType = (codecId, expected, value) => {\n\tif (typeof value === expected) return;\n\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a ${expected}, got ${typeof value} ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: typeof value\n\t} });\n};\n/** Writes a `bigint` application value as the decimal text the wire form of the exact integer codecs carries. */\nconst pgBigintEncode = (codecId, value) => {\n\trequireJsType(codecId, \"bigint\", value);\n\treturn value.toString();\n};\n/**\n* Writes an application value as the decimal text these codecs carry as their\n* canonical JSON.\n*\n* A schema-written literal default (`BigInt @default(0)`) arrives here as a\n* `number`, since a number literal is the only integer a schema language\n* writes, and one that is a safe integer names its value exactly. Past that\n* range the literal was rounded before any of this ran, so the value written is\n* not the value meant — which this refuses rather than minting an exact-looking\n* total from it. A non-integral number is refused on the same terms.\n*/\nconst pgBigintDigits = (codecId, value) => {\n\tif (typeof value !== \"number\") return pgBigintEncode(codecId, value);\n\tif (!Number.isSafeInteger(value)) throw postgresError(\"RUNTIME.ENCODE_FAILED\", `${codecId} number literal must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn BigInt(value).toString();\n};\n/**\n* Reads a wire or JSON value as a `bigint`, rejecting anything `BigInt()` would\n* misread. A number-typed wire value must also be a safe integer: past\n* ±(2^53 − 1) the driver's `number` has already rounded, so stringifying it\n* would mint a spuriously-exact `bigint` that need not equal the stored value.\n*/\nconst decimalIntegerDecode = (codecId, wire) => {\n\tif (typeof wire === \"bigint\") return wire;\n\tconst text = String(wire);\n\tif (!DECIMAL_INTEGER.test(text)) throw postgresError(\"RUNTIME.DECODE_FAILED\", `${codecId} value must be a decimal integer`, { meta: {\n\t\tcodecId,\n\t\treceived: text\n\t} });\n\tif (typeof wire === \"number\" && !Number.isSafeInteger(wire)) throw postgresError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire number must be an integer within the safe integer range, got ${text}`, { meta: {\n\t\tcodecId,\n\t\treceived: text\n\t} });\n\treturn BigInt(text);\n};\n/** Reads an `int8` wire or JSON value as a `bigint`, rejecting anything `BigInt()` would misread. */\nconst pgInt8Decode = (wire) => decimalIntegerDecode(\"pg/int8@1\", wire);\n/**\n* Reads an unconstrained-`numeric` wire or JSON value as a `bigint`, rejecting\n* non-integral values — including `NaN` and the infinities, which are `numeric`\n* values but not integers.\n*/\nconst pgUnboundedIntDecode = (wire) => decimalIntegerDecode(\"pg/unboundedint@1\", wire);\n/**\n* A SQL number literal has no form for `NaN` or the infinities; PostgreSQL reads and writes them as\n* the text `NaN`, `Infinity`, `-Infinity`, so the float codecs carry them as that text on the wire,\n* as `floatToJson` does in JSON.\n*/\nconst pgFloatEncode = (value) => Number.isFinite(value) ? value : String(value);\n/**\n* Requires an integer within ±(2^53 − 1), the range a JS `number` holds\n* exactly. The guard throws rather than rounding: past the boundary a `number`\n* silently loses digits, which is the failure mode this codec exists to refuse.\n*/\nconst pgInt8NumberGuard = (code, value) => {\n\tif (!Number.isSafeInteger(value)) throw postgresError(code, `pg/int8number@1 value must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId: \"pg/int8number@1\",\n\t\treceived: String(value)\n\t} });\n\treturn value;\n};\nconst pgInt8NumberEncode = (value) => {\n\trequireJsType(\"pg/int8number@1\", \"number\", value);\n\treturn String(pgInt8NumberGuard(\"RUNTIME.ENCODE_FAILED\", value));\n};\n/**\n* Reads an `int8` wire value as a `number`, throwing outside ±(2^53 − 1) and on\n* non-integral input. Decimal text goes through `BigInt` before the range check\n* so an out-of-range value is compared exactly rather than after rounding.\n*/\nconst pgInt8NumberDecode = (wire) => {\n\tif (typeof wire === \"number\") return pgInt8NumberGuard(\"RUNTIME.DECODE_FAILED\", wire);\n\tconst value = decimalIntegerDecode(\"pg/int8number@1\", wire);\n\tif (value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/int8number@1 value must be an integer within the safe integer range, got ${value}`, { meta: {\n\t\tcodecId: \"pg/int8number@1\",\n\t\treceived: value.toString()\n\t} });\n\treturn Number(value);\n};\n/** A `number` holds an integer exactly only within the safe integer range, so digit text past it is refused. */\nconst pgInt8NumberFromDigits = (digits) => Number(readJsonIntegerText(\"pg/int8number@1\", digits, SAFE_INTEGER_BIGINT_RANGE));\n/**\n* Renders a decimal-text default as a `bigint` literal, for the codecs whose\n* canonical JSON is decimal text while the application type is `bigint`\n* (`pg/int8@1`, `pg/unboundedint@1`) — a plain string literal would not\n* typecheck against the emitted column type.\n*/\nconst decimalTextBigintLiteral = (value) => typeof value === \"string\" && DECIMAL_INTEGER.test(value) ? `${value}n` : void 0;\n/** Renders a float's stored number as a number literal. NaN and the infinities are stored as text and have no literal type, so they render nothing and the value set types as `number`. */\nconst floatNumberLiteral = (value) => typeof value === \"number\" ? String(value) : void 0;\n/** Renders the decimal text of `pg/int8number@1`, whose application type is `number`, as a number literal. */\nconst decimalTextNumberLiteral = (value) => typeof value === \"string\" && DECIMAL_INTEGER.test(value) ? value : void 0;\n/** Parses an ISO-8601 duration into the application value. */\nconst pgIntervalFromIso = (text) => intervalFieldsOf(text);\n/** Renders the application value as its canonical ISO-8601 duration. */\nconst pgIntervalToIso = (value) => formatIsoDuration(value);\nconst ZERO_INTERVAL = {\n\tmonths: 0,\n\tdays: 0,\n\tmicros: 0n\n};\n/** `count` with the sign `negative` gives it, never `-0`. */\nconst signed = (negative, count) => negative && count !== 0 ? -count : count;\nconst negated = ({ months, days, micros }) => ({\n\tmonths: signed(true, months),\n\tdays: signed(true, days),\n\tmicros: -micros\n});\n/** Hours, minutes, seconds and a fraction of a second, with one sign for all of them. */\nfunction timeMicros(negative, hours, minutes, seconds, fraction) {\n\tconst magnitude = (BigInt(hours) * 3600n + BigInt(minutes) * 60n + BigInt(seconds)) * MICROS_PER_SECOND + microsFromFraction(fraction, negative);\n\treturn negative ? -magnitude : magnitude;\n}\nconst VERBOSE_FIELD = /^(-?)(\\d+)(?:\\.(\\d+))? (year|mon|day|hour|min|sec)s?$/;\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'postgres_verbose'`: `@ 1 year 2 mons\n* -3 days 4 hours 5 mins 6.5 secs`, each field with its own sign, and ` ago` negating the whole; `@ 0`\n* for zero.\n*/\nfunction verboseIntervalFields(text) {\n\tif (!text.startsWith(\"@ \")) return void 0;\n\tconst ago = text.endsWith(\" ago\");\n\tconst body = text.slice(2, ago ? -4 : void 0);\n\tif (body === \"0\") return ZERO_INTERVAL;\n\tconst words = body.split(\" \");\n\tif (words.length === 0 || words.length % 2 !== 0) return void 0;\n\tlet months = 0;\n\tlet days = 0;\n\tlet micros = 0n;\n\tfor (let index = 0; index < words.length; index += 2) {\n\t\tconst match = VERBOSE_FIELD.exec(`${words[index]} ${words[index + 1]}`);\n\t\tif (match === null) return void 0;\n\t\tconst [, sign = \"\", whole = \"0\", fraction, unit] = match;\n\t\tif (fraction !== void 0 && unit !== \"sec\") return void 0;\n\t\tconst negative = sign === \"-\";\n\t\tconst count = signed(negative, Number(whole));\n\t\tif (unit === \"year\") months += count * 12;\n\t\telse if (unit === \"mon\") months += count;\n\t\telse if (unit === \"day\") days += count;\n\t\telse if (unit === \"hour\") micros += BigInt(count) * 3600n * MICROS_PER_SECOND;\n\t\telse if (unit === \"min\") micros += BigInt(count) * 60n * MICROS_PER_SECOND;\n\t\telse micros += timeMicros(negative, \"0\", \"0\", whole, fraction ?? \"\");\n\t}\n\tconst fields = {\n\t\tmonths,\n\t\tdays,\n\t\tmicros\n\t};\n\treturn ago ? negated(fields) : fields;\n}\nconst SQL_MIXED = /^([+-])(\\d+)-(\\d+) ([+-])(\\d+) ([+-])(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?$/;\nconst SQL_YEAR_MONTH = /^(-?)(\\d+)-(\\d+)$/;\nconst SQL_DAY_TIME = /^(-?)(?:(\\d+) )?(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?$/;\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'sql_standard'`. A value with fields of\n* one sign and of one kind, year-month or day-time, has a single leading sign for all of them:\n* `-1-2`, `-1 2:03:04`, `-0:00:01.5`. Any other value signs each part: `+1-2 -3 +4:05:06.5`. Zero is\n* `0`.\n*/\nfunction sqlStandardIntervalFields(text) {\n\tif (text === \"0\") return ZERO_INTERVAL;\n\tconst mixed = SQL_MIXED.exec(text);\n\tif (mixed !== null) {\n\t\tconst [, yearSign, years = \"0\", months = \"0\", daySign, days = \"0\", timeSign] = mixed;\n\t\tconst monthCount = Number(years) * 12 + Number(months);\n\t\treturn {\n\t\t\tmonths: signed(yearSign === \"-\", monthCount),\n\t\t\tdays: signed(daySign === \"-\", Number(days)),\n\t\t\tmicros: timeMicros(timeSign === \"-\", mixed[7] ?? \"0\", mixed[8] ?? \"0\", mixed[9] ?? \"0\", mixed[10] ?? \"\")\n\t\t};\n\t}\n\tconst yearMonth = SQL_YEAR_MONTH.exec(text);\n\tif (yearMonth !== null) {\n\t\tconst [, sign, years = \"0\", months = \"0\"] = yearMonth;\n\t\tconst monthCount = Number(years) * 12 + Number(months);\n\t\treturn {\n\t\t\tmonths: signed(sign === \"-\", monthCount),\n\t\t\tdays: 0,\n\t\t\tmicros: 0n\n\t\t};\n\t}\n\tconst dayTime = SQL_DAY_TIME.exec(text);\n\tif (dayTime === null) return void 0;\n\tconst [, sign, days = \"0\", hours = \"0\", minutes = \"0\", seconds = \"0\", fraction = \"\"] = dayTime;\n\tconst negative = sign === \"-\";\n\treturn {\n\t\tmonths: 0,\n\t\tdays: signed(negative, Number(days)),\n\t\tmicros: timeMicros(negative, hours, minutes, seconds, fraction)\n\t};\n}\n/** Reads the interval text PostgreSQL prints under any `IntervalStyle`. */\nconst intervalTextFields = (text) => {\n\tconst fields = ISO_DURATION.test(text) ? intervalFieldsOf(text) : postgresIntervalFields(text) ?? verboseIntervalFields(text) ?? sqlStandardIntervalFields(text);\n\tif (fields === void 0) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/interval@1 value must be interval text PostgreSQL prints under an IntervalStyle, got ${text}`, { meta: {\n\t\tcodecId: \"pg/interval@1\",\n\t\treceived: text\n\t} });\n\treturn fields;\n};\nconst pgIntervalDecode = (wire) => {\n\tif (typeof wire === \"string\") return intervalTextFields(wire);\n\tconst part = (name) => {\n\t\tconst raw = wire[name];\n\t\treturn typeof raw === \"number\" ? raw : 0;\n\t};\n\tconst seconds = part(\"seconds\") + part(\"milliseconds\") / 1e3;\n\treturn {\n\t\tmonths: part(\"years\") * 12 + part(\"months\"),\n\t\tdays: part(\"days\"),\n\t\tmicros: BigInt(part(\"hours\")) * 3600n * MICROS_PER_SECOND + BigInt(part(\"minutes\")) * 60n * MICROS_PER_SECOND + BigInt(Math.round(seconds * 1e6))\n\t};\n};\nconst pgByteaToBase64 = (value) => Buffer.from(value).toString(\"base64\");\nconst pgByteaFromBase64 = (base64) => new Uint8Array(Buffer.from(base64, \"base64\"));\n/** The text PostgreSQL prints for `bytea` under `bytea_output = 'escape'`: `\\\\` for a backslash, `\\nnn` in octal for a byte outside printable ASCII, and every other byte as itself. */\nconst BYTEA_ESCAPE_TEXT = /^(?:[ -[\\]-~]|\\\\\\\\|\\\\[0-3][0-7]{2})*$/;\nconst BYTEA_ESCAPE = /\\\\\\\\|\\\\([0-3][0-7]{2})|[ -[\\]-~]/g;\nfunction byteaOfEscapeText(text) {\n\tconst bytes = [];\n\tfor (const [token, octal] of text.matchAll(BYTEA_ESCAPE)) bytes.push(octal !== void 0 ? Number.parseInt(octal, 8) : token === \"\\\\\\\\\" ? 92 : token.charCodeAt(0));\n\treturn Uint8Array.from(bytes);\n}\nconst pgByteaDecodeWire = (wire) => {\n\tif (wire instanceof Uint8Array) return wire.constructor === Uint8Array ? wire : new Uint8Array(wire.buffer, wire.byteOffset, wire.byteLength);\n\tif (BYTEA_TEXT.test(wire)) return new Uint8Array(Buffer.from(wire.slice(2), \"hex\"));\n\tif (!wire.startsWith(\"\\\\x\") && BYTEA_ESCAPE_TEXT.test(wire)) return byteaOfEscapeText(wire);\n\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", \"pg/bytea@1 wire value must be a Uint8Array or bytea text, as PostgreSQL prints it under bytea_output 'hex' or 'escape'\", { meta: {\n\t\tcodecId: \"pg/bytea@1\",\n\t\treceived: wire\n\t} });\n};\nconst parseJsonWire = JSON.parse;\nconst pgJsonEncode = (value) => JSON.stringify(value);\nconst pgJsonDecode = (wire) => typeof wire === \"string\" ? parseJsonWire(wire) : wire;\nconst pgJsonbEncode = (value) => JSON.stringify(value);\nconst pgJsonbDecode = (wire) => typeof wire === \"string\" ? parseJsonWire(wire) : wire;\n//#endregion\n//#region src/core/require-temporal.ts\nlet fallback;\n/**\n* Sets the implementation `requireTemporal` returns when the runtime has no global `Temporal`.\n* The value is held once per process. Only the control entry calls this.\n*/\nfunction setFallbackTemporal(implementation) {\n\tfallback = implementation;\n}\n/**\n* The `Temporal` to use: the runtime's own when it has one, else the fallback. Throws\n* `RUNTIME.TEMPORAL_UNAVAILABLE` when there is neither.\n*/\nfunction requireTemporal(meta) {\n\tif (typeof Temporal !== \"undefined\") return Temporal;\n\tif (fallback !== void 0) return fallback;\n\tthrow \"generatorId\" in meta ? errorTemporalUnavailableForDefault(meta.generatorId) : errorTemporalUnavailable(meta.codecId, meta.operation);\n}\n//#endregion\n//#region src/core/temporal-codec-helpers.ts\nconst POSTGRES_TEMPORAL_SENTINELS = /* @__PURE__ */ new Set([\"infinity\", \"-infinity\"]);\nfunction decodeTemporalText(identity, wire, parse) {\n\tconst temporal = requireTemporal({\n\t\tcodecId: identity.codecId,\n\t\toperation: \"decode\"\n\t});\n\tif (POSTGRES_TEMPORAL_SENTINELS.has(wire)) throw errorTemporalUnrepresentable({\n\t\t...identity,\n\t\toperation: \"decode\",\n\t\tvalue: wire,\n\t\tdetail: `PostgreSQL's ${wire} is a sentinel with no position on the timeline, so no Temporal value denotes it`\n\t});\n\ttry {\n\t\treturn parse(temporal, isoYearText(wire));\n\t} catch (cause) {\n\t\tthrow errorTemporalUnrepresentable({\n\t\t\t...identity,\n\t\t\toperation: \"decode\",\n\t\t\tvalue: wire,\n\t\t\tdetail: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\nfunction encodeTemporalValue(identity, value) {\n\tconst tag = typeof value === \"object\" && value !== null ? Reflect.get(value, Symbol.toStringTag) : void 0;\n\tif (tag !== identity.temporalTag) throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, describeEncodeInput(value, tag));\n\tif (value.calendarId !== void 0 && value.calendarId !== \"iso8601\") throw errorTemporalNonIsoCalendar(identity.codecId, value.calendarId);\n\treturn postgresYearText(value.toString());\n}\nfunction describeEncodeInput(value, tag) {\n\tif (typeof tag === \"string\") return `a ${tag}`;\n\tif (value instanceof Date) return \"a Date\";\n\tif (value === null) return \"null\";\n\treturn `a ${typeof value}`;\n}\n/** Refuses `infinity` and `-infinity` in a stored value, which no Temporal value or `Date` holds, naming the text codec of the type that does. */\nfunction refuseInfinity(codecId, holds, textCodecId, text) {\n\tif (!POSTGRES_TEMPORAL_SENTINELS.has(text)) return;\n\trefuseJsonValue(codecId, `${holds}, not infinity or -infinity, which ${textCodecId} holds`, text);\n}\nconst DATE_TEMPORAL = {\n\tcodecId: PG_DATE_TEMPORAL_CODEC_ID,\n\tstringType: \"DateString\",\n\ttemporalTag: \"Temporal.PlainDate\"\n};\nconst TIMESTAMP_TEMPORAL = {\n\tcodecId: PG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestampString(p)\",\n\ttemporalTag: \"Temporal.PlainDateTime\"\n};\nconst TIMESTAMPTZ_TEMPORAL = {\n\tcodecId: PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestamptzString(p)\",\n\ttemporalTag: \"Temporal.Instant\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: PG_TIME_TEMPORAL_CODEC_ID,\n\tstringType: \"TimeString(p)\",\n\ttemporalTag: \"Temporal.PlainTime\"\n};\nconst pgDateTemporalDecode = (wire) => decodeTemporalText(DATE_TEMPORAL, wire, (temporal, text) => temporal.PlainDate.from(text));\nconst pgDateTemporalEncode = (value) => encodeTemporalValue(DATE_TEMPORAL, value);\nconst pgTimestampTemporalDecode = (wire) => decodeTemporalText(TIMESTAMP_TEMPORAL, wire, (temporal, text) => temporal.PlainDateTime.from(text));\nconst pgTimestampTemporalEncode = (value) => encodeTemporalValue(TIMESTAMP_TEMPORAL, value);\nconst pgTimestamptzTemporalDecode = (wire) => decodeTemporalText(TIMESTAMPTZ_TEMPORAL, wire, (temporal, text) => temporal.Instant.from(text));\nconst pgTimestamptzTemporalEncode = (value) => encodeTemporalValue(TIMESTAMPTZ_TEMPORAL, value);\nconst pgTimeTemporalDecode = (wire) => decodeTemporalText(TIME_TEMPORAL, wire, (temporal, text) => temporal.PlainTime.from(text));\nconst pgTimeTemporalEncode = (value) => encodeTemporalValue(TIME_TEMPORAL, value);\nconst EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS = (/* @__PURE__ */ new Date(\"-004713-11-24T00:00:00Z\")).getTime();\nfunction utcTimestamptzText(value, codecId) {\n\tconst milliseconds = value.getTime();\n\tif (!Number.isFinite(milliseconds) || milliseconds < EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS) throw new RangeError(`${codecId} writes a Date as UTC text and needs a valid Date on or after 4714-11-24 BC, the earliest timestamp PostgreSQL holds; got ${String(value)}`);\n\treturn postgresYearText(value.toISOString());\n}\n//#endregion\n//#region src/core/date-codecs.ts\nfunction invalidDate() {\n\treturn /* @__PURE__ */ new RangeError(`${PG_TIMESTAMPTZ_DATE_CODEC_ID} requires a valid Date or a representable ISO PostgreSQL timestamp with time zone; use TimestamptzString for unsupported values`);\n}\nfunction isRepresentable(value) {\n\treturn value instanceof Date && Number.isFinite(value.getTime()) && value.getTime() >= EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS;\n}\nfunction validateDate(value) {\n\tif (!isRepresentable(value)) throw invalidDate();\n\treturn value;\n}\nfunction decodeDate(wire) {\n\tconst instant = typeof wire === \"string\" ? storedInstant(wire) : void 0;\n\tconst date = instant === void 0 ? void 0 : new Date(instant);\n\tif (date === void 0 || !isRepresentable(date)) throw invalidDate();\n\treturn date;\n}\n/** The instant, in its stored spelling, a stored timestamp with time zone names, or `undefined` for `infinity` and an instant outside the range a `Date` holds. */\nfunction storedInstant(text) {\n\tif (text === \"infinity\" || text === \"-infinity\") return void 0;\n\ttry {\n\t\treturn pgTimestamptzStoredText(text);\n\t} catch (error) {\n\t\tif (isStructuredError(error) && error.code === \"CONTRACT.CAST_REFUSED\") return void 0;\n\t\tthrow error;\n\t}\n}\n/** The `Date` a stored timestamp with time zone names. A `Date` holds neither `infinity` nor an instant before 4714-11-24 BC or after +275760-09-13, so those are refused. */\nfunction dateOfStoredText(codecId, text) {\n\tconst instant = storedInstant(text);\n\tconst date = instant === void 0 ? void 0 : new Date(instant);\n\tif (date === void 0 || !isRepresentable(date)) return refuseJsonValue(codecId, `an instant a Date holds, from 4714-11-24 BC to +275760-09-13 and not infinity or -infinity, which ${PG_TIMESTAMPTZ_STRING_CODEC_ID} holds`, text);\n\treturn date;\n}\nfunction encodeDate(value) {\n\treturn utcTimestamptzText(validateDate(value), PG_TIMESTAMPTZ_DATE_CODEC_ID);\n}\nvar PgTimestamptzDateCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodeDate(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeDate(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn dateOfStoredText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(validateDate(input).toISOString());\n\t}\n};\nvar PgTimestamptzDateDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_DATE_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzDateCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzDateDescriptor = new PgTimestamptzDateDescriptor();\nconst pgTimestamptzDateColumn = (params = {}) => column(pgTimestamptzDateDescriptor.factory(params), pgTimestamptzDateDescriptor.codecId, params);\n//#endregion\n//#region src/core/list-decoder.ts\nfunction parsePostgresListText(wireValue) {\n\tif (typeof wireValue !== \"string\") throw new TypeError(`expected raw text for a Postgres array, got ${typeof wireValue}`);\n\treturn blindCast(parse(wireValue));\n}\nasync function decodePostgresListText(wireValue, decodeElement) {\n\tconst decoded = [];\n\tfor (const element of parsePostgresListText(wireValue)) {\n\t\tif (element === null) {\n\t\t\tdecoded.push(null);\n\t\t\tcontinue;\n\t\t}\n\t\tdecoded.push(await decodeElement(element));\n\t}\n\treturn decoded;\n}\n//#endregion\n//#region src/core/temporal-codecs.ts\nvar PgDateTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgDateTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgDateTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"a date a Temporal.PlainDate holds\", PG_DATE_STRING_CODEC_ID, value.value);\n\t\treturn pgDateTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgDateTemporalEncode(input));\n\t}\n};\nvar PgDateTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgDateTemporalCodec(this, pgDate);\n\t}\n};\nconst pgDateTemporalDescriptor = new PgDateTemporalDescriptor();\nvar PgTimestampTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimestampTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimestampTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"a date and time a Temporal.PlainDateTime holds\", PG_TIMESTAMP_STRING_CODEC_ID, value.value);\n\t\treturn pgTimestampTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimestampTemporalEncode(input));\n\t}\n};\nvar PgTimestampTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampTemporalCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampTemporalDescriptor = new PgTimestampTemporalDescriptor();\nvar PgTimestamptzTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimestamptzTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimestamptzTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"an instant a Temporal.Instant holds\", PG_TIMESTAMPTZ_STRING_CODEC_ID, value.value);\n\t\treturn pgTimestamptzTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimestamptzTemporalEncode(input));\n\t}\n};\nvar PgTimestamptzTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzTemporalCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzTemporalDescriptor = new PgTimestamptzTemporalDescriptor();\nvar PgTimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimeTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgTimeTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimeTemporalEncode(input));\n\t}\n};\nvar PgTimeTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimeTemporalCodec(this, pgTime, params ?? {});\n\t}\n};\nconst pgTimeTemporalDescriptor = new PgTimeTemporalDescriptor();\n//#endregion\n//#region src/core/temporal-string-codecs.ts\nvar PgDateStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgDateStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgDateStringCodec(this, pgDate);\n\t}\n};\nconst pgDateStringDescriptor = new PgDateStringDescriptor();\nfunction requireText(codecId, value) {\n\tif (typeof value === \"string\") return value;\n\tthrow errorTimestampTextWrongType(codecId, describeValue(value));\n}\nfunction describeValue(value) {\n\tif (value === null) return \"null\";\n\tif (value instanceof Date) return \"a Date\";\n\treturn `a ${typeof value}`;\n}\nvar PgTimestampStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(requireText(this.id, value));\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/** Why an enum cannot use a string timestamp codec, given how PostgreSQL prints a value and how the contract stores it. */\nconst stringTimestampEnumRefusal = (printed, stored, printing, instead) => `A query reads each value as the text PostgreSQL prints${printing}, such as \"${printed}\", while the contract stores it in ISO 8601, such as \"${stored}\", so no value read back equals a member. Use ${instead}, whose members are Temporal values.`;\nvar PgTimestampStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tenumRefusal = stringTimestampEnumRefusal(\"2024-01-02 03:04:05\", \"2024-01-02T03:04:05\", \"\", \"pg/timestamp-temporal@1\");\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampStringCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampStringDescriptor = new PgTimestampStringDescriptor();\nvar PgTimestamptzStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(requireText(this.id, value));\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTimestamptzStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tenumRefusal = stringTimestampEnumRefusal(\"2024-01-02 03:04:05+00\", \"2024-01-02T03:04:05Z\", \" in the session's time zone\", \"pg/timestamptz-temporal@1\");\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzStringCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzStringDescriptor = new PgTimestamptzStringDescriptor();\nvar PgTimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTimeStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimeStringCodec(this, pgTime, params ?? {});\n\t}\n};\nconst pgTimeStringDescriptor = new PgTimeStringDescriptor();\n//#endregion\n//#region src/core/codecs.ts\n/** A decimal numeral: an optional minus sign, digits, and an optional fraction. */\nconst DECIMAL_NUMERAL_TEXT = /^-?\\d+(?:\\.\\d+)?$/;\n/** A decimal numeral is written as PostgreSQL prints it, without leading zeros or a minus sign on zero; other spellings PostgreSQL reads, such as `1e5`, are refused. */\nfunction numericJson(value) {\n\tif (typeof value !== \"string\" || isNonFiniteText(value)) return value;\n\tif (DECIMAL_NUMERAL_TEXT.test(value)) return storedNumeralText(value);\n\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", \"pg/numeric@1 application value must be numeric text: an optionally negated decimal numeral, or NaN, Infinity or -Infinity\", { meta: {\n\t\tcodecId: PG_NUMERIC_CODEC_ID,\n\t\treceived: value\n\t} });\n}\n/**\n* Projects the expression unchanged, for codecs whose canonical JSON is what\n* PostgreSQL's own JSON conversion already produces.\n*\n* Identity here is a claim about the target's behaviour, not an absence of one:\n* the codec's conformance cases are what test it, including at the boundaries\n* of the representation — escaping, sign, and range — where a native conversion\n* would be most likely to diverge.\n*/\nconst identityJsonProjection = (expression) => expression;\n/**\n* Projects a `character` value as text, which drops the trailing spaces that pad it to its length and nothing else, so an include reads the value a flat read's `decode` returns.\n*/\nconst unpaddedCharJsonProjection = (expression) => CastExpr.as(expression, \"text\");\nconst decodePostgresNumberWire = (wire) => typeof wire === \"string\" ? Number(wire) : wire;\nconst decodePostgresBooleanWire = (wire) => {\n\tif (typeof wire === \"boolean\") return wire;\n\tif (wire === \"t\" || wire === \"true\") return true;\n\tif (wire === \"f\" || wire === \"false\") return false;\n\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", \"pg/bool@1 wire value must be boolean text\", { meta: {\n\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\treceived: wire\n\t} });\n};\n/**\n* Projects a numeric-valued expression as decimal text.\n*\n* The cast is part of the projected expression, which is what makes it correct:\n* whatever `jsonProjection` returns is the argument the JSON constructor\n* receives, so casting here happens *before* PostgreSQL builds the JSON value.\n* Handed a `numeric` or `int8` directly, the constructor emits a JSON **number**,\n* and every digit past IEEE-754's 53 bits of significand is gone by the time the\n* driver has parsed it — before any codec can intervene. A cast applied to the\n* constructor's result instead of its argument would be too late to matter.\n*/\nconst decimalTextJsonProjection = (expression) => CastExpr.as(expression, \"text\");\n/**\n* Projects the text PostgreSQL prints for the value, which is the value the runtime driver returns\n* for an ordinary row, so `fromWire` reads an included value as it reads a row (ADR 254, \"Rows the\n* database returns as JSON\"). PostgreSQL's own JSON conversion would write another value: a `bytea`\n* as its hex text but a `jsonb` document as the document itself, which `fromWire` cannot tell from\n* the document's JSON text when the document is a string.\n*/\nconst printedTextJsonProjection = (expression) => CastExpr.as(expression, \"text\");\nconst postgresSqlCharDescriptor = postgresCodec(sqlCharDescriptor, {\n\tdataType: pgChar,\n\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst postgresSqlVarcharDescriptor = postgresCodec(sqlVarcharDescriptor, {\n\tdataType: pgVarchar,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)\n});\nconst postgresSqlIntDescriptor = postgresCodec(sqlIntDescriptor, {\n\tdataType: pgInt4,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new PgIntCodec(descriptor, dataType)\n});\nconst postgresSqlFloatDescriptor = postgresCodec(sqlFloatDescriptor, {\n\tdataType: pgFloat8,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new PgFloatCodec(descriptor, dataType)\n});\nconst postgresSqlTextDescriptor = postgresCodec(sqlTextDescriptor, {\n\tdataType: pgText,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqlTextCodec(descriptor, dataType)\n});\nvar PgTextCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTextDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgText.id;\n\tcodecId = PG_TEXT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgTextCodec(this, pgText);\n\t}\n};\nconst pgTextDescriptor = new PgTextDescriptor();\nconst pgTextColumn = () => column(pgTextDescriptor.factory(), pgTextDescriptor.codecId, void 0);\n/**\n* Codec for a `pg.enum(Ref)` column bound to a native Postgres enum type.\n* Text passthrough, identical to `pg/text@1` — encode/decode do not carry the\n* enum's member values; membership is enforced by the native type itself, not\n* by this codec. `renderValueLiteral` renders a member value as its TS\n* literal, which is what drives the column's typed value-union (via\n* `renderValueSetType` reading the column's `valueSet` ref) — the codec\n* itself carries no params of its own; typing comes entirely from the\n* column's value-set, not from `pg/enum@1`.\n*\n* A distinct codec id (rather than reusing `pg/text@1` on a plain text\n* column) keeps native-enum columns independently identifiable — from a\n* column's `codecId` alone, without also inspecting its data type — which\n* the managed (DDL) phase needs to target `CREATE TYPE`/`ALTER TYPE`\n* operations at exactly the columns that use one.\n*\n* Not `textual`, although its values are strings: Postgres has no `LIKE`,\n* `ILIKE` or `to_tsvector` over an enum type.\n*/\nvar PgEnumCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/**\n* Narrows codec `typeParams` to {@link PgEnumParams} — the shape that binds a\n* column to a named database type (a native enum's `CREATE TYPE` name).\n*/\nfunction isPgEnumParams(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && \"typeName\" in value && typeof value.typeName === \"string\";\n}\nvar PgEnumDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgEnum.id;\n\tcodecId = PG_ENUM_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgEnumParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgEnumCodec(this, pgEnum, params);\n\t}\n\t/**\n\t* Authoring-time hook a `pg.enum(<ref>)` type constructor calls once it has\n\t* resolved its ref argument to the referenced `native_enum` entity:\n\t* produces this codec's per-column `typeParams` from the entity's bare type\n\t* name. Schema-qualification (`auth.aal_level` for a\n\t* named non-default schema) is not this hook's concern — the field's\n\t* namespace isn't known at this call site for every authoring path (the TS\n\t* builder resolves a column before it knows its model's namespace), so it is\n\t* applied later, at contract construction, by {@link qualifyNativeType} via\n\t* the target's `authoring.qualifyColumnType` hook. Returns `undefined` if `entity` is not a `PostgresNativeEnum` (a\n\t* contributor bug, not a user-schema error — the caller decides how to\n\t* report it).\n\t*/\n\tcolumnFromEntity(entity) {\n\t\tif (!PostgresNativeEnum.is(entity)) return void 0;\n\t\treturn { typeParams: { typeName: entity.typeName } };\n\t}\n\t/**\n\t* Schema-qualifies this native enum type's name for the namespace the\n\t* consuming column lives in: `${namespaceId}.${typeName}` for a named\n\t* non-default schema, bare for the target's default schema (`public`) or\n\t* the late-bound unbound sentinel (whose schema `search_path` resolves at\n\t* runtime). Postgres's `format_type()` reports the bare name for a\n\t* public-schema type, so a public column's declared native type must stay\n\t* bare to match. Owned here because the codec owns its native type.\n\t*/\n\tqualifyNativeType(typeName, namespaceId) {\n\t\treturn namespaceId === \"public\" || namespaceId === UNBOUND_NAMESPACE_ID ? typeName : `${namespaceId}.${typeName}`;\n\t}\n};\nconst pgEnumDescriptor = new PgEnumDescriptor();\n/**\n* Contract-construction-time column-type qualifier the Postgres target\n* contributes through `authoring.qualifyColumnType`.\n* `buildSqlContractFromDefinition` calls this for every column as it is\n* constructed, passing the column's bare type info and its owning\n* `namespaceId`; a native-enum column (`pg/enum@1`) gets its type name\n* schema-qualified for that namespace (via\n* {@link PgEnumDescriptor.qualifyNativeType}), which rewrites only\n* `typeParams.typeName`. Every other codec passes through unchanged.\n* Both the PSL `pg.enum(Ref)` path and the TS `pg.enum(handle)` path route\n* through here — the dispatch keys off the codec id, not authoring surface.\n*/\nfunction postgresQualifyColumnType(input, namespaceId) {\n\tif (input.codecId !== \"pg/enum@1\") return input;\n\tconst bareTypeName = input.typeParams?.[\"typeName\"];\n\tif (typeof bareTypeName !== \"string\") return input;\n\tconst qualified = pgEnumDescriptor.qualifyNativeType(bareTypeName, namespaceId);\n\treturn { typeParams: {\n\t\t...input.typeParams,\n\t\ttypeName: qualified\n\t} };\n}\n/** The elements of the `text[]` text PostgreSQL prints, each a string or NULL. */\nfunction readTextArrayWire(wire) {\n\treturn parsePostgresListText(wire).map((element) => {\n\t\tif (element === null || typeof element === \"string\") return element;\n\t\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", `pg/text-array@1 reads a one-dimensional text[], and ${wire} has more dimensions`, { meta: {\n\t\t\tcodecId: PG_TEXT_ARRAY_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t});\n}\n/**\n* Postgres `text[]` control codec. Encode is an identity pass-through: the pg\n* wire driver serialises a JS `string[]` to a Postgres array literal under the\n* `$N::text[]` cast emitted from this codec's native type. Decode reads the\n* array text the driver returns, or an array a driver has already parsed. Not a\n* user-facing scalar — it is not part of the authorable `CodecTypes` surface,\n* only the runtime codec registry.\n*/\nvar PgTextArrayCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn typeof wire === \"string\" ? readTextArrayWire(wire) : wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf([...input]);\n\t}\n};\nvar PgTextArrayDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgTextArray.id;\n\tcodecId = PG_TEXT_ARRAY_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTextArrayCodec(this, pgTextArray);\n\t}\n};\nconst pgTextArrayDescriptor = new PgTextArrayDescriptor();\nvar PgInt4Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInt4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt4Codec(this, pgInt4);\n\t}\n};\nconst pgInt4Descriptor = new PgInt4Descriptor();\nconst pgInt4Column = () => column(pgInt4Descriptor.factory(), pgInt4Descriptor.codecId, void 0);\nvar PgInt2Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInt2Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt2.id;\n\tcodecId = PG_INT2_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt2Codec(this, pgInt2);\n\t}\n};\nconst pgInt2Descriptor = new PgInt2Descriptor();\nconst pgInt2Column = () => column(pgInt2Descriptor.factory(), pgInt2Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` spans the full signed 64-bit range, which a JS `number`\n* cannot hold past 2^53. Application values are `bigint` and the canonical JSON\n* is decimal text; the wire form is the decimal string `pg` reads and writes for\n* this type.\n*/\nvar PgInt8Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgBigintEncode(PG_INT8_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgInt8Decode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn BigInt(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgBigintDigits(PG_INT8_CODEC_ID, input));\n\t}\n};\nvar PgInt8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8Codec(this, pgInt8);\n\t}\n};\nconst pgInt8Descriptor = new PgInt8Descriptor();\nconst pgInt8Column = () => column(pgInt8Descriptor.factory(), pgInt8Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` decoded as a JS `number`, for columns whose values stay\n* within the safe integer range ±(2^53 − 1). Both directions guard rather than\n* round: decode (wire and JSON) and encode throw a structured error on\n* out-of-range or non-integral input. The canonical JSON is the decimal text\n* `pg/int8` carries, which every codec of that data type shares. The descriptor\n* claims no target type, so `int8` in type position stays `pg/int8@1`.\n*/\nvar PgInt8NumberCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgInt8NumberEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgInt8NumberDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgInt8NumberFromDigits(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgInt8NumberEncode(input));\n\t}\n};\nvar PgInt8NumberDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_NUMBER_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8NumberCodec(this, pgInt8);\n\t}\n};\nconst pgInt8NumberDescriptor = new PgInt8NumberDescriptor();\nconst pgInt8NumberColumn = () => column(pgInt8NumberDescriptor.factory(), pgInt8NumberDescriptor.codecId, void 0);\nvar PgFloat4Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloat(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(input));\n\t}\n};\nvar PgFloat4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat4.id;\n\tcodecId = PG_FLOAT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat4Codec(this, pgFloat4);\n\t}\n};\nconst pgFloat4Descriptor = new PgFloat4Descriptor();\nconst pgFloat4Column = () => column(pgFloat4Descriptor.factory(), pgFloat4Descriptor.codecId, void 0);\nvar PgFloat8Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloat(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(input));\n\t}\n};\nvar PgFloat8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat8Codec(this, pgFloat8);\n\t}\n};\nconst pgFloat8Descriptor = new PgFloat8Descriptor();\nconst pgFloat8Column = () => column(pgFloat8Descriptor.factory(), pgFloat8Descriptor.codecId, void 0);\nvar PgBoolCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresBooleanWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgBoolDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBool.id;\n\tcodecId = PG_BOOL_CODEC_ID;\n\ttraits = [\"equality\", \"boolean\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgBoolCodec(this, pgBool);\n\t}\n};\nconst pgBoolDescriptor = new PgBoolDescriptor();\nconst pgBoolColumn = () => column(pgBoolDescriptor.factory(), pgBoolDescriptor.codecId, void 0);\nvar PgNumericCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgNumericDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(numericJson(input));\n\t}\n};\nvar PgNumericDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_NUMERIC_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = pgNumericParams;\n\tfactory(params) {\n\t\treturn () => new PgNumericCodec(this, pgNumeric, params ?? {});\n\t}\n};\nconst pgNumericDescriptor = new PgNumericDescriptor();\nconst pgNumericColumn = (params = {}) => column(pgNumericDescriptor.factory(params), pgNumericDescriptor.codecId, params);\n/**\n* A genuinely unbounded integer over unconstrained Postgres `numeric` storage.\n* Application values are `bigint` and the canonical JSON is decimal text, like\n* `pg/int8@1`; decode rejects non-integral values. The descriptor claims no\n* target type, so `numeric` and `decimal` in type position stay `pg/numeric@1`.\n*/\nvar PgUnboundedIntCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgBigintEncode(PG_UNBOUNDED_INT_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgUnboundedIntDecode(wire);\n\t}\n\t/** A `bigint` holds only a whole number, so a value with a fraction, or `NaN` or an infinity, is refused. */\n\tfromDataTypeValue(value) {\n\t\treturn readJsonIntegerText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgBigintDigits(PG_UNBOUNDED_INT_CODEC_ID, input));\n\t}\n};\nvar PgUnboundedIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_UNBOUNDED_INT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = pgNumericParams;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgUnboundedIntCodec(this, pgNumeric, params ?? {});\n\t}\n};\nconst pgUnboundedIntDescriptor = new PgUnboundedIntDescriptor();\nconst pgUnboundedIntColumn = () => column(pgUnboundedIntDescriptor.factory(), pgUnboundedIntDescriptor.codecId, void 0);\nvar PgTimetzCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTimetzDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTimetz.id;\n\tcodecId = PG_TIMETZ_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimetzCodec(this, pgTimetz, params ?? {});\n\t}\n};\nconst pgTimetzDescriptor = new PgTimetzDescriptor();\nconst pgTimetzColumn = (params = {}) => column(pgTimetzDescriptor.factory(params), pgTimetzDescriptor.codecId, params);\nvar PgBitCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgBitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBit.id;\n\tcodecId = PG_BIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\tfactory(params) {\n\t\treturn () => new PgBitCodec(this, pgBit, params ?? {});\n\t}\n};\nconst pgBitDescriptor = new PgBitDescriptor();\nconst pgBitColumn = (params = {}) => column(pgBitDescriptor.factory(params), pgBitDescriptor.codecId, params);\nvar PgVarbitCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgVarbitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarbit.id;\n\tcodecId = PG_VARBIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\tfactory(params) {\n\t\treturn () => new PgVarbitCodec(this, pgVarbit, params ?? {});\n\t}\n};\nconst pgVarbitDescriptor = new PgVarbitDescriptor();\nconst pgVarbitColumn = (params = {}) => column(pgVarbitDescriptor.factory(params), pgVarbitDescriptor.codecId, params);\nvar PgByteaCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgByteaDecodeWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgByteaFromBase64(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgByteaToBase64(input));\n\t}\n};\nvar PgByteaDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgBytea.id;\n\tcodecId = PG_BYTEA_CODEC_ID;\n\ttraits = [\"equality\"];\n\tenumRefusal = \"The contract stores a bytea value as base64 text, which PostgreSQL reads as the bytes of that text, so no CHECK can compare a value with the members. No enum can use a bytea codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgByteaCodec(this, pgBytea);\n\t}\n};\nconst pgByteaDescriptor = new PgByteaDescriptor();\nvar PgUuidCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgUuidDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgUuid.id;\n\tcodecId = PG_UUID_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgUuidCodec(this, pgUuid);\n\t}\n};\nconst pgUuidDescriptor = new PgUuidDescriptor();\nconst pgUuidColumn = () => column(pgUuidDescriptor.factory(), pgUuidDescriptor.codecId, void 0);\nvar PgInetCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInetDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInet.id;\n\tcodecId = PG_INET_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgInetCodec(this, pgInet);\n\t}\n};\nconst pgInetDescriptor = new PgInetDescriptor();\nconst pgInetColumn = () => column(pgInetDescriptor.factory(), pgInetDescriptor.codecId, void 0);\nvar PgTsqueryCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn blindCast(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn blindCast(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/**\n* The type of a full-text query: what the parsers and the tag in `full-text` return, and what a\n* `tsquery` value read back from a query binds as when passed to `fullTextMatches`, `fullTextRank`\n* or `fullTextHeadline`. It has no column helper, because a contract cannot author a `tsquery`\n* column, and no traits, because comparing or ordering queries means nothing to an application.\n*/\nvar PgTsqueryDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTsquery.id;\n\tcodecId = PG_TSQUERY_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"PostgreSQL normalises the query text, so a member as written is not the value a query reads back: it prints a & b as 'a' & 'b'. No enum can use a tsquery codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTsqueryCodec(this, pgTsquery);\n\t}\n};\nconst pgTsqueryDescriptor = new PgTsqueryDescriptor();\n/**\n* An application value is a {@link PgInterval} — the three fields PostgreSQL\n* actually stores, `{ months, days, micros }` — and its canonical JSON is the\n* ISO-8601 duration string PostgreSQL spells under\n* `IntervalStyle = 'iso_8601'`: `P1M`, `P30D`, `P1Y2M3DT4H5M6S`, `PT0S` for\n* zero, each component carrying its own sign.\n*\n* Value and representation are independent here, as they are for `pg/bytea@1`\n* (`Uint8Array` carried as base64) and `pg/int8@1` (`bigint` carried as decimal\n* text). Reading an interval hands back numbers to compute with rather than a\n* string to parse; writing one takes the same numbers.\n*\n* The fields stay independent because a month has no fixed length: `{months: 1}`\n* and `{days: 30}` are different values and neither converts to the other. The\n* ISO rendering normalises only in its own spelling — twelve months render as a\n* year — so `{months: 13}` renders `P1Y1M` and reads back as `{months: 13}`.\n*/\nvar PgIntervalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgIntervalToIso(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgIntervalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgIntervalFromIso(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgIntervalToIso(input));\n\t}\n};\nvar PgIntervalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgInterval.id;\n\tcodecId = PG_INTERVAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgIntervalCodec(this, pgInterval, params ?? {});\n\t}\n};\nconst pgIntervalDescriptor = new PgIntervalDescriptor();\nconst pgIntervalColumn = (params = {}) => column(pgIntervalDescriptor.factory(params), pgIntervalDescriptor.codecId, params);\nvar PgJsonCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgJsonEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgJsonDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgJsonDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgJson.id;\n\tcodecId = PG_JSON_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"The json type has no equality operator, so no CHECK can compare a value with the members. Use pg/jsonb@1, whose type has one.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonCodec(this, pgJson);\n\t}\n};\nconst pgJsonDescriptor = new PgJsonDescriptor();\nconst pgJsonColumn = () => column(pgJsonDescriptor.factory(), pgJsonDescriptor.codecId, void 0);\nvar PgJsonbCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgJsonbEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgJsonbDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgJsonbDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgJsonb.id;\n\tcodecId = PG_JSONB_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonbCodec(this, pgJsonb);\n\t}\n};\nconst pgJsonbDescriptor = new PgJsonbDescriptor();\nconst pgJsonbColumn = () => column(pgJsonbDescriptor.factory(), pgJsonbDescriptor.codecId, void 0);\nvar PgIntCodec = class extends SqlIntCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n};\nvar PgFloatCodec = class extends SqlFloatCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n};\nvar PgCharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn unpaddedCharJsonProjection(expression);\n\t}\n\tdataType = pgChar.id;\n\tcodecId = PG_CHAR_CODEC_ID;\n\ttraits = sqlCharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new SqlCharCodec(this, pgChar, params ?? {});\n\t}\n};\nconst pgCharDescriptor = new PgCharDescriptor();\nconst pgCharColumn = (params = {}) => column(pgCharDescriptor.factory(params), pgCharDescriptor.codecId, params);\nvar PgVarcharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarchar.id;\n\tcodecId = PG_VARCHAR_CODEC_ID;\n\ttraits = sqlVarcharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new SqlVarcharCodec(this, pgVarchar, params ?? {});\n\t}\n};\nconst pgVarcharDescriptor = new PgVarcharDescriptor();\nconst pgVarcharColumn = (params = {}) => column(pgVarcharDescriptor.factory(params), pgVarcharDescriptor.codecId, params);\nvar PgIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT_CODEC_ID;\n\ttraits = sqlIntDescriptor.traits;\n\tparamsSchema = sqlIntDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgIntCodec(this, pgInt4);\n\t}\n};\nconst pgIntDescriptor = new PgIntDescriptor();\nconst pgIntColumn = () => column(pgIntDescriptor.factory(), pgIntDescriptor.codecId, void 0);\nvar PgFloatDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT_CODEC_ID;\n\ttraits = sqlFloatDescriptor.traits;\n\tparamsSchema = sqlFloatDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloatCodec(this, pgFloat8);\n\t}\n};\nconst pgFloatDescriptor = new PgFloatDescriptor();\nconst pgFloatColumn = () => column(pgFloatDescriptor.factory(), pgFloatDescriptor.codecId, void 0);\nconst codecDescriptors = definePostgresCodecs([\n\tpostgresSqlCharDescriptor,\n\tpostgresSqlVarcharDescriptor,\n\tpostgresSqlIntDescriptor,\n\tpostgresSqlFloatDescriptor,\n\tpostgresSqlTextDescriptor,\n\tpgTextDescriptor,\n\tpgEnumDescriptor,\n\tpgCharDescriptor,\n\tpgVarcharDescriptor,\n\tpgIntDescriptor,\n\tpgFloatDescriptor,\n\tpgInt4Descriptor,\n\tpgInt2Descriptor,\n\tpgInt8Descriptor,\n\tpgInt8NumberDescriptor,\n\tpgFloat4Descriptor,\n\tpgFloat8Descriptor,\n\tpgNumericDescriptor,\n\tpgUnboundedIntDescriptor,\n\tpgDateTemporalDescriptor,\n\tpgTimestampTemporalDescriptor,\n\tpgTimestamptzTemporalDescriptor,\n\tpgTimeTemporalDescriptor,\n\tpgDateStringDescriptor,\n\tpgTimestampStringDescriptor,\n\tpgTimestamptzStringDescriptor,\n\tpgTimestamptzDateDescriptor,\n\tpgTimeStringDescriptor,\n\tpgTimetzDescriptor,\n\tpgBoolDescriptor,\n\tpgBitDescriptor,\n\tpgVarbitDescriptor,\n\tpgByteaDescriptor,\n\tpgUuidDescriptor,\n\tpgInetDescriptor,\n\tpgIntervalDescriptor,\n\tpgJsonDescriptor,\n\tpgJsonbDescriptor,\n\tpgTextArrayDescriptor,\n\tpgTsqueryDescriptor\n]);\n//#endregion\nexport { PgTimestamptzDateDescriptor as A, pgUuidColumn as C, decodePostgresListText as D, postgresQualifyColumnType as E, pgTimestamptzDateDescriptor as M, requireTemporal as N, parsePostgresListText as O, setFallbackTemporal as P, pgUnboundedIntColumn as S, pgVarcharColumn as T, pgJsonColumn as _, pgCharColumn as a, pgTextColumn as b, pgFloat8Column as c, pgInt2Column as d, pgInt4Column as f, pgIntervalColumn as g, pgIntColumn as h, pgBoolColumn as i, pgTimestamptzDateColumn as j, PgTimestamptzDateCodec as k, pgFloatColumn as l, pgInt8NumberColumn as m, isPgEnumParams as n, pgEnumDescriptor as o, pgInt8Column as p, pgBitColumn as r, pgFloat4Column as s, codecDescriptors as t, pgInetColumn as u, pgJsonbColumn as v, pgVarbitColumn as w, pgTimetzColumn as x, pgNumericColumn as y };\n\n//# sourceMappingURL=codecs-D183NDmb.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,MAAM,mBAAmB,SAAS;CACjC,IAAI,OAAO,SAAS,UAAU,OAAO,YAAY,IAAI;CACrD,OAAO;AACR;AACA,MAAM,kBAAkB;;;;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AAwB;CAC3D,eAAe,YAAY;EAC1B,OAAO;CACR;CACA,WAAW,OAAO;CAClB,UAAU;CACV,SAAS,iBAAiB;CAC1B,eAAe,iBAAiB;CAChC,mBAAmB,OAAO;EACzB,OAAO,gBAAgB,KAAK;CAC7B;CACA,UAAU;EACT,aAAa,IAAI,WAAW,MAAM,MAAM;CACzC;AACD;AACA,MAAM,kBAAkB,IAAI,gBAAgB;AAC5C,MAAM,oBAAoB,OAAO,gBAAgB,QAAQ,GAAG,gBAAgB,SAAS,KAAK,CAAC;AAC3F,IAAI,oBAAoB,cAAc,wBAAwB;CAC7D,eAAe,YAAY;EAC1B,OAAO;CACR;CACA,WAAW,SAAS;CACpB,UAAU;CACV,SAAS,mBAAmB;CAC5B,eAAe,mBAAmB;CAClC,mBAAmB,OAAO;EACzB,OAAO,mBAAmB,KAAK;CAChC;CACA,UAAU;EACT,aAAa,IAAI,aAAa,MAAM,QAAQ;CAC7C;AACD;AACA,MAAM,oBAAoB,IAAI,kBAAkB;AAChD,MAAM,sBAAsB,OAAO,kBAAkB,QAAQ,GAAG,kBAAkB,SAAS,KAAK,CAAC;AACjG,MAAM,mBAAmB,qBAAqB;CAC7C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC"}
|
|
1
|
+
{"version":3,"file":"codecs-UZ1NEbvk-CMnI6Ti0.mjs","names":[],"sources":["../../../../3-targets/3-targets/postgres/dist/codecs-UZ1NEbvk.mjs"],"sourcesContent":["import { A as PG_TIME_TEMPORAL_CODEC_ID, C as PG_TIMESTAMPTZ_DATE_CODEC_ID, D as PG_TIMESTAMP_TEMPORAL_CODEC_ID, E as PG_TIMESTAMP_STRING_CODEC_ID, F as PG_VARCHAR_CODEC_ID, M as PG_UNBOUNDED_INT_CODEC_ID, N as PG_UUID_CODEC_ID, O as PG_TIMETZ_CODEC_ID, P as PG_VARBIT_CODEC_ID, S as PG_TEXT_CODEC_ID, T as PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID, _ as PG_INT_CODEC_ID, a as PG_DATE_STRING_CODEC_ID, b as PG_NUMERIC_CODEC_ID, c as PG_FLOAT4_CODEC_ID, d as PG_INET_CODEC_ID, f as PG_INT2_CODEC_ID, g as PG_INTERVAL_CODEC_ID, h as PG_INT8_NUMBER_CODEC_ID, i as PG_CHAR_CODEC_ID, j as PG_TSQUERY_CODEC_ID, k as PG_TIME_STRING_CODEC_ID, l as PG_FLOAT8_CODEC_ID, m as PG_INT8_CODEC_ID, n as PG_BOOL_CODEC_ID, o as PG_DATE_TEMPORAL_CODEC_ID, p as PG_INT4_CODEC_ID, r as PG_BYTEA_CODEC_ID, s as PG_ENUM_CODEC_ID, t as PG_BIT_CODEC_ID, u as PG_FLOAT_CODEC_ID, v as PG_JSONB_CODEC_ID, w as PG_TIMESTAMPTZ_STRING_CODEC_ID, x as PG_TEXT_ARRAY_CODEC_ID, y as PG_JSON_CODEC_ID } from \"./codec-ids-Cb0yO-IS.mjs\";\nimport { a as errorTemporalUnrepresentable, c as postgresError, i as errorTemporalUnavailableForDefault, n as errorTemporalNonIsoCalendar, o as errorTemporalWrongType, r as errorTemporalUnavailable, s as errorTimestampTextWrongType } from \"./errors-BrhQYgdL.mjs\";\nimport { A as pgTimestamptz, B as isoYearText, C as pgPrecisionParams, E as pgTime, F as pgUuid, G as formatIsoDuration, H as BYTEA_TEXT, I as pgVarbit, K as intervalFieldsOf, L as pgVarchar, M as pgTimetz, O as pgTimestamp, P as pgTsquery, S as pgNumericParams, T as pgTextArray, U as ISO_DURATION, V as postgresYearText, W as MICROS_PER_SECOND, Z as postgresIntervalFields, _ as pgInt8, a as pgBytea, b as pgJsonb, c as pgDate, d as pgEnumParams, f as pgFloat4, g as pgInt4, h as pgInt2, i as pgBool, j as pgTimestamptzStoredText, m as pgInet, n as pgBit, o as pgChar, p as pgFloat8, q as microsFromFraction, r as pgBitLengthParams, s as pgCharacterLengthParams, u as pgEnum, v as pgInterval, w as pgText, x as pgNumeric, y as pgJson } from \"./data-types-Cs-LkJBw.mjs\";\nimport { a as postgresCodec, r as definePostgresCodecs, t as PostgresCodecDescriptor } from \"./codec-descriptor-DSMjoW72.mjs\";\nimport \"./namespace-ids-xtp_ZY86.mjs\";\nimport { t as PostgresNativeEnum } from \"./postgres-native-enum-CdP3b_-R.mjs\";\nimport { CastExpr, SqlCharCodec, SqlFloatCodec, SqlIntCodec, SqlTextCodec, SqlVarcharCodec, sqlCharDescriptor, sqlFloatDescriptor, sqlIntDescriptor, sqlTextDescriptor, sqlVarcharDescriptor } from \"@internal/sql-relational-core/ast\";\nimport { numeralText } from \"@internal/sql-contract/data-type\";\nimport { storedNumeralText } from \"@internal/sql-contract/data-type-support\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\nimport { CodecImpl, SAFE_INTEGER_BIGINT_RANGE, column, floatToJson, isNonFiniteText, readJsonFloat, readJsonIntegerText, refuseJsonValue, renderTsLiteral } from \"@internal/framework-components/codec\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { parse } from \"postgres-array\";\n//#region src/core/codec-helpers.ts\n/**\n* A `numeric` value as its canonical decimal text. A number is written out without an exponent,\n* because `numeric` text has no exponent syntax and `toDataTypeValue` refuses one.\n*/\nconst pgNumericDecode = (wire) => {\n\tif (typeof wire === \"number\") return numeralText(wire);\n\treturn wire;\n};\nconst DECIMAL_INTEGER = /^-?\\d+$/;\n/**\n* Requires an application value to be of the JS type the codec reads.\n*\n* A range check reads a value of the wrong type as a value out of range, and\n* reports a number plainly inside the range as outside it — so the type is\n* established first and answered for on its own terms, naming what a caller\n* has to change.\n*/\nconst requireJsType = (codecId, expected, value) => {\n\tif (typeof value === expected) return;\n\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", `${codecId} value must be a ${expected}, got ${typeof value} ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: typeof value\n\t} });\n};\n/** Writes a `bigint` application value as the decimal text the wire form of the exact integer codecs carries. */\nconst pgBigintEncode = (codecId, value) => {\n\trequireJsType(codecId, \"bigint\", value);\n\treturn value.toString();\n};\n/**\n* Writes an application value as the decimal text these codecs carry as their\n* canonical JSON.\n*\n* A schema-written literal default (`BigInt @default(0)`) arrives here as a\n* `number`, since a number literal is the only integer a schema language\n* writes, and one that is a safe integer names its value exactly. Past that\n* range the literal was rounded before any of this ran, so the value written is\n* not the value meant — which this refuses rather than minting an exact-looking\n* total from it. A non-integral number is refused on the same terms.\n*/\nconst pgBigintDigits = (codecId, value) => {\n\tif (typeof value !== \"number\") return pgBigintEncode(codecId, value);\n\tif (!Number.isSafeInteger(value)) throw postgresError(\"RUNTIME.ENCODE_FAILED\", `${codecId} number literal must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId,\n\t\treceived: String(value)\n\t} });\n\treturn BigInt(value).toString();\n};\n/**\n* Reads a wire or JSON value as a `bigint`, rejecting anything `BigInt()` would\n* misread. A number-typed wire value must also be a safe integer: past\n* ±(2^53 − 1) the driver's `number` has already rounded, so stringifying it\n* would mint a spuriously-exact `bigint` that need not equal the stored value.\n*/\nconst decimalIntegerDecode = (codecId, wire) => {\n\tif (typeof wire === \"bigint\") return wire;\n\tconst text = String(wire);\n\tif (!DECIMAL_INTEGER.test(text)) throw postgresError(\"RUNTIME.DECODE_FAILED\", `${codecId} value must be a decimal integer`, { meta: {\n\t\tcodecId,\n\t\treceived: text\n\t} });\n\tif (typeof wire === \"number\" && !Number.isSafeInteger(wire)) throw postgresError(\"RUNTIME.DECODE_FAILED\", `${codecId} wire number must be an integer within the safe integer range, got ${text}`, { meta: {\n\t\tcodecId,\n\t\treceived: text\n\t} });\n\treturn BigInt(text);\n};\n/** Reads an `int8` wire or JSON value as a `bigint`, rejecting anything `BigInt()` would misread. */\nconst pgInt8Decode = (wire) => decimalIntegerDecode(\"pg/int8@1\", wire);\n/**\n* Reads an unconstrained-`numeric` wire or JSON value as a `bigint`, rejecting\n* non-integral values — including `NaN` and the infinities, which are `numeric`\n* values but not integers.\n*/\nconst pgUnboundedIntDecode = (wire) => decimalIntegerDecode(\"pg/unboundedint@1\", wire);\n/**\n* A SQL number literal has no form for `NaN` or the infinities; PostgreSQL reads and writes them as\n* the text `NaN`, `Infinity`, `-Infinity`, so the float codecs carry them as that text on the wire,\n* as `floatToJson` does in JSON.\n*/\nconst pgFloatEncode = (value) => Number.isFinite(value) ? value : String(value);\n/**\n* Requires an integer within ±(2^53 − 1), the range a JS `number` holds\n* exactly. The guard throws rather than rounding: past the boundary a `number`\n* silently loses digits, which is the failure mode this codec exists to refuse.\n*/\nconst pgInt8NumberGuard = (code, value) => {\n\tif (!Number.isSafeInteger(value)) throw postgresError(code, `pg/int8number@1 value must be an integer within the safe integer range, got ${String(value)}`, { meta: {\n\t\tcodecId: \"pg/int8number@1\",\n\t\treceived: String(value)\n\t} });\n\treturn value;\n};\nconst pgInt8NumberEncode = (value) => {\n\trequireJsType(\"pg/int8number@1\", \"number\", value);\n\treturn String(pgInt8NumberGuard(\"RUNTIME.ENCODE_FAILED\", value));\n};\n/**\n* Reads an `int8` wire value as a `number`, throwing outside ±(2^53 − 1) and on\n* non-integral input. Decimal text goes through `BigInt` before the range check\n* so an out-of-range value is compared exactly rather than after rounding.\n*/\nconst pgInt8NumberDecode = (wire) => {\n\tif (typeof wire === \"number\") return pgInt8NumberGuard(\"RUNTIME.DECODE_FAILED\", wire);\n\tconst value = decimalIntegerDecode(\"pg/int8number@1\", wire);\n\tif (value < SAFE_INTEGER_BIGINT_RANGE.min || value > SAFE_INTEGER_BIGINT_RANGE.max) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/int8number@1 value must be an integer within the safe integer range, got ${value}`, { meta: {\n\t\tcodecId: \"pg/int8number@1\",\n\t\treceived: value.toString()\n\t} });\n\treturn Number(value);\n};\n/** A `number` holds an integer exactly only within the safe integer range, so digit text past it is refused. */\nconst pgInt8NumberFromDigits = (digits) => Number(readJsonIntegerText(\"pg/int8number@1\", digits, SAFE_INTEGER_BIGINT_RANGE));\n/**\n* Renders a decimal-text default as a `bigint` literal, for the codecs whose\n* canonical JSON is decimal text while the application type is `bigint`\n* (`pg/int8@1`, `pg/unboundedint@1`) — a plain string literal would not\n* typecheck against the emitted column type.\n*/\nconst decimalTextBigintLiteral = (value) => typeof value === \"string\" && DECIMAL_INTEGER.test(value) ? `${value}n` : void 0;\n/** Renders a float's stored number as a number literal. NaN and the infinities are stored as text and have no literal type, so they render nothing and the value set types as `number`. */\nconst floatNumberLiteral = (value) => typeof value === \"number\" ? String(value) : void 0;\n/** Renders the decimal text of `pg/int8number@1`, whose application type is `number`, as a number literal. */\nconst decimalTextNumberLiteral = (value) => typeof value === \"string\" && DECIMAL_INTEGER.test(value) ? value : void 0;\n/** Parses an ISO-8601 duration into the application value. */\nconst pgIntervalFromIso = (text) => intervalFieldsOf(text);\n/** Renders the application value as its canonical ISO-8601 duration. */\nconst pgIntervalToIso = (value) => formatIsoDuration(value);\nconst ZERO_INTERVAL = {\n\tmonths: 0,\n\tdays: 0,\n\tmicros: 0n\n};\n/** `count` with the sign `negative` gives it, never `-0`. */\nconst signed = (negative, count) => negative && count !== 0 ? -count : count;\nconst negated = ({ months, days, micros }) => ({\n\tmonths: signed(true, months),\n\tdays: signed(true, days),\n\tmicros: -micros\n});\n/** Hours, minutes, seconds and a fraction of a second, with one sign for all of them. */\nfunction timeMicros(negative, hours, minutes, seconds, fraction) {\n\tconst magnitude = (BigInt(hours) * 3600n + BigInt(minutes) * 60n + BigInt(seconds)) * MICROS_PER_SECOND + microsFromFraction(fraction, negative);\n\treturn negative ? -magnitude : magnitude;\n}\nconst VERBOSE_FIELD = /^(-?)(\\d+)(?:\\.(\\d+))? (year|mon|day|hour|min|sec)s?$/;\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'postgres_verbose'`: `@ 1 year 2 mons\n* -3 days 4 hours 5 mins 6.5 secs`, each field with its own sign, and ` ago` negating the whole; `@ 0`\n* for zero.\n*/\nfunction verboseIntervalFields(text) {\n\tif (!text.startsWith(\"@ \")) return void 0;\n\tconst ago = text.endsWith(\" ago\");\n\tconst body = text.slice(2, ago ? -4 : void 0);\n\tif (body === \"0\") return ZERO_INTERVAL;\n\tconst words = body.split(\" \");\n\tif (words.length === 0 || words.length % 2 !== 0) return void 0;\n\tlet months = 0;\n\tlet days = 0;\n\tlet micros = 0n;\n\tfor (let index = 0; index < words.length; index += 2) {\n\t\tconst match = VERBOSE_FIELD.exec(`${words[index]} ${words[index + 1]}`);\n\t\tif (match === null) return void 0;\n\t\tconst [, sign = \"\", whole = \"0\", fraction, unit] = match;\n\t\tif (fraction !== void 0 && unit !== \"sec\") return void 0;\n\t\tconst negative = sign === \"-\";\n\t\tconst count = signed(negative, Number(whole));\n\t\tif (unit === \"year\") months += count * 12;\n\t\telse if (unit === \"mon\") months += count;\n\t\telse if (unit === \"day\") days += count;\n\t\telse if (unit === \"hour\") micros += BigInt(count) * 3600n * MICROS_PER_SECOND;\n\t\telse if (unit === \"min\") micros += BigInt(count) * 60n * MICROS_PER_SECOND;\n\t\telse micros += timeMicros(negative, \"0\", \"0\", whole, fraction ?? \"\");\n\t}\n\tconst fields = {\n\t\tmonths,\n\t\tdays,\n\t\tmicros\n\t};\n\treturn ago ? negated(fields) : fields;\n}\nconst SQL_MIXED = /^([+-])(\\d+)-(\\d+) ([+-])(\\d+) ([+-])(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?$/;\nconst SQL_YEAR_MONTH = /^(-?)(\\d+)-(\\d+)$/;\nconst SQL_DAY_TIME = /^(-?)(?:(\\d+) )?(\\d+):(\\d{2}):(\\d{2})(?:\\.(\\d+))?$/;\n/**\n* An interval as PostgreSQL prints it under `IntervalStyle = 'sql_standard'`. A value with fields of\n* one sign and of one kind, year-month or day-time, has a single leading sign for all of them:\n* `-1-2`, `-1 2:03:04`, `-0:00:01.5`. Any other value signs each part: `+1-2 -3 +4:05:06.5`. Zero is\n* `0`.\n*/\nfunction sqlStandardIntervalFields(text) {\n\tif (text === \"0\") return ZERO_INTERVAL;\n\tconst mixed = SQL_MIXED.exec(text);\n\tif (mixed !== null) {\n\t\tconst [, yearSign, years = \"0\", months = \"0\", daySign, days = \"0\", timeSign] = mixed;\n\t\tconst monthCount = Number(years) * 12 + Number(months);\n\t\treturn {\n\t\t\tmonths: signed(yearSign === \"-\", monthCount),\n\t\t\tdays: signed(daySign === \"-\", Number(days)),\n\t\t\tmicros: timeMicros(timeSign === \"-\", mixed[7] ?? \"0\", mixed[8] ?? \"0\", mixed[9] ?? \"0\", mixed[10] ?? \"\")\n\t\t};\n\t}\n\tconst yearMonth = SQL_YEAR_MONTH.exec(text);\n\tif (yearMonth !== null) {\n\t\tconst [, sign, years = \"0\", months = \"0\"] = yearMonth;\n\t\tconst monthCount = Number(years) * 12 + Number(months);\n\t\treturn {\n\t\t\tmonths: signed(sign === \"-\", monthCount),\n\t\t\tdays: 0,\n\t\t\tmicros: 0n\n\t\t};\n\t}\n\tconst dayTime = SQL_DAY_TIME.exec(text);\n\tif (dayTime === null) return void 0;\n\tconst [, sign, days = \"0\", hours = \"0\", minutes = \"0\", seconds = \"0\", fraction = \"\"] = dayTime;\n\tconst negative = sign === \"-\";\n\treturn {\n\t\tmonths: 0,\n\t\tdays: signed(negative, Number(days)),\n\t\tmicros: timeMicros(negative, hours, minutes, seconds, fraction)\n\t};\n}\n/** Reads the interval text PostgreSQL prints under any `IntervalStyle`. */\nconst intervalTextFields = (text) => {\n\tconst fields = ISO_DURATION.test(text) ? intervalFieldsOf(text) : postgresIntervalFields(text) ?? verboseIntervalFields(text) ?? sqlStandardIntervalFields(text);\n\tif (fields === void 0) throw postgresError(\"RUNTIME.DECODE_FAILED\", `pg/interval@1 value must be interval text PostgreSQL prints under an IntervalStyle, got ${text}`, { meta: {\n\t\tcodecId: \"pg/interval@1\",\n\t\treceived: text\n\t} });\n\treturn fields;\n};\nconst pgIntervalDecode = (wire) => {\n\tif (typeof wire === \"string\") return intervalTextFields(wire);\n\tconst part = (name) => {\n\t\tconst raw = wire[name];\n\t\treturn typeof raw === \"number\" ? raw : 0;\n\t};\n\tconst seconds = part(\"seconds\") + part(\"milliseconds\") / 1e3;\n\treturn {\n\t\tmonths: part(\"years\") * 12 + part(\"months\"),\n\t\tdays: part(\"days\"),\n\t\tmicros: BigInt(part(\"hours\")) * 3600n * MICROS_PER_SECOND + BigInt(part(\"minutes\")) * 60n * MICROS_PER_SECOND + BigInt(Math.round(seconds * 1e6))\n\t};\n};\nconst pgByteaToBase64 = (value) => Buffer.from(value).toString(\"base64\");\nconst pgByteaFromBase64 = (base64) => new Uint8Array(Buffer.from(base64, \"base64\"));\n/** The text PostgreSQL prints for `bytea` under `bytea_output = 'escape'`: `\\\\` for a backslash, `\\nnn` in octal for a byte outside printable ASCII, and every other byte as itself. */\nconst BYTEA_ESCAPE_TEXT = /^(?:[ -[\\]-~]|\\\\\\\\|\\\\[0-3][0-7]{2})*$/;\nconst BYTEA_ESCAPE = /\\\\\\\\|\\\\([0-3][0-7]{2})|[ -[\\]-~]/g;\nfunction byteaOfEscapeText(text) {\n\tconst bytes = [];\n\tfor (const [token, octal] of text.matchAll(BYTEA_ESCAPE)) bytes.push(octal !== void 0 ? Number.parseInt(octal, 8) : token === \"\\\\\\\\\" ? 92 : token.charCodeAt(0));\n\treturn Uint8Array.from(bytes);\n}\nconst pgByteaDecodeWire = (wire) => {\n\tif (wire instanceof Uint8Array) return wire.constructor === Uint8Array ? wire : new Uint8Array(wire.buffer, wire.byteOffset, wire.byteLength);\n\tif (BYTEA_TEXT.test(wire)) return new Uint8Array(Buffer.from(wire.slice(2), \"hex\"));\n\tif (!wire.startsWith(\"\\\\x\") && BYTEA_ESCAPE_TEXT.test(wire)) return byteaOfEscapeText(wire);\n\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", \"pg/bytea@1 wire value must be a Uint8Array or bytea text, as PostgreSQL prints it under bytea_output 'hex' or 'escape'\", { meta: {\n\t\tcodecId: \"pg/bytea@1\",\n\t\treceived: wire\n\t} });\n};\nconst parseJsonWire = JSON.parse;\nconst pgJsonEncode = (value) => JSON.stringify(value);\nconst pgJsonDecode = (wire) => typeof wire === \"string\" ? parseJsonWire(wire) : wire;\nconst pgJsonbEncode = (value) => JSON.stringify(value);\nconst pgJsonbDecode = (wire) => typeof wire === \"string\" ? parseJsonWire(wire) : wire;\n//#endregion\n//#region src/core/require-temporal.ts\nlet fallback;\n/**\n* Sets the implementation `requireTemporal` returns when the runtime has no global `Temporal`.\n* The value is held once per process. Only the control entry calls this.\n*/\nfunction setFallbackTemporal(implementation) {\n\tfallback = implementation;\n}\n/**\n* The `Temporal` to use: the runtime's own when it has one, else the fallback. Throws\n* `RUNTIME.TEMPORAL_UNAVAILABLE` when there is neither.\n*/\nfunction requireTemporal(meta) {\n\tif (typeof Temporal !== \"undefined\") return Temporal;\n\tif (fallback !== void 0) return fallback;\n\tthrow \"generatorId\" in meta ? errorTemporalUnavailableForDefault(meta.generatorId) : errorTemporalUnavailable(meta.codecId, meta.operation);\n}\n//#endregion\n//#region src/core/temporal-codec-helpers.ts\nconst POSTGRES_TEMPORAL_SENTINELS = /* @__PURE__ */ new Set([\"infinity\", \"-infinity\"]);\nfunction decodeTemporalText(identity, wire, parse) {\n\tconst temporal = requireTemporal({\n\t\tcodecId: identity.codecId,\n\t\toperation: \"decode\"\n\t});\n\tif (POSTGRES_TEMPORAL_SENTINELS.has(wire)) throw errorTemporalUnrepresentable({\n\t\t...identity,\n\t\toperation: \"decode\",\n\t\tvalue: wire,\n\t\tdetail: `PostgreSQL's ${wire} is a sentinel with no position on the timeline, so no Temporal value denotes it`\n\t});\n\ttry {\n\t\treturn parse(temporal, isoYearText(wire));\n\t} catch (cause) {\n\t\tthrow errorTemporalUnrepresentable({\n\t\t\t...identity,\n\t\t\toperation: \"decode\",\n\t\t\tvalue: wire,\n\t\t\tdetail: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\nfunction encodeTemporalValue(identity, value) {\n\tconst tag = typeof value === \"object\" && value !== null ? Reflect.get(value, Symbol.toStringTag) : void 0;\n\tif (tag !== identity.temporalTag) throw errorTemporalWrongType(identity.codecId, identity.temporalTag, identity.stringType, describeEncodeInput(value, tag));\n\tif (value.calendarId !== void 0 && value.calendarId !== \"iso8601\") throw errorTemporalNonIsoCalendar(identity.codecId, value.calendarId);\n\treturn postgresYearText(value.toString());\n}\nfunction describeEncodeInput(value, tag) {\n\tif (typeof tag === \"string\") return `a ${tag}`;\n\tif (value instanceof Date) return \"a Date\";\n\tif (value === null) return \"null\";\n\treturn `a ${typeof value}`;\n}\n/** Refuses `infinity` and `-infinity` in a stored value, which no Temporal value or `Date` holds, naming the text codec of the type that does. */\nfunction refuseInfinity(codecId, holds, textCodecId, text) {\n\tif (!POSTGRES_TEMPORAL_SENTINELS.has(text)) return;\n\trefuseJsonValue(codecId, `${holds}, not infinity or -infinity, which ${textCodecId} holds`, text);\n}\nconst DATE_TEMPORAL = {\n\tcodecId: PG_DATE_TEMPORAL_CODEC_ID,\n\tstringType: \"DateString\",\n\ttemporalTag: \"Temporal.PlainDate\"\n};\nconst TIMESTAMP_TEMPORAL = {\n\tcodecId: PG_TIMESTAMP_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestampString(p)\",\n\ttemporalTag: \"Temporal.PlainDateTime\"\n};\nconst TIMESTAMPTZ_TEMPORAL = {\n\tcodecId: PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID,\n\tstringType: \"TimestamptzString(p)\",\n\ttemporalTag: \"Temporal.Instant\"\n};\nconst TIME_TEMPORAL = {\n\tcodecId: PG_TIME_TEMPORAL_CODEC_ID,\n\tstringType: \"TimeString(p)\",\n\ttemporalTag: \"Temporal.PlainTime\"\n};\nconst pgDateTemporalDecode = (wire) => decodeTemporalText(DATE_TEMPORAL, wire, (temporal, text) => temporal.PlainDate.from(text));\nconst pgDateTemporalEncode = (value) => encodeTemporalValue(DATE_TEMPORAL, value);\nconst pgTimestampTemporalDecode = (wire) => decodeTemporalText(TIMESTAMP_TEMPORAL, wire, (temporal, text) => temporal.PlainDateTime.from(text));\nconst pgTimestampTemporalEncode = (value) => encodeTemporalValue(TIMESTAMP_TEMPORAL, value);\nconst pgTimestamptzTemporalDecode = (wire) => decodeTemporalText(TIMESTAMPTZ_TEMPORAL, wire, (temporal, text) => temporal.Instant.from(text));\nconst pgTimestamptzTemporalEncode = (value) => encodeTemporalValue(TIMESTAMPTZ_TEMPORAL, value);\nconst pgTimeTemporalDecode = (wire) => decodeTemporalText(TIME_TEMPORAL, wire, (temporal, text) => temporal.PlainTime.from(text));\nconst pgTimeTemporalEncode = (value) => encodeTemporalValue(TIME_TEMPORAL, value);\nconst EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS = (/* @__PURE__ */ new Date(\"-004713-11-24T00:00:00Z\")).getTime();\nfunction utcTimestamptzText(value, codecId) {\n\tconst milliseconds = value.getTime();\n\tif (!Number.isFinite(milliseconds) || milliseconds < EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS) throw new RangeError(`${codecId} writes a Date as UTC text and needs a valid Date on or after 4714-11-24 BC, the earliest timestamp PostgreSQL holds; got ${String(value)}`);\n\treturn postgresYearText(value.toISOString());\n}\n//#endregion\n//#region src/core/date-codecs.ts\nfunction invalidDate() {\n\treturn /* @__PURE__ */ new RangeError(`${PG_TIMESTAMPTZ_DATE_CODEC_ID} requires a valid Date or a representable ISO PostgreSQL timestamp with time zone; use TimestamptzString for unsupported values`);\n}\nfunction isRepresentable(value) {\n\treturn value instanceof Date && Number.isFinite(value.getTime()) && value.getTime() >= EARLIEST_POSTGRES_TIMESTAMP_MILLISECONDS;\n}\nfunction validateDate(value) {\n\tif (!isRepresentable(value)) throw invalidDate();\n\treturn value;\n}\nfunction decodeDate(wire) {\n\tconst instant = typeof wire === \"string\" ? storedInstant(wire) : void 0;\n\tconst date = instant === void 0 ? void 0 : new Date(instant);\n\tif (date === void 0 || !isRepresentable(date)) throw invalidDate();\n\treturn date;\n}\n/** The instant, in its stored spelling, a stored timestamp with time zone names, or `undefined` for `infinity` and an instant outside the range a `Date` holds. */\nfunction storedInstant(text) {\n\tif (text === \"infinity\" || text === \"-infinity\") return void 0;\n\ttry {\n\t\treturn pgTimestamptzStoredText(text);\n\t} catch (error) {\n\t\tif (isStructuredError(error) && error.code === \"CONTRACT.CAST_REFUSED\") return void 0;\n\t\tthrow error;\n\t}\n}\n/** The `Date` a stored timestamp with time zone names. A `Date` holds neither `infinity` nor an instant before 4714-11-24 BC or after +275760-09-13, so those are refused. */\nfunction dateOfStoredText(codecId, text) {\n\tconst instant = storedInstant(text);\n\tconst date = instant === void 0 ? void 0 : new Date(instant);\n\tif (date === void 0 || !isRepresentable(date)) return refuseJsonValue(codecId, `an instant a Date holds, from 4714-11-24 BC to +275760-09-13 and not infinity or -infinity, which ${PG_TIMESTAMPTZ_STRING_CODEC_ID} holds`, text);\n\treturn date;\n}\nfunction encodeDate(value) {\n\treturn utcTimestamptzText(validateDate(value), PG_TIMESTAMPTZ_DATE_CODEC_ID);\n}\nvar PgTimestamptzDateCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn encodeDate(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodeDate(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn dateOfStoredText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(validateDate(input).toISOString());\n\t}\n};\nvar PgTimestamptzDateDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_DATE_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzDateCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzDateDescriptor = new PgTimestamptzDateDescriptor();\nconst pgTimestamptzDateColumn = (params = {}) => column(pgTimestamptzDateDescriptor.factory(params), pgTimestamptzDateDescriptor.codecId, params);\n//#endregion\n//#region src/core/list-decoder.ts\nfunction parsePostgresListText(wireValue) {\n\tif (typeof wireValue !== \"string\") throw new TypeError(`expected raw text for a Postgres array, got ${typeof wireValue}`);\n\treturn blindCast(parse(wireValue));\n}\nasync function decodePostgresListText(wireValue, decodeElement) {\n\tconst decoded = [];\n\tfor (const element of parsePostgresListText(wireValue)) {\n\t\tif (element === null) {\n\t\t\tdecoded.push(null);\n\t\t\tcontinue;\n\t\t}\n\t\tdecoded.push(await decodeElement(element));\n\t}\n\treturn decoded;\n}\n//#endregion\n//#region src/core/temporal-codecs.ts\nvar PgDateTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgDateTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgDateTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"a date a Temporal.PlainDate holds\", PG_DATE_STRING_CODEC_ID, value.value);\n\t\treturn pgDateTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgDateTemporalEncode(input));\n\t}\n};\nvar PgDateTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgDateTemporalCodec(this, pgDate);\n\t}\n};\nconst pgDateTemporalDescriptor = new PgDateTemporalDescriptor();\nvar PgTimestampTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimestampTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimestampTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"a date and time a Temporal.PlainDateTime holds\", PG_TIMESTAMP_STRING_CODEC_ID, value.value);\n\t\treturn pgTimestampTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimestampTemporalEncode(input));\n\t}\n};\nvar PgTimestampTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampTemporalCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampTemporalDescriptor = new PgTimestampTemporalDescriptor();\nvar PgTimestamptzTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimestamptzTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimestamptzTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\trefuseInfinity(this.id, \"an instant a Temporal.Instant holds\", PG_TIMESTAMPTZ_STRING_CODEC_ID, value.value);\n\t\treturn pgTimestamptzTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimestamptzTemporalEncode(input));\n\t}\n};\nvar PgTimestamptzTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzTemporalCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzTemporalDescriptor = new PgTimestamptzTemporalDescriptor();\nvar PgTimeTemporalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgTimeTemporalEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgTimeTemporalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgTimeTemporalDecode(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgTimeTemporalEncode(input));\n\t}\n};\nvar PgTimeTemporalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_TEMPORAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimeTemporalCodec(this, pgTime, params ?? {});\n\t}\n};\nconst pgTimeTemporalDescriptor = new PgTimeTemporalDescriptor();\n//#endregion\n//#region src/core/temporal-string-codecs.ts\nvar PgDateStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgDateStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgDate.id;\n\tcodecId = PG_DATE_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgDateStringCodec(this, pgDate);\n\t}\n};\nconst pgDateStringDescriptor = new PgDateStringDescriptor();\nfunction requireText(codecId, value) {\n\tif (typeof value === \"string\") return value;\n\tthrow errorTimestampTextWrongType(codecId, describeValue(value));\n}\nfunction describeValue(value) {\n\tif (value === null) return \"null\";\n\tif (value instanceof Date) return \"a Date\";\n\treturn `a ${typeof value}`;\n}\nvar PgTimestampStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(requireText(this.id, value));\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/** Why an enum cannot use a string timestamp codec, given how PostgreSQL prints a value and how the contract stores it. */\nconst stringTimestampEnumRefusal = (printed, stored, printing, instead) => `A query reads each value as the text PostgreSQL prints${printing}, such as \"${printed}\", while the contract stores it in ISO 8601, such as \"${stored}\", so no value read back equals a member. Use ${instead}, whose members are Temporal values.`;\nvar PgTimestampStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamp.id;\n\tcodecId = PG_TIMESTAMP_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tenumRefusal = stringTimestampEnumRefusal(\"2024-01-02 03:04:05\", \"2024-01-02T03:04:05\", \"\", \"pg/timestamp-temporal@1\");\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestampStringCodec(this, pgTimestamp, params ?? {});\n\t}\n};\nconst pgTimestampStringDescriptor = new PgTimestampStringDescriptor();\nvar PgTimestamptzStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn postgresYearText(requireText(this.id, value));\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTimestamptzStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTimestamptz.id;\n\tcodecId = PG_TIMESTAMPTZ_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tenumRefusal = stringTimestampEnumRefusal(\"2024-01-02 03:04:05+00\", \"2024-01-02T03:04:05Z\", \" in the session's time zone\", \"pg/timestamptz-temporal@1\");\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimestamptzStringCodec(this, pgTimestamptz, params ?? {});\n\t}\n};\nconst pgTimestamptzStringDescriptor = new PgTimestamptzStringDescriptor();\nvar PgTimeStringCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTimeStringDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn CastExpr.as(expression, \"text\");\n\t}\n\tdataType = pgTime.id;\n\tcodecId = PG_TIME_STRING_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimeStringCodec(this, pgTime, params ?? {});\n\t}\n};\nconst pgTimeStringDescriptor = new PgTimeStringDescriptor();\n//#endregion\n//#region src/core/codecs.ts\n/** A decimal numeral: an optional minus sign, digits, and an optional fraction. */\nconst DECIMAL_NUMERAL_TEXT = /^-?\\d+(?:\\.\\d+)?$/;\n/** A decimal numeral is written as PostgreSQL prints it, without leading zeros or a minus sign on zero; other spellings PostgreSQL reads, such as `1e5`, are refused. */\nfunction numericJson(value) {\n\tif (typeof value !== \"string\" || isNonFiniteText(value)) return value;\n\tif (DECIMAL_NUMERAL_TEXT.test(value)) return storedNumeralText(value);\n\tthrow postgresError(\"RUNTIME.ENCODE_FAILED\", \"pg/numeric@1 application value must be numeric text: an optionally negated decimal numeral, or NaN, Infinity or -Infinity\", { meta: {\n\t\tcodecId: PG_NUMERIC_CODEC_ID,\n\t\treceived: value\n\t} });\n}\n/**\n* Projects the expression unchanged, for codecs whose canonical JSON is what\n* PostgreSQL's own JSON conversion already produces.\n*\n* Identity here is a claim about the target's behaviour, not an absence of one:\n* the codec's conformance cases are what test it, including at the boundaries\n* of the representation — escaping, sign, and range — where a native conversion\n* would be most likely to diverge.\n*/\nconst identityJsonProjection = (expression) => expression;\n/**\n* Projects a `character` value as text, which drops the trailing spaces that pad it to its length and nothing else, so an include reads the value a flat read's `decode` returns.\n*/\nconst unpaddedCharJsonProjection = (expression) => CastExpr.as(expression, \"text\");\nconst decodePostgresNumberWire = (wire) => typeof wire === \"string\" ? Number(wire) : wire;\nconst decodePostgresBooleanWire = (wire) => {\n\tif (typeof wire === \"boolean\") return wire;\n\tif (wire === \"t\" || wire === \"true\") return true;\n\tif (wire === \"f\" || wire === \"false\") return false;\n\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", \"pg/bool@1 wire value must be boolean text\", { meta: {\n\t\tcodecId: PG_BOOL_CODEC_ID,\n\t\treceived: wire\n\t} });\n};\n/**\n* Projects a numeric-valued expression as decimal text.\n*\n* The cast is part of the projected expression, which is what makes it correct:\n* whatever `jsonProjection` returns is the argument the JSON constructor\n* receives, so casting here happens *before* PostgreSQL builds the JSON value.\n* Handed a `numeric` or `int8` directly, the constructor emits a JSON **number**,\n* and every digit past IEEE-754's 53 bits of significand is gone by the time the\n* driver has parsed it — before any codec can intervene. A cast applied to the\n* constructor's result instead of its argument would be too late to matter.\n*/\nconst decimalTextJsonProjection = (expression) => CastExpr.as(expression, \"text\");\n/**\n* Projects the text PostgreSQL prints for the value, which is the value the runtime driver returns\n* for an ordinary row, so `fromWire` reads an included value as it reads a row (ADR 254, \"Rows the\n* database returns as JSON\"). PostgreSQL's own JSON conversion would write another value: a `bytea`\n* as its hex text but a `jsonb` document as the document itself, which `fromWire` cannot tell from\n* the document's JSON text when the document is a string.\n*/\nconst printedTextJsonProjection = (expression) => CastExpr.as(expression, \"text\");\nconst postgresSqlCharDescriptor = postgresCodec(sqlCharDescriptor, {\n\tdataType: pgChar,\n\tjsonProjection: unpaddedCharJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlCharCodec(descriptor, dataType, params)\n});\nconst postgresSqlVarcharDescriptor = postgresCodec(sqlVarcharDescriptor, {\n\tdataType: pgVarchar,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType, params) => () => new SqlVarcharCodec(descriptor, dataType, params)\n});\nconst postgresSqlIntDescriptor = postgresCodec(sqlIntDescriptor, {\n\tdataType: pgInt4,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new PgIntCodec(descriptor, dataType)\n});\nconst postgresSqlFloatDescriptor = postgresCodec(sqlFloatDescriptor, {\n\tdataType: pgFloat8,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new PgFloatCodec(descriptor, dataType)\n});\nconst postgresSqlTextDescriptor = postgresCodec(sqlTextDescriptor, {\n\tdataType: pgText,\n\tjsonProjection: identityJsonProjection,\n\tfactory: (descriptor, dataType) => () => new SqlTextCodec(descriptor, dataType)\n});\nvar PgTextCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTextDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgText.id;\n\tcodecId = PG_TEXT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"textual\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgTextCodec(this, pgText);\n\t}\n};\nconst pgTextDescriptor = new PgTextDescriptor();\nconst pgTextColumn = () => column(pgTextDescriptor.factory(), pgTextDescriptor.codecId, void 0);\n/**\n* Codec for a `pg.enum(Ref)` column bound to a native Postgres enum type.\n* Text passthrough, identical to `pg/text@1` — encode/decode do not carry the\n* enum's member values; membership is enforced by the native type itself, not\n* by this codec. `renderValueLiteral` renders a member value as its TS\n* literal, which is what drives the column's typed value-union (via\n* `renderValueSetType` reading the column's `valueSet` ref) — the codec\n* itself carries no params of its own; typing comes entirely from the\n* column's value-set, not from `pg/enum@1`.\n*\n* A distinct codec id (rather than reusing `pg/text@1` on a plain text\n* column) keeps native-enum columns independently identifiable — from a\n* column's `codecId` alone, without also inspecting its data type — which\n* the managed (DDL) phase needs to target `CREATE TYPE`/`ALTER TYPE`\n* operations at exactly the columns that use one.\n*\n* Not `textual`, although its values are strings: Postgres has no `LIKE`,\n* `ILIKE` or `to_tsvector` over an enum type.\n*/\nvar PgEnumCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/**\n* Narrows codec `typeParams` to {@link PgEnumParams} — the shape that binds a\n* column to a named database type (a native enum's `CREATE TYPE` name).\n*/\nfunction isPgEnumParams(value) {\n\treturn typeof value === \"object\" && value !== null && !Array.isArray(value) && \"typeName\" in value && typeof value.typeName === \"string\";\n}\nvar PgEnumDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgEnum.id;\n\tcodecId = PG_ENUM_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgEnumParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgEnumCodec(this, pgEnum, params);\n\t}\n\t/**\n\t* Authoring-time hook a `pg.enum(<ref>)` type constructor calls once it has\n\t* resolved its ref argument to the referenced `native_enum` entity:\n\t* produces this codec's per-column `typeParams` from the entity's bare type\n\t* name. Schema-qualification (`auth.aal_level` for a\n\t* named non-default schema) is not this hook's concern — the field's\n\t* namespace isn't known at this call site for every authoring path (the TS\n\t* builder resolves a column before it knows its model's namespace), so it is\n\t* applied later, at contract construction, by {@link qualifyNativeType} via\n\t* the target's `authoring.qualifyColumnType` hook. Returns `undefined` if `entity` is not a `PostgresNativeEnum` (a\n\t* contributor bug, not a user-schema error — the caller decides how to\n\t* report it).\n\t*/\n\tcolumnFromEntity(entity) {\n\t\tif (!PostgresNativeEnum.is(entity)) return void 0;\n\t\treturn { typeParams: { typeName: entity.typeName } };\n\t}\n\t/**\n\t* Schema-qualifies this native enum type's name for the namespace the\n\t* consuming column lives in: `${namespaceId}.${typeName}` for a named\n\t* non-default schema, bare for the target's default schema (`public`) or\n\t* the late-bound unbound sentinel (whose schema `search_path` resolves at\n\t* runtime). Postgres's `format_type()` reports the bare name for a\n\t* public-schema type, so a public column's declared native type must stay\n\t* bare to match. Owned here because the codec owns its native type.\n\t*/\n\tqualifyNativeType(typeName, namespaceId) {\n\t\treturn namespaceId === \"public\" || namespaceId === UNBOUND_NAMESPACE_ID ? typeName : `${namespaceId}.${typeName}`;\n\t}\n};\nconst pgEnumDescriptor = new PgEnumDescriptor();\n/**\n* Contract-construction-time column-type qualifier the Postgres target\n* contributes through `authoring.qualifyColumnType`.\n* `buildSqlContractFromDefinition` calls this for every column as it is\n* constructed, passing the column's bare type info and its owning\n* `namespaceId`; a native-enum column (`pg/enum@1`) gets its type name\n* schema-qualified for that namespace (via\n* {@link PgEnumDescriptor.qualifyNativeType}), which rewrites only\n* `typeParams.typeName`. Every other codec passes through unchanged.\n* Both the PSL `pg.enum(Ref)` path and the TS `pg.enum(handle)` path route\n* through here — the dispatch keys off the codec id, not authoring surface.\n*/\nfunction postgresQualifyColumnType(input, namespaceId) {\n\tif (input.codecId !== \"pg/enum@1\") return input;\n\tconst bareTypeName = input.typeParams?.[\"typeName\"];\n\tif (typeof bareTypeName !== \"string\") return input;\n\tconst qualified = pgEnumDescriptor.qualifyNativeType(bareTypeName, namespaceId);\n\treturn { typeParams: {\n\t\t...input.typeParams,\n\t\ttypeName: qualified\n\t} };\n}\n/** The elements of the `text[]` text PostgreSQL prints, each a string or NULL. */\nfunction readTextArrayWire(wire) {\n\treturn parsePostgresListText(wire).map((element) => {\n\t\tif (element === null || typeof element === \"string\") return element;\n\t\tthrow postgresError(\"RUNTIME.DECODE_FAILED\", `pg/text-array@1 reads a one-dimensional text[], and ${wire} has more dimensions`, { meta: {\n\t\t\tcodecId: PG_TEXT_ARRAY_CODEC_ID,\n\t\t\treceived: wire\n\t\t} });\n\t});\n}\n/**\n* Postgres `text[]` control codec. Encode is an identity pass-through: the pg\n* wire driver serialises a JS `string[]` to a Postgres array literal under the\n* `$N::text[]` cast emitted from this codec's native type. Decode reads the\n* array text the driver returns, or an array a driver has already parsed. Not a\n* user-facing scalar — it is not part of the authorable `CodecTypes` surface,\n* only the runtime codec registry.\n*/\nvar PgTextArrayCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn typeof wire === \"string\" ? readTextArrayWire(wire) : wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf([...input]);\n\t}\n};\nvar PgTextArrayDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgTextArray.id;\n\tcodecId = PG_TEXT_ARRAY_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTextArrayCodec(this, pgTextArray);\n\t}\n};\nconst pgTextArrayDescriptor = new PgTextArrayDescriptor();\nvar PgInt4Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInt4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt4Codec(this, pgInt4);\n\t}\n};\nconst pgInt4Descriptor = new PgInt4Descriptor();\nconst pgInt4Column = () => column(pgInt4Descriptor.factory(), pgInt4Descriptor.codecId, void 0);\nvar PgInt2Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInt2Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt2.id;\n\tcodecId = PG_INT2_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt2Codec(this, pgInt2);\n\t}\n};\nconst pgInt2Descriptor = new PgInt2Descriptor();\nconst pgInt2Column = () => column(pgInt2Descriptor.factory(), pgInt2Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` spans the full signed 64-bit range, which a JS `number`\n* cannot hold past 2^53. Application values are `bigint` and the canonical JSON\n* is decimal text; the wire form is the decimal string `pg` reads and writes for\n* this type.\n*/\nvar PgInt8Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgBigintEncode(PG_INT8_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgInt8Decode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn BigInt(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgBigintDigits(PG_INT8_CODEC_ID, input));\n\t}\n};\nvar PgInt8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8Codec(this, pgInt8);\n\t}\n};\nconst pgInt8Descriptor = new PgInt8Descriptor();\nconst pgInt8Column = () => column(pgInt8Descriptor.factory(), pgInt8Descriptor.codecId, void 0);\n/**\n* A Postgres `int8` decoded as a JS `number`, for columns whose values stay\n* within the safe integer range ±(2^53 − 1). Both directions guard rather than\n* round: decode (wire and JSON) and encode throw a structured error on\n* out-of-range or non-integral input. The canonical JSON is the decimal text\n* `pg/int8` carries, which every codec of that data type shares. The descriptor\n* claims no target type, so `int8` in type position stays `pg/int8@1`.\n*/\nvar PgInt8NumberCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgInt8NumberEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgInt8NumberDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgInt8NumberFromDigits(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgInt8NumberEncode(input));\n\t}\n};\nvar PgInt8NumberDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgInt8.id;\n\tcodecId = PG_INT8_NUMBER_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgInt8NumberCodec(this, pgInt8);\n\t}\n};\nconst pgInt8NumberDescriptor = new PgInt8NumberDescriptor();\nconst pgInt8NumberColumn = () => column(pgInt8NumberDescriptor.factory(), pgInt8NumberDescriptor.codecId, void 0);\nvar PgFloat4Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloat(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(input));\n\t}\n};\nvar PgFloat4Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat4.id;\n\tcodecId = PG_FLOAT4_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat4Codec(this, pgFloat4);\n\t}\n};\nconst pgFloat4Descriptor = new PgFloat4Descriptor();\nconst pgFloat4Column = () => column(pgFloat4Descriptor.factory(), pgFloat4Descriptor.codecId, void 0);\nvar PgFloat8Codec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgFloatEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn readJsonFloat(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(floatToJson(input));\n\t}\n};\nvar PgFloat8Descriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT8_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloat8Codec(this, pgFloat8);\n\t}\n};\nconst pgFloat8Descriptor = new PgFloat8Descriptor();\nconst pgFloat8Column = () => column(pgFloat8Descriptor.factory(), pgFloat8Descriptor.codecId, void 0);\nvar PgBoolCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresBooleanWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgBoolDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBool.id;\n\tcodecId = PG_BOOL_CODEC_ID;\n\ttraits = [\"equality\", \"boolean\"];\n\tparamsSchema = void 0;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgBoolCodec(this, pgBool);\n\t}\n};\nconst pgBoolDescriptor = new PgBoolDescriptor();\nconst pgBoolColumn = () => column(pgBoolDescriptor.factory(), pgBoolDescriptor.codecId, void 0);\nvar PgNumericCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgNumericDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(numericJson(input));\n\t}\n};\nvar PgNumericDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_NUMERIC_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = pgNumericParams;\n\tfactory(params) {\n\t\treturn () => new PgNumericCodec(this, pgNumeric, params ?? {});\n\t}\n};\nconst pgNumericDescriptor = new PgNumericDescriptor();\nconst pgNumericColumn = (params = {}) => column(pgNumericDescriptor.factory(params), pgNumericDescriptor.codecId, params);\n/**\n* A genuinely unbounded integer over unconstrained Postgres `numeric` storage.\n* Application values are `bigint` and the canonical JSON is decimal text, like\n* `pg/int8@1`; decode rejects non-integral values. The descriptor claims no\n* target type, so `numeric` and `decimal` in type position stay `pg/numeric@1`.\n*/\nvar PgUnboundedIntCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgBigintEncode(PG_UNBOUNDED_INT_CODEC_ID, value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgUnboundedIntDecode(wire);\n\t}\n\t/** A `bigint` holds only a whole number, so a value with a fraction, or `NaN` or an infinity, is refused. */\n\tfromDataTypeValue(value) {\n\t\treturn readJsonIntegerText(this.id, value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgBigintDigits(PG_UNBOUNDED_INT_CODEC_ID, input));\n\t}\n};\nvar PgUnboundedIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn decimalTextJsonProjection(expression);\n\t}\n\tdataType = pgNumeric.id;\n\tcodecId = PG_UNBOUNDED_INT_CODEC_ID;\n\ttraits = [\n\t\t\"equality\",\n\t\t\"order\",\n\t\t\"numeric\"\n\t];\n\tparamsSchema = pgNumericParams;\n\trenderValueLiteral(value) {\n\t\treturn decimalTextBigintLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new PgUnboundedIntCodec(this, pgNumeric, params ?? {});\n\t}\n};\nconst pgUnboundedIntDescriptor = new PgUnboundedIntDescriptor();\nconst pgUnboundedIntColumn = () => column(pgUnboundedIntDescriptor.factory(), pgUnboundedIntDescriptor.codecId, void 0);\nvar PgTimetzCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgTimetzDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTimetz.id;\n\tcodecId = PG_TIMETZ_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgTimetzCodec(this, pgTimetz, params ?? {});\n\t}\n};\nconst pgTimetzDescriptor = new PgTimetzDescriptor();\nconst pgTimetzColumn = (params = {}) => column(pgTimetzDescriptor.factory(params), pgTimetzDescriptor.codecId, params);\nvar PgBitCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgBitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgBit.id;\n\tcodecId = PG_BIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\tfactory(params) {\n\t\treturn () => new PgBitCodec(this, pgBit, params ?? {});\n\t}\n};\nconst pgBitDescriptor = new PgBitDescriptor();\nconst pgBitColumn = (params = {}) => column(pgBitDescriptor.factory(params), pgBitDescriptor.codecId, params);\nvar PgVarbitCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgVarbitDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarbit.id;\n\tcodecId = PG_VARBIT_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgBitLengthParams;\n\tfactory(params) {\n\t\treturn () => new PgVarbitCodec(this, pgVarbit, params ?? {});\n\t}\n};\nconst pgVarbitDescriptor = new PgVarbitDescriptor();\nconst pgVarbitColumn = (params = {}) => column(pgVarbitDescriptor.factory(params), pgVarbitDescriptor.codecId, params);\nvar PgByteaCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgByteaDecodeWire(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgByteaFromBase64(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgByteaToBase64(input));\n\t}\n};\nvar PgByteaDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgBytea.id;\n\tcodecId = PG_BYTEA_CODEC_ID;\n\ttraits = [\"equality\"];\n\tenumRefusal = \"The contract stores a bytea value as base64 text, which PostgreSQL reads as the bytes of that text, so no CHECK can compare a value with the members. No enum can use a bytea codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgByteaCodec(this, pgBytea);\n\t}\n};\nconst pgByteaDescriptor = new PgByteaDescriptor();\nvar PgUuidCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgUuidDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgUuid.id;\n\tcodecId = PG_UUID_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgUuidCodec(this, pgUuid);\n\t}\n};\nconst pgUuidDescriptor = new PgUuidDescriptor();\nconst pgUuidColumn = () => column(pgUuidDescriptor.factory(), pgUuidDescriptor.codecId, void 0);\nvar PgInetCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn wire;\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgInetDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInet.id;\n\tcodecId = PG_INET_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgInetCodec(this, pgInet);\n\t}\n};\nconst pgInetDescriptor = new PgInetDescriptor();\nconst pgInetColumn = () => column(pgInetDescriptor.factory(), pgInetDescriptor.codecId, void 0);\nvar PgTsqueryCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn value;\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn blindCast(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn blindCast(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\n/**\n* The type of a full-text query: what the parsers and the tag in `full-text` return, and what a\n* `tsquery` value read back from a query binds as when passed to `fullTextMatches`, `fullTextRank`\n* or `fullTextHeadline`. It has no column helper, because a contract cannot author a `tsquery`\n* column, and no traits, because comparing or ordering queries means nothing to an application.\n*/\nvar PgTsqueryDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgTsquery.id;\n\tcodecId = PG_TSQUERY_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"PostgreSQL normalises the query text, so a member as written is not the value a query reads back: it prints a & b as 'a' & 'b'. No enum can use a tsquery codec; use a text enum instead.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgTsqueryCodec(this, pgTsquery);\n\t}\n};\nconst pgTsqueryDescriptor = new PgTsqueryDescriptor();\n/**\n* An application value is a {@link PgInterval} — the three fields PostgreSQL\n* actually stores, `{ months, days, micros }` — and its canonical JSON is the\n* ISO-8601 duration string PostgreSQL spells under\n* `IntervalStyle = 'iso_8601'`: `P1M`, `P30D`, `P1Y2M3DT4H5M6S`, `PT0S` for\n* zero, each component carrying its own sign.\n*\n* Value and representation are independent here, as they are for `pg/bytea@1`\n* (`Uint8Array` carried as base64) and `pg/int8@1` (`bigint` carried as decimal\n* text). Reading an interval hands back numbers to compute with rather than a\n* string to parse; writing one takes the same numbers.\n*\n* The fields stay independent because a month has no fixed length: `{months: 1}`\n* and `{days: 30}` are different values and neither converts to the other. The\n* ISO rendering normalises only in its own spelling — twelve months render as a\n* year — so `{months: 13}` renders `P1Y1M` and reads back as `{months: 13}`.\n*/\nvar PgIntervalCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgIntervalToIso(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgIntervalDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn pgIntervalFromIso(value.value);\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(pgIntervalToIso(input));\n\t}\n};\nvar PgIntervalDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgInterval.id;\n\tcodecId = PG_INTERVAL_CODEC_ID;\n\ttraits = [\"equality\", \"order\"];\n\tparamsSchema = pgPrecisionParams;\n\tfactory(params) {\n\t\treturn () => new PgIntervalCodec(this, pgInterval, params ?? {});\n\t}\n};\nconst pgIntervalDescriptor = new PgIntervalDescriptor();\nconst pgIntervalColumn = (params = {}) => column(pgIntervalDescriptor.factory(params), pgIntervalDescriptor.codecId, params);\nvar PgJsonCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgJsonEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgJsonDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgJsonDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgJson.id;\n\tcodecId = PG_JSON_CODEC_ID;\n\ttraits = [];\n\tenumRefusal = \"The json type has no equality operator, so no CHECK can compare a value with the members. Use pg/jsonb@1, whose type has one.\";\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonCodec(this, pgJson);\n\t}\n};\nconst pgJsonDescriptor = new PgJsonDescriptor();\nconst pgJsonColumn = () => column(pgJsonDescriptor.factory(), pgJsonDescriptor.codecId, void 0);\nvar PgJsonbCodec = class extends CodecImpl {\n\tasync toWire(value, _ctx) {\n\t\treturn pgJsonbEncode(value);\n\t}\n\tasync fromWire(wire, _ctx) {\n\t\treturn pgJsonbDecode(wire);\n\t}\n\tfromDataTypeValue(value) {\n\t\treturn value.value;\n\t}\n\ttoDataTypeValue(input) {\n\t\treturn this.dataTypeValueOf(input);\n\t}\n};\nvar PgJsonbDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn printedTextJsonProjection(expression);\n\t}\n\tdataType = pgJsonb.id;\n\tcodecId = PG_JSONB_CODEC_ID;\n\ttraits = [\"equality\"];\n\tparamsSchema = void 0;\n\tfactory() {\n\t\treturn () => new PgJsonbCodec(this, pgJsonb);\n\t}\n};\nconst pgJsonbDescriptor = new PgJsonbDescriptor();\nconst pgJsonbColumn = () => column(pgJsonbDescriptor.factory(), pgJsonbDescriptor.codecId, void 0);\nvar PgIntCodec = class extends SqlIntCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n};\nvar PgFloatCodec = class extends SqlFloatCodec {\n\tasync fromWire(wire, _ctx) {\n\t\treturn decodePostgresNumberWire(wire);\n\t}\n};\nvar PgCharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn unpaddedCharJsonProjection(expression);\n\t}\n\tdataType = pgChar.id;\n\tcodecId = PG_CHAR_CODEC_ID;\n\ttraits = sqlCharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new SqlCharCodec(this, pgChar, params ?? {});\n\t}\n};\nconst pgCharDescriptor = new PgCharDescriptor();\nconst pgCharColumn = (params = {}) => column(pgCharDescriptor.factory(params), pgCharDescriptor.codecId, params);\nvar PgVarcharDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgVarchar.id;\n\tcodecId = PG_VARCHAR_CODEC_ID;\n\ttraits = sqlVarcharDescriptor.traits;\n\tparamsSchema = pgCharacterLengthParams;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory(params) {\n\t\treturn () => new SqlVarcharCodec(this, pgVarchar, params ?? {});\n\t}\n};\nconst pgVarcharDescriptor = new PgVarcharDescriptor();\nconst pgVarcharColumn = (params = {}) => column(pgVarcharDescriptor.factory(params), pgVarcharDescriptor.codecId, params);\nvar PgIntDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgInt4.id;\n\tcodecId = PG_INT_CODEC_ID;\n\ttraits = sqlIntDescriptor.traits;\n\tparamsSchema = sqlIntDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn renderTsLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgIntCodec(this, pgInt4);\n\t}\n};\nconst pgIntDescriptor = new PgIntDescriptor();\nconst pgIntColumn = () => column(pgIntDescriptor.factory(), pgIntDescriptor.codecId, void 0);\nvar PgFloatDescriptor = class extends PostgresCodecDescriptor {\n\tjsonProjection(expression) {\n\t\treturn expression;\n\t}\n\tdataType = pgFloat8.id;\n\tcodecId = PG_FLOAT_CODEC_ID;\n\ttraits = sqlFloatDescriptor.traits;\n\tparamsSchema = sqlFloatDescriptor.paramsSchema;\n\trenderValueLiteral(value) {\n\t\treturn floatNumberLiteral(value);\n\t}\n\tfactory() {\n\t\treturn () => new PgFloatCodec(this, pgFloat8);\n\t}\n};\nconst pgFloatDescriptor = new PgFloatDescriptor();\nconst pgFloatColumn = () => column(pgFloatDescriptor.factory(), pgFloatDescriptor.codecId, void 0);\nconst codecDescriptors = definePostgresCodecs([\n\tpostgresSqlCharDescriptor,\n\tpostgresSqlVarcharDescriptor,\n\tpostgresSqlIntDescriptor,\n\tpostgresSqlFloatDescriptor,\n\tpostgresSqlTextDescriptor,\n\tpgTextDescriptor,\n\tpgEnumDescriptor,\n\tpgCharDescriptor,\n\tpgVarcharDescriptor,\n\tpgIntDescriptor,\n\tpgFloatDescriptor,\n\tpgInt4Descriptor,\n\tpgInt2Descriptor,\n\tpgInt8Descriptor,\n\tpgInt8NumberDescriptor,\n\tpgFloat4Descriptor,\n\tpgFloat8Descriptor,\n\tpgNumericDescriptor,\n\tpgUnboundedIntDescriptor,\n\tpgDateTemporalDescriptor,\n\tpgTimestampTemporalDescriptor,\n\tpgTimestamptzTemporalDescriptor,\n\tpgTimeTemporalDescriptor,\n\tpgDateStringDescriptor,\n\tpgTimestampStringDescriptor,\n\tpgTimestamptzStringDescriptor,\n\tpgTimestamptzDateDescriptor,\n\tpgTimeStringDescriptor,\n\tpgTimetzDescriptor,\n\tpgBoolDescriptor,\n\tpgBitDescriptor,\n\tpgVarbitDescriptor,\n\tpgByteaDescriptor,\n\tpgUuidDescriptor,\n\tpgInetDescriptor,\n\tpgIntervalDescriptor,\n\tpgJsonDescriptor,\n\tpgJsonbDescriptor,\n\tpgTextArrayDescriptor,\n\tpgTsqueryDescriptor\n]);\n//#endregion\nexport { PgTimestamptzDateDescriptor as A, pgUuidColumn as C, decodePostgresListText as D, postgresQualifyColumnType as E, pgTimestamptzDateDescriptor as M, requireTemporal as N, parsePostgresListText as O, setFallbackTemporal as P, pgUnboundedIntColumn as S, pgVarcharColumn as T, pgJsonColumn as _, pgCharColumn as a, pgTextColumn as b, pgFloat8Column as c, pgInt2Column as d, pgInt4Column as f, pgIntervalColumn as g, pgIntColumn as h, pgBoolColumn as i, pgTimestamptzDateColumn as j, PgTimestamptzDateCodec as k, pgFloatColumn as l, pgInt8NumberColumn as m, isPgEnumParams as n, pgEnumDescriptor as o, pgInt8Column as p, pgBitColumn as r, pgFloat4Column as s, codecDescriptors as t, pgInetColumn as u, pgJsonbColumn as v, pgVarbitColumn as w, pgTimetzColumn as x, pgNumericColumn as y };\n\n//# sourceMappingURL=codecs-UZ1NEbvk.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,MAAM,mBAAmB,SAAS;CACjC,IAAI,OAAO,SAAS,UAAU,OAAO,YAAY,IAAI;CACrD,OAAO;AACR;AACA,MAAM,kBAAkB;;;;;;;;;AASxB,MAAM,iBAAiB,SAAS,UAAU,UAAU;CACnD,IAAI,OAAO,UAAU,UAAU;CAC/B,MAAM,cAAc,yBAAyB,GAAG,QAAQ,mBAAmB,SAAS,QAAQ,OAAO,MAAM,GAAG,OAAO,KAAK,KAAK,EAAE,MAAM;EACpI;EACA,UAAU,OAAO;CAClB,EAAE,CAAC;AACJ;;AAEA,MAAM,kBAAkB,SAAS,UAAU;CAC1C,cAAc,SAAS,UAAU,KAAK;CACtC,OAAO,MAAM,SAAS;AACvB;;;;;;;;;;;;AAYA,MAAM,kBAAkB,SAAS,UAAU;CAC1C,IAAI,OAAO,UAAU,UAAU,OAAO,eAAe,SAAS,KAAK;CACnE,IAAI,CAAC,OAAO,cAAc,KAAK,GAAG,MAAM,cAAc,yBAAyB,GAAG,QAAQ,wEAAwE,OAAO,KAAK,KAAK,EAAE,MAAM;EAC1L;EACA,UAAU,OAAO,KAAK;CACvB,EAAE,CAAC;CACH,OAAO,OAAO,KAAK,CAAC,CAAC,SAAS;AAC/B;;;;;;;AAOA,MAAM,wBAAwB,SAAS,SAAS;CAC/C,IAAI,OAAO,SAAS,UAAU,OAAO;CACrC,MAAM,OAAO,OAAO,IAAI;CACxB,IAAI,CAAC,gBAAgB,KAAK,IAAI,GAAG,MAAM,cAAc,yBAAyB,GAAG,QAAQ,mCAAmC,EAAE,MAAM;EACnI;EACA,UAAU;CACX,EAAE,CAAC;CACH,IAAI,OAAO,SAAS,YAAY,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