@talisdev/bibliographic-resource-parsers-lib 5.46.0 → 5.47.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.
@@ -3392,17 +3392,17 @@ var ts = (e) => {
3392
3392
  case Ks.Guideline: return Vs(t, e);
3393
3393
  case void 0: return z();
3394
3394
  }
3395
- }, W = j({ "@context": O() }), Xs = (e) => W.safeParse(e).success, Zs = "script[type=\"application/ld+json\"]", Qs = (e) => Array.from(e.querySelectorAll(Zs)), $s = (e) => e.querySelector(Zs), ec = (e) => {
3395
+ }, Xs = j({ "@context": O() }), Zs = (e) => Xs.safeParse(e).success, Qs = "script[type=\"application/ld+json\"]", $s = (e) => Array.from(e.querySelectorAll(Qs)), ec = (e) => e.querySelector(Qs), tc = (e) => {
3396
3396
  let t = e.textContent;
3397
3397
  if (!t) return null;
3398
3398
  try {
3399
3399
  let e = JSON.parse(t);
3400
- if (Xs(e)) return e;
3400
+ if (Zs(e)) return e;
3401
3401
  } catch {
3402
3402
  return null;
3403
3403
  }
3404
3404
  return null;
3405
- }, tc = j({
3405
+ }, nc = j({
3406
3406
  "@id": O(),
3407
3407
  "@type": O(),
3408
3408
  author: j({ "@id": O() }).optional(),
@@ -3413,33 +3413,33 @@ var ts = (e) => {
3413
3413
  isPartOf: j({ "@id": O() }).optional(),
3414
3414
  name: O().optional(),
3415
3415
  url: O().optional()
3416
- }), nc = W.extend({ "@graph": A(tc) }), rc = (e) => nc.safeParse(e).success, ic = (e) => {
3417
- let t = Qs(e);
3416
+ }), rc = Xs.extend({ "@graph": A(nc) }), ic = (e) => rc.safeParse(e).success, ac = (e) => {
3417
+ let t = $s(e);
3418
3418
  if (t.length === 0) return null;
3419
- let n = t.map(ec).filter(rc).map((e) => e["@graph"]);
3419
+ let n = t.map(tc).filter(ic).map((e) => e["@graph"]);
3420
3420
  return n.length === 1 ? n[0] : null;
3421
- }, ac = (e, t) => e.find((e) => e["@type"] === t) ?? null, oc = (e, t) => e.find((e) => e["@id"] === t) ?? null, sc = (e) => {
3422
- let t = ac(e, "WebPage");
3421
+ }, oc = (e, t) => e.find((e) => e["@type"] === t) ?? null, sc = (e, t) => e.find((e) => e["@id"] === t) ?? null, cc = (e) => {
3422
+ let t = oc(e, "WebPage");
3423
3423
  if (!t) return null;
3424
- let n = t.author ? oc(e, t.author["@id"]) : void 0;
3424
+ let n = t.author ? sc(e, t.author["@id"]) : void 0;
3425
3425
  return _o({
3426
3426
  au: n?.name ? [n.name] : void 0,
3427
3427
  date: t.datePublished,
3428
3428
  title: t.name
3429
3429
  });
3430
- }, cc = ({ document: e }) => {
3431
- let t = ic(e);
3430
+ }, lc = ({ document: e }) => {
3431
+ let t = ac(e);
3432
3432
  return t ? {
3433
3433
  bookmarkingWorkflowUrl: null,
3434
- resource: sc(t)
3434
+ resource: cc(t)
3435
3435
  } : z();
3436
- }, lc = () => z(), uc = /* @__PURE__ */ function(e) {
3436
+ }, uc = () => z(), dc = /* @__PURE__ */ function(e) {
3437
3437
  return e.Journal = "journal", e.Article = "article", e;
3438
- }(uc || {}), dc = (e) => {
3438
+ }(dc || {}), fc = (e) => {
3439
3439
  let { pathname: t } = new URL(e);
3440
- if (t.startsWith("/toc/")) return uc.Journal;
3441
- if (t.startsWith("/article/")) return uc.Article;
3442
- }, fc = (e) => {
3440
+ if (t.startsWith("/toc/")) return dc.Journal;
3441
+ if (t.startsWith("/article/")) return dc.Article;
3442
+ }, pc = (e) => {
3443
3443
  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();
3444
3444
  return B(L(F.Journal, {
3445
3445
  pub: a,
@@ -3447,14 +3447,14 @@ var ts = (e) => {
3447
3447
  issn: r,
3448
3448
  eissn: i
3449
3449
  }));
3450
- }, pc = (e) => {
3450
+ }, mc = (e) => {
3451
3451
  let t, n, r = H(e, "name", "citation_issn");
3452
3452
  return r.length === 2 ? (t = r[1], n = r[0]) : t = r[0], {
3453
3453
  eissn: t,
3454
3454
  issn: n
3455
3455
  };
3456
- }, mc = (e) => {
3457
- 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 } = pc(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");
3456
+ }, hc = (e) => {
3457
+ 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 } = mc(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");
3458
3458
  return B(L(F.Article, {
3459
3459
  jtitle: t,
3460
3460
  atitle: n,
@@ -3469,13 +3469,13 @@ var ts = (e) => {
3469
3469
  spage: d,
3470
3470
  epage: f
3471
3471
  }));
3472
- }, hc = ({ document: e, url: t }) => {
3473
- switch (dc(t)) {
3474
- case uc.Journal: return fc(e);
3475
- case uc.Article: return mc(e);
3472
+ }, gc = ({ document: e, url: t }) => {
3473
+ switch (fc(t)) {
3474
+ case dc.Journal: return pc(e);
3475
+ case dc.Article: return hc(e);
3476
3476
  case void 0: return z();
3477
3477
  }
3478
- }, gc = (e) => {
3478
+ }, _c = (e) => {
3479
3479
  let t = V(e, "name", "pbContext");
3480
3480
  if (!t) return U.None;
3481
3481
  let n = ds(t);
@@ -3484,23 +3484,23 @@ var ts = (e) => {
3484
3484
  case "Table of Contents": return U.Journal;
3485
3485
  default: return U.None;
3486
3486
  }
3487
- }, _c = (e) => {
3487
+ }, vc = (e) => {
3488
3488
  let t = e.querySelector("meta[property=\"article:author\"]")?.getAttribute("content")?.split(",").map((e) => e.trim());
3489
3489
  return t && t.length > 0 ? t : void 0;
3490
- }, vc = (e) => {
3490
+ }, yc = (e) => {
3491
3491
  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);
3492
3492
  r && t.set("issn", r[1]);
3493
3493
  let i = /Online ISSN:\s(\d{4}-\d{3}(?:\d|X))/.exec(n);
3494
3494
  return i && t.set("eissn", i[1]), t;
3495
- }, yc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationVolume\"] > span[property=\"volumeNumber\"]")?.textContent ?? void 0, bc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationIssue\"] > span[property=\"issueNumber\"]")?.textContent ?? void 0, xc = (e) => e.querySelector("meta[name=\"dc.Identifier\"][scheme=\"doi\"]")?.getAttribute("content") ?? void 0, Sc = (e) => e.querySelector("h1")?.textContent ?? void 0, Cc = (e) => {
3495
+ }, bc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationVolume\"] > span[property=\"volumeNumber\"]")?.textContent ?? void 0, xc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationIssue\"] > span[property=\"issueNumber\"]")?.textContent ?? void 0, Sc = (e) => e.querySelector("meta[name=\"dc.Identifier\"][scheme=\"doi\"]")?.getAttribute("content") ?? void 0, Cc = (e) => e.querySelector("h1")?.textContent ?? void 0, wc = (e) => {
3496
3496
  let t = /* @__PURE__ */ new Map(), n = e.querySelector("h2.heading-m")?.textContent, r = n?.match(/Issue\s+(\d+(?:-\d+)?)/);
3497
3497
  r && t.set("issue", r[1]);
3498
3498
  let i = n?.match(/Volume\s+(\d+)/);
3499
3499
  i && t.set("volume", i[1]);
3500
3500
  let a = n?.match(/(\d{4})$/);
3501
3501
  return a && t.set("date", a[1]), t;
3502
- }, wc = (e) => {
3503
- let t = _c(e.document), n = V(e.document, "name", "dc.Date"), r = xc(e.document), i = vc(e.document), a = i.get("issn"), o = i.get("eissn"), s = bc(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 = yc(e.document);
3502
+ }, Tc = (e) => {
3503
+ let t = vc(e.document), n = V(e.document, "name", "dc.Date"), r = Sc(e.document), i = yc(e.document), a = i.get("issn"), o = i.get("eissn"), s = xc(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 = bc(e.document);
3504
3504
  return L(F.Article, {
3505
3505
  au: t,
3506
3506
  date: n,
@@ -3513,8 +3513,8 @@ var ts = (e) => {
3513
3513
  volume: d,
3514
3514
  doi: r
3515
3515
  });
3516
- }, Tc = (e) => {
3517
- let t = vc(e.document), n = t.get("issn"), r = t.get("eissn"), i = Sc(e.document), a = Cc(e.document), o = a.get("issue"), s = a.get("volume"), c = a.get("date");
3516
+ }, Ec = (e) => {
3517
+ let t = yc(e.document), n = t.get("issn"), r = t.get("eissn"), i = Cc(e.document), a = wc(e.document), o = a.get("issue"), s = a.get("volume"), c = a.get("date");
3518
3518
  return L(F.Journal, {
3519
3519
  eissn: r,
3520
3520
  issn: n,
@@ -3524,33 +3524,33 @@ var ts = (e) => {
3524
3524
  volume: s,
3525
3525
  date: c
3526
3526
  });
3527
- }, Ec = (e) => {
3528
- switch (gc(e.document)) {
3529
- case U.Article: return B(wc(e));
3530
- case U.Journal: return B(Tc(e));
3527
+ }, Dc = (e) => {
3528
+ switch (_c(e.document)) {
3529
+ case U.Article: return B(Tc(e));
3530
+ case U.Journal: return B(Ec(e));
3531
3531
  default: return z();
3532
3532
  }
3533
- }, Dc = (e) => {
3533
+ }, Oc = (e) => {
3534
3534
  let t = V(e, "name", "citation_type"), n = V(e, "name", "citation_article_type");
3535
3535
  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;
3536
- }, Oc = (e) => V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, kc = (e) => {
3536
+ }, kc = (e) => V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, Ac = (e) => {
3537
3537
  let t = Array.from(e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")), n = /* @__PURE__ */ new Map();
3538
3538
  for (let e of t) {
3539
3539
  let t = e.querySelector("h3")?.textContent, r = e.querySelector("p")?.textContent;
3540
3540
  t && r && n.set(t, r);
3541
3541
  }
3542
3542
  return n;
3543
- }, Ac = (e, t) => {
3543
+ }, jc = (e, t) => {
3544
3544
  let n = Array.from(e.querySelectorAll(t)).map((e) => e.textContent).filter((e) => !!e);
3545
3545
  return n.length > 0 ? n : void 0;
3546
- }, jc = (e) => {
3546
+ }, Mc = (e) => {
3547
3547
  let t = e.querySelector(".js-issn")?.textContent;
3548
3548
  if (t) return t.replace("Online ISSN: ", "");
3549
- }, Mc = (e) => {
3549
+ }, Nc = (e) => {
3550
3550
  let t = e.get("DOI");
3551
3551
  if (t) return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
3552
- }, Nc = (e) => {
3553
- let t = kc(e), n = V(e, "property", "og:title"), r = V(e, "property", "og:book:isbn"), i = t.get("Published"), a = Ac(e, ".authors-container .author-detail h3"), o = Oc(e) ?? Mc(t);
3552
+ }, Pc = (e) => {
3553
+ let t = Ac(e), n = V(e, "property", "og:title"), r = V(e, "property", "og:book:isbn"), i = t.get("Published"), a = jc(e, ".authors-container .author-detail h3"), o = kc(e) ?? Nc(t);
3554
3554
  return I(F.Book, {
3555
3555
  au: a,
3556
3556
  date: i,
@@ -3558,8 +3558,8 @@ var ts = (e) => {
3558
3558
  isbn: r,
3559
3559
  title: n
3560
3560
  });
3561
- }, Pc = (e) => {
3562
- let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i = Ac(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 = Oc(e), l = V(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3561
+ }, Fc = (e) => {
3562
+ let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i = jc(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 = kc(e), l = V(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3563
3563
  return I(F.Bookitem, {
3564
3564
  au: i,
3565
3565
  btitle: l,
@@ -3571,8 +3571,8 @@ var ts = (e) => {
3571
3571
  spage: a,
3572
3572
  title: t
3573
3573
  });
3574
- }, Fc = (e) => {
3575
- let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i = Ac(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 = Oc(e), u = V(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3574
+ }, Ic = (e) => {
3575
+ let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i = jc(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 = kc(e), u = V(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3576
3576
  return L(F.Article, {
3577
3577
  au: i,
3578
3578
  jtitle: u,
@@ -3585,36 +3585,36 @@ var ts = (e) => {
3585
3585
  title: t,
3586
3586
  volume: c
3587
3587
  });
3588
- }, Ic = (e) => {
3589
- let t = e.getElementById("journal-title")?.textContent ?? void 0, n = jc(e);
3588
+ }, Lc = (e) => {
3589
+ let t = e.getElementById("journal-title")?.textContent ?? void 0, n = Mc(e);
3590
3590
  return L(F.Journal, {
3591
3591
  issn: n,
3592
3592
  title: t
3593
3593
  });
3594
- }, Lc = ({ document: e }) => {
3595
- switch (Dc(e)) {
3596
- case U.Book: return B(Nc(e));
3597
- case U.Chapter: return B(Pc(e));
3598
- case U.Article: return B(Fc(e));
3599
- case U.Journal: return B(Ic(e));
3594
+ }, Rc = ({ document: e }) => {
3595
+ switch (Oc(e)) {
3596
+ case U.Book: return B(Pc(e));
3597
+ case U.Chapter: return B(Fc(e));
3598
+ case U.Article: return B(Ic(e));
3599
+ case U.Journal: return B(Lc(e));
3600
3600
  default: return z();
3601
3601
  }
3602
- }, Rc = (e) => {
3602
+ }, zc = (e) => {
3603
3603
  let t = V(e, "name", "pbContext");
3604
3604
  return t && ds(t).has("article") ? U.Article : U.Journal;
3605
- }, zc = (e) => {
3605
+ }, Bc = (e) => {
3606
3606
  let t = e.querySelector(".itemPageRangeHistory");
3607
3607
  if (!t) return;
3608
3608
  let n = Array.from(t.childNodes).find((e) => e.textContent?.trim().startsWith("Page"));
3609
3609
  if (n) return n.textContent?.replace(/Pages?/, "").trim() ?? void 0;
3610
- }, Bc = (e) => {
3610
+ }, Vc = (e) => {
3611
3611
  let t = e.querySelector(".issue-heading")?.textContent;
3612
3612
  if (t) return t.split(",")[0]?.replace("Volume", "").trim();
3613
- }, Vc = (e) => {
3613
+ }, Hc = (e) => {
3614
3614
  let t = e.querySelector(".issue-heading .nav-toc-list")?.textContent;
3615
3615
  if (t) return t.replace("Issue", "").trim();
3616
- }, Hc = (e) => {
3617
- 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 = Bc(e), c = Vc(e), l = zc(e), u = l?.includes("-") ? l.split("-")[0] : l, d = l?.includes("-") ? l.split("-")[1] : l;
3616
+ }, Uc = (e) => {
3617
+ 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 = Vc(e), c = Hc(e), l = Bc(e), u = l?.includes("-") ? l.split("-")[0] : l, d = l?.includes("-") ? l.split("-")[1] : l;
3618
3618
  return L(F.Article, {
3619
3619
  au: o,
3620
3620
  jtitle: a,
@@ -3627,45 +3627,45 @@ var ts = (e) => {
3627
3627
  title: t,
3628
3628
  volume: s
3629
3629
  });
3630
- }, Uc = (e) => {
3630
+ }, Wc = (e) => {
3631
3631
  let t = V(e, "property", "og:title"), n = V(e, "name", "publication_doi");
3632
3632
  return L(F.Journal, {
3633
3633
  doi: n,
3634
3634
  title: t
3635
3635
  });
3636
- }, Wc = ({ document: e }) => {
3637
- switch (Rc(e)) {
3638
- case U.Article: return B(Hc(e));
3639
- case U.Journal: return B(Uc(e));
3636
+ }, Gc = ({ document: e }) => {
3637
+ switch (zc(e)) {
3638
+ case U.Article: return B(Uc(e));
3639
+ case U.Journal: return B(Wc(e));
3640
3640
  default: return z();
3641
3641
  }
3642
- }, Gc = (e) => Xo.safeParse(e).success, Kc = (e) => Zo.safeParse(e).success, qc = (e) => Wo.safeParse(e).success;
3643
- function Jc(e) {
3642
+ }, Kc = (e) => Xo.safeParse(e).success, qc = (e) => Zo.safeParse(e).success, Jc = (e) => Wo.safeParse(e).success;
3643
+ function Yc(e) {
3644
3644
  return Ko.safeParse(e).success;
3645
3645
  }
3646
- function Yc(e) {
3646
+ function Xc(e) {
3647
3647
  return qo.safeParse(e).success;
3648
3648
  }
3649
- function Xc(e) {
3649
+ function Zc(e) {
3650
3650
  return Jo.safeParse(e).success;
3651
3651
  }
3652
- function Zc(e) {
3652
+ function Qc(e) {
3653
3653
  return Yo.safeParse(e).success;
3654
3654
  }
3655
- function Qc(e) {
3655
+ function $c(e) {
3656
3656
  return Go.safeParse(e).success;
3657
3657
  }
3658
3658
  //#endregion
3659
3659
  //#region src/parsers/site/vu-find-parser.ts
3660
- var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector("span[property=\"identifier\"]")?.textContent ?? void 0, el = (e) => {
3660
+ var el = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector("span[property=\"identifier\"]")?.textContent ?? void 0, tl = (e) => {
3661
3661
  let t = /Record\/(\d+)/.exec(e);
3662
3662
  if (t && t.length > 1) return t[1];
3663
- }, tl = (e) => {
3663
+ }, nl = (e) => {
3664
3664
  let { url: t, document: n } = e, r = ns(e);
3665
- if (!Yc(r)) return r;
3666
- let i = $c(n);
3667
- return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid = el(t), r;
3668
- }, nl = W.extend({
3665
+ if (!Xc(r)) return r;
3666
+ let i = el(n);
3667
+ return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid = tl(t), r;
3668
+ }, rl = Xs.extend({
3669
3669
  "@type": N("VideoObject"),
3670
3670
  name: O(),
3671
3671
  author: O(),
@@ -3674,13 +3674,13 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3674
3674
  uploadDate: O(),
3675
3675
  duration: O(),
3676
3676
  thumbnailUrl: A(O())
3677
- }), rl = (e) => nl.safeParse(e).success, il = (e) => {
3678
- let t = Qs(e);
3677
+ }), il = (e) => rl.safeParse(e).success, al = (e) => {
3678
+ let t = $s(e);
3679
3679
  if (t.length === 0) return null;
3680
- let n = t.map(ec).filter(rl);
3680
+ let n = t.map(tc).filter(il);
3681
3681
  return n.length === 1 ? n[0] : null;
3682
- }, al = ({ url: e, document: t }) => {
3683
- let n = il(t);
3682
+ }, ol = ({ url: e, document: t }) => {
3683
+ let n = al(t);
3684
3684
  return n ? {
3685
3685
  bookmarkingWorkflowUrl: null,
3686
3686
  resource: R({
@@ -3690,17 +3690,17 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3690
3690
  uri: e
3691
3691
  })
3692
3692
  } : z();
3693
- }, ol = (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, sl = (e) => {
3693
+ }, sl = (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, cl = (e) => {
3694
3694
  let t = e.editor?.map((e) => e.name) ?? [], n = [...e.author?.map((e) => e.name) ?? [], ...t];
3695
3695
  if (n.length !== 0) return n;
3696
- }, cl = /* @__PURE__ */ function(e) {
3696
+ }, ll = /* @__PURE__ */ function(e) {
3697
3697
  return e.Book = "Book", e.Journal = "Journal", e.Periodical = "Periodical", e.PublicationVolume = "PublicationVolume", e.ScholarlyArticle = "ScholarlyArticle", e.VideoObject = "VideoObject", e.WebPage = "WebPage", e;
3698
- }({}), ll = /* @__PURE__ */ function(e) {
3699
- return e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e;
3700
3698
  }({}), ul = /* @__PURE__ */ function(e) {
3699
+ return e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e;
3700
+ }({}), dl = /* @__PURE__ */ function(e) {
3701
3701
  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;
3702
- }({}), dl = j({
3703
- "@type": N(cl.ScholarlyArticle),
3702
+ }({}), fl = j({
3703
+ "@type": N(ll.ScholarlyArticle),
3704
3704
  author: A(j({
3705
3705
  "@type": O(),
3706
3706
  name: O()
@@ -3725,16 +3725,16 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3725
3725
  "@type": O(),
3726
3726
  name: O()
3727
3727
  }).optional()
3728
- }), fl = (e) => dl.safeParse(e).success, pl = W.extend({
3729
- "@type": N(cl.WebPage),
3730
- mainEntity: dl
3731
- }), ml = (e) => pl.safeParse(e).success, hl = j({
3728
+ }), pl = (e) => fl.safeParse(e).success, ml = Xs.extend({
3729
+ "@type": N(ll.WebPage),
3730
+ mainEntity: fl
3731
+ }), hl = (e) => ml.safeParse(e).success, gl = j({
3732
3732
  "@type": A(O()),
3733
3733
  name: O().optional(),
3734
3734
  issn: A(O()),
3735
3735
  volumeNumber: O().optional()
3736
- }), gl = (e) => hl.safeParse(e).success, _l = (e, t) => V(e, "name", "citation_issn") ?? V(e, "name", "prism.issn") ?? (fl(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), vl = (e, t) => {
3737
- let n = sl(t), r = V(e, "name", "citation_online_date"), i = ol(e), a = V(e, "name", "citation_issue"), o = _l(e, t), s = gl(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 = gl(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3736
+ }), _l = (e) => gl.safeParse(e).success, vl = (e, t) => V(e, "name", "citation_issn") ?? V(e, "name", "prism.issn") ?? (pl(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), yl = (e, t) => {
3737
+ let n = cl(t), r = V(e, "name", "citation_online_date"), i = sl(e), a = V(e, "name", "citation_issue"), o = vl(e, t), s = _l(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 = _l(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3738
3738
  return L(F.Article, {
3739
3739
  au: n,
3740
3740
  date: r,
@@ -3748,8 +3748,8 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3748
3748
  jtitle: d,
3749
3749
  volume: f
3750
3750
  });
3751
- }, yl = W.extend({
3752
- "@type": N(cl.Book),
3751
+ }, bl = Xs.extend({
3752
+ "@type": N(ll.Book),
3753
3753
  copyrightYear: O().optional(),
3754
3754
  author: A(j({
3755
3755
  "@type": O(),
@@ -3766,16 +3766,16 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3766
3766
  "@type": O(),
3767
3767
  name: O()
3768
3768
  }).optional()
3769
- }), bl = (e) => yl.safeParse(e).success, xl = /* @__PURE__ */ function(e) {
3769
+ }), xl = (e) => bl.safeParse(e).success, Sl = /* @__PURE__ */ function(e) {
3770
3770
  return e.BOOK_TITLE = "Book Title", e.AUTHORS = "Authors", e.SERIES_TITLE = "Series Title", e.DOI = "DOI", e.PUBLISHER = "Publisher", e.SOFTCOVER_ISBN = "Softcover ISBN", e.EBOOK_ISBN = "eBook ISBN", e.SERIES_ISSN = "Series ISSN", e.SERIES_EISSN = "Series E-ISSN", e.EDITION_NUMBER = "Edition Number", e.NUMBER_OF_PAGES = "Number of Pages", e;
3771
- }(xl || {}), Sl = (e) => {
3771
+ }(Sl || {}), Cl = (e) => {
3772
3772
  let t = e.querySelectorAll(".c-bibliographic-information__list-item"), n = /* @__PURE__ */ new Map();
3773
3773
  return t.forEach((e) => {
3774
3774
  let t = e.querySelector(".u-text-bold")?.textContent.trim(), r = e.querySelector(".c-bibliographic-information__value")?.textContent.trim();
3775
3775
  t && r && n.set(t, r);
3776
3776
  }), n;
3777
- }, Cl = (e, t) => {
3778
- let n = Sl(e), r = sl(t), i = t.copyrightYear?.toString(), a = ol(e) ?? n.get(xl.DOI), o = t.name ?? n.get(xl.BOOK_TITLE), s = t.isbn ?? n.get(xl.SOFTCOVER_ISBN), c = t.numberOfPages?.toString() ?? n.get(xl.NUMBER_OF_PAGES), l = t.publisher?.name ?? n.get(xl.PUBLISHER);
3777
+ }, wl = (e, t) => {
3778
+ let n = Cl(e), r = cl(t), i = t.copyrightYear?.toString(), a = sl(e) ?? n.get(Sl.DOI), o = t.name ?? n.get(Sl.BOOK_TITLE), s = t.isbn ?? n.get(Sl.SOFTCOVER_ISBN), c = t.numberOfPages?.toString() ?? n.get(Sl.NUMBER_OF_PAGES), l = t.publisher?.name ?? n.get(Sl.PUBLISHER);
3779
3779
  return I(F.Book, {
3780
3780
  au: r,
3781
3781
  date: i,
@@ -3785,7 +3785,7 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3785
3785
  tpages: c,
3786
3786
  pub: l
3787
3787
  });
3788
- }, wl = j({
3788
+ }, Tl = j({
3789
3789
  "@type": N("Periodical"),
3790
3790
  name: O(),
3791
3791
  url: O(),
@@ -3796,7 +3796,7 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3796
3796
  })),
3797
3797
  publisher: j({ name: O() }),
3798
3798
  description: O()
3799
- }), Tl = (e) => wl.safeParse(e).success, El = (e) => {
3799
+ }), El = (e) => Tl.safeParse(e).success, Dl = (e) => {
3800
3800
  let t = e.editor.map(({ givenName: e, familyName: t }) => `${e} ${t}`), n = e.name, [r, i] = e.issn, a = e.publisher.name;
3801
3801
  return L(F.Journal, {
3802
3802
  au: t,
@@ -3805,15 +3805,15 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3805
3805
  issn: i,
3806
3806
  pub: a
3807
3807
  });
3808
- }, Dl = j({
3809
- "@type": N(cl.VideoObject),
3808
+ }, Ol = j({
3809
+ "@type": N(ll.VideoObject),
3810
3810
  name: O().optional(),
3811
3811
  description: O().optional(),
3812
3812
  thumbnailUrl: O().optional(),
3813
3813
  uploadDate: O().optional(),
3814
3814
  contentUrl: O().optional(),
3815
3815
  duration: O().optional()
3816
- }), Ol = (e) => Dl.safeParse(e).success, kl = (e, t) => {
3816
+ }), kl = (e) => Ol.safeParse(e).success, Al = (e, t) => {
3817
3817
  let n = Array.from(e.querySelectorAll("dd[data-test=\"video-segment-author\"]")).map((e) => e.textContent.trim()).filter((e) => !!e), r = t?.uploadDate ? new Date(t.uploadDate).getFullYear().toString() : void 0, i = t?.name ?? V(e, "property", "og:title") ?? void 0, a = e.querySelector("video-about-doi")?.textContent ?? void 0;
3818
3818
  return R({
3819
3819
  au: n.length > 0 ? n : void 0,
@@ -3821,26 +3821,26 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3821
3821
  doi: a,
3822
3822
  title: i
3823
3823
  });
3824
- }, Al = (e) => _o({ title: V(e, "property", "og:title") }), jl = (e, t) => {
3824
+ }, jl = (e) => _o({ title: V(e, "property", "og:title") }), Ml = (e, t) => {
3825
3825
  let n = V(t, "property", "og:type");
3826
- return n === ll.Article && e.includes(ul.Article) ? U.Article : n === ll.Book && (e.includes(ul.Book) || e.includes(ul.ReferenceWork)) ? U.Book : n === ll.Paper && e.includes(ul.Chapter) ? U.Chapter : n === ll.Paper && (e.includes(ul.ReferenceWorkEntry) || e.includes(ul.Protocol)) ? U.Article : n === ll.Video && e.includes(ul.Video) ? U.AudioVisual : n === ll.Website && (e.includes(ul.Collections) || e.includes(ul.JournalIssue)) ? U.Webpage : n === ll.Website && e.includes(ul.Journal) ? U.Journal : U.None;
3827
- }, Ml = (e, t, n) => e === U.AudioVisual && Ol(n) ? B(kl(t, n)) : e === U.Book && bl(n) ? B(Cl(t, n)) : (e === U.Chapter || e === U.Article) && fl(n) ? B(vl(t, n)) : e === U.Article && ml(n) ? B(vl(t, n.mainEntity)) : e === U.Journal && Tl(n) ? B(El(n)) : z(), Nl = ({ url: e, document: t }) => {
3828
- let n = jl(e, t);
3829
- if (n === U.Webpage) return B(Al(t));
3830
- let r = $s(t);
3826
+ return n === ul.Article && e.includes(dl.Article) ? U.Article : n === ul.Book && (e.includes(dl.Book) || e.includes(dl.ReferenceWork)) ? U.Book : n === ul.Paper && e.includes(dl.Chapter) ? U.Chapter : n === ul.Paper && (e.includes(dl.ReferenceWorkEntry) || e.includes(dl.Protocol)) ? U.Article : n === ul.Video && e.includes(dl.Video) ? U.AudioVisual : n === ul.Website && (e.includes(dl.Collections) || e.includes(dl.JournalIssue)) ? U.Webpage : n === ul.Website && e.includes(dl.Journal) ? U.Journal : U.None;
3827
+ }, Nl = (e, t, n) => e === U.AudioVisual && kl(n) ? B(Al(t, n)) : e === U.Book && xl(n) ? B(wl(t, n)) : (e === U.Chapter || e === U.Article) && pl(n) ? B(yl(t, n)) : e === U.Article && hl(n) ? B(yl(t, n.mainEntity)) : e === U.Journal && El(n) ? B(Dl(n)) : z(), Pl = ({ url: e, document: t }) => {
3828
+ let n = Ml(e, t);
3829
+ if (n === U.Webpage) return B(jl(t));
3830
+ let r = ec(t);
3831
3831
  if (!r) return z();
3832
- let i = ec(r);
3833
- return i ? Ml(n, t, i) : z();
3834
- }, G = /* @__PURE__ */ function(e) {
3832
+ let i = tc(r);
3833
+ return i ? Nl(n, t, i) : z();
3834
+ }, W = /* @__PURE__ */ function(e) {
3835
3835
  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;
3836
- }(G || {}), Pl = new Set([
3837
- G.PrintIsbn,
3838
- G.OnlineIsbn,
3839
- G.Doi,
3840
- G.FirstPublished,
3841
- G.OnlineIssn,
3842
- G.PrintIssn
3843
- ]), Fl = j({ content: j({
3836
+ }(W || {}), Fl = new Set([
3837
+ W.PrintIsbn,
3838
+ W.OnlineIsbn,
3839
+ W.Doi,
3840
+ W.FirstPublished,
3841
+ W.OnlineIssn,
3842
+ W.PrintIssn
3843
+ ]), Il = j({ content: j({
3844
3844
  item: j({
3845
3845
  title: O(),
3846
3846
  "published-date": O()
@@ -3854,66 +3854,66 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3854
3854
  type: O(),
3855
3855
  eissn: O()
3856
3856
  })
3857
- }).optional() }), Il = (e, t) => {
3857
+ }).optional() }), Ll = (e, t) => {
3858
3858
  if (!e) return;
3859
3859
  let n = e.indexOf(t);
3860
3860
  return n > -1 ? e.substring(0, n) : e;
3861
- }, Ll = (e) => {
3861
+ }, Rl = (e) => {
3862
3862
  let t = /\d+/.exec(e);
3863
3863
  if (t?.[0]) return t[0];
3864
- }, Rl = (e) => {
3864
+ }, zl = (e) => {
3865
3865
  let t = e.querySelectorAll("script"), n = Array.from(t).find((e) => e.textContent.includes("adobeDataLayerJson"))?.textContent.match(/var adobeDataLayerJson = (\{.*?});/s);
3866
3866
  if (n?.length === 2) try {
3867
3867
  let e = JSON.parse(n[1]);
3868
- return Fl.parse(e);
3868
+ return Il.parse(e);
3869
3869
  } catch {
3870
3870
  return;
3871
3871
  }
3872
- }, zl = (e, t) => {
3872
+ }, Bl = (e, t) => {
3873
3873
  let n = V(e, "property", "og:type"), r = t.includes("epdf");
3874
3874
  return n === "Book" || n === "books.book" ? U.Book : n === "Chapter" ? U.Chapter : n === "Journal" ? U.Journal : n === "Article" || r ? U.Article : U.None;
3875
- }, Bl = (e) => {
3875
+ }, Vl = (e) => {
3876
3876
  let t = H(e, "name", "citation_author"), n = Array.from(e.querySelectorAll("#product-details-content .product-authors")).map((e) => e.textContent).filter((e) => !!e), r = new Set([...t, ...n]);
3877
3877
  return r.size > 0 ? [...r] : void 0;
3878
- }, Vl = (e) => {
3879
- let t = Array.from(e.querySelectorAll("#product-details-content .text-piped p")).map((e) => e.textContent).find((e) => e.endsWith(" pages"));
3880
- if (t) return Ll(t);
3881
3878
  }, Hl = (e) => {
3879
+ let t = Array.from(e.querySelectorAll("#product-details-content .text-piped p")).map((e) => e.textContent).find((e) => e.endsWith(" pages"));
3880
+ if (t) return Rl(t);
3881
+ }, Ul = (e) => {
3882
3882
  let t = /* @__PURE__ */ new Map(), n = Array.from(e.querySelectorAll(".journal-info-container .info-block")).flatMap((e) => Array.from(e.querySelectorAll(".info_label")));
3883
3883
  for (let e of n) {
3884
3884
  let n = e.nextElementSibling;
3885
3885
  if (!n?.classList.contains("info_value")) continue;
3886
- let r = Il(e.textContent, ":"), i = Il(n.textContent, ":");
3887
- !r || !i || Pl.has(r) && t.set(r, i);
3886
+ let r = Ll(e.textContent, ":"), i = Ll(n.textContent, ":");
3887
+ !r || !i || Fl.has(r) && t.set(r, i);
3888
3888
  }
3889
3889
  return t;
3890
- }, Ul = (e, t) => V(e, "property", "books:release_date") ?? V(e, "name", "citation_online_date") ?? t.get(G.FirstPublished) ?? void 0, Wl = (e, t) => V(e, "name", "dc.identifier") ?? V(e, "name", "citation_doi") ?? V(e, "name", "publication_doi") ?? t.get(G.Doi) ?? void 0, Gl = (e, t) => {
3890
+ }, Wl = (e, t) => V(e, "property", "books:release_date") ?? V(e, "name", "citation_online_date") ?? t.get(W.FirstPublished) ?? void 0, Gl = (e, t) => V(e, "name", "dc.identifier") ?? V(e, "name", "citation_doi") ?? V(e, "name", "publication_doi") ?? t.get(W.Doi) ?? void 0, Kl = (e, t) => {
3891
3891
  let n = new Set([
3892
3892
  V(e, "property", "books:isbn"),
3893
- t.get(G.PrintIsbn),
3894
- t.get(G.OnlineIsbn)
3893
+ t.get(W.PrintIsbn),
3894
+ t.get(W.OnlineIsbn)
3895
3895
  ].filter((e) => !!e));
3896
3896
  return n.size > 0 ? [...n].join(",") : void 0;
3897
- }, Kl = (e) => {
3897
+ }, ql = (e) => {
3898
3898
  let t, n, r = e.querySelector(".cover-image__details div:first-of-type");
3899
3899
  if (r?.childNodes.length === 2) {
3900
3900
  let [e, i] = r.childNodes;
3901
- e.textContent && (t = Ll(e.textContent)), i.textContent && (n = Ll(i.textContent));
3901
+ e.textContent && (t = Rl(e.textContent)), i.textContent && (n = Rl(i.textContent));
3902
3902
  }
3903
3903
  return {
3904
3904
  volume: t,
3905
3905
  issue: n
3906
3906
  };
3907
- }, ql = (e) => {
3907
+ }, Jl = (e) => {
3908
3908
  let t = Array.from(e.querySelectorAll(".authors .author")).map((e) => e.textContent.trim().replace(",", "")).filter((e) => !!e);
3909
3909
  return t.length > 0 ? t : void 0;
3910
- }, Jl = (e) => {
3910
+ }, Yl = (e) => {
3911
3911
  let t = Array.from(e.querySelectorAll(".details-section .details-entry")), n = t.find((e) => e.querySelector(".details-label")?.textContent.trim() === "ISSN"), r = t.find((e) => e.querySelector(".details-label")?.textContent.trim() === "eISSN"), i, a;
3912
3912
  return n && (i = n.querySelector(".details-value")?.textContent.trim()), r && (a = r.querySelector(".details-value")?.textContent.trim()), {
3913
3913
  issn: i,
3914
3914
  eissn: a
3915
3915
  };
3916
- }, Yl = (e) => {
3916
+ }, Xl = (e) => {
3917
3917
  if (!e?.content?.group) return {
3918
3918
  volume: void 0,
3919
3919
  issue: void 0
@@ -3926,7 +3926,7 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3926
3926
  volume: t,
3927
3927
  issue: n
3928
3928
  };
3929
- }, Xl = (e) => {
3929
+ }, Zl = (e) => {
3930
3930
  let [t, n] = ((Array.from(e.querySelectorAll(".details-section .details-entry")).find((e) => e.querySelector(".details-label")?.textContent.trim() === "Pages")?.querySelector(".details-value")?.textContent.trim())?.split("-") ?? [void 0, void 0]).map((e) => e?.trim());
3931
3931
  return t?.toLowerCase() === "n/a" && n?.toLowerCase() === "n/a" ? {
3932
3932
  spage: void 0,
@@ -3935,8 +3935,8 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3935
3935
  spage: t,
3936
3936
  epage: n
3937
3937
  };
3938
- }, Zl = (e) => {
3939
- let t = Hl(e), n = Bl(e), r = V(e, "property", "og:title"), i = Ul(e, t), a = Wl(e, t), o = Gl(e, t), s = Vl(e);
3938
+ }, Ql = (e) => {
3939
+ let t = Ul(e), n = Vl(e), r = V(e, "property", "og:title"), i = Wl(e, t), a = Gl(e, t), o = Kl(e, t), s = Hl(e);
3940
3940
  return I(F.Book, {
3941
3941
  au: n,
3942
3942
  date: i,
@@ -3945,8 +3945,8 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3945
3945
  pages: s,
3946
3946
  title: r
3947
3947
  });
3948
- }, Ql = (e) => {
3949
- let t = Hl(e), n = Bl(e), r = V(e, "name", "citation_book_title"), i = Ul(e, t), a = Wl(e, t), o = Gl(e, t), s = V(e, "name", "citation_publisher"), c = V(e, "property", "og:title");
3948
+ }, $l = (e) => {
3949
+ let t = Ul(e), n = Vl(e), r = V(e, "name", "citation_book_title"), i = Wl(e, t), a = Gl(e, t), o = Kl(e, t), s = V(e, "name", "citation_publisher"), c = V(e, "property", "og:title");
3950
3950
  return I(F.Bookitem, {
3951
3951
  au: n,
3952
3952
  btitle: r,
@@ -3956,8 +3956,8 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3956
3956
  pub: s,
3957
3957
  title: c
3958
3958
  });
3959
- }, $l = (e) => {
3960
- let t = Hl(e), n = Bl(e), r = Ul(e, t), i = t.get(G.OnlineIssn), a = t.get(G.PrintIssn), o = V(e, "property", "og:title"), { volume: s, issue: c } = Kl(e);
3959
+ }, eu = (e) => {
3960
+ let t = Ul(e), n = Vl(e), r = Wl(e, t), i = t.get(W.OnlineIssn), a = t.get(W.PrintIssn), o = V(e, "property", "og:title"), { volume: s, issue: c } = ql(e);
3961
3961
  return L(F.Journal, {
3962
3962
  au: n,
3963
3963
  date: r,
@@ -3967,8 +3967,8 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3967
3967
  title: o,
3968
3968
  volume: s
3969
3969
  });
3970
- }, eu = (e) => {
3971
- let t = Hl(e), n = Rl(e), r = Bl(e) ?? ql(e), i = Ul(e, t) ?? n?.content?.item["published-date"], a = Wl(e, t), { issn: o, eissn: s } = Jl(e), { volume: c, issue: l } = Yl(n), u = V(e, "property", "og:title") ?? n?.content?.item.title, d = V(e, "name", "citation_journal_title") ?? n?.content?.series.title, { spage: f, epage: p } = Xl(e);
3970
+ }, tu = (e) => {
3971
+ let t = Ul(e), n = zl(e), r = Vl(e) ?? Jl(e), i = Wl(e, t) ?? n?.content?.item["published-date"], a = Gl(e, t), { issn: o, eissn: s } = Yl(e), { volume: c, issue: l } = Xl(n), u = V(e, "property", "og:title") ?? n?.content?.item.title, d = V(e, "name", "citation_journal_title") ?? n?.content?.series.title, { spage: f, epage: p } = Zl(e);
3972
3972
  return L(F.Article, {
3973
3973
  au: r,
3974
3974
  date: i,
@@ -3982,43 +3982,43 @@ var $c = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
3982
3982
  spage: f,
3983
3983
  epage: p
3984
3984
  });
3985
- }, tu = ({ document: e, url: t }) => {
3986
- switch (zl(e, t)) {
3987
- case U.Book: return B(Zl(e));
3988
- case U.Chapter: return B(Ql(e));
3989
- case U.Journal: return B($l(e));
3990
- case U.Article: return B(eu(e));
3985
+ }, nu = ({ document: e, url: t }) => {
3986
+ switch (Bl(e, t)) {
3987
+ case U.Book: return B(Ql(e));
3988
+ case U.Chapter: return B($l(e));
3989
+ case U.Journal: return B(eu(e));
3990
+ case U.Article: return B(tu(e));
3991
3991
  default: return z();
3992
3992
  }
3993
- }, nu = (e) => {
3993
+ }, ru = (e) => {
3994
3994
  let t = H(e, "name", "citation_author");
3995
3995
  return t.length > 0 ? t : void 0;
3996
- }, ru = ({ document: e }) => B(R({
3997
- au: nu(e),
3996
+ }, iu = ({ document: e }) => B(R({
3997
+ au: ru(e),
3998
3998
  date: V(e, "name", "citation_publication_date"),
3999
3999
  doi: V(e, "name", "citation_doi"),
4000
4000
  isbn: V(e, "name", "citation_isbn"),
4001
4001
  pub: V(e, "name", "citation_publisher"),
4002
4002
  title: V(e, "name", "citation_title") ?? e.title
4003
- })), iu = ({ document: e }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? z() : $o(), au = (e) => {
4003
+ })), au = ({ document: e }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? z() : $o(), ou = (e) => {
4004
4004
  if (!(!e || e.length === 0)) return e[0];
4005
4005
  };
4006
4006
  //#endregion
4007
4007
  //#region src/parsers/shared/parsing-utils.ts
4008
- function ou(e, t) {
4009
- return au(t.map((t) => {
4008
+ function su(e, t) {
4009
+ return ou(t.map((t) => {
4010
4010
  let n = e.querySelector(t)?.textContent ?? null;
4011
4011
  if (n && n.trim() !== "") return n;
4012
4012
  }).filter((e) => e)) ?? null;
4013
4013
  }
4014
- function su(e, t) {
4014
+ function cu(e, t) {
4015
4015
  let n = t.flatMap((t) => Array.from(e.querySelectorAll(t)).flatMap((e) => {
4016
4016
  let t = e.textContent;
4017
4017
  return t && t.trim() !== "" ? t.split(";").map((e) => e.trim()).filter((e) => e.length > 0) : [];
4018
4018
  }));
4019
4019
  return n.length > 0 ? n : null;
4020
4020
  }
4021
- var cu = (e, t) => ou(e, [t])?.trim(), lu = (e) => {
4021
+ var G = (e, t) => su(e, [t])?.trim(), lu = (e) => {
4022
4022
  let t = e.querySelector(".content-meta-data__authors")?.textContent;
4023
4023
  if (t) return t.split(/,\s+|\s+and\s+/).filter((e) => !!e);
4024
4024
  }, uu = (e) => {
@@ -4061,7 +4061,7 @@ var cu = (e, t) => ou(e, [t])?.trim(), lu = (e) => {
4061
4061
  jtitle: i && i.trim() !== "" ? i : void 0
4062
4062
  };
4063
4063
  }, xu = (e) => {
4064
- let t = ou(e, [
4064
+ let t = su(e, [
4065
4065
  "[data-qa=\"journal\"]:first-child cite",
4066
4066
  "[data-qa=\"copyright-statement\"] > cite",
4067
4067
  "[data-qa=\"collection-links\"] mfe-content-details-pharos-link"
@@ -4093,13 +4093,13 @@ var cu = (e, t) => ou(e, [t])?.trim(), lu = (e) => {
4093
4093
  pages: l ? l[1] : void 0
4094
4094
  };
4095
4095
  }, Ou = (e) => {
4096
- let t = ou(e, ["mfe-turnaway-pharos-link", "[data-qa=\"item-src-info\"]"]);
4096
+ let t = su(e, ["mfe-turnaway-pharos-link", "[data-qa=\"item-src-info\"]"]);
4097
4097
  if (!t) return;
4098
4098
  let n = /\(.+\)/.exec(t)?.map((e) => {
4099
4099
  let t = /\d{4}/.exec(e);
4100
4100
  return t ? t[0] : void 0;
4101
4101
  });
4102
- return au(n);
4102
+ return ou(n);
4103
4103
  }, ku = (e, t) => {
4104
4104
  let n = wu(e), r = pu(e), i = mu(e) ?? Ou(e), a = bu(e), o = a.jtitle ?? xu(e) ?? void 0, s = a.pub, c = Eu(e), l = Du(e), u = c.issue ?? l.issue, d = c.volume ?? l.volume, f = Su(e) ?? l.pages, p = l.spage, m = l.epage, h = Tu(t), g = hu(Array.from(e.querySelector(".content-meta-data-stables")?.childNodes ?? []).map((e) => e.textContent ?? "")) ?? _u(e);
4105
4105
  return L(F.Article, {
@@ -4307,7 +4307,7 @@ var ad = (e, t) => {
4307
4307
  issn: O().optional(),
4308
4308
  name: O().optional(),
4309
4309
  volume: O().optional()
4310
- }), ld = W.extend({
4310
+ }), ld = Xs.extend({
4311
4311
  identifier: j({
4312
4312
  "@type": O(),
4313
4313
  propertyID: O(),
@@ -4340,9 +4340,9 @@ var ad = (e, t) => {
4340
4340
  }),
4341
4341
  name: O()
4342
4342
  }), ud = (e) => {
4343
- let t = $s(e);
4343
+ let t = ec(e);
4344
4344
  if (!t) return null;
4345
- let n = ec(t), r = ld.safeParse(n);
4345
+ let n = tc(t), r = ld.safeParse(n);
4346
4346
  return r.success ? r.data : null;
4347
4347
  }, dd = (e) => L(F.Article, {
4348
4348
  ...Xu(e),
@@ -4582,7 +4582,7 @@ var ad = (e, t) => {
4582
4582
  }
4583
4583
  return null;
4584
4584
  }, pf = ({ document: e }) => {
4585
- let t = $s(e);
4585
+ let t = ec(e);
4586
4586
  if (!t) return z();
4587
4587
  let n = ff(t);
4588
4588
  if (!n) return z();
@@ -4597,18 +4597,18 @@ var ad = (e, t) => {
4597
4597
  }));
4598
4598
  default: return z();
4599
4599
  }
4600
- }, mf = W.extend({
4600
+ }, mf = Xs.extend({
4601
4601
  "@type": O().optional(),
4602
4602
  name: O().optional(),
4603
4603
  copyrightYear: ha().optional(),
4604
4604
  author: A(j({ name: O() })).optional(),
4605
4605
  publisher: A(j({ name: O() })).optional()
4606
4606
  }), hf = (e) => mf.safeParse(e).success, gf = ({ document: e, url: t }) => {
4607
- let n = $s(e);
4607
+ let n = ec(e);
4608
4608
  if (!n) return z();
4609
- let r = ec(n);
4609
+ let r = tc(n);
4610
4610
  if (!r || !hf(r)) return z();
4611
- 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 = au(r.publisher?.map((e) => e.name)), l = V(e, "property", "og:book:isbn");
4611
+ 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 = ou(r.publisher?.map((e) => e.name)), l = V(e, "property", "og:book:isbn");
4612
4612
  switch (i) {
4613
4613
  case "Book": return B(I(F.Book, {
4614
4614
  au: a,
@@ -4833,7 +4833,7 @@ var Wf = (e) => {
4833
4833
  delete e.rft_id;
4834
4834
  }, ip = (e) => {
4835
4835
  let t = ns(e);
4836
- if (Yc(t)) {
4836
+ if (Xc(t)) {
4837
4837
  let n = np(e.document);
4838
4838
  t.resource.genre = n, rp(t.resource);
4839
4839
  }
@@ -4915,7 +4915,7 @@ var hp = ({ url: e, document: t }) => {
4915
4915
  uri: n
4916
4916
  }));
4917
4917
  }, yp = (e) => {
4918
- let t = cu(e, "div.director-section div.term-info-section-items");
4918
+ let t = G(e, "div.director-section div.term-info-section-items");
4919
4919
  if (!t) return;
4920
4920
  let n = t.split(",").map((e) => e.replace(/\s+/g, " ").trim()).filter((e) => e.length > 0);
4921
4921
  return n.length > 0 ? n : void 0;
@@ -4931,9 +4931,9 @@ var hp = ({ url: e, document: t }) => {
4931
4931
  let n = bp(t);
4932
4932
  return B(R({
4933
4933
  au: yp(t) ?? n.get("director"),
4934
- date: cu(t, "div.product-release-year"),
4935
- pub: cu(t, "div.studio-section div.term-info-section-item") ?? vu(n.get("supplier")),
4936
- title: cu(t, ".product-title") ?? cu(t, ".movie-title"),
4934
+ date: G(t, "div.product-release-year"),
4935
+ pub: G(t, "div.studio-section div.term-info-section-item") ?? vu(n.get("supplier")),
4936
+ title: G(t, ".product-title") ?? G(t, ".movie-title"),
4937
4937
  uri: e
4938
4938
  }));
4939
4939
  }, Sp = (e) => {
@@ -4988,9 +4988,9 @@ var Ep = (e) => {
4988
4988
  }), t;
4989
4989
  }, Y = (e, t) => {
4990
4990
  let n = e.get(t);
4991
- if (n) return au(n);
4991
+ if (n) return ou(n);
4992
4992
  }, jp = (e) => H(e, "name", "dc.Creator").map((e) => e.trim()), Mp = (e) => {
4993
- let t = su(e, [".loa-accordion a.author-name"]);
4993
+ let t = cu(e, [".loa-accordion a.author-name"]);
4994
4994
  if (t) return t.map((e) => e.replace("Authors:", "").trim());
4995
4995
  }, Np = (e) => {
4996
4996
  let t = jp(e);
@@ -5177,7 +5177,7 @@ var Ep = (e) => {
5177
5177
  if (t) return t.replace("https://doi.org/", "").trim();
5178
5178
  }, bm = (e) => {
5179
5179
  let { document: t } = e, n = ns(e);
5180
- if (!Yc(n)) return n;
5180
+ if (!Xc(n)) return n;
5181
5181
  let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a = ym(t);
5182
5182
  return r && (n.resource.date = r), i && (n.resource.uri = i), a && (n.resource.rft_id = [a]), n;
5183
5183
  }, xm = (e) => {
@@ -5211,7 +5211,7 @@ var Ep = (e) => {
5211
5211
  date: l,
5212
5212
  uri: u
5213
5213
  }));
5214
- }, Om = W.extend({
5214
+ }, Om = Xs.extend({
5215
5215
  "@type": N("VideoObject"),
5216
5216
  name: O(),
5217
5217
  url: O(),
@@ -5224,9 +5224,9 @@ var Ep = (e) => {
5224
5224
  name: O()
5225
5225
  }))]))
5226
5226
  }), km = (e) => {
5227
- let t = $s(e);
5227
+ let t = ec(e);
5228
5228
  if (!t) return null;
5229
- let n = ec(t), r = Om.safeParse(n);
5229
+ let n = tc(t), r = Om.safeParse(n);
5230
5230
  return r.success ? r.data : null;
5231
5231
  }, Am = (e) => {
5232
5232
  if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
@@ -5240,10 +5240,10 @@ var Ep = (e) => {
5240
5240
  au: n,
5241
5241
  uri: t.url
5242
5242
  }));
5243
- }, Mm = W.extend({ publisher: j({
5243
+ }, Mm = Xs.extend({ publisher: j({
5244
5244
  "@type": N("Organization"),
5245
5245
  name: O()
5246
- }) }), Nm = W.extend({
5246
+ }) }), Nm = Xs.extend({
5247
5247
  "@type": N("WebSite"),
5248
5248
  issn: O(),
5249
5249
  name: O()
@@ -5256,8 +5256,8 @@ var Ep = (e) => {
5256
5256
  issue: i ? i[1] : void 0
5257
5257
  };
5258
5258
  }, Fm = (e) => {
5259
- let t = Qs(e);
5260
- return t.length === 0 ? null : t.map((e) => ec(e)).filter((e) => e !== null);
5259
+ let t = $s(e);
5260
+ return t.length === 0 ? null : t.map((e) => tc(e)).filter((e) => e !== null);
5261
5261
  }, Im = (e) => {
5262
5262
  let t = Fm(e);
5263
5263
  if (!t) return;
@@ -5372,7 +5372,7 @@ var Ep = (e) => {
5372
5372
  a.push(i), n.set(r, a);
5373
5373
  }
5374
5374
  return n.size > 0 ? n : void 0;
5375
- }, yh = (e, t) => au(e.get(t)), bh = (e, t, n) => t.flatMap((t) => e.get(t) ?? []).map((e) => _h(e).get(n)).filter((e) => !!e), xh = (e, t, n) => au(bh(e, t, n)), Sh = (e) => {
5375
+ }, yh = (e, t) => ou(e.get(t)), bh = (e, t, n) => t.flatMap((t) => e.get(t) ?? []).map((e) => _h(e).get(n)).filter((e) => !!e), xh = (e, t, n) => ou(bh(e, t, n)), Sh = (e) => {
5376
5376
  let t = xh(e, sh, "a");
5377
5377
  if (!t) return;
5378
5378
  let n = xh(e, sh, "b");
@@ -5418,13 +5418,13 @@ var Ep = (e) => {
5418
5418
  let n = e.querySelector(Eh);
5419
5419
  return Array.from(n?.querySelectorAll("span") ?? []).find((e) => e.textContent.trim() === `${t}:`);
5420
5420
  }, Ih = (e) => e.split("/")[0].trim(), Lh = (e) => {
5421
- let t = cu(e, Dh);
5421
+ let t = G(e, Dh);
5422
5422
  return t ? Ih(t) : void 0;
5423
5423
  }, Rh = (e) => {
5424
5424
  let t = Mh.flatMap((t) => Array.from(Fh(e, t)?.parentElement?.querySelectorAll("a") ?? [])).map((e) => e.textContent.trim()).filter((e) => e.length > 0);
5425
5425
  return t.length > 0 ? t : void 0;
5426
5426
  }, zh = (e) => Fh(e, Nh)?.nextElementSibling?.textContent.trim(), Bh = (e) => {
5427
- let t = cu(e, Oh);
5427
+ let t = G(e, Oh);
5428
5428
  if (!t) return {};
5429
5429
  let n = t.lastIndexOf(",");
5430
5430
  return n === -1 ? { publisher: t } : {
@@ -5435,7 +5435,7 @@ var Ep = (e) => {
5435
5435
  let t = e.querySelector(jh)?.getAttribute("href")?.trim() ?? "";
5436
5436
  return t.length > 0 ? t : void 0;
5437
5437
  }, Uh = (e) => {
5438
- let t = cu(e, Ah)?.toLowerCase();
5438
+ let t = G(e, Ah)?.toLowerCase();
5439
5439
  return t ? Ph.get(t) ?? F.Unknown : F.Book;
5440
5440
  }, Wh = (e) => {
5441
5441
  let { publisher: t, place: n } = Bh(e);
@@ -5473,25 +5473,89 @@ var Ep = (e) => {
5473
5473
  }, ng = (e) => {
5474
5474
  let t = tg(e.document);
5475
5475
  return t ? B(t) : z();
5476
+ }, rg = ".widget-body.publication", ig = `${rg} .publication-title-details`, ag = `${rg} .publication-primary-identifiers`, og = `${rg} .publication-title`, sg = `${rg} .publication-tags .pub-type`, cg = `${rg} .my-profile-menu`, lg = `${rg} .publication-publisher > div`, ug = `${ig} ul.authors[name="all-authors"] > li > span:first-child`, dg = `${ig} .publication-name`, fg = `${ig} .date:not(.init-date)`, pg = `${ag} a[href*="doi.org"]`, mg = `${ag} a[href*="q=issn%3A"]`, hg = `${ag} a[href*="q=eissn%3A"]`, gg = `${ag} a[title^="http"]`, _g = (e) => {
5477
+ let t = e?.trim();
5478
+ if (t) return t;
5479
+ }, vg = (e, t, n) => _g(e.querySelector(t)?.getAttribute(n)), yg = (e) => G(e, og), bg = (e) => G(e, sg)?.toLowerCase(), xg = (e) => vg(e, cg, "data-type")?.toLowerCase(), Sg = (e) => {
5480
+ let t = Array.from(e.querySelectorAll(ug)).map((e) => e.textContent.trim()).filter((e) => e.length > 0);
5481
+ return t.length > 0 ? t : void 0;
5482
+ }, Cg = (e) => fs(G(e, fg)), wg = (e) => G(e, lg), Tg = (e) => G(e, pg), Eg = (e) => G(e, dg), Dg = (e) => vg(e, cg, "data-issn") ?? G(e, mg), Og = (e) => G(e, hg), kg = (e) => vg(e, gg, "title"), Ag = `${ig} .edition`, jg = `${ag} a[href*="isbn%3A"]`, Mg = /^\((.*)\)$/, Ng = (e) => {
5483
+ let t = G(e, Ag), n = t ? Mg.exec(t) : null;
5484
+ return n ? n[1] : t;
5485
+ }, Pg = (e, t) => I(t, {
5486
+ au: Sg(e),
5487
+ date: Cg(e),
5488
+ doi: Tg(e),
5489
+ pub: wg(e),
5490
+ title: yg(e),
5491
+ series: Eg(e),
5492
+ edition: Ng(e),
5493
+ isbn: Bs([G(e, jg)]),
5494
+ uri: kg(e)
5495
+ }), Fg = `${ig} .volissue .volume`, Ig = `${ig} .volissue .issue`, Lg = `${ig} .volissue .pages`, Rg = (e) => {
5496
+ let t = yg(e), n = Eg(e);
5497
+ return n ? {
5498
+ atitle: t,
5499
+ jtitle: n
5500
+ } : { jtitle: t };
5501
+ }, zg = (e, t) => {
5502
+ if (e) return _g(e.toLowerCase().startsWith(t) ? e.slice(t.length) : e);
5503
+ }, Bg = (e, t, n) => zg(G(e, t), n), Vg = (e) => {
5504
+ let [t, n] = Bg(e, Lg, "pages")?.split("-") ?? [];
5505
+ return {
5506
+ spage: t,
5507
+ epage: n
5508
+ };
5509
+ }, Hg = (e, t) => L(t, {
5510
+ au: Sg(e),
5511
+ date: Cg(e),
5512
+ doi: Tg(e),
5513
+ pub: wg(e),
5514
+ ...Vg(e),
5515
+ ...Rg(e),
5516
+ volume: Bg(e, Fg, "volume"),
5517
+ issue: Bg(e, Ig, "issue"),
5518
+ issn: Dg(e),
5519
+ eissn: Og(e),
5520
+ uri: kg(e)
5521
+ }), Ug = /* @__PURE__ */ function(e) {
5522
+ return e.Article = "article", e.Book = "book", e.EBook = "e-book", e.Ebook = "ebook", e.Journal = "journal", e.PrintedPhysicalItem = "printed physical item", e;
5523
+ }({}), Wg = "journal", Gg = (e) => Object.values(Ug).includes(e), Kg = (e) => {
5524
+ let t = bg(e);
5525
+ return Gg(t) ? t : null;
5526
+ }, qg = (e) => xg(e) === Wg ? Hg(e, F.Unknown) : Pg(e, F.Unknown), Jg = (e) => {
5527
+ if (!yg(e)) return null;
5528
+ switch (Kg(e)) {
5529
+ case Ug.Article: return Hg(e, F.Article);
5530
+ case Ug.Journal: return Hg(e, F.Journal);
5531
+ case Ug.Book:
5532
+ case Ug.EBook:
5533
+ case Ug.Ebook:
5534
+ case Ug.PrintedPhysicalItem: return Pg(e, F.Book);
5535
+ default: return qg(e);
5536
+ }
5537
+ }, Yg = ({ document: e }) => {
5538
+ let t = Jg(e);
5539
+ return t ? B(t) : z();
5476
5540
  }, X = /* @__PURE__ */ function(e) {
5477
- 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.VitalSource = "VitalSource", e.Icono14 = "Icono14", e.EbscoLocate = "EbscoLocate", e;
5478
- }({}), rg = {
5479
- [X.NoResourceFound]: lc,
5541
+ 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.VitalSource = "VitalSource", e.Icono14 = "Icono14", e.EbscoLocate = "EbscoLocate", e.TdnetDiscover = "TdnetDiscover", e;
5542
+ }({}), Xg = {
5543
+ [X.NoResourceFound]: uc,
5480
5544
  [X.Z3988]: ns,
5481
- [X.Z3988SearchResult]: iu,
5545
+ [X.Z3988SearchResult]: au,
5482
5546
  [X.Amazon]: us,
5483
- [X.CupOfJo]: cc,
5547
+ [X.CupOfJo]: lc,
5484
5548
  [X.Jstor]: Bu,
5485
- [X.Youtube]: al,
5486
- [X.SagePub]: Ec,
5487
- [X.SageVideo]: ru,
5488
- [X.ScienceDirect]: Lc,
5489
- [X.Springer]: Nl,
5490
- [X.TaylorFrancis]: Wc,
5491
- [X.Wiley]: tu,
5492
- [X.VuFind]: tl,
5549
+ [X.Youtube]: ol,
5550
+ [X.SagePub]: Dc,
5551
+ [X.SageVideo]: iu,
5552
+ [X.ScienceDirect]: Rc,
5553
+ [X.Springer]: Pl,
5554
+ [X.TaylorFrancis]: Gc,
5555
+ [X.Wiley]: nu,
5556
+ [X.VuFind]: nl,
5493
5557
  [X.ClinicalKey]: Ys,
5494
- [X.DOAJ]: hc,
5558
+ [X.DOAJ]: gc,
5495
5559
  [X.Primo]: kd,
5496
5560
  [X.IngentaConnect]: Rd,
5497
5561
  [X.Ebscohost]: lf,
@@ -5520,8 +5584,9 @@ var Ep = (e) => {
5520
5584
  [X.LondonReviewOfBooks]: Km,
5521
5585
  [X.VitalSource]: Xm,
5522
5586
  [X.Icono14]: Qm,
5523
- [X.EbscoLocate]: ng
5524
- }, ig = "5.46.0", ag = () => ig, og = [
5587
+ [X.EbscoLocate]: ng,
5588
+ [X.TdnetDiscover]: Yg
5589
+ }, Zg = "5.47.0", Qg = () => Zg, $g = [
5525
5590
  "com.au",
5526
5591
  "com",
5527
5592
  "ca",
@@ -5529,8 +5594,8 @@ var Ep = (e) => {
5529
5594
  "de",
5530
5595
  "fr",
5531
5596
  "nl"
5532
- ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), sg = {
5533
- version: ag(),
5597
+ ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), e_ = {
5598
+ version: Qg(),
5534
5599
  siteRegistrations: [
5535
5600
  {
5536
5601
  matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
@@ -5558,7 +5623,7 @@ var Ep = (e) => {
5558
5623
  parsers: [X.ScienceDirect]
5559
5624
  },
5560
5625
  {
5561
- matcher: { hostnames: og },
5626
+ matcher: { hostnames: $g },
5562
5627
  name: "Amazon",
5563
5628
  parsers: [X.Amazon]
5564
5629
  },
@@ -5766,20 +5831,25 @@ var Ep = (e) => {
5766
5831
  matcher: { regexp: "locate[.-]ebsco[.-]com/instances/" },
5767
5832
  name: "EBSCO Locate",
5768
5833
  parsers: [X.EbscoLocate]
5834
+ },
5835
+ {
5836
+ matcher: { hostnames: ["librarysearch.worc.ac.uk"] },
5837
+ name: "TDNet Discover",
5838
+ parsers: [X.TdnetDiscover]
5769
5839
  }
5770
5840
  ]
5771
- }, cg = j({ hostnames: A(O()).min(1) }), lg = j({ regexp: O() }), ug = M([cg, lg]), dg = j({
5772
- matcher: ug,
5841
+ }, t_ = j({ hostnames: A(O()).min(1) }), n_ = j({ regexp: O() }), r_ = M([t_, n_]), i_ = j({
5842
+ matcher: r_,
5773
5843
  name: O(),
5774
5844
  parsers: A(O()),
5775
5845
  libraryVersionRange: O().optional()
5776
- }), fg = j({
5777
- siteRegistrations: A(dg),
5846
+ }), a_ = j({
5847
+ siteRegistrations: A(i_),
5778
5848
  version: O()
5779
- }), pg = (e) => fg.safeParse(e).success, mg = (e) => dg.safeParse(e).success, hg = (e) => ug.safeParse(e).success, gg = (e) => Object.values(X).includes(e), _g = j({
5849
+ }), o_ = (e) => a_.safeParse(e).success, s_ = (e) => i_.safeParse(e).success, c_ = (e) => r_.safeParse(e).success, l_ = (e) => Object.values(X).includes(e), u_ = j({
5780
5850
  url: O(),
5781
5851
  document: eo((e) => typeof e == "object" && !!e)
5782
- }), vg = (e) => _g.safeParse(e).success, yg = /* @__PURE__ */ e(((e, t) => {
5852
+ }), d_ = (e) => u_.safeParse(e).success, f_ = /* @__PURE__ */ e(((e, t) => {
5783
5853
  var n = "2.0.0", r = 256;
5784
5854
  t.exports = {
5785
5855
  MAX_LENGTH: r,
@@ -5799,10 +5869,10 @@ var Ep = (e) => {
5799
5869
  FLAG_INCLUDE_PRERELEASE: 1,
5800
5870
  FLAG_LOOSE: 2
5801
5871
  };
5802
- })), bg = /* @__PURE__ */ e(((e, t) => {
5872
+ })), p_ = /* @__PURE__ */ e(((e, t) => {
5803
5873
  t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
5804
- })), xg = /* @__PURE__ */ e(((e, t) => {
5805
- var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = yg(), a = bg();
5874
+ })), m_ = /* @__PURE__ */ e(((e, t) => {
5875
+ var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = f_(), a = p_();
5806
5876
  e = t.exports = {};
5807
5877
  var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
5808
5878
  ["\\s", 1],
@@ -5816,10 +5886,10 @@ var Ep = (e) => {
5816
5886
  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);
5817
5887
  };
5818
5888
  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*$");
5819
- })), Sg = /* @__PURE__ */ e(((e, t) => {
5889
+ })), h_ = /* @__PURE__ */ e(((e, t) => {
5820
5890
  var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
5821
5891
  t.exports = (e) => e ? typeof e == "object" ? e : n : r;
5822
- })), Cg = /* @__PURE__ */ e(((e, t) => {
5892
+ })), g_ = /* @__PURE__ */ e(((e, t) => {
5823
5893
  var n = /^[0-9]+$/, r = (e, t) => {
5824
5894
  if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
5825
5895
  let r = n.test(e), i = n.test(t);
@@ -5830,7 +5900,7 @@ var Ep = (e) => {
5830
5900
  rcompareIdentifiers: (e, t) => r(t, e)
5831
5901
  };
5832
5902
  })), Z = /* @__PURE__ */ e(((e, t) => {
5833
- var n = bg(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = yg(), { safeRe: a, t: o } = xg(), s = Sg(), { compareIdentifiers: c } = Cg();
5903
+ var n = p_(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = f_(), { safeRe: a, t: o } = m_(), s = h_(), { compareIdentifiers: c } = g_();
5834
5904
  t.exports = class e {
5835
5905
  constructor(t, c) {
5836
5906
  if (c = s(c), t instanceof e) {
@@ -5950,7 +6020,7 @@ var Ep = (e) => {
5950
6020
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
5951
6021
  }
5952
6022
  };
5953
- })), wg = /* @__PURE__ */ e(((e, t) => {
6023
+ })), __ = /* @__PURE__ */ e(((e, t) => {
5954
6024
  var n = Z();
5955
6025
  t.exports = (e, t, r = !1) => {
5956
6026
  if (e instanceof n) return e;
@@ -5961,19 +6031,19 @@ var Ep = (e) => {
5961
6031
  throw e;
5962
6032
  }
5963
6033
  };
5964
- })), Tg = /* @__PURE__ */ e(((e, t) => {
5965
- var n = wg();
6034
+ })), v_ = /* @__PURE__ */ e(((e, t) => {
6035
+ var n = __();
5966
6036
  t.exports = (e, t) => {
5967
6037
  let r = n(e, t);
5968
6038
  return r ? r.version : null;
5969
6039
  };
5970
- })), Eg = /* @__PURE__ */ e(((e, t) => {
5971
- var n = wg();
6040
+ })), y_ = /* @__PURE__ */ e(((e, t) => {
6041
+ var n = __();
5972
6042
  t.exports = (e, t) => {
5973
6043
  let r = n(e.trim().replace(/^[=v]+/, ""), t);
5974
6044
  return r ? r.version : null;
5975
6045
  };
5976
- })), Dg = /* @__PURE__ */ e(((e, t) => {
6046
+ })), b_ = /* @__PURE__ */ e(((e, t) => {
5977
6047
  var n = Z();
5978
6048
  t.exports = (e, t, r, i, a) => {
5979
6049
  typeof r == "string" && (a = i, i = r, r = void 0);
@@ -5983,8 +6053,8 @@ var Ep = (e) => {
5983
6053
  return null;
5984
6054
  }
5985
6055
  };
5986
- })), Og = /* @__PURE__ */ e(((e, t) => {
5987
- var n = wg();
6056
+ })), x_ = /* @__PURE__ */ e(((e, t) => {
6057
+ var n = __();
5988
6058
  t.exports = (e, t) => {
5989
6059
  let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
5990
6060
  if (a === 0) return null;
@@ -5996,17 +6066,17 @@ var Ep = (e) => {
5996
6066
  let u = l ? "pre" : "";
5997
6067
  return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
5998
6068
  };
5999
- })), kg = /* @__PURE__ */ e(((e, t) => {
6069
+ })), S_ = /* @__PURE__ */ e(((e, t) => {
6000
6070
  var n = Z();
6001
6071
  t.exports = (e, t) => new n(e, t).major;
6002
- })), Ag = /* @__PURE__ */ e(((e, t) => {
6072
+ })), C_ = /* @__PURE__ */ e(((e, t) => {
6003
6073
  var n = Z();
6004
6074
  t.exports = (e, t) => new n(e, t).minor;
6005
- })), jg = /* @__PURE__ */ e(((e, t) => {
6075
+ })), w_ = /* @__PURE__ */ e(((e, t) => {
6006
6076
  var n = Z();
6007
6077
  t.exports = (e, t) => new n(e, t).patch;
6008
- })), Mg = /* @__PURE__ */ e(((e, t) => {
6009
- var n = wg();
6078
+ })), T_ = /* @__PURE__ */ e(((e, t) => {
6079
+ var n = __();
6010
6080
  t.exports = (e, t) => {
6011
6081
  let r = n(e, t);
6012
6082
  return r && r.prerelease.length ? r.prerelease : null;
@@ -6014,44 +6084,44 @@ var Ep = (e) => {
6014
6084
  })), Q = /* @__PURE__ */ e(((e, t) => {
6015
6085
  var n = Z();
6016
6086
  t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
6017
- })), Ng = /* @__PURE__ */ e(((e, t) => {
6087
+ })), E_ = /* @__PURE__ */ e(((e, t) => {
6018
6088
  var n = Q();
6019
6089
  t.exports = (e, t, r) => n(t, e, r);
6020
- })), Pg = /* @__PURE__ */ e(((e, t) => {
6090
+ })), D_ = /* @__PURE__ */ e(((e, t) => {
6021
6091
  var n = Q();
6022
6092
  t.exports = (e, t) => n(e, t, !0);
6023
- })), Fg = /* @__PURE__ */ e(((e, t) => {
6093
+ })), O_ = /* @__PURE__ */ e(((e, t) => {
6024
6094
  var n = Z();
6025
6095
  t.exports = (e, t, r) => {
6026
6096
  let i = new n(e, r), a = new n(t, r);
6027
6097
  return i.compare(a) || i.compareBuild(a);
6028
6098
  };
6029
- })), Ig = /* @__PURE__ */ e(((e, t) => {
6030
- var n = Fg();
6099
+ })), k_ = /* @__PURE__ */ e(((e, t) => {
6100
+ var n = O_();
6031
6101
  t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
6032
- })), Lg = /* @__PURE__ */ e(((e, t) => {
6033
- var n = Fg();
6102
+ })), A_ = /* @__PURE__ */ e(((e, t) => {
6103
+ var n = O_();
6034
6104
  t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
6035
- })), Rg = /* @__PURE__ */ e(((e, t) => {
6105
+ })), j_ = /* @__PURE__ */ e(((e, t) => {
6036
6106
  var n = Q();
6037
6107
  t.exports = (e, t, r) => n(e, t, r) > 0;
6038
- })), zg = /* @__PURE__ */ e(((e, t) => {
6108
+ })), M_ = /* @__PURE__ */ e(((e, t) => {
6039
6109
  var n = Q();
6040
6110
  t.exports = (e, t, r) => n(e, t, r) < 0;
6041
- })), Bg = /* @__PURE__ */ e(((e, t) => {
6111
+ })), N_ = /* @__PURE__ */ e(((e, t) => {
6042
6112
  var n = Q();
6043
6113
  t.exports = (e, t, r) => n(e, t, r) === 0;
6044
- })), Vg = /* @__PURE__ */ e(((e, t) => {
6114
+ })), P_ = /* @__PURE__ */ e(((e, t) => {
6045
6115
  var n = Q();
6046
6116
  t.exports = (e, t, r) => n(e, t, r) !== 0;
6047
- })), Hg = /* @__PURE__ */ e(((e, t) => {
6117
+ })), F_ = /* @__PURE__ */ e(((e, t) => {
6048
6118
  var n = Q();
6049
6119
  t.exports = (e, t, r) => n(e, t, r) >= 0;
6050
- })), Ug = /* @__PURE__ */ e(((e, t) => {
6120
+ })), I_ = /* @__PURE__ */ e(((e, t) => {
6051
6121
  var n = Q();
6052
6122
  t.exports = (e, t, r) => n(e, t, r) <= 0;
6053
- })), Wg = /* @__PURE__ */ e(((e, t) => {
6054
- var n = Bg(), r = Vg(), i = Rg(), a = Hg(), o = zg(), s = Ug();
6123
+ })), L_ = /* @__PURE__ */ e(((e, t) => {
6124
+ var n = N_(), r = P_(), i = j_(), a = F_(), o = M_(), s = I_();
6055
6125
  t.exports = (e, t, c, l) => {
6056
6126
  switch (t) {
6057
6127
  case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
@@ -6067,8 +6137,8 @@ var Ep = (e) => {
6067
6137
  default: throw TypeError(`Invalid operator: ${t}`);
6068
6138
  }
6069
6139
  };
6070
- })), Gg = /* @__PURE__ */ e(((e, t) => {
6071
- var n = Z(), r = wg(), { safeRe: i, t: a } = xg();
6140
+ })), R_ = /* @__PURE__ */ e(((e, t) => {
6141
+ var n = Z(), r = __(), { safeRe: i, t: a } = m_();
6072
6142
  t.exports = (e, t) => {
6073
6143
  if (e instanceof n) return e;
6074
6144
  if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
@@ -6084,7 +6154,7 @@ var Ep = (e) => {
6084
6154
  let s = o[2];
6085
6155
  return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
6086
6156
  };
6087
- })), Kg = /* @__PURE__ */ e(((e, t) => {
6157
+ })), z_ = /* @__PURE__ */ e(((e, t) => {
6088
6158
  t.exports = class {
6089
6159
  constructor() {
6090
6160
  this.max = 1e3, this.map = /* @__PURE__ */ new Map();
@@ -6174,7 +6244,7 @@ var Ep = (e) => {
6174
6244
  return !1;
6175
6245
  }
6176
6246
  };
6177
- var r = new (Kg())(), i = Sg(), a = qg(), o = bg(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = xg(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = yg(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
6247
+ var r = new (z_())(), i = h_(), a = B_(), o = p_(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = m_(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = f_(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
6178
6248
  let n = !0, r = e.slice(), i = r.pop();
6179
6249
  for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
6180
6250
  return n;
@@ -6212,7 +6282,7 @@ var Ep = (e) => {
6212
6282
  }
6213
6283
  return !0;
6214
6284
  };
6215
- })), qg = /* @__PURE__ */ e(((e, t) => {
6285
+ })), B_ = /* @__PURE__ */ e(((e, t) => {
6216
6286
  var n = Symbol("SemVer ANY");
6217
6287
  t.exports = class e {
6218
6288
  static get ANY() {
@@ -6247,8 +6317,8 @@ var Ep = (e) => {
6247
6317
  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(">")));
6248
6318
  }
6249
6319
  };
6250
- var r = Sg(), { safeRe: i, t: a } = xg(), o = Wg(), s = bg(), c = Z(), l = $();
6251
- })), Jg = /* @__PURE__ */ e(((e, t) => {
6320
+ var r = h_(), { safeRe: i, t: a } = m_(), o = L_(), s = p_(), c = Z(), l = $();
6321
+ })), V_ = /* @__PURE__ */ e(((e, t) => {
6252
6322
  var n = $();
6253
6323
  t.exports = (e, t, r) => {
6254
6324
  try {
@@ -6258,10 +6328,10 @@ var Ep = (e) => {
6258
6328
  }
6259
6329
  return t.test(e);
6260
6330
  };
6261
- })), Yg = /* @__PURE__ */ e(((e, t) => {
6331
+ })), H_ = /* @__PURE__ */ e(((e, t) => {
6262
6332
  var n = $();
6263
6333
  t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
6264
- })), Xg = /* @__PURE__ */ e(((e, t) => {
6334
+ })), U_ = /* @__PURE__ */ e(((e, t) => {
6265
6335
  var n = Z(), r = $();
6266
6336
  t.exports = (e, t, i) => {
6267
6337
  let a = null, o = null, s = null;
@@ -6274,7 +6344,7 @@ var Ep = (e) => {
6274
6344
  s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
6275
6345
  }), a;
6276
6346
  };
6277
- })), Zg = /* @__PURE__ */ e(((e, t) => {
6347
+ })), W_ = /* @__PURE__ */ e(((e, t) => {
6278
6348
  var n = Z(), r = $();
6279
6349
  t.exports = (e, t, i) => {
6280
6350
  let a = null, o = null, s = null;
@@ -6287,8 +6357,8 @@ var Ep = (e) => {
6287
6357
  s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
6288
6358
  }), a;
6289
6359
  };
6290
- })), Qg = /* @__PURE__ */ e(((e, t) => {
6291
- var n = Z(), r = $(), i = Rg();
6360
+ })), G_ = /* @__PURE__ */ e(((e, t) => {
6361
+ var n = Z(), r = $(), i = j_();
6292
6362
  t.exports = (e, t) => {
6293
6363
  e = new r(e, t);
6294
6364
  let a = new n("0.0.0");
@@ -6312,7 +6382,7 @@ var Ep = (e) => {
6312
6382
  }
6313
6383
  return a && e.test(a) ? a : null;
6314
6384
  };
6315
- })), $g = /* @__PURE__ */ e(((e, t) => {
6385
+ })), K_ = /* @__PURE__ */ e(((e, t) => {
6316
6386
  var n = $();
6317
6387
  t.exports = (e, t) => {
6318
6388
  try {
@@ -6321,8 +6391,8 @@ var Ep = (e) => {
6321
6391
  return null;
6322
6392
  }
6323
6393
  };
6324
- })), e_ = /* @__PURE__ */ e(((e, t) => {
6325
- var n = Z(), r = qg(), { ANY: i } = r, a = $(), o = Jg(), s = Rg(), c = zg(), l = Ug(), u = Hg();
6394
+ })), q_ = /* @__PURE__ */ e(((e, t) => {
6395
+ var n = Z(), r = B_(), { ANY: i } = r, a = $(), o = V_(), s = j_(), c = M_(), l = I_(), u = F_();
6326
6396
  t.exports = (e, t, d, f) => {
6327
6397
  e = new n(e, f), t = new a(t, f);
6328
6398
  let p, m, h, g, _;
@@ -6344,17 +6414,17 @@ var Ep = (e) => {
6344
6414
  }
6345
6415
  return !0;
6346
6416
  };
6347
- })), t_ = /* @__PURE__ */ e(((e, t) => {
6348
- var n = e_();
6417
+ })), J_ = /* @__PURE__ */ e(((e, t) => {
6418
+ var n = q_();
6349
6419
  t.exports = (e, t, r) => n(e, t, ">", r);
6350
- })), n_ = /* @__PURE__ */ e(((e, t) => {
6351
- var n = e_();
6420
+ })), Y_ = /* @__PURE__ */ e(((e, t) => {
6421
+ var n = q_();
6352
6422
  t.exports = (e, t, r) => n(e, t, "<", r);
6353
- })), r_ = /* @__PURE__ */ e(((e, t) => {
6423
+ })), X_ = /* @__PURE__ */ e(((e, t) => {
6354
6424
  var n = $();
6355
6425
  t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
6356
- })), i_ = /* @__PURE__ */ e(((e, t) => {
6357
- var n = Jg(), r = Q();
6426
+ })), Z_ = /* @__PURE__ */ e(((e, t) => {
6427
+ var n = V_(), r = Q();
6358
6428
  t.exports = (e, t, i) => {
6359
6429
  let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
6360
6430
  for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
@@ -6364,8 +6434,8 @@ var Ep = (e) => {
6364
6434
  let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
6365
6435
  return u.length < d.length ? u : t;
6366
6436
  };
6367
- })), a_ = /* @__PURE__ */ e(((e, t) => {
6368
- var n = $(), r = qg(), { ANY: i } = r, a = Jg(), o = Q(), s = (e, t, r = {}) => {
6437
+ })), Q_ = /* @__PURE__ */ e(((e, t) => {
6438
+ var n = $(), r = B_(), { ANY: i } = r, a = V_(), o = Q(), s = (e, t, r = {}) => {
6369
6439
  if (e === t) return !0;
6370
6440
  e = new n(e, r), t = new n(t, r);
6371
6441
  let i = !1;
@@ -6423,46 +6493,46 @@ var Ep = (e) => {
6423
6493
  return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
6424
6494
  };
6425
6495
  t.exports = s;
6426
- })), o_ = (/* @__PURE__ */ e(((e, t) => {
6427
- var n = xg(), r = yg(), i = Z(), a = Cg();
6496
+ })), $_ = (/* @__PURE__ */ e(((e, t) => {
6497
+ var n = m_(), r = f_(), i = Z(), a = g_();
6428
6498
  t.exports = {
6429
- parse: wg(),
6430
- valid: Tg(),
6431
- clean: Eg(),
6432
- inc: Dg(),
6433
- diff: Og(),
6434
- major: kg(),
6435
- minor: Ag(),
6436
- patch: jg(),
6437
- prerelease: Mg(),
6499
+ parse: __(),
6500
+ valid: v_(),
6501
+ clean: y_(),
6502
+ inc: b_(),
6503
+ diff: x_(),
6504
+ major: S_(),
6505
+ minor: C_(),
6506
+ patch: w_(),
6507
+ prerelease: T_(),
6438
6508
  compare: Q(),
6439
- rcompare: Ng(),
6440
- compareLoose: Pg(),
6441
- compareBuild: Fg(),
6442
- sort: Ig(),
6443
- rsort: Lg(),
6444
- gt: Rg(),
6445
- lt: zg(),
6446
- eq: Bg(),
6447
- neq: Vg(),
6448
- gte: Hg(),
6449
- lte: Ug(),
6450
- cmp: Wg(),
6451
- coerce: Gg(),
6452
- Comparator: qg(),
6509
+ rcompare: E_(),
6510
+ compareLoose: D_(),
6511
+ compareBuild: O_(),
6512
+ sort: k_(),
6513
+ rsort: A_(),
6514
+ gt: j_(),
6515
+ lt: M_(),
6516
+ eq: N_(),
6517
+ neq: P_(),
6518
+ gte: F_(),
6519
+ lte: I_(),
6520
+ cmp: L_(),
6521
+ coerce: R_(),
6522
+ Comparator: B_(),
6453
6523
  Range: $(),
6454
- satisfies: Jg(),
6455
- toComparators: Yg(),
6456
- maxSatisfying: Xg(),
6457
- minSatisfying: Zg(),
6458
- minVersion: Qg(),
6459
- validRange: $g(),
6460
- outside: e_(),
6461
- gtr: t_(),
6462
- ltr: n_(),
6463
- intersects: r_(),
6464
- simplifyRange: i_(),
6465
- subset: a_(),
6524
+ satisfies: V_(),
6525
+ toComparators: H_(),
6526
+ maxSatisfying: U_(),
6527
+ minSatisfying: W_(),
6528
+ minVersion: G_(),
6529
+ validRange: K_(),
6530
+ outside: q_(),
6531
+ gtr: J_(),
6532
+ ltr: Y_(),
6533
+ intersects: X_(),
6534
+ simplifyRange: Z_(),
6535
+ subset: Q_(),
6466
6536
  SemVer: i,
6467
6537
  re: n.re,
6468
6538
  src: n.src,
@@ -6472,15 +6542,15 @@ var Ep = (e) => {
6472
6542
  compareIdentifiers: a.compareIdentifiers,
6473
6543
  rcompareIdentifiers: a.rcompareIdentifiers
6474
6544
  };
6475
- })))(), s_ = (e, t) => c_(t) ? t.hostnames.includes(new URL(e).hostname) : l_(t) ? !!e.match(t.regexp) : !1, c_ = (e) => cg.safeParse(e).success, l_ = (e) => lg.safeParse(e).success, u_ = (e, t) => t ? (0, o_.satisfies)(e, t) : !0, d_ = (e, t, n) => u_(t, n.libraryVersionRange) && s_(e, n.matcher), f_ = (e, t) => e.siteRegistrations.filter((e) => d_(t, ag(), e)), p_ = (e, t) => f_(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => gg(e) && e in rg).map((e) => ({
6476
- parser: rg[e],
6545
+ })))(), ev = (e, t) => tv(t) ? t.hostnames.includes(new URL(e).hostname) : nv(t) ? !!e.match(t.regexp) : !1, tv = (e) => t_.safeParse(e).success, nv = (e) => n_.safeParse(e).success, rv = (e, t) => t ? (0, $_.satisfies)(e, t) : !0, iv = (e, t, n) => rv(t, n.libraryVersionRange) && ev(e, n.matcher), av = (e, t) => e.siteRegistrations.filter((e) => iv(t, Qg(), e)), ov = (e, t) => av(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => l_(e) && e in Xg).map((e) => ({
6546
+ parser: Xg[e],
6477
6547
  parserType: e,
6478
6548
  name: t
6479
- }))), m_ = (e, t) => {
6480
- let n = p_(e, t.url);
6549
+ }))), sv = (e, t) => {
6550
+ let n = ov(e, t.url);
6481
6551
  for (let { parser: e, parserType: r, name: i } of n) {
6482
6552
  let n = e(t);
6483
- if (Yc(n) || Xc(n) || Zc(n)) return {
6553
+ if (Xc(n) || Zc(n) || Qc(n)) return {
6484
6554
  ...n,
6485
6555
  meta: {
6486
6556
  parserName: i,
@@ -6490,26 +6560,26 @@ var Ep = (e) => {
6490
6560
  };
6491
6561
  }
6492
6562
  return {
6493
- ...lc(t),
6563
+ ...uc(t),
6494
6564
  meta: {
6495
6565
  parserName: null,
6496
6566
  parserType: X.NoResourceFound,
6497
6567
  referrer: t.url
6498
6568
  }
6499
6569
  };
6500
- }, h_ = (e, t) => {
6570
+ }, cv = (e, t) => {
6501
6571
  switch (t) {
6502
6572
  case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
6503
6573
  default: return new URL(`https://${e}.rl.talis.com`);
6504
6574
  }
6505
- }, g_ = (e, t) => {
6506
- let n = h_(e, t);
6575
+ }, lv = (e, t) => {
6576
+ let n = cv(e, t);
6507
6577
  return new URL("/ui/forms/bookmarklet.html", n);
6508
- }, __ = (e, t, n) => {
6578
+ }, uv = (e, t, n) => {
6509
6579
  let r = To(t);
6510
6580
  r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
6511
6581
  let i = new URL(e.toString());
6512
6582
  return i.search = r.toString(), i;
6513
6583
  };
6514
6584
  //#endregion
6515
- export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, cg 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, rg as PARSERS, fg as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, sg as REGISTRY, lg as RegExpMatcherSchema, _g as ResourceDataSchema, mo as ResourceSchema, dg as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, ug 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, g_ as getBaseBookmarkingUrl, ag as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Jc as isDirectLinkOnlyResult, ko as isGenre, Qc as isNothingParsedResult, Yc as isOpenUrlResult, pg as isParserRegistry, gg as isParserType, qc as isParsingMetadata, Fo as isParsingRequest, Kc as isParsingResponse, Gc as isParsingResult, vg as isResourceData, mg as isSiteRegistration, Zc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, hg as isUrlMatcher, Xc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, m_ as parseResource, es as summonSearchResult, __ as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };
6585
+ export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, t_ 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, Xg as PARSERS, a_ as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, e_ as REGISTRY, n_ as RegExpMatcherSchema, u_ as ResourceDataSchema, mo as ResourceSchema, i_ as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, r_ 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, lv as getBaseBookmarkingUrl, Qg as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Yc as isDirectLinkOnlyResult, ko as isGenre, $c as isNothingParsedResult, Xc as isOpenUrlResult, o_ as isParserRegistry, l_ as isParserType, Jc as isParsingMetadata, Fo as isParsingRequest, qc as isParsingResponse, Kc as isParsingResult, d_ as isResourceData, s_ as isSiteRegistration, Qc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, c_ as isUrlMatcher, Zc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, sv as parseResource, es as summonSearchResult, uv as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };