@mailwoman/tiger 5.8.0 → 5.10.0

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.
Files changed (80) hide show
  1. package/block-group.ts +4 -4
  2. package/class-code.ts +168 -166
  3. package/constants.ts +35 -28
  4. package/county-subdivision.ts +4 -4
  5. package/county.ts +4 -4
  6. package/files.ts +41 -32
  7. package/functional-status.ts +16 -14
  8. package/geoid.ts +13 -11
  9. package/index.ts +12 -12
  10. package/legal-statistical-area.ts +140 -137
  11. package/out/block-group.d.ts +4 -4
  12. package/out/class-code.d.ts +167 -166
  13. package/out/class-code.d.ts.map +1 -1
  14. package/out/class-code.js +166 -167
  15. package/out/class-code.js.map +1 -1
  16. package/out/constants.d.ts +31 -28
  17. package/out/constants.d.ts.map +1 -1
  18. package/out/constants.js +23 -26
  19. package/out/constants.js.map +1 -1
  20. package/out/county-subdivision.d.ts +4 -4
  21. package/out/county.d.ts +4 -4
  22. package/out/files.d.ts +35 -33
  23. package/out/files.d.ts.map +1 -1
  24. package/out/files.js +19 -21
  25. package/out/files.js.map +1 -1
  26. package/out/functional-status.d.ts +15 -14
  27. package/out/functional-status.d.ts.map +1 -1
  28. package/out/functional-status.js +14 -15
  29. package/out/functional-status.js.map +1 -1
  30. package/out/geoid.d.ts +20 -19
  31. package/out/geoid.d.ts.map +1 -1
  32. package/out/geoid.js +10 -11
  33. package/out/geoid.js.map +1 -1
  34. package/out/index.d.ts +12 -12
  35. package/out/legal-statistical-area.d.ts +138 -137
  36. package/out/legal-statistical-area.d.ts.map +1 -1
  37. package/out/legal-statistical-area.js +137 -138
  38. package/out/legal-statistical-area.js.map +1 -1
  39. package/out/sdk/index.d.ts +4 -4
  40. package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts +1 -2
  41. package/out/sdk/state/TIGERTabulatedBlockEntity.d.ts.map +1 -1
  42. package/out/sdk/state/index.d.ts +3 -3
  43. package/out/state.d.ts +302 -297
  44. package/out/state.d.ts.map +1 -1
  45. package/out/state.js +181 -186
  46. package/out/state.js.map +1 -1
  47. package/out/tabulation-block.d.ts +3 -3
  48. package/out/tabulation-block.d.ts.map +1 -1
  49. package/out/tools/index.d.ts +15 -0
  50. package/out/tools/index.d.ts.map +1 -0
  51. package/out/tools/index.js +15 -0
  52. package/out/tools/index.js.map +1 -0
  53. package/out/tools/race-dots-map.d.ts +29 -5
  54. package/out/tools/race-dots-map.d.ts.map +1 -1
  55. package/out/tools/race-dots-map.js +53 -64
  56. package/out/tools/race-dots-map.js.map +1 -1
  57. package/out/tools/race-dots.d.ts +27 -7
  58. package/out/tools/race-dots.d.ts.map +1 -1
  59. package/out/tools/race-dots.js +85 -89
  60. package/out/tools/race-dots.js.map +1 -1
  61. package/out/tools/serve-range.d.ts +23 -4
  62. package/out/tools/serve-range.d.ts.map +1 -1
  63. package/out/tools/serve-range.js +47 -36
  64. package/out/tools/serve-range.js.map +1 -1
  65. package/out/tract.d.ts +3 -3
  66. package/out/tract.d.ts.map +1 -1
  67. package/out/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +31 -6
  69. package/sdk/fetch.ts +2 -2
  70. package/sdk/index.ts +4 -4
  71. package/sdk/redistricting.ts +2 -2
  72. package/sdk/state/index.ts +3 -3
  73. package/state.ts +193 -183
  74. package/tabulation-block.ts +20 -20
  75. package/tools/index.ts +15 -0
  76. package/tools/race-dots-map.ts +79 -70
  77. package/tools/race-dots.ts +127 -104
  78. package/tools/serve-range.ts +69 -38
  79. package/tract.ts +12 -12
  80. package/tsconfig.json +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/tiger",
3
- "version": "5.8.0",
3
+ "version": "5.10.0",
4
4
  "description": "US Census TIGER/Line data processing and analysis.",
5
5
  "keywords": [
6
6
  "census",
@@ -27,19 +27,44 @@
27
27
  "exports": {
28
28
  "./package.json": "./package.json",
29
29
  "./schema/*.json": "./dist/schema/*.json",
30
- "./scripts/*": "./out/scripts/*.js",
31
- "./sdk": "./out/sdk/index.js",
32
- ".": "./out/index.js"
30
+ "./sdk": {
31
+ "types": "./out/sdk/index.d.ts",
32
+ "default": "./out/sdk/index.js"
33
+ },
34
+ "./tools": {
35
+ "types": "./out/tools/index.d.ts",
36
+ "default": "./out/tools/index.js"
37
+ },
38
+ ".": {
39
+ "types": "./out/index.d.ts",
40
+ "default": "./out/index.js"
41
+ }
33
42
  },
34
43
  "publishConfig": {
44
+ "exports": {
45
+ "./package.json": "./package.json",
46
+ "./schema/*.json": "./dist/schema/*.json",
47
+ "./sdk": {
48
+ "types": "./out/sdk/index.d.ts",
49
+ "default": "./out/sdk/index.js"
50
+ },
51
+ "./tools": {
52
+ "types": "./out/tools/index.d.ts",
53
+ "default": "./out/tools/index.js"
54
+ },
55
+ ".": {
56
+ "types": "./out/index.d.ts",
57
+ "default": "./out/index.js"
58
+ }
59
+ },
35
60
  "access": "public"
36
61
  },
37
62
  "scripts": {
38
63
  "test": "node ./out/sdk/TIGERService.test.js"
39
64
  },
40
65
  "dependencies": {
41
- "@mailwoman/core": "5.8.0",
42
- "@mailwoman/spatial": "5.8.0",
66
+ "@mailwoman/core": "5.10.0",
67
+ "@mailwoman/spatial": "5.10.0",
43
68
  "@turf/boolean-contains": "^7.3.5",
44
69
  "kysely": "^0.29.2",
45
70
  "shapefile-parser": "^1.0.3",
package/sdk/fetch.ts CHANGED
@@ -36,8 +36,8 @@ import { DatabaseClient } from "@mailwoman/core/kysley/client"
36
36
  import { mailwomanDataRoot } from "@mailwoman/core/utils"
37
37
  import { TextSpliterator } from "spliterator"
38
38
 
39
- import type { TIGERBlockTable, TIGERDatabase, TIGERPlaceTable, TIGERStreetTable } from "./schema.js"
40
- import { initializeTIGERSchema, TIGER_PRAGMAS } from "./schema.js"
39
+ import type { TIGERBlockTable, TIGERDatabase, TIGERPlaceTable, TIGERStreetTable } from "./schema.ts"
40
+ import { initializeTIGERSchema, TIGER_PRAGMAS } from "./schema.ts"
41
41
 
42
42
  const CENSUS_HOST = "https://www2.census.gov"
43
43
  const DEFAULT_DATA_ROOT = mailwomanDataRoot()
package/sdk/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
6
 
7
- export * from "./fetch.js"
8
- export * from "./redistricting.js"
9
- export * from "./schema.js"
10
- export * from "./state/index.js"
7
+ export * from "./fetch.ts"
8
+ export * from "./redistricting.ts"
9
+ export * from "./schema.ts"
10
+ export * from "./state/index.ts"
@@ -28,8 +28,8 @@ import { DatabaseClient } from "@mailwoman/core/kysley/client"
28
28
  import { mailwomanDataRoot } from "@mailwoman/core/utils"
29
29
  import { TextSpliterator } from "spliterator"
30
30
 
31
- import { AdminLevel1CodeToAbbreviation, StateName, type AdminLevel1Code } from "../state.js"
32
- import { initializeTIGERSchema, TIGER_PRAGMAS, type PLBlockTable, type TIGERDatabase } from "./schema.js"
31
+ import { AdminLevel1CodeToAbbreviation, StateName, type AdminLevel1Code } from "../state.ts"
32
+ import { initializeTIGERSchema, TIGER_PRAGMAS, type PLBlockTable, type TIGERDatabase } from "./schema.ts"
33
33
 
34
34
  const REDISTRICTING_BASE =
35
35
  "https://www2.census.gov/programs-surveys/decennial/2020/data/01-Redistricting_File--PL_94-171"
@@ -4,6 +4,6 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
6
 
7
- export * from "./block-operations.js"
8
- export * from "./TIGERTabulatedBlockEntity.js"
9
- export * from "./TIGERTractEntity.js"
7
+ export * from "./block-operations.ts"
8
+ export * from "./TIGERTabulatedBlockEntity.ts"
9
+ export * from "./TIGERTractEntity.ts"
package/state.ts CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  import type { GeoFeature, MultiPolygonLiteral } from "@mailwoman/spatial"
8
8
 
9
- import { GeoIDPart } from "./geoid.js"
10
- import type { TIGERTabulatedBlockProperties } from "./tabulation-block.js"
9
+ import { GeoIDPart } from "./geoid.ts"
10
+ import type { TIGERTabulatedBlockProperties } from "./tabulation-block.ts"
11
11
 
12
12
  //#region FIPS Codes
13
13
 
@@ -20,160 +20,162 @@ import type { TIGERTabulatedBlockProperties } from "./tabulation-block.js"
20
20
  * @see {@linkcode FIPSTerritoryCode} for territories.
21
21
  * @see {@linkcode AdminLevel1Code} for a combined set of states and territories.
22
22
  */
23
- export enum FIPSStateCode {
23
+ export const FIPSStateCode = {
24
24
  /** @title Alabama */
25
- AL = "01",
25
+ AL: "01",
26
26
 
27
27
  /** @title Alaska */
28
- AK = "02",
28
+ AK: "02",
29
29
 
30
30
  /** @title Arizona */
31
- AZ = "04",
31
+ AZ: "04",
32
32
 
33
33
  /** @title Arkansas */
34
- AR = "05",
34
+ AR: "05",
35
35
 
36
36
  /** @title California */
37
- CA = "06",
37
+ CA: "06",
38
38
 
39
39
  /** @title Colorado */
40
- CO = "08",
40
+ CO: "08",
41
41
 
42
42
  /** @title Connecticut */
43
- CT = "09",
43
+ CT: "09",
44
44
 
45
45
  /** @title Delaware */
46
- DE = "10",
46
+ DE: "10",
47
47
 
48
48
  /** @title District Of Columbia */
49
- DC = "11",
49
+ DC: "11",
50
50
 
51
51
  /** @title Florida */
52
- FL = "12",
52
+ FL: "12",
53
53
 
54
54
  /** @title Georgia */
55
- GA = "13",
55
+ GA: "13",
56
56
 
57
57
  /** @title Hawaii */
58
- HI = "15",
58
+ HI: "15",
59
59
 
60
60
  /** @title Idaho */
61
- ID = "16",
61
+ ID: "16",
62
62
 
63
63
  /** @title Illinois */
64
- IL = "17",
64
+ IL: "17",
65
65
 
66
66
  /** @title Indiana */
67
- IN = "18",
67
+ IN: "18",
68
68
 
69
69
  /** @title Iowa */
70
- IA = "19",
70
+ IA: "19",
71
71
 
72
72
  /** @title Kansas */
73
- KS = "20",
73
+ KS: "20",
74
74
 
75
75
  /** @title Kentucky */
76
- KY = "21",
76
+ KY: "21",
77
77
 
78
78
  /** @title Louisiana */
79
- LA = "22",
79
+ LA: "22",
80
80
 
81
81
  /** @title Maine */
82
- ME = "23",
82
+ ME: "23",
83
83
 
84
84
  /** @title Maryland */
85
- MD = "24",
85
+ MD: "24",
86
86
 
87
87
  /** @title Massachusetts */
88
- MA = "25",
88
+ MA: "25",
89
89
 
90
90
  /** @title Michigan */
91
- MI = "26",
91
+ MI: "26",
92
92
 
93
93
  /** @title Minnesota */
94
- MN = "27",
94
+ MN: "27",
95
95
 
96
96
  /** @title Mississippi */
97
- MS = "28",
97
+ MS: "28",
98
98
 
99
99
  /** @title Missouri */
100
- MO = "29",
100
+ MO: "29",
101
101
 
102
102
  /** @title Montana */
103
- MT = "30",
103
+ MT: "30",
104
104
 
105
105
  /** @title Nebraska */
106
- NE = "31",
106
+ NE: "31",
107
107
 
108
108
  /** @title Nevada */
109
- NV = "32",
109
+ NV: "32",
110
110
 
111
111
  /** @title New Hampshire */
112
- NH = "33",
112
+ NH: "33",
113
113
 
114
114
  /** @title New Jersey */
115
- NJ = "34",
115
+ NJ: "34",
116
116
 
117
117
  /** @title New Mexico */
118
- NM = "35",
118
+ NM: "35",
119
119
 
120
120
  /** @title New York */
121
- NY = "36",
121
+ NY: "36",
122
122
 
123
123
  /** @title North Carolina */
124
- NC = "37",
124
+ NC: "37",
125
125
 
126
126
  /** @title North Dakota */
127
- ND = "38",
127
+ ND: "38",
128
128
 
129
129
  /** @title Ohio */
130
- OH = "39",
130
+ OH: "39",
131
131
 
132
132
  /** @title Oklahoma */
133
- OK = "40",
133
+ OK: "40",
134
134
 
135
135
  /** @title Oregon */
136
- OR = "41",
136
+ OR: "41",
137
137
 
138
138
  /** @title Pennsylvania */
139
- PA = "42",
139
+ PA: "42",
140
140
 
141
141
  /** @title Rhode Island */
142
- RI = "44",
142
+ RI: "44",
143
143
 
144
144
  /** @title South Carolina */
145
- SC = "45",
145
+ SC: "45",
146
146
 
147
147
  /** @title South Dakota */
148
- SD = "46",
148
+ SD: "46",
149
149
 
150
150
  /** @title Tennessee */
151
- TN = "47",
151
+ TN: "47",
152
152
 
153
153
  /** @title Texas */
154
- TX = "48",
154
+ TX: "48",
155
155
 
156
156
  /** @title Utah */
157
- UT = "49",
157
+ UT: "49",
158
158
 
159
159
  /** @title Vermont */
160
- VT = "50",
160
+ VT: "50",
161
161
 
162
162
  /** @title Virginia */
163
- VA = "51",
163
+ VA: "51",
164
164
 
165
165
  /** @title Washington */
166
- WA = "53",
166
+ WA: "53",
167
167
 
168
168
  /** @title West Virginia */
169
- WV = "54",
169
+ WV: "54",
170
170
 
171
171
  /** @title Wisconsin */
172
- WI = "55",
172
+ WI: "55",
173
173
 
174
174
  /** @title Wyoming */
175
- WY = "56",
176
- }
175
+ WY: "56",
176
+ } as const
177
+
178
+ export type FIPSStateCode = (typeof FIPSStateCode)[keyof typeof FIPSStateCode]
177
179
 
178
180
  /**
179
181
  * FIPS codes for US Territories.
@@ -186,27 +188,29 @@ export enum FIPSStateCode {
186
188
  * @see {@linkcode FIPSStateCode} for states.
187
189
  * @see {@linkcode AdminLevel1Code} for a combined set of states and territories.
188
190
  */
189
- export enum FIPSTerritoryCode {
191
+ export const FIPSTerritoryCode = {
190
192
  /**
191
193
  * @title Johnston Atoll
192
194
  */
193
- JA = "74",
195
+ JA: "74",
194
196
 
195
197
  /** @title American Samoa */
196
- AS = "60",
198
+ AS: "60",
197
199
 
198
200
  /** @title Guam */
199
- GU = "66",
201
+ GU: "66",
200
202
 
201
203
  /** @title Northern Mariana Islands */
202
- MP = "69",
204
+ MP: "69",
203
205
 
204
206
  /** @title Puerto Rico */
205
- PR = "72",
207
+ PR: "72",
206
208
 
207
209
  /** @title Virgin Islands */
208
- VI = "78",
209
- }
210
+ VI: "78",
211
+ } as const
212
+
213
+ export type FIPSTerritoryCode = (typeof FIPSTerritoryCode)[keyof typeof FIPSTerritoryCode]
210
214
 
211
215
  /**
212
216
  * A combined set of FIPS codes for US States and Territories.
@@ -284,68 +288,72 @@ export function isAdminLevel1FIPSCode(code: string | null | undefined): code is
284
288
  * @maxLength 2
285
289
  * @public
286
290
  */
287
- export enum StateAbbreviation {
288
- "Alaska" = "AK",
289
- "Alabama" = "AL",
290
- "Arkansas" = "AR",
291
- "Arizona" = "AZ",
292
- "California" = "CA",
293
- "Colorado" = "CO",
294
- "Connecticut" = "CT",
295
- "District of Columbia" = "DC",
296
- "Delaware" = "DE",
297
- "Florida" = "FL",
298
- "Georgia" = "GA",
299
- "Hawaii" = "HI",
300
- "Iowa" = "IA",
301
- "Idaho" = "ID",
302
- "Illinois" = "IL",
303
- "Indiana" = "IN",
304
- "Kansas" = "KS",
305
- "Kentucky" = "KY",
306
- "Louisiana" = "LA",
307
- "Massachusetts" = "MA",
308
- "Maryland" = "MD",
309
- "Maine" = "ME",
310
- "Michigan" = "MI",
311
- "Minnesota" = "MN",
312
- "Missouri" = "MO",
313
- "Mississippi" = "MS",
314
- "Montana" = "MT",
315
- "North Carolina" = "NC",
316
- "North Dakota" = "ND",
317
- "Nebraska" = "NE",
318
- "New Hampshire" = "NH",
319
- "New Jersey" = "NJ",
320
- "New Mexico" = "NM",
321
- "Nevada" = "NV",
322
- "New York" = "NY",
323
- "Ohio" = "OH",
324
- "Oklahoma" = "OK",
325
- "Oregon" = "OR",
326
- "Pennsylvania" = "PA",
327
- "Rhode Island" = "RI",
328
- "South Carolina" = "SC",
329
- "South Dakota" = "SD",
330
- "Tennessee" = "TN",
331
- "Texas" = "TX",
332
- "Utah" = "UT",
333
- "Virginia" = "VA",
334
- "Vermont" = "VT",
335
- "Washington" = "WA",
336
- "Wisconsin" = "WI",
337
- "West Virginia" = "WV",
338
- "Wyoming" = "WY",
339
- }
291
+ export const StateAbbreviation = {
292
+ Alaska: "AK",
293
+ Alabama: "AL",
294
+ Arkansas: "AR",
295
+ Arizona: "AZ",
296
+ California: "CA",
297
+ Colorado: "CO",
298
+ Connecticut: "CT",
299
+ "District of Columbia": "DC",
300
+ Delaware: "DE",
301
+ Florida: "FL",
302
+ Georgia: "GA",
303
+ Hawaii: "HI",
304
+ Iowa: "IA",
305
+ Idaho: "ID",
306
+ Illinois: "IL",
307
+ Indiana: "IN",
308
+ Kansas: "KS",
309
+ Kentucky: "KY",
310
+ Louisiana: "LA",
311
+ Massachusetts: "MA",
312
+ Maryland: "MD",
313
+ Maine: "ME",
314
+ Michigan: "MI",
315
+ Minnesota: "MN",
316
+ Missouri: "MO",
317
+ Mississippi: "MS",
318
+ Montana: "MT",
319
+ "North Carolina": "NC",
320
+ "North Dakota": "ND",
321
+ Nebraska: "NE",
322
+ "New Hampshire": "NH",
323
+ "New Jersey": "NJ",
324
+ "New Mexico": "NM",
325
+ Nevada: "NV",
326
+ "New York": "NY",
327
+ Ohio: "OH",
328
+ Oklahoma: "OK",
329
+ Oregon: "OR",
330
+ Pennsylvania: "PA",
331
+ "Rhode Island": "RI",
332
+ "South Carolina": "SC",
333
+ "South Dakota": "SD",
334
+ Tennessee: "TN",
335
+ Texas: "TX",
336
+ Utah: "UT",
337
+ Virginia: "VA",
338
+ Vermont: "VT",
339
+ Washington: "WA",
340
+ Wisconsin: "WI",
341
+ "West Virginia": "WV",
342
+ Wyoming: "WY",
343
+ } as const
340
344
 
341
- export enum TerritoryAbbreviation {
342
- "American Samoa" = "AS",
343
- "Johnston Atoll" = "JA",
344
- "Guam" = "GU",
345
- "Virgin Islands" = "VI",
346
- "Northern Mariana Islands" = "MP",
347
- "Puerto Rico" = "PR",
348
- }
345
+ export type StateAbbreviation = (typeof StateAbbreviation)[keyof typeof StateAbbreviation]
346
+
347
+ export const TerritoryAbbreviation = {
348
+ "American Samoa": "AS",
349
+ "Johnston Atoll": "JA",
350
+ Guam: "GU",
351
+ "Virgin Islands": "VI",
352
+ "Northern Mariana Islands": "MP",
353
+ "Puerto Rico": "PR",
354
+ } as const
355
+
356
+ export type TerritoryAbbreviation = (typeof TerritoryAbbreviation)[keyof typeof TerritoryAbbreviation]
349
357
 
350
358
  /**
351
359
  * Two-letter abbreviations of a US states and territories.
@@ -370,65 +378,67 @@ export const AdminLevel1Abbreviation = {
370
378
  *
371
379
  * @public
372
380
  */
373
- export enum StateName {
374
- AS = "American Samoa",
375
- AK = "Alaska",
376
- AL = "Alabama",
377
- AR = "Arkansas",
378
- AZ = "Arizona",
379
- CA = "California",
380
- CO = "Colorado",
381
- CT = "Connecticut",
382
- DC = "District of Columbia",
383
- DE = "Delaware",
384
- FL = "Florida",
385
- GA = "Georgia",
386
- HI = "Hawaii",
387
- IA = "Iowa",
388
- ID = "Idaho",
389
- IL = "Illinois",
390
- IN = "Indiana",
391
- JA = "Johnston Atoll",
392
- KS = "Kansas",
393
- KY = "Kentucky",
394
- LA = "Louisiana",
395
- MA = "Massachusetts",
396
- MD = "Maryland",
397
- ME = "Maine",
398
- MI = "Michigan",
399
- MN = "Minnesota",
400
- MO = "Missouri",
401
- MS = "Mississippi",
402
- MT = "Montana",
403
- NC = "North Carolina",
404
- ND = "North Dakota",
405
- NE = "Nebraska",
406
- NH = "New Hampshire",
407
- NJ = "New Jersey",
408
- NM = "New Mexico",
409
- NV = "Nevada",
410
- NY = "New York",
411
- OH = "Ohio",
412
- OK = "Oklahoma",
413
- OR = "Oregon",
414
- PA = "Pennsylvania",
415
- PR = "Puerto Rico",
416
- RI = "Rhode Island",
417
- SC = "South Carolina",
418
- SD = "South Dakota",
419
- TN = "Tennessee",
420
- TX = "Texas",
421
- UT = "Utah",
422
- VA = "Virginia",
423
- VT = "Vermont",
424
- WA = "Washington",
425
- WI = "Wisconsin",
426
- WV = "West Virginia",
427
- WY = "Wyoming",
428
- VI = "Virgin Islands",
429
- MP = "Northern Mariana Islands",
430
- GU = "Guam",
431
- }
381
+ export const StateName = {
382
+ AS: "American Samoa",
383
+ AK: "Alaska",
384
+ AL: "Alabama",
385
+ AR: "Arkansas",
386
+ AZ: "Arizona",
387
+ CA: "California",
388
+ CO: "Colorado",
389
+ CT: "Connecticut",
390
+ DC: "District of Columbia",
391
+ DE: "Delaware",
392
+ FL: "Florida",
393
+ GA: "Georgia",
394
+ HI: "Hawaii",
395
+ IA: "Iowa",
396
+ ID: "Idaho",
397
+ IL: "Illinois",
398
+ IN: "Indiana",
399
+ JA: "Johnston Atoll",
400
+ KS: "Kansas",
401
+ KY: "Kentucky",
402
+ LA: "Louisiana",
403
+ MA: "Massachusetts",
404
+ MD: "Maryland",
405
+ ME: "Maine",
406
+ MI: "Michigan",
407
+ MN: "Minnesota",
408
+ MO: "Missouri",
409
+ MS: "Mississippi",
410
+ MT: "Montana",
411
+ NC: "North Carolina",
412
+ ND: "North Dakota",
413
+ NE: "Nebraska",
414
+ NH: "New Hampshire",
415
+ NJ: "New Jersey",
416
+ NM: "New Mexico",
417
+ NV: "Nevada",
418
+ NY: "New York",
419
+ OH: "Ohio",
420
+ OK: "Oklahoma",
421
+ OR: "Oregon",
422
+ PA: "Pennsylvania",
423
+ PR: "Puerto Rico",
424
+ RI: "Rhode Island",
425
+ SC: "South Carolina",
426
+ SD: "South Dakota",
427
+ TN: "Tennessee",
428
+ TX: "Texas",
429
+ UT: "Utah",
430
+ VA: "Virginia",
431
+ VT: "Vermont",
432
+ WA: "Washington",
433
+ WI: "Wisconsin",
434
+ WV: "West Virginia",
435
+ WY: "Wyoming",
436
+ VI: "Virgin Islands",
437
+ MP: "Northern Mariana Islands",
438
+ GU: "Guam",
439
+ } as const
440
+
441
+ export type StateName = (typeof StateName)[keyof typeof StateName]
432
442
 
433
443
  //#endregion
434
444