@talisdev/bibliographic-resource-parsers-lib 5.39.0 → 5.40.1

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.
@@ -3389,17 +3389,17 @@ var ts = (e) => {
3389
3389
  case Ws.Guideline: return zs(t, e);
3390
3390
  case void 0: return z();
3391
3391
  }
3392
- }, Js = j({ "@context": O() }), Ys = (e) => Js.safeParse(e).success, Xs = "script[type=\"application/ld+json\"]", Zs = (e) => Array.from(e.querySelectorAll(Xs)), Qs = (e) => e.querySelector(Xs), $s = (e) => {
3392
+ }, W = j({ "@context": O() }), Js = (e) => W.safeParse(e).success, Ys = "script[type=\"application/ld+json\"]", Xs = (e) => Array.from(e.querySelectorAll(Ys)), Zs = (e) => e.querySelector(Ys), Qs = (e) => {
3393
3393
  let t = e.textContent;
3394
3394
  if (!t) return null;
3395
3395
  try {
3396
3396
  let e = JSON.parse(t);
3397
- if (Ys(e)) return e;
3397
+ if (Js(e)) return e;
3398
3398
  } catch {
3399
3399
  return null;
3400
3400
  }
3401
3401
  return null;
3402
- }, ec = j({
3402
+ }, $s = j({
3403
3403
  "@id": O(),
3404
3404
  "@type": O(),
3405
3405
  author: j({ "@id": O() }).optional(),
@@ -3410,33 +3410,33 @@ var ts = (e) => {
3410
3410
  isPartOf: j({ "@id": O() }).optional(),
3411
3411
  name: O().optional(),
3412
3412
  url: O().optional()
3413
- }), tc = Js.extend({ "@graph": A(ec) }), nc = (e) => tc.safeParse(e).success, rc = (e) => {
3414
- let t = Zs(e);
3413
+ }), ec = W.extend({ "@graph": A($s) }), tc = (e) => ec.safeParse(e).success, nc = (e) => {
3414
+ let t = Xs(e);
3415
3415
  if (t.length === 0) return null;
3416
- let n = t.map($s).filter(nc).map((e) => e["@graph"]);
3416
+ let n = t.map(Qs).filter(tc).map((e) => e["@graph"]);
3417
3417
  return n.length === 1 ? n[0] : null;
3418
- }, ic = (e, t) => e.find((e) => e["@type"] === t) ?? null, ac = (e, t) => e.find((e) => e["@id"] === t) ?? null, oc = (e) => {
3419
- let t = ic(e, "WebPage");
3418
+ }, rc = (e, t) => e.find((e) => e["@type"] === t) ?? null, ic = (e, t) => e.find((e) => e["@id"] === t) ?? null, ac = (e) => {
3419
+ let t = rc(e, "WebPage");
3420
3420
  if (!t) return null;
3421
- let n = t.author ? ac(e, t.author["@id"]) : void 0;
3421
+ let n = t.author ? ic(e, t.author["@id"]) : void 0;
3422
3422
  return _o({
3423
3423
  au: n?.name ? [n.name] : void 0,
3424
3424
  date: t.datePublished,
3425
3425
  title: t.name
3426
3426
  });
3427
- }, sc = ({ document: e }) => {
3428
- let t = rc(e);
3427
+ }, oc = ({ document: e }) => {
3428
+ let t = nc(e);
3429
3429
  return t ? {
3430
3430
  bookmarkingWorkflowUrl: null,
3431
- resource: oc(t)
3431
+ resource: ac(t)
3432
3432
  } : z();
3433
- }, cc = () => z(), lc = /* @__PURE__ */ function(e) {
3433
+ }, sc = () => z(), cc = /* @__PURE__ */ function(e) {
3434
3434
  return e.Journal = "journal", e.Article = "article", e;
3435
- }(lc || {}), uc = (e) => {
3435
+ }(cc || {}), lc = (e) => {
3436
3436
  let { pathname: t } = new URL(e);
3437
- if (t.startsWith("/toc/")) return lc.Journal;
3438
- if (t.startsWith("/article/")) return lc.Article;
3439
- }, dc = (e) => {
3437
+ if (t.startsWith("/toc/")) return cc.Journal;
3438
+ if (t.startsWith("/article/")) return cc.Article;
3439
+ }, uc = (e) => {
3440
3440
  let t = e.querySelector("header h1 span")?.firstChild?.textContent?.trim(), n = (e.querySelector("header p span")?.textContent.trim())?.match(/\d{4}-\d{3}[\dX]/g) ?? [], [r, i] = [n[0], n[1]], a = e.evaluate("//dt[contains(text(), \"Publisher\")]/following-sibling::dd/a", e, null, XPathResult.STRING_TYPE).stringValue.trim();
3441
3441
  return B(L(F.Journal, {
3442
3442
  pub: a,
@@ -3444,14 +3444,14 @@ var ts = (e) => {
3444
3444
  issn: r,
3445
3445
  eissn: i
3446
3446
  }));
3447
- }, fc = (e) => {
3447
+ }, dc = (e) => {
3448
3448
  let t, n, r = H(e, "name", "citation_issn");
3449
3449
  return r.length === 2 ? (t = r[1], n = r[0]) : t = r[0], {
3450
3450
  eissn: t,
3451
3451
  issn: n
3452
3452
  };
3453
- }, pc = (e) => {
3454
- let t = V(e, "name", "citation_journal_title"), n = V(e, "name", "citation_title"), r = H(e, "name", "citation_author"), i = V(e, "name", "citation_doi"), { eissn: a, issn: o } = fc(e), s = V(e, "name", "citation_publisher"), c = V(e, "name", "citation_publication_date"), l = V(e, "name", "citation_volume"), u = V(e, "name", "citation_issue"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_lastpage");
3453
+ }, fc = (e) => {
3454
+ let t = V(e, "name", "citation_journal_title"), n = V(e, "name", "citation_title"), r = H(e, "name", "citation_author"), i = V(e, "name", "citation_doi"), { eissn: a, issn: o } = dc(e), s = V(e, "name", "citation_publisher"), c = V(e, "name", "citation_publication_date"), l = V(e, "name", "citation_volume"), u = V(e, "name", "citation_issue"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_lastpage");
3455
3455
  return B(L(F.Article, {
3456
3456
  jtitle: t,
3457
3457
  atitle: n,
@@ -3466,13 +3466,13 @@ var ts = (e) => {
3466
3466
  spage: d,
3467
3467
  epage: f
3468
3468
  }));
3469
- }, mc = ({ document: e, url: t }) => {
3470
- switch (uc(t)) {
3471
- case lc.Journal: return dc(e);
3472
- case lc.Article: return pc(e);
3469
+ }, pc = ({ document: e, url: t }) => {
3470
+ switch (lc(t)) {
3471
+ case cc.Journal: return uc(e);
3472
+ case cc.Article: return fc(e);
3473
3473
  case void 0: return z();
3474
3474
  }
3475
- }, hc = (e) => {
3475
+ }, mc = (e) => {
3476
3476
  let t = V(e, "name", "pbContext");
3477
3477
  if (!t) return U.None;
3478
3478
  let n = ds(t);
@@ -3481,23 +3481,23 @@ var ts = (e) => {
3481
3481
  case "Table of Contents": return U.Journal;
3482
3482
  default: return U.None;
3483
3483
  }
3484
- }, gc = (e) => {
3484
+ }, hc = (e) => {
3485
3485
  let t = e.querySelector("meta[property=\"article:author\"]")?.getAttribute("content")?.split(",").map((e) => e.trim());
3486
3486
  return t && t.length > 0 ? t : void 0;
3487
- }, _c = (e) => {
3487
+ }, gc = (e) => {
3488
3488
  let t = /* @__PURE__ */ new Map(), n = Array.from(e.querySelectorAll(".rlist>li>span")).map((e) => e.textContent.trim()).join(""), r = /^ISSN:\s(\d{4}-\d{3}(?:\d|X))/.exec(n);
3489
3489
  r && t.set("issn", r[1]);
3490
3490
  let i = /Online ISSN:\s(\d{4}-\d{3}(?:\d|X))/.exec(n);
3491
3491
  return i && t.set("eissn", i[1]), t;
3492
- }, vc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationVolume\"] > span[property=\"volumeNumber\"]")?.textContent ?? void 0, yc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationIssue\"] > span[property=\"issueNumber\"]")?.textContent ?? void 0, bc = (e) => e.querySelector("meta[name=\"dc.Identifier\"][scheme=\"doi\"]")?.getAttribute("content") ?? void 0, xc = (e) => e.querySelector("h1")?.textContent ?? void 0, Sc = (e) => {
3492
+ }, _c = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationVolume\"] > span[property=\"volumeNumber\"]")?.textContent ?? void 0, vc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationIssue\"] > span[property=\"issueNumber\"]")?.textContent ?? void 0, yc = (e) => e.querySelector("meta[name=\"dc.Identifier\"][scheme=\"doi\"]")?.getAttribute("content") ?? void 0, bc = (e) => e.querySelector("h1")?.textContent ?? void 0, xc = (e) => {
3493
3493
  let t = /* @__PURE__ */ new Map(), n = e.querySelector("h2.heading-m")?.textContent, r = n?.match(/Issue\s+(\d+(?:-\d+)?)/);
3494
3494
  r && t.set("issue", r[1]);
3495
3495
  let i = n?.match(/Volume\s+(\d+)/);
3496
3496
  i && t.set("volume", i[1]);
3497
3497
  let a = n?.match(/(\d{4})$/);
3498
3498
  return a && t.set("date", a[1]), t;
3499
- }, Cc = (e) => {
3500
- let t = gc(e.document), n = V(e.document, "name", "dc.Date"), r = bc(e.document), i = _c(e.document), a = i.get("issn"), o = i.get("eissn"), s = yc(e.document), c = V(e.document, "name", "citation_journal_title"), l = V(e.document, "name", "dc.Publisher"), u = V(e.document, "name", "dc.Title"), d = vc(e.document);
3499
+ }, Sc = (e) => {
3500
+ let t = hc(e.document), n = V(e.document, "name", "dc.Date"), r = yc(e.document), i = gc(e.document), a = i.get("issn"), o = i.get("eissn"), s = vc(e.document), c = V(e.document, "name", "citation_journal_title"), l = V(e.document, "name", "dc.Publisher"), u = V(e.document, "name", "dc.Title"), d = _c(e.document);
3501
3501
  return L(F.Article, {
3502
3502
  au: t,
3503
3503
  date: n,
@@ -3510,8 +3510,8 @@ var ts = (e) => {
3510
3510
  volume: d,
3511
3511
  doi: r
3512
3512
  });
3513
- }, wc = (e) => {
3514
- let t = _c(e.document), n = t.get("issn"), r = t.get("eissn"), i = xc(e.document), a = Sc(e.document), o = a.get("issue"), s = a.get("volume"), c = a.get("date");
3513
+ }, Cc = (e) => {
3514
+ let t = gc(e.document), n = t.get("issn"), r = t.get("eissn"), i = bc(e.document), a = xc(e.document), o = a.get("issue"), s = a.get("volume"), c = a.get("date");
3515
3515
  return L(F.Journal, {
3516
3516
  eissn: r,
3517
3517
  issn: n,
@@ -3521,33 +3521,33 @@ var ts = (e) => {
3521
3521
  volume: s,
3522
3522
  date: c
3523
3523
  });
3524
- }, Tc = (e) => {
3525
- switch (hc(e.document)) {
3526
- case U.Article: return B(Cc(e));
3527
- case U.Journal: return B(wc(e));
3524
+ }, wc = (e) => {
3525
+ switch (mc(e.document)) {
3526
+ case U.Article: return B(Sc(e));
3527
+ case U.Journal: return B(Cc(e));
3528
3528
  default: return z();
3529
3529
  }
3530
- }, Ec = (e) => {
3530
+ }, Tc = (e) => {
3531
3531
  let t = V(e, "name", "citation_type"), n = V(e, "name", "citation_article_type");
3532
3532
  return t === "JOUR" && n ? U.Article : t === "CHP" ? U.Chapter : e.querySelector(".book-edition-year")?.textContent.includes("Book") ? U.Book : e.getElementById("journal-title") ? U.Journal : U.None;
3533
- }, Dc = (e) => V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, Oc = (e) => {
3533
+ }, Ec = (e) => V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, Dc = (e) => {
3534
3534
  let t = Array.from(e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")), n = /* @__PURE__ */ new Map();
3535
3535
  for (let e of t) {
3536
3536
  let t = e.querySelector("h3")?.textContent, r = e.querySelector("p")?.textContent;
3537
3537
  t && r && n.set(t, r);
3538
3538
  }
3539
3539
  return n;
3540
- }, kc = (e, t) => {
3540
+ }, Oc = (e, t) => {
3541
3541
  let n = Array.from(e.querySelectorAll(t)).map((e) => e.textContent).filter((e) => !!e);
3542
3542
  return n.length > 0 ? n : void 0;
3543
- }, Ac = (e) => {
3543
+ }, kc = (e) => {
3544
3544
  let t = e.querySelector(".js-issn")?.textContent;
3545
3545
  if (t) return t.replace("Online ISSN: ", "");
3546
- }, jc = (e) => {
3546
+ }, Ac = (e) => {
3547
3547
  let t = e.get("DOI");
3548
3548
  if (t) return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
3549
- }, Mc = (e) => {
3550
- let t = Oc(e), n = V(e, "property", "og:title"), r = V(e, "property", "og:book:isbn"), i = t.get("Published"), a = kc(e, ".authors-container .author-detail h3"), o = Dc(e) ?? jc(t);
3549
+ }, jc = (e) => {
3550
+ let t = Dc(e), n = V(e, "property", "og:title"), r = V(e, "property", "og:book:isbn"), i = t.get("Published"), a = Oc(e, ".authors-container .author-detail h3"), o = Ec(e) ?? Ac(t);
3551
3551
  return I(F.Book, {
3552
3552
  au: a,
3553
3553
  date: i,
@@ -3555,8 +3555,8 @@ var ts = (e) => {
3555
3555
  isbn: r,
3556
3556
  title: n
3557
3557
  });
3558
- }, Nc = (e) => {
3559
- let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i = kc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_firstpage"), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_publisher"), c = Dc(e), l = V(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3558
+ }, Mc = (e) => {
3559
+ let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i = Oc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_firstpage"), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_publisher"), c = Ec(e), l = V(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3560
3560
  return I(F.Bookitem, {
3561
3561
  au: i,
3562
3562
  btitle: l,
@@ -3568,8 +3568,8 @@ var ts = (e) => {
3568
3568
  spage: a,
3569
3569
  title: t
3570
3570
  });
3571
- }, Pc = (e) => {
3572
- let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i = kc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_publisher"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_issue"), c = V(e, "name", "citation_volume"), l = Dc(e), u = V(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3571
+ }, Nc = (e) => {
3572
+ let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i = Oc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_publisher"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_issue"), c = V(e, "name", "citation_volume"), l = Ec(e), u = V(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3573
3573
  return L(F.Article, {
3574
3574
  au: i,
3575
3575
  jtitle: u,
@@ -3582,36 +3582,36 @@ var ts = (e) => {
3582
3582
  title: t,
3583
3583
  volume: c
3584
3584
  });
3585
- }, Fc = (e) => {
3586
- let t = e.getElementById("journal-title")?.textContent ?? void 0, n = Ac(e);
3585
+ }, Pc = (e) => {
3586
+ let t = e.getElementById("journal-title")?.textContent ?? void 0, n = kc(e);
3587
3587
  return L(F.Journal, {
3588
3588
  issn: n,
3589
3589
  title: t
3590
3590
  });
3591
- }, Ic = ({ document: e }) => {
3592
- switch (Ec(e)) {
3593
- case U.Book: return B(Mc(e));
3594
- case U.Chapter: return B(Nc(e));
3595
- case U.Article: return B(Pc(e));
3596
- case U.Journal: return B(Fc(e));
3591
+ }, Fc = ({ document: e }) => {
3592
+ switch (Tc(e)) {
3593
+ case U.Book: return B(jc(e));
3594
+ case U.Chapter: return B(Mc(e));
3595
+ case U.Article: return B(Nc(e));
3596
+ case U.Journal: return B(Pc(e));
3597
3597
  default: return z();
3598
3598
  }
3599
- }, Lc = (e) => {
3599
+ }, Ic = (e) => {
3600
3600
  let t = V(e, "name", "pbContext");
3601
3601
  return t && ds(t).has("article") ? U.Article : U.Journal;
3602
- }, Rc = (e) => {
3602
+ }, Lc = (e) => {
3603
3603
  let t = e.querySelector(".itemPageRangeHistory");
3604
3604
  if (!t) return;
3605
3605
  let n = Array.from(t.childNodes).find((e) => e.textContent?.trim().startsWith("Page"));
3606
3606
  if (n) return n.textContent?.replace(/Pages?/, "").trim() ?? void 0;
3607
- }, zc = (e) => {
3607
+ }, Rc = (e) => {
3608
3608
  let t = e.querySelector(".issue-heading")?.textContent;
3609
3609
  if (t) return t.split(",")[0]?.replace("Volume", "").trim();
3610
- }, Bc = (e) => {
3610
+ }, zc = (e) => {
3611
3611
  let t = e.querySelector(".issue-heading .nav-toc-list")?.textContent;
3612
3612
  if (t) return t.replace("Issue", "").trim();
3613
- }, Vc = (e) => {
3614
- let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "dc.Date"), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = H(e, "name", "dc.Creator"), s = zc(e), c = Bc(e), l = Rc(e), u = l?.includes("-") ? l.split("-")[0] : l, d = l?.includes("-") ? l.split("-")[1] : l;
3613
+ }, Bc = (e) => {
3614
+ let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "dc.Date"), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = H(e, "name", "dc.Creator"), s = Rc(e), c = zc(e), l = Lc(e), u = l?.includes("-") ? l.split("-")[0] : l, d = l?.includes("-") ? l.split("-")[1] : l;
3615
3615
  return L(F.Article, {
3616
3616
  au: o,
3617
3617
  jtitle: a,
@@ -3624,45 +3624,45 @@ var ts = (e) => {
3624
3624
  title: t,
3625
3625
  volume: s
3626
3626
  });
3627
- }, Hc = (e) => {
3627
+ }, Vc = (e) => {
3628
3628
  let t = V(e, "property", "og:title"), n = V(e, "name", "publication_doi");
3629
3629
  return L(F.Journal, {
3630
3630
  doi: n,
3631
3631
  title: t
3632
3632
  });
3633
- }, Uc = ({ document: e }) => {
3634
- switch (Lc(e)) {
3635
- case U.Article: return B(Vc(e));
3636
- case U.Journal: return B(Hc(e));
3633
+ }, Hc = ({ document: e }) => {
3634
+ switch (Ic(e)) {
3635
+ case U.Article: return B(Bc(e));
3636
+ case U.Journal: return B(Vc(e));
3637
3637
  default: return z();
3638
3638
  }
3639
- }, Wc = (e) => Xo.safeParse(e).success, Gc = (e) => Zo.safeParse(e).success, Kc = (e) => Wo.safeParse(e).success;
3640
- function qc(e) {
3639
+ }, Uc = (e) => Xo.safeParse(e).success, Wc = (e) => Zo.safeParse(e).success, Gc = (e) => Wo.safeParse(e).success;
3640
+ function Kc(e) {
3641
3641
  return Ko.safeParse(e).success;
3642
3642
  }
3643
- function Jc(e) {
3643
+ function qc(e) {
3644
3644
  return qo.safeParse(e).success;
3645
3645
  }
3646
- function Yc(e) {
3646
+ function Jc(e) {
3647
3647
  return Jo.safeParse(e).success;
3648
3648
  }
3649
- function Xc(e) {
3649
+ function Yc(e) {
3650
3650
  return Yo.safeParse(e).success;
3651
3651
  }
3652
- function Zc(e) {
3652
+ function Xc(e) {
3653
3653
  return Go.safeParse(e).success;
3654
3654
  }
3655
3655
  //#endregion
3656
3656
  //#region src/parsers/site/vu-find-parser.ts
3657
- var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector("span[property=\"identifier\"]")?.textContent ?? void 0, $c = (e) => {
3657
+ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector("span[property=\"identifier\"]")?.textContent ?? void 0, Qc = (e) => {
3658
3658
  let t = /Record\/(\d+)/.exec(e);
3659
3659
  if (t && t.length > 1) return t[1];
3660
- }, el = (e) => {
3660
+ }, $c = (e) => {
3661
3661
  let { url: t, document: n } = e, r = ns(e);
3662
- if (!Jc(r)) return r;
3663
- let i = Qc(n);
3664
- return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid = $c(t), r;
3665
- }, tl = Js.extend({
3662
+ if (!qc(r)) return r;
3663
+ let i = Zc(n);
3664
+ return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid = Qc(t), r;
3665
+ }, el = W.extend({
3666
3666
  "@type": N("VideoObject"),
3667
3667
  name: O(),
3668
3668
  author: O(),
@@ -3671,13 +3671,13 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3671
3671
  uploadDate: O(),
3672
3672
  duration: O(),
3673
3673
  thumbnailUrl: A(O())
3674
- }), nl = (e) => tl.safeParse(e).success, rl = (e) => {
3675
- let t = Zs(e);
3674
+ }), tl = (e) => el.safeParse(e).success, nl = (e) => {
3675
+ let t = Xs(e);
3676
3676
  if (t.length === 0) return null;
3677
- let n = t.map($s).filter(nl);
3677
+ let n = t.map(Qs).filter(tl);
3678
3678
  return n.length === 1 ? n[0] : null;
3679
- }, il = ({ url: e, document: t }) => {
3680
- let n = rl(t);
3679
+ }, rl = ({ url: e, document: t }) => {
3680
+ let n = nl(t);
3681
3681
  return n ? {
3682
3682
  bookmarkingWorkflowUrl: null,
3683
3683
  resource: R({
@@ -3687,17 +3687,17 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3687
3687
  uri: e
3688
3688
  })
3689
3689
  } : z();
3690
- }, al = (e) => V(e, "name", "doi") ?? V(e, "name", "DOI") ?? V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? V(e, "name", "prism.doi") ?? void 0, ol = (e) => {
3690
+ }, il = (e) => V(e, "name", "doi") ?? V(e, "name", "DOI") ?? V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? V(e, "name", "prism.doi") ?? void 0, al = (e) => {
3691
3691
  let t = e.editor?.map((e) => e.name) ?? [], n = [...e.author?.map((e) => e.name) ?? [], ...t];
3692
3692
  if (n.length !== 0) return n;
3693
- }, sl = /* @__PURE__ */ function(e) {
3693
+ }, ol = /* @__PURE__ */ function(e) {
3694
3694
  return e.Book = "Book", e.Journal = "Journal", e.Periodical = "Periodical", e.PublicationVolume = "PublicationVolume", e.ScholarlyArticle = "ScholarlyArticle", e.VideoObject = "VideoObject", e.WebPage = "WebPage", e;
3695
- }({}), cl = /* @__PURE__ */ function(e) {
3695
+ }({}), sl = /* @__PURE__ */ function(e) {
3696
3696
  return e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e;
3697
- }({}), W = /* @__PURE__ */ function(e) {
3697
+ }({}), cl = /* @__PURE__ */ function(e) {
3698
3698
  return e.Article = "/article/", e.Book = "/book/", e.Chapter = "/chapter/", e.Video = "/video/", e.ReferenceWorkEntry = "/referenceworkentry/", e.ReferenceWork = "/referencework/", e.Protocol = "/protocol/", e.Collections = "/collections/", e.Journal = "/journal/", e.JournalIssue = "/volumes-and-issues/", e;
3699
3699
  }({}), ll = j({
3700
- "@type": N(sl.ScholarlyArticle),
3700
+ "@type": N(ol.ScholarlyArticle),
3701
3701
  author: A(j({
3702
3702
  "@type": O(),
3703
3703
  name: O()
@@ -3722,8 +3722,8 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3722
3722
  "@type": O(),
3723
3723
  name: O()
3724
3724
  }).optional()
3725
- }), ul = (e) => ll.safeParse(e).success, dl = Js.extend({
3726
- "@type": N(sl.WebPage),
3725
+ }), ul = (e) => ll.safeParse(e).success, dl = W.extend({
3726
+ "@type": N(ol.WebPage),
3727
3727
  mainEntity: ll
3728
3728
  }), fl = (e) => dl.safeParse(e).success, pl = j({
3729
3729
  "@type": A(O()),
@@ -3731,7 +3731,7 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3731
3731
  issn: A(O()),
3732
3732
  volumeNumber: O().optional()
3733
3733
  }), ml = (e) => pl.safeParse(e).success, hl = (e, t) => V(e, "name", "citation_issn") ?? V(e, "name", "prism.issn") ?? (ul(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), gl = (e, t) => {
3734
- let n = ol(t), r = V(e, "name", "citation_online_date"), i = al(e), a = V(e, "name", "citation_issue"), o = hl(e, t), s = ml(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, l = t.pageEnd, u = t.headline, d = t.isPartOf.name, f = ml(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3734
+ let n = al(t), r = V(e, "name", "citation_online_date"), i = il(e), a = V(e, "name", "citation_issue"), o = hl(e, t), s = ml(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, l = t.pageEnd, u = t.headline, d = t.isPartOf.name, f = ml(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3735
3735
  return L(F.Article, {
3736
3736
  au: n,
3737
3737
  date: r,
@@ -3745,8 +3745,8 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3745
3745
  jtitle: d,
3746
3746
  volume: f
3747
3747
  });
3748
- }, _l = Js.extend({
3749
- "@type": N(sl.Book),
3748
+ }, _l = W.extend({
3749
+ "@type": N(ol.Book),
3750
3750
  copyrightYear: O().optional(),
3751
3751
  author: A(j({
3752
3752
  "@type": O(),
@@ -3772,7 +3772,7 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3772
3772
  t && r && n.set(t, r);
3773
3773
  }), n;
3774
3774
  }, xl = (e, t) => {
3775
- let n = bl(e), r = ol(t), i = t.copyrightYear?.toString(), a = al(e) ?? n.get(yl.DOI), o = t.name ?? n.get(yl.BOOK_TITLE), s = t.isbn ?? n.get(yl.SOFTCOVER_ISBN), c = t.numberOfPages?.toString() ?? n.get(yl.NUMBER_OF_PAGES), l = t.publisher?.name ?? n.get(yl.PUBLISHER);
3775
+ let n = bl(e), r = al(t), i = t.copyrightYear?.toString(), a = il(e) ?? n.get(yl.DOI), o = t.name ?? n.get(yl.BOOK_TITLE), s = t.isbn ?? n.get(yl.SOFTCOVER_ISBN), c = t.numberOfPages?.toString() ?? n.get(yl.NUMBER_OF_PAGES), l = t.publisher?.name ?? n.get(yl.PUBLISHER);
3776
3776
  return I(F.Book, {
3777
3777
  au: r,
3778
3778
  date: i,
@@ -3803,7 +3803,7 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3803
3803
  pub: a
3804
3804
  });
3805
3805
  }, Tl = j({
3806
- "@type": N(sl.VideoObject),
3806
+ "@type": N(ol.VideoObject),
3807
3807
  name: O().optional(),
3808
3808
  description: O().optional(),
3809
3809
  thumbnailUrl: O().optional(),
@@ -3820,13 +3820,13 @@ var Qc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3820
3820
  });
3821
3821
  }, Ol = (e) => _o({ title: V(e, "property", "og:title") }), kl = (e, t) => {
3822
3822
  let n = V(t, "property", "og:type");
3823
- return n === cl.Article && e.includes(W.Article) ? U.Article : n === cl.Book && (e.includes(W.Book) || e.includes(W.ReferenceWork)) ? U.Book : n === cl.Paper && e.includes(W.Chapter) ? U.Chapter : n === cl.Paper && (e.includes(W.ReferenceWorkEntry) || e.includes(W.Protocol)) ? U.Article : n === cl.Video && e.includes(W.Video) ? U.AudioVisual : n === cl.Website && (e.includes(W.Collections) || e.includes(W.JournalIssue)) ? U.Webpage : n === cl.Website && e.includes(W.Journal) ? U.Journal : U.None;
3823
+ return n === sl.Article && e.includes(cl.Article) ? U.Article : n === sl.Book && (e.includes(cl.Book) || e.includes(cl.ReferenceWork)) ? U.Book : n === sl.Paper && e.includes(cl.Chapter) ? U.Chapter : n === sl.Paper && (e.includes(cl.ReferenceWorkEntry) || e.includes(cl.Protocol)) ? U.Article : n === sl.Video && e.includes(cl.Video) ? U.AudioVisual : n === sl.Website && (e.includes(cl.Collections) || e.includes(cl.JournalIssue)) ? U.Webpage : n === sl.Website && e.includes(cl.Journal) ? U.Journal : U.None;
3824
3824
  }, Al = (e, t, n) => e === U.AudioVisual && El(n) ? B(Dl(t, n)) : e === U.Book && vl(n) ? B(xl(t, n)) : (e === U.Chapter || e === U.Article) && ul(n) ? B(gl(t, n)) : e === U.Article && fl(n) ? B(gl(t, n.mainEntity)) : e === U.Journal && Cl(n) ? B(wl(n)) : z(), jl = ({ url: e, document: t }) => {
3825
3825
  let n = kl(e, t);
3826
3826
  if (n === U.Webpage) return B(Ol(t));
3827
- let r = Qs(t);
3827
+ let r = Zs(t);
3828
3828
  if (!r) return z();
3829
- let i = $s(r);
3829
+ let i = Qs(r);
3830
3830
  return i ? Al(n, t, i) : z();
3831
3831
  }, G = /* @__PURE__ */ function(e) {
3832
3832
  return e.PrintIsbn = "Print ISBN", e.OnlineIsbn = "Online ISBN", e.Doi = "DOI", e.FirstPublished = "First published", e.OnlineIssn = "Online ISSN", e.PrintIssn = "Print ISSN", e;
@@ -4300,7 +4300,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4300
4300
  issn: O().optional(),
4301
4301
  name: O().optional(),
4302
4302
  volume: O().optional()
4303
- }), ad = Js.extend({
4303
+ }), ad = W.extend({
4304
4304
  identifier: j({
4305
4305
  "@type": O(),
4306
4306
  propertyID: O(),
@@ -4333,9 +4333,9 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4333
4333
  }),
4334
4334
  name: O()
4335
4335
  }), od = (e) => {
4336
- let t = Qs(e);
4336
+ let t = Zs(e);
4337
4337
  if (!t) return null;
4338
- let n = $s(t), r = ad.safeParse(n);
4338
+ let n = Qs(t), r = ad.safeParse(n);
4339
4339
  return r.success ? r.data : null;
4340
4340
  }, sd = (e) => L(F.Article, {
4341
4341
  ...Ju(e),
@@ -4567,7 +4567,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4567
4567
  }
4568
4568
  return null;
4569
4569
  }, of = ({ document: e }) => {
4570
- let t = Qs(e);
4570
+ let t = Zs(e);
4571
4571
  if (!t) return z();
4572
4572
  let n = af(t);
4573
4573
  if (!n) return z();
@@ -4582,16 +4582,16 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4582
4582
  }));
4583
4583
  default: return z();
4584
4584
  }
4585
- }, sf = Js.extend({
4585
+ }, sf = W.extend({
4586
4586
  "@type": O().optional(),
4587
4587
  name: O().optional(),
4588
4588
  copyrightYear: ha().optional(),
4589
4589
  author: A(j({ name: O() })).optional(),
4590
4590
  publisher: A(j({ name: O() })).optional()
4591
4591
  }), cf = (e) => sf.safeParse(e).success, lf = ({ document: e, url: t }) => {
4592
- let n = Qs(e);
4592
+ let n = Zs(e);
4593
4593
  if (!n) return z();
4594
- let r = $s(n);
4594
+ let r = Qs(n);
4595
4595
  if (!r || !cf(r)) return z();
4596
4596
  let i = r["@type"], a = r.author?.map((e) => e.name), o = r.copyrightYear?.toString() ?? V(e, "property", "og:book:release_date"), s = r.name, c = ru(r.publisher?.map((e) => e.name)), l = V(e, "property", "og:book:isbn");
4597
4597
  switch (i) {
@@ -4818,7 +4818,7 @@ var Lf = (e) => {
4818
4818
  delete e.rft_id;
4819
4819
  }, Zf = (e) => {
4820
4820
  let t = ns(e);
4821
- if (Jc(t)) {
4821
+ if (qc(t)) {
4822
4822
  let n = Yf(e.document);
4823
4823
  t.resource.genre = n, Xf(t.resource);
4824
4824
  }
@@ -5162,7 +5162,7 @@ var yp = (e) => {
5162
5162
  if (t) return t.replace("https://doi.org/", "").trim();
5163
5163
  }, pm = (e) => {
5164
5164
  let { document: t } = e, n = ns(e);
5165
- if (!Jc(n)) return n;
5165
+ if (!qc(n)) return n;
5166
5166
  let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a = fm(t);
5167
5167
  return r && (n.resource.date = r), i && (n.resource.uri = i), a && (n.resource.rft_id = [a]), n;
5168
5168
  }, mm = (e) => {
@@ -5196,7 +5196,7 @@ var yp = (e) => {
5196
5196
  date: l,
5197
5197
  uri: u
5198
5198
  }));
5199
- }, xm = Js.extend({
5199
+ }, xm = W.extend({
5200
5200
  "@type": N("VideoObject"),
5201
5201
  name: O(),
5202
5202
  url: O(),
@@ -5209,9 +5209,9 @@ var yp = (e) => {
5209
5209
  name: O()
5210
5210
  }))]))
5211
5211
  }), Sm = (e) => {
5212
- let t = Qs(e);
5212
+ let t = Zs(e);
5213
5213
  if (!t) return null;
5214
- let n = $s(t), r = xm.safeParse(n);
5214
+ let n = Qs(t), r = xm.safeParse(n);
5215
5215
  return r.success ? r.data : null;
5216
5216
  }, Cm = (e) => {
5217
5217
  if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
@@ -5225,25 +5225,94 @@ var yp = (e) => {
5225
5225
  au: n,
5226
5226
  uri: t.url
5227
5227
  }));
5228
+ }, Tm = W.extend({ publisher: j({
5229
+ "@type": N("Organization"),
5230
+ name: O()
5231
+ }) }), Em = W.extend({
5232
+ "@type": N("WebSite"),
5233
+ issn: O(),
5234
+ name: O()
5235
+ }), Dm = (e) => {
5236
+ let t = km(e), n = e.querySelector(".article-issue-info a")?.getAttribute("href") ?? "", r = /\/v(\d+)/i.exec(n), i = /\/n(\d+)/i.exec(n);
5237
+ return {
5238
+ jtitle: t?.name ?? void 0,
5239
+ issn: t?.issn ?? void 0,
5240
+ volume: r ? r[1] : void 0,
5241
+ issue: i ? i[1] : void 0
5242
+ };
5243
+ }, Om = (e) => {
5244
+ let t = Xs(e);
5245
+ return t.length === 0 ? null : t.map((e) => Qs(e)).filter((e) => e !== null);
5246
+ }, km = (e) => {
5247
+ let t = Om(e);
5248
+ if (!t) return;
5249
+ let n = t.map((e) => Em.safeParse(e)).find((e) => e.success);
5250
+ return n ? n.data : void 0;
5251
+ }, Am = (e) => {
5252
+ let t = Om(e);
5253
+ if (!t) return;
5254
+ let n = t.map((e) => Tm.safeParse(e)).find((e) => e.success);
5255
+ return n ? n.data.publisher.name : void 0;
5256
+ }, jm = (e) => V(e, "property", "article:author"), Mm = (e) => V(e, "property", "og:title"), Nm = (e) => {
5257
+ let t = V(e, "property", "article:published_time");
5258
+ return t ? t.split("T")[0] : void 0;
5259
+ }, Pm = (e) => V(e, "property", "og:url"), Fm = (e) => {
5260
+ let t = jm(e), n = Mm(e), r = Pm(e), i = Nm(e), a = Am(e), { volume: o, issue: s, issn: c, jtitle: l } = Dm(e);
5261
+ return L(F.Article, {
5262
+ au: t ? [t] : void 0,
5263
+ pub: a,
5264
+ uri: r,
5265
+ atitle: n,
5266
+ date: i,
5267
+ issn: c,
5268
+ jtitle: l,
5269
+ volume: o,
5270
+ issue: s
5271
+ });
5272
+ }, Im = (e) => {
5273
+ let t = jm(e), n = Mm(e), r = Pm(e), i = Nm(e), a = Am(e);
5274
+ return R({
5275
+ au: t ? [t] : void 0,
5276
+ pub: a,
5277
+ uri: r,
5278
+ title: n,
5279
+ date: i
5280
+ });
5281
+ }, Lm = (e) => {
5282
+ switch (V(e, "property", "og:type")) {
5283
+ case "article": return U.Article;
5284
+ case "podcast":
5285
+ case "film": return U.AudioVisual;
5286
+ default: return null;
5287
+ }
5288
+ }, Rm = (e) => {
5289
+ switch (Lm(e)) {
5290
+ case U.Article: return Fm(e);
5291
+ case U.AudioVisual: return Im(e);
5292
+ default: return null;
5293
+ }
5294
+ }, zm = ({ document: e }) => {
5295
+ let t = Rm(e);
5296
+ return t ? B(t) : z();
5228
5297
  }, X = /* @__PURE__ */ function(e) {
5229
- return e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e.KanopyVideo = "KanopyVideo", e.LaTrobeOpal = "LaTrobeOpal", e.BYUScholarsArchive = "BYUScholarsArchive", e.Informit = "Informit", e.Brill = "Brill", e.HeinOnline = "HeinOnline", e.PrimoNde = "PrimoNde", e.MichiganLaw = "MichiganLaw", e.EbookCentral = "EbookCentral", e.AlexanderStreetPress = "AlexanderStreetPress", e;
5230
- }({}), Tm = {
5231
- [X.NoResourceFound]: cc,
5298
+ return e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e.KanopyVideo = "KanopyVideo", e.LaTrobeOpal = "LaTrobeOpal", e.BYUScholarsArchive = "BYUScholarsArchive", e.Informit = "Informit", e.Brill = "Brill", e.HeinOnline = "HeinOnline", e.PrimoNde = "PrimoNde", e.MichiganLaw = "MichiganLaw", e.EbookCentral = "EbookCentral", e.AlexanderStreetPress = "AlexanderStreetPress", e.LondonReviewOfBooks = "LondonReviewOfBooks", e;
5299
+ }({}), Bm = {
5300
+ [X.NoResourceFound]: sc,
5232
5301
  [X.Z3988]: ns,
5233
5302
  [X.Z3988SearchResult]: nu,
5234
5303
  [X.Amazon]: us,
5235
- [X.CupOfJo]: sc,
5304
+ [X.CupOfJo]: oc,
5236
5305
  [X.Jstor]: Ru,
5237
- [X.Youtube]: il,
5238
- [X.SagePub]: Tc,
5306
+ [X.Youtube]: rl,
5307
+ [X.SagePub]: wc,
5239
5308
  [X.SageVideo]: tu,
5240
- [X.ScienceDirect]: Ic,
5309
+ [X.ScienceDirect]: Fc,
5241
5310
  [X.Springer]: jl,
5242
- [X.TaylorFrancis]: Uc,
5311
+ [X.TaylorFrancis]: Hc,
5243
5312
  [X.Wiley]: $l,
5244
- [X.VuFind]: el,
5313
+ [X.VuFind]: $c,
5245
5314
  [X.ClinicalKey]: qs,
5246
- [X.DOAJ]: mc,
5315
+ [X.DOAJ]: pc,
5247
5316
  [X.Primo]: Sd,
5248
5317
  [X.IngentaConnect]: jd,
5249
5318
  [X.Ebscohost]: tf,
@@ -5268,8 +5337,9 @@ var yp = (e) => {
5268
5337
  [X.PrimoNde]: dm,
5269
5338
  [X.MichiganLaw]: pm,
5270
5339
  [X.EbookCentral]: bm,
5271
- [X.AlexanderStreetPress]: wm
5272
- }, Em = "5.39.0", Dm = () => Em, Om = [
5340
+ [X.AlexanderStreetPress]: wm,
5341
+ [X.LondonReviewOfBooks]: zm
5342
+ }, Vm = "5.40.1", Hm = () => Vm, Um = [
5273
5343
  "com.au",
5274
5344
  "com",
5275
5345
  "ca",
@@ -5277,8 +5347,8 @@ var yp = (e) => {
5277
5347
  "de",
5278
5348
  "fr",
5279
5349
  "nl"
5280
- ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), km = {
5281
- version: Dm(),
5350
+ ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), Wm = {
5351
+ version: Hm(),
5282
5352
  siteRegistrations: [
5283
5353
  {
5284
5354
  matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
@@ -5306,7 +5376,7 @@ var yp = (e) => {
5306
5376
  parsers: [X.ScienceDirect]
5307
5377
  },
5308
5378
  {
5309
- matcher: { hostnames: Om },
5379
+ matcher: { hostnames: Um },
5310
5380
  name: "Amazon",
5311
5381
  parsers: [X.Amazon]
5312
5382
  },
@@ -5494,20 +5564,25 @@ var yp = (e) => {
5494
5564
  matcher: { regexp: "^https://video[.-]alexanderstreet[.-]com" },
5495
5565
  name: "Alexander Street Press",
5496
5566
  parsers: [X.AlexanderStreetPress]
5567
+ },
5568
+ {
5569
+ matcher: { hostnames: ["www.lrb.co.uk"] },
5570
+ name: "London Review of Books",
5571
+ parsers: [X.LondonReviewOfBooks]
5497
5572
  }
5498
5573
  ]
5499
- }, Am = j({ hostnames: A(O()).min(1) }), jm = j({ regexp: O() }), Mm = M([Am, jm]), Nm = j({
5500
- matcher: Mm,
5574
+ }, Gm = j({ hostnames: A(O()).min(1) }), Km = j({ regexp: O() }), qm = M([Gm, Km]), Jm = j({
5575
+ matcher: qm,
5501
5576
  name: O(),
5502
5577
  parsers: A(O()),
5503
5578
  libraryVersionRange: O().optional()
5504
- }), Pm = j({
5505
- siteRegistrations: A(Nm),
5579
+ }), Ym = j({
5580
+ siteRegistrations: A(Jm),
5506
5581
  version: O()
5507
- }), Fm = (e) => Pm.safeParse(e).success, Im = (e) => Nm.safeParse(e).success, Lm = (e) => Mm.safeParse(e).success, Rm = (e) => Object.values(X).includes(e), zm = j({
5582
+ }), Xm = (e) => Ym.safeParse(e).success, Zm = (e) => Jm.safeParse(e).success, Qm = (e) => qm.safeParse(e).success, $m = (e) => Object.values(X).includes(e), eh = j({
5508
5583
  url: O(),
5509
5584
  document: eo((e) => typeof e == "object" && !!e)
5510
- }), Bm = (e) => zm.safeParse(e).success, Vm = /* @__PURE__ */ e(((e, t) => {
5585
+ }), th = (e) => eh.safeParse(e).success, nh = /* @__PURE__ */ e(((e, t) => {
5511
5586
  var n = "2.0.0", r = 256;
5512
5587
  t.exports = {
5513
5588
  MAX_LENGTH: r,
@@ -5527,10 +5602,10 @@ var yp = (e) => {
5527
5602
  FLAG_INCLUDE_PRERELEASE: 1,
5528
5603
  FLAG_LOOSE: 2
5529
5604
  };
5530
- })), Hm = /* @__PURE__ */ e(((e, t) => {
5605
+ })), rh = /* @__PURE__ */ e(((e, t) => {
5531
5606
  t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
5532
- })), Um = /* @__PURE__ */ e(((e, t) => {
5533
- var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = Vm(), a = Hm();
5607
+ })), ih = /* @__PURE__ */ e(((e, t) => {
5608
+ var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = nh(), a = rh();
5534
5609
  e = t.exports = {};
5535
5610
  var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
5536
5611
  ["\\s", 1],
@@ -5544,10 +5619,10 @@ var yp = (e) => {
5544
5619
  a(e, i, t), u[e] = i, c[i] = t, l[i] = r, o[i] = new RegExp(t, n ? "g" : void 0), s[i] = new RegExp(r, n ? "g" : void 0);
5545
5620
  };
5546
5621
  h("NUMERICIDENTIFIER", "0|[1-9]\\d*"), h("NUMERICIDENTIFIERLOOSE", "\\d+"), h("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), h("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), h("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASEIDENTIFIER", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`), h("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), h("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), h("BUILDIDENTIFIER", `${f}+`), h("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), h("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), h("FULL", `^${c[u.FULLPLAIN]}$`), h("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), h("LOOSE", `^${c[u.LOOSEPLAIN]}$`), h("GTLT", "((?:<|>)?=?)"), h("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), h("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), h("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), h("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), h("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), h("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), h("COERCEPLAIN", `(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`), h("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), h("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), h("COERCERTL", c[u.COERCE], !0), h("COERCERTLFULL", c[u.COERCEFULL], !0), h("LONETILDE", "(?:~>?)"), h("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", h("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), h("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), h("LONECARET", "(?:\\^)"), h("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", h("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), h("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), h("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), h("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), h("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", h("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), h("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), h("STAR", "(<|>)?=?\\s*\\*"), h("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), h("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5547
- })), Wm = /* @__PURE__ */ e(((e, t) => {
5622
+ })), ah = /* @__PURE__ */ e(((e, t) => {
5548
5623
  var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
5549
5624
  t.exports = (e) => e ? typeof e == "object" ? e : n : r;
5550
- })), Gm = /* @__PURE__ */ e(((e, t) => {
5625
+ })), oh = /* @__PURE__ */ e(((e, t) => {
5551
5626
  var n = /^[0-9]+$/, r = (e, t) => {
5552
5627
  if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
5553
5628
  let r = n.test(e), i = n.test(t);
@@ -5558,7 +5633,7 @@ var yp = (e) => {
5558
5633
  rcompareIdentifiers: (e, t) => r(t, e)
5559
5634
  };
5560
5635
  })), Z = /* @__PURE__ */ e(((e, t) => {
5561
- var n = Hm(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = Vm(), { safeRe: a, t: o } = Um(), s = Wm(), { compareIdentifiers: c } = Gm();
5636
+ var n = rh(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = nh(), { safeRe: a, t: o } = ih(), s = ah(), { compareIdentifiers: c } = oh();
5562
5637
  t.exports = class e {
5563
5638
  constructor(t, c) {
5564
5639
  if (c = s(c), t instanceof e) {
@@ -5678,7 +5753,7 @@ var yp = (e) => {
5678
5753
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
5679
5754
  }
5680
5755
  };
5681
- })), Km = /* @__PURE__ */ e(((e, t) => {
5756
+ })), sh = /* @__PURE__ */ e(((e, t) => {
5682
5757
  var n = Z();
5683
5758
  t.exports = (e, t, r = !1) => {
5684
5759
  if (e instanceof n) return e;
@@ -5689,19 +5764,19 @@ var yp = (e) => {
5689
5764
  throw e;
5690
5765
  }
5691
5766
  };
5692
- })), qm = /* @__PURE__ */ e(((e, t) => {
5693
- var n = Km();
5767
+ })), ch = /* @__PURE__ */ e(((e, t) => {
5768
+ var n = sh();
5694
5769
  t.exports = (e, t) => {
5695
5770
  let r = n(e, t);
5696
5771
  return r ? r.version : null;
5697
5772
  };
5698
- })), Jm = /* @__PURE__ */ e(((e, t) => {
5699
- var n = Km();
5773
+ })), lh = /* @__PURE__ */ e(((e, t) => {
5774
+ var n = sh();
5700
5775
  t.exports = (e, t) => {
5701
5776
  let r = n(e.trim().replace(/^[=v]+/, ""), t);
5702
5777
  return r ? r.version : null;
5703
5778
  };
5704
- })), Ym = /* @__PURE__ */ e(((e, t) => {
5779
+ })), uh = /* @__PURE__ */ e(((e, t) => {
5705
5780
  var n = Z();
5706
5781
  t.exports = (e, t, r, i, a) => {
5707
5782
  typeof r == "string" && (a = i, i = r, r = void 0);
@@ -5711,8 +5786,8 @@ var yp = (e) => {
5711
5786
  return null;
5712
5787
  }
5713
5788
  };
5714
- })), Xm = /* @__PURE__ */ e(((e, t) => {
5715
- var n = Km();
5789
+ })), dh = /* @__PURE__ */ e(((e, t) => {
5790
+ var n = sh();
5716
5791
  t.exports = (e, t) => {
5717
5792
  let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
5718
5793
  if (a === 0) return null;
@@ -5724,17 +5799,17 @@ var yp = (e) => {
5724
5799
  let u = l ? "pre" : "";
5725
5800
  return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
5726
5801
  };
5727
- })), Zm = /* @__PURE__ */ e(((e, t) => {
5802
+ })), fh = /* @__PURE__ */ e(((e, t) => {
5728
5803
  var n = Z();
5729
5804
  t.exports = (e, t) => new n(e, t).major;
5730
- })), Qm = /* @__PURE__ */ e(((e, t) => {
5805
+ })), ph = /* @__PURE__ */ e(((e, t) => {
5731
5806
  var n = Z();
5732
5807
  t.exports = (e, t) => new n(e, t).minor;
5733
- })), $m = /* @__PURE__ */ e(((e, t) => {
5808
+ })), mh = /* @__PURE__ */ e(((e, t) => {
5734
5809
  var n = Z();
5735
5810
  t.exports = (e, t) => new n(e, t).patch;
5736
- })), eh = /* @__PURE__ */ e(((e, t) => {
5737
- var n = Km();
5811
+ })), hh = /* @__PURE__ */ e(((e, t) => {
5812
+ var n = sh();
5738
5813
  t.exports = (e, t) => {
5739
5814
  let r = n(e, t);
5740
5815
  return r && r.prerelease.length ? r.prerelease : null;
@@ -5742,44 +5817,44 @@ var yp = (e) => {
5742
5817
  })), Q = /* @__PURE__ */ e(((e, t) => {
5743
5818
  var n = Z();
5744
5819
  t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
5745
- })), th = /* @__PURE__ */ e(((e, t) => {
5820
+ })), gh = /* @__PURE__ */ e(((e, t) => {
5746
5821
  var n = Q();
5747
5822
  t.exports = (e, t, r) => n(t, e, r);
5748
- })), nh = /* @__PURE__ */ e(((e, t) => {
5823
+ })), _h = /* @__PURE__ */ e(((e, t) => {
5749
5824
  var n = Q();
5750
5825
  t.exports = (e, t) => n(e, t, !0);
5751
- })), rh = /* @__PURE__ */ e(((e, t) => {
5826
+ })), vh = /* @__PURE__ */ e(((e, t) => {
5752
5827
  var n = Z();
5753
5828
  t.exports = (e, t, r) => {
5754
5829
  let i = new n(e, r), a = new n(t, r);
5755
5830
  return i.compare(a) || i.compareBuild(a);
5756
5831
  };
5757
- })), ih = /* @__PURE__ */ e(((e, t) => {
5758
- var n = rh();
5832
+ })), yh = /* @__PURE__ */ e(((e, t) => {
5833
+ var n = vh();
5759
5834
  t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
5760
- })), ah = /* @__PURE__ */ e(((e, t) => {
5761
- var n = rh();
5835
+ })), bh = /* @__PURE__ */ e(((e, t) => {
5836
+ var n = vh();
5762
5837
  t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
5763
- })), oh = /* @__PURE__ */ e(((e, t) => {
5838
+ })), xh = /* @__PURE__ */ e(((e, t) => {
5764
5839
  var n = Q();
5765
5840
  t.exports = (e, t, r) => n(e, t, r) > 0;
5766
- })), sh = /* @__PURE__ */ e(((e, t) => {
5841
+ })), Sh = /* @__PURE__ */ e(((e, t) => {
5767
5842
  var n = Q();
5768
5843
  t.exports = (e, t, r) => n(e, t, r) < 0;
5769
- })), ch = /* @__PURE__ */ e(((e, t) => {
5844
+ })), Ch = /* @__PURE__ */ e(((e, t) => {
5770
5845
  var n = Q();
5771
5846
  t.exports = (e, t, r) => n(e, t, r) === 0;
5772
- })), lh = /* @__PURE__ */ e(((e, t) => {
5847
+ })), wh = /* @__PURE__ */ e(((e, t) => {
5773
5848
  var n = Q();
5774
5849
  t.exports = (e, t, r) => n(e, t, r) !== 0;
5775
- })), uh = /* @__PURE__ */ e(((e, t) => {
5850
+ })), Th = /* @__PURE__ */ e(((e, t) => {
5776
5851
  var n = Q();
5777
5852
  t.exports = (e, t, r) => n(e, t, r) >= 0;
5778
- })), dh = /* @__PURE__ */ e(((e, t) => {
5853
+ })), Eh = /* @__PURE__ */ e(((e, t) => {
5779
5854
  var n = Q();
5780
5855
  t.exports = (e, t, r) => n(e, t, r) <= 0;
5781
- })), fh = /* @__PURE__ */ e(((e, t) => {
5782
- var n = ch(), r = lh(), i = oh(), a = uh(), o = sh(), s = dh();
5856
+ })), Dh = /* @__PURE__ */ e(((e, t) => {
5857
+ var n = Ch(), r = wh(), i = xh(), a = Th(), o = Sh(), s = Eh();
5783
5858
  t.exports = (e, t, c, l) => {
5784
5859
  switch (t) {
5785
5860
  case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
@@ -5795,8 +5870,8 @@ var yp = (e) => {
5795
5870
  default: throw TypeError(`Invalid operator: ${t}`);
5796
5871
  }
5797
5872
  };
5798
- })), ph = /* @__PURE__ */ e(((e, t) => {
5799
- var n = Z(), r = Km(), { safeRe: i, t: a } = Um();
5873
+ })), Oh = /* @__PURE__ */ e(((e, t) => {
5874
+ var n = Z(), r = sh(), { safeRe: i, t: a } = ih();
5800
5875
  t.exports = (e, t) => {
5801
5876
  if (e instanceof n) return e;
5802
5877
  if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
@@ -5812,7 +5887,7 @@ var yp = (e) => {
5812
5887
  let s = o[2];
5813
5888
  return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
5814
5889
  };
5815
- })), mh = /* @__PURE__ */ e(((e, t) => {
5890
+ })), kh = /* @__PURE__ */ e(((e, t) => {
5816
5891
  t.exports = class {
5817
5892
  constructor() {
5818
5893
  this.max = 1e3, this.map = /* @__PURE__ */ new Map();
@@ -5902,7 +5977,7 @@ var yp = (e) => {
5902
5977
  return !1;
5903
5978
  }
5904
5979
  };
5905
- var r = new (mh())(), i = Wm(), a = hh(), o = Hm(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = Um(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = Vm(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
5980
+ var r = new (kh())(), i = ah(), a = Ah(), o = rh(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = ih(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = nh(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
5906
5981
  let n = !0, r = e.slice(), i = r.pop();
5907
5982
  for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
5908
5983
  return n;
@@ -5940,7 +6015,7 @@ var yp = (e) => {
5940
6015
  }
5941
6016
  return !0;
5942
6017
  };
5943
- })), hh = /* @__PURE__ */ e(((e, t) => {
6018
+ })), Ah = /* @__PURE__ */ e(((e, t) => {
5944
6019
  var n = Symbol("SemVer ANY");
5945
6020
  t.exports = class e {
5946
6021
  static get ANY() {
@@ -5975,8 +6050,8 @@ var yp = (e) => {
5975
6050
  return this.operator === "" ? this.value === "" ? !0 : new l(t.value, n).test(this.value) : t.operator === "" ? t.value === "" ? !0 : new l(this.value, n).test(t.semver) : (n = r(n), n.includePrerelease && (this.value === "<0.0.0-0" || t.value === "<0.0.0-0") || !n.includePrerelease && (this.value.startsWith("<0.0.0") || t.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && t.operator.startsWith(">") || this.operator.startsWith("<") && t.operator.startsWith("<") || this.semver.version === t.semver.version && this.operator.includes("=") && t.operator.includes("=") || o(this.semver, "<", t.semver, n) && this.operator.startsWith(">") && t.operator.startsWith("<") || o(this.semver, ">", t.semver, n) && this.operator.startsWith("<") && t.operator.startsWith(">")));
5976
6051
  }
5977
6052
  };
5978
- var r = Wm(), { safeRe: i, t: a } = Um(), o = fh(), s = Hm(), c = Z(), l = $();
5979
- })), gh = /* @__PURE__ */ e(((e, t) => {
6053
+ var r = ah(), { safeRe: i, t: a } = ih(), o = Dh(), s = rh(), c = Z(), l = $();
6054
+ })), jh = /* @__PURE__ */ e(((e, t) => {
5980
6055
  var n = $();
5981
6056
  t.exports = (e, t, r) => {
5982
6057
  try {
@@ -5986,10 +6061,10 @@ var yp = (e) => {
5986
6061
  }
5987
6062
  return t.test(e);
5988
6063
  };
5989
- })), _h = /* @__PURE__ */ e(((e, t) => {
6064
+ })), Mh = /* @__PURE__ */ e(((e, t) => {
5990
6065
  var n = $();
5991
6066
  t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
5992
- })), vh = /* @__PURE__ */ e(((e, t) => {
6067
+ })), Nh = /* @__PURE__ */ e(((e, t) => {
5993
6068
  var n = Z(), r = $();
5994
6069
  t.exports = (e, t, i) => {
5995
6070
  let a = null, o = null, s = null;
@@ -6002,7 +6077,7 @@ var yp = (e) => {
6002
6077
  s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
6003
6078
  }), a;
6004
6079
  };
6005
- })), yh = /* @__PURE__ */ e(((e, t) => {
6080
+ })), Ph = /* @__PURE__ */ e(((e, t) => {
6006
6081
  var n = Z(), r = $();
6007
6082
  t.exports = (e, t, i) => {
6008
6083
  let a = null, o = null, s = null;
@@ -6015,8 +6090,8 @@ var yp = (e) => {
6015
6090
  s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
6016
6091
  }), a;
6017
6092
  };
6018
- })), bh = /* @__PURE__ */ e(((e, t) => {
6019
- var n = Z(), r = $(), i = oh();
6093
+ })), Fh = /* @__PURE__ */ e(((e, t) => {
6094
+ var n = Z(), r = $(), i = xh();
6020
6095
  t.exports = (e, t) => {
6021
6096
  e = new r(e, t);
6022
6097
  let a = new n("0.0.0");
@@ -6040,7 +6115,7 @@ var yp = (e) => {
6040
6115
  }
6041
6116
  return a && e.test(a) ? a : null;
6042
6117
  };
6043
- })), xh = /* @__PURE__ */ e(((e, t) => {
6118
+ })), Ih = /* @__PURE__ */ e(((e, t) => {
6044
6119
  var n = $();
6045
6120
  t.exports = (e, t) => {
6046
6121
  try {
@@ -6049,8 +6124,8 @@ var yp = (e) => {
6049
6124
  return null;
6050
6125
  }
6051
6126
  };
6052
- })), Sh = /* @__PURE__ */ e(((e, t) => {
6053
- var n = Z(), r = hh(), { ANY: i } = r, a = $(), o = gh(), s = oh(), c = sh(), l = dh(), u = uh();
6127
+ })), Lh = /* @__PURE__ */ e(((e, t) => {
6128
+ var n = Z(), r = Ah(), { ANY: i } = r, a = $(), o = jh(), s = xh(), c = Sh(), l = Eh(), u = Th();
6054
6129
  t.exports = (e, t, d, f) => {
6055
6130
  e = new n(e, f), t = new a(t, f);
6056
6131
  let p, m, h, g, _;
@@ -6072,17 +6147,17 @@ var yp = (e) => {
6072
6147
  }
6073
6148
  return !0;
6074
6149
  };
6075
- })), Ch = /* @__PURE__ */ e(((e, t) => {
6076
- var n = Sh();
6150
+ })), Rh = /* @__PURE__ */ e(((e, t) => {
6151
+ var n = Lh();
6077
6152
  t.exports = (e, t, r) => n(e, t, ">", r);
6078
- })), wh = /* @__PURE__ */ e(((e, t) => {
6079
- var n = Sh();
6153
+ })), zh = /* @__PURE__ */ e(((e, t) => {
6154
+ var n = Lh();
6080
6155
  t.exports = (e, t, r) => n(e, t, "<", r);
6081
- })), Th = /* @__PURE__ */ e(((e, t) => {
6156
+ })), Bh = /* @__PURE__ */ e(((e, t) => {
6082
6157
  var n = $();
6083
6158
  t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
6084
- })), Eh = /* @__PURE__ */ e(((e, t) => {
6085
- var n = gh(), r = Q();
6159
+ })), Vh = /* @__PURE__ */ e(((e, t) => {
6160
+ var n = jh(), r = Q();
6086
6161
  t.exports = (e, t, i) => {
6087
6162
  let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
6088
6163
  for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
@@ -6092,8 +6167,8 @@ var yp = (e) => {
6092
6167
  let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
6093
6168
  return u.length < d.length ? u : t;
6094
6169
  };
6095
- })), Dh = /* @__PURE__ */ e(((e, t) => {
6096
- var n = $(), r = hh(), { ANY: i } = r, a = gh(), o = Q(), s = (e, t, r = {}) => {
6170
+ })), Hh = /* @__PURE__ */ e(((e, t) => {
6171
+ var n = $(), r = Ah(), { ANY: i } = r, a = jh(), o = Q(), s = (e, t, r = {}) => {
6097
6172
  if (e === t) return !0;
6098
6173
  e = new n(e, r), t = new n(t, r);
6099
6174
  let i = !1;
@@ -6151,46 +6226,46 @@ var yp = (e) => {
6151
6226
  return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
6152
6227
  };
6153
6228
  t.exports = s;
6154
- })), Oh = (/* @__PURE__ */ e(((e, t) => {
6155
- var n = Um(), r = Vm(), i = Z(), a = Gm();
6229
+ })), Uh = (/* @__PURE__ */ e(((e, t) => {
6230
+ var n = ih(), r = nh(), i = Z(), a = oh();
6156
6231
  t.exports = {
6157
- parse: Km(),
6158
- valid: qm(),
6159
- clean: Jm(),
6160
- inc: Ym(),
6161
- diff: Xm(),
6162
- major: Zm(),
6163
- minor: Qm(),
6164
- patch: $m(),
6165
- prerelease: eh(),
6232
+ parse: sh(),
6233
+ valid: ch(),
6234
+ clean: lh(),
6235
+ inc: uh(),
6236
+ diff: dh(),
6237
+ major: fh(),
6238
+ minor: ph(),
6239
+ patch: mh(),
6240
+ prerelease: hh(),
6166
6241
  compare: Q(),
6167
- rcompare: th(),
6168
- compareLoose: nh(),
6169
- compareBuild: rh(),
6170
- sort: ih(),
6171
- rsort: ah(),
6172
- gt: oh(),
6173
- lt: sh(),
6174
- eq: ch(),
6175
- neq: lh(),
6176
- gte: uh(),
6177
- lte: dh(),
6178
- cmp: fh(),
6179
- coerce: ph(),
6180
- Comparator: hh(),
6242
+ rcompare: gh(),
6243
+ compareLoose: _h(),
6244
+ compareBuild: vh(),
6245
+ sort: yh(),
6246
+ rsort: bh(),
6247
+ gt: xh(),
6248
+ lt: Sh(),
6249
+ eq: Ch(),
6250
+ neq: wh(),
6251
+ gte: Th(),
6252
+ lte: Eh(),
6253
+ cmp: Dh(),
6254
+ coerce: Oh(),
6255
+ Comparator: Ah(),
6181
6256
  Range: $(),
6182
- satisfies: gh(),
6183
- toComparators: _h(),
6184
- maxSatisfying: vh(),
6185
- minSatisfying: yh(),
6186
- minVersion: bh(),
6187
- validRange: xh(),
6188
- outside: Sh(),
6189
- gtr: Ch(),
6190
- ltr: wh(),
6191
- intersects: Th(),
6192
- simplifyRange: Eh(),
6193
- subset: Dh(),
6257
+ satisfies: jh(),
6258
+ toComparators: Mh(),
6259
+ maxSatisfying: Nh(),
6260
+ minSatisfying: Ph(),
6261
+ minVersion: Fh(),
6262
+ validRange: Ih(),
6263
+ outside: Lh(),
6264
+ gtr: Rh(),
6265
+ ltr: zh(),
6266
+ intersects: Bh(),
6267
+ simplifyRange: Vh(),
6268
+ subset: Hh(),
6194
6269
  SemVer: i,
6195
6270
  re: n.re,
6196
6271
  src: n.src,
@@ -6200,15 +6275,15 @@ var yp = (e) => {
6200
6275
  compareIdentifiers: a.compareIdentifiers,
6201
6276
  rcompareIdentifiers: a.rcompareIdentifiers
6202
6277
  };
6203
- })))(), kh = (e, t) => Ah(t) ? t.hostnames.includes(new URL(e).hostname) : jh(t) ? !!e.match(t.regexp) : !1, Ah = (e) => Am.safeParse(e).success, jh = (e) => jm.safeParse(e).success, Mh = (e, t) => t ? (0, Oh.satisfies)(e, t) : !0, Nh = (e, t, n) => Mh(t, n.libraryVersionRange) && kh(e, n.matcher), Ph = (e, t) => e.siteRegistrations.filter((e) => Nh(t, Dm(), e)), Fh = (e, t) => Ph(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => Rm(e) && e in Tm).map((e) => ({
6204
- parser: Tm[e],
6278
+ })))(), Wh = (e, t) => Gh(t) ? t.hostnames.includes(new URL(e).hostname) : Kh(t) ? !!e.match(t.regexp) : !1, Gh = (e) => Gm.safeParse(e).success, Kh = (e) => Km.safeParse(e).success, qh = (e, t) => t ? (0, Uh.satisfies)(e, t) : !0, Jh = (e, t, n) => qh(t, n.libraryVersionRange) && Wh(e, n.matcher), Yh = (e, t) => e.siteRegistrations.filter((e) => Jh(t, Hm(), e)), Xh = (e, t) => Yh(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => $m(e) && e in Bm).map((e) => ({
6279
+ parser: Bm[e],
6205
6280
  parserType: e,
6206
6281
  name: t
6207
- }))), Ih = (e, t) => {
6208
- let n = Fh(e, t.url);
6282
+ }))), Zh = (e, t) => {
6283
+ let n = Xh(e, t.url);
6209
6284
  for (let { parser: e, parserType: r, name: i } of n) {
6210
6285
  let n = e(t);
6211
- if (Jc(n) || Yc(n) || Xc(n)) return {
6286
+ if (qc(n) || Jc(n) || Yc(n)) return {
6212
6287
  ...n,
6213
6288
  meta: {
6214
6289
  parserName: i,
@@ -6218,26 +6293,26 @@ var yp = (e) => {
6218
6293
  };
6219
6294
  }
6220
6295
  return {
6221
- ...cc(t),
6296
+ ...sc(t),
6222
6297
  meta: {
6223
6298
  parserName: null,
6224
6299
  parserType: X.NoResourceFound,
6225
6300
  referrer: t.url
6226
6301
  }
6227
6302
  };
6228
- }, Lh = (e, t) => {
6303
+ }, Qh = (e, t) => {
6229
6304
  switch (t) {
6230
6305
  case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
6231
6306
  default: return new URL(`https://${e}.rl.talis.com`);
6232
6307
  }
6233
- }, Rh = (e, t) => {
6234
- let n = Lh(e, t);
6308
+ }, $h = (e, t) => {
6309
+ let n = Qh(e, t);
6235
6310
  return new URL("/ui/forms/bookmarklet.html", n);
6236
- }, zh = (e, t, n) => {
6311
+ }, eg = (e, t, n) => {
6237
6312
  let r = To(t);
6238
6313
  r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
6239
6314
  let i = new URL(e.toString());
6240
6315
  return i.search = r.toString(), i;
6241
6316
  };
6242
6317
  //#endregion
6243
- export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, Am as HostnamesMatcherSchema, io as JournalGenresSchema, bo as NON_OPENURL_PROPERTIES, oo as NonOpenUrlPropertiesSchema, Go as NothingParsedResultSchema, yo as OPENURL_KEYS, lo as OpenUrlAudioVisualResourceSchema, so as OpenUrlBookResourceSchema, fo as OpenUrlDocumentResourceSchema, uo as OpenUrlImageResourceSchema, co as OpenUrlJournalResourceSchema, ao as OpenUrlResourceSchema, qo as OpenUrlResultSchema, po as OpenUrlWebpageResourceSchema, Tm as PARSERS, Pm as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, km as REGISTRY, jm as RegExpMatcherSchema, zm as ResourceDataSchema, mo as ResourceSchema, Nm as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, Mm as UrlMatcherSchema, Jo as Z3988SearchResultSchema, Ho as convertCustomerListToTenantRegistry, R as createAudioVisual, I as createBook, go as createDocument, ho as createImage, L as createJournal, _o as createWebpage, Qo as directLinkOnly, Do as fromOpenUrl, Rh as getBaseBookmarkingUrl, Dm as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, qc as isDirectLinkOnlyResult, ko as isGenre, Zc as isNothingParsedResult, Jc as isOpenUrlResult, Fm as isParserRegistry, Rm as isParserType, Kc as isParsingMetadata, Fo as isParsingRequest, Gc as isParsingResponse, Wc as isParsingResult, Bm as isResourceData, Im as isSiteRegistration, Xc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, Lm as isUrlMatcher, Yc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, Ih as parseResource, es as summonSearchResult, zh as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };
6318
+ export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, Gm as HostnamesMatcherSchema, io as JournalGenresSchema, bo as NON_OPENURL_PROPERTIES, oo as NonOpenUrlPropertiesSchema, Go as NothingParsedResultSchema, yo as OPENURL_KEYS, lo as OpenUrlAudioVisualResourceSchema, so as OpenUrlBookResourceSchema, fo as OpenUrlDocumentResourceSchema, uo as OpenUrlImageResourceSchema, co as OpenUrlJournalResourceSchema, ao as OpenUrlResourceSchema, qo as OpenUrlResultSchema, po as OpenUrlWebpageResourceSchema, Bm as PARSERS, Ym as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, Wm as REGISTRY, Km as RegExpMatcherSchema, eh as ResourceDataSchema, mo as ResourceSchema, Jm as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, qm as UrlMatcherSchema, Jo as Z3988SearchResultSchema, Ho as convertCustomerListToTenantRegistry, R as createAudioVisual, I as createBook, go as createDocument, ho as createImage, L as createJournal, _o as createWebpage, Qo as directLinkOnly, Do as fromOpenUrl, $h as getBaseBookmarkingUrl, Hm as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Kc as isDirectLinkOnlyResult, ko as isGenre, Xc as isNothingParsedResult, qc as isOpenUrlResult, Xm as isParserRegistry, $m as isParserType, Gc as isParsingMetadata, Fo as isParsingRequest, Wc as isParsingResponse, Uc as isParsingResult, th as isResourceData, Zm as isSiteRegistration, Yc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, Qm as isUrlMatcher, Jc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, Zh as parseResource, es as summonSearchResult, eg as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };