@pubid/pubid 0.1.75 → 0.1.76

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.
@@ -21,7 +21,7 @@
21
21
  //!
22
22
  //! The wave-2 substrate flavors (pubid/pubid-grammar#158) — api,
23
23
  //! ashrae, asme, astm, cie, csa, gost, iala, like evs before them —
24
- //! register the pure-TS worker engine as their substrate runtime:
24
+ //! use the pure-TS worker engine:
25
25
  //! node-only modules never enter this graph. Waves 5 batch 1-3
26
26
  //! (omg/w3c/tgpp, sae/jcgm/oasis/xsf, then easc/ecma/gb/iana/ietf/ogc)
27
27
  //! and the wave 5 final batch (calconnect/iho/plateau) ride the same
@@ -134,6 +134,7 @@ import { makeW3cGrammarImplementation } from "./w3c/implementation.js";
134
134
  import * as tgppSubstrate from "./tgpp/generated/substrate.js";
135
135
  import { tgppWorkerRuntime } from "./tgpp/grammar.worker.js";
136
136
  import { makeTgppGrammarImplementation } from "./tgpp/implementation.js";
137
+ import { lazyRuntime, parseBoundWith } from "../parg/bound.js";
137
138
  /** The worker-available flavor implementations, wired to each other:
138
139
  * every member's foreign lookups run over this same set (so bsi's
139
140
  * adopted ISO routing, cen_cenelec's implicit IEC adoption and gost's
@@ -146,143 +147,143 @@ export function workerForeignResolver() {
146
147
  const map = {
147
148
  oiml: oimlWorkerGrammarImplementation(),
148
149
  xsf: (() => {
149
- xsfSubstrate.registerRuntime(xsfWorkerRuntime);
150
- return makeXsfGrammarImplementation((body) => xsfSubstrate.boundToWire(xsfSubstrate.parseBound(body)));
150
+ const runtime = lazyRuntime(xsfWorkerRuntime);
151
+ return makeXsfGrammarImplementation((body) => xsfSubstrate.boundToWire(parseBoundWith(runtime, xsfSubstrate.FLAVOR, body)));
151
152
  })(),
152
153
  doi: doiGrammarImplementation(),
153
154
  iana: (() => {
154
- ianaSubstrate.registerRuntime(ianaWorkerRuntime);
155
- return makeIanaGrammarImplementation((body) => ianaSubstrate.boundToWire(ianaSubstrate.parseBound(body)));
155
+ const runtime = lazyRuntime(ianaWorkerRuntime);
156
+ return makeIanaGrammarImplementation((body) => ianaSubstrate.boundToWire(parseBoundWith(runtime, ianaSubstrate.FLAVOR, body)));
156
157
  })(),
157
158
  un: unGrammarImplementation(),
158
159
  plateau: (() => {
159
- plateauSubstrate.registerRuntime(plateauWorkerRuntime);
160
- return makePlateauGrammarImplementation((body) => plateauSubstrate.boundToWire(plateauSubstrate.parseBound(body)));
160
+ const runtime = lazyRuntime(plateauWorkerRuntime);
161
+ return makePlateauGrammarImplementation((body) => plateauSubstrate.boundToWire(parseBoundWith(runtime, plateauSubstrate.FLAVOR, body)));
161
162
  })(),
162
163
  w3c: (() => {
163
- w3cSubstrate.registerRuntime(w3cWorkerRuntime);
164
- return makeW3cGrammarImplementation((body) => w3cSubstrate.boundToWire(w3cSubstrate.parseBound(body)));
164
+ const runtime = lazyRuntime(w3cWorkerRuntime);
165
+ return makeW3cGrammarImplementation((body) => w3cSubstrate.boundToWire(parseBoundWith(runtime, w3cSubstrate.FLAVOR, body)));
165
166
  })(),
166
167
  omg: (() => {
167
- omgSubstrate.registerRuntime(omgWorkerRuntime);
168
- return makeOmgGrammarImplementation((body) => omgSubstrate.boundToWire(omgSubstrate.parseBound(body)));
168
+ const runtime = lazyRuntime(omgWorkerRuntime);
169
+ return makeOmgGrammarImplementation((body) => omgSubstrate.boundToWire(parseBoundWith(runtime, omgSubstrate.FLAVOR, body)));
169
170
  })(),
170
171
  ogc: (() => {
171
- ogcSubstrate.registerRuntime(ogcWorkerRuntime);
172
- return makeOgcGrammarImplementation((body) => ogcSubstrate.boundToWire(ogcSubstrate.parseBound(body)));
172
+ const runtime = lazyRuntime(ogcWorkerRuntime);
173
+ return makeOgcGrammarImplementation((body) => ogcSubstrate.boundToWire(parseBoundWith(runtime, ogcSubstrate.FLAVOR, body)));
173
174
  })(),
174
175
  isbn: isbnGrammarImplementation(),
175
176
  easc: (() => {
176
- eascSubstrate.registerRuntime(eascWorkerRuntime);
177
- return makeEascGrammarImplementation((body) => eascSubstrate.boundToWire(eascSubstrate.parseBound(body)));
177
+ const runtime = lazyRuntime(eascWorkerRuntime);
178
+ return makeEascGrammarImplementation((body) => eascSubstrate.boundToWire(parseBoundWith(runtime, eascSubstrate.FLAVOR, body)));
178
179
  })(),
179
180
  ecma: (() => {
180
- ecmaSubstrate.registerRuntime(ecmaWorkerRuntime);
181
- return makeEcmaGrammarImplementation((body) => ecmaSubstrate.boundToWire(ecmaSubstrate.parseBound(body)));
181
+ const runtime = lazyRuntime(ecmaWorkerRuntime);
182
+ return makeEcmaGrammarImplementation((body) => ecmaSubstrate.boundToWire(parseBoundWith(runtime, ecmaSubstrate.FLAVOR, body)));
182
183
  })(),
183
184
  tgpp: (() => {
184
- tgppSubstrate.registerRuntime(tgppWorkerRuntime);
185
- return makeTgppGrammarImplementation((body) => tgppSubstrate.boundToWire(tgppSubstrate.parseBound(body)));
185
+ const runtime = lazyRuntime(tgppWorkerRuntime);
186
+ return makeTgppGrammarImplementation((body) => tgppSubstrate.boundToWire(parseBoundWith(runtime, tgppSubstrate.FLAVOR, body)));
186
187
  })(),
187
188
  oasis: (() => {
188
- oasisSubstrate.registerRuntime(oasisWorkerRuntime);
189
- return makeOasisGrammarImplementation((body) => oasisSubstrate.boundToWire(oasisSubstrate.parseBound(body)));
189
+ const runtime = lazyRuntime(oasisWorkerRuntime);
190
+ return makeOasisGrammarImplementation((body) => oasisSubstrate.boundToWire(parseBoundWith(runtime, oasisSubstrate.FLAVOR, body)));
190
191
  })(),
191
192
  iho: (() => {
192
- ihoSubstrate.registerRuntime(ihoWorkerRuntime);
193
- return makeIhoGrammarImplementation((body) => ihoSubstrate.boundToWire(ihoSubstrate.parseBound(body)));
193
+ const runtime = lazyRuntime(ihoWorkerRuntime);
194
+ return makeIhoGrammarImplementation((body) => ihoSubstrate.boundToWire(parseBoundWith(runtime, ihoSubstrate.FLAVOR, body)));
194
195
  })(),
195
196
  calconnect: (() => {
196
- calconnectSubstrate.registerRuntime(calconnectWorkerRuntime);
197
- return makeCalconnectGrammarImplementation((body) => calconnectSubstrate.boundToWire(calconnectSubstrate.parseBound(body)));
197
+ const runtime = lazyRuntime(calconnectWorkerRuntime);
198
+ return makeCalconnectGrammarImplementation((body) => calconnectSubstrate.boundToWire(parseBoundWith(runtime, calconnectSubstrate.FLAVOR, body)));
198
199
  })(),
199
200
  gb: (() => {
200
- gbSubstrate.registerRuntime(gbWorkerRuntime);
201
- return makeGbGrammarImplementation((body) => gbSubstrate.boundToWire(gbSubstrate.parseBound(body)));
201
+ const runtime = lazyRuntime(gbWorkerRuntime);
202
+ return makeGbGrammarImplementation((body) => gbSubstrate.boundToWire(parseBoundWith(runtime, gbSubstrate.FLAVOR, body)));
202
203
  })(),
203
204
  jcgm: (() => {
204
- jcgmSubstrate.registerRuntime(jcgmWorkerRuntime);
205
- return makeJcgmGrammarImplementation((body) => jcgmSubstrate.boundToWire(jcgmSubstrate.parseBound(body)));
205
+ const runtime = lazyRuntime(jcgmWorkerRuntime);
206
+ return makeJcgmGrammarImplementation((body) => jcgmSubstrate.boundToWire(parseBoundWith(runtime, jcgmSubstrate.FLAVOR, body)));
206
207
  })(),
207
208
  sae: (() => {
208
- saeSubstrate.registerRuntime(saeWorkerRuntime);
209
- return makeSaeGrammarImplementation((body) => saeSubstrate.boundToWire(saeSubstrate.parseBound(body)));
209
+ const runtime = lazyRuntime(saeWorkerRuntime);
210
+ return makeSaeGrammarImplementation((body) => saeSubstrate.boundToWire(parseBoundWith(runtime, saeSubstrate.FLAVOR, body)));
210
211
  })(),
211
212
  etsi: (() => {
212
- etsiSubstrate.registerRuntime(etsiWorkerRuntime);
213
- return makeEtsiGrammarImplementation((body) => etsiSubstrate.boundToWire(etsiSubstrate.parseBound(body)));
213
+ const runtime = lazyRuntime(etsiWorkerRuntime);
214
+ return makeEtsiGrammarImplementation((body) => etsiSubstrate.boundToWire(parseBoundWith(runtime, etsiSubstrate.FLAVOR, body)));
214
215
  })(),
215
216
  jis: (() => {
216
- jisSubstrate.registerRuntime(jisWorkerRuntime);
217
- return makeJisGrammarImplementation((body) => jisSubstrate.boundToWire(jisSubstrate.parseBound(body)));
217
+ const runtime = lazyRuntime(jisWorkerRuntime);
218
+ return makeJisGrammarImplementation((body) => jisSubstrate.boundToWire(parseBoundWith(runtime, jisSubstrate.FLAVOR, body)));
218
219
  })(),
219
220
  iec: (() => {
220
- iecSubstrate.registerRuntime(iecWorkerRuntime);
221
- return makeIecGrammarImplementation((body) => iecSubstrate.boundToWire(iecSubstrate.parseBound(body)));
221
+ const runtime = lazyRuntime(iecWorkerRuntime);
222
+ return makeIecGrammarImplementation((body) => iecSubstrate.boundToWire(parseBoundWith(runtime, iecSubstrate.FLAVOR, body)));
222
223
  })(),
223
224
  cie: (() => {
224
- cieSubstrate.registerRuntime(cieWorkerRuntime);
225
- return makeCieGrammarImplementation((body) => cieSubstrate.boundToWire(cieSubstrate.parseBound(body)));
225
+ const runtime = lazyRuntime(cieWorkerRuntime);
226
+ return makeCieGrammarImplementation((body) => cieSubstrate.boundToWire(parseBoundWith(runtime, cieSubstrate.FLAVOR, body)));
226
227
  })(),
227
228
  bipm: (() => {
228
- bipmSubstrate.registerRuntime(bipmWorkerRuntime);
229
- return makeBipmGrammarImplementation((body) => bipmSubstrate.boundToWire(bipmSubstrate.parseBound(body)));
229
+ const runtime = lazyRuntime(bipmWorkerRuntime);
230
+ return makeBipmGrammarImplementation((body) => bipmSubstrate.boundToWire(parseBoundWith(runtime, bipmSubstrate.FLAVOR, body)));
230
231
  })(),
231
232
  iso: isoWorkerGrammarImplementation(),
232
233
  cen_cenelec: (() => {
233
- cenSubstrate.registerRuntime(cenCenelecWorkerRuntime);
234
- return makeCenCenelecGrammarImplementation((body) => cenSubstrate.boundToWire(cenSubstrate.parseBound(body)), resolve);
234
+ const runtime = lazyRuntime(cenCenelecWorkerRuntime);
235
+ return makeCenCenelecGrammarImplementation((body) => cenSubstrate.boundToWire(parseBoundWith(runtime, cenSubstrate.FLAVOR, body)), resolve);
235
236
  })(),
236
237
  astm: (() => {
237
- astmSubstrate.registerRuntime(astmWorkerRuntime);
238
- return makeAstmGrammarImplementation((body) => astmSubstrate.boundToWire(astmSubstrate.parseBound(body)));
238
+ const runtime = lazyRuntime(astmWorkerRuntime);
239
+ return makeAstmGrammarImplementation((body) => astmSubstrate.boundToWire(parseBoundWith(runtime, astmSubstrate.FLAVOR, body)));
239
240
  })(),
240
241
  idf: (() => {
241
- idfSubstrate.registerRuntime(idfWorkerRuntime);
242
- return makeIdfGrammarImplementation((body) => idfSubstrate.boundToWire(idfSubstrate.parseBound(body)));
242
+ const runtime = lazyRuntime(idfWorkerRuntime);
243
+ return makeIdfGrammarImplementation((body) => idfSubstrate.boundToWire(parseBoundWith(runtime, idfSubstrate.FLAVOR, body)));
243
244
  })(),
244
245
  gost: (() => {
245
- gostSubstrate.registerRuntime(gostWorkerRuntime);
246
- return makeGostGrammarImplementation((body) => gostSubstrate.boundToWire(gostSubstrate.parseBound(body)), resolve);
246
+ const runtime = lazyRuntime(gostWorkerRuntime);
247
+ return makeGostGrammarImplementation((body) => gostSubstrate.boundToWire(parseBoundWith(runtime, gostSubstrate.FLAVOR, body)), resolve);
247
248
  })(),
248
249
  evs: (() => {
249
250
  // The substrate with the pure-TS worker engine (node-only modules
250
251
  // never enter this graph); the delta is the shared implementation.
251
- evsSubstrate.registerRuntime(evsWorkerRuntime);
252
- return makeEvsGrammarImplementation((body) => evsSubstrate.boundToWire(evsSubstrate.parseBound(body)), resolve);
252
+ const runtime = lazyRuntime(evsWorkerRuntime);
253
+ return makeEvsGrammarImplementation((body) => evsSubstrate.boundToWire(parseBoundWith(runtime, evsSubstrate.FLAVOR, body)), resolve);
253
254
  })(),
254
255
  ashrae: (() => {
255
- ashraeSubstrate.registerRuntime(ashraeWorkerRuntime);
256
- return makeAshraeGrammarImplementation((body) => ashraeSubstrate.boundToWire(ashraeSubstrate.parseBound(body)));
256
+ const runtime = lazyRuntime(ashraeWorkerRuntime);
257
+ return makeAshraeGrammarImplementation((body) => ashraeSubstrate.boundToWire(parseBoundWith(runtime, ashraeSubstrate.FLAVOR, body)));
257
258
  })(),
258
259
  bsi: (() => {
259
- bsiSubstrate.registerRuntime(bsiWorkerRuntime);
260
- return makeBsiGrammarImplementation((body) => bsiSubstrate.boundToWire(bsiSubstrate.parseBound(body)), resolve);
260
+ const runtime = lazyRuntime(bsiWorkerRuntime);
261
+ return makeBsiGrammarImplementation((body) => bsiSubstrate.boundToWire(parseBoundWith(runtime, bsiSubstrate.FLAVOR, body)), resolve);
261
262
  })(),
262
263
  csa: (() => {
263
- csaSubstrate.registerRuntime(csaWorkerRuntime);
264
- return makeCsaGrammarImplementation((body) => csaSubstrate.boundToWire(csaSubstrate.parseBound(body)), resolve);
264
+ const runtime = lazyRuntime(csaWorkerRuntime);
265
+ return makeCsaGrammarImplementation((body) => csaSubstrate.boundToWire(parseBoundWith(runtime, csaSubstrate.FLAVOR, body)), resolve);
265
266
  })(),
266
267
  asme: (() => {
267
- asmeSubstrate.registerRuntime(asmeWorkerRuntime);
268
- return makeAsmeGrammarImplementation((body) => asmeSubstrate.boundToWire(asmeSubstrate.parseBound(body)));
268
+ const runtime = lazyRuntime(asmeWorkerRuntime);
269
+ return makeAsmeGrammarImplementation((body) => asmeSubstrate.boundToWire(parseBoundWith(runtime, asmeSubstrate.FLAVOR, body)));
269
270
  })(),
270
271
  amca: amcaGrammarImplementation(),
271
272
  api: (() => {
272
- apiSubstrate.registerRuntime(apiWorkerRuntime);
273
- return makeApiGrammarImplementation((body) => apiSubstrate.boundToWire(apiSubstrate.parseBound(body)));
273
+ const runtime = lazyRuntime(apiWorkerRuntime);
274
+ return makeApiGrammarImplementation((body) => apiSubstrate.boundToWire(parseBoundWith(runtime, apiSubstrate.FLAVOR, body)));
274
275
  })(),
275
276
  itu: (() => {
276
- ituSubstrate.registerRuntime(ituWorkerRuntime);
277
- return makeItuGrammarImplementation((body) => ituSubstrate.boundToWire(ituSubstrate.parseBound(body)));
277
+ const runtime = lazyRuntime(ituWorkerRuntime);
278
+ return makeItuGrammarImplementation((body) => ituSubstrate.boundToWire(parseBoundWith(runtime, ituSubstrate.FLAVOR, body)));
278
279
  })(),
279
280
  ietf: (() => {
280
- ietfSubstrate.registerRuntime(ietfWorkerRuntime);
281
- return makeIetfGrammarImplementation((body) => ietfSubstrate.boundToWire(ietfSubstrate.parseBound(body)));
281
+ const runtime = lazyRuntime(ietfWorkerRuntime);
282
+ return makeIetfGrammarImplementation((body) => ietfSubstrate.boundToWire(parseBoundWith(runtime, ietfSubstrate.FLAVOR, body)));
282
283
  })(),
283
284
  iala: (() => {
284
- ialaSubstrate.registerRuntime(ialaWorkerRuntime);
285
- return makeIalaGrammarImplementation((body) => ialaSubstrate.boundToWire(ialaSubstrate.parseBound(body)));
285
+ const runtime = lazyRuntime(ialaWorkerRuntime);
286
+ return makeIalaGrammarImplementation((body) => ialaSubstrate.boundToWire(parseBoundWith(runtime, ialaSubstrate.FLAVOR, body)));
286
287
  })(),
287
288
  };
288
289
  return resolve;
@@ -6,7 +6,9 @@
6
6
  * the keys from any identifier that a worker flavor entry returns.
7
7
  *
8
8
  * `norm` uppercases the canonical render and deletes spaces; `undated`
9
- * strips every colon-year not followed by a dash; `all_parts`
9
+ * strips every delimited year (a colon-year or a parenthesized date) not
10
+ * followed by a dash, plus every dash-year that the parse marks as a
11
+ * year — never the digits of a document number; `all_parts`
10
12
  * additionally strips the parsed part (with its subpart) — structurally,
11
13
  * never by guessing: a trailing "-05" that pubid did not parse as a part
12
14
  * is a date day, not a part, and stays.
@@ -16,8 +18,10 @@
16
18
  export interface LaneKeys {
17
19
  /** The dated lane: the normalized canonical (uppercased, de-spaced). */
18
20
  dated: string;
19
- /** The undated lane: every colon-year not followed by a dash is gone
20
- * (base and supplement alike — one rule, no per-flavor casing). */
21
+ /** The undated lane: every colon-year and parenthesized date not
22
+ * followed by a dash is gone (base and supplement alike — one rule, no
23
+ * per-flavor casing), and so is every dash-year that the parse marks
24
+ * as a year. The digits of a document number always stay. */
21
25
  undated: string;
22
26
  /** The all-parts lane: the parsed part (and subpart) stripped from the
23
27
  * undated lane. Structural only — an unparsed trailing "-N" is never a
@@ -38,9 +42,12 @@ export interface LaneKeySource {
38
42
  */
39
43
  export declare function norm(canonical: string): string;
40
44
  /**
41
- * The undated lane from a norm key: every `:?`-year not followed by a
42
- * dash is stripped — globally, base and supplement years alike. Ruby's
43
- * `gsub(/:?(?:19|20)\d{2}(?=[^-]*$)/, "")` verbatim.
45
+ * The undated lane from a norm key: every delimited year not followed by
46
+ * a dash is stripped — globally, base and supplement years alike. A year
47
+ * is delimited when a colon introduces it (`:2015`) or when it is a whole
48
+ * parenthesized date (`(2001)`, `(10/2019)`, the reaffirmation
49
+ * `(R2020)`). No digit continues the year, and a bare digit run is never
50
+ * a year: `ISO19115`, `RFC2045` and `IEC62019` stay whole.
44
51
  */
45
52
  export declare function undatedNorm(normKey: string): string;
46
53
  /**
@@ -60,7 +67,8 @@ export declare function allPartsNorm(undated: string, part?: string, subpart?: s
60
67
  */
61
68
  export declare function structuralPart(components: Record<string, unknown>): string | undefined;
62
69
  /** The lane keys for an already-canonical record: norm from the render,
63
- * undated from the norm, all_parts from the parsed part and subpart. */
70
+ * undated from the norm and the parsed year, all_parts from the parsed
71
+ * part and subpart. */
64
72
  export declare function laneKeysFrom(canonical: string, components: Record<string, unknown>): LaneKeys;
65
73
  /** The lane keys of a parsed identifier: `laneKeysFrom(id.toHuman(),
66
74
  * id.toHash())`. Use it on the identifier that a worker flavor entry
package/dist/lane-keys.js CHANGED
@@ -6,7 +6,9 @@
6
6
  * the keys from any identifier that a worker flavor entry returns.
7
7
  *
8
8
  * `norm` uppercases the canonical render and deletes spaces; `undated`
9
- * strips every colon-year not followed by a dash; `all_parts`
9
+ * strips every delimited year (a colon-year or a parenthesized date) not
10
+ * followed by a dash, plus every dash-year that the parse marks as a
11
+ * year — never the digits of a document number; `all_parts`
10
12
  * additionally strips the parsed part (with its subpart) — structurally,
11
13
  * never by guessing: a trailing "-05" that pubid did not parse as a part
12
14
  * is a date day, not a part, and stays.
@@ -23,13 +25,43 @@ function escapeRegExp(text) {
23
25
  export function norm(canonical) {
24
26
  return canonical.toUpperCase().replaceAll(" ", "");
25
27
  }
28
+ const DELIMITED_YEAR = /(?::(?:19|20)\d{2}|\((?:\d{1,2}\/|R)?(?:19|20)\d{2}\))(?![0-9])(?=[^-]*$)/g;
29
+ const YEAR = /^(?:19|20)\d{2}$/;
26
30
  /**
27
- * The undated lane from a norm key: every `:?`-year not followed by a
28
- * dash is stripped — globally, base and supplement years alike. Ruby's
29
- * `gsub(/:?(?:19|20)\d{2}(?=[^-]*$)/, "")` verbatim.
31
+ * The undated lane from a norm key: every delimited year not followed by
32
+ * a dash is stripped — globally, base and supplement years alike. A year
33
+ * is delimited when a colon introduces it (`:2015`) or when it is a whole
34
+ * parenthesized date (`(2001)`, `(10/2019)`, the reaffirmation
35
+ * `(R2020)`). No digit continues the year, and a bare digit run is never
36
+ * a year: `ISO19115`, `RFC2045` and `IEC62019` stay whole.
30
37
  */
31
38
  export function undatedNorm(normKey) {
32
- return normKey.replace(/:?(?:19|20)\d{2}(?=[^-]*$)/g, "");
39
+ return normKey.replace(DELIMITED_YEAR, "");
40
+ }
41
+ /** The years that the parse gives: the identifier's own, then each
42
+ * base's (a supplement keeps its base year on the base record). */
43
+ function parsedYears(components) {
44
+ const years = [];
45
+ let record = components;
46
+ while (record !== undefined && record !== null && typeof record === "object" && !Array.isArray(record)) {
47
+ const year = yearText(record["year"]);
48
+ if (year !== undefined && YEAR.test(year))
49
+ years.push(year);
50
+ record = record["base"];
51
+ }
52
+ return years;
53
+ }
54
+ /** Each parsed year's first `-<year>` (the IEEE `802.3-2015/COR.1-2017`
55
+ * form) stripped from the dated key. No digit and no colon continues
56
+ * the match, so `11073-20101` and a part equal to the year
57
+ * (`ISO 8000-2019:2019`) stay. */
58
+ function stripParsedDashYears(dated, years) {
59
+ return years.reduce((key, year) => key.replace(new RegExp(`-${year}(?![0-9:])`), ""), dated);
60
+ }
61
+ function yearText(raw) {
62
+ if (typeof raw === "number")
63
+ return String(raw);
64
+ return facetText(raw);
33
65
  }
34
66
  function stripTrailingSegment(undated, segment) {
35
67
  const digitBoundary = /[0-9]$/.test(segment) ? "(?![0-9])" : "";
@@ -95,10 +127,11 @@ function structuralSubpart(components) {
95
127
  return record === undefined ? undefined : facetText(record["subpart"]);
96
128
  }
97
129
  /** The lane keys for an already-canonical record: norm from the render,
98
- * undated from the norm, all_parts from the parsed part and subpart. */
130
+ * undated from the norm and the parsed year, all_parts from the parsed
131
+ * part and subpart. */
99
132
  export function laneKeysFrom(canonical, components) {
100
133
  const dated = norm(canonical);
101
- const undated = undatedNorm(dated);
134
+ const undated = undatedNorm(stripParsedDashYears(dated, parsedYears(components)));
102
135
  return {
103
136
  dated,
104
137
  undated,
@@ -0,0 +1,2 @@
1
+ declare const _default: "{\"bindings\":null,\"version\":\"0.1.0\",\"grammar\":\"PubidItu\",\"shape\":\"parsanol-tree/v2\",\"binding_version\":1,\"entries\":{\"identifier\":{\"root\":\"identifier\",\"grammar\":{\"atoms\":[{\"Entity\":{\"atom\":828}},{\"Entity\":{\"atom\":816}},{\"Entity\":{\"atom\":163}},{\"Str\":{\"pattern\":\"Annex to\"}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\" \"}},{\"Entity\":{\"atom\":161}},{\"Entity\":{\"atom\":108}},{\"Entity\":{\"atom\":21}},{\"Str\":{\"pattern\":\"Recommendation \"}},{\"Str\":{\"pattern\":\"ITU\"}},{\"Entity\":{\"atom\":12}},{\"Str\":{\"pattern\":\"-\"}},{\"Entity\":{\"atom\":5}},{\"Alternative\":{\"atoms\":[11,13]}},{\"Sequence\":{\"atoms\":[9,10,14]}},{\"Str\":{\"pattern\":\"ITU\"}},{\"Entity\":{\"atom\":12}},{\"Entity\":{\"atom\":5}},{\"Alternative\":{\"atoms\":[17,18]}},{\"Sequence\":{\"atoms\":[16,19]}},{\"Alternative\":{\"atoms\":[15,20]}},{\"Entity\":{\"atom\":27}},{\"Str\":{\"pattern\":\"R\"}},{\"Str\":{\"pattern\":\"T\"}},{\"Str\":{\"pattern\":\"D\"}},{\"Alternative\":{\"atoms\":[23,24,25]}},{\"Named\":{\"name\":\"sector\",\"atom\":26}},{\"Entity\":{\"atom\":5}},{\"Sequence\":{\"atoms\":[22,28]}},{\"Repetition\":{\"atom\":29,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":33}},{\"Str\":{\"pattern\":\"OB\"}},{\"Named\":{\"name\":\"series\",\"atom\":32}},{\"Entity\":{\"atom\":42}},{\"Entity\":{\"atom\":36}},{\"Str\":{\"pattern\":\".\"}},{\"Entity\":{\"atom\":41}},{\"Entity\":{\"atom\":39}},{\"Re\":{\"pattern\":\"[\\\\x30-\\\\x39]\"}},{\"Repetition\":{\"atom\":38,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"number\",\"atom\":40}},{\"Sequence\":{\"atoms\":[35,37]}},{\"Entity\":{\"atom\":48}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"No.\"}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":41}},{\"Sequence\":{\"atoms\":[44,45,46,47]}},{\"Entity\":{\"atom\":52}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":41}},{\"Sequence\":{\"atoms\":[50,51]}},{\"Alternative\":{\"atoms\":[34,43,49]}},{\"Entity\":{\"atom\":94}},{\"Entity\":{\"atom\":68}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"(\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":58,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"month\",\"atom\":59}},{\"Str\":{\"pattern\":\"/\"}},{\"Sequence\":{\"atoms\":[60,61]}},{\"Repetition\":{\"atom\":62,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":64,\"min\":4,\"max\":4,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"year\",\"atom\":65}},{\"Str\":{\"pattern\":\")\"}},{\"Sequence\":{\"atoms\":[56,57,63,66,67]}},{\"Entity\":{\"atom\":93}},{\"Str\":{\"pattern\":\" - \"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":71,\"min\":2,\"max\":2,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"day\",\"atom\":72}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":87}},{\"Str\":{\"pattern\":\"XII\"}},{\"Str\":{\"pattern\":\"XI\"}},{\"Str\":{\"pattern\":\"IX\"}},{\"Str\":{\"pattern\":\"VIII\"}},{\"Str\":{\"pattern\":\"VII\"}},{\"Str\":{\"pattern\":\"VI\"}},{\"Str\":{\"pattern\":\"V\"}},{\"Str\":{\"pattern\":\"IV\"}},{\"Str\":{\"pattern\":\"III\"}},{\"Str\":{\"pattern\":\"II\"}},{\"Str\":{\"pattern\":\"I\"}},{\"Alternative\":{\"atoms\":[76,77,78,79,80,81,82,83,84,85,86]}},{\"Named\":{\"name\":\"roman_month\",\"atom\":75}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":90,\"min\":4,\"max\":4,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"year\",\"atom\":91}},{\"Sequence\":{\"atoms\":[70,73,74,88,89,92]}},{\"Alternative\":{\"atoms\":[55,69]}},{\"Repetition\":{\"atom\":54,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Entity\":{\"atom\":12}},{\"Str\":{\"pattern\":\"E\"}},{\"Str\":{\"pattern\":\"F\"}},{\"Str\":{\"pattern\":\"A\"}},{\"Str\":{\"pattern\":\"S\"}},{\"Str\":{\"pattern\":\"C\"}},{\"Str\":{\"pattern\":\"R\"}},{\"Alternative\":{\"atoms\":[98,99,100,101,102,103]}},{\"Named\":{\"name\":\"language\",\"atom\":104}},{\"Sequence\":{\"atoms\":[97,105]}},{\"Repetition\":{\"atom\":96,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[8,30,31,53,95,107]}},{\"Entity\":{\"atom\":160}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Sequence\":{\"atoms\":[111,112]}},{\"Repetition\":{\"atom\":113,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Str\":{\"pattern\":\"Operational Bulletin\"}},{\"Named\":{\"name\":\"_op_bull\",\"atom\":115}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"No.\"}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":41}},{\"Entity\":{\"atom\":156}},{\"Entity\":{\"atom\":68}},{\"Entity\":{\"atom\":155}},{\"Entity\":{\"atom\":143}},{\"Entity\":{\"atom\":12}},{\"Str\":{\"pattern\":\"19\"}},{\"Str\":{\"pattern\":\"20\"}},{\"Alternative\":{\"atoms\":[126,127]}},{\"Entity\":{\"atom\":39}},{\"Entity\":{\"atom\":39}},{\"Sequence\":{\"atoms\":[128,129,130]}},{\"Named\":{\"name\":\"year\",\"atom\":131}},{\"Str\":{\"pattern\":\"0\"}},{\"Re\":{\"pattern\":\"[\\\\x31-\\\\x39]\"}},{\"Sequence\":{\"atoms\":[133,134]}},{\"Str\":{\"pattern\":\"1\"}},{\"Re\":{\"pattern\":\"[\\\\x30-\\\\x32]\"}},{\"Sequence\":{\"atoms\":[136,137]}},{\"Alternative\":{\"atoms\":[135,138]}},{\"Named\":{\"name\":\"month\",\"atom\":139}},{\"Entity\":{\"atom\":39}},{\"Lookahead\":{\"atom\":141,\"positive\":false}},{\"Sequence\":{\"atoms\":[125,132,140,142]}},{\"Entity\":{\"atom\":153}},{\"Entity\":{\"atom\":12}},{\"Str\":{\"pattern\":\"I\"}},{\"Entity\":{\"atom\":39}},{\"Entity\":{\"atom\":149}},{\"Entity\":{\"atom\":150}},{\"Re\":{\"pattern\":\"[\\\\x41-\\\\x5a]\"}},{\"Alternative\":{\"atoms\":[147,148]}},{\"Lookahead\":{\"atom\":151,\"positive\":false}},{\"Sequence\":{\"atoms\":[145,146,152]}},{\"Repetition\":{\"atom\":144,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[124,154]}},{\"Alternative\":{\"atoms\":[122,123]}},{\"Repetition\":{\"atom\":121,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":158,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[110,114,116,117,118,119,120,157,159]}},{\"Alternative\":{\"atoms\":[7,109]}},{\"Named\":{\"name\":\"annex_to\",\"atom\":6}},{\"Sequence\":{\"atoms\":[3,4,162]}},{\"Entity\":{\"atom\":161}},{\"Entity\":{\"atom\":618}},{\"Entity\":{\"atom\":603}},{\"Entity\":{\"atom\":567}},{\"Entity\":{\"atom\":482}},{\"Entity\":{\"atom\":467}},{\"Entity\":{\"atom\":341}},{\"Entity\":{\"atom\":173}},{\"Str\":{\"pattern\":\"Report\"}},{\"Named\":{\"name\":\"report_marker\",\"atom\":172}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":332}},{\"Str\":{\"pattern\":\"OB\"}},{\"Entity\":{\"atom\":36}},{\"Sequence\":{\"atoms\":[179,180]}},{\"Lookahead\":{\"atom\":181,\"positive\":false}},{\"Entity\":{\"atom\":191}},{\"Str\":{\"pattern\":\"SG\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":185,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Sequence\":{\"atoms\":[184,186]}},{\"Entity\":{\"atom\":150}},{\"Repetition\":{\"atom\":188,\"min\":1,\"max\":3,\"tag\":\"Repetition\"}},{\"Alternative\":{\"atoms\":[187,189]}},{\"Named\":{\"name\":\"series\",\"atom\":190}},{\"Entity\":{\"atom\":36}},{\"Sequence\":{\"atoms\":[183,192]}},{\"Repetition\":{\"atom\":193,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":271}},{\"Entity\":{\"atom\":241}},{\"Str\":{\"pattern\":\"Imp\"}},{\"Named\":{\"name\":\"imp_marker\",\"atom\":197}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":199,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Entity\":{\"atom\":150}},{\"Repetition\":{\"atom\":201,\"min\":1,\"max\":3,\"tag\":\"Repetition\"}},{\"Alternative\":{\"atoms\":[200,202]}},{\"Named\":{\"name\":\"number\",\"atom\":203}},{\"Entity\":{\"atom\":210}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":207,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"subseries\",\"atom\":208}},{\"Sequence\":{\"atoms\":[206,209]}},{\"Repetition\":{\"atom\":205,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":240}},{\"Entity\":{\"atom\":238}},{\"Entity\":{\"atom\":12}},{\"Entity\":{\"atom\":233}},{\"Entity\":{\"atom\":222}},{\"Str\":{\"pattern\":\"19\"}},{\"Str\":{\"pattern\":\"20\"}},{\"Alternative\":{\"atoms\":[217,218]}},{\"Entity\":{\"atom\":39}},{\"Entity\":{\"atom\":39}},{\"Sequence\":{\"atoms\":[219,220,221]}},{\"Entity\":{\"atom\":230}},{\"Str\":{\"pattern\":\"0\"}},{\"Re\":{\"pattern\":\"[\\\\x31-\\\\x39]\"}},{\"Sequence\":{\"atoms\":[224,225]}},{\"Str\":{\"pattern\":\"1\"}},{\"Re\":{\"pattern\":\"[\\\\x30-\\\\x32]\"}},{\"Sequence\":{\"atoms\":[227,228]}},{\"Alternative\":{\"atoms\":[226,229]}},{\"Entity\":{\"atom\":39}},{\"Lookahead\":{\"atom\":231,\"positive\":false}},{\"Sequence\":{\"atoms\":[216,223,232]}},{\"Lookahead\":{\"atom\":215,\"positive\":false}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":235,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"part\",\"atom\":236}},{\"Sequence\":{\"atoms\":[214,234,237]}},{\"Repetition\":{\"atom\":213,\"min\":0,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"parts\",\"atom\":239}},{\"Sequence\":{\"atoms\":[198,204,211,212]}},{\"Entity\":{\"atom\":270}},{\"Entity\":{\"atom\":41}},{\"Entity\":{\"atom\":251}},{\"Entity\":{\"atom\":250}},{\"Str\":{\"pattern\":\"bis\"}},{\"Str\":{\"pattern\":\"ter\"}},{\"Str\":{\"pattern\":\"quater\"}},{\"Str\":{\"pattern\":\"quarter\"}},{\"Alternative\":{\"atoms\":[246,247,248,249]}},{\"Named\":{\"name\":\"series_suffix\",\"atom\":245}},{\"Repetition\":{\"atom\":244,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":210}},{\"Repetition\":{\"atom\":253,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":240}},{\"Entity\":{\"atom\":257}},{\"Entity\":{\"atom\":268}},{\"Re\":{\"pattern\":\"[\\\\x41-\\\\x52]\"}},{\"Re\":{\"pattern\":\"[\\\\x61-\\\\x72]\"}},{\"Alternative\":{\"atoms\":[258,259]}},{\"Named\":{\"name\":\"qualifier\",\"atom\":260}},{\"Entity\":{\"atom\":150}},{\"Entity\":{\"atom\":264}},{\"Re\":{\"pattern\":\"[\\\\x61-\\\\x7a]\"}},{\"Entity\":{\"atom\":39}},{\"Alternative\":{\"atoms\":[262,263,265]}},{\"Lookahead\":{\"atom\":266,\"positive\":false}},{\"Sequence\":{\"atoms\":[261,267]}},{\"Repetition\":{\"atom\":256,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[243,252,254,255,269]}},{\"Alternative\":{\"atoms\":[196,242]}},{\"Entity\":{\"atom\":281}},{\"Entity\":{\"atom\":12}},{\"Entity\":{\"atom\":150}},{\"Repetition\":{\"atom\":274,\"min\":1,\"max\":3,\"tag\":\"Repetition\"}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":277,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Sequence\":{\"atoms\":[275,276,278]}},{\"Named\":{\"name\":\"range_end\",\"atom\":279}},{\"Sequence\":{\"atoms\":[273,280]}},{\"Repetition\":{\"atom\":272,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":297}},{\"Entity\":{\"atom\":289}},{\"Entity\":{\"atom\":5}},{\"Named\":{\"name\":\"series_suffix_spaced\",\"atom\":285}},{\"Entity\":{\"atom\":250}},{\"Named\":{\"name\":\"series_suffix\",\"atom\":287}},{\"Sequence\":{\"atoms\":[286,288]}},{\"Repetition\":{\"atom\":284,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":295}},{\"Entity\":{\"atom\":5}},{\"Named\":{\"name\":\"qualifier_spaced\",\"atom\":292}},{\"Entity\":{\"atom\":268}},{\"Sequence\":{\"atoms\":[293,294]}},{\"Repetition\":{\"atom\":291,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[290,296]}},{\"Entity\":{\"atom\":302}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"series\"}},{\"Named\":{\"name\":\"series_word\",\"atom\":300}},{\"Sequence\":{\"atoms\":[299,301]}},{\"Repetition\":{\"atom\":298,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":308}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"attachment\"}},{\"Named\":{\"name\":\"attachment\",\"atom\":306}},{\"Sequence\":{\"atoms\":[305,307]}},{\"Repetition\":{\"atom\":304,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":328}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"(V\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":313,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"version\",\"atom\":314}},{\"Str\":{\"pattern\":\")\"}},{\"Sequence\":{\"atoms\":[312,315,316]}},{\"Str\":{\"pattern\":\"V\"}},{\"Str\":{\"pattern\":\"v\"}},{\"Alternative\":{\"atoms\":[318,319]}},{\"Entity\":{\"atom\":36}},{\"Repetition\":{\"atom\":321,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":323,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"version\",\"atom\":324}},{\"Sequence\":{\"atoms\":[320,322,325]}},{\"Alternative\":{\"atoms\":[317,326]}},{\"Sequence\":{\"atoms\":[311,327]}},{\"Repetition\":{\"atom\":310,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":330,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[182,194,195,282,283,303,309,329,331]}},{\"Sequence\":{\"atoms\":[171,174,175,176,177,178]}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":173}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":332}},{\"Sequence\":{\"atoms\":[334,335,336,337,338,339]}},{\"Alternative\":{\"atoms\":[333,340]}},{\"Entity\":{\"atom\":426}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":351}},{\"Str\":{\"pattern\":\"REC\"}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":12}},{\"Alternative\":{\"atoms\":[348,349]}},{\"Sequence\":{\"atoms\":[347,350]}},{\"Repetition\":{\"atom\":346,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":191}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":271}},{\"Entity\":{\"atom\":281}},{\"Repetition\":{\"atom\":356,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":297}},{\"Entity\":{\"atom\":416}},{\"Entity\":{\"atom\":414}},{\"Str\":{\"pattern\":\"/\"}},{\"Entity\":{\"atom\":191}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":367}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":365,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"d_number\",\"atom\":366}},{\"Entity\":{\"atom\":373}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":370,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"d_subseries\",\"atom\":371}},{\"Sequence\":{\"atoms\":[369,372]}},{\"Repetition\":{\"atom\":368,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":385}},{\"Entity\":{\"atom\":383}},{\"Entity\":{\"atom\":12}},{\"Entity\":{\"atom\":233}},{\"Lookahead\":{\"atom\":378,\"positive\":false}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":380,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"d_part\",\"atom\":381}},{\"Sequence\":{\"atoms\":[377,379,382]}},{\"Repetition\":{\"atom\":376,\"min\":0,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"d_parts\",\"atom\":384}},{\"Entity\":{\"atom\":387}},{\"Entity\":{\"atom\":397}},{\"Re\":{\"pattern\":\"[\\\\x41-\\\\x52]\"}},{\"Re\":{\"pattern\":\"[\\\\x61-\\\\x72]\"}},{\"Alternative\":{\"atoms\":[388,389]}},{\"Named\":{\"name\":\"d_qualifier\",\"atom\":390}},{\"Entity\":{\"atom\":150}},{\"Entity\":{\"atom\":264}},{\"Entity\":{\"atom\":39}},{\"Alternative\":{\"atoms\":[392,393,394]}},{\"Lookahead\":{\"atom\":395,\"positive\":false}},{\"Sequence\":{\"atoms\":[391,396]}},{\"Repetition\":{\"atom\":386,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":404}},{\"Entity\":{\"atom\":5}},{\"Named\":{\"name\":\"d_series_suffix_spaced\",\"atom\":400}},{\"Entity\":{\"atom\":250}},{\"Named\":{\"name\":\"d_series_suffix\",\"atom\":402}},{\"Sequence\":{\"atoms\":[401,403]}},{\"Repetition\":{\"atom\":399,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":410}},{\"Entity\":{\"atom\":5}},{\"Named\":{\"name\":\"d_qualifier_spaced\",\"atom\":407}},{\"Entity\":{\"atom\":397}},{\"Sequence\":{\"atoms\":[408,409]}},{\"Repetition\":{\"atom\":406,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[362,363,364,374,375,398,405,411]}},{\"Named\":{\"name\":\"designation\",\"atom\":412}},{\"Sequence\":{\"atoms\":[361,413]}},{\"Repetition\":{\"atom\":360,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"combined\",\"atom\":415}},{\"Repetition\":{\"atom\":359,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":302}},{\"Repetition\":{\"atom\":418,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":308}},{\"Repetition\":{\"atom\":420,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":328}},{\"Repetition\":{\"atom\":422,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":424,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[343,344,345,352,353,354,355,357,358,417,419,421,423,425]}},{\"Entity\":{\"atom\":439}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":271}},{\"Entity\":{\"atom\":297}},{\"Entity\":{\"atom\":308}},{\"Repetition\":{\"atom\":433,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":328}},{\"Repetition\":{\"atom\":435,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":437,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[428,429,430,431,432,434,436,438]}},{\"Entity\":{\"atom\":466}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":461}},{\"Str\":{\"pattern\":\"OB\"}},{\"Entity\":{\"atom\":12}},{\"Sequence\":{\"atoms\":[445,446]}},{\"Lookahead\":{\"atom\":447,\"positive\":false}},{\"Entity\":{\"atom\":150}},{\"Repetition\":{\"atom\":449,\"min\":2,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"series\",\"atom\":450}},{\"Entity\":{\"atom\":12}},{\"Named\":{\"name\":\"series_dash\",\"atom\":452}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":454,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Entity\":{\"atom\":150}},{\"Repetition\":{\"atom\":456,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Alternative\":{\"atoms\":[455,457]}},{\"Named\":{\"name\":\"number\",\"atom\":458}},{\"Entity\":{\"atom\":240}},{\"Sequence\":{\"atoms\":[448,451,453,459,460]}},{\"Entity\":{\"atom\":328}},{\"Repetition\":{\"atom\":462,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":464,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[441,442,443,444,463,465]}},{\"Alternative\":{\"atoms\":[170,342,427,440]}},{\"Named\":{\"name\":\"base\",\"atom\":169}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"Annex\"}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":150}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":473,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Repetition\":{\"atom\":474,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Str\":{\"pattern\":\"+\"}},{\"Repetition\":{\"atom\":476,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[472,475,477]}},{\"Named\":{\"name\":\"annex_number\",\"atom\":478}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":480,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[468,469,470,471,479,481]}},{\"Named\":{\"name\":\"base\",\"atom\":168}},{\"Entity\":{\"atom\":507}},{\"Entity\":{\"atom\":467}},{\"Named\":{\"name\":\"base\",\"atom\":485}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"App.\"}},{\"Entity\":{\"atom\":5}},{\"Repetition\":{\"atom\":489,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Re\":{\"pattern\":\"[I]\"}},{\"Re\":{\"pattern\":\"[V]\"}},{\"Re\":{\"pattern\":\"[X]\"}},{\"Alternative\":{\"atoms\":[491,492,493]}},{\"Repetition\":{\"atom\":494,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"appendix_number\",\"atom\":495}},{\"Entity\":{\"atom\":503}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"test vectors\"}},{\"Str\":{\"pattern\":\"Software\"}},{\"Alternative\":{\"atoms\":[499,500]}},{\"Named\":{\"name\":\"appendix_material\",\"atom\":501}},{\"Sequence\":{\"atoms\":[498,502]}},{\"Repetition\":{\"atom\":497,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":505,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[486,487,488,490,496,504,506]}},{\"Named\":{\"name\":\"base\",\"atom\":484}},{\"Entity\":{\"atom\":467}},{\"Named\":{\"name\":\"base\",\"atom\":509}},{\"Alternative\":{\"atoms\":[483,508,510]}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":535}},{\"Str\":{\"pattern\":\"Suppl.\"}},{\"Str\":{\"pattern\":\"Suppl\"}},{\"Str\":{\"pattern\":\"Amd.\"}},{\"Str\":{\"pattern\":\"Amd\"}},{\"Str\":{\"pattern\":\"Add.\"}},{\"Str\":{\"pattern\":\"Add\"}},{\"Str\":{\"pattern\":\"Err.\"}},{\"Str\":{\"pattern\":\"Err\"}},{\"Alternative\":{\"atoms\":[514,515,516,517,518,519,520,521]}},{\"Named\":{\"name\":\"supplement_type\",\"atom\":522}},{\"Entity\":{\"atom\":528}},{\"Str\":{\"pattern\":\"Technical\"}},{\"Named\":{\"name\":\"technical\",\"atom\":525}},{\"Entity\":{\"atom\":5}},{\"Sequence\":{\"atoms\":[526,527]}},{\"Repetition\":{\"atom\":524,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Str\":{\"pattern\":\"Cor.\"}},{\"Str\":{\"pattern\":\"Cor\"}},{\"Alternative\":{\"atoms\":[530,531]}},{\"Named\":{\"name\":\"supplement_type\",\"atom\":532}},{\"Sequence\":{\"atoms\":[529,533]}},{\"Alternative\":{\"atoms\":[523,534]}},{\"Entity\":{\"atom\":549}},{\"Entity\":{\"atom\":5}},{\"Named\":{\"name\":\"supplement_space\",\"atom\":537}},{\"Repetition\":{\"atom\":538,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":540,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":543,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Sequence\":{\"atoms\":[542,544]}},{\"Repetition\":{\"atom\":545,\"min\":0,\"max\":null,\"tag\":\"Repetition\"}},{\"Sequence\":{\"atoms\":[541,546]}},{\"Named\":{\"name\":\"supplement_number\",\"atom\":547}},{\"Sequence\":{\"atoms\":[539,548]}},{\"Entity\":{\"atom\":563}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"(\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":553,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"supplement_month\",\"atom\":554}},{\"Str\":{\"pattern\":\"/\"}},{\"Sequence\":{\"atoms\":[555,556]}},{\"Repetition\":{\"atom\":557,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":559,\"min\":4,\"max\":4,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"supplement_year\",\"atom\":560}},{\"Str\":{\"pattern\":\")\"}},{\"Sequence\":{\"atoms\":[551,552,558,561,562]}},{\"Repetition\":{\"atom\":550,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":565,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[511,512,513,536,564,566]}},{\"Entity\":{\"atom\":593}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":581}},{\"Entity\":{\"atom\":150}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":574,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Repetition\":{\"atom\":575,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":12}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":578,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Sequence\":{\"atoms\":[573,576,577,579]}},{\"Named\":{\"name\":\"series\",\"atom\":580}},{\"Entity\":{\"atom\":191}},{\"Alternative\":{\"atoms\":[572,582]}},{\"Entity\":{\"atom\":302}},{\"Repetition\":{\"atom\":584,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":535}},{\"Entity\":{\"atom\":549}},{\"Entity\":{\"atom\":563}},{\"Repetition\":{\"atom\":589,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":591,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[569,570,571,583,585,586,587,588,590,592]}},{\"Alternative\":{\"atoms\":[167,568]}},{\"Named\":{\"name\":\"base\",\"atom\":594}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":535}},{\"Entity\":{\"atom\":549}},{\"Entity\":{\"atom\":563}},{\"Repetition\":{\"atom\":599,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":601,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[595,596,597,598,600,602]}},{\"Entity\":{\"atom\":615}},{\"Entity\":{\"atom\":567}},{\"Named\":{\"name\":\"base\",\"atom\":605}},{\"Str\":{\"pattern\":\"/\"}},{\"Named\":{\"name\":\"supplement_slash\",\"atom\":607}},{\"Entity\":{\"atom\":535}},{\"Entity\":{\"atom\":549}},{\"Entity\":{\"atom\":563}},{\"Repetition\":{\"atom\":611,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":613,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[606,608,609,610,612,614]}},{\"Entity\":{\"atom\":567}},{\"Entity\":{\"atom\":593}},{\"Alternative\":{\"atoms\":[166,604,616,617]}},{\"Entity\":{\"atom\":623}},{\"Entity\":{\"atom\":482}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":621,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[620,622]}},{\"Entity\":{\"atom\":628}},{\"Entity\":{\"atom\":507}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":626,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[625,627]}},{\"Entity\":{\"atom\":633}},{\"Entity\":{\"atom\":341}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":631,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[630,632]}},{\"Entity\":{\"atom\":661}},{\"Entity\":{\"atom\":658}},{\"Entity\":{\"atom\":640}},{\"Str\":{\"pattern\":\"Resolution\"}},{\"Str\":{\"pattern\":\"Res.\"}},{\"Alternative\":{\"atoms\":[637,638]}},{\"Named\":{\"name\":\"resolution_marker\",\"atom\":639}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":649}},{\"Entity\":{\"atom\":271}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":647,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[646,648]}},{\"Sequence\":{\"atoms\":[636,641,642,643,644,645]}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":640}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":649}},{\"Sequence\":{\"atoms\":[651,652,653,654,655,656]}},{\"Alternative\":{\"atoms\":[650,657]}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":659,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[635,660]}},{\"Entity\":{\"atom\":672}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":41}},{\"Entity\":{\"atom\":36}},{\"Str\":{\"pattern\":\"HDB\"}},{\"Named\":{\"name\":\"handbook_marker\",\"atom\":668}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":670,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[663,664,665,666,667,669,671]}},{\"Entity\":{\"atom\":687}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":41}},{\"Entity\":{\"atom\":240}},{\"Str\":{\"pattern\":\"/\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":680,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"study_group\",\"atom\":681}},{\"Sequence\":{\"atoms\":[679,682]}},{\"Str\":{\"pattern\":\":\"}},{\"Named\":{\"name\":\"question_colon\",\"atom\":684}},{\"Repetition\":{\"atom\":685,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[674,675,676,677,678,683,686]}},{\"Entity\":{\"atom\":713}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":191}},{\"Entity\":{\"atom\":36}},{\"Str\":{\"pattern\":\"[\"}},{\"Named\":{\"name\":\"bracketed\",\"atom\":694}},{\"Entity\":{\"atom\":705}},{\"Entity\":{\"atom\":41}},{\"Str\":{\"pattern\":\"/BL\"}},{\"Named\":{\"name\":\"has_bl\",\"atom\":698}},{\"Repetition\":{\"atom\":699,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Str\":{\"pattern\":\"/\"}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":702,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"study_group\",\"atom\":703}},{\"Sequence\":{\"atoms\":[697,700,701,704]}},{\"Str\":{\"pattern\":\"]\"}},{\"Sequence\":{\"atoms\":[695,696,706]}},{\"Entity\":{\"atom\":705}},{\"Alternative\":{\"atoms\":[707,708]}},{\"Str\":{\"pattern\":\":\"}},{\"Named\":{\"name\":\"question_colon\",\"atom\":710}},{\"Repetition\":{\"atom\":711,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[689,690,691,692,693,709,712]}},{\"Entity\":{\"atom\":734}},{\"Entity\":{\"atom\":21}},{\"Str\":{\"pattern\":\"R\"}},{\"Named\":{\"name\":\"sector\",\"atom\":716}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"RR\"}},{\"Named\":{\"name\":\"radio_regulations\",\"atom\":719}},{\"Entity\":{\"atom\":68}},{\"Entity\":{\"atom\":12}},{\"Entity\":{\"atom\":39}},{\"Repetition\":{\"atom\":723,\"min\":4,\"max\":4,\"tag\":\"Repetition\"}},{\"Named\":{\"name\":\"year\",\"atom\":724}},{\"Sequence\":{\"atoms\":[722,725]}},{\"Alternative\":{\"atoms\":[721,726]}},{\"Repetition\":{\"atom\":727,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":729,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":732}},{\"Re\":{\"pattern\":\"[\\\\x00-\\\\u{10ffff}]\"}},{\"Lookahead\":{\"atom\":731,\"positive\":false}},{\"Sequence\":{\"atoms\":[715,717,718,720,728,730,733]}},{\"Entity\":{\"atom\":759}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":351}},{\"Repetition\":{\"atom\":739,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":191}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":271}},{\"Entity\":{\"atom\":281}},{\"Repetition\":{\"atom\":744,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":297}},{\"Entity\":{\"atom\":416}},{\"Repetition\":{\"atom\":747,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":302}},{\"Repetition\":{\"atom\":749,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":308}},{\"Repetition\":{\"atom\":751,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":328}},{\"Repetition\":{\"atom\":753,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":755,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":757,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[736,737,738,740,741,742,743,745,746,748,750,752,754,756,758]}},{\"Entity\":{\"atom\":771}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":191}},{\"Str\":{\"pattern\":\"-C\"}},{\"Named\":{\"name\":\"contribution_marker\",\"atom\":765}},{\"Entity\":{\"atom\":41}},{\"Entity\":{\"atom\":240}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":769,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[761,762,763,764,766,767,768,770]}},{\"Entity\":{\"atom\":776}},{\"Entity\":{\"atom\":466}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":774,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[773,775]}},{\"Entity\":{\"atom\":791}},{\"Entity\":{\"atom\":21}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":271}},{\"Entity\":{\"atom\":297}},{\"Entity\":{\"atom\":308}},{\"Repetition\":{\"atom\":783,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":328}},{\"Repetition\":{\"atom\":785,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":156}},{\"Repetition\":{\"atom\":787,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":789,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[778,779,780,781,782,784,786,788,790]}},{\"Entity\":{\"atom\":815}},{\"Entity\":{\"atom\":27}},{\"Entity\":{\"atom\":12}},{\"Str\":{\"pattern\":\"REC\"}},{\"Entity\":{\"atom\":12}},{\"Entity\":{\"atom\":191}},{\"Entity\":{\"atom\":36}},{\"Entity\":{\"atom\":271}},{\"Entity\":{\"atom\":143}},{\"Entity\":{\"atom\":810}},{\"Entity\":{\"atom\":12}},{\"Str\":{\"pattern\":\"I\"}},{\"Str\":{\"pattern\":\"S\"}},{\"Alternative\":{\"atoms\":[803,804]}},{\"Entity\":{\"atom\":39}},{\"Entity\":{\"atom\":149}},{\"Alternative\":{\"atoms\":[806,807]}},{\"Lookahead\":{\"atom\":808,\"positive\":false}},{\"Sequence\":{\"atoms\":[802,805,809]}},{\"Named\":{\"name\":\"id_status\",\"atom\":801}},{\"Repetition\":{\"atom\":811,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Entity\":{\"atom\":106}},{\"Repetition\":{\"atom\":813,\"min\":0,\"max\":1,\"tag\":\"Maybe\"}},{\"Sequence\":{\"atoms\":[793,794,795,796,797,798,799,800,812,814]}},{\"Alternative\":{\"atoms\":[2,164,165,619,624,629,634,662,673,688,714,735,760,772,777,792]}},{\"Entity\":{\"atom\":827}},{\"Entity\":{\"atom\":5}},{\"Str\":{\"pattern\":\"|\"}},{\"Entity\":{\"atom\":5}},{\"Entity\":{\"atom\":824}},{\"Re\":{\"pattern\":\"[\\\\x01-\\\\x7b]\"}},{\"Re\":{\"pattern\":\"[\\\\x7d-\\\\u{10ffff}]\"}},{\"Alternative\":{\"atoms\":[822,823]}},{\"Repetition\":{\"atom\":821,\"min\":1,\"max\":null,\"tag\":\"Repetition\"}},{\"Sequence\":{\"atoms\":[818,819,820,825]}},{\"Named\":{\"name\":\"common_text_twin\",\"atom\":826}},{\"Sequence\":{\"atoms\":[1,817]}},{\"Entity\":{\"atom\":816}},{\"Alternative\":{\"atoms\":[0,829]}}],\"root\":830},\"bindings\":[{\"capture\":\"sector\",\"path\":\"sector\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"series\",\"path\":\"series\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"series_word\",\"path\":\"series_word\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"number\",\"path\":\"number\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"subseries\",\"path\":\"subseries\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"series_suffix\",\"path\":\"series_suffix\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"series_suffix_spaced\",\"path\":\"series_suffix_spaced\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"qualifier\",\"path\":\"qualifier\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"qualifier_spaced\",\"path\":\"qualifier_spaced\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"year\",\"path\":\"year\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"month\",\"path\":\"month\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"day\",\"path\":\"day\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"roman_month\",\"path\":\"roman_month\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"language\",\"path\":\"language\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"attachment\",\"path\":\"attachment\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"range_end\",\"path\":\"range_end\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"part\",\"path\":\"parts[].part\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"imp_marker\",\"path\":\"imp_marker\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"version\",\"path\":\"version\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"series_dash\",\"path\":\"series_dash\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"combined\",\"path\":\"combined\",\"type\":\"raw\",\"card\":null,\"preprocess\":null},{\"capture\":\"technical\",\"path\":\"technical\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"supplement_type\",\"path\":\"supplement_type\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"supplement_space\",\"path\":\"supplement_space\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"supplement_number\",\"path\":\"supplement_number\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"supplement_month\",\"path\":\"supplement_month\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"supplement_year\",\"path\":\"supplement_year\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"base\",\"path\":\"base\",\"type\":\"raw\",\"card\":null,\"preprocess\":null},{\"capture\":\"annex_number\",\"path\":\"annex_number\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"appendix_number\",\"path\":\"appendix_number\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"appendix_material\",\"path\":\"appendix_material\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"supplement_slash\",\"path\":\"supplement_slash\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"report_marker\",\"path\":\"report_marker\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"resolution_marker\",\"path\":\"resolution_marker\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"_op_bull\",\"path\":\"_op_bull\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"contribution_marker\",\"path\":\"contribution_marker\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"handbook_marker\",\"path\":\"handbook_marker\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"study_group\",\"path\":\"study_group\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"has_bl\",\"path\":\"has_bl\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"bracketed\",\"path\":\"bracketed\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"question_colon\",\"path\":\"question_colon\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"common_text_twin\",\"path\":\"common_text_twin\",\"type\":\"string\",\"card\":null,\"preprocess\":null},{\"capture\":\"annex_to\",\"path\":\"annex_to\",\"type\":\"raw\",\"card\":null,\"preprocess\":null},{\"capture\":\"radio_regulations\",\"path\":\"radio_regulations\",\"type\":\"string\",\"card\":null,\"preprocess\":null}]}},\"preprocess\":{},\"tables\":{},\"lint\":{\"order_warnings\":[\"rule non_pipe: branches 1 and 2 are order-dependent (first set not statically known)\",\"rule series_suffix_word: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base_report: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base_resolution: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule base: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule supplement_identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule supplement_identifier: branches 1 and 3 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule supplement_identifier: branches 1 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule supplement_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule supplement_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule supplement_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule roman_month: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule ob_date: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule special_publication: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule identifier: branches 1 and 2 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 3 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 5 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 6 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 8 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 2 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 4 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 5 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 6 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 8 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 3 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 5 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 6 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 8 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 4 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 6 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 8 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 5 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 7 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 8 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 6 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 8 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 7 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 9 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 8 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 9 and 10 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 9 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 9 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 9 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 9 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 9 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 9 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 10 and 11 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 10 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 10 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 10 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 10 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 10 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 11 and 12 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 11 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 11 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 11 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 11 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 12 and 13 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 12 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 12 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 12 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 13 and 14 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 13 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 13 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 14 and 15 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 14 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\",\"rule itu_identifier: branches 15 and 16 are order-dependent (shared first bytes; ordered choice is decisive)\"]},\"default_entry\":\"identifier\",\"render\":{},\"derive\":{},\"tests\":[{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"ITU-R BT.500\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"Recommendation ITU-T G.650.1 (09/2020)\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"ITU-R SA.3631 Annex A\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"ITU-T OB.101 (2016)\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"Annex to ITU-T OB.101\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"ITU-T E.164/2\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"ITU-T 55/13:\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"ITU-T G.984.2 Amd. 1 (2010)\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"accept\",\"input\":\"ITU-T G.650.1B\",\"expect\":{}},{\"entry\":\"identifier\",\"kind\":\"reject\",\"input\":\"nonsense\",\"expect\":{}}],\"docs\":{},\"source\":\"# Port of lib/pubid/itu/parser.rb \u2014 ITU-T/R/D designations: series codes\\n# (BT/G/V, SGnn), Imp implementation codes, OB Operational Bulletins,\\n# Reports, Study Group questions (numeric and bracketed series form),\\n# supplements (Suppl./Amd./Add./Err./Cor. with Technical marker), Annex\\n# and App. wraps, combined \\\"/XX.N\\\" designations, and the \\\"| twin\\\"\\n# common-text form. Internal rule `itu_identifier` corresponds to the\\n# source's `identifier` (renamed: PG forbids self-reference from the\\n# common-text wrapper).\\n#\\n# Edition-2 conversion. Deviations from the v1 tree:\\n# - every leaf capture body is written out at its site so it lowers to\\n# one scalar span: edition 2 materializes bare refs to capture-less\\n# composite rules as named nodes (the asme/cie/bsi inlining rule), so\\n# `digits`, `yyyymm_year`, `yyyymm_month`, `roman`, `annex_label` and\\n# `non_pipe` are spelled out at every capture site, and `letter` (a\\n# ref to `upper`) is spelled as its class \u2014 a ref chain inside a\\n# capture breaks the span lowering. Literal alternations\\n# (series_suffix_word, the sector/language/roman_month words) and\\n# refs to capture-bearing rules (`number`, `series`, `question_tail`)\\n# stay refs and bind as spans.\\n# - the builder keeps its v1 wrapper walks (`base` recursion for\\n# annex/appendix/supplement chains, `combined` ->\\n# `designation` elements, `parts` -> `part` hashes), so `base`,\\n# `annex_to` and `combined` bind uncast with (raw) and `part` binds\\n# through the array (`part -> parts[].part (string)`). The inner\\n# `designation` capture is deliberately unbound: it rides inside the\\n# raw `combined` array exactly as the v1 tree delivered it.\\n# - presence markers keep their captured-token shape (the captured\\n# space of `supplement_space`/`qualifier_spaced`, the \\\"/BL\\\" of\\n# `has_bl`, the \\\"[\\\" of `bracketed`), so the builder's nil? checks\\n# keep their meaning; every optional capture is spelled\\n# `[ (group) as x ]` so non-participation omits the key on every\\n# engine.\\n\\ngrammar PubidItu version \\\"0.1.0\\\" edition 2 {\\n digit = %x30-39\\n upper = %x41-5A\\n lower = %x61-7A\\n letter = upper\\n digits = 1*digit\\n space = \\\" \\\"\\n dash = \\\"-\\\"\\n dot = \\\".\\\"\\n non_pipe = %x01-7B / %x7D-10FFFF\\n\\n itu_prefix = (\\\"Recommendation \\\" \\\"ITU\\\" (dash / space)) / (\\\"ITU\\\" (dash / space))\\n sector = (\\\"R\\\" / \\\"T\\\" / \\\"D\\\") as sector\\n series = ((\\\"SG\\\" 1*digit) / (1*3upper)) as series\\n series_group = (upper [1*digit] dash 1*digit) as series\\n series_word = space \\\"series\\\" as series_word\\n number = (1*digit) as number\\n subseries = dot (1*digit) as subseries\\n series_suffix_word = \\\"bis\\\" / \\\"ter\\\" / \\\"quater\\\" / \\\"quarter\\\"\\n series_suffix = (series_suffix_word) as series_suffix\\n series_suffix_spaced = (space as series_suffix_spaced) ((series_suffix_word) as series_suffix)\\n qualifier_letter = ((%x41-52 / %x61-72) as qualifier !(upper / lower / digit))\\n qualifier_glued = qualifier_letter\\n qualifier_spaced = (space as qualifier_spaced) qualifier_letter\\n yyyymm_year = (\\\"19\\\" / \\\"20\\\") digit digit\\n yyyymm_month = (\\\"0\\\" %x31-39) / (\\\"1\\\" %x30-32)\\n yyyymm_shape = yyyymm_year yyyymm_month !digit\\n yyyymm_date = dash ((\\\"19\\\" / \\\"20\\\") digit digit) as year ((\\\"0\\\" %x31-39) / (\\\"1\\\" %x30-32)) as month !digit\\n id_status = dash (\\\"I\\\" / \\\"S\\\") !(digit / letter)\\n print_id_status = dash \\\"I\\\" !(digit / letter)\\n id_date = yyyymm_date [print_id_status]\\n document_date = (date_part / id_date)\\n rec_word = (\\\"REC\\\" (space / dash))\\n publication_id = sector dash \\\"REC\\\" dash series dot code yyyymm_date [id_status] [language]\\n code_suffixes = [series_suffix_spaced] [qualifier_spaced]\\n attachment = space \\\"attachment\\\" as attachment\\n range_end = dash ((1*3upper dot 1*digit) as range_end)\\n part = dash !yyyymm_shape (1*digit) as part\\n parts = (*part) as parts\\n code = imp_code / standard_code\\n standard_code = number [series_suffix] [subseries] parts [qualifier_glued]\\n imp_code = \\\"Imp\\\" as imp_marker (((1*digit) / (1*3upper)) as number) [subseries] parts\\n date_part = space \\\"(\\\" [((1*digit) as month \\\"/\\\")] ((4digit) as year) \\\")\\\"\\n version_part = space (((\\\"(V\\\" 1*digit as version \\\")\\\") / ((\\\"V\\\" / \\\"v\\\") [dot] 1*digit as version)))\\n language = dash ((\\\"E\\\" / \\\"F\\\" / \\\"A\\\" / \\\"S\\\" / \\\"C\\\" / \\\"R\\\") as language)\\n\\n # The combined-designation tail repeats the code-suffix shapes under\\n # d_* capture names: a capture name occurring at two structural depths\\n # pairs into ONE top-level bound key (last occurrence wins; array\\n # bindings concatenate), so the shared number/subseries/parts/suffix/\\n # qualifier names would corrupt the primary's Code with the\\n # designation's tail. series and number stay shared \u2014 the primary\\n # always carries them first.\\n d_number = (1*digit) as d_number\\n d_subseries = dot (1*digit) as d_subseries\\n d_part = dash !yyyymm_shape (1*digit) as d_part\\n d_parts = (*d_part) as d_parts\\n d_series_suffix = (series_suffix_word) as d_series_suffix\\n d_series_suffix_spaced = (space as d_series_suffix_spaced) ((series_suffix_word) as d_series_suffix)\\n d_qualifier_letter = ((%x41-52 / %x61-72) as d_qualifier !(upper / lower / digit))\\n d_qualifier_glued = d_qualifier_letter\\n d_qualifier_spaced = (space as d_qualifier_spaced) d_qualifier_letter\\n\\n combined_designation = \\\"/\\\" ((series dot d_number [d_subseries] d_parts [d_qualifier_glued] [d_series_suffix_spaced] [d_qualifier_spaced]) as designation)\\n combined_suffixes = (1*combined_designation) as combined\\n\\n technical_marker = \\\"Technical\\\" as technical space\\n supplement_type = ((\\\"Suppl.\\\" / \\\"Suppl\\\" / \\\"Amd.\\\" / \\\"Amd\\\" / \\\"Add.\\\" / \\\"Add\\\" / \\\"Err.\\\" / \\\"Err\\\") as supplement_type) / (([technical_marker] (\\\"Cor.\\\" / \\\"Cor\\\") as supplement_type))\\n supplement_number = ([space as supplement_space]) ((1*digit *(dot 1*digit)) as supplement_number)\\n supplement_date = space \\\"(\\\" [((1*digit) as supplement_month \\\"/\\\")] ((4digit) as supplement_year) \\\")\\\"\\n\\n base_with_series = {\\n itu_prefix sector space\\n [rec_word]\\n series dot code\\n [range_end]\\n code_suffixes\\n [combined_suffixes]\\n [series_word]\\n [attachment]\\n [version_part]\\n [document_date]\\n }\\n base_without_series = {\\n itu_prefix sector space\\n code\\n code_suffixes\\n [attachment]\\n [version_part]\\n [document_date]\\n }\\n series_code_body = {\\n !(\\\"OB\\\" dash)\\n ((2*upper) as series)\\n (dash as series_dash)\\n (((1*digit) / (1*upper)) as number)\\n parts\\n }\\n contribution = {\\n itu_prefix sector space\\n series\\n (\\\"-C\\\" as contribution_marker)\\n number\\n parts\\n [language]\\n }\\n base_series_code = {\\n itu_prefix sector space\\n series_code_body\\n [version_part]\\n [document_date]\\n }\\n series_code_identifier = base_series_code [language]\\n report_word = \\\"Report\\\" as report_marker\\n report_body = {\\n !(\\\"OB\\\" dot)\\n [(series dot)]\\n code\\n [range_end]\\n code_suffixes\\n [series_word]\\n [attachment]\\n [version_part]\\n [document_date]\\n }\\n base_report = {\\n (report_word space itu_prefix sector space report_body)\\n / (itu_prefix sector space report_word space report_body)\\n }\\n report_identifier = base_report [language]\\n # ITU-R Resolution (\\\"Resolution ITU-R 1-9 (2023)\\\"): a number and its\\n # revision, never a series. Like the Report marker, the word is captured,\\n # and both the leading and the infix spelling are accepted.\\n resolution_word = (\\\"Resolution\\\" / \\\"Res.\\\") as resolution_marker\\n resolution_body = {\\n code\\n [document_date]\\n }\\n base_resolution = {\\n (resolution_word space itu_prefix sector space resolution_body)\\n / (itu_prefix sector space resolution_word space resolution_body)\\n }\\n resolution_identifier = base_resolution [language]\\n base = base_report / base_with_series / base_without_series / base_series_code\\n\\n annex_label = upper [1*digit] [\\\"+\\\"]\\n annex_body = {\\n (base as base)\\n space \\\"Annex\\\" space\\n ((upper [1*digit] [\\\"+\\\"])) as annex_number\\n [document_date]\\n }\\n annex_identifier = annex_body [language]\\n roman = 1*(%x49 / %x56 / %x58)\\n appendix_material = space ((\\\"test vectors\\\" / \\\"Software\\\") as appendix_material)\\n appendix_body = {\\n (base as base)\\n space \\\"App.\\\" [space]\\n (1*(%x49 / %x56 / %x58)) as appendix_number\\n [appendix_material]\\n [document_date]\\n }\\n appendix_identifier = appendix_body [language]\\n\\n supplement_with_base = {\\n ((annex_body as base) / (appendix_body as base) / (base as base))\\n space supplement_type\\n supplement_number\\n [supplement_date]\\n [language]\\n }\\n chained_supplement = {\\n ((supplement_with_base / supplement_series_only) as base)\\n space supplement_type\\n supplement_number\\n [supplement_date]\\n [language]\\n }\\n supplement_series_only = {\\n itu_prefix sector space\\n (series_group / series)\\n [series_word]\\n space supplement_type\\n supplement_number\\n [supplement_date]\\n [language]\\n }\\n slash_chained_supplement = {\\n ((supplement_with_base) as base)\\n (\\\"/\\\" as supplement_slash)\\n supplement_type\\n supplement_number\\n [supplement_date]\\n [language]\\n }\\n supplement_identifier = chained_supplement / slash_chained_supplement / supplement_with_base / supplement_series_only\\n\\n with_series = {\\n itu_prefix sector space\\n [rec_word]\\n series dot code\\n [range_end]\\n code_suffixes\\n [combined_suffixes]\\n [series_word]\\n [attachment]\\n [version_part]\\n [document_date]\\n [language]\\n }\\n without_series = {\\n itu_prefix sector space\\n code\\n code_suffixes\\n [attachment]\\n [version_part]\\n [document_date]\\n [language]\\n }\\n\\n roman_month = \\\"XII\\\" / \\\"XI\\\" / \\\"IX\\\" / \\\"VIII\\\" / \\\"VII\\\" / \\\"VI\\\" / \\\"V\\\" / \\\"IV\\\" / \\\"III\\\" / \\\"II\\\" / \\\"I\\\"\\n ob_roman_date = \\\" - \\\" (2digit) as day dot (roman_month as roman_month) dot (4digit) as year\\n ob_date = (date_part / ob_roman_date)\\n ob_series = \\\"OB\\\" as series\\n ob_dot_body = dot number\\n ob_no_body = space \\\"No.\\\" space number\\n ob_bare_body = space number\\n ob_with_sector = {\\n itu_prefix\\n [(sector space)]\\n ob_series\\n (ob_dot_body / ob_no_body / ob_bare_body)\\n [ob_date]\\n [language]\\n }\\n ob_long_form = {\\n itu_prefix\\n [(sector space)]\\n \\\"Operational Bulletin\\\" as _op_bull\\n space \\\"No.\\\" space number\\n [document_date]\\n [language]\\n }\\n special_publication = ob_with_sector / ob_long_form\\n annex_to_identifier = \\\"Annex to\\\" space (special_publication as annex_to)\\n handbook = {\\n itu_prefix sector space\\n number dot \\\"HDB\\\" as handbook_marker\\n [document_date]\\n }\\n numeric_question = {\\n itu_prefix sector space\\n number parts\\n ((\\\"/\\\" (1*digit) as study_group))\\n [(\\\":\\\" as question_colon)]\\n }\\n question_tail = number [(\\\"/BL\\\" as has_bl)] \\\"/\\\" (1*digit) as study_group\\n letter_question = {\\n itu_prefix sector space\\n series dot\\n (((\\\"[\\\" as bracketed) question_tail \\\"]\\\") / question_tail)\\n [(\\\":\\\" as question_colon)]\\n }\\n common_text_twin = (space \\\"|\\\" space (1*non_pipe)) as common_text_twin\\n\\n identifier = common_text_identifier / itu_identifier\\n any_char = %x00-10FFFF\\n radio_regulations = {\\n itu_prefix\\n (\\\"R\\\") as sector\\n space \\\"RR\\\" as radio_regulations\\n [(date_part / (dash (4digit) as year))]\\n [language]\\n !any_char\\n }\\n itu_identifier = {\\n annex_to_identifier\\n / special_publication\\n / supplement_identifier\\n / annex_identifier\\n / appendix_identifier\\n / report_identifier\\n / resolution_identifier\\n / handbook\\n / numeric_question\\n / letter_question\\n / radio_regulations\\n / with_series\\n / contribution\\n / series_code_identifier\\n / without_series\\n / publication_id\\n }\\n common_text_identifier = itu_identifier common_text_twin\\n\\n entry identifier: identifier\\n\\n bindings identifier {\\n sector -> sector (string)\\n series -> series (string)\\n series_word -> series_word (string)\\n number -> number (string)\\n subseries -> subseries (string)\\n series_suffix -> series_suffix (string)\\n series_suffix_spaced -> series_suffix_spaced (string)\\n qualifier -> qualifier (string)\\n qualifier_spaced -> qualifier_spaced (string)\\n year -> year (string)\\n month -> month (string)\\n day -> day (string)\\n roman_month -> roman_month (string)\\n language -> language (string)\\n attachment -> attachment (string)\\n range_end -> range_end (string)\\n part -> parts[].part (string)\\n imp_marker -> imp_marker (string)\\n version -> version (string)\\n series_dash -> series_dash (string)\\n combined -> combined (raw)\\n technical -> technical (string)\\n supplement_type -> supplement_type (string)\\n supplement_space -> supplement_space (string)\\n supplement_number -> supplement_number (string)\\n supplement_month -> supplement_month (string)\\n supplement_year -> supplement_year (string)\\n base -> base (raw)\\n annex_number -> annex_number (string)\\n appendix_number -> appendix_number (string)\\n appendix_material -> appendix_material (string)\\n supplement_slash -> supplement_slash (string)\\n report_marker -> report_marker (string)\\n resolution_marker -> resolution_marker (string)\\n _op_bull -> _op_bull (string)\\n contribution_marker -> contribution_marker (string)\\n handbook_marker -> handbook_marker (string)\\n study_group -> study_group (string)\\n has_bl -> has_bl (string)\\n bracketed -> bracketed (string)\\n question_colon -> question_colon (string)\\n common_text_twin -> common_text_twin (string)\\n annex_to -> annex_to (raw)\\n radio_regulations -> radio_regulations (string)\\n }\\n\\n test {\\n accept \\\"ITU-R BT.500\\\"\\n accept \\\"Recommendation ITU-T G.650.1 (09/2020)\\\"\\n accept \\\"ITU-R SA.3631 Annex A\\\"\\n accept \\\"ITU-T OB.101 (2016)\\\"\\n accept \\\"Annex to ITU-T OB.101\\\"\\n accept \\\"ITU-T E.164/2\\\"\\n accept \\\"ITU-T 55/13:\\\"\\n accept \\\"ITU-T G.984.2 Amd. 1 (2010)\\\"\\n accept \\\"ITU-T G.650.1B\\\"\\n reject \\\"nonsense\\\"\\n }\\n}\\n\",\"source_hash\":\"cfea5bc964d9f577ca5904520085a0d4fabbe2ad571abf049c6848511a78e695\",\"unicode_tables\":\"onigmo (Ruby 3.4.8)\",\"compiler_version\":\"1.5.1.0\",\"edition\":2,\"semantics_hash\":\"sha256:0bc8fc15fca0a1874b93cd0afbf9362563933f595bcd0e1bdc36d9d76eb0e126\",\"checksum\":\"sha256:4f7aade653aaf683a241b15bb51812cff3517e55b90436446e42c88ff7bf4748\",\"validated\":{\"lint_errors\":0,\"lint_warnings\":141,\"tests_total\":10,\"tests_failures\":0,\"self_test\":true}}";
2
+ export default _default;