{"version":3,"file":"br-geo.cjs","names":[],"sources":["../../src/br/br-geo.ts"],"sourcesContent":["import rawGeo from \"./data/br-uf-geo.json\";\nimport type { BrRegion, UF } from \"./locations\";\n\n/** A ring of `[longitude, latitude]` pairs. */\nexport type Ring = [number, number][];\n\n/** GeoJSON geometry for a federative unit — always a (multi)polygon. */\nexport interface BrUfGeometry {\n    type: \"Polygon\" | \"MultiPolygon\";\n    /** `Polygon` → `Ring[]`; `MultiPolygon` → `Ring[][]`. */\n    coordinates: Ring[] | Ring[][];\n}\n\n/** One federative unit feature. */\nexport interface BrUfFeature {\n    type: \"Feature\";\n    properties: {\n        uf: UF;\n        name: string;\n        region: BrRegion;\n        /** Representative point `[longitude, latitude]` (area-weighted centroid). */\n        centroid: [number, number];\n    };\n    geometry: BrUfGeometry;\n}\n\n/** The bundled, simplified GeoJSON of all 27 UF boundaries. */\nexport interface BrUfFeatureCollection {\n    type: \"FeatureCollection\";\n    features: BrUfFeature[];\n}\n\n/**\n * Simplified (Douglas-Peucker, ~2 km tolerance) public-domain GeoJSON of the 27\n * Brazilian federative-unit boundaries, derived from IBGE data. ~119 KB raw /\n * ~36 KB gzip — adequate for an interactive overview map, not for precise\n * geographic analysis. This module is loaded lazily by `BrazilMap`, so it lands\n * in its own chunk and never inflates a data-only import.\n */\nexport const BR_UF_GEOJSON = rawGeo as unknown as BrUfFeatureCollection;\n"],"mappings":"AAuCA,IAAa,gCAAgB,CAAA,CAAA"}