@citestyle/styles 0.0.2 → 1.0.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.
package/vancouver.js ADDED
@@ -0,0 +1,993 @@
1
+ // Generated by @citestyle/compiler — do not edit
2
+ // Source: Elsevier - NLM/Vancouver (citation-sequence)
3
+ import { formatNames, formatDate, escapeHtml, stripFormatting, toHtml, titleCase, sentenceCase, capitalize, applyTextCase, stripNocaseSpans, ordinal, roman, pageRange } from '@citestyle/core'
4
+
5
+ export const meta = {
6
+ "id": "elsevier-vancouver",
7
+ "title": "Elsevier - NLM/Vancouver (citation-sequence)",
8
+ "class": "in-text",
9
+ "version": "1.0",
10
+ "compiledWith": "@citestyle/compiler@0.1.0",
11
+ "collapse": "citation-number",
12
+ "citationLayoutDelimiter": ",",
13
+ "citationLayoutPrefix": "[",
14
+ "citationLayoutSuffix": "]"
15
+ }
16
+
17
+ const T = {
18
+ "accessed": "accessed",
19
+ "advance-online-publication": "advance online publication",
20
+ "album": "album",
21
+ "and": "and",
22
+ "and others": "and others",
23
+ "anonymous": "anonymous",
24
+ "at": "at",
25
+ "audio-recording": "audio recording",
26
+ "available at": "available at",
27
+ "by": "by",
28
+ "circa": "circa",
29
+ "cited": "cited",
30
+ "et-al": "et al.",
31
+ "film": "film",
32
+ "forthcoming": "forthcoming",
33
+ "from": "from",
34
+ "henceforth": "henceforth",
35
+ "ibid": "ibid.",
36
+ "in": "in",
37
+ "in press": "in press",
38
+ "internet": "internet",
39
+ "letter": "letter",
40
+ "loc-cit": "loc. cit.",
41
+ "no date": "no date",
42
+ "no-place": "no place",
43
+ "no-publisher": "no publisher",
44
+ "on": "on",
45
+ "online": "online",
46
+ "op-cit": "op. cit.",
47
+ "original-work-published": "original work published",
48
+ "personal-communication": "personal communication",
49
+ "podcast": "podcast",
50
+ "podcast-episode": "podcast episode",
51
+ "preprint": "preprint",
52
+ "presented at": "presented at the",
53
+ "radio-broadcast": "radio broadcast",
54
+ "radio-series": "radio series",
55
+ "radio-series-episode": "radio series episode",
56
+ "reference": {
57
+ "single": "reference",
58
+ "multiple": "references"
59
+ },
60
+ "retrieved": "retrieved",
61
+ "review-of": "review of",
62
+ "scale": "scale",
63
+ "special-issue": "special issue",
64
+ "special-section": "special section",
65
+ "television-broadcast": "television broadcast",
66
+ "television-series": "television series",
67
+ "television-series-episode": "television series episode",
68
+ "video": "video",
69
+ "working-paper": "working paper",
70
+ "advance-online-publication:short": "adv. online pub.",
71
+ "anonymous:short": "anon.",
72
+ "audio-recording:short": "au. rec.",
73
+ "available at:short": "avail. at",
74
+ "circa:short": "c.",
75
+ "cited:short": "cit.",
76
+ "film:short": "flm.",
77
+ "from:short": "fr.",
78
+ "letter:short": "let.",
79
+ "no date:short": "n.d.",
80
+ "no-place:short": "n.p.",
81
+ "no-publisher:short": "n.p.",
82
+ "original-work-published:short": "orig. pub.",
83
+ "personal-communication:short": "pers. comm.",
84
+ "podcast-episode:short": "podcast ep.",
85
+ "radio-broadcast:short": "radio bdcst.",
86
+ "radio-series:short": "radio ser.",
87
+ "radio-series-episode:short": "radio ser. ep.",
88
+ "reference:short": {
89
+ "single": "ref.",
90
+ "multiple": "refs."
91
+ },
92
+ "retrieved:short": "rtvd.",
93
+ "review-of:short": "rev. of",
94
+ "scale:short": "sc.",
95
+ "special-issue:short": "spec. iss.",
96
+ "special-section:short": "spec. sec.",
97
+ "television-broadcast:short": "TV bdcst.",
98
+ "television-series:short": "TV ser.",
99
+ "television-series-episode:short": "TV ser. ep.",
100
+ "video:short": "vid.",
101
+ "working-paper:short": "wkg. paper",
102
+ "and:symbol": "&",
103
+ "at:symbol": "@",
104
+ "article": "preprint",
105
+ "article-journal": "journal article",
106
+ "article-magazine": "magazine article",
107
+ "article-newspaper": "newspaper article",
108
+ "bill": "bill",
109
+ "broadcast": "broadcast",
110
+ "classic": "classical work",
111
+ "collection": "archival collection",
112
+ "dataset": "dataset",
113
+ "document": "document",
114
+ "entry": "entry",
115
+ "entry-dictionary": "dictionary entry",
116
+ "entry-encyclopedia": "encyclopedia entry",
117
+ "event": "event",
118
+ "graphic": "graphic",
119
+ "hearing": "hearing",
120
+ "interview": "interview",
121
+ "legal_case": "legal case",
122
+ "legislation": "legislation",
123
+ "manuscript": "manuscript",
124
+ "map": "map",
125
+ "motion_picture": "video recording",
126
+ "musical_score": "musical score",
127
+ "pamphlet": "pamphlet",
128
+ "paper-conference": "conference paper",
129
+ "patent": "patent",
130
+ "performance": "performance",
131
+ "periodical": "periodical",
132
+ "personal_communication": "personal communication",
133
+ "post": "post",
134
+ "post-weblog": "blog post",
135
+ "regulation": "regulation",
136
+ "report": "report",
137
+ "review": "review",
138
+ "review-book": "book review",
139
+ "software": "software",
140
+ "song": "audio recording",
141
+ "speech": "presentation",
142
+ "standard": "standard",
143
+ "thesis": "thesis",
144
+ "treaty": "treaty",
145
+ "webpage": "webpage",
146
+ "article-journal:short": "jour. art.",
147
+ "article-magazine:short": "mag. art.",
148
+ "article-newspaper:short": "newspaper art.",
149
+ "broadcast:short": "bdcst.",
150
+ "classic:short": "class. wk.",
151
+ "collection:short": "arch. coll.",
152
+ "document:short": "doc.",
153
+ "entry-dictionary:short": "dict. entry",
154
+ "entry-encyclopedia:short": "ency. entry",
155
+ "graphic:short": "gr.",
156
+ "interview:short": "int.",
157
+ "legal_case:short": "leg. case",
158
+ "legislation:short": "legis.",
159
+ "manuscript:short": {
160
+ "single": "MS",
161
+ "multiple": "MSS"
162
+ },
163
+ "motion_picture:short": "vid. rec.",
164
+ "musical_score:short": "mus. score",
165
+ "pamphlet:short": "pam.",
166
+ "paper-conference:short": "conf. paper",
167
+ "patent:short": "pat.",
168
+ "performance:short": "prfm.",
169
+ "personal_communication:short": "pers. comm.",
170
+ "regulation:short": "reg.",
171
+ "report:short": "rep.",
172
+ "review:short": "rev.",
173
+ "review-book:short": "bk. rev.",
174
+ "software:short": "sftw.",
175
+ "song:short": "au. rec.",
176
+ "standard:short": "std.",
177
+ "thesis:short": "thes.",
178
+ "webpage:short": "webpg.",
179
+ "hearing:verb": "testimony of",
180
+ "review:verb": "review of",
181
+ "review-book:verb": "review of the book",
182
+ "hearing:verb-short": "test. of",
183
+ "review:verb-short": "rev. of",
184
+ "review-book:verb-short": "rev. of the bk.",
185
+ "ad": "AD",
186
+ "bc": "BC",
187
+ "bce": "BCE",
188
+ "ce": "CE",
189
+ "open-quote": "“",
190
+ "close-quote": "”",
191
+ "open-inner-quote": "‘",
192
+ "close-inner-quote": "’",
193
+ "page-range-delimiter": "–",
194
+ "colon": ":",
195
+ "comma": ",",
196
+ "semicolon": ";",
197
+ "ordinal": "th",
198
+ "ordinal-01": "st",
199
+ "ordinal-02": "nd",
200
+ "ordinal-03": "rd",
201
+ "ordinal-11": "th",
202
+ "ordinal-12": "th",
203
+ "ordinal-13": "th",
204
+ "long-ordinal-01": "first",
205
+ "long-ordinal-02": "second",
206
+ "long-ordinal-03": "third",
207
+ "long-ordinal-04": "fourth",
208
+ "long-ordinal-05": "fifth",
209
+ "long-ordinal-06": "sixth",
210
+ "long-ordinal-07": "seventh",
211
+ "long-ordinal-08": "eighth",
212
+ "long-ordinal-09": "ninth",
213
+ "long-ordinal-10": "tenth",
214
+ "act": {
215
+ "single": "act",
216
+ "multiple": "acts"
217
+ },
218
+ "appendix": {
219
+ "single": "appendix",
220
+ "multiple": "appendices"
221
+ },
222
+ "article-locator": {
223
+ "single": "article",
224
+ "multiple": "articles"
225
+ },
226
+ "book": {
227
+ "single": "book",
228
+ "multiple": "books"
229
+ },
230
+ "canon": {
231
+ "single": "canon",
232
+ "multiple": "canons"
233
+ },
234
+ "chapter": {
235
+ "single": "chapter",
236
+ "multiple": "chapters"
237
+ },
238
+ "column": {
239
+ "single": "column",
240
+ "multiple": "columns"
241
+ },
242
+ "elocation": {
243
+ "single": "location",
244
+ "multiple": "locations"
245
+ },
246
+ "equation": {
247
+ "single": "equation",
248
+ "multiple": "equations"
249
+ },
250
+ "figure": {
251
+ "single": "figure",
252
+ "multiple": "figures"
253
+ },
254
+ "folio": {
255
+ "single": "folio",
256
+ "multiple": "folios"
257
+ },
258
+ "issue": {
259
+ "single": "issue",
260
+ "multiple": "issues"
261
+ },
262
+ "line": {
263
+ "single": "line",
264
+ "multiple": "lines"
265
+ },
266
+ "note": {
267
+ "single": "note",
268
+ "multiple": "notes"
269
+ },
270
+ "opus": {
271
+ "single": "opus",
272
+ "multiple": "opera"
273
+ },
274
+ "page": {
275
+ "single": "page",
276
+ "multiple": "pages"
277
+ },
278
+ "paragraph": {
279
+ "single": "paragraph",
280
+ "multiple": "paragraphs"
281
+ },
282
+ "part": {
283
+ "single": "part",
284
+ "multiple": "parts"
285
+ },
286
+ "rule": {
287
+ "single": "rule",
288
+ "multiple": "rules"
289
+ },
290
+ "scene": {
291
+ "single": "scene",
292
+ "multiple": "scenes"
293
+ },
294
+ "section": {
295
+ "single": "section",
296
+ "multiple": "sections"
297
+ },
298
+ "sub-verbo": {
299
+ "single": "sub verbo",
300
+ "multiple": "sub verbis"
301
+ },
302
+ "supplement": {
303
+ "single": "supplement",
304
+ "multiple": "supplements"
305
+ },
306
+ "table": {
307
+ "single": "table",
308
+ "multiple": "tables"
309
+ },
310
+ "timestamp": "",
311
+ "title-locator": {
312
+ "single": "title",
313
+ "multiple": "titles"
314
+ },
315
+ "verse": {
316
+ "single": "verse",
317
+ "multiple": "verses"
318
+ },
319
+ "volume": {
320
+ "single": "volume",
321
+ "multiple": "volumes"
322
+ },
323
+ "appendix:short": {
324
+ "single": "app.",
325
+ "multiple": "apps."
326
+ },
327
+ "article-locator:short": {
328
+ "single": "art.",
329
+ "multiple": "arts."
330
+ },
331
+ "book:short": {
332
+ "single": "bk.",
333
+ "multiple": "bks."
334
+ },
335
+ "canon:short": {
336
+ "single": "can.",
337
+ "multiple": "cann."
338
+ },
339
+ "chapter:short": {
340
+ "single": "chap.",
341
+ "multiple": "chaps."
342
+ },
343
+ "column:short": {
344
+ "single": "col.",
345
+ "multiple": "cols."
346
+ },
347
+ "elocation:short": {
348
+ "single": "loc.",
349
+ "multiple": "locs."
350
+ },
351
+ "equation:short": {
352
+ "single": "eq.",
353
+ "multiple": "eqq."
354
+ },
355
+ "figure:short": {
356
+ "single": "fig.",
357
+ "multiple": "figs."
358
+ },
359
+ "folio:short": {
360
+ "single": "fol.",
361
+ "multiple": "fols."
362
+ },
363
+ "issue:short": {
364
+ "single": "no.",
365
+ "multiple": "nos."
366
+ },
367
+ "line:short": {
368
+ "single": "l.",
369
+ "multiple": "ll."
370
+ },
371
+ "note:short": {
372
+ "single": "n.",
373
+ "multiple": "nn."
374
+ },
375
+ "opus:short": {
376
+ "single": "op.",
377
+ "multiple": "opp."
378
+ },
379
+ "page:short": {
380
+ "single": "p.",
381
+ "multiple": "pp."
382
+ },
383
+ "paragraph:short": {
384
+ "single": "para.",
385
+ "multiple": "paras."
386
+ },
387
+ "part:short": {
388
+ "single": "pt.",
389
+ "multiple": "pts."
390
+ },
391
+ "rule:short": {
392
+ "single": "r.",
393
+ "multiple": "rr."
394
+ },
395
+ "scene:short": {
396
+ "single": "sc.",
397
+ "multiple": "scs."
398
+ },
399
+ "section:short": {
400
+ "single": "sec.",
401
+ "multiple": "secs."
402
+ },
403
+ "sub-verbo:short": {
404
+ "single": "s.v.",
405
+ "multiple": "s.vv."
406
+ },
407
+ "supplement:short": {
408
+ "single": "supp.",
409
+ "multiple": "supps."
410
+ },
411
+ "table:short": {
412
+ "single": "tbl.",
413
+ "multiple": "tbls."
414
+ },
415
+ "title-locator:short": {
416
+ "single": "tit.",
417
+ "multiple": "titt."
418
+ },
419
+ "verse:short": {
420
+ "single": "v.",
421
+ "multiple": "vv."
422
+ },
423
+ "volume:short": {
424
+ "single": "vol.",
425
+ "multiple": "vols."
426
+ },
427
+ "chapter:symbol": {
428
+ "single": "c.",
429
+ "multiple": "cc."
430
+ },
431
+ "paragraph:symbol": {
432
+ "single": "¶",
433
+ "multiple": "¶¶"
434
+ },
435
+ "section:symbol": {
436
+ "single": "§",
437
+ "multiple": "§§"
438
+ },
439
+ "chapter-number": {
440
+ "single": "chapter",
441
+ "multiple": "chapters"
442
+ },
443
+ "citation-number": {
444
+ "single": "citation",
445
+ "multiple": "citations"
446
+ },
447
+ "collection-number": {
448
+ "single": "number",
449
+ "multiple": "numbers"
450
+ },
451
+ "edition": {
452
+ "single": "edition",
453
+ "multiple": "editions"
454
+ },
455
+ "first-reference-note-number": {
456
+ "single": "reference",
457
+ "multiple": "references"
458
+ },
459
+ "number": {
460
+ "single": "number",
461
+ "multiple": "numbers"
462
+ },
463
+ "number-of-pages": {
464
+ "single": "page",
465
+ "multiple": "pages"
466
+ },
467
+ "number-of-volumes": {
468
+ "single": "volume",
469
+ "multiple": "volumes"
470
+ },
471
+ "page-first": {
472
+ "single": "page",
473
+ "multiple": "pages"
474
+ },
475
+ "printing": {
476
+ "single": "printing",
477
+ "multiple": "printings"
478
+ },
479
+ "version": {
480
+ "single": "version",
481
+ "multiple": "versions"
482
+ },
483
+ "chapter-number:short": {
484
+ "single": "chap.",
485
+ "multiple": "chaps."
486
+ },
487
+ "citation-number:short": {
488
+ "single": "cit.",
489
+ "multiple": "cits."
490
+ },
491
+ "collection-number:short": {
492
+ "single": "no.",
493
+ "multiple": "nos."
494
+ },
495
+ "edition:short": {
496
+ "single": "ed.",
497
+ "multiple": "eds."
498
+ },
499
+ "first-reference-note-number:short": {
500
+ "single": "ref.",
501
+ "multiple": "refs."
502
+ },
503
+ "number:short": {
504
+ "single": "no.",
505
+ "multiple": "nos."
506
+ },
507
+ "number-of-pages:short": {
508
+ "single": "p.",
509
+ "multiple": "pp."
510
+ },
511
+ "number-of-volumes:short": {
512
+ "single": "vol.",
513
+ "multiple": "vols."
514
+ },
515
+ "page-first:short": {
516
+ "single": "p.",
517
+ "multiple": "pp."
518
+ },
519
+ "printing:short": {
520
+ "single": "ptg.",
521
+ "multiple": "ptgs."
522
+ },
523
+ "version:short": "v.",
524
+ "author": "",
525
+ "chair": {
526
+ "single": "chair",
527
+ "multiple": "chairs"
528
+ },
529
+ "collection-editor": {
530
+ "single": "editor",
531
+ "multiple": "editors"
532
+ },
533
+ "compiler": {
534
+ "single": "compiler",
535
+ "multiple": "compilers"
536
+ },
537
+ "composer": "",
538
+ "container-author": "",
539
+ "contributor": {
540
+ "single": "contributor",
541
+ "multiple": "contributors"
542
+ },
543
+ "curator": {
544
+ "single": "curator",
545
+ "multiple": "curators"
546
+ },
547
+ "director": {
548
+ "single": "director",
549
+ "multiple": "directors"
550
+ },
551
+ "editor": {
552
+ "single": "editor",
553
+ "multiple": "editors"
554
+ },
555
+ "editor-translator": {
556
+ "single": "editor & translator",
557
+ "multiple": "editors & translators"
558
+ },
559
+ "editortranslator": {
560
+ "single": "editor & translator",
561
+ "multiple": "editors & translators"
562
+ },
563
+ "editorial-director": {
564
+ "single": "editor",
565
+ "multiple": "editors"
566
+ },
567
+ "executive-producer": {
568
+ "single": "executive producer",
569
+ "multiple": "executive producers"
570
+ },
571
+ "guest": {
572
+ "single": "guest",
573
+ "multiple": "guests"
574
+ },
575
+ "host": {
576
+ "single": "host",
577
+ "multiple": "hosts"
578
+ },
579
+ "illustrator": {
580
+ "single": "illustrator",
581
+ "multiple": "illustrators"
582
+ },
583
+ "interviewer": "",
584
+ "narrator": {
585
+ "single": "narrator",
586
+ "multiple": "narrators"
587
+ },
588
+ "organizer": {
589
+ "single": "organizer",
590
+ "multiple": "organizers"
591
+ },
592
+ "original-author": "",
593
+ "performer": {
594
+ "single": "performer",
595
+ "multiple": "performers"
596
+ },
597
+ "producer": {
598
+ "single": "producer",
599
+ "multiple": "producers"
600
+ },
601
+ "recipient": "",
602
+ "reviewed-author": "",
603
+ "script-writer": {
604
+ "single": "writer",
605
+ "multiple": "writers"
606
+ },
607
+ "series-creator": {
608
+ "single": "series creator",
609
+ "multiple": "series creators"
610
+ },
611
+ "translator": {
612
+ "single": "translator",
613
+ "multiple": "translators"
614
+ },
615
+ "collection-editor:short": {
616
+ "single": "ed.",
617
+ "multiple": "eds."
618
+ },
619
+ "compiler:short": {
620
+ "single": "comp.",
621
+ "multiple": "comps."
622
+ },
623
+ "contributor:short": {
624
+ "single": "contrib.",
625
+ "multiple": "contribs."
626
+ },
627
+ "curator:short": {
628
+ "single": "cur.",
629
+ "multiple": "curs."
630
+ },
631
+ "director:short": {
632
+ "single": "dir.",
633
+ "multiple": "dirs."
634
+ },
635
+ "editor:short": {
636
+ "single": "ed.",
637
+ "multiple": "eds."
638
+ },
639
+ "editor-translator:short": {
640
+ "single": "ed. & trans.",
641
+ "multiple": "eds. & trans."
642
+ },
643
+ "editortranslator:short": {
644
+ "single": "ed. & trans.",
645
+ "multiple": "eds. & trans."
646
+ },
647
+ "editorial-director:short": {
648
+ "single": "ed.",
649
+ "multiple": "eds."
650
+ },
651
+ "executive-producer:short": {
652
+ "single": "exec. prod.",
653
+ "multiple": "exec. prods."
654
+ },
655
+ "illustrator:short": {
656
+ "single": "ill.",
657
+ "multiple": "ills."
658
+ },
659
+ "narrator:short": {
660
+ "single": "narr.",
661
+ "multiple": "narrs."
662
+ },
663
+ "organizer:short": {
664
+ "single": "org.",
665
+ "multiple": "orgs."
666
+ },
667
+ "performer:short": {
668
+ "single": "perf.",
669
+ "multiple": "perfs."
670
+ },
671
+ "producer:short": {
672
+ "single": "prod.",
673
+ "multiple": "prods."
674
+ },
675
+ "script-writer:short": {
676
+ "single": "wrtr.",
677
+ "multiple": "wrtrs."
678
+ },
679
+ "series-creator:short": {
680
+ "single": "ser. creator",
681
+ "multiple": "ser. creators"
682
+ },
683
+ "translator:short": "trans.",
684
+ "chair:verb": "chaired by",
685
+ "collection-editor:verb": "edited by",
686
+ "compiler:verb": "compiled by",
687
+ "composer:verb": "composed by",
688
+ "container-author:verb": "by",
689
+ "contributor:verb": "with",
690
+ "curator:verb": "curated by",
691
+ "director:verb": "directed by",
692
+ "editor:verb": "edited by",
693
+ "editor-translator:verb": "edited & translated by",
694
+ "editortranslator:verb": "edited & translated by",
695
+ "editorial-director:verb": "edited by",
696
+ "executive-producer:verb": "executive produced by",
697
+ "guest:verb": {
698
+ "single": "with guest",
699
+ "multiple": "with guests"
700
+ },
701
+ "host:verb": "hosted by",
702
+ "illustrator:verb": "illustrated by",
703
+ "interviewer:verb": "interview by",
704
+ "narrator:verb": "narrated by",
705
+ "organizer:verb": "organized by",
706
+ "original-author:verb": "by",
707
+ "performer:verb": "performed by",
708
+ "producer:verb": "produced by",
709
+ "recipient:verb": "to",
710
+ "reviewed-author:verb": "by",
711
+ "script-writer:verb": "written by",
712
+ "series-creator:verb": "created by",
713
+ "translator:verb": "translated by",
714
+ "collection-editor:verb-short": "ed. by",
715
+ "compiler:verb-short": "comp. by",
716
+ "composer:verb-short": "comp. by",
717
+ "curator:verb-short": "cur. by",
718
+ "director:verb-short": "dir. by",
719
+ "editor:verb-short": "ed. by",
720
+ "editor-translator:verb-short": "ed. & trans. by",
721
+ "editortranslator:verb-short": "ed. & trans. by",
722
+ "editorial-director:verb-short": "ed. by",
723
+ "executive-producer:verb-short": "exec. prod. by",
724
+ "illustrator:verb-short": "ill. by",
725
+ "narrator:verb-short": "narr. by",
726
+ "organizer:verb-short": "org. by",
727
+ "performer:verb-short": "perf. by",
728
+ "producer:verb-short": "prod. by",
729
+ "script-writer:verb-short": "writ. by",
730
+ "translator:verb-short": "trans. by",
731
+ "month-01": "January",
732
+ "month-02": "February",
733
+ "month-03": "March",
734
+ "month-04": "April",
735
+ "month-05": "May",
736
+ "month-06": "June",
737
+ "month-07": "July",
738
+ "month-08": "August",
739
+ "month-09": "September",
740
+ "month-10": "October",
741
+ "month-11": "November",
742
+ "month-12": "December",
743
+ "month-01:short": "Jan.",
744
+ "month-02:short": "Feb.",
745
+ "month-03:short": "Mar.",
746
+ "month-04:short": "Apr.",
747
+ "month-05:short": "May",
748
+ "month-06:short": "June",
749
+ "month-07:short": "July",
750
+ "month-08:short": "Aug.",
751
+ "month-09:short": "Sept.",
752
+ "month-10:short": "Oct.",
753
+ "month-11:short": "Nov.",
754
+ "month-12:short": "Dec.",
755
+ "season-01": "Spring",
756
+ "season-02": "Summer",
757
+ "season-03": "Autumn",
758
+ "season-04": "Winter"
759
+ }
760
+
761
+ const MONTHS = {"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"}
762
+
763
+ const NAME_OPTS = {}
764
+
765
+ function _nameConfig(ctx, el) {
766
+ const c = Object.assign({}, NAME_OPTS, ctx._secOpts || {}, el)
767
+ if (el.initialize === false || (ctx._secOpts || {}).initialize === false || NAME_OPTS.initialize === false) c.initialize = false
768
+ if (c.and === 'text') c.andTerm = T['and'] || 'and'
769
+ else if (c.and === 'symbol') c.andTerm = '&'
770
+ if (!c.etAlTerm) c.etAlTerm = T[el._etAlTerm || 'et-al'] || 'et al.'
771
+ if (ctx._disambig) c._disambig = ctx._disambig
772
+ return c
773
+ }
774
+
775
+ function macro_author(item, ctx) {
776
+ let _n0 = ''
777
+ if (item.author && item.author.length) {
778
+ _n0 = formatNames(item.author, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initializeWith":"","nameAsSortOrder":"all","sortSeparator":" "}))
779
+ if (_n0) _n0 = '\uE020author\uE021' + _n0 + '\uE022'
780
+ }
781
+ if (!_n0) {
782
+ let _n1 = ''
783
+ if (item.editor && item.editor.length) {
784
+ _n1 = formatNames(item.editor, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initializeWith":"","nameAsSortOrder":"all","sortSeparator":" "}))
785
+ if (_n1) _n1 = '\uE020editor\uE021' + _n1 + '\uE022'
786
+ }
787
+ if (!_n0) _n0 = _n1
788
+ let _n2 = ''
789
+ if (item.translator && item.translator.length) {
790
+ _n2 = formatNames(item.translator, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initializeWith":"","nameAsSortOrder":"all","sortSeparator":" "}))
791
+ if (_n2) _n2 = '\uE020translator\uE021' + _n2 + '\uE022'
792
+ }
793
+ if (!_n0) _n0 = _n2
794
+ }
795
+ return _n0
796
+ }
797
+
798
+ function macro_editor(item, ctx) {
799
+ let _n3 = ''
800
+ if (item.editor && item.editor.length) {
801
+ _n3 = formatNames(item.editor, _nameConfig(ctx, {"delimiter":", ","delimiterPrecedesLast":"always","etAlUseLast":false,"initializeWith":"","nameAsSortOrder":"all","sortSeparator":" "}))
802
+ if (_n3) _n3 = '\uE020editor\uE021' + _n3 + '\uE022'
803
+ }
804
+ return _n3
805
+ }
806
+
807
+ function macro_year_date(item, ctx) {
808
+ let _ch4 = ''
809
+ if ((item.issued != null && item.issued !== '')) {
810
+ const _d5 = item.issued ? formatDate(item.issued, {"dateParts":[{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
811
+ _ch4 = (_d5 ? '\uE020issued\uE021' + _d5 + '\uE022' : '')
812
+ }
813
+ else {
814
+ const _v6 = (T["no date:short"] != null ? (typeof T["no date:short"] === 'string' ? T["no date:short"] : (T["no date:short"].single || '')) : '')
815
+ _ch4 = _v6
816
+ }
817
+ return _ch4
818
+ }
819
+
820
+ function macro_publisher(item, ctx) {
821
+ const _v7 = (item["publisher-place"] != null && item["publisher-place"] !== '' ? String(item["publisher-place"]) : '')
822
+ const _v8 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
823
+ const _v9 = macro_year_date(item, ctx)
824
+ return [((applyTextCase(_v7, "title") ? applyTextCase(_v7, "title") + ": " : '') ? '\uE020publisher-place\uE021' + (applyTextCase(_v7, "title") ? applyTextCase(_v7, "title") + ": " : '') + '\uE022' : ''), ((stripNocaseSpans(_v8) ? stripNocaseSpans(_v8) + "; " : '') ? '\uE020publisher\uE021' + (stripNocaseSpans(_v8) ? stripNocaseSpans(_v8) + "; " : '') + '\uE022' : ''), _v9].filter(v => v !== '').join('')
825
+ }
826
+
827
+ function macro_edition(item, ctx) {
828
+ let _ch10 = ''
829
+ if ((item.edition != null && /^\s*\d/.test(String(item.edition)))) {
830
+ const _v13 = item.edition != null ? String(item.edition) : ''
831
+ const _v14 = (T["edition:short"] != null ? (typeof T["edition:short"] === 'string' ? T["edition:short"] : (T["edition:short"].single || '')) : '')
832
+ const _g11 = ((item.edition == null || item.edition === '')) ? '' : [((_v13 && !isNaN(Number(_v13)) ? ordinal(Number(_v13)) : _v13) ? '\uE020edition\uE021' + (_v13 && !isNaN(Number(_v13)) ? ordinal(Number(_v13)) : _v13) + '\uE022' : ''), _v14].filter(v => v !== '').join(" ")
833
+ _ch10 = _g11
834
+ }
835
+ else {
836
+ const _v15 = (item.edition != null && item.edition !== '' ? String(item.edition) : '')
837
+ _ch10 = (stripNocaseSpans(_v15) ? '\uE020edition\uE021' + stripNocaseSpans(_v15) + '\uE022' : '')
838
+ }
839
+ return _ch10
840
+ }
841
+
842
+ function macro_access(item, ctx) {
843
+ let _ch16 = ''
844
+ if ((item.DOI != null && item.DOI !== '')) {
845
+ const _v17 = (item.DOI != null && item.DOI !== '' ? String(item.DOI) : '')
846
+ _ch16 = ((stripNocaseSpans(_v17) ? "https://doi.org/" + stripNocaseSpans(_v17) : '') ? '\uE020DOI\uE021' + (stripNocaseSpans(_v17) ? "https://doi.org/" + stripNocaseSpans(_v17) : '') + '\uE022' : '')
847
+ }
848
+ else if ((item.type === "webpage" || item.type === "post-weblog")) {
849
+ let _ch18 = ''
850
+ if ((item.URL != null && item.URL !== '')) {
851
+ const _v19 = (item.URL != null && item.URL !== '' ? String(item.URL) : '')
852
+ const _v22 = (T["accessed"] != null ? (typeof T["accessed"] === 'string' ? T["accessed"] : (T["accessed"].single || '')) : '')
853
+ const _d23 = item.accessed ? formatDate(item.accessed, {"dateParts":[{"name":"month","form":null,"prefix":"","suffix":" ","rangeDelimiter":null},{"name":"day","form":null,"prefix":"","suffix":", ","rangeDelimiter":null},{"name":"year","form":null,"prefix":"","suffix":"","rangeDelimiter":null}],"monthTerms":{"1":"January","2":"February","3":"March","4":"April","5":"May","6":"June","7":"July","8":"August","9":"September","10":"October","11":"November","12":"December"},"seasonTerms":{"1":"Spring","2":"Summer","3":"Autumn","4":"Winter"}}) : ''
854
+ const _g20 = ((item.accessed == null || item.accessed === '')) ? '' : [_v22, (_d23 ? '\uE020accessed\uE021' + _d23 + '\uE022' : '')].filter(v => v !== '').join(" ")
855
+ _ch18 = [(stripNocaseSpans(_v19) ? '\uE020URL\uE021' + stripNocaseSpans(_v19) + '\uE022' : ''), (_g20 ? " (" + _g20 + ")" : '')].filter(v => v !== '').join('')
856
+ }
857
+ _ch16 = _ch18
858
+ }
859
+ return _ch16
860
+ }
861
+
862
+ const BIB_NAME_OPTS = {"etAlMin":7,"etAlUseFirst":6}
863
+
864
+ export function bibliography(item, ctx = {}) {
865
+ ctx = { ...ctx, _secOpts: BIB_NAME_OPTS }
866
+ const _v24 = (item["citation-number"] != null && item["citation-number"] !== '' ? String(item["citation-number"]) : '')
867
+ const _v25 = macro_author(item, ctx)
868
+ let _ch26 = ''
869
+ if ((item.type === "bill" || item.type === "book" || item.type === "graphic" || item.type === "legal_case" || item.type === "legislation" || item.type === "motion_picture" || item.type === "report" || item.type === "song")) {
870
+ const _v29 = (item.title != null && item.title !== '' ? String(item.title) : '')
871
+ const _v30 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
872
+ const _v31 = macro_edition(item, ctx)
873
+ const _v32 = macro_publisher(item, ctx)
874
+ const _g27 = ((item.title == null || item.title === '') && (item.volume == null || item.volume === '') && !macro_edition(item, ctx) && !macro_publisher(item, ctx)) ? '' : [(stripNocaseSpans(_v29) ? '\uE020title\uE021' + stripNocaseSpans(_v29) + '\uE022' : ''), ((stripNocaseSpans(_v30) ? "vol. " + stripNocaseSpans(_v30) : '') ? '\uE020volume\uE021' + (stripNocaseSpans(_v30) ? "vol. " + stripNocaseSpans(_v30) : '') + '\uE022' : ''), _v31, _v32].filter(v => v !== '').join(". ")
875
+ _ch26 = _g27
876
+ }
877
+ else if ((item.type === "chapter" || item.type === "paper-conference")) {
878
+ const _v37 = (item.title != null && item.title !== '' ? String(item.title) : '')
879
+ const _v40 = (T["in"] != null ? (typeof T["in"] === 'string' ? T["in"] : (T["in"].single || '')) : '')
880
+ const _v41 = macro_editor(item, ctx)
881
+ const _g38 = (!macro_editor(item, ctx)) ? '' : [(applyTextCase(_v40, "sentence") ? applyTextCase(_v40, "sentence") + ": " : ''), _v41].filter(v => v !== '').join('')
882
+ const _v44 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
883
+ const _v45 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
884
+ const _g42 = ((item["container-title"] == null || item["container-title"] === '') && (item.volume == null || item.volume === '')) ? '' : [(stripNocaseSpans(_v44) ? '\uE020container-title\uE021' + stripNocaseSpans(_v44) + '\uE022' : ''), ((stripNocaseSpans(_v45) ? "vol. " + stripNocaseSpans(_v45) : '') ? '\uE020volume\uE021' + (stripNocaseSpans(_v45) ? "vol. " + stripNocaseSpans(_v45) : '') + '\uE022' : '')].filter(v => v !== '').join(", ")
885
+ const _v46 = macro_edition(item, ctx)
886
+ const _g35 = ((item.title == null || item.title === '') && !macro_editor(item, ctx) && (item["container-title"] == null || item["container-title"] === '') && (item.volume == null || item.volume === '') && !macro_edition(item, ctx)) ? '' : [(stripNocaseSpans(_v37) ? '\uE020title\uE021' + stripNocaseSpans(_v37) + '\uE022' : ''), _g38, _g42, _v46].filter(v => v !== '').join(". ")
887
+ const _v47 = macro_publisher(item, ctx)
888
+ const _v50 = (item.page == null || item.page === '') ? '' : (T["page:short"] != null ? (typeof T["page:short"] === 'string' ? T["page:short"] : T["page:short"].single || '') : '')
889
+ const _v51 = (item.page != null && item.page !== '' ? pageRange(stripNocaseSpans(String(item.page)), "minimal") : '')
890
+ const _g48 = ((item.page == null || item.page === '')) ? '' : [_v50, (stripNocaseSpans(_v51) ? '\uE020page\uE021' + stripNocaseSpans(_v51) + '\uE022' : '')].filter(v => v !== '').join(" ")
891
+ const _g33 = ((item.title == null || item.title === '') && !macro_editor(item, ctx) && (item["container-title"] == null || item["container-title"] === '') && (item.volume == null || item.volume === '') && !macro_edition(item, ctx) && !macro_publisher(item, ctx) && (item.page == null || item.page === '')) ? '' : [_g35, _v47, _g48].filter(v => v !== '').join(", ")
892
+ _ch26 = _g33
893
+ }
894
+ else if (item.type === "patent") {
895
+ const _v56 = (item.title != null && item.title !== '' ? String(item.title) : '')
896
+ const _v57 = (item.number != null && item.number !== '' ? String(item.number) : '')
897
+ const _g54 = ((item.title == null || item.title === '') && (item.number == null || item.number === '')) ? '' : [(stripNocaseSpans(_v56) ? '\uE020title\uE021' + stripNocaseSpans(_v56) + '\uE022' : ''), (stripNocaseSpans(_v57) ? '\uE020number\uE021' + stripNocaseSpans(_v57) + '\uE022' : '')].filter(v => v !== '').join(". ")
898
+ const _v58 = macro_year_date(item, ctx)
899
+ const _g52 = ((item.title == null || item.title === '') && (item.number == null || item.number === '') && !macro_year_date(item, ctx)) ? '' : [_g54, _v58].filter(v => v !== '').join(", ")
900
+ _ch26 = _g52
901
+ }
902
+ else if (item.type === "thesis") {
903
+ const _v61 = (item.title != null && item.title !== '' ? String(item.title) : '')
904
+ const _v62 = (item.genre != null && item.genre !== '' ? String(item.genre) : '')
905
+ const _v65 = (item.publisher != null && item.publisher !== '' ? String(item.publisher) : '')
906
+ const _v66 = macro_year_date(item, ctx)
907
+ const _g63 = ((item.publisher == null || item.publisher === '') && !macro_year_date(item, ctx)) ? '' : [(stripNocaseSpans(_v65) ? '\uE020publisher\uE021' + stripNocaseSpans(_v65) + '\uE022' : ''), _v66].filter(v => v !== '').join(", ")
908
+ const _g59 = ((item.title == null || item.title === '') && (item.genre == null || item.genre === '') && (item.publisher == null || item.publisher === '') && !macro_year_date(item, ctx)) ? '' : [(stripNocaseSpans(_v61) ? '\uE020title\uE021' + stripNocaseSpans(_v61) + '\uE022' : ''), (stripNocaseSpans(_v62) ? '\uE020genre\uE021' + stripNocaseSpans(_v62) + '\uE022' : ''), _g63].filter(v => v !== '').join(". ")
909
+ _ch26 = _g59
910
+ }
911
+ else {
912
+ const _v73 = (item.title != null && item.title !== '' ? String(item.title) : '')
913
+ const _v74 = (item["container-title"] != null && item["container-title"] !== '' ? String(item["container-title"]) : '')
914
+ const _g71 = ((item.title == null || item.title === '') && (item["container-title"] == null || item["container-title"] === '')) ? '' : [(stripNocaseSpans(_v73) ? '\uE020title\uE021' + stripNocaseSpans(_v73) + '\uE022' : ''), (applyTextCase(_v74, "title").replace(/\./g, '') ? '\uE020container-title\uE021' + applyTextCase(_v74, "title").replace(/\./g, '') + '\uE022' : '')].filter(v => v !== '').join(". ")
915
+ const _v77 = macro_year_date(item, ctx)
916
+ const _v78 = (item.volume != null && item.volume !== '' ? String(item.volume) : '')
917
+ const _g75 = (!macro_year_date(item, ctx) && (item.volume == null || item.volume === '')) ? '' : [_v77, (stripNocaseSpans(_v78) ? '\uE020volume\uE021' + stripNocaseSpans(_v78) + '\uE022' : '')].filter(v => v !== '').join(";")
918
+ const _g69 = ((item.title == null || item.title === '') && (item["container-title"] == null || item["container-title"] === '') && !macro_year_date(item, ctx) && (item.volume == null || item.volume === '')) ? '' : [_g71, _g75].filter(v => v !== '').join(" ")
919
+ const _v79 = (item.page != null && item.page !== '' ? pageRange(stripNocaseSpans(String(item.page)), "minimal") : '')
920
+ const _g67 = ((item.title == null || item.title === '') && (item["container-title"] == null || item["container-title"] === '') && !macro_year_date(item, ctx) && (item.volume == null || item.volume === '') && (item.page == null || item.page === '')) ? '' : [_g69, (stripNocaseSpans(_v79) ? '\uE020page\uE021' + stripNocaseSpans(_v79) + '\uE022' : '')].filter(v => v !== '').join(":")
921
+ _ch26 = _g67
922
+ }
923
+ const _v80 = macro_access(item, ctx)
924
+ const _first = ((stripNocaseSpans(_v24) ? "[" + stripNocaseSpans(_v24) + "]" : '') ? '\uE020citation-number\uE021' + (stripNocaseSpans(_v24) ? "[" + stripNocaseSpans(_v24) + "]" : '') + '\uE022' : '')
925
+ const _rest = [(_v25 ? _v25 + ". " : ''), _ch26, (_v80 ? ". " + _v80 : '')].filter(v => v !== '').join("")
926
+ const _raw = (_first ? _first + (/\s[\uE000-\uE007\uE020-\uE022]*$/.test(_first) ? '' : ' ') : '') + _rest + "."
927
+ const _norm = _normalizePunctuation(_raw)
928
+ const text = stripFormatting(_norm)
929
+ const html = '<div class="csl-entry">' + toHtml(_norm) + '</div>'
930
+ return {
931
+ text,
932
+ html,
933
+ parts: _extractParts(item),
934
+ links: _extractLinks(item),
935
+ }
936
+ }
937
+
938
+ function _extractParts(item) {
939
+ return {
940
+ authors: item.author || [],
941
+ year: item.issued?.['date-parts']?.[0]?.[0]?.toString() || '',
942
+ title: item.title || '',
943
+ container: item['container-title'] || '',
944
+ volume: item.volume?.toString() || '',
945
+ issue: item.issue?.toString() || '',
946
+ pages: item.page || '',
947
+ doi: item.DOI || '',
948
+ url: item.URL || '',
949
+ }
950
+ }
951
+
952
+ function _extractLinks(item) {
953
+ return {
954
+ doi: item.DOI ? 'https://doi.org/' + item.DOI : null,
955
+ url: item.URL || null,
956
+ pdf: item.extended?.pdf_url || null,
957
+ }
958
+ }
959
+
960
+ function _normalizePunctuation(str) {
961
+ if (!str) return ''
962
+ // F matches PUA tokens (formatting U+E000-E007 and semantic U+E020-E022) that may appear between dots
963
+ const F = '[\uE000-\uE007\uE020-\uE022]*'
964
+ return str
965
+ .replace(new RegExp('([.!?])(' + F + ')\\. ', 'g'), '$1$2 ')
966
+ .replace(new RegExp('\\.(' + F + ')\\.', 'g'), '.$1')
967
+ .replace(/ +/g, ' ')
968
+ .trim()
969
+ }
970
+
971
+
972
+ const CIT_NAME_OPTS = {}
973
+
974
+ export function citation(cites, ctx = {}) {
975
+ const _outerCtx = { ...ctx, _secOpts: CIT_NAME_OPTS }
976
+ const rendered = cites.map(cite => {
977
+ let ctx = cite._disambig ? { ..._outerCtx, _disambig: cite._disambig } : _outerCtx
978
+ let item = cite.item || cite
979
+ if (cite.locator != null) { item = { ...item, locator: cite.locator, _locatorLabel: cite.label || 'page' } }
980
+ const _v81 = (item["citation-number"] != null && item["citation-number"] !== '' ? String(item["citation-number"]) : '')
981
+ return [(stripNocaseSpans(_v81) ? '\uE020citation-number\uE021' + stripNocaseSpans(_v81) + '\uE022' : '')].filter(v => v !== '').join('')
982
+ })
983
+ const _raw = "[" + rendered.join(",") + "]"
984
+ const text = stripFormatting(_raw)
985
+ const html = '<span class="csl-citation">' + toHtml(_raw) + '</span>'
986
+ return { text, html }
987
+ }
988
+
989
+ function _resolveTerm(key) {
990
+ const val = T[key]
991
+ if (val == null) return null
992
+ return typeof val === 'string' ? val : val.single || ''
993
+ }