@mailwoman/registry 10.8.0 → 11.1.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 (399) hide show
  1. package/README.md +93 -98
  2. package/data/manifests/artifacts.json +32 -0
  3. package/data/manifests/coverage.json +56 -0
  4. package/data/manifests/sources.lock.json +48 -0
  5. package/data/normalized/iata-airports.json +126749 -0
  6. package/data/normalized/iso3166-1.json +2035 -0
  7. package/definitions/namespaces.json +63 -0
  8. package/definitions/sections.json +73 -0
  9. package/docs/data-policy.md +81 -0
  10. package/docs/performance.md +146 -0
  11. package/docs/rgy1.md +144 -0
  12. package/lib/artifacts/country-airport-collision.ts +28 -0
  13. package/lib/artifacts/iata-airport/membership.ts +28 -0
  14. package/lib/artifacts/iata-airport/records.ts +28 -0
  15. package/lib/artifacts/iso3166-1/alpha2-membership.ts +28 -0
  16. package/lib/artifacts/iso3166-1/alpha3-membership.ts +28 -0
  17. package/lib/artifacts/iso3166-1/records.ts +28 -0
  18. package/lib/errors.ts +47 -0
  19. package/lib/iata/airports/records.ts +173 -0
  20. package/lib/iata/airports/validate.ts +50 -0
  21. package/lib/index.ts +32 -18
  22. package/lib/inspect.ts +56 -0
  23. package/lib/iso3166/alpha2.ts +48 -0
  24. package/lib/iso3166/alpha3.ts +51 -0
  25. package/lib/iso3166/records.ts +150 -0
  26. package/lib/iso3166/relations.ts +30 -0
  27. package/lib/key.ts +148 -0
  28. package/lib/normalize.ts +35 -0
  29. package/lib/overlap/country-airport.ts +110 -0
  30. package/lib/rgy1/base64.ts +23 -0
  31. package/lib/rgy1/reader.ts +317 -0
  32. package/lib/rgy1/sections.generated.ts +80 -0
  33. package/lib/rgy1/views.ts +266 -0
  34. package/lib/types.ts +92 -77
  35. package/lib/wasm.ts +287 -0
  36. package/out/artifacts/country-airport-collision.d.ts +7 -0
  37. package/out/artifacts/country-airport-collision.d.ts.map +1 -0
  38. package/out/artifacts/country-airport-collision.js +22 -0
  39. package/out/artifacts/country-airport-collision.js.map +1 -0
  40. package/out/artifacts/iata-airport/membership.d.ts +7 -0
  41. package/out/artifacts/iata-airport/membership.d.ts.map +1 -0
  42. package/out/artifacts/iata-airport/membership.js +22 -0
  43. package/out/artifacts/iata-airport/membership.js.map +1 -0
  44. package/out/artifacts/iata-airport/records.d.ts +7 -0
  45. package/out/artifacts/iata-airport/records.d.ts.map +1 -0
  46. package/out/artifacts/iata-airport/records.js +22 -0
  47. package/out/artifacts/iata-airport/records.js.map +1 -0
  48. package/out/artifacts/iso3166-1/alpha2-membership.d.ts +7 -0
  49. package/out/artifacts/iso3166-1/alpha2-membership.d.ts.map +1 -0
  50. package/out/artifacts/iso3166-1/alpha2-membership.js +22 -0
  51. package/out/artifacts/iso3166-1/alpha2-membership.js.map +1 -0
  52. package/out/artifacts/iso3166-1/alpha3-membership.d.ts +7 -0
  53. package/out/artifacts/iso3166-1/alpha3-membership.d.ts.map +1 -0
  54. package/out/artifacts/iso3166-1/alpha3-membership.js +22 -0
  55. package/out/artifacts/iso3166-1/alpha3-membership.js.map +1 -0
  56. package/out/artifacts/iso3166-1/records.d.ts +7 -0
  57. package/out/artifacts/iso3166-1/records.d.ts.map +1 -0
  58. package/out/artifacts/iso3166-1/records.js +22 -0
  59. package/out/artifacts/iso3166-1/records.js.map +1 -0
  60. package/out/errors.d.ts +38 -0
  61. package/out/errors.d.ts.map +1 -0
  62. package/out/errors.js +37 -0
  63. package/out/errors.js.map +1 -0
  64. package/out/iata/airports/records.d.ts +37 -0
  65. package/out/iata/airports/records.d.ts.map +1 -0
  66. package/out/iata/airports/records.js +135 -0
  67. package/out/iata/airports/records.js.map +1 -0
  68. package/out/iata/airports/validate.d.ts +19 -0
  69. package/out/iata/airports/validate.d.ts.map +1 -0
  70. package/out/iata/airports/validate.js +42 -0
  71. package/out/iata/airports/validate.js.map +1 -0
  72. package/out/index.d.ts +21 -18
  73. package/out/index.d.ts.map +1 -1
  74. package/out/index.js +12 -22
  75. package/out/index.js.map +1 -1
  76. package/out/inspect.d.ts +35 -0
  77. package/out/inspect.d.ts.map +1 -0
  78. package/out/inspect.js +32 -0
  79. package/out/inspect.js.map +1 -0
  80. package/out/iso3166/alpha2.d.ts +16 -0
  81. package/out/iso3166/alpha2.d.ts.map +1 -0
  82. package/out/iso3166/alpha2.js +40 -0
  83. package/out/iso3166/alpha2.js.map +1 -0
  84. package/out/iso3166/alpha3.d.ts +21 -0
  85. package/out/iso3166/alpha3.d.ts.map +1 -0
  86. package/out/iso3166/alpha3.js +43 -0
  87. package/out/iso3166/alpha3.js.map +1 -0
  88. package/out/iso3166/records.d.ts +27 -0
  89. package/out/iso3166/records.d.ts.map +1 -0
  90. package/out/iso3166/records.js +105 -0
  91. package/out/iso3166/records.js.map +1 -0
  92. package/out/iso3166/relations.d.ts +13 -0
  93. package/out/iso3166/relations.d.ts.map +1 -0
  94. package/out/iso3166/relations.js +26 -0
  95. package/out/iso3166/relations.js.map +1 -0
  96. package/out/key.d.ts +67 -0
  97. package/out/key.d.ts.map +1 -0
  98. package/out/key.js +123 -0
  99. package/out/key.js.map +1 -0
  100. package/out/normalize.d.ts +26 -0
  101. package/out/normalize.d.ts.map +1 -0
  102. package/out/normalize.js +11 -0
  103. package/out/normalize.js.map +1 -0
  104. package/out/overlap/country-airport.d.ts +43 -0
  105. package/out/overlap/country-airport.d.ts.map +1 -0
  106. package/out/overlap/country-airport.js +72 -0
  107. package/out/overlap/country-airport.js.map +1 -0
  108. package/out/rgy1/base64.d.ts +11 -0
  109. package/out/rgy1/base64.d.ts.map +1 -0
  110. package/out/rgy1/base64.js +20 -0
  111. package/out/rgy1/base64.js.map +1 -0
  112. package/out/rgy1/reader.d.ts +92 -0
  113. package/out/rgy1/reader.d.ts.map +1 -0
  114. package/out/rgy1/reader.js +230 -0
  115. package/out/rgy1/reader.js.map +1 -0
  116. package/out/rgy1/sections.generated.d.ts +52 -0
  117. package/out/rgy1/sections.generated.d.ts.map +1 -0
  118. package/out/rgy1/sections.generated.js +69 -0
  119. package/out/rgy1/sections.generated.js.map +1 -0
  120. package/out/rgy1/views.d.ts +89 -0
  121. package/out/rgy1/views.d.ts.map +1 -0
  122. package/out/rgy1/views.js +216 -0
  123. package/out/rgy1/views.js.map +1 -0
  124. package/out/sdk/fetch.d.ts +49 -0
  125. package/out/sdk/fetch.d.ts.map +1 -0
  126. package/out/sdk/fetch.js +105 -0
  127. package/out/sdk/fetch.js.map +1 -0
  128. package/out/sdk/fetch.run.d.ts +2 -0
  129. package/out/sdk/fetch.run.d.ts.map +1 -0
  130. package/out/sdk/fetch.run.js +19 -0
  131. package/out/sdk/fetch.run.js.map +1 -0
  132. package/out/sdk/sources.d.ts +102 -0
  133. package/out/sdk/sources.d.ts.map +1 -0
  134. package/out/sdk/sources.js +101 -0
  135. package/out/sdk/sources.js.map +1 -0
  136. package/out/tools/artifact-path.d.ts +5 -0
  137. package/out/tools/artifact-path.d.ts.map +1 -0
  138. package/out/tools/artifact-path.js +9 -0
  139. package/out/tools/artifact-path.js.map +1 -0
  140. package/out/tools/bench.run.d.ts +2 -0
  141. package/out/tools/bench.run.d.ts.map +1 -0
  142. package/out/tools/bench.run.js +207 -0
  143. package/out/tools/bench.run.js.map +1 -0
  144. package/out/tools/build-wasm.run.d.ts +2 -0
  145. package/out/tools/build-wasm.run.d.ts.map +1 -0
  146. package/out/tools/build-wasm.run.js +69 -0
  147. package/out/tools/build-wasm.run.js.map +1 -0
  148. package/out/tools/generate-sections.run.d.ts +2 -0
  149. package/out/tools/generate-sections.run.d.ts.map +1 -0
  150. package/out/tools/generate-sections.run.js +127 -0
  151. package/out/tools/generate-sections.run.js.map +1 -0
  152. package/out/tools/generate.run.d.ts +2 -0
  153. package/out/tools/generate.run.d.ts.map +1 -0
  154. package/out/tools/generate.run.js +115 -0
  155. package/out/tools/generate.run.js.map +1 -0
  156. package/out/tools/normalize.d.ts +143 -0
  157. package/out/tools/normalize.d.ts.map +1 -0
  158. package/out/tools/normalize.js +303 -0
  159. package/out/tools/normalize.js.map +1 -0
  160. package/out/tools/normalize.run.d.ts +2 -0
  161. package/out/tools/normalize.run.d.ts.map +1 -0
  162. package/out/tools/normalize.run.js +27 -0
  163. package/out/tools/normalize.run.js.map +1 -0
  164. package/out/types.d.ts +91 -79
  165. package/out/types.d.ts.map +1 -1
  166. package/out/types.js +15 -8
  167. package/out/types.js.map +1 -1
  168. package/out/wasm.d.ts +85 -0
  169. package/out/wasm.d.ts.map +1 -0
  170. package/out/wasm.js +138 -0
  171. package/out/wasm.js.map +1 -0
  172. package/package.json +54 -28
  173. package/sdk/fetch.run.ts +24 -0
  174. package/sdk/fetch.ts +145 -0
  175. package/sdk/sources.ts +166 -0
  176. package/tools/artifact-path.ts +9 -0
  177. package/tools/bench.run.ts +274 -0
  178. package/tools/build-wasm.run.ts +81 -0
  179. package/tools/generate-sections.run.ts +144 -0
  180. package/tools/generate.run.ts +144 -0
  181. package/tools/normalize.run.ts +35 -0
  182. package/tools/normalize.ts +475 -0
  183. package/wasm/registry-simd.wasm +0 -0
  184. package/wasm/registry.wasm +0 -0
  185. package/lib/address-key.ts +0 -46
  186. package/lib/geocode-handler.ts +0 -37
  187. package/lib/geojson.ts +0 -72
  188. package/lib/ingest.ts +0 -349
  189. package/lib/learned-scorer.ts +0 -134
  190. package/lib/map-html.ts +0 -287
  191. package/lib/models/crosssource-gbt-en-us.ts +0 -43
  192. package/lib/models/dedup-gbt-en-us.ts +0 -47
  193. package/lib/models/org-crosssource-gbt-en-us.ts +0 -43
  194. package/lib/reconcile.ts +0 -239
  195. package/lib/resolve.ts +0 -569
  196. package/out/address-key.d.ts +0 -34
  197. package/out/address-key.d.ts.map +0 -1
  198. package/out/address-key.js +0 -41
  199. package/out/address-key.js.map +0 -1
  200. package/out/geocode-handler.d.ts +0 -20
  201. package/out/geocode-handler.d.ts.map +0 -1
  202. package/out/geocode-handler.js +0 -29
  203. package/out/geocode-handler.js.map +0 -1
  204. package/out/geojson.d.ts +0 -28
  205. package/out/geojson.d.ts.map +0 -1
  206. package/out/geojson.js +0 -62
  207. package/out/geojson.js.map +0 -1
  208. package/out/ingest.d.ts +0 -173
  209. package/out/ingest.d.ts.map +0 -1
  210. package/out/ingest.js +0 -185
  211. package/out/ingest.js.map +0 -1
  212. package/out/learned-scorer.d.ts +0 -61
  213. package/out/learned-scorer.d.ts.map +0 -1
  214. package/out/learned-scorer.js +0 -91
  215. package/out/learned-scorer.js.map +0 -1
  216. package/out/map-html.d.ts +0 -39
  217. package/out/map-html.d.ts.map +0 -1
  218. package/out/map-html.js +0 -220
  219. package/out/map-html.js.map +0 -1
  220. package/out/models/crosssource-gbt-en-us.d.ts +0 -45
  221. package/out/models/crosssource-gbt-en-us.d.ts.map +0 -1
  222. package/out/models/crosssource-gbt-en-us.js +0 -40
  223. package/out/models/crosssource-gbt-en-us.js.map +0 -1
  224. package/out/models/dedup-gbt-en-us.d.ts +0 -44
  225. package/out/models/dedup-gbt-en-us.d.ts.map +0 -1
  226. package/out/models/dedup-gbt-en-us.js +0 -44
  227. package/out/models/dedup-gbt-en-us.js.map +0 -1
  228. package/out/models/org-crosssource-gbt-en-us.d.ts +0 -45
  229. package/out/models/org-crosssource-gbt-en-us.d.ts.map +0 -1
  230. package/out/models/org-crosssource-gbt-en-us.js +0 -40
  231. package/out/models/org-crosssource-gbt-en-us.js.map +0 -1
  232. package/out/reconcile.d.ts +0 -96
  233. package/out/reconcile.d.ts.map +0 -1
  234. package/out/reconcile.js +0 -127
  235. package/out/reconcile.js.map +0 -1
  236. package/out/resolve.d.ts +0 -264
  237. package/out/resolve.d.ts.map +0 -1
  238. package/out/resolve.js +0 -282
  239. package/out/resolve.js.map +0 -1
  240. package/out/tools/coverage-reconciliation.d.ts +0 -67
  241. package/out/tools/coverage-reconciliation.d.ts.map +0 -1
  242. package/out/tools/coverage-reconciliation.js +0 -113
  243. package/out/tools/coverage-reconciliation.js.map +0 -1
  244. package/out/tools/cross/dataset-correlation.d.ts +0 -61
  245. package/out/tools/cross/dataset-correlation.d.ts.map +0 -1
  246. package/out/tools/cross/dataset-correlation.js +0 -244
  247. package/out/tools/cross/dataset-correlation.js.map +0 -1
  248. package/out/tools/cross/source-threshold-sweep.d.ts +0 -60
  249. package/out/tools/cross/source-threshold-sweep.d.ts.map +0 -1
  250. package/out/tools/cross/source-threshold-sweep.js +0 -264
  251. package/out/tools/cross/source-threshold-sweep.js.map +0 -1
  252. package/out/tools/dedup-ceiling.d.ts +0 -62
  253. package/out/tools/dedup-ceiling.d.ts.map +0 -1
  254. package/out/tools/dedup-ceiling.js +0 -171
  255. package/out/tools/dedup-ceiling.js.map +0 -1
  256. package/out/tools/eval-geocoder.d.ts +0 -68
  257. package/out/tools/eval-geocoder.d.ts.map +0 -1
  258. package/out/tools/eval-geocoder.js +0 -13
  259. package/out/tools/eval-geocoder.js.map +0 -1
  260. package/out/tools/geocoder/namesake-probe.d.ts +0 -33
  261. package/out/tools/geocoder/namesake-probe.d.ts.map +0 -1
  262. package/out/tools/geocoder/namesake-probe.js +0 -60
  263. package/out/tools/geocoder/namesake-probe.js.map +0 -1
  264. package/out/tools/geocoder/vs-provided-coords.d.ts +0 -53
  265. package/out/tools/geocoder/vs-provided-coords.d.ts.map +0 -1
  266. package/out/tools/geocoder/vs-provided-coords.js +0 -161
  267. package/out/tools/geocoder/vs-provided-coords.js.map +0 -1
  268. package/out/tools/gold-set-sample.d.ts +0 -67
  269. package/out/tools/gold-set-sample.d.ts.map +0 -1
  270. package/out/tools/gold-set-sample.js +0 -81
  271. package/out/tools/gold-set-sample.js.map +0 -1
  272. package/out/tools/learned/scorer/clustering-eval.d.ts +0 -77
  273. package/out/tools/learned/scorer/clustering-eval.d.ts.map +0 -1
  274. package/out/tools/learned/scorer/clustering-eval.js +0 -207
  275. package/out/tools/learned/scorer/clustering-eval.js.map +0 -1
  276. package/out/tools/learned/scorer/crossstate-eval.d.ts +0 -65
  277. package/out/tools/learned/scorer/crossstate-eval.d.ts.map +0 -1
  278. package/out/tools/learned/scorer/crossstate-eval.js +0 -168
  279. package/out/tools/learned/scorer/crossstate-eval.js.map +0 -1
  280. package/out/tools/learned/scorer/eval.d.ts +0 -64
  281. package/out/tools/learned/scorer/eval.d.ts.map +0 -1
  282. package/out/tools/learned/scorer/eval.js +0 -275
  283. package/out/tools/learned/scorer/eval.js.map +0 -1
  284. package/out/tools/matcher-scale.d.ts +0 -40
  285. package/out/tools/matcher-scale.d.ts.map +0 -1
  286. package/out/tools/matcher-scale.js +0 -111
  287. package/out/tools/matcher-scale.js.map +0 -1
  288. package/out/tools/nppes/dedup-benchmark.d.ts +0 -82
  289. package/out/tools/nppes/dedup-benchmark.d.ts.map +0 -1
  290. package/out/tools/nppes/dedup-benchmark.js +0 -226
  291. package/out/tools/nppes/dedup-benchmark.js.map +0 -1
  292. package/out/tools/nppes/org-name.d.ts +0 -15
  293. package/out/tools/nppes/org-name.d.ts.map +0 -1
  294. package/out/tools/nppes/org-name.js +0 -6
  295. package/out/tools/nppes/org-name.js.map +0 -1
  296. package/out/tools/nppes/overmerge-packet.d.ts +0 -43
  297. package/out/tools/nppes/overmerge-packet.d.ts.map +0 -1
  298. package/out/tools/nppes/overmerge-packet.js +0 -54
  299. package/out/tools/nppes/overmerge-packet.js.map +0 -1
  300. package/out/tools/nppes/report.d.ts +0 -97
  301. package/out/tools/nppes/report.d.ts.map +0 -1
  302. package/out/tools/nppes/report.js +0 -178
  303. package/out/tools/nppes/report.js.map +0 -1
  304. package/out/tools/nppes/sample.d.ts +0 -101
  305. package/out/tools/nppes/sample.d.ts.map +0 -1
  306. package/out/tools/nppes/sample.js +0 -127
  307. package/out/tools/nppes/sample.js.map +0 -1
  308. package/out/tools/nppes/scoring.d.ts +0 -37
  309. package/out/tools/nppes/scoring.d.ts.map +0 -1
  310. package/out/tools/nppes/scoring.js +0 -81
  311. package/out/tools/nppes/scoring.js.map +0 -1
  312. package/out/tools/nppes/settings.d.ts +0 -41
  313. package/out/tools/nppes/settings.d.ts.map +0 -1
  314. package/out/tools/nppes/settings.js +0 -79
  315. package/out/tools/nppes/settings.js.map +0 -1
  316. package/out/tools/nppes/truth-grains.d.ts +0 -63
  317. package/out/tools/nppes/truth-grains.d.ts.map +0 -1
  318. package/out/tools/nppes/truth-grains.js +0 -142
  319. package/out/tools/nppes/truth-grains.js.map +0 -1
  320. package/out/tools/shared.d.ts +0 -325
  321. package/out/tools/shared.d.ts.map +0 -1
  322. package/out/tools/shared.js +0 -453
  323. package/out/tools/shared.js.map +0 -1
  324. package/out/tools/train/cross-gbt.d.ts +0 -89
  325. package/out/tools/train/cross-gbt.d.ts.map +0 -1
  326. package/out/tools/train/cross-gbt.js +0 -132
  327. package/out/tools/train/cross-gbt.js.map +0 -1
  328. package/out/tools/train/gbt.d.ts +0 -85
  329. package/out/tools/train/gbt.d.ts.map +0 -1
  330. package/out/tools/train/gbt.js +0 -155
  331. package/out/tools/train/gbt.js.map +0 -1
  332. package/out/tools/train/org-cross-gbt.d.ts +0 -85
  333. package/out/tools/train/org-cross-gbt.d.ts.map +0 -1
  334. package/out/tools/train/org-cross-gbt.js +0 -122
  335. package/out/tools/train/org-cross-gbt.js.map +0 -1
  336. package/out/tools/txhhsc-to-oarow.d.ts +0 -42
  337. package/out/tools/txhhsc-to-oarow.d.ts.map +0 -1
  338. package/out/tools/txhhsc-to-oarow.js +0 -78
  339. package/out/tools/txhhsc-to-oarow.js.map +0 -1
  340. package/out/tools/viz/browser.d.ts +0 -31
  341. package/out/tools/viz/browser.d.ts.map +0 -1
  342. package/out/tools/viz/browser.js +0 -26
  343. package/out/tools/viz/browser.js.map +0 -1
  344. package/out/tools/viz/cross-dataset-map.d.ts +0 -39
  345. package/out/tools/viz/cross-dataset-map.d.ts.map +0 -1
  346. package/out/tools/viz/cross-dataset-map.js +0 -84
  347. package/out/tools/viz/cross-dataset-map.js.map +0 -1
  348. package/out/tools/viz/geocode-first-surface.d.ts +0 -36
  349. package/out/tools/viz/geocode-first-surface.d.ts.map +0 -1
  350. package/out/tools/viz/geocode-first-surface.js +0 -234
  351. package/out/tools/viz/geocode-first-surface.js.map +0 -1
  352. package/out/tools/viz/render/map.d.ts +0 -42
  353. package/out/tools/viz/render/map.d.ts.map +0 -1
  354. package/out/tools/viz/render/map.js +0 -40
  355. package/out/tools/viz/render/map.js.map +0 -1
  356. package/out/tools/viz/render.d.ts +0 -46
  357. package/out/tools/viz/render.d.ts.map +0 -1
  358. package/out/tools/viz/render.js +0 -49
  359. package/out/tools/viz/render.js.map +0 -1
  360. package/out/tools/viz/source-provenance-map.d.ts +0 -57
  361. package/out/tools/viz/source-provenance-map.d.ts.map +0 -1
  362. package/out/tools/viz/source-provenance-map.js +0 -82
  363. package/out/tools/viz/source-provenance-map.js.map +0 -1
  364. package/out/tools/viz/yardstick-figure.d.ts +0 -22
  365. package/out/tools/viz/yardstick-figure.d.ts.map +0 -1
  366. package/out/tools/viz/yardstick-figure.js +0 -106
  367. package/out/tools/viz/yardstick-figure.js.map +0 -1
  368. package/tools/coverage-reconciliation.ts +0 -192
  369. package/tools/cross/dataset-correlation.ts +0 -380
  370. package/tools/cross/source-threshold-sweep.ts +0 -416
  371. package/tools/dedup-ceiling.ts +0 -225
  372. package/tools/eval-geocoder.ts +0 -77
  373. package/tools/geocoder/namesake-probe.ts +0 -91
  374. package/tools/geocoder/vs-provided-coords.ts +0 -232
  375. package/tools/gold-set-sample.ts +0 -147
  376. package/tools/learned/scorer/clustering-eval.ts +0 -349
  377. package/tools/learned/scorer/crossstate-eval.ts +0 -280
  378. package/tools/learned/scorer/eval.ts +0 -429
  379. package/tools/matcher-scale.ts +0 -185
  380. package/tools/nppes/dedup-benchmark.ts +0 -364
  381. package/tools/nppes/org-name.ts +0 -15
  382. package/tools/nppes/overmerge-packet.ts +0 -98
  383. package/tools/nppes/report.ts +0 -380
  384. package/tools/nppes/sample.ts +0 -250
  385. package/tools/nppes/scoring.ts +0 -115
  386. package/tools/nppes/settings.ts +0 -102
  387. package/tools/nppes/truth-grains.ts +0 -185
  388. package/tools/shared.ts +0 -743
  389. package/tools/train/cross-gbt.ts +0 -214
  390. package/tools/train/gbt.ts +0 -261
  391. package/tools/train/org-cross-gbt.ts +0 -189
  392. package/tools/txhhsc-to-oarow.ts +0 -118
  393. package/tools/viz/browser.ts +0 -41
  394. package/tools/viz/cross-dataset-map.ts +0 -133
  395. package/tools/viz/geocode-first-surface.ts +0 -305
  396. package/tools/viz/render/map.ts +0 -61
  397. package/tools/viz/render.ts +0 -103
  398. package/tools/viz/source-provenance-map.ts +0 -154
  399. package/tools/viz/yardstick-figure.ts +0 -197
@@ -0,0 +1,63 @@
1
+ {
2
+ "$comment": "The identifier namespaces of the first slice, their key grammars and the artifacts that serve them. The compiler and the TypeScript readers read the same file.",
3
+ "schemaVersion": 1,
4
+ "normalizationVersion": 1,
5
+ "namespaces": {
6
+ "iso3166-1-alpha2": { "arity": 2, "alphabet": "A-Z", "brand": "ISO.CountryCode_3166_1_Alpha2" },
7
+ "iso3166-1-alpha3": { "arity": 3, "alphabet": "A-Z", "brand": "ISO.CountryCode_3166_1_Alpha3" },
8
+ "iso3166-1-numeric": { "arity": 3, "alphabet": "0-9", "brand": "ISO.CountryCode_3166_1_Numeric" },
9
+ "iata-location": { "arity": 3, "alphabet": "A-Z", "brand": "IATA.LocationCode" },
10
+ "icao-location": { "arity": 4, "alphabet": "A-Z0-9", "brand": "ICAO.LocationIndicator" }
11
+ },
12
+ "artifacts": {
13
+ "iso3166-1-alpha2-membership": {
14
+ "namespaces": ["iso3166-1-alpha2"],
15
+ "sections": ["bitset"],
16
+ "status": "officially-assigned"
17
+ },
18
+ "iso3166-1-alpha3-membership": {
19
+ "namespaces": ["iso3166-1-alpha3"],
20
+ "sections": ["bitset"],
21
+ "status": "officially-assigned"
22
+ },
23
+ "iso3166-1-records": {
24
+ "namespaces": ["iso3166-1-alpha2", "iso3166-1-alpha3", "iso3166-1-numeric"],
25
+ "sections": ["id-table", "column", "string-offsets", "utf8"],
26
+ "columns": ["alpha2Key", "alpha3Key", "numeric", "status", "name", "entityId"],
27
+ "status": "every status; the status column distinguishes them"
28
+ },
29
+ "iata-airport-membership": {
30
+ "namespaces": ["iata-location"],
31
+ "sections": ["bitset"],
32
+ "kinds": ["airport"]
33
+ },
34
+ "iata-airport-records": {
35
+ "namespaces": ["iata-location", "icao-location"],
36
+ "sections": ["id-table", "column", "string-offsets", "utf8", "relation-offsets", "relation-targets"],
37
+ "columns": [
38
+ "iataKey",
39
+ "countryAlpha2Key",
40
+ "countryStatus",
41
+ "facility",
42
+ "scheduledService",
43
+ "latitude",
44
+ "longitude",
45
+ "name",
46
+ "icao",
47
+ "municipality",
48
+ "isoRegion",
49
+ "entityId"
50
+ ],
51
+ "relations": ["airport-located-in-country"],
52
+ "kinds": ["airport"]
53
+ },
54
+ "country-airport-collision": {
55
+ "namespaces": ["iso3166-1-alpha3", "iata-location"],
56
+ "sections": ["bitset"],
57
+ "meaning": "iso3166-1-alpha3 officially-assigned codes that are also an iata-location airport code"
58
+ }
59
+ },
60
+ "facilities": ["large_airport", "medium_airport", "small_airport", "seaplane_base", "heliport"],
61
+ "countryStatuses": ["officially-assigned", "formerly-used"],
62
+ "airportCountryStatuses": ["iso3166-1", "source-extension", "unstated"]
63
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "$comment": "The RGY1 section kinds and their encodings. docs/rgy1.md is the normative text; tools/generate-sections.run.ts writes lib/rgy1/sections.generated.ts and crates/registry-core/src/sections.rs from this file, and lib/rgy1/sections.test.ts holds the three equal.",
3
+ "envelope": {
4
+ "magic": "RGY1",
5
+ "version": 1,
6
+ "headerOffset": 32,
7
+ "directoryEntryBytes": 24,
8
+ "alignment": 8
9
+ },
10
+ "kinds": [
11
+ {
12
+ "id": 1,
13
+ "name": "bitset",
14
+ "encoding": 1,
15
+ "elementWidth": 0,
16
+ "count": "the number of keys in the key space; the payload holds ceil(count / 8) bytes",
17
+ "aux": "the key arity: 2 or 3 upper-case ASCII letters, or 0 for a three-digit numeric key",
18
+ "bitOrder": "bit (key & 7) of byte (key >> 3)"
19
+ },
20
+ {
21
+ "id": 2,
22
+ "name": "id-table",
23
+ "encoding": 1,
24
+ "elementWidth": "1, 2 or 4 bytes, unsigned little-endian",
25
+ "count": "the number of keys in the key space",
26
+ "aux": "the key arity, as for bitset",
27
+ "value": "row id plus one; zero means the key is absent"
28
+ },
29
+ {
30
+ "id": 3,
31
+ "name": "string-offsets",
32
+ "encoding": 1,
33
+ "elementWidth": 4,
34
+ "count": "the number of strings plus one; offsets are monotonic and end at the utf8 section's length",
35
+ "aux": 0
36
+ },
37
+ {
38
+ "id": 4,
39
+ "name": "utf8",
40
+ "encoding": 1,
41
+ "elementWidth": 0,
42
+ "count": "the byte length; the bytes are strict UTF-8",
43
+ "aux": 0
44
+ },
45
+ {
46
+ "id": 5,
47
+ "name": "column",
48
+ "encoding": 1,
49
+ "elementWidth": "1, 2, 4 or 8 bytes; integers unsigned little-endian, 8-byte columns IEEE 754 doubles",
50
+ "count": "the number of rows",
51
+ "aux": "the index into the header's columns list"
52
+ },
53
+ {
54
+ "id": 6,
55
+ "name": "relation-offsets",
56
+ "encoding": 1,
57
+ "elementWidth": 4,
58
+ "count": "the number of source keys plus one",
59
+ "aux": "the index into the header's relations list"
60
+ },
61
+ {
62
+ "id": 7,
63
+ "name": "relation-targets",
64
+ "encoding": 1,
65
+ "elementWidth": 4,
66
+ "count": "the number of targets; each is a row id in the relation's target column set",
67
+ "aux": "the index into the header's relations list"
68
+ }
69
+ ],
70
+ "flags": {
71
+ "required": 1
72
+ }
73
+ }
@@ -0,0 +1,81 @@
1
+ # Data policy
2
+
3
+ This package compiles identifier data from published sources into lookup artifacts. This document states
4
+ where the data comes from, under what terms, what the open profile does and doesn't hold, and how a
5
+ source update moves through the repository.
6
+
7
+ ## Profiles
8
+
9
+ A profile is a set of pinned sources with an identifier such as `open-2026-11`. An artifact's header states its profile, and every
10
+ predicate in this package answers for one profile. The built profile is `open-2026-11`.
11
+
12
+ | Profile | Sources | Where |
13
+ | ------------------- | ------------------------------------------------------ | ------------------------------------ |
14
+ | `open-2026-11` | Wikidata ISO 3166-1 claims, OurAirports `airports.csv` | `data/normalized/`, `lib/artifacts/` |
15
+ | `fixture-synthetic` | Six invented countries and six invented airports | `test/fixtures/` |
16
+
17
+ An official IATA location database or an ISO 3166 data product would be another profile with another
18
+ identifier, compiled by the same tools. A profile never substitutes for another under the same name.
19
+
20
+ ## Sources and terms
21
+
22
+ `data/manifests/sources.lock.json` records each source's URL, SHA-256, byte count, the publication
23
+ marker the server stated, and the publisher's statement of terms with the page it was read from.
24
+
25
+ | Source | Terms the publisher states | Elected |
26
+ | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
27
+ | Wikidata (SPARQL) | Structured data under CC0 1.0 (https://www.wikidata.org/wiki/Wikidata:Licensing) | yes |
28
+ | OurAirports | "All data is released to the Public Domain, and comes with no guarantee of accuracy or fitness for use." (https://ourairports.com/data/) | yes |
29
+ | UN Statistics Division M49 | "personal, non-commercial use, without any right to resell or redistribute them or to compile or create derivative works therefrom" (https://www.un.org/en/about-us/terms-of-use) | no |
30
+
31
+ The UN crosswalk is recorded under `$notElected` in the lock. The repository's rule
32
+ (`packages/corpus/AGENTS.md`, "License election") is that a grant enumerates its rights and an omission
33
+ is neither permission nor prohibition. Here the terms refuse redistribution and derivative works in their
34
+ own words, so the source stays unpinned and the compiler reads the two elected sources only.
35
+
36
+ ## What the open profile holds
37
+
38
+ The coverage declaration is `data/manifests/coverage.json`, written by `tools/normalize.run.ts` from the
39
+ pinned bytes. At the pinned publication:
40
+
41
+ - `iso3166-1-alpha2`, `iso3166-1-alpha3`, `iso3166-1-numeric`: 249 officially assigned entries, plus 4
42
+ entries whose state has ended (`AN`, `DD`, `PC`, `SU`) kept with status `formerly-used`. The status is
43
+ read from Wikidata's dissolution date (P576). A former code is readable through `getCountryBy*` and
44
+ refused by the strict predicates and brands.
45
+ - `iata-location`: 9,053 codes, every one on an OurAirports row of type `large_airport`,
46
+ `medium_airport`, `small_airport`, `seaplane_base` or `heliport`. Metropolitan and intermodal codes are
47
+ unsupported in this profile, so `PAR` is `not-found-in-snapshot` although IATA assigns it.
48
+ - `icao-location`: the `icao_code` column of those rows. `ident` and `gps_code` are not read as ICAO
49
+ assignments.
50
+ - An airport's country is the `iso_country` column as the source spells it, with a status: `iso3166-1`
51
+ when the code is a current alpha-2 entry, `source-extension` for a code such as `XK`, `unstated` when
52
+ the column is empty. The `airport-located-in-country` relation holds only the first kind.
53
+
54
+ A miss means `not-found-in-snapshot`: the source holds no such code. It isn't a claim that the issuing
55
+ authority never assigned it.
56
+
57
+ OurAirports and Wikidata disagree on the country list in a way the coverage declaration records rather
58
+ than hides: OurAirports lists `XK`, `XP` and `ZZ`, which are not ISO codes, and lists no entry for `AX`,
59
+ `BV` or `SJ`, which are.
60
+
61
+ ## How a source update moves through the repository
62
+
63
+ 1. `node packages/registry/sdk/fetch.run.ts --repin` downloads the sources into
64
+ `$MAILWOMAN_CACHE_ROOT/sources/registry/` and rewrites the lock. Without `--repin`, a changed
65
+ publication fails the run.
66
+ 2. `node packages/registry/tools/normalize.run.ts` rewrites `data/normalized/*.json` and
67
+ `data/manifests/coverage.json`. The normalized files hold one record per line so the diff reads by
68
+ record.
69
+ 3. `node packages/registry/tools/generate.run.ts` compiles the artifacts with `crates/registry-build`,
70
+ rewrites `lib/artifacts/*.ts` and `data/manifests/artifacts.json`, and recompiles the fixture profile.
71
+ 4. `git diff --stat packages/registry/data` is the semantic diff: added, removed and changed records,
72
+ and the coverage counts that moved. The collision count in `country-airport-collision`'s header
73
+ moves with it.
74
+
75
+ Network access happens only in step 1. A build never fetches.
76
+
77
+ ## What's not committed
78
+
79
+ The raw source files live under the data root and are not committed. The lock's digests identify them.
80
+ `PROVENANCE.md` conventions for the corpus do not apply here because no row of these sources trains a
81
+ model.
@@ -0,0 +1,146 @@
1
+ # Performance report
2
+
3
+ Measured by `node packages/registry/tools/bench.run.ts` on 2026-11-06, one run, on the lab host: AMD Ryzen 9
4
+ 8945HS, 16 cores, 31 GB, Linux x64, Node v24.22.1, with a multi-state address merge running on the same host.
5
+ The numbers describe that run and are not a regression budget. Each value is the median over rounds of
6
+ nanoseconds per code, and every result is consumed so the work is kept.
7
+
8
+ The arms are a JavaScript `Set<string>` built from the normalized JSON (the baseline the specification
9
+ requires first), the TypeScript bitset reader (`isCountryAirportCollision`), and the WebAssembly batch
10
+ kernel (`classifyManyInto`) in its scalar and `simd128` builds. The wasm arm is measured twice: over
11
+ packed bytes the caller already holds, and over strings including the encode and the copy into linear
12
+ memory, so the boundary cost is visible rather than folded into a kernel number.
13
+
14
+ ## Startup
15
+
16
+ | Startup | µs |
17
+ | ------------------------------------------------------------------------------------------------- | ------ |
18
+ | module import (`#overlap/country-airport`, `#iso3166/alpha3`, `#iata/airports/validate`, `#wasm`) | 48,177 |
19
+ | artifact decode + validate (3 bitsets, base64 to bytes) | 616 |
20
+ | first query | 39 |
21
+ | JS `Set` build from the normalized JSON (baseline) | 2,046 |
22
+ | wasm scalar: compile + instantiate + load 3 artifacts | 926 |
23
+ | wasm simd: compile + instantiate + load 3 artifacts | 1,169 |
24
+
25
+ Module import dominates startup and is Node's module loading of the base64 modules and the reader. The
26
+ decode and validation of the three bitsets costs 0.6 ms.
27
+
28
+ ## Lookups
29
+
30
+ | Arm | Input | Distribution | Batch | ns per code |
31
+ | ----------------- | -------------------------------- | -------------- | ----- | ----------- |
32
+ | JS Set (baseline) | strings | hits | 1 | 70.0 |
33
+ | TypeScript bitset | strings | hits | 1 | 191.0 |
34
+ | JS Set (baseline) | strings | hits | 16 | 15.7 |
35
+ | TypeScript bitset | strings | hits | 16 | 34.4 |
36
+ | JS Set (baseline) | strings | hits | 17576 | 5.0 |
37
+ | TypeScript bitset | strings | hits | 17576 | 23.3 |
38
+ | JS Set (baseline) | strings | misses | 1 | 40.0 |
39
+ | TypeScript bitset | strings | misses | 1 | 60.0 |
40
+ | JS Set (baseline) | strings | misses | 16 | 8.8 |
41
+ | TypeScript bitset | strings | misses | 16 | 27.6 |
42
+ | JS Set (baseline) | strings | misses | 256 | 8.9 |
43
+ | TypeScript bitset | strings | misses | 256 | 24.8 |
44
+ | JS Set (baseline) | strings | misses | 4096 | 8.6 |
45
+ | TypeScript bitset | strings | misses | 4096 | 24.7 |
46
+ | JS Set (baseline) | strings | misses | 17576 | 8.5 |
47
+ | TypeScript bitset | strings | misses | 17576 | 24.7 |
48
+ | JS Set (baseline) | strings | shuffled sweep | 1 | 40.0 |
49
+ | TypeScript bitset | strings | shuffled sweep | 1 | 50.0 |
50
+ | JS Set (baseline) | strings | shuffled sweep | 16 | 8.8 |
51
+ | TypeScript bitset | strings | shuffled sweep | 16 | 25.1 |
52
+ | JS Set (baseline) | strings | shuffled sweep | 256 | 9.0 |
53
+ | TypeScript bitset | strings | shuffled sweep | 256 | 24.9 |
54
+ | JS Set (baseline) | strings | shuffled sweep | 4096 | 9.8 |
55
+ | TypeScript bitset | strings | shuffled sweep | 4096 | 24.4 |
56
+ | JS Set (baseline) | strings | shuffled sweep | 17576 | 14.4 |
57
+ | TypeScript bitset | strings | shuffled sweep | 17576 | 25.4 |
58
+ | wasm scalar batch | packed bytes | hits | 1 | 701.0 |
59
+ | wasm scalar batch | strings (encode + copy included) | hits | 1 | 1011.0 |
60
+ | wasm scalar batch | packed bytes | hits | 16 | 40.1 |
61
+ | wasm scalar batch | strings (encode + copy included) | hits | 16 | 347.6 |
62
+ | wasm scalar batch | packed bytes | hits | 17576 | 14.5 |
63
+ | wasm scalar batch | strings (encode + copy included) | hits | 17576 | 275.7 |
64
+ | wasm scalar batch | packed bytes | misses | 1 | 291.0 |
65
+ | wasm scalar batch | strings (encode + copy included) | misses | 1 | 1032.0 |
66
+ | wasm scalar batch | packed bytes | misses | 16 | 25.1 |
67
+ | wasm scalar batch | strings (encode + copy included) | misses | 16 | 372.6 |
68
+ | wasm scalar batch | packed bytes | misses | 256 | 7.6 |
69
+ | wasm scalar batch | strings (encode + copy included) | misses | 256 | 333.9 |
70
+ | wasm scalar batch | packed bytes | misses | 4096 | 6.7 |
71
+ | wasm scalar batch | strings (encode + copy included) | misses | 4096 | 343.8 |
72
+ | wasm scalar batch | packed bytes | misses | 17576 | 6.8 |
73
+ | wasm scalar batch | strings (encode + copy included) | misses | 17576 | 347.6 |
74
+ | wasm scalar batch | packed bytes | shuffled sweep | 1 | 300.0 |
75
+ | wasm scalar batch | strings (encode + copy included) | shuffled sweep | 1 | 982.0 |
76
+ | wasm scalar batch | packed bytes | shuffled sweep | 16 | 24.4 |
77
+ | wasm scalar batch | strings (encode + copy included) | shuffled sweep | 16 | 401.4 |
78
+ | wasm scalar batch | packed bytes | shuffled sweep | 256 | 7.7 |
79
+ | wasm scalar batch | strings (encode + copy included) | shuffled sweep | 256 | 386.7 |
80
+ | wasm scalar batch | packed bytes | shuffled sweep | 4096 | 6.8 |
81
+ | wasm scalar batch | strings (encode + copy included) | shuffled sweep | 4096 | 349.1 |
82
+ | wasm scalar batch | packed bytes | shuffled sweep | 17576 | 6.8 |
83
+ | wasm scalar batch | strings (encode + copy included) | shuffled sweep | 17576 | 377.0 |
84
+ | wasm simd batch | packed bytes | hits | 1 | 641.0 |
85
+ | wasm simd batch | strings (encode + copy included) | hits | 1 | 1153.0 |
86
+ | wasm simd batch | packed bytes | hits | 16 | 37.6 |
87
+ | wasm simd batch | strings (encode + copy included) | hits | 16 | 394.5 |
88
+ | wasm simd batch | packed bytes | hits | 17576 | 7.3 |
89
+ | wasm simd batch | strings (encode + copy included) | hits | 17576 | 343.8 |
90
+ | wasm simd batch | packed bytes | misses | 1 | 311.0 |
91
+ | wasm simd batch | strings (encode + copy included) | misses | 1 | 872.0 |
92
+ | wasm simd batch | packed bytes | misses | 16 | 24.4 |
93
+ | wasm simd batch | strings (encode + copy included) | misses | 16 | 373.8 |
94
+ | wasm simd batch | packed bytes | misses | 256 | 7.2 |
95
+ | wasm simd batch | strings (encode + copy included) | misses | 256 | 555.1 |
96
+ | wasm simd batch | packed bytes | misses | 4096 | 5.9 |
97
+ | wasm simd batch | strings (encode + copy included) | misses | 4096 | 502.6 |
98
+ | wasm simd batch | packed bytes | misses | 17576 | 5.9 |
99
+ | wasm simd batch | strings (encode + copy included) | misses | 17576 | 453.2 |
100
+ | wasm simd batch | packed bytes | shuffled sweep | 1 | 321.0 |
101
+ | wasm simd batch | strings (encode + copy included) | shuffled sweep | 1 | 942.0 |
102
+ | wasm simd batch | packed bytes | shuffled sweep | 16 | 25.1 |
103
+ | wasm simd batch | strings (encode + copy included) | shuffled sweep | 16 | 407.0 |
104
+ | wasm simd batch | packed bytes | shuffled sweep | 256 | 7.2 |
105
+ | wasm simd batch | strings (encode + copy included) | shuffled sweep | 256 | 357.2 |
106
+ | wasm simd batch | packed bytes | shuffled sweep | 4096 | 6.1 |
107
+ | wasm simd batch | strings (encode + copy included) | shuffled sweep | 4096 | 351.7 |
108
+ | wasm simd batch | packed bytes | shuffled sweep | 17576 | 6.1 |
109
+ | wasm simd batch | strings (encode + copy included) | shuffled sweep | 17576 | 394.1 |
110
+
111
+ ## What the run shows
112
+
113
+ - On strings, the JavaScript `Set` is the fastest arm at every batch size: 5 to 14 ns per code against 23
114
+ to 25 ns for the TypeScript bitset. The bitset pays for `charCodeAt` and the key arithmetic that the `Set`'s
115
+ interned string hash avoids. The bitset's advantage is memory and startup rather than per-probe time: 2,197
116
+ bytes decoded in 0.6 ms against a `Set` of 201 strings built from a 2.6 MB JSON parse.
117
+ - The wasm batch over packed bytes reaches 5.9 to 7.7 ns per code from 256 codes up, with the simd build 0.5
118
+ to 0.9 ns per code ahead of the scalar build on the sweep and misses. Below 16 codes the boundary crossing
119
+ dominates and a single code costs 300 to 700 ns.
120
+ - The wasm arm over strings costs 275 to 555 ns per code at every batch size. The `TextEncoder` encode of
121
+ each string and its copy into linear memory cost 40 to 80 times the kernel's work. A caller with strings
122
+ should use the TypeScript reader. The batch kernel serves a caller that already holds bytes.
123
+ - For the geocoder's workload, one string per request, the measured end-to-end cost is lowest on the JS
124
+ `Set` arm. The registry's contribution to that path is the typed table with its stated sources and the
125
+ collision index, and the per-probe time stays within tens of nanoseconds on every arm.
126
+
127
+ ## Memory and bytes
128
+
129
+ | Artifact | Bytes | SHA-256 (prefix) |
130
+ | --------------------------- | --------- | ---------------- |
131
+ | iso3166-1-alpha2-membership | 672 | 7daca3d6e81761ac |
132
+ | iso3166-1-alpha3-membership | 2,784 | 2fe14e6fe8677e47 |
133
+ | iso3166-1-records | 51,624 | 965cdbd11e1732be |
134
+ | iata-airport-membership | 2,792 | 01b6677cd90b3357 |
135
+ | iata-airport-records | 1,123,320 | 3496ece1013624ad |
136
+ | country-airport-collision | 3,056 | 2154993ce8f65602 |
137
+
138
+ The collision bitset's payload is 2,197 bytes. The 3,056-byte artifact adds the envelope, a 798-byte
139
+ header and padding. Each artifact ships as its own module holding its bytes as base64 (4/3 of the size),
140
+ so a bundle retains the artifacts its imports reach and no other; `tools/bundle-fixtures.integration.test.ts`
141
+ checks the country-only, collision-only, interpretation, wasm and type-only consumers. The wasm binaries
142
+ are 27,702 bytes (scalar) and 27,622 bytes (simd).
143
+
144
+ Allocation: after the first call, a TypeScript predicate probe reads the table in place with no new object.
145
+ Once its two staging buffers fit the batch, `classifyManyInto` reuses them on every call. `classify(strings)`
146
+ allocates the packed input and the result by design.
package/docs/rgy1.md ADDED
@@ -0,0 +1,144 @@
1
+ # RGY1: the registry artifact layout
2
+
3
+ RGY1 is the binary container `@mailwoman/registry` ships its lookup tables in. This document is the
4
+ normative layout. The Rust writer in `crates/registry-build`, the Rust reader in `crates/registry-core`
5
+ and the TypeScript reader in `lib/rgy1/reader.ts` follow it, and `lib/rgy1/layout.test.ts` walks the
6
+ committed fixture artifacts with its own byte reader against `test/fixtures/layout.json`, so agreement
7
+ between the writer and a reader is never the only check.
8
+
9
+ RGY1 is inspired by PIX1 (`docs/engineering/reference/pix1.ksy`) and shares no bytes with it. PIX1 sorts
10
+ tuples by UTF-16 code units. RGY1 orders every table by a numeric key computed from the code's spelling, so
11
+ no reader compares strings and no comparator has to agree across languages.
12
+
13
+ ## Integers and offsets
14
+
15
+ Every integer is unsigned little-endian. Version 1 limits every offset and length to `u32`, so an
16
+ artifact is smaller than 4 GiB. Every offset is relative to byte 0 of the artifact, never to a backing
17
+ buffer. A reader given a subarray behaves as it would given a buffer that holds only those bytes.
18
+
19
+ `align8(x)` is `x` rounded up to a multiple of 8.
20
+
21
+ ## Envelope
22
+
23
+ | Byte offset | Type | Field |
24
+ | ----------- | -------- | ----------------------------------------------------------------------------------- |
25
+ | 0 | 4 bytes | ASCII `RGY1` |
26
+ | 4 | `u16` | Envelope version, `1` |
27
+ | 6 | `u16` | Envelope flags, `0`; a reader refuses any set bit |
28
+ | 8 | `u32` | Header byte length |
29
+ | 12 | `u32` | Section count |
30
+ | 16 | `u32` | Directory byte offset, equal to `align8(32 + header length)` |
31
+ | 20 | `u32` | Total artifact byte length |
32
+ | 24 | `u32` | First payload byte offset, equal to `align8(directory offset + section count × 24)` |
33
+ | 28 | `u32` | Reserved, `0` |
34
+ | 32 | variable | The header: canonical UTF-8 JSON |
35
+
36
+ The bytes between the header's end and the directory are zero. A reader checks each equality above and
37
+ refuses an artifact whose stated total length differs from the byte count it was given.
38
+
39
+ ## Header
40
+
41
+ The header is one JSON object serialized without whitespace, with its keys in byte order and every
42
+ nested object's keys in byte order. Numbers are integers. Strings are UTF-8 with JSON's mandatory escapes
43
+ only. The writer produces this form by serializing a `serde_json::Map`, which is a `BTreeMap`.
44
+
45
+ The header stores no wall-clock time, host path or hash of the artifact itself. The artifact's SHA-256
46
+ lives in `data/manifests/artifacts.json`, written by `tools/generate.run.ts` after the bytes exist.
47
+
48
+ Fields every artifact stores:
49
+
50
+ | Key | Meaning |
51
+ | ---------------------- | ---------------------------------------------------------------------------- |
52
+ | `artifact` | The artifact's name, such as `country-airport-collision` |
53
+ | `profile` | The source profile, such as `open-2026-11` or `fixture-synthetic` |
54
+ | `namespaces` | The identifier namespaces the artifact answers for |
55
+ | `sources` | `{ id, sha256, publication }` per source the artifact was compiled from |
56
+ | `coverage` | Counts the artifact holds, per namespace or relation |
57
+ | `schemaVersion` | The namespace semantic-schema version, `1` |
58
+ | `normalizationVersion` | The normalization version of the records the artifact was compiled from, `1` |
59
+ | `envelopeVersion` | `1` |
60
+ | `encodings` | Section kind name to encoding version, for every kind the writer knows |
61
+ | `generator` | The writer's crate name and version |
62
+
63
+ A records artifact adds `rows`, `columns` (`{ name, type, width }` in column order) and, when it holds a
64
+ relation, `relations` (`{ name, source, targets }` in relation order). A `u8` column with a closed vocabulary adds
65
+ `values`, and a key column that can be absent adds `absent`. A membership artifact adds `status`
66
+ or `kinds`. The collision artifact adds `meaning`.
67
+
68
+ ## Directory
69
+
70
+ The directory starts at the directory offset and holds one 24-byte entry per section:
71
+
72
+ | Entry offset | Type | Field |
73
+ | ------------ | ----- | ---------------------------------------------------------------------- |
74
+ | 0 | `u16` | Section kind |
75
+ | 2 | `u16` | The encoding version of that kind |
76
+ | 4 | `u16` | Element width in bytes; `0` for a variable-width or bit-packed payload |
77
+ | 6 | `u16` | Section flags. Bit 0 means required for interpretation |
78
+ | 8 | `u32` | Section byte offset |
79
+ | 12 | `u32` | Section byte length |
80
+ | 16 | `u32` | Logical element count, defined per kind |
81
+ | 20 | `u32` | Auxiliary value, defined per kind; `0` when the kind defines none |
82
+
83
+ Sections appear in directory order, each starting at a multiple of 8 at or after the previous section's
84
+ end, with zero bytes in any gap. The first section starts at the first payload offset. Fewer than eight
85
+ zero bytes may follow the last section, so the total length is a multiple of 8.
86
+
87
+ A reader refuses an unknown kind marked required and skips an unknown kind that's not. A known kind
88
+ with an encoding the reader doesn't implement is refused.
89
+
90
+ ## Keys
91
+
92
+ A table is direct-addressed by a key computed from the code's canonical spelling. The key arity is the
93
+ section's auxiliary value.
94
+
95
+ | Arity | Key space | Key |
96
+ | ----- | --------- | ----------------------------------------------------------- |
97
+ | 2 | 676 | `(a − 65) × 26 + (b − 65)` for two upper-case ASCII letters |
98
+ | 3 | 17,576 | `((a − 65) × 26 + (b − 65)) × 26 + (c − 65)` |
99
+ | 0 | 1,000 | The decimal value of three ASCII digits |
100
+
101
+ The length and alphabet are checked before the key is computed. A code outside its grammar has no key
102
+ and is absent from every table.
103
+
104
+ ## Section kinds
105
+
106
+ `definitions/sections.json` is the single definition of the kinds; `tools/generate-sections.run.ts`
107
+ writes `lib/rgy1/sections.generated.ts` and `crates/registry-core/src/sections.rs` from it.
108
+
109
+ | Id | Kind | Width | Count | Aux | Payload |
110
+ | --- | ------------------ | ---------- | -------------------- | ------------------------ | -------------------------------------------------------------------- |
111
+ | 1 | `bitset` | 0 | Key space size | Key arity | `ceil(count / 8)` bytes. Bit `key & 7` of byte `key >> 3` |
112
+ | 2 | `id-table` | 1, 2 or 4 | Key space size | Key arity | Row id plus one per key; `0` means absent |
113
+ | 3 | `string-offsets` | 4 | Strings plus one | 0 | Monotonic byte offsets into the `utf8` section, ending at its length |
114
+ | 4 | `utf8` | 0 | Byte length | 0 | Strict UTF-8. String `i` is bytes `offsets[i]..offsets[i+1]` |
115
+ | 5 | `column` | 1, 2, 4, 8 | Rows | Column index in header | Fixed-width cells. Width 8 is an IEEE 754 double |
116
+ | 6 | `relation-offsets` | 4 | Source keys plus one | Relation index in header | Monotonic offsets into the matching `relation-targets` |
117
+ | 7 | `relation-targets` | 4 | Targets | Relation index in header | Row ids in the relation's target set |
118
+
119
+ A string pool's string 0 is the empty string, so a column cell of `0` reads as no value. An `id-table`
120
+ with width 2 addresses at most 65,534 rows (`0xFFFE`); the writer refuses more.
121
+
122
+ ## Reader validation
123
+
124
+ A reader validates once on load: magic, version, flags, reserved field, total length, header UTF-8, the
125
+ two alignment equalities, zero fill between header and directory and between sections, each section's
126
+ bounds, order and alignment, each kind's width and count rules, and each bitset's and id-table's key
127
+ space. A string pool's offsets and a relation's offsets are checked when the typed view is built, where
128
+ the paired section is known. Repeated probes then read the table in place.
129
+
130
+ ## The artifacts this release ships
131
+
132
+ | Artifact | Sections | Serves |
133
+ | ----------------------------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
134
+ | `iso3166-1-alpha2-membership` | `bitset` (arity 2) | `isCountryCodeAlpha2` |
135
+ | `iso3166-1-alpha3-membership` | `bitset` (arity 3) | `isCountryCodeAlpha3` |
136
+ | `iso3166-1-records` | `id-table` ×3, `column` ×6, `string-offsets`, `utf8` | `getCountryByAlpha2`, `getCountryByAlpha3`, `getCountryByNumeric` |
137
+ | `iata-airport-membership` | `bitset` (arity 3) | `isAirportCode` |
138
+ | `iata-airport-records` | `id-table`, `column` ×13, `string-offsets`, `utf8`, `relation-offsets`, `relation-targets` | `getAirportByIATA`, `airportsInCountry` |
139
+ | `country-airport-collision` | `bitset` (arity 3) | `isCountryAirportCollision` |
140
+
141
+ The collision bitset holds the intersection of the `iso3166-1-alpha3-membership` and
142
+ `iata-airport-membership` bitsets. Its payload is 2,197 bytes before the envelope, and
143
+ `lib/overlap/country-airport.test.ts` holds every one of its 17,576 bits equal to a set intersection
144
+ computed from the normalized JSON.
@@ -0,0 +1,28 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
+
4
+ /**
5
+ * The `country-airport-collision` artifact of the `open-2026-11` profile, 3056 bytes,
6
+ * SHA-256 2154993ce8f65602a0000b9ca3ea0d5ed29a1f1719ce39ff6dd791d0ec8b106b.
7
+ *
8
+ * Generated by tools/generate.run.ts from data/normalized.
9
+ * Edit the data or the compiler rather than this file.
10
+ */
11
+
12
+ import { decodeBase64 } from "#rgy1/base64"
13
+
14
+ const BASE64 =
15
+ "UkdZMQEAAAAeAwAAAQAAAEADAADwCwAAWAMAAAAAAAB7ImFydGlmYWN0IjoiY291bnRyeS1haXJwb3J0LWNvbGxpc2lvbiIsImNvdmVyYWdlIjp7ImNvbGxpc2lvbnMiOjIwMSwiaWF0YS1sb2NhdGlvbiI6OTA1MywiaXNvMzE2Ni0xLWFscGhhMyI6MjQ5fSwiZW5jb2RpbmdzIjp7ImJpdHNldCI6MSwiY29sdW1uIjoxLCJpZC10YWJsZSI6MSwicmVsYXRpb24tb2Zmc2V0cyI6MSwicmVsYXRpb24tdGFyZ2V0cyI6MSwic3RyaW5nLW9mZnNldHMiOjEsInV0ZjgiOjF9LCJlbnZlbG9wZVZlcnNpb24iOjEsImdlbmVyYXRvciI6InJlZ2lzdHJ5LWJ1aWxkIDAuMS4wIiwibWVhbmluZyI6Im9mZmljaWFsbHkgYXNzaWduZWQgaXNvMzE2Ni0xLWFscGhhMyBjb2RlcyB0aGF0IGFyZSBhbHNvIGFuIGlhdGEtbG9jYXRpb24gYWlycG9ydCBjb2RlIiwibmFtZXNwYWNlcyI6WyJpc28zMTY2LTEtYWxwaGEzIiwiaWF0YS1sb2NhdGlvbiJdLCJub3JtYWxpemF0aW9uVmVyc2lvbiI6MSwicHJvZmlsZSI6Im9wZW4tMjAyNi0xMSIsInNjaGVtYVZlcnNpb24iOjEsInNvdXJjZXMiOlt7ImlkIjoid2lraWRhdGEtaXNvMzE2Ni0xIiwicHVibGljYXRpb24iOiJ1bnN0YXRlZCIsInNoYTI1NiI6ImQzMmI3OTg3NWRkNTY4OGU4NzkxMGFmMGJkMGFhNWVmMTEwNDliOTFiN2I0OGU3N2E5NjAwODIzYjM2MmM5ZmQifSx7ImlkIjoib3VyYWlycG9ydHMtYWlycG9ydHMiLCJwdWJsaWNhdGlvbiI6IkZyaSwgMDYgTm92IDIwMjYgMDI6NTM6NTYgR01UIiwic2hhMjU2IjoiZTJlNjVhM2RkYWY3NjE3MGMwZTJjMzczY2I4YjY4NTk3YmRmM2I1OWQyNDNjNGQ2ZGI0NTRkNDg0OThiYTZkNyJ9XX0AAAEAAQAAAAEAWAMAAJUIAACoRAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAQAAAAAAAAAAwAAAAAAAACAAAAAAAAAAAAAAAABAQQAAAAFAGAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAgEJAAAAACAACAAAYAAgAAAAAAAAAAABACAgAAAEAAAAAAAAAAAAAAADAAAgAAAAAAIAAAAAAAAAAAAEAAAAAAAAAAAAAAAAgIAAAAAAAQAAAAAAAAAAAAAAAAAAAAAQKAAAAAAAAAAAAAAAAAAAAAAIAAACAxAEAAAAIAAAAAAQAAAAAAAAAAAIAAAAAAAAAAAAAgAAAkABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAEAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAACAAAAAAAAAAAQAAAAAAAAABAAAAAAgAAAAAAAAAAAAAgAAIAAAgAAAAAAAAAAAAAAAAwIAAAAAAAAAAAIBAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAgAAAAAIAAAAAAAAAAAIAAAIAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAgAAAAAAAAACAABAAAAAIAAAAAAAAAAAAAAAAABAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAEAACIQAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAEAAAABIAAAAAAAAAAAAAAAAAAAAACQAAgAAAAAABEAQAAgAAIAAAAAAAAAAAAIAAAAAAAAAAAAAAEAAAgAAAEABAgAAACAAAAAAAAAAACAAACAAAEAAAAAEAAAAABAAAAAAAAAADAAAAAAAAQAAAAAACAAAAAAAACAAAAAAAQAAAAAAAAAAAQAAAAAAACAAAAAAAAAAAAAAAAIAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAAACAAAAAAAAAgAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAABAAAAEAAAAAgAAAAAAAAAAEABQBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAACAAAIAAAAAAAAAgAAAgAAAAAAAAAAAAAgAQACAAAAgAAAAAAAQAABAAAAAAIAACAAAAAACAAAAACAJAAAAEAAAAEAAQAAgAAAAAAAAAAAAAJAAAAAAAAAAAAAAAAAEAABAAAAAAAAAABAAAYAAAAEAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAABAAAiAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAIAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
16
+
17
+ let bytes: Uint8Array | null = null
18
+
19
+ /**
20
+ * Returns the artifact's bytes, decoded on first call and shared afterwards.
21
+ *
22
+ * Callers read the bytes and never write them.
23
+ */
24
+ export function countryAirportCollisionArtifact(): Uint8Array {
25
+ bytes ??= decodeBase64(BASE64)
26
+
27
+ return bytes
28
+ }
@@ -0,0 +1,28 @@
1
+ // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
+ // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
+
4
+ /**
5
+ * The `iata-airport-membership` artifact of the `open-2026-11` profile, 2792 bytes,
6
+ * SHA-256 01b6677cd90b33574ce988b169c85445e378c82216f60c7888fce51e451525d9.
7
+ *
8
+ * Generated by tools/generate.run.ts from data/normalized.
9
+ * Edit the data or the compiler rather than this file.
10
+ */
11
+
12
+ import { decodeBase64 } from "#rgy1/base64"
13
+
14
+ const BASE64 =
15
+ "UkdZMQEAAAARAgAAAQAAADgCAADoCgAAUAIAAAAAAAB7ImFydGlmYWN0IjoiaWF0YS1haXJwb3J0LW1lbWJlcnNoaXAiLCJjb3ZlcmFnZSI6eyJpYXRhLWxvY2F0aW9uIjo5MDUzfSwiZW5jb2RpbmdzIjp7ImJpdHNldCI6MSwiY29sdW1uIjoxLCJpZC10YWJsZSI6MSwicmVsYXRpb24tb2Zmc2V0cyI6MSwicmVsYXRpb24tdGFyZ2V0cyI6MSwic3RyaW5nLW9mZnNldHMiOjEsInV0ZjgiOjF9LCJlbnZlbG9wZVZlcnNpb24iOjEsImdlbmVyYXRvciI6InJlZ2lzdHJ5LWJ1aWxkIDAuMS4wIiwia2luZHMiOlsiYWlycG9ydCJdLCJuYW1lc3BhY2VzIjpbImlhdGEtbG9jYXRpb24iXSwibm9ybWFsaXphdGlvblZlcnNpb24iOjEsInByb2ZpbGUiOiJvcGVuLTIwMjYtMTEiLCJzY2hlbWFWZXJzaW9uIjoxLCJzb3VyY2VzIjpbeyJpZCI6Im91cmFpcnBvcnRzLWFpcnBvcnRzIiwicHVibGljYXRpb24iOiJGcmksIDA2IE5vdiAyMDI2IDAyOjUzOjU2IEdNVCIsInNoYTI1NiI6ImUyZTY1YTNkZGFmNzYxNzBjMGUyYzM3M2NiOGI2ODU5N2JkZjNiNTlkMjQzYzRkNmRiNDU0ZDQ4NDk4YmE2ZDcifV19AAAAAAAAAAEAAQAAAAEAUAIAAJUIAACoRAAAAwAAAL//v/////577/v/9//T3J+ltDn9/+/v/x7F/f1+h7xY9P//3//8v7/+/f/9/+/9/cH7+/9DkwD99////////////f//D7XLs0Er4J+/L03/3y2vO/i/8/rz///////+///v//9///9//3///f//9////+33/v////////////9/n3/f9/739zA2/fbHd/93f///v/////b///UX/f//2ez/+f/+78//v+7///v//73//2//9/tf//3/+9f/8P9/+r//5/3/37/qcPjd53/2///////////////3f74vKZBM/H///1/3/3//////P9vvVXDy4Mzp+kJv2d7e+nv2zu/7A/1PITUYMcVI8Lv7aEAgELl4WqzHKDLlf9WUnAYBBSbU99i8QYfBOvut2/myTSEzEAABwP+5X1x1rG3mSPNn8QACuwKPQAZoiAgQhGFFYBgEEzieLOtRERxuwE7fEAkkBCAxAFGZTwoABgSSLAQFgiCwEMbI////Wf2O/b/xBVhgYDCCBgAABPzn/PjP54UGjoF1cIFgw4AjUSYAQAQCAYxGQACQcF+1cxaHQYNwBMUSSGQkimACFgYICRAAAECIzQIgAIAAAisFrOO7Hx3H0feCBl90HgEACQQAAMB339OMnRhGFEAn5YcAAIYAgQgAQAABBCCDAwACAP/7//9/6tl4g5Zn/rp/WG7lsAnkL+fEDQ0PbhkeB2AokMmCwH+/vx/xP+7N+Hz9//tCGoMAAAH8/f9/uf9CXbnD/9v3R6QqkoHEAjhEYFv5FgNFI/H7//c2wSYFMkPi0xm03eZ0DggDmWkeQoYOuLfvhICAAkskDv3vujk15tJzDkH39b9Mg6gEgBHAfZfB578uBuf5/f/X/xaJAQllAiAAANKGYsIwIwzLeIdMZAtY0MbQeLlAQAIkhKpDsI3nAQGQBAEIBAAQQDLVzEF+/8Vr/Bm8/vUfQPtEdQqGATAJfN1T+PXdxeT9BBGJADQlCZFgRMD37/8ABABEQCHw3/uPAMEDgl8exYMJiGcwAACNAAtgBojhEPHgPwFSDATACCIEgRgwYGTBsAil0J8MRIAJFAEAwLgZAoNXGhWECDT4p2NAAgABYAAEgAAAACACIAAA//////7/////8ef//////0dBEvj//3333f/+/98NHiLy/f+9f7/99//3799/33v9/02+W4EICvz9////f////l///L9fcUmy/8/wDhEEO8WcqoUZ8Pt//f/////3j13f0f/7/79g/RL/bd9Gtdhx//9+EAgE3/1i3//x95n/+/+/7Z/dfv/9dwZAA8C+xg/3//+39/fz379vQrcBl30uBYHYcFzuSXGcRP/+////9//3z////////////9/6+/v/f9////f///1/b/3/9d////7/vf////////v7vv///v//1/9//v//////3//f//D////3++///////3+//93///e1GjHRax79/VhE9CIHEJIAO83VoBCgOkb/SYkBAE/52PW383CX6sBSh2ZP9z5GI2sUkIL5Vo9Dkn0reK1stv95TUIsQ4EBCAAAABBV50U1AkDBP4b25FFWK0PGp55TBVAGgBRAsIVn6WaQAwUQChAAQPD3/9P//+3/dwYtf3+WwKHASDIVACAA/P/r7/3nHfP/h9k5Dm4hGLBAAIALkEBV7AAUAwr479//v/6m7/o//PX7+t/7/wHUAL99t/63P3fJ/+8RBAB/9vrn+P3/3v729+vv//v+3//+zxDRwHf9/f//17/79//n+n97kxUZfQsFYklw7efSZJNFAAAAEAAAAAgIkQAACAAAAACFAAICGAEAgAxAAAhABgIAAAAAAAAAAAIAAAAAAAAQBBAAEAAAAIRAAUUSICgAAABCQGABAAAAAAAAAAAAAAAAAAAA8P9/7t/3/5NcF33h+/iV9n0SqQGBbQ4kpaPwr2P+YA8AmYF+JxErsNfe8ec+h+/t/g/AyBIABBSUhwubL9xc5VOU3+tTB5lLICkARAAQIMAGQCSgCf+9//7////fv7/f73fz9F//+/Ha37///9//7/7//77//+7/7////rv//9//////v///7P//f/99+/////78/+9/e////b//+6/+3/T//7///8//ku7//73//////t8vuZv73/+7SA5Hz/8ffvX///s3/3FPDf////////+///3//5/////Xv36SkH7A/9//77t/d+998/5/X0kCR7+AGNPQSPCH62ABHiCWnYcMjHJgQYJwxoAAEGgMBAAAcJDGAQQAAYLtCkCAQDBd4sl2fe0fER53lUgQgECIEKoIAAAAdM15XPjzwXY9FwkkFMQkARAAAAAAAAAAKBAQQEjw3v9GESBJvYgsVEYbDIUkWgAAAAlADBLAgBy9+ptAQABAQCx05doEEQBBB5BjyA0IQoEQDABQwEUbxTEAKMjBQAgASIFBGYAAAABQAAGAEEAAAAAA+d/5f1FNkQggwHCIAamJSAgUAHABjsAKOwcWbBKEAEgw8iJAN7MVn+2KJIZaGMHCxAGXBAAAAEynIT1er/kGu4PJMbwKtACQUKgQAAgAEyAEBAAEAJAogZSYAIBYAkAIAAAAUgAACBJBIAIAAABApRIQAgQAgQAECQBQ0JxKUCAIBgAAAAQwCgAACAEgwEAewQAAIQkAAAAgAAAAAQAAAAAAEAEgQAAEANf/v98/v/fP9/2Zeh7GfT9dLxky7b/u/73H9+RghIAS0O/Xmffje/P+/HxrM969TsS33vPvP/+/7b3w/5/bPubTGxyMeUGvOOx5EKXr5/86W8cD+s+MpSAMlkAASAAAQABEhCNAAg4UIDkWBEACVAxAKBAIAFKIAAAAKYIIgUAHAIQwAAQYAgEAAEIk4AQAEQJMDEJYwIgBQBABAAEIAAAAIACQAAAEEAwAAAA="
16
+
17
+ let bytes: Uint8Array | null = null
18
+
19
+ /**
20
+ * Returns the artifact's bytes, decoded on first call and shared afterwards.
21
+ *
22
+ * Callers read the bytes and never write them.
23
+ */
24
+ export function iataAirportMembershipArtifact(): Uint8Array {
25
+ bytes ??= decodeBase64(BASE64)
26
+
27
+ return bytes
28
+ }