@loaders.gl/tiles 5.0.0-alpha.12 → 5.0.0-alpha.14
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/LICENSE +1 -1
- package/README.md +18 -72
- package/dist/dist.dev.js +7144 -42900
- package/dist/dist.min.js +3 -22
- package/dist/image-set.d.ts +1 -1
- package/dist/image-set.d.ts.map +1 -1
- package/dist/index.cjs +2856 -8787
- package/dist/index.cjs.map +3 -4
- package/dist/index.d.ts +4 -45
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -27
- package/dist/index.js.map +1 -1
- package/dist/mlt/bundled.d.ts +3 -0
- package/dist/mlt/bundled.d.ts.map +1 -0
- package/dist/mlt/bundled.js +5 -0
- package/dist/mlt/bundled.js.map +1 -0
- package/dist/mlt/index.cjs +3699 -0
- package/dist/mlt/index.cjs.map +6 -0
- package/dist/mlt/index.d.ts +10 -0
- package/dist/mlt/index.d.ts.map +1 -0
- package/dist/mlt/index.js +12 -0
- package/dist/mlt/index.js.map +1 -0
- package/dist/mlt/lib/encode-mlt-geometry.d.ts +6 -0
- package/dist/mlt/lib/encode-mlt-geometry.d.ts.map +1 -0
- package/dist/mlt/lib/encode-mlt-geometry.js +150 -0
- package/dist/mlt/lib/encode-mlt-geometry.js.map +1 -0
- package/dist/mlt/lib/encode-mlt-streams.d.ts +13 -0
- package/dist/mlt/lib/encode-mlt-streams.d.ts.map +1 -0
- package/dist/mlt/lib/encode-mlt-streams.js +57 -0
- package/dist/mlt/lib/encode-mlt-streams.js.map +1 -0
- package/dist/mlt/lib/encode-mlt.d.ts +6 -0
- package/dist/mlt/lib/encode-mlt.d.ts.map +1 -0
- package/dist/mlt/lib/encode-mlt.js +174 -0
- package/dist/mlt/lib/encode-mlt.js.map +1 -0
- package/dist/mlt/lib/parse-mlt.d.ts +11 -0
- package/dist/mlt/lib/parse-mlt.d.ts.map +1 -0
- package/dist/mlt/lib/parse-mlt.js +675 -0
- package/dist/mlt/lib/parse-mlt.js.map +1 -0
- package/dist/mlt/mlt-format.d.ts +14 -0
- package/dist/mlt/mlt-format.d.ts.map +1 -0
- package/dist/mlt/mlt-format.js +17 -0
- package/dist/mlt/mlt-format.js.map +1 -0
- package/dist/mlt/mlt-loader-with-parser.d.ts +91 -0
- package/dist/mlt/mlt-loader-with-parser.d.ts.map +1 -0
- package/dist/mlt/mlt-loader-with-parser.js +29 -0
- package/dist/mlt/mlt-loader-with-parser.js.map +1 -0
- package/dist/mlt/mlt-loader.d.ts +115 -0
- package/dist/mlt/mlt-loader.d.ts.map +1 -0
- package/dist/mlt/mlt-loader.js +38 -0
- package/dist/mlt/mlt-loader.js.map +1 -0
- package/dist/mlt/mlt-source-loader.d.ts +82 -0
- package/dist/mlt/mlt-source-loader.d.ts.map +1 -0
- package/dist/mlt/mlt-source-loader.js +179 -0
- package/dist/mlt/mlt-source-loader.js.map +1 -0
- package/dist/mlt/mlt-writer.d.ts +45 -0
- package/dist/mlt/mlt-writer.d.ts.map +1 -0
- package/dist/mlt/mlt-writer.js +21 -0
- package/dist/mlt/mlt-writer.js.map +1 -0
- package/dist/mlt/unbundled.d.ts +3 -0
- package/dist/mlt/unbundled.d.ts.map +1 -0
- package/dist/mlt/unbundled.js +5 -0
- package/dist/mlt/unbundled.js.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.d.ts +36 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.d.ts.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.js +36 -0
- package/dist/mvt/arrow-table-tile-source-loader-types.js.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader.cjs +6341 -0
- package/dist/mvt/arrow-table-tile-source-loader.cjs.map +6 -0
- package/dist/mvt/arrow-table-tile-source-loader.d.ts +69 -0
- package/dist/mvt/arrow-table-tile-source-loader.d.ts.map +1 -0
- package/dist/mvt/arrow-table-tile-source-loader.js +216 -0
- package/dist/mvt/arrow-table-tile-source-loader.js.map +1 -0
- package/dist/mvt/arrow-table-tile-source-types.d.ts +21 -0
- package/dist/mvt/arrow-table-tile-source-types.d.ts.map +1 -0
- package/dist/mvt/arrow-table-tile-source-types.js +6 -0
- package/dist/mvt/arrow-table-tile-source-types.js.map +1 -0
- package/dist/mvt/bundled.d.ts +6 -0
- package/dist/mvt/bundled.d.ts.map +1 -0
- package/dist/mvt/bundled.js +7 -0
- package/dist/mvt/bundled.js.map +1 -0
- package/dist/mvt/dist.dev.js +46684 -0
- package/dist/mvt/dist.min.js +94 -0
- package/dist/mvt/index.cjs +10085 -0
- package/dist/mvt/index.cjs.map +6 -0
- package/dist/mvt/index.d.ts +28 -0
- package/dist/mvt/index.d.ts.map +1 -0
- package/dist/mvt/index.js +27 -0
- package/dist/mvt/index.js.map +1 -0
- package/dist/mvt/lib/encode-mvt-arrow.d.ts +6 -0
- package/dist/mvt/lib/encode-mvt-arrow.d.ts.map +1 -0
- package/dist/mvt/lib/encode-mvt-arrow.js +225 -0
- package/dist/mvt/lib/encode-mvt-arrow.js.map +1 -0
- package/dist/mvt/lib/encode-mvt.d.ts +30 -0
- package/dist/mvt/lib/encode-mvt.d.ts.map +1 -0
- package/dist/mvt/lib/encode-mvt.js +20 -0
- package/dist/mvt/lib/encode-mvt.js.map +1 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.d.ts +4 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.d.ts.map +1 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.js +56 -0
- package/dist/mvt/lib/get-schemas-from-tilejson.js.map +1 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.d.ts +3 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.d.ts.map +1 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.js +13 -0
- package/dist/mvt/lib/is-longitude-latitude-crs.js.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.d.ts +25 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.d.ts.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.js +73 -0
- package/dist/mvt/lib/mapbox-vt-pbf/geojson-wrapper.js.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.d.ts +52 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.d.ts.map +1 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.js +165 -0
- package/dist/mvt/lib/mapbox-vt-pbf/to-vector-tile.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.d.ts +116 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.js +127 -0
- package/dist/mvt/lib/mvt-pbf/mvt-constants.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.d.ts +17 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.js +5 -0
- package/dist/mvt/lib/mvt-pbf/mvt-types.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.d.ts +77 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.js +235 -0
- package/dist/mvt/lib/mvt-pbf/parse-geometry-from-pbf.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.d.ts +25 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.js +263 -0
- package/dist/mvt/lib/mvt-pbf/parse-mvt-from-pbf.js.map +1 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.d.ts +4 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.js +134 -0
- package/dist/mvt/lib/mvt-pbf/write-mvt-to-pbf.js.map +1 -0
- package/dist/mvt/lib/mvt-worker-transport.d.ts +15 -0
- package/dist/mvt/lib/mvt-worker-transport.d.ts.map +1 -0
- package/dist/mvt/lib/mvt-worker-transport.js +54 -0
- package/dist/mvt/lib/mvt-worker-transport.js.map +1 -0
- package/dist/mvt/lib/parse-mvt-geojson.d.ts +6 -0
- package/dist/mvt/lib/parse-mvt-geojson.d.ts.map +1 -0
- package/dist/mvt/lib/parse-mvt-geojson.js +48 -0
- package/dist/mvt/lib/parse-mvt-geojson.js.map +1 -0
- package/dist/mvt/lib/parse-mvt.d.ts +14 -0
- package/dist/mvt/lib/parse-mvt.d.ts.map +1 -0
- package/dist/mvt/lib/parse-mvt.js +105 -0
- package/dist/mvt/lib/parse-mvt.js.map +1 -0
- package/dist/mvt/lib/parse-tilejson.d.ts +74 -0
- package/dist/mvt/lib/parse-tilejson.d.ts.map +1 -0
- package/dist/mvt/lib/parse-tilejson.js +267 -0
- package/dist/mvt/lib/parse-tilejson.js.map +1 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.d.ts +4 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.d.ts.map +1 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.js +16 -0
- package/dist/mvt/lib/resolve-table-tile-parameters.js.map +1 -0
- package/dist/mvt/lib/types.d.ts +88 -0
- package/dist/mvt/lib/types.d.ts.map +1 -0
- package/dist/mvt/lib/types.js.map +1 -0
- package/dist/mvt/lib/utils/geometry-utils.d.ts +83 -0
- package/dist/mvt/lib/utils/geometry-utils.d.ts.map +1 -0
- package/dist/mvt/lib/utils/geometry-utils.js +211 -0
- package/dist/mvt/lib/utils/geometry-utils.js.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.d.ts +72 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.js +350 -0
- package/dist/mvt/lib/vector-tile/vector-tile-feature.js.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.d.ts +29 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.js +108 -0
- package/dist/mvt/lib/vector-tile/vector-tile-layer.js.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile.d.ts +9 -0
- package/dist/mvt/lib/vector-tile/vector-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tile/vector-tile.js +28 -0
- package/dist/mvt/lib/vector-tile/vector-tile.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.d.ts +6 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.js +84 -0
- package/dist/mvt/lib/vector-tiler/arrow-tile.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.d.ts +16 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.js +211 -0
- package/dist/mvt/lib/vector-tiler/features/clip-features.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.d.ts +18 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.js +161 -0
- package/dist/mvt/lib/vector-tiler/features/convert-feature.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.d.ts +30 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.js +53 -0
- package/dist/mvt/lib/vector-tiler/features/proto-feature.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.d.ts +10 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.js +67 -0
- package/dist/mvt/lib/vector-tiler/features/simplify-path.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.d.ts +17 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.js +95 -0
- package/dist/mvt/lib/vector-tiler/features/wrap-features.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.d.ts +40 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.js +139 -0
- package/dist/mvt/lib/vector-tiler/proto-tile.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.d.ts +12 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.js +81 -0
- package/dist/mvt/lib/vector-tiler/tile-to-geojson.js.map +1 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.d.ts +7 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.d.ts.map +1 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.js +42 -0
- package/dist/mvt/lib/vector-tiler/transform-tile.js.map +1 -0
- package/dist/mvt/map-style-format.d.ts +13 -0
- package/dist/mvt/map-style-format.d.ts.map +1 -0
- package/dist/mvt/map-style-format.js +16 -0
- package/dist/mvt/map-style-format.js.map +1 -0
- package/dist/mvt/map-style-loader-with-parser.d.ts +26 -0
- package/dist/mvt/map-style-loader-with-parser.d.ts.map +1 -0
- package/dist/mvt/map-style-loader-with-parser.js +38 -0
- package/dist/mvt/map-style-loader-with-parser.js.map +1 -0
- package/dist/mvt/map-style-loader.d.ts +44 -0
- package/dist/mvt/map-style-loader.d.ts.map +1 -0
- package/dist/mvt/map-style-loader.js +25 -0
- package/dist/mvt/map-style-loader.js.map +1 -0
- package/dist/mvt/map-style-schema.d.ts +58 -0
- package/dist/mvt/map-style-schema.d.ts.map +1 -0
- package/dist/mvt/map-style-schema.js +47 -0
- package/dist/mvt/map-style-schema.js.map +1 -0
- package/dist/mvt/map-style.d.ts +110 -0
- package/dist/mvt/map-style.d.ts.map +1 -0
- package/dist/mvt/map-style.js +90 -0
- package/dist/mvt/map-style.js.map +1 -0
- package/dist/mvt/mvt-format.d.ts +14 -0
- package/dist/mvt/mvt-format.d.ts.map +1 -0
- package/dist/mvt/mvt-format.js +23 -0
- package/dist/mvt/mvt-format.js.map +1 -0
- package/dist/mvt/mvt-geojson-loader-types.d.ts +82 -0
- package/dist/mvt/mvt-geojson-loader-types.d.ts.map +1 -0
- package/dist/mvt/mvt-geojson-loader-types.js +34 -0
- package/dist/mvt/mvt-geojson-loader-types.js.map +1 -0
- package/dist/mvt/mvt-geojson-loader.cjs +1366 -0
- package/dist/mvt/mvt-geojson-loader.cjs.map +6 -0
- package/dist/mvt/mvt-geojson-loader.d.ts +32 -0
- package/dist/mvt/mvt-geojson-loader.d.ts.map +1 -0
- package/dist/mvt/mvt-geojson-loader.js +13 -0
- package/dist/mvt/mvt-geojson-loader.js.map +1 -0
- package/dist/mvt/mvt-loader-with-parser.d.ts +105 -0
- package/dist/mvt/mvt-loader-with-parser.d.ts.map +1 -0
- package/dist/mvt/mvt-loader-with-parser.js +21 -0
- package/dist/mvt/mvt-loader-with-parser.js.map +1 -0
- package/dist/mvt/mvt-loader.d.ts +129 -0
- package/dist/mvt/mvt-loader.d.ts.map +1 -0
- package/dist/mvt/mvt-loader.js +40 -0
- package/dist/mvt/mvt-loader.js.map +1 -0
- package/dist/mvt/mvt-source-loader.d.ts +102 -0
- package/dist/mvt/mvt-source-loader.d.ts.map +1 -0
- package/dist/mvt/mvt-source-loader.js +275 -0
- package/dist/mvt/mvt-source-loader.js.map +1 -0
- package/dist/mvt/mvt-writer.d.ts +28 -0
- package/dist/mvt/mvt-writer.d.ts.map +1 -0
- package/dist/mvt/mvt-writer.js +32 -0
- package/dist/mvt/mvt-writer.js.map +1 -0
- package/dist/mvt/table-tile-source-loader.d.ts +169 -0
- package/dist/mvt/table-tile-source-loader.d.ts.map +1 -0
- package/dist/mvt/table-tile-source-loader.js +478 -0
- package/dist/mvt/table-tile-source-loader.js.map +1 -0
- package/dist/mvt/tilejson-format.d.ts +13 -0
- package/dist/mvt/tilejson-format.d.ts.map +1 -0
- package/dist/mvt/tilejson-format.js +16 -0
- package/dist/mvt/tilejson-format.js.map +1 -0
- package/dist/mvt/tilejson-loader-with-parser.d.ts +13 -0
- package/dist/mvt/tilejson-loader-with-parser.d.ts.map +1 -0
- package/dist/mvt/tilejson-loader-with-parser.js +25 -0
- package/dist/mvt/tilejson-loader-with-parser.js.map +1 -0
- package/dist/mvt/tilejson-loader.d.ts +56 -0
- package/dist/mvt/tilejson-loader.d.ts.map +1 -0
- package/dist/mvt/tilejson-loader.js +28 -0
- package/dist/mvt/tilejson-loader.js.map +1 -0
- package/dist/mvt/tilejson-zod-schema.cjs +79 -0
- package/dist/mvt/tilejson-zod-schema.cjs.map +6 -0
- package/dist/mvt/tilejson-zod-schema.d.ts +218 -0
- package/dist/mvt/tilejson-zod-schema.d.ts.map +1 -0
- package/dist/mvt/tilejson-zod-schema.js +68 -0
- package/dist/mvt/tilejson-zod-schema.js.map +1 -0
- package/dist/mvt/tilejson.schema.json +197 -0
- package/dist/mvt/unbundled.d.ts +8 -0
- package/dist/mvt/unbundled.d.ts.map +1 -0
- package/dist/mvt/unbundled.js +8 -0
- package/dist/mvt/unbundled.js.map +1 -0
- package/dist/mvt/workers/mvt-worker-node.d.ts +2 -0
- package/dist/mvt/workers/mvt-worker-node.d.ts.map +1 -0
- package/dist/mvt/workers/mvt-worker-node.js +8 -0
- package/dist/mvt/workers/mvt-worker-node.js.map +1 -0
- package/dist/mvt/workers/mvt-worker.d.ts +2 -0
- package/dist/mvt/workers/mvt-worker.d.ts.map +1 -0
- package/dist/mvt/workers/mvt-worker.js +7 -0
- package/dist/mvt/workers/mvt-worker.js.map +1 -0
- package/dist/mvt-worker-node.js +72502 -0
- package/dist/mvt-worker-node.js.map +7 -0
- package/dist/mvt-worker.js +21280 -0
- package/dist/pmtiles/bundled.d.ts +3 -0
- package/dist/pmtiles/bundled.d.ts.map +1 -0
- package/dist/pmtiles/bundled.js +5 -0
- package/dist/pmtiles/bundled.js.map +1 -0
- package/dist/pmtiles/dist.dev.js +50525 -0
- package/dist/pmtiles/dist.min.js +94 -0
- package/dist/pmtiles/geoarrow.cjs +6716 -0
- package/dist/pmtiles/geoarrow.cjs.map +6 -0
- package/dist/pmtiles/geoarrow.d.ts +30 -0
- package/dist/pmtiles/geoarrow.d.ts.map +1 -0
- package/dist/pmtiles/geoarrow.js +143 -0
- package/dist/pmtiles/geoarrow.js.map +1 -0
- package/dist/pmtiles/index.cjs +8001 -0
- package/dist/pmtiles/index.cjs.map +6 -0
- package/dist/pmtiles/index.d.ts +14 -0
- package/dist/pmtiles/index.d.ts.map +1 -0
- package/dist/pmtiles/index.js +10 -0
- package/dist/pmtiles/index.js.map +1 -0
- package/dist/pmtiles/lib/blob-source.d.ts +14 -0
- package/dist/pmtiles/lib/blob-source.d.ts.map +1 -0
- package/dist/pmtiles/lib/blob-source.js +32 -0
- package/dist/pmtiles/lib/blob-source.js.map +1 -0
- package/dist/pmtiles/lib/encode-pmtiles.d.ts +8 -0
- package/dist/pmtiles/lib/encode-pmtiles.d.ts.map +1 -0
- package/dist/pmtiles/lib/encode-pmtiles.js +268 -0
- package/dist/pmtiles/lib/encode-pmtiles.js.map +1 -0
- package/dist/pmtiles/lib/parse-pmtiles.d.ts +52 -0
- package/dist/pmtiles/lib/parse-pmtiles.d.ts.map +1 -0
- package/dist/pmtiles/lib/parse-pmtiles.js +95 -0
- package/dist/pmtiles/lib/parse-pmtiles.js.map +1 -0
- package/dist/pmtiles/lib/range-request-source.d.ts +24 -0
- package/dist/pmtiles/lib/range-request-source.d.ts.map +1 -0
- package/dist/pmtiles/lib/range-request-source.js +45 -0
- package/dist/pmtiles/lib/range-request-source.js.map +1 -0
- package/dist/pmtiles/lib/version.d.ts +2 -0
- package/dist/pmtiles/lib/version.d.ts.map +1 -0
- package/dist/pmtiles/lib/version.js +8 -0
- package/dist/pmtiles/lib/version.js.map +1 -0
- package/dist/pmtiles/pmtiles-format.d.ts +14 -0
- package/dist/pmtiles/pmtiles-format.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-format.js +17 -0
- package/dist/pmtiles/pmtiles-format.js.map +1 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.d.ts +30 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.js +41 -0
- package/dist/pmtiles/pmtiles-loader-with-parser.js.map +1 -0
- package/dist/pmtiles/pmtiles-loader.d.ts +41 -0
- package/dist/pmtiles/pmtiles-loader.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-loader.js +20 -0
- package/dist/pmtiles/pmtiles-loader.js.map +1 -0
- package/dist/pmtiles/pmtiles-source-loader.d.ts +85 -0
- package/dist/pmtiles/pmtiles-source-loader.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-source-loader.js +239 -0
- package/dist/pmtiles/pmtiles-source-loader.js.map +1 -0
- package/dist/pmtiles/pmtiles-writer-types.d.ts +39 -0
- package/dist/pmtiles/pmtiles-writer-types.d.ts.map +1 -0
- package/dist/{point-cloud-tile-source-types.js → pmtiles/pmtiles-writer-types.js} +1 -1
- package/dist/pmtiles/pmtiles-writer-types.js.map +1 -0
- package/dist/pmtiles/pmtiles-writer.d.ts +22 -0
- package/dist/pmtiles/pmtiles-writer.d.ts.map +1 -0
- package/dist/pmtiles/pmtiles-writer.js +15 -0
- package/dist/pmtiles/pmtiles-writer.js.map +1 -0
- package/dist/pmtiles/raster.cjs +1183 -0
- package/dist/pmtiles/raster.cjs.map +6 -0
- package/dist/pmtiles/raster.d.ts +30 -0
- package/dist/pmtiles/raster.d.ts.map +1 -0
- package/dist/pmtiles/raster.js +212 -0
- package/dist/pmtiles/raster.js.map +1 -0
- package/dist/pmtiles/source-info.d.ts +25 -0
- package/dist/pmtiles/source-info.d.ts.map +1 -0
- package/dist/{types.js → pmtiles/source-info.js} +1 -1
- package/dist/pmtiles/source-info.js.map +1 -0
- package/dist/pmtiles/unbundled.d.ts +3 -0
- package/dist/pmtiles/unbundled.d.ts.map +1 -0
- package/dist/pmtiles/unbundled.js +5 -0
- package/dist/pmtiles/unbundled.js.map +1 -0
- package/dist/raster-set.d.ts +1 -1
- package/dist/raster-set.d.ts.map +1 -1
- package/dist/raster-set.js +1 -1
- package/dist/raster-set.js.map +1 -1
- package/dist/tile-matrix.cjs +81 -0
- package/dist/tile-matrix.cjs.map +6 -0
- package/dist/tile-matrix.d.ts +52 -0
- package/dist/tile-matrix.d.ts.map +1 -0
- package/dist/tile-matrix.js +75 -0
- package/dist/tile-matrix.js.map +1 -0
- package/dist/tileset-2d/tile-2d-header.d.ts +2 -2
- package/dist/tileset-2d/tile-2d-header.d.ts.map +1 -1
- package/dist/tileset-2d/tile-2d-header.js +11 -11
- package/dist/tileset-2d/tile-2d-header.js.map +1 -1
- package/dist/tileset-2d/tileset-2d.d.ts +19 -10
- package/dist/tileset-2d/tileset-2d.d.ts.map +1 -1
- package/dist/tileset-2d/tileset-2d.js +69 -15
- package/dist/tileset-2d/tileset-2d.js.map +1 -1
- package/package.json +101 -25
- package/src/image-set.ts +1 -1
- package/src/index.ts +8 -128
- package/src/mlt/bundled.ts +9 -0
- package/src/mlt/index.ts +18 -0
- package/src/mlt/lib/encode-mlt-geometry.ts +162 -0
- package/src/mlt/lib/encode-mlt-streams.ts +66 -0
- package/src/mlt/lib/encode-mlt.ts +215 -0
- package/src/mlt/lib/parse-mlt.ts +906 -0
- package/src/mlt/libs/mlt-decoder.cjs +4552 -0
- package/src/mlt/mlt-format.ts +19 -0
- package/src/mlt/mlt-loader-with-parser.ts +57 -0
- package/src/mlt/mlt-loader.ts +64 -0
- package/src/mlt/mlt-source-loader.ts +266 -0
- package/src/mlt/mlt-writer.ts +47 -0
- package/src/mlt/unbundled.ts +6 -0
- package/src/mvt/arrow-table-tile-source-loader-types.ts +55 -0
- package/src/mvt/arrow-table-tile-source-loader.ts +307 -0
- package/src/mvt/arrow-table-tile-source-types.ts +32 -0
- package/src/mvt/bundled.ts +14 -0
- package/src/mvt/index.ts +67 -0
- package/src/mvt/lib/encode-mvt-arrow.ts +273 -0
- package/src/mvt/lib/encode-mvt.ts +46 -0
- package/src/mvt/lib/get-schemas-from-tilejson.ts +64 -0
- package/src/mvt/lib/is-longitude-latitude-crs.ts +15 -0
- package/src/mvt/lib/mapbox-vt-pbf/geojson-to-vt.ts.disabled +76 -0
- package/src/mvt/lib/mapbox-vt-pbf/geojson-wrapper.ts +89 -0
- package/src/mvt/lib/mapbox-vt-pbf/to-vector-tile.ts +230 -0
- package/src/mvt/lib/mvt-pbf/mvt-constants.ts +135 -0
- package/src/mvt/lib/mvt-pbf/mvt-types.ts +22 -0
- package/src/mvt/lib/mvt-pbf/parse-geometry-from-pbf.ts +285 -0
- package/src/mvt/lib/mvt-pbf/parse-mvt-from-pbf.ts +310 -0
- package/src/mvt/lib/mvt-pbf/write-mvt-to-pbf.ts +162 -0
- package/src/mvt/lib/mvt-worker-transport.ts +77 -0
- package/src/mvt/lib/parse-mvt-geojson.ts +65 -0
- package/src/mvt/lib/parse-mvt.ts +145 -0
- package/src/mvt/lib/parse-tilejson.ts +397 -0
- package/src/mvt/lib/resolve-table-tile-parameters.ts +23 -0
- package/src/mvt/lib/types.ts +90 -0
- package/src/mvt/lib/utils/geometry-utils.ts +238 -0
- package/src/mvt/lib/vector-tile/LICENSE.txt +31 -0
- package/src/mvt/lib/vector-tile/vector-tile-feature.ts +430 -0
- package/src/mvt/lib/vector-tile/vector-tile-layer.ts +130 -0
- package/src/mvt/lib/vector-tile/vector-tile.ts +32 -0
- package/src/mvt/lib/vector-tiler/LICENSE +19 -0
- package/src/mvt/lib/vector-tiler/arrow-tile.ts +93 -0
- package/src/mvt/lib/vector-tiler/features/clip-features.ts +250 -0
- package/src/mvt/lib/vector-tiler/features/convert-feature.ts +213 -0
- package/src/mvt/lib/vector-tiler/features/proto-feature.ts +104 -0
- package/src/mvt/lib/vector-tiler/features/simplify-path.ts +84 -0
- package/src/mvt/lib/vector-tiler/features/wrap-features.ts +125 -0
- package/src/mvt/lib/vector-tiler/proto-tile.ts +217 -0
- package/src/mvt/lib/vector-tiler/tile-to-geojson.ts +104 -0
- package/src/mvt/lib/vector-tiler/transform-tile.ts +57 -0
- package/src/mvt/map-style-format.ts +18 -0
- package/src/mvt/map-style-loader-with-parser.ts +62 -0
- package/src/mvt/map-style-loader.ts +31 -0
- package/src/mvt/map-style-schema.ts +53 -0
- package/src/mvt/map-style.ts +218 -0
- package/src/mvt/mvt-format.ts +25 -0
- package/src/mvt/mvt-geojson-loader-types.ts +60 -0
- package/src/mvt/mvt-geojson-loader.ts +20 -0
- package/src/mvt/mvt-loader-with-parser.ts +53 -0
- package/src/mvt/mvt-loader.ts +73 -0
- package/src/mvt/mvt-source-loader.ts +410 -0
- package/src/mvt/mvt-writer.ts +35 -0
- package/src/mvt/table-tile-source-loader.ts +672 -0
- package/src/mvt/tilejson-format.ts +18 -0
- package/src/mvt/tilejson-loader-with-parser.ts +38 -0
- package/src/mvt/tilejson-loader.ts +42 -0
- package/src/mvt/tilejson-zod-schema.ts +199 -0
- package/src/mvt/unbundled.ts +13 -0
- package/src/mvt/workers/mvt-worker-node.ts +9 -0
- package/src/mvt/workers/mvt-worker.ts +8 -0
- package/src/pmtiles/bundled.ts +6 -0
- package/src/pmtiles/geoarrow.ts +188 -0
- package/src/pmtiles/index.ts +27 -0
- package/src/pmtiles/lib/blob-source.ts +41 -0
- package/src/pmtiles/lib/encode-pmtiles.ts +322 -0
- package/src/pmtiles/lib/parse-pmtiles.ts +180 -0
- package/src/pmtiles/lib/range-request-source.ts +60 -0
- package/src/pmtiles/lib/version.ts +8 -0
- package/src/pmtiles/pmtiles-format.ts +19 -0
- package/src/pmtiles/pmtiles-loader-with-parser.ts +60 -0
- package/src/pmtiles/pmtiles-loader.ts +30 -0
- package/src/pmtiles/pmtiles-source-loader.ts +346 -0
- package/src/pmtiles/pmtiles-writer-types.ts +45 -0
- package/src/pmtiles/pmtiles-writer.ts +26 -0
- package/src/pmtiles/raster.ts +289 -0
- package/src/pmtiles/source-info.ts +25 -0
- package/src/pmtiles/unbundled.ts +6 -0
- package/src/raster-set.ts +2 -2
- package/src/tile-matrix.ts +138 -0
- package/src/tileset-2d/tile-2d-header.ts +14 -13
- package/src/tileset-2d/tileset-2d.ts +81 -19
- package/dist/constants.d.ts +0 -38
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -39
- package/dist/constants.js.map +0 -1
- package/dist/point-cloud/point-cloud-tile.d.ts +0 -47
- package/dist/point-cloud/point-cloud-tile.d.ts.map +0 -1
- package/dist/point-cloud/point-cloud-tile.js +0 -70
- package/dist/point-cloud/point-cloud-tile.js.map +0 -1
- package/dist/point-cloud/point-cloud-tileset.d.ts +0 -135
- package/dist/point-cloud/point-cloud-tileset.d.ts.map +0 -1
- package/dist/point-cloud/point-cloud-tileset.js +0 -549
- package/dist/point-cloud/point-cloud-tileset.js.map +0 -1
- package/dist/point-cloud/types.d.ts +0 -81
- package/dist/point-cloud/types.d.ts.map +0 -1
- package/dist/point-cloud/types.js.map +0 -1
- package/dist/point-cloud-tile-source-loader-types.d.ts +0 -31
- package/dist/point-cloud-tile-source-loader-types.d.ts.map +0 -1
- package/dist/point-cloud-tile-source-loader-types.js +0 -34
- package/dist/point-cloud-tile-source-loader-types.js.map +0 -1
- package/dist/point-cloud-tile-source-loader.cjs +0 -81
- package/dist/point-cloud-tile-source-loader.cjs.map +0 -7
- package/dist/point-cloud-tile-source-loader.d.ts +0 -27
- package/dist/point-cloud-tile-source-loader.d.ts.map +0 -1
- package/dist/point-cloud-tile-source-loader.js +0 -17
- package/dist/point-cloud-tile-source-loader.js.map +0 -1
- package/dist/point-cloud-tile-source-types.d.ts +0 -15
- package/dist/point-cloud-tile-source-types.d.ts.map +0 -1
- package/dist/point-cloud-tile-source-types.js.map +0 -1
- package/dist/point-cloud-tile-source.cjs +0 -105
- package/dist/point-cloud-tile-source.cjs.map +0 -7
- package/dist/point-cloud-tile-source.d.ts +0 -36
- package/dist/point-cloud-tile-source.d.ts.map +0 -1
- package/dist/point-cloud-tile-source.js +0 -84
- package/dist/point-cloud-tile-source.js.map +0 -1
- package/dist/spatial/format-spatial-reference.d.ts +0 -68
- package/dist/spatial/format-spatial-reference.d.ts.map +0 -1
- package/dist/spatial/format-spatial-reference.js +0 -291
- package/dist/spatial/format-spatial-reference.js.map +0 -1
- package/dist/spatial/get-spatial-coordinate-frame.d.ts +0 -20
- package/dist/spatial/get-spatial-coordinate-frame.d.ts.map +0 -1
- package/dist/spatial/get-spatial-coordinate-frame.js +0 -139
- package/dist/spatial/get-spatial-coordinate-frame.js.map +0 -1
- package/dist/spatial/i3s-elevation.d.ts +0 -20
- package/dist/spatial/i3s-elevation.d.ts.map +0 -1
- package/dist/spatial/i3s-elevation.js +0 -90
- package/dist/spatial/i3s-elevation.js.map +0 -1
- package/dist/spatial/i3s-spatial-transformer.d.ts +0 -205
- package/dist/spatial/i3s-spatial-transformer.d.ts.map +0 -1
- package/dist/spatial/i3s-spatial-transformer.js +0 -731
- package/dist/spatial/i3s-spatial-transformer.js.map +0 -1
- package/dist/spatial/normalize-crs-identifier.d.ts +0 -15
- package/dist/spatial/normalize-crs-identifier.d.ts.map +0 -1
- package/dist/spatial/normalize-crs-identifier.js +0 -22
- package/dist/spatial/normalize-crs-identifier.js.map +0 -1
- package/dist/spatial/spatial-coordinate-transformer.d.ts +0 -54
- package/dist/spatial/spatial-coordinate-transformer.d.ts.map +0 -1
- package/dist/spatial/spatial-coordinate-transformer.js +0 -311
- package/dist/spatial/spatial-coordinate-transformer.js.map +0 -1
- package/dist/spatial/spatial-resource-registry.d.ts +0 -47
- package/dist/spatial/spatial-resource-registry.d.ts.map +0 -1
- package/dist/spatial/spatial-resource-registry.js +0 -76
- package/dist/spatial/spatial-resource-registry.js.map +0 -1
- package/dist/spatial/spatial-types.d.ts +0 -190
- package/dist/spatial/spatial-types.d.ts.map +0 -1
- package/dist/spatial/spatial-types.js +0 -192
- package/dist/spatial/spatial-types.js.map +0 -1
- package/dist/spatial/tiles-3d-spatial-transformer.d.ts +0 -32
- package/dist/spatial/tiles-3d-spatial-transformer.d.ts.map +0 -1
- package/dist/spatial/tiles-3d-spatial-transformer.js +0 -163
- package/dist/spatial/tiles-3d-spatial-transformer.js.map +0 -1
- package/dist/tileset-3d/common/indexed-archive-tileset-source.d.ts +0 -60
- package/dist/tileset-3d/common/indexed-archive-tileset-source.d.ts.map +0 -1
- package/dist/tileset-3d/common/indexed-archive-tileset-source.js +0 -130
- package/dist/tileset-3d/common/indexed-archive-tileset-source.js.map +0 -1
- package/dist/tileset-3d/common/tile-3d-contracts.d.ts +0 -63
- package/dist/tileset-3d/common/tile-3d-contracts.d.ts.map +0 -1
- package/dist/tileset-3d/common/tile-3d-contracts.js +0 -51
- package/dist/tileset-3d/common/tile-3d-contracts.js.map +0 -1
- package/dist/tileset-3d/common/tile-3d.d.ts +0 -410
- package/dist/tileset-3d/common/tile-3d.d.ts.map +0 -1
- package/dist/tileset-3d/common/tile-3d.js +0 -1056
- package/dist/tileset-3d/common/tile-3d.js.map +0 -1
- package/dist/tileset-3d/common/tileset-3d.d.ts +0 -369
- package/dist/tileset-3d/common/tileset-3d.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-3d.js +0 -879
- package/dist/tileset-3d/common/tileset-3d.js.map +0 -1
- package/dist/tileset-3d/common/tileset-cache.d.ts +0 -29
- package/dist/tileset-3d/common/tileset-cache.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-cache.js +0 -82
- package/dist/tileset-3d/common/tileset-cache.js.map +0 -1
- package/dist/tileset-3d/common/tileset-content-traversal.d.ts +0 -37
- package/dist/tileset-3d/common/tileset-content-traversal.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-content-traversal.js +0 -80
- package/dist/tileset-3d/common/tileset-content-traversal.js.map +0 -1
- package/dist/tileset-3d/common/tileset-observability.d.ts +0 -60
- package/dist/tileset-3d/common/tileset-observability.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-observability.js +0 -39
- package/dist/tileset-3d/common/tileset-observability.js.map +0 -1
- package/dist/tileset-3d/common/tileset-source.d.ts +0 -228
- package/dist/tileset-3d/common/tileset-source.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-source.js +0 -17
- package/dist/tileset-3d/common/tileset-source.js.map +0 -1
- package/dist/tileset-3d/common/tileset-traverser.d.ts +0 -88
- package/dist/tileset-3d/common/tileset-traverser.d.ts.map +0 -1
- package/dist/tileset-3d/common/tileset-traverser.js +0 -341
- package/dist/tileset-3d/common/tileset-traverser.js.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.d.ts +0 -182
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.d.ts.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.js +0 -678
- package/dist/tileset-3d/format-3d-tiles/implicit-tiling.js.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.d.ts +0 -221
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.d.ts.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.js +0 -770
- package/dist/tileset-3d/format-3d-tiles/tiles-3d-source.js.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.d.ts +0 -111
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.d.ts.map +0 -1
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.js +0 -339
- package/dist/tileset-3d/format-3d-tiles/tileset-3d-traverser.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.d.ts +0 -27
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.js +0 -45
- package/dist/tileset-3d/format-i3s/i3s-pending-tiles-register.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-source.d.ts +0 -116
- package/dist/tileset-3d/format-i3s/i3s-source.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-source.js +0 -450
- package/dist/tileset-3d/format-i3s/i3s-source.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.d.ts +0 -34
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.js +0 -81
- package/dist/tileset-3d/format-i3s/i3s-tile-manager.js.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.d.ts +0 -25
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.d.ts.map +0 -1
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.js +0 -84
- package/dist/tileset-3d/format-i3s/i3s-tileset-traverser.js.map +0 -1
- package/dist/tileset-3d/helpers/3d-tiles-options.d.ts +0 -5
- package/dist/tileset-3d/helpers/3d-tiles-options.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/3d-tiles-options.js +0 -9
- package/dist/tileset-3d/helpers/3d-tiles-options.js.map +0 -1
- package/dist/tileset-3d/helpers/bounding-volume.d.ts +0 -23
- package/dist/tileset-3d/helpers/bounding-volume.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/bounding-volume.js +0 -236
- package/dist/tileset-3d/helpers/bounding-volume.js.map +0 -1
- package/dist/tileset-3d/helpers/frame-state.d.ts +0 -93
- package/dist/tileset-3d/helpers/frame-state.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/frame-state.js +0 -211
- package/dist/tileset-3d/helpers/frame-state.js.map +0 -1
- package/dist/tileset-3d/helpers/i3s-lod.d.ts +0 -20
- package/dist/tileset-3d/helpers/i3s-lod.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/i3s-lod.js +0 -95
- package/dist/tileset-3d/helpers/i3s-lod.js.map +0 -1
- package/dist/tileset-3d/helpers/s2-bounding-volume.d.ts +0 -17
- package/dist/tileset-3d/helpers/s2-bounding-volume.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/s2-bounding-volume.js +0 -17
- package/dist/tileset-3d/helpers/s2-bounding-volume.js.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-lod.d.ts +0 -72
- package/dist/tileset-3d/helpers/tiles-3d-lod.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-lod.js +0 -257
- package/dist/tileset-3d/helpers/tiles-3d-lod.js.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.d.ts +0 -134
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.js +0 -179
- package/dist/tileset-3d/helpers/tiles-3d-request-priority.js.map +0 -1
- package/dist/tileset-3d/helpers/transform-utils.d.ts +0 -3
- package/dist/tileset-3d/helpers/transform-utils.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/transform-utils.js +0 -86
- package/dist/tileset-3d/helpers/transform-utils.js.map +0 -1
- package/dist/tileset-3d/helpers/zoom.d.ts +0 -46
- package/dist/tileset-3d/helpers/zoom.d.ts.map +0 -1
- package/dist/tileset-3d/helpers/zoom.js +0 -86
- package/dist/tileset-3d/helpers/zoom.js.map +0 -1
- package/dist/types.d.ts +0 -48
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/doubly-linked-list-node.d.ts +0 -11
- package/dist/utils/doubly-linked-list-node.d.ts.map +0 -1
- package/dist/utils/doubly-linked-list-node.js +0 -20
- package/dist/utils/doubly-linked-list-node.js.map +0 -1
- package/dist/utils/doubly-linked-list.d.ts +0 -30
- package/dist/utils/doubly-linked-list.d.ts.map +0 -1
- package/dist/utils/doubly-linked-list.js +0 -93
- package/dist/utils/doubly-linked-list.js.map +0 -1
- package/dist/utils/managed-array.d.ts +0 -85
- package/dist/utils/managed-array.d.ts.map +0 -1
- package/dist/utils/managed-array.js +0 -152
- package/dist/utils/managed-array.js.map +0 -1
- package/src/constants.ts +0 -59
- package/src/point-cloud/point-cloud-tile.ts +0 -80
- package/src/point-cloud/point-cloud-tileset.ts +0 -767
- package/src/point-cloud/types.ts +0 -99
- package/src/point-cloud-tile-source-loader-types.ts +0 -53
- package/src/point-cloud-tile-source-loader.ts +0 -32
- package/src/point-cloud-tile-source-types.ts +0 -20
- package/src/point-cloud-tile-source.ts +0 -112
- package/src/spatial/format-spatial-reference.ts +0 -385
- package/src/spatial/get-spatial-coordinate-frame.ts +0 -169
- package/src/spatial/i3s-elevation.ts +0 -96
- package/src/spatial/i3s-spatial-transformer.ts +0 -1021
- package/src/spatial/normalize-crs-identifier.ts +0 -26
- package/src/spatial/spatial-coordinate-transformer.ts +0 -397
- package/src/spatial/spatial-resource-registry.ts +0 -90
- package/src/spatial/spatial-types.ts +0 -422
- package/src/spatial/tiles-3d-spatial-transformer.ts +0 -194
- package/src/tileset-3d/common/indexed-archive-tileset-source.ts +0 -205
- package/src/tileset-3d/common/tile-3d-contracts.ts +0 -115
- package/src/tileset-3d/common/tile-3d.ts +0 -1310
- package/src/tileset-3d/common/tileset-3d.ts +0 -1210
- package/src/tileset-3d/common/tileset-cache.ts +0 -111
- package/src/tileset-3d/common/tileset-content-traversal.ts +0 -114
- package/src/tileset-3d/common/tileset-observability.ts +0 -100
- package/src/tileset-3d/common/tileset-source.ts +0 -284
- package/src/tileset-3d/common/tileset-traverser.ts +0 -416
- package/src/tileset-3d/format-3d-tiles/implicit-tiling.ts +0 -1056
- package/src/tileset-3d/format-3d-tiles/tiles-3d-source.ts +0 -1025
- package/src/tileset-3d/format-3d-tiles/tileset-3d-traverser.ts +0 -391
- package/src/tileset-3d/format-i3s/i3s-pending-tiles-register.ts +0 -48
- package/src/tileset-3d/format-i3s/i3s-source.ts +0 -557
- package/src/tileset-3d/format-i3s/i3s-tile-manager.ts +0 -105
- package/src/tileset-3d/format-i3s/i3s-tileset-traverser.ts +0 -102
- package/src/tileset-3d/helpers/3d-tiles-options.ts +0 -11
- package/src/tileset-3d/helpers/bounding-volume.ts +0 -281
- package/src/tileset-3d/helpers/frame-state.ts +0 -322
- package/src/tileset-3d/helpers/i3s-lod.ts +0 -109
- package/src/tileset-3d/helpers/s2-bounding-volume.ts +0 -32
- package/src/tileset-3d/helpers/tiles-3d-lod.ts +0 -370
- package/src/tileset-3d/helpers/tiles-3d-request-priority.ts +0 -301
- package/src/tileset-3d/helpers/transform-utils.ts +0 -109
- package/src/tileset-3d/helpers/zoom.ts +0 -120
- package/src/types.ts +0 -54
- package/src/utils/doubly-linked-list-node.ts +0 -22
- package/src/utils/doubly-linked-list.ts +0 -105
- package/src/utils/managed-array.ts +0 -174
- /package/dist/{point-cloud → mvt/lib}/types.js +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if (typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if (typeof define === 'function' && define.amd) define([], factory);
|
|
5
|
+
else if (typeof exports === 'object') exports['loaders'] = factory();
|
|
6
|
+
else root['loaders'] = factory();})(globalThis, function () {
|
|
7
|
+
"use strict";var __exports__=(()=>{var pE=Object.create;var Wf=Object.defineProperty;var mE=Object.getOwnPropertyDescriptor;var hE=Object.getOwnPropertyNames;var gE=Object.getPrototypeOf,yE=Object.prototype.hasOwnProperty;var h=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(i){throw r=[i],i}};var Jf=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ke=(t,e)=>{for(var r in e)Wf(t,r,{get:e[r],enumerable:!0})},s1=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hE(e))!yE.call(t,n)&&n!==r&&Wf(t,n,{get:()=>e[n],enumerable:!(i=mE(e,n))||i.enumerable});return t};var Kf=(t,e,r)=>(r=t!=null?pE(gE(t)):{},s1(e||!t||!t.__esModule?Wf(r,"default",{value:t,enumerable:!0}):r,t)),vE=t=>s1(Wf({},"__esModule",{value:!0}),t);var c1=Jf((E7,a1)=>{a1.exports=globalThis.loaders});function Rg(t,e){if(!t)throw new Error(e||"loader assertion failed.")}var u1=h(()=>{"use strict"});var Nn,bE,wE,_E,xE,Hf,l1,IE,f1=h(()=>{"use strict";Nn={self:typeof self<"u"&&self,window:typeof window<"u"&&window,global:typeof global<"u"&&global,document:typeof document<"u"&&document},bE=Nn.self||Nn.window||Nn.global||{},wE=Nn.window||Nn.self||Nn.global||{},_E=Nn.global||Nn.self||Nn.window||{},xE=Nn.document||{},Hf=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),l1=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version),IE=l1&&parseFloat(l1[1])||0});var fu,$E,qf,SE,TE,jg=h(()=>{fu=globalThis,$E=globalThis.document||{},qf=globalThis.process||{},SE=globalThis.console,TE=globalThis.navigator||{}});function Yf(t){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;let e=typeof navigator<"u"&&navigator.userAgent,r=t||e;return!!(r&&r.indexOf("Electron")>=0)}var Xf=h(()=>{});function Di(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Yf()}var Vg=h(()=>{Xf()});var d1=h(()=>{Vg();Xf();jg()});var p1=h(()=>{});var Zg,Qf=h(()=>{jg();Vg();d1();Xf();p1();Zg="5.0.0"});function xa(t,e){if(!t)throw new Error(e||"Assertion failed")}var Gg=h(()=>{});function ed(t){if(!t)return 0;let e;switch(typeof t){case"number":e=t;break;case"object":e=t.logLevel||t.priority||0;break;default:return 0}return xa(Number.isFinite(e)&&e>=0),e}function Wg(t){let{logLevel:e,message:r}=t;t.logLevel=ed(e);let i=t.args?Array.from(t.args):[];for(;i.length&&i.shift()!==r;);switch(typeof e){case"string":case"function":r!==void 0&&i.unshift(r),t.message=e;break;case"object":Object.assign(t,e);break;default:}typeof t.message=="function"&&(t.message=t.message());let n=typeof t.message;return xa(n==="string"||n==="object"),Object.assign(t,{args:i},t.opts)}var td=h(()=>{Gg()});var Ni,ns,du=h(()=>{td();Ni=()=>{},ns=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...r){return this._log("warn",0,e,r,{once:!0})}error(e,...r){return this._log("error",0,e,r)}log(e,r,...i){return this._log("log",e,r,i)}info(e,r,...i){return this._log("info",e,r,i)}once(e,r,...i){return this._log("once",e,r,i,{once:!0})}_log(e,r,i,n,o={}){let s=Wg({logLevel:r,message:i,args:this._buildArgs(r,i,n),opts:o});return this._createLogFunction(e,s,o)}_buildArgs(e,r,i){return[e,r,...i]}_createLogFunction(e,r,i){if(!this._shouldLog(r.logLevel))return Ni;let n=this._getOnceTag(i.tag??r.tag??r.message);if((i.once||r.once)&&n!==void 0){if(this._onceCache.has(n))return Ni;this._onceCache.add(n)}return this._emit(e,r)}_shouldLog(e){return this.getLevel()>=ed(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}}});function AE(t){try{let e=window[t],r="__storage_test__";return e.setItem(r,r),e.removeItem(r),e}catch{return null}}var pu,Jg=h(()=>{pu=class{constructor(e,r,i="sessionStorage"){this.storage=AE(i),this.id=e,this.config=r,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let r=JSON.stringify(this.config);this.storage.setItem(this.id,r)}}_loadConfiguration(){let e={};if(this.storage){let r=this.storage.getItem(this.id);e=r?JSON.parse(r):{}}return Object.assign(this.config,e),this}}});function m1(t){let e;return t<10?e=`${t.toFixed(2)}ms`:t<100?e=`${t.toFixed(1)}ms`:t<1e3?e=`${t.toFixed(0)}ms`:e=`${(t/1e3).toFixed(2)}s`,e}function Kg(t,e=8){let r=Math.max(e-t.length,0);return`${" ".repeat(r)}${t}`}var Hg=h(()=>{});function h1(t){return typeof t!="string"?t:(t=t.toUpperCase(),mu[t]||mu.WHITE)}function qg(t,e,r){return!Di&&typeof t=="string"&&(e&&(t=`\x1B[${h1(e)}m${t}\x1B[39m`),r&&(t=`\x1B[${h1(r)+OE}m${t}\x1B[49m`)),t}var mu,OE,rd=h(()=>{Qf();(function(t){t[t.BLACK=30]="BLACK",t[t.RED=31]="RED",t[t.GREEN=32]="GREEN",t[t.YELLOW=33]="YELLOW",t[t.BLUE=34]="BLUE",t[t.MAGENTA=35]="MAGENTA",t[t.CYAN=36]="CYAN",t[t.WHITE=37]="WHITE",t[t.BRIGHT_BLACK=90]="BRIGHT_BLACK",t[t.BRIGHT_RED=91]="BRIGHT_RED",t[t.BRIGHT_GREEN=92]="BRIGHT_GREEN",t[t.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",t[t.BRIGHT_BLUE=94]="BRIGHT_BLUE",t[t.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",t[t.BRIGHT_CYAN=96]="BRIGHT_CYAN",t[t.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(mu||(mu={}));OE=10});function Yg(t,e=["constructor"]){let r=Object.getPrototypeOf(t),i=Object.getOwnPropertyNames(r),n=t;for(let o of i){let s=n[o];typeof s=="function"&&(e.find(a=>o===a)||(n[o]=s.bind(t)))}}var Xg=h(()=>{});var nd,Wr,hu=h(()=>{Qf();nd=class{getHighResolutionTimer(){let e;if(Di()&&fu.performance)e=fu?.performance?.now?.();else if("hrtime"in qf){let r=qf?.hrtime?.();e=r[0]*1e3+r[1]/1e6}else e=Date.now();return e}getMemoryUsageMB(){let r=fu?.performance?.memory?.usedJSHeapSize;return r==null?null:Math.trunc(r/1024/1024)}},Wr=new nd;globalThis.Probe=nd;globalThis.probe=Wr});function BE(t,e,r){if(typeof e=="string"){let i=r.time?Kg(m1(r.total)):"";e=r.time?`${t}: ${i} ${e}`:`${t}: ${e}`,e=qg(e,r.color,r.background)}return e}function DE(t){for(let e in t)for(let r in t[e])return r||"untitled";return"empty"}var Ia,Qg,qn,ey=h(()=>{Qf();du();Jg();Hg();rd();Xg();Gg();hu();td();td();Ia={debug:Di()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Qg={enabled:!0,level:0},qn=class extends ns{constructor({id:e}={id:""}){super({level:0}),this.VERSION=Zg,this._startTs=Wr.getHighResolutionTimer(),this._deltaTs=Wr.getHighResolutionTimer(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new pu(`__probe-${this.id}__`,{[this.id]:Qg}),this.timeStamp(`${this.id} started`),Yg(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((Wr.getHighResolutionTimer()-this._startTs).toPrecision(10))}getDelta(){return Number((Wr.getHighResolutionTimer()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,r){this._updateConfiguration({[e]:r})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,r){if(!e)throw new Error(r||"Assertion failed")}warn(e,...r){return this._log("warn",0,e,r,{method:Ia.warn,once:!0})}error(e,...r){return this._log("error",0,e,r,{method:Ia.error})}deprecated(e,r){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${r}\` instead`)}removed(e,r){return this.error(`\`${e}\` has been removed. Use \`${r}\` instead`)}probe(e,r,...i){let n=Wr.getMemoryUsageMB();if(n!==null){let o=`${n}MB `;typeof r=="function"?r=()=>`${o}${r()}`:typeof r=="string"&&(r=`${o}${r}`)}return this._log("log",e,r,i,{method:Ia.log,time:!0,once:!0})}log(e,r,...i){return this._log("log",e,r,i,{method:Ia.debug})}info(e,r,...i){return this._log("info",e,r,i,{method:console.info})}once(e,r,...i){return this._log("once",e,r,i,{method:Ia.debug||Ia.info,once:!0})}table(e,r,i){return r?this._log("table",e,r,i&&[i]||[],{method:console.table||Ni,tag:DE(r)}):Ni}time(e,r){return this._log("time",e,r,[],{method:console.time?console.time:console.info})}timeEnd(e,r){return this._log("time",e,r,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,r){return this._log("time",e,r,[],{method:console.timeStamp||Ni})}group(e,r,i={collapsed:!1}){let n=(i.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,r,[],{method:n})}groupCollapsed(e,r,i={}){return this.group(e,r,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||Ni})}withGroup(e,r,i){this.group(e,r)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,r){let i=r.method;xa(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=Wr.getHighResolutionTimer();let n=BE(this.id,r.message,r);return i.bind(console,n,...r.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Qg),this._storage.config[this.id]}_updateConfiguration(e){let r=this._storage.config[this.id]||{...Qg};this._storage.setConfiguration({[this.id]:{...r,...e}})}};qn.VERSION=Zg});var g1=h(()=>{du()});var y1=h(()=>{du()});var v1=h(()=>{hu()});var b1=h(()=>{hu();globalThis.probe||(globalThis.probe=Wr)});var PW,w1=h(()=>{ey();hu();ey();g1();du();y1();rd();rd();Hg();Xg();Jg();v1();b1();PW=new qn({id:"@probe.gl/log"})});function zE(){let t=new qn({id:"loaders.gl"});return globalThis.loaders||={},globalThis.loaders.log=t,globalThis.loaders.version=NE,globalThis.probe||={},globalThis.probe.loaders=t,t}var ty,NE,gu,ry=h(()=>{"use strict";w1();ty="5.0.0-alpha.14",NE=ty[0]>="0"&&ty[0]<="9"?`v${ty}`:"";gu=zE()});var LE,_1,x1=h(()=>{"use strict";LE=t=>t!==null&&typeof t=="object",_1=t=>LE(t)&&t.constructor==={}.constructor});function id(t,e){return I1(t||{},e)}function I1(t,e,r=0){if(r>3)return e;let i={...t};for(let[n,o]of Object.entries(e))_1(o)?i[n]=I1(i[n]||{},e[n],r+1):i[n]=e[n];return i}var $1=h(()=>{"use strict";x1()});function yu(){let t;if(typeof window<"u"&&window.performance)t=window.performance.now();else if(typeof process<"u"&&process.hrtime){let e=process.hrtime();t=e[0]*1e3+e[1]/1e6}else t=Date.now();return t}var ny=h(()=>{});var is,iy=h(()=>{ny();is=class{constructor(e,r){this.sampleSize=1,this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this.name=e,this.type=r,this.reset()}reset(){return this.time=0,this.count=0,this.samples=0,this.lastTiming=0,this.lastSampleTime=0,this.lastSampleCount=0,this._count=0,this._time=0,this._samples=0,this._startTime=0,this._timerPending=!1,this}setSampleSize(e){return this.sampleSize=e,this}incrementCount(){return this.addCount(1),this}decrementCount(){return this.subtractCount(1),this}addCount(e){return this._count+=e,this._samples++,this._checkSampling(),this}subtractCount(e){return this._count-=e,this._samples++,this._checkSampling(),this}addTime(e){return this._time+=e,this.lastTiming=e,this._samples++,this._checkSampling(),this}timeStart(){return this._startTime=yu(),this._timerPending=!0,this}timeEnd(){return this._timerPending?(this.addTime(yu()-this._startTime),this._timerPending=!1,this._checkSampling(),this):this}getSampleAverageCount(){return this.sampleSize>0?this.lastSampleCount/this.sampleSize:0}getSampleAverageTime(){return this.sampleSize>0?this.lastSampleTime/this.sampleSize:0}getSampleHz(){return this.lastSampleTime>0?this.sampleSize/(this.lastSampleTime/1e3):0}getAverageCount(){return this.samples>0?this.count/this.samples:0}getAverageTime(){return this.samples>0?this.time/this.samples:0}getHz(){return this.time>0?this.samples/(this.time/1e3):0}_checkSampling(){this._samples===this.sampleSize&&(this.lastSampleTime=this._time,this.lastSampleCount=this._count,this.count+=this._count,this.time+=this._time,this.samples+=this._samples,this._time=0,this._count=0,this._samples=0)}}});var $a,S1=h(()=>{iy();$a=class{constructor(e){this.stats={},this.id=e.id,this.stats={},this._initializeStats(e.stats),Object.seal(this)}get(e,r="count"){return this._getOrCreate({name:e,type:r})}get size(){return Object.keys(this.stats).length}reset(){for(let e of Object.values(this.stats))e.reset();return this}forEach(e){for(let r of Object.values(this.stats))e(r)}getTable(){let e={};return this.forEach(r=>{e[r.name]={time:r.time||0,count:r.count||0,average:r.getAverageTime()||0,hz:r.getHz()||0}}),e}_initializeStats(e=[]){e.forEach(r=>this._getOrCreate(r))}_getOrCreate(e){let{name:r,type:i}=e,n=this.stats[r];return n||(e instanceof is?n=e:n=new is(r,i),this.stats[r]=n),n}}});var T1=h(()=>{S1();iy();ny()});function sy(t,e=[]){return t.every(oy)?t:t.map((r,i)=>{if(oy(r))return r;let n=e.find(s=>s.type===r?.type);if(!n)throw new Error(`No authentication class registered for credential at index ${i}.`);let o;try{o=new n(r)}catch{throw new Error(`Invalid authentication configuration at index ${i}.`)}if(!oy(o))throw new Error(`Authentication class returned an invalid credential at index ${i}.`);return o})}function ay(t){if(!t.core?.credentials?.length)return t;let e=sy(t.core.credentials,t.core.authentications);return e===t.core.credentials?t:{...t,core:{...t.core,credentials:e}}}function oy(t){return!t||typeof t!="object"||typeof t.id!="string"||!Array.isArray(t.origins)?!1:t.type==="request"?typeof t.authenticate=="function":(t.type==="header"||t.type==="query-parameter")&&typeof t.name=="string"&&(typeof t.token=="string"||typeof t.token=="function")&&Array.isArray(t.refreshStatusCodes)}var cy=h(()=>{"use strict"});function EE(t){let e=t.fetch||((f,d)=>fetch(f,d)),r=e[k1],i=new Map(r?.credentialResolutions),n=sy(t.credentials.map(f=>i.get(f)||f),t.authentications);if(t.credentials.forEach((f,d)=>{i.set(f,n[d])}),!t.fetchOptions&&(!n.length||r?.credentials.length===n.length&&n.every((f,d)=>f===r.credentials[d])))return e;let o=r?.fetch||e,s=r?[...new Set([...n,...r.credentials])]:n,a=A1(r?.fetchOptions||{},t.fetchOptions),c=s.filter(f=>f.type!=="request"),u=s.filter(f=>f.type==="request");for(let f of u)z1(f.origins);let l=async(f,d={})=>{if(d=A1(a,d),d.signal?.throwIfAborted(),!s.length)return o(f,d);let p=FE(f),m=p?await B1(p,d,c):{url:f,options:d,credentials:[]},g=await O1(m,u,"request"),v=await o(g.url,g.options),I=[];for(let N of m.credentials){let{credential:R}=N;typeof R.token=="function"&&(od(d)||R.canReplayRequest?.(f,d))&&(od(g.options)||R.canReplayRequest?.(g.url,g.options))&&(R.refreshStatusCodes.includes(v.status)||await R.shouldRefresh?.(v))&&I.push(N)}let A=od(d)&&od(g.options)&&g.credentials.some(N=>N.refreshStatusCodes?.includes(v.status));if(!I.length&&!A)return v;d.signal?.throwIfAborted();let _=new Map;if(await Promise.all(I.map(async({credential:N})=>{let R=await UE(N,f,v);R&&_.set(N,R)})),!_.size&&!A)return v;await v.body?.cancel().catch(()=>{}),d.signal?.throwIfAborted();let x=p?await B1(p,d,c,_,m.credentials):{url:f,options:d},O=await O1(x,u,"retry",v);return o(O.url,O.options)};return Object.defineProperty(l,k1,{value:{fetch:o,credentials:s,credentialResolutions:i,fetchOptions:a}}),l}function D1(t={}){let e=t.fetch??t.core?.fetch,r;typeof e=="function"?r=e:r=(n,o)=>fetch(n,o);let i=typeof e=="object"&&e?e:void 0;return EE({fetch:r,fetchOptions:t.signal?{...i,signal:t.signal}:i,credentials:t.core?.credentials||[],authentications:t.core?.authentications})}function A1(t,e){let r={...t,...e};if(t.headers||e?.headers){let i=new Headers(t.headers);new Headers(e?.headers).forEach((n,o)=>i.set(o,n)),r.headers=i}return r}async function O1(t,e,r,i){let n=[],o=t.options.signal;for(let s of e){let a=N1(t.url);if(!a||!z1(s.origins).includes(a))continue;o?.throwIfAborted();let c=await s.authenticate({url:t.url,options:{...t.options,headers:new Headers(t.options.headers)},reason:r,response:i?{status:i.status,headers:new Headers(i.headers)}:void 0});if(!c||typeof c.url!="string"||!c.options||typeof c.options!="object")throw new Error("Authentication callback returned an invalid request.");t={url:c.url,options:{...c.options,...o?{signal:o}:{}}},n.push(s)}return o?.throwIfAborted(),{...t,credentials:n}}function N1(t){try{let e=new URL(t);return!e.host||e.username||e.password?null:e.origin!=="null"?e.origin:`${e.protocol}//${e.host}`}catch{return null}}function z1(t){if(!t.length)throw new Error("Request authentication requires at least one exact origin.");return t.map(e=>{let r=N1(e),i;try{i=new URL(e)}catch{throw new Error("Invalid request authentication origin.")}if(!r||i.pathname&&i.pathname!=="/"||i.search||i.hash)throw new Error("Invalid request authentication origin.");return r})}async function B1(t,e,r,i=new Map,n=[]){let o=new URL(t),s=new Headers(e.headers),a=[],c=new Map(n.map(({credential:u,token:l})=>[u,l]));for(let u of r){if(!u.origins.includes(o.origin))continue;let l=i.get(u),f=c.get(u),d=u.type==="query-parameter"&&f!==void 0,p=u.type==="header"&&f!==void 0;if(u.type==="query-parameter"&&o.searchParams.has(u.name)&&!d||u.type==="header"&&s.has(u.name)&&!p)continue;let m=l??f??await PE(u.token,{url:t.toString(),reason:"request"});m&&(u.type==="query-parameter"?o.searchParams.set(u.name,m):s.set(u.name,`${u.prefix||""}${m}`),a.push({credential:u,token:m}))}return{url:o.toString(),options:{...e,headers:s},credentials:a}}async function UE(t,e,r){let i=uy.get(t);if(i)return i;let n=t.token,o=Promise.resolve(n({url:e,reason:"refresh",response:{status:r.status,headers:r.headers}})).finally(()=>uy.delete(t));return uy.set(t,o),o}async function PE(t,e){return typeof t=="function"?t(e):t}function FE(t){try{let e=new URL(t);return["http:","https:"].includes(e.protocol)?e:null}catch{return null}}function od(t){let e=(t.method||"GET").toUpperCase();return["GET","HEAD","OPTIONS","PUT","DELETE"].includes(e)?!(t.body&&typeof ReadableStream<"u"&&t.body instanceof ReadableStream):!1}var k1,uy,L1=h(()=>{"use strict";cy();k1=Symbol("loaders.gl.authenticated-fetch"),uy=new WeakMap});function ME(t,e){switch((e.type==="response"||e.type==="error")&&e.networkTimeMs!==void 0&&t.get(Ze.networkTimeMs,"time").addTime(e.networkTimeMs),e.type){case"queued":t.get(Ze.logicalRanges,"count").incrementCount(),t.get(Ze.requestedBytes,"count").addCount(e.logicalBytes||0);break;case"batch":t.get(Ze.rangeBatches,"count").incrementCount(),t.get("Logical Ranges Batched","count").addCount(e.logicalRequestCount||0),t.get(Ze.transportRanges,"count").addCount(e.transportRequestCount||0),t.get(Ze.coalescedRanges,"count").addCount(Math.max((e.logicalRequestCount||0)-(e.transportRequestCount||0),0)),t.get(Ze.transportBytes,"count").addCount(e.transportBytes||0),t.get(Ze.overfetchBytes,"count").addCount(e.overfetchBytes||0);break;case"response":t.get(Ze.completedTransportRanges,"count").incrementCount(),t.get(Ze.responseBytes,"count").addCount(e.responseBytes||0),e.fullResponse&&t.get(Ze.fullResponseFallbacks,"count").incrementCount();break;case"error":t.get(Ze.failedTransportRanges,"count").incrementCount();break;case"abort":t.get(Ze.abortedLogicalRanges,"count").incrementCount();break;default:}}function fy(t="range-request-scheduler"){let e=new $a({id:t});return F1(e),e}async function P1(t){let e=GE(t.signal),r=vu();try{let i=!1,n=await t.fetch(t.url,E1(t.fetchOptions,t.offset,t.length,e.signal));if(n.status===416&&t.offset===0){let c=VE(n.headers.get("Content-Range"));if(!c)throw new Error("Missing content-length on 416 response");n=await t.fetch(t.url,E1(t.fetchOptions,0,c,e.signal)),i=!0}if(n.status===200)throw e.abort(),await WE(n),new Error("Byte-range request failed: server returned 200 instead of 206");if(n.status!==206&&!n.ok)throw new Error(`Bad response code: ${n.status}`);let o=await n.arrayBuffer(),s=n.headers.get("Content-Range"),a=ZE(s);if(s&&!a)throw new Error(`Invalid Content-Range header: ${s}`);if(a){let c=a.endOffset-a.offset+1,u=t.offset+t.length-1;if(a.offset!==t.offset||a.endOffset>u||c!==o.byteLength||a.sourceByteLength!==void 0&&a.endOffset>=a.sourceByteLength)throw new Error(`Content-Range does not match requested range: ${s}`)}return{arrayBuffer:o,status:n.status,sourceByteLength:a?.sourceByteLength,transportBytes:o.byteLength,networkTimeMs:vu()-r,fullResponse:i}}finally{e.removeAbortListener()}}function CE(t,e,r){if(t.sourceId!==e.sourceId||t.isolationKey!==(e.isolationKey??e.sourceId))return!1;let i=e.offset+e.length,n=e.offset-t.endOffset,o=Math.max(t.endOffset,i)-t.offset;return n<=r.rangeExpansionBytes&&o<=r.maxMergedBytes}function F1(t){t.get(Ze.logicalRanges,"count"),t.get(Ze.requestedBytes,"count"),t.get(Ze.rangeBatches,"count"),t.get("Logical Ranges Batched","count"),t.get(Ze.transportRanges,"count"),t.get(Ze.coalescedRanges,"count"),t.get(Ze.transportBytes,"count"),t.get(Ze.completedTransportRanges,"count"),t.get(Ze.responseBytes,"count"),t.get(Ze.networkTimeMs,"time"),t.get(Ze.overfetchBytes,"count"),t.get(Ze.fullResponseFallbacks,"count"),t.get(Ze.failedTransportRanges,"count"),t.get(Ze.abortedLogicalRanges,"count")}function ly(t){return t.reduce((e,r)=>e+r.length,0)}function RE(t){return t instanceof ArrayBuffer?{arrayBuffer:t}:t}function E1(t,e,r,i){return{...t,signal:i,headers:{...jE(t?.headers),Range:`bytes=${e}-${e+r-1}`}}}function jE(t){return t?t instanceof Headers?Object.fromEntries(t.entries()):Array.isArray(t)?Object.fromEntries(t):t:{}}function VE(t){let e=t?.match(/^bytes \*\/(\d+)$/);return e?Number(e[1]):null}function ZE(t){let e=t?.match(/^bytes (\d+)-(\d+)\/(\d+|\*)$/);if(!e)return null;let r=Number(e[1]),i=Number(e[2]),n=e[3]==="*"?void 0:Number(e[3]);return!Number.isSafeInteger(r)||!Number.isSafeInteger(i)||r>i||n!==void 0&&!Number.isSafeInteger(n)?null:{offset:r,endOffset:i,sourceByteLength:n}}function GE(t){let e=new AbortController,r=()=>e.abort(t?.reason);return t?.aborted?e.abort(t?.reason):t?.addEventListener("abort",r,{once:!0}),{signal:e.signal,abort:()=>e.abort(),removeAbortListener:()=>t?.removeEventListener("abort",r)}}async function WE(t){await t.body?.cancel().catch(()=>{})}function vu(){return globalThis.performance?.now()??Date.now()}function U1(){if(typeof DOMException<"u")return new DOMException("Request aborted","AbortError");let t=new Error("Request aborted");return t.name="AbortError",t}var Ze,sd,bu,M1=h(()=>{"use strict";T1();Ze={logicalRanges:"Logical Range Requests",rangeBatches:"Range Request Batches",transportRanges:"Transport Ranges Created",completedTransportRanges:"Range Transport Requests Completed",coalescedRanges:"Coalesced Logical Ranges",requestedBytes:"Logical Range Request Bytes",transportBytes:"Range Transport Bytes Requested",responseBytes:"Range Response Bytes",networkTimeMs:"Range Network Time",overfetchBytes:"Range Overfetch Bytes",failedTransportRanges:"Range Transport Requests Failed",abortedLogicalRanges:"Aborted Logical Range Requests",fullResponseFallbacks:"Full Response Fallbacks"},sd={batchDelayMs:50,maxGapBytes:65536,rangeExpansionBytes:65536,maxMergedBytes:8388608,maxConcurrency:6,maxQueueSize:4096,maxRangeBytes:64*1024*1024,maxTotalBytes:Number.MAX_SAFE_INTEGER,stats:fy("range-request-scheduler-default"),onEvent:()=>{}},bu=class{props;stats;onEvent;pendingRequests=[];transportQueue=[];activeTransports=0;reservedTransportBytes=0;queuedRequests=0;logicalRequests=new Set;transportControllers=new Set;finalized=!1;flushTimer=null;constructor(e={}){let r=e.rangeExpansionBytes??e.maxGapBytes??sd.rangeExpansionBytes;this.props={batchDelayMs:e.batchDelayMs??sd.batchDelayMs,maxGapBytes:e.maxGapBytes??r,rangeExpansionBytes:r,maxMergedBytes:e.maxMergedBytes??sd.maxMergedBytes,maxConcurrency:e.maxConcurrency??6,maxQueueSize:e.maxQueueSize??4096,maxRangeBytes:e.maxRangeBytes??64*1024*1024,maxTotalBytes:e.maxTotalBytes??sd.maxTotalBytes};for(let i of[this.props.maxConcurrency,this.props.maxQueueSize,this.props.maxRangeBytes,this.props.maxTotalBytes])if(!Number.isSafeInteger(i)||i<=0)throw new Error("Range scheduler limits must be positive integers");this.stats=e.stats||fy("range-request-scheduler"),this.onEvent=e.onEvent,F1(this.stats)}scheduleRequest(e){if(this.finalized)return Promise.reject(new Error("Range scheduler is finalized"));if(!Number.isSafeInteger(e.offset)||e.offset<0||!Number.isSafeInteger(e.length)||e.length>this.props.maxRangeBytes||!Number.isSafeInteger(e.offset+e.length))return Promise.reject(new Error("Invalid or oversized byte range"));if(this.queuedRequests>=this.props.maxQueueSize)return Promise.reject(new Error("Range scheduler queue limit exceeded"));if(e.length<0)return Promise.reject(new Error("Byte range length cannot be negative"));if(e.signal?.aborted)return Promise.reject(e.signal.reason??U1());if(e.length===0)return Promise.resolve(new ArrayBuffer(0));this.queuedRequests++;let r,i=new Promise((n,o)=>{r={...e,resolve:n,reject:o,settled:!1},this.logicalRequests.add(r),e.signal&&(r.abortListener=()=>{this.abortRequest(r),r.onAbort?.()},e.signal.addEventListener("abort",r.abortListener,{once:!0})),this.pendingRequests.push(r)});return this.trackEvent({type:"queued",sourceId:e.sourceId,offset:e.offset,length:e.length,logicalRequestCount:1,logicalBytes:e.length}),this.scheduleFlush(),i.finally(()=>{r.abortListener&&e.signal?.removeEventListener("abort",r.abortListener),this.queuedRequests--,this.logicalRequests.delete(r)})}fetch(e){let r=e.fetch||globalThis.fetch;return this.scheduleRequest({sourceId:e.sourceId||e.url,offset:e.offset,length:e.length,signal:e.signal,isolationKey:e.isolationKey??{},fetchRange:(i,n,o)=>P1({url:e.url,offset:i,length:n,signal:o,fetch:r,fetchOptions:e.fetchOptions})})}flush(){this.flushTimer!==null&&(clearTimeout(this.flushTimer),this.flushTimer=null);let e=this.pendingRequests;this.pendingRequests=[];let r=e.filter(n=>n.settled||n.signal?.aborted?(this.abortRequest(n),!1):!0),i=this.mergeRequests(r);r.length>0&&this.trackBatch(r,i),this.transportQueue.push(...i),this.startQueuedTransports()}finalize(){this.finalized=!0,this.flushTimer!==null&&clearTimeout(this.flushTimer),this.flushTimer=null;for(let e of this.logicalRequests)this.abortRequest(e),e.abortListener&&e.signal?.removeEventListener("abort",e.abortListener);for(let e of this.transportControllers)e.abort();this.transportQueue=[],this.pendingRequests=[],this.logicalRequests.clear()}startQueuedTransports(){for(;this.activeTransports<this.props.maxConcurrency&&this.transportQueue.length;){let e=this.transportQueue.shift();this.activeTransports++,this.fetchMergedRequest(e).finally(()=>{this.activeTransports--,this.startQueuedTransports()})}}scheduleFlush(){this.flushTimer===null&&(this.flushTimer=setTimeout(()=>this.flush(),this.props.batchDelayMs))}mergeRequests(e){e.sort((i,n)=>i.sourceId!==n.sourceId?i.sourceId<n.sourceId?-1:1:i.offset-n.offset);let r=[];for(let i of e){let n=i.offset+i.length,o=r[r.length-1];o&&CE(o,i,this.props)?(o.endOffset=Math.max(o.endOffset,n),o.requests.push(i)):r.push({sourceId:i.sourceId,isolationKey:i.isolationKey??i.sourceId,offset:i.offset,endOffset:n,fetchRange:i.fetchRange,requests:[i]})}return r}async fetchMergedRequest(e){let{offset:r,endOffset:i,fetchRange:n,requests:o}=e,s=new AbortController;this.transportControllers.add(s);let a=vu(),c=()=>{o.every(u=>u.settled||u.signal?.aborted)&&s.abort()};try{for(let v of o)v.onAbort=c;if(c(),o.every(v=>v.settled))return;let u=ly(o),l=i-r;if(l>this.props.maxTotalBytes-this.reservedTransportBytes)throw new RangeError("Range request total byte limit exceeded");this.reservedTransportBytes+=l,this.trackEvent({type:"request",sourceId:e.sourceId,offset:r,length:l,logicalRequestCount:o.length,logicalBytes:u,transportBytes:l,overfetchBytes:Math.max(l-u,0)});let f=RE(await n(r,l,s.signal)),{arrayBuffer:d}=f,p=f.fullResponse&&r===0&&d.byteLength<l,m=d.byteLength<l&&Number.isSafeInteger(f.sourceByteLength)&&r+d.byteLength===f.sourceByteLength;if(d.byteLength!==l&&!p&&!m)throw new Error(`Byte-range transport returned ${d.byteLength} bytes; expected ${l}`);let g=f.networkTimeMs??vu()-a;this.trackEvent({type:"response",sourceId:e.sourceId,offset:r,length:l,logicalRequestCount:o.length,logicalBytes:u,transportBytes:l,responseBytes:f.transportBytes??d.byteLength,networkTimeMs:g,overfetchBytes:Math.max(l-u,0),status:f.status,fullResponse:f.fullResponse});for(let v of o){if(v.settled)continue;let I=v.offset-r;v.settled=!0,v.resolve(d.slice(I,I+v.length))}}catch(u){s.signal.aborted||this.trackEvent({type:"error",sourceId:e.sourceId,offset:r,length:i-r,logicalRequestCount:o.length,logicalBytes:ly(o),networkTimeMs:vu()-a,error:u});for(let l of o)l.settled||(l.signal?.aborted?this.abortRequest(l):(l.settled=!0,l.reject(u)))}finally{this.transportControllers.delete(s);for(let u of o)u.abortListener&&u.signal?.removeEventListener("abort",u.abortListener),u.onAbort=void 0}}abortRequest(e){if(!e.settled){e.settled=!0,this.pendingRequests=this.pendingRequests.filter(r=>r!==e);for(let r of this.transportQueue)r.requests=r.requests.filter(i=>!i.settled),r.requests.length&&(r.offset=Math.min(...r.requests.map(i=>i.offset)),r.endOffset=Math.max(...r.requests.map(i=>i.offset+i.length)));this.transportQueue=this.transportQueue.filter(r=>r.requests.length>0),e.reject(e.signal?.reason??U1()),this.trackEvent({type:"abort",sourceId:e.sourceId,offset:e.offset,length:e.length,logicalRequestCount:1,logicalBytes:e.length})}}trackEvent(e){ME(this.stats,e);try{this.onEvent?.(e)}catch{}}trackBatch(e,r){let i=ly(e),n=r.reduce((o,s)=>o+s.endOffset-s.offset,0);this.trackEvent({type:"batch",logicalRequestCount:e.length,transportRequestCount:r.length,logicalBytes:i,transportBytes:n,overfetchBytes:Math.max(n-i,0)})}}});function wu(t){for(let e in C1)if(t.startsWith(e)){let r=C1[e];t=t.replace(e,r)}return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`${JE}${t}`),t}var JE,C1,dy=h(()=>{"use strict";JE="",C1={}});var _u,R1=h(()=>{"use strict";_u=class{handle;size;bigsize;url;constructor(e){this.handle=e instanceof ArrayBuffer?new Blob([e]):e,this.size=e instanceof ArrayBuffer?e.byteLength:e.size,this.bigsize=BigInt(this.size),this.url=e instanceof File?e.name:""}async close(){}async stat(){return{size:this.handle.size,bigsize:BigInt(this.handle.size),isDirectory:!1}}async read(e,r,i){if(i?.aborted)throw new Error("Request aborted");let n=await this.handle.slice(Number(e),Number(e)+Number(r)).arrayBuffer();if(i?.aborted)throw new Error("Request aborted");return n}}});function xu(t,e){return e?e.aborted?(t.catch(()=>{}),Promise.reject(e.reason)):new Promise((r,i)=>{let n=()=>{e.removeEventListener("abort",n),i(e.reason)};e.addEventListener("abort",n,{once:!0}),t.then(o=>{e.removeEventListener("abort",n),r(o)},o=>{e.removeEventListener("abort",n),i(o)})}):t}var j1=h(()=>{"use strict"});function V1(t){return D1(t)}function Z1(t){if(t.loadOptions!==void 0||t.core?.loadOptions!==void 0)throw new Error("Source loadOptions and core.loadOptions were removed. Use core and root loader namespaces directly.");let e={...t};if(t?.core){e.core={...t.core};let n=e.core;for(let o of["type","attributions","loaders","onError","loadOptions"])delete n[o];Object.keys(n).length===0&&delete e.core}let r=typeof e.baseUri=="string"?e.baseUri:void 0,i=typeof e.baseUrl=="string"?e.baseUrl:void 0;return(r!==void 0||i!==void 0)&&(e.core||={},e.core.baseUrl===void 0&&(e.core.baseUrl=i??r),delete e.baseUri,delete e.baseUrl),e}function HE(t,e){return t instanceof Error?t:typeof t=="string"?new Error(t):new Error(e)}function os(t){return()=>{throw new Error(`CoreAPI.${t} is unavailable. Use @loaders.gl/core.createDataSource().`)}}var KE,Iu,G1=h(()=>{"use strict";$1();dy();ry();L1();cy();KE={fetchFile:os("fetchFile"),parse:os("parse"),parseFile:os("parseFile"),parseSync:os("parseSync"),parseInBatches:os("parseInBatches"),load:os("load"),loadInBatches:os("loadInBatches")},Iu=class t{static defaultOptions={core:{type:"auto",attributions:[],loaders:[],onError:void 0}};optionsType;options;data;url;loadOptions;fetch;coreApi;hasCoreApi;_needsRefresh=!0;constructor(e,r,i,n){this.options=id(id(t.defaultOptions,i||{}),r),this.data=e,this.url=typeof e=="string"?wu(e):"";let o=ay(Z1(this.options));this.loadOptions=o;let s=V1(o);this.coreApi=n||KE,this.hasCoreApi=!!n,this.fetch=s}setProps(e){let r=id(this.options,e),i=ay(Z1(r));this.options=r,this.loadOptions=i,this.fetch=V1(i),this.setNeedsRefresh()}setNeedsRefresh(){this._needsRefresh=!0}getNeedsRefresh(e=!0){let r=this._needsRefresh;return e&&(this._needsRefresh=!1),r}reportError(e,r){let i=HE(e,r),n=this.options.core?.onError;return n?n(i,this):gu.warn(`${this.constructor.name}: ${i.message}`)(),i}}});var W1=h(()=>{});function zi(t,e={}){let{start:r=0,end:i=t.length,plane:n="xy"}=e,o=e.size||2,s=0,a=$u[n[0]],c=$u[n[1]];for(let u=r,l=i-o;u<i;u+=o)s+=(t[u+a]-t[l+a])*(t[u+c]+t[l+c]),l=u;return s/2}var $u,py=h(()=>{$u={x:0,y:1,z:2}});function hy(t,e,r=2,i,n="xy"){let o=e&&e.length,s=o?e[0]*r:t.length,a=K1(t,0,s,r,!0,i&&i[0],n),c=[];if(!a||a.next===a.prev)return c;let u,l,f,d,p,m,g;if(o&&(a=eU(t,e,a,r,i,n)),t.length>80*r){d=l=t[0],p=f=t[1];for(let v=r;v<s;v+=r)m=t[v],g=t[v+1],m<d&&(d=m),g<p&&(p=g),m>l&&(l=m),g>f&&(f=g);u=Math.max(l-d,f-p),u=u!==0?32767/u:0}return Su(a,c,r,d,p,u,0),c}function K1(t,e,r,i,n,o,s){let a,c;o===void 0&&(o=zi(t,{start:e,end:r,size:i,plane:s}));let u=$u[s[0]],l=$u[s[1]];if(n===o<0)for(a=e;a<r;a+=i)c=J1(a,t[a+u],t[a+l],c);else for(a=r-i;a>=e;a-=i)c=J1(a,t[a+u],t[a+l],c);return c&&ud(c,c.next)&&(ku(c),c=c.next),c}function ss(t,e){if(!t)return t;e||(e=t);let r=t,i;do if(i=!1,!r.steiner&&(ud(r,r.next)||Ye(r.prev,r,r.next)===0)){if(ku(r),r=e=r.prev,r===r.next)break;i=!0}else r=r.next;while(i||r!==e);return e}function Su(t,e,r,i,n,o,s){if(!t)return;!s&&o&&oU(t,i,n,o);let a=t,c,u;for(;t.prev!==t.next;){if(c=t.prev,u=t.next,o?YE(t,i,n,o):qE(t)){e.push(c.i/r|0),e.push(t.i/r|0),e.push(u.i/r|0),ku(t),t=u.next,a=u.next;continue}if(t=u,t===a){s?s===1?(t=XE(ss(t),e,r),Su(t,e,r,i,n,o,2)):s===2&&QE(t,e,r,i,n,o):Su(ss(t),e,r,i,n,o,1);break}}}function qE(t){let e=t.prev,r=t,i=t.next;if(Ye(e,r,i)>=0)return!1;let n=e.x,o=r.x,s=i.x,a=e.y,c=r.y,u=i.y,l=n<o?n<s?n:s:o<s?o:s,f=a<c?a<u?a:u:c<u?c:u,d=n>o?n>s?n:s:o>s?o:s,p=a>c?a>u?a:u:c>u?c:u,m=i.next;for(;m!==e;){if(m.x>=l&&m.x<=d&&m.y>=f&&m.y<=p&&Sa(n,a,o,c,s,u,m.x,m.y)&&Ye(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function YE(t,e,r,i){let n=t.prev,o=t,s=t.next;if(Ye(n,o,s)>=0)return!1;let a=n.x,c=o.x,u=s.x,l=n.y,f=o.y,d=s.y,p=a<c?a<u?a:u:c<u?c:u,m=l<f?l<d?l:d:f<d?f:d,g=a>c?a>u?a:u:c>u?c:u,v=l>f?l>d?l:d:f>d?f:d,I=my(p,m,e,r,i),A=my(g,v,e,r,i),_=t.prevZ,x=t.nextZ;for(;_&&_.z>=I&&x&&x.z<=A;){if(_.x>=p&&_.x<=g&&_.y>=m&&_.y<=v&&_!==n&&_!==s&&Sa(a,l,c,f,u,d,_.x,_.y)&&Ye(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=p&&x.x<=g&&x.y>=m&&x.y<=v&&x!==n&&x!==s&&Sa(a,l,c,f,u,d,x.x,x.y)&&Ye(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=I;){if(_.x>=p&&_.x<=g&&_.y>=m&&_.y<=v&&_!==n&&_!==s&&Sa(a,l,c,f,u,d,_.x,_.y)&&Ye(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=A;){if(x.x>=p&&x.x<=g&&x.y>=m&&x.y<=v&&x!==n&&x!==s&&Sa(a,l,c,f,u,d,x.x,x.y)&&Ye(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function XE(t,e,r){let i=t;do{let n=i.prev,o=i.next.next;!ud(n,o)&&H1(n,i,i.next,o)&&Tu(n,o)&&Tu(o,n)&&(e.push(n.i/r|0),e.push(i.i/r|0),e.push(o.i/r|0),ku(i),ku(i.next),i=t=o),i=i.next}while(i!==t);return ss(i)}function QE(t,e,r,i,n,o){let s=t;do{let a=s.next.next;for(;a!==s.prev;){if(s.i!==a.i&&cU(s,a)){let c=q1(s,a);s=ss(s,s.next),c=ss(c,c.next),Su(s,e,r,i,n,o,0),Su(c,e,r,i,n,o,0);return}a=a.next}s=s.next}while(s!==t)}function eU(t,e,r,i,n,o){let s=[],a,c,u,l,f;for(a=0,c=e.length;a<c;a++)u=e[a]*i,l=a<c-1?e[a+1]*i:t.length,f=K1(t,u,l,i,!1,n&&n[a+1],o),f===f.next&&(f.steiner=!0),s.push(aU(f));for(s.sort(tU),a=0;a<s.length;a++)r=rU(s[a],r);return r}function tU(t,e){return t.x-e.x}function rU(t,e){let r=nU(t,e);if(!r)return e;let i=q1(r,t);return ss(i,i.next),ss(r,r.next)}function nU(t,e){let r=e,i=t.x,n=t.y,o=-1/0,s;do{if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let d=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(d<=i&&d>o&&(o=d,s=r.x<r.next.x?r:r.next,d===i))return s}r=r.next}while(r!==e);if(!s)return null;let a=s,c=s.x,u=s.y,l=1/0,f;r=s;do i>=r.x&&r.x>=c&&i!==r.x&&Sa(n<u?i:o,n,c,u,n<u?o:i,n,r.x,r.y)&&(f=Math.abs(n-r.y)/(i-r.x),Tu(r,t)&&(f<l||f===l&&(r.x>s.x||r.x===s.x&&iU(s,r)))&&(s=r,l=f)),r=r.next;while(r!==a);return s}function iU(t,e){return Ye(t.prev,t,e.prev)<0&&Ye(e.next,t,t.next)<0}function oU(t,e,r,i){let n=t;do n.z===0&&(n.z=my(n.x,n.y,e,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next;while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,sU(n)}function sU(t){let e,r,i=1,n,o,s,a,c,u;do{for(o=t,t=null,u=null,n=0;o;){for(n++,a=o,s=0,r=0;r<i&&(s++,a=a.nextZ,!!a);r++);for(c=i;s>0||c>0&&a;)s!==0&&(c===0||!a||o.z<=a.z)?(e=o,o=o.nextZ,s--):(e=a,a=a.nextZ,c--),u?u.nextZ=e:t=e,e.prevZ=u,u=e;o=a}u.nextZ=null,i*=2}while(n>1);return t}function my(t,e,r,i,n){return t=(t-r)*n|0,e=(e-i)*n|0,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t|e<<1}function aU(t){let e=t,r=t;do(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next;while(e!==t);return r}function Sa(t,e,r,i,n,o,s,a){return(n-s)*(e-a)>=(t-s)*(o-a)&&(t-s)*(i-a)>=(r-s)*(e-a)&&(r-s)*(o-a)>=(n-s)*(i-a)}function cU(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!uU(t,e)&&(Tu(t,e)&&Tu(e,t)&&lU(t,e)&&(Ye(t.prev,t,e.prev)||Ye(t,e.prev,e))||ud(t,e)&&Ye(t.prev,t,t.next)>0&&Ye(e.prev,e,e.next)>0)}function Ye(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function ud(t,e){return t.x===e.x&&t.y===e.y}function H1(t,e,r,i){let n=cd(Ye(t,e,r)),o=cd(Ye(t,e,i)),s=cd(Ye(r,i,t)),a=cd(Ye(r,i,e));return!!(n!==o&&s!==a||n===0&&ad(t,r,e)||o===0&&ad(t,i,e)||s===0&&ad(r,t,i)||a===0&&ad(r,e,i))}function ad(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function cd(t){return t>0?1:t<0?-1:0}function uU(t,e){let r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&H1(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}function Tu(t,e){return Ye(t.prev,t,t.next)<0?Ye(t,e,t.next)>=0&&Ye(t,t.prev,e)>=0:Ye(t,e,t.prev)<0||Ye(t,t.next,e)<0}function lU(t,e){let r=t,i=!1,n=(t.x+e.x)/2,o=(t.y+e.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&n<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next;while(r!==t);return i}function q1(t,e){let r=new Au(t.i,t.x,t.y),i=new Au(e.i,e.x,e.y),n=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=n,n.prev=r,i.next=r,r.prev=i,o.next=i,i.prev=o,i}function J1(t,e,r,i){let n=new Au(t,e,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function ku(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}var Au,Y1=h(()=>{py();Au=class{constructor(e,r,i){this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1,this.i=e,this.x=r,this.y=i}}});var ld=h(()=>{py();Y1()});var X1=h(()=>{});function gy(t){fU(t)}function fU(t){if(typeof t.id!="string"||!t.id||t.origin.length!==2||t.tileSize.length!==2||t.matrixSize.length!==2||!Number.isFinite(t.resolution)||t.resolution<=0||t.resolutionY!==void 0&&(!Number.isFinite(t.resolutionY)||t.resolutionY<=0)||!t.origin.every(Number.isFinite)||![...t.tileSize,...t.matrixSize].every(i=>Number.isSafeInteger(i)&&i>0)||!["topLeft","bottomLeft"].includes(t.cornerOfOrigin))throw new RangeError("Invalid tile matrix geometry");let e=[...t.variableMatrixWidths??[]].sort((i,n)=>i.minTileRow-n.minTileRow),r=-1;for(let i of e){if(!Number.isSafeInteger(i.coalesce)||i.coalesce<=1||t.matrixSize[0]%i.coalesce!==0||!Number.isSafeInteger(i.minTileRow)||!Number.isSafeInteger(i.maxTileRow)||i.minTileRow<=r||i.maxTileRow<i.minTileRow||i.maxTileRow>=t.matrixSize[1])throw new RangeError("Invalid variable matrix width");r=i.maxTileRow}for(let i=0;i<2;i++){let o=(i===1?t.resolutionY??t.resolution:t.resolution)*t.tileSize[i],s=o*t.matrixSize[i],a=i===1&&t.cornerOfOrigin==="topLeft"?-1:1,c=t.origin[i]+a*s;if(!Number.isFinite(s)||s<=0||!Number.isFinite(c)||t.origin[i]+a*o===t.origin[i]||c-a*o===c)throw new RangeError("Tile matrix extent must be finite")}return e}var Q1=h(()=>{});var eT=h(()=>{Q1()});var tT=h(()=>{W1();X1();eT()});function Ou(t,e){let r=dU(t,e);if(r){let i=r.matrices;return{crs:t,tileSize:[i[0].tileSize[0],i[0].tileSize[1]],origin:i[0].cornerOfOrigin==="topLeft"?[i[0].origin[0],i[0].origin[1]]:void 0,resolutions:i.map(n=>n.resolution),matrixIds:i.map(n=>n.id),matrixSizes:i.map(n=>[n.matrixSize[0],n.matrixSize[1]]),tileMatrixSet:r,matrices:e}}return{crs:t,tileSize:e[0]?.tileSize,origin:e[0]?.cornerOfOrigin==="bottomLeft"?void 0:e[0]?.origin,...e.length&&e.every(i=>i.resolution!==void 0)?{resolutions:e.map(i=>i.resolution)}:{},matrixIds:e.map(i=>i.id),matrixSizes:e.every(i=>i.matrixSize)?e.map(i=>i.matrixSize):void 0,matrices:e}}function dU(t,e){if(!t||!e.length)return;let r=[];for(let i of e){let n=pU(i);if(!n)return;r.push(n)}return{crs:t,matrices:r}}function pU(t){let{id:e,resolution:r,resolutionY:i,origin:n,tileSize:o,matrixSize:s}=t;if(r===void 0||!n||!o||!s)return null;let a={id:e,resolution:r,...i!==void 0?{resolutionY:i}:{},origin:[n[0],n[1]],cornerOfOrigin:t.cornerOfOrigin??"topLeft",tileSize:[o[0],o[1]],matrixSize:[s[0],s[1]]};try{gy(a)}catch{return null}return a}function yy(t,e,r){if(r.tileMatrix!==void 0){let i=t.find(n=>e(n)===r.tileMatrix);if(!i)throw new RangeError(`Unknown tile matrix "${r.tileMatrix}"`);return i}return t.find(i=>e(i)===String(r.z))||t[r.z]}var vy=h(()=>{"use strict";tT()});function wy(t,e,r=256){if(!Number.isInteger(t)||!Number.isInteger(e)||t<0||e<t||e>31||!Number.isSafeInteger(r)||r<=0)throw new RangeError("XYZ grids require integer zooms 0\u201331 and a positive integer tile size.");return Ou("EPSG:3857",Array.from({length:e-t+1},(i,n)=>{let o=t+n,s=2**o;return{id:String(o),resolution:by*2/(r*s),origin:[-by,by],tileSize:[r,r],matrixSize:[s,s]}}))}function fd(t,e){if(!t?.matrices){if(e.tileMatrix!==void 0)throw new RangeError("Tile matrix selection requires an established XYZ grid.");return e}let r=yy(t.matrices,o=>o.id,e);if(!r)return null;let i=r.matrixSize,n=Number(r.id);if(!i||!Number.isInteger(n)||n<0||n>31||String(n)!==r.id||i[0]!==2**n||i[1]!==2**n)throw new RangeError("XYZ matrices require canonical zoom IDs and world dimensions.");return!Number.isSafeInteger(e.x)||!Number.isSafeInteger(e.y)||e.x<0||e.y<0||e.x>=i[0]||e.y>=i[1]?null:{...e,z:n,tileMatrix:r.id}}var by,rT=h(()=>{"use strict";vy();by=20037508342789244e-9});var Li=h(()=>{"use strict";u1();f1();ry();M1();dy();R1();G1();j1();vy();rT()});function nT(t){return!yU(t,"ftyp",4)||(t[8]&96)===0?null:mU(t)}function mU(t){switch(hU(t,8,12).replace("\0"," ").trim()){case"avif":case"avis":return{extension:"avif",mimeType:"image/avif"};default:return null}}function hU(t,e,r){return String.fromCharCode(...t.slice(e,r))}function gU(t){return[...t].map(e=>e.charCodeAt(0))}function yU(t,e,r=0){let i=gU(e);for(let n=0;n<i.length;++n)if(i[n]!==t[n+r])return!1;return!0}var iT=h(()=>{"use strict"});function dd(t){let e=Du(t);return bU(e)||xU(e)||wU(e)||_U(e)||vU(e)}function vU(t){let e=new Uint8Array(t instanceof DataView?t.buffer:t),r=nT(e);return r?{mimeType:r.mimeType,width:0,height:0}:null}function bU(t){let e=Du(t);return e.byteLength>=33&&e.getUint32(0,_r)===2303741511&&e.getUint32(4,_r)===218765834&&e.getUint32(8,_r)===13&&e.getUint32(12,_r)===1229472850?{mimeType:"image/png",width:e.getUint32(16,_r),height:e.getUint32(20,_r)}:null}function wU(t){let e=Du(t);return e.byteLength>=10&&e.getUint32(0,_r)===1195984440?{mimeType:"image/gif",width:e.getUint16(6,Bu),height:e.getUint16(8,Bu)}:null}function _U(t){let e=Du(t);return e.byteLength>=14&&e.getUint16(0,_r)===16973&&e.getUint32(2,Bu)===e.byteLength?{mimeType:"image/bmp",width:e.getUint32(18,Bu),height:e.getUint32(22,Bu)}:null}function xU(t){let e=Du(t);if(!(e.byteLength>=3&&e.getUint16(0,_r)===65496&&e.getUint8(2)===255))return null;let{tableMarkers:i,sofMarkers:n}=IU(),o=2;for(;o+9<e.byteLength;){let s=e.getUint16(o,_r);if(n.has(s))return{mimeType:"image/jpeg",height:e.getUint16(o+5,_r),width:e.getUint16(o+7,_r)};if(!i.has(s))return null;o+=2,o+=e.getUint16(o,_r)}return null}function IU(){let t=new Set([65499,65476,65484,65501,65534]);for(let r=65504;r<65520;++r)t.add(r);return{tableMarkers:t,sofMarkers:new Set([65472,65473,65474,65475,65477,65478,65479,65481,65482,65483,65485,65486,65487,65502])}}function Du(t){if(t instanceof DataView)return t;if(ArrayBuffer.isView(t))return new DataView(t.buffer);if(t instanceof ArrayBuffer)return new DataView(t);throw new Error("toDataView")}var _r,Bu,_y=h(()=>{"use strict";iT();_r=!1,Bu=!0});var $U,SU,TU,oT,sT=h(()=>{"use strict";_y();$U=["png","jpg","jpeg","gif","webp","bmp","ico","svg","avif"],SU=["image/png","image/jpeg","image/gif","image/webp","image/avif","image/bmp","image/vnd.microsoft.icon","image/svg+xml"],TU={id:"image",module:"images",name:"Images",encoding:"image",format:"image",mimeTypes:SU,extensions:$U,tests:[t=>!!dd(new DataView(t))]},oT={...TU,id:"imagebitmap",name:"ImageBitmap",format:"image-bitmap"}});var aT,cT=h(()=>{"use strict";aT="5.0.0-alpha.14"});function Ta(t){if(!t)return!1;if(kU.test(t))return!0;for(let e=t.indexOf(".svg");e>=0;e=t.indexOf(".svg",e+4)){let r=t[e+4];if(r===void 0||r==="?"||r==="#")return!0}return!1}function uT(t,e){if(Ta(e)){let i=new TextDecoder().decode(t);try{typeof unescape=="function"&&typeof encodeURIComponent=="function"&&(i=unescape(encodeURIComponent(i)))}catch(o){throw new Error(o.message)}return`data:image/svg+xml;base64,${btoa(i)}`}return xy(t,e)}function xy(t,e){if(Ta(e))throw new Error("SVG cannot be parsed directly to imagebitmap");return new Blob([new Uint8Array(t)])}var kU,pd=h(()=>{"use strict";kU=/^data:image\/svg\+xml/});async function lT(t,e,r){let i=uT(t,r),n=self.URL||self.webkitURL,o=typeof i!="string"&&n.createObjectURL(i);try{return await AU(o||i,e)}finally{o&&n.revokeObjectURL(o)}}async function AU(t,e){let r=new Image;return r.src=t,e?.image?.decode&&r.decode?(await r.decode(),r):await new Promise((i,n)=>{try{r.onload=()=>i(r),r.onerror=o=>{let s=o instanceof Error?o.message:"error";n(new Error(s))}}catch(o){n(o)}})}var fT=h(()=>{"use strict";pd()});async function pT(t,e,r){let i;Ta(r)?i=await lT(t,e,r):i=xy(t,r);let n=e&&e.imagebitmap;return await hT(i,n)}async function mT(t,e){let r=e&&e.imagebitmap;return await hT(t,r)}async function hT(t,e=null){if((OU(e)||!dT)&&(e=null),e)try{return await createImageBitmap(t,e)}catch(r){console.warn(r),dT=!1}return await createImageBitmap(t)}function OU(t){if(!t)return!0;for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var dT,gT=h(()=>{"use strict";pd();fT();dT=!0});async function yT(t,e){let{mimeType:r}=dd(t)||{},i=globalThis.loaders?.parseImageNode;Rg(i);let n=globalThis.loaders?.createImageBitmapNode;if(!n)throw new Error("Install '@loaders.gl/core/polyfills' to parse images under Node.js");let o=await i(t,r);return n(o)}var vT=h(()=>{"use strict";Li();_y()});async function Iy(t,e,r){e=e||{},_T(e);let i=!!globalThis.loaders?.parseImageNode;if(!Hf||i)return await yT(t,e);if(typeof ImageBitmap>"u"||typeof createImageBitmap!="function")throw new Error(bT);return await pT(t,e,r?.url)}async function wT(t,e,r){e=e||{},_T(e);let i=!!globalThis.loaders?.parseImageNode;if(!Hf||i||Ta(r?.url)||t.type.startsWith("image/svg+xml"))return await Iy(await t.arrayBuffer(),e,r);if(typeof ImageBitmap>"u"||typeof createImageBitmap!="function")throw new Error(bT);return await mT(t,e)}function _T(t){let e=t.image?.type;if(e&&e!=="imagebitmap")throw new Error(BU)}var BU,bT,xT=h(()=>{"use strict";Li();gT();pd();vT();BU="@loaders.gl/images: ImageBitmapLoader only accepts options.image.type='imagebitmap'. Remove legacy image/data/auto values and call getImageData(image) if you need raw pixels.",bT="@loaders.gl/images: ImageBitmapLoader requires browser ImageBitmap support. Use a browser with createImageBitmap support or load images under Node.js with @loaders.gl/core/polyfills."});var IT={};Ke(IT,{ImageBitmapLoaderWithParser:()=>NU});var M9,DU,NU,$T=h(()=>{"use strict";xT();$y();({preload:M9,...DU}=Nu),NU={...DU,parse:Iy,parseBlob:wT}});async function LU(){let{ImageBitmapLoaderWithParser:t}=await Promise.resolve().then(()=>($T(),IT));return t}var zU,Nu,$y=h(()=>{"use strict";cT();sT();zU={image:{}};Nu={dataType:null,batchType:null,...oT,version:aT,options:zU,preload:LU}});var ST=h(()=>{"use strict";$y()});var TT,kT=h(()=>{"use strict";TT={name:"MapLibre Tile",id:"mlt",module:"tiles",encoding:"binary",format:"mlt",extensions:["mlt"],mimeTypes:["application/vnd.maplibre-tile"],category:"geometry"}});function OT(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}function M(t,e,r,i){function n(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{u(i.next(l))}catch(f){s(f)}}function c(l){try{u(i.throw(l))}catch(f){s(f)}}function u(l){l.done?o(l.value):n(l.value).then(a,c)}u((i=i.apply(t,e||[])).next())})}function AT(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ne(t){return this instanceof ne?(this.v=t,this):new ne(t)}function Zt(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r.apply(t,e||[]),n,o=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),n[Symbol.asyncIterator]=function(){return this},n;function s(p){return function(m){return Promise.resolve(m).then(p,f)}}function a(p,m){i[p]&&(n[p]=function(g){return new Promise(function(v,I){o.push([p,g,v,I])>1||c(p,g)})},m&&(n[p]=m(n[p])))}function c(p,m){try{u(i[p](m))}catch(g){d(o[0][3],g)}}function u(p){p.value instanceof ne?Promise.resolve(p.value.v).then(l,f):d(o[0][2],p)}function l(p){c("next",p)}function f(p){c("throw",p)}function d(p,m){p(m),o.shift(),o.length&&c(o[0][0],o[0][1])}}function ka(t){var e,r;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,o){e[n]=t[n]?function(s){return(r=!r)?{value:ne(t[n](s)),done:!1}:o?o(s):s}:o}}function xr(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof AT=="function"?AT(t):t[Symbol.iterator](),r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r);function i(o){r[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),n(a,c,s.done,s.value)})}}function n(o,s,a,c){Promise.resolve(c).then(function(u){o({value:u,done:a})},s)}}var ar=h(()=>{});var BT,Aa,EU,Ir,Yn=h(()=>{BT=new TextDecoder("utf-8"),Aa=BT.decode.bind(BT),EU=new TextEncoder,Ir=t=>EU.encode(t)});var UU,DT,lt,Gt,$r,an,Jr,md,hd,gd,yd,vd,NT,zu,zT,bd,LT,Ei=h(()=>{UU=t=>typeof t=="number",DT=t=>typeof t=="boolean",lt=t=>typeof t=="function",Gt=t=>t!=null&&Object(t)===t,$r=t=>Gt(t)&<(t.then),an=t=>Gt(t)&<(t[Symbol.iterator]),Jr=t=>Gt(t)&<(t[Symbol.asyncIterator]),md=t=>Gt(t)&&Gt(t.schema),hd=t=>Gt(t)&&"done"in t&&"value"in t,gd=t=>Gt(t)&<(t.stat)&&UU(t.fd),yd=t=>Gt(t)&&zu(t.body),vd=t=>"_getDOMStream"in t&&"_getNodeStream"in t,NT=t=>Gt(t)&<(t.abort)&<(t.getWriter)&&!vd(t),zu=t=>Gt(t)&<(t.cancel)&<(t.getReader)&&!vd(t),zT=t=>Gt(t)&<(t.end)&<(t.write)&&DT(t.writable)&&!vd(t),bd=t=>Gt(t)&<(t.read)&<(t.pipe)&&DT(t.readable)&&!vd(t),LT=t=>Gt(t)&<(t.clear)&<(t.bytes)&<(t.position)&<(t.setPosition)&<(t.capacity)&<(t.getBufferIdentifier)&<(t.createLong)});var By={};Ke(By,{compareArrayLike:()=>Oy,joinUint8Arrays:()=>Sr,memcpy:()=>Lu,rebaseValueOffsets:()=>wd,toArrayBufferView:()=>fe,toArrayBufferViewAsyncIterator:()=>cn,toArrayBufferViewIterator:()=>zn,toBigInt64Array:()=>Eu,toBigUint64Array:()=>jU,toFloat32Array:()=>VU,toFloat32ArrayAsyncIterator:()=>oP,toFloat32ArrayIterator:()=>YU,toFloat64Array:()=>ZU,toFloat64ArrayAsyncIterator:()=>sP,toFloat64ArrayIterator:()=>XU,toInt16Array:()=>MU,toInt16ArrayAsyncIterator:()=>tP,toInt16ArrayIterator:()=>JU,toInt32Array:()=>as,toInt32ArrayAsyncIterator:()=>rP,toInt32ArrayIterator:()=>KU,toInt8Array:()=>FU,toInt8ArrayAsyncIterator:()=>eP,toInt8ArrayIterator:()=>WU,toUint16Array:()=>CU,toUint16ArrayAsyncIterator:()=>nP,toUint16ArrayIterator:()=>HU,toUint32Array:()=>RU,toUint32ArrayAsyncIterator:()=>iP,toUint32ArrayIterator:()=>qU,toUint8Array:()=>Z,toUint8ArrayAsyncIterator:()=>Ay,toUint8ArrayIterator:()=>ky,toUint8ClampedArray:()=>GU,toUint8ClampedArrayAsyncIterator:()=>aP,toUint8ClampedArrayIterator:()=>QU});function PU(t){let e=t[0]?[t[0]]:[],r,i,n,o;for(let s,a,c=0,u=0,l=t.length;++c<l;){if(s=e[u],a=t[c],!s||!a||s.buffer!==a.buffer||a.byteOffset<s.byteOffset){a&&(e[++u]=a);continue}if({byteOffset:r,byteLength:n}=s,{byteOffset:i,byteLength:o}=a,r+n<i||i+o<r){a&&(e[++u]=a);continue}e[u]=new Uint8Array(s.buffer,r,i-r+o)}return e}function Lu(t,e,r=0,i=e.byteLength){let n=t.byteLength,o=new Uint8Array(t.buffer,t.byteOffset,n),s=new Uint8Array(e.buffer,e.byteOffset,Math.min(i,n));return o.set(s,r),t}function Sr(t,e){let r=PU(t),i=r.reduce((l,f)=>l+f.byteLength,0),n,o,s,a=0,c=-1,u=Math.min(e||Number.POSITIVE_INFINITY,i);for(let l=r.length;++c<l;){if(n=r[c],o=n.subarray(0,Math.min(n.length,u-a)),u<=a+o.length){o.length<n.length?r[c]=n.subarray(o.length):o.length===n.length&&c++,s?Lu(s,o,a):s=o;break}Lu(s||(s=new Uint8Array(u)),o,a),a+=o.length}return[s||new Uint8Array(0),r.slice(c),i-(s?s.byteLength:0)]}function fe(t,e){let r=hd(e)?e.value:e;return r instanceof t?t===Uint8Array?new t(r.buffer,r.byteOffset,r.byteLength):r:r?(typeof r=="string"&&(r=Ir(r)),r instanceof ArrayBuffer?new t(r):r instanceof Ty?new t(r):LT(r)?fe(t,r.bytes()):ArrayBuffer.isView(r)?r.byteLength<=0?new t(0):new t(r.buffer,r.byteOffset,r.byteLength/t.BYTES_PER_ELEMENT):t.from(r)):new t(0)}function*zn(t,e){let r=function*(n){yield n},i=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Ty?r(e):an(e)?e:r(e);return yield*Sy((function*(n){let o=null;do o=n.next(yield fe(t,o));while(!o.done)})(i[Symbol.iterator]())),new t}function cn(t,e){return Zt(this,arguments,function*(){if($r(e))return yield ne(yield ne(yield*ka(xr(cn(t,yield ne(e))))));let i=function(s){return Zt(this,arguments,function*(){yield yield ne(yield ne(s))})},n=function(s){return Zt(this,arguments,function*(){yield ne(yield*ka(xr(Sy((function*(a){let c=null;do c=a.next(yield c?.value);while(!c.done)})(s[Symbol.iterator]())))))})},o=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Ty?i(e):an(e)?n(e):Jr(e)?e:i(e);return yield ne(yield*ka(xr(Sy((function(s){return Zt(this,arguments,function*(){let a=null;do a=yield ne(s.next(yield yield ne(fe(t,a))));while(!a.done)})})(o[Symbol.asyncIterator]()))))),yield ne(new t)})}function wd(t,e,r){if(t!==0){r=r.slice(0,e);let i=typeof r[0]=="bigint"?BigInt(t):t;for(let n=-1,o=r.length;++n<o;)r[n]+=i}return r.subarray(0,e)}function Oy(t,e){let r=0,i=t.length;if(i!==e.length)return!1;if(i>0)do if(t[r]!==e[r])return!1;while(++r<i);return!0}var Ty,FU,MU,as,Eu,Z,CU,RU,jU,VU,ZU,GU,Sy,WU,JU,KU,ky,HU,qU,YU,XU,QU,eP,tP,rP,Ay,nP,iP,oP,sP,aP,ft=h(()=>{ar();Yn();Ei();Ty=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;FU=t=>fe(Int8Array,t),MU=t=>fe(Int16Array,t),as=t=>fe(Int32Array,t),Eu=t=>fe(BigInt64Array,t),Z=t=>fe(Uint8Array,t),CU=t=>fe(Uint16Array,t),RU=t=>fe(Uint32Array,t),jU=t=>fe(BigUint64Array,t),VU=t=>fe(Float32Array,t),ZU=t=>fe(Float64Array,t),GU=t=>fe(Uint8ClampedArray,t),Sy=t=>(t.next(),t);WU=t=>zn(Int8Array,t),JU=t=>zn(Int16Array,t),KU=t=>zn(Int32Array,t),ky=t=>zn(Uint8Array,t),HU=t=>zn(Uint16Array,t),qU=t=>zn(Uint32Array,t),YU=t=>zn(Float32Array,t),XU=t=>zn(Float64Array,t),QU=t=>zn(Uint8ClampedArray,t);eP=t=>cn(Int8Array,t),tP=t=>cn(Int16Array,t),rP=t=>cn(Int32Array,t),Ay=t=>cn(Uint8Array,t),nP=t=>cn(Uint16Array,t),iP=t=>cn(Uint32Array,t),oP=t=>cn(Float32Array,t),sP=t=>cn(Float64Array,t),aP=t=>cn(Uint8ClampedArray,t)});function*cP(t){let e,r=!1,i=[],n,o,s,a=0;function c(){return o==="peek"?Sr(i,s)[0]:([n,i,a]=Sr(i,s),n)}({cmd:o,size:s}=(yield null)||{cmd:"read",size:0});let u=ky(t)[Symbol.iterator]();try{do if({done:e,value:n}=Number.isNaN(s-a)?u.next():u.next(s-a),!e&&n.byteLength>0&&(i.push(n),a+=n.byteLength),e||s<=a)do({cmd:o,size:s}=yield c());while(s<a);while(!e)}catch(l){r=!0,typeof u.throw=="function"&&u.throw(l)}finally{r===!1&&typeof u.return=="function"&&u.return(null)}return null}function uP(t){return Zt(this,arguments,function*(){let r,i=!1,n=[],o,s,a,c=0;function u(){return s==="peek"?Sr(n,a)[0]:([o,n,c]=Sr(n,a),o)}({cmd:s,size:a}=(yield yield ne(null))||{cmd:"read",size:0});let l=Ay(t)[Symbol.asyncIterator]();try{do if({done:r,value:o}=Number.isNaN(a-c)?yield ne(l.next()):yield ne(l.next(a-c)),!r&&o.byteLength>0&&(n.push(o),c+=o.byteLength),r||a<=c)do({cmd:s,size:a}=yield yield ne(u()));while(a<c);while(!r)}catch(f){i=!0,typeof l.throw=="function"&&(yield ne(l.throw(f)))}finally{i===!1&&typeof l.return=="function"&&(yield ne(l.return(new Uint8Array(0))))}return yield ne(null)})}function lP(t){return Zt(this,arguments,function*(){let r=!1,i=!1,n=[],o,s,a,c=0;function u(){return s==="peek"?Sr(n,a)[0]:([o,n,c]=Sr(n,a),o)}({cmd:s,size:a}=(yield yield ne(null))||{cmd:"read",size:0});let l=new Ny(t);try{do if({done:r,value:o}=Number.isNaN(a-c)?yield ne(l.read()):yield ne(l.read(a-c)),!r&&o.byteLength>0&&(n.push(Z(o)),c+=o.byteLength),r||a<=c)do({cmd:s,size:a}=yield yield ne(u()));while(a<c);while(!r)}catch(f){i=!0,yield ne(l.cancel(f))}finally{i===!1?yield ne(l.cancel()):t.locked&&l.releaseLock()}return yield ne(null)})}function fP(t){return Zt(this,arguments,function*(){let r=[],i="error",n=!1,o=null,s,a,c=0,u=[],l;function f(){return s==="peek"?Sr(u,a)[0]:([l,u,c]=Sr(u,a),l)}if({cmd:s,size:a}=(yield yield ne(null))||{cmd:"read",size:0},t.isTTY)return yield yield ne(new Uint8Array(0)),yield ne(null);try{r[0]=Dy(t,"end"),r[1]=Dy(t,"error");do{if(r[2]=Dy(t,"readable"),[i,o]=yield ne(Promise.race(r.map(p=>p[2]))),i==="error")break;if((n=i==="end")||(Number.isFinite(a-c)?(l=Z(t.read(a-c)),l.byteLength<a-c&&(l=Z(t.read()))):l=Z(t.read()),l.byteLength>0&&(u.push(l),c+=l.byteLength)),n||a<=c)do({cmd:s,size:a}=yield yield ne(f()));while(a<c)}while(!n)}finally{yield ne(d(r,i==="error"?o:null))}return yield ne(null);function d(p,m){return l=u=null,new Promise((g,v)=>{for(let[I,A]of p)t.off(I,A);try{let I=t.destroy;I&&I.call(t,m),m=void 0}catch(I){m=I||m}finally{m!=null?v(m):g()}})}})}var bt,_d,Ny,Dy,Uu=h(()=>{ar();ft();bt={fromIterable(t){return _d(cP(t))},fromAsyncIterable(t){return _d(uP(t))},fromDOMStream(t){return _d(lP(t))},fromNodeStream(t){return _d(fP(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},_d=t=>(t.next(),t);Ny=class{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return M(this,void 0,void 0,function*(){let{reader:r,source:i}=this;r&&(yield r.cancel(e).catch(()=>{})),i&&i.locked&&this.releaseLock()})}read(e){return M(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};let r=yield this.reader.read();return!r.done&&(r.value=Z(r)),r})}},Dy=(t,e)=>{let r=n=>i([e,n]),i;return[e,r,new Promise(n=>(i=n)&&t.once(e,r))]}});var Ae,xd=h(()=>{(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(Ae||(Ae={}))});var Se,zy=h(()=>{(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(Se||(Se={}))});var Ie,Ly=h(()=>{(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(Ie||(Ie={}))});var Oe,Ey=h(()=>{(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Oe||(Oe={}))});var z,Pu=h(()=>{(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(z||(z={}))});var ye,Uy=h(()=>{(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ye||(ye={}))});var Id=h(()=>{});var Ln,$d,Sd,Oa,Py=h(()=>{Ln=new Int32Array(2),$d=new Float32Array(Ln.buffer),Sd=new Float64Array(Ln.buffer),Oa=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1});var Fu,Fy=h(()=>{(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(Fu||(Fu={}))});var wt,My=h(()=>{Id();Fy();Py();wt=class t{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(e){return new t(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readUint64(e){return BigInt.asUintN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<<BigInt(32)))}readFloat32(e){return Ln[0]=this.readInt32(e),$d[0]}readFloat64(e){return Ln[Oa?0:1]=this.readInt32(e),Ln[Oa?1:0]=this.readInt32(e+4),Sd[0]}writeInt8(e,r){this.bytes_[e]=r}writeUint8(e,r){this.bytes_[e]=r}writeInt16(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8}writeUint16(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8}writeInt32(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8,this.bytes_[e+2]=r>>16,this.bytes_[e+3]=r>>24}writeUint32(e,r){this.bytes_[e]=r,this.bytes_[e+1]=r>>8,this.bytes_[e+2]=r>>16,this.bytes_[e+3]=r>>24}writeInt64(e,r){this.writeInt32(e,Number(BigInt.asIntN(32,r))),this.writeInt32(e+4,Number(BigInt.asIntN(32,r>>BigInt(32))))}writeUint64(e,r){this.writeUint32(e,Number(BigInt.asUintN(32,r))),this.writeUint32(e+4,Number(BigInt.asUintN(32,r>>BigInt(32))))}writeFloat32(e,r){$d[0]=r,this.writeInt32(e,Ln[0])}writeFloat64(e,r){Sd[0]=r,this.writeInt32(e,Ln[Oa?0:1]),this.writeInt32(e+4,Ln[Oa?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+4+4)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let r=0;r<4;r++)e+=String.fromCharCode(this.readInt8(this.position_+4+r));return e}__offset(e,r){let i=e-this.readInt32(e);return r<this.readInt16(i)?this.readInt16(i+r):0}__union(e,r){return e.bb_pos=r+this.readInt32(r),e.bb=this,e}__string(e,r){e+=this.readInt32(e);let i=this.readInt32(e);e+=4;let n=this.bytes_.subarray(e,e+i);return r===Fu.UTF8_BYTES?n:this.text_decoder_.decode(n)}__union_with_string(e,r){return typeof e=="string"?this.__string(r):this.__union(e,r)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+4}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=4)throw new Error("FlatBuffers: file identifier must be length "+4);for(let r=0;r<4;r++)if(e.charCodeAt(r)!=this.readInt8(this.position()+4+r))return!1;return!0}createScalarList(e,r){let i=[];for(let n=0;n<r;++n){let o=e(n);o!==null&&i.push(o)}return i}createObjList(e,r){let i=[];for(let n=0;n<r;++n){let o=e(n);o!==null&&i.push(o.unpack())}return i}}});var cs,ET=h(()=>{My();Id();cs=class t{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let r;e?r=e:r=1024,this.bb=wt.allocate(r),this.space=r}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,r){e>this.minalign&&(this.minalign=e);let i=~(this.bb.capacity()-this.space+r)+1&e-1;for(;this.space<i+e+r;){let n=this.bb.capacity();this.bb=t.growByteBuffer(this.bb),this.space+=this.bb.capacity()-n}this.pad(i)}pad(e){for(let r=0;r<e;r++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,r,i){(this.force_defaults||r!=i)&&(this.addInt8(r),this.slot(e))}addFieldInt16(e,r,i){(this.force_defaults||r!=i)&&(this.addInt16(r),this.slot(e))}addFieldInt32(e,r,i){(this.force_defaults||r!=i)&&(this.addInt32(r),this.slot(e))}addFieldInt64(e,r,i){(this.force_defaults||r!==i)&&(this.addInt64(r),this.slot(e))}addFieldFloat32(e,r,i){(this.force_defaults||r!=i)&&(this.addFloat32(r),this.slot(e))}addFieldFloat64(e,r,i){(this.force_defaults||r!=i)&&(this.addFloat64(r),this.slot(e))}addFieldOffset(e,r,i){(this.force_defaults||r!=i)&&(this.addOffset(r),this.slot(e))}addFieldStruct(e,r,i){r!=i&&(this.nested(r),this.slot(e))}nested(e){if(e!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){let r=e.capacity();if(r&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");let i=r<<1,n=wt.allocate(i);return n.setPosition(i-r),n.bytes().set(e.bytes(),i-r),n}addOffset(e){this.prep(4,0),this.writeInt32(this.offset()-e+4)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let r=0;r<e;r++)this.vtable[r]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);let e=this.offset(),r=this.vtable_in_use-1;for(;r>=0&&this.vtable[r]==0;r--);let i=r+1;for(;r>=0;r--)this.addInt16(this.vtable[r]!=0?e-this.vtable[r]:0);let n=2;this.addInt16(e-this.object_start);let o=(i+n)*2;this.addInt16(o);let s=0,a=this.space;e:for(r=0;r<this.vtables.length;r++){let c=this.bb.capacity()-this.vtables[r];if(o==this.bb.readInt16(c)){for(let u=2;u<o;u+=2)if(this.bb.readInt16(a+u)!=this.bb.readInt16(c+u))continue e;s=this.vtables[r];break}}return s?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,s-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,r,i){let n=i?4:0;if(r){let o=r;if(this.prep(this.minalign,8+n),o.length!=4)throw new TypeError("FlatBuffers: file identifier must be length "+4);for(let s=3;s>=0;s--)this.writeInt8(o.charCodeAt(s))}this.prep(this.minalign,4+n),this.addOffset(e),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,r){this.finish(e,r,!0)}requiredField(e,r){let i=this.bb.capacity()-e,n=i-this.bb.readInt32(i);if(!(r<this.bb.readInt16(n)&&this.bb.readInt16(n+r)!=0))throw new TypeError("FlatBuffers: field "+r+" must be set")}startVector(e,r,i){this.notNested(),this.vector_num_elems=r,this.prep(4,e*r),this.prep(i,e*r)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);let r=this.createString(e);return this.string_maps.set(e,r),r}createString(e){if(e==null)return 0;let r;return e instanceof Uint8Array?r=e:r=this.text_encoder.encode(e),this.addInt8(0),this.startVector(1,r.length,1),this.bb.setPosition(this.space-=r.length),this.bb.bytes().set(r,this.space),this.endVector()}createByteVector(e){return e==null?0:(this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length),this.bb.bytes().set(e,this.space),this.endVector())}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){let r=[];for(let i=0;i<e.length;++i){let n=e[i];if(n!==null)r.push(this.createObjectOffset(n));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return r}createStructOffsetList(e,r){return r(this,e.length),this.createObjectOffsetList(e.slice().reverse()),this.endVector()}}});var _e=h(()=>{Id();Py();ET();My();Fy()});var us,Cy=h(()=>{(function(t){t[t.BUFFER=0]="BUFFER"})(us||(us={}))});var _t,Ba=h(()=>{(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(_t||(_t={}))});var Xn,Ry=h(()=>{_e();Cy();Ba();Xn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBodyCompression(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}codec(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):_t.LZ4_FRAME}method(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):us.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,r){e.addFieldInt8(0,r,_t.LZ4_FRAME)}static addMethod(e,r){e.addFieldInt8(1,r,us.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,r,i){return t.startBodyCompression(e),t.addCodec(e,r),t.addMethod(e,i),t.endBodyCompression(e)}}});var Da,jy=h(()=>{Da=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,r,i){return e.prep(8,16),e.writeInt64(BigInt(i??0)),e.writeInt64(BigInt(r??0)),e.offset()}}});var Na,Vy=h(()=>{Na=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,r,i){return e.prep(8,16),e.writeInt64(BigInt(i??0)),e.writeInt64(BigInt(r??0)),e.offset()}}});var Ot,Zy=h(()=>{_e();Ry();jy();Vy();Ot=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsRecordBatch(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}length(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}nodes(e,r){let i=this.bb.__offset(this.bb_pos,6);return i?(r||new Na).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}nodesLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new Da).__init(this.bb.__vector(this.bb_pos+i)+e*16,this.bb):null}buffersLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){let r=this.bb.__offset(this.bb_pos,10);return r?(e||new Xn).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}variadicBufferCounts(e){let r=this.bb.__offset(this.bb_pos,12);return r?this.bb.readInt64(this.bb.__vector(this.bb_pos+r)+e*8):BigInt(0)}variadicBufferCountsLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startRecordBatch(e){e.startObject(5)}static addLength(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addNodes(e,r){e.addFieldOffset(1,r,0)}static startNodesVector(e,r){e.startVector(16,r,8)}static addBuffers(e,r){e.addFieldOffset(2,r,0)}static startBuffersVector(e,r){e.startVector(16,r,8)}static addCompression(e,r){e.addFieldOffset(3,r,0)}static addVariadicBufferCounts(e,r){e.addFieldOffset(4,r,0)}static createVariadicBufferCountsVector(e,r){e.startVector(8,r.length,8);for(let i=r.length-1;i>=0;i--)e.addInt64(r[i]);return e.endVector()}static startVariadicBufferCountsVector(e,r){e.startVector(8,r,8)}static endRecordBatch(e){return e.endObject()}}});var Qn,UT=h(()=>{_e();Zy();Qn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDictionaryBatch(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}data(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new Ot).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}isDelta(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addData(e,r){e.addFieldOffset(1,r,0)}static addIsDelta(e,r){e.addFieldInt8(2,+r,0)}static endDictionaryBatch(e){return e.endObject()}}});var Ui,Gy=h(()=>{(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(Ui||(Ui={}))});var Mu,PT=h(()=>{(function(t){t[t.DenseArray=0]="DenseArray"})(Mu||(Mu={}))});var ln,kd=h(()=>{_e();ln=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsInt(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,r){e.addFieldInt32(0,r,0)}static addIsSigned(e,r){e.addFieldInt8(1,+r,0)}static endInt(e){return e.endObject()}static createInt(e,r,i){return t.startInt(e),t.addBitWidth(e,r),t.addIsSigned(e,i),t.endInt(e)}}});var En,Wy=h(()=>{_e();PT();kd();En=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDictionaryEncoding(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}id(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}indexType(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new ln).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}isOrdered(){let e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):Mu.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,r){e.addFieldInt64(0,r,BigInt("0"))}static addIndexType(e,r){e.addFieldOffset(1,r,0)}static addIsOrdered(e,r){e.addFieldInt8(2,+r,0)}static addDictionaryKind(e,r){e.addFieldInt16(3,r,Mu.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}});var Xe,za=h(()=>{_e();Xe=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsKeyValue(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}key(e){let r=this.bb.__offset(this.bb_pos,4);return r?this.bb.__string(this.bb_pos+r,e):null}value(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.__string(this.bb_pos+r,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,r){e.addFieldOffset(0,r,0)}static addValue(e,r){e.addFieldOffset(1,r,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,r,i){return t.startKeyValue(e),t.addKey(e,r),t.addValue(e,i),t.endKeyValue(e)}}});var Cu,FT=h(()=>{_e();Cu=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return t.startBinary(e),t.endBinary(e)}}});var Ru,MT=h(()=>{_e();Ru=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBinaryView(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinaryView(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBinaryView(e){e.startObject(0)}static endBinaryView(e){return e.endObject()}static createBinaryView(e){return t.startBinaryView(e),t.endBinaryView(e)}}});var ju,CT=h(()=>{_e();ju=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsBool(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return t.startBool(e),t.endBool(e)}}});var Pi,Jy=h(()=>{_e();Ey();Pi=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDate(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Oe.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,Oe.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,r){return t.startDate(e),t.addUnit(e,r),t.endDate(e)}}});var Un,Ky=h(()=>{_e();Un=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDecimal(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,r){e.addFieldInt32(0,r,0)}static addScale(e,r){e.addFieldInt32(1,r,0)}static addBitWidth(e,r){e.addFieldInt32(2,r,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,r,i,n){return t.startDecimal(e),t.addPrecision(e,r),t.addScale(e,i),t.addBitWidth(e,n),t.endDecimal(e)}}});var Fi,Hy=h(()=>{_e();Pu();Fi=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsDuration(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDuration(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):z.MILLISECOND}static startDuration(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,z.MILLISECOND)}static endDuration(e){return e.endObject()}static createDuration(e,r){return t.startDuration(e),t.addUnit(e,r),t.endDuration(e)}}});var Mi,qy=h(()=>{_e();Mi=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFixedSizeBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,r){e.addFieldInt32(0,r,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,r){return t.startFixedSizeBinary(e),t.addByteWidth(e,r),t.endFixedSizeBinary(e)}}});var Ci,Yy=h(()=>{_e();Ci=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFixedSizeList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}listSize(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,r){e.addFieldInt32(0,r,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,r){return t.startFixedSizeList(e),t.addListSize(e,r),t.endFixedSizeList(e)}}});var Ri,Xy=h(()=>{_e();Ly();Ri=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFloatingPoint(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}precision(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ie.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,r){e.addFieldInt16(0,r,Ie.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,r){return t.startFloatingPoint(e),t.addPrecision(e,r),t.endFloatingPoint(e)}}});var ji,Qy=h(()=>{_e();Uy();ji=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsInterval(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ye.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,r){e.addFieldInt16(0,r,ye.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,r){return t.startInterval(e),t.addUnit(e,r),t.endInterval(e)}}});var Vu,RT=h(()=>{_e();Vu=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeBinary(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeBinary(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeBinary(e){e.startObject(0)}static endLargeBinary(e){return e.endObject()}static createLargeBinary(e){return t.startLargeBinary(e),t.endLargeBinary(e)}}});var Zu,jT=h(()=>{_e();Zu=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeList(e){e.startObject(0)}static endLargeList(e){return e.endObject()}static createLargeList(e){return t.startLargeList(e),t.endLargeList(e)}}});var Gu,VT=h(()=>{_e();Gu=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsLargeUtf8(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsLargeUtf8(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startLargeUtf8(e){e.startObject(0)}static endLargeUtf8(e){return e.endObject()}static createLargeUtf8(e){return t.startLargeUtf8(e),t.endLargeUtf8(e)}}});var Wu,ZT=h(()=>{_e();Wu=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsList(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return t.startList(e),t.endList(e)}}});var Vi,ev=h(()=>{_e();Vi=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsMap(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){let e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,r){e.addFieldInt8(0,+r,0)}static endMap(e){return e.endObject()}static createMap(e,r){return t.startMap(e),t.addKeysSorted(e,r),t.endMap(e)}}});var Ju,GT=h(()=>{_e();Ju=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsNull(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return t.startNull(e),t.endNull(e)}}});var Ku,WT=h(()=>{_e();Ku=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsStruct_(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return t.startStruct_(e),t.endStruct_(e)}}});var ei,tv=h(()=>{_e();Pu();ei=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsTime(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):z.MILLISECOND}bitWidth(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,r){e.addFieldInt16(0,r,z.MILLISECOND)}static addBitWidth(e,r){e.addFieldInt32(1,r,32)}static endTime(e){return e.endObject()}static createTime(e,r,i){return t.startTime(e),t.addUnit(e,r),t.addBitWidth(e,i),t.endTime(e)}}});var ti,rv=h(()=>{_e();Pu();ti=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsTimestamp(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}unit(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):z.SECOND}timezone(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.__string(this.bb_pos+r,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,r){e.addFieldInt16(0,r,z.SECOND)}static addTimezone(e,r){e.addFieldOffset(1,r,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,r,i){return t.startTimestamp(e),t.addUnit(e,r),t.addTimezone(e,i),t.endTimestamp(e)}}});var fn,nv=h(()=>{_e();zy();fn=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUnion(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}mode(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Se.Sparse}typeIds(e){let r=this.bb.__offset(this.bb_pos,6);return r?this.bb.readInt32(this.bb.__vector(this.bb_pos+r)+e*4):0}typeIdsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){let e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}static startUnion(e){e.startObject(2)}static addMode(e,r){e.addFieldInt16(0,r,Se.Sparse)}static addTypeIds(e,r){e.addFieldOffset(1,r,0)}static createTypeIdsVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addInt32(r[i]);return e.endVector()}static startTypeIdsVector(e,r){e.startVector(4,r,4)}static endUnion(e){return e.endObject()}static createUnion(e,r,i){return t.startUnion(e),t.addMode(e,r),t.addTypeIds(e,i),t.endUnion(e)}}});var Hu,JT=h(()=>{_e();Hu=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUtf8(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return t.startUtf8(e),t.endUtf8(e)}}});var qu,KT=h(()=>{_e();qu=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsUtf8View(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8View(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8View(e){e.startObject(0)}static endUtf8View(e){return e.endObject()}static createUtf8View(e){return t.startUtf8View(e),t.endUtf8View(e)}}});var Y,Ad=h(()=>{(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.ListView=25]="ListView",t[t.LargeListView=26]="LargeListView"})(Y||(Y={}))});var Bt,iv=h(()=>{_e();Wy();za();Ad();Bt=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsField(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}name(e){let r=this.bb.__offset(this.bb_pos,4);return r?this.bb.__string(this.bb_pos+r,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):Y.NONE}type(e){let r=this.bb.__offset(this.bb_pos,10);return r?this.bb.__union(e,this.bb_pos+r):null}dictionary(e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new En).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}children(e,r){let i=this.bb.__offset(this.bb_pos,14);return i?(r||new t).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,16);return i?(r||new Xe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,r){e.addFieldOffset(0,r,0)}static addNullable(e,r){e.addFieldInt8(1,+r,0)}static addTypeType(e,r){e.addFieldInt8(2,r,Y.NONE)}static addType(e,r){e.addFieldOffset(3,r,0)}static addDictionary(e,r){e.addFieldOffset(4,r,0)}static addChildren(e,r){e.addFieldOffset(5,r,0)}static createChildrenVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startChildrenVector(e,r){e.startVector(4,r,4)}static addCustomMetadata(e,r){e.addFieldOffset(6,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endField(e){return e.endObject()}}});var cr,ov=h(()=>{_e();Gy();iv();za();cr=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsSchema(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ui.Little}fields(e,r){let i=this.bb.__offset(this.bb_pos,6);return i?(r||new Bt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new Xe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let r=this.bb.__offset(this.bb_pos,10);return r?this.bb.readInt64(this.bb.__vector(this.bb_pos+r)+e*8):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,r){e.addFieldInt16(0,r,Ui.Little)}static addFields(e,r){e.addFieldOffset(1,r,0)}static createFieldsVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startFieldsVector(e,r){e.startVector(4,r,4)}static addCustomMetadata(e,r){e.addFieldOffset(2,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static addFeatures(e,r){e.addFieldOffset(3,r,0)}static createFeaturesVector(e,r){e.startVector(8,r.length,8);for(let i=r.length-1;i>=0;i--)e.addInt64(r[i]);return e.endVector()}static startFeaturesVector(e,r){e.startVector(8,r,8)}static endSchema(e){return e.endObject()}static createSchema(e,r,i,n,o){return t.startSchema(e),t.addEndianness(e,r),t.addFields(e,i),t.addCustomMetadata(e,n),t.addFeatures(e,o),t.endSchema(e)}}});var he,Od=h(()=>{(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(he||(he={}))});var y,Te,Qe=h(()=>{xd();zy();Ly();Ey();Pu();Uy();Od();(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.BinaryView=23]="BinaryView",t[t.Utf8View=24]="Utf8View",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond",t[t.IntervalMonthDayNano=-31]="IntervalMonthDayNano"})(y||(y={}));(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(Te||(Te={}))});var sv={};Ke(sv,{valueToString:()=>dn});function dn(t){if(t===null)return"null";if(t===void 0)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map(e=>dn(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,r)=>typeof r=="bigint"?`${r}`:r)}var Yu=h(()=>{});function de(t){if(typeof t=="bigint"&&(t<Number.MIN_SAFE_INTEGER||t>Number.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`);return Number(t)}function av(t,e){return de(t/e)+de(t%e)/de(e)}var Pn=h(()=>{});var lv={};Ke(lv,{BN:()=>ls,bigNumToBigInt:()=>qT,bigNumToNumber:()=>uv,bigNumToString:()=>Ua,isArrowBigNumSymbol:()=>HT});function pn(t,...e){return e.length===0?Object.setPrototypeOf(fe(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function La(...t){return pn.apply(this,t)}function Ea(...t){return pn.apply(this,t)}function Xu(...t){return pn.apply(this,t)}function uv(t,e){let{buffer:r,byteOffset:i,byteLength:n,signed:o}=t,s=new BigUint64Array(r,i,n/8),a=o&&s.at(-1)&BigInt(1)<<BigInt(63),c=BigInt(0),u=0;if(a){for(let l of s)c|=(l^pP)*(BigInt(1)<<BigInt(64*u++));c*=BigInt(-1),c-=BigInt(1)}else for(let l of s)c|=l*(BigInt(1)<<BigInt(64*u++));if(typeof e=="number"&&e>0){let l=BigInt("1".padEnd(e+1,"0")),f=c/l,d=a?-(c%l):c%l,p=de(f),m=`${d}`.padStart(e,"0");return+`${a&&p===0?"-":""}${p}.${m}`}return de(c)}function Ua(t){if(t.byteLength===8)return`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`;if(!t.signed)return cv(t);let e=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);if(new Int16Array([e.at(-1)])[0]>=0)return cv(t);e=e.slice();let i=1;for(let o=0;o<e.length;o++){let s=e[o],a=~s+i;e[o]=a,i&=s===0?1:0}return`-${cv(e)}`}function qT(t){return t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Ua(t)}function cv(t){let e="",r=new Uint32Array(2),i=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2),n=new Uint32Array((i=new Uint16Array(i).reverse()).buffer),o=-1,s=i.length-1;do{for(r[0]=i[o=0];o<s;)i[o++]=r[1]=r[0]/10,r[0]=(r[0]-r[1]*10<<16)+i[o];i[o]=r[1]=r[0]/10,r[0]=r[0]-r[1]*10,e=`${r[0]}${e}`}while(n[0]||n[1]||n[2]||n[3]);return e??"0"}var HT,dP,pP,ls,Bd=h(()=>{ft();Pn();HT=Symbol.for("isArrowBigNum");pn.prototype[HT]=!0;pn.prototype.toJSON=function(){return`"${Ua(this)}"`};pn.prototype.valueOf=function(t){return uv(this,t)};pn.prototype.toString=function(){return Ua(this)};pn.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return uv(this);case"string":return Ua(this);case"default":return qT(this)}return Ua(this)};Object.setPrototypeOf(La.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(Ea.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(Xu.prototype,Object.create(Uint32Array.prototype));Object.assign(La.prototype,pn.prototype,{constructor:La,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array});Object.assign(Ea.prototype,pn.prototype,{constructor:Ea,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array});Object.assign(Xu.prototype,pn.prototype,{constructor:Xu,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});dP=BigInt(4294967296)*BigInt(4294967296),pP=dP-BigInt(1);ls=class t{static new(e,r){switch(r){case!0:return new La(e);case!1:return new Ea(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new La(e)}return e.byteLength===16?new Xu(e):new Ea(e)}static signed(e){return new La(e)}static unsigned(e){return new Ea(e)}static decimal(e){return new Xu(e)}constructor(e,r){return t.new(e,r)}}});function Lr(t){let e=t;switch(t.typeId){case y.Decimal:return t.bitWidth/32;case y.Interval:return e.unit===ye.MONTH_DAY_NANO?4:1+e.unit;case y.BinaryView:case y.Utf8View:return 16;case y.FixedSizeList:return e.listSize;case y.FixedSizeBinary:return e.byteWidth;default:return 1}}var YT,XT,QT,ek,tk,rk,nk,ik,ok,sk,ak,ck,uk,lk,fk,dk,pk,mk,hk,gk,yk,vk,bk,wk,_k,xk,D,tt,He,Tr,kr,ot,Ar,Or,Br,Dr,mn,Dt,ri,hn,mt,Nt,ae,gn,zt,Wt,yn,Lt,ur,Jt,Zi,Gi,xt,Wi,Ji,Ki,Hi,It,qi,Fn,Yi,Xi,Et,Qi,eo,Qu,Kt,el,tl,rl,nl,rt,Nr,ue,Ht,zr,to,lr,ht,Ut,mP,st,Be=h(()=>{Pn();Qe();xk=Symbol.for("apache-arrow/DataType"),D=class t{static isDataType(e){return e?.[xk]===!0}static isNull(e){return e?.typeId===y.Null}static isInt(e){return e?.typeId===y.Int}static isFloat(e){return e?.typeId===y.Float}static isBinary(e){return e?.typeId===y.Binary}static isBinaryView(e){return e?.typeId===y.BinaryView}static isLargeBinary(e){return e?.typeId===y.LargeBinary}static isUtf8(e){return e?.typeId===y.Utf8}static isUtf8View(e){return e?.typeId===y.Utf8View}static isLargeUtf8(e){return e?.typeId===y.LargeUtf8}static isBool(e){return e?.typeId===y.Bool}static isDecimal(e){return e?.typeId===y.Decimal}static isDate(e){return e?.typeId===y.Date}static isTime(e){return e?.typeId===y.Time}static isTimestamp(e){return e?.typeId===y.Timestamp}static isInterval(e){return e?.typeId===y.Interval}static isDuration(e){return e?.typeId===y.Duration}static isList(e){return e?.typeId===y.List}static isLargeList(e){return e?.typeId===y.LargeList}static isStruct(e){return e?.typeId===y.Struct}static isUnion(e){return e?.typeId===y.Union}static isFixedSizeBinary(e){return e?.typeId===y.FixedSizeBinary}static isFixedSizeList(e){return e?.typeId===y.FixedSizeList}static isMap(e){return e?.typeId===y.Map}static isDictionary(e){return e?.typeId===y.Dictionary}static isDenseUnion(e){return t.isUnion(e)&&e.mode===Se.Dense}static isSparseUnion(e){return t.isUnion(e)&&e.mode===Se.Sparse}constructor(e){this.typeId=e}};YT=Symbol.toStringTag;D[YT]=(t=>(t.children=null,t.ArrayType=Array,t.OffsetArrayType=Int32Array,t[xk]=!0,t[Symbol.toStringTag]="DataType"))(D.prototype);tt=class extends D{constructor(){super(y.Null)}toString(){return"Null"}};XT=Symbol.toStringTag;tt[XT]=(t=>t[Symbol.toStringTag]="Null")(tt.prototype);He=class extends D{constructor(e,r){super(y.Int),this.isSigned=e,this.bitWidth=r}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};QT=Symbol.toStringTag;He[QT]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(He.prototype);Tr=class extends He{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},kr=class extends He{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},ot=class extends He{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},Ar=class extends He{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Or=class extends He{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Br=class extends He{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Dr=class extends He{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},mn=class extends He{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Tr.prototype,"ArrayType",{value:Int8Array});Object.defineProperty(kr.prototype,"ArrayType",{value:Int16Array});Object.defineProperty(ot.prototype,"ArrayType",{value:Int32Array});Object.defineProperty(Ar.prototype,"ArrayType",{value:BigInt64Array});Object.defineProperty(Or.prototype,"ArrayType",{value:Uint8Array});Object.defineProperty(Br.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(Dr.prototype,"ArrayType",{value:Uint32Array});Object.defineProperty(mn.prototype,"ArrayType",{value:BigUint64Array});Dt=class extends D{constructor(e){super(y.Float),this.precision=e}get ArrayType(){switch(this.precision){case Ie.HALF:return Uint16Array;case Ie.SINGLE:return Float32Array;case Ie.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};ek=Symbol.toStringTag;Dt[ek]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Dt.prototype);ri=class extends Dt{constructor(){super(Ie.HALF)}},hn=class extends Dt{constructor(){super(Ie.SINGLE)}},mt=class extends Dt{constructor(){super(Ie.DOUBLE)}};Object.defineProperty(ri.prototype,"ArrayType",{value:Uint16Array});Object.defineProperty(hn.prototype,"ArrayType",{value:Float32Array});Object.defineProperty(mt.prototype,"ArrayType",{value:Float64Array});Nt=class extends D{constructor(){super(y.Binary)}toString(){return"Binary"}};tk=Symbol.toStringTag;Nt[tk]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Nt.prototype);ae=class extends D{constructor(){super(y.BinaryView)}toString(){return"BinaryView"}};rk=Symbol.toStringTag;ae.ELEMENT_WIDTH=16;ae.INLINE_CAPACITY=12;ae.LENGTH_OFFSET=0;ae.INLINE_OFFSET=4;ae.BUFFER_INDEX_OFFSET=8;ae.BUFFER_OFFSET_OFFSET=12;ae[rk]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="BinaryView"))(ae.prototype);gn=class extends D{constructor(){super(y.LargeBinary)}toString(){return"LargeBinary"}};nk=Symbol.toStringTag;gn[nk]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(gn.prototype);zt=class extends D{constructor(){super(y.Utf8)}toString(){return"Utf8"}};ik=Symbol.toStringTag;zt[ik]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(zt.prototype);Wt=class extends D{constructor(){super(y.Utf8View)}toString(){return"Utf8View"}};ok=Symbol.toStringTag;Wt.ELEMENT_WIDTH=ae.ELEMENT_WIDTH;Wt.INLINE_CAPACITY=ae.INLINE_CAPACITY;Wt[ok]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8View"))(Wt.prototype);yn=class extends D{constructor(){super(y.LargeUtf8)}toString(){return"LargeUtf8"}};sk=Symbol.toStringTag;yn[sk]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(yn.prototype);Lt=class extends D{constructor(){super(y.Bool)}toString(){return"Bool"}};ak=Symbol.toStringTag;Lt[ak]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Lt.prototype);ur=class extends D{constructor(e,r,i=128){super(y.Decimal),this.scale=e,this.precision=r,this.bitWidth=i}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};ck=Symbol.toStringTag;ur[ck]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(ur.prototype);Jt=class extends D{constructor(e){super(y.Date),this.unit=e}toString(){return`Date${(this.unit+1)*32}<${Oe[this.unit]}>`}get ArrayType(){return this.unit===Oe.DAY?Int32Array:BigInt64Array}};uk=Symbol.toStringTag;Jt[uk]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))(Jt.prototype);Zi=class extends Jt{constructor(){super(Oe.DAY)}},Gi=class extends Jt{constructor(){super(Oe.MILLISECOND)}},xt=class extends D{constructor(e,r){super(y.Time),this.unit=e,this.bitWidth=r}toString(){return`Time${this.bitWidth}<${z[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};lk=Symbol.toStringTag;xt[lk]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(xt.prototype);Wi=class extends xt{constructor(){super(z.SECOND,32)}},Ji=class extends xt{constructor(){super(z.MILLISECOND,32)}},Ki=class extends xt{constructor(){super(z.MICROSECOND,64)}},Hi=class extends xt{constructor(){super(z.NANOSECOND,64)}},It=class extends D{constructor(e,r){super(y.Timestamp),this.unit=e,this.timezone=r}toString(){return`Timestamp<${z[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};fk=Symbol.toStringTag;It[fk]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(It.prototype);qi=class extends It{constructor(e){super(z.SECOND,e)}},Fn=class extends It{constructor(e){super(z.MILLISECOND,e)}},Yi=class extends It{constructor(e){super(z.MICROSECOND,e)}},Xi=class extends It{constructor(e){super(z.NANOSECOND,e)}},Et=class extends D{constructor(e){super(y.Interval),this.unit=e}toString(){return`Interval<${ye[this.unit]}>`}};dk=Symbol.toStringTag;Et[dk]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Et.prototype);Qi=class extends Et{constructor(){super(ye.DAY_TIME)}},eo=class extends Et{constructor(){super(ye.YEAR_MONTH)}},Qu=class extends Et{constructor(){super(ye.MONTH_DAY_NANO)}},Kt=class extends D{constructor(e){super(y.Duration),this.unit=e}toString(){return`Duration<${z[this.unit]}>`}};pk=Symbol.toStringTag;Kt[pk]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(Kt.prototype);el=class extends Kt{constructor(){super(z.SECOND)}},tl=class extends Kt{constructor(){super(z.MILLISECOND)}},rl=class extends Kt{constructor(){super(z.MICROSECOND)}},nl=class extends Kt{constructor(){super(z.NANOSECOND)}},rt=class extends D{constructor(e){super(y.List),this.children=[e]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};mk=Symbol.toStringTag;rt[mk]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(rt.prototype);Nr=class extends D{constructor(e){super(y.LargeList),this.children=[e]}toString(){return`LargeList<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};hk=Symbol.toStringTag;Nr[hk]=(t=>(t.children=null,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeList"))(Nr.prototype);ue=class extends D{constructor(e){super(y.Struct),this.children=e}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};gk=Symbol.toStringTag;ue[gk]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(ue.prototype);Ht=class extends D{constructor(e,r,i){super(y.Union),this.mode=e,this.children=i,this.typeIds=r=Int32Array.from(r),this.typeIdToChildIndex=r.reduce((n,o,s)=>(n[o]=s)&&n||n,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}};yk=Symbol.toStringTag;Ht[yk]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(Ht.prototype);zr=class extends Ht{constructor(e,r){super(Se.Dense,e,r)}},to=class extends Ht{constructor(e,r){super(Se.Sparse,e,r)}},lr=class extends D{constructor(e){super(y.FixedSizeBinary),this.byteWidth=e}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};vk=Symbol.toStringTag;lr[vk]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(lr.prototype);ht=class extends D{constructor(e,r){super(y.FixedSizeList),this.listSize=e,this.children=[r]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};bk=Symbol.toStringTag;ht[bk]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(ht.prototype);Ut=class extends D{constructor(e,r=!1){var i,n,o;if(super(y.Map),this.children=[e],this.keysSorted=r,e&&(e.name="entries",!((i=e?.type)===null||i===void 0)&&i.children)){let s=(n=e?.type)===null||n===void 0?void 0:n.children[0];s&&(s.name="key");let a=(o=e?.type)===null||o===void 0?void 0:o.children[1];a&&(a.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}};wk=Symbol.toStringTag;Ut[wk]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Ut.prototype);mP=(t=>()=>++t)(-1),st=class extends D{constructor(e,r,i,n){super(y.Dictionary),this.indices=r,this.dictionary=e,this.isOrdered=n||!1,this.id=i==null?mP():de(i)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};_k=Symbol.toStringTag;st[_k]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(st.prototype)});function hP(t,e,r=!0){return typeof e=="number"?Pa(t,e,r):typeof e=="string"&&e in y?Pa(t,y[e],r):e&&e instanceof D?Pa(t,$k(e),r):e?.type&&e.type instanceof D?Pa(t,$k(e.type),r):Pa(t,y.NONE,r)}function Pa(t,e,r=!0){let i=null;switch(e){case y.Null:i=t.visitNull;break;case y.Bool:i=t.visitBool;break;case y.Int:i=t.visitInt;break;case y.Int8:i=t.visitInt8||t.visitInt;break;case y.Int16:i=t.visitInt16||t.visitInt;break;case y.Int32:i=t.visitInt32||t.visitInt;break;case y.Int64:i=t.visitInt64||t.visitInt;break;case y.Uint8:i=t.visitUint8||t.visitInt;break;case y.Uint16:i=t.visitUint16||t.visitInt;break;case y.Uint32:i=t.visitUint32||t.visitInt;break;case y.Uint64:i=t.visitUint64||t.visitInt;break;case y.Float:i=t.visitFloat;break;case y.Float16:i=t.visitFloat16||t.visitFloat;break;case y.Float32:i=t.visitFloat32||t.visitFloat;break;case y.Float64:i=t.visitFloat64||t.visitFloat;break;case y.Utf8:i=t.visitUtf8;break;case y.LargeUtf8:i=t.visitLargeUtf8;break;case y.Utf8View:i=t.visitUtf8View||t.visitUtf8;break;case y.Binary:i=t.visitBinary;break;case y.LargeBinary:i=t.visitLargeBinary;break;case y.BinaryView:i=t.visitBinaryView||t.visitBinary;break;case y.FixedSizeBinary:i=t.visitFixedSizeBinary;break;case y.Date:i=t.visitDate;break;case y.DateDay:i=t.visitDateDay||t.visitDate;break;case y.DateMillisecond:i=t.visitDateMillisecond||t.visitDate;break;case y.Timestamp:i=t.visitTimestamp;break;case y.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp;break;case y.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp;break;case y.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp;break;case y.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp;break;case y.Time:i=t.visitTime;break;case y.TimeSecond:i=t.visitTimeSecond||t.visitTime;break;case y.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime;break;case y.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime;break;case y.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime;break;case y.Decimal:i=t.visitDecimal;break;case y.List:i=t.visitList;break;case y.LargeList:i=t.visitLargeList;break;case y.Struct:i=t.visitStruct;break;case y.Union:i=t.visitUnion;break;case y.DenseUnion:i=t.visitDenseUnion||t.visitUnion;break;case y.SparseUnion:i=t.visitSparseUnion||t.visitUnion;break;case y.Dictionary:i=t.visitDictionary;break;case y.Interval:i=t.visitInterval;break;case y.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval;break;case y.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval;break;case y.IntervalMonthDayNano:i=t.visitIntervalMonthDayNano||t.visitInterval;break;case y.Duration:i=t.visitDuration;break;case y.DurationSecond:i=t.visitDurationSecond||t.visitDuration;break;case y.DurationMillisecond:i=t.visitDurationMillisecond||t.visitDuration;break;case y.DurationMicrosecond:i=t.visitDurationMicrosecond||t.visitDuration;break;case y.DurationNanosecond:i=t.visitDurationNanosecond||t.visitDuration;break;case y.FixedSizeList:i=t.visitFixedSizeList;break;case y.Map:i=t.visitMap;break}if(typeof i=="function")return i;if(!r)return()=>null;throw new Error(`Unrecognized type '${y[e]}'`)}function $k(t){switch(t.typeId){case y.Null:return y.Null;case y.Int:{let{bitWidth:e,isSigned:r}=t;switch(e){case 8:return r?y.Int8:y.Uint8;case 16:return r?y.Int16:y.Uint16;case 32:return r?y.Int32:y.Uint32;case 64:return r?y.Int64:y.Uint64}return y.Int}case y.Float:switch(t.precision){case Ie.HALF:return y.Float16;case Ie.SINGLE:return y.Float32;case Ie.DOUBLE:return y.Float64}return y.Float;case y.Binary:return y.Binary;case y.LargeBinary:return y.LargeBinary;case y.BinaryView:return y.BinaryView;case y.Utf8:return y.Utf8;case y.LargeUtf8:return y.LargeUtf8;case y.Utf8View:return y.Utf8View;case y.Bool:return y.Bool;case y.Decimal:return y.Decimal;case y.Time:switch(t.unit){case z.SECOND:return y.TimeSecond;case z.MILLISECOND:return y.TimeMillisecond;case z.MICROSECOND:return y.TimeMicrosecond;case z.NANOSECOND:return y.TimeNanosecond}return y.Time;case y.Timestamp:switch(t.unit){case z.SECOND:return y.TimestampSecond;case z.MILLISECOND:return y.TimestampMillisecond;case z.MICROSECOND:return y.TimestampMicrosecond;case z.NANOSECOND:return y.TimestampNanosecond}return y.Timestamp;case y.Date:switch(t.unit){case Oe.DAY:return y.DateDay;case Oe.MILLISECOND:return y.DateMillisecond}return y.Date;case y.Interval:switch(t.unit){case ye.DAY_TIME:return y.IntervalDayTime;case ye.YEAR_MONTH:return y.IntervalYearMonth;case ye.MONTH_DAY_NANO:return y.IntervalMonthDayNano}return y.Interval;case y.Duration:switch(t.unit){case z.SECOND:return y.DurationSecond;case z.MILLISECOND:return y.DurationMillisecond;case z.MICROSECOND:return y.DurationMicrosecond;case z.NANOSECOND:return y.DurationNanosecond}return y.Duration;case y.Map:return y.Map;case y.List:return y.List;case y.LargeList:return y.LargeList;case y.Struct:return y.Struct;case y.Union:switch(t.mode){case Se.Dense:return y.DenseUnion;case Se.Sparse:return y.SparseUnion}return y.Union;case y.FixedSizeBinary:return y.FixedSizeBinary;case y.FixedSizeList:return y.FixedSizeList;case y.Dictionary:return y.Dictionary}throw new Error(`Unrecognized type '${y[t.typeId]}'`)}var V,fr=h(()=>{Qe();Be();V=class{visitMany(e,...r){return e.map((i,n)=>this.visit(i,...r.map(o=>o[n])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,r=!0){return hP(this,e,r)}getVisitFnByTypeId(e,r=!0){return Pa(this,e,r)}visitNull(e,...r){return null}visitBool(e,...r){return null}visitInt(e,...r){return null}visitFloat(e,...r){return null}visitUtf8(e,...r){return null}visitLargeUtf8(e,...r){return null}visitUtf8View(e,...r){return null}visitBinary(e,...r){return null}visitLargeBinary(e,...r){return null}visitBinaryView(e,...r){return null}visitFixedSizeBinary(e,...r){return null}visitDate(e,...r){return null}visitTimestamp(e,...r){return null}visitTime(e,...r){return null}visitDecimal(e,...r){return null}visitList(e,...r){return null}visitLargeList(e,...r){return null}visitStruct(e,...r){return null}visitUnion(e,...r){return null}visitDictionary(e,...r){return null}visitInterval(e,...r){return null}visitDuration(e,...r){return null}visitFixedSizeList(e,...r){return null}visitMap(e,...r){return null}};V.prototype.visitInt8=null;V.prototype.visitInt16=null;V.prototype.visitInt32=null;V.prototype.visitInt64=null;V.prototype.visitUint8=null;V.prototype.visitUint16=null;V.prototype.visitUint32=null;V.prototype.visitUint64=null;V.prototype.visitFloat16=null;V.prototype.visitFloat32=null;V.prototype.visitFloat64=null;V.prototype.visitDateDay=null;V.prototype.visitDateMillisecond=null;V.prototype.visitTimestampSecond=null;V.prototype.visitTimestampMillisecond=null;V.prototype.visitTimestampMicrosecond=null;V.prototype.visitTimestampNanosecond=null;V.prototype.visitTimeSecond=null;V.prototype.visitTimeMillisecond=null;V.prototype.visitTimeMicrosecond=null;V.prototype.visitTimeNanosecond=null;V.prototype.visitDenseUnion=null;V.prototype.visitSparseUnion=null;V.prototype.visitIntervalDayTime=null;V.prototype.visitIntervalYearMonth=null;V.prototype.visitIntervalMonthDayNano=null;V.prototype.visitDuration=null;V.prototype.visitDurationSecond=null;V.prototype.visitDurationMillisecond=null;V.prototype.visitDurationMicrosecond=null;V.prototype.visitDurationNanosecond=null});var fv={};Ke(fv,{float64ToUint16:()=>il,uint16ToFloat64:()=>Dd});function Dd(t){let e=(t&31744)>>10,r=(t&1023)/1024,i=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return i*(r?Number.NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*Math.pow(2,e-15)*(1+r)}function il(t){if(t!==t)return 32256;Sk[0]=t;let e=(Fa[1]&2147483648)>>16&65535,r=Fa[1]&2146435072,i=0;return r>=1089470464?Fa[0]>0?r=31744:(r=(r&2080374784)>>16,i=(Fa[1]&1048575)>>10):r<=1056964608?(i=1048576+(Fa[1]&1048575),i=1048576+(i<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,i=(Fa[1]&1048575)+512>>10),e|r|i&65535}var Sk,Fa,ol=h(()=>{Sk=new Float64Array(1),Fa=new Uint32Array(Sk.buffer)});function te(t){return(e,r,i)=>{if(e.setValid(r,i!=null))return t(e,r,i)}}var q,gP,Tk,yP,ni,dv,kk,vP,Nd,zd,pv,Ak,bP,Ok,wP,Bk,_P,mv,Ld,Ed,Ud,Pd,hv,Fd,Md,Cd,Rd,gv,yv,Dk,xP,IP,$P,SP,TP,kP,AP,Nk,zk,OP,vv,jd,Vd,Zd,Gd,Wd,Jd,Kd,bv,BP,$t,Er=h(()=>{Pt();fr();Pn();Yn();ol();Qe();Be();q=class extends V{};gP=(t,e,r)=>{t[e]=Math.floor(r/864e5)},Tk=(t,e,r,i)=>{if(r+1<e.length){let n=de(e[r]),o=de(e[r+1]);t.set(i.subarray(0,o-n),n)}},yP=({offset:t,values:e},r,i)=>{let n=t+r;i?e[n>>3]|=1<<n%8:e[n>>3]&=~(1<<n%8)},ni=({values:t},e,r)=>{t[e]=r},dv=({values:t},e,r)=>{t[e]=r},kk=({values:t},e,r)=>{t[e]=il(r)},vP=(t,e,r)=>{switch(t.type.precision){case Ie.HALF:return kk(t,e,r);case Ie.SINGLE:case Ie.DOUBLE:return dv(t,e,r)}},Nd=({values:t},e,r)=>{gP(t,e,r.valueOf())},zd=({values:t},e,r)=>{t[e]=BigInt(r)},pv=({stride:t,values:e},r,i)=>{e.set(i.subarray(0,t),t*r)},Ak=({values:t,valueOffsets:e},r,i)=>Tk(t,e,r,i),bP=t=>{let e=t.variadicBuffers;return(!Array.isArray(e)||Object.isFrozen(e))&&(e=Array.from(e),t.variadicBuffers=e),e},Ok=(t,e,r)=>{var i,n,o,s;let a=t.values;if(!a)throw new Error("BinaryView data is missing view buffer");let c=ae.ELEMENT_WIDTH,u=e*c,l=u+c;if(u<0||l>a.length)throw new RangeError(`BinaryView index ${e} out of bounds`);a.fill(0,u,l);let f=new DataView(a.buffer,a.byteOffset+u,c),d=r.length;if(f.setInt32(ae.LENGTH_OFFSET,d,!0),d<=ae.INLINE_CAPACITY){a.set(r,u+ae.INLINE_OFFSET);return}let p=((i=r[0])!==null&&i!==void 0?i:0)|((n=r[1])!==null&&n!==void 0?n:0)<<8|((o=r[2])!==null&&o!==void 0?o:0)<<16|((s=r[3])!==null&&s!==void 0?s:0)<<24;f.setUint32(ae.INLINE_OFFSET,p>>>0,!0);let m=bP(t),g=r.slice(),v=m.push(g)-1;f.setInt32(ae.BUFFER_INDEX_OFFSET,v,!0),f.setInt32(ae.BUFFER_OFFSET_OFFSET,0,!0)},wP=(t,e,r)=>{let i=r instanceof Uint8Array?r:new Uint8Array(r);Ok(t,e,i)},Bk=({values:t,valueOffsets:e},r,i)=>Tk(t,e,r,Ir(i)),_P=(t,e,r)=>{let i=Ir(r);Ok(t,e,i)},mv=(t,e,r)=>{t.type.unit===Oe.DAY?Nd(t,e,r):zd(t,e,r)},Ld=({values:t},e,r)=>{t[e]=BigInt(r/1e3)},Ed=({values:t},e,r)=>{t[e]=BigInt(r)},Ud=({values:t},e,r)=>{t[e]=BigInt(r*1e3)},Pd=({values:t},e,r)=>{t[e]=BigInt(r*1e6)},hv=(t,e,r)=>{switch(t.type.unit){case z.SECOND:return Ld(t,e,r);case z.MILLISECOND:return Ed(t,e,r);case z.MICROSECOND:return Ud(t,e,r);case z.NANOSECOND:return Pd(t,e,r)}},Fd=({values:t},e,r)=>{t[e]=r},Md=({values:t},e,r)=>{t[e]=r},Cd=({values:t},e,r)=>{t[e]=r},Rd=({values:t},e,r)=>{t[e]=r},gv=(t,e,r)=>{switch(t.type.unit){case z.SECOND:return Fd(t,e,r);case z.MILLISECOND:return Md(t,e,r);case z.MICROSECOND:return Cd(t,e,r);case z.NANOSECOND:return Rd(t,e,r)}},yv=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},Dk=(t,e,r)=>{let i=t.children[0],n=t.valueOffsets,o=$t.getVisitFn(i),s=de(n[e]),a=de(n[e+1]);if(Array.isArray(r))for(let c=-1,u=s;u<a;)o(i,u++,r[++c]);else for(let c=-1,u=s;u<a;)o(i,u++,r.get(++c))},xP=(t,e,r)=>{let i=t.children[0],{valueOffsets:n}=t,o=$t.getVisitFn(i),{[e]:s,[e+1]:a}=n,c=r instanceof Map?r.entries():Object.entries(r);for(let u of c)if(o(i,s,u),++s>=a)break},IP=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[o]),$P=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(o)),SP=(t,e)=>(r,i,n,o)=>i&&r(i,t,e.get(n.name)),TP=(t,e)=>(r,i,n,o)=>i&&r(i,t,e[n.name]),kP=(t,e,r)=>{let i=t.type.children.map(o=>$t.getVisitFn(o.type)),n=r instanceof Map?SP(e,r):r instanceof F?$P(e,r):Array.isArray(r)?IP(e,r):TP(e,r);t.type.children.forEach((o,s)=>n(i[s],t.children[s],o,s))},AP=(t,e,r)=>{t.type.mode===Se.Dense?Nk(t,e,r):zk(t,e,r)},Nk=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];$t.visit(n,t.valueOffsets[e],r)},zk=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];$t.visit(n,e,r)},OP=(t,e,r)=>{var i;(i=t.dictionary)===null||i===void 0||i.set(t.values[e],r)},vv=(t,e,r)=>{switch(t.type.unit){case ye.YEAR_MONTH:return Vd(t,e,r);case ye.DAY_TIME:return jd(t,e,r);case ye.MONTH_DAY_NANO:return Zd(t,e,r)}},jd=({values:t},e,r)=>{t.set(r.subarray(0,2),2*e)},Vd=({values:t},e,r)=>{t[e]=r[0]*12+r[1]%12},Zd=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},Gd=({values:t},e,r)=>{t[e]=r},Wd=({values:t},e,r)=>{t[e]=r},Jd=({values:t},e,r)=>{t[e]=r},Kd=({values:t},e,r)=>{t[e]=r},bv=(t,e,r)=>{switch(t.type.unit){case z.SECOND:return Gd(t,e,r);case z.MILLISECOND:return Wd(t,e,r);case z.MICROSECOND:return Jd(t,e,r);case z.NANOSECOND:return Kd(t,e,r)}},BP=(t,e,r)=>{let{stride:i}=t,n=t.children[0],o=$t.getVisitFn(n);if(Array.isArray(r))for(let s=-1,a=e*i;++s<i;)o(n,a+s,r[s]);else for(let s=-1,a=e*i;++s<i;)o(n,a+s,r.get(s))};q.prototype.visitBool=te(yP);q.prototype.visitInt=te(ni);q.prototype.visitInt8=te(ni);q.prototype.visitInt16=te(ni);q.prototype.visitInt32=te(ni);q.prototype.visitInt64=te(ni);q.prototype.visitUint8=te(ni);q.prototype.visitUint16=te(ni);q.prototype.visitUint32=te(ni);q.prototype.visitUint64=te(ni);q.prototype.visitFloat=te(vP);q.prototype.visitFloat16=te(kk);q.prototype.visitFloat32=te(dv);q.prototype.visitFloat64=te(dv);q.prototype.visitUtf8=te(Bk);q.prototype.visitLargeUtf8=te(Bk);q.prototype.visitUtf8View=te(_P);q.prototype.visitBinary=te(Ak);q.prototype.visitLargeBinary=te(Ak);q.prototype.visitBinaryView=te(wP);q.prototype.visitFixedSizeBinary=te(pv);q.prototype.visitDate=te(mv);q.prototype.visitDateDay=te(Nd);q.prototype.visitDateMillisecond=te(zd);q.prototype.visitTimestamp=te(hv);q.prototype.visitTimestampSecond=te(Ld);q.prototype.visitTimestampMillisecond=te(Ed);q.prototype.visitTimestampMicrosecond=te(Ud);q.prototype.visitTimestampNanosecond=te(Pd);q.prototype.visitTime=te(gv);q.prototype.visitTimeSecond=te(Fd);q.prototype.visitTimeMillisecond=te(Md);q.prototype.visitTimeMicrosecond=te(Cd);q.prototype.visitTimeNanosecond=te(Rd);q.prototype.visitDecimal=te(yv);q.prototype.visitList=te(Dk);q.prototype.visitLargeList=te(Dk);q.prototype.visitStruct=te(kP);q.prototype.visitUnion=te(AP);q.prototype.visitDenseUnion=te(Nk);q.prototype.visitSparseUnion=te(zk);q.prototype.visitDictionary=te(OP);q.prototype.visitInterval=te(vv);q.prototype.visitIntervalDayTime=te(jd);q.prototype.visitIntervalYearMonth=te(Vd);q.prototype.visitIntervalMonthDayNano=te(Zd);q.prototype.visitDuration=te(bv);q.prototype.visitDurationSecond=te(Gd);q.prototype.visitDurationMillisecond=te(Wd);q.prototype.visitDurationMicrosecond=te(Jd);q.prototype.visitDurationNanosecond=te(Kd);q.prototype.visitFixedSizeList=te(BP);q.prototype.visitMap=te(xP);$t=new q});var vn,Ma,Mn,wv,_v,DP,Hd=h(()=>{Yu();fs();Er();vn=Symbol.for("parent"),Ma=Symbol.for("rowIndex"),Mn=class{constructor(e,r){return this[vn]=e,this[Ma]=r,new Proxy(this,DP)}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Ma],r=this[vn],i=r.type.children,n={};for(let o=-1,s=i.length;++o<s;)n[i[o].name]=at.visit(r.children[o],e);return n}toString(){return`{${[...this].map(([e,r])=>`${dn(e)}: ${dn(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new wv(this[vn],this[Ma])}},wv=class{constructor(e,r){this.childIndex=0,this.children=e.children,this.rowIndex=r,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,at.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}};Object.defineProperties(Mn.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[vn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Ma]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});_v=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[vn].type.children.map(r=>r.name)}has(e,r){return e[vn].type.children.some(i=>i.name===r)}getOwnPropertyDescriptor(e,r){if(e[vn].type.children.some(i=>i.name===r))return{writable:!0,enumerable:!0,configurable:!0}}get(e,r){if(Reflect.has(e,r))return e[r];let i=e[vn].type.children.findIndex(n=>n.name===r);if(i!==-1){let n=at.visit(e[vn].children[i],e[Ma]);return Reflect.set(e,r,n),n}}set(e,r,i){let n=e[vn].type.children.findIndex(o=>o.name===r);return n!==-1?($t.visit(e[vn].children[n],e[Ma],i),Reflect.set(e,r,i)):Reflect.has(e,r)||typeof r=="symbol"?Reflect.set(e,r,i):!1}},DP=new _v});function Q(t){return(e,r)=>e.getValid(r)?t(e,r):null}var G,NP,Ca,zP,LP,Lk,EP,Ek,Uk,ro,UP,Pk,PP,Fk,Mk,FP,Ck,MP,CP,RP,jP,Rk,jk,Vk,Zk,VP,Gk,Wk,Jk,Kk,ZP,GP,Hk,WP,JP,KP,qk,Yk,HP,qP,Xk,Qk,eA,tA,rA,nA,iA,YP,XP,at,fs=h(()=>{Bd();Pt();fr();sl();Hd();Pn();Yn();ol();Qe();G=class extends V{};NP=(t,e)=>864e5*t[e],Ca=16,zP=12,LP=(t,e)=>null,Lk=(t,e,r)=>{if(r+1>=e.length)return null;let i=de(e[r]),n=de(e[r+1]);return t.subarray(i,n)},EP=({offset:t,values:e},r)=>{let i=t+r;return(e[i>>3]&1<<i%8)!==0},Ek=({values:t},e)=>NP(t,e),Uk=({values:t},e)=>de(t[e]),ro=({stride:t,values:e},r)=>e[t*r],UP=({stride:t,values:e},r)=>Dd(e[t*r]),Pk=({values:t},e)=>t[e],PP=({stride:t,values:e},r)=>e.subarray(t*r,t*(r+1)),Fk=({values:t,valueOffsets:e},r)=>Lk(t,e,r),Mk=(t,e)=>{var r;let i=t.values;if(!i)throw new Error("BinaryView data is missing view buffer");let n=e*Ca,o=n+Ca;if(n<0||o>i.length)throw new Error(`BinaryView data buffer is too short: expected ${Ca} bytes, got ${Math.max(0,i.length-n)}`);let s=i.subarray(n,o);if(s.length<Ca)throw new Error(`BinaryView data buffer is too short: expected ${Ca} bytes, got ${s.length}`);let a=new DataView(i.buffer,s.byteOffset,Ca),c=a.getInt32(0,!0);if(c<=0)return new Uint8Array(0);if(c<=zP)return s.subarray(4,4+c);let u=a.getInt32(8,!0),l=a.getInt32(12,!0),f=(r=t.variadicBuffers)===null||r===void 0?void 0:r[u];if(!f)throw new Error(`BinaryView variadic buffer ${u} is missing`);return f.subarray(l,l+c)},FP=(t,e)=>Mk(t,e),Ck=({values:t,valueOffsets:e},r)=>{let i=Lk(t,e,r);return i!==null?Aa(i):null},MP=(t,e)=>{let r=Mk(t,e);return Aa(r)},CP=({values:t},e)=>t[e],RP=({type:t,values:e},r)=>t.precision!==Ie.HALF?e[r]:Dd(e[r]),jP=(t,e)=>t.type.unit===Oe.DAY?Ek(t,e):Uk(t,e),Rk=({values:t},e)=>1e3*de(t[e]),jk=({values:t},e)=>de(t[e]),Vk=({values:t},e)=>av(t[e],BigInt(1e3)),Zk=({values:t},e)=>av(t[e],BigInt(1e6)),VP=(t,e)=>{switch(t.type.unit){case z.SECOND:return Rk(t,e);case z.MILLISECOND:return jk(t,e);case z.MICROSECOND:return Vk(t,e);case z.NANOSECOND:return Zk(t,e)}},Gk=({values:t},e)=>t[e],Wk=({values:t},e)=>t[e],Jk=({values:t},e)=>t[e],Kk=({values:t},e)=>t[e],ZP=(t,e)=>{switch(t.type.unit){case z.SECOND:return Gk(t,e);case z.MILLISECOND:return Wk(t,e);case z.MICROSECOND:return Jk(t,e);case z.NANOSECOND:return Kk(t,e)}},GP=({values:t,stride:e},r)=>ls.decimal(t.subarray(e*r,e*(r+1))),Hk=(t,e)=>{let{valueOffsets:r,stride:i,children:n}=t,o=de(r[e*i]),s=de(r[e*i+1]),c=n[0].slice(o,s-o);return new F([c])},WP=(t,e)=>{let{valueOffsets:r,children:i}=t,{[e]:n,[e+1]:o}=r,s=i[0];return new Hr(s.slice(n,o-n))},JP=(t,e)=>new Mn(t,e),KP=(t,e)=>t.type.mode===Se.Dense?qk(t,e):Yk(t,e),qk=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return at.visit(i,t.valueOffsets[e])},Yk=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return at.visit(i,e)},HP=(t,e)=>{var r;return(r=t.dictionary)===null||r===void 0?void 0:r.get(t.values[e])},qP=(t,e)=>t.type.unit===ye.MONTH_DAY_NANO?eA(t,e):t.type.unit===ye.DAY_TIME?Xk(t,e):Qk(t,e),Xk=({values:t},e)=>t.subarray(2*e,2*(e+1)),Qk=({values:t},e)=>{let r=t[e],i=new Int32Array(2);return i[0]=Math.trunc(r/12),i[1]=Math.trunc(r%12),i},eA=({values:t},e)=>t.subarray(4*e,4*(e+1)),tA=({values:t},e)=>t[e],rA=({values:t},e)=>t[e],nA=({values:t},e)=>t[e],iA=({values:t},e)=>t[e],YP=(t,e)=>{switch(t.type.unit){case z.SECOND:return tA(t,e);case z.MILLISECOND:return rA(t,e);case z.MICROSECOND:return nA(t,e);case z.NANOSECOND:return iA(t,e)}},XP=(t,e)=>{let{stride:r,children:i}=t,o=i[0].slice(e*r,r);return new F([o])};G.prototype.visitNull=Q(LP);G.prototype.visitBool=Q(EP);G.prototype.visitInt=Q(CP);G.prototype.visitInt8=Q(ro);G.prototype.visitInt16=Q(ro);G.prototype.visitInt32=Q(ro);G.prototype.visitInt64=Q(Pk);G.prototype.visitUint8=Q(ro);G.prototype.visitUint16=Q(ro);G.prototype.visitUint32=Q(ro);G.prototype.visitUint64=Q(Pk);G.prototype.visitFloat=Q(RP);G.prototype.visitFloat16=Q(UP);G.prototype.visitFloat32=Q(ro);G.prototype.visitFloat64=Q(ro);G.prototype.visitUtf8=Q(Ck);G.prototype.visitLargeUtf8=Q(Ck);G.prototype.visitUtf8View=Q(MP);G.prototype.visitBinary=Q(Fk);G.prototype.visitLargeBinary=Q(Fk);G.prototype.visitBinaryView=Q(FP);G.prototype.visitFixedSizeBinary=Q(PP);G.prototype.visitDate=Q(jP);G.prototype.visitDateDay=Q(Ek);G.prototype.visitDateMillisecond=Q(Uk);G.prototype.visitTimestamp=Q(VP);G.prototype.visitTimestampSecond=Q(Rk);G.prototype.visitTimestampMillisecond=Q(jk);G.prototype.visitTimestampMicrosecond=Q(Vk);G.prototype.visitTimestampNanosecond=Q(Zk);G.prototype.visitTime=Q(ZP);G.prototype.visitTimeSecond=Q(Gk);G.prototype.visitTimeMillisecond=Q(Wk);G.prototype.visitTimeMicrosecond=Q(Jk);G.prototype.visitTimeNanosecond=Q(Kk);G.prototype.visitDecimal=Q(GP);G.prototype.visitList=Q(Hk);G.prototype.visitLargeList=Q(Hk);G.prototype.visitStruct=Q(JP);G.prototype.visitUnion=Q(KP);G.prototype.visitDenseUnion=Q(qk);G.prototype.visitSparseUnion=Q(Yk);G.prototype.visitDictionary=Q(HP);G.prototype.visitInterval=Q(qP);G.prototype.visitIntervalDayTime=Q(Xk);G.prototype.visitIntervalYearMonth=Q(Qk);G.prototype.visitIntervalMonthDayNano=Q(eA);G.prototype.visitDuration=Q(YP);G.prototype.visitDurationSecond=Q(tA);G.prototype.visitDurationMillisecond=Q(rA);G.prototype.visitDurationMicrosecond=Q(nA);G.prototype.visitDurationNanosecond=Q(iA);G.prototype.visitFixedSizeList=Q(XP);G.prototype.visitMap=Q(WP);at=new G});var no,ja,Ra,xv,Hr,Iv,$v,sl=h(()=>{Pt();Yu();fs();Er();no=Symbol.for("keys"),ja=Symbol.for("vals"),Ra=Symbol.for("kKeysAsStrings"),xv=Symbol.for("_kKeysAsStrings"),Hr=class{constructor(e){return this[no]=new F([e.children[0]]).memoize(),this[ja]=e.children[1],new Proxy(this,new $v)}get[Ra](){return this[xv]||(this[xv]=Array.from(this[no].toArray(),String))}[Symbol.iterator](){return new Iv(this[no],this[ja])}get size(){return this[no].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[no],r=this[ja],i={};for(let n=-1,o=e.length;++n<o;)i[e.get(n)]=at.visit(r,n);return i}toString(){return`{${[...this].map(([e,r])=>`${dn(e)}: ${dn(r)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},Iv=class{constructor(e,r){this.keys=e,this.vals=r,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),at.visit(this.vals,e)]})}},$v=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Ra]}has(e,r){return e[Ra].includes(r)}getOwnPropertyDescriptor(e,r){if(e[Ra].indexOf(r)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,r){if(Reflect.has(e,r))return e[r];let i=e[Ra].indexOf(r);if(i!==-1){let n=at.visit(Reflect.get(e,ja),i);return Reflect.set(e,r,n),n}}set(e,r,i){let n=e[Ra].indexOf(r);return n!==-1?($t.visit(Reflect.get(e,ja),n,i),Reflect.set(e,r,i)):Reflect.has(e,r)?Reflect.set(e,r,i):!1}};Object.defineProperties(Hr.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[no]:{writable:!0,enumerable:!1,configurable:!1,value:null},[ja]:{writable:!0,enumerable:!1,configurable:!1,value:null},[xv]:{writable:!0,enumerable:!1,configurable:!1,value:null}})});var Sv={};Ke(Sv,{clampRange:()=>al,createElementComparator:()=>io,wrapIndex:()=>ds});function al(t,e,r,i){let{length:n=0}=t,o=typeof e!="number"?0:e,s=typeof r!="number"?n:r;return o<0&&(o=(o%n+n)%n),s<0&&(s=(s%n+n)%n),s<o&&(oA=o,o=s,s=oA),s>n&&(s=n),i?i(t,o,s):[o,s]}function io(t){if(typeof t!=="object"||t===null)return sA(t)?sA:r=>r===t;if(t instanceof Date){let r=t.valueOf();return i=>i instanceof Date?i.valueOf()===r:!1}return ArrayBuffer.isView(t)?r=>r?Oy(t,r):!1:t instanceof Map?eF(t):Array.isArray(t)?QP(t):t instanceof F?tF(t):rF(t,!0)}function QP(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=io(t[r]);return qd(e)}function eF(t){let e=-1,r=[];for(let i of t.values())r[++e]=io(i);return qd(r)}function tF(t){let e=[];for(let r=-1,i=t.length;++r<i;)e[r]=io(t.get(r));return qd(e)}function rF(t,e=!1){let r=Object.keys(t);if(!e&&r.length===0)return()=>!1;let i=[];for(let n=-1,o=r.length;++n<o;)i[n]=io(t[r[n]]);return qd(i,r)}function qd(t,e){return r=>{if(!r||typeof r!="object")return!1;switch(r.constructor){case Array:return nF(t,r);case Map:return aA(t,r,r.keys());case Hr:case Mn:case Object:case void 0:return aA(t,r,e||Object.keys(r))}return r instanceof F?iF(t,r):!1}}function nF(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i<r;)if(!t[i](e[i]))return!1;return!0}function iF(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i<r;)if(!t[i](e.get(i)))return!1;return!0}function aA(t,e,r){let i=r[Symbol.iterator](),n=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),o=e instanceof Map?e.values():Object.values(e)[Symbol.iterator](),s=0,a=t.length,c=o.next(),u=i.next(),l=n.next();for(;s<a&&!u.done&&!l.done&&!c.done&&!(u.value!==l.value||!t[s](c.value));++s,u=i.next(),l=n.next(),c=o.next());return s===a&&u.done&&l.done&&c.done?!0:(i.return&&i.return(),n.return&&n.return(),o.return&&o.return(),!1)}var oA,ds,sA,Va=h(()=>{Pt();sl();Hd();ft();ds=(t,e)=>t<0?e+t:t,sA=t=>t!==t});var Tv={};Ke(Tv,{BitIterator:()=>Cn,getBit:()=>Xd,getBool:()=>Za,packBools:()=>ms,popcnt_array:()=>cA,popcnt_bit_range:()=>cl,popcnt_uint32:()=>Yd,setBool:()=>oF,truncateBitmap:()=>ps});function Za(t,e,r,i){return(r&1<<i)!==0}function Xd(t,e,r,i){return(r&1<<i)>>i}function oF(t,e,r){return r?!!(t[e>>3]|=1<<e%8)||!0:!(t[e>>3]&=~(1<<e%8))&&!1}function ps(t,e,r){let i=r.byteLength+7&-8;if(t>0||r.byteLength<i){let n=new Uint8Array(i);return n.set(t%8===0?r.subarray(t>>3):ms(new Cn(r,t,e,null,Za)).subarray(0,i)),n}return r}function ms(t){let e=[],r=0,i=0,n=0;for(let s of t)s&&(n|=1<<i),++i===8&&(e[r++]=n,n=i=0);(r===0||i>0)&&(e[r++]=n);let o=new Uint8Array(e.length+7&-8);return o.set(e),o}function cl(t,e,r){if(r-e<=0)return 0;if(r-e<8){let o=0;for(let s of new Cn(t,e,r-e,t,Xd))o+=s;return o}let i=r>>3<<3,n=e+(e%8===0?0:8-e%8);return cl(t,e,n)+cl(t,i,r)+cA(t,n>>3,i-n>>3)}function cA(t,e,r){let i=0,n=Math.trunc(e),o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=r===void 0?t.byteLength:n+r;for(;s-n>=4;)i+=Yd(o.getUint32(n)),n+=4;for(;s-n>=2;)i+=Yd(o.getUint16(n)),n+=2;for(;s-n>=1;)i+=Yd(o.getUint8(n)),n+=1;return i}function Yd(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}var Cn,hs=h(()=>{Cn=class{constructor(e,r,i,n,o){this.bytes=e,this.length=i,this.context=n,this.get=o,this.bit=r%8,this.byteIndex=r>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}});function U(t){return aF.visit(t)}var sF,uA,W,kv,aF,qr=h(()=>{Pt();Qe();Be();hs();Be();fr();ft();sF=-1,uA=Symbol.for("apache-arrow/Data"),W=class t{static isData(e){return e?.[uA]===!0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){let{type:e}=this;return D.isSparseUnion(e)?this.children.some(r=>r.nullable):D.isDenseUnion(e)?this.children.some(r=>r.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:r,values:i,nullBitmap:n,typeIds:o}=this;return r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),o&&(e+=o.byteLength),e+=this.variadicBuffers.reduce((s,a)=>{var c;return s+((c=a?.byteLength)!==null&&c!==void 0?c:0)},0),this.children.reduce((s,a)=>s+a.byteLength,e)}get nullCount(){if(D.isUnion(this.type))return this.children.reduce((i,n)=>i+n.nullCount,0);let e=this._nullCount,r;return e<=sF&&(r=this.nullBitmap)&&(this._nullCount=e=r.length===0?0:this.length-cl(r,this.offset,this.offset+this.length)),e}constructor(e,r,i,n,o,s=[],a,c=[]){var u;this.type=e,this.children=s,this.dictionary=a,this.offset=Math.floor(Math.max(r||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1));let l;o instanceof t?(this.stride=o.stride,this.values=o.values,this.typeIds=o.typeIds,this.nullBitmap=o.nullBitmap,this.valueOffsets=o.valueOffsets,this.variadicBuffers=o.variadicBuffers):(this.stride=Lr(e),o&&((l=o[0])&&(this.valueOffsets=l),(l=o[1])&&(this.values=l),(l=o[2])&&(this.nullBitmap=l),(l=o[3])&&(this.typeIds=l)),this.variadicBuffers=c),(u=this.variadicBuffers)!==null&&u!==void 0||(this.variadicBuffers=[])}getValid(e){let{type:r}=this;if(D.isUnion(r)){let i=r,n=this.typeIds[e],o=i.typeIdToChildIndex[n],s=this.children[o],a=this.valueOffsets,c=i.mode===Se.Dense&&a?Number(a[e]):e;return s.getValid(c)}if(this.nullable&&this.nullCount>0){let i=this.offset+e;return(this.nullBitmap[i>>3]&1<<i%8)!==0}return!0}setValid(e,r){let i,{type:n}=this;if(D.isUnion(n)){let o=n,s=this.typeIds[e],a=o.typeIdToChildIndex[s],c=this.children[a],u=this.valueOffsets,l=o.mode===Se.Dense&&u?Number(u[e]):e;i=c.getValid(l),c.setValid(l,r)}else{let{nullBitmap:o}=this,{offset:s,length:a}=this,c=s+e,u=1<<c%8,l=c>>3;(!o||o.byteLength<=l)&&(o=new Uint8Array((s+a+63&-64)>>3).fill(255),this.nullCount>0?(o.set(ps(s,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:o})):Object.assign(this,{nullBitmap:o,_nullCount:0}));let f=o[l];i=(f&u)!==0,o[l]=r?f|u:f&~u}return i!==!!r&&(this._nullCount=this.nullCount+(r?-1:1)),r}clone(e=this.type,r=this.offset,i=this.length,n=this._nullCount,o=this,s=this.children,a=this.variadicBuffers){return new t(e,r,i,n,o,s,this.dictionary,a)}slice(e,r){let{stride:i,typeId:n,children:o}=this,s=+(this._nullCount===0)-1,a=n===16?i:1,c=this._sliceBuffers(e,r,i,n);return this.clone(this.type,this.offset+e,r,s,c,o.length===0||this.valueOffsets?o:this._sliceChildren(o,a*e,a*r),this.variadicBuffers)}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===y.Null)return this.clone(this.type,0,e,0,this.buffers,this.children,this.variadicBuffers);let{length:r,nullCount:i}=this,n=new Uint8Array((e+63&-64)>>3).fill(255,0,r>>3);n[r>>3]=(1<<r-(r&-8))-1,i>0&&n.set(ps(this.offset,r,this.nullBitmap),0);let o=this.buffers;return o[Te.VALIDITY]=n,this.clone(this.type,0,e,i+(e-r),o,this.children,this.variadicBuffers)}_sliceBuffers(e,r,i,n){let o,{buffers:s}=this;if((o=s[Te.TYPE])&&(s[Te.TYPE]=o.subarray(e,e+r)),D.isBinaryView(this.type)||D.isUtf8View(this.type)){let a=ae.ELEMENT_WIDTH;(o=s[Te.DATA])&&(s[Te.DATA]=o.subarray(e*a,(e+r)*a))}else(o=s[Te.OFFSET])&&(s[Te.OFFSET]=o.subarray(e,e+r+1))||(o=s[Te.DATA])&&(s[Te.DATA]=n===6?o:o.subarray(i*e,i*(e+r)));return s}_sliceChildren(e,r,i){return e.map(n=>n.slice(r,i))}};W.prototype.children=Object.freeze([]);W.prototype[uA]=!0;Object.defineProperty(W,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===W&&W.isData(e)}});kv=class t extends V{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{["type"]:r,["offset"]:i=0,["length"]:n=0}=e;return new W(r,i,n,n)}visitBool(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length>>3,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitInt(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitFloat(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.data),o=Z(e.nullBitmap),s=as(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[s,n,o])}visitUtf8View(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=fe(i.ArrayType,e.views),s=Z(e.nullBitmap),a=(e.variadicBuffers||[]).map(l=>Z(l)),c=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/Wt.ELEMENT_WIDTH),u=e.nullBitmap?-1:0;return new W(i,n,c,u,[void 0,o,s],[],void 0,a)}visitLargeUtf8(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.data),o=Z(e.nullBitmap),s=Eu(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[s,n,o])}visitBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.data),o=Z(e.nullBitmap),s=as(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[s,n,o])}visitBinaryView(e){var r;let{["type"]:i,["offset"]:n=0}=e,o=fe(i.ArrayType,e.views),s=Z(e.nullBitmap),a=(e.variadicBuffers||[]).map(l=>Z(l)),c=(r=e.length)!==null&&r!==void 0?r:Math.trunc(o.length/ae.ELEMENT_WIDTH),u=e.nullBitmap?-1:0;return new W(i,n,c,u,[void 0,o,s],[],void 0,a)}visitLargeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.data),o=Z(e.nullBitmap),s=Eu(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[s,n,o])}visitFixedSizeBinary(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length/Lr(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitDate(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length/Lr(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitTimestamp(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length/Lr(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitTime(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length/Lr(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitDecimal(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length/Lr(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=Z(e.nullBitmap),s=as(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[s,void 0,o],[n])}visitLargeList(e){let{["type"]:r,["offset"]:i=0,["child"]:n}=e,o=Z(e.nullBitmap),s=Eu(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[s,void 0,o],[n])}visitStruct(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=Z(e.nullBitmap),{length:s=n.reduce((c,{length:u})=>Math.max(c,u),0),nullCount:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,void 0,o],n)}visitUnion(e){let{["type"]:r,["offset"]:i=0,["children"]:n=[]}=e,o=fe(r.ArrayType,e.typeIds),{["length"]:s=o.length,["nullCount"]:a=-1}=e;if(D.isSparseUnion(r))return new W(r,i,s,a,[void 0,void 0,void 0,o],n);let c=as(e.valueOffsets);return new W(r,i,s,a,[c,void 0,void 0,o],n)}visitDictionary(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.indices.ArrayType,e.data),{["dictionary"]:s=new F([new t().visit({type:r.dictionary})])}=e,{["length"]:a=o.length,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[void 0,o,n],[],s)}visitInterval(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length/Lr(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitDuration(e){let{["type"]:r,["offset"]:i=0}=e,n=Z(e.nullBitmap),o=fe(r.ArrayType,e.data),{["length"]:s=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,o,n])}visitFixedSizeList(e){let{["type"]:r,["offset"]:i=0,["child"]:n=new t().visit({type:r.valueType})}=e,o=Z(e.nullBitmap),{["length"]:s=n.length/Lr(r),["nullCount"]:a=e.nullBitmap?-1:0}=e;return new W(r,i,s,a,[void 0,void 0,o],[n])}visitMap(e){let{["type"]:r,["offset"]:i=0,["child"]:n=new t().visit({type:r.childType})}=e,o=Z(e.nullBitmap),s=as(e.valueOffsets),{["length"]:a=s.length-1,["nullCount"]:c=e.nullBitmap?-1:0}=e;return new W(r,i,a,c,[s,void 0,o],[n])}},aF=new kv});function lA(t){return t.some(e=>e.nullable)}function Qd(t){return t.reduce((e,r)=>e+r.nullCount,0)}function ep(t){return t.reduce((e,r,i)=>(e[i+1]=e[i]+r.length,e),new Uint32Array(t.length+1))}function tp(t,e,r,i){let n=[];for(let o=-1,s=t.length;++o<s;){let a=t[o],c=e[o],{length:u}=a;if(c>=i)break;if(r>=c+u)continue;if(c>=r&&c+u<=i){n.push(a);continue}let l=Math.max(0,r-c),f=Math.min(i-c,u);n.push(a.slice(l,f-l))}return n.length===0&&n.push(t[0].slice(0,0)),n}function Av(t,e,r,i){let n=0,o=0,s=e.length-1;do{if(n>=s-1)return r<e[s]?i(t,n,r-e[n]):null;o=n+Math.trunc((s-n)*.5),r<e[o]?s=o:n=o}while(n<s)}function ll(t,e){return t.getValid(e)}function Ga(t){function e(r,i,n){return t(r[i],n)}return function(r){let i=this.data;return Av(i,this._offsets,r,e)}}function rp(t){let e;function r(i,n,o){return t(i[n],o,e)}return function(i,n){let o=this.data;e=n;let s=Av(o,this._offsets,i,r);return e=void 0,s}}function np(t){let e;function r(i,n,o){let s=o,a=0,c=0;for(let u=n-1,l=i.length;++u<l;){let f=i[u];if(~(a=t(f,e,s)))return c+a;s=0,c+=f.length}return-1}return function(i,n){e=i;let o=this.data,s=typeof n!="number"?r(o,0,0):Av(o,this._offsets,n,r);return e=void 0,s}}var ul,ip=h(()=>{ul=class{constructor(e=0,r){this.numChunks=e,this.getChunkIterator=r,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){let e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}});function cF(t,e){return e===null&&t.length>0?0:-1}function uF(t,e){let{nullBitmap:r}=t;if(!r||t.nullCount<=0)return-1;let i=0;for(let n of new Cn(r,t.offset+(e||0),t.length,r,Za)){if(!n)return i;++i}return-1}function re(t,e,r){if(e===void 0)return-1;if(e===null)switch(t.typeId){case y.Union:break;case y.Dictionary:break;default:return uF(t,r)}let i=at.getVisitFn(t),n=io(e);for(let o=(r||0)-1,s=t.length;++o<s;)if(n(i(t,o)))return o;return-1}function fA(t,e,r){let i=at.getVisitFn(t),n=io(e);for(let o=(r||0)-1,s=t.length;++o<s;)if(n(i(t,o)))return o;return-1}var J,gs,op=h(()=>{Qe();fr();fs();hs();Va();J=class extends V{};J.prototype.visitNull=cF;J.prototype.visitBool=re;J.prototype.visitInt=re;J.prototype.visitInt8=re;J.prototype.visitInt16=re;J.prototype.visitInt32=re;J.prototype.visitInt64=re;J.prototype.visitUint8=re;J.prototype.visitUint16=re;J.prototype.visitUint32=re;J.prototype.visitUint64=re;J.prototype.visitFloat=re;J.prototype.visitFloat16=re;J.prototype.visitFloat32=re;J.prototype.visitFloat64=re;J.prototype.visitUtf8=re;J.prototype.visitLargeUtf8=re;J.prototype.visitUtf8View=re;J.prototype.visitBinary=re;J.prototype.visitLargeBinary=re;J.prototype.visitBinaryView=re;J.prototype.visitFixedSizeBinary=re;J.prototype.visitDate=re;J.prototype.visitDateDay=re;J.prototype.visitDateMillisecond=re;J.prototype.visitTimestamp=re;J.prototype.visitTimestampSecond=re;J.prototype.visitTimestampMillisecond=re;J.prototype.visitTimestampMicrosecond=re;J.prototype.visitTimestampNanosecond=re;J.prototype.visitTime=re;J.prototype.visitTimeSecond=re;J.prototype.visitTimeMillisecond=re;J.prototype.visitTimeMicrosecond=re;J.prototype.visitTimeNanosecond=re;J.prototype.visitDecimal=re;J.prototype.visitList=re;J.prototype.visitLargeList=re;J.prototype.visitStruct=re;J.prototype.visitUnion=re;J.prototype.visitDenseUnion=fA;J.prototype.visitSparseUnion=fA;J.prototype.visitDictionary=re;J.prototype.visitInterval=re;J.prototype.visitIntervalDayTime=re;J.prototype.visitIntervalYearMonth=re;J.prototype.visitIntervalMonthDayNano=re;J.prototype.visitDuration=re;J.prototype.visitDurationSecond=re;J.prototype.visitDurationMillisecond=re;J.prototype.visitDurationMicrosecond=re;J.prototype.visitDurationNanosecond=re;J.prototype.visitFixedSizeList=re;J.prototype.visitMap=re;gs=new J});function ee(t){let{type:e}=t;if(t.nullCount===0&&t.stride===1&&(D.isInt(e)&&e.bitWidth!==64||D.isTime(e)&&e.bitWidth!==64||D.isFloat(e)&&e.precision!==Ie.HALF))return new ul(t.data.length,i=>{let n=t.data[i];return n.values.subarray(0,n.length)[Symbol.iterator]()});let r=0;return new ul(t.data.length,i=>{let o=t.data[i].length,s=t.slice(r,r+o);return r+=o,new Ov(s)})}var K,Ov,Wa,sp=h(()=>{fr();Qe();Be();ip();K=class extends V{};Ov=class{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}};K.prototype.visitNull=ee;K.prototype.visitBool=ee;K.prototype.visitInt=ee;K.prototype.visitInt8=ee;K.prototype.visitInt16=ee;K.prototype.visitInt32=ee;K.prototype.visitInt64=ee;K.prototype.visitUint8=ee;K.prototype.visitUint16=ee;K.prototype.visitUint32=ee;K.prototype.visitUint64=ee;K.prototype.visitFloat=ee;K.prototype.visitFloat16=ee;K.prototype.visitFloat32=ee;K.prototype.visitFloat64=ee;K.prototype.visitUtf8=ee;K.prototype.visitLargeUtf8=ee;K.prototype.visitUtf8View=ee;K.prototype.visitBinary=ee;K.prototype.visitLargeBinary=ee;K.prototype.visitBinaryView=ee;K.prototype.visitFixedSizeBinary=ee;K.prototype.visitDate=ee;K.prototype.visitDateDay=ee;K.prototype.visitDateMillisecond=ee;K.prototype.visitTimestamp=ee;K.prototype.visitTimestampSecond=ee;K.prototype.visitTimestampMillisecond=ee;K.prototype.visitTimestampMicrosecond=ee;K.prototype.visitTimestampNanosecond=ee;K.prototype.visitTime=ee;K.prototype.visitTimeSecond=ee;K.prototype.visitTimeMillisecond=ee;K.prototype.visitTimeMicrosecond=ee;K.prototype.visitTimeNanosecond=ee;K.prototype.visitDecimal=ee;K.prototype.visitList=ee;K.prototype.visitLargeList=ee;K.prototype.visitStruct=ee;K.prototype.visitUnion=ee;K.prototype.visitDenseUnion=ee;K.prototype.visitSparseUnion=ee;K.prototype.visitDictionary=ee;K.prototype.visitInterval=ee;K.prototype.visitIntervalDayTime=ee;K.prototype.visitIntervalYearMonth=ee;K.prototype.visitIntervalMonthDayNano=ee;K.prototype.visitDuration=ee;K.prototype.visitDurationSecond=ee;K.prototype.visitDurationMillisecond=ee;K.prototype.visitDurationMicrosecond=ee;K.prototype.visitDurationNanosecond=ee;K.prototype.visitFixedSizeList=ee;K.prototype.visitMap=ee;Wa=new K});function qt(t){if(t){if(t instanceof W)return new F([t]);if(t instanceof F)return new F(t.data);if(t.type instanceof D)return new F([U(t)]);if(Array.isArray(t))return new F(t.flatMap(e=>lF(e)));if(ArrayBuffer.isView(t)){t instanceof DataView&&(t=new Uint8Array(t.buffer));let e={offset:0,length:t.length,nullCount:-1,data:t};if(t instanceof Int8Array)return new F([U(Object.assign(Object.assign({},e),{type:new Tr}))]);if(t instanceof Int16Array)return new F([U(Object.assign(Object.assign({},e),{type:new kr}))]);if(t instanceof Int32Array)return new F([U(Object.assign(Object.assign({},e),{type:new ot}))]);if(t instanceof BigInt64Array)return new F([U(Object.assign(Object.assign({},e),{type:new Ar}))]);if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return new F([U(Object.assign(Object.assign({},e),{type:new Or}))]);if(t instanceof Uint16Array)return new F([U(Object.assign(Object.assign({},e),{type:new Br}))]);if(t instanceof Uint32Array)return new F([U(Object.assign(Object.assign({},e),{type:new Dr}))]);if(t instanceof BigUint64Array)return new F([U(Object.assign(Object.assign({},e),{type:new mn}))]);if(t instanceof Float32Array)return new F([U(Object.assign(Object.assign({},e),{type:new hn}))]);if(t instanceof Float64Array)return new F([U(Object.assign(Object.assign({},e),{type:new mt}))]);throw new Error("Unrecognized input")}}throw new Error("Unrecognized input")}function lF(t){return t instanceof W?[t]:t instanceof F?t.data:qt(t).data}var dA,pA,mA,hA,F,ap,Pt=h(()=>{Qe();Va();Be();qr();ip();fs();Er();op();sp();Be();pA=Symbol.for("apache-arrow/Vector"),mA={},hA={},F=class t{static isVector(e){return e?.[pA]===!0}constructor(e){var r,i,n;let o=e[0]instanceof t?e.flatMap(a=>a.data):e;if(o.length===0||o.some(a=>!(a instanceof W)))throw new TypeError("Vector constructor expects an Array of Data instances.");let s=(r=o[0])===null||r===void 0?void 0:r.type;switch(o.length){case 0:this._offsets=[0];break;case 1:{let{get:a,set:c,indexOf:u}=mA[s.typeId],l=o[0];this.isValid=f=>ll(l,f),this.get=f=>a(l,f),this.set=(f,d)=>c(l,f,d),this.indexOf=f=>u(l,f),this._offsets=[0,l.length];break}default:Object.setPrototypeOf(this,hA[s.typeId]),this._offsets=ep(o);break}this.data=o,this.type=s,this.stride=Lr(s),this.numChildren=(n=(i=s.children)===null||i===void 0?void 0:i.length)!==null&&n!==void 0?n:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((e,r)=>e+r.byteLength,0)}get nullable(){return lA(this.data)}get nullCount(){return Qd(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${y[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}at(e){return this.get(ds(e,this.length))}set(e,r){}indexOf(e,r){return-1}includes(e,r){return this.indexOf(e,r)>-1}[Symbol.iterator](){return Wa.visit(this)}concat(...e){return new t(this.data.concat(e.flatMap(r=>r.data).flat(Number.POSITIVE_INFINITY)))}slice(e,r){return new t(al(this,e,r,({data:i,_offsets:n},o,s)=>tp(i,n,o,s)))}toJSON(){return[...this]}toArray(){let{type:e,data:r,length:i,stride:n,ArrayType:o}=this;switch(e.typeId){case y.Int:case y.Float:case y.Decimal:case y.Time:case y.Timestamp:switch(r.length){case 0:return new o;case 1:return r[0].values.subarray(0,i*n);default:return r.reduce((s,{values:a,length:c})=>(s.array.set(a.subarray(0,c*n),s.offset),s.offset+=c*n,s),{array:new o(i*n),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var r;return this.getChildAt((r=this.type.children)===null||r===void 0?void 0:r.findIndex(i=>i.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new t(this.data.map(({children:r})=>r[e])):null}get isMemoized(){return D.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(D.isDictionary(this.type)){let e=new ap(this.data[0].dictionary),r=this.data.map(i=>{let n=i.clone();return n.dictionary=e,n});return new t(r)}return new ap(this)}unmemoize(){if(D.isDictionary(this.type)&&this.isMemoized){let e=this.data[0].dictionary.unmemoize(),r=this.data.map(i=>{let n=i.clone();return n.dictionary=e,n});return new t(r)}return this}};dA=Symbol.toStringTag;F[dA]=(t=>{t.type=D.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0,t[pA]=!0;let e=Object.keys(y).map(r=>y[r]).filter(r=>typeof r=="number"&&r!==y.NONE);for(let r of e){let i=at.getVisitFnByTypeId(r),n=$t.getVisitFnByTypeId(r),o=gs.getVisitFnByTypeId(r);mA[r]={get:i,set:n,indexOf:o},hA[r]=Object.create(t,{isValid:{value:Ga(ll)},get:{value:Ga(at.getVisitFnByTypeId(r))},set:{value:rp($t.getVisitFnByTypeId(r))},indexOf:{value:np(gs.getVisitFnByTypeId(r))}})}return"Vector"})(F.prototype);Object.defineProperty(F,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===F&&F.isVector(e)}});ap=class t extends F{constructor(e){super(e.data);let r=this.get,i=this.set,n=this.slice,o=new Array(this.length);Object.defineProperty(this,"get",{value(s){let a=o[s];if(a!==void 0)return a;let c=r.call(this,s);return o[s]=c,c}}),Object.defineProperty(this,"set",{value(s,a){i.call(this,s,a),o[s]=a}}),Object.defineProperty(this,"slice",{value:(s,a)=>new t(n.call(this,s,a))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new F(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}});function gA(t){if(!t||t.length<=0)return function(n){return!0};let e="",r=t.filter(i=>i===i);return r.length>0&&(e=`
|
|
8
|
+
switch (x) {${r.map(i=>`
|
|
9
|
+
case ${fF(i)}:`).join("")}
|
|
10
|
+
return false;
|
|
11
|
+
}`),t.length!==r.length&&(e=`if (x !== x) return false;
|
|
12
|
+
${e}`),new Function("x",`${e}
|
|
13
|
+
return true;`)}function fF(t){return typeof t!="bigint"?dn(t):`${dn(t)}n`}var yA=h(()=>{Yu()});function Bv(t,e){let r=Math.ceil(t)*e-1;return(r-r%64+64||64)/e}function vA(t,e=0){return t.length>=e?t.subarray(0,e):Lu(new t.constructor(e),t,0)}var dr,ii,Ja,oo,bn=h(()=>{ft();dr=class{constructor(e,r=0,i=1){this.length=Math.ceil(r/i),this.buffer=new e(this.length),this.stride=i,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,r){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;let r=this.stride,i=this.length*r,n=this.buffer.length;i>=n&&this._resize(n===0?Bv(i*1,this.BYTES_PER_ELEMENT):Bv(i*2,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=Bv(e*this.stride,this.BYTES_PER_ELEMENT);let r=vA(this.buffer,e);return this.clear(),r}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=vA(this.buffer,e)}},ii=class extends dr{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,r){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=r,this}},Ja=class extends ii{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,r){let{buffer:i}=this.reserve(e-this.length+1),n=e>>3,o=e%8,s=i[n]>>o&1;return r?s===0&&(i[n]|=1<<o,++this.numValid):s===1&&(i[n]&=~(1<<o),--this.numValid),this}clear(){return this.numValid=0,super.clear()}},oo=class extends ii{constructor(e){super(e.OffsetArrayType,1,1)}append(e){return this.set(this.length-1,e)}set(e,r){let i=this.length-1,n=this.reserve(e-i+1).buffer;return i<e++&&i>=0&&n.fill(n[i],i,e),n[e]=n[e-1]+r,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(e+1)}}});var Pe,ct,Ft,Ge=h(()=>{Pt();qr();sl();Be();yA();bn();Pe=class{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}constructor({type:e,nullValues:r}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=r,this.stride=Lr(e),this._nulls=new Ja,r&&r.length>0&&(this._isValid=gA(r))}toVector(){return new F([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0,{_offsets:r,_values:i,_nulls:n,_typeIds:o,children:s}=this;return r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),o&&(e+=o.byteLength),s.reduce((a,c)=>a+c.byteLength,e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce((r,i)=>r+i.reservedByteLength,e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,r){return this.setValid(e,this.isValid(r))&&this.setValue(e,r),this}setValue(e,r){this._setValue(this,e,r)}setValid(e,r){return this.length=this._nulls.set(e,+r).length,r}addChild(e,r=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(e){return this.children[e]||null}flush(){let e,r,i,n,{type:o,length:s,nullCount:a,_typeIds:c,_offsets:u,_values:l,_nulls:f}=this;(r=c?.flush(s))?n=u?.flush(s):(n=u?.flush(s))?e=l?.flush(u.last()):e=l?.flush(s),a>0&&(i=f?.flush(s));let d=this.children.map(p=>p.flush());return this.clear(),U({type:o,length:s,nullCount:a,children:d,child:d[0],data:e,typeIds:r,nullBitmap:i,valueOffsets:n})}finish(){this.finished=!0;for(let e of this.children)e.finish();return this}clear(){var e,r,i,n;this.length=0,(e=this._nulls)===null||e===void 0||e.clear(),(r=this._values)===null||r===void 0||r.clear(),(i=this._offsets)===null||i===void 0||i.clear(),(n=this._typeIds)===null||n===void 0||n.clear();for(let o of this.children)o.clear();return this}};Pe.prototype.length=1;Pe.prototype.stride=1;Pe.prototype.children=null;Pe.prototype.finished=!1;Pe.prototype.nullValues=null;Pe.prototype._isValid=()=>!0;ct=class extends Pe{constructor(e){super(e),this._values=new ii(this.ArrayType,0,this.stride)}setValue(e,r){let i=this._values;return i.reserve(e-i.length+1),super.setValue(e,r)}},Ft=class extends Pe{constructor(e){super(e),this._pendingLength=0,this._offsets=new oo(e.type)}setValue(e,r){let i=this._pending||(this._pending=new Map),n=i.get(e);n&&(this._pendingLength-=n.length),this._pendingLength+=r instanceof Hr?r[no].length:r.length,i.set(e,r)}setValid(e,r){return super.setValid(e,r)?!0:((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,r=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,r),this}}});var ys,Dv=h(()=>{ys=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,r,i,n){return e.prep(8,24),e.writeInt64(BigInt(n??0)),e.pad(4),e.writeInt32(i),e.writeInt64(BigInt(r??0)),e.offset()}}});var Ur,bA=h(()=>{_e();Dv();za();xd();ov();Ur=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsFooter(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ae.V1}schema(e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new cr).__init(this.bb.__indirect(this.bb_pos+r),this.bb):null}dictionaries(e,r){let i=this.bb.__offset(this.bb_pos,8);return i?(r||new ys).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,r){let i=this.bb.__offset(this.bb_pos,10);return i?(r||new ys).__init(this.bb.__vector(this.bb_pos+i)+e*24,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Xe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,r){e.addFieldInt16(0,r,Ae.V1)}static addSchema(e,r){e.addFieldOffset(1,r,0)}static addDictionaries(e,r){e.addFieldOffset(2,r,0)}static startDictionariesVector(e,r){e.startVector(24,r,8)}static addRecordBatches(e,r){e.addFieldOffset(3,r,0)}static startRecordBatchesVector(e,r){e.startVector(24,r,8)}static addCustomMetadata(e,r){e.addFieldOffset(4,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,r){e.finish(r)}static finishSizePrefixedFooterBuffer(e,r){e.finish(r,void 0,!0)}}});function cp(t,e){return new Map([...t||new Map,...e||new Map])}function Nv(t,e=new Map){for(let r=-1,i=t.length;++r<i;){let o=t[r].type;if(D.isDictionary(o)){if(!e.has(o.id))e.set(o.id,o.dictionary);else if(e.get(o.id)!==o.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}o.children&&o.children.length>0&&Nv(o.children,e)}return e}var wA,_A,se,C,Mt=h(()=>{Qe();Be();wA=Symbol.for("apache-arrow/Schema"),_A=Symbol.for("apache-arrow/Field"),se=class t{static isSchema(e){return e?.[wA]===!0}constructor(e=[],r,i,n=Ae.V5){this.fields=e||[],this.metadata=r||new Map,i||(i=Nv(this.fields)),this.dictionaries=i,this.metadataVersion=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,r)=>`${r}: ${e}`).join(", ")} }>`}select(e){let r=new Set(e),i=this.fields.filter(n=>r.has(n.name));return new t(i,this.metadata)}selectAt(e){let r=e.map(i=>this.fields[i]).filter(Boolean);return new t(r,this.metadata)}assign(...e){let r=e[0]instanceof t?e[0]:Array.isArray(e[0])?new t(e[0]):new t(e),i=[...this.fields],n=cp(cp(new Map,this.metadata),r.metadata),o=r.fields.filter(a=>{let c=i.findIndex(u=>u.name===a.name);return~c?(i[c]=a.clone({metadata:cp(cp(new Map,i[c].metadata),a.metadata)}))&&!1:!0}),s=Nv(o,new Map);return new t([...i,...o],n,new Map([...this.dictionaries,...s]))}};se.prototype.fields=null;se.prototype.metadata=null;se.prototype.dictionaries=null;se.prototype[wA]=!0;Object.defineProperty(se,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===se&&se.isSchema(e)}});C=class t{static isField(e){return e?.[_A]===!0}static new(...e){let[r,i,n,o]=e;return e[0]&&typeof e[0]=="object"&&({name:r}=e[0],i===void 0&&(i=e[0].type),n===void 0&&(n=e[0].nullable),o===void 0&&(o=e[0].metadata)),new t(`${r}`,i,n,o)}constructor(e,r,i=!1,n){this.name=e,this.type=r,this.nullable=i,this.metadata=n||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[r,i,n,o]=e;return!e[0]||typeof e[0]!="object"?[r=this.name,i=this.type,n=this.nullable,o=this.metadata]=e:{name:r=this.name,type:i=this.type,nullable:n=this.nullable,metadata:o=this.metadata}=e[0],t.new(r,i,n,o)}};C.prototype.type=null;C.prototype.name=null;C.prototype.nullable=null;C.prototype.metadata=null;C.prototype[_A]=!0;Object.defineProperty(C,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===C&&C.isField(e)}})});var dF,pF,oi,zv,wn,Lv=h(()=>{Dv();bA();_e();Mt();Qe();ft();Pn();dF=cs,pF=wt,oi=class{static decode(e){e=new pF(Z(e));let r=Ur.getRootAsFooter(e),i=se.decode(r.schema(),new Map,r.version());return new zv(i,r)}static encode(e){let r=new dF,i=se.encode(r,e.schema);Ur.startRecordBatchesVector(r,e.numRecordBatches);for(let s of[...e.recordBatches()].slice().reverse())wn.encode(r,s);let n=r.endVector();Ur.startDictionariesVector(r,e.numDictionaries);for(let s of[...e.dictionaryBatches()].slice().reverse())wn.encode(r,s);let o=r.endVector();return Ur.startFooter(r),Ur.addSchema(r,i),Ur.addVersion(r,Ae.V5),Ur.addRecordBatches(r,n),Ur.addDictionaries(r,o),Ur.finishFooterBuffer(r,Ur.endFooter(r)),r.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,r=Ae.V5,i,n){this.schema=e,this.version=r,i&&(this._recordBatches=i),n&&(this._dictionaryBatches=n)}*recordBatches(){for(let e,r=-1,i=this.numRecordBatches;++r<i;)(e=this.getRecordBatch(r))&&(yield e)}*dictionaryBatches(){for(let e,r=-1,i=this.numDictionaries;++r<i;)(e=this.getDictionaryBatch(r))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}},zv=class extends oi{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(e,r){super(e,r.version()),this._footer=r}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){let r=this._footer.recordBatches(e);if(r)return wn.decode(r)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){let r=this._footer.dictionaries(e);if(r)return wn.decode(r)}return null}},wn=class t{static decode(e){return new t(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,r){let{metaDataLength:i}=r,n=BigInt(r.offset),o=BigInt(r.bodyLength);return ys.createBlock(e,n,i,o)}constructor(e,r,i){this.metaDataLength=e,this.offset=de(i),this.bodyLength=de(r)}}});var Pr,xA=h(()=>{_e();za();Od();xd();Pr=class t{constructor(){this.bb=null,this.bb_pos=0}__init(e,r){return this.bb_pos=e,this.bb=r,this}static getRootAsMessage(e,r){return(r||new t).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,r){return e.setPosition(e.position()+4),(r||new t).__init(e.readInt32(e.position())+e.position(),e)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):Ae.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):he.NONE}header(e){let r=this.bb.__offset(this.bb_pos,8);return r?this.bb.__union(e,this.bb_pos+r):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,r){let i=this.bb.__offset(this.bb_pos,12);return i?(r||new Xe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+e*4),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,r){e.addFieldInt16(0,r,Ae.V1)}static addHeaderType(e,r){e.addFieldInt8(1,r,he.NONE)}static addHeader(e,r){e.addFieldOffset(2,r,0)}static addBodyLength(e,r){e.addFieldInt64(3,r,BigInt("0"))}static addCustomMetadata(e,r){e.addFieldOffset(4,r,0)}static createCustomMetadataVector(e,r){e.startVector(4,r.length,4);for(let i=r.length-1;i>=0;i--)e.addOffset(r[i]);return e.endVector()}static startCustomMetadataVector(e,r){e.startVector(4,r,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,r){e.finish(r)}static finishSizePrefixedMessageBuffer(e,r){e.finish(r,void 0,!0)}static createMessage(e,r,i,n,o,s){return t.startMessage(e),t.addVersion(e,r),t.addHeaderType(e,i),t.addHeader(e,n),t.addBodyLength(e,o),t.addCustomMetadata(e,s),t.endMessage(e)}}});var Ev,up,IA=h(()=>{fr();GT();kd();Xy();FT();MT();RT();CT();JT();KT();VT();Ky();Jy();tv();rv();Qy();Hy();ZT();jT();WT();nv();Wy();qy();Yy();ev();Ev=class extends V{visit(e,r){return e==null||r==null?void 0:super.visit(e,r)}visitNull(e,r){return Ju.startNull(r),Ju.endNull(r)}visitInt(e,r){return ln.startInt(r),ln.addBitWidth(r,e.bitWidth),ln.addIsSigned(r,e.isSigned),ln.endInt(r)}visitFloat(e,r){return Ri.startFloatingPoint(r),Ri.addPrecision(r,e.precision),Ri.endFloatingPoint(r)}visitBinary(e,r){return Cu.startBinary(r),Cu.endBinary(r)}visitBinaryView(e,r){return Ru.startBinaryView(r),Ru.endBinaryView(r)}visitLargeBinary(e,r){return Vu.startLargeBinary(r),Vu.endLargeBinary(r)}visitBool(e,r){return ju.startBool(r),ju.endBool(r)}visitUtf8(e,r){return Hu.startUtf8(r),Hu.endUtf8(r)}visitUtf8View(e,r){return qu.startUtf8View(r),qu.endUtf8View(r)}visitLargeUtf8(e,r){return Gu.startLargeUtf8(r),Gu.endLargeUtf8(r)}visitDecimal(e,r){return Un.startDecimal(r),Un.addScale(r,e.scale),Un.addPrecision(r,e.precision),Un.addBitWidth(r,e.bitWidth),Un.endDecimal(r)}visitDate(e,r){return Pi.startDate(r),Pi.addUnit(r,e.unit),Pi.endDate(r)}visitTime(e,r){return ei.startTime(r),ei.addUnit(r,e.unit),ei.addBitWidth(r,e.bitWidth),ei.endTime(r)}visitTimestamp(e,r){let i=e.timezone&&r.createString(e.timezone)||void 0;return ti.startTimestamp(r),ti.addUnit(r,e.unit),i!==void 0&&ti.addTimezone(r,i),ti.endTimestamp(r)}visitInterval(e,r){return ji.startInterval(r),ji.addUnit(r,e.unit),ji.endInterval(r)}visitDuration(e,r){return Fi.startDuration(r),Fi.addUnit(r,e.unit),Fi.endDuration(r)}visitList(e,r){return Wu.startList(r),Wu.endList(r)}visitLargeList(e,r){return Zu.startLargeList(r),Zu.endLargeList(r)}visitStruct(e,r){return Ku.startStruct_(r),Ku.endStruct_(r)}visitUnion(e,r){fn.startTypeIdsVector(r,e.typeIds.length);let i=fn.createTypeIdsVector(r,e.typeIds);return fn.startUnion(r),fn.addMode(r,e.mode),fn.addTypeIds(r,i),fn.endUnion(r)}visitDictionary(e,r){let i=this.visit(e.indices,r);return En.startDictionaryEncoding(r),En.addId(r,BigInt(e.id)),En.addIsOrdered(r,e.isOrdered),i!==void 0&&En.addIndexType(r,i),En.endDictionaryEncoding(r)}visitFixedSizeBinary(e,r){return Mi.startFixedSizeBinary(r),Mi.addByteWidth(r,e.byteWidth),Mi.endFixedSizeBinary(r)}visitFixedSizeList(e,r){return Ci.startFixedSizeList(r),Ci.addListSize(r,e.listSize),Ci.endFixedSizeList(r)}visitMap(e,r){return Vi.startMap(r),Vi.addKeysSorted(r,e.keysSorted),Vi.endMap(r)}},up=new Ev});function kA(t,e=new Map){return new se(mF(t,e),lp(t.metadata),e)}function Uv(t){return new ut(t.count,OA(t.columns),BA(t.columns),null,DA(t.columns))}function AA(t){return new Ct(Uv(t.data),t.id,t.isDelta)}function mF(t,e){return(t.fields||[]).filter(Boolean).map(r=>C.fromJSON(r,e))}function $A(t,e){return(t.children||[]).filter(Boolean).map(r=>C.fromJSON(r,e))}function OA(t){return(t||[]).reduce((e,r)=>[...e,new Yr(r.count,hF(r.VALIDITY)),...OA(r.children)],[])}function BA(t,e=[]){for(let r=-1,i=(t||[]).length;++r<i;){let n=t[r];if(n.VALIDITY&&e.push(new nt(e.length,n.VALIDITY.length)),n.TYPE_ID&&e.push(new nt(e.length,n.TYPE_ID.length)),n.OFFSET&&e.push(new nt(e.length,n.OFFSET.length)),n.DATA&&e.push(new nt(e.length,n.DATA.length)),n.VIEWS&&e.push(new nt(e.length,n.VIEWS.length)),n.VARIADIC_DATA_BUFFERS)for(let o of n.VARIADIC_DATA_BUFFERS)e.push(new nt(e.length,o.length));e=BA(n.children,e)}return e}function hF(t){return(t||[]).reduce((e,r)=>e+ +(r===0),0)}function DA(t){return(t||[]).reduce((e,r)=>[...e,...r.VARIADIC_DATA_BUFFERS?[r.VARIADIC_DATA_BUFFERS.length]:[],...DA(r.children)],[])}function NA(t,e){let r,i,n,o,s,a;return!e||!(o=t.dictionary)?(s=TA(t,$A(t,e)),n=new C(t.name,s,t.nullable,lp(t.metadata))):e.has(r=o.id)?(i=(i=o.indexType)?SA(i):new ot,a=new st(e.get(r),i,r,o.isOrdered),n=new C(t.name,a,t.nullable,lp(t.metadata))):(i=(i=o.indexType)?SA(i):new ot,e.set(r,s=TA(t,$A(t,e))),a=new st(s,i,r,o.isOrdered),n=new C(t.name,a,t.nullable,lp(t.metadata))),n||null}function lp(t=[]){return new Map(t.map(({key:e,value:r})=>[e,r]))}function SA(t){return new He(t.isSigned,t.bitWidth)}function TA(t,e){let r=t.type.name;switch(r){case"NONE":return new tt;case"null":return new tt;case"binary":return new Nt;case"largebinary":return new gn;case"binaryview":return new ae;case"utf8":return new zt;case"largeutf8":return new yn;case"utf8view":return new Wt;case"bool":return new Lt;case"list":return new rt((e||[])[0]);case"largelist":return new Nr((e||[])[0]);case"struct":return new ue(e||[]);case"struct_":return new ue(e||[])}switch(r){case"int":{let i=t.type;return new He(i.isSigned,i.bitWidth)}case"floatingpoint":{let i=t.type;return new Dt(Ie[i.precision])}case"decimal":{let i=t.type;return new ur(i.scale,i.precision,i.bitWidth)}case"date":{let i=t.type;return new Jt(Oe[i.unit])}case"time":{let i=t.type;return new xt(z[i.unit],i.bitWidth)}case"timestamp":{let i=t.type;return new It(z[i.unit],i.timezone)}case"interval":{let i=t.type;return new Et(ye[i.unit])}case"duration":{let i=t.type;return new Kt(z[i.unit])}case"union":{let i=t.type,[n,...o]=(i.mode+"").toLowerCase(),s=n.toUpperCase()+o.join("");return new Ht(Se[s],i.typeIds||[],e||[])}case"fixedsizebinary":{let i=t.type;return new lr(i.byteWidth)}case"fixedsizelist":{let i=t.type;return new ht(i.listSize,(e||[])[0])}case"map":{let i=t.type;return new Ut((e||[])[0],i.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}var zA=h(()=>{Mt();Be();so();Qe()});function vF(t,e){return(()=>{switch(e){case he.Schema:return se.fromJSON(t);case he.RecordBatch:return ut.fromJSON(t);case he.DictionaryBatch:return Ct.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${he[e]}, type: ${e} }`)})}function bF(t,e){return(()=>{switch(e){case he.Schema:return se.decode(t.header(new cr),new Map,t.version());case he.RecordBatch:return ut.decode(t.header(new Ot),t.version());case he.DictionaryBatch:return Ct.decode(t.header(new Qn),t.version())}throw new Error(`Unrecognized Message type: { name: ${he[e]}, type: ${e} }`)})}function wF(t,e=new Map,r=Ae.V5){let i=AF(t,e);return new se(i,fp(t),e,r)}function _F(t,e=Ae.V5){return new ut(t.length(),SF(t),TF(t,e),PA(t.compression()),kF(t))}function xF(t,e=Ae.V5){return new Ct(ut.decode(t.data(),e),t.id(),t.isDelta())}function IF(t){return new nt(t.offset(),t.length())}function $F(t){return new Yr(t.length(),t.nullCount())}function SF(t){let e=[];for(let r,i=-1,n=-1,o=t.nodesLength();++i<o;)(r=t.nodes(i))&&(e[++n]=Yr.decode(r));return e}function TF(t,e){let r=[];for(let i,n=-1,o=-1,s=t.buffersLength();++n<s;)(i=t.buffers(n))&&(e<Ae.V4&&(i.bb_pos+=8*(n+1)),r[++o]=nt.decode(i));return r}function kF(t){let e=[],r=Math.trunc(t.variadicBufferCountsLength());for(let i=0;i<r;++i)e.push(de(t.variadicBufferCounts(i)));return e}function AF(t,e){let r=[];for(let i,n=-1,o=-1,s=t.fieldsLength();++n<s;)(i=t.fields(n))&&(r[++o]=C.decode(i,e));return r}function LA(t,e){let r=[];for(let i,n=-1,o=-1,s=t.childrenLength();++n<s;)(i=t.children(n))&&(r[++o]=C.decode(i,e));return r}function OF(t,e){let r,i,n,o,s,a;return!e||!(a=t.dictionary())?(n=UA(t,LA(t,e)),i=new C(t.name(),n,t.nullable(),fp(t))):e.has(r=de(a.id()))?(o=(o=a.indexType())?EA(o):new ot,s=new st(e.get(r),o,r,a.isOrdered()),i=new C(t.name(),s,t.nullable(),fp(t))):(o=(o=a.indexType())?EA(o):new ot,e.set(r,n=UA(t,LA(t,e))),s=new st(n,o,r,a.isOrdered()),i=new C(t.name(),s,t.nullable(),fp(t))),i||null}function fp(t){let e=new Map;if(t)for(let r,i,n=-1,o=Math.trunc(t.customMetadataLength());++n<o;)(r=t.customMetadata(n))&&(i=r.key())!=null&&e.set(i,r.value());return e}function BF(t){let e=new Map;for(let r,i,n=-1,o=Math.trunc(t.customMetadataLength());++n<o;)(r=t.customMetadata(n))&&(i=r.key())!=null&&e.set(i,r.value());return e}function EA(t){return new He(t.isSigned(),t.bitWidth())}function UA(t,e){let r=t.typeType();switch(r){case Y.NONE:return new tt;case Y.Null:return new tt;case Y.Binary:return new Nt;case Y.LargeBinary:return new gn;case Y.BinaryView:return new ae;case Y.Utf8:return new zt;case Y.LargeUtf8:return new yn;case Y.Utf8View:return new Wt;case Y.Bool:return new Lt;case Y.List:return new rt((e||[])[0]);case Y.LargeList:return new Nr((e||[])[0]);case Y.Struct_:return new ue(e||[])}switch(r){case Y.Int:{let i=t.type(new ln);return new He(i.isSigned(),i.bitWidth())}case Y.FloatingPoint:{let i=t.type(new Ri);return new Dt(i.precision())}case Y.Decimal:{let i=t.type(new Un);return new ur(i.scale(),i.precision(),i.bitWidth())}case Y.Date:{let i=t.type(new Pi);return new Jt(i.unit())}case Y.Time:{let i=t.type(new ei);return new xt(i.unit(),i.bitWidth())}case Y.Timestamp:{let i=t.type(new ti);return new It(i.unit(),i.timezone())}case Y.Interval:{let i=t.type(new ji);return new Et(i.unit())}case Y.Duration:{let i=t.type(new Fi);return new Kt(i.unit())}case Y.Union:{let i=t.type(new fn);return new Ht(i.mode(),i.typeIdsArray()||[],e||[])}case Y.FixedSizeBinary:{let i=t.type(new Mi);return new lr(i.byteWidth())}case Y.FixedSizeList:{let i=t.type(new Ci);return new ht(i.listSize(),(e||[])[0])}case Y.Map:{let i=t.type(new Vi);return new Ut((e||[])[0],i.keysSorted())}}throw new Error(`Unrecognized type: "${Y[r]}" (${r})`)}function PA(t){return t?new vs(t.codec(),t.method()):null}function DF(t,e){let r=e.fields.map(o=>C.encode(t,o));cr.startFieldsVector(t,r.length);let i=cr.createFieldsVector(t,r),n=e.metadata&&e.metadata.size>0?cr.createCustomMetadataVector(t,[...e.metadata].map(([o,s])=>{let a=t.createString(`${o}`),c=t.createString(`${s}`);return Xe.startKeyValue(t),Xe.addKey(t,a),Xe.addValue(t,c),Xe.endKeyValue(t)})):-1;return cr.startSchema(t),cr.addFields(t,i),cr.addEndianness(t,PF?Ui.Little:Ui.Big),n!==-1&&cr.addCustomMetadata(t,n),cr.endSchema(t)}function NF(t,e){let r=-1,i=-1,n=-1,o=e.type,s=e.typeId;D.isDictionary(o)?(s=o.dictionary.typeId,n=up.visit(o,t),i=up.visit(o.dictionary,t)):i=up.visit(o,t);let a=(o.children||[]).map(l=>C.encode(t,l)),c=Bt.createChildrenVector(t,a),u=e.metadata&&e.metadata.size>0?Bt.createCustomMetadataVector(t,[...e.metadata].map(([l,f])=>{let d=t.createString(`${l}`),p=t.createString(`${f}`);return Xe.startKeyValue(t),Xe.addKey(t,d),Xe.addValue(t,p),Xe.endKeyValue(t)})):-1;return e.name&&(r=t.createString(e.name)),Bt.startField(t),Bt.addType(t,i),Bt.addTypeType(t,s),Bt.addChildren(t,c),Bt.addNullable(t,!!e.nullable),r!==-1&&Bt.addName(t,r),n!==-1&&Bt.addDictionary(t,n),u!==-1&&Bt.addCustomMetadata(t,u),Bt.endField(t)}function zF(t,e){let r=e.nodes||[],i=e.buffers||[],n=e.variadicBufferCounts||[];Ot.startNodesVector(t,r.length);for(let u of r.slice().reverse())Yr.encode(t,u);let o=t.endVector();Ot.startBuffersVector(t,i.length);for(let u of i.slice().reverse())nt.encode(t,u);let s=t.endVector(),a=null;e.compression!==null&&(a=FA(t,e.compression));let c=-1;return n.length>0&&(c=Ot.createVariadicBufferCountsVector(t,n.map(BigInt))),Ot.startRecordBatch(t),Ot.addLength(t,BigInt(e.length)),Ot.addNodes(t,o),Ot.addBuffers(t,s),e.compression!==null&&a&&Ot.addCompression(t,a),c!==-1&&Ot.addVariadicBufferCounts(t,c),Ot.endRecordBatch(t)}function FA(t,e){return Xn.startBodyCompression(t),Xn.addCodec(t,e.type),Xn.addMethod(t,e.method),Xn.endBodyCompression(t)}function LF(t,e){let r=ut.encode(t,e.data);return Qn.startDictionaryBatch(t),Qn.addId(t,BigInt(e.id)),Qn.addIsDelta(t,e.isDelta),Qn.addData(t,r),Qn.endDictionaryBatch(t)}function EF(t,e){return Na.createFieldNode(t,BigInt(e.length),BigInt(e.nullCount))}function UF(t,e){return Da.createBuffer(t,BigInt(e.offset),BigInt(e.length))}var gF,yF,Rt,ut,Ct,nt,Yr,vs,PF,so=h(()=>{_e();ov();kd();Zy();UT();jy();iv();Vy();Ad();za();Gy();Xy();Ky();Jy();tv();rv();Qy();Hy();nv();qy();Yy();ev();xA();Ry();Cy();Mt();ft();Pn();Qe();IA();zA();Be();gF=cs,yF=wt,Rt=class t{static fromJSON(e,r){let i=new t(0,Ae.V5,r);return i._createHeader=vF(e,r),i}static decode(e){e=new yF(Z(e));let r=Pr.getRootAsMessage(e),i=r.bodyLength(),n=r.version(),o=r.headerType(),s=BF(r),a=new t(i,n,o,void 0,s);return a._createHeader=bF(r,o),a}static encode(e){let r=new gF,i=-1;e.isSchema()?i=se.encode(r,e.header()):e.isRecordBatch()?i=ut.encode(r,e.header()):e.isDictionaryBatch()&&(i=Ct.encode(r,e.header()));let n=e.metadata&&e.metadata.size>0?Pr.createCustomMetadataVector(r,[...e.metadata].map(([o,s])=>{let a=r.createString(`${o}`),c=r.createString(`${s}`);return Xe.startKeyValue(r),Xe.addKey(r,a),Xe.addValue(r,c),Xe.endKeyValue(r)})):-1;return Pr.startMessage(r),Pr.addVersion(r,Ae.V5),Pr.addHeader(r,i),Pr.addHeaderType(r,e.headerType),Pr.addBodyLength(r,BigInt(e.bodyLength)),n!==-1&&Pr.addCustomMetadata(r,n),Pr.finishMessageBuffer(r,Pr.endMessage(r)),r.asUint8Array()}static from(e,r=0){if(e instanceof se)return new t(0,Ae.V5,he.Schema,e);if(e instanceof ut)return new t(r,Ae.V5,he.RecordBatch,e,e.metadata);if(e instanceof Ct)return new t(r,Ae.V5,he.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get compression(){return this._compression}get bodyLength(){return this._bodyLength}get metadata(){return this._metadata}header(){return this._createHeader()}isSchema(){return this.headerType===he.Schema}isRecordBatch(){return this.headerType===he.RecordBatch}isDictionaryBatch(){return this.headerType===he.DictionaryBatch}constructor(e,r,i,n,o){this._version=r,this._headerType=i,this.body=new Uint8Array(0),this._compression=n?.compression,n&&(this._createHeader=()=>n),this._bodyLength=de(e),this._metadata=o||new Map}},ut=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}get compression(){return this._compression}get variadicBufferCounts(){return this._variadicBufferCounts}get metadata(){return this._metadata}constructor(e,r,i,n,o=[],s){this._nodes=r,this._buffers=i,this._length=de(e),this._compression=n,this._variadicBufferCounts=o,this._metadata=s||new Map}},Ct=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,r,i=!1){this._data=e,this._isDelta=i,this._id=de(r)}},nt=class{constructor(e,r){this.offset=de(e),this.length=de(r)}},Yr=class{constructor(e,r){this.length=de(e),this.nullCount=de(r)}},vs=class{constructor(e,r=us.BUFFER){this.type=e,this.method=r}};C.encode=NF;C.decode=OF;C.fromJSON=NA;se.encode=DF;se.decode=wF;se.fromJSON=kA;ut.encode=zF;ut.decode=_F;ut.fromJSON=Uv;Ct.encode=LF;Ct.decode=xF;Ct.fromJSON=AA;Yr.encode=EF;Yr.decode=$F;nt.encode=UF;nt.decode=IF;vs.encode=FA;vs.decode=PA;PF=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})()});var We,fl,bs,dp,dl=h(()=>{ar();Uu();We=Object.freeze({done:!0,value:void 0}),fl=class{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}},bs=class{tee(){return this._getDOMStream().tee()}pipe(e,r){return this._getNodeStream().pipe(e,r)}pipeTo(e,r){return this._getDOMStream().pipeTo(e,r)}pipeThrough(e,r){return this._getDOMStream().pipeThrough(e,r)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}},dp=class extends bs{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return M(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(We);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return bt.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return bt.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return M(this,void 0,void 0,function*(){return yield this.abort(e),We})}return(e){return M(this,void 0,void 0,function*(){return yield this.close(),We})}read(e){return M(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return M(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise((r,i)=>{this.resolvers.push({resolve:r,reject:i})}):Promise.resolve(We)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}});var Xr,Qr,pr,Pv,si,ao=h(()=>{ar();Uu();Yn();dl();ft();Ei();Xr=class extends dp{write(e){if((e=Z(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Aa(this.toUint8Array(!0)):this.toUint8Array(!1).then(Aa)}toUint8Array(e=!1){return e?Sr(this._values)[0]:M(this,void 0,void 0,function*(){var r,i,n,o;let s=[],a=0;try{for(var c=!0,u=xr(this),l;l=yield u.next(),r=l.done,!r;c=!0){o=l.value,c=!1;let f=o;s.push(f),a+=f.byteLength}}catch(f){i={error:f}}finally{try{!c&&!r&&(n=u.return)&&(yield n.call(u))}finally{if(i)throw i.error}}return Sr(s,a)[0]})}},Qr=class{constructor(e){e&&(this.source=new Pv(bt.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},pr=class t{constructor(e){e instanceof t?this.source=e.source:e instanceof Xr?this.source=new si(bt.fromAsyncIterable(e)):bd(e)?this.source=new si(bt.fromNodeStream(e)):zu(e)?this.source=new si(bt.fromDOMStream(e)):yd(e)?this.source=new si(bt.fromDOMStream(e.body)):an(e)?this.source=new si(bt.fromIterable(e)):$r(e)?this.source=new si(bt.fromAsyncIterable(e)):Jr(e)&&(this.source=new si(bt.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},Pv=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,r="read"){return this.source.next({cmd:r,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||We)}return(e){return Object.create(this.source.return&&this.source.return(e)||We)}},si=class{constructor(e){this.source=e,this._closedPromise=new Promise(r=>this._closedPromiseResolve=r)}cancel(e){return M(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return M(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return M(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e){return M(this,arguments,void 0,function*(r,i="read"){return yield this.source.next({cmd:i,size:r})})}throw(e){return M(this,void 0,void 0,function*(){let r=this.source.throw&&(yield this.source.throw(e))||We;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}return(e){return M(this,void 0,void 0,function*(){let r=this.source.return&&(yield this.source.return(e))||We;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(r)})}}});var pl,co,Fv=h(()=>{ar();ao();ft();pl=class extends Qr{constructor(e,r){super(),this.position=0,this.buffer=Z(e),this.size=r===void 0?this.buffer.byteLength:r}readInt32(e){let{buffer:r,byteOffset:i}=this.readAt(e,4);return new DataView(r,i).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){let{buffer:r,size:i,position:n}=this;return r&&n<i?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(i,n+Math.min(i-n,e)),r.subarray(n,this.position)):null}readAt(e,r){let i=this.buffer,n=Math.min(this.size,e+r);return i?i.subarray(e,n):new Uint8Array(r)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}},co=class extends pr{constructor(e,r){super(),this.position=0,this._handle=e,typeof r=="number"?this.size=r:this._pending=M(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return M(this,void 0,void 0,function*(){let{buffer:r,byteOffset:i}=yield this.readAt(e,4);return new DataView(r,i).getInt32(0,!0)})}seek(e){return M(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return M(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:r,size:i,position:n}=this;if(r&&n<i){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let o=n,s=0,a=0,c=Math.min(i,o+Math.min(i-o,e)),u=new Uint8Array(Math.max(0,(this.position=c)-o));for(;(o+=a)<c&&(s+=a)<u.byteLength;)({bytesRead:a}=yield r.read(u,s,u.byteLength-s,o));return u}return null})}readAt(e,r){return M(this,void 0,void 0,function*(){this._pending&&(yield this._pending);let{_handle:i,size:n}=this;if(i&&e+r<n){let o=Math.min(n,e+r),s=new Uint8Array(o-e);return(yield i.read(s,0,r,e)).buffer}return new Uint8Array(r)})}close(){return M(this,void 0,void 0,function*(){let e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return M(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return M(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}});var Cv={};Ke(Cv,{BaseInt64:()=>ml,Int128:()=>hl,Int64:()=>ai,Uint64:()=>et});function Ka(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}var Ha,Mv,ml,et,ai,hl,Rv=h(()=>{Ha=8,Mv=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],ml=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let r=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),i=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]),n=r[3]*i[3];this.buffer[0]=n&65535;let o=n>>>16;return n=r[2]*i[3],o+=n,n=r[3]*i[2]>>>0,o+=n,this.buffer[0]+=o<<16,this.buffer[1]=o>>>0<n?65536:0,this.buffer[1]+=o>>>16,this.buffer[1]+=r[1]*i[3]+r[2]*i[2]+r[3]*i[1],this.buffer[1]+=r[0]*i[3]+r[1]*i[2]+r[2]*i[1]+r[3]*i[0]<<16,this}_plus(e){let r=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],r<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=r}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Ka(this.buffer[1])} ${Ka(this.buffer[0])}`}},et=class t extends ml{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,r=new Uint32Array(2)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.length,n=new t(r);for(let o=0;o<i;){let s=Ha<i-o?Ha:i-o,a=new t(new Uint32Array([Number.parseInt(e.slice(o,o+s),10),0])),c=new t(new Uint32Array([Mv[s],0]));n.times(c),n.plus(a),o+=s}return n}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}},ai=class t extends ml{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){let r=this.buffer[1]<<0,i=e.buffer[1]<<0;return r<i||r===i&&this.buffer[0]<e.buffer[0]}static from(e,r=new Uint32Array(2)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(2)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(2)){let i=e.startsWith("-"),n=e.length,o=new t(r);for(let s=i?1:0;s<n;){let a=Ha<n-s?Ha:n-s,c=new t(new Uint32Array([Number.parseInt(e.slice(s,s+a),10),0])),u=new t(new Uint32Array([Mv[a],0]));o.times(u),o.plus(c),s+=a}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*2);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+2*i*4,2));return r}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}},hl=class t{constructor(e){this.buffer=e}high(){return new ai(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new ai(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){let r=new et(new Uint32Array([this.buffer[3],0])),i=new et(new Uint32Array([this.buffer[2],0])),n=new et(new Uint32Array([this.buffer[1],0])),o=new et(new Uint32Array([this.buffer[0],0])),s=new et(new Uint32Array([e.buffer[3],0])),a=new et(new Uint32Array([e.buffer[2],0])),c=new et(new Uint32Array([e.buffer[1],0])),u=new et(new Uint32Array([e.buffer[0],0])),l=et.multiply(o,u);this.buffer[0]=l.low();let f=new et(new Uint32Array([l.high(),0]));return l=et.multiply(n,u),f.plus(l),l=et.multiply(o,c),f.plus(l),this.buffer[1]=f.low(),this.buffer[3]=f.lessThan(l)?1:0,this.buffer[2]=f.high(),new et(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(et.multiply(i,u)).plus(et.multiply(n,c)).plus(et.multiply(o,a)),this.buffer[3]+=et.multiply(r,u).plus(et.multiply(i,c)).plus(et.multiply(n,a)).plus(et.multiply(o,s)).low(),this}plus(e){let r=new Uint32Array(4);return r[3]=this.buffer[3]+e.buffer[3]>>>0,r[2]=this.buffer[2]+e.buffer[2]>>>0,r[1]=this.buffer[1]+e.buffer[1]>>>0,r[0]=this.buffer[0]+e.buffer[0]>>>0,r[0]<this.buffer[0]>>>0&&++r[1],r[1]<this.buffer[1]>>>0&&++r[2],r[2]<this.buffer[2]>>>0&&++r[3],this.buffer[3]=r[3],this.buffer[2]=r[2],this.buffer[1]=r[1],this.buffer[0]=r[0],this}hex(){return`${Ka(this.buffer[3])} ${Ka(this.buffer[2])} ${Ka(this.buffer[1])} ${Ka(this.buffer[0])}`}static multiply(e,r){return new t(new Uint32Array(e.buffer)).times(r)}static add(e,r){return new t(new Uint32Array(e.buffer)).plus(r)}static from(e,r=new Uint32Array(4)){return t.fromString(typeof e=="string"?e:e.toString(),r)}static fromNumber(e,r=new Uint32Array(4)){return t.fromString(e.toString(),r)}static fromString(e,r=new Uint32Array(4)){let i=e.startsWith("-"),n=e.length,o=new t(r);for(let s=i?1:0;s<n;){let a=Ha<n-s?Ha:n-s,c=new t(new Uint32Array([Number.parseInt(e.slice(s,s+a),10),0,0,0])),u=new t(new Uint32Array([Mv[a],0,0,0]));o.times(u),o.plus(c),s+=a}return i?o.negate():o}static convertArray(e){let r=new Uint32Array(e.length*4);for(let i=-1,n=e.length;++i<n;)t.from(e[i],new Uint32Array(r.buffer,r.byteOffset+16*i,4));return r}}});var Wv={};Ke(Wv,{toIntervalDayTimeInt32Array:()=>jv,toIntervalDayTimeObjects:()=>Zv,toIntervalMonthDayNanoInt32Array:()=>Vv,toIntervalMonthDayNanoObjects:()=>Gv});function jv(t){var e,r;let i=t.length,n=new Int32Array(i*2);for(let o=0,s=0;o<i;o++){let a=t[o];n[s++]=(e=a.days)!==null&&e!==void 0?e:0,n[s++]=(r=a.milliseconds)!==null&&r!==void 0?r:0}return n}function Vv(t){var e,r;let i=t.length,n=new Int32Array(i*4);for(let o=0,s=0;o<i;o++){let a=t[o];n[s++]=(e=a.months)!==null&&e!==void 0?e:0,n[s++]=(r=a.days)!==null&&r!==void 0?r:0;let c=a.nanoseconds;if(c){let u=BigInt(c);n[s++]=Number(u&BigInt(4294967295))>>>0,n[s++]=Number(u>>BigInt(32))>>>0}else s+=2}return n}function Zv(t){let e=t.length,r=new Array(e/2);for(let i=0,n=0;i<e;i+=2)r[n++]={days:t[i],milliseconds:t[i+1]};return r}function Gv(t,e){let r=t.length,i=new Array(r/4);for(let n=0,o=0;n<r;n+=4){let s=BigInt(t[n+3])<<BigInt(32)|BigInt(t[n+2]>>>0);i[o++]={months:t[n],days:t[n+1],nanoseconds:e?`${s}`:s}}return i}var pp=h(()=>{});function CA(t){let e=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)e[r>>1]=Number.parseInt(t.slice(r,r+2),16);return e}function FF(t){return CA(t.join(""))}function RA(t,e){let r=new Uint8Array(t.length*16),i=new DataView(r.buffer);for(let[n,o]of t.entries()){let s=n*16,a=o.SIZE;if(i.setInt32(s,a,!0),o.INLINED!==void 0){let c=e(o.INLINED);for(let u=0;u<c.length&&u<12;u++)r[s+4+u]=c[u]}else{let c=o.PREFIX_HEX;for(let u=0;u<8&&u<c.length;u+=2)r[s+4+(u>>1)]=Number.parseInt(c.slice(u,u+2),16);i.setInt32(s+8,o.BUFFER_INDEX,!0),i.setInt32(s+12,o.OFFSET,!0)}}return r}function MF(t){return RA(t,e=>{let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i>>1]=Number.parseInt(e.slice(i,i+2),16);return r})}function CF(t){return RA(t,e=>new TextEncoder().encode(e))}var qa,mp,hp,jA=h(()=>{qr();Mt();Be();fr();hs();Yn();Rv();Qe();ft();pp();qa=class extends V{constructor(e,r,i,n,o=Ae.V5,s=[]){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.variadicBufferIndex=-1,this.bytes=e,this.nodes=r,this.buffers=i,this.dictionaries=n,this.metadataVersion=o,this.variadicBufferCounts=s}visit(e){return super.visit(e instanceof C?e.type:e)}visitNull(e,{length:r}=this.nextFieldNode()){return U({type:e,length:r})}visitBool(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitInt(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFloat(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeUtf8(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitUtf8View(e,{length:r,nullCount:i}=this.nextFieldNode()){let n=this.readNullBitmap(e,i),o=this.readData(e),s=this.readVariadicBuffers(this.nextVariadicBufferCount());return U({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:s})}visitBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitLargeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinaryView(e,{length:r,nullCount:i}=this.nextFieldNode()){let n=this.readNullBitmap(e,i),o=this.readData(e),s=this.readVariadicBuffers(this.nextVariadicBufferCount());return U({type:e,length:r,nullCount:i,nullBitmap:n,views:o,variadicBuffers:s})}visitFixedSizeBinary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDate(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTimestamp(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitTime(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDecimal(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitList(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitLargeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),children:this.visitMany(e.children)})}visitUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return this.metadataVersion<Ae.V5&&this.readNullBitmap(e,i),e.mode===Se.Sparse?this.visitSparseUnion(e,{length:r,nullCount:i}):this.visitDenseUnion(e,{length:r,nullCount:i})}visitDenseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitDuration(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),data:this.readData(e)})}visitFixedSizeList(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),child:this.visit(e.children[0])})}visitMap(e,{length:r,nullCount:i}=this.nextFieldNode()){return U({type:e,length:r,nullCount:i,nullBitmap:this.readNullBitmap(e,i),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,r,i=this.nextBufferRange()){return r>0&&this.readData(e,i)||new Uint8Array(0)}readOffsets(e,r){return this.readData(e,r)}readTypeIds(e,r){return this.readData(e,r)}readData(e,{length:r,offset:i}=this.nextBufferRange()){return this.bytes.subarray(i,i+r)}readVariadicBuffers(e){return Array.from({length:e},()=>this.readData(null))}nextVariadicBufferCount(){var e;return(e=this.variadicBufferCounts[++this.variadicBufferIndex])!==null&&e!==void 0?e:0}readDictionary(e){return this.dictionaries.get(e.id)}},mp=class extends qa{constructor(e,r,i,n,o,s=[]){super(new Uint8Array(0),r,i,n,o,s),this.sources=e}readNullBitmap(e,r,{offset:i}=this.nextBufferRange()){return r<=0?new Uint8Array(0):ms(this.sources[i])}readOffsets(e,{offset:r}=this.nextBufferRange()){return fe(Uint8Array,fe(e.OffsetArrayType,this.sources[r]))}readTypeIds(e,{offset:r}=this.nextBufferRange()){return fe(Uint8Array,fe(e.ArrayType,this.sources[r]))}readData(e,{offset:r}=this.nextBufferRange()){let{sources:i}=this;if(D.isTimestamp(e))return fe(Uint8Array,ai.convertArray(i[r]));if((D.isInt(e)||D.isTime(e))&&e.bitWidth===64||D.isDuration(e))return fe(Uint8Array,ai.convertArray(i[r]));if(D.isDate(e)&&e.unit===Oe.MILLISECOND)return fe(Uint8Array,ai.convertArray(i[r]));if(D.isDecimal(e))return fe(Uint8Array,hl.convertArray(i[r]));if(D.isBinary(e)||D.isLargeBinary(e)||D.isFixedSizeBinary(e))return FF(i[r]);if(D.isBinaryView(e))return MF(i[r]);if(D.isUtf8View(e))return CF(i[r]);if(D.isBool(e))return ms(i[r]);if(D.isUtf8(e)||D.isLargeUtf8(e))return Ir(i[r].join(""));if(D.isInterval(e))switch(e.unit){case ye.DAY_TIME:return jv(i[r]);case ye.MONTH_DAY_NANO:return Vv(i[r]);default:break}return fe(Uint8Array,fe(e.ArrayType,i[r].map(n=>+n)))}readVariadicBuffers(e){let r=[];for(let i=0;i<e;i++){let{offset:n}=this.nextBufferRange(),o=this.sources[n];r.push(CA(o))}return r}};hp=class extends qa{constructor(e,r,i,n,o,s=[]){super(new Uint8Array(0),r,i,n,o,s),this.bodyChunks=e}readData(e,r=this.nextBufferRange()){return this.bodyChunks[this.buffersIndex]}}});var ci,gp=h(()=>{bn();Ge();ft();ci=class extends Ft{constructor(e){super(e),this._values=new dr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,Z(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[s,a]of e)if(a===void 0)i.set(s,0);else{let c=a.length;n.set(a,o),i.set(s,c),o+=c}}}});var ui,yp=h(()=>{ft();bn();Ge();ui=class extends Ft{constructor(e){super(e),this._values=new dr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,Z(r))}_flushPending(e,r){let i=this._offsets,n=this._values.reserve(r).buffer,o=0;for(let[s,a]of e)if(a===void 0)i.set(s,BigInt(0));else{let c=a.length;n.set(a,o),i.set(s,BigInt(c)),o+=c}}}});var ws,Jv=h(()=>{bn();Ge();ws=class extends Pe{constructor(e){super(e),this._values=new Ja}setValue(e,r){this._values.set(e,+r)}}});var Rn,uo,lo,Kv=h(()=>{Ge();Er();Rn=class extends ct{};Rn.prototype._setValue=mv;uo=class extends Rn{};uo.prototype._setValue=Nd;lo=class extends Rn{};lo.prototype._setValue=zd});var fo,Hv=h(()=>{Ge();Er();fo=class extends ct{};fo.prototype._setValue=yv});var _s,qv=h(()=>{Be();Ge();gl();_s=class extends Pe{constructor({type:e,nullValues:r,dictionaryHashFunction:i}){super({type:new st(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Fr({type:this.type.indices,nullValues:r}),this.dictionary=Fr({type:this.type.dictionary,nullValues:null}),typeof i=="function"&&(this.valueToKey=i)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,r){let i=this.indices;return r=i.setValid(e,r),this.length=i.length,r}setValue(e,r){let i=this._keysToIndices,n=this.valueToKey(r),o=i[n];return o===void 0&&(i[n]=o=this._dictionaryOffset+this.dictionary.append(r).length-1),this.indices.setValue(e,o)}flush(){let e=this.type,r=this._dictionary,i=this.dictionary.toVector(),n=this.indices.flush().clone(e);return n.dictionary=r?r.concat(i):i,this.finished||(this._dictionaryOffset+=i.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return typeof e=="string"?e:`${e}`}}});var po,Yv=h(()=>{Ge();Er();po=class extends ct{};po.prototype._setValue=pv});var xs,Xv=h(()=>{Mt();Ge();Be();xs=class extends Pe{setValue(e,r){let[i]=this.children,n=e*this.stride;for(let o=-1,s=this.stride;++o<s;)i.set(n+o,r[o])}setValid(e,r){return super.setValid(e,r)||this.children[0].setValid((e+1)*this.stride-1,!1),r}addChild(e,r="0"){if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");let i=this.children.push(e);return this.type=new ht(this.type.listSize,new C(r,e.type,!0)),i}}});var jn,Is,$s,Ss,Qv=h(()=>{ol();Ge();jn=class extends ct{setValue(e,r){this._values.set(e,r)}},Is=class extends jn{setValue(e,r){super.setValue(e,il(r))}},$s=class extends jn{},Ss=class extends jn{}});var _n,mo,ho,go,eb=h(()=>{Ge();Er();_n=class extends ct{};_n.prototype._setValue=vv;mo=class extends _n{};mo.prototype._setValue=jd;ho=class extends _n{};ho.prototype._setValue=Vd;go=class extends _n{};go.prototype._setValue=Zd});var en,yo,vo,bo,wo,tb=h(()=>{Ge();Er();en=class extends ct{};en.prototype._setValue=bv;yo=class extends en{};yo.prototype._setValue=Gd;vo=class extends en{};vo.prototype._setValue=Wd;bo=class extends en{};bo.prototype._setValue=Jd;wo=class extends en{};wo.prototype._setValue=Kd});var Yt,Ts,ks,As,Os,Bs,Ds,Ns,zs,rb=h(()=>{Ge();Yt=class extends ct{setValue(e,r){this._values.set(e,r)}},Ts=class extends Yt{},ks=class extends Yt{},As=class extends Yt{},Os=class extends Yt{},Bs=class extends Yt{},Ds=class extends Yt{},Ns=class extends Yt{},zs=class extends Yt{}});var Ls,nb=h(()=>{Mt();Be();bn();Ge();Ls=class extends Ft{constructor(e){super(e),this._offsets=new oo(e.type)}addChild(e,r="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new rt(new C(r,e.type,!0)),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(typeof o>"u")r.set(n,0);else{let s=o,a=s.length,c=r.set(n,a).buffer[n];for(let u=-1;++u<a;)i.set(c+u,s[u])}}}});var Es,ib=h(()=>{Mt();Be();bn();Pn();Ge();Es=class extends Ft{constructor(e){super(e),this._offsets=new oo(e.type)}addChild(e,r="0"){if(this.numChildren>0)throw new Error("LargeListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Nr(new C(r,e.type,!0)),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(typeof o>"u")r.set(n,BigInt(0));else{let s=o,a=s.length,c=de(r.set(n,BigInt(a)).buffer[n]);for(let u=-1;++u<a;)i.set(c+u,s[u])}}}});var Us,ob=h(()=>{Mt();Be();Ge();Us=class extends Ft{set(e,r){return super.set(e,r)}setValue(e,r){let i=r instanceof Map?r:new Map(Object.entries(r)),n=this._pending||(this._pending=new Map),o=n.get(e);o&&(this._pendingLength-=o.size),this._pendingLength+=i.size,n.set(e,i)}addChild(e,r=`${this.numChildren}`){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Ut(new C(r,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){let r=this._offsets,[i]=this.children;for(let[n,o]of e)if(o===void 0)r.set(n,0);else{let{[n]:s,[n+1]:a}=r.set(n,o.size).buffer;for(let c of o.entries())if(i.set(s,c),++s>=a)break}}}});var Ps,sb=h(()=>{Ge();Ps=class extends Pe{setValue(e,r){}setValid(e,r){return this.length=Math.max(e+1,this.length),r}}});var Fs,ab=h(()=>{Mt();Ge();Be();Fs=class extends Pe{setValue(e,r){let{children:i,type:n}=this;switch(Array.isArray(r)||r.constructor){case!0:return n.children.forEach((o,s)=>i[s].set(e,r[s]));case Map:return n.children.forEach((o,s)=>i[s].set(e,r.get(o.name)));default:return n.children.forEach((o,s)=>i[s].set(e,r[o.name]))}}setValid(e,r){return super.setValid(e,r)||this.children.forEach(i=>i.setValid(e,r)),r}addChild(e,r=`${this.numChildren}`){let i=this.children.push(e);return this.type=new ue([...this.type.children,new C(r,e.type,!0)]),i}}});var tn,_o,xo,Io,$o,cb=h(()=>{Ge();Er();tn=class extends ct{};tn.prototype._setValue=hv;_o=class extends tn{};_o.prototype._setValue=Ld;xo=class extends tn{};xo.prototype._setValue=Ed;Io=class extends tn{};Io.prototype._setValue=Ud;$o=class extends tn{};$o.prototype._setValue=Pd});var rn,So,To,ko,Ao,ub=h(()=>{Ge();Er();rn=class extends ct{};rn.prototype._setValue=gv;So=class extends rn{};So.prototype._setValue=Fd;To=class extends rn{};To.prototype._setValue=Md;ko=class extends rn{};ko.prototype._setValue=Cd;Ao=class extends rn{};Ao.prototype._setValue=Rd});var li,Ms,Cs,lb=h(()=>{Mt();bn();Ge();Be();li=class extends Pe{constructor(e){super(e),this._typeIds=new ii(Int8Array,0,1),typeof e.valueToChildTypeId=="function"&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,r){return this.set(this.length,e,r)}set(e,r,i){return i===void 0&&(i=this._valueToChildTypeId(this,r,e)),this.setValue(e,r,i),this}setValue(e,r,i){this._typeIds.set(e,i);let n=this.type.typeIdToChildIndex[i],o=this.children[n];o?.set(e,r),this.length=Math.max(e+1,this.length)}addChild(e,r=`${this.children.length}`){let i=this.children.push(e),{type:{children:n,mode:o,typeIds:s}}=this,a=[...n,new C(r,e.type)];return this.type=new Ht(o,[...s,i],a),i}_valueToChildTypeId(e,r,i){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},Ms=class extends li{},Cs=class extends li{constructor(e){super(e),this._offsets=new ii(Int32Array)}setValue(e,r,i){let n=this._typeIds.set(e,i).buffer[e],o=this.getChildAt(this.type.typeIdToChildIndex[n]),s=this._offsets.set(e,o.length).buffer[e];o?.set(s,r),this.length=Math.max(e+1,this.length)}}});var Oo,fb=h(()=>{Yn();gp();bn();Ge();Oo=class extends Ft{constructor(e){super(e),this._values=new dr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,Ir(r))}_flushPending(e,r){}};Oo.prototype._flushPending=ci.prototype._flushPending});var Bo,db=h(()=>{Yn();bn();Ge();yp();Bo=class extends Ft{constructor(e){super(e),this._values=new dr(Uint8Array)}get byteLength(){let e=this._pendingLength+this.length*4;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,r){return super.setValue(e,Ir(r))}_flushPending(e,r){}};Bo.prototype._flushPending=ui.prototype._flushPending});var fi,vp=h(()=>{Be();Ge();bn();ft();qr();fi=class extends Pe{constructor(e){super(e),this._variadicBuffers=[],this._currentBuffer=null,this._currentBufferIndex=0,this._currentBufferOffset=0,this._bufferSize=32*1024*1024,this._views=new dr(Uint8Array)}get byteLength(){let e=0;this._views&&(e+=this._views.byteLength),this._nulls&&(e+=this._nulls.byteLength);for(let r of this._variadicBuffers)e+=r.byteLength;return this._currentBuffer&&(e+=this._currentBuffer.byteLength),e}setValue(e,r){return this.writeBinaryValue(e,this.encodeValue(r))}writeBinaryValue(e,r){let i=r.length,n=(e+1)*ae.ELEMENT_WIDTH,o=this._views.length;n>o&&this._views.reserve(n-o);let s=this._views.buffer,a=e*ae.ELEMENT_WIDTH,c=new DataView(s.buffer,s.byteOffset+a,ae.ELEMENT_WIDTH);if(c.setInt32(ae.LENGTH_OFFSET,i,!0),i<=ae.INLINE_CAPACITY){s.set(r,a+ae.INLINE_OFFSET);for(let u=i;u<ae.INLINE_CAPACITY;u++)s[a+ae.INLINE_OFFSET+u]=0}else{let u=new DataView(r.buffer,r.byteOffset,Math.min(4,i));c.setUint32(ae.INLINE_OFFSET,u.getUint32(0,!0),!0),(!this._currentBuffer||this._currentBufferOffset+i>this._bufferSize)&&(this._currentBuffer&&this._variadicBuffers.push(this._currentBuffer.buffer.slice(0,this._currentBufferOffset)),this._currentBuffer=new dr(Uint8Array),this._currentBufferIndex=this._variadicBuffers.length,this._currentBufferOffset=0),this._currentBuffer.reserve(i).buffer.set(r,this._currentBufferOffset),c.setInt32(ae.BUFFER_INDEX_OFFSET,this._currentBufferIndex,!0),c.setInt32(ae.BUFFER_OFFSET_OFFSET,this._currentBufferOffset,!0),this._currentBufferOffset+=i}return this}encodeValue(e){return Z(e)}setValid(e,r){let i=(e+1)*ae.ELEMENT_WIDTH,n=this._views.length;i>n&&this._views.reserve(i-n);let o=super.setValid(e,r);if(!o){let s=this._views.buffer,a=e*ae.ELEMENT_WIDTH;for(let c=0;c<ae.ELEMENT_WIDTH;c++)s[a+c]=0}return o}clear(){return this._variadicBuffers=[],this._currentBuffer=null,this._currentBufferIndex=0,this._currentBufferOffset=0,this._views.clear(),super.clear()}flush(){let{type:e,length:r,nullCount:i,_views:n,_nulls:o}=this;this._currentBuffer&&this._currentBufferOffset>0&&(this._variadicBuffers.push(this._currentBuffer.buffer.slice(0,this._currentBufferOffset)),this._currentBuffer=null,this._currentBufferOffset=0);let s=n.flush(r*ae.ELEMENT_WIDTH),a=i>0?o.flush(r):void 0,c=this._variadicBuffers.slice();return this._variadicBuffers=[],this._currentBufferIndex=0,this.clear(),U({type:e,length:r,nullCount:i,nullBitmap:a,views:s,variadicBuffers:c})}finish(){return this.finished=!0,this}}});var Rs,pb=h(()=>{vp();Yn();Rs=class extends fi{constructor(e){super(e)}setValue(e,r){return this.writeBinaryValue(e,Ir(r))}}});var mb,VA,ZA=h(()=>{fr();gp();yp();Jv();Kv();Hv();qv();Yv();Xv();Qv();eb();tb();rb();nb();ib();ob();sb();ab();cb();ub();lb();fb();db();vp();pb();mb=class extends V{visitNull(){return Ps}visitBool(){return ws}visitInt(){return Yt}visitInt8(){return Ts}visitInt16(){return ks}visitInt32(){return As}visitInt64(){return Os}visitUint8(){return Bs}visitUint16(){return Ds}visitUint32(){return Ns}visitUint64(){return zs}visitFloat(){return jn}visitFloat16(){return Is}visitFloat32(){return $s}visitFloat64(){return Ss}visitUtf8(){return Oo}visitLargeUtf8(){return Bo}visitBinary(){return ci}visitLargeBinary(){return ui}visitFixedSizeBinary(){return po}visitDate(){return Rn}visitDateDay(){return uo}visitDateMillisecond(){return lo}visitTimestamp(){return tn}visitTimestampSecond(){return _o}visitTimestampMillisecond(){return xo}visitTimestampMicrosecond(){return Io}visitTimestampNanosecond(){return $o}visitTime(){return rn}visitTimeSecond(){return So}visitTimeMillisecond(){return To}visitTimeMicrosecond(){return ko}visitTimeNanosecond(){return Ao}visitDecimal(){return fo}visitList(){return Ls}visitLargeList(){return Es}visitStruct(){return Fs}visitUnion(){return li}visitDenseUnion(){return Cs}visitSparseUnion(){return Ms}visitDictionary(){return _s}visitInterval(){return _n}visitIntervalDayTime(){return mo}visitIntervalYearMonth(){return ho}visitIntervalMonthDayNano(){return go}visitDuration(){return en}visitDurationSecond(){return yo}visitDurationMillisecond(){return vo}visitDurationMicrosecond(){return bo}visitDurationNanosecond(){return wo}visitFixedSizeList(){return xs}visitMap(){return Us}visitBinaryView(){return fi}visitUtf8View(){return Rs}},VA=new mb});function Xt(t,e){return e instanceof t.constructor}function di(t,e){return t===e||Xt(t,e)}function pi(t,e){return t===e||Xt(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function bp(t,e){return t===e||Xt(t,e)&&t.precision===e.precision}function RF(t,e){return t===e||Xt(t,e)&&t.byteWidth===e.byteWidth}function hb(t,e){return t===e||Xt(t,e)&&t.unit===e.unit}function yl(t,e){return t===e||Xt(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function vl(t,e){return t===e||Xt(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function GA(t,e){return t===e||Xt(t,e)&&t.children.length===e.children.length&&Vn.compareManyFields(t.children,e.children)}function jF(t,e){return t===e||Xt(t,e)&&t.children.length===e.children.length&&Vn.compareManyFields(t.children,e.children)}function gb(t,e){return t===e||Xt(t,e)&&t.mode===e.mode&&t.typeIds.every((r,i)=>r===e.typeIds[i])&&Vn.compareManyFields(t.children,e.children)}function VF(t,e){return t===e||Xt(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Vn.visit(t.indices,e.indices)&&Vn.visit(t.dictionary,e.dictionary)}function wp(t,e){return t===e||Xt(t,e)&&t.unit===e.unit}function bl(t,e){return t===e||Xt(t,e)&&t.unit===e.unit}function ZF(t,e){return t===e||Xt(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Vn.compareManyFields(t.children,e.children)}function GF(t,e){return t===e||Xt(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Vn.compareManyFields(t.children,e.children)}function js(t,e){return Vn.compareSchemas(t,e)}function WA(t,e){return Vn.compareFields(t,e)}function _p(t,e){return Vn.visit(t,e)}var H,Vn,wl=h(()=>{fr();H=class extends V{compareSchemas(e,r){return e===r||r instanceof e.constructor&&this.compareManyFields(e.fields,r.fields)}compareManyFields(e,r){return e===r||Array.isArray(e)&&Array.isArray(r)&&e.length===r.length&&e.every((i,n)=>this.compareFields(i,r[n]))}compareFields(e,r){return e===r||r instanceof e.constructor&&e.name===r.name&&e.nullable===r.nullable&&this.visit(e.type,r.type)}};H.prototype.visitNull=di;H.prototype.visitBool=di;H.prototype.visitInt=pi;H.prototype.visitInt8=pi;H.prototype.visitInt16=pi;H.prototype.visitInt32=pi;H.prototype.visitInt64=pi;H.prototype.visitUint8=pi;H.prototype.visitUint16=pi;H.prototype.visitUint32=pi;H.prototype.visitUint64=pi;H.prototype.visitFloat=bp;H.prototype.visitFloat16=bp;H.prototype.visitFloat32=bp;H.prototype.visitFloat64=bp;H.prototype.visitUtf8=di;H.prototype.visitLargeUtf8=di;H.prototype.visitUtf8View=di;H.prototype.visitBinary=di;H.prototype.visitLargeBinary=di;H.prototype.visitBinaryView=di;H.prototype.visitFixedSizeBinary=RF;H.prototype.visitDate=hb;H.prototype.visitDateDay=hb;H.prototype.visitDateMillisecond=hb;H.prototype.visitTimestamp=yl;H.prototype.visitTimestampSecond=yl;H.prototype.visitTimestampMillisecond=yl;H.prototype.visitTimestampMicrosecond=yl;H.prototype.visitTimestampNanosecond=yl;H.prototype.visitTime=vl;H.prototype.visitTimeSecond=vl;H.prototype.visitTimeMillisecond=vl;H.prototype.visitTimeMicrosecond=vl;H.prototype.visitTimeNanosecond=vl;H.prototype.visitDecimal=di;H.prototype.visitList=GA;H.prototype.visitLargeList=GA;H.prototype.visitStruct=jF;H.prototype.visitUnion=gb;H.prototype.visitDenseUnion=gb;H.prototype.visitSparseUnion=gb;H.prototype.visitDictionary=VF;H.prototype.visitInterval=wp;H.prototype.visitIntervalDayTime=wp;H.prototype.visitIntervalYearMonth=wp;H.prototype.visitIntervalMonthDayNano=wp;H.prototype.visitDuration=bl;H.prototype.visitDurationSecond=bl;H.prototype.visitDurationMillisecond=bl;H.prototype.visitDurationMicrosecond=bl;H.prototype.visitDurationNanosecond=bl;H.prototype.visitFixedSizeList=ZF;H.prototype.visitMap=GF;Vn=new H});function Fr(t){let e=t.type,r=new(VA.getVisitFn(e)())(t);if(e.children&&e.children.length>0){let i=t.children||[],n={nullValues:t.nullValues},o=Array.isArray(i)?((s,a)=>i[a]||n):(({name:s})=>i[s]||n);for(let[s,a]of e.children.entries()){let{type:c}=a,u=o(a,s);r.children.push(Fr(Object.assign(Object.assign({},u),{type:c})))}}return r}function Ya(t,e){if(t instanceof W||t instanceof F||t.type instanceof D||ArrayBuffer.isView(t))return qt(t);let r={type:e??xp(t),nullValues:[null]},i=[...Ip(r)(t)],n=i.length===1?i[0]:i.reduce((o,s)=>o.concat(s));return D.isDictionary(n.type)?n.memoize():n}function yb(t){let e=Ya(t),r=new le(new se(e.type.children),e.data[0]);return new ve(r)}function xp(t){if(t.length===0)return new tt;let e=0,r=0,i=0,n=0,o=0,s=0,a=0,c=0;for(let u of t){if(u==null){++e;continue}switch(typeof u){case"bigint":++s;continue;case"boolean":++a;continue;case"number":++n;continue;case"string":++o;continue;case"object":Array.isArray(u)?++r:Object.prototype.toString.call(u)==="[object Date]"?++c:++i;continue}throw new TypeError("Unable to infer Vector type from input values, explicit type declaration expected.")}if(n+e===t.length)return new mt;if(o+e===t.length)return new st(new zt,new ot);if(s+e===t.length)return new Ar;if(a+e===t.length)return new Lt;if(c+e===t.length)return new Fn;if(r+e===t.length){let u=t,l=xp(u[u.findIndex(f=>f!=null)]);if(u.every(f=>f==null||_p(l,xp(f))))return new rt(new C("",l,!0))}else if(i+e===t.length){let u=new Map;for(let l of t)for(let f of Object.keys(l))!u.has(f)&&l[f]!=null&&u.set(f,new C(f,xp([l[f]]),!0));return new ue([...u.values()])}throw new TypeError("Unable to infer Vector type from input values, explicit type declaration expected.")}function Ip(t){let{["queueingStrategy"]:e="count"}=t,{["highWaterMark"]:r=e!=="bytes"?Number.POSITIVE_INFINITY:Math.pow(2,14)}=t,i=e!=="bytes"?"length":"byteLength";return function*(n){let o=0,s=Fr(t);for(let a of n)s.append(a)[i]>=r&&++o&&(yield s.toVector());(s.finish().length>0||o===0)&&(yield s.toVector())}}function vb(t){let{["queueingStrategy"]:e="count"}=t,{["highWaterMark"]:r=e!=="bytes"?Number.POSITIVE_INFINITY:Math.pow(2,14)}=t,i=e!=="bytes"?"length":"byteLength";return function(n){return Zt(this,arguments,function*(){var o,s,a,c;let u=0,l=Fr(t);try{for(var f=!0,d=xr(n),p;p=yield ne(d.next()),o=p.done,!o;f=!0){c=p.value,f=!1;let m=c;l.append(m)[i]>=r&&++u&&(yield yield ne(l.toVector()))}}catch(m){s={error:m}}finally{try{!f&&!o&&(a=d.return)&&(yield ne(a.call(d)))}finally{if(s)throw s.error}}(l.finish().length>0||u===0)&&(yield yield ne(l.toVector()))})}}var gl=h(()=>{ar();Mt();Be();qr();Pt();ZA();Vs();mi();wl()});function $p(t,e){return WF(t,e.map(r=>r.data.concat()))}function WF(t,e){let r=[...t.fields],i=[],n={numBatches:e.reduce((f,d)=>Math.max(f,d.length),0)},o=0,s=0,a=-1,c=e.length,u,l=[];for(;n.numBatches-- >0;){for(s=Number.POSITIVE_INFINITY,a=-1;++a<c;)l[a]=u=e[a].shift(),s=Math.min(s,u?u.length:s);Number.isFinite(s)&&(l=JF(r,s,l,e,n),s>0&&(i[o++]=U({type:new ue(r),length:s,nullCount:0,children:l.slice()})))}return[t=t.assign(r),i.map(f=>new le(t,f))]}function JF(t,e,r,i,n){var o;let s=(e+63&-64)>>3;for(let a=-1,c=i.length;++a<c;){let u=r[a],l=u?.length;if(l>=e)l===e?r[a]=u:(r[a]=u.slice(0,e),n.numBatches=Math.max(n.numBatches,i[a].unshift(u.slice(e,l-e))));else{let f=t[a];t[a]=f.clone({nullable:!0}),r[a]=(o=u?._changeLengthAndBackfillNullBitmap(e))!==null&&o!==void 0?o:U({type:f.type,length:e,nullCount:e,nullBitmap:new Uint8Array(s)})}}return r}var JA=h(()=>{qr();Be();mi()});function bb(t){let e={},r=Object.entries(t);for(let[i,n]of r)e[i]=qt(n);return new ve(e)}function wb(t){let e={},r=Object.entries(t);for(let[i,n]of r)e[i]=Ya(n);return new ve(e)}var KA,HA,ve,Vs=h(()=>{Qe();qr();gl();Pt();Mt();Be();wl();JA();ip();fs();Er();op();sp();Va();mi();HA=Symbol.for("apache-arrow/Table"),ve=class t{static isTable(e){return e?.[HA]===!0}constructor(...e){var r,i;if(e.length===0)return this.batches=[],this.schema=new se([]),this._offsets=[0],this;let n,o;e[0]instanceof se&&(n=e.shift()),e.at(-1)instanceof Uint32Array&&(o=e.pop());let s=c=>{if(c){if(c instanceof le)return[c];if(c instanceof t)return c.batches;if(c instanceof W){if(c.type instanceof ue)return[new le(new se(c.type.children),c)]}else{if(Array.isArray(c))return c.flatMap(u=>s(u));if(typeof c[Symbol.iterator]=="function")return[...c].flatMap(u=>s(u));if(typeof c=="object"){let u=Object.keys(c),l=u.map(p=>new F([c[p]])),f=n??new se(u.map((p,m)=>new C(String(p),l[m].type,l[m].nullable))),[,d]=$p(f,l);return d.length===0?[new le(c)]:d}}}return[]},a=e.flatMap(c=>s(c));if(n=(i=n??((r=a[0])===null||r===void 0?void 0:r.schema))!==null&&i!==void 0?i:new se([]),!(n instanceof se))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let c of a){if(!(c instanceof le))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!js(n,c.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=a,this._offsets=o??ep(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,r)=>e+r.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Qd(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(ds(e,this.numRows))}set(e,r){}indexOf(e,r){return-1}[Symbol.iterator](){return this.batches.length>0?Wa.visit(new F(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
14
|
+
${this.toArray().join(`,
|
|
15
|
+
`)}
|
|
16
|
+
]`}concat(...e){let r=this.schema,i=this.data.concat(e.flatMap(({data:n})=>n));return new t(r,i.map(n=>new le(r,n)))}slice(e,r){let i=this.schema;[e,r]=al({length:this.numRows},e,r);let n=tp(this.data,this._offsets,e,r);return new t(i,n.map(o=>new le(i,o)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(r=>r.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){let r=this.data.map(i=>i.children[e]);if(r.length===0){let{type:i}=this.schema.fields[e],n=U({type:i,length:0,nullCount:0});r.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new F(r)}return null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=[...this.batches];if(e>-1&&e<this.numCols){r||(r=new F([U({type:new tt,length:this.numRows})]));let o=i.fields.slice(),s=o[e].clone({type:r.type}),a=this.schema.fields.map((c,u)=>this.getChildAt(u));[o[e],a[e]]=[s,r],[i,n]=$p(i,a)}return new t(i,n)}select(e){let r=this.schema.fields.reduce((i,n,o)=>i.set(n.name,o),new Map);return this.selectAt(e.map(i=>r.get(i)).filter(i=>i>-1))}selectAt(e){let r=this.schema.selectAt(e),i=this.batches.map(n=>n.selectAt(e));return new t(r,i)}assign(e){let r=this.schema.fields,[i,n]=e.schema.fields.reduce((a,c,u)=>{let[l,f]=a,d=r.findIndex(p=>p.name===c.name);return~d?f[d]=u:l.push(u),a},[[],[]]),o=this.schema.assign(e.schema),s=[...r.map((a,c)=>[c,n[c]]).map(([a,c])=>c===void 0?this.getChildAt(a):e.getChildAt(c)),...i.map(a=>e.getChildAt(a))].filter(Boolean);return new t(...$p(o,s))}};KA=Symbol.toStringTag;ve[KA]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[HA]=!0,t.isValid=Ga(ll),t.get=Ga(at.getVisitFn(y.Struct)),t.set=rp($t.getVisitFn(y.Struct)),t.indexOf=np(gs.getVisitFn(y.Struct)),"Table"))(ve.prototype);Object.defineProperty(ve,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===ve&&ve.isTable(e)}})});function qA(t,e,r=e.reduce((i,n)=>Math.max(i,n.length),0)){var i;let n=[...t.fields],o=[...e],s=(r+63&-64)>>3;for(let[a,c]of t.fields.entries()){let u=e[a];(!u||u.length!==r)&&(n[a]=c.clone({nullable:!0}),o[a]=(i=u?._changeLengthAndBackfillNullBitmap(r))!==null&&i!==void 0?i:U({type:c.type,length:r,nullCount:r,nullBitmap:new Uint8Array(s)}))}return[t.assign(n),U({type:new ue(n),length:r,children:o})]}function QA(t,e,r=new Map){var i,n;if(((i=t?.length)!==null&&i!==void 0?i:0)>0&&t?.length===e?.length)for(let o=-1,s=t.length;++o<s;){let{type:a}=t[o],c=e[o];for(let u of[c,...((n=c?.dictionary)===null||n===void 0?void 0:n.data)||[]])QA(a.children,u?.children,r);if(D.isDictionary(a)){let{id:u}=a;if(!r.has(u))c?.dictionary&&r.set(u,c.dictionary);else if(r.get(u)!==c.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}}return r}var YA,XA,le,Zs,mi=h(()=>{qr();Vs();Pt();Mt();Be();Va();fs();Er();op();sp();XA=Symbol.for("apache-arrow/RecordBatch"),le=class t{static isRecordBatch(e){return e?.[XA]===!0}constructor(...e){switch(e.length){case 3:case 2:{if([this.schema]=e,!(this.schema instanceof se))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=U({nullCount:0,type:new ue(this.schema.fields),children:this.schema.fields.map(r=>U({type:r.type,nullCount:0}))}),this._metadata=new Map]=e,!(this.data instanceof W))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=qA(this.schema,this.data.children,this.data.length);break}case 1:{let[r]=e,{fields:i,children:n,length:o}=Object.keys(r).reduce((c,u,l)=>(c.children[l]=r[u],c.length=Math.max(c.length,r[u].length),c.fields[l]=C.new({name:u,type:r[u].type,nullable:!0}),c),{length:0,fields:new Array,children:new Array}),s=new se(i),a=U({type:new ue(i),length:o,children:n,nullCount:0});[this.schema,this.data]=qA(s,a.children,o),this._metadata=new Map;break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get metadata(){return this._metadata}get dictionaries(){return this._dictionaries||(this._dictionaries=QA(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return at.visit(this.data,e)}at(e){return this.get(ds(e,this.numRows))}set(e,r){return $t.visit(this.data,e,r)}indexOf(e,r){return gs.visit(this.data,e,r)}[Symbol.iterator](){return Wa.visit(new F([this.data]))}toArray(){return[...this]}concat(...e){return new ve(this.schema,[this,...e])}slice(e,r){let[i]=new F([this.data]).slice(e,r).data;return new t(this.schema,i,this._metadata)}getChild(e){var r;return this.getChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new F([this.data.children[e]]):null}setChild(e,r){var i;return this.setChildAt((i=this.schema.fields)===null||i===void 0?void 0:i.findIndex(n=>n.name===e),r)}setChildAt(e,r){let i=this.schema,n=this.data;if(e>-1&&e<this.numCols){r||(r=new F([U({type:new tt,length:this.numRows})]));let o=i.fields.slice(),s=n.children.slice(),a=o[e].clone({type:r.type});[o[e],s[e]]=[a,r.data[0]],i=new se(o,new Map(this.schema.metadata)),n=U({type:new ue(o),length:n.length,children:s})}return new t(i,n,this._metadata)}select(e){let r=this.schema.select(e),i=new ue(r.fields),n=[];for(let o of e){let s=this.schema.fields.findIndex(a=>a.name===o);~s&&(n[s]=this.data.children[s])}return new t(r,U({type:i,length:this.numRows,children:n}),this._metadata)}selectAt(e){let r=this.schema.selectAt(e),i=e.map(o=>this.data.children[o]).filter(Boolean),n=U({type:new ue(r.fields),length:this.numRows,children:i});return new t(r,n,this._metadata)}};YA=Symbol.toStringTag;le[YA]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t[XA]=!0,"RecordBatch"))(le.prototype);Object.defineProperty(le,Symbol.hasInstance,{value:function(e){return Function.prototype[Symbol.hasInstance].call(this,e)||this===le&&le.isRecordBatch(e)}});Zs=class extends le{constructor(e,r){let i=e.fields.map(o=>U({type:o.type})),n=U({type:new ue(e.fields),length:0,nullCount:0,children:i});super(e,n,r||new Map)}}});function Tp(t,e=0){for(let r=-1,i=Xa.length;++r<i;)if(Xa[r]!==t[e+r])return!1;return!0}var xb,Ib,eO,tO,Do,Gs,Ws,Sp,_b,Xa,Qa,$b,rO,kp=h(()=>{ar();Qe();_e();so();Ei();Fv();ft();ao();dl();xb=t=>`Expected ${he[t]} Message in stream, but was null or length 0.`,Ib=t=>`Header pointer of flatbuffer-encoded ${he[t]} Message is null or length 0.`,eO=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,tO=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Do=class{constructor(e){this.source=e instanceof Qr?e:new Qr(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done?We:e.value===-1&&(e=this.readMetadataLength()).done?We:(e=this.readMetadata(e.value)).done?We:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(xb(e));return r.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let r=Z(this.source.read(e));if(r.byteLength<e)throw new Error(tO(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()}readSchema(e=!1){let r=he.Schema,i=this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Ib(r));return n}readMetadataLength(){let e=this.source.read(Sp),r=e&&new wt(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}}readMetadata(e){let r=this.source.read(e);if(!r)return We;if(r.byteLength<e)throw new Error(eO(e,r.byteLength));return{done:!1,value:Rt.decode(r)}}},Gs=class{constructor(e,r){this.source=e instanceof pr?e:gd(e)?new co(e,r):new pr(e)}[Symbol.asyncIterator](){return this}next(){return M(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done?We:e.value===-1&&(e=yield this.readMetadataLength()).done?We:(e=yield this.readMetadata(e.value)).done?We:e})}throw(e){return M(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return M(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return M(this,void 0,void 0,function*(){let r;if((r=yield this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(xb(e));return r.value})}readMessageBody(e){return M(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);let r=Z(yield this.source.read(e));if(r.byteLength<e)throw new Error(tO(e,r.byteLength));return r.byteOffset%8===0&&r.byteOffset+r.byteLength<=r.buffer.byteLength?r:r.slice()})}readSchema(){return M(this,arguments,void 0,function*(e=!1){let r=he.Schema,i=yield this.readMessage(r),n=i?.header();if(e&&!n)throw new Error(Ib(r));return n})}readMetadataLength(){return M(this,void 0,void 0,function*(){let e=yield this.source.read(Sp),r=e&&new wt(e),i=r?.readInt32(0)||0;return{done:i===0,value:i}})}readMetadata(e){return M(this,void 0,void 0,function*(){let r=yield this.source.read(e);if(!r)return We;if(r.byteLength<e)throw new Error(eO(e,r.byteLength));return{done:!1,value:Rt.decode(r)}})}},Ws=class extends Do{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof fl?e:new fl(e)}next(){let{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:Rt.fromJSON(e.schema,he.Schema)};if(this._dictionaryIndex<e.dictionaries.length){let r=e.dictionaries[this._dictionaryIndex++];return this._body=r.data.columns,{done:!1,value:Rt.fromJSON(r,he.DictionaryBatch)}}if(this._batchIndex<e.batches.length){let r=e.batches[this._batchIndex++];return this._body=r.columns,{done:!1,value:Rt.fromJSON(r,he.RecordBatch)}}return this._body=[],We}readMessageBody(e){return r(this._body);function r(i){return(i||[]).reduce((n,o)=>[...n,...o.VALIDITY&&[o.VALIDITY]||[],...o.TYPE_ID&&[o.TYPE_ID]||[],...o.OFFSET&&[o.OFFSET]||[],...o.DATA&&[o.DATA]||[],...o.VIEWS&&[o.VIEWS]||[],...o.VARIADIC_DATA_BUFFERS||[],...r(o.children)],[])}}readMessage(e){let r;if((r=this.next()).done)return null;if(e!=null&&r.value.headerType!==e)throw new Error(xb(e));return r.value}readSchema(){let e=he.Schema,r=this.readMessage(e),i=r?.header();if(!r||!i)throw new Error(Ib(e));return i}},Sp=4,_b="ARROW1",Xa=new Uint8Array(_b.length);for(let t=0;t<_b.length;t+=1)Xa[t]=_b.codePointAt(t);Qa=Xa.length,$b=Qa+Sp,rO=Qa*2+Sp});var Sb,Tb,nO,iO=h(()=>{Ba();Sb=class{constructor(){this.LZ4_FRAME_MAGIC=new Uint8Array([4,34,77,24]),this.MIN_HEADER_LENGTH=7}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)&&this._hasValidVersion(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.LZ4_FRAME_MAGIC.every((r,i)=>e[i]===r)}_hasValidVersion(e){return(e[4]&192)>>6===1}},Tb=class{constructor(){this.ZSTD_MAGIC=new Uint8Array([40,181,47,253]),this.MIN_HEADER_LENGTH=6}isValidCodecEncode(e){let r=new Uint8Array([1,2,3,4,5,6,7,8]),i=e.encode(r);return this._isValidCompressed(i)}_isValidCompressed(e){return this._hasMinimumLength(e)&&this._hasValidMagicNumber(e)}_hasMinimumLength(e){return e.length>=this.MIN_HEADER_LENGTH}_hasValidMagicNumber(e){return this.ZSTD_MAGIC.every((r,i)=>e[i]===r)}},nO={[_t.LZ4_FRAME]:new Sb,[_t.ZSTD]:new Tb}});var kb,No,Ap=h(()=>{Ba();iO();kb=class{constructor(){this.registry={}}set(e,r){if(r?.encode&&typeof r.encode=="function"&&!nO[e].isValidCodecEncode(r))throw new Error(`Encoder for ${_t[e]} is not valid.`);this.registry[e]=r}get(e){var r;return((r=this.registry)===null||r===void 0?void 0:r[e])||null}},No=new kb});function cO(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*oO(t){let e=Qt.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function sO(t){return Zt(this,arguments,function*(){let r=yield ne(Qt.from(t));try{if(!(yield ne(r.open({autoDestroy:!1}))).closed)do yield yield ne(r);while(!(yield ne(r.reset().open())).closed)}finally{yield ne(r.cancel())}})}function HF(t){return new xn(new Ob(t))}function qF(t){let e=t.peek(Qa+7&-8);return e&&e.byteLength>=4?Tp(e)?new gi(new Bp(t.read())):new xn(new tc(t)):new xn(new tc((function*(){})()))}function YF(t){return M(this,void 0,void 0,function*(){let e=yield t.peek(Qa+7&-8);return e&&e.byteLength>=4?Tp(e)?new gi(new Bp(yield t.read())):new hi(new rc(t)):new hi(new rc((function(){return Zt(this,arguments,function*(){})})()))})}function XF(t){return M(this,void 0,void 0,function*(){let{size:e}=yield t.stat(),r=new co(t,e);return e>=rO&&Tp(yield r.readAt(0,Qa+7&-8))?new ec(new Ab(r)):new hi(new rc(r))})}var Qt,xn,hi,gi,ec,Op,tc,rc,Bp,Ab,Ob,_l=h(()=>{ar();qr();Pt();Be();Qe();Lv();Uu();so();ao();Fv();jA();mi();dl();kp();Ei();Ap();Pn();_e();Qt=class t extends bs{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){let r=this._impl.open(e);return $r(r)?r.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return bt.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return bt.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof t?e:md(e)?HF(e):gd(e)?XF(e):$r(e)?M(this,void 0,void 0,function*(){return yield t.from(yield e)}):yd(e)||zu(e)||bd(e)||Jr(e)?YF(new pr(e)):qF(new Qr(e))}static readAll(e){return e instanceof t?e.isSync()?oO(e):sO(e):md(e)||ArrayBuffer.isView(e)||an(e)||hd(e)?oO(e):sO(e)}},xn=class extends Qt{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Zt(this,arguments,function*(){yield ne(yield*ka(xr(this[Symbol.iterator]())))})}},hi=class extends Qt{constructor(e){super(e),this._impl=e}readAll(){return M(this,void 0,void 0,function*(){var e,r,i,n;let o=new Array;try{for(var s=!0,a=xr(this),c;c=yield a.next(),e=c.done,!e;s=!0){n=c.value,s=!1;let u=n;o.push(u)}}catch(u){r={error:u}}finally{try{!s&&!e&&(i=a.return)&&(yield i.call(a))}finally{if(r)throw r.error}}return o})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},gi=class extends xn{constructor(e){super(e),this._impl=e}},ec=class extends hi{constructor(e){super(e),this._impl=e}},Op=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,r,i){let n;if(e.compression!=null){let s=No.get(e.compression.type);if(s?.decode&&typeof s.decode=="function"){let{decommpressedBody:a,buffers:c}=this._decompressBuffers(e,r,s);n=this._loadCompressedVectors(e,a,this.schema.fields),e=new ut(e.length,e.nodes,c,null)}else throw new Error("Record batch is compressed but codec not found")}else n=this._loadVectors(e,r,this.schema.fields);let o=U({type:new ue(this.schema.fields),length:e.length,children:n});return new le(this.schema,o,i)}_loadDictionaryBatch(e,r){let{id:i,isDelta:n}=e,{dictionaries:o,schema:s}=this,a=o.get(i),c=s.dictionaries.get(i),u;if(e.data.compression!=null){let l=No.get(e.data.compression.type);if(l?.decode&&typeof l.decode=="function"){let{decommpressedBody:f,buffers:d}=this._decompressBuffers(e.data,r,l);u=this._loadCompressedVectors(e.data,f,[c]),e=new Ct(new ut(e.data.length,e.data.nodes,d,null,e.data.variadicBufferCounts),i,n)}else throw new Error("Dictionary batch is compressed but codec not found")}else u=this._loadVectors(e.data,r,[c]);return(a&&n?a.concat(new F(u)):new F(u)).memoize()}_loadVectors(e,r,i){return new qa(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}_loadCompressedVectors(e,r,i){return new hp(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}_decompressBuffers(e,r,i){let n=[],o=[],s=0;for(let{offset:a,length:c}of e.buffers){if(c===0){n.push(new Uint8Array(0)),o.push(new nt(s,0));continue}let u=new wt(r.subarray(a,a+c)),l=de(u.readInt64(0)),f=u.bytes().subarray(8),d=l===-1?f:i.decode(f);n.push(d);let p=(s+7&-8)-s;s+=p,o.push(new nt(s,d.length)),s+=d.length}return{decommpressedBody:n,buffers:o}}},tc=class extends Op{constructor(e,r){super(r),this._reader=md(e)?new Ws(this._handle=e):new Do(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=cO(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):We}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):We}next(){if(this.closed)return We;let e,{_reader:r}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n,e.metadata)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Zs(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},rc=class extends Op{constructor(e,r){super(r),this._reader=new Gs(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return M(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return M(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=cO(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return M(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):We})}return(e){return M(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):We})}next(){return M(this,void 0,void 0,function*(){if(this.closed)return We;let e,{_reader:r}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n,e.metadata)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;let i=e.header(),n=yield r.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,o)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new Zs(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return M(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}},Bp=class extends tc{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,r){super(e instanceof pl?e:new pl(e),r)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let r of this._footer.dictionaryBatches())r&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var r;if(this.closed)return null;this._footer||this.open();let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(he.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),s=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,s,n.metadata)}}return null}_readDictionaryBatch(e){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&this._handle.seek(i.offset)){let n=this._reader.readMessage(he.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),s=this._reader.readMessageBody(n.bodyLength),a=this._loadDictionaryBatch(o,s);this.dictionaries.set(o.id,a)}}}_readFooter(){let{_handle:e}=this,r=e.size-$b,i=e.readInt32(r),n=e.readAt(r-i,i);return oi.decode(n)}_readNextMessageAndValidate(e){var r;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(this._recordBatchIndex);if(i&&this._handle.seek(i.offset))return this._reader.readMessage(e)}return null}},Ab=class extends rc{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,...r){let i=typeof r[0]!="number"?r.shift():void 0,n=r[0]instanceof Map?r.shift():void 0;super(e instanceof co?e:new co(e,i),n)}isFile(){return!0}isAsync(){return!0}open(e){let r=Object.create(null,{open:{get:()=>super.open}});return M(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let i of this._footer.dictionaryBatches())i&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield r.open.call(this,e)})}readRecordBatch(e){return M(this,void 0,void 0,function*(){var r;if(this.closed)return null;this._footer||(yield this.open());let i=(r=this._footer)===null||r===void 0?void 0:r.getRecordBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(he.RecordBatch);if(n?.isRecordBatch()){let o=n.header(),s=yield this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(o,s,n.metadata)}}return null})}_readDictionaryBatch(e){return M(this,void 0,void 0,function*(){var r;let i=(r=this._footer)===null||r===void 0?void 0:r.getDictionaryBatch(e);if(i&&(yield this._handle.seek(i.offset))){let n=yield this._reader.readMessage(he.DictionaryBatch);if(n?.isDictionaryBatch()){let o=n.header(),s=yield this._reader.readMessageBody(n.bodyLength),a=this._loadDictionaryBatch(o,s);this.dictionaries.set(o.id,a)}}})}_readFooter(){return M(this,void 0,void 0,function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let r=e.size-$b,i=yield e.readInt32(r),n=yield e.readAt(r-i,i);return oi.decode(n)})}_readNextMessageAndValidate(e){return M(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){let r=this._footer.getRecordBatch(this._recordBatchIndex);if(r&&(yield this._handle.seek(r.offset)))return yield this._reader.readMessage(e)}return null})}},Ob=class extends tc{constructor(e,r){super(e,r)}_loadVectors(e,r,i){return new mp(r,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion,e.variadicBufferCounts).visitMany(i)}}});function Mr(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new nt(this._byteLength,e)),this._byteLength+=e,this}function QF(t){var e;let{type:r,length:i,typeIds:n,valueOffsets:o}=t;if(Mr.call(this,n),r.mode===Se.Sparse)return Bb.call(this,t);if(r.mode===Se.Dense){if(t.offset<=0)return Mr.call(this,o),Bb.call(this,t);{let s=new Int32Array(i),a=Object.create(null),c=Object.create(null);for(let u,l,f=-1;++f<i;)(u=n[f])!==void 0&&((l=a[u])===void 0&&(l=a[u]=o[f]),s[f]=o[f]-l,c[u]=((e=c[u])!==null&&e!==void 0?e:0)+1);Mr.call(this,s),this.visitMany(t.children.map((u,l)=>{let f=r.typeIds[l],d=a[f],p=c[f];return u.slice(d,Math.min(i,p))}))}}return this}function eM(t){let e;return t.nullCount>=t.length?Mr.call(this,new Uint8Array(t.length+7>>3)):(e=t.values)instanceof Uint8Array?Mr.call(this,ps(t.offset,t.length,e)):Mr.call(this,ms(t.values))}function yi(t){return Mr.call(this,t.values.subarray(0,t.length*t.stride))}function Dp(t){let{length:e,values:r,valueOffsets:i}=t,n=de(i[0]),o=de(i[e]),s=Math.min(o-n,r.byteLength-n);return Mr.call(this,wd(-n,e+1,i)),Mr.call(this,r.subarray(n,n+s)),this}function uO(t){let{offset:e,length:r,stride:i,values:n,variadicBuffers:o=[]}=t;if(!n)throw new Error("BinaryView data is missing view buffer");let s=e*i,a=s+r*i;Mr.call(this,n.subarray(s,a));for(let c of o)Mr.call(this,c);return this._variadicBufferCounts.push(o.length),this}function Np(t){let{length:e,valueOffsets:r}=t;if(r){let i=de(r[0]),n=de(r[e]);return Mr.call(this,wd(-i,e+1,r)),this.visit(t.children[0].slice(i,n-i))}return this.visit(t.children[0])}function Bb(t){return this.visitMany(t.type.children.map((e,r)=>t.children[r]).filter(Boolean))[0]}var Je,lO=h(()=>{Pt();fr();Qe();mi();ft();hs();so();Be();Pn();Je=class t extends V{static assemble(...e){let r=n=>n.flatMap(o=>Array.isArray(o)?r(o):o instanceof le?o.data.children:o.data),i=new t;return i.visitMany(r(e)),i}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[],this._variadicBufferCounts=[]}visit(e){if(e instanceof F)return this.visitMany(e.data),this;let{type:r}=e;if(!D.isDictionary(r)){let{length:i}=e;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(D.isUnion(r))this.nodes.push(new Yr(i,0));else{let{nullCount:n}=e;D.isNull(r)||Mr.call(this,n<=0?new Uint8Array(0):ps(e.offset,i,e.nullBitmap)),this.nodes.push(new Yr(i,n))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}get variadicBufferCounts(){return this._variadicBufferCounts}};Je.prototype.visitBool=eM;Je.prototype.visitInt=yi;Je.prototype.visitFloat=yi;Je.prototype.visitUtf8=Dp;Je.prototype.visitLargeUtf8=Dp;Je.prototype.visitUtf8View=uO;Je.prototype.visitBinary=Dp;Je.prototype.visitLargeBinary=Dp;Je.prototype.visitBinaryView=uO;Je.prototype.visitFixedSizeBinary=yi;Je.prototype.visitDate=yi;Je.prototype.visitTimestamp=yi;Je.prototype.visitTime=yi;Je.prototype.visitDecimal=yi;Je.prototype.visitList=Np;Je.prototype.visitLargeList=Np;Je.prototype.visitStruct=Bb;Je.prototype.visitUnion=QF;Je.prototype.visitInterval=yi;Je.prototype.visitDuration=yi;Je.prototype.visitFixedSizeList=Np;Je.prototype.visitMap=Np});var zp,fO=h(()=>{fr();Ad();Qe();zp=class extends V{visit(e){return e==null?void 0:super.visit(e)}visitNull({typeId:e}){return{name:Y[e].toLowerCase()}}visitInt({typeId:e,bitWidth:r,isSigned:i}){return{name:Y[e].toLowerCase(),bitWidth:r,isSigned:i}}visitFloat({typeId:e,precision:r}){return{name:Y[e].toLowerCase(),precision:Ie[r]}}visitBinary({typeId:e}){return{name:Y[e].toLowerCase()}}visitLargeBinary({typeId:e}){return{name:Y[e].toLowerCase()}}visitBinaryView({typeId:e}){return{name:Y[e].toLowerCase()}}visitBool({typeId:e}){return{name:Y[e].toLowerCase()}}visitUtf8({typeId:e}){return{name:Y[e].toLowerCase()}}visitLargeUtf8({typeId:e}){return{name:Y[e].toLowerCase()}}visitUtf8View({typeId:e}){return{name:Y[e].toLowerCase()}}visitDecimal({typeId:e,scale:r,precision:i,bitWidth:n}){return{name:Y[e].toLowerCase(),scale:r,precision:i,bitWidth:n}}visitDate({typeId:e,unit:r}){return{name:Y[e].toLowerCase(),unit:Oe[r]}}visitTime({typeId:e,unit:r,bitWidth:i}){return{name:Y[e].toLowerCase(),unit:z[r],bitWidth:i}}visitTimestamp({typeId:e,timezone:r,unit:i}){return{name:Y[e].toLowerCase(),unit:z[i],timezone:r}}visitInterval({typeId:e,unit:r}){return{name:Y[e].toLowerCase(),unit:ye[r]}}visitDuration({typeId:e,unit:r}){return{name:Y[e].toLocaleLowerCase(),unit:z[r]}}visitList({typeId:e}){return{name:Y[e].toLowerCase()}}visitLargeList({typeId:e}){return{name:Y[e].toLowerCase()}}visitStruct({typeId:e}){return{name:Y[e].toLowerCase()}}visitUnion({typeId:e,mode:r,typeIds:i}){return{name:Y[e].toLowerCase(),mode:Se[r].toUpperCase(),typeIds:[...i]}}visitDictionary(e){return this.visit(e.dictionary)}visitFixedSizeBinary({typeId:e,byteWidth:r}){return{name:Y[e].toLowerCase(),byteWidth:r}}visitFixedSizeList({typeId:e,listSize:r}){return{name:Y[e].toLowerCase(),listSize:r}}visitMap({typeId:e,keysSorted:r}){return{name:Y[e].toLowerCase(),keysSorted:r}}}});function*Db(t){for(let e of t)yield e.reduce((r,i)=>`${r}${("0"+(i&255).toString(16)).slice(-2)}`,"").toUpperCase()}function*vi(t,e){let r=new Uint32Array(t.buffer,t.byteOffset,t.byteLength/Uint32Array.BYTES_PER_ELEMENT);for(let i=-1,n=r.length/e;++i<n;)yield`${ls.new(r.subarray((i+0)*e,(i+1)*e),!1)}`}function dO(t,e){let i=t.values,n=new DataView(i.buffer,i.byteOffset,i.byteLength),o=i.byteLength/16,s=d=>Array.from(d).map(p=>("0"+(p&255).toString(16)).slice(-2)).join("").toUpperCase(),a=Array.from({length:o},(d,p)=>{let m=p*16,g=n.getInt32(m,!0);return[m,g]}).map(([d,p])=>p>12?{SIZE:p,PREFIX_HEX:s(i.subarray(d+4,d+8)),BUFFER_INDEX:n.getInt32(d+8,!0),OFFSET:n.getInt32(d+12,!0)}:{SIZE:p,INLINED:e(i.subarray(d+4,d+4+p))}),c=[...new Set(a.map(d=>d.BUFFER_INDEX).filter(d=>d!==void 0))],u=c.map(d=>s(t.variadicBuffers[d])),l=new Map(c.map((d,p)=>[d,p]));return{VIEWS:a.map(d=>d.BUFFER_INDEX!==void 0?Object.assign(Object.assign({},d),{BUFFER_INDEX:l.get(d.BUFFER_INDEX)}):d),VARIADIC_DATA_BUFFERS:u}}var xl,pO=h(()=>{Bd();Pt();fr();Qe();Qe();hs();pp();Be();xl=class t extends V{static assemble(...e){let r=new t;return e.map(({schema:i,data:n})=>r.visitMany(i.fields,n.children))}visit({name:e},r){let{length:i}=r,{offset:n,nullCount:o,nullBitmap:s}=r,a=D.isDictionary(r.type)?r.type.indices:r.type,c=Object.assign([],r.buffers,{[Te.VALIDITY]:void 0});return Object.assign({name:e,count:i,VALIDITY:D.isNull(a)||D.isUnion(a)?void 0:o<=0?Array.from({length:i},()=>1):[...new Cn(s,n,i,null,Xd)]},super.visit(r.clone(a,n,i,0,c)))}visitNull(){return{}}visitBool({values:e,offset:r,length:i}){return{DATA:[...new Cn(e,r,i,null,Za)]}}visitInt(e){return{DATA:e.type.bitWidth<64?[...e.values]:[...vi(e.values,2)]}}visitFloat(e){return{DATA:[...e.values]}}visitUtf8(e){return{DATA:[...new F([e])],OFFSET:[...e.valueOffsets]}}visitLargeUtf8(e){return{DATA:[...new F([e])],OFFSET:[...vi(e.valueOffsets,2)]}}visitBinary(e){return{DATA:[...Db(new F([e]))],OFFSET:[...e.valueOffsets]}}visitLargeBinary(e){return{DATA:[...Db(new F([e]))],OFFSET:[...vi(e.valueOffsets,2)]}}visitBinaryView(e){return dO(e,r=>Array.from(r).map(i=>("0"+(i&255).toString(16)).slice(-2)).join("").toUpperCase())}visitUtf8View(e){return dO(e,r=>Array.from(r).map(i=>String.fromCodePoint(i)).join(""))}visitFixedSizeBinary(e){return{DATA:[...Db(new F([e]))]}}visitDate(e){return{DATA:e.type.unit===Oe.DAY?[...e.values]:[...vi(e.values,2)]}}visitTimestamp(e){return{DATA:[...vi(e.values,2)]}}visitTime(e){return{DATA:e.type.unit<z.MICROSECOND?[...e.values]:[...vi(e.values,2)]}}visitDecimal(e){return{DATA:[...vi(e.values,4)]}}visitList(e){return{OFFSET:[...e.valueOffsets],children:this.visitMany(e.type.children,e.children)}}visitLargeList(e){return{OFFSET:[...vi(e.valueOffsets,2)],children:this.visitMany(e.type.children,e.children)}}visitStruct(e){return{children:this.visitMany(e.type.children,e.children)}}visitUnion(e){return{TYPE_ID:[...e.typeIds],OFFSET:e.type.mode===Se.Dense?[...e.valueOffsets]:void 0,children:this.visitMany(e.type.children,e.children)}}visitInterval(e){switch(e.type.unit){case ye.YEAR_MONTH:return{DATA:[...e.values]};case ye.DAY_TIME:return{DATA:Zv(e.values)};case ye.MONTH_DAY_NANO:return{DATA:Gv(e.values,!0)}}}visitDuration(e){return{DATA:[...vi(e.values,2)]}}visitFixedSizeList(e){return{children:this.visitMany(e.type.children,e.children)}}visitMap(e){return{OFFSET:[...e.valueOffsets],children:this.visitMany(e.type.children,e.children)}}}});function Nb(t,e){let r=e;e instanceof ve&&(r=e.batches,t.reset(void 0,e.schema));for(let i of r)t.write(i);return t.finish()}function zb(t,e){return M(this,void 0,void 0,function*(){var r,i,n,o,s,a,c;try{for(r=!0,i=xr(e);n=yield i.next(),o=n.done,!o;r=!0){c=n.value,r=!1;let u=c;t.write(u)}}catch(u){s={error:u}}finally{try{!r&&!o&&(a=i.return)&&(yield a.call(i))}finally{if(s)throw s.error}}return t.finish()})}function mO({name:t,type:e,nullable:r}){let i=new zp;return{name:t,nullable:r,type:i.visit(e),children:(e.children||[]).map(n=>mO(n)),dictionary:D.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:i.visit(e.indices)}:void 0}}function tM(t,e,r=!1){let[i]=xl.assemble(new le({[e]:t}));return JSON.stringify({id:e,isDelta:r,data:{count:t.length,columns:i}},null,2)}function rM(t){let[e]=xl.assemble(t);return JSON.stringify({count:t.numRows,columns:e},null,2)}var Zn,bi,wi,Il,Lp=h(()=>{ar();Vs();kp();Pt();Be();so();so();Lv();Qe();wl();ao();lO();fO();pO();ft();mi();dl();Ei();Ba();Ap();_e();Zn=class extends bs{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,r){throw new Error('"throughDOM" not available in this environment')}constructor(e){if(super(),this._position=0,this._started=!1,this._compression=null,this._sink=new Xr,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,Gt(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1,compressionType:null}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1,e.compressionType!=null){if(this._writeLegacyIpcFormat)throw new Error("Legacy IPC format does not support columnar compression. Use modern IPC format (writeLegacyIpcFormat=false).");if(Object.values(_t).includes(e.compressionType))this._compression=new vs(e.compressionType);else{let r=Object.values(_t).filter(i=>typeof i=="string");throw new Error(`Unsupported compressionType: ${e.compressionType} Available types: ${r.join(", ")}`)}}else this._compression=null}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return $r(e)?e.then(r=>this.writeAll(r)):Jr(e)?zb(this,e):Nb(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,r=null){return e===this._sink||e instanceof Xr?this._sink=e:(this._sink=new Xr,e&&NT(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&zT(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!r||!js(r,this._schema))&&(r==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=r,this._writeSchema(r))),this}write(e){let r=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof ve&&!(r=e.schema))return this.finish()&&void 0;if(e instanceof le&&!(r=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(r&&!js(r,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,r)}e instanceof le?e instanceof Zs||this._writeRecordBatch(e):e instanceof ve?this.writeAll(e.batches):an(e)&&this.writeAll(e)}_writeMessage(e,r=8){let i=r-1,n=Rt.encode(e),o=n.byteLength,s=this._writeLegacyIpcFormat?4:8,a=o+s+i&~i,c=a-o-s;return e.headerType===he.RecordBatch?this._recordBatchBlocks.push(new wn(a,e.bodyLength,this._position)):e.headerType===he.DictionaryBatch&&this._dictionaryBlocks.push(new wn(a,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-s)),o>0&&this._write(n),this._writePadding(c)}_write(e){if(this._started){let r=Z(e);r&&r.byteLength>0&&(this._sink.write(r),this._position+=r.byteLength)}return this}_writeSchema(e){return this._writeMessage(Rt.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Xa)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:s}=this._assembleRecordBatch(e),a=new ut(e.numRows,i,n,this._compression,s,e.metadata),c=Rt.from(a,r);return this._writeDictionaries(e)._writeMessage(c)._writeBodyBuffers(o)}_assembleRecordBatch(e){let{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:s}=Je.assemble(e);return this._compression!=null&&({byteLength:r,bufferRegions:n,buffers:o}=this._compressBodyBuffers(o)),{byteLength:r,nodes:i,bufferRegions:n,buffers:o,variadicBufferCounts:s}}_compressBodyBuffers(e){let r=No.get(this._compression.type);if(!r?.encode||typeof r.encode!="function")throw new Error(`Codec for compression type "${_t[this._compression.type]}" has invalid encode method`);let i=0,n=[],o=[];for(let a of e){let c=Z(a);if(c.length===0){n.push(new Uint8Array(0),new Uint8Array(0)),o.push(new nt(i,0));continue}let u=r.encode(c),l=u.length<c.length,f=l?u:c,d=l?f.length:-1,p=new wt(new Uint8Array(8));p.writeInt64(0,BigInt(d)),n.push(p.bytes(),new Uint8Array(f));let m=(i+7&-8)-i;i+=m;let g=8+f.length;o.push(new nt(i,g)),i+=g}let s=(i+7&-8)-i;return i+=s,{byteLength:i,bufferRegions:o,buffers:n}}_writeDictionaryBatch(e,r,i=!1){let{byteLength:n,nodes:o,bufferRegions:s,buffers:a,variadicBufferCounts:c}=this._assembleRecordBatch(new F([e])),u=new ut(e.length,o,s,this._compression,c),l=new Ct(u,r,i),f=Rt.from(l,n);return this._writeMessage(f)._writeBodyBuffers(a)}_writeBodyBuffers(e){let r=this._compression!=null?2:1,i=new Array(r);for(let n=0;n<e.length;n+=r){let o=0;for(let a=-1;++a<r;)i[a]=e[n+a],o+=i[a].byteLength;if(o===0)continue;for(let a of i)this._write(a);let s=(o+7&-8)-o;s>0&&this._writePadding(s)}return this}_writeDictionaries(e){var r,i;for(let[n,o]of e.dictionaries){let s=(r=o?.data)!==null&&r!==void 0?r:[],a=this._seenDictionaries.get(n),c=(i=this._dictionaryDeltaOffsets.get(n))!==null&&i!==void 0?i:0;if(!a||a.data[0]!==s[0])for(let[u,l]of s.entries())this._writeDictionaryBatch(l,n,u>0);else if(c<s.length)for(let u of s.slice(c))this._writeDictionaryBatch(u,n,!0);this._seenDictionaries.set(n,o),this._dictionaryDeltaOffsets.set(n,s.length)}return this}},bi=class t extends Zn{static writeAll(e,r){let i=new t(r);return $r(e)?e.then(n=>i.writeAll(n)):Jr(e)?zb(i,e):Nb(i,e)}},wi=class t extends Zn{static writeAll(e,r){let i=new t(r);return $r(e)?e.then(n=>i.writeAll(n)):Jr(e)?zb(i,e):Nb(i,e)}constructor(e){super(e),this._autoDestroy=!0,this._writeLegacyIpcFormat=!1}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,r,i=!1){if(!i&&this._seenDictionaries.has(r))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,r,i)}_writeFooter(e){let r=oi.encode(new oi(e,Ae.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(r)._write(Int32Array.of(r.byteLength))._writeMagic()}},Il=class t extends Zn{static writeAll(e){return new t().writeAll(e)}constructor(){super(),this._autoDestroy=!0,this._recordBatches=[],this._recordBatchesWithDictionaries=[]}_writeMessage(){return this}_writeFooter(e){return this}_writeSchema(e){return this._write(`{
|
|
17
|
+
"schema": ${JSON.stringify({fields:e.fields.map(r=>mO(r))},null,2)}`)}_writeDictionaries(e){return e.dictionaries.size>0&&this._recordBatchesWithDictionaries.push(e),this}_writeDictionaryBatch(e,r,i=!1){return this._write(this._dictionaryBlocks.length===0?" ":`,
|
|
18
|
+
`),this._write(tM(e,r,i)),this._dictionaryBlocks.push(new wn(0,0,0)),this}_writeRecordBatch(e){return this._writeDictionaries(e),this._recordBatches.push(e),this}close(){if(this._recordBatchesWithDictionaries.length>0){this._write(`,
|
|
19
|
+
"dictionaries": [
|
|
20
|
+
`);for(let e of this._recordBatchesWithDictionaries)super._writeDictionaries(e);this._write(`
|
|
21
|
+
]`)}if(this._recordBatches.length>0){for(let e=-1,r=this._recordBatches.length;++e<r;)this._write(e===0?`,
|
|
22
|
+
"batches": [
|
|
23
|
+
`:`,
|
|
24
|
+
`),this._write(rM(this._recordBatches[e])),this._recordBatchBlocks.push(new wn(0,0,0));this._write(`
|
|
25
|
+
]`)}return this._schema&&this._write(`
|
|
26
|
+
}`),this._recordBatchesWithDictionaries=[],this._recordBatches=[],super.close()}}});function hO(t,e){if(Jr(t))return iM(t,e);if(an(t))return nM(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function nM(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(s){o(s,r||(r=t[Symbol.iterator]()))},pull(s){r?o(s,r):s.close()},cancel(){r?.return&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},e));function o(s,a){let c,u=null,l=s.desiredSize||null;for(;!(u=a.next(i?l:null)).done;)if(ArrayBuffer.isView(u.value)&&(c=Z(u.value))&&(l!=null&&i&&(l=l-c.byteLength+1),u.value=c),s.enqueue(u.value),l!=null&&--l<=0)return;s.close()}}function iM(t,e){let r=null,i=e?.type==="bytes"||!1,n=e?.highWaterMark||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(s){return M(this,void 0,void 0,function*(){yield o(s,r||(r=t[Symbol.asyncIterator]()))})},pull(s){return M(this,void 0,void 0,function*(){r?yield o(s,r):s.close()})},cancel(){return M(this,void 0,void 0,function*(){r?.return&&(yield r.return()),r=null})}}),Object.assign({highWaterMark:i?n:void 0},e));function o(s,a){return M(this,void 0,void 0,function*(){let c,u=null,l=s.desiredSize||null;for(;!(u=yield a.next(i?l:null)).done;)if(ArrayBuffer.isView(u.value)&&(c=Z(u.value))&&(l!=null&&i&&(l=l-c.byteLength+1),u.value=c),s.enqueue(u.value),l!=null&&--l<=0)return;s.close()})}}var gO=h(()=>{ar();ft();Ei()});function bO(t){return new Lb(t)}var Lb,yO,vO,wO=h(()=>{ar();gl();Lb=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{["readableStrategy"]:r,["writableStrategy"]:i,["queueingStrategy"]:n="count"}=e,o=OT(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Fr(o),this._getSize=n!=="bytes"?yO:vO;let{["highWaterMark"]:s=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},r),{["highWaterMark"]:a=n==="bytes"?Math.pow(2,14):1e3}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:c=>{this._maybeFlush(this._builder,this._controller=c)},start:c=>{this._maybeFlush(this._builder,this._controller=c)}},{highWaterMark:s,size:n!=="bytes"?yO:vO}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:c=>this._writeValueAndReturnChunkSize(c)})}_writeValueAndReturnChunkSize(e){let r=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-r}_maybeFlush(e,r){r!=null&&(this._bufferedSize>=r.desiredSize&&++this._numChunks&&this._enqueue(r,e.toVector()),e.finished&&((e.length>0||this._numChunks===0)&&++this._numChunks&&this._enqueue(r,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(r,null)))}_enqueue(e,r){this._bufferedSize=0,this._controller=null,r==null?e.close():e.enqueue(r)}},yO=t=>{var e;return(e=t?.length)!==null&&e!==void 0?e:0},vO=t=>{var e;return(e=t?.byteLength)!==null&&e!==void 0?e:0}});function Ep(t,e){let r=new Xr,i=null,n=new ReadableStream({cancel(){return M(this,void 0,void 0,function*(){yield r.close()})},start(a){return M(this,void 0,void 0,function*(){yield s(a,i||(i=yield o()))})},pull(a){return M(this,void 0,void 0,function*(){i?yield s(a,i):a.close()})}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function o(){return M(this,void 0,void 0,function*(){return yield(yield Qt.from(r)).open(e)})}function s(a,c){return M(this,void 0,void 0,function*(){let u=a.desiredSize,l=null;for(;!(l=yield c.next()).done;)if(a.enqueue(l.value),u!=null&&--u<=0)return;a.close()})}}var _O=h(()=>{ar();ao();_l()});function Up(t,e){let r=new this(t),i=new pr(r),n=new ReadableStream({cancel(){return M(this,void 0,void 0,function*(){yield i.cancel()})},pull(s){return M(this,void 0,void 0,function*(){yield o(s)})},start(s){return M(this,void 0,void 0,function*(){yield o(s)})}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(r,t),readable:n};function o(s){return M(this,void 0,void 0,function*(){let a=null,c=s.desiredSize;for(;a=yield i.read(c||null);)if(s.enqueue(a),c!=null&&(c-=a.byteLength)<=0)return;s.close()})}}var xO=h(()=>{ar();ao()});function $l(t){let e=Qt.from(t);return $r(e)?e.then(r=>$l(r)):e.isAsync()?e.readAll().then(r=>new ve(r)):new ve(e.readAll())}function Pp(t,e="stream",r=null){let i={compressionType:r};return(e==="stream"?bi:wi).writeAll(t,i).toUint8Array(!0)}var IO=h(()=>{Vs();Ei();_l();Lp()});var Eb={};Ke(Eb,{isArrowData:()=>Rp,isArrowDataType:()=>Cp,isArrowField:()=>Mp,isArrowRecordBatch:()=>Vp,isArrowSchema:()=>Fp,isArrowTable:()=>Zp,isArrowVector:()=>jp});function Fp(t){return se.isSchema(t)}function Mp(t){return C.isField(t)}function Cp(t){return D.isDataType(t)}function Rp(t){return W.isData(t)}function jp(t){return F.isVector(t)}function Vp(t){return le.isRecordBatch(t)}function Zp(t){return ve.isTable(t)}var Ub=h(()=>{Mt();Be();qr();Pt();mi();Vs()});var $O,Pb=h(()=>{Od();Ba();Qe();qr();Be();Vs();Pt();fr();Mt();sl();Hd();Ge();gl();Jv();sb();Kv();Hv();qv();Yv();Qv();rb();ub();cb();eb();tb();fb();pb();db();gp();vp();yp();nb();ib();Xv();ob();ab();lb();ao();_l();Lp();IO();Ap();kp();so();mi();Ub();Bd();Rv();hs();ol();ft();Va();Yu();pp();Ub();wl();$O=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lv),Cv),Tv),fv),By),Sv),sv),Wv),Eb),{compareSchemas:js,compareFields:WA,compareTypes:_p})});var In={};Ke(In,{AsyncByteQueue:()=>Xr,AsyncByteStream:()=>pr,AsyncMessageReader:()=>Gs,AsyncRecordBatchFileReader:()=>ec,AsyncRecordBatchStreamReader:()=>hi,Binary:()=>Nt,BinaryBuilder:()=>ci,BinaryView:()=>ae,BinaryViewBuilder:()=>fi,Bool:()=>Lt,BoolBuilder:()=>ws,BufferType:()=>Te,Builder:()=>Pe,ByteStream:()=>Qr,CompressionType:()=>_t,Data:()=>W,DataType:()=>D,DateBuilder:()=>Rn,DateDay:()=>Zi,DateDayBuilder:()=>uo,DateMillisecond:()=>Gi,DateMillisecondBuilder:()=>lo,DateUnit:()=>Oe,Date_:()=>Jt,Decimal:()=>ur,DecimalBuilder:()=>fo,DenseUnion:()=>zr,DenseUnionBuilder:()=>Cs,Dictionary:()=>st,DictionaryBuilder:()=>_s,Duration:()=>Kt,DurationBuilder:()=>en,DurationMicrosecond:()=>rl,DurationMicrosecondBuilder:()=>bo,DurationMillisecond:()=>tl,DurationMillisecondBuilder:()=>vo,DurationNanosecond:()=>nl,DurationNanosecondBuilder:()=>wo,DurationSecond:()=>el,DurationSecondBuilder:()=>yo,Field:()=>C,FixedSizeBinary:()=>lr,FixedSizeBinaryBuilder:()=>po,FixedSizeList:()=>ht,FixedSizeListBuilder:()=>xs,Float:()=>Dt,Float16:()=>ri,Float16Builder:()=>Is,Float32:()=>hn,Float32Builder:()=>$s,Float64:()=>mt,Float64Builder:()=>Ss,FloatBuilder:()=>jn,Int:()=>He,Int16:()=>kr,Int16Builder:()=>ks,Int32:()=>ot,Int32Builder:()=>As,Int64:()=>Ar,Int64Builder:()=>Os,Int8:()=>Tr,Int8Builder:()=>Ts,IntBuilder:()=>Yt,Interval:()=>Et,IntervalBuilder:()=>_n,IntervalDayTime:()=>Qi,IntervalDayTimeBuilder:()=>mo,IntervalMonthDayNano:()=>Qu,IntervalMonthDayNanoBuilder:()=>go,IntervalUnit:()=>ye,IntervalYearMonth:()=>eo,IntervalYearMonthBuilder:()=>ho,JSONMessageReader:()=>Ws,LargeBinary:()=>gn,LargeBinaryBuilder:()=>ui,LargeList:()=>Nr,LargeListBuilder:()=>Es,LargeUtf8:()=>yn,LargeUtf8Builder:()=>Bo,List:()=>rt,ListBuilder:()=>Ls,MapBuilder:()=>Us,MapRow:()=>Hr,Map_:()=>Ut,Message:()=>Rt,MessageHeader:()=>he,MessageReader:()=>Do,MetadataVersion:()=>Ae,Null:()=>tt,NullBuilder:()=>Ps,Precision:()=>Ie,RecordBatch:()=>le,RecordBatchFileReader:()=>gi,RecordBatchFileWriter:()=>wi,RecordBatchJSONWriter:()=>Il,RecordBatchReader:()=>Qt,RecordBatchStreamReader:()=>xn,RecordBatchStreamWriter:()=>bi,RecordBatchWriter:()=>Zn,Schema:()=>se,SparseUnion:()=>to,SparseUnionBuilder:()=>Ms,Struct:()=>ue,StructBuilder:()=>Fs,StructRow:()=>Mn,Table:()=>ve,Time:()=>xt,TimeBuilder:()=>rn,TimeMicrosecond:()=>Ki,TimeMicrosecondBuilder:()=>ko,TimeMillisecond:()=>Ji,TimeMillisecondBuilder:()=>To,TimeNanosecond:()=>Hi,TimeNanosecondBuilder:()=>Ao,TimeSecond:()=>Wi,TimeSecondBuilder:()=>So,TimeUnit:()=>z,Timestamp:()=>It,TimestampBuilder:()=>tn,TimestampMicrosecond:()=>Yi,TimestampMicrosecondBuilder:()=>Io,TimestampMillisecond:()=>Fn,TimestampMillisecondBuilder:()=>xo,TimestampNanosecond:()=>Xi,TimestampNanosecondBuilder:()=>$o,TimestampSecond:()=>qi,TimestampSecondBuilder:()=>_o,Type:()=>y,Uint16:()=>Br,Uint16Builder:()=>Ds,Uint32:()=>Dr,Uint32Builder:()=>Ns,Uint64:()=>mn,Uint64Builder:()=>zs,Uint8:()=>Or,Uint8Builder:()=>Bs,Union:()=>Ht,UnionBuilder:()=>li,UnionMode:()=>Se,Utf8:()=>zt,Utf8Builder:()=>Oo,Utf8View:()=>Wt,Utf8ViewBuilder:()=>Rs,Vector:()=>F,Visitor:()=>V,builderThroughAsyncIterable:()=>vb,builderThroughIterable:()=>Ip,compressionRegistry:()=>No,isArrowData:()=>Rp,isArrowDataType:()=>Cp,isArrowField:()=>Mp,isArrowRecordBatch:()=>Vp,isArrowSchema:()=>Fp,isArrowTable:()=>Zp,isArrowVector:()=>jp,makeBuilder:()=>Fr,makeData:()=>U,makeTable:()=>bb,makeVector:()=>qt,tableFromArrays:()=>wb,tableFromIPC:()=>$l,tableFromJSON:()=>yb,tableToIPC:()=>Pp,util:()=>$O,vectorFromArray:()=>Ya});var _i=h(()=>{Uu();Ge();_l();Lp();gO();wO();_O();xO();Pb();Pb();bt.toDOMStream=hO;Pe.throughDOM=bO;Qt.throughDOM=Ep;gi.throughDOM=Ep;xn.throughDOM=Ep;Zn.throughDOM=Up;wi.throughDOM=Up;bi.throughDOM=Up});function SO(t){let e=0,r=0,i=0,n=0,o=0,s=0,a=0,c=0,u=0,l=new Set;for(let f of t){let d=f.geometry;switch(d.type){case"Point":r++,e++,l.add(d.coordinates.length);break;case"MultiPoint":r++,e+=d.coordinates.length;for(let m of d.coordinates)l.add(m.length);break;case"LineString":o++,i+=d.coordinates.length,n++;for(let m of d.coordinates)l.add(m.length);break;case"MultiLineString":o++;for(let m of d.coordinates){i+=m.length,n++;for(let g of m)l.add(g.length)}break;case"Polygon":u++,a++,c+=d.coordinates.length;let p=d.coordinates.flat();s+=p.length;for(let m of p)l.add(m.length);break;case"MultiPolygon":u++;for(let m of d.coordinates){a++,c+=m.length;let g=m.flat();s+=g.length;for(let v of g)l.add(v.length)}break;default:throw new Error(`Unsupported geometry type: ${d.type}`)}}return{coordLength:l.size>0?Math.max(...l):2,pointPositionsCount:e,pointFeaturesCount:r,linePositionsCount:i,linePathsCount:n,lineFeaturesCount:o,polygonPositionsCount:s,polygonObjectsCount:a,polygonRingsCount:c,polygonFeaturesCount:u}}var TO=h(()=>{"use strict"});function OO(t,e={coordLength:2,fixRingWinding:!0}){return t.map(r=>oM(r,e))}function kO(t,e,r,i){r.push(e.length),e.push(...t);for(let n=t.length;n<i.coordLength;n++)e.push(0)}function Fb(t,e,r,i){r.push(e.length);for(let n of t){e.push(...n);for(let o=n.length;o<i.coordLength;o++)e.push(0)}}function AO(t,e,r,i,n){let o=0,s=[],a=[];for(let c of t){let u=c.map(d=>d.slice(0,2)),l=zi(u.flat()),f=l<0;n.fixRingWinding&&(o===0&&!f||o>0&&f)&&(c.reverse(),l=-l),s.push(l),Fb(c,e,a,n),o++}o>0&&(i.push(s),r.push(a))}function oM(t,e){let{geometry:r}=t;if(r.type==="GeometryCollection")throw new Error("GeometryCollection type not supported");let i=[],n=[],o,s;switch(r.type){case"Point":s="Point",kO(r.coordinates,i,n,e);break;case"MultiPoint":s="Point",r.coordinates.map(a=>kO(a,i,n,e));break;case"LineString":s="LineString",Fb(r.coordinates,i,n,e);break;case"MultiLineString":s="LineString",r.coordinates.map(a=>Fb(a,i,n,e));break;case"Polygon":s="Polygon",o=[],AO(r.coordinates,i,n,o,e);break;case"MultiPolygon":s="Polygon",o=[],r.coordinates.map(a=>AO(a,i,n,o,e));break;default:throw new Error(`Unknown type: ${s}`)}return{...t,geometry:{type:s,indices:n,data:i,areas:o}}}var BO=h(()=>{"use strict";ld()});function Sl(t,e,r){let i=DO(t),n=Object.keys(i).filter(o=>i[o]!==Array);return sM(t,{propArrayTypes:i,...e},{numericPropKeys:r&&r.numericPropKeys||n,PositionDataType:r?r.PositionDataType:Float32Array,triangulate:r?r.triangulate:!0})}function DO(t){let e={};for(let r of t)if(r.properties)for(let i in r.properties){let n=r.properties[i];e[i]=dM(n,e[i])}return e}function sM(t,e,r){let{pointPositionsCount:i,pointFeaturesCount:n,linePositionsCount:o,linePathsCount:s,lineFeaturesCount:a,polygonPositionsCount:c,polygonObjectsCount:u,polygonRingsCount:l,polygonFeaturesCount:f,propArrayTypes:d,coordLength:p}=e,{numericPropKeys:m=[],PositionDataType:g=Float32Array,triangulate:v=!0}=r,I=t[0]&&"id"in t[0],A=t.length>65535?Uint32Array:Uint16Array,_={type:"Point",positions:new g(i*p),globalFeatureIds:new A(i),featureIds:n>65535?new Uint32Array(i):new Uint16Array(i),numericProps:{},properties:[],fields:[]},x={type:"LineString",pathIndices:o>65535?new Uint32Array(s+1):new Uint16Array(s+1),positions:new g(o*p),globalFeatureIds:new A(o),featureIds:a>65535?new Uint32Array(o):new Uint16Array(o),numericProps:{},properties:[],fields:[]},O={type:"Polygon",polygonIndices:c>65535?new Uint32Array(u+1):new Uint16Array(u+1),primitivePolygonIndices:c>65535?new Uint32Array(l+1):new Uint16Array(l+1),positions:new g(c*p),globalFeatureIds:new A(c),featureIds:f>65535?new Uint32Array(c):new Uint16Array(c),numericProps:{},properties:[],fields:[]};v&&(O.triangles=[]);for(let R of[_,x,O])for(let Ue of m){let we=d[Ue];R.numericProps[Ue]=new we(R.positions.length/p)}x.pathIndices[s]=o,O.polygonIndices[u]=c,O.primitivePolygonIndices[l]=c;let N={pointPosition:0,pointFeature:0,linePosition:0,linePath:0,lineFeature:0,polygonPosition:0,polygonObject:0,polygonRing:0,polygonFeature:0,feature:0};for(let R of t){let Ue=R.geometry,we=R.properties||{};switch(Ue.type){case"Point":aM(Ue,_,N,p,we),_.properties.push(Cb(we,m)),I&&_.fields.push({id:R.id}),N.pointFeature++;break;case"LineString":cM(Ue,x,N,p,we),x.properties.push(Cb(we,m)),I&&x.fields.push({id:R.id}),N.lineFeature++;break;case"Polygon":uM(Ue,O,N,p,we),O.properties.push(Cb(we,m)),I&&O.fields.push({id:R.id}),N.polygonFeature++;break;default:throw new Error("Invalid geometry type")}N.feature++}return fM(_,x,O,p)}function aM(t,e,r,i,n){e.positions.set(t.data,r.pointPosition*i);let o=t.data.length/i;Rb(e,n,r.pointPosition,o),e.globalFeatureIds.fill(r.feature,r.pointPosition,r.pointPosition+o),e.featureIds.fill(r.pointFeature,r.pointPosition,r.pointPosition+o),r.pointPosition+=o}function cM(t,e,r,i,n){e.positions.set(t.data,r.linePosition*i);let o=t.data.length/i;Rb(e,n,r.linePosition,o),e.globalFeatureIds.fill(r.feature,r.linePosition,r.linePosition+o),e.featureIds.fill(r.lineFeature,r.linePosition,r.linePosition+o);for(let s=0,a=t.indices.length;s<a;++s){let c=t.indices[s],u=s===a-1?t.data.length:t.indices[s+1];e.pathIndices[r.linePath++]=r.linePosition,r.linePosition+=(u-c)/i}}function uM(t,e,r,i,n){e.positions.set(t.data,r.polygonPosition*i);let o=t.data.length/i;Rb(e,n,r.polygonPosition,o),e.globalFeatureIds.fill(r.feature,r.polygonPosition,r.polygonPosition+o),e.featureIds.fill(r.polygonFeature,r.polygonPosition,r.polygonPosition+o);for(let s=0,a=t.indices.length;s<a;++s){let c=r.polygonPosition;e.polygonIndices[r.polygonObject++]=c;let u=t.areas[s],l=t.indices[s],f=t.indices[s+1];for(let p=0,m=l.length;p<m;++p){let g=l[p],v=p===m-1?f===void 0?t.data.length:f[0]:l[p+1];e.primitivePolygonIndices[r.polygonRing++]=r.polygonPosition,r.polygonPosition+=(v-g)/i}let d=r.polygonPosition;lM(e,u,l,{startPosition:c,endPosition:d,coordLength:i})}}function lM(t,e,r,{startPosition:i,endPosition:n,coordLength:o}){if(!t.triangles)return;let s=i*o,a=n*o,c=t.positions.subarray(s,a),u=r[0],l=r.slice(1).map(d=>(d-u)/o),f=hy(c,l,o,e);for(let d=0,p=f.length;d<p;++d)t.triangles.push(i+f[d])}function Mb(t,e){let r={};for(let i in t)r[i]={value:t[i],size:e};return r}function fM(t,e,r,i){let n={shape:"binary-feature-collection",points:{...t,positions:{value:t.positions,size:i},globalFeatureIds:{value:t.globalFeatureIds,size:1},featureIds:{value:t.featureIds,size:1},numericProps:Mb(t.numericProps,1)},lines:{...e,positions:{value:e.positions,size:i},pathIndices:{value:e.pathIndices,size:1},globalFeatureIds:{value:e.globalFeatureIds,size:1},featureIds:{value:e.featureIds,size:1},numericProps:Mb(e.numericProps,1)},polygons:{...r,positions:{value:r.positions,size:i},polygonIndices:{value:r.polygonIndices,size:1},primitivePolygonIndices:{value:r.primitivePolygonIndices,size:1},globalFeatureIds:{value:r.globalFeatureIds,size:1},featureIds:{value:r.featureIds,size:1},numericProps:Mb(r.numericProps,1)}};return n.polygons&&r.triangles&&(n.polygons.triangles={value:new Uint32Array(r.triangles),size:1}),n}function Rb(t,e,r,i){for(let n in t.numericProps)if(n in e){let o=e[n];t.numericProps[n].fill(o,r,r+i)}}function Cb(t,e){let r={};for(let i in t)e.includes(i)||(r[i]=t[i]);return r}function dM(t,e){return e===Array||!Number.isFinite(t)?Array:e===Float64Array||Math.fround(t)!==t?Float64Array:Float32Array}var jb=h(()=>{"use strict";ld()});function Vb(t,e={fixRingWinding:!0,triangulate:!0}){let r=SO(t),i=r.coordLength,{fixRingWinding:n}=e,o=OO(t,{coordLength:i,fixRingWinding:n});return Sl(o,r,{numericPropKeys:e.numericPropKeys,PositionDataType:e.PositionDataType||Float32Array,triangulate:e.triangulate})}var NO=h(()=>{"use strict";TO();BO();jb()});var Zb=h(()=>{"use strict";NO();jb()});function Gb(t){switch(t){case"xy":return 2;case"xyz":case"xym":return 3;case"xyzm":return 4}}function Gp(t){let e=zO(t);return e>=4?"xyzm":e===3?"xyz":"xy"}function zO(t){return t.type==="GeometryCollection"?Math.max(2,...t.geometries.map(zO)):LO(t.coordinates)}function LO(t){return t.length===0?2:typeof t[0]=="number"?t.length:Math.max(2,...t.map(e=>LO(e)))}var Wb=h(()=>{});function Jb(t,e=Gp(t)){let r=[];return Tl(r,t,e),Uint8Array.from(r)}function Tl(t,e,r){t.push(1);let i=Gb(r),n=r==="xyz"?1e3:r==="xym"?2e3:r==="xyzm"?3e3:0;Js(t,pM(e.type)+n);let o=a=>{for(let c=0;c<i;c++)mM(t,a[c]??0)},s=a=>{Js(t,a.length);for(let c of a)o(c)};switch(e.type){case"Point":o(e.coordinates.length===0?new Array(i).fill(Number.NaN):e.coordinates);break;case"LineString":s(e.coordinates);break;case"Polygon":Js(t,e.coordinates.length);for(let a of e.coordinates)s(a);break;case"MultiPoint":Js(t,e.coordinates.length);for(let a of e.coordinates)Tl(t,{type:"Point",coordinates:a},r);break;case"MultiLineString":Js(t,e.coordinates.length);for(let a of e.coordinates)Tl(t,{type:"LineString",coordinates:a},r);break;case"MultiPolygon":Js(t,e.coordinates.length);for(let a of e.coordinates)Tl(t,{type:"Polygon",coordinates:a},r);break;case"GeometryCollection":Js(t,e.geometries.length);for(let a of e.geometries)Tl(t,a,r);break}}function pM(t){return["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon","GeometryCollection"].indexOf(t)+1}function Js(t,e){t.push(e&255,e>>>8&255,e>>>16&255,e>>>24&255)}function mM(t,e){let r=new ArrayBuffer(8);new DataView(r).setFloat64(0,e,!0),t.push(...new Uint8Array(r))}var EO=h(()=>{Wb()});function gM(t,e){let r=new Gn({...e,mode:"measure"});return t(r),r.finishGeometry()}function yM(t){return ArrayBuffer.isView(t)?new DataView(t.buffer,t.byteOffset,t.byteLength):new DataView(t)}function vM(t,e,r){let i=hM[t];return r?(i|(e==="xyz"?2147483648:e==="xym"?1073741824:e==="xyzm"?3221225472:0)|536870912)>>>0:i+(e==="xyz"?1e3:e==="xym"?2e3:e==="xyzm"?3e3:0)}function bM(t,e,r,i,n){switch(t){case"xy":return[e,r];case"xyz":return[e,r,i??Number.NaN];case"xym":return[e,r,n??Number.NaN];case"xyzm":return[e,r,i??Number.NaN,n??Number.NaN]}}function wM(t){return t==="xy"?2:t==="xyzm"?4:3}function _M(t){if(t!==void 0&&(!Number.isSafeInteger(t)||t<0||t>4294967295))throw new Error("WKBBuilder srid must be an unsigned 32-bit integer")}function xM(t){let e=new Uint8Array(Math.ceil(t.length/8)),r=0;for(let i=0;i<t.length;i++)t[i]?e[i>>3]|=1<<(i&7):r++;return{nullBitmap:e,nullCount:r}}var hM,Gn,UO=h(()=>{hM={Point:1,LineString:2,Polygon:3,MultiPoint:4,MultiLineString:5,MultiPolygon:6,GeometryCollection:7},Gn=class t{constructor(e){if(this.mode=e.mode,this.dimension=e.dimension??"xy",this.littleEndian=e.byteOrder!=="big-endian",this.srid=e.srid,this.transform=e.transform,_M(this.srid),e.mode==="write"){let r=yM(e.target),i=e.byteOffset??0;if(!Number.isSafeInteger(i)||i<0||i>r.byteLength)throw new Error("WKBBuilder byteOffset is outside the target");this.dataView=r,this.startByteOffset=i,this.endByteOffset=r.byteLength,this.byteOffset=i}else this.dataView=null,this.startByteOffset=0,this.endByteOffset=Number.POSITIVE_INFINITY,this.byteOffset=0}beginGeometry(e,r){switch(e){case"Point":this.beginPoint();break;case"LineString":this.beginLineString(r??0);break;case"Polygon":this.beginPolygon(r??0);break;case"MultiPoint":this.beginMultiPoint(r??0);break;case"MultiLineString":this.beginMultiLineString(r??0);break;case"MultiPolygon":this.beginMultiPolygon(r??0);break;case"GeometryCollection":this.writeHeader("GeometryCollection"),this.writeUint32(r??0);break}}beginPoint(){this.writeHeader("Point")}beginLineString(e){this.writeHeader("LineString"),this.writeUint32(e)}beginPolygon(e){this.writeHeader("Polygon"),this.writeUint32(e)}beginLinearRing(e){this.writeUint32(e)}beginMultiPoint(e){this.writeHeader("MultiPoint"),this.writeUint32(e)}beginMultiLineString(e){this.writeHeader("MultiLineString"),this.writeUint32(e)}beginMultiPolygon(e){this.writeHeader("MultiPolygon"),this.writeUint32(e)}writeCoordinate(e,r,i,n){let o=bM(this.dimension,e,r,i,n);this.transform&&(o=this.transform(o,this.dimension));let s=wM(this.dimension);for(let a=0;a<s;a++)this.writeFloat64(o[a]??Number.NaN)}withDimension(e,r){let i=this.dimension;this.dimension=e;try{return r()}finally{this.dimension=i}}finishGeometry(){return this.byteOffset-this.startByteOffset}static measureGeometryArray(e,r={}){let i=new Int32Array(e.length+1);for(let n=0;n<e.length;n++){let o=e[n],s=o?gM(o,{...r,dimension:r.dimensionResolver?.(n)??r.dimension}):0,a=i[n]+s;if(a>2147483647)throw new Error("WKB geometry array exceeds Int32 offsets");i[n+1]=a}return i}static writeGeometryArray(e,r,i,n={}){if(r.length!==e.length+1)throw new Error("WKB valueOffsets length must equal geometry count plus one");for(let o=0;o<r.length;o++)if(!Number.isInteger(r[o])||r[o]<0||o>0&&r[o]<r[o-1])throw new Error("WKB valueOffsets must be nonnegative and nondecreasing");if(r[r.length-1]>i.byteLength)throw new Error("WKB values buffer is smaller than its final offset");for(let o=0;o<e.length;o++){let s=e[o];if(!s)continue;let a=new t({...n,mode:"write",target:i,byteOffset:r[o],dimension:n.dimensionResolver?.(o)??n.dimension});s(a);let c=a.finishGeometry();if(r[o]+c!==r[o+1])throw new Error("WKB measure and write passes produced different byte lengths")}return i}static buildGeometryArray(e,r={}){let i=t.measureGeometryArray(e,r),n=new Uint8Array(i[i.length-1]);t.writeGeometryArray(e,i,n,r);let{nullBitmap:o,nullCount:s}=xM(e);return{valueOffsets:i,values:n,...s>0?{nullBitmap:o}:{},nullCount:s}}writeHeader(e){this.writeUint8(this.littleEndian?1:0),this.writeUint32(vM(e,this.dimension,this.srid!==void 0)),this.srid!==void 0&&this.writeUint32(this.srid)}writeUint8(e){this.ensureSize(1),this.dataView?.setUint8(this.byteOffset,e),this.byteOffset++}writeUint32(e){if(!Number.isSafeInteger(e)||e<0||e>4294967295)throw new Error("WKB count must be an unsigned 32-bit integer");this.ensureSize(4),this.dataView?.setUint32(this.byteOffset,e,this.littleEndian),this.byteOffset+=4}writeFloat64(e){this.ensureSize(8),this.dataView?.setFloat64(this.byteOffset,e,this.littleEndian),this.byteOffset+=8}ensureSize(e){if(this.byteOffset+e>this.endByteOffset)throw new Error("WKBBuilder target buffer overflow")}}});function Kb(t,e){return IM(t)?e===void 0?FO(t):Wp(t.geometry,e):Wp(t,e??Gp(t))}function FO(t){return Wp(t.geometry,t.dimension,t.children)}function Wp(t,e,r){let i=e==="xy"?"":" "+e.slice(2).toUpperCase();if(t.type==="GeometryCollection"){if(t.geometries.length===0)return"GEOMETRYCOLLECTION"+i+" EMPTY";let s=r?r.map(FO):t.geometries.map(a=>Wp(a,e));return"GEOMETRYCOLLECTION"+i+" ("+s.join(", ")+")"}let n=t.type.toUpperCase();return(t.type==="MultiPoint"?t.coordinates.length===0:Hb(t.coordinates))?n+i+" EMPTY":n+i+" "+MO(t.coordinates,$M(t.type),t.type==="MultiPoint")}function IM(t){return"geometry"in t&&"dimension"in t}function MO(t,e,r=!1){return e===0?`(${t.map(PO).join(" ")})`:`(${t.map(i=>{if(e===1){let n=i;return r&&Hb(n)?"EMPTY":n.map(PO).join(" ")}return MO(i,e-1)}).join(", ")})`}function PO(t){return Number.isFinite(t)?String(t):"NaN"}function $M(t){switch(t){case"Point":return 0;case"LineString":case"MultiPoint":return 1;case"Polygon":case"MultiLineString":return 2;case"MultiPolygon":return 3}}function Hb(t){return t.length===0?!0:typeof t[0]=="number"?t.every(e=>!Number.isFinite(e)):t.every(e=>Hb(e))}var CO=h(()=>{Wb()});var Jp=h(()=>{EO();UO();CO()});function Kp(t,e){let r=OM(t,e);return t.type==="GeometryCollection"&&!e?.dimension&&!e?.hasZ&&!e?.hasM&&(kM(t)||AM(t))?t.geometries.length===0?"GEOMETRYCOLLECTION EMPTY":`GEOMETRYCOLLECTION (${t.geometries.map(i=>Kp(i)).join(", ")})`:Kb(RO(t,r),r)}function RO(t,e){return t.type==="GeometryCollection"?{type:"GeometryCollection",geometries:t.geometries.map(r=>RO(r,e))}:{...t,coordinates:jO(t.coordinates,DM(e))}}function jO(t,e){if(t.length===0)return t;if(typeof t[0]=="number"){let r=t.slice(0,e);for(;r.length<e;)r.push(0);return r}return t.map(r=>jO(r,e))}function kM(t){let e=t.geometries.map(r=>qb(r));return e.some(r=>r!==e[0])}function AM(t){return t.geometries.some(e=>!!e.__geoarrowDimension)}function qb(t){let e=t.__geoarrowDimension;if(e)return e;if(t.type==="GeometryCollection"){let i=t.geometries.map(qb);return i.length>0&&i.every(n=>n===i[0])?i[0]:"xy"}let r=BM(t);return r&&r.length>=4?"xyzm":r&&r.length>=3?"xyz":"xy"}function OM(t,e){return e?.dimension?e.dimension:e?.hasZ&&e?.hasM?"xyzm":e?.hasZ?"xyz":e?.hasM?"xym":qb(t)}function BM(t){if(t.type==="Point")return t.coordinates;if(t.type==="GeometryCollection")return null;let e=t.coordinates;for(;Array.isArray(e)&&Array.isArray(e[0]);)e=e[0];return Array.isArray(e)?e:null}function DM(t){return t==="xy"?2:t==="xyzm"?4:3}var VO=h(()=>{"use strict";Jp()});function ZO(t,e={}){let r=t.type==="Feature"?t.geometry:t;if(!r)throw new Error("WKB writer does not support null feature geometry");let i=e.hasZ?e.hasM?"xyzm":"xyz":e.hasM?"xym":"xy";return GO(r,i).buffer}function GO(t,e){if(t.type!=="GeometryCollection")return Jb(t,e);let r=t.geometries.map(c=>GO(c,c.__geoarrowDimension??e)),i=new Gn({mode:"measure",dimension:e});i.beginGeometry("GeometryCollection",r.length);let n=i.finishGeometry(),o=new Uint8Array(n+r.reduce((c,u)=>c+u.length,0)),s=new Gn({mode:"write",target:o,dimension:e});s.beginGeometry("GeometryCollection",r.length);let a=s.finishGeometry();for(let c of r)o.set(c,a),a+=c.length;return o}var Yb=h(()=>{"use strict";Jp();VO()});function WO(t,e){return t instanceof Map?t.get(e)||null:t[e]||null}function JO(t,e,r){t instanceof Map?t.set(e,r):t[e]=r}function nc(t){if(!t)return null;let e=WO(t,"geo"),r=e&&KO(e);if(!r)return null;for(let i of Object.values(r.columns||{}))i&&typeof i=="object"&&typeof i.encoding=="string"&&(i.encoding=i.encoding.toLowerCase());return r}function kl(t,e){JO(t,"geo",JSON.stringify(e))}function KO(t){if(!t)return null;try{let e=JSON.parse(t);return e&&typeof e=="object"?e:null}catch{return null}}var HO=h(()=>{"use strict"});var Xb=h(()=>{"use strict";HO()});function ic(t="geometry",e=!0){return{name:t,type:"binary",nullable:e,metadata:{"ARROW:extension:name":"geoarrow.wkb"}}}function zM(t,e={}){let r=e.geometryColumnName||"geometry",i=e.primaryColumnName||r,n=e.geometryTypes||[],o=nc(t)||{columns:{}};o.version=e.version||o.version||NM,o.primary_column=i,o.columns||={},o.columns[r]={...o.columns[r],...e.columnMetadata,encoding:"wkb",geometry_types:n},kl(t,o)}function oc(t,e={}){return t.metadata||={},zM(t.metadata,e),t}function Hp(t){if(t==null)return null;if(EM(t))return new Uint8Array(ZO(t,qp(t)));if(t instanceof ArrayBuffer)return new Uint8Array(t.slice(0));if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));throw new Error("Expected a Geometry, ArrayBuffer, ArrayBufferView, or null for WKB encoding.")}function qp(t){let e=Qb(t);return{hasZ:e==="xyz"||e==="xyzm",hasM:e==="xym"||e==="xyzm"}}function Qb(t){let e=t.__geoarrowDimension;if(e)return e;if("geometries"in t){let i=!1,n=!1;for(let o of t.geometries){let s=Qb(o);i||=s==="xyz"||s==="xyzm",n||=s==="xym"||s==="xyzm"}return i&&n?"xyzm":i?"xyz":n?"xym":"xy"}let r=qO(YO(t));return r>3?"xyzm":r>2?"xyz":"xy"}function sc(t){let e=new Set;for(let r of t){if(!r)continue;let i=Qb(r);e.add(`${r.type}${LM(i)}`)}return[...e]}function LM(t){return t==="xy"?"":` ${t==="xyzm"?"ZM":t.slice(2).toUpperCase()}`}function qO(t){return Array.isArray(t)?typeof t[0]=="number"?t.length:t.length===0?2:qO(t[0]):2}function YO(t){if("coordinates"in t)return t.coordinates;if("geometries"in t&&t.geometries.length>0)return YO(t.geometries[0])}function EM(t){return!t||typeof t!="object"?!1:"type"in t&&("coordinates"in t||"geometries"in t)}var NM,Yp=h(()=>{"use strict";Yb();Xb();NM="1.1.0"});function UM(t,e="float32"){return t instanceof Date?"date-millisecond":typeof t=="number"?e:typeof t=="boolean"?"bool":typeof t=="string"?"utf8":"null"}function ew(t){let e=PM(t);return e!=="null"?{type:e,nullable:!1}:t.length>0?(e=UM(t[0]),{type:e,nullable:!0}):{type:"null",nullable:!0}}function PM(t){if(typeof Float16Array<"u"&&t instanceof Float16Array)return"float16";switch(t.constructor){case Int8Array:return"int8";case Uint8Array:case Uint8ClampedArray:return"uint8";case Int16Array:return"int16";case Uint16Array:return"uint16";case Int32Array:return"int32";case Uint32Array:return"uint32";case BigInt64Array:return"int64";case BigUint64Array:return"uint64";case Float32Array:return"float32";case Float64Array:return"float64";default:return"null"}}var XO=h(()=>{"use strict"});function Ks(t){return Xp(t)}function Eo(t,e){return Qp(t,e)}function Xp(t){return{fields:t.fields.map(e=>zo(e)),metadata:tw(t.metadata)}}function Qp(t,e){return new se(t.fields.map(r=>Lo(r,e)),rw(t.metadata))}function tw(t){return Object.fromEntries(t)}function rw(t){return t?new Map(Object.entries(t)):new Map}function zo(t){return{name:t.name,type:Al(t.type),nullable:t.nullable,metadata:tw(t.metadata)}}function Lo(t,e){return new C(t.name,Ol(t.type,e),t.nullable,rw(t.metadata))}function Al(t){if(QO(t,"BinaryView"))return"binary-view";if(QO(t,"Utf8View"))return"utf8-view";if(FM(t,"LargeList"))return{type:"large-list",children:[zo(t.valueField)]};switch(t.constructor){case tt:return"null";case Nt:return"binary";case lr:return{type:"fixed-size-binary",byteWidth:t.byteWidth};case Lt:return"bool";case He:let e=t;return`${e.isSigned?"":"u"}int${e.bitWidth}`;case Tr:return"int8";case kr:return"int16";case ot:return"int32";case Ar:return"int64";case Or:return"uint8";case Br:return"uint16";case Dr:return"uint32";case mn:return"uint64";case Dt:switch(t.precision){case Ie.HALF:return"float16";case Ie.SINGLE:return"float32";case Ie.DOUBLE:return"float64";default:return"float16"}case ri:return"float16";case hn:return"float32";case mt:return"float64";case zt:return"utf8";case ur:let i=t;return{type:"decimal",bitWidth:i.bitWidth,precision:i.precision,scale:i.scale};case Jt:return t.unit===Oe.DAY?"date-day":"date-millisecond";case Zi:return"date-day";case Gi:return"date-millisecond";case xt:switch(t.unit){case z.SECOND:return"time-second";case z.MILLISECOND:return"time-millisecond";case z.MICROSECOND:return"time-microsecond";case z.NANOSECOND:return"time-nanosecond";default:return"time-second"}case Ji:return"time-millisecond";case Wi:return"time-second";case Ki:return"time-microsecond";case Hi:return"time-nanosecond";case It:switch(t.unit){case z.SECOND:return"timestamp-second";case z.MILLISECOND:return"timestamp-millisecond";case z.MICROSECOND:return"timestamp-microsecond";case z.NANOSECOND:return"timestamp-nanosecond";default:return"timestamp-second"}case qi:return"timestamp-second";case Fn:return"timestamp-millisecond";case Yi:return"timestamp-microsecond";case Xi:return"timestamp-nanosecond";case Et:switch(t.unit){case ye.DAY_TIME:return"interval-daytime";case ye.YEAR_MONTH:return"interval-yearmonth";default:return"interval-daytime"}case Qi:return"interval-daytime";case eo:return"interval-yearmonth";case Ut:let c=t;return{type:"map",keysSorted:c.keysSorted,children:c.children.map(g=>zo(g))};case rt:let l=t.valueField;return{type:"list",children:[zo(l)]};case ht:let f=t;return{type:"fixed-size-list",listSize:f.listSize,children:[zo(f.children[0])]};case ue:return{type:"struct",children:t.children.map(g=>zo(g))};case to:case zr:let p=t;return{type:p instanceof zr?"dense-union":"sparse-union",typeIds:p.typeIds,children:p.children.map(g=>zo(g)),typeIdToChildIndex:{...p.typeIdToChildIndex}};case st:let m=t;return{type:"dictionary",id:m.id,indices:MM(m.indices),dictionary:Al(m.dictionary),isOrdered:m.isOrdered};default:throw new Error(`arrow type not supported: ${t.constructor.name}`)}}function Ol(t,e){if(typeof t=="object")switch(t.type){case"decimal":return new ur(t.scale,t.precision,t.bitWidth);case"map":{let r=t.children.map(i=>Lo(i,e));return new Ut(r[0],t.keysSorted)}case"list":{let r=Lo(t.children[0],e);return new rt(r)}case"large-list":{let r=Lo(t.children[0],e),i=Bl("LargeList");if(!i)throw new Error("LargeList requires an Apache Arrow runtime that exports the LargeList constructor");return new i(r)}case"fixed-size-list":{let r=Lo(t.children[0],e);return new ht(t.listSize,r)}case"fixed-size-binary":return new lr(t.byteWidth);case"struct":{let r=t.children.map(i=>Lo(i,e));return new ue(r)}case"sparse-union":case"dense-union":{let r=t.children.map(i=>Lo(i,e));return t.type==="dense-union"?new zr(t.typeIds,r):new to(t.typeIds,r)}case"dictionary":return new st(Ol(t.dictionary,e),RM(t.indices),t.id,t.isOrdered);default:throw new Error("array type not supported")}switch(t){case"null":return new tt;case"binary":return e2("BinaryView",new Nt,e);case"binary-view":return t2("BinaryView");case"bool":return new Lt;case"int8":return new Tr;case"int16":return new kr;case"int32":return new ot;case"int64":return new Ar;case"uint8":return new Or;case"uint16":return new Br;case"uint32":return new Dr;case"uint64":return new mn;case"float16":return new ri;case"float32":return new hn;case"float64":return new mt;case"utf8":return e2("Utf8View",new zt,e);case"utf8-view":return t2("Utf8View");case"date-day":return new Zi;case"date-millisecond":return new Gi;case"time-second":return new Wi;case"time-millisecond":return new Ji;case"time-microsecond":return new Ki;case"time-nanosecond":return new Hi;case"timestamp-second":return new qi;case"timestamp-millisecond":return new Fn;case"timestamp-microsecond":return new Yi;case"timestamp-nanosecond":return new Xi;case"interval-daytime":return new Qi;case"interval-yearmonth":return new eo;default:throw new Error("array type not supported")}}function Bl(t){return In[t]}function QO(t,e){let r=Bl(e);if(r&&t instanceof r)return!0;let i=D;return!!(e==="BinaryView"?i.isBinaryView:i.isUtf8View)?.(t)}function FM(t,e){let r=Bl(e);return!!(r&&t instanceof r)}function e2(t,e,r){let i=r?.viewTypes||"never";if(i==="never")return e;let n=Bl(t);if(n)return new n;if(i==="require")throw new Error(`${t} requires apache-arrow 21.2.0 or later; the installed runtime does not support it`);return e}function t2(t){let e=Bl(t);if(!e)throw new Error(`${t} requires apache-arrow 21.2.0 or later; the installed runtime does not support it`);return new e}function MM(t){if(t instanceof He){let r=`${t.isSigned?"int":"uint"}${t.bitWidth}`;if(CM(r))return r}switch(t.constructor){case Tr:return"int8";case kr:return"int16";case ot:return"int32";case Or:return"uint8";case Br:return"uint16";case Dr:return"uint32";default:throw new Error(`arrow dictionary index type not supported: ${t.constructor.name}`)}}function CM(t){return["int8","int16","int32","uint8","uint16","uint32"].includes(t)}function RM(t){switch(t){case"int8":return new Tr;case"int16":return new kr;case"int32":return new ot;case"uint8":return new Or;case"uint16":return new Br;case"uint32":return new Dr;default:throw new Error(`schema dictionary index type not supported: ${t}`)}}var em=h(()=>{"use strict";_i()});var $n,r2=h(()=>{"use strict";_i();em();$n=class{schema;arrowSchema;arrowBuilders;length;constructor(e,r){this.arrowSchema=Eo(e,r),this.schema=r?.viewTypes&&r.viewTypes!=="never"?Ks(this.arrowSchema):e,this.arrowBuilders=this.arrowSchema.fields.map(i=>Fr({type:i.type,nullValues:[null]})),this.length=0}addObjectRow(e){for(let r=0;r<this.arrowBuilders.length;r++){let i=this.schema.fields[r].name,n=e[i];this.arrowBuilders[r].append(n)}this.length++}addArrayRow(e){for(let r=0;r<this.arrowBuilders.length;r++)this.arrowBuilders[r].append(e[r]);this.length++}firstBatch(){let e=this._getArrowRecordBatch();return e.numCols!==0?null:{shape:"arrow-table",batchType:"data",length:e.numRows,schema:this.schema,data:new ve(e)}}flushBatch(){let e=this._getArrowRecordBatch();return e.numCols===0?null:{shape:"arrow-table",batchType:"data",length:e.numRows,schema:this.schema,data:new ve(e)}}finishBatch(){let e=this._getArrowRecordBatch();return this.arrowBuilders.forEach(r=>r.finish()),e.numCols===0&&e.numRows===0?null:{shape:"arrow-table",batchType:"data",length:e.numRows,schema:this.schema,data:new ve(e)}}finishTable(){let e=this._getArrowRecordBatch();return this.arrowBuilders.forEach(r=>r.finish()),{shape:"arrow-table",schema:this.schema,data:new ve(e)}}_getArrowRecordBatch(){let{arrowBuilders:e,arrowSchema:r}=this,i=e.map(c=>c.flush()),n=i[0]?.length||this.length;this.length=0;let o=new ue(r.fields),s=new W(o,0,n,0,void 0,i);return new le(r,s)}}});var tm=h(()=>{"use strict";em();XO();r2()});var rm,n2=h(()=>{"use strict";(function(t){t[t.Point=1]="Point",t[t.LineString=2]="LineString",t[t.Polygon=3]="Polygon",t[t.MultiPoint=4]="MultiPoint",t[t.MultiLineString=5]="MultiLineString",t[t.MultiPolygon=6]="MultiPolygon",t[t.GeometryCollection=7]="GeometryCollection"})(rm||(rm={}))});function jM(t,e){return t&&e?"xyzm":t?"xyz":e?"xym":"xy"}function VM(t){return typeof t=="number"?rm[t]:t}var nm,i2=h(()=>{"use strict";Jp();n2();nm=class t{mode;hasZ;hasM;transform;builder;constructor(e){this.mode=e.mode,this.hasZ=!!e.hasZ,this.hasM=!!e.hasM,this.transform=e.transform;let r=jM(this.hasZ,this.hasM),i=e.transform?n=>{let o=e.transform([n[0],n[1]]);return[o[0],o[1],...n.slice(2)]}:void 0;this.builder=e.mode==="write"?new Gn({mode:"write",target:e.target,byteOffset:e.byteOffset,dimension:r,transform:i}):new Gn({mode:"measure",dimension:r,transform:i})}beginGeometry(e,r){let i=VM(e);if(!i)throw new Error("Unsupported WKB geometry type");this.callBuilder(()=>this.builder.beginGeometry(i,r))}beginPoint(){this.callBuilder(()=>this.builder.beginPoint())}beginLineString(e){this.callBuilder(()=>this.builder.beginLineString(e))}beginPolygon(e){this.callBuilder(()=>this.builder.beginPolygon(e))}beginLinearRing(e){this.callBuilder(()=>this.builder.beginLinearRing(e))}beginMultiPoint(e){this.callBuilder(()=>this.builder.beginMultiPoint(e))}beginMultiLineString(e){this.callBuilder(()=>this.builder.beginMultiLineString(e))}beginMultiPolygon(e){this.callBuilder(()=>this.builder.beginMultiPolygon(e))}writeCoordinate(e,r,i,n){this.callBuilder(()=>this.builder.writeCoordinate(e,r,i,n))}finishGeometry(){return this.callBuilder(()=>this.builder.finishGeometry())}getByteLength(){return this.callBuilder(()=>this.builder.finishGeometry())}callBuilder(e){try{return e()}catch(r){throw r instanceof Error&&r.message.includes("target buffer overflow")?new Error("WKBBuilder overflow"):r}}static measureGeometryArray(e,r={}){let i=new Int32Array(e.length+1);for(let n=0;n<e.length;n++){let o=e[n];if(o){let s=new t({mode:"measure",...r});o(s),i[n+1]=i[n]+s.finishGeometry()}else i[n+1]=i[n]}return i}static writeGeometryArray(e,r,i,n={}){for(let o=0;o<e.length;o++){let s=e[o];if(s){let a=new t({mode:"write",target:i,byteOffset:r[o],...n});s(a),a.finishGeometry()}}return i}static buildGeometryArray(e,r={}){let i=t.measureGeometryArray(e,r),n=new Uint8Array(i[i.length-1]);t.writeGeometryArray(e,i,n,r);let o=new Uint8Array(Math.ceil(e.length/8)),s=0;for(let a=0;a<e.length;a++)e[a]?o[a>>3]|=1<<(a&7):s++;return{valueOffsets:i,values:n,nullBitmap:s?o:void 0,nullCount:s}}}});function o2(t,e={}){return ZM(nm.buildGeometryArray(GM(t),e))}function ZM(t){return new W(new Nt,0,t.valueOffsets.length-1,t.nullCount,[t.valueOffsets,t.values,t.nullCount>0?t.nullBitmap:void 0])}function GM(t){return t.map(e=>e||null)}var s2=h(()=>{"use strict";_i();i2()});function im(t){return U({type:new mt,data:t})}function nw(t){let e=t==="xy"?["xmin","ymin"]:t==="xyz"?["xmin","ymin","zmin"]:t==="xym"?["xmin","ymin","mmin"]:["xmin","ymin","zmin","mmin"],r=t==="xy"?["xmax","ymax"]:t==="xyz"?["xmax","ymax","zmax"]:t==="xym"?["xmax","ymax","mmax"]:["xmax","ymax","zmax","mmax"];return[...e,...r]}function iw(t){return t==="xy"?2:t==="xyzm"?4:3}function WM(t,e,r){if(r==="separated"){let i=t,n=ow(e);return U({type:new ue(n.map(o=>new C(o,new mt,!1))),children:n.map(o=>im(i[o]))})}return U({type:new ht(iw(e),new C(e,new mt,!1)),child:im(t)})}function JM(t,e){let r=nw(e),i=r.map((n,o)=>{if(t instanceof Float64Array){let s=r.length;return im(Float64Array.from({length:t.length/s},(a,c)=>t[c*s+o]))}return im(t[n])});return U({type:new ue(r.map(n=>new C(n,new mt,!1))),children:i})}function ac(t,e,r,i){return U({type:i==="int64"?KM(new C(r,t.type,!1)):new rt(new C(r,t.type,!1)),valueOffsets:e,child:t})}function KM(t){let e=HM("LargeList");if(!e)throw new Error("64-bit GeoArrow offsets require an Apache Arrow runtime that exports LargeList");return new e(t)}function HM(t){return In[t]}function a2(t,e,r){if(r==="interleaved")return new Float64Array(t*iw(e));let i=ow(e),n={x:new Float64Array(t),y:new Float64Array(t)};for(let o of i.slice(2))n[o]=new Float64Array(t);return n}function qM(t,e,r){let i=nw(e);if(r==="interleaved")return new Float64Array(t*i.length);let n={};for(let o of i)n[o]=new Float64Array(t);return n}function YM(t,e,r,i,n,o,s,a,c){switch(t){case"xy":return[e,r,i,n];case"xyz":return[e,r,o??Number.NaN,i,n,s??Number.NaN];case"xym":return[e,r,a??Number.NaN,i,n,c??Number.NaN];case"xyzm":return[e,r,o??Number.NaN,a??Number.NaN,i,n,s??Number.NaN,c??Number.NaN]}}function ow(t){switch(t){case"xy":return["x","y"];case"xyz":return["x","y","z"];case"xym":return["x","y","m"];case"xyzm":return["x","y","z","m"]}}function Dl(t,e){return new W(t.type,0,e.length,e.nullCount,[t.valueOffsets,t.values,e.nullCount>0?e.nullBitmap:void 0],t.children)}var xi,sw=h(()=>{"use strict";_i();xi=class t{encoding;hasZ;hasM;dimension;state;constructor(e){this.encoding=e.encoding,this.dimension=e.dimension||(e.hasZ&&e.hasM?"xyzm":e.hasZ?"xyz":e.hasM?"xym":"xy"),this.hasZ=this.dimension==="xyz"||this.dimension==="xyzm",this.hasM=this.dimension==="xym"||this.dimension==="xyzm";let r=e.coordinateLayout||"interleaved",i=e.offsetType||"int32";this.state={mode:e.mode,encoding:e.encoding,coordinateSize:iw(this.dimension),coordinateLayout:r,offsetType:i,transform:e.transform,length:0,nullCount:0,coordinateCount:0,geometryChildCount:0,partChildCount:0,geometryOffsetCount:1,partOffsetCount:1,ringOffsetCount:1,target:e.mode==="write"?e.target:void 0},this.initializeOffsets()}writeNullGeometry(){this.state.length++,this.state.nullCount++,this.encoding!=="geoarrow.point"&&this.encoding!=="geoarrow.box"&&this.writeGeometryOffset(),this.encoding==="geoarrow.point"&&this.state.coordinateCount++}beginGeometry(e,r){this.setValid(this.state.length),this.state.length++}beginPoint(){this.encoding==="geoarrow.point"&&this.beginGeometry()}beginBox(){if(this.encoding!=="geoarrow.box")throw new Error(`Cannot write Box into ${this.encoding}`);this.beginGeometry()}writeBox(e,r,i,n,o,s,a,c){if(this.encoding!=="geoarrow.box")throw new Error(`Cannot write Box into ${this.encoding}`);let u=this.state.coordinateCount,l=YM(this.dimension,e,r,i,n,o,s,a,c);this.state.mode==="write"&&this.writeBoxValues(this.getTarget().coordinates,u,l),this.state.coordinateCount++}beginLineString(e){if(this.encoding==="geoarrow.linestring"){this.beginGeometry(),this.writeGeometryOffset(e);return}if(this.encoding==="geoarrow.multilinestring"){this.writePartOffset(e);return}throw new Error(`Cannot write LineString into ${this.encoding}`)}beginPolygon(e){if(this.encoding==="geoarrow.polygon"){this.beginGeometry(),this.writeGeometryOffset(e);return}if(this.encoding==="geoarrow.multipolygon"){this.writePartOffset(e);return}throw new Error(`Cannot write Polygon into ${this.encoding}`)}beginLinearRing(e){if(this.encoding==="geoarrow.polygon"){this.writePartOffset(e);return}if(this.encoding==="geoarrow.multipolygon"){this.writeRingOffset(e);return}throw new Error(`Cannot write LinearRing into ${this.encoding}`)}beginMultiPoint(e){if(this.encoding!=="geoarrow.multipoint")throw new Error(`Cannot write MultiPoint into ${this.encoding}`);this.beginGeometry(),this.writeGeometryOffset(e)}beginMultiLineString(e){if(this.encoding!=="geoarrow.multilinestring")throw new Error(`Cannot write MultiLineString into ${this.encoding}`);this.beginGeometry(),this.writeGeometryOffset(e)}beginMultiPolygon(e){if(this.encoding!=="geoarrow.multipolygon")throw new Error(`Cannot write MultiPolygon into ${this.encoding}`);this.beginGeometry(),this.writeGeometryOffset(e)}writeCoordinate(e,r,i,n){let o=this.state.coordinateCount;if(this.state.mode==="write"){let s=this.getTarget(),a=this.getCoordinateValuesForWrite(e,r,i,n),c=this.state.transform?this.state.transform(a):a;this.writeCoordinateValues(s.coordinates,o,c,a)}this.state.coordinateCount++}finishGeometry(){return this.state.length}getGeometryArray(){return{encoding:this.encoding,coordinateSize:this.state.coordinateSize,dimension:this.dimension,coordinateLayout:this.state.coordinateLayout,offsetType:this.state.offsetType,length:this.state.length,nullCount:this.state.nullCount,nullBitmap:this.getNullBitmap(),coordinates:this.getCoordinateValues(),geometryOffsets:this.getGeometryOffsets(),partOffsets:this.getPartOffsets(),ringOffsets:this.getRingOffsets()}}static measureGeometryArray(e,r){let i=new t({mode:"measure",...r});for(let n of e)n?n(i):i.writeNullGeometry();return i.finishGeometry(),i.getGeometryArray()}static writeGeometryArray(e,r,i){let n=new t({mode:"write",target:r,...i});for(let o of e)o?o(n):n.writeNullGeometry();return n.finishGeometry(),n.getGeometryArray()}static buildGeometryArray(e,r){let i=t.measureGeometryArray(e,r);return t.writeGeometryArray(e,i,r)}static makeGeometryData(e){if(e.encoding==="geoarrow.box")return Dl(JM(e.coordinates,e.dimension),e);let r=WM(e.coordinates,e.dimension,e.coordinateLayout),i=r;switch(e.encoding){case"geoarrow.point":return Dl(i,e);case"geoarrow.linestring":case"geoarrow.multipoint":return i=ac(r,e.geometryOffsets,"vertices",e.offsetType),Dl(i,e);case"geoarrow.polygon":case"geoarrow.multilinestring":return i=ac(r,e.partOffsets,"vertices",e.offsetType),i=ac(i,e.geometryOffsets,"rings",e.offsetType),Dl(i,e);case"geoarrow.multipolygon":return i=ac(r,e.ringOffsets,"vertices",e.offsetType),i=ac(i,e.partOffsets,"rings",e.offsetType),i=ac(i,e.geometryOffsets,"polygons",e.offsetType),Dl(i,e);default:throw new Error(`Unsupported GeoArrow encoding ${e.encoding}`)}}initializeOffsets(){if(this.state.mode!=="measure")return;let e={nullBitmap:new Uint8Array(0),coordinates:a2(0,this.dimension,this.state.coordinateLayout)};this.encoding!=="geoarrow.point"&&this.encoding!=="geoarrow.box"&&(e.geometryOffsets=this.makeOffsets(1)),(this.encoding==="geoarrow.polygon"||this.encoding==="geoarrow.multilinestring"||this.encoding==="geoarrow.multipolygon")&&(e.partOffsets=this.makeOffsets(1)),this.encoding==="geoarrow.multipolygon"&&(e.ringOffsets=this.makeOffsets(1)),this.state.target=e}getCoordinateValuesForWrite(e,r,i,n){return this.dimension==="xy"?[e,r]:this.dimension==="xyz"?[e,r,i??Number.NaN]:this.dimension==="xym"?[e,r,n??i??Number.NaN]:[e,r,i??Number.NaN,n??Number.NaN]}writeGeometryOffset(e=0){this.encoding!=="geoarrow.point"&&(this.state.geometryChildCount+=e,this.appendOffset("geometryOffsets",this.state.geometryChildCount))}writePartOffset(e=0){this.state.partChildCount+=e,this.appendOffset("partOffsets",this.state.partChildCount)}writeRingOffset(e=0){this.appendOffset("ringOffsets",this.state.coordinateCount+e)}appendOffset(e,r){let n=this.getTarget()[e];if(!n)return;if(this.state.mode==="measure"){this.incrementOffsetCount(e);return}let o=this.getOffsetCount(e);if(o>=n.length)throw new Error(`GeoArrowBuilder target ${e} overflow`);n[o]=n instanceof BigInt64Array?BigInt(r):r,this.incrementOffsetCount(e)}getOffsetCount(e){switch(e){case"geometryOffsets":return this.state.geometryOffsetCount;case"partOffsets":return this.state.partOffsetCount;case"ringOffsets":return this.state.ringOffsetCount;default:throw new Error(`Unexpected offset buffer ${e}`)}}incrementOffsetCount(e){switch(e){case"geometryOffsets":this.state.geometryOffsetCount++;return;case"partOffsets":this.state.partOffsetCount++;return;case"ringOffsets":this.state.ringOffsetCount++;return;default:throw new Error(`Unexpected offset buffer ${e}`)}}setValid(e){if(this.state.mode!=="write")return;let r=this.getTarget().nullBitmap;r[e>>3]|=1<<(e&7)}getTarget(){if(!this.state.target)throw new Error("GeoArrowBuilder target is not initialized");return this.state.target}getNullBitmap(){return this.state.mode==="measure"?new Uint8Array(Math.ceil(this.state.length/8)):this.getTarget().nullBitmap}getCoordinateValues(){return this.state.mode==="measure"?this.encoding==="geoarrow.box"?qM(this.state.coordinateCount,this.dimension,this.state.coordinateLayout):a2(this.state.coordinateCount,this.dimension,this.state.coordinateLayout):this.getTarget().coordinates}getGeometryOffsets(){return this.state.mode==="measure"&&this.encoding!=="geoarrow.point"&&this.encoding!=="geoarrow.box"?this.makeOffsets(this.state.geometryOffsetCount):this.getTarget().geometryOffsets}getPartOffsets(){return this.state.mode==="measure"&&(this.encoding==="geoarrow.polygon"||this.encoding==="geoarrow.multilinestring"||this.encoding==="geoarrow.multipolygon")?this.makeOffsets(this.state.partOffsetCount):this.getTarget().partOffsets}getRingOffsets(){return this.state.mode==="measure"&&this.encoding==="geoarrow.multipolygon"?this.makeOffsets(this.state.ringOffsetCount):this.getTarget().ringOffsets}makeOffsets(e){return this.state.offsetType==="int64"?new BigInt64Array(e):new Int32Array(e)}writeCoordinateValues(e,r,i,n){if(e instanceof Float64Array){if(r>=e.length/this.state.coordinateSize)throw new Error("GeoArrowBuilder target coordinate buffer overflow");let s=r*this.state.coordinateSize;for(let a=0;a<this.state.coordinateSize;a++)e[s+a]=i[a]??n[a]??Number.NaN;return}let o=ow(this.dimension);for(let s=0;s<o.length;s++){let a=e[o[s]];if(!a||r>=a.length)throw new Error("GeoArrowBuilder target coordinate buffer overflow");a[r]=i[s]??n[s]??Number.NaN}}writeBoxValues(e,r,i){if(e instanceof Float64Array){let s=r*i.length;if(s+i.length>e.length)throw new Error("GeoArrowBuilder target box buffer overflow");e.set(i,s);return}let n=e,o=nw(this.dimension);for(let s=0;s<o.length;s++){let a=n[o[s]];if(!(a instanceof Float64Array)||r>=a.length)throw new Error("GeoArrowBuilder target box buffer overflow");a[r]=i[s]}}}});var c2=h(()=>{"use strict";sw()});var V2=Jf((Yoe,j2)=>{"use strict";var mw=Object.defineProperty,XM=Object.getOwnPropertyDescriptor,QM=Object.getOwnPropertyNames,eC=Object.prototype.hasOwnProperty,tC=(t,e)=>{for(var r in e)mw(t,r,{get:e[r],enumerable:!0})},rC=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of QM(e))!eC.call(t,n)&&n!==r&&mw(t,n,{get:()=>e[n],enumerable:!(i=XM(e,n))||i.enumerable});return t},nC=t=>rC(mw({},"__esModule",{value:!0}),t),b2={};tC(b2,{FeatureTable:()=>_2,GEOMETRY_TYPE:()=>er,GeometryVector:()=>Sw,GpuVector:()=>Tw,decodeTile:()=>$R});j2.exports=nC(b2);var fc=class{constructor(t,e,r){this._name=t,this.dataBuffer=e,typeof r=="number"?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){return this.nullabilityBuffer?.get(t)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},sm=class extends fc{},hw=class extends sm{getValueFromBuffer(t){return this.dataBuffer[t]}},gw=class extends sm{getValueFromBuffer(t){return this.dataBuffer[t]}},w2=class extends fc{constructor(t,e,r,i){super(t,e,i),this.delta=r}},yw=class extends w2{constructor(t,e,r,i){super(t,Int32Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},vw=class extends fc{constructor(t,e,r,i){super(t,i?Int32Array.of(e):Uint32Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},_2=class{constructor(t,e,r,i,n=4096){this._name=t,this._geometryVector=e,this._idVector=r,this._propertyVectors=i,this._extent=n}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors}getPropertyVector(t){return this.propertyVectorsMap||(this.propertyVectorsMap=new Map(this._propertyVectors.map(e=>[e.name,e]))),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],e=this.geometryVector.getGeometries();for(let r=0;r<this.numFeatures;r++){let i;if(this.idVector){let s=this.idVector.getValue(r);i=this.containsMaxSafeIntegerValues(this.idVector)&&s!==null?Number(s):s}let n={coordinates:e[r],type:this.geometryVector.geometryType(r)},o={};for(let s of this.propertyVectors){if(!s)continue;let a=s.name,c=s.getValue(r);c!==null&&(o[a]=c)}t.push({id:i,geometry:n,properties:o})}return t}containsMaxSafeIntegerValues(t){return t instanceof hw||t instanceof vw||t instanceof yw||t instanceof gw}},om={FEATURE:0,VERTEX:1},ke={BOOLEAN:0,INT_8:1,UINT_8:2,INT_32:3,UINT_32:4,INT_64:5,UINT_64:6,FLOAT:7,DOUBLE:8,STRING:9},Nl={GEOMETRY:0,STRUCT:1},bw={ID:0},x2=class{constructor(t){this.value=t}get(){return this.value}set(t){this.value=t}increment(){return this.value++}add(t){this.value+=t}},pe;(function(t){t.NONE="NONE",t.DELTA="DELTA",t.COMPONENTWISE_DELTA="COMPONENTWISE_DELTA",t.RLE="RLE",t.MORTON="MORTON",t.PDE="PDE"})(pe||(pe={}));var Mo;(function(t){t.NONE="NONE",t.FAST_PFOR="FAST_PFOR",t.VARINT="VARINT",t.ALP="ALP"})(Mo||(Mo={}));var ww=new Uint32Array(33);ww[0]=0;for(let t=1;t<=32;t++)ww[t]=t===32?4294967295:4294967295>>>32-t;var uw=ww,I2=65536,Sn=256;function _w(t,e){return t-t%e}function iC(t){return _w(t+31,32)}function oC(t){if(!Number.isFinite(t)||t<=0)return I2;let e=_w(Math.floor(t),Sn);return e===0?Sn:e}function sC(t){let e=t>>>0;return((e&255)<<24|(e&65280)<<8|e>>>8&65280|e>>>24&255)>>>0}function aC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0;r[n++]=o>>>0&3,r[n++]=o>>>2&3,r[n++]=o>>>4&3,r[n++]=o>>>6&3,r[n++]=o>>>8&3,r[n++]=o>>>10&3,r[n++]=o>>>12&3,r[n++]=o>>>14&3,r[n++]=o>>>16&3,r[n++]=o>>>18&3,r[n++]=o>>>20&3,r[n++]=o>>>22&3,r[n++]=o>>>24&3,r[n++]=o>>>26&3,r[n++]=o>>>28&3,r[n++]=o>>>30&3,r[n++]=s>>>0&3,r[n++]=s>>>2&3,r[n++]=s>>>4&3,r[n++]=s>>>6&3,r[n++]=s>>>8&3,r[n++]=s>>>10&3,r[n++]=s>>>12&3,r[n++]=s>>>14&3,r[n++]=s>>>16&3,r[n++]=s>>>18&3,r[n++]=s>>>20&3,r[n++]=s>>>22&3,r[n++]=s>>>24&3,r[n++]=s>>>26&3,r[n++]=s>>>28&3,r[n]=s>>>30&3}function cC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0;r[n++]=o>>>0&7,r[n++]=o>>>3&7,r[n++]=o>>>6&7,r[n++]=o>>>9&7,r[n++]=o>>>12&7,r[n++]=o>>>15&7,r[n++]=o>>>18&7,r[n++]=o>>>21&7,r[n++]=o>>>24&7,r[n++]=o>>>27&7,r[n++]=(o>>>30|(s&1)<<2)&7,r[n++]=s>>>1&7,r[n++]=s>>>4&7,r[n++]=s>>>7&7,r[n++]=s>>>10&7,r[n++]=s>>>13&7,r[n++]=s>>>16&7,r[n++]=s>>>19&7,r[n++]=s>>>22&7,r[n++]=s>>>25&7,r[n++]=s>>>28&7,r[n++]=(s>>>31|(a&3)<<1)&7,r[n++]=a>>>2&7,r[n++]=a>>>5&7,r[n++]=a>>>8&7,r[n++]=a>>>11&7,r[n++]=a>>>14&7,r[n++]=a>>>17&7,r[n++]=a>>>20&7,r[n++]=a>>>23&7,r[n++]=a>>>26&7,r[n]=a>>>29&7}function uC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0;r[n++]=o>>>0&15,r[n++]=o>>>4&15,r[n++]=o>>>8&15,r[n++]=o>>>12&15,r[n++]=o>>>16&15,r[n++]=o>>>20&15,r[n++]=o>>>24&15,r[n++]=o>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=c>>>0&15,r[n++]=c>>>4&15,r[n++]=c>>>8&15,r[n++]=c>>>12&15,r[n++]=c>>>16&15,r[n++]=c>>>20&15,r[n++]=c>>>24&15,r[n]=c>>>28&15}function lC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0;r[n++]=o>>>0&31,r[n++]=o>>>5&31,r[n++]=o>>>10&31,r[n++]=o>>>15&31,r[n++]=o>>>20&31,r[n++]=o>>>25&31,r[n++]=(o>>>30|(s&7)<<2)&31,r[n++]=s>>>3&31,r[n++]=s>>>8&31,r[n++]=s>>>13&31,r[n++]=s>>>18&31,r[n++]=s>>>23&31,r[n++]=(s>>>28|(a&1)<<4)&31,r[n++]=a>>>1&31,r[n++]=a>>>6&31,r[n++]=a>>>11&31,r[n++]=a>>>16&31,r[n++]=a>>>21&31,r[n++]=a>>>26&31,r[n++]=(a>>>31|(c&15)<<1)&31,r[n++]=c>>>4&31,r[n++]=c>>>9&31,r[n++]=c>>>14&31,r[n++]=c>>>19&31,r[n++]=c>>>24&31,r[n++]=(c>>>29|(u&3)<<3)&31,r[n++]=u>>>2&31,r[n++]=u>>>7&31,r[n++]=u>>>12&31,r[n++]=u>>>17&31,r[n++]=u>>>22&31,r[n]=u>>>27&31}function fC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0;r[n++]=o>>>0&63,r[n++]=o>>>6&63,r[n++]=o>>>12&63,r[n++]=o>>>18&63,r[n++]=o>>>24&63,r[n++]=(o>>>30|(s&15)<<2)&63,r[n++]=s>>>4&63,r[n++]=s>>>10&63,r[n++]=s>>>16&63,r[n++]=s>>>22&63,r[n++]=(s>>>28|(a&3)<<4)&63,r[n++]=a>>>2&63,r[n++]=a>>>8&63,r[n++]=a>>>14&63,r[n++]=a>>>20&63,r[n++]=a>>>26&63,r[n++]=c>>>0&63,r[n++]=c>>>6&63,r[n++]=c>>>12&63,r[n++]=c>>>18&63,r[n++]=c>>>24&63,r[n++]=(c>>>30|(u&15)<<2)&63,r[n++]=u>>>4&63,r[n++]=u>>>10&63,r[n++]=u>>>16&63,r[n++]=u>>>22&63,r[n++]=(u>>>28|(l&3)<<4)&63,r[n++]=l>>>2&63,r[n++]=l>>>8&63,r[n++]=l>>>14&63,r[n++]=l>>>20&63,r[n]=l>>>26&63}function dC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0,f=t[e+6]>>>0;r[n++]=o>>>0&127,r[n++]=o>>>7&127,r[n++]=o>>>14&127,r[n++]=o>>>21&127,r[n++]=(o>>>28|(s&7)<<4)&127,r[n++]=s>>>3&127,r[n++]=s>>>10&127,r[n++]=s>>>17&127,r[n++]=s>>>24&127,r[n++]=(s>>>31|(a&63)<<1)&127,r[n++]=a>>>6&127,r[n++]=a>>>13&127,r[n++]=a>>>20&127,r[n++]=(a>>>27|(c&3)<<5)&127,r[n++]=c>>>2&127,r[n++]=c>>>9&127,r[n++]=c>>>16&127,r[n++]=c>>>23&127,r[n++]=(c>>>30|(u&31)<<2)&127,r[n++]=u>>>5&127,r[n++]=u>>>12&127,r[n++]=u>>>19&127,r[n++]=(u>>>26|(l&1)<<6)&127,r[n++]=l>>>1&127,r[n++]=l>>>8&127,r[n++]=l>>>15&127,r[n++]=l>>>22&127,r[n++]=(l>>>29|(f&15)<<3)&127,r[n++]=f>>>4&127,r[n++]=f>>>11&127,r[n++]=f>>>18&127,r[n]=f>>>25&127}function pC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0,f=t[e+6]>>>0,d=t[e+7]>>>0;r[n++]=o>>>0&255,r[n++]=o>>>8&255,r[n++]=o>>>16&255,r[n++]=o>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n]=d>>>24&255}function mC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0,f=t[e+6]>>>0,d=t[e+7]>>>0,p=t[e+8]>>>0;r[n++]=o>>>0&511,r[n++]=o>>>9&511,r[n++]=o>>>18&511,r[n++]=(o>>>27|(s&15)<<5)&511,r[n++]=s>>>4&511,r[n++]=s>>>13&511,r[n++]=s>>>22&511,r[n++]=(s>>>31|(a&255)<<1)&511,r[n++]=a>>>8&511,r[n++]=a>>>17&511,r[n++]=(a>>>26|(c&7)<<6)&511,r[n++]=c>>>3&511,r[n++]=c>>>12&511,r[n++]=c>>>21&511,r[n++]=(c>>>30|(u&127)<<2)&511,r[n++]=u>>>7&511,r[n++]=u>>>16&511,r[n++]=(u>>>25|(l&3)<<7)&511,r[n++]=l>>>2&511,r[n++]=l>>>11&511,r[n++]=l>>>20&511,r[n++]=(l>>>29|(f&63)<<3)&511,r[n++]=f>>>6&511,r[n++]=f>>>15&511,r[n++]=(f>>>24|(d&1)<<8)&511,r[n++]=d>>>1&511,r[n++]=d>>>10&511,r[n++]=d>>>19&511,r[n++]=(d>>>28|(p&31)<<4)&511,r[n++]=p>>>5&511,r[n++]=p>>>14&511,r[n]=p>>>23&511}function hC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0,f=t[e+6]>>>0,d=t[e+7]>>>0,p=t[e+8]>>>0,m=t[e+9]>>>0;r[n++]=o>>>0&1023,r[n++]=o>>>10&1023,r[n++]=o>>>20&1023,r[n++]=(o>>>30|(s&255)<<2)&1023,r[n++]=s>>>8&1023,r[n++]=s>>>18&1023,r[n++]=(s>>>28|(a&63)<<4)&1023,r[n++]=a>>>6&1023,r[n++]=a>>>16&1023,r[n++]=(a>>>26|(c&15)<<6)&1023,r[n++]=c>>>4&1023,r[n++]=c>>>14&1023,r[n++]=(c>>>24|(u&3)<<8)&1023,r[n++]=u>>>2&1023,r[n++]=u>>>12&1023,r[n++]=u>>>22&1023,r[n++]=l>>>0&1023,r[n++]=l>>>10&1023,r[n++]=l>>>20&1023,r[n++]=(l>>>30|(f&255)<<2)&1023,r[n++]=f>>>8&1023,r[n++]=f>>>18&1023,r[n++]=(f>>>28|(d&63)<<4)&1023,r[n++]=d>>>6&1023,r[n++]=d>>>16&1023,r[n++]=(d>>>26|(p&15)<<6)&1023,r[n++]=p>>>4&1023,r[n++]=p>>>14&1023,r[n++]=(p>>>24|(m&3)<<8)&1023,r[n++]=m>>>2&1023,r[n++]=m>>>12&1023,r[n]=m>>>22&1023}function gC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0,f=t[e+6]>>>0,d=t[e+7]>>>0,p=t[e+8]>>>0,m=t[e+9]>>>0,g=t[e+10]>>>0;r[n++]=o>>>0&2047,r[n++]=o>>>11&2047,r[n++]=(o>>>22|(s&1)<<10)&2047,r[n++]=s>>>1&2047,r[n++]=s>>>12&2047,r[n++]=(s>>>23|(a&3)<<9)&2047,r[n++]=a>>>2&2047,r[n++]=a>>>13&2047,r[n++]=(a>>>24|(c&7)<<8)&2047,r[n++]=c>>>3&2047,r[n++]=c>>>14&2047,r[n++]=(c>>>25|(u&15)<<7)&2047,r[n++]=u>>>4&2047,r[n++]=u>>>15&2047,r[n++]=(u>>>26|(l&31)<<6)&2047,r[n++]=l>>>5&2047,r[n++]=l>>>16&2047,r[n++]=(l>>>27|(f&63)<<5)&2047,r[n++]=f>>>6&2047,r[n++]=f>>>17&2047,r[n++]=(f>>>28|(d&127)<<4)&2047,r[n++]=d>>>7&2047,r[n++]=d>>>18&2047,r[n++]=(d>>>29|(p&255)<<3)&2047,r[n++]=p>>>8&2047,r[n++]=p>>>19&2047,r[n++]=(p>>>30|(m&511)<<2)&2047,r[n++]=m>>>9&2047,r[n++]=m>>>20&2047,r[n++]=(m>>>31|(g&1023)<<1)&2047,r[n++]=g>>>10&2047,r[n]=g>>>21&2047}function yC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0,f=t[e+6]>>>0,d=t[e+7]>>>0,p=t[e+8]>>>0,m=t[e+9]>>>0,g=t[e+10]>>>0,v=t[e+11]>>>0;r[n++]=o>>>0&4095,r[n++]=o>>>12&4095,r[n++]=(o>>>24|(s&15)<<8)&4095,r[n++]=s>>>4&4095,r[n++]=s>>>16&4095,r[n++]=(s>>>28|(a&255)<<4)&4095,r[n++]=a>>>8&4095,r[n++]=a>>>20&4095,r[n++]=c>>>0&4095,r[n++]=c>>>12&4095,r[n++]=(c>>>24|(u&15)<<8)&4095,r[n++]=u>>>4&4095,r[n++]=u>>>16&4095,r[n++]=(u>>>28|(l&255)<<4)&4095,r[n++]=l>>>8&4095,r[n++]=l>>>20&4095,r[n++]=f>>>0&4095,r[n++]=f>>>12&4095,r[n++]=(f>>>24|(d&15)<<8)&4095,r[n++]=d>>>4&4095,r[n++]=d>>>16&4095,r[n++]=(d>>>28|(p&255)<<4)&4095,r[n++]=p>>>8&4095,r[n++]=p>>>20&4095,r[n++]=m>>>0&4095,r[n++]=m>>>12&4095,r[n++]=(m>>>24|(g&15)<<8)&4095,r[n++]=g>>>4&4095,r[n++]=g>>>16&4095,r[n++]=(g>>>28|(v&255)<<4)&4095,r[n++]=v>>>8&4095,r[n]=v>>>20&4095}function vC(t,e,r,i){let n=i,o=t[e]>>>0,s=t[e+1]>>>0,a=t[e+2]>>>0,c=t[e+3]>>>0,u=t[e+4]>>>0,l=t[e+5]>>>0,f=t[e+6]>>>0,d=t[e+7]>>>0,p=t[e+8]>>>0,m=t[e+9]>>>0,g=t[e+10]>>>0,v=t[e+11]>>>0,I=t[e+12]>>>0,A=t[e+13]>>>0,_=t[e+14]>>>0,x=t[e+15]>>>0;r[n++]=o>>>0&65535,r[n++]=o>>>16&65535,r[n++]=s>>>0&65535,r[n++]=s>>>16&65535,r[n++]=a>>>0&65535,r[n++]=a>>>16&65535,r[n++]=c>>>0&65535,r[n++]=c>>>16&65535,r[n++]=u>>>0&65535,r[n++]=u>>>16&65535,r[n++]=l>>>0&65535,r[n++]=l>>>16&65535,r[n++]=f>>>0&65535,r[n++]=f>>>16&65535,r[n++]=d>>>0&65535,r[n++]=d>>>16&65535,r[n++]=p>>>0&65535,r[n++]=p>>>16&65535,r[n++]=m>>>0&65535,r[n++]=m>>>16&65535,r[n++]=g>>>0&65535,r[n++]=g>>>16&65535,r[n++]=v>>>0&65535,r[n++]=v>>>16&65535,r[n++]=I>>>0&65535,r[n++]=I>>>16&65535,r[n++]=A>>>0&65535,r[n++]=A>>>16&65535,r[n++]=_>>>0&65535,r[n++]=_>>>16&65535,r[n++]=x>>>0&65535,r[n]=x>>>16&65535}function bC(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0;r[n++]=a>>>0&1,r[n++]=a>>>1&1,r[n++]=a>>>2&1,r[n++]=a>>>3&1,r[n++]=a>>>4&1,r[n++]=a>>>5&1,r[n++]=a>>>6&1,r[n++]=a>>>7&1,r[n++]=a>>>8&1,r[n++]=a>>>9&1,r[n++]=a>>>10&1,r[n++]=a>>>11&1,r[n++]=a>>>12&1,r[n++]=a>>>13&1,r[n++]=a>>>14&1,r[n++]=a>>>15&1,r[n++]=a>>>16&1,r[n++]=a>>>17&1,r[n++]=a>>>18&1,r[n++]=a>>>19&1,r[n++]=a>>>20&1,r[n++]=a>>>21&1,r[n++]=a>>>22&1,r[n++]=a>>>23&1,r[n++]=a>>>24&1,r[n++]=a>>>25&1,r[n++]=a>>>26&1,r[n++]=a>>>27&1,r[n++]=a>>>28&1,r[n++]=a>>>29&1,r[n++]=a>>>30&1,r[n++]=a>>>31&1}}function wC(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0,c=t[o++]>>>0;r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3,r[n++]=c>>>0&3,r[n++]=c>>>2&3,r[n++]=c>>>4&3,r[n++]=c>>>6&3,r[n++]=c>>>8&3,r[n++]=c>>>10&3,r[n++]=c>>>12&3,r[n++]=c>>>14&3,r[n++]=c>>>16&3,r[n++]=c>>>18&3,r[n++]=c>>>20&3,r[n++]=c>>>22&3,r[n++]=c>>>24&3,r[n++]=c>>>26&3,r[n++]=c>>>28&3,r[n++]=c>>>30&3}}function _C(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0;r[n++]=a>>>0&7,r[n++]=a>>>3&7,r[n++]=a>>>6&7,r[n++]=a>>>9&7,r[n++]=a>>>12&7,r[n++]=a>>>15&7,r[n++]=a>>>18&7,r[n++]=a>>>21&7,r[n++]=a>>>24&7,r[n++]=a>>>27&7,r[n++]=(a>>>30|(c&1)<<2)&7,r[n++]=c>>>1&7,r[n++]=c>>>4&7,r[n++]=c>>>7&7,r[n++]=c>>>10&7,r[n++]=c>>>13&7,r[n++]=c>>>16&7,r[n++]=c>>>19&7,r[n++]=c>>>22&7,r[n++]=c>>>25&7,r[n++]=c>>>28&7,r[n++]=(c>>>31|(u&3)<<1)&7,r[n++]=u>>>2&7,r[n++]=u>>>5&7,r[n++]=u>>>8&7,r[n++]=u>>>11&7,r[n++]=u>>>14&7,r[n++]=u>>>17&7,r[n++]=u>>>20&7,r[n++]=u>>>23&7,r[n++]=u>>>26&7,r[n++]=u>>>29&7}}function xC(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0,l=t[o++]>>>0;r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=c>>>0&15,r[n++]=c>>>4&15,r[n++]=c>>>8&15,r[n++]=c>>>12&15,r[n++]=c>>>16&15,r[n++]=c>>>20&15,r[n++]=c>>>24&15,r[n++]=c>>>28&15,r[n++]=u>>>0&15,r[n++]=u>>>4&15,r[n++]=u>>>8&15,r[n++]=u>>>12&15,r[n++]=u>>>16&15,r[n++]=u>>>20&15,r[n++]=u>>>24&15,r[n++]=u>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15}}function IC(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0,l=t[o++]>>>0,f=t[o++]>>>0;r[n++]=a>>>0&31,r[n++]=a>>>5&31,r[n++]=a>>>10&31,r[n++]=a>>>15&31,r[n++]=a>>>20&31,r[n++]=a>>>25&31,r[n++]=(a>>>30|(c&7)<<2)&31,r[n++]=c>>>3&31,r[n++]=c>>>8&31,r[n++]=c>>>13&31,r[n++]=c>>>18&31,r[n++]=c>>>23&31,r[n++]=(c>>>28|(u&1)<<4)&31,r[n++]=u>>>1&31,r[n++]=u>>>6&31,r[n++]=u>>>11&31,r[n++]=u>>>16&31,r[n++]=u>>>21&31,r[n++]=u>>>26&31,r[n++]=(u>>>31|(l&15)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(f&3)<<3)&31,r[n++]=f>>>2&31,r[n++]=f>>>7&31,r[n++]=f>>>12&31,r[n++]=f>>>17&31,r[n++]=f>>>22&31,r[n++]=f>>>27&31}}function $C(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0,l=t[o++]>>>0,f=t[o++]>>>0,d=t[o++]>>>0;r[n++]=a>>>0&63,r[n++]=a>>>6&63,r[n++]=a>>>12&63,r[n++]=a>>>18&63,r[n++]=a>>>24&63,r[n++]=(a>>>30|(c&15)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(u&3)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(f&15)<<2)&63,r[n++]=f>>>4&63,r[n++]=f>>>10&63,r[n++]=f>>>16&63,r[n++]=f>>>22&63,r[n++]=(f>>>28|(d&3)<<4)&63,r[n++]=d>>>2&63,r[n++]=d>>>8&63,r[n++]=d>>>14&63,r[n++]=d>>>20&63,r[n++]=d>>>26&63}}function SC(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0,l=t[o++]>>>0,f=t[o++]>>>0,d=t[o++]>>>0,p=t[o++]>>>0;r[n++]=a>>>0&127,r[n++]=a>>>7&127,r[n++]=a>>>14&127,r[n++]=a>>>21&127,r[n++]=(a>>>28|(c&7)<<4)&127,r[n++]=c>>>3&127,r[n++]=c>>>10&127,r[n++]=c>>>17&127,r[n++]=c>>>24&127,r[n++]=(c>>>31|(u&63)<<1)&127,r[n++]=u>>>6&127,r[n++]=u>>>13&127,r[n++]=u>>>20&127,r[n++]=(u>>>27|(l&3)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(f&31)<<2)&127,r[n++]=f>>>5&127,r[n++]=f>>>12&127,r[n++]=f>>>19&127,r[n++]=(f>>>26|(d&1)<<6)&127,r[n++]=d>>>1&127,r[n++]=d>>>8&127,r[n++]=d>>>15&127,r[n++]=d>>>22&127,r[n++]=(d>>>29|(p&15)<<3)&127,r[n++]=p>>>4&127,r[n++]=p>>>11&127,r[n++]=p>>>18&127,r[n++]=p>>>25&127}}function TC(t,e,r,i){let n=i,o=e;for(let s=0;s<8;s++){let a=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0,l=t[o++]>>>0,f=t[o++]>>>0,d=t[o++]>>>0,p=t[o++]>>>0,m=t[o++]>>>0;r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=f>>>0&255,r[n++]=f>>>8&255,r[n++]=f>>>16&255,r[n++]=f>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255,r[n++]=p>>>0&255,r[n++]=p>>>8&255,r[n++]=p>>>16&255,r[n++]=p>>>24&255,r[n++]=m>>>0&255,r[n++]=m>>>8&255,r[n++]=m>>>16&255,r[n++]=m>>>24&255}}function kC(t,e,r,i){let n=i,o=e;for(let s=0;s<128;s++){let a=t[o++]>>>0;r[n++]=a&65535,r[n++]=a>>>16&65535}}function AC(t,e,r,i,n){let o=uw[n]>>>0,s=e,a=0,c=t[s]>>>0,u=i;for(let l=0;l<8;l++){for(let f=0;f<32;f++)if(a+n<=32){let d=c>>>a&o;r[u+f]=d|0,a+=n,a===32&&(a=0,s++,f!==31&&(c=t[s]>>>0))}else{let d=32-a,p=c>>>a;s++,c=t[s]>>>0;let m=n-d,g=-1>>>32-m>>>0,v=c&g,I=(p|v<<d)&o;r[u+f]=I|0,a=m}u+=32,a=0,l<7&&(c=t[s]>>>0)}}var qs=32,aw=qs+1,lw=oC(I2),OC=3*lw/Sn+lw|0;function $2(){let t=new Uint8Array(OC);return{dataToBePacked:new Array(aw),dataPointers:new Int32Array(aw),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(aw)}}function BC(t=16){if(t<0)throw new RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);let e=Math.max(16,t|0);return{encodedWords:new Uint32Array(e),decoderWorkspace:$2()}}function DC(t,e){if(e<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,e*2));return t.encodedWords=r,r}function NC(t,e,r,i){i.byteContainer.length<r&&(i.byteContainer=new Uint8Array(r*2),i.byteContainerI32=void 0);let n=i.byteContainer,o=r>>>2;if((n.byteOffset&3)===0){let a=i.byteContainerI32;(!a||a.buffer!==n.buffer||a.byteOffset!==n.byteOffset||a.length<o)&&(a=i.byteContainerI32=new Int32Array(n.buffer,n.byteOffset,n.byteLength>>>2)),a.set(t.subarray(e,e+o))}else for(let a=0;a<o;a=a+1|0){let c=t[e+a|0]|0,u=a<<2;n[u]=c&255,n[u+1|0]=c>>>8&255,n[u+2|0]=c>>>16&255,n[u+3|0]=c>>>24&255}let s=r&3;if(s>0){let a=e+o|0,c=t[a]|0,u=o<<2;for(let l=0;l<s;l=l+1|0)n[u+l|0]=c>>>(l<<3)&255}return n}function zC(t,e,r){let i=t[e++]|0,n=r.dataToBePacked;for(let o=2;o<=qs;o=o+1|0){if((i>>>o-1&1)===0)continue;if(e>=t.length)throw new Error(`FastPFOR decode: truncated exception stream header (bitWidth=${o}, streamWordIndex=${e}, needWords=1, availableWords=${t.length-e}, encodedWords=${t.length})`);let s=t[e++]>>>0,a=iC(s),c=s*o+31>>>5;if(e+c>t.length)throw new Error(`FastPFOR decode: truncated exception stream (bitWidth=${o}, size=${s}, streamWordIndex=${e}, needWords=${c}, availableWords=${t.length-e}, encodedWords=${t.length})`);let u=n[o];(!u||u.length<a)&&(u=n[o]=new Uint32Array(a));let l=0;for(;l<s;l=l+32|0)VC(t,e,u,l,o),e=e+o|0;let f=l-s|0;e=e-(f*o>>>5)|0,r.exceptionSizes[o]=s}return e}function LC(t,e,r,i,n){switch(n){case 1:bC(t,e,r,i);break;case 2:wC(t,e,r,i);break;case 3:_C(t,e,r,i);break;case 4:xC(t,e,r,i);break;case 5:IC(t,e,r,i);break;case 6:$C(t,e,r,i);break;case 7:SC(t,e,r,i);break;case 8:TC(t,e,r,i);break;case 16:kC(t,e,r,i);break;default:AC(t,e,r,i,n);break}return e+(n<<3)|0}function EC(t,e,r,i){if(r+2>e)throw new Error(`FastPFOR decode: byteContainer underflow at block=${i} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${e})`);let n=t[r++],o=t[r++];if(n>qs)throw new Error(`FastPFOR decode: invalid bitWidth=${n} at block=${i} (expected 0..${qs}). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:o,bytePosIn:r}}function UC(t,e,r,i,n,o){if(r+1>e)throw new Error(`FastPFOR decode: exception header underflow at block=${o} (need 1 byte for maxBits, bytePos=${r}, byteSize=${e})`);let s=t[r++];if(s<i||s>qs)throw new Error(`FastPFOR decode: invalid maxBits=${s} at block=${o} (bitWidth=${i}, expected ${i}..${qs})`);let a=s-i|0;if(a<1||a>qs)throw new Error(`FastPFOR decode: invalid exceptionBitWidth=${a} at block=${o} (bitWidth=${i}, maxBits=${s})`);if(r+n>e)throw new Error(`FastPFOR decode: exception positions underflow at block=${o} (need=${n}, have=${e-r})`);return{maxBits:s,exceptionBitWidth:a,bytePosIn:r}}function PC(t,e,r,i,n,o,s,a,c){let{maxBits:u,exceptionBitWidth:l,bytePosIn:f}=UC(n,o,s,r,i,c);if(s=f,l===1){let v=1<<r;for(let I=0;I<i;I=I+1|0){let A=n[s++];t[A+e|0]|=v}return s}let d=a.dataToBePacked[l];if(!d)throw new Error(`FastPFOR decode: missing exception stream for exceptionBitWidth=${l} (bitWidth=${r}, maxBits=${u}) at block ${c}`);let p=a.dataPointers,m=p[l]|0,g=a.exceptionSizes[l]|0;if(m+i>g)throw new Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${l} (ptr=${m}, need ${i}, size=${g}) at block ${c}`);for(let v=0;v<i;v=v+1|0){let I=n[s++],A=d[m++]|0;t[I+e|0]|=A<<r}return p[l]=m,s}function FC(t,e,r,i,n,o,s,a,c,u){let l=r|0,f=0;for(let d=0;d<s;d=d+1|0){let p=EC(a,c,f,d);f=p.bytePosIn;let m=p.bitWidth,g=p.exceptionCount,v=o+d*Sn|0;switch(m){case 0:n.fill(0,v,v+Sn);break;case 32:for(let I=0;I<Sn;I=I+1|0)n[v+I|0]=t[l+I|0]|0;l=l+Sn|0;break;default:l=LC(t,l,n,v,m);break}g>0&&(f=PC(n,v,m,g,a,c,f,u,d))}if(l!==i)throw new Error(`FastPFOR decode: packed region mismatch (pageStart=${e}, packedStart=${r}, consumedPackedEnd=${l}, expectedPackedEnd=${i}, packedWords=${i-r}, encoded.length=${t.length})`)}function MC(t,e,r,i,n,o){let s=r|0,a=t[s]|0;if(a<=0||s+a>t.length-1)throw new Error(`FastPFOR decode: invalid whereMeta=${a} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let c=s+1|0,u=s+a|0,l=t[u]>>>0,f=l+3>>>2,d=u+1,p=d+f;if(p>=t.length)throw new Error(`FastPFOR decode: invalid byteSize=${l} (metaInts=${f}, pageStart=${s}, packedEnd=${u}, byteContainerStart=${d}) causes bitmapPos=${p} out of bounds (encoded.length=${t.length})`);let m=NC(t,d,l,o),g=l,v=zC(t,p,o);o.dataPointers.fill(0);let A=i|0,_=n/Sn|0;return FC(t,s,c,u,e,A,_,m,g,o),v}function CC(t,e,r,i,n,o){let s=_w(n,Sn),a=i+s,c=i,u=r;for(;c!==a;){let l=Math.min(lw,a-c);u=MC(t,e,u,c,l,o),c=c+l|0}return u}function RC(t,e,r,i,n,o){if(o===0)return e;let s=0,a=e,c=e+r,u=n,l=n,f=n+o,d=0,p=0;for(;a<c&&l<f;){let g=t[a]>>>s&255;if(s+=8,a+=s>>>5,s&=31,d|=(g&127)<<p,(g&128)!==0)i[l++]=d|0,d=0,p=0;else if(p+=7,p>28)throw new Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${p}, partial=${d}, decoded=${l-u}/${o}, inPos=${a}, inEnd=${c})`)}if(l!==f)throw new Error(`FastPFOR VByte: truncated stream (decoded=${l-u}, expected=${o}, consumedWords=${a-e}/${r}, vbyteStart=${e}, vbyteEnd=${c})`);return a}function jC(t,e,r){let i=0,n=0,o=new Uint32Array(e),s=r??$2();if(t.length>0){let u=t[i]|0;if(i=i+1|0,(u&Sn-1)!==0)throw new Error(`FastPFOR decode: invalid alignedLength=${u} (expected multiple of ${Sn})`);if(n+u>o.length)throw new Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${u}, out.length=${o.length})`);i=CC(t,o,i,n,u,s),n=n+u|0}let a=t.length-i|0,c=e-n|0;return RC(t,i,a,o,n,c),o}function VC(t,e,r,i,n){switch(n){case 2:aC(t,e,r,i);return;case 3:cC(t,e,r,i);return;case 4:uC(t,e,r,i);return;case 5:lC(t,e,r,i);return;case 6:fC(t,e,r,i);return;case 7:dC(t,e,r,i);return;case 8:pC(t,e,r,i);return;case 9:mC(t,e,r,i);return;case 10:hC(t,e,r,i);return;case 11:gC(t,e,r,i);return;case 12:yC(t,e,r,i);return;case 16:vC(t,e,r,i);return;case 32:for(let u=0;u<32;u=u+1|0)r[i+u|0]=t[e+u|0]|0;return;default:break}let o=uw[n]>>>0,s=e,a=0,c=t[s]>>>0;for(let u=0;u<32;u++)if(a+n<=32){let l=c>>>a&o;r[i+u]=l|0,a+=n,a===32&&(a=0,s++,u!==31&&(c=t[s]>>>0))}else{let l=32-a,f=c>>>a;s++,c=t[s]>>>0;let d=uw[n-l]>>>0,p=c&d,m=(f|p<<l)&o;r[i+u]=m|0,a=n-l}}function ZC(t,e,r,i){if(e<0||r<0||e+r>t.length)throw new RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${e}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),o=r%4!==0,s=o?n+1:n;if(i.length<s)throw new RangeError(`decodeBigEndianInt32sInto: out.length=${i.length} < ${s}`);if(n>0){let a=t.byteOffset+e;if((a&3)===0){let c=new Uint32Array(t.buffer,a,n);for(let u=0;u<n;u++)i[u]=sC(c[u])|0}else for(let c=0;c<n;c++){let u=e+c*4;i[c]=t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]|0}}if(o){let a=e+n*4,c=r-n*4,u=0;for(let l=0;l<c;l++)u|=t[a+l]<<24-l*8;i[n]=u|0}return s}function St(t,e,r){let i=new Uint32Array(r),n=0,o=e.get();for(let s=0;s<i.length;s++){let a=t[o++],c=a&127;if(a<128){i[n++]=c;continue}if(a=t[o++],c|=(a&127)<<7,a<128){i[n++]=c;continue}if(a=t[o++],c|=(a&127)<<14,a<128){i[n++]=c;continue}if(a=t[o++],c|=(a&127)<<21,a<128){i[n++]=c;continue}a=t[o++],c|=(a&15)<<28,i[n++]=c}return e.set(o),i}function dc(t,e,r){let i=new BigUint64Array(r);for(let n=0;n<i.length;n++)i[n]=GC(t,e);return i}function GC(t,e){let r=0n,i=0,n=e.get();for(;n<t.length;){let o=t[n++];if(r|=BigInt(o&127)<<BigInt(i),(o&128)===0)break;if(i+=7,i>=64)throw new Error("Varint too long")}return e.set(n),r}function WC(t,e,r){let i=new Float64Array(r);for(let n=0;n<r;n++)i[n]=JC(t,e);return i}function JC(t,e){let r,i;return i=t[e.get()],e.increment(),r=i&127,i<128||(i=t[e.get()],e.increment(),r|=(i&127)<<7,i<128)||(i=t[e.get()],e.increment(),r|=(i&127)<<14,i<128)||(i=t[e.get()],e.increment(),r|=(i&127)<<21,i<128)?r:(i=t[e.get()],r|=(i&15)<<28,KC(r,t,e))}function KC(t,e,r){let i,n;if(n=e[r.get()],r.increment(),i=(n&112)>>4,n<128||(n=e[r.get()],r.increment(),i|=(n&127)<<3,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<10,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<17,n<128)||(n=e[r.get()],r.increment(),i|=(n&127)<<24,n<128)||(n=e[r.get()],r.increment(),i|=(n&1)<<31,n<128))return i*4294967296+(t>>>0);throw new Error("Expected varint not more than 10 bytes")}function HC(t,e,r,i){let n=BC(r>>>2);return qC(t,e,r,i,n)}function qC(t,e,r,i,n){let o=i.get();if((r&3)!==0)throw new Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${o} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,a=DC(n,s);ZC(t,o,r,a);let c=jC(a.subarray(0,s),e,n.decoderWorkspace);return i.add(r),c}function be(t){return t>>>1^-(t&1)}function jt(t){return t>>1n^-(t&1n)}function Po(t){return t%2===1?(t+1)/-2:t/2}function YC(t){let e=new Int32Array(t.length);for(let r=0;r<t.length;r++)e[r]=be(t[r]);return e}function XC(t){let e=new BigInt64Array(t.length);for(let r=0;r<t.length;r++)e[r]=jt(t[r]);return e}function QC(t){for(let e=0;e<t.length;e++)t[e]=Po(t[e])}function fw(t,e,r){if(r===void 0){r=0;for(let o=0;o<e;o++)r+=t[o]}let i=new Uint32Array(r),n=0;for(let o=0;o<e;o++){let s=t[o],a=t[o+e];i.fill(a,n,n+s),n+=s}return i}function dw(t,e,r){if(r===void 0){r=0;for(let o=0;o<e;o++)r+=Number(t[o])}let i=new BigUint64Array(r),n=0;for(let o=0;o<e;o++){let s=Number(t[o]),a=t[o+e];i.fill(a,n,n+s),n+=s}return i}function S2(t,e,r){let i=new Float64Array(r),n=0;for(let o=0;o<e;o++){let s=t[o],a=t[o+e];i.fill(a,n,n+s),n+=s}return i}function u2(t){let e=new Int32Array(t.length);e[0]=be(t[0]);let r=t.length/4*4,i=1;if(r>=4)for(;i<r-4;i+=4){let n=t[i],o=t[i+1],s=t[i+2],a=t[i+3];e[i]=be(n)+e[i-1],e[i+1]=be(o)+e[i],e[i+2]=be(s)+e[i+1],e[i+3]=be(a)+e[i+2]}for(;i!==t.length;++i)e[i]=be(t[i])+e[i-1];return e}function l2(t){let e=new BigInt64Array(t.length);e[0]=jt(t[0]);let r=t.length/4*4,i=1;if(r>=4)for(;i<r-4;i+=4){let n=t[i],o=t[i+1],s=t[i+2],a=t[i+3];e[i]=jt(n)+e[i-1],e[i+1]=jt(o)+e[i],e[i+2]=jt(s)+e[i+1],e[i+3]=jt(a)+e[i+2]}for(;i!==e.length;++i)e[i]=jt(t[i])+e[i-1];return e}function e3(t){t[0]=Po(t[0]);let e=t.length/4*4,r=1;if(e>=4)for(;r<e-4;r+=4){let i=t[r],n=t[r+1],o=t[r+2],s=t[r+3];t[r]=Po(i)+t[r-1],t[r+1]=Po(n)+t[r],t[r+2]=Po(o)+t[r+1],t[r+3]=Po(s)+t[r+2]}for(;r!==t.length;++r)t[r]=Po(t[r])+t[r-1]}function t3(t,e,r){if(r===void 0){r=0;for(let o=0;o<e;o++)r+=t[o]}let i=new Int32Array(r),n=0;for(let o=0;o<e;o++){let s=t[o],a=t[o+e];a=be(a),i.fill(a,n,n+s),n+=s}return i}function r3(t,e,r){if(r===void 0){r=0;for(let o=0;o<e;o++)r+=Number(t[o])}let i=new BigInt64Array(r),n=0;for(let o=0;o<e;o++){let s=Number(t[o]),a=t[o+e];a=jt(a),i.fill(a,n,n+s),n+=s}return i}function n3(t,e,r){let i=new Float64Array(r),n=0;for(let o=0;o<e;o++){let s=t[o],a=t[o+e];a=Po(a),i.fill(a,n,n+s),n+=s}return i}function xw(t){let e=t.length/4*4,r=1;if(e>=4)for(let i=t[0];r<e-4;r+=4)i=t[r]+=i,i=t[r+1]+=i,i=t[r+2]+=i,i=t[r+3]+=i;for(;r!==t.length;)t[r]+=t[r-1],++r}function i3(t){let e=0;for(let r=0;r<t.length;r++)t[r]+=e,e=t[r]}function o3(t){if(t.length<2)return new Int32Array(t);let e=new Int32Array(t.length);e[0]=be(t[0]),e[1]=be(t[1]);let r=t.length/4*4,i=2;if(r>=4)for(;i<r-4;i+=4){let n=t[i],o=t[i+1],s=t[i+2],a=t[i+3];e[i]=be(n)+e[i-2],e[i+1]=be(o)+e[i-1],e[i+2]=be(s)+e[i],e[i+3]=be(a)+e[i+1]}for(;i!==t.length;i+=2)e[i]=be(t[i])+e[i-2],e[i+1]=be(t[i+1])+e[i-1];return e}function T2(t,e,r,i){if(t.length<2)return new Int32Array(t);let n=new Int32Array(t.length),o=be(t[0]),s=be(t[1]);n[0]=Uo(Math.round(o*e),r,i),n[1]=Uo(Math.round(s*e),r,i);let a=t.length/16,c=2;if(a>=4)for(;c<a-4;c+=4){let u=t[c],l=t[c+1],f=be(u)+o,d=be(l)+s;n[c]=Uo(Math.round(f*e),r,i),n[c+1]=Uo(Math.round(d*e),r,i);let p=t[c+2],m=t[c+3];o=be(p)+f,s=be(m)+d,n[c+2]=Uo(Math.round(o*e),r,i),n[c+3]=Uo(Math.round(s*e),r,i)}for(;c!==t.length;c+=2)o+=be(t[c]),s+=be(t[c+1]),n[c]=Uo(Math.round(o*e),r,i),n[c+1]=Uo(Math.round(s*e),r,i);return n}function Uo(t,e,r){return Math.min(r,Math.max(e,t))}function s3(t){let e=new Int32Array(t.length+1);e[0]=0,e[1]=be(t[0]);let r=e[1];for(let i=2;i!==e.length;++i){let n=t[i-1],o=be(n);r+=o,e[i]=e[i-1]+r}return new Uint32Array(e)}function a3(t,e,r){let i=new Int32Array(r+1);i[0]=0;let n=1,o=i[0];for(let s=0;s<e;s++){let a=t[s],c=t[s+e];c=be(c);for(let u=n;u<n+a;u++)i[u]=c+o,o=i[u];n+=a}return i}function c3(t,e,r){let i=new Uint32Array(r+1);i[0]=0;let n=1,o=i[0];for(let s=0;s<e;s++){let a=t[s],c=t[s+e];for(let u=n;u<n+a;u++)i[u]=c+o,o=i[u];n+=a}return i}function u3(t,e,r){let i=new Int32Array(r),n=0,o=0;for(let s=0;s<e;s++){let a=t[s],c=t[s+e],u=be(c);for(let l=0;l<a;l++)o+=u,i[n++]=o}return i}function l3(t,e,r){let i=new BigInt64Array(r),n=0,o=0n;for(let s=0;s<e;s++){let a=Number(t[s]),c=t[s+e],u=jt(c);for(let l=0;l<a;l++)o+=u,i[n++]=o}return i}function f2(t){let e=new Uint32Array(t.length);e[0]=be(t[0])>>>0;for(let r=1;r<t.length;r++)e[r]=e[r-1]+be(t[r])>>>0;return e}function d2(t){let e=new BigUint64Array(t.length);e[0]=BigInt.asUintN(64,jt(t[0]));for(let r=1;r<t.length;r++)e[r]=BigInt.asUintN(64,e[r-1]+jt(t[r]));return e}function f3(t){if(t.length<2)return new Uint32Array(t);let e=new Uint32Array(t.length);e[0]=be(t[0])>>>0,e[1]=be(t[1])>>>0;for(let r=2;r<t.length;r+=2)e[r]=e[r-2]+be(t[r])>>>0,e[r+1]=e[r-1]+be(t[r+1])>>>0;return e}function d3(t,e,r,i){let n=T2(t,e,r,i);return new Uint32Array(n)}function p3(t){return t[1]}function m3(t){return be(t[1])}function h3(t){if(t.length===2){let i=be(t[1]);return[i,i]}let e=be(t[2]),r=be(t[3]);return[e,r]}function g3(t){return t[1]}function y3(t){return jt(t[1])}function v3(t){if(t.length===2){let i=jt(t[1]);return[i,i]}let e=jt(t[2]),r=jt(t[3]);return[e,r]}var gt;(function(t){t.PRESENT="PRESENT",t.DATA="DATA",t.OFFSET="OFFSET",t.LENGTH="LENGTH"})(gt||(gt={}));var Tn;(function(t){t.NONE="NONE",t.SINGLE="SINGLE",t.SHARED="SHARED",t.VERTEX="VERTEX",t.MORTON="MORTON",t.FSST="FSST"})(Tn||(Tn={}));var Hs;(function(t){t.VERTEX="VERTEX",t.INDEX="INDEX",t.STRING="STRING",t.KEY="KEY"})(Hs||(Hs={}));var hr;(function(t){t.VAR_BINARY="VAR_BINARY",t.GEOMETRIES="GEOMETRIES",t.PARTS="PARTS",t.RINGS="RINGS",t.TRIANGLES="TRIANGLES",t.SYMBOL="SYMBOL",t.DICTIONARY="DICTIONARY"})(hr||(hr={}));function Tt(t,e){let r=_3(t,e);return r.logicalLevelTechnique1===pe.MORTON?b3(r,t,e):(pe.RLE===r.logicalLevelTechnique1||pe.RLE===r.logicalLevelTechnique2)&&Mo.NONE!==r.physicalLevelTechnique?w3(r,t,e):r}function b3(t,e,r){let i=St(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:t.decompressedCount,numBits:i[0],coordinateShift:i[1]}}function w3(t,e,r){let i=St(e,r,2);return{physicalStreamType:t.physicalStreamType,logicalStreamType:t.logicalStreamType,logicalLevelTechnique1:t.logicalLevelTechnique1,logicalLevelTechnique2:t.logicalLevelTechnique2,physicalLevelTechnique:t.physicalLevelTechnique,numValues:t.numValues,byteLength:t.byteLength,decompressedCount:i[1],runs:i[0],numRleValues:i[1]}}function _3(t,e){let r=t[e.get()],i=Object.values(gt)[r>>4],n=null;switch(i){case gt.DATA:n={dictionaryType:Object.values(Tn)[r&15]};break;case gt.OFFSET:n={offsetType:Object.values(Hs)[r&15]};break;case gt.LENGTH:n={lengthType:Object.values(hr)[r&15]};break}e.increment();let o=t[e.get()],s=Object.values(pe)[o>>5],a=Object.values(pe)[o>>2&7],c=Object.values(Mo)[o&3];e.increment();let u=St(t,e,2),l=u[0],f=u[1];return{physicalStreamType:i,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:a,physicalLevelTechnique:c,numValues:l,byteLength:f,decompressedCount:l}}var je;(function(t){t[t.FLAT=0]="FLAT",t[t.CONST=1]="CONST",t[t.SEQUENCE=2]="SEQUENCE",t[t.DICTIONARY=3]="DICTIONARY",t[t.FSST_DICTIONARY=4]="FSST_DICTIONARY"})(je||(je={}));var kn=class{constructor(t,e){this.values=t,this._size=e}get(t){let e=Math.floor(t/8),r=t%8;return(this.values[e]>>r&1)===1}set(t,e){let r=Math.floor(t/8),i=t%8;this.values[r]=this.values[r]|(e?1:0)<<i}getInt(t){let e=Math.floor(t/8),r=t%8;return this.values[e]>>r&1}size(){return this._size}getBuffer(){return this.values}};function pc(t,e,r){if(!e)return t;let i=e.size(),n=t.constructor,o=new n(i),s=0;for(let a=0;a<i;a++)o[a]=e.get(a)?t[s++]:r;return o}function x3(t,e,r){if(!r)return t;let i=r.size(),n=new kn(t,e),o=new kn(new Uint8Array(Math.ceil(i/8)),i),s=0;for(let a=0;a<i;a++){let c=r.get(a)?n.get(s++):!1;o.set(a,c)}return o.getBuffer()}function pw(t,e,r,i,n){let o=mc(t,e,r);return k3(o,r,i,n)}function mr(t,e,r,i,n){let o=mc(t,e,r);return A3(o,r,i,n)}function Fo(t,e,r){let i=mc(t,e,r);return N3(i,r)}function mc(t,e,r){let i=r.physicalLevelTechnique;switch(i){case Mo.FAST_PFOR:return HC(t,r.numValues,r.byteLength,e);case Mo.VARINT:return St(t,e,r.numValues);case Mo.NONE:{let n=e.get(),o=r.byteLength;e.add(o);let s=t.subarray(n,e.get());return new Uint32Array(s)}default:throw new Error(`Specified physicalLevelTechnique ${i} is not supported (yet).`)}}function I3(t,e,r){let i=mc(t,e,r);return i.length===1?be(i[0]):m3(i)}function Iw(t,e,r){let i=mc(t,e,r);return i.length===1?i[0]:p3(i)}function k2(t,e,r){let i=mc(t,e,r);return h3(i)}function A2(t,e,r){let i=dc(t,e,r.numValues);return v3(i)}function $3(t,e,r,i){let n=dc(t,e,r.numValues);return O3(n,r,i)}function O2(t,e,r,i){let n=dc(t,e,r.numValues);return B3(n,r,i)}function S3(t,e,r){let i=WC(t,e,r.numValues);return D3(i,r,!1)}function T3(t,e,r){let i=dc(t,e,r.numValues);return i.length===1?jt(i[0]):y3(i)}function B2(t,e,r){let i=dc(t,e,r.numValues);return i.length===1?i[0]:g3(i)}function k3(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case pe.DELTA:if(e.logicalLevelTechnique2===pe.RLE){let o=e;if(!i)return u3(t,o.runs,o.numRleValues);t=fw(t,o.runs,o.numRleValues),n=u2(t)}else n=u2(t);break;case pe.RLE:n=t3(t,e.runs,e.numRleValues);break;case pe.MORTON:xw(t),n=new Int32Array(t);break;case pe.COMPONENTWISE_DELTA:if(r&&!i)return T2(t,r.scale,r.min,r.max);n=o3(t);break;case pe.NONE:n=YC(t);break;default:throw new Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?pc(n,i,0):n}function A3(t,e,r,i){let n;switch(e.logicalLevelTechnique1){case pe.DELTA:if(e.logicalLevelTechnique2===pe.RLE){let o=e,s=fw(t,o.runs,o.numRleValues);n=f2(s)}else n=f2(t);break;case pe.RLE:n=fw(t,e.runs,e.numRleValues);break;case pe.MORTON:xw(t),n=t;break;case pe.COMPONENTWISE_DELTA:r&&!i?n=d3(t,r.scale,r.min,r.max):n=f3(t);break;case pe.NONE:n=t;break;default:throw new Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return i?pc(n,i,0):n}function O3(t,e,r){let i;switch(e.logicalLevelTechnique1){case pe.DELTA:if(e.logicalLevelTechnique2===pe.RLE){let n=e;if(!r)return l3(t,n.runs,n.numRleValues);t=dw(t,n.runs,n.numRleValues),i=l2(t)}else i=l2(t);break;case pe.RLE:i=r3(t,e.runs,e.numRleValues);break;case pe.NONE:i=XC(t);break;default:throw new Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?pc(i,r,0n):i}function B3(t,e,r){let i;switch(e.logicalLevelTechnique1){case pe.DELTA:if(e.logicalLevelTechnique2===pe.RLE){let n=e,o=dw(t,n.runs,n.numRleValues);i=d2(o)}else i=d2(t);break;case pe.RLE:i=dw(t,e.runs,e.numRleValues);break;case pe.NONE:i=t;break;default:throw new Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}return r?pc(i,r,0n):i}function D3(t,e,r){switch(e.logicalLevelTechnique1){case pe.DELTA:if(e.logicalLevelTechnique2===pe.RLE){let i=e;t=S2(t,i.runs,i.numRleValues)}return e3(t),t;case pe.RLE:return L3(t,e,r);case pe.NONE:return r&&QC(t),t;default:throw new Error(`The specified Logical level technique is not supported: ${e.logicalLevelTechnique1}`)}}function N3(t,e){if(e.logicalLevelTechnique1===pe.DELTA&&e.logicalLevelTechnique2===pe.NONE)return s3(t);if(e.logicalLevelTechnique1===pe.RLE&&e.logicalLevelTechnique2===pe.NONE){let r=e;return c3(t,r.runs,r.numRleValues)}if(e.logicalLevelTechnique1===pe.NONE&&e.logicalLevelTechnique2===pe.NONE){i3(t);let r=new Uint32Array(e.numValues+1);return r[0]=0,r.set(t,1),r}if(e.logicalLevelTechnique1===pe.DELTA&&e.logicalLevelTechnique2===pe.RLE){let r=e,i=a3(t,r.runs,r.numRleValues);return xw(i),new Uint32Array(i)}throw new Error("Only delta encoding is supported for transforming length to offset streams yet.")}function am(t,e,r,i,n="int32"){let o=t.logicalLevelTechnique1;if(o===pe.RLE)return t.runs===1?je.CONST:je.FLAT;if(o!==pe.DELTA||t.logicalLevelTechnique2!==pe.RLE)return t.numValues===1?je.CONST:je.FLAT;let s=e instanceof kn?e.size():e,a=t;if(a.numRleValues!==s)return je.FLAT;if(a.runs===1)return je.SEQUENCE;if(a.runs!==2)return t.numValues===1?je.CONST:je.FLAT;let c=i.get();if(t.physicalLevelTechnique===Mo.VARINT)return z3(r,i,n)?je.SEQUENCE:t.numValues===1?je.CONST:je.FLAT;let u=i.get(),l=new Int32Array(r.buffer,r.byteOffset+u,4);i.set(c);let f=2;return l[2]===f&&l[3]===f?je.SEQUENCE:t.numValues===1?je.CONST:je.FLAT}function z3(t,e,r){let i=new x2(e.get());if(r==="int64"){let o=dc(t,i,4);return o[2]===2n&&o[3]===2n}let n=St(t,i,4);return n[2]===2&&n[3]===2}function L3(t,e,r){return r?n3(t,e.runs,e.numRleValues):S2(t,e.runs,e.numRleValues)}var D2=class extends sm{getValueFromBuffer(t){return this.dataBuffer[t]}},N2=class extends w2{constructor(t,e,r,i){super(t,BigInt64Array.of(e),r,i)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function $w(t,e,r){let i=p2(t,e)-r,n=p2(t>>1,e)-r;return{x:i,y:n}}function p2(t,e){let r=0;for(let i=0;i<e;i++)r|=(t&1<<2*i)>>i;return r}var er;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON",t[t.MULTIPOINT=3]="MULTIPOINT",t[t.MULTILINESTRING=4]="MULTILINESTRING",t[t.MULTIPOLYGON=5]="MULTIPOLYGON"})(er||(er={}));var m2;(function(t){t[t.POINT=0]="POINT",t[t.LINESTRING=1]="LINESTRING",t[t.POLYGON=2]="POLYGON"})(m2||(m2={}));var Co;(function(t){t[t.MORTON=0]="MORTON",t[t.VEC_2=1]="VEC_2",t[t.VEC_3=2]="VEC_3"})(Co||(Co={}));function tr(t,e){this.x=t,this.y=e}tr.prototype={clone(){return new tr(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,e){return this.clone()._rotateAround(t,e)},matMult(t){return this.clone()._matMult(t)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult(t){let e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let e=Math.cos(t),r=Math.sin(t),i=e*this.x-r*this.y,n=r*this.x+e*this.y;return this.x=i,this.y=n,this},_rotateAround(t,e){let r=Math.cos(t),i=Math.sin(t),n=e.x+r*(this.x-e.x)-i*(this.y-e.y),o=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=n,this.y=o,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:tr};tr.convert=function(t){if(t instanceof tr)return t;if(Array.isArray(t))return new tr(+t[0],+t[1]);if(t.x!==void 0&&t.y!==void 0)return new tr(+t.x,+t.y);throw new Error("Expected [x, y] or {x, y} point format")};function E3(t){let e=new Array(t.numGeometries),r=1,i=1,n=1,o=0,s=0,a=0,c=t.mortonSettings,u=t.topologyVector,l=u.geometryOffsets,f=u.partOffsets,d=u.ringOffsets,p=t.vertexOffsets,m=!p||p.length===0,g=t.containsPolygonGeometry(),v=t.vertexBuffer;for(let I=0;I<t.numGeometries;I++)switch(t.geometryType(I)){case er.POINT:{let _,x;if(m)_=v[s++],x=v[s++];else if(t.vertexBufferType===Co.MORTON){let O=p[a++],N=v[O],R=$w(N,c.numBits,c.coordinateShift);_=R.x,x=R.y}else{let O=p[a++]*2;_=v[O],x=v[O+1]}e[o++]=[[new tr(_,x)]],l&&n++,f&&r++,d&&i++}break;case er.MULTIPOINT:{let _=l[n]-l[n-1];n++;let x=new Array(_);if(m)for(let O=0;O<_;O++){let N=v[s++],R=v[s++];x[O]=new tr(N,R)}else for(let O=0;O<_;O++){let N=p[a++]*2,R=v[N],Ue=v[N+1];x[O]=new tr(R,Ue)}e[o++]=x.map(O=>[O]),r+=_,i+=_}break;case er.LINESTRING:{let _;g?(_=d[i]-d[i-1],i++):_=f[r]-f[r-1],r++;let x;m?(x=uc(v,s,_,!1),s+=_*2):(x=cc(t.vertexBufferType,v,p,a,_,!1,c),a+=_),e[o++]=[x],l&&n++}break;case er.POLYGON:{let _=f[r]-f[r-1];r++;let x=new Array(_-1),O,N=d[i]-d[i-1];if(i++,m){O=uc(v,s,N,!0),s+=N*2;for(let R=0;R<x.length;R++)N=d[i]-d[i-1],i++,x[R]=uc(v,s,N,!0),s+=N*2}else{O=cc(t.vertexBufferType,v,p,a,N,!0,c),a+=N;for(let R=0;R<x.length;R++)N=d[i]-d[i-1],i++,x[R]=cc(t.vertexBufferType,v,p,a,N,!0,c),a+=N}e[o++]=[O].concat(x),l&&n++}break;case er.MULTILINESTRING:{let _=l[n]-l[n-1];n++;let x=new Array(_);for(let O=0;O<_;O++){let N;if(g?(N=d[i]-d[i-1],i++):N=f[r]-f[r-1],r++,m)x[O]=uc(v,s,N,!1),s+=N*2;else{let R=cc(t.vertexBufferType,v,p,a,N,!1,c);x[O]=R,a+=N}}e[o++]=x}break;case er.MULTIPOLYGON:{let _=l[n]-l[n-1];n++;let x=new Array(_);for(let O=0;O<_;O++){let N=f[r]-f[r-1];r++;let R,Ue=new Array(N-1),we=d[i]-d[i-1];i++,m?(R=uc(v,s,we,!0),s+=we*2):(R=cc(t.vertexBufferType,v,p,a,we,!0,c),a+=we);for(let Me=0;Me<Ue.length;Me++){let Ve=d[i]-d[i-1];i++,m?(Ue[Me]=uc(v,s,Ve,!0),s+=Ve*2):(Ue[Me]=cc(t.vertexBufferType,v,p,a,Ve,!0,c),a+=Ve)}x[O]=[R].concat(Ue)}e[o++]=x.flat()}break;default:throw new Error("The specified geometry type is currently not supported.")}return e}function cc(t,e,r,i,n,o,s){return t===Co.MORTON?P3(e,r,i,n,o,s):U3(e,r,i,n,o)}function uc(t,e,r,i){let n=new Array(i?r+1:r);for(let o=0;o<r*2;o+=2){let s=t[e+o],a=t[e+o+1];n[o/2]=new tr(s,a)}return i&&(n[n.length-1]=n[0]),n}function U3(t,e,r,i,n){let o=new Array(n?i+1:i);for(let s=0;s<i*2;s+=2){let a=e[r+s/2]*2,c=t[a],u=t[a+1];o[s/2]=new tr(c,u)}return n&&(o[o.length-1]=o[0]),o}function P3(t,e,r,i,n,o){let s=new Array(n?i+1:i);for(let a=0;a<i;a++){let c=e[r+a],u=t[c],l=$w(u,o.numBits,o.coordinateShift);s[a]=new tr(l.x,l.y)}return n&&(s[s.length-1]=s[0]),s}var Sw=class{constructor(t,e,r,i,n){this._vertexBufferType=t,this._topologyVector=e,this._vertexOffsets=r,this._vertexBuffer=i,this._mortonSettings=n}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(t){let e=this.vertexOffsets?this.vertexOffsets[t]*2:t*2,r=this.vertexBuffer[e],i=this.vertexBuffer[e+1];return[r,i]}getVertex(t){if(this.vertexOffsets&&this.mortonSettings){let n=this.vertexOffsets[t],o=this.vertexBuffer[n],s=$w(o,this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[s.x,s.y]}let e=this.vertexOffsets?this.vertexOffsets[t]*2:t*2,r=this.vertexBuffer[e],i=this.vertexBuffer[e+1];return[r,i]}getGeometries(){return E3(this)}get mortonSettings(){return this._mortonSettings}};function F3(t,e,r,i,n){return new z2(t,e,Co.VEC_2,r,i,n)}function M3(t,e,r,i,n,o){return new z2(t,e,Co.MORTON,r,i,n,o)}var z2=class extends Sw{constructor(t,e,r,i,n,o,s){super(r,i,n,o,s),this._numGeometries=t,this._geometryType=e}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===er.POLYGON||this._geometryType===er.MULTIPOLYGON}containsSingleGeometryType(){return!0}};function C3(t,e,r,i){return new L2(Co.VEC_2,t,e,r,i)}function R3(t,e,r,i,n){return new L2(Co.MORTON,t,e,r,i,n)}var L2=class extends Sw{constructor(t,e,r,i,n,o){super(t,r,i,n,o),this._geometryTypes=e}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let t=0;t<this.numGeometries;t++)if(this.geometryType(t)===er.POLYGON||this.geometryType(t)===er.MULTIPOLYGON)return!0;return!1}containsSingleGeometryType(){return!1}},Tw=class{constructor(t,e,r,i){this._triangleOffsets=t,this._indexBuffer=e,this._vertexBuffer=r,this._topologyVector=i}get triangleOffsets(){return this._triangleOffsets}get indexBuffer(){return this._indexBuffer}get vertexBuffer(){return this._vertexBuffer}get topologyVector(){return this._topologyVector}getGeometries(){if(!this._topologyVector)throw new Error("Cannot convert GpuVector to coordinates without topology information");let t=new Array(this.numGeometries),e=this._topologyVector,r=e.partOffsets,i=e.ringOffsets,n=e.geometryOffsets,o=0,s=1,a=1,c=1;for(let u=0;u<this.numGeometries;u++)switch(this.geometryType(u)){case er.POLYGON:{let f=r[s]-r[s-1];s++;let d=[];for(let p=0;p<f;p++){let m=i[a]-i[a-1];a++;let g=[];for(let v=0;v<m;v++){let I=this._vertexBuffer[o++],A=this._vertexBuffer[o++];g.push(new tr(I,A))}g.length>0&&g.push(g[0]),d.push(g)}t[u]=d,n&&c++}break;case er.MULTIPOLYGON:{let f=n[c]-n[c-1];c++;let d=[];for(let p=0;p<f;p++){let m=r[s]-r[s-1];s++;for(let g=0;g<m;g++){let v=i[a]-i[a-1];a++;let I=[];for(let A=0;A<v;A++){let _=this._vertexBuffer[o++],x=this._vertexBuffer[o++];I.push(new tr(_,x))}I.length>0&&I.push(I[0]),d.push(I)}}t[u]=d}break}return t}[Symbol.iterator](){return null}};function h2(t,e,r,i,n,o){return new j3(t,e,r,i,n,o)}var j3=class extends Tw{constructor(t,e,r,i,n,o){super(r,i,n,o),this._numGeometries=t,this._geometryType=e}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}};function g2(t,e,r,i,n){return new V3(t,e,r,i,n)}var V3=class extends Tw{constructor(t,e,r,i,n){super(e,r,i,n),this._geometryTypes=t}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}};function Z3(t,e,r,i,n){let o=Tt(t,r),s=am(o,i,t,r),a,c,u,l;if(s===je.CONST){let _=Iw(t,r,o),x,O,N,R;for(let Ue=0;Ue<e-1;Ue++){let we=Tt(t,r);switch(we.physicalStreamType){case gt.LENGTH:switch(we.logicalStreamType.lengthType){case hr.GEOMETRIES:x=Fo(t,r,we);break;case hr.PARTS:O=Fo(t,r,we);break;case hr.RINGS:N=Fo(t,r,we);break;case hr.TRIANGLES:R=Fo(t,r,we)}break;case gt.OFFSET:{switch(we.logicalStreamType.offsetType){case Hs.VERTEX:a=mr(t,r,we);break;case Hs.INDEX:l=mr(t,r,we);break}break}case gt.DATA:{if(Tn.VERTEX===we.logicalStreamType.dictionaryType)c=pw(t,r,we,n);else{let Me=we;u={numBits:Me.numBits,coordinateShift:Me.coordinateShift},c=mr(t,r,we,n)}break}}}return l?x!==void 0||O!==void 0?h2(i,_,R,l,c,{geometryOffsets:x,partOffsets:O,ringOffsets:N}):h2(i,_,R,l,c):u===void 0?F3(i,_,{geometryOffsets:x,partOffsets:O,ringOffsets:N},a,c):M3(i,_,{geometryOffsets:x,partOffsets:O,ringOffsets:N},a,c,u)}let f=mr(t,r,o),d,p,m,g;for(let _=0;_<e-1;_++){let x=Tt(t,r);switch(x.physicalStreamType){case gt.LENGTH:switch(x.logicalStreamType.lengthType){case hr.GEOMETRIES:d=mr(t,r,x);break;case hr.PARTS:p=mr(t,r,x);break;case hr.RINGS:m=mr(t,r,x);break;case hr.TRIANGLES:g=Fo(t,r,x)}break;case gt.OFFSET:switch(x.logicalStreamType.offsetType){case Hs.VERTEX:a=mr(t,r,x);break;case Hs.INDEX:l=mr(t,r,x);break}break;case gt.DATA:if(Tn.VERTEX===x.logicalStreamType.dictionaryType)c=pw(t,r,x,n);else{let O=x;u={numBits:O.numBits,coordinateShift:O.coordinateShift},c=mr(t,r,x,n)}break}}let v,I,A;return d?(v=cw(f,d,2),p&&m?(I=y2(f,v,p,!1),A=W3(f,v,I,m)):p&&(I=G3(f,v,p))):p&&m?(I=cw(f,p,1),A=y2(f,I,m,!0)):p&&(I=cw(f,p,0)),l&&!I?g2(f,g,l,c):l?g2(f,g,l,c,{geometryOffsets:v,partOffsets:I,ringOffsets:A}):u===void 0?C3(f,{geometryOffsets:v,partOffsets:I,ringOffsets:A},a,c):R3(f,{geometryOffsets:v,partOffsets:I,ringOffsets:A},a,c,u)}function cw(t,e,r){let i=new Uint32Array(t.length+1),n=0;i[0]=n;let o=0;for(let s=0;s<t.length;s++)n=i[s+1]=n+(t[s]>r?e[o++]:1);return i}function y2(t,e,r,i){let n=new Uint32Array(e[e.length-1]+1),o=0;n[0]=o;let s=1,a=0;for(let c=0;c<t.length;c++){let u=t[c],l=e[c+1]-e[c];if(u===5||u===2||i&&(u===4||u===1))for(let f=0;f<l;f++)o=n[s++]=o+r[a++];else for(let f=0;f<l;f++)n[s++]=++o}return n}function G3(t,e,r){let i=new Uint32Array(e[e.length-1]+1),n=0;i[0]=n;let o=1,s=0;for(let a=0;a<t.length;a++){let c=t[a],u=e[a+1]-e[a];if(c===4||c===1)for(let l=0;l<u;l++)n=i[o++]=n+r[s++];else for(let l=0;l<u;l++)i[o++]=++n}return i}function W3(t,e,r,i){let n=new Uint32Array(r[r.length-1]+1),o=0;n[0]=o;let s=1,a=1,c=0;for(let u=0;u<t.length;u++){let l=t[u],f=e[u+1]-e[u];if(l!==0&&l!==3)for(let d=0;d<f;d++){let p=r[s]-r[s-1];s++;for(let m=0;m<p;m++)o=n[a++]=o+i[c++]}else for(let d=0;d<f;d++)n[a++]=++o,s++}return n}var J3=class extends fc{constructor(t,e,r){super(t,e.getBuffer(),r),this.dataVector=e}getValueFromBuffer(t){return this.dataVector.get(t)}},K3=class extends sm{getValueFromBuffer(t){return this.dataBuffer[t]}},E2=class extends fc{constructor(t,e,r,i){super(t,i?BigInt64Array.of(e):BigUint64Array.of(e),r)}getValueFromBuffer(t){return this.dataBuffer[0]}};function U2(t,e,r){for(let i=0;i<t;i++){let n=Tt(e,r);r.add(n.byteLength)}}function zl(t,e,r,i,n){let o=Math.ceil(e/8),s=H3(t,o,r,i);return n?x3(s,e,n):s}function H3(t,e,r,i){let n=new Uint8Array(e),o=0,s=i.get()+r;for(;o<e&&!(i.get()>=s);){let a=t[i.increment()];if(a<=127){let c=a+3,u=t[i.increment()],l=Math.min(o+c,e);n.fill(u,o,l),o=l}else{let c=256-a;for(let u=0;u<c&&o<e;u++)n[o++]=t[i.increment()]}}return i.set(s),n}function q3(t,e,r,i){let n=e.get(),o=n+r*Float32Array.BYTES_PER_ELEMENT,s=new Uint8Array(t.subarray(n,o)).buffer,a=new Float32Array(s);return e.set(o),i?pc(a,i,0):a}function Y3(t,e,r,i){let n=e.get(),o=n+r*Float64Array.BYTES_PER_ELEMENT,s=new Uint8Array(t.subarray(n,o)).buffer,a=new Float64Array(s);return e.set(o),i?pc(a,i,0):a}var X3=12,Q3=new TextDecoder;function kw(t,e,r){return r-e>=X3?Q3.decode(t.subarray(e,r)):eR(t,e,r)}function eR(t,e,r){let i="",n=e;for(;n<r;){let o=t[n],s=null,a=o>239?4:o>223?3:o>191?2:1;if(n+a>r)break;let c,u,l;a===1?o<128&&(s=o):a===2?(c=t[n+1],(c&192)===128&&(s=(o&31)<<6|c&63,s<=127&&(s=null))):a===3?(c=t[n+1],u=t[n+2],(c&192)===128&&(u&192)===128&&(s=(o&15)<<12|(c&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):a===4&&(c=t[n+1],u=t[n+2],l=t[n+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(s=(o&15)<<18|(c&63)<<12|(u&63)<<6|l&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,a=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=a}return i}var Aw=class extends fc{constructor(t,e,r,i){super(t,r,i),this.offsetBuffer=e}},v2=class extends Aw{constructor(t,e,r,i){super(t,e,r,i??e.length-1)}getValueFromBuffer(t){let e=this.offsetBuffer[t],r=this.offsetBuffer[t+1];return kw(this.dataBuffer,e,r)}},lc=class extends Aw{constructor(t,e,r,i,n){super(t,r,i,n??e.length),this.indexBuffer=e,this.indexBuffer=e}getValueFromBuffer(t){let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return kw(this.dataBuffer,r,i)}};function tR(t,e,r){let i=[],n=new Array(e.length).fill(0);for(let o=1;o<e.length;o++)n[o]=n[o-1]+e[o-1];for(let o=0;o<r.length;o++)if(r[o]===255)i.push(r[++o]);else{let s=e[r[o]],a=n[r[o]];for(let c=0;c<s;c++)i.push(t[a+c])}return new Uint8Array(i)}var P2=class extends Aw{constructor(t,e,r,i,n,o,s){super(t,r,i,s),this.indexBuffer=e,this.symbolOffsetBuffer=n,this.symbolTableBuffer=o}getValueFromBuffer(t){this.decodedDictionary==null&&(this.symbolLengthBuffer==null&&(this.symbolLengthBuffer=this.offsetToLengthBuffer(this.symbolOffsetBuffer)),this.decodedDictionary=tR(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer));let e=this.indexBuffer[t],r=this.offsetBuffer[e],i=this.offsetBuffer[e+1];return kw(this.decodedDictionary,r,i)}offsetToLengthBuffer(t){let e=new Uint32Array(t.length-1),r=t[0];for(let i=1;i<t.length;i++){let n=t[i];e[i-1]=n-r,r=n}return e}};function rR(t,e,r,i,n){let o=null,s=null,a=null,c=null,u=null,l=n??null,f=null,d=null;for(let p=0;p<i;p++){let m=Tt(e,r);switch(m.physicalStreamType){case gt.PRESENT:{let g=zl(e,m.numValues,m.byteLength,r),v=new kn(g,m.numValues);l=n??v;break}case gt.OFFSET:{s=mr(e,r,m,void 0,l);break}case gt.LENGTH:{let g=Fo(e,r,m);hr.DICTIONARY===m.logicalStreamType.lengthType?o=g:hr.SYMBOL===m.logicalStreamType.lengthType?c=g:f=g;break}case gt.DATA:{let g=e.subarray(r.get(),r.get()+m.byteLength);r.add(m.byteLength);let v=m.logicalStreamType.dictionaryType;Tn.FSST===v?u=g:Tn.SINGLE===v||Tn.SHARED===v?a=g:Tn.NONE===v&&(d=g);break}}}return nR(t,u,s,o,a,c,l)??iR(t,a,s,o,l)??oR(t,f,d,s,l)}function nR(t,e,r,i,n,o,s){return e?new P2(t,r,i,n,o,e,s):null}function iR(t,e,r,i,n){return e?n?new lc(t,r,i,e,n):new lc(t,r,i,e):null}function oR(t,e,r,i,n){if(!e||!r)return null;if(i)return n?new lc(t,i,e,r,n):new lc(t,i,e,r);if(n&&n.size()!==e.length-1){let o=new Uint32Array(n.size()),s=0;for(let a=0;a<n.size();a++)n.get(a)?o[a]=s++:o[a]=0;return new lc(t,o,e,r,n)}return n?new v2(t,e,r,n):new v2(t,e,r)}function sR(t,e,r,i,n){let o=null,s=null,a=null,c=null,u=!1;for(;!u;){let p=Tt(t,e);switch(p.physicalStreamType){case gt.LENGTH:hr.DICTIONARY===p.logicalStreamType.lengthType?o=Fo(t,e,p):a=Fo(t,e,p);break;case gt.DATA:Tn.SINGLE===p.logicalStreamType.dictionaryType||Tn.SHARED===p.logicalStreamType.dictionaryType?(s=t.subarray(e.get(),e.get()+p.byteLength),u=!0):c=t.subarray(e.get(),e.get()+p.byteLength),e.add(p.byteLength);break}}let l=r.complexType.children,f=[],d=0;for(let p of l){let m=St(t,e,1)[0];if(m===0)continue;let g=p.name?`${r.name}${p.name}`:r.name;if(n&&!n.has(g)){U2(m,t,e);continue}if(m!==2||p.type!=="scalarField"||p.scalarField.physicalType!==ke.STRING)throw new Error("Currently only optional string fields are implemented for a struct.");let v=Tt(t,e),I=zl(t,v.numValues,v.byteLength,e),A=Tt(t,e),x=A.decompressedCount!==i,O=mr(t,e,A,void 0,x?new kn(I,v.numValues):void 0);f[d++]=c?new P2(g,O,o,s,a,c,new kn(I,v.numValues)):new lc(g,O,o,s,new kn(I,v.numValues))}return f}function aR(t,e,r,i,n,o){return r.type==="scalarType"?o&&!o.has(r.name)?(U2(i,t,e),null):cR(i,t,e,n,r.scalarType,r):i===0?null:sR(t,e,r,n,o)}function cR(t,e,r,i,n,o){let s=null;if(t===0)return null;if(o.nullable){let u=Tt(e,r),l=u.numValues,f=r.get(),d=zl(e,l,u.byteLength,r);r.set(f+u.byteLength),s=new kn(d,u.numValues)}let a=s??i;switch(n.physicalType){case ke.UINT_32:case ke.INT_32:return pR(e,r,o,n,a);case ke.STRING:{let u=o.nullable?t-1:t;return rR(o.name,e,r,u,s)}case ke.BOOLEAN:return uR(e,r,o,i,a);case ke.UINT_64:case ke.INT_64:return dR(e,r,o,a,n);case ke.FLOAT:return lR(e,r,o,a);case ke.DOUBLE:return fR(e,r,o,a);default:throw new Error(`The specified data type for the field is currently not supported: ${n}`)}}function uR(t,e,r,i,n){let o=Tt(t,e),s=o.numValues,a=e.get(),c=Ll(n)?n:void 0,u=zl(t,s,o.byteLength,e,c);e.set(a+o.byteLength);let l=new kn(u,s);return new J3(r.name,l,n)}function lR(t,e,r,i){let n=Tt(t,e),o=Ll(i)?i:void 0,s=q3(t,e,n.numValues,o);return new K3(r.name,s,i)}function fR(t,e,r,i){let n=Tt(t,e),o=Ll(i)?i:void 0,s=Y3(t,e,n.numValues,o);return new gw(r.name,s,i)}function dR(t,e,r,i,n){let o=Tt(t,e),s=am(o,i,t,e,"int64"),a=n.physicalType===ke.INT_64;if(s===je.FLAT){let u=Ll(i)?i:void 0,l=a?$3(t,e,o,u):O2(t,e,o,u);return new D2(r.name,l,i)}if(s===je.SEQUENCE){let u=A2(t,e,o);return new N2(r.name,u[0],u[1],o.numRleValues)}let c=a?T3(t,e,o):B2(t,e,o);return new E2(r.name,c,i,a)}function pR(t,e,r,i,n){let o=Tt(t,e),s=am(o,n,t,e),a=i.physicalType===ke.INT_32;if(s===je.FLAT){let u=Ll(n)?n:void 0,l=a?pw(t,e,o,void 0,u):mr(t,e,o,void 0,u);return new hw(r.name,l,n)}if(s===je.SEQUENCE){let u=k2(t,e,o);return new yw(r.name,u[0],u[1],o.numRleValues)}let c=a?I3(t,e,o):Iw(t,e,o);return new vw(r.name,c,n,a)}function Ll(t){return t instanceof kn}function F2(t){switch(t){case 0:case 1:case 2:case 3:{let e={};e.nullable=(t&1)!==0,e.columnScope=om.FEATURE;let r={};return r.type="logicalType",r.logicalType=bw.ID,r.longID=(t&2)!==0,e.scalarType=r,e.type="scalarType",e}case 4:{let e={};e.nullable=!1,e.columnScope=om.FEATURE;let r={};return r.type="physicalType",r.physicalType=Nl.GEOMETRY,e.type="complexType",e.complexType=r,e}case 30:{let e={};e.nullable=!1,e.columnScope=om.FEATURE;let r={};return r.type="physicalType",r.physicalType=Nl.STRUCT,e.type="complexType",e.complexType=r,e}default:return yR(t)}}function M2(t){return t>=10}function C2(t){return t===30}function mR(t){if(t.type==="scalarType"){let e=t.scalarType;if(e.type==="physicalType")switch(e.physicalType){case ke.BOOLEAN:case ke.INT_8:case ke.UINT_8:case ke.INT_32:case ke.UINT_32:case ke.INT_64:case ke.UINT_64:case ke.FLOAT:case ke.DOUBLE:return!1;case ke.STRING:return!0;default:return!1}if(e.type==="logicalType")return!1}else if(t.type==="complexType"){let e=t.complexType;if(e.type==="physicalType")switch(e.physicalType){case Nl.GEOMETRY:case Nl.STRUCT:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}function hR(t){return t.type==="scalarType"&&t.scalarType?.type==="logicalType"&&t.scalarType.logicalType===bw.ID}function gR(t){return t.type==="complexType"&&t.complexType?.type==="physicalType"&&t.complexType.physicalType===Nl.GEOMETRY}function yR(t){let e;switch(t){case 10:case 11:e=ke.BOOLEAN;break;case 12:case 13:e=ke.INT_8;break;case 14:case 15:e=ke.UINT_8;break;case 16:case 17:e=ke.INT_32;break;case 18:case 19:e=ke.UINT_32;break;case 20:case 21:e=ke.INT_64;break;case 22:case 23:e=ke.UINT_64;break;case 24:case 25:e=ke.FLOAT;break;case 26:case 27:e=ke.DOUBLE;break;case 28:case 29:e=ke.STRING;break;default:return null}let r={};r.nullable=(t&1)!==0,r.columnScope=om.FEATURE;let i={};return i.type="physicalType",i.physicalType=e,r.type="scalarType",r.scalarType=i,r}var vR=new TextDecoder,bR="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT)",wR="10-29(scalars), 30(STRUCT)";function Ow(t,e){let r=St(t,e,1)[0];if(r===0)return"";let i=e.get(),n=i+r,o=t.subarray(i,n);return e.add(r),vR.decode(o)}function _R(t){return{name:t.name,nullable:t.nullable,scalarField:t.scalarType,complexField:t.complexType,type:t.type==="scalarType"?"scalarField":"complexField"}}function R2(t,e){let r=St(t,e,1)[0]>>>0;if(r<10||r>30)throw new Error(`Unsupported field type code ${r}. Supported: ${wR}`);let i=F2(r);if(M2(r)&&(i.name=Ow(t,e)),C2(r)){let n=St(t,e,1)[0]>>>0;i.complexType.children=new Array(n);for(let o=0;o<n;o++)i.complexType.children[o]=R2(t,e)}return _R(i)}function xR(t,e){let r=St(t,e,1)[0]>>>0,i=F2(r);if(!i)throw new Error(`Unsupported column type code ${r}. Supported: ${bR}`);if(M2(r)?i.name=Ow(t,e):r>=0&&r<=3?i.name="id":r===4&&(i.name="geometry"),C2(r)){let n=St(t,e,1)[0]>>>0,o=i.complexType;o.children=new Array(n);for(let s=0;s<n;s++)o.children[s]=R2(t,e)}return i}function IR(t,e){let r={};r.featureTables=[];let i={};i.name=Ow(t,e);let n=St(t,e,1)[0]>>>0,o=St(t,e,1)[0]>>>0;i.columns=new Array(o);for(let s=0;s<o;s++)i.columns[s]=xR(t,e);return r.featureTables.push(i),[r,n]}function $R(t,e,r=!0){let i=new x2(0),n=[];for(;i.get()<t.length;){let o=St(t,i,1)[0]>>>0,a=i.get()+o;if(a>t.length)throw new Error(`Block overruns tile: ${a} > ${t.length}`);if(St(t,i,1)[0]>>>0!==1){i.set(a);continue}let[u,l]=IR(t,i),f=u.featureTables[0],d=null,p=null,m=[],g=0;for(let I of f.columns){let A=I.name;if(hR(I)){let _=null;if(I.nullable){let O=Tt(t,i),N=i.get(),R=zl(t,O.numValues,O.byteLength,i);i.set(N+O.byteLength),_=new kn(R,O.numValues)}let x=Tt(t,i);g=_?_.size():x.decompressedCount,d=SR(t,I,i,A,x,_??g,r)}else if(gR(I)){let _=St(t,i,1)[0];if(g===0){let x=i.get();g=Tt(t,i).decompressedCount,i.set(x)}e&&(e.scale=e.extent/l),p=Z3(t,_,i,g,e)}else{let x=mR(I)?St(t,i,1)[0]:1;if(x===0)continue;let O=aR(t,i,I,x,g,void 0);if(O)if(Array.isArray(O))for(let N of O)m.push(N);else m.push(O)}}let v=new _2(f.name,p,d,m,l);n.push(v),i.set(a)}return n}function SR(t,e,r,i,n,o,s=!1){let a=e.scalarType;if(!a||a.type!=="logicalType"||a.logicalType!==bw.ID)throw new Error(`ID column must be a logical ID scalar type: ${i}`);let c=a.longID?ke.UINT_64:ke.UINT_32,u=typeof o=="number"?void 0:o,l=am(n,o,t,r,c===ke.UINT_64?"int64":"int32");if(c===ke.UINT_32)switch(l){case je.FLAT:{let f=mr(t,r,n,void 0,u);return new hw(i,f,o)}case je.SEQUENCE:{let f=k2(t,r,n);return new yw(i,f[0],f[1],n.numRleValues)}case je.CONST:{let f=Iw(t,r,n);return new vw(i,f,o,!1)}}switch(l){case je.FLAT:{if(s){let d=S3(t,r,n);return new gw(i,d,o)}let f=O2(t,r,n,u);return new D2(i,f,o)}case je.SEQUENCE:{let f=A2(t,r,n);return new N2(i,f[0],f[1],n.numRleValues)}case je.CONST:{let f=B2(t,r,n);return new E2(i,f,o,!1)}}throw new Error("Vector type not supported for id column.")}});function Bw(t,e){let r=FR(e),i=r.shape;switch(i){case"geojson-table":return{shape:"geojson-table",type:"FeatureCollection",features:W2(t,r)};case"binary-geometry":{let n=W2(t,r),o=Vb(n);return o.byteLength=t.byteLength,o}case"arrow-table":return TR(t,r);default:throw new Error(i||"undefined shape")}}function TR(t,e){if(t.byteLength<=0)return Z2([],[],[]);let r=new Uint8Array(t),i=Q2(H2(r)),n=e.layers&&e.layers.length>0?e.layers:i.map(u=>u.name).filter(Boolean),o=[],s=[],a=[];for(let u of i){let l=u.name;if(!l||!n.includes(l))continue;let f=u.geometryVector;if(!f)continue;let d=f.getGeometries(),p=Math.min(f.numGeometries,d.length),m=u.propertyVectors||[],g=u.extent??4096;for(let v=0;v<p;v++){let I={type:f.geometryType(v),coordinates:d[v],extent:g},A={};for(let _ of m)A[_.name]=zR(_.getValue(v));e.layerProperty&&(A[e.layerProperty]=l),o.push(A),a.push(I),s.push(LR(I,e,g))}}let c=e.geoarrow?.encodingPreference;return c&&c!=="geoarrow.wkb"?kR(o,a,e,c):Z2(o,s,a)}function Z2(t,e,r){let i=X2(t),n={fields:[...i.fields,ic("geometry")],metadata:{...i.metadata||{}}};oc(n,{geometryColumnName:"geometry",geometryTypes:[...new Set(r.map(d=>gc(d.type)))].filter(Boolean).map(d=>d)});let o=new $n(i);for(let d of t)o.addObjectRow(d);let a=o.finishTable().data.batches[0],c=o2(e),u=Eo(n),l=[...a?.data.children||[],c],f=U({type:new ue(u.fields),length:t.length,nullCount:0,children:l});return{shape:"arrow-table",schema:n,data:new ve(new le(u,f))}}function kR(t,e,r,i){let o=AR(e,i),s=o==="geoarrow.geometry"?OR(e,r,"xy"):q2(e,o,r,"xy"),a=X2(t),c=new $n(a);for(let A of t)c.addObjectRow(A);let u=c.finishTable().data.batches[0],l=Eo(a),f=[...new Set(e.map(A=>gc(A.type)))].filter(Boolean).map(A=>A),d=new C("geometry",s.type,!0,new Map([["ARROW:extension:name",o],["ARROW:extension:metadata",JSON.stringify({encoding:o,geometry_types:f})]])),p=[...l.fields,d],m=new Map(l.metadata||[]);m.set("geo",JSON.stringify({version:"1.1.0",primary_column:"geometry",columns:{geometry:{encoding:o,geometry_types:f}}}));let g=new se(p,m),v=[...u?.data.children||[],s.data[0]],I=U({type:new ue(p),length:t.length,nullCount:0,children:v});return{shape:"arrow-table",schema:Ks(g),data:new ve(new le(g,I))}}function AR(t,e){let r=new Set(t.map(i=>gc(i.type)));if(e==="geoarrow.geometry"||r.size===0)return"geoarrow.geometry";if(r.size===1)return Y2([...r][0]);if(r.size===2){if(r.has("Point")&&r.has("MultiPoint"))return"geoarrow.multipoint";if(r.has("LineString")&&r.has("MultiLineString"))return"geoarrow.multilinestring";if(r.has("Polygon")&&r.has("MultiPolygon"))return"geoarrow.multipolygon"}return"geoarrow.geometry"}function q2(t,e,r,i){let n=t.map(s=>BR(s,e,r)),o=xi.buildGeometryArray(n,{encoding:e,dimension:i});return qt(xi.makeGeometryData(o))}function OR(t,e,r){let i=new Map,n=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"];for(let f of n)i.set(f,[]);let o=[],s=[];for(let f of t){let d=gc(f.type)||"Point",p=i.get(d)||[];s.push(p.length),o.push(cm(d,r)),p.push(f),i.set(d,p)}let a=[...i.keys()].sort((f,d)=>cm(f,r)-cm(d,r)),c=a.map(f=>{let d=Y2(f);return q2(i.get(f),d,e,r)}),u=a.map(f=>new C(NR(f,r),c[a.indexOf(f)].type,!0)),l=new zr(a.map(f=>cm(f,r)),u);return qt(U({type:l,length:t.length,nullCount:0,typeIds:Int8Array.from(o),valueOffsets:Int32Array.from(s),children:c.map(f=>f.data[0])}))}function BR(t,e,r){return i=>{let n=t.coordinates;switch(gc(t.type)){case"Point":e==="geoarrow.multipoint"&&i.beginMultiPoint(1),i.beginPoint(),El(i,n[0]?.[0],r,t.extent);return;case"MultiPoint":i.beginMultiPoint(n.length);for(let[o]of n)i.beginPoint(),El(i,o,r,t.extent);return;case"LineString":e==="geoarrow.multilinestring"&&i.beginMultiLineString(1),G2(i,n[0]||[],r,t.extent);return;case"MultiLineString":i.beginMultiLineString(n.length);for(let o of n)G2(i,o,r,t.extent);return;case"Polygon":e==="geoarrow.multipolygon"&&i.beginMultiPolygon(1),DR(i,n,r,t.extent);return;case"MultiPolygon":i.beginMultiPolygon(n.length);for(let o of n){i.beginPolygon(1),i.beginLinearRing(o.length);for(let s of o)El(i,s,r,t.extent)}return;default:return}}}function El(t,e,r,i){let[n,o]=Ro(e?.x??Number.NaN,e?.y??Number.NaN,r,i);t.writeCoordinate(n,o)}function G2(t,e,r,i){t.beginLineString(e.length);for(let n of e)El(t,n,r,i)}function DR(t,e,r,i){t.beginPolygon(e.length);for(let n of e){t.beginLinearRing(n.length);for(let o of n)El(t,o,r,i)}}function Y2(t){switch(t){case"Point":return"geoarrow.point";case"LineString":return"geoarrow.linestring";case"Polygon":return"geoarrow.polygon";case"MultiPoint":return"geoarrow.multipoint";case"MultiLineString":return"geoarrow.multilinestring";case"MultiPolygon":return"geoarrow.multipolygon";default:throw new Error(`MLT Loader: unsupported GeoArrow geometry type ${t}`)}}function cm(t,e){let r={Point:1,LineString:2,Polygon:3,MultiPoint:4,MultiLineString:5,MultiPolygon:6},i=e==="xyz"?10:e==="xym"?20:e==="xyzm"?30:0;return(r[t]||r.Point)+i}function NR(t,e){return e==="xy"?t:`${t} ${e.slice(1).toUpperCase()}`}function X2(t){let e=new Set;for(let r of t)for(let i of Object.keys(r))e.add(i);return{metadata:{},fields:[...e].map(r=>{let i=ew(t.map(n=>n[r]));return{name:r,type:i.type==="float32"?"float64":i.type,nullable:i.nullable}})}}function zR(t){return t==null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"?t??null:JSON.stringify(t)}function LR(t,e,r){let i=gc(t.type);if(!i||!t.coordinates)return null;let n=o=>Ro(o[0],o[1],e,r);return o=>{let s=t.coordinates;switch(i){case"Point":if(!s[0]?.[0])return;o.beginPoint(),hc(o,s[0][0],n);return;case"MultiPoint":o.beginMultiPoint(s.length);for(let[a]of s)hc(o,a,n);return;case"LineString":o.beginLineString(s[0]?.length||0);for(let a of s[0]||[])hc(o,a,n);return;case"MultiLineString":o.beginMultiLineString(s.length);for(let a of s){o.beginLineString(a.length);for(let c of a)hc(o,c,n)}return;case"Polygon":o.beginPolygon(s.length);for(let a of s){o.beginLinearRing(a.length);for(let c of a)hc(o,c,n)}return;case"MultiPolygon":o.beginMultiPolygon(s.length);for(let a of s){o.beginPolygon(1),o.beginLinearRing(a.length);for(let c of a)hc(o,c,n)}return;default:return}}}function hc(t,e,r){if(!e){t.writeCoordinate(Number.NaN,Number.NaN);return}let[i,n]=r([e.x,e.y]);t.writeCoordinate(i,n)}function gc(t){for(let[e,r]of Object.entries(Ys))if(r===t){let i=e.toLowerCase();return i==="point"?"Point":i==="linestring"?"LineString":i==="polygon"?"Polygon":i==="multipoint"?"MultiPoint":i==="multilinestring"?"MultiLineString":i==="multipolygon"?"MultiPolygon":null}return null}function W2(t,e){if(t.byteLength<=0)return[];let r=new Uint8Array(t),i=Q2(H2(r)),n=[],o=e.layers&&e.layers.length>0?e.layers:i.map(s=>s.name).filter(Boolean);for(let s of i){let a=s.name;if(!a||!o.includes(a))continue;let c=s.extent??4096;for(let u of ER(s)){let l=UR(u,e,a,c);l&&n.push(l)}}return n}function Q2(t){return Array.isArray(t)?t.filter(e=>J2(e)):!t||typeof t!="object"?[]:Object.values(t).filter(e=>J2(e))}function J2(t){return!t||typeof t!="object"?!1:typeof t.name=="string"&&(typeof t.getFeatures=="function"||Array.isArray(t.features)||typeof t[Symbol.iterator]=="function")}function ER(t){if(typeof t.getFeatures=="function"){let e=t.getFeatures();if(Array.isArray(e))return e}if(Array.isArray(t.features))return t.features;if(typeof t[Symbol.iterator]=="function"){let e=t[Symbol.iterator]?.();return e?Array.isArray(e)?e:Array.from(e):[]}return[]}function UR(t,e,r,i){let{geometry:n,properties:o,id:s}=t;if(!n)return null;let a=PR(n,e,i);if(!a)return null;let c={...o};e.layerProperty&&(c[e.layerProperty]=r);let u={type:"Feature",geometry:a,properties:c};return s!=null&&(u.id=typeof s=="bigint"&&s>=0n&&s<=BigInt(Number.MAX_SAFE_INTEGER)?Number(s):s),u}function PR(t,e,r){if(!t)return null;let{type:i,coordinates:n}=t;switch(i){case Ys.POINT:{let s=n?.[0]?.[0];return!s||typeof s.x!="number"||typeof s.y!="number"?null:{type:"Point",coordinates:Ro(s.x,s.y,e,r)}}case Ys.MULTIPOINT:return{type:"MultiPoint",coordinates:n.map(([o])=>Ro(o.x,o.y,e,r))};case Ys.LINESTRING:return{type:"LineString",coordinates:n[0].map(o=>Ro(o.x,o.y,e,r))};case Ys.MULTILINESTRING:return{type:"MultiLineString",coordinates:n.map(o=>o.map(s=>Ro(s.x,s.y,e,r)))};case Ys.POLYGON:return{type:"Polygon",coordinates:n.map(o=>o.map(s=>Ro(s.x,s.y,e,r)))};case Ys.MULTIPOLYGON:return{type:"MultiPolygon",coordinates:n.map(o=>[o.map(s=>Ro(s.x,s.y,e,r))])};default:return null}}function Ro(t,e,r,i){if(r.coordinates==="wgs84"&&r.tileIndex){let{x:n,y:o,z:s}=r.tileIndex,a=i*Math.pow(2,s),c=i*n,u=i*o,l=(t+c)*360/a-180,f=180-(e+u)*360/a,d=360/Math.PI*Math.atan(Math.exp(f*Math.PI/180))-90;return[l,d]}return[t/i,e/i]}function FR(t){let e={...Dw,...t?.mlt??{},geoarrow:t?.mlt?.geoarrow??t?.geoarrow};if(e.coordinates==="wgs84"&&!e.tileIndex)throw new Error("MLT Loader: WGS84 coordinates require a tileIndex option");return e}var K2,H2,Ys,eB=h(()=>{"use strict";_i();Zb();Yp();s2();c2();tm();K2=Kf(V2(),1);Ul();H2=(()=>{let t=K2,e=t.decodeTile??t.default?.decodeTile;if(!e)throw new Error("MLT Loader: decodeTile export missing from @maplibre/mlt");return r=>e(r,void 0,!1)})(),Ys=(()=>{let t=K2;return t.GEOMETRY_TYPE||t.default?.GEOMETRY_TYPE||{POINT:0,LINESTRING:1,POLYGON:2,MULTIPOINT:3,MULTILINESTRING:4,MULTIPOLYGON:5}})()});var tB={};Ke(tB,{MLTLoaderWithParser:()=>VR,MLTWorkerLoaderWithParser:()=>jR,MLT_DEFAULT_OPTIONS:()=>RR});var zse,MR,Lse,CR,RR,jR,VR,rB=h(()=>{"use strict";eB();Ul();Ul();({preload:zse,...MR}=nB),{preload:Lse,...CR}=yc,RR={shape:"arrow-table",coordinates:"local",layerProperty:"layerName"},jR={...MR},VR={...CR,parse:async(t,e)=>Bw(t,e),parseSync:(t,e)=>Bw(t,e)}});async function GR(){let{MLTLoaderWithParser:t}=await Promise.resolve().then(()=>(rB(),tB));return t}var ZR,Dw,yc,nB,Ul=h(()=>{"use strict";kT();ZR="5.0.0-alpha.14",Dw={shape:"arrow-table",coordinates:"local",layerProperty:"layerName"};yc={...TT,dataType:null,batchType:null,version:ZR,worker:!1,binary:!0,options:{mlt:{...Dw,layers:void 0,tileIndex:void 0}},preload:GR},nB=yc});var iB=h(()=>{"use strict";Ul()});function oB(t){let e=[];if(t.fields)for(let r of t.fields)e.push({name:r.name,type:JR(r),metadata:KR(r)});return{metadata:WR(t),fields:e}}function WR(t){let e={};for(let[r,i]of Object.entries(t))r!=="fields"&&i&&(e[r]=JSON.stringify(i));return e}function JR(t){switch(t.type.toLowerCase()){case"float32":return"float32";case"number":case"float64":return"float64";case"string":case"utf8":return"utf8";case"boolean":return"bool";default:return"null"}}function KR(t){let e={};for(let[r,i]of Object.entries(t))r!=="name"&&i&&(e[r]=JSON.stringify(i));return e}var sB=h(()=>{"use strict"});var $={};Ke($,{BIGINT_FORMAT_RANGES:()=>jl,CONSTANT_CATCH:()=>pm,Class:()=>Lw,NUMBER_FORMAT_RANGES:()=>Rl,aborted:()=>nr,allowsEval:()=>Pw,assert:()=>QR,assertEqual:()=>HR,assertIs:()=>YR,assertNever:()=>XR,assertNotEqual:()=>qR,assignProp:()=>kt,attachSchema:()=>dm,base64ToUint8Array:()=>fB,base64urlToUint8Array:()=>vj,cached:()=>_c,captureStackTrace:()=>lm,cleanEnum:()=>yj,cleanRegex:()=>$i,clone:()=>ze,cloneDef:()=>rj,codePointLength:()=>ea,constantCatch:()=>jw,createTransparentProxy:()=>cj,defineLazy:()=>Ew,defineLazyInternal:()=>ge,derived:()=>xj,esc:()=>rr,escapeRegex:()=>on,explicitlyAborted:()=>Cw,extend:()=>fj,finalizeIssue:()=>yr,floatSafeRemainder:()=>Fl,getElementAtPath:()=>nj,getEnumValues:()=>bc,getLengthableOrigin:()=>Zl,getParsedType:()=>aj,getSizableOrigin:()=>Vl,hexToUint8Array:()=>wj,hide:()=>Gl,installLazyProp:()=>Tj,isObject:()=>Qs,isPlainObject:()=>nn,issue:()=>Ic,joinValues:()=>w,jsonStringifyReplacer:()=>wc,members:()=>Rw,merge:()=>pj,mergeDefs:()=>An,normalizeParams:()=>B,nullish:()=>um,numKeys:()=>sj,objectClone:()=>ej,omit:()=>lj,optionalKeys:()=>Mw,own:()=>Vo,parsedType:()=>T,partial:()=>mj,pick:()=>uj,prefixIssues:()=>gr,primitiveTypes:()=>Fw,promiseAllObject:()=>ij,propertyKeyTypes:()=>Cl,randomString:()=>oj,rawShape:()=>xc,required:()=>hj,safeExtend:()=>dj,shallowClone:()=>Ml,slugify:()=>Uw,stringifyPrimitive:()=>S,toZod:()=>Pl,uint8ArrayToBase64:()=>dB,uint8ArrayToBase64url:()=>bj,uint8ArrayToHex:()=>_j,unwrapMessage:()=>vc});function HR(t){return t}function qR(t){return t}function Pl(){return t=>t}function YR(t){}function XR(t){throw new Error("Unexpected value in exhaustive check")}function QR(t){}function bc(t){let e=Object.values(t).filter(i=>typeof i=="number");return Object.entries(t).filter(([i,n])=>e.indexOf(+i)===-1).map(([i,n])=>n)}function w(t,e="|"){return t.map(r=>S(r)).join(e)}function wc(t,e){return typeof e=="bigint"?e.toString():e}function _c(t){return new zw(t)}function um(t){return t==null}function $i(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:t.length;return t.slice(e,r)}function Fl(t,e){let r=t/e,i=Math.round(r),n=4*Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)<n?0:r-i}function Ew(t,e,r){let i;Object.defineProperty(t,e,{get(){if(i!==aB)return i===void 0&&(i=aB,i=r()),i},set(n){Object.defineProperty(t,e,{value:n})},configurable:!0})}function ej(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function kt(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!0,configurable:!0})}function xc(t){let e=Object.getOwnPropertyDescriptor(t,"shape");return e?.get?e.get.raw:e?.value}function Ii(t){return xc(t._zod.def)??t._zod.def.shape}function cB(t,e,r){Object.defineProperty(t,e,{get(){let i=r();return kt(this,e,i),i},enumerable:!0,configurable:!0})}function uB(t,e,r){e in t?kt(t,e,r):t[e]=r}function Xs(t,e,r,i){let n=Ii(e);for(let o of r){let s=Object.getOwnPropertyDescriptor(n,o);s.enumerable&&(s.get?cB(t,o,()=>{let a=e._zod.def.shape[o];return i?i(a,o):a}):uB(t,o,i?i(s.value,o):s.value))}}function tj(t,e){for(let r of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,r);i.enumerable&&(i.get?cB(t,r,()=>e[r]):uB(t,r,i.value))}}function An(...t){let e={};for(let r of t){let i=Object.getOwnPropertyDescriptors(r);Object.assign(e,i)}return Object.defineProperties({},e)}function rj(t){return An(t._zod.def)}function nj(t,e){return e?e.reduce((r,i)=>r?.[i],t):t}function ij(t){let e=Object.keys(t),r=e.map(i=>t[i]);return Promise.all(r).then(i=>{let n={};for(let o=0;o<e.length;o++)n[e[o]]=i[o];return n})}function oj(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}function rr(t){return JSON.stringify(t)}function Uw(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Qs(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function nn(t){if(Qs(t)===!1)return!1;let e=t.constructor;if(e===void 0||typeof e!="function")return!0;let r=e.prototype;return!(Qs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Ml(t){return nn(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function sj(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&e++;return e}function on(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ze(t,e,r){let i=new t._zod.constr(e??t._zod.def);return(!e||r?.parent)&&(i._zod.parent=t),i}function B(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if(e?.message!==void 0){if(e?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function cj(t){let e;return new Proxy({},{get(r,i,n){return e??(e=t()),Reflect.get(e,i,n)},set(r,i,n,o){return e??(e=t()),Reflect.set(e,i,n,o)},has(r,i){return e??(e=t()),Reflect.has(e,i)},deleteProperty(r,i){return e??(e=t()),Reflect.deleteProperty(e,i)},ownKeys(r){return e??(e=t()),Reflect.ownKeys(e)},getOwnPropertyDescriptor(r,i){return e??(e=t()),Reflect.getOwnPropertyDescriptor(e,i)},defineProperty(r,i,n){return e??(e=t()),Reflect.defineProperty(e,i,n)}})}function S(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="string"?`"${t}"`:`${t}`}function Mw(t){return Object.keys(t).filter(e=>t[e]._zod.optin!==void 0&&t[e]._zod.optout==="optional")}function uj(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o={};return Xs(o,t,fm(t,e)),ze(t,An(r,{shape:o,checks:[]}))}function fm(t,e){let r=Ii(t),i=[];for(let n of Reflect.ownKeys(e)){if(!Object.getOwnPropertyDescriptor(r,n)?.enumerable)throw new Error(`Unrecognized key: "${String(n)}"`);e[n]&&i.push(n)}return i}function lj(t,e){let r=t._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=new Set(fm(t,e)),s={};return Xs(s,t,Reflect.ownKeys(Ii(t)).filter(a=>!o.has(a))),ze(t,An(r,{shape:s,checks:[]}))}function fj(t,e){if(!nn(e))throw new Error("Invalid input to extend: expected a plain object");let r=t._zod.def.checks;if(r&&r.length>0){let n=Ii(t);for(let o of Reflect.ownKeys(e))if(Object.getOwnPropertyDescriptor(n,o)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ze(t,An(t._zod.def,{shape:lB(t,e)}))}function lB(t,e){let r={};return Xs(r,t,Reflect.ownKeys(Ii(t))),tj(r,e),r}function dj(t,e){if(!nn(e))throw new Error("Invalid input to safeExtend: expected a plain object");return ze(t,An(t._zod.def,{shape:lB(t,e)}))}function pj(t,e){if(!e?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r={};Xs(r,t,Reflect.ownKeys(Ii(t))),Xs(r,e,Reflect.ownKeys(Ii(e)));let i=An(t._zod.def,{shape:r,get catchall(){return e._zod.def.catchall},checks:e._zod.def.checks??[]});return ze(t,i)}function mj(t,e,r,i="partial"){let o=e._zod.def.checks;if(o&&o.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let a=r?new Set(fm(e,r)):void 0,c={};return Xs(c,e,Reflect.ownKeys(Ii(e)),t&&((u,l)=>a&&!a.has(l)?u:new t({type:"optional",innerType:u}))),ze(e,An(e._zod.def,{shape:c,checks:[]}))}function hj(t,e,r){let i=r?new Set(fm(e,r)):void 0,n={};return Xs(n,e,Reflect.ownKeys(Ii(e)),(o,s)=>i&&!i.has(s)?o:new t({type:"nonoptional",innerType:o})),ze(e,An(e._zod.def,{shape:n}))}function nr(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue!==!0)return!0;return!1}function Cw(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(t.issues[r]?.continue===!1)return!0;return!1}function gr(t,e){return e.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(t),r})}function vc(t){return typeof t=="string"?t:t?.message}function dm(t,e,r){var i;for(let n=e;n<t.length;n++)(i=t[n]).schema??(i.schema=r)}function yr(t,e,r){var i;let n=t.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?(i=t).schema??(i.schema=t.inst):t.schema=t.inst);let o=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,s=t.message?t.message:vc(t.inst?._zod.def?.error?.(t))??vc(o?.(t))??vc(e?.error?.(t))??vc(r.customError?.(t))??vc(r.localeError?.(t))??"Invalid input",a={};for(let c of Object.keys(t))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=t[c]);return a.path??(a.path=[]),a.message=s,e?.reportInput&&(a.input=t.input),a}function Vl(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}function ea(t){let e=t.length;if(!gj.test(t))return e;let r=e;for(let i=0;i<e-1;i++)(t.charCodeAt(i)&64512)===55296&&(t.charCodeAt(i+1)&64512)===56320&&(r--,i++);return r}function Zl(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function T(t){let e=typeof t;switch(e){case"number":return Number.isNaN(t)?"nan":"number";case"object":{if(t===null)return"null";if(Array.isArray(t))return"array";let r=t;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return e}function Ic(...t){let[e,r,i]=t;return typeof e=="string"?{message:e,code:"custom",input:r,inst:i}:{...e}}function yj(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function fB(t){let e=atob(t),r=new Uint8Array(e.length);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return r}function dB(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}function vj(t){let e=t.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-e.length%4)%4);return fB(e+r)}function bj(t){return dB(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function wj(t){let e=t.replace(/^0x/,"");if(e.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(e.length/2);for(let i=0;i<e.length;i+=2)r[i/2]=Number.parseInt(e.slice(i,i+2),16);return r}function _j(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function Rw(t,e){for(let r in e){let i=Object.getOwnPropertyDescriptor(e,r);i.get?Object.defineProperty(t,r,{...i,enumerable:!1}):Ij(t,r,i.value)}}function Vo(t,e,r,i=!0){return Object.defineProperty(t,e,{configurable:!0,writable:!0,enumerable:i,value:r}),r}function Gl(t,e,r){return Vo(t,e,r,!1)}function xj(t,e){for(let r in t){let i=t[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){return Vo(this,r,i(this))},set(n){Vo(this,r,n)}})}return e}function Ij(t,e,r){Object.defineProperty(t,e,{configurable:!0,get(){return this==null?r:Vo(this,e,r.bind(this))},set(i){Vo(this,e,i)}})}function $j(t,e){let r=Object.getPrototypeOf(t);return e in r?void 0:r}function ge(t,e,r){let i=Object.getPrototypeOf(t._zod);if(e in i&&Nw!==t._zod){Nw=void 0;return}Nw=t._zod,Object.defineProperty(i,e,{configurable:!0,get(){Object.defineProperty(this,e,Sj);let n=jo;jo=!1;try{let o=r(this);return jo?delete this[e]:Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o}),jo=jo||n,o}catch(o){throw delete this[e],jo=jo||n,o}},set(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}function Tj(t,e,r,i){let n=$j(t,e);n&&Object.defineProperty(n,e,{configurable:!0,get(){let o={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,e,o),o.value=r(this),Object.defineProperty(this,e,o),o.value},set(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:i,value:o})}})}function jw(t){let e=()=>t;return e[pm]=!0,e}var zw,aB,lm,Pw,aj,Cl,Fw,Rl,jl,gj,Lw,Nw,jo,Sj,pm,E=h(()=>{Zo();zw=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};aB=Symbol("evaluating");lm="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};Pw=_c(()=>{if(yt.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let t=Function;return new t(""),!0}catch{return!1}});aj=t=>{let e=typeof t;switch(e){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(t)?"array":t===null?"null":t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?"promise":typeof Map<"u"&&t instanceof Map?"map":typeof Set<"u"&&t instanceof Set?"set":typeof Date<"u"&&t instanceof Date?"date":typeof File<"u"&&t instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${e}`)}},Cl=new Set(["string","number","symbol"]),Fw=new Set(["string","number","bigint","boolean","symbol","undefined"]);Rl={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},jl={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};gj=/[\uD800-\uDBFF]/;Lw=class{constructor(...e){}};jo=!1,Sj={configurable:!0,get(){jo=!0}};pm="~constantCatch"});function kj(t){let e=mB;if(e){let r=e.stackTraceLimit;if(typeof r=="number"){try{e.stackTraceLimit=0}catch{return mB=null,new t}try{return new t}finally{e.stackTraceLimit=r}}}return new t}function b(t,e,r,i){let n={};function o(d){this.def=d,this.constr=f,this.traits=new Set}o.prototype=n;let s=r,a=s&&new WeakSet;function c(d,p){if(d._zod){if(d._zod.traits.has(t))return}else{Vw.value=new o(p);try{Object.defineProperty(d,"_zod",Vw)}finally{Vw.value=void 0}}if(d._zod.traits.add(t),e(d,p),a){let g=Object.getPrototypeOf(d),v=d._zod.constr.prototype,I=g;for(;I&&I!==v;)I=Object.getPrototypeOf(I);let A=I??g;a.has(A)||(a.add(A),Rw(A,s))}let m=f.prototype;for(let g in m)Object.prototype.hasOwnProperty.call(m,g)&&(g in d||(d[g]=m[g].bind(d)))}let u=i?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:t});function f(d){let p=i?.Parent?kj(l):this;c(p,d);let m=p._zod.deferred;if(m){for(let v of m)v();p._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(p),p}return Object.defineProperty(f,"init",{value:c}),Object.defineProperty(f,Symbol.hasInstance,{value:d=>i?.Parent&&d instanceof i.Parent?!0:d?._zod?.traits?.has(t)}),Object.defineProperty(f,"name",{value:t}),f}function it(t){return t&&Object.assign(yt,t),yt}var pB,Zw,Vw,mB,Gw,vr,Go,yt,Zo=h(()=>{E();Zw=Object.freeze({status:"aborted"}),Vw={value:void 0,enumerable:!1},mB="captureStackTrace"in Error?Error:null;Gw=Symbol("zod_brand"),vr=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Go=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(pB=globalThis).__zod_globalConfig??(pB.__zod_globalConfig={});yt=globalThis.__zod_globalConfig});function Aj(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,wc,2)),t.message}function Oj(t){this._zod.message=t}function Dj(t,e,r){return Object.prototype.hasOwnProperty.call(t,e)||(e==="__proto__"?Object.defineProperty(t,e,{value:r(),writable:!0,enumerable:!0,configurable:!0}):t[e]=r()),t[e]}function Wl(t,e=r=>r.message){let r={},i=[];for(let n of t.issues)n.path.length>0?Dj(r,n.path[0],()=>[]).push(e(n)):i.push(e(n));return{formErrors:i,fieldErrors:r}}function Jl(t,e=r=>r.message){let r={_errors:[]},i=(n,o=[])=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>i({issues:a},[...o,...s.path]));else if(s.code==="invalid_key")i({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")i({issues:s.issues},[...o,...s.path]);else{let a=[...o,...s.path];if(a.length===0)r._errors.push(e(s));else{let c=r,u=0;for(;u<a.length;){let l=a[u],f=u===a.length-1;if(l==="_errors"){f&&c._errors.push(e(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let d=c[l];f&&d._errors.push(e(s)),c=d,u++}}}};return i(t),r}function Hw(t,e=r=>r.message){let r={errors:[]},i=(n,o=[])=>{var s;for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let c=[...o,...a.path];if(c.length===0){r.errors.push(e(a));continue}let u=r,l=0;for(;l<c.length;){let f=c[l],d=l===c.length-1;typeof f=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,f)||Object.defineProperty(u.properties,f,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[f]):(u.items??(u.items=[]),(s=u.items)[f]??(s[f]={errors:[]}),u=u.items[f]),d&&u.errors.push(e(a)),l++}}};return i(t),r}function yB(t){let e=[],r=t.map(i=>typeof i=="object"?i.key:i);for(let i of r)typeof i=="number"?e.push(`[${i}]`):typeof i=="symbol"?e.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?e.push(`[${JSON.stringify(i)}]`):(e.length&&e.push("."),e.push(i));return e.join("")}function qw(t){let e=[],r=[...t.issues].sort((i,n)=>(i.path??[]).length-(n.path??[]).length);for(let i of r)e.push(`\u2716 ${i.message}`),i.path?.length&&e.push(` \u2192 at ${yB(i.path)}`);return e.join(`
|
|
27
|
+
`)}var Bj,Jw,hB,gB,Kw,br,Yw=h(()=>{Zo();E();Bj={get:Aj,set:Oj,enumerable:!0,configurable:!0},Jw={value:void 0,enumerable:!1},hB=new WeakSet([Object.prototype,Error.prototype]),gB=(t,e)=>{t.name="$ZodError",Jw.value=e,Object.defineProperty(t,"issues",Jw),Jw.value=void 0,Object.defineProperty(t,"message",Bj);let r=Object.getPrototypeOf(t);hB.has(r)||(hB.add(r),Object.defineProperty(r,"toString",{configurable:!0,enumerable:!1,get(){let i=()=>this.message;return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},Kw=b("$ZodError",gB),br=b("$ZodError",gB,void 0,{Parent:Error})});function mm(t,e){return{callee:e?.callee??t,Err:e?.Err}}function vB(t,e,r){let i;return{success:!1,get error(){return i||(i=new t(e.map(n=>yr(n,r,it()))),e=void 0,r=void 0),i},set error(n){i=n,e=void 0,r=void 0}}}function Pj(t,e,r){let i=r?{...r,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},n=t._zod.bag.fallbackRun,o;if(n?(i[Uj]=!0,o=n({value:e,issues:[]},i)):o=t._zod.run({value:e,issues:[]},i),o instanceof Promise)throw new vr;return o.issues.length===0}var $c,hm,Sc,gm,Tc,zj,kc,Lj,Ej,Uj,Kl,Hl,ym,Fj,vm,Mj,bm,Cj,wm,Rj,_m,jj,xm,Vj,Im,Zj,$m,Gj,Xw=h(()=>{Zo();Yw();E();$c=t=>{let e=(r,i,n,o)=>{let s=n?{...n,async:!1}:{async:!1},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise)throw new vr;if(a.issues.length){let c=new(o?.Err??t)(a.issues.map(u=>yr(u,s,it())));throw lm(c,o?.callee??e),c}return a.value};return e},hm=$c(br),Sc=t=>{let e=async(r,i,n,o)=>{let s=n?{...n,async:!0}:{async:!0},a=r._zod.run({value:i,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(o?.Err??t)(a.issues.map(u=>yr(u,s,it())));throw lm(c,o?.callee??e),c}return a.value};return e},gm=Sc(br),Tc=t=>(e,r,i)=>{let n=i?{...i,async:!1}:{async:!1},o=e._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new vr;return o.issues.length?vB(t,o.issues,n):{success:!0,data:o.value}},zj=Tc(br);kc=t=>async(e,r,i)=>{let n=i?{...i,async:!0}:{async:!0},o=e._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?vB(t,o.issues,n):{success:!0,data:o.value}},Lj=kc(br),Ej=Symbol.for("zod.compile.invalid"),Uj=Symbol.for("zod.compile.fallback"),Kl=((t,e,r)=>{let i=t._zod.bag.validator;if(i!==void 0){if(i(e)!==Ej)return!0;if(i.definite===!0&&r===void 0)return!1}return Pj(t,e,r)});Hl=async(t,e,r)=>{let i=r?{...r,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},n=t._zod.run({value:e,issues:[]},i);return n instanceof Promise&&(n=await n),n.issues.length===0},ym=t=>{let e=$c(t),r=(i,n,o,s)=>{let a=o?{...o,direction:"backward"}:{direction:"backward"};return e(i,n,a,mm(r,s))};return r},Fj=ym(br),vm=t=>{let e=$c(t),r=(i,n,o,s)=>e(i,n,o,mm(r,s));return r},Mj=vm(br),bm=t=>{let e=Sc(t),r=async(i,n,o,s)=>{let a=o?{...o,direction:"backward"}:{direction:"backward"};return await e(i,n,a,mm(r,s))};return r},Cj=bm(br),wm=t=>{let e=Sc(t),r=async(i,n,o,s)=>await e(i,n,o,mm(r,s));return r},Rj=wm(br),_m=t=>(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return Tc(t)(e,r,n)},jj=_m(br),xm=t=>(e,r,i)=>Tc(t)(e,r,i),Vj=xm(br),Im=t=>async(e,r,i)=>{let n=i?{...i,direction:"backward"}:{direction:"backward"};return kc(t)(e,r,n)},Zj=Im(br),$m=t=>async(e,r,i)=>kc(t)(e,r,i),Gj=$m(br)});var sn={};Ke(sn,{anyString:()=>S_,base64:()=>g_,base64url:()=>y_,bigint:()=>k_,boolean:()=>A_,browserEmail:()=>Qj,cidrv4:()=>m_,cidrv6:()=>h_,creditCard:()=>Sm,cuid:()=>e_,cuid2:()=>t_,currencyCode:()=>__,date:()=>x_,datetime:()=>$_,domain:()=>b_,duration:()=>a_,e164:()=>w_,email:()=>u_,emoji:()=>l_,extendedDuration:()=>Wj,guid:()=>c_,hex:()=>z_,hostname:()=>v_,html5Email:()=>qj,httpProtocol:()=>ql,iban:()=>Tm,idnEmail:()=>Xj,integer:()=>Yl,ipv4:()=>f_,ipv6:()=>d_,ksuid:()=>i_,lowercase:()=>D_,mac:()=>p_,md5_base64:()=>nV,md5_base64url:()=>iV,md5_hex:()=>rV,nanoid:()=>o_,nanoidOfLength:()=>s_,null:()=>O_,number:()=>Si,rfc5322Email:()=>Yj,sha1_base64:()=>sV,sha1_base64url:()=>aV,sha1_hex:()=>oV,sha256_base64:()=>uV,sha256_base64url:()=>lV,sha256_hex:()=>cV,sha384_base64:()=>dV,sha384_base64url:()=>pV,sha384_hex:()=>fV,sha512_base64:()=>hV,sha512_base64url:()=>gV,sha512_hex:()=>mV,string:()=>T_,time:()=>I_,ulid:()=>r_,undefined:()=>B_,unicodeEmail:()=>bB,uppercase:()=>N_,uuid:()=>ta,uuid4:()=>Jj,uuid6:()=>Kj,uuid7:()=>Hj,xid:()=>n_});function s_(t){return new RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}function l_(){return new RegExp(eV,"u")}function tV(t){return new RegExp(`^${t}$`)}function Qw(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:t.seconds?`${e}:[0-5]\\d(?:\\.\\d+)?`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function I_(t){return new RegExp(`^${Qw(t)}$`)}function $_(t){let e=["Z"];t.offset&&e.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${Qw({precision:t.precision,seconds:!0})}(?:${e.join("|")})`,i=t.local?`${r}|${Qw({precision:t.precision})}`:r;return new RegExp(`^${wB}T(?:${i})$`)}function Xl(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)}function Ql(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)}var e_,t_,r_,n_,i_,o_,a_,Wj,c_,ta,Jj,Kj,Hj,u_,qj,Yj,bB,Xj,Qj,eV,f_,d_,p_,m_,h_,g_,y_,v_,b_,ql,w_,Sm,__,Tm,wB,x_,S_,T_,k_,Yl,Si,A_,O_,B_,D_,N_,z_,rV,nV,iV,oV,sV,aV,cV,uV,lV,fV,dV,pV,mV,hV,gV,ra=h(()=>{E();e_=/^[cC][0-9a-z]{6,}$/,t_=/^[0-9a-z]+$/,r_=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,n_=/^[0-9a-vA-V]{20}$/,i_=/^[A-Za-z0-9]{27}$/,o_=/^[a-zA-Z0-9_-]{21}$/;a_=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Wj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,c_=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ta=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Jj=ta(4),Kj=ta(6),Hj=ta(7),u_=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,qj=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Yj=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,bB=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Xj=bB,Qj=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,eV="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";f_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,d_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,p_=t=>{let e=on(t??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},m_=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,h_=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,g_=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,y_=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,v_=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,b_=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ql=/^https?$/,w_=/^\+[1-9]\d{6,14}$/,Sm=/^\d(?:[ -]?\d){11,18}$/,__=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,Tm=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,wB="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";x_=tV(wB);S_=/^[\s\S]{0,}$/,T_=t=>{let e=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},k_=/^-?\d+n?$/,Yl=/^-?\d+$/,Si=/^-?\d+(?:\.\d+)?$/,A_=/^(?:true|false)$/i,O_=/^null$/i,B_=/^undefined$/i,D_=/^[^A-Z]*$/,N_=/^[^a-z]*$/,z_=/^[0-9a-fA-F]*$/;rV=/^[0-9a-fA-F]{32}$/,nV=Xl(22,"=="),iV=Ql(22),oV=/^[0-9a-fA-F]{40}$/,sV=Xl(27,"="),aV=Ql(27),cV=/^[0-9a-fA-F]{64}$/,uV=Xl(43,"="),lV=Ql(43),fV=/^[0-9a-fA-F]{96}$/,dV=Xl(64,""),pV=Ql(64),mV=/^[0-9a-fA-F]{128}$/,hV=Xl(86,"=="),gV=Ql(86)});function Am(t,e,r){t.issues.length&&e.issues.push(...gr(r,t.issues))}var Ce,L_,E_,km,Om,Bm,U_,P_,F_,M_,C_,R_,j_,V_,Z_,Ac,G_,W_,J_,K_,H_,q_,Y_,X_,Q_,e0,Dm=h(()=>{Zo();ra();E();Ce=b("$ZodCheck",(t,e)=>{var r;t._zod??(t._zod={}),t._zod.def=e,(r=t._zod).onattach??(r.onattach=[])}),L_=t=>{let e=t.value;return!um(e)&&e.size!==void 0},E_=t=>{let e=t.value;return!um(e)&&e.length!==void 0},km={number:"number",bigint:"bigint",object:"date"},Om=b("$ZodCheckLessThan",(t,e)=>{Ce.init(t,e);let r=km[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value<=e.value:i.value<e.value)||i.issues.push({origin:km[typeof i.value]??r,code:"too_big",maximum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Bm=b("$ZodCheckGreaterThan",(t,e)=>{Ce.init(t,e);let r=km[typeof e.value];t._zod.check=i=>{(e.inclusive?i.value>=e.value:i.value>e.value)||i.issues.push({origin:km[typeof i.value]??r,code:"too_small",minimum:typeof e.value=="object"?e.value.getTime():e.value,input:i.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),U_=b("$ZodCheckMultipleOf",(t,e)=>{Ce.init(t,e),t._zod.check=r=>{if(typeof r.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?e.value!==BigInt(0)&&r.value%e.value===BigInt(0):Fl(r.value,e.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:e.value,input:r.value,inst:t,continue:!e.abort})}}),P_=b("$ZodCheckNumberFormat",(t,e)=>{Ce.init(t,e),e.format=e.format||"float64";let r=e.format?.includes("int"),i=r?"int":"number",[n,o]=Rl[e.format];t._zod.check=s=>{let a=s.value;if(r){if(!Number.isInteger(a)){s.issues.push({expected:i,format:e.format,code:"invalid_type",continue:!1,input:a,inst:t});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:i,inclusive:!0,continue:!e.abort});return}}a<n&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:n,inclusive:!0,inst:t,continue:!e.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!e.abort})}}),F_=b("$ZodCheckBigIntFormat",(t,e)=>{Ce.init(t,e);let[r,i]=jl[e.format];t._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:t,continue:!e.abort}),o>i&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:t,continue:!e.abort})}}),M_=b("$ZodCheckMaxSize",(t,e)=>{var r;Ce.init(t,e),(r=t._zod.def).when??(r.when=L_),t._zod.check=i=>{let n=i.value;n.size<=e.maximum||i.issues.push({origin:Vl(n),code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),C_=b("$ZodCheckMinSize",(t,e)=>{var r;Ce.init(t,e),(r=t._zod.def).when??(r.when=L_),t._zod.check=i=>{let n=i.value;n.size>=e.minimum||i.issues.push({origin:Vl(n),code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),R_=b("$ZodCheckSizeEquals",(t,e)=>{var r;Ce.init(t,e),(r=t._zod.def).when??(r.when=L_),t._zod.check=i=>{let n=i.value,o=n.size;if(o===e.size)return;let s=o>e.size;i.issues.push({origin:Vl(n),...s?{code:"too_big",maximum:e.size}:{code:"too_small",minimum:e.size},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),j_=b("$ZodCheckMaxLength",(t,e)=>{var r;Ce.init(t,e),(r=t._zod.def).when??(r.when=E_),t._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>e.maximum?ea(n):o)<=e.maximum)return;let a=Zl(n);i.issues.push({origin:a,code:"too_big",maximum:e.maximum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),V_=b("$ZodCheckMinLength",(t,e)=>{var r;Ce.init(t,e),(r=t._zod.def).when??(r.when=E_),t._zod.check=i=>{let n=i.value,o=n.length;if((typeof n=="string"&&o>=e.minimum&&o<e.minimum*2?ea(n):o)>=e.minimum)return;let a=Zl(n);i.issues.push({origin:a,code:"too_small",minimum:e.minimum,inclusive:!0,input:n,inst:t,continue:!e.abort})}}),Z_=b("$ZodCheckLengthEquals",(t,e)=>{var r;Ce.init(t,e),(r=t._zod.def).when??(r.when=E_),t._zod.check=i=>{let n=i.value,o=n.length,s=typeof n=="string"&&o>=e.length&&o<=e.length*2?ea(n):o;if(s===e.length)return;let a=Zl(n),c=s>e.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:i.value,inst:t,continue:!e.abort})}}),Ac=b("$ZodCheckStringFormat",(t,e)=>{var r,i;Ce.init(t,e),e.pattern?(r=t._zod).check??(r.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:e.format,input:n.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(i=t._zod).check??(i.check=()=>{})}),G_=b("$ZodCheckRegex",(t,e)=>{Ac.init(t,e),t._zod.check=r=>{e.pattern.lastIndex=0,!e.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),W_=b("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=D_),Ac.init(t,e)}),J_=b("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=N_),Ac.init(t,e)}),K_=b("$ZodCheckIncludes",(t,e)=>{Ce.init(t,e);let r=on(e.includes),i=new RegExp(typeof e.position=="number"?`^.{${e.position},}${r}`:r);e.pattern=i,t._zod.check=n=>{n.value.includes(e.includes,e.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:n.value,inst:t,continue:!e.abort})}}),H_=b("$ZodCheckStartsWith",(t,e)=>{Ce.init(t,e);let r=new RegExp(`^${on(e.prefix)}.*`);e.pattern??(e.pattern=r),t._zod.check=i=>{i.value.startsWith(e.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:i.value,inst:t,continue:!e.abort})}}),q_=b("$ZodCheckEndsWith",(t,e)=>{Ce.init(t,e);let r=new RegExp(`.*${on(e.suffix)}$`);e.pattern??(e.pattern=r),t._zod.check=i=>{i.value.endsWith(e.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:i.value,inst:t,continue:!e.abort})}});Y_=b("$ZodCheckProperty",(t,e)=>{Ce.init(t,e),t._zod.check=r=>{let i=e.schema._zod.run({value:r.value[e.property],issues:[]},{});if(i instanceof Promise)return i.then(n=>Am(n,r,e.property));Am(i,r,e.property)}}),X_=b("$ZodCheckProperties",(t,e)=>{Ce.init(t,e),Gl(t,Symbol.iterator,function*(){yield t});let r;t._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:t});return}r??(r=Reflect.ownKeys(e.shape).map(s=>[s,e.shape[s]]));let n=i.value,o;for(let[s,a]of r){let c=a._zod.run({value:n[s],issues:[]},{});c instanceof Promise?(o??(o=[]),o.push(c.then(u=>Am(u,i,s)))):Am(c,i,s)}if(o)return Promise.all(o).then(()=>{})}}),Q_=b("$ZodCheckMimeType",(t,e)=>{Ce.init(t,e);let r=new Set(e.mime);t._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:e.mime,input:i.value.type,inst:t,continue:!e.abort})}}),e0=b("$ZodCheckOverwrite",(t,e)=>{Ce.init(t,e),t._zod.check=r=>{r.value=e.tx(r.value)}})});var na,Nm=h(()=>{na=class{constructor(e=[],r={}){this.content=[],this.indent=0,this.args=e,this.closed=r}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}let i=e.split(`
|
|
28
|
+
`).filter(s=>s),n=Math.min(...i.map(s=>s.length-s.trimStart().length)),o=i.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of o)this.content.push(s)}compile(){let e=Function,r=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
|
|
29
|
+
${r.join(`
|
|
30
|
+
`)}
|
|
31
|
+
};`)(...Object.values(this.closed))}}});var t0,r0=h(()=>{t0={major:4,minor:6,patch:5}});async function yV(t,e){let r={async:!0};return PB(await t._zod.run({value:e,issues:[]},r),r)}function Pm(t){return{validate:e=>{let r={async:!1};try{let i=t._zod.run({value:e,issues:[]},r);if(!(i instanceof Promise))return PB(i,r)}catch{}return yV(t,e)},vendor:"zod",version:1}}function c0(t){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(t):(new URL(t),!0)}catch{return!1}}function Fm(t,e){return!("normalize"in e)&&!("hostname"in e)&&!("protocol"in e)?c0(t)||ef:FB(t,e)}function FB(t,e){if(!e.normalize&&e.protocol?.source===ql.source&&!/^https?:\/\//i.test(t))return a0;try{if(typeof URL<"u"){let r=URL;if(typeof r.parse=="function")return r.parse(t)??ef}return new URL(t)}catch{return ef}}function tf(t){return t.replace(vV,"")}function Mm(t,e){return e.lastIndex=0,e.test(t.hostname)}function Cm(t,e){return e.lastIndex=0,e.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)}function rf(t){return bV.test(t)?c0(`http://[${t}]`):!1}function Rm(t){let e=t.split("/");if(e.length!==2)return!1;let[r,i]=e;if(!i)return!1;let n=Number(i);return`${n}`!==i||n<0||n>128?!1:rf(r)}function nf(t){if(t==="")return!0;if(/\s/.test(t)||t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}function Vm(t){if(!of.test(t))return!1;let e=t.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=e.padEnd(Math.ceil(e.length/4)*4,"=");return nf(r)}function _V(t){let e=t.length,r=1,i=0;for(;e;){let n=t.charCodeAt(--e)-48;r^=1,i+=r?[0,2,4,6,8,1,3,5,7,9][n]:n}return i%10===0}function Zm(t){return Sm.test(t)?_V(t.replace(wV,"")):!1}function xV(t){let e=0,r=t.length;for(let i=4;i<r;i++){let n=t.charCodeAt(i);e=(n>=65?e*100+(n-55):e*10+(n-48))%97}for(let i=0;i<4;i++){let n=t.charCodeAt(i);e=(n>=65?e*100+(n-55):e*10+(n-48))%97}return e===1}function Gm(t){return Tm.test(t)?xV(t):!1}function Wm(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;let[i]=r;if(!i)return!1;let n=JSON.parse(atob(i));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||e&&(!("alg"in n)||n.alg!==e))}catch{return!1}}function xB(t,e,r){t.issues.length&&e.issues.push(...gr(r,t.issues)),e.value[r]=t.value}function Um(t,e,r,i,n,o){let s=r in i,a=o==="optional";if(!(!s&&a&&n==="optional")){if(t.issues.length){if(n!==void 0&&a&&!s)return;e.issues.push(...gr(r,t.issues))}if(!s&&n===void 0){t.issues.length||e.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}t.value===void 0?(s||n==="defaulted"&&!a)&&(e.value[r]=void 0):e.value[r]=t.value}}function MB(t){let e=Object.keys(t.shape),r=Object.getOwnPropertySymbols(t.shape),i=r.length?r:IV,n=i.length?[...e,...i]:e;for(let s of n)if(!t.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let o=Mw(t.shape);return{...t,allKeys:n,symbolKeys:i,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(o)}}function CB(t,e,r,i,n,o,s){let a=[],c=n.keySet,u=n.catchall._zod,l=u.def.type,f=u.optin,d=u.optout,p=0;for(let m in e){if(s&&r.issues.length!==p){if(nr(r,p))break;p=r.issues.length}if(c.has(m))continue;if(m==="__proto__"){l==="never"&&a.push(m);continue}if(l==="never"){a.push(m);continue}let g=u.run({value:e[m],issues:[]},i);g instanceof Promise?t.push(g.then(v=>Um(v,r,m,e,f,d))):Um(g,r,m,e,f,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:e,inst:o,continue:!0}),t.length?Promise.all(t).then(()=>r):r}function IB(t,e,r,i){for(let o of t)if(o.issues.length===0)return e.value=o.value,e;let n=t.filter(o=>!nr(o));return n.length===1?(e.value=n[0].value,n[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(s=>yr(s,i,it())))}),e)}function $B(t,e,r,i){let n=[];for(let o=0;o<t.length;o++)t[o].issues.length===0&&n.push(o);return n.length===1?(e.value=t[n[0]].value,e):(n.length===0?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(o=>o.issues.map(s=>yr(s,i,it())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1,matches:n}),e)}function W0(t,e){let r=t._zod,i=r.bag.optionsMap;i||(i=jB(r.def),r.bag.optionsMap=i);let n=i.get(e);if(n===null)throw new Error(`Ambiguous discriminator value "${String(e)}"`);return n}function jB(t){let e=new Map;for(let r of t.options){let i=r._zod.propValues?.[t.discriminator];if(!i||i.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let n of i)if(e.has(n)){if(n!==void 0)throw new Error(`Duplicate discriminator value "${String(n)}"`);e.set(n,null)}else e.set(n,r)}return e}function Oc(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(nn(t)&&nn(e)){let r=Object.keys(e),i=Object.keys(t).filter(o=>r.indexOf(o)!==-1),n={...t,...e};Object.prototype.hasOwnProperty.call(n,"__proto__")&&delete n.__proto__;for(let o of i){if(o==="__proto__")continue;let s=Oc(t[o],e[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};n[o]=s.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let i=0;i<t.length;i++){let n=t[i],o=e[i],s=Oc(n,o);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function SB(t,e,r){let i=new Map,n,o=new Map,s=(u,l)=>{let f;if(u.code==="unrecognized_keys"&&!u.path?.length)n??(n=u),f=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let d=String(u.path[0]);o.has(d)||o.set(d,u),f=[d]}else return!1;for(let d of f)i.has(d)||i.set(d,{}),i.get(d)[l]=!0;return!0};for(let u of e.issues)s(u,"l")||t.issues.push(u);for(let u of r.issues)s(u,"r")||t.issues.push(u);let a=[...i].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=n?a.filter(l=>n.keys.includes(l)):[];u.length&&t.issues.push({...n,keys:u});for(let l of a)!u.includes(l)&&o.has(l)&&t.issues.push(o.get(l))}let c=Oc(e.value,r.value);if(!c.valid){if(nr(t))return t;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return t.value=c.data,t}function TB(t,e){for(let r=t.length-1;r>=0;r--)if(!(e==="optin"?t[r]._zod.optin!==void 0:t[r]._zod.optout==="optional"))return r+1;return 0}function kB(t,e,r){t.issues.length&&e.issues.push(...gr(r,t.issues)),e.value[r]=t.value}function AB(t,e,r,i,n){for(let o=0;o<r.length;o++){let s=t[o],a=o<i.length;if(!a&&o>=n&&r[o]._zod.optin==="optional"){e.value.length=o;break}if(s.issues.length){if(!a&&o>=n){e.value.length=o;break}e.issues.push(...gr(o,s.issues))}e.value[o]=s.value}for(let o=e.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&e.value[o]===void 0);o--)e.value.length=o;return e}function OB(t,e,r,i,n,o,s){t.issues.length&&(Cl.has(typeof i)?r.issues.push(...gr(i,t.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:t.issues.map(a=>yr(a,s,it()))})),e.issues.length&&(Cl.has(typeof i)?r.issues.push(...gr(i,e.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:i,issues:e.issues.map(a=>yr(a,s,it()))})),r.value.set(t.value,e.value)}function BB(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add(t.value)}function DB(t,e){return t.value=e.issues.length?void 0:e.value,t}function NB(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}function zB(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}function LB(t,e,r,i){return e.issues.length?(t.value=r.catchValue({...e,value:t.value,error:{issues:e.issues.map(n=>yr(n,i,it()))},input:t.value}),t):(t.value=e.value,e.memo&&(t.memo=!0),t)}function zm(t,e,r){return t.issues.some(i=>i.code!=="unrecognized_keys")?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},r)}function Lm(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direction||"forward")==="forward"){let n=e.transform(t.value,t);return n instanceof Promise?n.then(o=>Em(t,o,e.out,r)):Em(t,n,e.out,r)}else{let n=e.reverseTransform(t.value,t);return n instanceof Promise?n.then(o=>Em(t,o,e.in,r)):Em(t,n,e.in,r)}}function Em(t,e,r,i){return t.issues.length?(t.aborted=!0,t):r._zod.run({value:e,issues:t.issues},i)}function EB(t){return t.memo||(t.value=Object.freeze(t.value)),t}function $V(t){let e=t._zod.def,r=e.pattern,i=!!e.format?.includes("int"),n,o;for(let a of e.checks??[]){let c=a._zod.def;c.pattern&&(r=c.pattern),i||(i=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(n===void 0||u>n)&&(n=u),l!==void 0&&(o===void 0||l<o)&&(o=l)}if(r)return r.source;if(n!==void 0&&o!==void 0&&n>o)return"(?!)";if(n!==void 0||o!==void 0)return T_({minimum:n,maximum:o}).source;let s=t._zod.pattern;return(i&&s===Si?Yl:s)?.source}function n0(t){let e=t._zod.def,r=t._zod.pattern?.source,i=e.innerType??t._zod.innerType;if(i){let n=i._zod.pattern?.source,o=n0(i);return r&&n&&o&&o!==n?r.replace($i(n),()=>$i(o)):r}if(e.options){let n=e.options.map(n0);if(n.every(Boolean))return`^(${n.map(o=>$i(o)).join("|")})$`}return $V(t)}function UB(t,e,r,i){if(!t){let n={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(n.params=i._zod.def.params),e.issues.push(Ic(n))}}var ce,PB,ia,Le,i0,o0,s0,a0,ef,vV,u0,l0,f0,d0,p0,m0,h0,g0,y0,v0,b0,w0,_0,bV,x0,I0,$0,S0,jm,T0,of,k0,A0,wV,O0,B0,D0,N0,Jm,z0,sf,Km,L0,E0,U0,P0,F0,M0,C0,R0,j0,V0,IV,RB,Z0,af,G0,J0,K0,Hm,H0,q0,Y0,X0,Q0,ex,tx,qm,rx,nx,ix,ox,sx,ax,cx,ux,Ym,cf,lx,fx,dx,px,mx,uf,hx,Bc=h(()=>{Dm();Zo();Nm();Xw();ra();E();r0();E();ce=b("$ZodType",(t,e)=>{var r;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=t0;let i=t._zod.def.checks,n=t._zod.traits.has("$ZodCheck")?[t,...i??[]]:i?.length?[...i]:[];for(let o of n)for(let s of o._zod.onattach)s(t);if(n.length===0)(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let o=(a,c,u)=>{if(a.memo)return a;let l=nr(a),f;for(let d of c){if(d._zod.def.when){if(Cw(a)||!d._zod.def.when(a))continue}else if(l)continue;let p=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&u?.async===!1)throw new vr;if(f||m instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await m,a.issues.length!==p&&(dm(a.issues,p,t),l||(l=nr(a,p)))});else{if(a.issues.length===p)continue;dm(a.issues,p,t),l||(l=nr(a,p))}}return f?f.then(()=>a):a},s=(a,c,u)=>{if(nr(a))return a.aborted=!0,a;let l=o(c,n,u);if(l instanceof Promise){if(u.async===!1)throw new vr;return l.then(f=>t._zod.parse(f,u))}return t._zod.parse(l,u)};t._zod.run=(a,c)=>{if(c.skipChecks)return t._zod.parse(a,c);if(c.direction==="backward"){let l=t._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(f=>s(f,a,c)):s(l,a,c)}let u=t._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new vr;return u.then(l=>o(l,n,c))}return o(u,n,c)}}},{get"~standard"(){return Gl(this,"~standard",Pm(this))},set"~standard"(t){Vo(this,"~standard",t)}}),PB=(t,e)=>t.issues.length?{issues:t.issues.map(r=>yr(r,e,it()))}:{value:t.value};ia=b("$ZodString",(t,e)=>{ce.init(t,e),t._zod.pattern=e.pattern??S_,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),Le=b("$ZodStringFormat",(t,e)=>{Ac.init(t,e),ia.init(t,e)}),i0=b("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=c_),Le.init(t,e)}),o0=b("$ZodUUID",(t,e)=>{if(e.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(i===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=ta(i))}else e.pattern??(e.pattern=ta());Le.init(t,e)}),s0=b("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=u_),Le.init(t,e)}),a0=1,ef=2;vV=/[\t\n\r]/g;u0=b("$ZodURL",(t,e)=>{Le.init(t,e),t._zod.check=r=>{try{let i=r.value.trim(),n=Fm(i,e);if(n===a0){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:t,continue:!e.abort});return}if(n===ef){r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort});return}if(n===!0){r.value=tf(i);return}e.hostname&&!Mm(n,e.hostname)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:r.value,inst:t,continue:!e.abort}),e.protocol&&!Cm(n,e.protocol)&&r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:r.value,inst:t,continue:!e.abort}),r.value=e.normalize?n.href:tf(i);return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:t,continue:!e.abort})}}}),l0=b("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=l_()),Le.init(t,e)}),f0=b("$ZodNanoID",(t,e)=>{if(e.length!==void 0&&(!Number.isInteger(e.length)||e.length<1))throw new Error(`Invalid nanoid length: ${e.length}`);e.pattern??(e.pattern=e.length===void 0?o_:s_(e.length)),Le.init(t,e)}),d0=b("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=e_),Le.init(t,e)}),p0=b("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=t_),Le.init(t,e)}),m0=b("$ZodULID",(t,e)=>{e.pattern??(e.pattern=r_),Le.init(t,e)}),h0=b("$ZodXID",(t,e)=>{e.pattern??(e.pattern=n_),Le.init(t,e)}),g0=b("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=i_),Le.init(t,e)}),y0=b("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=$_(e)),Le.init(t,e)}),v0=b("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=x_),Le.init(t,e)}),b0=b("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=I_(e)),Le.init(t,e)}),w0=b("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=a_),Le.init(t,e)}),_0=b("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=f_),Le.init(t,e)}),bV=/^[0-9a-fA-F:.]+$/;x0=b("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=d_),Le.init(t,e),t._zod.check=r=>{rf(r.value)||r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:t,continue:!e.abort})}}),I0=b("$ZodMAC",(t,e)=>{e.pattern??(e.pattern=p_(e.delimiter)),Le.init(t,e)}),$0=b("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=m_),Le.init(t,e)});S0=b("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=h_),Le.init(t,e),t._zod.check=r=>{Rm(r.value)||r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:t,continue:!e.abort})}});jm=/^[0-9a-zA-Z+/]*={0,2}$/,T0=b("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=jm),Le.init(t,e),t._zod.check=r=>{nf(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:t,continue:!e.abort})}}),of=/^[A-Za-z0-9_-]*$/;k0=b("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=of),Le.init(t,e),t._zod.check=r=>{Vm(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:t,continue:!e.abort})}}),A0=b("$ZodE164",(t,e)=>{e.pattern??(e.pattern=w_),Le.init(t,e)}),wV=/[- ]/g;O0=b("$ZodCreditCard",(t,e)=>{e.pattern??(e.pattern=Sm),Le.init(t,e),t._zod.check=r=>{Zm(r.value)||r.issues.push({code:"invalid_format",format:"credit_card",input:r.value,inst:t,continue:!e.abort})}});B0=b("$ZodIBAN",(t,e)=>{e.pattern??(e.pattern=Tm),Le.init(t,e),t._zod.check=r=>{Gm(r.value)||r.issues.push({code:"invalid_format",format:"iban",input:r.value,inst:t,continue:!e.abort})}});D0=b("$ZodJWT",(t,e)=>{Le.init(t,e),t._zod.check=r=>{Wm(r.value,e.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:t,continue:!e.abort})}}),N0=b("$ZodCustomStringFormat",(t,e)=>{Le.init(t,e),t._zod.check=r=>{e.fn(r.value)||r.issues.push({code:"invalid_format",format:e.format,input:r.value,inst:t,continue:!e.abort})}}),Jm=b("$ZodNumber",(t,e)=>{ce.init(t,e),t._zod.pattern=Si,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:String(n):void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:t,...o?{received:o}:{}}),r}}),z0=b("$ZodNumberFormat",(t,e)=>{P_.init(t,e),Jm.init(t,e)}),sf=b("$ZodBoolean",(t,e)=>{ce.init(t,e),t._zod.pattern=A_,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:t}),r}}),Km=b("$ZodBigInt",(t,e)=>{ce.init(t,e),t._zod.pattern=k_,t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:t}),r}}),L0=b("$ZodBigIntFormat",(t,e)=>{F_.init(t,e),Km.init(t,e)}),E0=b("$ZodSymbol",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:t}),r}}),U0=b("$ZodUndefined",(t,e)=>{ce.init(t,e),t._zod.pattern=B_,t._zod.values=new Set([void 0]),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:t}),r}}),P0=b("$ZodNull",(t,e)=>{ce.init(t,e),t._zod.pattern=O_,t._zod.values=new Set([null]),t._zod.parse=(r,i)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}}),F0=b("$ZodAny",(t,e)=>{ce.init(t,e),t._zod.parse=r=>r}),M0=b("$ZodUnknown",(t,e)=>{ce.init(t,e),t._zod.parse=r=>r}),C0=b("$ZodNever",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)}),R0=b("$ZodVoid",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}}),j0=b("$ZodDate",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:t}),r}});V0=b("$ZodArray",(t,e)=>{ce.init(t,e);let r=yt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({expected:"array",code:"invalid_type",input:o,inst:t}),i;i.value=r?r.alloc(t,i,Array(o.length),n):Array(o.length);let s=[],a=n?.abortEarly;for(let c=0;c<o.length;c++){let u=o[c],l=e.element._zod.run({value:u,issues:[]},n);if(l instanceof Promise)s.push(l.then(f=>xB(f,i,c)));else if(xB(l,i,c),a&&l.issues.length!==0&&nr(l))break}return s.length?Promise.all(s).then(()=>i):i}});IV=[];RB=b("$ZodObject",(t,e)=>{ce.init(t,e);let r=Object.getOwnPropertyDescriptor(e,"shape"),i=r?.get?r.get.raw:e.shape??{};if(i){let u=()=>{let l={...i};return Object.defineProperty(e,"shape",{value:l}),u.raw=l,l};u.raw=i,Object.defineProperty(e,"shape",{get:u})}let n=_c(()=>MB(e));ge(t,"propValues",u=>{let l=u.def.shape,f={};for(let d in l){let p=l[d]._zod;if(p.values){Object.prototype.hasOwnProperty.call(f,d)||kt(f,d,new Set);for(let m of p.values)f[d].add(m);p.optin!==void 0&&f[d].add(void 0)}}return f});let o=Qs,s=e.catchall,a,c=yt.memoizer;c?.attach(t),t._zod.parse=(u,l)=>{a??(a=n.value);let f=u.value;if(!o(f))return u.issues.push({expected:"object",code:"invalid_type",input:f,inst:t}),u;u.value=c?c.alloc(t,u,{},l):{};let d=[],p=a.shape,m=l?.abortEarly,g=u.issues.length;for(let v of a.allKeys){if(m&&u.issues.length!==g){if(nr(u,g))break;g=u.issues.length}if(v==="__proto__")continue;let I=p[v],A=I._zod.optin,_=I._zod.optout,x=I._zod.run({value:f[v],issues:[]},l);x instanceof Promise?d.push(x.then(O=>Um(O,u,v,f,A,_))):Um(x,u,v,f,A,_)}return s?CB(d,f,u,l,n.value,t,m===!0):d.length?Promise.all(d).then(()=>u):u}}),Z0=b("$ZodObjectJIT",(t,e)=>{RB.init(t,e);let r=t._zod.parse,i=_c(()=>MB(e)),n=yt.memoizer,o=p=>{let m=i.value,g=m.symbolKeys,v=new na(["payload","ctx"],{shape:p,inst:t,memo:n,syms:g}),I=O=>`shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`,A=(O,N)=>`
|
|
32
|
+
let ${O}_ab = false;
|
|
33
|
+
for (let i = 0; i < ${O}.issues.length; i++) {
|
|
34
|
+
const iss = ${O}.issues[i];
|
|
35
|
+
iss.path = iss.path ? [${N}, ...iss.path] : [${N}];
|
|
36
|
+
payload.issues.push(iss);
|
|
37
|
+
if (iss.continue !== true) ${O}_ab = true;
|
|
38
|
+
}
|
|
39
|
+
if (${O}_ab && ctx && ctx.abortEarly) {
|
|
40
|
+
payload.value = newResult;
|
|
41
|
+
return payload;
|
|
42
|
+
}`;v.write("const input = payload.value;");let _=Object.create(null),x=0;for(let O of m.allKeys)_[O]=`key_${x++}`;v.write(n?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let O of m.allKeys){if(O==="__proto__")continue;let N=_[O],R=typeof O=="symbol"?`syms[${g.indexOf(O)}]`:rr(O),Ue=`${R} in input`,we=p[O],Me=we?._zod?.optin,Ve=Me!==void 0,Zf=we?._zod?.optout==="optional";if(v.write(`const ${N} = ${I(R)};`),Ve&&Zf){let Pg=Me==="optional"?`${N}_present`:`${N}.value !== undefined || ${N}_present`;v.write(`
|
|
43
|
+
const ${N}_present = ${Ue};
|
|
44
|
+
if (!${N}.issues.length || ${N}_present) {
|
|
45
|
+
if (${N}.issues.length) {${A(N,R)}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (${Pg}) {
|
|
49
|
+
newResult[${R}] = ${N}.value;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
`)}else Ve?(v.write(`
|
|
54
|
+
if (${N}.issues.length) {${A(N,R)}
|
|
55
|
+
}
|
|
56
|
+
`),Me==="defaulted"?v.write(`newResult[${R}] = ${N}.value;`):v.write(`
|
|
57
|
+
if (${N}.value !== undefined || ${Ue}) {
|
|
58
|
+
newResult[${R}] = ${N}.value;
|
|
59
|
+
}
|
|
60
|
+
`)):v.write(`
|
|
61
|
+
const ${N}_present = ${Ue};
|
|
62
|
+
if (${N}.issues.length) {${A(N,R)}
|
|
63
|
+
}
|
|
64
|
+
if (!${N}_present && !${N}.issues.length) {
|
|
65
|
+
payload.issues.push({
|
|
66
|
+
code: "invalid_type",
|
|
67
|
+
expected: "nonoptional",
|
|
68
|
+
input: undefined,
|
|
69
|
+
path: [${R}]
|
|
70
|
+
});
|
|
71
|
+
if (ctx && ctx.abortEarly) {
|
|
72
|
+
payload.value = newResult;
|
|
73
|
+
return payload;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (${N}_present) {
|
|
78
|
+
newResult[${R}] = ${N}.value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
`)}return v.write("payload.value = newResult;"),v.write("return payload;"),v.compile()},s,a=Qs,c=!yt.jitless,l=c&&Pw.value,f=e.catchall,d;t._zod.parse=(p,m)=>{d??(d=i.value);let g=p.value;return a(g)?c&&l&&m?.async===!1&&m.jitless!==!0?(s||(s=o(e.shape)),p=s(p,m),f?CB([],g,p,m,d,t,m?.abortEarly===!0):p):r(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:t}),p)}});af=b("$ZodUnion",(t,e)=>{ce.init(t,e),ge(t,"optin",i=>i.def.options.some(n=>n._zod.optin==="defaulted")?"defaulted":i.def.options.some(n=>n._zod.optin!==void 0)?"optional":void 0),ge(t,"optout",i=>i.def.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ge(t,"values",i=>{if(i.def.options.every(n=>n._zod.values))return new Set(i.def.options.flatMap(n=>Array.from(n._zod.values)))}),ge(t,"pattern",i=>{if(i.def.options.every(n=>n._zod.pattern)){let n=i.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>$i(o.source)).join("|")})$`)}});let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,s=[];for(let a of e.options){let c=a._zod.run({value:i.value,issues:[]},n);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(a=>IB(a,i,t,n)):IB(s,i,t,n)}});G0=b("$ZodXor",(t,e)=>{af.init(t,e),e.inclusive=!1;let r=e.options.length===1?e.options[0]._zod.run:null;t._zod.parse=(i,n)=>{if(r)return r(i,n);let o=!1,s=[];for(let a of e.options){let c=a._zod.run({value:i.value,issues:[]},n);c instanceof Promise?(s.push(c),o=!0):s.push(c)}return o?Promise.all(s).then(a=>$B(a,i,t,n)):$B(s,i,t,n)}});J0=b("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,af.init(t,e);let r=t._zod.parse;ge(t,"propValues",n=>{let o={},s=0;for(let a of n.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${n.def.options.indexOf(a)}"`);c[n.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(o,u)||kt(o,u,new Set);for(let f of l)o[u].add(f)}}return!n.def.unionFallback&&s>1&&o[n.def.discriminator]?.delete(void 0),o}),e.options.forEach((n,o)=>{let s=xc(n._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,e.discriminator))throw new Error(`Invalid discriminated union option at index "${o}"`)});let i=_c(()=>jB(e));t._zod.parse=(n,o)=>{let s=n.value;if(!Qs(s))return n.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),n;let a=s?.[e.discriminator],c=i.value.get(a);return c&&(a!==void 0||o.direction!=="backward")?c._zod.run(n,o):e.unionFallback||o.direction==="backward"?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,options:Array.from(i.value.keys()).filter(u=>i.value.get(u)!==null),input:s,path:[e.discriminator],inst:t}),n)}}),K0=b("$ZodIntersection",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>{let n=r.value,o=e.left._zod.run({value:n,issues:[]},i),s=e.right._zod.run({value:n,issues:[]},i);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([c,u])=>SB(r,c,u)):SB(r,o,s)}});Hm=b("$ZodTuple",(t,e)=>{ce.init(t,e);let r=e.items,i=yt.memoizer;i?.attach(t),t._zod.parse=(n,o)=>{let s=n.value;if(!Array.isArray(s))return n.issues.push({input:s,inst:t,expected:"tuple",code:"invalid_type"}),n;n.value=i?i.alloc(t,n,[],o):[];let a=[],c=TB(r,"optin"),u=TB(r,"optout");if(!e.rest){if(s.length<c)return n.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:t,origin:"array"}),n;s.length>r.length&&n.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:s,inst:t,origin:"array"})}let l=new Array(r.length),f=e.rest?o?.abortEarly:void 0,d=!1;for(let p=0;p<r.length;p++){let m=r[p]._zod.run({value:s[p],issues:[]},o);m instanceof Promise?a.push(m.then(g=>{l[p]=g})):(l[p]=m,f&&!d&&m.issues.length&&(d=nr(m)))}if(e.rest&&!d){let p=r.length-1,m=s.slice(r.length),g=n.issues.length;for(let v of m){if(f&&n.issues.length!==g){if(nr(n,g))break;g=n.issues.length}p++;let I=e.rest._zod.run({value:v,issues:[]},o);I instanceof Promise?a.push(I.then(A=>kB(A,n,p))):kB(I,n,p)}}return a.length?Promise.all(a).then(()=>AB(l,n,r,s,u)):AB(l,n,r,s,u)}});H0=b("$ZodRecord",(t,e)=>{ce.init(t,e);let r=yt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!nn(o))return i.issues.push({expected:"record",code:"invalid_type",input:o,inst:t}),i;let s=[],a=e.keyType._zod.values;if(a&&!e.partial){i.value=r?r.alloc(t,i,{},n):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let f=e.keyType._zod.run({value:l,issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(f.issues.length){i.issues.push({code:"invalid_key",origin:"record",issues:f.issues.map(m=>yr(m,n,it())),input:l,path:[l],inst:t});continue}let d=f.value;if(d==="__proto__")continue;let p=e.valueType._zod.run({value:o[l],issues:[]},n);p instanceof Promise?s.push(p.then(m=>{m.issues.length&&i.issues.push(...gr(l,m.issues)),i.value[d]=m.value})):(p.issues.length&&i.issues.push(...gr(l,p.issues)),i.value[d]=p.value)}let u;for(let l in o)if(!c.has(l))if(e.mode==="loose"){if(l==="__proto__")continue;i.value[l]=o[l]}else u=u??[],u.push(l);u&&u.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:u,continue:!0})}else{i.value=r?r.alloc(t,i,{},n):{};let c;for(let u of Reflect.ownKeys(o)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,u))continue;let l=e.keyType._zod.run({value:u,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&Si.test(u)&&l.issues.length){let m=e.keyType._zod.run({value:Number(u),issues:[]},n);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(l=m)}if(l.issues.length){e.mode==="loose"?i.value[u]=o[u]:a?(c=c??[],c.push(u)):i.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(m=>yr(m,n,it())),input:u,path:[u],inst:t});continue}let d=l.value;if(d==="__proto__")continue;let p=e.valueType._zod.run({value:o[u],issues:[]},n);p instanceof Promise?s.push(p.then(m=>{m.issues.length&&i.issues.push(...gr(u,m.issues)),i.value[d]=m.value})):(p.issues.length&&i.issues.push(...gr(u,p.issues)),i.value[d]=p.value)}c&&c.length>0&&i.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>i):i}}),q0=b("$ZodMap",(t,e)=>{ce.init(t,e);let r=yt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:o,inst:t}),i;let s=[];i.value=r?r.alloc(t,i,new Map,n):new Map;let a=n?.abortEarly,c=i.issues.length;for(let[u,l]of o){if(a&&i.issues.length!==c){if(nr(i,c))break;c=i.issues.length}let f=e.keyType._zod.run({value:u,issues:[]},n),d=e.valueType._zod.run({value:l,issues:[]},n);f instanceof Promise||d instanceof Promise?s.push(Promise.all([f,d]).then(([p,m])=>{OB(p,m,i,u,o,t,n)})):OB(f,d,i,u,o,t,n)}return s.length?Promise.all(s).then(()=>i):i}});Y0=b("$ZodSet",(t,e)=>{ce.init(t,e);let r=yt.memoizer;r?.attach(t),t._zod.parse=(i,n)=>{let o=i.value;if(!(o instanceof Set))return i.issues.push({input:o,inst:t,expected:"set",code:"invalid_type"}),i;let s=[];i.value=r?r.alloc(t,i,new Set,n):new Set;let a=n?.abortEarly,c=i.issues.length;for(let u of o){if(a&&i.issues.length!==c){if(nr(i,c))break;c=i.issues.length}let l=e.valueType._zod.run({value:u,issues:[]},n);l instanceof Promise?s.push(l.then(f=>BB(f,i))):BB(l,i)}return s.length?Promise.all(s).then(()=>i):i}});X0=b("$ZodEnum",(t,e)=>{ce.init(t,e);let r=bc(e.entries),i=new Set(r);t._zod.values=i,ge(t,"pattern",n=>{let o=bc(n.def.entries).filter(s=>Cl.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>on(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),t._zod.parse=(n,o)=>{let s=n.value;return i.has(s)||n.issues.push({code:"invalid_value",values:r,input:s,inst:t}),n}}),Q0=b("$ZodLiteral",(t,e)=>{ce.init(t,e);let r=new Set(e.values);t._zod.values=r,ge(t,"pattern",i=>{let n=i.def.values;return new RegExp(n.length?`^(${n.map(o=>typeof o=="string"?on(o):o?on(o.toString()):String(o)).join("|")})$`:"^[^\\s\\S]$")}),t._zod.parse=(i,n)=>{let o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),i}}),ex=b("$ZodFile",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}}),tx=b("$ZodTransform",(t,e)=>{ce.init(t,e),t._zod.optin="optional",yt.memoizer?.guard(t),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Go(t.constructor.name);let n=e.transform(r.value,r);if(i.async)return(n instanceof Promise?n:Promise.resolve(n)).then(s=>(r.value=s,r));if(n instanceof Promise)throw new vr;return r.value=n,r}});qm=b("$ZodOptional",(t,e)=>{ce.init(t,e),ge(t,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),t._zod.optout="optional",ge(t,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i,void 0]):void 0}),ge(t,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${$i(i.source)})?$`):void 0}),t._zod.parse=(r,i)=>{if(r.value===void 0){if(e.innerType._zod.optin!=="defaulted")return r;let n=e.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>DB(r,o)):DB(r,n)}return e.innerType._zod.run(r,i)}}),rx=b("$ZodExactOptional",(t,e)=>{qm.init(t,e),ge(t,"values",r=>r.def.innerType._zod.values),ge(t,"pattern",r=>r.def.innerType._zod.pattern),t._zod.parse=(r,i)=>e.innerType._zod.run(r,i)}),nx=b("$ZodNullable",(t,e)=>{ce.init(t,e),ge(t,"optin",r=>r.def.innerType._zod.optin),ge(t,"optout",r=>r.def.innerType._zod.optout),ge(t,"pattern",r=>{let i=r.def.innerType._zod.pattern;return i?new RegExp(`^(${$i(i.source)}|null)$`):void 0}),ge(t,"values",r=>r.def.innerType._zod.values?new Set([...r.def.innerType._zod.values,null]):void 0),t._zod.parse=(r,i)=>r.value===null?r:e.innerType._zod.run(r,i)}),ix=b("$ZodDefault",(t,e)=>{ce.init(t,e),t._zod.optin="defaulted",ge(t,"values",r=>r.def.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);if(r.value===void 0)return r.value=e.defaultValue,r;let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>NB(o,e)):NB(n,e)}});ox=b("$ZodPrefault",(t,e)=>{ce.init(t,e),t._zod.optin="defaulted",ge(t,"values",r=>r.def.innerType._zod.values),t._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=e.defaultValue),e.innerType._zod.run(r,i))}),sx=b("$ZodNonOptional",(t,e)=>{ce.init(t,e),ge(t,"values",r=>{let i=r.def.innerType._zod.values;return i?new Set([...i].filter(n=>n!==void 0)):void 0}),t._zod.parse=(r,i)=>{let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>zB(o,t)):zB(n,t)}});ax=b("$ZodSuccess",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Go("ZodSuccess");let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}});cx=b("$ZodCatch",(t,e)=>{ce.init(t,e),ge(t,"optin",r=>r.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),ge(t,"optout",r=>r.def.innerType._zod.optout),ge(t,"values",r=>r.def.innerType._zod.values),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run({value:r.value,issues:[]},i);return n instanceof Promise?n.then(o=>LB(r,o,e,i)):LB(r,n,e,i)}}),ux=b("$ZodNaN",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)}),Ym=b("$ZodPipe",(t,e)=>{ce.init(t,e),ge(t,"values",r=>r.def.in._zod.values),ge(t,"optin",r=>r.def.in._zod.optin),ge(t,"optout",r=>r.def.out._zod.optout),ge(t,"propValues",r=>r.def.in._zod.propValues),t._zod.parse=(r,i)=>{if(i.direction==="backward"){let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(s=>zm(s,e.in,i)):zm(o,e.in,i)}let n=e.in._zod.run(r,i);return n instanceof Promise?n.then(o=>zm(o,e.out,i)):zm(n,e.out,i)}});cf=b("$ZodCodec",(t,e)=>{ce.init(t,e),ge(t,"values",r=>r.def.in._zod.values),ge(t,"optin",r=>r.def.in._zod.optin),ge(t,"optout",r=>r.def.out._zod.optout),ge(t,"propValues",r=>r.def.in._zod.propValues),t._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){let o=e.in._zod.run(r,i);return o instanceof Promise?o.then(s=>Lm(s,e,i)):Lm(o,e,i)}else{let o=e.out._zod.run(r,i);return o instanceof Promise?o.then(s=>Lm(s,e,i)):Lm(o,e,i)}}});lx=b("$ZodPreprocess",(t,e)=>{Ym.init(t,e)}),fx=b("$ZodReadonly",(t,e)=>{ce.init(t,e),ge(t,"propValues",r=>r.def.innerType._zod.propValues),ge(t,"values",r=>r.def.innerType._zod.values),ge(t,"optin",r=>r.def.innerType?._zod?.optin),ge(t,"optout",r=>r.def.innerType?._zod?.optout),t._zod.parse=(r,i)=>{if(i.direction==="backward")return e.innerType._zod.run(r,i);let n=e.innerType._zod.run(r,i);return n instanceof Promise?n.then(EB):EB(n)}});dx=b("$ZodTemplateLiteral",(t,e)=>{ce.init(t,e);let r=[];for(let i of e.parts)if(typeof i=="object"&&i!==null){let n=n0(i);if(!n)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);r.push($i(n))}else if(i===null||Fw.has(typeof i))r.push(on(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);t._zod.pattern=new RegExp(`^${r.join("")}$`),t._zod.parse=(i,n)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:t,expected:"string",code:"invalid_type"}),i):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:t,code:"invalid_format",format:e.format??"template_literal",pattern:t._zod.pattern.source}),i)}),px=b("$ZodFunction",(t,e)=>(ce.init(t,e),Object.defineProperty(t,"_def",{value:e}),t._zod.def=e,t.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...i){let n=t._def.input?hm(t._def.input,i):i,o=Reflect.apply(r,this,n);return t._def.output?hm(t._def.output,o):o},"_zod",{value:t._zod,enumerable:!1})},t.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...i){let n=t._def.input?await gm(t._def.input,i):i,o=await Reflect.apply(r,this,n);return t._def.output?await gm(t._def.output,o):o},"_zod",{value:t._zod,enumerable:!1})},t._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:t}),r):(t._def.output&&t._def.output._zod.def.type==="promise"?r.value=t.implementAsync(r.value):r.value=t.implement(r.value),r),t.input=(...r)=>{let i=t.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Hm({type:"tuple",items:r[0],rest:r[1]}),output:t._def.output}):new i({type:"function",input:r[0],output:t._def.output})},t.output=r=>{let i=t.constructor;return new i({type:"function",input:t._def.input,output:r})},t)),mx=b("$ZodPromise",(t,e)=>{ce.init(t,e),t._zod.parse=(r,i)=>Promise.resolve(r.value).then(n=>e.innerType._zod.run({value:n,issues:[]},i))}),uf=b("$ZodLazy",(t,e)=>{ce.init(t,e),Ew(t._zod,"innerType",()=>{let r=e;return r._cachedInner||(r._cachedInner=e.getter()),r._cachedInner}),ge(t,"pattern",r=>r.innerType?._zod?.pattern),ge(t,"propValues",r=>r.innerType?._zod?.propValues),ge(t,"optin",r=>r.innerType?._zod?.optin??void 0),ge(t,"optout",r=>r.innerType?._zod?.optout??void 0),t._zod.parse=(r,i)=>t._zod.innerType._zod.run(r,i)}),hx=b("$ZodCustom",(t,e)=>{Ce.init(t,e),ce.init(t,e),t._zod.parse=(r,i)=>r,t._zod.check=r=>{let i=r.value,n=e.fn(i);if(n instanceof Promise)return n.then(o=>UB(o,r,i,t));UB(n,r,i,t)}})});function GB(t){return t!==null&&typeof t=="object"}function gx(t){return t.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}function ff(t,e,r){let i=WB.get(t);if(i!==void 0)return i?lf:Dc;if(e.has(t))return lf;e.add(t);let n=Dc,o=l=>{if(n!==lf&&l?._zod){let f=ff(l,e,r);f>n&&(n=f)}},s=(l,f)=>{let d=Dc;for(let p of Reflect.ownKeys(l)){let m=Object.getOwnPropertyDescriptor(l,p);if(f&&!m.enumerable)continue;let g=m.get?eh:m.value?._zod?ff(m.value,e,r):Dc;g>d&&(d=g)}return d},a=l=>{l>n&&(n=l)},c=t._zod.def,u=c.type;switch(u){case"object":{let l=xc(c);a(l?s(l,!0):eh),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(let l of c.items)o(l);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(let l of c.options)o(l);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{let l=c._cachedInner??(r?t._zod.innerType:void 0);a(l?ff(l,e,!1):eh);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let f=Object.getOwnPropertyDescriptor(c,l);if(!f||f.get)continue;let d=f.value;if(!(!d||typeof d!="object")){if(d._zod)o(d);else if(Array.isArray(d))for(let p of d)o(p)}}}return e.delete(t),SV(t,n)}function SV(t,e){return e!==eh&&WB.set(t,e===lf),e}function rh(t){return ff(t,new Set,!0)!==Dc}function TV(t,e){let r=t.buckets.get(e);return r||(r=new WeakMap,t.buckets.set(e,r)),r}function df(){return kV}function nh(t,e){let r=t[yx]?.backEdges;return r!==void 0&&GB(e)&&r.has(e)}var th,yx,ZB,WB,Dc,eh,lf,Xm,Qm,kV,vx=h(()=>{E();th=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},yx="~memo",ZB=[];WB=new WeakMap,Dc=0,eh=1,lf=2;Qm=[],kV={alloc(t,e,r){let i=Xm;if(!i)return r;Xm=void 0;let n={value:r,issues:null};return i.set(e.value,n),Qm.push(n),r},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let r=t._zod.parse,i=(n,o)=>{if(o.direction!=="backward"&&nh(o,n.value))throw new th;return r(n,o)};t._zod.parse=i,t._zod.run===r&&(t._zod.run=i)})},attach(t){var e;let r,i=!1,n,o;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{let s=t._zod.parse,a=(c,u)=>{if(r===void 0){let I=ff(t,new Set,!1);if(I===Dc)return t._zod.parse=s,t._zod.run===a&&(t._zod.run=s),s(c,u);I===lf||i?r=!0:i=!0}let l=c.value;if(!GB(l))return s(c,u);let f=u[yx];f||(f={buckets:new WeakMap,backEdges:void 0},u[yx]=f);let d;n===u?d=o:(d=TV(f,t),n=u,o=d);let p=d.get(l);if(p)return c.value=p.value,p.issues?p.issues.length&&c.issues.push(...gx(p.issues)):(c.memo=!0,f.backEdges??(f.backEdges=new WeakSet),f.backEdges.add(p.value)),c;Xm=d;let m=Qm.length,g=s(c,u);Xm=void 0;let v=Qm.length>m?Qm.pop():void 0;return g instanceof Promise?g.then(I=>(v&&(v.issues=I.issues.length?gx(I.issues):ZB),I)):(v&&(v.issues=g.issues.length?gx(g.issues):ZB),g)};t._zod.parse=a,t._zod.run===s&&(t._zod.run=a)})}}});function JB(){return{localeError:AV()}}var AV,KB=h(()=>{E();AV=()=>{let t={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},map:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",mac:"\u0639\u0646\u0648\u0627\u0646 MAC",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",credit_card:"\u0631\u0642\u0645 \u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0627\u0626\u062A\u0645\u0627\u0646",currency_code:"\u0631\u0645\u0632 \u0627\u0644\u0639\u0645\u0644\u0629",iban:"IBAN",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${a}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${S(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${s.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${w(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}}});function HB(){return{localeError:OV()}}var OV,qB=h(()=>{E();OV=()=>{let t={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"},map:{unit:"element",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kart\u0131 n\xF6mr\u0259si",currency_code:"valyuta kodu",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${a}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${a}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${S(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${s.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}}});function YB(t,e,r,i){let n=Math.abs(t),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?e:o>=2&&o<=4?r:i}function XB(){return{localeError:BV()}}var BV,QB=h(()=>{E();BV=()=>{let t={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",mac:"MAC \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",credit_card:"\u043D\u0443\u043C\u0430\u0440 \u043A\u0440\u044D\u0434\u044B\u0442\u043D\u0430\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${S(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=YB(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${n.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);if(s){let a=Number(n.minimum),c=YB(a,s.unit.one,s.unit.few,s.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${s.verb} ${o}${n.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}}});function eD(){return{localeError:DV()}}var DV,tD=h(()=>{E();DV=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${S(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(s="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${s} ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}}});function rD(){return{localeError:NV()}}var NV,nD=h(()=>{E();NV=()=>{let t={string:{unit:"\u0985\u0995\u09CD\u09B7\u09B0",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},file:{unit:"\u09AC\u09BE\u0987\u099F",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},array:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},set:{unit:"\u0986\u0987\u099F\u09C7\u09AE",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"},map:{unit:"\u098F\u09A8\u09CD\u099F\u09CD\u09B0\u09BF",verb:"\u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7"}};function e(n){return t[n]??null}let r={regex:"\u0987\u09A8\u09AA\u09C1\u099F",email:"\u0987\u09AE\u09C7\u0987\u09B2 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",url:"URL",emoji:"\u0987\u09AE\u09CB\u099C\u09BF",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u09A4\u09BE\u09B0\u09BF\u0996 \u0993 \u09B8\u09AE\u09AF\u09BC",date:"ISO \u09A4\u09BE\u09B0\u09BF\u0996",time:"ISO \u09B8\u09AE\u09AF\u09BC",duration:"ISO \u09B8\u09AE\u09AF\u09BC\u0995\u09BE\u09B2",ipv4:"IPv4 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",ipv6:"IPv6 \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",mac:"MAC \u09A0\u09BF\u0995\u09BE\u09A8\u09BE",cidrv4:"IPv4 \u09B0\u09C7\u099E\u09CD\u099C",cidrv6:"IPv6 \u09B0\u09C7\u099E\u09CD\u099C",base64:"base64-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",base64url:"base64url-\u098F\u09A8\u0995\u09CB\u09A1\u09C7\u09A1 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",json_string:"JSON \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982",e164:"E.164 \u09A8\u09AE\u09CD\u09AC\u09B0",credit_card:"\u0995\u09CD\u09B0\u09C7\u09A1\u09BF\u099F \u0995\u09BE\u09B0\u09CD\u09A1 \u09A8\u09AE\u09CD\u09AC\u09B0",currency_code:"\u09AE\u09C1\u09A6\u09CD\u09B0\u09BE \u0995\u09CB\u09A1",iban:"IBAN",jwt:"JWT",template_literal:"\u0987\u09A8\u09AA\u09C1\u099F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${o}, \u09AA\u09CD\u09B0\u09BE\u09AA\u09CD\u09A4 ${a}`}case"invalid_value":return n.values.length===1?`\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F: \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${S(n.values[0])}`:`\u0985\u09AC\u09C8\u09A7 \u0985\u09AA\u09B6\u09A8: ${w(n.values," | ")} \u098F\u09B0 \u09AE\u09A7\u09CD\u09AF\u09C7 \u098F\u0995\u099F\u09BF \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${n.origin??"\u09AE\u09BE\u09A8"} ${o}${n.maximum.toString()} ${s.unit??"\u098F\u09B2\u09BF\u09AE\u09C7\u09A8\u09CD\u099F"} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u09AC\u09A1\u09BC: ${n.origin??"\u09AE\u09BE\u09A8"} ${o}${n.maximum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09A8\u09C7\u0995 \u099B\u09CB\u099F: ${n.origin} ${o}${n.minimum.toString()} \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.prefix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C1\u09B0\u09C1 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="ends_with"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.suffix}" \u09A6\u09BF\u09AF\u09BC\u09C7 \u09B6\u09C7\u09B7 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="includes"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: "${o.includes}" \u0985\u09A8\u09CD\u09A4\u09B0\u09CD\u09AD\u09C1\u0995\u09CD\u09A4 \u09A5\u09BE\u0995\u09A4\u09C7 \u09B9\u09AC\u09C7`:o.format==="regex"?`\u0985\u09AC\u09C8\u09A7 \u09B8\u09CD\u099F\u09CD\u09B0\u09BF\u0982: ${o.pattern} \u09AA\u09CD\u09AF\u09BE\u099F\u09BE\u09B0\u09CD\u09A8 \u09AE\u09BF\u09B2\u09A4\u09C7 \u09B9\u09AC\u09C7`:`\u0985\u09AC\u09C8\u09A7 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0985\u09AC\u09C8\u09A7 \u09A8\u09AE\u09CD\u09AC\u09B0: ${n.divisor} \u098F\u09B0 \u0997\u09C1\u09A3\u09BF\u09A4\u0995 \u09B9\u09A4\u09C7 \u09B9\u09AC\u09C7`;case"unrecognized_keys":return`\u0985\u099A\u09C7\u09A8\u09BE \u0995\u09C0${n.keys.length>1?"\u0997\u09C1\u09B2\u09CB":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u0995\u09C0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0985\u09AC\u09C8\u09A7 \u09A1\u09BF\u09B8\u0995\u09CD\u09B0\u09BF\u09AE\u09BF\u09A8\u09C7\u099F\u09B0 \u09AE\u09BE\u09A8\u0964 \u09AA\u09CD\u09B0\u09A4\u09CD\u09AF\u09BE\u09B6\u09BF\u09A4 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F";case"invalid_element":return`${n.origin} \u098F \u0985\u09AC\u09C8\u09A7 \u09AE\u09BE\u09A8`;default:return"\u0985\u09AC\u09C8\u09A7 \u0987\u09A8\u09AA\u09C1\u099F"}}}});function iD(){return{localeError:zV()}}var zV,oD=h(()=>{E();zV=()=>{let t={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",mac:"adre\xE7a MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de targeta de cr\xE8dit",currency_code:"codi de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${a}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${a}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${S(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${w(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",s=e(n.origin);return s?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${s.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",s=e(n.origin);return s?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${s.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}}});function sD(){return{localeError:LV()}}var LV,aD=h(()=>{E();LV=()=>{let t={string:{unit:"\u067E\u06CC\u062A",verb:"\u0628\u06CE\u062A"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u0628\u06CE\u062A"},array:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},set:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"},map:{unit:"\u062F\u0627\u0646\u06D5",verb:"\u0628\u06CE\u062A"}};function e(n){return t[n]??null}let r={regex:"regex",email:"\u0626\u06CC\u0645\u06D5\u06CC\u06B5",url:"\u0628\u06D5\u0633\u062A\u06D5\u0631 (URL)",emoji:"\u0626\u06CC\u0645\u06C6\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0695\u06CE\u06A9\u06D5\u0648\u062A \u0648 \u06A9\u0627\u062A",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",time:"\u06A9\u0627\u062A",duration:"\u0645\u0627\u0648\u06D5",ipv4:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv4",ipv6:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC IPv6",mac:"\u0646\u0627\u0648\u0646\u06CC\u0634\u0627\u0646\u06CC MAC",cidrv4:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv4",cidrv6:"\u0645\u06D5\u0648\u062F\u0627\u06CC IPv6",base64:"\u062F\u06D5\u0642\u06CC base64",base64url:"\u062F\u06D5\u0642\u06CC base64url",json_string:"\u062F\u06D5\u0642\u06CC JSON",e164:"\u0698\u0645\u0627\u0631\u06D5\u06CC E.164",credit_card:"\u0698\u0645\u0627\u0631\u06D5\u06CC \u06A9\u0627\u0631\u062A\u06CC \u06A9\u0631\u06CE\u062F\u06CC\u062A",currency_code:"\u06A9\u06C6\u062F\u06CC \u062F\u0631\u0627\u0648",iban:"IBAN",jwt:"JWT",template_literal:"\u062A\u06CE\u06A9\u0631\u062F\u06D5"},i={nan:"NaN",string:"\u0646\u0648\u0648\u0633\u06CC\u0646",number:"\u0698\u0645\u0627\u0631\u06D5",boolean:"boolean",array:"array",object:"object",date:"\u0695\u06CE\u06A9\u06D5\u0648\u062A",integer:"\u0698\u0645\u0627\u0631\u06D5",float:"\u0698\u0645\u0627\u0631\u06D5",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s,c=["\u0627","\u0648","\u06C6","\u0648\u0648","\u06D5","\u06CC","\u06CE"].some(l=>a.endsWith(l))?"\u06CC\u06D5":"\u06D5",u=/^[a-zA-Z]+$/.test(a);return s==="null"||s==="undefined"?"\u062F\u0627\u0648\u0627\u06A9\u0631\u0627\u0648\u06D5":`\u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${o} \u0628\u06CE\u062A\u060C \u0628\u06D5\u06B5\u0627\u0645 ${a}${u?"":c}`}case"invalid_value":return n.values.length===1?`\u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0648\u0633\u062A\u06D5: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 ${S(n.values[0])} \u0628\u06CE\u062A`:`\u0647\u06D5\u06B5\u0628\u0698\u0627\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648\u06D5 \u06CC\u06D5\u06A9\u06CE\u06A9 \u0628\u06CE\u062A \u0644\u06D5 ${w(n.values,"|")}`;case"too_big":{let o=e(n.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${n.maximum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u0632\u06C6\u0631\u06D5\u0648\u06D5 ${n.maximum.toString()} \u0628\u06CE\u062A`}case"too_small":{let o=e(n.origin);return o?`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${n.minimum.toString()} ${o.unit} ${o.verb}`:`\u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0628\u06D5 \u0644\u0627\u06CC\u06D5\u0646\u06CC \u06A9\u06D5\u0645\u06D5\u0648\u06D5 ${n.minimum.toString()} \u0628\u06CE\u062A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u062F\u06D5\u0633\u062A\u067E\u06CE\u0628\u06A9\u0627\u062A \u0628\u06D5 "${o.prefix}"`:o.format==="ends_with"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u06A9\u06C6\u062A\u0627\u06CC\u06CC\u0628\u06CE\u062A \u0628\u06D5 "${o.suffix}"`:o.format==="includes"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 "${o.includes}" \u0644\u06D5\u062E\u06C6\u0628\u06AF\u0631\u06CE\u062A`:o.format==="regex"?`\u062F\u06D5\u0642\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u067E\u06CE\u0648\u06CC\u0633\u062A\u06D5 \u0644\u06D5\u06AF\u06D5\u06B5 \u067E\u0627\u062A\u06CE\u0631\u0646\u06CC ${o.pattern} \u0628\u06AF\u0648\u0646\u062C\u06CE\u062A`:`\u0628\u06D5\u0647\u0627\u06CC ${r[o.format]??n.format} \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`}case"not_multiple_of":return`\u0698\u0645\u0627\u0631\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A: \u062F\u06D5\u0628\u06CE\u062A \u0686\u06D5\u0646\u062F \u0647\u06CE\u0646\u062F\u06D5 \u0628\u06CE\u062A \u0628\u06C6 ${n.divisor}`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648: ${w(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u0644\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A \u0644\u06D5 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0628\u06D5\u0647\u0627\u06CC \u0646\u06D5\u0646\u0627\u0633\u0631\u0627\u0648 \u0647\u06D5\u06CC\u06D5. \u0628\u06D5\u0647\u0627\u06CC \u0686\u0627\u0648\u06D5\u0695\u0648\u0627\u0646\u06A9\u0631\u0627\u0648: ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u06CC\u06D5\u06A9\u06AF\u0631\u062A\u0646\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A";case"invalid_element":return`${n.origin} \u0628\u06D5\u0647\u0627\u06A9\u06D5 \u0646\u0627\u062F\u0631\u0648\u0633\u062A\u06D5`;default:return"\u062A\u06CE\u06A9\u0631\u062F\u06D5\u06CC \u0646\u0627\u062F\u0631\u0648\u0633\u062A"}}}});function cD(){return{localeError:EV()}}var EV,uD=h(()=>{E();EV=()=>{let t={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"},map:{unit:"prvk\u016F",verb:"m\xEDt"}};function e(n){return t[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditn\xED karty",currency_code:"k\xF3d m\u011Bny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${a}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${S(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${s.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${w(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}}});function lD(){return{localeError:UV()}}var UV,fD=h(()=>{E();UV=()=>{let t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function e(n){return t[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${a}`:`Ugyldigt input: forventede ${o}, fik ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${S(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=i[n.origin]??n.origin;return s?`For stor: forventede ${a??"value"} ${s.verb} ${o} ${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor: forventede ${a??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=i[n.origin]??n.origin;return s?`For lille: forventede ${a} ${s.verb} ${o} ${n.minimum.toString()} ${s.unit}`:`For lille: forventede ${a} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}}});function dD(){return{localeError:PV()}}var PV,pD=h(()=>{E();PV=()=>{let t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function e(n){return t[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",currency_code:"W\xE4hrungscode",iban:"IBAN",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${a}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${a}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${S(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${s.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${s.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}}});function mD(){return{localeError:FV()}}var FV,hD=h(()=>{E();FV=()=>{let t={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function e(n){return t[n]??null}let r={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",credit_card:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 \u03C0\u03B9\u03C3\u03C4\u03C9\u03C4\u03B9\u03BA\u03AE\u03C2 \u03BA\u03AC\u03C1\u03C4\u03B1\u03C2",currency_code:"\u03BA\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03BD\u03BF\u03BC\u03AF\u03C3\u03BC\u03B1\u03C4\u03BF\u03C2",iban:"IBAN",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return typeof n.expected=="string"&&/^[A-Z]/.test(n.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${n.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${a}`}case"invalid_value":return n.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${S(n.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.maximum.toString()} ${s.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${n.minimum.toString()} ${s.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}}});function ih(){return{localeError:MV()}}var MV,bx=h(()=>{E();MV=()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function e(o){return t[o]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};function n(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):i[o]??o}return o=>{switch(o.code){case"invalid_type":{let s=n(o.expected),a=T(o.input),c=n(a,o.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return o.values.length===1?`Invalid input: expected ${S(o.values[0])}`:`Invalid option: expected one of ${w(o.values,"|")}`;case"too_big":{let s=o.exact?"exactly ":o.inclusive?"<=":"<",a=e(o.origin);return a?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{let s=o.exact?"exactly ":o.inclusive?">=":">",a=e(o.origin);return a?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${a.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{let s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${w(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(a=>`'${a}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}}});function gD(){return{localeError:CV()}}var CV,yD=h(()=>{E();CV=()=>{let t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function e(n){return t[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",currency_code:"valuta kodo",iban:"IBAN",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${a}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${a}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${S(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${s.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${s.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}}});function vD(){return{localeError:RV()}}var RV,bD=h(()=>{E();RV=()=>{let t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function e(n){return t[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",mac:"direcci\xF3n MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",credit_card:"n\xFAmero de tarjeta de cr\xE9dito",currency_code:"c\xF3digo de moneda",iban:"IBAN",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${a}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${a}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${S(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado grande: se esperaba que ${a??"valor"} tuviera ${o}${n.maximum.toString()} ${s.unit??"elementos"}`:`Demasiado grande: se esperaba que ${a??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Demasiado peque\xF1o: se esperaba que ${a} tuviera ${o}${n.minimum.toString()} ${s.unit}`:`Demasiado peque\xF1o: se esperaba que ${a} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}}});function wD(){return{localeError:jV()}}var jV,_D=h(()=>{E();jV=()=>{let t={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},map:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",mac:"MAC \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",credit_card:"\u0634\u0645\u0627\u0631\u0647 \u06A9\u0627\u0631\u062A \u0627\u0639\u062A\u0628\u0627\u0631\u06CC",currency_code:"\u06A9\u062F \u0627\u0631\u0632",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${a} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${S(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${w(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${w(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}}});function xD(){return{localeError:VV()}}var VV,ID=h(()=>{E();VV=()=>{let t={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function e(n){return t[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",currency_code:"valuuttakoodi",iban:"IBAN",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${a}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${a}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${S(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Liian suuri: ${s.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${s.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Liian pieni: ${s.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${s.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${w(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}}});function $D(){return{localeError:ZV()}}var ZV,SD=h(()=>{E();ZV=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"expression r\xE9guli\xE8re",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne de caract\xE8res encod\xE9e en base64",base64url:"cha\xEEne de caract\xE8res encod\xE9e en base64url",json_string:"cha\xEEne de caract\xE8res JSON",e164:"num\xE9ro au format E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne de caract\xE8res",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instance de ${n.expected} attendu, ${a} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${a} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${S(n.values[0])} attendu`:`Option invalide : une valeur parmi ${w(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Trop grand : ${i[n.origin]??"valeur"} doit ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Trop petit : ${i[n.origin]??"valeur"} doit ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : ${i[n.origin]??"valeur"} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne de caract\xE8res invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne de caract\xE8res invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne de caract\xE8res invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne de caract\xE8res invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${w(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}}});function TD(){return{localeError:GV()}}var GV,kD=h(()=>{E();GV=()=>{let t={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"},map:{unit:"\xE9l\xE9ments",verb:"avoir"}};function e(n){return t[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",credit_card:"num\xE9ro de carte de cr\xE9dit",currency_code:"code de devise",iban:"IBAN",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${a}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${a}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${S(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",s=e(n.origin);return s?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${s.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",s=e(n.origin);return s?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${s.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${w(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}}});function AD(){return{localeError:WV()}}var WV,OD=h(()=>{E();WV=()=>{let t={string:{unit:"\u0A85\u0A95\u0ACD\u0AB7\u0AB0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},file:{unit:"\u0AAC\u0ABE\u0AAF\u0A9F",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},array:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},set:{unit:"\u0A86\u0A87\u0A9F\u0AAE",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"},map:{unit:"\u0A8F\u0AA8\u0ACD\u0A9F\u0ACD\u0AB0\u0AC0",verb:"\u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F"}};function e(n){return t[n]??null}let r={regex:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F",email:"\u0A88\u0AAE\u0AC7\u0A87\u0AB2 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",url:"URL",emoji:"\u0A87\u0AAE\u0ACB\u0A9C\u0AC0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96 \u0A85\u0AA8\u0AC7 \u0AB8\u0AAE\u0AAF",date:"ISO \u0AA4\u0ABE\u0AB0\u0AC0\u0A96",time:"ISO \u0AB8\u0AAE\u0AAF",duration:"ISO \u0A85\u0AB5\u0AA7\u0ABF",ipv4:"IPv4 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",ipv6:"IPv6 \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",mac:"MAC \u0A8F\u0AA1\u0ACD\u0AB0\u0AC7\u0AB8",cidrv4:"IPv4 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",cidrv6:"IPv6 \u0AB6\u0ACD\u0AB0\u0AC7\u0AA3\u0AC0",base64:"base64-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",base64url:"base64url-\u0A8F\u0AA8\u0ACD\u0A95\u0ACB\u0AA1\u0AC7\u0AA1 \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",json_string:"JSON \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97",e164:"E.164 \u0AA8\u0A82\u0AAC\u0AB0",credit_card:"\u0A95\u0ACD\u0AB0\u0AC7\u0AA1\u0ABF\u0A9F \u0A95\u0ABE\u0AB0\u0ACD\u0AA1 \u0AA8\u0A82\u0AAC\u0AB0",currency_code:"\u0A9A\u0AB2\u0AA3 \u0A95\u0ACB\u0AA1",iban:"IBAN",jwt:"JWT",template_literal:"\u0A87\u0AA8\u0AAA\u0AC1\u0A9F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${o}, \u0AAA\u0ACD\u0AB0\u0ABE\u0AAA\u0ACD\u0AA4 ${a}`}case"invalid_value":return n.values.length===1?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F: \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${S(n.values[0])}`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB5\u0ABF\u0A95\u0AB2\u0ACD\u0AAA: ${w(n.values," | ")} \u0AAE\u0ABE\u0AA7\u0ACD\u0AAF\u0AAE\u0AA5\u0AC0 \u0A8F\u0A95 \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${n.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${n.maximum.toString()} ${s.unit??"\u0A8F\u0AB2\u0ABF\u0AAE\u0AC7\u0AA8\u0ACD\u0A9F"} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AAE\u0ACB\u0A9F\u0AC1\u0A82: ${n.origin??"\u0AAE\u0AC2\u0AB2\u0ACD\u0AAF"} ${o}${n.maximum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u0AB9\u0ACB\u0AB5\u0ABE \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A96\u0AC2\u0AAC \u0AA8\u0ABE\u0AA8\u0AC1\u0A82: ${n.origin} ${o}${n.minimum.toString()} \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.prefix}" \u0AA5\u0AC0 \u0AB6\u0AB0\u0AC2 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="ends_with"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.suffix}" \u0AAA\u0AB0 \u0AB8\u0AAE\u0ABE\u0AAA\u0ACD\u0AA4 \u0AA5\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="includes"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: "${o.includes}" \u0AB6\u0ABE\u0AAE\u0AC7\u0AB2 \u0AB9\u0ACB\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:o.format==="regex"?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AB8\u0ACD\u0A9F\u0ACD\u0AB0\u0ABF\u0A82\u0A97: \u0AAA\u0AC7\u0A9F\u0AB0\u0ACD\u0AA8 ${o.pattern} \u0AB8\u0ABE\u0AA5\u0AC7 \u0AAE\u0AC7\u0AB3 \u0A96\u0ABE\u0AB5\u0AC1\u0A82 \u0A9C\u0ACB\u0A88\u0A8F`:`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA8\u0A82\u0AAC\u0AB0: ${n.divisor} \u0AA8\u0ACB \u0A97\u0AC1\u0AA3\u0ABE\u0A82\u0A95 \u0AB9\u0ACB\u0AB5\u0ACB \u0A9C\u0ACB\u0A88\u0A8F`;case"unrecognized_keys":return`\u0A93\u0AB3\u0A96\u0AC0 \u0AB6\u0A95\u0ABE\u0AA4\u0ABE \u0AA8\u0AB9\u0AC0\u0A82 \u0AA4\u0AC7 \u0A95\u0AC0${n.keys.length>1?"\u0A93":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A95\u0AC0`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AA1\u0ABF\u0AB8\u0ACD\u0A95\u0ACD\u0AB0\u0ABF\u0AAE\u0ABF\u0AA8\u0AC7\u0A9F\u0AB0 \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF. \u0A85\u0AAA\u0AC7\u0A95\u0ACD\u0AB7\u0ABF\u0AA4 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F";case"invalid_element":return`${n.origin} \u0AAE\u0ABE\u0A82 \u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0AAE\u0AC2\u0AB2\u0ACD\u0AAF`;default:return"\u0A85\u0AAE\u0ABE\u0AA8\u0ACD\u0AAF \u0A87\u0AA8\u0AAA\u0AC1\u0A9F"}}}});function BD(){return{localeError:JV()}}var JV,DD=h(()=>{E();JV=()=>{let t={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},e={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?t[u]:void 0,i=u=>{let l=r(u);return l?l.label:u??t.unknown.label},n=u=>`\u05D4${i(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",s=u=>u?e[u]??null:null,a={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},mac:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA MAC",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},credit_card:{label:"\u05DE\u05E1\u05E4\u05E8 \u05DB\u05E8\u05D8\u05D9\u05E1 \u05D0\u05E9\u05E8\u05D0\u05D9",gender:"m"},currency_code:{label:"\u05E7\u05D5\u05D3 \u05DE\u05D8\u05D1\u05E2",gender:"m"},iban:{label:"IBAN",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"\u05E7\u05DC\u05D8",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let l=u.expected,f=c[l??""]??i(l),d=T(u.input),p=c[d]??t[d]?.label??d;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${S(u.values[0])}`;let l=u.values.map(p=>S(p));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l[0]} \u05D0\u05D5 ${l[1]}`;let f=l[l.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${l.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let l=s(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",g=u.inclusive?`${u.maximum} ${l?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${l?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let d=u.inclusive?"<=":"<",p=o(u.origin??"value");return l?.unit?`${l.longLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.maximum.toString()} ${l.unit}`:`${l?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.maximum.toString()}`}case"too_small":{let l=s(u.origin),f=n(u.origin??"value");if(u.origin==="string")return`${l?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${l?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let v=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`}let g=u.inclusive?`${u.minimum} ${l?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${l?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${g}`.trim()}let d=u.inclusive?">=":">",p=o(u.origin??"value");return l?.unit?`${l.shortLabel} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.minimum.toString()} ${l.unit}`:`${l?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${p} ${d}${u.minimum.toString()}`}case"invalid_format":{let l=u;if(l.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${l.prefix}"`;if(l.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${l.suffix}"`;if(l.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${l.includes}"`;if(l.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${l.pattern}`;let f=a[l.format],d=f?.label??l.format,m=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${d} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${w(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function ND(){return{localeError:KV()}}var KV,zD=h(()=>{E();KV=()=>{let t={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},file:{unit:"\u092C\u093E\u0907\u091F\u094D\u0938",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F\u092F\u093E\u0901",verb:"\u0930\u0916\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F"}};function e(n){return t[n]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0908\u092E\u0947\u0932 \u092A\u0924\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0924\u093F\u0925\u093F \u0914\u0930 \u0938\u092E\u092F",date:"ISO \u0924\u093F\u0925\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u092A\u0924\u093E",ipv6:"IPv6 \u092A\u0924\u093E",mac:"MAC \u092A\u0924\u093E",cidrv4:"IPv4 \u0936\u094D\u0930\u0947\u0923\u0940",cidrv6:"IPv6 \u0936\u094D\u0930\u0947\u0923\u0940",base64:"Base64-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",base64url:"Base64URL-\u090F\u0928\u094D\u0915\u094B\u0921\u0947\u0921 \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917",e164:"E.164 \u0938\u0902\u0916\u094D\u092F\u093E",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0938\u0902\u0916\u094D\u092F\u093E",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${a}`}case"invalid_value":return n.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${S(n.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u094B\u0902 \u092E\u0947\u0902 \u0938\u0947 \u090F\u0915 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin??"\u092E\u093E\u0928"} \u092E\u0947\u0902 ${o}${n.maximum} ${s.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u092C\u0921\u093C\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin??"\u092E\u093E\u0928"} ${o}${n.maximum} \u0939\u094B`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin} \u092E\u0947\u0902 ${o}${n.minimum} ${s.unit} \u0939\u094B\u0902`:`\u092C\u0939\u0941\u0924 \u091B\u094B\u091F\u093E: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u0925\u093E \u0915\u093F ${n.origin} ${o}${n.minimum} \u0939\u094B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.prefix}" \u0938\u0947 \u0936\u0941\u0930\u0942 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: "${o.suffix}" \u092A\u0930 \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u0907\u0938\u092E\u0947\u0902 "${o.includes}" \u0936\u093E\u092E\u093F\u0932 \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0902\u0917: \u092A\u0948\u091F\u0930\u094D\u0928 ${o.pattern} \u0938\u0947 \u092E\u0947\u0932 \u0916\u093E\u0928\u093E \u091A\u093E\u0939\u093F\u090F`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: \u092F\u0939 ${n.divisor} \u0915\u093E \u0917\u0941\u0923\u091C \u0939\u094B\u0928\u093E \u091A\u093E\u0939\u093F\u090F`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u0902\u091C\u0940${n.keys.length>1?"\u092F\u093E\u0901":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u0902\u091C\u0940: ${n.origin} \u092E\u0947\u0902`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${n.origin} \u092E\u0947\u0902`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}}});function LD(){return{localeError:HV()}}var HV,ED=h(()=>{E();HV=()=>{let t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function e(n){return t[n]??null}let r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",currency_code:"kod valute",iban:"IBAN",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${a}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${a}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${S(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Preveliko: o\u010Dekivano da ${a??"vrijednost"} ima ${o}${n.maximum.toString()} ${s.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${a??"vrijednost"} bude ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=i[n.origin]??n.origin;return s?`Premalo: o\u010Dekivano da ${a} ima ${o}${n.minimum.toString()} ${s.unit}`:`Premalo: o\u010Dekivano da ${a} bude ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${w(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[n.origin]??n.origin}`;default:return"Neispravan unos"}}}});function UD(){return{localeError:qV()}}var qV,PD=h(()=>{E();qV=()=>{let t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function e(n){return t[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",mac:"MAC c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",credit_card:"hitelk\xE1rtyasz\xE1m",currency_code:"p\xE9nznemk\xF3d",iban:"IBAN",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${a}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${a}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${S(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${s.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${s.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}}});function FD(t,e,r){return Math.abs(t)===1?e:r}function Nc(t){if(!t)return"";let e=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=t[t.length-1];return t+(e.includes(r)?"\u0576":"\u0568")}function MD(){return{localeError:YV()}}var YV,CD=h(()=>{E();YV=()=>{let t={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},map:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function e(n){return t[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",mac:"MAC \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",credit_card:"\u056F\u0580\u0565\u0564\u056B\u057F \u0584\u0561\u0580\u057F\u056B \u0570\u0561\u0574\u0561\u0580",currency_code:"\u0561\u0580\u056A\u0578\u0582\u0575\u0569\u056B \u056F\u0578\u0564",iban:"IBAN",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${a}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${S(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=FD(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Nc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Nc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);if(s){let a=Number(n.minimum),c=FD(a,s.unit.one,s.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Nc(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Nc(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${w(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Nc(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Nc(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}}});function RD(){return{localeError:XV()}}var XV,jD=h(()=>{E();XV=()=>{let t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",currency_code:"kode mata uang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${a}`:`Input tidak valid: diharapkan ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${S(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}}});function VD(){return{localeError:QV()}}var QV,ZD=h(()=>{E();QV=()=>{let t={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"},map:{unit:"hluti",verb:"a\xF0 hafa"}};function e(n){return t[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",credit_card:"kreditkortan\xFAmer",currency_code:"gjaldmi\xF0ilsk\xF3\xF0i",iban:"IBAN",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${a} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${S(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${s.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${s.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${w(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}}});function GD(){return{localeError:e8()}}var e8,WD=h(()=>{E();e8=()=>{let t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function e(n){return t[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",currency_code:"codice valuta",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${a}`:`Input non valido: atteso ${o}, ricevuto ${a}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${S(n.values[0])}`:`Opzione non valida: atteso uno tra ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${s.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${s.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${w(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}}});function JD(){return{localeError:t8()}}var t8,KD=h(()=>{E();t8=()=>{let t={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},map:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function e(n){return t[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",mac:"MAC\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",credit_card:"\u30AF\u30EC\u30B8\u30C3\u30C8\u30AB\u30FC\u30C9\u756A\u53F7",currency_code:"\u901A\u8CA8\u30B3\u30FC\u30C9",iban:"IBAN",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${a}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${S(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${w(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",s=e(n.origin);return s?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",s=e(n.origin);return s?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${w(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}}});function HD(){return{localeError:r8()}}var r8,qD=h(()=>{E();r8=()=>{let t={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},map:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function e(n){return t[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",mac:"MAC \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",credit_card:"\u10E1\u10D0\u10D9\u10E0\u10D4\u10D3\u10D8\u10E2\u10DD \u10D1\u10D0\u10E0\u10D0\u10D7\u10D8\u10E1 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",currency_code:"\u10D5\u10D0\u10DA\u10E3\u10E2\u10D8\u10E1 \u10D9\u10DD\u10D3\u10D8",iban:"IBAN",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${a}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${S(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${w(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}}});function oh(){return{localeError:n8()}}var n8,wx=h(()=>{E();n8=()=>{let t={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},map:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function e(n){return t[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",mac:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 MAC",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",credit_card:"\u179B\u17C1\u1781\u1794\u17D0\u178E\u17D2\u178E\u17A5\u178E\u1791\u17B6\u1793",currency_code:"\u1780\u17BC\u178A\u179A\u17BC\u1794\u17B7\u1799\u1794\u17D0\u178E\u17D2\u178E",iban:"IBAN",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${a}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${S(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${s.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${w(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}}});function YD(){return oh()}var XD=h(()=>{wx()});function QD(){return{localeError:i8()}}var i8,eN=h(()=>{E();i8=()=>{let t={string:{unit:"\u0C85\u0C95\u0CCD\u0CB7\u0CB0\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},file:{unit:"\u0CAC\u0CC8\u0C9F\u0CCD\u200C\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},array:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},set:{unit:"\u0CB5\u0CB8\u0CCD\u0CA4\u0CC1\u0C97\u0CB3\u0CC1",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"},map:{unit:"entries",verb:"\u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1"}};function e(n){return t[n]??null}let r={regex:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD",email:"email \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95\u0CA6 \u0CB8\u0CAE\u0CAF",date:"ISO \u0CA6\u0CBF\u0CA8\u0CBE\u0C82\u0C95",time:"ISO \u0CB8\u0CAE\u0CAF",duration:"ISO \u0C85\u0CB5\u0CA7\u0CBF",ipv4:"IPv4 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",ipv6:"IPv6 \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",mac:"MAC \u0CB5\u0CBF\u0CB3\u0CBE\u0CB8",cidrv4:"IPv4 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",cidrv6:"IPv6 \u0CB5\u0CCD\u0CAF\u0CBE\u0CAA\u0CCD\u0CA4\u0CBF\u0CAF",base64:"base64-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",base64url:"base64url-encoded\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",json_string:"JSON\u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD",e164:"E.164 \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",credit_card:"\u0C95\u0CCD\u0CB0\u0CC6\u0CA1\u0CBF\u0C9F\u0CCD \u0C95\u0CBE\u0CB0\u0CCD\u0CA1\u0CCD \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6",currency_code:"\u0C95\u0CB0\u0CC6\u0CA8\u0CCD\u0CB8\u0CBF \u0C95\u0CCB\u0CA1\u0CCD",iban:"IBAN",jwt:"JWT",template_literal:"\u0C87\u0CA8\u0CCD\u0CAA\u0CC1\u0C9F\u0CCD"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${o}, \u0CB8\u0CCD\u0CB5\u0CC0\u0C95\u0CB0\u0CBF\u0CB8\u0CBF\u0CA6\u0CA8\u0CC1 ${a}`}case"invalid_value":return n.values.length===1?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${S(n.values[0])}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C86\u0CAF\u0CCD\u0C95\u0CC6: \u0C87\u0CB5\u0CC1\u0C97\u0CB3\u0CB2\u0CCD\u0CB2\u0CBF \u0C92\u0C82\u0CA6\u0CA8\u0CCD\u0CA8\u0CC1 \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin??"value"} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${n.maximum.toString()} ${s.unit??"\u0C85\u0C82\u0CB6\u0C97\u0CB3\u0CC1"}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0CA6\u0CCA\u0CA1\u0CCD\u0CA1\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin??"value"} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin} \u0CB9\u0CCA\u0C82\u0CA6\u0CB2\u0CC1 ${o}${n.minimum.toString()} ${s.unit}`:`\u0CA4\u0CC1\u0C82\u0CAC\u0CBE \u0C9A\u0CBF\u0C95\u0CCD\u0C95\u0CA6\u0CC1: \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.origin} \u0C8E\u0C82\u0CA6\u0CC1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0CAA\u0CCD\u0CB0\u0CBE\u0CB0\u0C82\u0CAD\u0CBF\u0CB8\u0CAC\u0CC7\u0C95\u0CC1 "${o.prefix}"`:o.format==="ends_with"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C87\u0CA6\u0CB0\u0CCA\u0C82\u0CA6\u0CBF\u0C97\u0CC6 \u0C95\u0CCA\u0CA8\u0CC6\u0C97\u0CCA\u0CB3\u0CCD\u0CB3\u0CAC\u0CC7\u0C95\u0CC1 "${o.suffix}"`:o.format==="includes"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0C92\u0CB3\u0C97\u0CCA\u0C82\u0CA1\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 "${o.includes}"`:o.format==="regex"?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0CB8\u0CCD\u0C9F\u0CCD\u0CB0\u0CBF\u0C82\u0C97\u0CCD: \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0C97\u0CC6 \u0CB9\u0CCA\u0C82\u0CA6\u0CBF\u0C95\u0CC6\u0CAF\u0CBE\u0C97\u0CAC\u0CC7\u0C95\u0CC1 ${o.pattern}`:`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6: \u0CAC\u0CB9\u0CC1\u0CB8\u0C82\u0C96\u0CCD\u0CAF\u0CC6\u0CAF\u0CBE\u0C97\u0CBF\u0CB0\u0CAC\u0CC7\u0C95\u0CC1 ${n.divisor}`;case"unrecognized_keys":return`\u0C97\u0CC1\u0CB0\u0CC1\u0CA4\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CA6 \u0C95\u0CC0 ${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF\u0CB5\u0CBE\u0CA6 \u0C95\u0CC0 \u0C87\u0CA8\u0CCD ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CA4\u0CBE\u0CB0\u0CA4\u0CAE\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF. \u0CA8\u0CBF\u0CB0\u0CC0\u0C95\u0CCD\u0CB7\u0CBF\u0CB8\u0CB2\u0CBE\u0C97\u0CBF\u0CA6\u0CC6 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD";case"invalid_element":return`\u0CB0\u0CB2\u0CCD\u0CB2\u0CBF \u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0CAE\u0CCC\u0CB2\u0CCD\u0CAF ${n.origin}`;default:return"\u0C85\u0CAE\u0CBE\u0CA8\u0CCD\u0CAF \u0C87\u0CA8\u0CCD\u200C\u0CAA\u0CC1\u0C9F\u0CCD"}}}});function tN(){return{localeError:o8()}}var o8,rN=h(()=>{E();o8=()=>{let t={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"},map:{unit:"\uAC1C",verb:"to have"}};function e(n){return t[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",mac:"MAC \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",credit_card:"\uC2E0\uC6A9\uCE74\uB4DC \uBC88\uD638",currency_code:"\uD1B5\uD654 \uCF54\uB4DC",iban:"IBAN",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${a}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${S(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${w(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",s=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=e(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${s}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",s=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",a=e(n.origin),c=a?.unit??"\uC694\uC18C";return a?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${o}${s}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${s}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${w(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}}});function nN(t){let e=Math.abs(t),r=e%10,i=e%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}function iN(){return{localeError:s8()}}var pf,s8,oN=h(()=>{E();pf=t=>t.charAt(0).toUpperCase()+t.slice(1);s8=()=>{let t={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function e(n,o,s,a){let c=t[n]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[a][s?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",credit_card:"kredito kortel\u0117s numeris",currency_code:"valiutos kodas",iban:"IBAN",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${a}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${a}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${S(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${w(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[n.origin]??n.origin,s=e(n.origin,nN(Number(n.maximum)),n.inclusive??!1,"smaller");if(s?.verb)return`${pf(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.maximum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${pf(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.maximum.toString()} ${s?.unit}`}case"too_small":{let o=i[n.origin]??n.origin,s=e(n.origin,nN(Number(n.minimum)),n.inclusive??!1,"bigger");if(s?.verb)return`${pf(o??n.origin??"reik\u0161m\u0117")} ${s.verb} ${n.minimum.toString()} ${s.unit??"element\u0173"}`;let a=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${pf(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${a} ${n.minimum.toString()} ${s?.unit}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${w(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[n.origin]??n.origin;return`${pf(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function sN(){return{localeError:a8()}}var a8,aN=h(()=>{E();a8=()=>{let t={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},map:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function e(n){return t[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",mac:"MAC \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",credit_card:"\u0431\u0440\u043E\u0458 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u0447\u043A\u0430",currency_code:"\u043A\u043E\u0434 \u043D\u0430 \u0432\u0430\u043B\u0443\u0442\u0430",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${a}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${S(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${s.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}}});function cN(){return{localeError:c8()}}var c8,uN=h(()=>{E();c8=()=>{let t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function e(n){return t[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",currency_code:"kod mata wang",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${a}`:`Input tidak sah: dijangka ${o}, diterima ${a}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${S(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Terlalu besar: dijangka ${n.origin??"nilai"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Terlalu kecil: dijangka ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${w(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}}});function lN(){return{localeError:u8()}}var u8,fN=h(()=>{E();u8=()=>{let t={string:{unit:"\u0905\u0915\u094D\u0937\u0930",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},file:{unit:"\u092C\u093E\u0907\u091F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},array:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},set:{unit:"\u0924\u0924\u094D\u0935",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"},map:{unit:"\u092A\u094D\u0930\u0935\u093F\u0937\u094D\u091F\u093F",verb:"\u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B"}};function e(n){return t[n]??null}let r={regex:"\u0907\u0928\u092A\u0941\u091F",email:"\u0907\u092E\u0947\u0932 \u0920\u0947\u0917\u093E\u0928\u093E",url:"URL",emoji:"\u0907\u092E\u094B\u091C\u0940",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u092E\u093F\u0924\u093F \u0930 \u0938\u092E\u092F",date:"ISO \u092E\u093F\u0924\u093F",time:"ISO \u0938\u092E\u092F",duration:"ISO \u0905\u0935\u0927\u093F",ipv4:"IPv4 \u0920\u0947\u0917\u093E\u0928\u093E",ipv6:"IPv6 \u0920\u0947\u0917\u093E\u0928\u093E",mac:"MAC \u0920\u0947\u0917\u093E\u0928\u093E",cidrv4:"IPv4 \u0926\u093E\u092F\u0930\u093E",cidrv6:"IPv6 \u0926\u093E\u092F\u0930\u093E",base64:"base64-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",base64url:"base64url-\u0907\u0928\u094D\u0915\u094B\u0921 \u0917\u0930\u093F\u090F\u0915\u094B \u0938\u094D\u091F\u094D\u0930\u093F\u0919",json_string:"JSON \u0938\u094D\u091F\u094D\u0930\u093F\u0919",e164:"E.164 \u0928\u092E\u094D\u092C\u0930",credit_card:"\u0915\u094D\u0930\u0947\u0921\u093F\u091F \u0915\u093E\u0930\u094D\u0921 \u0928\u092E\u094D\u092C\u0930",currency_code:"\u092E\u0941\u0926\u094D\u0930\u093E \u0915\u094B\u0921",iban:"IBAN",jwt:"JWT",template_literal:"\u0907\u0928\u092A\u0941\u091F"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${o}, \u092A\u094D\u0930\u093E\u092A\u094D\u0924 ${a}`}case"invalid_value":return n.values.length===1?`\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${S(n.values[0])}`:`\u0905\u092E\u093E\u0928\u094D\u092F \u0935\u093F\u0915\u0932\u094D\u092A: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 \u092E\u093E\u0928\u0939\u0930\u0942 \u092E\u0927\u094D\u092F\u0947 \u090F\u0915 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${n.origin??"\u092E\u093E\u0928"} \u092E\u093E ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\u0927\u0947\u0930\u0948 \u0920\u0942\u0932\u094B: ${n.origin??"\u092E\u093E\u0928"} ${o}${n.maximum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${n.origin} \u092E\u093E ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\u0927\u0947\u0930\u0948 \u0938\u093E\u0928\u094B: ${n.origin} ${o}${n.minimum.toString()} \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.prefix}" \u092C\u093E\u091F \u0938\u0941\u0930\u0941 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="ends_with"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.suffix}" \u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="includes"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: "${o.includes}" \u0938\u092E\u093E\u0935\u0947\u0936 \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`:o.format==="regex"?`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u094D\u091F\u094D\u0930\u093F\u0919: \u0922\u093E\u0901\u091A\u093E ${o.pattern} \u0938\u0901\u0917 \u092E\u0947\u0932 \u0916\u093E\u0928\u0941\u092A\u0930\u094D\u091B`:`\u0905\u092E\u093E\u0928\u094D\u092F ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0938\u0902\u0916\u094D\u092F\u093E: ${n.divisor} \u0915\u094B \u0917\u0941\u0923\u091C \u0939\u0941\u0928\u0941\u092A\u0930\u094D\u091B`;case"unrecognized_keys":return`\u0905\u092A\u0930\u093F\u091A\u093F\u0924 \u0915\u0941\u091E\u094D\u091C\u0940${n.keys.length>1?"\u0939\u0930\u0942":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u0905\u092E\u093E\u0928\u094D\u092F \u0915\u0941\u091E\u094D\u091C\u0940: ${n.origin} \u092E\u093E`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u0905\u092E\u093E\u0928\u094D\u092F \u0921\u093F\u0938\u094D\u0915\u094D\u0930\u093F\u092E\u093F\u0928\u0947\u091F\u0930 \u092E\u093E\u0928: \u0905\u092A\u0947\u0915\u094D\u0937\u093F\u0924 ${n.options.map(s=>`'${s}'`).join(" | ")}`:"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F";case"invalid_element":return`\u0905\u092E\u093E\u0928\u094D\u092F \u092E\u093E\u0928: ${n.origin} \u092E\u093E`;default:return"\u0905\u092E\u093E\u0928\u094D\u092F \u0907\u0928\u092A\u0941\u091F"}}}});function dN(){return{localeError:l8()}}var l8,pN=h(()=>{E();l8=()=>{let t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function e(n){return t[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",currency_code:"valutacode",iban:"IBAN",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${a}`:`Ongeldige invoer: verwacht ${o}, ontving ${a}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${S(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin),a=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return s?`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${s.unit??"elementen"} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin),a=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return s?`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Te ${a}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}}});function mN(){return{localeError:f8()}}var f8,hN=h(()=>{E();f8=()=>{let t={string:{unit:"teikn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"element",verb:"\xE5 innehalde"},set:{unit:"element",verb:"\xE5 innehalde"},map:{unit:"element",verb:"\xE5 innehalde"}};function e(n){return t[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tal",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventa instanceof ${n.expected}, fekk ${a}`:`Ugyldig input: forventa ${o}, fekk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventa ${S(n.values[0])}`:`Ugyldig val: forventa eitt av ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`For stor(t): forventa ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventa ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventa ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 slutte med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 innehalde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tal: m\xE5 vere eit multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjende n\xF8klar":"Ukjend n\xF8kkel"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}}});function gN(){return{localeError:d8()}}var d8,yN=h(()=>{E();d8=()=>{let t={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"},map:{unit:"elementer",verb:"\xE5 inneholde"}};function e(n){return t[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",currency_code:"valutakode",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${a}`:`Ugyldig input: forventet ${o}, fikk ${a}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${S(n.values[0])}`:`Ugyldig valg: forventet en av ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${s.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${s.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}}});function vN(){return{localeError:p8()}}var p8,bN=h(()=>{E();p8=()=>{let t={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"},map:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function e(n){return t[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",mac:"MAC ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",credit_card:"i'tib\xE2r kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${a}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${S(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${s.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${s.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}}});function wN(){return{localeError:m8()}}var m8,_N=h(()=>{E();m8=()=>{let t={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},map:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function e(n){return t[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",mac:"\u062F MAC \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",credit_card:"\u062F \u06A9\u0631\u06CC\u0689\u06CC\u067C \u06A9\u0627\u0631\u062A \u0634\u0645\u06CC\u0631\u0647",currency_code:"\u062F \u0627\u0633\u0639\u0627\u0631\u0648 \u06A9\u0648\u0689",iban:"IBAN",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${a} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${S(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${w(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${s.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${w(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}}});function xN(){return{localeError:h8()}}var h8,IN=h(()=>{E();h8=()=>{let t={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"},map:{unit:"element\xF3w",verb:"mie\u0107"}};function e(n){return t[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",currency_code:"kod waluty",iban:"IBAN",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${a}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${a}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${S(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${s.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${w(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}}});function $N(){return{localeError:g8()}}var g8,SN=h(()=>{E();g8=()=>{let t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function e(s){return t[s]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"o intervalo de endere\xE7os IPv4",cidrv6:"o intervalo de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tuplo",articles:i.masculine},record:{name:"registo",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"ficheiro",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(s,a){let c=n[s]??{name:`valor "${s}"`,articles:i.masculine};return`${c.articles[a]} ${c.name}`}return s=>{switch(s.code){case"invalid_type":{let a=o(s.expected,"indefinite"),c=T(s.input),u=o(c,"indefinite");return`Entrada inv\xE1lida: esperava ${a}, recebeu ${u}`}case"invalid_value":return s.values.length===1?`Entrada inv\xE1lida: esperava ${S(s.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${w(s.values,"|")}`;case"too_big":{let a=s.inclusive?"<=":"<",c=e(s.origin);return c?`Demasiado grande: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.maximum.toString()} ${c.unit??"elementos"}`:`Demasiado grande: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.maximum.toString()}`}case"too_small":{let a=s.inclusive?">=":">",c=e(s.origin);return c?`Demasiado pequeno: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.minimum.toString()} ${c.unit??"elementos"}`:`Demasiado pequeno: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.minimum.toString()}`}case"invalid_format":{let a=s;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar por "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar em "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${s.divisor}`;case"unrecognized_keys":{let a=s.keys.length>1?"s":"";return`Chave${a} inv\xE1lida${a}: ${w(s.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${s.options.map(c=>`'${c}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}}});function TN(){return{localeError:y8()}}var y8,kN=h(()=>{E();y8=()=>{let t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function e(s){return t[s]??null}let r={regex:"a entrada",email:"o endere\xE7o de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a dura\xE7\xE3o ISO",ipv4:"o endere\xE7o IPv4",ipv6:"o endere\xE7o IPv6",mac:"o endere\xE7o MAC",cidrv4:"a faixa de endere\xE7os IPv4",cidrv6:"a faixa de endere\xE7os IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o n\xFAmero E.164",credit_card:"o n\xFAmero de cart\xE3o de cr\xE9dito",currency_code:"o c\xF3digo de moeda",iban:"o IBAN",jwt:"o JWT",template_literal:"a entrada"},i={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},n={string:{name:"texto",articles:i.masculine},number:{name:"n\xFAmero",articles:i.masculine},int:{name:"n\xFAmero inteiro",articles:i.masculine},boolean:{name:"valor booleano",articles:i.masculine},bigint:{name:"n\xFAmero bigint",articles:i.masculine},symbol:{name:"s\xEDmbolo",articles:i.masculine},undefined:{name:'valor "undefined"',articles:i.masculine},null:{name:'valor "nulo"',articles:i.masculine},never:{name:'valor "never"',articles:i.masculine},void:{name:'valor "void"',articles:i.masculine},date:{name:"data",articles:i.feminine},array:{name:"vetor",articles:i.masculine},object:{name:"objeto",articles:i.masculine},tuple:{name:"tupla",articles:i.feminine},record:{name:"registro",articles:i.masculine},map:{name:"mapa",articles:i.masculine},set:{name:"conjunto",articles:i.masculine},file:{name:"arquivo",articles:i.masculine},nonoptional:{name:"valor n\xE3o opcional",articles:i.masculine},nan:{name:'valor "NaN"',articles:i.masculine},function:{name:"fun\xE7\xE3o",articles:i.feminine}};function o(s,a){let c=n[s]??{name:`valor "${s}"`,articles:i.masculine};return`${c.articles[a]} ${c.name}`}return s=>{switch(s.code){case"invalid_type":{let a=o(s.expected,"indefinite"),c=T(s.input),u=o(c,"indefinite");return`Entrada inv\xE1lida: esperava ${a}, recebeu ${u}`}case"invalid_value":return s.values.length===1?`Entrada inv\xE1lida: esperava ${S(s.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperava uma das seguintes op\xE7\xF5es: ${w(s.values,"|")}`;case"too_big":{let a=s.inclusive?"<=":"<",c=e(s.origin);return c?`Grande demais: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.maximum.toString()} ${c.unit??"elementos"}`:`Grande demais: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.maximum.toString()}`}case"too_small":{let a=s.inclusive?">=":">",c=e(s.origin);return c?`Pequeno demais: esperava que ${o(s.origin,"definite")} tivesse ${a} ${s.minimum.toString()} ${c.unit??"elementos"}`:`Pequeno demais: esperava que ${o(s.origin,"definite")} fosse ${a} ${s.minimum.toString()}`}case"invalid_format":{let a=s;return a.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${a.prefix}"`:a.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inv\xE1lido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${a.pattern}`:`Formato d${r[a.format]??s.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${s.divisor}`;case"unrecognized_keys":{let a=s.keys.length>1?"s":"";return`Chave${a} inv\xE1lida${a}: ${w(s.keys,", ")}`}case"invalid_key":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;case"invalid_union":return s.options&&Array.isArray(s.options)&&s.options.length>0?`Valor de discrimina\xE7\xE3o inv\xE1lido. Esperava ${s.options.map(c=>`'${c}'`).join(" | ")}`:"Entrada inv\xE1lida";case"invalid_element":return`Entrada inv\xE1lida n${o(s.origin,"definite")}`;default:return"Entrada inv\xE1lida"}}}});function AN(){return{localeError:v8()}}var v8,ON=h(()=>{E();v8=()=>{let t={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function e(n){return t[n]??null}let r={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",credit_card:"num\u0103r de card de credit",currency_code:"cod valutar",iban:"IBAN",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${a}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${S(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Prea mic: a\u0219teptat ca ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${w(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}}});function BN(t,e,r,i){let n=Math.abs(t),o=n%10,s=n%100;return s>=11&&s<=19?i:o===1?e:o>=2&&o<=4?r:i}function DN(){return{localeError:b8()}}var b8,NN=h(()=>{E();b8=()=>{let t={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},map:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",mac:"MAC \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0439 \u043A\u0430\u0440\u0442\u044B",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u044B",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${S(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);if(s){let a=Number(n.maximum),c=BN(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);if(s){let a=Number(n.minimum),c=BN(a,s.unit.one,s.unit.few,s.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}}});function zN(){return{localeError:w8()}}var w8,LN=h(()=>{E();w8=()=>{let t={string:{unit:"znakov",verb:"ma\u0165"},file:{unit:"bajtov",verb:"ma\u0165"},array:{unit:"prvkov",verb:"ma\u0165"},set:{unit:"prvkov",verb:"ma\u0165"},map:{unit:"polo\u017Eiek",verb:"ma\u0165"}};function e(n){return t[n]??null}let r={regex:"regul\xE1rny v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"d\xE1tum a \u010Das vo form\xE1te ISO",date:"d\xE1tum vo form\xE1te ISO",time:"\u010Das vo form\xE1te ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64",base64url:"re\u0165azec zak\xF3dovan\xFD vo form\xE1te base64url",json_string:"re\u0165azec vo form\xE1te JSON",e164:"\u010D\xEDslo E.164",credit_card:"\u010D\xEDslo kreditnej karty",currency_code:"k\xF3d meny",iban:"IBAN",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"re\u0165azec",function:"funkcia",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 instanceof ${n.expected}, obdr\u017Ean\xE9 ${a}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${o}, obdr\u017Ean\xE9 ${a}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dak\xE1van\xE9 ${S(n.values[0])}`:`Neplatn\xFD vstup: o\u010Dak\xE1van\xE1 jedna z hodn\xF4t ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.maximum.toString()} ${s.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 ve\u013Ek\xE1: ${n.origin??"hodnota"} mus\xED by\u0165 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Hodnota je pr\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED ma\u0165 ${o}${n.minimum.toString()} ${s.unit??"prvkov"}`:`Hodnota je pr\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED by\u0165 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neplatn\xFD re\u0165azec: mus\xED za\u010D\xEDna\u0165 na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD re\u0165azec: mus\xED kon\u010Di\u0165 na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD re\u0165azec: mus\xED obsahova\u0165 "${o.includes}"`:o.format==="regex"?`Neplatn\xFD re\u0165azec: mus\xED zodpoveda\u0165 vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED by\u0165 n\xE1sobkom ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1me kl\xFA\u010De: ${w(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xFA\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}}});function EN(){return{localeError:_8()}}var _8,UN=h(()=>{E();_8=()=>{let t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function e(n){return t[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",credit_card:"\u0161tevilka kreditne kartice",currency_code:"koda valute",iban:"IBAN",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${a}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${a}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${S(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${s.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${s.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${w(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}}});function PN(){return{localeError:x8()}}var x8,FN=h(()=>{E();x8=()=>{let t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"},map:{unit:"objekt",verb:"att inneh\xE5lla"}};function e(n){return t[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",currency_code:"valutakod",iban:"IBAN",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${a}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${a}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${S(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${s.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${s.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${w(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}}});function MN(){return{localeError:I8()}}var I8,CN=h(()=>{E();I8=()=>{let t={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},map:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function e(n){return t[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",mac:"MAC \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",credit_card:"\u0B95\u0B9F\u0BA9\u0BCD \u0B85\u0B9F\u0BCD\u0B9F\u0BC8 \u0B8E\u0BA3\u0BCD",currency_code:"\u0BA8\u0BBE\u0BA3\u0BAF\u0B95\u0BCD \u0B95\u0BC1\u0BB1\u0BBF\u0BAF\u0BC0\u0B9F\u0BC1",iban:"IBAN",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${S(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${w(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} ${s.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} ${s.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}}});function RN(){return{localeError:$8()}}var $8,jN=h(()=>{E();$8=()=>{let t={string:{unit:"\u0430\u043B\u043E\u043C\u0430\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},file:{unit:"\u0431\u0430\u0439\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},array:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},set:{unit:"\u0443\u043D\u0441\u0443\u0440",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"},map:{unit:"\u0441\u0430\u0431\u0442",verb:"\u0434\u043E\u0448\u0442\u0430 \u0431\u043E\u0448\u0430\u0434"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0443\u0440\u0443\u0434",email:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 email",url:"URL",emoji:"\u044D\u043C\u043E\u04B7\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0441\u0430\u043D\u0430\u0432\u0443 \u0432\u0430\u049B\u0442\u0438 ISO",date:"\u0441\u0430\u043D\u0430\u0438 ISO",time:"\u0432\u0430\u049B\u0442\u0438 ISO",duration:"\u0434\u0430\u0432\u043E\u043C\u043D\u043E\u043A\u0438\u0438 ISO",ipv4:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv4",ipv6:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 IPv6",mac:"\u0441\u0443\u0440\u043E\u0493\u0430\u0438 MAC",cidrv4:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv4",cidrv6:"\u043C\u0430\u04B3\u0434\u0443\u0434\u0430\u0438 IPv6",base64:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64",base64url:"\u0441\u0430\u0442\u0440\u0438 \u0434\u0430\u0440 \u0444\u043E\u0440\u043C\u0430\u0442\u0438 base64url",json_string:"\u0441\u0430\u0442\u0440\u0438 JSON",e164:"\u0440\u0430\u049B\u0430\u043C\u0438 E.164",credit_card:"\u0440\u0430\u049B\u0430\u043C\u0438 \u043A\u043E\u0440\u0442\u0438 \u043A\u0440\u0435\u0434\u0438\u0442\u04E3",currency_code:"\u0440\u0430\u043C\u0437\u0438 \u0430\u0441\u044A\u043E\u0440",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0443\u0440\u0443\u0434"},i={nan:"NaN",number:"\u0440\u0430\u049B\u0430\u043C",string:"\u0441\u0430\u0442\u0440",array:"\u043C\u0430\u0441\u0441\u0438\u0432",object:"\u043E\u0431\u044A\u0435\u043A\u0442",date:"\u0441\u0430\u043D\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${o} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442, ${a} \u0433\u0438\u0440\u0438\u0444\u0442\u0430 \u0448\u0443\u0434`}case"invalid_value":return n.values.length===1?`\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: ${S(n.values[0])} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:`\u0418\u043D\u0442\u0438\u0445\u043E\u0431\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u044F\u043A\u0435 \u0430\u0437 ${w(n.values,"|")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${n.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`\u0425\u0435\u043B\u0435 \u043A\u0430\u043B\u043E\u043D: ${n.origin??"\u049B\u0438\u043C\u0430\u0442"} \u0431\u043E\u044F\u0434 ${o}${n.maximum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${n.origin} \u0431\u043E\u044F\u0434 ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`\u0425\u0435\u043B\u0435 \u0445\u0443\u0440\u0434: ${n.origin} \u0431\u043E\u044F\u0434 ${o}${n.minimum.toString()} \u0431\u043E\u0448\u0430\u0434`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.prefix}" \u043E\u0493\u043E\u0437 \u0448\u0430\u0432\u0430\u0434`:o.format==="ends_with"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u043E "${o.suffix}" \u0430\u043D\u04B7\u043E\u043C \u0451\u0431\u0430\u0434`:o.format==="includes"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 "${o.includes}"-\u0440\u043E \u0434\u0430\u0440 \u0431\u0430\u0440 \u0433\u0438\u0440\u0430\u0434`:o.format==="regex"?`\u0421\u0430\u0442\u0440\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 \u043D\u0430\u043C\u0443\u043D\u0430\u0438 ${o.pattern} \u043C\u0443\u0432\u043E\u0444\u0438\u049B\u0430\u0442 \u043A\u0443\u043D\u0430\u0434`:`${r[o.format]??n.format}-\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442`}case"not_multiple_of":return`\u0420\u0430\u049B\u0430\u043C\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442: \u0431\u043E\u044F\u0434 \u0431\u0430 ${n.divisor} \u0431\u0435 \u0431\u0430\u049B\u0438\u044F \u0442\u0430\u049B\u0441\u0438\u043C \u0448\u0430\u0432\u0430\u0434`;case"unrecognized_keys":return`\u041A\u0430\u043B\u0438\u0434${n.keys.length>1?"\u04B3\u043E\u0438":"\u0438"} \u043D\u043E\u043C\u0430\u044A\u043B\u0443\u043C: ${w(n.keys,", ")}`;case"invalid_key":return`\u041A\u0430\u043B\u0438\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442\u0438 \u0434\u0438\u0441\u043A\u0440\u0438\u043C\u0438\u043D\u0430\u0442\u043E\u0440: ${n.options.map(s=>`'${s}'`).join(" | ")} \u0438\u043D\u0442\u0438\u0437\u043E\u0440 \u043C\u0435\u0440\u0430\u0444\u0442`:"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442";case"invalid_element":return`\u049A\u0438\u043C\u0430\u0442\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442 \u0434\u0430\u0440 ${n.origin}`;default:return"\u0412\u0443\u0440\u0443\u0434\u0438 \u043D\u043E\u0434\u0443\u0440\u0443\u0441\u0442"}}}});function VN(){return{localeError:S8()}}var S8,ZN=h(()=>{E();S8=()=>{let t={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},map:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function e(n){return t[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",mac:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 MAC",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",credit_card:"\u0E2B\u0E21\u0E32\u0E22\u0E40\u0E25\u0E02\u0E1A\u0E31\u0E15\u0E23\u0E40\u0E04\u0E23\u0E14\u0E34\u0E15",currency_code:"\u0E23\u0E2B\u0E31\u0E2A\u0E2A\u0E01\u0E38\u0E25\u0E40\u0E07\u0E34\u0E19",iban:"IBAN",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${a}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${S(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${s.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",s=e(n.origin);return s?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${s.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${w(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}}});function GN(){return{localeError:T8()}}var T8,WN=h(()=>{E();T8=()=>{let t={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"ba\xFDt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function e(n){return t[n]??null}let r={regex:"giri\u015F",email:"e-po\xE7ta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen \u015Fifrlenen setir",base64url:"base64url bilen \u015Fifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartyny\u0148 nomeri",currency_code:"wal\xFDuta kody",iban:"IBAN",jwt:"JWT",template_literal:"\u015Fablon"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return`N\xE4dogry baha: gara\u015Fylan ${o} \xFDerine ${a} alyndy`}case"invalid_value":return n.values.length===1?`N\xE4dogry baha: ${S(n.values[0])} bolmaly`:`N\xE4dogry sa\xFDlaw: a\u015Fakdakylardan biri bolmaly: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()} ${s.unit??"element"}`:`Has uly: gara\u015Fyl\xFDan ${n.origin??"baha"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Has ki\xE7i: gara\u015Fyl\xFDan ${n.origin} ${o} ${n.minimum.toString()} ${s.unit}`:`Has ki\xE7i: gara\u015Fyl\xFDan ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`N\xE4dogry setir: "${o.prefix}" bilen ba\u015Flamaly`:o.format==="ends_with"?`N\xE4dogry setir: "${o.suffix}" bilen gutarmaly`:o.format==="includes"?`N\xE4dogry setir: "${o.includes}" saklamaly`:o.format==="regex"?`N\xE4dogry setir: ${o.pattern} nusga la\xFDyk bolmaly`:`N\xE4dogry ${r[o.format]??n.format}`}case"not_multiple_of":return`N\xE4dogry san: ${n.divisor} bilen galyndysyz b\xF6l\xFCnmeli`;case"unrecognized_keys":return`Tanalma\xFDan a\xE7ar${n.keys.length>1?"lar":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde n\xE4dogry a\xE7ar`;case"invalid_union":return"N\xE4dogry baha";case"invalid_element":return`${n.origin} i\xE7inde n\xE4dogry baha`;default:return"N\xE4dogry baha"}}}});function JN(){return{localeError:k8()}}var k8,KN=h(()=>{E();k8=()=>{let t={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},map:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function e(n){return t[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",credit_card:"kredi kart\u0131 numaras\u0131",currency_code:"para birimi kodu",iban:"IBAN",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${a}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${a}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${S(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${s.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}}});function sh(){return{localeError:A8()}}var A8,_x=h(()=>{E();A8=()=>{let t={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},map:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function e(n){return t[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",mac:"\u0430\u0434\u0440\u0435\u0441\u0430 MAC",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",credit_card:"\u043D\u043E\u043C\u0435\u0440 \u043A\u0440\u0435\u0434\u0438\u0442\u043D\u043E\u0457 \u043A\u0430\u0440\u0442\u043A\u0438",currency_code:"\u043A\u043E\u0434 \u0432\u0430\u043B\u044E\u0442\u0438",iban:"IBAN",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${a}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${S(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${w(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}}});function HN(){return sh()}var qN=h(()=>{_x()});function YN(){return{localeError:O8()}}var O8,XN=h(()=>{E();O8=()=>{let t={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},map:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function e(n){return t[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",mac:"\u0627\u06CC\u0645 \u0627\u06D2 \u0633\u06CC \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",credit_card:"\u06A9\u0631\u06CC\u0688\u0679 \u06A9\u0627\u0631\u0688 \u0646\u0645\u0628\u0631",currency_code:"\u06A9\u0631\u0646\u0633\u06CC \u06A9\u0648\u0688",iban:"IBAN",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${a} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${S(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${w(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.maximum.toString()} ${s.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${s.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${w(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}}});function QN(){return{localeError:B8()}}var B8,ez=h(()=>{E();B8=()=>{let t={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function e(n){return t[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",currency_code:"valyuta kodi",iban:"IBAN",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${a}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${a}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${S(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${s.unit} ${s.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${s.unit} ${s.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}}});function tz(){return{localeError:D8()}}var D8,rz=h(()=>{E();D8=()=>{let t={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},map:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function e(n){return t[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",mac:"\u0111\u1ECBa ch\u1EC9 MAC",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",credit_card:"s\u1ED1 th\u1EBB t\xEDn d\u1EE5ng",currency_code:"m\xE3 ti\u1EC1n t\u1EC7",iban:"IBAN",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${a}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${S(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s.verb} ${o}${n.maximum.toString()} ${s.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s.verb} ${o}${n.minimum.toString()} ${s.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${w(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}}});function nz(){return{localeError:N8()}}var N8,iz=h(()=>{E();N8=()=>{let t={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"},map:{unit:"\u9879",verb:"\u5305\u542B"}};function e(n){return t[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",mac:"MAC\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",credit_card:"\u4FE1\u7528\u5361\u53F7",currency_code:"\u8D27\u5E01\u4EE3\u7801",iban:"IBAN",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${a}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${S(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${s.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${s.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${w(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}}});function oz(){return{localeError:z8()}}var z8,sz=h(()=>{E();z8=()=>{let t={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},map:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function e(n){return t[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",mac:"MAC \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",credit_card:"\u4FE1\u7528\u5361\u865F",currency_code:"\u8CA8\u5E63\u4EE3\u78BC",iban:"IBAN",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${a}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${a}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${S(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${s.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${s.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${w(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}}});function az(){return{localeError:L8()}}var L8,cz=h(()=>{E();L8=()=>{let t={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"},map:{unit:"nkan",verb:"n\xED"}};function e(n){return t[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",mac:"\xE0d\xEDr\u1EB9\u0301s\xEC MAC",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",credit_card:"n\u1ECDmba kaadi gbese",currency_code:"koodu ow\xF3",iban:"IBAN",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=i[n.expected]??n.expected,s=T(n.input),a=i[s]??s;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${a}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${a}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${S(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${w(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",s=e(n.origin);return s?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${s.verb} ${o}${n.maximum} ${s.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",s=e(n.origin);return s?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${s.verb} ${o}${n.minimum} ${s.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${w(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}}});var mf={};Ke(mf,{ar:()=>JB,az:()=>HB,be:()=>XB,bg:()=>eD,bn:()=>rD,ca:()=>iD,ckb:()=>sD,cs:()=>cD,da:()=>lD,de:()=>dD,el:()=>mD,en:()=>ih,eo:()=>gD,es:()=>vD,fa:()=>wD,fi:()=>xD,fr:()=>$D,frCA:()=>TD,gu:()=>AD,he:()=>BD,hi:()=>ND,hr:()=>LD,hu:()=>UD,hy:()=>MD,id:()=>RD,is:()=>VD,it:()=>GD,ja:()=>JD,ka:()=>HD,kh:()=>YD,km:()=>oh,kn:()=>QD,ko:()=>tN,lt:()=>iN,mk:()=>sN,ms:()=>cN,ne:()=>lN,nl:()=>dN,nn:()=>mN,no:()=>gN,ota:()=>vN,pl:()=>xN,ps:()=>wN,pt:()=>$N,ptBR:()=>TN,ro:()=>AN,ru:()=>DN,sk:()=>zN,sl:()=>EN,sv:()=>PN,ta:()=>MN,tg:()=>RN,th:()=>VN,tk:()=>GN,tr:()=>JN,ua:()=>HN,uk:()=>sh,ur:()=>YN,uz:()=>QN,vi:()=>tz,yo:()=>az,zhCN:()=>nz,zhTW:()=>oz});var xx=h(()=>{KB();qB();QB();tD();nD();oD();aD();uD();fD();pD();hD();bx();yD();bD();_D();ID();SD();kD();OD();DD();zD();ED();PD();CD();jD();ZD();WD();KD();qD();XD();wx();eN();rN();oN();aN();uN();fN();pN();hN();yN();bN();_N();IN();SN();kN();ON();NN();LN();UN();FN();CN();jN();ZN();WN();KN();qN();_x();XN();ez();rz();iz();sz();cz()});function ch(){return new ah}var uz,Ix,$x,ah,At,hf=h(()=>{Ix=Symbol("ZodOutput"),$x=Symbol("ZodInput"),ah=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...r){let i=r[0];return this._map.set(e,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(e),this}get(e){let r=e._zod.parent;if(r){let i={...this.get(r)??{}};delete i.id;let n={...i,...this._map.get(e)};return Object.keys(n).length?n:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};(uz=globalThis).__zod_globalRegistry??(uz.__zod_globalRegistry=ch());At=globalThis.__zod_globalRegistry});function U8(t,e){try{return lh(t,{assertOnly:!0})}catch{return e}}function Ax(t,e){try{let r=lh(t),i=uh(t,r);return i._zod.bag.validator=U8(t,r),i}catch(r){if(e?.strict)throw r;return t}}function uh(t,e){if(rh(t))throw new xe("a schema whose subtree contains a reference cycle");let r=ze(t),i=t._zod.run,n=i.__originalRun??i,o=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[lz]||a&&nh(a,s.value))return n(s,a);let c=e(s.value);return c!==ir?(s.value=c,s):(a&&(a[lz]=!0),n(s,a))};return o.__originalRun=n,r._zod.bag.fallbackRun=n,r._zod.bag.validator=e,r._zod.run=o,i.__originalRun||P8(r,t,e),r}function P8(t,e,r){let i=t,n=e;if(typeof n.safeParse=="function"){let o=n.safeParse;i.safeParse=(s,a)=>{let c=r(s);return c!==ir?{success:!0,data:c}:o(s,a)}}if(typeof n.parse=="function"){let o=n.parse;i.parse=(s,a)=>{let c=r(s);return c!==ir?c:o(s,a)}}}function lh(t,e){let r=!0;try{r=rh(t)}catch{}if(r)throw new xe("a schema whose subtree contains a reference cycle");let i={constants:new Map,constantCounter:0,varCounter:0,definite:!0},n=new na(["input"]),o=qe(n,i,t,"input",!e?.assertOnly);n.write(o===null?"return true;":`return ${o};`);let s=["INVALID",...i.constants.keys()],a=[ir,...i.constants.values()],c=n.content.join(`
|
|
82
|
+
`),u=e?.debug?s.length>0?`// Constants: ${s.join(", ")}
|
|
83
|
+
${c}`:c:"",l=Function,f=`return (input) => {
|
|
84
|
+
${c}
|
|
85
|
+
}`,d;try{d=new l(...s,f)(...a)}catch(p){throw new xe(`this schema (generated code failed to evaluate: ${p.message})`)}return e?.debug&&(d.code=u),d.definite=i.definite,d}function ie(t,e){for(let[i,n]of t.constants)if(n===e)return i;let r=`c${t.constantCounter++}`;return t.constants.set(r,e),r}function aa(t,e){return t.definite=!1,ie(t,e)}function X(t){return`v${t.varCounter++}`}function F8(t,e){let r=t._zod.run({value:e,issues:[]},{});if(r&&typeof r.then=="function")return ir;let i=r;return i.issues.length===0?i.value:ir}function Vt(t,e,r,i,n=!0){let o=t.content.length,s=e.constants.size,a=e.constantCounter,c=e.varCounter;try{return qe(t,e,r,i,n)}catch(u){if(!(u instanceof xe)||!u.islandable)throw u;if(t.content.length=o,e.constants.size>s){let l=Array.from(e.constants.keys()).slice(s);for(let f of l)e.constants.delete(f)}return e.constantCounter=a,e.varCounter=c,M8(t,e,r,i)}}function M8(t,e,r,i){e.definite=!1;let n=ie(e,r),o=ie(e,F8),s=X(e);return t.write(`const ${s} = ${o}(${n}, ${i});`),t.write(`if (${s} === INVALID) return INVALID;`),s}function R8(t,e,r,i){let n=r._zod.def.checks;if(!n||n.length===0)return i;let o=i;for(let s of n){let a=s._zod.def;if(a.when&&!C8.has(a.check))throw new xe('check with a custom "when" condition');switch(a.check){case"greater_than":j8(t,e,a,o);break;case"less_than":V8(t,e,a,o);break;case"multiple_of":Z8(t,e,a,o);break;case"number_format":gz(t,a,o);break;case"min_length":{let c=oa(a.minimum,"min_length"),u=Sx(t,e,o,`${o}.length >= ${c} && ${o}.length < ${a.minimum*2}`);t.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=oa(a.maximum,"max_length"),u=Sx(t,e,o,`${o}.length > ${c}`);t.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=oa(a.length,"length_equals"),u=Sx(t,e,o,`${o}.length >= ${c} && ${o}.length <= ${a.length*2}`);t.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":t.write(`if (${o}.size < ${oa(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":t.write(`if (${o}.size > ${oa(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":t.write(`if (${o}.size !== ${oa(a.size,"size_equals")}) return INVALID;`);break;case"string_format":o=yz(t,e,a,o);break;case"custom":o=q8(t,e,s,o);break;case"bigint_format":G8(t,a,o);break;case"mime_type":W8(t,e,a,o);break;case"property":K8(t,e,a,o);break;case"properties":J8(t,e,a,o);break;case"overwrite":{let c=X(e);H8(t,e,s,o,c),o=c;break}default:throw new xe(`check type ${a.check}`)}}return o}function Sx(t,e,r,i){let n=ie(e,ea),o=X(e);return t.write(`const ${o} = typeof ${r} === "string" && ${i} ? ${n}(${r}) : ${r}.length;`),o}function oa(t,e){if(typeof t!="number"||!Number.isFinite(t))throw new xe(`${e} bound of type ${typeof t}`);return`${t}`}function hz(t,e){if(typeof e=="bigint")return`${e}n`;if(typeof e=="number"){if(Number.isNaN(e))throw new xe("comparison check with NaN bound");return`${e}`}if(e instanceof Date){if(Number.isNaN(e.getTime()))throw new xe("comparison check with Invalid Date bound");return ie(t,e)}throw new xe(`comparison check bound of type ${typeof e}`)}function j8(t,e,r,i){let n=r.inclusive?"<":"<=";t.write(`if (${i} ${n} ${hz(e,r.value)}) return INVALID;`)}function V8(t,e,r,i){let n=r.inclusive?">":">=";t.write(`if (${i} ${n} ${hz(e,r.value)}) return INVALID;`)}function Z8(t,e,r,i){if(typeof r.value=="bigint"){if(r.value===BigInt(0))throw new xe("multiple_of check with a zero divisor");t.write(`if (${i} % ${r.value}n !== 0n) return INVALID;`)}else{let n=ie(e,Fl);t.write(`if (${n}(${i}, ${oa(r.value,"multiple_of")}) !== 0) return INVALID;`)}}function gz(t,e,r){let i=e.format;switch(i){case"safeint":t.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case"int32":t.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case"uint32":t.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case"float32":t.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case"float64":t.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new xe(`number format ${i}`)}}function G8(t,e,r){let i=e.format;if(i)switch(i){case"int64":t.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":t.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break;default:throw new xe(`bigint format ${i}`)}}function W8(t,e,r,i){let n=r.mime;if(n&&n.length>0){let o=ie(e,new Set(n));t.write(`if (!${o}.has(${i}.type)) return INVALID;`)}}function J8(t,e,r,i){if(r.when)throw new xe('check with a custom "when" condition');t.write(`if (${i} == null) return INVALID;`);let n=r.shape;for(let o of Reflect.ownKeys(n)){let s=typeof o=="symbol"?ie(e,o):rr(o),a=X(e);t.write(`const ${a} = ${i}[${s}];`),Vt(t,e,n[o],a,!1)}}function K8(t,e,r,i){let n=`${i}[${JSON.stringify(r.property)}]`;qe(t,e,r.schema,n)}function H8(t,e,r,i,n){let o=r._zod.def.tx;if(!o)throw new xe("overwrite check without a transform function");if(ca(o))throw new On("z.compile: async overwrite transforms are not supported");let s=ie(e,o);t.write(`const ${n} = ${s}(${i});`)}function Tx(){throw new vr}function Ox(t){this.issues.push(t)}function q8(t,e,r,i){let n=r._zod.def;if(n.fn){if(ca(n.fn))throw new On("z.compile: async .refine() predicates are not supported");let o=aa(e,n.fn),s=ie(e,Tx),a=X(e);return t.write(`const ${a} = ${o}(${i});`),t.write(`if (${a} instanceof Promise) ${s}();`),t.write(`if (!${a}) return INVALID;`),i}if(r._zod.check){if(ca(r._zod.check))throw new On("z.compile: async .superRefine() / check functions are not supported");let o=r._zod.check,a=aa(e,u=>{let l={value:u,issues:[],addIssue:Ox};return o(l)instanceof Promise&&Tx(),l.issues.length===0?l.value:ir}),c=X(e);return t.write(`const ${c} = ${a}(${i});`),t.write(`if (${c} === INVALID) return INVALID;`),c}throw new xe("custom check without a predicate or check function")}function yz(t,e,r,i,n=!0){let o=r.format;if(o==="base64"){let u=ie(e,nf);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="base64url"){let u=ie(e,Vm);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="jwt"){let u=ie(e,Wm),l=ie(e,r.alg??null);return t.write(`if (!${u}(${i}, ${l})) return INVALID;`),i}if(o==="ipv6"){let u=ie(e,rf);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="cidrv6"){let u=ie(e,Rm);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="credit_card"){let u=ie(e,Zm);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(o==="iban"){let u=ie(e,Gm);return t.write(`if (!${u}(${i})) return INVALID;`),i}let s=r;if(o==="url"||o==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=ie(e,Fm),l=ie(e,r),f=X(e),d=X(e);if(t.write(`const ${f} = ${i}.trim();`),t.write(`const ${d} = ${u}(${f}, ${l});`),t.write(`if (typeof ${d} === "number") return INVALID;`),s.hostname!==void 0){let g=ie(e,Mm);t.write(`if (!${g}(${d}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=ie(e,Cm);t.write(`if (!${g}(${d}, ${l}.protocol)) return INVALID;`)}if(!n)return null;let p=X(e),m=s.normalize?`${d}.href`:`${ie(e,tf)}(${f})`;return t.write(`const ${p} = ${m};`),p}let a=r.fn;if(a){if(ca(a))throw new xe(`async string format ${o}`);let u=ie(e,a);return t.write(`if (!${u}(${i})) return INVALID;`),i}if(Y8.has(o)&&r.pattern){let u=ie(e,r.pattern);return t.write(`${u}.lastIndex = 0;`),t.write(`if (!${u}.test(${i})) return INVALID;`),i}let c=r.format;switch(c){case"regex":throw new xe("regex format without a pattern");case"lowercase":t.write(`if (${i} !== ${i}.toLowerCase()) return INVALID;`);break;case"uppercase":t.write(`if (${i} !== ${i}.toUpperCase()) return INVALID;`);break;case"includes":t.write(`if (!${i}.includes(${rr(r.includes)})) return INVALID;`);break;case"starts_with":{let u=r.prefix;t.write(`if (${i}.slice(0, ${u.length}) !== ${rr(u)}) return INVALID;`);break}case"ends_with":{let u=r.suffix;t.write(`if (${i}.slice(-${u.length}) !== ${rr(u)}) return INVALID;`);break}default:throw new xe(`string format ${c}`)}return i}function qe(t,e,r,i,n=!0){let o=r._zod.def,s=o.type;if(o.coerce)throw new xe(`coercion (z.coerce.${s}())`);let a=n||!!o.checks?.length,c;switch(s){case"string":c=X8(t,e,r,i,a);break;case"number":c=Q8(t,r,i);break;case"boolean":c=e5(t,i);break;case"bigint":c=t5(t,r,i);break;case"symbol":c=r5(t,i);break;case"undefined":c=n5(t,i);break;case"null":c=i5(t,i);break;case"any":case"unknown":c=i;break;case"never":t.write("return INVALID;"),c=i;break;case"void":c=o5(t,i);break;case"nan":c=s5(t,i);break;case"date":c=a5(t,i);break;case"object":c=c5(t,e,r,i,a);break;case"optional":c=u5(t,e,r,i,a);break;case"nullable":c=d5(t,e,r,i,a);break;case"array":c=p5(t,e,r,i,a);break;case"literal":c=m5(t,e,r,i);break;case"enum":c=h5(t,e,r,i);break;case"readonly":{let u=dz(t,e,r,i),l=X(e);t.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":dz(t,e,r,i),c="true";break;case"default":case"prefault":c=g5(t,e,r,i);break;case"nonoptional":c=y5(t,e,r,i);break;case"tuple":c=v5(t,e,r,i);break;case"union":c=b5(t,e,r,i);break;case"intersection":c=x5(t,e,r,i);break;case"record":c=I5(t,e,r,i);break;case"map":c=S5(t,e,r,i);break;case"set":c=T5(t,e,r,i);break;case"file":c=k5(t,i);break;case"template_literal":c=A5(t,e,r,i);break;case"lazy":c=O5(t,e,r,i);break;case"pipe":c=B5(t,e,r,i);break;case"custom":c=D5(t,e,r,i);break;case"transform":c=L5(t,e,r,i);break;case"catch":c=z5(t,e,r,i);break;default:throw new xe(`schema type ${s}`)}return c===null?null:R8(t,e,r,c)}function X8(t,e,r,i,n=!0){t.write(`if (typeof ${i} !== "string") return INVALID;`);let o=r._zod.def;return o.format===void 0?i:yz(t,e,o,i,n)}function Q8(t,e,r){t.write(`if (typeof ${r} !== "number" || !Number.isFinite(${r})) return INVALID;`);let i=e._zod.def;return i.check==="number_format"&&i.format&&gz(t,{format:i.format},r),r}function e5(t,e){return t.write(`if (typeof ${e} !== "boolean") return INVALID;`),e}function t5(t,e,r){t.write(`if (typeof ${r} !== "bigint") return INVALID;`);let i=e._zod.def;if(i.format)switch(i.format){case"int64":t.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":t.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`);break}return r}function r5(t,e){return t.write(`if (typeof ${e} !== "symbol") return INVALID;`),e}function n5(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function i5(t,e){return t.write(`if (${e} !== null) return INVALID;`),e}function o5(t,e){return t.write(`if (${e} !== undefined) return INVALID;`),e}function s5(t,e){return t.write(`if (typeof ${e} !== "number" || !Number.isNaN(${e})) return INVALID;`),e}function a5(t,e){return t.write(`if (!(${e} instanceof Date) || Number.isNaN(${e}.getTime())) return INVALID;`),e}function c5(t,e,r,i,n=!0){let o=r._zod.def;t.write(`if (typeof ${i} !== "object" || ${i} === null || Array.isArray(${i})) return INVALID;`);let s=o.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=A=>typeof A=="symbol"?ie(e,A):rr(A),f=A=>typeof A=="symbol"?`[${l(A)}]`:rr(A),d=s;if(a.includes("__proto__"))throw new xe('object shape key "__proto__"');let p=new Map;for(let A of u){let _=d[A],x=l(A),O=X(e);if(t.write(`const ${O} = ${i}[${x}];`),_._zod.optin!==void 0){let N=X(e);t.write(`let ${N} = (() => {`),t.indented(R=>{let Ue=Vt(R,e,_,O);R.write(`return ${Ue};`)}),t.write("})();"),_._zod.optout==="optional"?(t.write(`if (${N} === INVALID) {`),t.indented(R=>{R.write(`if (${x} in ${i}) return INVALID;`),R.write(`${N} = undefined;`)}),t.write("}")):t.write(`if (${N} === INVALID) return INVALID;`),p.set(A,N)}else{f5(_)&&t.write(`if (!(${x} in ${i})) return INVALID;`);let N=Vt(t,e,_,O,n);N!==null&&p.set(A,N)}}let m=o.catchall,g="none";if(m){let A=m._zod.def.type;if(A==="never"){let _=a.map(x=>`k !== ${rr(x)}`).join(" && ")||"true";t.write(`for (const k in ${i}) {`),t.indented(x=>{x.write(`if (${_}) return INVALID;`)}),t.write("}")}else(A==="unknown"||A==="any")&&!m._zod.def.checks?.length?g="passthrough":g="schema"}let v=X(e),I=u.some(A=>fz(d[A])||kx(d[A]));if(!n){if(g==="schema"){let A=a.length>0?ie(e,new Set(a)):null;t.write(`for (const k in ${i}) {`),t.indented(_=>{_.write('if (k === "__proto__") continue;'),A&&_.write(`if (${A}.has(k)) continue;`);let x=X(e);_.write(`const ${x} = ${i}[k];`),Vt(_,e,m,x,!1)}),t.write("}")}return null}if(I){t.write(`const ${v} = {};`);for(let A of u){let _=l(A),x=p.get(A);kx(d[A])?t.write(`if (${_} in ${i}) ${v}[${_}] = ${x};`):fz(d[A])?t.write(`if (${x} !== undefined || ${_} in ${i}) ${v}[${_}] = ${x};`):t.write(`${v}[${_}] = ${x};`)}}else{let A=u.map(_=>`${f(_)}: ${p.get(_)}`).join(", ");t.write(`const ${v} = { ${A} };`)}if(g!=="none"){let A=a.length>0?ie(e,new Set(a)):null;t.write(`for (const k in ${i}) {`),t.indented(_=>{if(_.write('if (k === "__proto__") continue;'),A&&_.write(`if (${A}.has(k)) continue;`),g==="passthrough")_.write(`${v}[k] = ${i}[k];`);else{let x=X(e);_.write(`const ${x} = ${i}[k];`);let O=Vt(_,e,m,x);_.write(`${v}[k] = ${O};`)}}),t.write("}")}return v}function u5(t,e,r,i,n=!0){let o=r._zod.def;if(l5(r))return qe(t,e,o.innerType,i,n);if(o.innerType._zod.optin==="defaulted"){let a=X(e),c=X(e);return t.write(`let ${a};`),t.write(`if (${i} === undefined) {`),t.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let f=qe(l,e,o.innerType,i);l.write(`return ${f};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),t.write("} else {"),t.indented(u=>{let l=qe(u,e,o.innerType,i);u.write(`${a} = ${l};`)}),t.write("}"),a}let s=n?X(e):null;return s&&t.write(`let ${s};`),t.write(`if (${i} !== undefined) {`),t.indented(a=>{let c=qe(a,e,o.innerType,i,n);s&&c!==null&&a.write(`${s} = ${c};`)}),t.write("}"),s}function l5(t){return t._zod.traits?.has("$ZodExactOptional")===!0}function f5(t){return t._zod.optin===void 0&&sa(t)}function sa(t){if(t._zod.def.coerce)return!0;let e=t._zod.def;switch(e.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return e.innerType?sa(e.innerType):!1;case"literal":return!!e.values?.includes(void 0);case"enum":return!!t._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return e.innerType?sa(e.innerType):!0;case"catch":return!0;case"union":return e.options?e.options.some(sa):!0;case"intersection":return!e.left||!e.right?!0:sa(e.left)&&sa(e.right);case"pipe":return e.in?sa(e.in):!0;default:return!0}}function kx(t){return t._zod.optin==="optional"&&t._zod.optout==="optional"}function fz(t){return(t._zod.optin!=="defaulted"||t._zod.optout==="optional")&&zc(t)}function zc(t){let e=t._zod.def;switch(e.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!e.values?.includes(void 0);case"enum":return!!t._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return e.innerType?zc(e.innerType):!0;case"union":return e.options?e.options.some(zc):!0;case"intersection":return!e.left||!e.right||zc(e.left)||zc(e.right);case"pipe":return e.out?zc(e.out):!0;default:return!0}}function d5(t,e,r,i,n=!0){let o=r._zod.def,s=n?X(e):null;return s&&t.write(`let ${s} = null;`),t.write(`if (${i} !== null) {`),t.indented(a=>{let c=qe(a,e,o.innerType,i,n);s&&c!==null&&a.write(`${s} = ${c};`)}),t.write("}"),s}function p5(t,e,r,i,n=!0){let o=r._zod.def;t.write(`if (!Array.isArray(${i})) return INVALID;`);let s=n?X(e):null,a=X(e),c=X(e);return s&&t.write(`const ${s} = new Array(${i}.length);`),t.write(`for (let ${a} = 0; ${a} < ${i}.length; ${a}++) {`),t.indented(u=>{u.write(`const ${c} = ${i}[${a}];`);let l=Vt(u,e,o.element,c,n);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),t.write("}"),s}function m5(t,e,r,i){let o=r._zod.def.values;if(o.length!==1){let a=ie(e,new Set(o));return t.write(`if (!${a}.has(${i})) return INVALID;`),i}let s=o[0];if(typeof s=="number"&&Number.isNaN(s)){let a=ie(e,new Set(o));return t.write(`if (!${a}.has(${i})) return INVALID;`),i}if(typeof s=="string")t.write(`if (${i} !== ${rr(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")t.write(`if (${i} !== ${s}) return INVALID;`);else if(s===null)t.write(`if (${i} !== null) return INVALID;`);else if(s===void 0)t.write(`if (${i} !== undefined) return INVALID;`);else if(typeof s=="bigint")t.write(`if (${i} !== ${s}n) return INVALID;`);else throw new xe(`literal type ${typeof s}`);return i}function h5(t,e,r,i){let n=r._zod.values;if(!n)throw new xe("enum schema without enumerated values");let o=ie(e,n);return t.write(`if (!${o}.has(${i})) return INVALID;`),i}function dz(t,e,r,i){let n=r._zod.def;return qe(t,e,n.innerType,i)}function g5(t,e,r,i){let n=r._zod.def,s=Object.getOwnPropertyDescriptor(r._zod.def,"defaultValue")?()=>r._zod.def.defaultValue:void 0;if(r._zod.def.type==="prefault"){if(!s)return qe(t,e,n.innerType,i);let c=ie(e,s),u=X(e);return t.write(`let ${u} = ${i};`),t.write(`if (${i} === undefined) ${u} = ${c}();`),qe(t,e,n.innerType,u)}let a=X(e);if(s){let c=ie(e,s),u=ie(e,Ml);t.write(`let ${a};`),t.write(`if (${i} === undefined) {`),t.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),t.write("} else {"),t.indented(l=>{let f=qe(l,e,n.innerType,i);l.write(`${a} = ${f} === undefined ? ${u}(${c}()) : ${f};`)}),t.write("}")}else t.write(`let ${a};`),t.write(`if (${i} !== undefined) {`),t.indented(c=>{let u=qe(c,e,n.innerType,i);c.write(`${a} = ${u};`)}),t.write("}");return a}function y5(t,e,r,i){let n=r._zod.def,o=qe(t,e,n.innerType,i),s=X(e);return t.write(`const ${s} = ${o};`),t.write(`if (${s} === undefined) return INVALID;`),s}function v5(t,e,r,i){let n=r._zod.def,o=n.items,s=n.rest;t.write(`if (!Array.isArray(${i})) return INVALID;`);let a=pz(o,"optin"),c=pz(o,"optout");s?t.write(`if (${i}.length < ${a}) return INVALID;`):t.write(`if (${i}.length < ${a} || ${i}.length > ${o.length}) return INVALID;`);let u=X(e);t.write(`const ${u} = [];`);for(let l=0;l<o.length;l++){let f=o[l];if(l>=c)t.write(`if (${u}.length === ${l}) {`),t.indented(d=>{d.write(`if (${l} < ${i}.length) {`),d.indented(p=>{let m=X(e);p.write(`const ${m} = ${i}[${l}];`);let g=Vt(p,e,f,m);p.write(`${u}[${l}] = ${g};`)}),d.write("} else {"),d.indented(p=>{if(kx(f)){p.write(`${u}.length = ${l};`);return}let m=X(e),g=X(e);p.write(`const ${m} = undefined;`),p.write(`const ${g} = (() => {`),p.indented(v=>{let I=Vt(v,e,f,m);v.write(`return ${I};`)}),p.write("})();"),p.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),p.write(`else ${u}[${l}] = ${g};`)}),d.write("}")}),t.write("}");else{let d=X(e);t.write(`const ${d} = ${i}[${l}];`);let p=Vt(t,e,f,d);t.write(`${u}[${l}] = ${p};`)}}if(s){let l=X(e),f=X(e);t.write(`for (let ${l} = ${o.length}; ${l} < ${i}.length; ${l}++) {`),t.indented(d=>{d.write(`const ${f} = ${i}[${l}];`);let p=Vt(d,e,s,f);d.write(`${u}[${l}] = ${p};`)}),t.write("}")}return u}function pz(t,e){for(let r=t.length-1;r>=0;r--)if(!(e==="optin"?t[r]._zod.optin!==void 0:t[r]._zod.optout==="optional"))return r+1;return 0}function b5(t,e,r,i){let n=r._zod.def,o=n.options;if(n.discriminator)return w5(t,e,n,i);if(n.inclusive===!1)throw new xe("exclusive unions (z.xor)");if(o.length===0)return t.write("return INVALID;"),i;if(o.length===1)return qe(t,e,o[0],i);if(o.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(o.flatMap(l=>l._zod.def.values)),u=ie(e,c);return t.write(`if (!${u}.has(${i})) return INVALID;`),i}let a=X(e);t.write(`let ${a};`);for(let c=0;c<o.length;c++){let u=o[c];c===0?t.write(`${a} = (() => {`):t.write(`if (${a} === INVALID) ${a} = (() => {`),t.indented(l=>{let f=qe(l,e,u,i);l.write(`return ${f};`)}),t.write("})();")}return t.write(`if (${a} === INVALID) return INVALID;`),a}function w5(t,e,r,i){if(r.unionFallback)throw new xe("discriminated union with unionFallback");if(r.options.length===0)return t.write("return INVALID;"),i;let n=X(e),o=X(e);t.write(`const ${n} = ${i}?.[${rr(r.discriminator)}];`),t.write(`let ${o};`);let s=!0,a=new Set;for(let c of r.options){let u=c._zod.propValues?.[r.discriminator];if(!u||u.size===0)throw new xe("discriminated union option without static discriminator values");for(let d of u){if(a.has(d))throw new xe(`duplicate discriminator value ${String(d)}`);a.add(d)}let l=Array.from(u,d=>_5(e,n,d)),f=s?"if":"else if";t.write(`${f} (${l.join(" || ")}) {`),t.indented(d=>{let p=qe(d,e,c,i);d.write(`${o} = ${p};`)}),t.write("}"),s=!1}return t.write("else { return INVALID; }"),o}function _5(t,e,r){if(typeof r=="string")return`${e} === ${rr(r)}`;if(typeof r=="number")return Number.isNaN(r)?`Number.isNaN(${e})`:`${e} === ${r}`;if(typeof r=="boolean")return`${e} === ${r}`;if(r===null)return`${e} === null`;if(r===void 0)return`${e} === undefined`;if(typeof r=="bigint")return`${e} === ${r}n`;if(typeof r=="symbol"){let i=ie(t,r);return`${e} === ${i}`}throw new xe(`literal discriminator value ${String(r)}`)}function x5(t,e,r,i){let n=r._zod.def;e.definite=!1;let o=Vt(t,e,n.left,i),s=Vt(t,e,n.right,i),a=ie(e,Oc),c=X(e);return t.write(`const ${c} = ${a}(${o}, ${s});`),t.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function I5(t,e,r,i){let n=r._zod.def,o=ie(e,nn);t.write(`if (!${o}(${i})) return INVALID;`);let s=X(e),a=X(e),c=X(e);t.write(`const ${s} = {};`);let u=n,l=u.partial?void 0:n.keyType._zod.values;if(l){let p=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new xe(`record key value ${String(g)}`);let v=typeof g=="number"?g.toString():g;if(v==="__proto__")throw new xe('record key "__proto__"');p.push(v);let I=ie(e,g),A=qe(t,e,n.keyType,I),_=X(e);t.write(`const ${_} = ${i}[${$5(e,v)}];`);let x=Vt(t,e,n.valueType,_);t.write(`${s}[${A}] = ${x};`)}let m=ie(e,new Set(p));return t.write(`for (const ${a} in ${i}) {`),t.indented(g=>{g.write(`if (${m}.has(${a})) continue;`),u.mode==="loose"?g.write(`if (${a} !== "__proto__") ${s}[${a}] = ${i}[${a}];`):g.write("return INVALID;")}),t.write("}"),s}let f=n.keyType._zod.def;if(!(f.type==="string"&&f.format===void 0&&!f.coerce&&(f.checks?.length??0)===0)){let p=n.mode==="loose",m=lh(n.keyType);m.definite===!1&&(e.definite=!1);let g=ie(e,m),v=ie(e,Si),I=X(e);return mz(t,e,i,a,A=>{A.write(`let ${I} = ${g}(${a});`),A.write(`if (${I} === INVALID && typeof ${a} === "string" && ${v}.test(${a})) ${I} = ${g}(Number(${a}));`),p?A.write(`if (${I} === INVALID) { ${s}[${a}] = ${i}[${a}]; continue; }`):A.write(`if (${I} === INVALID) return INVALID;`),A.write(`if (${I} === "__proto__") continue;`);let _=X(e);A.write(`const ${_} = ${i}[${a}];`);let x=Vt(A,e,n.valueType,_);A.write(`${s}[${I}] = ${x};`)}),s}return mz(t,e,i,a,p=>{p.write(`const ${c} = ${i}[${a}];`);let m=Vt(p,e,n.valueType,c);p.write(`${s}[${a}] = ${m};`)},"return INVALID;"),s}function mz(t,e,r,i,n,o){let s=ie(e,Object.prototype.propertyIsEnumerable),a=X(e),c=X(e),u=X(e);t.write(`const ${a} = Object.getOwnPropertySymbols(${r});`),t.write(`const ${c} = Object.getOwnPropertyNames(${r});`),t.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),t.indented(l=>{l.write(`const ${i} = ${c}[${u}];`),l.write(`if (${i} === "__proto__" || !${s}.call(${r}, ${i})) continue;`),n(l)}),t.write("}"),t.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),t.indented(l=>{l.write(`const ${i} = ${a}[${u}];`),l.write(`if (!${s}.call(${r}, ${i})) continue;`),o?l.write(o):n(l)}),t.write("}")}function $5(t,e){return typeof e=="string"?rr(e):ie(t,e)}function S5(t,e,r,i){let n=r._zod.def;t.write(`if (!(${i} instanceof Map)) return INVALID;`);let o=X(e),s=X(e),a=X(e);return t.write(`const ${o} = new Map();`),t.write(`for (const [${s}, ${a}] of ${i}) {`),t.indented(c=>{let u=qe(c,e,n.keyType,s),l=qe(c,e,n.valueType,a);c.write(`${o}.set(${u}, ${l});`)}),t.write("}"),o}function T5(t,e,r,i){let n=r._zod.def;t.write(`if (!(${i} instanceof Set)) return INVALID;`);let o=X(e),s=X(e);return t.write(`const ${o} = new Set();`),t.write(`for (const ${s} of ${i}) {`),t.indented(a=>{let c=qe(a,e,n.valueType,s);a.write(`${o}.add(${c});`)}),t.write("}"),o}function k5(t,e){return t.write(`if (!(${e} instanceof File)) return INVALID;`),e}function A5(t,e,r,i){t.write(`if (typeof ${i} !== "string") return INVALID;`);let n=r._zod.pattern;if(n){let o=ie(e,n);t.write(`${o}.lastIndex = 0;`),t.write(`if (!${o}.test(${i})) return INVALID;`)}return i}function O5(t,e,r,i){let n=r._zod.def,o=aa(e,n.getter),s=ie(e,{parser:null});t.write(`if (!${s}.parser) {`),t.indented(c=>{c.write(`const inner = ${o}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),t.write("}");let a=X(e);return t.write(`const ${a} = ${s}.parser(${i});`),t.write(`if (${a} === INVALID) return INVALID;`),a}function B5(t,e,r,i){let n=r._zod.def,o=qe(t,e,n.in,i);if(n.transform){if(ca(n.transform))throw new On("z.compile: async transforms in pipes are not supported");let s=n.transform,c=aa(e,l=>{let f={value:l,issues:[],addIssue:Ox},d=s(l,f);return d instanceof Promise?ir:f.issues.length===0?d:ir}),u=X(e);return t.write(`const ${u} = ${c}(${o});`),t.write(`if (${u} === INVALID) return INVALID;`),qe(t,e,n.out,u)}else return qe(t,e,n.out,o)}function ca(t){return typeof t=="function"&&(t.constructor.name==="AsyncFunction"||t[Symbol.toStringTag]==="AsyncFunction")}function D5(t,e,r,i){let n=r._zod.def;if(n.fn){if(ca(n.fn))throw new On("z.compile: async custom predicates are not supported");let o=aa(e,n.fn),s=ie(e,Tx),a=X(e);t.write(`const ${a} = ${o}(${i});`),t.write(`if (${a} instanceof Promise) ${s}();`),t.write(`if (!${a}) return INVALID;`)}else throw new xe("custom schema without a predicate function");return i}function N5(t,e,r){let i=t._zod.run({value:r,issues:[]},{});if(i&&typeof i.then=="function")return ir;let n=i;return n.issues.length===0?n.value:e()}function z5(t,e,r,i){let n=r._zod.def;if(!n.catchValue[pm])throw new xe("catch with a callback (only a constant catch value compiles)",!1);let o=X(e);t.write(`let ${o} = (() => {`),t.indented(u=>{let l=Vt(u,e,n.innerType,i);u.write(`return ${l};`)}),t.write("})();");let s=ie(e,n.innerType),a=aa(e,n.catchValue),c=ie(e,N5);return t.write(`if (${o} === INVALID) {`),t.indented(u=>{u.write(`${o} = ${c}(${s}, ${a}, ${i});`),u.write(`if (${o} === INVALID) return INVALID;`)}),t.write("}"),o}function L5(t,e,r,i){let n=r._zod.def;if(n.transform){if(ca(n.transform))throw new On("z.compile: async transforms are not supported");let o=n.transform,a=aa(e,u=>{let l={value:u,issues:[],addIssue:Ox},f=o(u,l);return f instanceof Promise?ir:l.issues.length===0?f:ir}),c=X(e);return t.write(`const ${c} = ${a}(${i});`),t.write(`if (${c} === INVALID) return INVALID;`),c}return i}var ir,lz,On,xe,C8,Y8,vz=h(()=>{Zo();Nm();vx();ra();Bc();E();ir=Symbol.for("zod.compile.invalid"),lz=Symbol.for("zod.compile.fallback"),On=class extends Error{constructor(e="z.compile does not support async refinements, transforms, or checks"){super(e),this.name="ZodCompileAsyncError"}},xe=class extends Error{constructor(e,r=!0){super(`z.compile does not support ${e}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=r}};C8=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);Y8=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"])});function fh(t){return t.checks&&(t.checks=[...t.checks]),t}function Bx(t,e){return new t(fh({type:"string",...B(e)}))}function Dx(t,e){return new t(fh({type:"string",coerce:!0,...B(e)}))}function dh(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...B(e)})}function ph(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...B(e)})}function mh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...B(e)})}function hh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(e)})}function gh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(e)})}function yh(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(e)})}function gf(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...B(e)})}function vh(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...B(e)})}function bh(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(e)})}function wh(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...B(e)})}function _h(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(e)})}function xh(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...B(e)})}function Ih(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...B(e)})}function $h(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(e)})}function Sh(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(e)})}function Th(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(e)})}function Nx(t,e){return new t({type:"string",format:"mac",check:"string_format",abort:!1,...B(e)})}function kh(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(e)})}function Ah(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(e)})}function Oh(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...B(e)})}function Bh(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...B(e)})}function Dh(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...B(e)})}function zx(t,e){return new t({type:"string",format:"credit_card",check:"string_format",abort:!1,...B(e)})}function Lx(t,e){return new t({type:"string",format:"iban",check:"string_format",abort:!1,...B(e)})}function Nh(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...B(e)})}function yf(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(e)})}function vf(t,e){return new t({type:"string",format:"date",check:"string_format",...B(e)})}function bf(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...B(e)})}function wf(t,e){return new t({type:"string",format:"duration",check:"string_format",...B(e)})}function Ux(t,e){return new t(fh({type:"number",checks:[],...B(e)}))}function Px(t,e){return new t(fh({type:"number",coerce:!0,checks:[],...B(e)}))}function Fx(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...B(e)})}function Mx(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float32",...B(e)})}function Cx(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"float64",...B(e)})}function Rx(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"int32",...B(e)})}function jx(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"uint32",...B(e)})}function Vx(t,e){return new t({type:"boolean",...B(e)})}function Zx(t,e){return new t({type:"boolean",coerce:!0,...B(e)})}function Gx(t,e){return new t({type:"bigint",...B(e)})}function Wx(t,e){return new t({type:"bigint",coerce:!0,...B(e)})}function Jx(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...B(e)})}function Kx(t,e){return new t({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...B(e)})}function Hx(t,e){return new t({type:"symbol",...B(e)})}function qx(t,e){return new t({type:"undefined",...B(e)})}function Yx(t,e){return new t({type:"null",...B(e)})}function Xx(t){return new t({type:"any"})}function Qx(t){return new t({type:"unknown"})}function eI(t,e){return new t({type:"never",...B(e)})}function tI(t,e){return new t({type:"void",...B(e)})}function rI(t,e){return new t({type:"date",...B(e)})}function nI(t,e){return new t({type:"date",coerce:!0,...B(e)})}function iI(t,e){return new t({type:"nan",...B(e)})}function Wn(t,e){return new Om({check:"less_than",...B(e),value:t,inclusive:!1})}function Cr(t,e){return new Om({check:"less_than",...B(e),value:t,inclusive:!0})}function Jn(t,e){return new Bm({check:"greater_than",...B(e),value:t,inclusive:!1})}function Rr(t,e){return new Bm({check:"greater_than",...B(e),value:t,inclusive:!0})}function zh(t){return Jn(0,t)}function Lh(t){return Wn(0,t)}function Eh(t){return Cr(0,t)}function Uh(t){return Rr(0,t)}function Wo(t,e){return new U_({check:"multiple_of",...B(e),value:t})}function Jo(t,e){return new M_({check:"max_size",...B(e),maximum:t})}function Kn(t,e){return new C_({check:"min_size",...B(e),minimum:t})}function ua(t,e){return new R_({check:"size_equals",...B(e),size:t})}function la(t,e){return new j_({check:"max_length",...B(e),maximum:t})}function Ti(t,e){return new V_({check:"min_length",...B(e),minimum:t})}function fa(t,e){return new Z_({check:"length_equals",...B(e),length:t})}function Lc(t,e){return new G_({check:"string_format",format:"regex",...B(e),pattern:t})}function Ec(t){return new W_({check:"string_format",format:"lowercase",...B(t)})}function Uc(t){return new J_({check:"string_format",format:"uppercase",...B(t)})}function Pc(t,e){return new K_({check:"string_format",format:"includes",...B(e),includes:t})}function Fc(t,e){return new H_({check:"string_format",format:"starts_with",...B(e),prefix:t})}function Mc(t,e){return new q_({check:"string_format",format:"ends_with",...B(e),suffix:t})}function Ph(t,e,r){return new Y_({check:"property",property:t,schema:e,...B(r)})}function Cc(t,e){return new X_({check:"properties",shape:t,...B(e)})}function Rc(t,e){return new Q_({check:"mime_type",mime:t,...B(e)})}function Bn(t){return new e0({check:"overwrite",tx:t})}function jc(t){return Bn(e=>e.normalize(t))}function Vc(){return Bn(t=>t.trim())}function Zc(){return Bn(t=>t.toLowerCase())}function Gc(){return Bn(t=>t.toUpperCase())}function Wc(){return Bn(t=>Uw(t))}function oI(t,e,r){return new t({type:"array",element:e,...B(r)})}function E5(t,e,r){return new t({type:"union",options:e,...B(r)})}function U5(t,e,r){return new t({type:"union",options:e,inclusive:!1,...B(r)})}function P5(t,e,r,i){return new t({type:"union",options:r,discriminator:e,...B(i)})}function F5(t,e,r){return new t({type:"intersection",left:e,right:r})}function M5(t,e,r,i){let n=r instanceof ce,o=n?i:r,s=n?r:null;return new t({type:"tuple",items:e,rest:s,...B(o)})}function C5(t,e,r,i){return new t({type:"record",keyType:e,valueType:r,...B(i)})}function R5(t,e,r,i){return new t({type:"map",keyType:e,valueType:r,...B(i)})}function j5(t,e,r){return new t({type:"set",valueType:e,...B(r)})}function V5(t,e,r){let i=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new t({type:"enum",entries:i,...B(r)})}function Z5(t,e,r){return new t({type:"enum",entries:e,...B(r)})}function G5(t,e,r){return new t({type:"literal",values:Array.isArray(e)?e:[e],...B(r)})}function sI(t,e){return new t({type:"file",...B(e)})}function W5(t,e){return new t({type:"transform",transform:e})}function J5(t,e){return new t({type:"optional",innerType:e})}function K5(t,e){return new t({type:"nullable",innerType:e})}function H5(t,e,r){return new t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Ml(r)}})}function q5(t,e,r){return new t({type:"nonoptional",innerType:e,...B(r)})}function Y5(t,e){return new t({type:"success",innerType:e})}function X5(t,e,r){return new t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:jw(r)})}function Q5(t,e,r){return new t({type:"pipe",in:e,out:r})}function eZ(t,e){return new t({type:"readonly",innerType:e})}function tZ(t,e,r){return new t({type:"template_literal",parts:e,...B(r)})}function rZ(t,e){return new t({type:"lazy",getter:e})}function nZ(t,e){return new t({type:"promise",innerType:e})}function aI(t,e,r){let i=B(r);return i.abort??(i.abort=!0),new t({type:"custom",check:"custom",fn:e,...i})}function cI(t,e,r){return new t({type:"custom",check:"custom",fn:e,...B(r)})}function uI(t,e){let r=bz(i=>(i.addIssue=n=>{if(typeof n=="string")i.issues.push(Ic(n,i.value,r._zod.def));else{let o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(Ic(o))}},t(i.value,i)),e);return r}function bz(t,e){let r=new Ce({check:"custom",...B(e)});return r._zod.check=t,r}function lI(t){let e=new Ce({check:"describe"});return e._zod.onattach=[r=>{let i=At.get(r)??{};At.add(r,{...i,description:t})}],e._zod.check=()=>{},e}function fI(t){let e=new Ce({check:"meta"});return e._zod.onattach=[r=>{let i=At.get(r)??{};At.add(r,{...i,...t})}],e._zod.check=()=>{},e}function dI(t,e){let r=B(e),i=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),n=n.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(i),s=new Set(n),a=t.Codec??cf,c=t.Boolean??sf,u=t.String??ia,l=new u({type:"string",error:r.error}),f=new c({type:"boolean",error:r.error}),d=new a({type:"pipe",in:l,out:f,transform:((p,m)=>{let g=p;return r.case!=="sensitive"&&(g=g.toLowerCase()),o.has(g)?!0:s.has(g)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:m.value,inst:d,continue:!1}),{})}),reverseTransform:((p,m)=>p===!0?i[0]||"true":n[0]||"false"),error:r.error});return d._zod.bag.truthy=i,d._zod.bag.falsy=n,d._zod.bag.case=r.case??"insensitive",d}function da(t,e,r,i={}){let n=B(i),o={check:"string_format",type:"string",format:e,fn:typeof r=="function"?r:a=>r.test(a),...n};return r instanceof RegExp&&(o.pattern=r),new t(o)}var Ex,wz=h(()=>{Dm();hf();Bc();E();Ex={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function _f(t,...e){for(let r of e)for(let i of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,i)&&kt(t,i,r[i]);return t}function Ko(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??At,target:e,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??"ref",reused:t?.reused??"inline",intersections:[],deferred:[],external:t?.external??void 0}}function dt(t,e,r,i,n){let o=typeof e.unrepresentable=="function"?e.unrepresentable({zodSchema:t,path:i.path,message:n}):e.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(n);return Object.assign(r,o),!0}function Ee(t,e,r={path:[],schemaPath:[]}){var i;let n=t._zod.def,o=e.seen.get(t);if(o)return o.count++,r.schemaPath.includes(t)&&(o.cycle=r.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:r.path};e.seen.set(t,s),e.sharedDefsExtractedFor=void 0,e.sharedEmitDoneFor=void 0;let a=t._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...r,schemaPath:[...r.schemaPath,t],path:r.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,l);else{let d=s.schema,p=e.processors[n.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);p(t,e,d,l)}let f=t._zod.parent;f&&(s.ref||(s.ref=f),Ee(f,e,l),e.seen.get(f).isParent=!0)}let c=e.metadataRegistry.get(t);return c&&_f(s.schema,c),e.io==="input"&&or(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&"_prefault"in s.schema&&((i=s.schema).default??(i.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function _z(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ho(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");if(t.external&&t.sharedDefsExtractedFor===t.external)return;let i=new Map;for(let s of t.seen.entries()){let a=t.metadataRegistry.get(s[0])?.id;if(a){let c=i.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(a,s[0])}}let n=s=>{let a=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){let f=t.external.registry.get(s[0])?.id,d=t.external.uri??(m=>m);if(f)return{ref:d(f)};let p=s[1].defId??s[1].schema.id??`schema${t.counter++}`;return s[1].defId=p,{defId:p,ref:`${d("__shared")}#/${a}/${_z(p)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===r&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${t.counter++}`;return{defId:l,ref:u+_z(l)}},o=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=n(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let f in l)delete l[f];l.$ref=c};if(t.cycles==="throw")for(let s of t.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
|
|
86
|
+
|
|
87
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of t.seen.entries()){let a=s[1];if(e===s[0]){o(s);continue}if(t.external){let u=t.external.registry.get(s[0])?.id;if(e!==s[0]&&u){o(s);continue}}if(t.metadataRegistry.get(s[0])?.id){o(s);continue}if(a.cycle){o(s);continue}a.count>1&&t.reused==="ref"&&o(s)}t.external&&(t.sharedDefsExtractedFor=t.external)}function $z(t){let e=t.anyOf;if(!Array.isArray(e)||e.length===0||t.type!==void 0)return;let r=[];for(let i of e){if(!i||typeof i!="object")return;$z(i);let n=Object.keys(i);if(n.length!==1||n[0]!=="type")return;let o=i.type;for(let s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;r.includes(s)||r.push(s)}}delete t.anyOf,t.type=r.length===1?r[0]:r}function Iz(t){let e=t.additionalProperties;return e===void 0||e===!1||typeof e!="object"||e===null?null:Object.keys(e).length?e:null}function pI(t){let e=[];for(let o of t){if(typeof o!="object"||o.type!=="object")return null;for(let s in o)if(!Sz.has(s))return null;e.push(o)}let r={},i=new Set;for(let o of e){for(let s in o.properties){if(Object.prototype.hasOwnProperty.call(r,s))continue;let a=[];for(let u of e){let l=u.properties?.[s]??Iz(u);l!=null&&(a.some(f=>JSON.stringify(f)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:pI(a)??{allOf:a};kt(r,s,c)}for(let s of o.required??[])i.add(s)}let n={type:"object",properties:r};if(i.size&&(n.required=[...i]),e.every(o=>o.additionalProperties===!1))n.additionalProperties=!1;else{let o=[];for(let s of e){let a=Iz(s);a&&!o.some(c=>JSON.stringify(c)===JSON.stringify(a))&&o.push(a)}o.length===1?n.additionalProperties=o[0]:o.length>1&&(n.additionalProperties={allOf:o})}return n}function iZ(t){let e=t.allOf;if(!Array.isArray(e)||e.length<2)return;for(let n of Sz)if(n in t)return;let r=e.filter(n=>xz.some(o=>Array.isArray(n[o]))),i=null;if(!r.length)i=pI(e);else{let n=r[0],o=xz.find(c=>Array.isArray(n[c]));if(Object.keys(n).length!==1)return;let s=e.filter(c=>c!==n),a=n[o].map(c=>pI([...s,c]));if(a.some(c=>!c))return;i={[o]:a}}i&&(delete t.allOf,_f(t,i))}function qo(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=a=>{let c=t.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},f=c.ref;if(c.ref=null,f){i(f);let p=t.seen.get(f),m=p.schema;if(m.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):_f(u,m),_f(u,l),a._zod.parent===f)for(let v in u)v==="$ref"||v==="allOf"||v in l||delete u[v];if(m.$ref&&p.def)for(let v in u)v==="$ref"||v==="allOf"||v in p.def&&JSON.stringify(u[v])===JSON.stringify(p.def[v])&&delete u[v]}let d=a._zod.parent;if(d&&d!==f){i(d);let p=t.seen.get(d);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let m in u)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(u[m])===JSON.stringify(p.def[m])&&delete u[m]}t.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let a of[...t.seen.entries()].reverse())i(a[0]);if(t.target!=="openapi-3.0")for(let a of t.seen.entries())$z(a[1].def??a[1].schema);for(let a of t.deferred)a();if(t.intersections.length){let a=new Map;for(let c of t.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let f=a.get(l);f?f.push(u):a.set(l,[u])}for(let c of t.intersections)for(let u of a.get(c)??[])iZ(u)}}let n={};if(t.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let a=t.external.registry.get(e)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=t.external.uri(a)}_f(n,r.defId?r.schema:r.def??r.schema);let o=t.metadataRegistry.get(e)?.id;o!==void 0&&n.id===o&&delete n.id;let s=t.external?.defs??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let a of t.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,kt(s,c.defId,c.def))}t.external&&(t.sharedEmitDoneFor=t.external),t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...e["~standard"],jsonSchema:{input:Jc(e,"input",t.processors),output:Jc(e,"output",t.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function or(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);let i=t._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return or(i.element,r);if(i.type==="set")return or(i.valueType,r);if(i.type==="lazy")return or(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault"||i.type==="catch")return or(i.innerType,r);if(i.type==="intersection")return or(i.left,r)||or(i.right,r);if(i.type==="record"||i.type==="map")return or(i.keyType,r)||or(i.valueType,r);if(i.type==="pipe")return t._zod.traits.has("$ZodCodec")?!0:or(i.in,r)||or(i.out,r);if(i.type==="object"){for(let n in i.shape)if(or(i.shape[n],r))return!0;return!1}if(i.type==="union"){for(let n of i.options)if(or(n,r))return!0;return!1}if(i.type==="tuple"){for(let n of i.items)if(or(n,r))return!0;return!!(i.rest&&or(i.rest,r))}return!1}var Sz,xz,mI,Jc,xf=h(()=>{hf();E();Sz=new Set(["type","properties","required","additionalProperties"]),xz=["oneOf","anyOf"];mI=(t,e={})=>r=>{let i=Ko({...r,processors:e});return Ee(t,i),Ho(i,t),qo(i,t)},Jc=(t,e,r={})=>i=>{let{libraryOptions:n,target:o}=i??{},s=Ko({...n??{},target:o,io:e,processors:r});return Ee(t,s),Ho(s,t),qo(s,t)}});function pt(t){let e={},r=t._zod.def,i=t._zod.traits.has("$ZodCheck")?[t,...r.checks??[]]:r.checks??[];for(let o of i)oZ[o._zod.def.check]?.(e,o._zod.def);let n=t._zod.bag;n.minimum!==void 0&&Kc(e,"minimum",n.minimum),n.exclusiveMinimum!==void 0&&Kc(e,"exclusiveMinimum",n.exclusiveMinimum),n.maximum!==void 0&&Hc(e,"maximum",n.maximum),n.exclusiveMaximum!==void 0&&Hc(e,"exclusiveMaximum",n.exclusiveMaximum),n.multipleOf!==void 0&&Bz(e,n.multipleOf),n.format!==void 0&&(e.format??(e.format=n.format),n.format.includes("int")&&(e.isInt=!0)),n.mime&&Nz(e,n.mime);for(let o of n.patterns??[])Dz(e,o);return e}function If(t){let e=t._zod.def;return e.type==="pipe"&&e.in._zod.traits.has("$ZodTransform")?If(e.out):e.type==="catch"?If(e.innerType):t._zod.optin}function hI(t,e,r){if(e.$ref){if(r.has(e))return e;r.add(e);let m=t.get(e)?.def;if(!m)return e;let g=hI(t,m,r);return g===m?e:g}for(let m of["anyOf","oneOf"]){let g=e[m];if(!Array.isArray(g))continue;let v=g.map(I=>hI(t,I,r));v.some((I,A)=>I!==g[A])&&(e={...e,[m]:v})}let i=Array.isArray(e.type)?e.type:[e.type],n=!i.includes("string")&&i.some(m=>m==="number"||m==="integer"),o=e.enum??(e.const!==void 0?[e.const]:void 0);if(!n&&!o?.some(m=>typeof m=="number"))return e;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:f,id:d,...p}=e;return p.enum?p.enum=p.enum.map(m=>typeof m=="number"?String(m):m):typeof p.const=="number"&&(p.const=String(p.const)),n&&(p.type="string",o||(p.pattern=(i.includes("number")?Si:Yl).source)),p}function cZ(t){let e=new Map;for(let i of t.seen.values())i.def&&!e.has(i.schema)&&e.set(i.schema,i);let r=new Map;for(let i of gI.get(t)??[]){let n=t.seen.get(i),o=(n?.def??n?.schema)?.propertyNames;if(!o||o===!0||r.has(o))continue;let s=hI(e,o,new Set);s!==o&&r.set(o,s)}if(r.size)for(let i of t.seen.values())for(let n of[i.schema,i.def]){let o=n&&r.get(n.propertyNames);o&&(n.propertyNames=o)}}function Ez(t,e,r,i,n){let o=!1,s=JSON.stringify(t,(a,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(dt(e,r,i,n,"BigInt defaults cannot be represented in JSON Schema"),JI):JSON.parse(s)}function Rh(t,e){if("_idmap"in t){let i=t,n=Ko({...e,processors:Fh}),o={};for(let c of i._idmap.entries()){let[u,l]=c;Ee(l,n)}let s={},a={registry:i,uri:e?.uri,defs:o};n.external=a;for(let c of i._idmap.entries()){let[u,l]=c;Ho(n,l),kt(s,u,qo(n,l))}if(Object.keys(o).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:o}}return{schemas:s}}let r=Ko({...e,processors:Fh});return Ee(t,r),Ho(r,t),qo(r,t)}var Kc,Hc,Tz,Bz,Dz,Nz,zz,kz,Az,Oz,oZ,sZ,aZ,Lz,yI,vI,bI,wI,_I,xI,II,$I,SI,TI,kI,AI,OI,BI,DI,NI,zI,LI,EI,UI,PI,FI,MI,CI,RI,Mh,jI,VI,gI,ZI,GI,WI,JI,KI,HI,qI,YI,XI,QI,Ch,e$,Fh,$f=h(()=>{ra();Bc();xf();E();Kc=(t,e,r)=>{(t[e]===void 0||r>t[e])&&(t[e]=r)},Hc=(t,e,r)=>{(t[e]===void 0||r<t[e])&&(t[e]=r)},Tz=(t,e)=>{Kc(t,"minimum",e),Hc(t,"maximum",e)},Bz=(t,e)=>{t.multipleOf??(t.multipleOf=[]),t.multipleOf.includes(e)||t.multipleOf.push(e)},Dz=(t,e)=>{t.patterns??(t.patterns=new Set),t.patterns.add(e)},Nz=(t,e)=>{t.mime=t.mime?t.mime.filter(r=>e.includes(r)):[...e]},zz=(t,e)=>{t.format=e,e.includes("int")&&(t.isInt=!0)},kz=(t,e)=>Kc(t,"minimum",e.minimum),Az=(t,e)=>Hc(t,"maximum",e.maximum),Oz=t=>(e,r)=>{zz(e,r.format);let[i,n]=t[r.format];Kc(e,"minimum",i),Hc(e,"maximum",n)},oZ={greater_than:(t,e)=>Kc(t,e.inclusive?"minimum":"exclusiveMinimum",e.value),less_than:(t,e)=>Hc(t,e.inclusive?"maximum":"exclusiveMaximum",e.value),multiple_of:(t,e)=>Bz(t,e.value),number_format:Oz(Rl),bigint_format:Oz(jl),min_length:kz,max_length:Az,length_equals:(t,e)=>Tz(t,e.length),min_size:kz,max_size:Az,size_equals:(t,e)=>Tz(t,e.size),string_format:(t,e)=>{zz(t,e.format),e.pattern&&Dz(t,e.pattern),(e.format==="base64"||e.format==="base64url")&&(t.contentEncoding=e.format),(e.local||e.precision===-1)&&(t.laxFormat=!0)},mime_type:(t,e)=>Nz(t,e.mime)};sZ={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},aZ=new Map([[jm,g_],[of,y_]]),Lz=t=>aZ.get(t)??t,yI=(t,e,r,i)=>{let n=r;n.type="string";let{minimum:o,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=pt(t);if(typeof o=="number"&&(n.minLength=o),typeof s=="number"&&(n.maxLength=s),a&&(n.format=sZ[a]??a,n.format===""&&delete n.format,(a==="time"||l)&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let f=[...c].map(Lz);f.length===1?n.pattern=f[0].source:f.length>1&&(n.allOf=[...f.map(d=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},vI=(t,e,r,i)=>{let n=r,{minimum:o,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=pt(t);n.type=l?"integer":"number";let f=typeof u=="number"&&u>=(o??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),p=e.target==="draft-04"||e.target==="openapi-3.0";if(f?p?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:typeof o=="number"&&(n.minimum=o),d?p?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof s=="number"&&(n.maximum=s),a){let m=new Set;for(let I of a)Number.isFinite(I)&&I!==0?m.add(Math.abs(I)):dt(t,e,n,i,`A multipleOf divisor of ${I} cannot be represented in JSON Schema`);let[g,...v]=m;g!==void 0&&(n.multipleOf=g),v.length&&(n.allOf=[...n.allOf??[],...v.map(I=>({multipleOf:I}))])}},bI=(t,e,r,i)=>{r.type="boolean"},wI=(t,e,r,i)=>{dt(t,e,r,i,"BigInt cannot be represented in JSON Schema")},_I=(t,e,r,i)=>{dt(t,e,r,i,"Symbols cannot be represented in JSON Schema")},xI=(t,e,r,i)=>{e.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},II=(t,e,r,i)=>{dt(t,e,r,i,"Undefined cannot be represented in JSON Schema")},$I=(t,e,r,i)=>{dt(t,e,r,i,"Void cannot be represented in JSON Schema")},SI=(t,e,r,i)=>{r.not={}},TI=(t,e,r,i)=>{},kI=(t,e,r,i)=>{},AI=(t,e,r,i)=>{dt(t,e,r,i,"Date cannot be represented in JSON Schema")},OI=(t,e,r,i)=>{let n=t._zod.def,o=bc(n.entries);if(o.length===0){r.not={};return}o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),r.enum=o},BI=(t,e,r,i)=>{let n=t._zod.def;if(n.values.length===0){r.not={};return}let o=[];for(let s of n.values)if(s===void 0){if(dt(t,e,r,i,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(dt(t,e,r,i,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){let s=o[0];r.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?r.enum=[s]:r.const=s}else o.every(s=>typeof s=="number")&&(r.type="number"),o.every(s=>typeof s=="string")&&(r.type="string"),o.every(s=>typeof s=="boolean")&&(r.type="boolean"),o.every(s=>s===null)&&(r.type="null"),r.enum=o},DI=(t,e,r,i)=>{dt(t,e,r,i,"NaN cannot be represented in JSON Schema")},NI=(t,e,r,i)=>{let n=r,o=t._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},zI=(t,e,r,i)=>{let n=r;n.type="string",n.format="binary",n.contentEncoding="binary";let{minimum:o,maximum:s,mime:a}=pt(t);o!==void 0&&(n.minLength=o),s!==void 0&&(n.maxLength=s),a&&(a.length===0?n.not={}:a.length===1?n.contentMediaType=a[0]:n.anyOf=a.map(c=>({contentMediaType:c})))},LI=(t,e,r,i)=>{r.type="boolean"},EI=(t,e,r,i)=>{dt(t,e,r,i,"Custom types cannot be represented in JSON Schema")},UI=(t,e,r,i)=>{dt(t,e,r,i,"Function types cannot be represented in JSON Schema")},PI=(t,e,r,i)=>{dt(t,e,r,i,"Transforms cannot be represented in JSON Schema")},FI=(t,e,r,i)=>{dt(t,e,r,i,"Map cannot be represented in JSON Schema")},MI=(t,e,r,i)=>{dt(t,e,r,i,"Set cannot be represented in JSON Schema")},CI=(t,e,r,i)=>{let n=r,o=t._zod.def,{minimum:s,maximum:a}=pt(t);typeof s=="number"&&(n.minItems=s),typeof a=="number"&&(n.maxItems=a),n.type="array",n.items=Ee(o.element,e,{...i,path:[...i.path,"items"]})};RI=(t,e,r,i)=>{let n=r,o=t._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&dt(t,e,n,i,"Symbol keys cannot be represented in JSON Schema"))return;n.type="object",n.properties={};for(let u in s)kt(n.properties,u,Ee(s[u],e,{...i,path:[...i.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=o.shape[u];(e.io==="input"?If(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(n.required=c),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=Ee(o.catchall,e,{...i,path:[...i.path,"additionalProperties"]})):e.io==="output"&&(n.additionalProperties=!1)},Mh=(t,e,r,i)=>{let n=t._zod.def,o=n.inclusive===!1,s=n.options.map((a,c)=>Ee(a,e,{...i,path:[...i.path,o?"oneOf":"anyOf",c]}));o?r.oneOf=s:r.anyOf=s},jI=(t,e,r,i)=>{let n=t._zod.def,o=Ee(n.left,e,{...i,path:[...i.path,"allOf",0]}),s=Ee(n.right,e,{...i,path:[...i.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];r.allOf=c,e.intersections.push(c)},VI=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="array";let s=e.target==="draft-2020-12"?"prefixItems":"items",a=e.target==="draft-2020-12"||e.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((g,v)=>Ee(g,e,{...i,path:[...i.path,s,v]})),u=o.rest?Ee(o.rest,e,{...i,path:[...i.path,a,...e.target==="openapi-3.0"?[o.items.length]:[]]}):null,l=o.items.length;for(;l>0;){let g=o.items[l-1];if(!(e.io==="input"?If(g)!==void 0:g._zod.optout==="optional"))break;l--}let f=o.items.length,d=!o.rest;e.target==="draft-2020-12"?(n.prefixItems=c,d?n.items=!1:u&&(n.items=u),l>0&&(n.minItems=l),d&&(n.maxItems=f)):e.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),l>0&&(n.minItems=l),d&&(n.maxItems=f)):(n.items=c,d?n.additionalItems=!1:u&&(n.additionalItems=u),l>0&&(n.minItems=l),d&&(n.maxItems=f));let{minimum:p,maximum:m}=pt(t);typeof p=="number"&&(n.minItems=p),typeof m=="number"&&(n.maxItems=m)};gI=new WeakMap;ZI=(t,e,r,i)=>{let n=r,o=t._zod.def;n.type="object";let s=o.keyType,a=pt(s).patterns;if(o.mode==="loose"&&a&&a.size>0){let l=Ee(o.valueType,e,{...i,path:[...i.path,"patternProperties","*"]});n.patternProperties={};for(let f of a)kt(n.patternProperties,Lz(f).source,l)}else{if(e.target==="draft-07"||e.target==="draft-2020-12"){n.propertyNames=Ee(o.keyType,e,{...i,path:[...i.path,"propertyNames"]});let l=gI.get(e);l||(l=[],gI.set(e,l),e.deferred.push(()=>cZ(e))),l.push(t)}n.additionalProperties=Ee(o.valueType,e,{...i,path:[...i.path,"additionalProperties"]})}let c=s._zod.values,u=e.io==="input"&&If(o.valueType)!==void 0;if(c&&!o.partial&&!u){let l=[...c].filter(f=>typeof f=="string"||typeof f=="number");l.length>0&&(n.required=l.map(String))}},GI=(t,e,r,i)=>{let n=t._zod.def,o=Ee(n.innerType,e,i),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},WI=(t,e,r,i)=>{let n=t._zod.def;Ee(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},JI=Symbol();KI=(t,e,r,i)=>{let n=t._zod.def;Ee(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let s=Ez(n.defaultValue,t,e,r,i);s!==JI&&(r.default=s)},HI=(t,e,r,i)=>{let n=t._zod.def;Ee(n.innerType,e,i);let o=e.seen.get(t);if(o.ref=n.innerType,e.io!=="input")return;let s=Ez(n.defaultValue,t,e,r,i);s!==JI&&(r._prefault=s)},qI=(t,e,r,i)=>{let n=t._zod.def;Ee(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType;let s;try{s=n.catchValue(void 0)}catch{dt(t,e,r,i,"Dynamic catch values are not supported in JSON Schema");return}r.default=s},YI=(t,e,r,i)=>{let n=t._zod.def,o=n.in._zod.traits.has("$ZodTransform"),s=e.io==="input"?o?n.out:n.in:n.out;Ee(s,e,i);let a=e.seen.get(t);a.ref=s},XI=(t,e,r,i)=>{let n=t._zod.def;Ee(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType,r.readOnly=!0},QI=(t,e,r,i)=>{let n=t._zod.def;Ee(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},Ch=(t,e,r,i)=>{let n=t._zod.def;Ee(n.innerType,e,i);let o=e.seen.get(t);o.ref=n.innerType},e$=(t,e,r,i)=>{let n=t._zod.innerType;Ee(n,e,i);let o=e.seen.get(t);o.ref=n},Fh={string:yI,number:vI,boolean:bI,bigint:wI,symbol:_I,null:xI,undefined:II,void:$I,never:SI,any:TI,unknown:kI,date:AI,enum:OI,literal:BI,nan:DI,template_literal:NI,file:zI,success:LI,custom:EI,function:UI,transform:PI,map:FI,set:MI,array:CI,object:RI,union:Mh,intersection:jI,tuple:VI,record:ZI,nullable:GI,nonoptional:WI,default:KI,prefault:HI,catch:qI,pipe:YI,readonly:XI,promise:QI,optional:Ch,lazy:e$}});var jh,Uz=h(()=>{$f();xf();jh=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let r=e?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ko({processors:Fh,target:r,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,r={path:[],schemaPath:[]}){return Ee(e,this.ctx,r)}emit(e,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Ho(this.ctx,e);let i=qo(this.ctx,e),{"~standard":n,...o}=i;return o}}});var Pz={};var Fz=h(()=>{});var ki={};Ke(ki,{$ZodAny:()=>F0,$ZodArray:()=>V0,$ZodAsyncError:()=>vr,$ZodBase64:()=>T0,$ZodBase64URL:()=>k0,$ZodBigInt:()=>Km,$ZodBigIntFormat:()=>L0,$ZodBoolean:()=>sf,$ZodCIDRv4:()=>$0,$ZodCIDRv6:()=>S0,$ZodCUID:()=>d0,$ZodCUID2:()=>p0,$ZodCatch:()=>cx,$ZodCheck:()=>Ce,$ZodCheckBigIntFormat:()=>F_,$ZodCheckEndsWith:()=>q_,$ZodCheckGreaterThan:()=>Bm,$ZodCheckIncludes:()=>K_,$ZodCheckLengthEquals:()=>Z_,$ZodCheckLessThan:()=>Om,$ZodCheckLowerCase:()=>W_,$ZodCheckMaxLength:()=>j_,$ZodCheckMaxSize:()=>M_,$ZodCheckMimeType:()=>Q_,$ZodCheckMinLength:()=>V_,$ZodCheckMinSize:()=>C_,$ZodCheckMultipleOf:()=>U_,$ZodCheckNumberFormat:()=>P_,$ZodCheckOverwrite:()=>e0,$ZodCheckProperties:()=>X_,$ZodCheckProperty:()=>Y_,$ZodCheckRegex:()=>G_,$ZodCheckSizeEquals:()=>R_,$ZodCheckStartsWith:()=>H_,$ZodCheckStringFormat:()=>Ac,$ZodCheckUpperCase:()=>J_,$ZodCodec:()=>cf,$ZodCreditCard:()=>O0,$ZodCustom:()=>hx,$ZodCustomStringFormat:()=>N0,$ZodCyclicError:()=>th,$ZodDate:()=>j0,$ZodDefault:()=>ix,$ZodDiscriminatedUnion:()=>J0,$ZodE164:()=>A0,$ZodEmail:()=>s0,$ZodEmoji:()=>l0,$ZodEncodeError:()=>Go,$ZodEnum:()=>X0,$ZodError:()=>Kw,$ZodExactOptional:()=>rx,$ZodFile:()=>ex,$ZodFunction:()=>px,$ZodGUID:()=>i0,$ZodIBAN:()=>B0,$ZodIPv4:()=>_0,$ZodIPv6:()=>x0,$ZodISODate:()=>v0,$ZodISODateTime:()=>y0,$ZodISODuration:()=>w0,$ZodISOTime:()=>b0,$ZodIntersection:()=>K0,$ZodJWT:()=>D0,$ZodKSUID:()=>g0,$ZodLazy:()=>uf,$ZodLiteral:()=>Q0,$ZodMAC:()=>I0,$ZodMap:()=>q0,$ZodNaN:()=>ux,$ZodNanoID:()=>f0,$ZodNever:()=>C0,$ZodNonOptional:()=>sx,$ZodNull:()=>P0,$ZodNullable:()=>nx,$ZodNumber:()=>Jm,$ZodNumberFormat:()=>z0,$ZodObject:()=>RB,$ZodObjectJIT:()=>Z0,$ZodOptional:()=>qm,$ZodPipe:()=>Ym,$ZodPrefault:()=>ox,$ZodPreprocess:()=>lx,$ZodPromise:()=>mx,$ZodReadonly:()=>fx,$ZodRealError:()=>br,$ZodRecord:()=>H0,$ZodRegistry:()=>ah,$ZodSet:()=>Y0,$ZodString:()=>ia,$ZodStringFormat:()=>Le,$ZodSuccess:()=>ax,$ZodSymbol:()=>E0,$ZodTemplateLiteral:()=>dx,$ZodTransform:()=>tx,$ZodTuple:()=>Hm,$ZodType:()=>ce,$ZodULID:()=>m0,$ZodURL:()=>u0,$ZodUUID:()=>o0,$ZodUndefined:()=>U0,$ZodUnion:()=>af,$ZodUnknown:()=>M0,$ZodVoid:()=>R0,$ZodXID:()=>h0,$ZodXor:()=>G0,$brand:()=>Gw,$constructor:()=>b,$input:()=>$x,$output:()=>Ix,Doc:()=>na,INVALID:()=>ir,JSONSchema:()=>Pz,JSONSchemaGenerator:()=>jh,NEVER:()=>Zw,TimePrecision:()=>Ex,URL_BAD_FORMAT:()=>a0,URL_UNPARSEABLE:()=>ef,ZodCompileAsyncError:()=>On,ZodCompileUnsupportedError:()=>xe,_any:()=>Xx,_array:()=>oI,_base64:()=>Oh,_base64url:()=>Bh,_bigint:()=>Gx,_boolean:()=>Vx,_catch:()=>X5,_check:()=>bz,_cidrv4:()=>kh,_cidrv6:()=>Ah,_coercedBigint:()=>Wx,_coercedBoolean:()=>Zx,_coercedDate:()=>nI,_coercedNumber:()=>Px,_coercedString:()=>Dx,_creditCard:()=>zx,_cuid:()=>wh,_cuid2:()=>_h,_custom:()=>aI,_date:()=>rI,_decode:()=>vm,_decodeAsync:()=>wm,_default:()=>H5,_discriminatedUnion:()=>P5,_e164:()=>Dh,_email:()=>dh,_emoji:()=>vh,_encode:()=>ym,_encodeAsync:()=>bm,_endsWith:()=>Mc,_enum:()=>V5,_file:()=>sI,_float32:()=>Mx,_float64:()=>Cx,_gt:()=>Jn,_gte:()=>Rr,_guid:()=>ph,_iban:()=>Lx,_includes:()=>Pc,_int:()=>Fx,_int32:()=>Rx,_int64:()=>Jx,_intersection:()=>F5,_ipv4:()=>Sh,_ipv6:()=>Th,_isoDate:()=>vf,_isoDateTime:()=>yf,_isoDuration:()=>wf,_isoTime:()=>bf,_jwt:()=>Nh,_ksuid:()=>$h,_lazy:()=>rZ,_length:()=>fa,_literal:()=>G5,_lowercase:()=>Ec,_lt:()=>Wn,_lte:()=>Cr,_mac:()=>Nx,_map:()=>R5,_max:()=>Cr,_maxLength:()=>la,_maxSize:()=>Jo,_mime:()=>Rc,_min:()=>Rr,_minLength:()=>Ti,_minSize:()=>Kn,_multipleOf:()=>Wo,_nan:()=>iI,_nanoid:()=>bh,_nativeEnum:()=>Z5,_negative:()=>Lh,_never:()=>eI,_nonnegative:()=>Uh,_nonoptional:()=>q5,_nonpositive:()=>Eh,_normalize:()=>jc,_null:()=>Yx,_nullable:()=>K5,_number:()=>Ux,_optional:()=>J5,_overwrite:()=>Bn,_parse:()=>$c,_parseAsync:()=>Sc,_pipe:()=>Q5,_positive:()=>zh,_promise:()=>nZ,_properties:()=>Cc,_property:()=>Ph,_readonly:()=>eZ,_record:()=>C5,_refine:()=>cI,_regex:()=>Lc,_safeDecode:()=>xm,_safeDecodeAsync:()=>$m,_safeEncode:()=>_m,_safeEncodeAsync:()=>Im,_safeParse:()=>Tc,_safeParseAsync:()=>kc,_set:()=>j5,_size:()=>ua,_slugify:()=>Wc,_startsWith:()=>Fc,_string:()=>Bx,_stringFormat:()=>da,_stringbool:()=>dI,_success:()=>Y5,_superRefine:()=>uI,_symbol:()=>Hx,_templateLiteral:()=>tZ,_toLowerCase:()=>Zc,_toUpperCase:()=>Gc,_transform:()=>W5,_trim:()=>Vc,_tuple:()=>M5,_uint32:()=>jx,_uint64:()=>Kx,_ulid:()=>xh,_undefined:()=>qx,_union:()=>E5,_unknown:()=>Qx,_uppercase:()=>Uc,_url:()=>gf,_uuid:()=>mh,_uuidv4:()=>hh,_uuidv6:()=>gh,_uuidv7:()=>yh,_void:()=>tI,_xid:()=>Ih,_xor:()=>U5,base64Charset:()=>jm,base64urlCharset:()=>of,canParseURL:()=>c0,clone:()=>ze,compile:()=>Ax,compileFn:()=>lh,config:()=>it,createStandardJSONSchemaMethod:()=>Jc,createToJSONSchemaMethod:()=>mI,decode:()=>Mj,decodeAsync:()=>Rj,describe:()=>lI,encode:()=>Fj,encodeAsync:()=>Cj,extractDefs:()=>Ho,finalize:()=>qo,flattenError:()=>Wl,formatError:()=>Jl,getDiscriminatedOption:()=>W0,globalConfig:()=>yt,globalRegistry:()=>At,handleUnrepresentable:()=>dt,initializeContext:()=>Ko,isBackEdge:()=>nh,isRecursiveSchema:()=>rh,isValidBase64:()=>nf,isValidBase64URL:()=>Vm,isValidCIDRv6:()=>Rm,isValidCreditCard:()=>Zm,isValidIBAN:()=>Gm,isValidIPv6:()=>rf,isValidJWT:()=>Wm,locales:()=>mf,memoizer:()=>df,mergeValues:()=>Oc,meta:()=>fI,parse:()=>hm,parseAsync:()=>gm,parseURLObject:()=>FB,prettifyError:()=>qw,process:()=>Ee,processSchema:()=>Ee,regexes:()=>sn,registry:()=>ch,safeDecode:()=>Vj,safeDecodeAsync:()=>Gj,safeEncode:()=>jj,safeEncodeAsync:()=>Zj,safeParse:()=>zj,safeParseAsync:()=>Lj,standardProps:()=>Pm,stripTabAndNewline:()=>tf,toDotPath:()=>yB,toJSONSchema:()=>Rh,toZod:()=>Pl,treeifyError:()=>Hw,urlHostnameOk:()=>Mm,urlProtocolOk:()=>Cm,util:()=>$,validate:()=>Kl,validateAsync:()=>Hl,validateURL:()=>Fm,version:()=>t0,withParser:()=>uh});var jr=h(()=>{Zo();Xw();Yw();Bc();vx();Dm();r0();E();E();ra();xx();hf();Nm();vz();wz();xf();$f();Uz();Fz()});var Vh={};Ke(Vh,{endsWith:()=>Mc,gt:()=>Jn,gte:()=>Rr,includes:()=>Pc,length:()=>fa,lowercase:()=>Ec,lt:()=>Wn,lte:()=>Cr,maxLength:()=>la,maxSize:()=>Jo,mime:()=>Rc,minLength:()=>Ti,minSize:()=>Kn,multipleOf:()=>Wo,negative:()=>Lh,nonnegative:()=>Uh,nonpositive:()=>Eh,normalize:()=>jc,overwrite:()=>Bn,positive:()=>zh,properties:()=>Cc,property:()=>Ph,regex:()=>Lc,size:()=>ua,slugify:()=>Wc,startsWith:()=>Fc,toLowerCase:()=>Zc,toUpperCase:()=>Gc,trim:()=>Vc,uppercase:()=>Uc});var Zh=h(()=>{jr()});function Gh(t,e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get(){let i=r(this);return Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,e,{value:i,configurable:!0,writable:!0})}})}var Mz,Cz,lZ,wr,t$=h(()=>{jr();jr();E();Mz=new WeakSet([Object.prototype,Error.prototype]);Cz=(t,e)=>{Kw.init(t,e),t.name="ZodError";let r=Object.getPrototypeOf(t);Mz.has(r)||(Mz.add(r),Gh(r,"format",i=>n=>Jl(i,n)),Gh(r,"flatten",i=>n=>Wl(i,n)),Gh(r,"addIssue",i=>n=>{i.issues.push(n),i.message=JSON.stringify(i.issues,wc,2)}),Gh(r,"addIssues",i=>n=>{i.issues.push(...n),i.message=JSON.stringify(i.issues,wc,2)}),Object.defineProperty(r,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},lZ=b("ZodError",Cz),wr=b("ZodError",Cz,void 0,{Parent:Error})});var r$,n$,i$,o$,s$,a$,c$,u$,l$,f$,d$,p$,m$=h(()=>{jr();t$();jr();r$=$c(wr),n$=Sc(wr),i$=Tc(wr),o$=kc(wr),s$=ym(wr),a$=vm(wr),c$=bm(wr),u$=wm(wr),l$=_m(wr),f$=xm(wr),d$=Im(wr),p$=$m(wr)});var nu={};Ke(nu,{ZodAny:()=>$$,ZodArray:()=>A$,ZodBase64:()=>cg,ZodBase64URL:()=>ug,ZodBigInt:()=>tu,ZodBigIntFormat:()=>dg,ZodBoolean:()=>eu,ZodCIDRv4:()=>sg,ZodCIDRv6:()=>ag,ZodCUID:()=>Qh,ZodCUID2:()=>eg,ZodCatch:()=>H$,ZodCodec:()=>Lf,ZodCreditCard:()=>g$,ZodCustom:()=>Ef,ZodCustomStringFormat:()=>ga,ZodDate:()=>Af,ZodDefault:()=>V$,ZodDiscriminatedUnion:()=>B$,ZodE164:()=>lg,ZodEmail:()=>Hh,ZodEmoji:()=>Yh,ZodEnum:()=>Yc,ZodExactOptional:()=>gg,ZodFile:()=>M$,ZodFunction:()=>oS,ZodGUID:()=>qh,ZodIBAN:()=>y$,ZodIPv4:()=>ig,ZodIPv6:()=>og,ZodISODate:()=>Xo,ZodISODateTime:()=>Yo,ZodISODuration:()=>es,ZodISOTime:()=>Qo,ZodInstanceOf:()=>cS,ZodIntersection:()=>D$,ZodJWT:()=>fg,ZodKSUID:()=>ng,ZodLazy:()=>rS,ZodLiteral:()=>F$,ZodMAC:()=>h$,ZodMap:()=>U$,ZodNaN:()=>Y$,ZodNanoID:()=>Xh,ZodNever:()=>T$,ZodNonOptional:()=>yg,ZodNull:()=>x$,ZodNullable:()=>j$,ZodNumber:()=>Qc,ZodNumberFormat:()=>ya,ZodObject:()=>Bf,ZodOptional:()=>Nf,ZodPipe:()=>zf,ZodPrefault:()=>G$,ZodPreprocess:()=>X$,ZodPromise:()=>iS,ZodReadonly:()=>Q$,ZodRecord:()=>qc,ZodSet:()=>P$,ZodString:()=>Xc,ZodStringFormat:()=>Fe,ZodSuccess:()=>K$,ZodSymbol:()=>w$,ZodTemplateLiteral:()=>tS,ZodTransform:()=>C$,ZodTuple:()=>z$,ZodType:()=>me,ZodULID:()=>tg,ZodURL:()=>kf,ZodUUID:()=>Hn,ZodUndefined:()=>_$,ZodUnion:()=>Df,ZodUnknown:()=>S$,ZodVoid:()=>k$,ZodXID:()=>rg,ZodXor:()=>O$,_ZodString:()=>Kh,_default:()=>Z$,_function:()=>q6,any:()=>k6,array:()=>Of,base64:()=>a6,base64url:()=>c6,bigint:()=>x6,boolean:()=>b$,catch:()=>q$,check:()=>Y6,cidrv4:()=>o6,cidrv6:()=>s6,codec:()=>W6,creditCard:()=>l6,cuid:()=>Yz,cuid2:()=>Xz,currencyCode:()=>g6,custom:()=>X6,date:()=>O6,describe:()=>Q6,discriminatedUnion:()=>E6,e164:()=>u6,email:()=>Rz,emoji:()=>Hz,enum:()=>mg,exactOptional:()=>R$,file:()=>j6,float32:()=>v6,float64:()=>b6,function:()=>q6,guid:()=>jz,hash:()=>y6,hex:()=>h6,hostname:()=>m6,httpUrl:()=>Kz,iban:()=>f6,instanceof:()=>t4,int:()=>Wh,int32:()=>w6,int64:()=>I6,intersection:()=>N$,invertCodec:()=>J6,ipv4:()=>r6,ipv6:()=>i6,json:()=>n4,jwt:()=>d6,keyof:()=>B6,ksuid:()=>t6,lazy:()=>nS,literal:()=>R6,looseObject:()=>z6,looseRecord:()=>P6,mac:()=>n6,map:()=>F6,meta:()=>e4,nan:()=>G6,nanoid:()=>qz,nativeEnum:()=>C6,never:()=>pg,nonoptional:()=>J$,null:()=>I$,nullable:()=>Tf,nullish:()=>V6,number:()=>v$,object:()=>D6,optional:()=>ma,partialRecord:()=>U6,pipe:()=>Jh,prefault:()=>W$,preprocess:()=>i4,promise:()=>H6,readonly:()=>eS,record:()=>E$,refine:()=>sS,set:()=>M6,strictObject:()=>N6,string:()=>Sf,stringFormat:()=>p6,stringbool:()=>r4,success:()=>Z6,superRefine:()=>aS,symbol:()=>S6,templateLiteral:()=>K6,transform:()=>hg,tuple:()=>L$,uint32:()=>_6,uint64:()=>$6,ulid:()=>Qz,undefined:()=>T6,union:()=>ru,unknown:()=>pa,url:()=>Jz,uuid:()=>Vz,uuidv4:()=>Zz,uuidv6:()=>Gz,uuidv7:()=>Wz,void:()=>A6,xid:()=>e6,xor:()=>L6});function dZ(){yt.localeError||it(ih())}function ha(){yt.memoizer||it({memoizer:df()})}function Sf(t){return Bx(Xc,t)}function Rz(t){return dh(Hh,t)}function jz(t){return ph(qh,t)}function Vz(t){return mh(Hn,t)}function Zz(t){return hh(Hn,t)}function Gz(t){return gh(Hn,t)}function Wz(t){return yh(Hn,t)}function Jz(t){return gf(kf,t)}function Kz(t){return gf(kf,{protocol:ql,hostname:b_,...$.normalizeParams(t)})}function Hz(t){return vh(Yh,t)}function qz(t){return bh(Xh,t)}function Yz(t){return wh(Qh,t)}function Xz(t){return _h(eg,t)}function Qz(t){return xh(tg,t)}function e6(t){return Ih(rg,t)}function t6(t){return $h(ng,t)}function r6(t){return Sh(ig,t)}function n6(t){return Nx(h$,t)}function i6(t){return Th(og,t)}function o6(t){return kh(sg,t)}function s6(t){return Ah(ag,t)}function a6(t){return Oh(cg,t)}function c6(t){return Bh(ug,t)}function u6(t){return Dh(lg,t)}function l6(t){return zx(g$,t)}function f6(t){return Lx(y$,t)}function d6(t){return Nh(fg,t)}function p6(t,e,r={}){return da(ga,t,e,r)}function m6(t){return da(ga,"hostname",v_,t)}function h6(t){return da(ga,"hex",z_,t)}function g6(t){return da(ga,"currency_code",__,t)}function y6(t,e){let r=e?.enc??"hex",i=`${t}_${r}`,n=sn[i];if(!n)throw new Error(`Unrecognized hash format: ${i}`);return da(ga,i,n,e)}function v$(t){return Ux(Qc,t)}function Wh(t){return Fx(ya,t)}function v6(t){return Mx(ya,t)}function b6(t){return Cx(ya,t)}function w6(t){return Rx(ya,t)}function _6(t){return jx(ya,t)}function b$(t){return Vx(eu,t)}function x6(t){return Gx(tu,t)}function I6(t){return Jx(dg,t)}function $6(t){return Kx(dg,t)}function S6(t){return Hx(w$,t)}function T6(t){return qx(_$,t)}function I$(t){return Yx(x$,t)}function k6(){return Xx($$)}function pa(){return Qx(S$)}function pg(t){return eI(T$,t)}function A6(t){return tI(k$,t)}function O6(t){return rI(Af,t)}function Of(t,e){return oI(A$,t,e)}function B6(t){let e=t._zod.def.shape;return mg(Object.keys(e))}function D6(t,e){let r={type:"object",shape:t??{},...$.normalizeParams(e)};return new Bf(r)}function N6(t,e){return new Bf({type:"object",shape:t,catchall:pg(),...$.normalizeParams(e)})}function z6(t,e){return new Bf({type:"object",shape:t,catchall:pa(),...$.normalizeParams(e)})}function ru(t,e){return new Df({type:"union",options:t,...$.normalizeParams(e)})}function L6(t,e){return new O$({type:"union",options:t,inclusive:!1,...$.normalizeParams(e)})}function E6(t,e,r){return new B$({type:"union",options:e,discriminator:t,...$.normalizeParams(r)})}function N$(t,e){return new D$({type:"intersection",left:t,right:e})}function L$(t,e,r){let i=e instanceof ce,n=i?r:e,o=i?e:null;return new z$({type:"tuple",items:t,rest:o,...$.normalizeParams(n)})}function E$(t,e,r){return!e||!e._zod?new qc({type:"record",keyType:Sf(),valueType:t,...$.normalizeParams(e)}):new qc({type:"record",keyType:t,valueType:e,...$.normalizeParams(r)})}function U6(t,e,r){return new qc({type:"record",keyType:t,valueType:e,...$.normalizeParams(r),partial:!0})}function P6(t,e,r){return new qc({type:"record",keyType:t,valueType:e,mode:"loose",...$.normalizeParams(r)})}function F6(t,e,r){return new U$({type:"map",keyType:t,valueType:e,...$.normalizeParams(r)})}function M6(t,e){return new P$({type:"set",valueType:t,...$.normalizeParams(e)})}function mg(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new Yc({type:"enum",entries:r,...$.normalizeParams(e)})}function C6(t,e){return new Yc({type:"enum",entries:t,...$.normalizeParams(e)})}function R6(t,e){return new F$({type:"literal",values:Array.isArray(t)?t:[t],...$.normalizeParams(e)})}function j6(t){return sI(M$,t)}function hg(t){return new C$({type:"transform",transform:t})}function ma(t){return new Nf({type:"optional",innerType:t})}function R$(t){return new gg({type:"optional",innerType:t})}function Tf(t){return new j$({type:"nullable",innerType:t})}function V6(t){return ma(Tf(t))}function Z$(t,e){return new V$({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():$.shallowClone(e)}})}function W$(t,e){return new G$({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():$.shallowClone(e)}})}function J$(t,e){return new yg({type:"nonoptional",innerType:t,...$.normalizeParams(e)})}function Z6(t){return new K$({type:"success",innerType:t})}function q$(t,e){return new H$({type:"catch",innerType:t,catchValue:typeof e=="function"?e:$.constantCatch(e)})}function G6(t){return iI(Y$,t)}function Jh(t,e){return new zf({type:"pipe",in:t,out:e})}function W6(t,e,r){return new Lf({type:"pipe",in:t,out:e,transform:r.decode,reverseTransform:r.encode})}function J6(t){let e=t._zod.def;return new Lf({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}function eS(t){return new Q$({type:"readonly",innerType:t})}function K6(t,e){return new tS({type:"template_literal",parts:t,...$.normalizeParams(e)})}function nS(t){return new rS({type:"lazy",getter:t})}function H6(t){return new iS({type:"promise",innerType:t})}function q6(t){return new oS({type:"function",input:Array.isArray(t?.input)?L$(t?.input):t?.input??Of(pa()),output:t?.output??pa()})}function Y6(t){let e=new Ce({check:"custom"});return e._zod.check=t,e}function X6(t,e){return aI(Ef,t??(()=>!0),e)}function sS(t,e={}){return cI(Ef,t,e)}function aS(t,e){return uI(t,e)}function t4(t,e={}){let r=new cS({type:"custom",check:"custom",fn:i=>i instanceof t,abort:!0,...$.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=i=>{i.value instanceof t||i.issues.push({code:"invalid_type",expected:t.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}function n4(t){let e=nS(()=>ru([Sf(t),v$(),b$(),I$(),Of(e),E$(Sf(),e)]));return e}function i4(t,e){return new X$({type:"pipe",in:hg(t),out:e})}var me,Kh,Xc,Fe,Yo,Xo,Qo,es,Hh,qh,Hn,kf,Yh,Xh,Qh,eg,tg,rg,ng,ig,h$,og,sg,ag,cg,ug,lg,g$,y$,fg,ga,Qc,ya,eu,tu,dg,w$,_$,x$,$$,S$,T$,k$,Af,A$,Bf,Df,O$,B$,D$,z$,qc,U$,P$,Yc,F$,M$,C$,Nf,gg,j$,V$,G$,yg,K$,H$,Y$,zf,Lf,X$,Q$,tS,rS,iS,oS,Ef,Q6,e4,cS,r4,ts=h(()=>{jr();jr();$f();ra();xf();bx();Zh();m$();me=b("ZodType",(t,e)=>(dZ(),ce.init(t,e),t.def=e,t.type=e.type,t),{check(...t){let e=this.def;return this.clone($.mergeDefs(e,{checks:[...e.checks??[],...t.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,e){return ze(this,t,e)},brand(){return this},register(t,e){return t.add(this,e),this},refine(t,e){return this.check(sS(t,e))},superRefine(t,e){return this.check(aS(t,e))},overwrite(t){return this.check(Bn(t))},optional(){return ma(this)},exactOptional(){return R$(this)},nullable(){return Tf(this)},nullish(){return ma(Tf(this))},nonoptional(t){return J$(this,t)},array(){return Of(this)},or(t){return ru([this,t])},and(t){return N$(this,t)},transform(t){return Jh(this,hg(t))},default(t){return Z$(this,t)},prefault(t){return W$(this,t)},catch(t){return q$(this,t)},pipe(t){return Jh(this,t)},readonly(){return eS(this)},describe(t){let e=this.clone();return At.add(e,{description:t}),e},meta(...t){if(t.length===0)return At.get(this);let e=this.clone();return At.add(e,t[0]),e},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...e){return e.length===0?t(this):t(this,...e)},get"~standard"(){return $.hide(this,"~standard",{...Pm(this),jsonSchema:{input:Jc(this,"input"),output:Jc(this,"output")}})},set"~standard"(t){$.own(this,"~standard",t)},parse:function t(e,r){return r$(this,e,r,{callee:t})},parseAsync:async function t(e,r){return await n$(this,e,r,{callee:t})},safeParse(t,e){return i$(this,t,e)},async safeParseAsync(t,e){return o$(this,t,e)},get spa(){return this?.safeParseAsync},set spa(t){$.own(this,"spa",t)},validate(t,e){return Kl(this,t,e)},validateAsync(t,e){return Hl(this,t,e)},encode:function t(e,r){return s$(this,e,r,{callee:t})},decode:function t(e,r){return a$(this,e,r,{callee:t})},encodeAsync:async function t(e,r){return await c$(this,e,r,{callee:t})},decodeAsync:async function t(e,r){return await u$(this,e,r,{callee:t})},safeEncode(t,e){return l$(this,t,e)},safeDecode(t,e){return f$(this,t,e)},async safeEncodeAsync(t,e){return d$(this,t,e)},async safeDecodeAsync(t,e){return p$(this,t,e)},toJSONSchema(t){return mI(this,{})(t)},get description(){return At.get(this)?.description},get _def(){return this._zod.def}}),Kh=b("_ZodString",(t,e)=>{ia.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>yI(t,r,i,n)},$.derived({format:t=>pt(t).format??null,minLength:t=>pt(t).minimum??null,maxLength:t=>pt(t).maximum??null},{regex(...t){return this.check(Lc(...t))},includes(...t){return this.check(Pc(...t))},startsWith(...t){return this.check(Fc(...t))},endsWith(...t){return this.check(Mc(...t))},min(...t){return this.check(Ti(...t))},max(...t){return this.check(la(...t))},length(...t){return this.check(fa(...t))},nonempty(...t){return this.check(Ti(1,...t))},lowercase(t){return this.check(Ec(t))},uppercase(t){return this.check(Uc(t))},trim(){return this.check(Vc())},normalize(...t){return this.check(jc(...t))},toLowerCase(){return this.check(Zc())},toUpperCase(){return this.check(Gc())},slugify(){return this.check(Wc())}})),Xc=b("ZodString",(t,e)=>{ia.init(t,e),Kh.init(t,e)},{email(t){return this.check(dh(Hh,t))},url(t){return this.check(gf(kf,t))},jwt(t){return this.check(Nh(fg,t))},emoji(t){return this.check(vh(Yh,t))},guid(t){return this.check(ph(qh,t))},uuid(t){return this.check(mh(Hn,t))},uuidv4(t){return this.check(hh(Hn,t))},uuidv6(t){return this.check(gh(Hn,t))},uuidv7(t){return this.check(yh(Hn,t))},nanoid(t){return this.check(bh(Xh,t))},cuid(t){return this.check(wh(Qh,t))},cuid2(t){return this.check(_h(eg,t))},ulid(t){return this.check(xh(tg,t))},base64(t){return this.check(Oh(cg,t))},base64url(t){return this.check(Bh(ug,t))},xid(t){return this.check(Ih(rg,t))},ksuid(t){return this.check($h(ng,t))},ipv4(t){return this.check(Sh(ig,t))},ipv6(t){return this.check(Th(og,t))},cidrv4(t){return this.check(kh(sg,t))},cidrv6(t){return this.check(Ah(ag,t))},e164(t){return this.check(Dh(lg,t))},datetime(t){return this.check(yf(Yo,t))},date(t){return this.check(vf(Xo,t))},time(t){return this.check(bf(Qo,t))},duration(t){return this.check(wf(es,t))}});Fe=b("ZodStringFormat",(t,e)=>{Le.init(t,e),Kh.init(t,e)}),Yo=b("ZodISODateTime",(t,e)=>{y0.init(t,e),Fe.init(t,e)}),Xo=b("ZodISODate",(t,e)=>{v0.init(t,e),Fe.init(t,e)}),Qo=b("ZodISOTime",(t,e)=>{b0.init(t,e),Fe.init(t,e)}),es=b("ZodISODuration",(t,e)=>{w0.init(t,e),Fe.init(t,e)}),Hh=b("ZodEmail",(t,e)=>{s0.init(t,e),Fe.init(t,e)});qh=b("ZodGUID",(t,e)=>{i0.init(t,e),Fe.init(t,e)});Hn=b("ZodUUID",(t,e)=>{o0.init(t,e),Fe.init(t,e)});kf=b("ZodURL",(t,e)=>{u0.init(t,e),Fe.init(t,e)});Yh=b("ZodEmoji",(t,e)=>{l0.init(t,e),Fe.init(t,e)});Xh=b("ZodNanoID",(t,e)=>{f0.init(t,e),Fe.init(t,e)});Qh=b("ZodCUID",(t,e)=>{d0.init(t,e),Fe.init(t,e)});eg=b("ZodCUID2",(t,e)=>{p0.init(t,e),Fe.init(t,e)});tg=b("ZodULID",(t,e)=>{m0.init(t,e),Fe.init(t,e)});rg=b("ZodXID",(t,e)=>{h0.init(t,e),Fe.init(t,e)});ng=b("ZodKSUID",(t,e)=>{g0.init(t,e),Fe.init(t,e)});ig=b("ZodIPv4",(t,e)=>{_0.init(t,e),Fe.init(t,e)});h$=b("ZodMAC",(t,e)=>{I0.init(t,e),Fe.init(t,e)});og=b("ZodIPv6",(t,e)=>{x0.init(t,e),Fe.init(t,e)});sg=b("ZodCIDRv4",(t,e)=>{$0.init(t,e),Fe.init(t,e)});ag=b("ZodCIDRv6",(t,e)=>{S0.init(t,e),Fe.init(t,e)});cg=b("ZodBase64",(t,e)=>{T0.init(t,e),Fe.init(t,e)});ug=b("ZodBase64URL",(t,e)=>{k0.init(t,e),Fe.init(t,e)});lg=b("ZodE164",(t,e)=>{A0.init(t,e),Fe.init(t,e)});g$=b("ZodCreditCard",(t,e)=>{O0.init(t,e),Fe.init(t,e)});y$=b("ZodIBAN",(t,e)=>{B0.init(t,e),Fe.init(t,e)});fg=b("ZodJWT",(t,e)=>{D0.init(t,e),Fe.init(t,e)});ga=b("ZodCustomStringFormat",(t,e)=>{N0.init(t,e),Fe.init(t,e)});Qc=b("ZodNumber",(t,e)=>{Jm.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>vI(t,r,i,n),t.isFinite=!0},$.derived({minValue:t=>{let{minimum:e,exclusiveMinimum:r}=pt(t);return Math.max(e??Number.NEGATIVE_INFINITY,r??Number.NEGATIVE_INFINITY)},maxValue:t=>{let{maximum:e,exclusiveMaximum:r}=pt(t);return Math.min(e??Number.POSITIVE_INFINITY,r??Number.POSITIVE_INFINITY)},isInt:t=>{let{isInt:e,multipleOf:r}=pt(t);return!!e||!!r?.some(Number.isSafeInteger)},format:t=>pt(t).format??null},{gt(t,e){return this.check(Jn(t,e))},gte(t,e){return this.check(Rr(t,e))},min(t,e){return this.check(Rr(t,e))},lt(t,e){return this.check(Wn(t,e))},lte(t,e){return this.check(Cr(t,e))},max(t,e){return this.check(Cr(t,e))},int(t){return this.check(Wh(t))},safe(t){return this.check(Wh(t))},positive(t){return this.check(Jn(0,t))},nonnegative(t){return this.check(Rr(0,t))},negative(t){return this.check(Wn(0,t))},nonpositive(t){return this.check(Cr(0,t))},multipleOf(t,e){return this.check(Wo(t,e))},step(t,e){return this.check(Wo(t,e))},finite(){return this}}));ya=b("ZodNumberFormat",(t,e)=>{z0.init(t,e),Qc.init(t,e)});eu=b("ZodBoolean",(t,e)=>{sf.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>bI(t,r,i,n)});tu=b("ZodBigInt",(t,e)=>{Km.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>wI(t,r,i,n)},$.derived({minValue:t=>pt(t).minimum??null,maxValue:t=>pt(t).maximum??null,format:t=>pt(t).format??null},{gte(t,e){return this.check(Rr(t,e))},min(t,e){return this.check(Rr(t,e))},gt(t,e){return this.check(Jn(t,e))},lt(t,e){return this.check(Wn(t,e))},lte(t,e){return this.check(Cr(t,e))},max(t,e){return this.check(Cr(t,e))},positive(t){return this.check(Jn(BigInt(0),t))},negative(t){return this.check(Wn(BigInt(0),t))},nonpositive(t){return this.check(Cr(BigInt(0),t))},nonnegative(t){return this.check(Rr(BigInt(0),t))},multipleOf(t,e){return this.check(Wo(t,e))}}));dg=b("ZodBigIntFormat",(t,e)=>{L0.init(t,e),tu.init(t,e)});w$=b("ZodSymbol",(t,e)=>{E0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>_I(t,r,i,n)});_$=b("ZodUndefined",(t,e)=>{U0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>II(t,r,i,n)});x$=b("ZodNull",(t,e)=>{P0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>xI(t,r,i,n)});$$=b("ZodAny",(t,e)=>{F0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>TI(t,r,i,n)});S$=b("ZodUnknown",(t,e)=>{M0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>kI(t,r,i,n)});T$=b("ZodNever",(t,e)=>{C0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>SI(t,r,i,n)});k$=b("ZodVoid",(t,e)=>{R0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>$I(t,r,i,n)});Af=b("ZodDate",(t,e)=>{j0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>AI(t,r,i,n),t.min=(r,i)=>t.check(Rr(r,i)),t.max=(r,i)=>t.check(Cr(r,i))},$.derived({minDate:t=>{let{minimum:e}=pt(t);return e?new Date(e):null},maxDate:t=>{let{maximum:e}=pt(t);return e?new Date(e):null}},{}));A$=b("ZodArray",(t,e)=>{ha(),V0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>CI(t,r,i,n),t.element=e.element},{min(t,e){return this.check(Ti(t,e))},nonempty(t){return this.check(Ti(1,t))},max(t,e){return this.check(la(t,e))},length(t,e){return this.check(fa(t,e))},unwrap(){return this.element}});Bf=b("ZodObject",(t,e)=>{ha(),Z0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>RI(t,r,i,n),$.installLazyProp(t,"shape",r=>r._zod.def.shape,!1)},{keyof(){return mg(Object.keys(this._zod.def.shape))},catchall(t){return this.clone($.mergeDefs(this._zod.def,{catchall:t}))},passthrough(){return this.clone($.mergeDefs(this._zod.def,{catchall:pa()}))},loose(){return this.clone($.mergeDefs(this._zod.def,{catchall:pa()}))},strict(){return this.clone($.mergeDefs(this._zod.def,{catchall:pg()}))},strip(){return this.clone($.mergeDefs(this._zod.def,{catchall:void 0}))},extend(t){return $.extend(this,t)},safeExtend(t){return $.safeExtend(this,t)},merge(t){return $.merge(this,t)},pick(t){return $.pick(this,t)},omit(t){return $.omit(this,t)},partial(...t){return $.partial(Nf,this,t[0])},exactPartial(...t){return $.partial(gg,this,t[0],"exactPartial")},required(...t){return $.required(yg,this,t[0])}});Df=b("ZodUnion",(t,e)=>{af.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Mh(t,r,i,n),t.options=e.options});O$=b("ZodXor",(t,e)=>{Df.init(t,e),G0.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Mh(t,r,i,n),t.options=e.options});B$=b("ZodDiscriminatedUnion",(t,e)=>{Df.init(t,e),J0.init(t,e)});D$=b("ZodIntersection",(t,e)=>{K0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>jI(t,r,i,n)});z$=b("ZodTuple",(t,e)=>{ha(),Hm.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>VI(t,r,i,n)},{rest(t){return this.clone({...this._zod.def,rest:t})},partial(){let t=this._zod.def;if(t.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...t,items:t.items.map(e=>new Nf({type:"optional",innerType:e}))})}});qc=b("ZodRecord",(t,e)=>{ha(),H0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>ZI(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType});U$=b("ZodMap",(t,e)=>{ha(),q0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>FI(t,r,i,n),t.keyType=e.keyType,t.valueType=e.valueType,t.min=(...r)=>t.check(Kn(...r)),t.nonempty=r=>t.check(Kn(1,r)),t.max=(...r)=>t.check(Jo(...r)),t.size=(...r)=>t.check(ua(...r))});P$=b("ZodSet",(t,e)=>{ha(),Y0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>MI(t,r,i,n),t.min=(...r)=>t.check(Kn(...r)),t.nonempty=r=>t.check(Kn(1,r)),t.max=(...r)=>t.check(Jo(...r)),t.size=(...r)=>t.check(ua(...r))});Yc=b("ZodEnum",(t,e)=>{X0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(i,n,o)=>OI(t,i,n,o),t.enum=e.entries,t.options=[...t._zod.values];let r=new Set(Object.keys(e.entries));t.extract=(i,n)=>{let o={};for(let s of i)if(r.has(s))o[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Yc({...e,checks:[],...$.normalizeParams(n),entries:o})},t.exclude=(i,n)=>{let o={...e.entries};for(let s of i)if(r.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Yc({...e,checks:[],...$.normalizeParams(n),entries:o})}});F$=b("ZodLiteral",(t,e)=>{Q0.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>BI(t,r,i,n),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});M$=b("ZodFile",(t,e)=>{ex.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>zI(t,r,i,n),t.min=(r,i)=>t.check(Kn(r,i)),t.max=(r,i)=>t.check(Jo(r,i)),t.mime=(r,i)=>t.check(Rc(Array.isArray(r)?r:[r],i))});C$=b("ZodTransform",(t,e)=>{ha(),tx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>PI(t,r,i,n),t._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Go(t.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push($.issue(o,r.value,e));else{let s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=r.value),s.inst??(s.inst=t),r.issues.push($.issue(s))}};let n=e.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});Nf=b("ZodOptional",(t,e)=>{qm.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ch(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});gg=b("ZodExactOptional",(t,e)=>{rx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>Ch(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});j$=b("ZodNullable",(t,e)=>{nx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>GI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});V$=b("ZodDefault",(t,e)=>{ix.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>KI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});G$=b("ZodPrefault",(t,e)=>{ox.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>HI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});yg=b("ZodNonOptional",(t,e)=>{sx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>WI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});K$=b("ZodSuccess",(t,e)=>{ax.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>LI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});H$=b("ZodCatch",(t,e)=>{cx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>qI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});Y$=b("ZodNaN",(t,e)=>{ux.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>DI(t,r,i,n)});zf=b("ZodPipe",(t,e)=>{Ym.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>YI(t,r,i,n),t.in=e.in,t.out=e.out});Lf=b("ZodCodec",(t,e)=>{zf.init(t,e),cf.init(t,e)});X$=b("ZodPreprocess",(t,e)=>{zf.init(t,e),lx.init(t,e)}),Q$=b("ZodReadonly",(t,e)=>{fx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>XI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});tS=b("ZodTemplateLiteral",(t,e)=>{dx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>NI(t,r,i,n)});rS=b("ZodLazy",(t,e)=>{uf.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>e$(t,r,i,n),t.unwrap=()=>t._zod.def.getter()});iS=b("ZodPromise",(t,e)=>{mx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>QI(t,r,i,n),t.unwrap=()=>t._zod.def.innerType});oS=b("ZodFunction",(t,e)=>{px.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>UI(t,r,i,n)});Ef=b("ZodCustom",(t,e)=>{hx.init(t,e),me.init(t,e),t._zod.processJSONSchema=(r,i,n)=>EI(t,r,i,n)});Q6=lI,e4=fI,cS=b("ZodInstanceOf",(t,e)=>{Ef.init(t,e)},{properties(t,e){return this.check(Cc(t,e))}});r4=(...t)=>dI({Codec:Lf,Boolean:eu,String:Xc},...t)});function mZ(t){it({customError:t})}function hZ(){return it().customError}var pZ,uS,o4=h(()=>{jr();pZ={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};uS||(uS={})});var Uf={};Ke(Uf,{ZodISODate:()=>Xo,ZodISODateTime:()=>Yo,ZodISODuration:()=>es,ZodISOTime:()=>Qo,date:()=>yZ,datetime:()=>gZ,duration:()=>bZ,time:()=>vZ});function gZ(t){return yf(Yo,t)}function yZ(t){return vf(Xo,t)}function vZ(t){return bf(Qo,t)}function bZ(t){return wf(es,t)}var vg=h(()=>{jr();ts();ts()});function _Z(t,e){let r=t.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":e??"draft-2020-12"}function s4(t,e){return t.map((r,i)=>i<e?r:r.optional())}function xZ(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function IZ(t,e){if(!t.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=t.slice(1).split("/").filter(Boolean);if(r.length===0)return e.rootSchema;let i=e.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){let n=r[1]===void 0?void 0:xZ(r[1]);if(!n||!e.defs[n])throw new Error(`Reference not found: ${t}`);return e.defs[n]}throw new Error(`Reference not found: ${t}`)}function $Z(t,e){return P.transform(i=>i).check(i=>{let n=i.value;if(typeof n!="object"||n===null||Array.isArray(n))return;let o=Object.getOwnPropertyNames(n);if(e.minProperties!==void 0&&o.length<e.minProperties&&i.issues.push({origin:"object",code:"too_small",minimum:e.minProperties,inclusive:!0,message:`Too small: expected object to have >=${e.minProperties} properties`,input:n,inst:t,continue:!0}),e.maxProperties!==void 0&&o.length>e.maxProperties&&i.issues.push({origin:"object",code:"too_big",maximum:e.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${e.maxProperties} properties`,input:n,inst:t,continue:!0}),e.keySchema)for(let s of o){let a=e.keySchema.safeParse(s);a.success||i.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(t)}function lS(t,e){if(t===null)return"z";let r=typeof t;if(r!=="object"){if(r==="number"&&Number.isNaN(t))return null;let i=String(t);return`${r[0]}${i.length}:${i}`}if(e.has(t))return null;e.add(t);try{if(Array.isArray(t)){let o=[];for(let s of t){let a=lS(s,e);if(a===null)return null;o.push(a)}return`a${o.length}:[${o.join(",")}]`}let i=Object.keys(t).sort(),n=[];for(let o of i){let s=lS(t[o],e);if(s===null)return null;n.push(`${o.length}:${o}=${s}`)}return`o${n.length}:{${n.join(",")}}`}finally{e.delete(t)}}function Pf(t){return typeof t!="object"||t===null?!1:Array.isArray(t)?t.some(Pf):typeof t.$ref=="string"?!0:Object.entries(t).some(([e,r])=>SZ.has(e)?Pf(r):!TZ.has(e)||typeof r!="object"||r===null?!1:Object.values(r).some(Pf))}function a4(t){return t===1?"element":"elements"}function kZ(t,e){return P.transform(i=>i).check(i=>{let n=i.value;if(Array.isArray(n)){if(e.uniqueItems===!0){let o=new Map;for(let s=0;s<n.length;s++){let a=lS(n[s],new Set);if(a===null)continue;let c=o.get(a);if(c===void 0){o.set(a,s);continue}i.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:n,path:[s],continue:!0})}}if(e.containsSchema){let o=e.minContains??1,s=e.maxContains!==void 0?e.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of n)if(e.containsSchema.safeParse(c).success&&++a>=s)break;a<o&&i.issues.push({code:"custom",message:`Array must contain at least ${o} matching ${a4(o)}; found ${a}`,input:n,continue:!0}),e.maxContains!==void 0&&a>e.maxContains&&i.issues.push({code:"custom",message:`Array must contain at most ${e.maxContains} matching ${a4(e.maxContains)}`,input:n,continue:!0})}}}).pipe(t)}function c4(t,e){if(t!==!1)return t===void 0||t===!0?P.any():sr(t,e)}function u4(t,e){if(t.not!==void 0){if(typeof t.not=="object"&&Object.keys(t.not).length===0)return P.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(t.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(t.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(t.if!==void 0||t.then!==void 0||t.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(t.dependentSchemas!==void 0||t.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){let n=t.$ref;if(e.refs.has(n))return e.refs.get(n);if(e.processing.has(n))return P.lazy(()=>{if(!e.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return e.refs.get(n)});e.processing.add(n);let o=IZ(n,e),s=sr(o,e);return e.refs.set(n,s),e.processing.delete(n),s}if(t.enum!==void 0){let n=t.enum;if(e.version==="openapi-3.0"&&t.nullable===!0&&n.length===1&&n[0]===null)return P.null();if(n.length===0)return P.never();if(n.length===1)return P.literal(n[0]);if(n.every(s=>typeof s=="string"))return P.enum(n);let o=n.map(s=>P.literal(s));return o.length<2?o[0]:P.union([o[0],o[1],...o.slice(2)])}if(t.const!==void 0)return P.literal(t.const);let r=t.type;if(Array.isArray(r)){let n=r.map(o=>{let s={...t,type:o};return u4(s,e)});return n.length===0?P.never():n.length===1?n[0]:P.union(n)}if(!r)return P.any();let i;switch(r){case"string":{let n=P.string();if(t.format){let o=t.format;o==="email"?n=n.check(P.email()):o==="uri"||o==="uri-reference"?n=n.check(P.url()):o==="uuid"||o==="guid"?n=n.check(P.uuid()):o==="date-time"?n=n.check(P.iso.datetime({offset:!0})):o==="date"?n=n.check(P.iso.date()):o==="time"?n=n.check(P.regex(AZ)):o==="duration"?n=n.check(P.iso.duration()):o==="hostname"?n=n.check(P.hostname()):o==="ipv4"?n=n.check(P.ipv4()):o==="ipv6"?n=n.check(P.ipv6()):o==="mac"?n=n.check(P.mac()):o==="cidr"?n=n.check(P.cidrv4()):o==="cidr-v6"?n=n.check(P.cidrv6()):o==="base64"?n=n.check(P.base64()):o==="base64url"?n=n.check(P.base64url()):o==="e164"?n=n.check(P.e164()):o==="credit_card"?n=n.check(P.creditCard()):o==="iban"?n=n.check(P.iban()):o==="jwt"?n=n.check(P.jwt()):o==="emoji"?n=n.check(P.emoji()):o==="nanoid"?n=n.check(P.nanoid()):o==="cuid"?n=n.check(P.cuid()):o==="cuid2"?n=n.check(P.cuid2()):o==="ulid"?n=n.check(P.ulid()):o==="xid"?n=n.check(P.xid()):o==="ksuid"&&(n=n.check(P.ksuid()))}typeof t.minLength=="number"&&(n=n.min(t.minLength)),typeof t.maxLength=="number"&&(n=n.max(t.maxLength)),t.pattern&&(n=n.regex(new RegExp(t.pattern))),i=n;break}case"number":case"integer":{let n=r==="integer"?P.number().int():P.number();typeof t.minimum=="number"&&t.exclusiveMinimum!==!0&&(n=n.min(t.minimum)),typeof t.maximum=="number"&&t.exclusiveMaximum!==!0&&(n=n.max(t.maximum)),typeof t.exclusiveMinimum=="number"?n=n.gt(t.exclusiveMinimum):t.exclusiveMinimum===!0&&typeof t.minimum=="number"&&(n=n.gt(t.minimum)),typeof t.exclusiveMaximum=="number"?n=n.lt(t.exclusiveMaximum):t.exclusiveMaximum===!0&&typeof t.maximum=="number"&&(n=n.lt(t.maximum)),typeof t.multipleOf=="number"&&(n=n.multipleOf(t.multipleOf)),i=n;break}case"boolean":{i=P.boolean();break}case"null":{i=P.null();break}case"object":{let n={},o=t.properties||{},s=new Set(t.required||[]),a=typeof t.additionalProperties=="object"?sr(t.additionalProperties,e):void 0;for(let[f,d]of Object.entries(o)){let p=sr(d,e);kt(n,f,s.has(f)?p:p.optional())}if(t.patternProperties){let f=t.patternProperties,d=Object.keys(f),p=[];for(let g of d){let v=sr(f[g],e),I=P.string().regex(new RegExp(g));p.push(P.looseRecord(I,v))}let m=[];if(Object.keys(n).length>0&&m.push(P.object(n).passthrough()),m.push(...p),m.length===0)i=P.object({}).passthrough();else if(m.length===1)i=m[0];else{let g=P.intersection(m[0],m[1]);for(let v=2;v<m.length;v++)g=P.intersection(g,m[v]);i=g}if(t.additionalProperties===!1){let g=Object.keys(n),v=d.map(A=>new RegExp(A)),I=i;i=i.check(A=>{if(!nn(A.value))return;let _=[];for(let x of Object.keys(A.value))g.includes(x)||v.some(O=>O.test(x))||_.push(x);_.length&&A.issues.push({code:"unrecognized_keys",keys:_,input:A.value,inst:I})})}}else{let f=P.object(n);t.additionalProperties===!1?i=f.strict():a?i=f.catchall(a):i=f.passthrough()}let c=t.propertyNames!==void 0&&t.propertyNames!==!0,u=typeof t.minProperties=="number"?t.minProperties:void 0,l=typeof t.maxProperties=="number"?t.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let f;if(c){let d=typeof t.propertyNames=="object"&&t.propertyNames.type===void 0?{type:"string",...t.propertyNames}:t.propertyNames;f=sr(d,e)}i=$Z(i,{keySchema:f,minProperties:u,maxProperties:l})}break}case"array":{let n=t.prefixItems,o=t.items;if(n&&Array.isArray(n)){let s=typeof t.minItems=="number"?t.minItems:0,a=n.map(f=>sr(f,e)),c=s4(a,s),u=Array.isArray(o)?void 0:c4(o,e),l=P.tuple(c);i=u?l.rest(u):l,typeof t.minItems=="number"&&(i=i.check(P.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(P.maxLength(t.maxItems)))}else if(Array.isArray(o)){let s=typeof t.minItems=="number"?t.minItems:0,a=o.map(f=>sr(f,e)),c=s4(a,s),u=c4(t.additionalItems,e),l=P.tuple(c);i=u?l.rest(u):l,typeof t.minItems=="number"&&(i=i.check(P.minLength(t.minItems))),typeof t.maxItems=="number"&&(i=i.check(P.maxLength(t.maxItems)))}else if(o!==void 0){let s=sr(o,e),a=P.array(s);typeof t.minItems=="number"&&(a=a.min(t.minItems)),typeof t.maxItems=="number"&&(a=a.max(t.maxItems)),i=a}else i=P.array(P.any());(t.uniqueItems===!0||t.contains!==void 0)&&(i=kZ(i,{uniqueItems:t.uniqueItems===!0,containsSchema:t.contains!==void 0?sr(t.contains,e):void 0,minContains:typeof t.minContains=="number"?t.minContains:void 0,maxContains:typeof t.maxContains=="number"?t.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${r}`)}return i}function sr(t,e){if(typeof t=="boolean")return t?P.any():P.never();let r=u4(t,e),i=t.type||t.enum!==void 0||t.const!==void 0;if(t.anyOf&&Array.isArray(t.anyOf)){let a=t.anyOf.map(u=>sr(u,e)),c=P.union(a);r=i?P.intersection(r,c):c}if(t.oneOf&&Array.isArray(t.oneOf)){let a=t.oneOf.map(u=>sr(u,e)),c=P.xor(a);r=i?P.intersection(r,c):c}if(t.allOf&&Array.isArray(t.allOf))if(t.allOf.length===0)r=i?r:P.any();else{let a=i?r:sr(t.allOf[0],e),c=i?0:1;for(let u=c;u<t.allOf.length;u++)a=P.intersection(a,sr(t.allOf[u],e));r=a}t.nullable===!0&&e.version==="openapi-3.0"&&(r=P.nullable(r)),t.readOnly===!0&&(r=P.readonly(r)),t.default!==void 0&&(r=r.default(t.default));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of o)a in t&&(n[a]=t[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in t&&(n[a]=t[a]);if(t.type==="object"&&t.$ref===void 0){t.propertyNames!==void 0&&!Pf(t.propertyNames)&&(n.propertyNames=t.propertyNames);for(let a of["minProperties","maxProperties"])t[a]!==void 0&&(n[a]=t[a])}if(t.type==="array"&&t.$ref===void 0){t.contains!==void 0&&!Pf(t.contains)&&(n.contains=t.contains);for(let a of["uniqueItems","minContains","maxContains"])t[a]!==void 0&&(n[a]=t[a])}for(let a of Object.keys(t))wZ.has(a)||kt(n,a,t[a]);return Object.keys(n).length>0&&e.registry.add(r,n),t.description&&(r=r.describe(t.description)),r}function l4(t,e){if(typeof t=="boolean")return t?P.any():P.never();let r;try{r=JSON.parse(JSON.stringify(t))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=_Z(r,e?.defaultTarget),n=r.$defs||r.definitions||{},o={version:i,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:e?.registry??At};return sr(r,o)}var P,wZ,SZ,TZ,AZ,f4=h(()=>{hf();E();Zh();vg();ts();P={...nu,...Vh,iso:Uf},wZ=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);SZ=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),TZ=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);AZ=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/});function Ff(t,e){let r=typeof e=="function"?e:(s,a)=>{let c=e[s._zod.def.type];return c?c(s,a):s},i=new Map;function n(s){let a=i.get(s);if(a===d4)return new uf({type:"lazy",getter:()=>i.get(s)});if(a!==void 0)return a;i.set(s,d4);let c=o(s),u=r(c,c!==s);return i.set(s,u),u}function o(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),f=!1,d={};for(let m of l){let g=n(u[m]);g!==u[m]&&(f=!0),d[m]=g}let p=a.catchall;return a.catchall&&(p=n(a.catchall),p!==a.catchall&&(f=!0)),f?ze(s,{...a,shape:d,catchall:p}):s}case"array":{let u=n(a.element);return u===a.element?s:ze(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,f=[];for(let p of u){let m=n(p);m!==p&&(l=!0),f.push(m)}let d=a.rest;return a.rest&&(d=n(a.rest),d!==a.rest&&(l=!0)),l?ze(s,{...a,items:f,rest:d}):s}case"record":case"map":{let u=n(a.keyType),l=n(a.valueType);return u===a.keyType&&l===a.valueType?s:ze(s,{...a,keyType:u,valueType:l})}case"set":{let u=n(a.valueType);return u===a.valueType?s:ze(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,f=[];for(let d of u){let p=n(d);p!==d&&(l=!0),f.push(p)}return l?ze(s,{...a,options:f}):s}case"intersection":{let u=n(a.left),l=n(a.right);return u===a.left&&l===a.right?s:ze(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=n(a.innerType);return u===a.innerType?s:ze(s,{...a,innerType:u})}case"pipe":{let u=n(a.in),l=n(a.out);return u===a.in&&l===a.out?s:ze(s,{...a,in:u,out:l})}case"function":{let u=n(a.input),l=n(a.output);return u===a.input&&l===a.output?s:ze(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...f}=a;return ze(s,{...f,getter:()=>n(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return n(t)}var d4,fS=h(()=>{Bc();E();d4=Symbol("z.visit/resolving")});function p4(t){return Ff(t,{object:e=>e.partial(),union:e=>{let r=e._zod.def;return r.discriminator===void 0?e:ru(r.options)}})}var m4=h(()=>{fS();ts()});function OZ(t,e){if(!e?.length)return t;let r=t._zod.def;return ze(t,An(r,{checks:[...r.checks??[],...e]}),{parent:!0})}function h4(t){return OZ(t.out,t.checks)}function BZ(t){return t.in._zod.traits.has("$ZodTransform")?h4(t):t.in}function g4(t){return Ff(t,{pipe:e=>BZ(e._zod.def),default:(e,r)=>r?ma(e._zod.def.innerType):e,catch:(e,r)=>r?e._zod.def.innerType:e})}function y4(t){return Ff(t,{pipe:e=>h4(e._zod.def),prefault:(e,r)=>r?e._zod.def.innerType:e})}var v4=h(()=>{E();fS();ts()});var dS={};Ke(dS,{bigint:()=>LZ,boolean:()=>zZ,date:()=>EZ,number:()=>NZ,string:()=>DZ});function DZ(t){return Dx(Xc,t)}function NZ(t){return Px(Qc,t)}function zZ(t){return Zx(eu,t)}function LZ(t){return Wx(tu,t)}function EZ(t){return nI(Af,t)}var b4=h(()=>{jr();ts()});var oe={};Ke(oe,{$brand:()=>Gw,$input:()=>$x,$output:()=>Ix,INVALID:()=>ir,NEVER:()=>Zw,TimePrecision:()=>Ex,ZodAny:()=>$$,ZodArray:()=>A$,ZodBase64:()=>cg,ZodBase64URL:()=>ug,ZodBigInt:()=>tu,ZodBigIntFormat:()=>dg,ZodBoolean:()=>eu,ZodCIDRv4:()=>sg,ZodCIDRv6:()=>ag,ZodCUID:()=>Qh,ZodCUID2:()=>eg,ZodCatch:()=>H$,ZodCodec:()=>Lf,ZodCompileAsyncError:()=>On,ZodCompileUnsupportedError:()=>xe,ZodCreditCard:()=>g$,ZodCustom:()=>Ef,ZodCustomStringFormat:()=>ga,ZodDate:()=>Af,ZodDefault:()=>V$,ZodDiscriminatedUnion:()=>B$,ZodE164:()=>lg,ZodEmail:()=>Hh,ZodEmoji:()=>Yh,ZodEnum:()=>Yc,ZodError:()=>lZ,ZodExactOptional:()=>gg,ZodFile:()=>M$,ZodFirstPartyTypeKind:()=>uS,ZodFunction:()=>oS,ZodGUID:()=>qh,ZodIBAN:()=>y$,ZodIPv4:()=>ig,ZodIPv6:()=>og,ZodISODate:()=>Xo,ZodISODateTime:()=>Yo,ZodISODuration:()=>es,ZodISOTime:()=>Qo,ZodInstanceOf:()=>cS,ZodIntersection:()=>D$,ZodIssueCode:()=>pZ,ZodJWT:()=>fg,ZodKSUID:()=>ng,ZodLazy:()=>rS,ZodLiteral:()=>F$,ZodMAC:()=>h$,ZodMap:()=>U$,ZodNaN:()=>Y$,ZodNanoID:()=>Xh,ZodNever:()=>T$,ZodNonOptional:()=>yg,ZodNull:()=>x$,ZodNullable:()=>j$,ZodNumber:()=>Qc,ZodNumberFormat:()=>ya,ZodObject:()=>Bf,ZodOptional:()=>Nf,ZodPipe:()=>zf,ZodPrefault:()=>G$,ZodPreprocess:()=>X$,ZodPromise:()=>iS,ZodReadonly:()=>Q$,ZodRealError:()=>wr,ZodRecord:()=>qc,ZodSet:()=>P$,ZodString:()=>Xc,ZodStringFormat:()=>Fe,ZodSuccess:()=>K$,ZodSymbol:()=>w$,ZodTemplateLiteral:()=>tS,ZodTransform:()=>C$,ZodTuple:()=>z$,ZodType:()=>me,ZodULID:()=>tg,ZodURL:()=>kf,ZodUUID:()=>Hn,ZodUndefined:()=>_$,ZodUnion:()=>Df,ZodUnknown:()=>S$,ZodVoid:()=>k$,ZodXID:()=>rg,ZodXor:()=>O$,_ZodString:()=>Kh,_default:()=>Z$,_function:()=>q6,any:()=>k6,array:()=>Of,base64:()=>a6,base64url:()=>c6,bigint:()=>x6,boolean:()=>b$,catch:()=>q$,check:()=>Y6,cidrv4:()=>o6,cidrv6:()=>s6,clone:()=>ze,codec:()=>W6,coerce:()=>dS,compile:()=>Ax,config:()=>it,core:()=>ki,creditCard:()=>l6,cuid:()=>Yz,cuid2:()=>Xz,currencyCode:()=>g6,custom:()=>X6,date:()=>O6,decode:()=>a$,decodeAsync:()=>u$,deepPartial:()=>p4,describe:()=>Q6,discriminatedUnion:()=>E6,e164:()=>u6,email:()=>Rz,emoji:()=>Hz,encode:()=>s$,encodeAsync:()=>c$,endsWith:()=>Mc,enum:()=>mg,exactOptional:()=>R$,file:()=>j6,flattenError:()=>Wl,float32:()=>v6,float64:()=>b6,formatError:()=>Jl,fromJSONSchema:()=>l4,function:()=>q6,getDiscriminatedOption:()=>W0,getErrorMap:()=>hZ,globalRegistry:()=>At,gt:()=>Jn,gte:()=>Rr,guid:()=>jz,hash:()=>y6,hex:()=>h6,hostname:()=>m6,httpUrl:()=>Kz,iban:()=>f6,includes:()=>Pc,input:()=>g4,instanceof:()=>t4,int:()=>Wh,int32:()=>w6,int64:()=>I6,intersection:()=>N$,invertCodec:()=>J6,ipv4:()=>r6,ipv6:()=>i6,iso:()=>Uf,json:()=>n4,jwt:()=>d6,keyof:()=>B6,ksuid:()=>t6,lazy:()=>nS,length:()=>fa,literal:()=>R6,locales:()=>mf,looseObject:()=>z6,looseRecord:()=>P6,lowercase:()=>Ec,lt:()=>Wn,lte:()=>Cr,mac:()=>n6,map:()=>F6,maxLength:()=>la,maxSize:()=>Jo,memoizer:()=>df,meta:()=>e4,mime:()=>Rc,minLength:()=>Ti,minSize:()=>Kn,multipleOf:()=>Wo,nan:()=>G6,nanoid:()=>qz,nativeEnum:()=>C6,negative:()=>Lh,never:()=>pg,nonnegative:()=>Uh,nonoptional:()=>J$,nonpositive:()=>Eh,normalize:()=>jc,null:()=>I$,nullable:()=>Tf,nullish:()=>V6,number:()=>v$,object:()=>D6,optional:()=>ma,output:()=>y4,overwrite:()=>Bn,parse:()=>r$,parseAsync:()=>n$,partialRecord:()=>U6,pipe:()=>Jh,positive:()=>zh,prefault:()=>W$,preprocess:()=>i4,prettifyError:()=>qw,promise:()=>H6,properties:()=>Cc,property:()=>Ph,readonly:()=>eS,record:()=>E$,refine:()=>sS,regex:()=>Lc,regexes:()=>sn,registry:()=>ch,safeDecode:()=>f$,safeDecodeAsync:()=>p$,safeEncode:()=>l$,safeEncodeAsync:()=>d$,safeParse:()=>i$,safeParseAsync:()=>o$,set:()=>M6,setErrorMap:()=>mZ,size:()=>ua,slugify:()=>Wc,startsWith:()=>Fc,strictObject:()=>N6,string:()=>Sf,stringFormat:()=>p6,stringbool:()=>r4,success:()=>Z6,superRefine:()=>aS,symbol:()=>S6,templateLiteral:()=>K6,toJSONSchema:()=>Rh,toLowerCase:()=>Zc,toUpperCase:()=>Gc,toZod:()=>Pl,transform:()=>hg,treeifyError:()=>Hw,trim:()=>Vc,tuple:()=>L$,uint32:()=>_6,uint64:()=>$6,ulid:()=>Qz,undefined:()=>T6,union:()=>ru,unknown:()=>pa,uppercase:()=>Uc,url:()=>Jz,util:()=>$,uuid:()=>Vz,uuidv4:()=>Zz,uuidv6:()=>Gz,uuidv7:()=>Wz,validate:()=>Kl,validateAsync:()=>Hl,void:()=>A6,withParser:()=>uh,xid:()=>e6,xor:()=>L6});var pS=h(()=>{jr();ts();Zh();t$();m$();o4();jr();$f();f4();m4();v4();xx();vg();vg();b4()});var w4=h(()=>{pS();pS()});var UZ,PZ,FZ,hS,mS,_4,x4,I4=h(()=>{"use strict";w4();UZ=oe.object({id:oe.string().optional(),description:oe.string().optional(),fields:oe.record(oe.string(),oe.string()).optional(),minzoom:oe.number().optional(),maxzoom:oe.number().optional()}).passthrough(),PZ=oe.object({attribute:oe.string().optional(),type:oe.string().optional(),min:oe.number().optional(),max:oe.number().optional(),count:oe.number().nonnegative().optional(),values:oe.array(oe.unknown()).optional()}).passthrough(),FZ=oe.object({layer:oe.string().optional(),count:oe.number().nonnegative().optional(),geometry:oe.string().optional(),attributeCount:oe.number().nonnegative().optional(),attributes:oe.array(PZ).optional()}).passthrough(),hS=oe.object({layerCount:oe.number().nonnegative().optional(),layers:oe.array(FZ).optional()}).passthrough(),mS=oe.union([oe.array(oe.number()),oe.string()]),_4=oe.union([oe.number(),oe.string()]),x4=oe.object({tilejson:oe.string().optional(),name:oe.string().optional(),description:oe.string().optional(),version:oe.string().optional(),scheme:oe.enum(["xyz","tms"]).optional(),tiles:oe.array(oe.string()).optional(),bounds:mS.optional(),antimeridian_adjusted_bounds:mS.optional(),center:mS.optional(),minzoom:_4.optional(),maxzoom:_4.optional(),attribution:oe.string().optional(),legend:oe.string().optional(),vector_layers:oe.array(UZ).optional(),tilestats:hS.optional(),json:oe.string().optional(),generator:oe.string().optional(),generator_options:oe.string().optional()}).passthrough()});function gS(t,e){if(!t||typeof t!="object"||Array.isArray(t))return null;let r=x4.parse(t),i={name:r.name||"",description:r.description||"",...r.scheme?{scheme:r.scheme}:{}};if(typeof r.generator=="string"&&(i.generator=r.generator),typeof r.generator_options=="string"&&(i.generatorOptions=r.generator_options),i.boundingBox=$4(r.bounds)||$4(r.antimeridian_adjusted_bounds),i.center=ZZ(r.center),i.maxZoom=S4(r.maxzoom),i.minZoom=S4(r.minzoom),typeof r.json=="string")try{i.metaJson=JSON.parse(r.json)}catch{}let n=r.tilestats||i.metaJson?.tilestats,o=RZ(n,e),s=MZ(r.vector_layers),a=VZ(s,o);return i={...i,layers:a},i.maxZoom===null&&a.length>0&&(i.maxZoom=a[0].maxZoom||null),i.minZoom===null&&a.length>0&&(i.minZoom=a[0].minZoom||null),i}function MZ(t){return Array.isArray(t)?t.map(e=>CZ(e)):[]}function CZ(t){let e=Object.entries(t.fields||[]).map(([i,n])=>({name:i,...B4(String(n))})),r={...t};return delete r.fields,{name:t.id||"",...r,fields:e}}function RZ(t,e){let r=hS.safeParse(t);return r.success&&Array.isArray(r.data?.layers)?r.data.layers.map(i=>jZ(i,e)):[]}function jZ(t,e){let r=[],i={},n=t.attributes||[];for(let o of n){let s=o.attribute;if(typeof s=="string")if(s.split("|").length>1){let a=s.split("|")[0];i[a]=i[a]||[],i[a].push(o)}else r[s]||r.push(WZ(o,e))}return{name:t.layer||"",dominantGeometry:t.geometry,fields:r}}function VZ(t,e){return t.map(r=>{let i=e.find(s=>s.name===r.name),n=i?.fields||r.fields||[],o={...r,...i,fields:n};return o.schema=oB(o),o})}function $4(t){let e=O4(t);if(Array.isArray(e)&&e.length===4&&[e[0],e[2]].every(A4)&&[e[1],e[3]].every(k4))return[[e[0],e[1]],[e[2],e[3]]]}function ZZ(t){let e=O4(t);return Array.isArray(e)&&e.length===3&&A4(e[0])&&k4(e[1])&&GZ(e[2])?e:null}function S4(t){let e=typeof t=="string"?parseFloat(t):typeof t=="number"?t:null;return e===null||Number.isNaN(e)?null:e}function k4(t){return Number.isFinite(t)&&t<=90&&t>=-90}function A4(t){return Number.isFinite(t)&&t<=180&&t>=-180}function GZ(t){return Number.isFinite(t)&&t>=0&&t<=22}function O4(t){return typeof t=="string"?t.split(",").map(parseFloat):Array.isArray(t)?t:null}function WZ(t={},e){let r=B4(t.type),i={name:t.attribute,...r};return typeof t.min=="number"&&(i.min=t.min),typeof t.max=="number"&&(i.max=t.max),typeof t.count=="number"&&(i.uniqueValueCount=t.count),t.values&&(i.values=t.values),i.values&&typeof e.maxValues=="number"&&(i.values=i.values?.slice(0,e.maxValues)),i}function B4(t){let e=t.toLowerCase();return!e||T4[e],T4[e]||{type:"string"}}var T4,D4=h(()=>{"use strict";sB();I4();T4={number:{type:"float32"},numeric:{type:"float32"},string:{type:"utf8"},vachar:{type:"utf8"},float:{type:"float32"},int:{type:"int32"},int4:{type:"int32"},boolean:{type:"boolean"},bool:{type:"boolean"}}});var N4,z4=h(()=>{"use strict";N4={name:"Mapbox Vector Tile",id:"mvt",module:"tiles",encoding:"protobuf",format:"mvt",extensions:["mvt","pbf"],mimeTypes:["application/vnd.mapbox-vector-tile","application/x-protobuf"],category:"geometry"}});function L4(t,e={}){return JZ(t)?qZ(t,e):KZ(t)?E4(t,e):HZ(t)?U4(t,e):wg(t,e)}function JZ(t){return"batches"in t}function KZ(t){return"schema"in t&&"data"in t&&!Array.isArray(t.data)}function HZ(t){return"data"in t&&Array.isArray(t.data)}function qZ(t,e){let r=t.batches.map(i=>E4(i,e));return new ve(t.schema,r)}function E4(t,e){return new le(t.schema,wg(t.data,e))}function wg(t,e){let r=t.children.map(o=>wg(o,e)),i=t.dictionary?U4(t.dictionary,e):void 0,n={[Te.OFFSET]:bg(t.buffers[Te.OFFSET],e),[Te.DATA]:bg(t.buffers[Te.DATA],e),[Te.VALIDITY]:bg(t.buffers[Te.VALIDITY],e),[Te.TYPE]:bg(t.buffers[Te.TYPE],e)};return new W(t.type,t.offset,t.length,t._nullCount,n,r,i)}function U4(t,e){return new F(t.data.map(r=>wg(r,e)))}function bg(t,e){return!YZ(t)||e.copy==="none"||e.copy!=="all"&&t.byteOffset===0&&t.byteLength===t.buffer.byteLength?t:t.slice()}function YZ(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var yS=h(()=>{"use strict";_i()});function P4(t,e){let r=L4(t,e);return{shape:"arrow-table",transport:"arrow-js",schema:Xp(r.schema),batches:r.batches.map(i=>XZ(i))}}function F4(t){let e=Qp(t.schema),r=t.batches.map(i=>new le(e,bS(i.data)));return new ve(e,r)}function XZ(t){return{data:vS(t.data)}}function vS(t){return{type:Al(t.type),offset:t.offset,length:t.length,nullCount:t._nullCount,buffers:{[Te.OFFSET]:t.buffers[Te.OFFSET],[Te.DATA]:t.buffers[Te.DATA],[Te.VALIDITY]:t.buffers[Te.VALIDITY],[Te.TYPE]:t.buffers[Te.TYPE]},children:t.children.map(e=>vS(e)),dictionary:t.dictionary?QZ(t.dictionary):void 0}}function QZ(t){return{data:t.data.map(e=>vS(e))}}function bS(t){let e=t.children.map(i=>bS(i)),r=t.dictionary?eG(t.dictionary):void 0;return new W(Ol(t.type),t.offset,t.length,t.nullCount,t.buffers,e,r)}function eG(t){return new F(t.data.map(e=>bS(e)))}var M4=h(()=>{"use strict";_i();em();yS()});var C4=h(()=>{"use strict";M4();yS()});var R4=h(()=>{"use strict";C4()});function _g(t,e){if(tG(t)){let r=nG(e);return{...t,data:P4(t.data,r?{copy:r}:void 0)}}return t}function xg(t){return rG(t)?{...t,data:F4(t.data)}:t}function tG(t){let e=t;return!!(e&&typeof e=="object"&&e.shape==="arrow-table"&&e.data&&"batches"in e.data)}function rG(t){let e=t;return!!(e&&typeof e=="object"&&e.shape==="arrow-table"&&e.data&&e.data.transport==="arrow-js")}function nG(t){return t?.core?.workerTransferBufferCopy??t?.workerTransferBufferCopy}var wS=h(()=>{"use strict";R4()});function H4(t,e){let r=$S(e);if(r==="geoarrow.geometry"||r==="optimized")return oG(t,e,r);let i=uG(t,e),n=lG(t,e),o=new $n(n);for(let s of i)o.addObjectRow(s);return o.finishTable()}function oG(t,e,r){let i=t.map(Me=>Me.geometry||null),n=q4(i),o=r==="geoarrow.geometry"?r:sG(i),s=o==="geoarrow.geometry"?Y4(i,n):_S(i,o,n),a=e?.geometryColumnName||IS,c=t.map(Me=>{let Ve=SS(Me.properties);return TS(Ve,a),Ve}),u=e?.propertySchema||Q4(c),l=Eo(u),f=n==="xy"?"":` ${n.slice(2).toUpperCase()}`,d={encoding:o,geometry_types:[...new Set(sc(i).map(Me=>`${Me.split(" ")[0]}${f}`))]},m=nc(l.metadata)?.columns[a],g=m?{...m}:d,v=m?{...m}:d;if(eL(e?.crs)){let Me=tL(e.crs);g.geojson_crs=e.crs,v.geojson_crs=e.crs,Me&&(g.crs=Me.projjson,v.crs=Me.projjson,v.crs_type="projjson")}let I=new C(a,s.type,!0,new Map([["ARROW:extension:name",o],["ARROW:extension:metadata",JSON.stringify(v)]])),A=[...l.fields,I],_=new Map(l.metadata||[]);_.set("geo",JSON.stringify({version:$g,primary_column:a,columns:{[a]:g}}));let x=new se(A,_),O=new $n(u);for(let Me of c)O.addObjectRow(Me);let R=O.finishTable().data.batches[0],Ue=A.map((Me,Ve)=>Ve<l.fields.length?R?.getChildAt(Ve)?.data[0]:s.data[0]),we=U({type:new ue(A),length:t.length,nullCount:0,children:Ue});return{shape:"arrow-table",schema:Ks(x),data:new ve(x,[new le(x,we)])}}function $S(t){return t?.geoarrow?.encodingPreference??t?.encodingPreference}function sG(t){let e=new Set(t.filter(Boolean).map(r=>r.type));if(e.size===0||e.has("GeometryCollection"))return"geoarrow.geometry";if(e.size===1)return xS([...e][0]);if(e.size===2){if(e.has("Point")&&e.has("MultiPoint"))return"geoarrow.multipoint";if(e.has("LineString")&&e.has("MultiLineString"))return"geoarrow.multilinestring";if(e.has("Polygon")&&e.has("MultiPolygon"))return"geoarrow.multipolygon"}return"geoarrow.geometry"}function q4(t){let e=!1,r=!1;for(let i of t){if(!i)continue;let n=qp(i);if(e||=!!n.hasZ,r||=!!n.hasM,i.type==="GeometryCollection"){let o=q4(i.geometries);e||=o==="xyz"||o==="xyzm",r||=o==="xym"||o==="xyzm"}}return e?r?"xyzm":"xyz":r?"xym":"xy"}function _S(t,e,r){let i=t.map(o=>o?s=>aG(s,o,e):null),n=xi.buildGeometryArray(i,{encoding:e,dimension:r});return qt(xi.makeGeometryData(n))}function Y4(t,e,r=!0){let i=new Map,n=[],o=[],s="Point",a=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon",...r?["GeometryCollection"]:[]];for(let d of a)i.set(d,[]);for(let d of t){let p=d?.type||s,m=i.get(p)||[];o.push(m.length),n.push(Ig(p,e)),m.push(d),i.set(p,m)}let c=[...i.keys()].sort((d,p)=>Ig(d,e)-Ig(p,e)),u=c.map(d=>new C(cG(d,e),d==="GeometryCollection"?Z4(i.get(d),e).type:_S(i.get(d),xS(d),e).type,!0)),l=c.map(d=>d==="GeometryCollection"?Z4(i.get(d),e).data[0]:_S(i.get(d),xS(d),e).data[0]),f=new zr(c.map(d=>Ig(d,e)),u);return qt(U({type:f,length:t.length,nullCount:0,typeIds:Int8Array.from(n),valueOffsets:Int32Array.from(o),children:l}))}function Z4(t,e){let r=[],i=[0];for(let s of t)s?.type==="GeometryCollection"&&X4(r,s.geometries),i.push(r.length);let n=Y4(r,e,!1),o=new rt(new C("geometries",n.type,!0));return qt(U({type:o,length:t.length,nullCount:0,valueOffsets:Int32Array.from(i),child:n.data[0]}))}function X4(t,e){for(let r of e)r?.type==="GeometryCollection"?X4(t,r.geometries):t.push(r)}function aG(t,e,r){let i=qp(e);switch(e.type){case"Point":r==="geoarrow.multipoint"&&t.beginMultiPoint(1),t.beginPoint(),Sg(t,e.coordinates,i);return;case"MultiPoint":t.beginMultiPoint(e.coordinates.length);for(let n of e.coordinates)t.beginPoint(),Sg(t,n,i);return;case"LineString":r==="geoarrow.multilinestring"&&t.beginMultiLineString(1),G4(t,e.coordinates,i);return;case"MultiLineString":t.beginMultiLineString(e.coordinates.length);for(let n of e.coordinates)G4(t,n,i);return;case"Polygon":r==="geoarrow.multipolygon"&&t.beginMultiPolygon(1),W4(t,e.coordinates,i);return;case"MultiPolygon":t.beginMultiPolygon(e.coordinates.length);for(let n of e.coordinates)W4(t,n,i);return;case"GeometryCollection":throw new Error("GeometryCollection must be written through the dense union builder.")}}function G4(t,e,r){t.beginLineString(e.length);for(let i of e)Sg(t,i,r)}function W4(t,e,r){t.beginPolygon(e.length);for(let i of e){t.beginLinearRing(i.length);for(let n of i)Sg(t,n,r)}}function Sg(t,e,r){t.writeCoordinate(e[0]??Number.NaN,e[1]??Number.NaN,r.hasZ?e[2]:void 0,r.hasM?e[r.hasZ?3:2]:void 0)}function xS(t){switch(t){case"Point":return"geoarrow.point";case"LineString":return"geoarrow.linestring";case"Polygon":return"geoarrow.polygon";case"MultiPoint":return"geoarrow.multipoint";case"MultiLineString":return"geoarrow.multilinestring";case"MultiPolygon":return"geoarrow.multipolygon";default:throw new Error(`No native GeoArrow encoding exists for ${t}.`)}}function Ig(t,e){let r={Point:1,LineString:2,Polygon:3,MultiPoint:4,MultiLineString:5,MultiPolygon:6,GeometryCollection:7},i=e==="xyz"?10:e==="xym"?20:e==="xyzm"?30:0;return r[t]+i}function cG(t,e){return e==="xy"?t:`${t} ${e.slice(2).toUpperCase()}`}function uG(t,e){let r=e?.geometryColumnName||IS,i=e?.encoding||"wkb";return t.map(n=>{let o=SS(n.properties);return TS(o,r),{...o,[r]:dG(n.geometry,i)}})}function lG(t,e){let r=e?.geometryColumnName||IS,i=e?.encoding||"wkb",n=t.map(c=>{let u=SS(c.properties);return TS(u,r),u}),o=Q4(n),s=i==="wkb"?ic(r,!0):{name:r,type:"utf8",nullable:!0,metadata:{}},a={fields:[...o.fields,s],metadata:{...o.metadata||{}}};return i==="wkb"?oc(a,{geometryColumnName:r,primaryColumnName:r,geometryTypes:sc(t.map(c=>c.geometry))}):a.metadata.geo=JSON.stringify({version:$g,primary_column:r,columns:{[r]:{encoding:i,geometry_types:sc(t.map(c=>c.geometry))}}}),fG(a,r,e?.crs),a}function fG(t,e,r){if(!eL(r))return t;let i=t.fields.find(u=>u.name===e);if(!i)return t;let n=tL(r),o={[j4]:r};n&&(o.crs=n.projjson),t.metadata||={};let s=nc(t.metadata)||{version:$g,primary_column:e,columns:{}};s.version||=$g,s.primary_column||=e,s.columns||={};let a=s.columns[e]||{encoding:i.type==="utf8"?"wkt":"wkb",geometry_types:[]};s.columns[e]={...a,...o},kl(t.metadata,s),i.metadata||={};let c=yG(i.metadata[V4]);return c[j4]=r,n&&(c.crs=n.projjson,c.crs_type="projjson"),i.metadata[V4]=JSON.stringify(c),t}function dG(t,e){return t?e==="wkt"?Kp(t):Hp(t):null}function SS(t){if(!t||typeof t!="object")return{};let e={};for(let[r,i]of Object.entries(t))e[r]=pG(i);return e}function pG(t){return t==null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"?t??null:t instanceof Date?t.toISOString():JSON.stringify(t)}function Q4(t){if(t.length===0)return{fields:[],metadata:{}};let e=vG(t);return{metadata:{},fields:e.map(r=>{let i=mG(t.map(n=>n[r]));return{name:r,type:i.type==="float32"?"float64":i.type,nullable:i.nullable}})}}function mG(t){let e="null",r=!1;for(let i of t){if(i==null){r=!0;continue}let n=hG(i);if(e==="null"){e=n;continue}if(e!==n)throw new Error(`GeoJSONLoader: incompatible property types ${e} and ${n}`)}return{type:e,nullable:r}}function hG(t){switch(typeof t){case"boolean":return"bool";case"number":return"float64";case"string":return"utf8";default:return"null"}}function eL(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function tL(t){let e=gG(t);if(!e)return null;let r=e.toLowerCase();return r==="crs84"||r==="ogc:crs84"||r==="urn:ogc:def:crs:ogc:1.3:crs84"||r==="urn:ogc:def:crs:ogc::crs84"||r==="http://www.opengis.net/def/crs/ogc/1.3/crs84"?{name:e,projjson:J4(K4)}:r==="epsg:4326"||r==="urn:ogc:def:crs:epsg::4326"||r==="urn:ogc:def:crs:epsg:6.6:4326"||r==="http://www.opengis.net/def/crs/epsg/0/4326"?{name:e,projjson:J4(iG)}:null}function gG(t){return typeof t.properties?.name=="string"?t.properties.name:typeof t.name=="string"?t.name:null}function yG(t){if(!t)return{};try{let e=JSON.parse(t);return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}catch{return{}}}function J4(t){return JSON.parse(JSON.stringify(t))}function vG(t){let e=new Set;for(let r of t)for(let i of Object.keys(r))e.add(i);return[...e]}function TS(t,e){if(Object.prototype.hasOwnProperty.call(t,e))throw new Error(`GeoArrow conversion: GeoJSON property "${e}" conflicts with the geometry column name`)}var IS,$g,j4,V4,K4,iG,rL=h(()=>{"use strict";_i();tm();Yb();Yp();Xb();sw();IS="geometry",$g="1.1.0",j4="geojson_crs",V4="ARROW:extension:metadata",K4={$schema:"https://proj.org/schemas/v0.7/projjson.schema.json",type:"GeographicCRS",name:"WGS 84 longitude-latitude",datum_ensemble:{name:"World Geodetic System 1984 ensemble",members:[{name:"World Geodetic System 1984 (Transit)"},{name:"World Geodetic System 1984 (G730)"},{name:"World Geodetic System 1984 (G873)"},{name:"World Geodetic System 1984 (G1150)"},{name:"World Geodetic System 1984 (G1674)"},{name:"World Geodetic System 1984 (G1762)"},{name:"World Geodetic System 1984 (G2139)"}],ellipsoid:{name:"WGS 84",semi_major_axis:6378137,inverse_flattening:298.257223563},accuracy:"2.0",id:{authority:"EPSG",code:6326}},coordinate_system:{subtype:"ellipsoidal",axis:[{name:"Geodetic longitude",abbreviation:"Lon",direction:"east",unit:"degree"},{name:"Geodetic latitude",abbreviation:"Lat",direction:"north",unit:"degree"}]},id:{authority:"OGC",code:"CRS84"}},iG={...K4,name:"WGS 84",coordinate_system:{subtype:"ellipsoidal",axis:[{name:"Geodetic latitude",abbreviation:"Lat",direction:"north",unit:"degree"},{name:"Geodetic longitude",abbreviation:"Lon",direction:"east",unit:"degree"}]},id:{authority:"EPSG",code:4326}}});function nL(t,e={}){let r=$S(e);if(r&&r!=="geoarrow.wkb")return H4(t,e);let i=t.some(c=>c.id!==void 0),n=t.map(c=>{let u=wG(c.properties);return i&&(u.id=iL(c.id)),u}),o=_G(n),s=bG(o,t),a=new $n(s);for(let c=0;c<t.length;c++)a.addObjectRow({...n[c],[kS]:Hp(t[c].geometry)});return a.finishTable()}function bG(t,e){let r=ic(kS),i={fields:[...t.fields,r],metadata:{...t.metadata||{}}};return oc(i,{geometryColumnName:kS,geometryTypes:sc(e.map(n=>n.geometry))}),i}function wG(t){if(!t||typeof t!="object")return{};let e={};for(let[r,i]of Object.entries(t))e[r]=iL(i);return e}function iL(t){return t==null||typeof t=="string"||typeof t=="number"||typeof t=="boolean"?t??null:t instanceof Date?t.toISOString():JSON.stringify(t)}function _G(t){if(t.length===0)return{fields:[],metadata:{}};let e=IG(t);return{metadata:{},fields:e.map(r=>{let n=t.map(s=>s[r]).find(s=>s!=null),o={type:xG(n),nullable:!0};return{name:r,type:o.type==="float32"?"float64":o.type,nullable:o.nullable}})}}function xG(t){return typeof t=="number"?"float64":typeof t=="boolean"?"bool":typeof t=="string"?"utf8":"null"}function IG(t){let e=new Set;for(let r of t)for(let i of Object.keys(r))e.add(i);return[...e]}var kS,oL=h(()=>{"use strict";tm();Yp();rL();kS="geometry"});var sL=Jf(AS=>{AS.read=function(t,e,r,i,n){var o,s,a=n*8-i-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?n-1:0,d=r?-1:1,p=t[e+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=a;l>0;o=o*256+t[e+f],f+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=i;l>0;s=s*256+t[e+f],f+=d,l-=8);if(o===0)o=1-u;else{if(o===c)return s?NaN:(p?-1:1)*(1/0);s=s+Math.pow(2,i),o=o-u}return(p?-1:1)*s*Math.pow(2,o-i)};AS.write=function(t,e,r,i,n,o){var s,a,c,u=o*8-n-1,l=(1<<u)-1,f=l>>1,d=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,m=i?1:-1,g=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+f>=1?e+=d/c:e+=d*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*c-1)*Math.pow(2,n),s=s+f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));n>=8;t[r+p]=a&255,p+=m,a/=256,n-=8);for(s=s<<n|a,u+=n;u>0;t[r+p]=s&255,p+=m,s/=256,u-=8);t[r+p-m]|=g*128}});var BS=Jf((tfe,fL)=>{"use strict";fL.exports=De;var Tg=sL();function De(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}De.Varint=0;De.Fixed64=1;De.Bytes=2;De.Fixed32=5;var OS=65536*65536,aL=1/OS,$G=12,lL=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");De.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos<r;){var i=this.readVarint(),n=i>>3,o=this.pos;this.type=i&7,t(n,e,this),this.pos===o&&this.skip(i)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=kg(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=uL(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=kg(this.buf,this.pos)+kg(this.buf,this.pos+4)*OS;return this.pos+=8,t},readSFixed64:function(){var t=kg(this.buf,this.pos)+uL(this.buf,this.pos+4)*OS;return this.pos+=8,t},readFloat:function(){var t=Tg.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Tg.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e=this.buf,r,i;return i=e[this.pos++],r=i&127,i<128||(i=e[this.pos++],r|=(i&127)<<7,i<128)||(i=e[this.pos++],r|=(i&127)<<14,i<128)||(i=e[this.pos++],r|=(i&127)<<21,i<128)?r:(i=e[this.pos],r|=(i&15)<<28,SG(r,t,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2===1?(t+1)/-2:t/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=$G&&lL?MG(this.buf,e,t):FG(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==De.Bytes)return t.push(this.readVarint(e));var r=Ai(this);for(t=t||[];this.pos<r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==De.Bytes)return t.push(this.readSVarint());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==De.Bytes)return t.push(this.readBoolean());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==De.Bytes)return t.push(this.readFloat());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==De.Bytes)return t.push(this.readDouble());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==De.Bytes)return t.push(this.readFixed32());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==De.Bytes)return t.push(this.readSFixed32());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==De.Bytes)return t.push(this.readFixed64());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==De.Bytes)return t.push(this.readSFixed64());var e=Ai(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=t&7;if(e===De.Varint)for(;this.buf[this.pos++]>127;);else if(e===De.Bytes)this.pos=this.readVarint()+this.pos;else if(e===De.Fixed32)this.pos+=4;else if(e===De.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+e)},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),ou(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ou(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ou(this.buf,t&-1,this.pos),ou(this.buf,Math.floor(t*aL),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ou(this.buf,t&-1,this.pos),ou(this.buf,Math.floor(t*aL),this.pos+4),this.pos+=8},writeVarint:function(t){if(t=+t||0,t>268435455||t<0){TG(t,this);return}this.realloc(4),this.buf[this.pos++]=t&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=(t>>>=7)&127|(t>127?128:0),!(t<=127)&&(this.buf[this.pos++]=t>>>7&127)))},writeSVarint:function(t){this.writeVarint(t<0?-t*2-1:t*2)},writeBoolean:function(t){this.writeVarint(!!t)},writeString:function(t){t=String(t),this.realloc(t.length*4),this.pos++;var e=this.pos;this.pos=CG(this.buf,t,this.pos);var r=this.pos-e;r>=128&&cL(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),Tg.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),Tg.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r<e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var i=this.pos-r;i>=128&&cL(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i},writeMessage:function(t,e,r){this.writeTag(t,De.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,OG,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,BG,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,zG,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,DG,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,NG,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,LG,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,EG,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,UG,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,PG,e)},writeBytesField:function(t,e){this.writeTag(t,De.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,De.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,De.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,De.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,De.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,De.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,De.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,De.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,De.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,De.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,!!e)}};function SG(t,e,r){var i=r.buf,n,o;if(o=i[r.pos++],n=(o&112)>>4,o<128||(o=i[r.pos++],n|=(o&127)<<3,o<128)||(o=i[r.pos++],n|=(o&127)<<10,o<128)||(o=i[r.pos++],n|=(o&127)<<17,o<128)||(o=i[r.pos++],n|=(o&127)<<24,o<128)||(o=i[r.pos++],n|=(o&1)<<31,o<128))return iu(t,n,e);throw new Error("Expected varint not more than 10 bytes")}function Ai(t){return t.type===De.Bytes?t.readVarint()+t.pos:t.pos+1}function iu(t,e,r){return r?e*4294967296+(t>>>0):(e>>>0)*4294967296+(t>>>0)}function TG(t,e){var r,i;if(t>=0?(r=t%4294967296|0,i=t/4294967296|0):(r=~(-t%4294967296),i=~(-t/4294967296),r^4294967295?r=r+1|0:(r=0,i=i+1|0)),t>=18446744073709552e3||t<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),kG(r,i,e),AG(i,e)}function kG(t,e,r){r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos++]=t&127|128,t>>>=7,r.buf[r.pos]=t&127}function AG(t,e){var r=(t&7)<<4;e.buf[e.pos++]|=r|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=t&127)))))}function cL(t,e,r){var i=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(Math.LN2*7));r.realloc(i);for(var n=r.pos-1;n>=t;n--)r.buf[n+i]=r.buf[n]}function OG(t,e){for(var r=0;r<t.length;r++)e.writeVarint(t[r])}function BG(t,e){for(var r=0;r<t.length;r++)e.writeSVarint(t[r])}function DG(t,e){for(var r=0;r<t.length;r++)e.writeFloat(t[r])}function NG(t,e){for(var r=0;r<t.length;r++)e.writeDouble(t[r])}function zG(t,e){for(var r=0;r<t.length;r++)e.writeBoolean(t[r])}function LG(t,e){for(var r=0;r<t.length;r++)e.writeFixed32(t[r])}function EG(t,e){for(var r=0;r<t.length;r++)e.writeSFixed32(t[r])}function UG(t,e){for(var r=0;r<t.length;r++)e.writeFixed64(t[r])}function PG(t,e){for(var r=0;r<t.length;r++)e.writeSFixed64(t[r])}function kg(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+t[e+3]*16777216}function ou(t,e,r){t[r]=e,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24}function uL(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function FG(t,e,r){for(var i="",n=e;n<r;){var o=t[n],s=null,a=o>239?4:o>223?3:o>191?2:1;if(n+a>r)break;var c,u,l;a===1?o<128&&(s=o):a===2?(c=t[n+1],(c&192)===128&&(s=(o&31)<<6|c&63,s<=127&&(s=null))):a===3?(c=t[n+1],u=t[n+2],(c&192)===128&&(u&192)===128&&(s=(o&15)<<12|(c&63)<<6|u&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):a===4&&(c=t[n+1],u=t[n+2],l=t[n+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(s=(o&15)<<18|(c&63)<<12|(u&63)<<6|l&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,a=1):s>65535&&(s-=65536,i+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),i+=String.fromCharCode(s),n+=a}return i}function MG(t,e,r){return lL.decode(t.subarray(e,r))}function CG(t,e,r){for(var i=0,n,o;i<e.length;i++){if(n=e.charCodeAt(i),n>55295&&n<57344)if(o)if(n<56320){t[r++]=239,t[r++]=191,t[r++]=189,o=n;continue}else n=o-55296<<10|n-56320|65536,o=null;else{n>56319||i+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):o=n;continue}else o&&(t[r++]=239,t[r++]=191,t[r++]=189,o=null);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:(n<65536?t[r++]=n>>12|224:(t[r++]=n>>18|240,t[r++]=n>>12&63|128),t[r++]=n>>6&63|128),t[r++]=n&63|128)}return r}});function RG(t){let e=0;for(let r=0,i=t.length-1,n,o;r<t.length;i=r++)n=t[r],o=t[i],e+=(o[0]-n[0])*(n[1]+o[1]);return e}function DS(t,e){if(Array.isArray(t[0])){for(let i of t)DS(i,e);return}let r=t;r[0]/=e,r[1]/=e}function dL(t,e){for(let r=0;r<t.length;++r)t[r]/=e}function Ag(t,e,r){if(typeof t[0]=="number"){Ag([t],e,r);return}if(typeof t[0][0]!="number"){for(let s of t)Ag(s,e,r);return}let i=r*Math.pow(2,e.z),n=r*e.x,o=r*e.y;for(let s=0;s<t.length;s++){let a=t[s];a[0]=(a[0]+n)*360/i-180;let c=180-(a[1]+o)*360/i;a[1]=360/Math.PI*Math.atan(Math.exp(c*Math.PI/180))-90}}function pL(t,e,r){let{x:i,y:n,z:o}=e,s=r*Math.pow(2,o),a=r*i,c=r*n;for(let u=0,l=t.length;u<l;u+=2){t[u]=(t[u]+a)*360/s-180;let f=180-(t[u+1]+c)*360/s;t[u+1]=360/Math.PI*Math.atan(Math.exp(f*Math.PI/180))-90}}function mL(t){let e=t.length;if(e<=1)return[t];let r=[],i,n;for(let o=0;o<e;o++){let s=RG(t[o]);s!==0&&(n===void 0&&(n=s<0),n===s<0?(i&&r.push(i),i=[t[o]]):i&&i.push(t[o]))}return i&&r.push(i),r}function hL(t){let e=t.indices.length,r="Polygon";if(e<=1)return{type:r,data:t.data,areas:[[zi(t.data)]],indices:[t.indices]};let i=[],n=[],o=[],s=[],a,c=0;for(let u,l=0,f;l<e;l++){f=t.indices[l]-c,u=t.indices[l+1]-c||t.data.length;let d=t.data.slice(f,u),p=zi(d);if(p===0){let m=t.data.slice(0,f),g=t.data.slice(u);t.data=m.concat(g),c+=u-f;continue}a===void 0&&(a=p<0),a===p<0?(s.length&&(i.push(o),n.push(s)),s=[f],o=[p]):(o.push(p),s.push(f))}return o&&i.push(o),s.length&&n.push(s),{type:r,areas:i,indices:n,data:t.data}}var gL=h(()=>{"use strict";ld()});function yL(t,e,r){let i=su.types[t.type],n,o,s;switch(t.type){case 1:let c=[];for(n=0;n<e.length;n++)c[n]=e[n][0];s=c,r(s,t.extent);break;case 2:for(s=e,n=0;n<s.length;n++)r(s[n],t.extent);break;case 3:for(s=mL(e),n=0;n<s.length;n++)for(o=0;o<s[n].length;o++)r(s[n][o],t.extent);break;default:throw new Error("illegal vector tile type")}s.length===1?s=s[0]:i=`Multi${i}`;let a={type:"Feature",geometry:{type:i,coordinates:s},properties:t.properties};return t.id!==null&&(a.id=t.id),a}function jG(t,e,r){e&&r&&(t===1?e.id=r.readVarint():t===2?VG(r,e):t===3?e.type=r.readVarint():t===4&&(e._geometry=r.pos))}function VG(t,e){let r=t.readVarint()+t.pos;for(;t.pos<r;){let i=e._keys[t.readVarint()],n=e._values[t.readVarint()];i==="__proto__"?Object.defineProperty(e.properties,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e.properties[i]=n}}var su,vL=h(()=>{"use strict";gL();su=class{properties;extent;type;id;_pbf;_geometry;_keys;_values;_geometryInfo;static types=["Unknown","Point","LineString","Polygon"];constructor(e,r,i,n,o,s){this.properties={},this.extent=i,this.type=0,this.id=null,this._pbf=e,this._geometry=-1,this._keys=n,this._values=o,this._geometryInfo=s,e.readFields(jG,this,r)}toGeoJSONFeature(e,r){let i=this.loadGeometry();return e==="wgs84"?yL(this,i,n=>Ag(n,r,this.extent)):yL(this,i,DS)}toBinaryFeature(e,r){let i=this.loadFlatGeometry();return e==="wgs84"?this._toBinaryCoordinates(i,n=>pL(n,r,this.extent)):this._toBinaryCoordinates(i,dL)}bbox(){let e=this._pbf;e.pos=this._geometry;let r=e.readVarint()+e.pos,i=1,n=0,o=0,s=0,a=1/0,c=-1/0,u=1/0,l=-1/0;for(;e.pos<r;){if(n<=0){let f=e.readVarint();i=f&7,n=f>>3}if(n--,i===1||i===2)o+=e.readSVarint(),s+=e.readSVarint(),o<a&&(a=o),o>c&&(c=o),s<u&&(u=s),s>l&&(l=s);else if(i!==7)throw new Error(`unknown command ${i}`)}return[a,u,c,l]}_toBinaryCoordinates(e,r){let i;r(e.data,this.extent);let n=2;switch(this.type){case 1:this._geometryInfo.pointFeaturesCount++,this._geometryInfo.pointPositionsCount+=e.indices.length,i={type:"Point",...e};break;case 2:this._geometryInfo.lineFeaturesCount++,this._geometryInfo.linePathsCount+=e.indices.length,this._geometryInfo.linePositionsCount+=e.data.length/n,i={type:"LineString",...e};break;case 3:i=hL(e),this._geometryInfo.polygonFeaturesCount++,this._geometryInfo.polygonObjectsCount+=i.indices.length;for(let s of i.indices)this._geometryInfo.polygonRingsCount+=s.length;this._geometryInfo.polygonPositionsCount+=i.data.length/n;break;default:throw new Error(`Invalid geometry type: ${this.type}`)}let o={type:"Feature",geometry:i,properties:this.properties};return this.id!==null&&(o.id=this.id),o}loadGeometry(){let e=this._pbf;e.pos=this._geometry;let r=e.readVarint()+e.pos,i=1,n=0,o=0,s=0,a=[],c;for(;e.pos<r;){if(n<=0){let u=e.readVarint();i=u&7,n=u>>3}switch(n--,i){case 1:case 2:o+=e.readSVarint(),s+=e.readSVarint(),i===1&&(c&&a.push(c),c=[]),c&&c.push([o,s]);break;case 7:c&&c.push(c[0].slice());break;default:throw new Error(`unknown command ${i}`)}}return c&&a.push(c),a}loadFlatGeometry(){let e=this._pbf;e.pos=this._geometry;let r=e.readVarint()+e.pos,i=1,n,o=0,s=0,a=0,c=0,u=[],l=[];for(;e.pos<r;)if(o<=0&&(n=e.readVarint(),i=n&7,o=n>>3),o--,i===1||i===2)s+=e.readSVarint(),a+=e.readSVarint(),i===1&&u.push(c),l.push(s,a),c+=2;else if(i===7){if(c>0){let f=u[u.length-1];l.push(l[f],l[f+1]),c+=2}}else throw new Error(`unknown command ${i}`);return{data:l,indices:u}}}});function ZG(t,e,r){e&&r&&(t===15?e.version=r.readVarint():t===1?e.name=r.readString():t===5?e.extent=r.readVarint():t===2?e._features.push(r.pos):t===3?e._keys.push(r.readString()):t===4&&e._values.push(GG(r)))}function GG(t){let e=null,r=t.readVarint()+t.pos;for(;t.pos<r;){let i=t.readVarint()>>3;e=i===1?t.readString():i===2?t.readFloat():i===3?t.readDouble():i===4?t.readVarint64():i===5?t.readVarint():i===6?t.readSVarint():i===7?t.readBoolean():null}return e}var Og,bL=h(()=>{"use strict";vL();Og=class{version;name;extent;length;_pbf;_keys;_values;_features;constructor(e,r){this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(ZG,this,r),this.length=this._features.length}getGeoJSONFeature(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];let r=this._pbf.readVarint()+this._pbf.pos;return new su(this._pbf,r,this.extent,this._keys,this._values)}getBinaryFeature(e,r){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];let i=this._pbf.readVarint()+this._pbf.pos;return new su(this._pbf,i,this.extent,this._keys,this._values,r)}}});function WG(t,e,r){if(t===3&&r){let i=new Og(r,r.readVarint()+r.pos);i.length&&e&&(e[i.name]=i)}}var au,NS=h(()=>{"use strict";bL();au=class{layers;constructor(e,r){this.layers=e.readFields(WG,Object.create(null),r)}}});function _L(t,e={}){let r=e.mvt||{};if(r.coordinates==="wgs84"&&!r.tileIndex)throw new Error("MVT Loader: WGS84 coordinates need tileIndex property");let i=[];return t.byteLength>0&&i.push(...zS(t,r)),{shape:"geojson-table",type:"FeatureCollection",features:i}}function zS(t,e){if(t.byteLength<=0)return[];let r=new au(new wL.default(t)),i=Array.isArray(e.layers)?e.layers:Object.keys(r.layers),n=[];for(let o of i){let s=r.layers[o];if(s)for(let a=0;a<s.length;a++){let u=s.getGeoJSONFeature(a).toGeoJSONFeature(e.coordinates||"local",e.tileIndex);e.layerProperty&&(u.properties||={},u.properties[e.layerProperty]=o),e.sourceLayer&&(u.sourceLayer=o),n.push(u)}}return n}var wL,xL=h(()=>{"use strict";wL=Kf(BS(),1);NS()});function LS(t,e){let r=KG(e),i=e?.mvt?.shape||e?.shape||"arrow-table";switch(i){case"columnar-table":return{shape:"columnar-table",data:IL(t,r)};case"geojson-table":return _L(t,{mvt:r});case"arrow-table":return nL(zS(t,r),{encodingPreference:e?.geoarrow?.encodingPreference||r.geoarrow?.encodingPreference});case"binary-geometry":return IL(t,r);default:throw new Error(i||"undefined shape")}}function IL(t,e){let[r,i]=JG(t,e),n=Sl(r,i);return n.byteLength=t.byteLength,n}function JG(t,e){let r=[],i={coordLength:2,pointPositionsCount:0,pointFeaturesCount:0,linePositionsCount:0,linePathsCount:0,lineFeaturesCount:0,polygonPositionsCount:0,polygonObjectsCount:0,polygonRingsCount:0,polygonFeaturesCount:0};if(t.byteLength<=0)return[r,i];let n=new au(new $L.default(t));return(e&&Array.isArray(e.layers)?e.layers:Object.keys(n.layers)).forEach(s=>{let a=n.layers[s];if(a)for(let c=0;c<a.length;c++){let u=a.getBinaryFeature(c,i),l=HG(u,e,s);r.push(l)}}),[r,i]}function KG(t){let e=t?.mvt;if(!e)throw new Error("mvt options required");if(e.coordinates==="wgs84"&&!e.tileIndex)throw new Error("MVT Loader: WGS84 coordinates need tileIndex property");return t?.gis&&gu.warn('MVTLoader: "options.gis" is deprecated, use "options.mvt.shape" instead')(),e}function HG(t,e,r){let i=t.toBinaryFeature(e.coordinates||"local",e.tileIndex);return e.layerProperty&&i.properties&&(i.properties[e.layerProperty]=r),i}var $L,SL=h(()=>{"use strict";oL();Zb();Li();$L=Kf(BS(),1);NS();xL()});var kL={};Ke(kL,{MVTLoaderWithParser:()=>TL,MVTWorkerLoaderWithParser:()=>YG});var _fe,qG,TL,YG,AL=h(()=>{"use strict";SL();wS();ES();({preload:_fe,...qG}=Mf),TL={...qG,parse:async(t,e)=>LS(t,e),parseSync:LS,serializeWorkerResult:_g,deserializeWorkerResult:xg},YG=TL});async function QG(){let{MVTLoaderWithParser:t}=await Promise.resolve().then(()=>(AL(),kL));return t}var XG,Mf,ES=h(()=>{"use strict";z4();wS();XG="5.0.0-alpha.14";Mf={...N4,dataType:null,batchType:null,version:XG,worker:!0,workerSourceNode:"mvt/workers/mvt-worker-node.ts",options:{mvt:{shape:"arrow-table",coordinates:"local",layerProperty:"layerName",sourceLayer:!1,layers:void 0,tileIndex:void 0}},serializeWorkerResult:_g,deserializeWorkerResult:xg,preload:QG,binary:!0}});var US=h(()=>{"use strict";D4();ES()});var va,Bg=h(()=>{"use strict";va={name:"PMTiles",id:"pmtiles",module:"tiles",encoding:"binary",format:"pmtiles",extensions:["pmtiles"],mimeTypes:["application/vnd.pmtiles","application/octet-stream"],tests:["PMTiles"]}});function p7(t,e){return CS(t,{i:2},e&&e.out,e&&e.dictionary)}function m7(t,e){var r=l7(t);return r+8>t.length&&Vr(6,"invalid gzip data"),CS(t.subarray(r,-8),{i:2},e&&e.out||new Zr(f7(t)),e&&e.dictionary)}function h7(t,e){return CS(t.subarray(d7(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}function UL(t,e){return t[0]==31&&t[1]==139&&t[2]==8?m7(t,e):(t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?p7(t,e):h7(t,e)}var Zr,cu,e7,OL,BL,t7,DL,NL,zL,r7,LL,n7,Ofe,MS,Oi,Ne,Cf,Rf,Ne,Ne,Ne,Ne,EL,Ne,i7,o7,PS,Dn,FS,s7,a7,c7,Vr,CS,u7,l7,f7,d7,g7,y7,PL=h(()=>{Zr=Uint8Array,cu=Uint16Array,e7=Int32Array,OL=new Zr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),BL=new Zr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),t7=new Zr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),DL=function(t,e){for(var r=new cu(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];for(var n=new e7(r[30]),i=1;i<30;++i)for(var o=r[i];o<r[i+1];++o)n[o]=o-r[i]<<5|i;return{b:r,r:n}},NL=DL(OL,2),zL=NL.b,r7=NL.r;zL[28]=258,r7[258]=28;LL=DL(BL,0),n7=LL.b,Ofe=LL.r,MS=new cu(32768);for(Ne=0;Ne<32768;++Ne)Oi=(Ne&43690)>>1|(Ne&21845)<<1,Oi=(Oi&52428)>>2|(Oi&13107)<<2,Oi=(Oi&61680)>>4|(Oi&3855)<<4,MS[Ne]=((Oi&65280)>>8|(Oi&255)<<8)>>1;Cf=(function(t,e,r){for(var i=t.length,n=0,o=new cu(e);n<i;++n)t[n]&&++o[t[n]-1];var s=new cu(e);for(n=1;n<e;++n)s[n]=s[n-1]+o[n-1]<<1;var a;if(r){a=new cu(1<<e);var c=15-e;for(n=0;n<i;++n)if(t[n])for(var u=n<<4|t[n],l=e-t[n],f=s[t[n]-1]++<<l,d=f|(1<<l)-1;f<=d;++f)a[MS[f]>>c]=u}else for(a=new cu(i),n=0;n<i;++n)t[n]&&(a[n]=MS[s[t[n]-1]++]>>15-t[n]);return a}),Rf=new Zr(288);for(Ne=0;Ne<144;++Ne)Rf[Ne]=8;for(Ne=144;Ne<256;++Ne)Rf[Ne]=9;for(Ne=256;Ne<280;++Ne)Rf[Ne]=7;for(Ne=280;Ne<288;++Ne)Rf[Ne]=8;EL=new Zr(32);for(Ne=0;Ne<32;++Ne)EL[Ne]=5;i7=Cf(Rf,9,1),o7=Cf(EL,5,1),PS=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},Dn=function(t,e,r){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(e&7)&r},FS=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(e&7)},s7=function(t){return(t+7)/8|0},a7=function(t,e,r){return(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length),new Zr(t.subarray(e,r))},c7=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Vr=function(t,e,r){var i=new Error(e||c7[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,Vr),!r)throw i;return i},CS=function(t,e,r,i){var n=t.length,o=i?i.length:0;if(!n||e.f&&!e.l)return r||new Zr(0);var s=!r,a=s||e.i!=2,c=e.i;s&&(r=new Zr(n*3));var u=function(n1){var i1=r.length;if(n1>i1){var o1=new Zr(Math.max(i1*2,n1));o1.set(r),r=o1}},l=e.f||0,f=e.p||0,d=e.b||0,p=e.l,m=e.d,g=e.m,v=e.n,I=n*8;do{if(!p){l=Dn(t,f,1);var A=Dn(t,f+1,3);if(f+=3,A)if(A==1)p=i7,m=o7,g=9,v=5;else if(A==2){var N=Dn(t,f,31)+257,R=Dn(t,f+10,15)+4,Ue=N+Dn(t,f+5,31)+1;f+=14;for(var we=new Zr(Ue),Me=new Zr(19),Ve=0;Ve<R;++Ve)Me[t7[Ve]]=Dn(t,f+Ve*3,7);f+=R*3;for(var Zf=PS(Me),Pg=(1<<Zf)-1,uE=Cf(Me,Zf,1),Ve=0;Ve<Ue;){var XS=uE[Dn(t,f,Pg)];f+=XS&15;var _=XS>>4;if(_<16)we[Ve++]=_;else{var wa=0,Gf=0;for(_==16?(Gf=3+Dn(t,f,3),f+=2,wa=we[Ve-1]):_==17?(Gf=3+Dn(t,f,7),f+=3):_==18&&(Gf=11+Dn(t,f,127),f+=7);Gf--;)we[Ve++]=wa}}var QS=we.subarray(0,N),Bi=we.subarray(N);g=PS(QS),v=PS(Bi),p=Cf(QS,g,1),m=Cf(Bi,v,1)}else Vr(1);else{var _=s7(f)+4,x=t[_-4]|t[_-3]<<8,O=_+x;if(O>n){c&&Vr(0);break}a&&u(d+x),r.set(t.subarray(_,O),d),e.b=d+=x,e.p=f=O*8,e.f=l;continue}if(f>I){c&&Vr(0);break}}a&&u(d+131072);for(var lE=(1<<g)-1,fE=(1<<v)-1,Fg=f;;Fg=f){var wa=p[FS(t,f)&lE],_a=wa>>4;if(f+=wa&15,f>I){c&&Vr(0);break}if(wa||Vr(2),_a<256)r[d++]=_a;else if(_a==256){Fg=f,p=null;break}else{var e1=_a-254;if(_a>264){var Ve=_a-257,lu=OL[Ve];e1=Dn(t,f,(1<<lu)-1)+zL[Ve],f+=lu}var Mg=m[FS(t,f)&fE],Cg=Mg>>4;Mg||Vr(3),f+=Mg&15;var Bi=n7[Cg];if(Cg>3){var lu=BL[Cg];Bi+=FS(t,f)&(1<<lu)-1,f+=lu}if(f>I){c&&Vr(0);break}a&&u(d+131072);var t1=d+e1;if(d<Bi){var r1=o-Bi,dE=Math.min(Bi,t1);for(r1+d<0&&Vr(3);d<dE;++d)r[d]=i[r1+d]}for(;d<t1;++d)r[d]=r[d-Bi]}}e.l=p,e.p=Fg,e.b=d,e.f=l,p&&(l=1,e.m=g,e.d=m,e.n=v)}while(!l);return d!=r.length&&s?a7(r,0,d):r.subarray(0,d)},u7=new Zr(0),l7=function(t){(t[0]!=31||t[1]!=139||t[2]!=8)&&Vr(6,"invalid gzip data");var e=t[3],r=10;e&4&&(r+=(t[10]|t[11]<<8)+2);for(var i=(e>>3&1)+(e>>4&1);i>0;i-=!t[r++]);return r+(e&2)},f7=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},d7=function(t,e){return((t[0]&15)!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&Vr(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&Vr(6,"invalid zlib data: "+(t[1]&32?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};g7=typeof TextDecoder<"u"&&new TextDecoder,y7=0;try{g7.decode(u7,{stream:!0}),y7=1}catch{}});var jf={};Ke(jf,{Compression:()=>VL,EtagMismatch:()=>Dg,FetchSource:()=>JL,FileSource:()=>$7,PMTiles:()=>RS,Protocol:()=>x7,ResolvedValueCache:()=>S7,SharedPromiseCache:()=>YL,TileType:()=>ZL,bytesToHeader:()=>WS,findTile:()=>GS,getUint64:()=>Gr,leafletRasterLayer:()=>w7,readVarint:()=>ba,tileIdToZxy:()=>jL,tileTypeExt:()=>ZS,zxyToTileId:()=>VS});function ML(t,e){return(e>>>0)*4294967296+(t>>>0)}function CL(t,e){let r=e.buf,i=r[e.pos++],n=(i&112)>>4;if(i<128||(i=r[e.pos++],n|=(i&127)<<3,i<128)||(i=r[e.pos++],n|=(i&127)<<10,i<128)||(i=r[e.pos++],n|=(i&127)<<17,i<128)||(i=r[e.pos++],n|=(i&127)<<24,i<128)||(i=r[e.pos++],n|=(i&1)<<31,i<128))return ML(t,n);throw new Error("Expected varint not more than 10 bytes")}function ba(t){let e=t.buf,r=e[t.pos++],i=r&127;return r<128||(r=e[t.pos++],i|=(r&127)<<7,r<128)||(r=e[t.pos++],i|=(r&127)<<14,r<128)||(r=e[t.pos++],i|=(r&127)<<21,r<128)?i:(r=e[t.pos],i|=(r&15)<<28,CL(i,t))}function jS(t,e,r,i,n){return n===0?i!==0?[t-1-r,t-1-e]:[r,e]:[e,r]}function VS(t,e,r){if(t>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");if(e>=1<<t||r>=1<<t)throw new Error("tile x/y outside zoom level bounds");let i=((1<<t)*(1<<t)-1)/3,n=t-1,[o,s]=[e,r];for(let a=1<<n;a>0;a>>=1){let c=o&a,u=s&a;i+=(3*c^u)*(1<<n),[o,s]=jS(a,o,s,c,u),n--}return i}function RL(t){let e=3*t+1;return e<4294967296?31-Math.clz32(e):63-Math.clz32(e/4294967296)}function jL(t){let e=RL(t)>>1;if(e>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");let r=((1<<e)*(1<<e)-1)/3,i=t-r,n=0,o=0,s=1<<e;for(let a=1;a<s;a<<=1){let c=a&i/2,u=a&(i^c);[n,o]=jS(a,n,o,c,u),i=i/2,n+=c,o+=u}return[e,n,o]}function Ng(t,e){return vt(this,null,function*(){if(e===1||e===0)return t;if(e===2){if(typeof globalThis.DecompressionStream>"u")return UL(new Uint8Array(t));let r=new Response(t).body;if(!r)throw new Error("Failed to read response stream");let i=r.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(i).arrayBuffer()}throw new Error("Compression method not supported")})}function ZS(t){return t===1?".mvt":t===2?".png":t===3?".jpg":t===4?".webp":t===5?".avif":t===6?".mlt":""}function GS(t,e){let r=0,i=t.length-1;for(;r<=i;){let n=i+r>>1,o=e-t[n].tileId;if(o>0)r=n+1;else if(o<0)i=n-1;else return t[n]}return i>=0&&(t[i].runLength===0||e-t[i].tileId<t[i].runLength)?t[i]:null}function Gr(t,e){let r=t.getUint32(e+4,!0),i=t.getUint32(e+0,!0);return r*b7(2,32)+i}function WS(t,e){let r=new DataView(t),i=r.getUint8(7);if(i>3)throw new Error(`Archive is spec version ${i} but this library supports up to spec version 3`);return{specVersion:i,rootDirectoryOffset:Gr(r,8),rootDirectoryLength:Gr(r,16),jsonMetadataOffset:Gr(r,24),jsonMetadataLength:Gr(r,32),leafDirectoryOffset:Gr(r,40),leafDirectoryLength:Gr(r,48),tileDataOffset:Gr(r,56),tileDataLength:Gr(r,64),numAddressedTiles:Gr(r,72),numTileEntries:Gr(r,80),numTileContents:Gr(r,88),clustered:r.getUint8(96)===1,internalCompression:r.getUint8(97),tileCompression:r.getUint8(98),tileType:r.getUint8(99),minZoom:r.getUint8(100),maxZoom:r.getUint8(101),minLon:r.getInt32(102,!0)/1e7,minLat:r.getInt32(106,!0)/1e7,maxLon:r.getInt32(110,!0)/1e7,maxLat:r.getInt32(114,!0)/1e7,centerZoom:r.getUint8(118),centerLon:r.getInt32(119,!0)/1e7,centerLat:r.getInt32(123,!0)/1e7,etag:e}}function JS(t){let e={buf:new Uint8Array(t),pos:0},r=ba(e),i=[],n=0;for(let o=0;o<r;o++){let s=ba(e);i.push({tileId:n+s,offset:0,length:0,runLength:1}),n+=s}for(let o=0;o<r;o++)i[o].runLength=ba(e);for(let o=0;o<r;o++)i[o].length=ba(e);for(let o=0;o<r;o++){let s=ba(e);s===0&&o>0?i[o].offset=i[o-1].offset+i[o-1].length:i[o].offset=s-1}return i}function KS(t,e){return vt(this,null,function*(){let r=yield t.getBytes(0,16384);if(new DataView(r.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");let i=r.data.slice(0,I7),n=WS(i,r.etag),o=r.data.slice(n.rootDirectoryOffset,n.rootDirectoryOffset+n.rootDirectoryLength),s=`${t.getKey()}|${n.etag||""}|${n.rootDirectoryOffset}|${n.rootDirectoryLength}`,a=JS(yield e(o,n.internalCompression));return[n,[s,a.length,a]]})}function HS(t,e,r,i,n,o){return vt(this,null,function*(){let s=yield t.getBytes(r,i,o,n.etag),a=yield e(s.data,n.internalCompression),c=JS(a);if(c.length===0)throw new Error("Empty directory is invalid");return c})}var v7,b7,Re,vt,w7,_7,FL,x7,VL,ZL,I7,GL,$7,WL,JL,KL,Dg,HL,S7,qL,YL,XL,RS,qS=h(()=>{PL();v7=Object.defineProperty,b7=Math.pow,Re=(t,e)=>v7(t,"name",{value:e,configurable:!0}),vt=(t,e,r)=>new Promise((i,n)=>{var o=c=>{try{a(r.next(c))}catch(u){n(u)}},s=c=>{try{a(r.throw(c))}catch(u){n(u)}},a=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,s);a((r=r.apply(t,e)).next())}),w7=Re((t,e)=>{let r=!1,i="",n=L.GridLayer.extend({createTile:Re((o,s)=>{let a=document.createElement("img"),c=new AbortController,u=c.signal;return a.cancel=()=>{c.abort()},r||(t.getHeader().then(l=>{l.tileType===1||l.tileType===6?console.error("Error: archive contains vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):l.tileType===2?i="image/png":l.tileType===3?i="image/jpeg":l.tileType===4?i="image/webp":l.tileType===5&&(i="image/avif")}),r=!0),t.getZxy(o.z,o.x,o.y,u).then(l=>{if(l){let f=new Blob([l.data],{type:i}),d=window.URL.createObjectURL(f);a.src=d}else a.style.display="none";a.cancel=void 0,s(void 0,a)}).catch(l=>{if(l.name!=="AbortError")throw l}),a},"createTile"),_removeTile:Re(function(o){let s=this._tiles[o];s&&(s.el.cancel&&s.el.cancel(),s.el.src&&window.URL.revokeObjectURL(s.el.src),s.el.width=0,s.el.height=0,s.el.deleted=!0,L.DomUtil.remove(s.el),delete this._tiles[o],this.fire("tileunload",{tile:s.el,coords:this._keyToTileCoords(o)}))},"_removeTile")});return new n(e)},"leafletRasterLayer"),_7=Re(t=>(e,r)=>{if(r instanceof AbortController)return t(e,r);let i=new AbortController;return t(e,i).then(n=>r(void 0,n.data,n.cacheControl||"",n.expires||""),n=>r(n)).catch(n=>r(n)),{cancel:Re(()=>i.abort(),"cancel")}},"v3compat"),FL=class{constructor(e){this.tilev4=Re((r,i)=>vt(this,null,function*(){if(r.type==="json"){let p=r.url.substr(10),m=this.tiles.get(p);if(m||(m=new RS(p),this.tiles.set(p,m)),this.metadata){let v=yield m.getTileJson(r.url);return i.signal.throwIfAborted(),{data:v}}let g=yield m.getHeader();return i.signal.throwIfAborted(),(g.minLon>=g.maxLon||g.minLat>=g.maxLat)&&console.error(`Bounds of PMTiles archive ${g.minLon},${g.minLat},${g.maxLon},${g.maxLat} are not valid.`),{data:{tiles:[`${r.url}/{z}/{x}/{y}`],minzoom:g.minZoom,maxzoom:g.maxZoom,bounds:[g.minLon,g.minLat,g.maxLon,g.maxLat]}}}let n=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),o=r.url.match(n);if(!o)throw new Error("Invalid PMTiles protocol URL");let s=o[1],a=this.tiles.get(s);a||(a=new RS(s),this.tiles.set(s,a));let c=o[2],u=o[3],l=o[4],f=yield a?.getZxy(+c,+u,+l,i.signal);if(i.signal.throwIfAborted(),f)return{data:new Uint8Array(f.data),cacheControl:f.cacheControl,expires:f.expires};let d=yield a.getHeader();if(d.tileType===1||d.tileType===6){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=_7(this.tilev4),this.tiles=new Map,this.metadata=e?.metadata||!1,this.errorOnMissingTile=e?.errorOnMissingTile||!1}add(e){this.tiles.set(e.source.getKey(),e)}get(e){return this.tiles.get(e)}};Re(FL,"Protocol");x7=FL;Re(ML,"toNum");Re(CL,"readVarintRemainder");Re(ba,"readVarint");Re(jS,"rotate");Re(VS,"zxyToTileId");Re(RL,"tileIdToZ");Re(jL,"tileIdToZxy");VL=(t=>(t[t.Unknown=0]="Unknown",t[t.None=1]="None",t[t.Gzip=2]="Gzip",t[t.Brotli=3]="Brotli",t[t.Zstd=4]="Zstd",t))(VL||{});Re(Ng,"defaultDecompress");ZL=(t=>(t[t.Unknown=0]="Unknown",t[t.Mvt=1]="Mvt",t[t.Png=2]="Png",t[t.Jpeg=3]="Jpeg",t[t.Webp=4]="Webp",t[t.Avif=5]="Avif",t[t.Mlt=6]="Mlt",t))(ZL||{});Re(ZS,"tileTypeExt");I7=127;Re(GS,"findTile");GL=class{constructor(e){this.file=e}getKey(){return this.file.name}getBytes(e,r){return vt(this,null,function*(){return{data:yield this.file.slice(e,e+r).arrayBuffer()}})}};Re(GL,"FileSource");$7=GL,WL=class{constructor(e,r=new Headers,i=void 0){var n,o;this.url=e,this.customHeaders=r,this.credentials=i,this.mustReload=!1;let s="";"navigator"in globalThis&&(s=(o=(n=globalThis.navigator)==null?void 0:n.userAgent)!=null?o:"");let a=s.indexOf("Windows")>-1,c=/Chrome|Chromium|Edg|OPR|Brave/.test(s);this.chromeWindowsNoCache=!1,a&&c&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(e){this.customHeaders=e}getBytes(e,r,i,n){return vt(this,null,function*(){let o,s;i?s=i:(o=new AbortController,s=o.signal);let a=new Headers(this.customHeaders);a.set("range",`bytes=${e}-${e+r-1}`);let c;this.mustReload?c="reload":this.chromeWindowsNoCache&&(c="no-store");let u=yield fetch(this.url,{signal:s,cache:c,headers:a,credentials:this.credentials});if(e===0&&u.status===416){let d=u.headers.get("Content-Range");if(!d||!d.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let p=+d.substr(8);a.set("range",`bytes=0-${p-1}`),u=yield fetch(this.url,{signal:s,cache:"reload",headers:a,credentials:this.credentials})}let l=u.headers.get("Etag");if(l!=null&&l.startsWith("W/")&&(l=null),u.status===416||n&&l&&l!==n)throw this.mustReload=!0,new Dg(`Server returned non-matching ETag ${n} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(u.status>=300)throw new Error(`Bad response code: ${u.status}`);let f=u.headers.get("Content-Length");if(u.status===200&&(!f||+f>r))throw o&&o.abort(),new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield u.arrayBuffer(),etag:l||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Re(WL,"FetchSource");JL=WL;Re(Gr,"getUint64");Re(WS,"bytesToHeader");Re(JS,"deserializeIndex");KL=class extends Error{};Re(KL,"EtagMismatch");Dg=KL;Re(KS,"getHeaderAndRoot");Re(HS,"getDirectory");HL=class{constructor(e=100,r=!0,i=Ng){this.cache=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=i}getHeader(e){return vt(this,null,function*(){let r=e.getKey(),i=this.cache.get(r);if(i)return i.lastUsed=this.counter++,i.data;let n=yield KS(e,this.decompress);return n[1]&&this.cache.set(n[1][0],{lastUsed:this.counter++,data:n[1][2]}),this.cache.set(r,{lastUsed:this.counter++,data:n[0]}),this.prune(),n[0]})}getDirectory(e,r,i,n,o){return vt(this,null,function*(){let s=`${e.getKey()}|${n.etag||""}|${r}|${i}`,a=this.cache.get(s);if(a)return a.lastUsed=this.counter++,a.data;let c=yield HS(e,this.decompress,r,i,n,o);return this.cache.set(s,{lastUsed:this.counter++,data:c}),this.prune(),c})}prune(){if(this.cache.size>this.maxCacheEntries){let e=1/0,r;this.cache.forEach((i,n)=>{i.lastUsed<e&&(e=i.lastUsed,r=n)}),r&&this.cache.delete(r)}}invalidate(e){return vt(this,null,function*(){this.cache.delete(e.getKey())})}};Re(HL,"ResolvedValueCache");S7=HL,qL=class{constructor(e=100,r=!0,i=Ng){this.cache=new Map,this.invalidations=new Map,this.pendingFetches=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=i}getHeader(e){return vt(this,null,function*(){let r=e.getKey(),i=this.cache.get(r);if(i)return i.lastUsed=this.counter++,yield i.data;let n=new Promise((o,s)=>{KS(e,this.decompress).then(a=>{a[1]&&this.cache.set(a[1][0],{lastUsed:this.counter++,data:Promise.resolve(a[1][2])}),o(a[0]),this.prune()}).catch(a=>{s(a)})});return this.cache.set(r,{lastUsed:this.counter++,data:n}),n})}trackSignal(e,r,i){r.refs++,i.addEventListener("abort",()=>{--r.refs<=0&&this.pendingFetches.get(e)===r&&(r.controller.abort(),this.cache.delete(e),this.pendingFetches.delete(e))},{once:!0})}getDirectory(e,r,i,n,o){return vt(this,null,function*(){let s=`${e.getKey()}|${n.etag||""}|${r}|${i}`,a=this.cache.get(s);if(a){a.lastUsed=this.counter++;let f=this.pendingFetches.get(s);return f&&this.trackSignal(s,f,o??new AbortController().signal),yield a.data}let c=new AbortController,u={controller:c,refs:0};this.trackSignal(s,u,o??new AbortController().signal),this.pendingFetches.set(s,u);let l=new Promise((f,d)=>{HS(e,this.decompress,r,i,n,c.signal).then(p=>{this.pendingFetches.delete(s),f(p),this.prune()}).catch(p=>{d(p)})});return this.cache.set(s,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let e=1/0,r;this.cache.forEach((i,n)=>{i.lastUsed<e&&(e=i.lastUsed,r=n)}),r&&this.cache.delete(r)}}invalidate(e){return vt(this,null,function*(){let r=e.getKey();if(this.invalidations.get(r))return yield this.invalidations.get(r);this.cache.delete(e.getKey());let i=new Promise((n,o)=>{this.getHeader(e).then(s=>{n(),this.invalidations.delete(r)}).catch(s=>{o(s)})});this.invalidations.set(r,i)})}};Re(qL,"SharedPromiseCache");YL=qL,XL=class{constructor(e,r,i){typeof e=="string"?this.source=new JL(e):this.source=e,i?this.decompress=i:this.decompress=Ng,r?this.cache=r:this.cache=new YL}getHeader(){return vt(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(e,r,i,n){return vt(this,null,function*(){let o=VS(e,r,i),s=yield this.cache.getHeader(this.source);if(n?.throwIfAborted(),e<s.minZoom||e>s.maxZoom)return;let a=s.rootDirectoryOffset,c=s.rootDirectoryLength;for(let u=0;u<=3;u++){let l=yield this.cache.getDirectory(this.source,a,c,s,n);n?.throwIfAborted();let f=GS(l,o);if(f){if(f.runLength>0){let d=yield this.source.getBytes(s.tileDataOffset+f.offset,f.length,n,s.etag);return{data:yield this.decompress(d.data,s.tileCompression),cacheControl:d.cacheControl,expires:d.expires}}a=s.leafDirectoryOffset+f.offset,c=f.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(e,r,i,n){return vt(this,null,function*(){try{return yield this.getZxyAttempt(e,r,i,n)}catch(o){if(o instanceof Dg)return this.cache.invalidate(this.source),yield this.getZxyAttempt(e,r,i,n);throw o}})}getMetadataAttempt(){return vt(this,null,function*(){let e=yield this.cache.getHeader(this.source),r=yield this.source.getBytes(e.jsonMetadataOffset,e.jsonMetadataLength,void 0,e.etag),i=yield this.decompress(r.data,e.internalCompression),n=new TextDecoder("utf-8");return JSON.parse(n.decode(i))})}getMetadata(){return vt(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(e){if(e instanceof Dg)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw e}})}getTileJson(e){return vt(this,null,function*(){let r=yield this.getHeader(),i=yield this.getMetadata(),n=ZS(r.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${e}/{z}/{x}/{y}${n}`],vector_layers:i.vector_layers,attribution:i.attribution,description:i.description,name:i.name,version:i.version,bounds:[r.minLon,r.minLat,r.maxLon,r.maxLat],center:[r.centerLon,r.centerLat,r.centerZoom],minzoom:r.minZoom,maxzoom:r.maxZoom}})}};Re(XL,"PMTiles");RS=XL});function QL(t,e,r,i){let n=null;if(e)try{n=gS(e,i?.tilejson)||null}catch(u){console.warn("PMTiles metadata could not be interpreted as TileJSON",u)}let o={};typeof n?.name=="string"&&(o.name=n.name),typeof n?.htmlAttribution=="string"&&(o.attributions=[n.htmlAttribution]);let s=Number.isInteger(t.minZoom)&&Number.isInteger(t.maxZoom)&&t.minZoom>=0&&t.maxZoom>=t.minZoom&&t.maxZoom<=31?wy(t.minZoom,t.maxZoom,r?.tileSize??256):void 0,a=!s||r?.coordinateReferenceSystem==="EPSG:3857"?s:Ou(void 0,s.matrices.map(({id:u,tileSize:l,matrixSize:f})=>({id:u,tileSize:l,matrixSize:f}))),c={...o,format:"pmtiles",tileGrid:a,formatVersion:t.specVersion,attributions:[],tileMIMEType:T7(t.tileType),minZoom:t.minZoom,maxZoom:t.maxZoom,boundingBox:[[t.minLon,t.minLat],[t.maxLon,t.maxLat]],center:[t.centerLon,t.centerLat],centerZoom:t.centerZoom,etag:t.etag};return n&&(c.tilejson=n),r?.includeFormatHeader&&(c.formatHeader=t,c.formatMetadata=c),c}function T7(t){switch(t){case uu.Mvt:return"application/vnd.mapbox-vector-tile";case uu.Mlt:return"application/vnd.maplibre-tile";case uu.Png:return"image/png";case uu.Jpeg:return"image/jpeg";case uu.Webp:return"image/webp";case uu.Avif:return"image/avif";default:return"application/octet-stream"}}var uu,eE=h(()=>{"use strict";Li();US();qS();({TileType:uu}=jf)});var zg,tE=h(()=>{"use strict";zg=class{blob;key;constructor(e,r){this.blob=e,this.key=r}getKey(){return this.blob.url||""}async getBytes(e,r,i){return{data:await this.blob.slice(e,e+r).arrayBuffer()}}}});var Lg,rE=h(()=>{"use strict";Li();Lg=class{url;fetch;scheduler;requestContext={};constructor(e,r={}){this.url=e,this.fetch=r.fetch||fetch,this.scheduler=new bu({batchDelayMs:r.batchDelayMs??0,maxGapBytes:r.maxGapBytes,rangeExpansionBytes:r.rangeExpansionBytes,maxMergedBytes:r.maxMergedBytes,stats:r.stats,onEvent:r.onEvent})}getKey(){return this.url}async getBytes(e,r,i){return{data:await this.scheduler.fetch({sourceId:this.url,url:this.url,offset:e,length:r,signal:i,isolationKey:this.requestContext,fetch:this.fetch})}}}});function nE(t){let e=typeof t=="string"?[t]:t;return e?.length?e:void 0}function O7(t){if(t==="columnar-table")throw new Error("PMTilesTileSource: columnar-table shape is not supported for MLT tiles");return t}var k7,A7,Eg,rs,Ug=h(()=>{"use strict";Li();ST();iB();US();Bg();qS();eE();tE();rE();({PMTiles:k7}=jf),A7="1.0.0",Eg={dataType:null,batchType:null,...va,version:A7,type:"pmtiles",fromUrl:!0,fromBlob:!0,options:{pmtiles:{shape:"arrow-table"}},defaultOptions:{pmtiles:{}},testURL:t=>t.endsWith(".pmtiles"),createDataSource:(t,e,r)=>new rs(t,e,r)},rs=class extends Iu{mimeType=null;pmtiles;metadata;pendingTileRequests=[];tileBatchTimer=null;constructor(e,r,i){super(e,r,Eg.defaultOptions,i);let n=r.rangeRequests,o=typeof e=="string"?new Lg(wu(e),{...n,batchDelayMs:0,fetch:this.fetch}):new zg(e,"pmtiles");this.pmtiles=new k7(o),this.getTileData=this.getTileData.bind(this),this.metadata=this.getMetadata()}async getSchema(){return{fields:[],metadata:{}}}async getMetadata(){let e=await this.pmtiles.getHeader(),r=await this.pmtiles.getMetadata()||{},i=QL(e,r,{includeFormatHeader:!1,coordinateReferenceSystem:this.options.pmtiles?.coordinateReferenceSystem,tileSize:this.options.pmtiles?.tileSize},this.loadOptions);return this.options.attributions&&(i.attributions=[...this.options.core?.attributions||[],...i.attributions||[]]),i?.tileMIMEType&&(this.mimeType=i?.tileMIMEType),i}async getTile(e){let r=fd((await xu(this.metadata,e.signal)).tileGrid,e);if(!r)return null;let{x:i,y:n,z:o}=r,s;try{s=await this.getZxyBatched(o,i,n,e.signal)}catch(c){if(e.signal?.aborted)throw e.signal.reason;if(c instanceof Error&&c.name==="AbortError")throw c;return this.reportError(c,`Failed to fetch tile ${this.url} ${JSON.stringify(e)}`),null}if(e.signal?.aborted)throw e.signal.reason;let a=s?.data;return a||(this.reportError(new Error("Empty tile response"),`Failed to fetch tile ${this.url} ${JSON.stringify(e)}`),null)}async getTileData(e){let{x:r,y:i,z:n}=e.index;switch((await xu(this.metadata,e.signal)).tileMIMEType){case"application/vnd.mapbox-vector-tile":case"application/vnd.maplibre-tile":return await this.getVectorTile({x:r,y:i,z:n,layers:[],tileMatrix:e.tileMatrix,signal:e.signal});default:return await this.getImageTile({x:r,y:i,z:n,layers:[],tileMatrix:e.tileMatrix,signal:e.signal})}}getTileBatch(e){return e.map(r=>this.getTile(r))}getTileDataBatch(e){return e.map(r=>this.getTileData(r))}async getImageTile(e){let r=await this.getTile(e);return r?await this.coreApi.parse(r,Nu,this.loadOptions):null}async getVectorTile(e){let r=await xu(this.metadata,e.signal),i=fd(r.tileGrid,e);if(!i)return null;e=i;let n=await this.getTile(e);if((this.mimeType||r?.tileMIMEType)==="application/vnd.maplibre-tile"){let u=this.loadOptions?.mlt,l={...this.loadOptions,mlt:{...u,shape:O7(this.options.pmtiles?.shape)||u?.shape||"arrow-table",coordinates:"wgs84",tileIndex:{x:e.x,y:e.y,z:e.z},layers:nE(e.layers)||u?.layers,geoarrow:this.options.geoarrow||this.options.pmtiles?.geoarrow||u?.geoarrow}};return n?await this.coreApi.parse(n,yc,l):null}let s=this.loadOptions?.mvt,a=nE(e.layers)||s?.layers,c={...this.loadOptions,mvt:{...s,shape:this.options.pmtiles?.shape||s?.shape||"arrow-table",coordinates:"wgs84",tileIndex:{x:e.x,y:e.y,z:e.z},layers:a,geoarrow:this.options.geoarrow||this.options.pmtiles?.geoarrow||s?.geoarrow}};return n?await this.coreApi.parse(n,Mf,c):null}getZxyBatched(e,r,i,n){return this.data instanceof Blob?this.pmtiles.getZxy(e,r,i,n):new Promise((o,s)=>{this.pendingTileRequests.push({z:e,x:r,y:i,signal:n,resolve:o,reject:s}),this.scheduleTileBatch()})}scheduleTileBatch(){if(this.tileBatchTimer)return;let e=this.options.rangeRequests?.batchDelayMs??50;this.tileBatchTimer=setTimeout(()=>this.flushTileBatch(),e)}flushTileBatch(){this.tileBatchTimer&&(clearTimeout(this.tileBatchTimer),this.tileBatchTimer=null);let e=this.pendingTileRequests;this.pendingTileRequests=[];for(let r of e)this.pmtiles.getZxy(r.z,r.x,r.y,r.signal).then(r.resolve,r.reject)}}});var iE,oE=h(()=>{"use strict";iE="5.0.0-alpha.14"});var aE={};Ke(aE,{PMTilesLoaderWithParser:()=>D7});async function sE(t,e){let i=await new rs(t.handle,{pmtiles:e?.pmtiles||{}}).getMetadata(),{tileMIMEType:n,tilejson:o={}}=i,{layers:s=[]}=o;switch(n){case"application/vnd.mapbox-vector-tile":case"application/vnd.maplibre-tile":return{shape:"vector-source",layers:s.map(a=>({name:a.name,schema:a.schema})),tables:[],formatSpecificMetadata:i};case"image/png":case"image/jpeg":return{shape:"image-source",formatSpecificMetadata:i};default:throw new Error(`PMTilesLoaderWithParser: Unsupported tile MIME type ${n}`)}}var ide,B7,D7,cE=h(()=>{"use strict";Li();Ug();YS();({preload:ide,...B7}=Vf),D7={...B7,parse:async(t,e)=>sE(new _u(new Blob([t])),e),parseFile:sE}});async function N7(){let{PMTilesLoaderWithParser:t}=await Promise.resolve().then(()=>(cE(),aE));return t}var Vf,YS=h(()=>{"use strict";oE();Bg();Vf={...va,version:iE,options:{pmtiles:{}},preload:N7}});var z7={};Ke(z7,{FetchError:()=>k.FetchError,JSONLoader:()=>k.JSONLoader,NullLoader:()=>k.NullLoader,NullWorkerLoader:()=>k.NullWorkerLoader,PMTilesFormat:()=>va,PMTilesSourceLoader:()=>Eg,PMTilesTileSource:()=>rs,RequestScheduler:()=>k.RequestScheduler,_BrowserFileSystem:()=>k._BrowserFileSystem,_PMTilesLoader:()=>Vf,_fetchProgress:()=>k._fetchProgress,_selectSource:()=>k._selectSource,_unregisterLoaders:()=>k._unregisterLoaders,assert:()=>k.assert,concatenateArrayBuffersAsync:()=>k.concatenateArrayBuffersAsync,coreApi:()=>k.coreApi,createDataSource:()=>k.createDataSource,document:()=>k.document,encode:()=>k.encode,encodeInBatches:()=>k.encodeInBatches,encodeSync:()=>k.encodeSync,encodeTable:()=>k.encodeTable,encodeTableAsText:()=>k.encodeTableAsText,encodeTableInBatches:()=>k.encodeTableInBatches,encodeText:()=>k.encodeText,encodeTextSync:()=>k.encodeTextSync,encodeURLtoURL:()=>k.encodeURLtoURL,fetchFile:()=>k.fetchFile,forEach:()=>k.forEach,getLoaderOptions:()=>k.getLoaderOptions,getPathPrefix:()=>k.getPathPrefix,global:()=>k.global,isAsyncIterable:()=>k.isAsyncIterable,isBrowser:()=>k.isBrowser,isIterable:()=>k.isIterable,isIterator:()=>k.isIterator,isPromise:()=>k.isPromise,isPureObject:()=>k.isPureObject,isReadableStream:()=>k.isReadableStream,isResponse:()=>k.isResponse,isWorker:()=>k.isWorker,isWritableStream:()=>k.isWritableStream,load:()=>k.load,loadInBatches:()=>k.loadInBatches,makeIterator:()=>k.makeIterator,makeLineIterator:()=>k.makeLineIterator,makeNumberedLineIterator:()=>k.makeNumberedLineIterator,makeStream:()=>k.makeStream,makeTextDecoderIterator:()=>k.makeTextDecoderIterator,makeTextEncoderIterator:()=>k.makeTextEncoderIterator,parse:()=>k.parse,parseFile:()=>k.parseFile,parseInBatches:()=>k.parseInBatches,parseSync:()=>k.parseSync,preload:()=>k.preload,preloadSync:()=>k.preloadSync,readArrayBuffer:()=>k.readArrayBuffer,registerLoaders:()=>k.registerLoaders,resolvePath:()=>k.resolvePath,selectLoader:()=>k.selectLoader,selectLoaderSync:()=>k.selectLoaderSync,self:()=>k.self,setLoaderOptions:()=>k.setLoaderOptions,setPathPrefix:()=>k.setPathPrefix,window:()=>k.window});var k=Kf(c1(),1);Ug();Bg();Ug();YS();return vE(z7);})();
|
|
88
|
+
/*! Bundled license information:
|
|
89
|
+
|
|
90
|
+
ieee754/index.js:
|
|
91
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
92
|
+
*/
|
|
93
|
+
return __exports__;
|
|
94
|
+
});
|