@talisdev/bibliographic-resource-parsers-lib 5.44.0 → 5.45.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.
@@ -4414,17 +4414,25 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4414
4414
  case q.Video: return B(pd(i));
4415
4415
  default: return z();
4416
4416
  }
4417
- }, gd = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, _d = (e) => Array.from(e.querySelectorAll(gd("Identifier"))).map((e) => e.textContent).filter((e) => !!e), vd = (e) => Array.from(e.querySelectorAll(gd("Author"))).filter((e) => !!e.textContent && e.parentElement !== null && e.parentElement.getAttribute("aria-hidden") !== "true").map((e) => e.textContent.trim()), yd = (e, t) => e.querySelector(gd(t))?.textContent.trim(), bd = (e) => qu({
4418
- authors: vd(e),
4419
- title: yd(e, "Title"),
4420
- publisher: yd(e, "Publisher"),
4421
- creationDate: yd(e, "Creation Date"),
4422
- publicationDate: yd(e, "Publication Date"),
4423
- edition: yd(e, "Edition"),
4424
- isPartOf: yd(e, "Is Part Of"),
4425
- identifierValues: _d(e),
4426
- lcn: yd(e, "MMS ID") ?? yd(e, "Record ID")
4427
- }), xd = {
4417
+ }, gd = (e) => `*:has([data-details-label="${e}"]) + .item-details-element-container prm-highlight`, _d = (e, t) => {
4418
+ for (let n of t) {
4419
+ let t = e.querySelector(n)?.textContent.trim();
4420
+ if (t) return t;
4421
+ }
4422
+ }, vd = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, yd = (e) => Array.from(e.querySelectorAll(gd("identifier"))).map((e) => e.textContent).filter((e) => !!e), bd = (e) => Array.from(e.querySelectorAll(gd("creator"))).filter((e) => !!e.textContent && e.parentElement !== null && e.parentElement.getAttribute("aria-hidden") !== "true").map((e) => e.textContent.trim()), xd = (e, t) => e.querySelector(gd(t))?.textContent.trim(), Sd = (e) => xd(e, "mms") ?? _d(e, [
4423
+ vd("MMS ID"),
4424
+ vd("ID MMS"),
4425
+ vd("Record ID")
4426
+ ]), Cd = (e) => qu({
4427
+ authors: bd(e),
4428
+ title: xd(e, "title"),
4429
+ publisher: xd(e, "publisher"),
4430
+ creationDate: xd(e, "creationdate"),
4431
+ edition: xd(e, "edition"),
4432
+ isPartOf: xd(e, "ispartof"),
4433
+ identifierValues: yd(e),
4434
+ lcn: Sd(e)
4435
+ }), wd = {
4428
4436
  Article: q.Article,
4429
4437
  Book: q.Book,
4430
4438
  "Book Chapter": q.BookChapter,
@@ -4435,14 +4443,14 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4435
4443
  CreativeWork: q.Audio,
4436
4444
  Movie: q.Video,
4437
4445
  Video: q.Video
4438
- }, Sd = hd(bd, (e, t) => {
4446
+ }, Td = hd(Cd, (e, t) => {
4439
4447
  let n = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
4440
- return n ? xd[n] : void 0;
4441
- }), Cd = (e) => {
4448
+ return n ? wd[n] : void 0;
4449
+ }), Ed = (e) => {
4442
4450
  let t = e.querySelectorAll("[id=\"Info\"] > p"), n = Array.from(t).find((e) => e.textContent.includes("Document Type"))?.textContent, r = V(e, "name", "DC.identifier");
4443
4451
  if (r?.startsWith("info:doi/") || n?.includes("Article")) return U.Article;
4444
4452
  if (r?.startsWith("urn:issn:")) return U.Journal;
4445
- }, wd = (e) => {
4453
+ }, Dd = (e) => {
4446
4454
  let [t, n, r, i] = V(e, "name", "DCTERMS.bibliographicCitation")?.split(",") ?? [];
4447
4455
  return {
4448
4456
  journalTitle: t,
@@ -4450,22 +4458,22 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4450
4458
  issue: r,
4451
4459
  pages: i
4452
4460
  };
4453
- }, Td = (e) => {
4461
+ }, Od = (e) => {
4454
4462
  let t = V(e, "name", "DC.identifier");
4455
4463
  return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
4456
- }, Ed = (e) => e.evaluate("//*[@id=\"altLayoutPublisherLogo\"]/p/a[1]", e, null, XPathResult.STRING_TYPE, null).stringValue, Dd = (e) => {
4464
+ }, kd = (e) => e.evaluate("//*[@id=\"altLayoutPublisherLogo\"]/p/a[1]", e, null, XPathResult.STRING_TYPE, null).stringValue, Ad = (e) => {
4457
4465
  let [t, n] = e ? e.trim().split("-") : [void 0, void 0];
4458
4466
  return {
4459
4467
  spage: t,
4460
4468
  epage: n?.replace(/\(\d+\)/, "").trim()
4461
4469
  };
4462
- }, Od = (e) => {
4470
+ }, jd = (e) => {
4463
4471
  let t = V(e, "name", "DCTERMS.issued");
4464
4472
  if (!t) return;
4465
4473
  let n = /\d{4}/.exec(t);
4466
4474
  return n ? n[0] : void 0;
4467
- }, kd = (e) => {
4468
- let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = Od(e), i = wd(e), a = i.journalTitle?.trim(), o = i.volume?.trim(), s = i.issue?.trim(), c = i.pages ? Dd(i.pages) : void 0, l = c?.spage, u = c?.epage, d = H(e, "name", "DC.creator"), f = Td(e);
4475
+ }, Md = (e) => {
4476
+ let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = jd(e), i = Dd(e), a = i.journalTitle?.trim(), o = i.volume?.trim(), s = i.issue?.trim(), c = i.pages ? Ad(i.pages) : void 0, l = c?.spage, u = c?.epage, d = H(e, "name", "DC.creator"), f = Od(e);
4469
4477
  return L(F.Article, {
4470
4478
  au: d,
4471
4479
  jtitle: a,
@@ -4478,72 +4486,72 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4478
4486
  atitle: t,
4479
4487
  volume: o
4480
4488
  });
4481
- }, Ad = (e) => {
4482
- let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = Ed(e);
4489
+ }, Nd = (e) => {
4490
+ let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = kd(e);
4483
4491
  return L(F.Journal, {
4484
4492
  issn: r,
4485
4493
  title: t,
4486
4494
  pub: n
4487
4495
  });
4488
- }, jd = ({ document: e }) => {
4489
- switch (Cd(e)) {
4490
- case U.Article: return B(kd(e));
4491
- case U.Journal: return B(Ad(e));
4496
+ }, Pd = ({ document: e }) => {
4497
+ switch (Ed(e)) {
4498
+ case U.Article: return B(Md(e));
4499
+ case U.Journal: return B(Nd(e));
4492
4500
  default: return z();
4493
4501
  }
4494
- }, Md = /^\d{4}-\d{3}[\dX]$/i, Nd = (e) => Md.test(e), Pd = (e) => {
4495
- let t = e.filter(Nd);
4502
+ }, Fd = /^\d{4}-\d{3}[\dX]$/i, Id = (e) => Fd.test(e), Ld = (e) => {
4503
+ let t = e.filter(Id);
4496
4504
  return t.length ? t : void 0;
4497
- }, Fd = (e) => {
4505
+ }, Rd = (e) => {
4498
4506
  let t = H(e, "name", "citation_author");
4499
4507
  return t.length ? t : void 0;
4500
- }, Id = (e) => V(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], Ld = (e) => V(e, "name", "citation_doi"), Rd = (e) => {
4508
+ }, zd = (e) => V(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], Bd = (e) => V(e, "name", "citation_doi"), Vd = (e) => {
4501
4509
  let t = H(e, "name", "citation_isbn");
4502
4510
  return t.length ? t.join(",") : void 0;
4503
- }, zd = (e) => Pd(H(e, "name", "citation_issn")), Bd = (e) => V(e, "name", "citation_journal_title"), Vd = (e) => V(e, "name", "citation_publisher"), Hd = (e) => V(e, "name", "citation_title"), Ud = (e) => V(e, "name", "citation_doi"), Wd = (e) => V(e, "name", "citation_firstpage"), Gd = (e) => V(e, "name", "citation_lastpage"), Kd = (e) => V(e, "name", "citation_issue"), qd = (e) => V(e, "name", "citation_volume"), Jd = (e) => L(F.Article, {
4504
- atitle: Hd(e),
4505
- au: Fd(e),
4506
- date: Id(e),
4507
- doi: Ld(e),
4508
- issn: zd(e)?.[0],
4509
- issue: Kd(e),
4510
- jtitle: Bd(e),
4511
- pub: Vd(e),
4512
- volume: qd(e),
4513
- spage: Wd(e),
4514
- epage: Gd(e)
4515
- }), Yd = (e) => I(F.Bookitem, {
4516
- atitle: Hd(e),
4517
- au: Fd(e),
4518
- btitle: Bd(e),
4519
- date: Id(e),
4520
- isbn: Rd(e),
4521
- pub: Vd(e),
4522
- spage: Wd(e),
4523
- epage: Gd(e)
4524
- }), Xd = (e) => go({
4525
- title: Hd(e),
4526
- au: Fd(e),
4527
- date: Id(e),
4528
- pub: Vd(e),
4529
- spage: Wd(e),
4530
- epage: Gd(e)
4531
- }), Zd = (e) => !!e.isbn, Qd = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Zd(e) && !!e.journalTitle, $d = (e) => !!e.title, ef = (e) => {
4511
+ }, Hd = (e) => Ld(H(e, "name", "citation_issn")), Ud = (e) => V(e, "name", "citation_journal_title"), Wd = (e) => V(e, "name", "citation_publisher"), Gd = (e) => V(e, "name", "citation_title"), Kd = (e) => V(e, "name", "citation_doi"), qd = (e) => V(e, "name", "citation_firstpage"), Jd = (e) => V(e, "name", "citation_lastpage"), Yd = (e) => V(e, "name", "citation_issue"), Xd = (e) => V(e, "name", "citation_volume"), Zd = (e) => L(F.Article, {
4512
+ atitle: Gd(e),
4513
+ au: Rd(e),
4514
+ date: zd(e),
4515
+ doi: Bd(e),
4516
+ issn: Hd(e)?.[0],
4517
+ issue: Yd(e),
4518
+ jtitle: Ud(e),
4519
+ pub: Wd(e),
4520
+ volume: Xd(e),
4521
+ spage: qd(e),
4522
+ epage: Jd(e)
4523
+ }), Qd = (e) => I(F.Bookitem, {
4524
+ atitle: Gd(e),
4525
+ au: Rd(e),
4526
+ btitle: Ud(e),
4527
+ date: zd(e),
4528
+ isbn: Vd(e),
4529
+ pub: Wd(e),
4530
+ spage: qd(e),
4531
+ epage: Jd(e)
4532
+ }), $d = (e) => go({
4533
+ title: Gd(e),
4534
+ au: Rd(e),
4535
+ date: zd(e),
4536
+ pub: Wd(e),
4537
+ spage: qd(e),
4538
+ epage: Jd(e)
4539
+ }), ef = (e) => !!e.isbn, tf = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !ef(e) && !!e.journalTitle, nf = (e) => !!e.title, rf = (e) => {
4532
4540
  let t = {
4533
- type: Ud(e),
4534
- isbn: Rd(e),
4535
- issn: zd(e),
4536
- journalTitle: Bd(e),
4537
- title: Hd(e)
4541
+ type: Kd(e),
4542
+ isbn: Vd(e),
4543
+ issn: Hd(e),
4544
+ journalTitle: Ud(e),
4545
+ title: Gd(e)
4538
4546
  };
4539
- return Zd(t) ? Yd(e) : Qd(t) ? Jd(e) : $d(t) ? Xd(e) : null;
4540
- }, tf = ({ url: e, document: t }) => {
4541
- let n = ef(t);
4547
+ return ef(t) ? Qd(e) : tf(t) ? Zd(e) : nf(t) ? $d(e) : null;
4548
+ }, af = ({ url: e, document: t }) => {
4549
+ let n = rf(t);
4542
4550
  return n ? B({
4543
4551
  ...n,
4544
4552
  uri: e
4545
4553
  }) : z();
4546
- }, nf = j({
4554
+ }, of = j({
4547
4555
  "@content": O(),
4548
4556
  datePublished: O().optional(),
4549
4557
  mainEntity: j({
@@ -4556,20 +4564,20 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4556
4564
  }).optional(),
4557
4565
  isbn: O().optional()
4558
4566
  })
4559
- }), rf = (e) => nf.safeParse(e).success, af = (e) => {
4567
+ }), sf = (e) => of.safeParse(e).success, cf = (e) => {
4560
4568
  let t = e.textContent;
4561
4569
  if (!t) return null;
4562
4570
  try {
4563
4571
  let e = JSON.parse(t);
4564
- if (rf(e)) return e;
4572
+ if (sf(e)) return e;
4565
4573
  } catch {
4566
4574
  return null;
4567
4575
  }
4568
4576
  return null;
4569
- }, of = ({ document: e }) => {
4577
+ }, lf = ({ document: e }) => {
4570
4578
  let t = Zs(e);
4571
4579
  if (!t) return z();
4572
- let n = af(t);
4580
+ let n = cf(t);
4573
4581
  if (!n) return z();
4574
4582
  let r = n.mainEntity.type, i = n.mainEntity.author?.map((e) => e.name), a = n.datePublished?.substring(0, 4), o = n.mainEntity.name, s = n.mainEntity.isbn, c = n.mainEntity.publisher?.name;
4575
4583
  switch (r) {
@@ -4582,17 +4590,17 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4582
4590
  }));
4583
4591
  default: return z();
4584
4592
  }
4585
- }, sf = W.extend({
4593
+ }, uf = W.extend({
4586
4594
  "@type": O().optional(),
4587
4595
  name: O().optional(),
4588
4596
  copyrightYear: ha().optional(),
4589
4597
  author: A(j({ name: O() })).optional(),
4590
4598
  publisher: A(j({ name: O() })).optional()
4591
- }), cf = (e) => sf.safeParse(e).success, lf = ({ document: e, url: t }) => {
4599
+ }), df = (e) => uf.safeParse(e).success, ff = ({ document: e, url: t }) => {
4592
4600
  let n = Zs(e);
4593
4601
  if (!n) return z();
4594
4602
  let r = Qs(n);
4595
- if (!r || !cf(r)) return z();
4603
+ if (!r || !df(r)) return z();
4596
4604
  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
4605
  switch (i) {
4598
4606
  case "Book": return B(I(F.Book, {
@@ -4605,14 +4613,14 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4605
4613
  }));
4606
4614
  default: return z();
4607
4615
  }
4608
- }, uf = (e) => {
4616
+ }, pf = (e) => {
4609
4617
  let t = Array.from(e.querySelectorAll("a[rel=author]")).map((e) => e.textContent.trim()).filter(Boolean);
4610
4618
  return t.length ? t : void 0;
4611
- }, df = (e) => {
4619
+ }, mf = (e) => {
4612
4620
  let t = Array.from(e.querySelectorAll("strong")).filter((e) => e.textContent.startsWith("ISBN")).map((e) => e.nextElementSibling?.textContent.trim());
4613
4621
  if (t.length !== 0) return t[0]?.replace(/\s+/, ",");
4614
- }, ff = ({ url: e, document: t }) => {
4615
- let n = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, r = uf(t), i = V(t, "property", "article:published_time"), a = df(t);
4622
+ }, hf = ({ url: e, document: t }) => {
4623
+ let n = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, r = pf(t), i = V(t, "property", "article:published_time"), a = mf(t);
4616
4624
  return B(I(F.Book, {
4617
4625
  au: r,
4618
4626
  date: i?.substring(0, 4),
@@ -4621,21 +4629,21 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4621
4629
  title: n,
4622
4630
  uri: e
4623
4631
  }));
4624
- }, pf = ({ document: e, url: t }) => {
4625
- switch (hf(t)) {
4626
- case U.Chapter: return B(bf(e));
4627
- case U.Book: return B(xf(e));
4628
- case U.Article: return B(gf(e));
4629
- case U.Journal: return B(_f(e));
4632
+ }, gf = ({ document: e, url: t }) => {
4633
+ switch (vf(t)) {
4634
+ case U.Chapter: return B(Cf(e));
4635
+ case U.Book: return B(wf(e));
4636
+ case U.Article: return B(yf(e));
4637
+ case U.Journal: return B(bf(e));
4630
4638
  default: return z();
4631
4639
  }
4632
- }, mf = /* @__PURE__ */ function(e) {
4640
+ }, _f = /* @__PURE__ */ function(e) {
4633
4641
  return e.Print = "Print", e.Online = "Online", e;
4634
- }(mf || {}), hf = (e) => {
4642
+ }(_f || {}), vf = (e) => {
4635
4643
  let { pathname: t } = new URL(e);
4636
4644
  return t.includes("/books/abs/") ? U.Chapter : t.includes("/books/") ? U.Book : /\/journals\/.+\/article\//.exec(t) == null ? t.includes("/journals/") ? U.Journal : U.None : U.Article;
4637
- }, gf = (e) => {
4638
- let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_journal_title"), r = V(e, "name", "citation_doi"), i = V(e, "name", "citation_volume"), a = V(e, "name", "citation_issue"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_lastpage"), c = V(e, "name", "citation_publication_date")?.substring(0, 4), l = V(e, "name", "citation_publisher"), u = Sf(e), d = Pd(H(e, "name", "citation_issn"));
4645
+ }, yf = (e) => {
4646
+ let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_journal_title"), r = V(e, "name", "citation_doi"), i = V(e, "name", "citation_volume"), a = V(e, "name", "citation_issue"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_lastpage"), c = V(e, "name", "citation_publication_date")?.substring(0, 4), l = V(e, "name", "citation_publisher"), u = Tf(e), d = Ld(H(e, "name", "citation_issn"));
4639
4647
  return L(F.Article, {
4640
4648
  atitle: t,
4641
4649
  au: u,
@@ -4649,14 +4657,14 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4649
4657
  date: c,
4650
4658
  pub: l
4651
4659
  });
4652
- }, _f = (e) => {
4653
- let t = vf(e), n = yf(e), r = n.find((e) => e.type === mf.Print), i = n.find((e) => e.type === mf.Online), a = r ? r.value : void 0, o = i ? i.value : void 0;
4660
+ }, bf = (e) => {
4661
+ let t = xf(e), n = Sf(e), r = n.find((e) => e.type === _f.Print), i = n.find((e) => e.type === _f.Online), a = r ? r.value : void 0, o = i ? i.value : void 0;
4654
4662
  return L(F.Journal, {
4655
4663
  title: t,
4656
4664
  issn: a,
4657
4665
  eissn: o
4658
4666
  });
4659
- }, vf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, yf = (e) => {
4667
+ }, xf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Sf = (e) => {
4660
4668
  let t = Array.from(e.querySelectorAll("span.bold")).find((e) => e.textContent.trim() === "ISSN:"), n = /^([0-9]{4}-[0-9]{3}[0-9X]) \((Print|Online)\)/, r = [];
4661
4669
  return t && (t.parentElement?.querySelectorAll("span.value"))?.forEach((e) => {
4662
4670
  let t = e.textContent.trim(), i = n.exec(t);
@@ -4665,7 +4673,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4665
4673
  type: i[2]
4666
4674
  });
4667
4675
  }), r;
4668
- }, bf = (e) => {
4676
+ }, Cf = (e) => {
4669
4677
  let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_inbook_title"), r = V(e, "name", "citation_doi"), i = V(e, "name", "citation_publication_date")?.substring(0, 4), a = V(e, "name", "citation_publisher");
4670
4678
  return I(F.Bookitem, {
4671
4679
  atitle: t,
@@ -4674,8 +4682,8 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4674
4682
  date: i,
4675
4683
  pub: a
4676
4684
  });
4677
- }, xf = (e) => {
4678
- let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_doi"), r = V(e, "name", "citation_isbn"), i = V(e, "name", "citation_publication_date")?.substring(0, 4), a = V(e, "name", "citation_publisher"), o = Sf(e);
4685
+ }, wf = (e) => {
4686
+ let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_doi"), r = V(e, "name", "citation_isbn"), i = V(e, "name", "citation_publication_date")?.substring(0, 4), a = V(e, "name", "citation_publisher"), o = Tf(e);
4679
4687
  return I(F.Book, {
4680
4688
  title: t,
4681
4689
  au: o,
@@ -4684,19 +4692,19 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
4684
4692
  date: i,
4685
4693
  pub: a
4686
4694
  });
4687
- }, Sf = (e) => {
4695
+ }, Tf = (e) => {
4688
4696
  let t = H(e, "name", "citation_author");
4689
4697
  return t.length ? t : void 0;
4690
- }, Cf = /* @__PURE__ */ function(e) {
4698
+ }, Ef = /* @__PURE__ */ function(e) {
4691
4699
  return e.Journal = "Journal", e.Article = "Article", e;
4692
- }(Cf || {}), wf = (e) => {
4700
+ }(Ef || {}), Df = (e) => {
4693
4701
  switch (V(e, "property", "og:type")) {
4694
- case "Article": return Cf.Article;
4695
- case "Journal": return Cf.Journal;
4702
+ case "Article": return Ef.Article;
4703
+ case "Journal": return Ef.Journal;
4696
4704
  default: return;
4697
4705
  }
4698
4706
  };
4699
- function Tf(e) {
4707
+ function Of(e) {
4700
4708
  let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "publication_doi");
4701
4709
  return B(L(F.Journal, {
4702
4710
  jtitle: t,
@@ -4704,7 +4712,7 @@ function Tf(e) {
4704
4712
  doi: r
4705
4713
  }));
4706
4714
  }
4707
- function Ef(e) {
4715
+ function kf(e) {
4708
4716
  let t = V(e, "name", "dc.Title"), n = H(e, "name", "dc.Creator"), r = V(e, "name", "dc.Date")?.substring(0, 4), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = V(e, "name", "dc.Publisher");
4709
4717
  return B(L(F.Article, {
4710
4718
  atitle: t,
@@ -4715,24 +4723,24 @@ function Ef(e) {
4715
4723
  pub: o
4716
4724
  }));
4717
4725
  }
4718
- var Df = ({ document: e }) => {
4719
- switch (wf(e)) {
4720
- case Cf.Journal: return Tf(e);
4721
- case Cf.Article: return Ef(e);
4726
+ var Af = ({ document: e }) => {
4727
+ switch (Df(e)) {
4728
+ case Ef.Journal: return Of(e);
4729
+ case Ef.Article: return kf(e);
4722
4730
  default: return z();
4723
4731
  }
4724
- }, Of = (e) => {
4732
+ }, jf = (e) => {
4725
4733
  if (!e) return;
4726
4734
  let [t, n] = e.trim().split("-");
4727
4735
  return {
4728
4736
  spage: t,
4729
4737
  epage: n
4730
4738
  };
4731
- }, kf = (e) => {
4739
+ }, Mf = (e) => {
4732
4740
  let { pathname: t } = new URL(e);
4733
4741
  if (t.includes("/article/")) return U.Article;
4734
- }, Af = (e) => {
4735
- let t = V(e, "name", "DC.Source"), n = V(e, "name", "DC.Title"), r = H(e, "name", "DC.Creator.PersonalName"), i = V(e, "name", "DC.Source.ISSN"), a = V(e, "name", "citation_date")?.substring(0, 4), o = V(e, "name", "DC.Source.Volume"), s = V(e, "name", "DC.Source.Issue"), c = V(e, "name", "DC.Identifier.URI"), l = V(e, "name", "DC.Identifier.pageNumber"), u = l ? Of(l) : void 0, d = u?.spage, f = u?.epage;
4742
+ }, Nf = (e) => {
4743
+ let t = V(e, "name", "DC.Source"), n = V(e, "name", "DC.Title"), r = H(e, "name", "DC.Creator.PersonalName"), i = V(e, "name", "DC.Source.ISSN"), a = V(e, "name", "citation_date")?.substring(0, 4), o = V(e, "name", "DC.Source.Volume"), s = V(e, "name", "DC.Source.Issue"), c = V(e, "name", "DC.Identifier.URI"), l = V(e, "name", "DC.Identifier.pageNumber"), u = l ? jf(l) : void 0, d = u?.spage, f = u?.epage;
4736
4744
  return L(F.Article, {
4737
4745
  jtitle: t,
4738
4746
  atitle: n,
@@ -4745,22 +4753,22 @@ var Df = ({ document: e }) => {
4745
4753
  issue: s,
4746
4754
  uri: c
4747
4755
  });
4748
- }, jf = ({ document: e, url: t }) => {
4749
- switch (kf(t)) {
4750
- case U.Article: return B(Af(e));
4756
+ }, Pf = ({ document: e, url: t }) => {
4757
+ switch (Mf(t)) {
4758
+ case U.Article: return B(Nf(e));
4751
4759
  default: return z();
4752
4760
  }
4753
- }, Mf = /* @__PURE__ */ function(e) {
4761
+ }, Ff = /* @__PURE__ */ function(e) {
4754
4762
  return e.Book = "Book", e.Chapter = "Chapter", e;
4755
- }(Mf || {}), Nf = (e) => {
4756
- switch (Pf(e)) {
4757
- case "eBook": return Mf.Book;
4758
- case "Reference": return Mf.Chapter;
4763
+ }(Ff || {}), If = (e) => {
4764
+ switch (Lf(e)) {
4765
+ case "eBook": return Ff.Book;
4766
+ case "Reference": return Ff.Chapter;
4759
4767
  default: return;
4760
4768
  }
4761
- }, Pf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4762
- function Ff(e, t) {
4763
- let n = Lf(e), r = Bf(e), i = Hf(e), a = Uf(e), o = Wf(e), s = Gf(e), c = Bf(e), l = t, { startPage: u, endPage: d } = Kf(e) ?? {};
4769
+ }, Lf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4770
+ function Rf(e, t) {
4771
+ let n = Bf(e), r = Uf(e), i = Gf(e), a = Kf(e), o = qf(e), s = Jf(e), c = Uf(e), l = t, { startPage: u, endPage: d } = Yf(e) ?? {};
4764
4772
  return B(I(F.Book, {
4765
4773
  au: n,
4766
4774
  btitle: r,
@@ -4774,8 +4782,8 @@ function Ff(e, t) {
4774
4782
  uri: l
4775
4783
  }));
4776
4784
  }
4777
- function If(e, t) {
4778
- let n = Lf(e), r = Vf(e), i = Bf(e), a = Hf(e), o = Uf(e), s = Wf(e), c = Gf(e), l = Vf(e), u = t, { startPage: d, endPage: f } = Kf(e) ?? {};
4785
+ function zf(e, t) {
4786
+ let n = Bf(e), r = Wf(e), i = Uf(e), a = Gf(e), o = Kf(e), s = qf(e), c = Jf(e), l = Wf(e), u = t, { startPage: d, endPage: f } = Yf(e) ?? {};
4779
4787
  return B(I(F.Book, {
4780
4788
  au: n,
4781
4789
  atitle: r,
@@ -4790,10 +4798,10 @@ function If(e, t) {
4790
4798
  uri: u
4791
4799
  }));
4792
4800
  }
4793
- var Lf = (e) => {
4801
+ var Bf = (e) => {
4794
4802
  let t = e.querySelectorAll("div#article_author p.author-bio b"), n = Array.from(t).map((e) => e.textContent).filter((e) => !!e).map((e) => e.trim());
4795
4803
  return n.length > 0 ? n : void 0;
4796
- }, Rf = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, zf = (e) => V(e, "property", "og:title"), Bf = (e) => Rf(e, "titlevalue") ?? zf(e), Vf = (e) => Rf(e, "chapter-title-squid"), Hf = (e) => Rf(e, "pubdate-squid"), Uf = (e) => Rf(e, "doi-squid"), Wf = (e) => Rf(e, "isbn-squid"), Gf = (e) => Rf(e, "pubname-squid"), Kf = (e) => {
4804
+ }, Vf = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Hf = (e) => V(e, "property", "og:title"), Uf = (e) => Vf(e, "titlevalue") ?? Hf(e), Wf = (e) => Vf(e, "chapter-title-squid"), Gf = (e) => Vf(e, "pubdate-squid"), Kf = (e) => Vf(e, "doi-squid"), qf = (e) => Vf(e, "isbn-squid"), Jf = (e) => Vf(e, "pubname-squid"), Yf = (e) => {
4797
4805
  let t = e.querySelector("#pageRange")?.textContent ?? void 0;
4798
4806
  if (!t) return;
4799
4807
  let n = /(\d+)–(\d+)/.exec(t);
@@ -4801,34 +4809,34 @@ var Lf = (e) => {
4801
4809
  startPage: n[1],
4802
4810
  endPage: n[2]
4803
4811
  };
4804
- }, qf = ({ document: e, url: t }) => {
4805
- switch (Nf(e)) {
4806
- case Mf.Book: return Ff(e, t);
4807
- case Mf.Chapter: return If(e, t);
4812
+ }, Xf = ({ document: e, url: t }) => {
4813
+ switch (If(e)) {
4814
+ case Ff.Book: return Rf(e, t);
4815
+ case Ff.Chapter: return zf(e, t);
4808
4816
  default: return z();
4809
4817
  }
4810
- }, Jf = (e, t) => e.evaluate(`//*[@class="singleRecord_view_label"][contains(text(), "${t}")]/following-sibling::*[@class="singleRecord_view_data"]`, e, null, XPathResult.STRING_TYPE).stringValue.toLowerCase().trim(), Yf = (e) => {
4811
- switch (Jf(e, "Medium")) {
4818
+ }, Zf = (e, t) => e.evaluate(`//*[@class="singleRecord_view_label"][contains(text(), "${t}")]/following-sibling::*[@class="singleRecord_view_data"]`, e, null, XPathResult.STRING_TYPE).stringValue.toLowerCase().trim(), Qf = (e) => {
4819
+ switch (Zf(e, "Medium")) {
4812
4820
  case "book":
4813
4821
  case "e-book": return F.Book;
4814
4822
  case "e-journal": return F.Journal;
4815
4823
  default: return F.Unknown;
4816
4824
  }
4817
- }, Xf = (e) => {
4825
+ }, $f = (e) => {
4818
4826
  delete e.rft_id;
4819
- }, Zf = (e) => {
4827
+ }, ep = (e) => {
4820
4828
  let t = ns(e);
4821
4829
  if (qc(t)) {
4822
- let n = Yf(e.document);
4823
- t.resource.genre = n, Xf(t.resource);
4830
+ let n = Qf(e.document);
4831
+ t.resource.genre = n, $f(t.resource);
4824
4832
  }
4825
4833
  return t;
4826
- }, Qf = (e) => {
4834
+ }, tp = (e) => {
4827
4835
  let t = V(e, "name", "type")?.toLowerCase(), n = V(e, "name", "og:type")?.toLowerCase(), r = V(e, "name", "citation_article_type")?.toLowerCase();
4828
4836
  if (t === "article" || r === "article" || n === "article") return U.Article;
4829
4837
  let i = V(e, "name", "twitter:title")?.trim(), a = V(e, "name", "description")?.trim();
4830
4838
  if (i || a) return U.Webpage;
4831
- }, $f = (e) => {
4839
+ }, np = (e) => {
4832
4840
  let t = V(e, "name", "DC.Title"), n = V(e, "name", "DC.Publisher"), r = V(e, "name", "DC.Date"), i = V(e, "name", "DC.Identifier"), a = V(e, "name", "citation_journal_title"), o = V(e, "name", "citation_volume"), s = V(e, "name", "citation_issn"), c = H(e, "name", "citation_author");
4833
4841
  return L(F.Article, {
4834
4842
  au: c,
@@ -4840,41 +4848,41 @@ var Lf = (e) => {
4840
4848
  title: t,
4841
4849
  volume: o
4842
4850
  });
4843
- }, ep = (e, t) => _o({
4851
+ }, rp = (e, t) => _o({
4844
4852
  uri: e,
4845
4853
  title: V(t, "name", "twitter:title")
4846
- }), tp = ({ url: e, document: t }) => {
4847
- switch (Qf(t)) {
4848
- case U.Article: return B($f(t));
4849
- case U.Webpage: return B(ep(e, t));
4854
+ }), ip = ({ url: e, document: t }) => {
4855
+ switch (tp(t)) {
4856
+ case U.Article: return B(np(t));
4857
+ case U.Webpage: return B(rp(e, t));
4850
4858
  }
4851
4859
  return z();
4852
- }, np = ({ document: e }) => Array.from(e.querySelectorAll(".availability.documentSummaryAvailability.availabilityContent")).length === 0 ? z() : es(), rp = /([0-9]{4})\s+at/;
4853
- function ip(e) {
4860
+ }, ap = ({ document: e }) => Array.from(e.querySelectorAll(".availability.documentSummaryAvailability.availabilityContent")).length === 0 ? z() : es(), op = /([0-9]{4})\s+at/;
4861
+ function sp(e) {
4854
4862
  if (!e) return;
4855
- let t = rp.exec(e);
4863
+ let t = op.exec(e);
4856
4864
  if (t && t.length > 1) return t[1];
4857
4865
  }
4858
- function ap(e, t) {
4866
+ function cp(e, t) {
4859
4867
  let n = e.getElementsByClassName(t);
4860
4868
  if (n.length !== 0) return n[0].textContent;
4861
4869
  }
4862
- function op(e) {
4870
+ function lp(e) {
4863
4871
  return Array.from(e.getElementsByTagName("li")).reduce((e, t) => {
4864
- let n = ap(t, "title"), r = ap(t, "content");
4872
+ let n = cp(t, "title"), r = cp(t, "content");
4865
4873
  return n && r && (e[n] = r), e;
4866
4874
  }, {});
4867
4875
  }
4868
- function sp(e) {
4876
+ function up(e) {
4869
4877
  let t = e.getElementsByClassName("information");
4870
4878
  if (t.length === 0) return {};
4871
- let n = op(t[0]);
4879
+ let n = lp(t[0]);
4872
4880
  return {
4873
- date: ip(n.Published),
4881
+ date: sp(n.Published),
4874
4882
  series: n.Show
4875
4883
  };
4876
4884
  }
4877
- var cp = ({ url: e, document: t }) => {
4885
+ var dp = ({ url: e, document: t }) => {
4878
4886
  if (!new URL(e).searchParams.has("i")) return z();
4879
4887
  let n = F.AudioDocument;
4880
4888
  return B({
@@ -4882,16 +4890,16 @@ var cp = ({ url: e, document: t }) => {
4882
4890
  pub: V(t, "property", "og:site_name"),
4883
4891
  title: V(t, "property", "og:title"),
4884
4892
  uri: e,
4885
- ...sp(t)
4893
+ ...up(t)
4886
4894
  });
4887
- }, lp = (e) => {
4895
+ }, fp = (e) => {
4888
4896
  let t = V(e, "name", "citation_date");
4889
4897
  if (t) return t.split("/").find((e) => /^\d{4}/.test(e)) ?? void 0;
4890
- }, up = (e) => {
4898
+ }, pp = (e) => {
4891
4899
  let t = e.querySelector("#arxiv-doi-link")?.textContent;
4892
4900
  if (t) return t.replace("https://doi.org/", "").trim();
4893
- }, dp = ({ document: e }) => {
4894
- let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_pdf_url"), r = H(e, "name", "citation_author"), i = lp(e), a = up(e);
4901
+ }, mp = ({ document: e }) => {
4902
+ let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_pdf_url"), r = H(e, "name", "citation_author"), i = fp(e), a = pp(e);
4895
4903
  return !t && r.length === 0 && !i && !a ? z() : B(L(F.Article, {
4896
4904
  au: r,
4897
4905
  date: i,
@@ -4899,12 +4907,12 @@ var cp = ({ url: e, document: t }) => {
4899
4907
  title: t,
4900
4908
  uri: n
4901
4909
  }));
4902
- }, fp = (e) => {
4910
+ }, hp = (e) => {
4903
4911
  let t = ou(e, "div.director-section div.term-info-section-items");
4904
4912
  if (!t) return;
4905
4913
  let n = t.split(",").map((e) => e.replace(/\s+/g, " ").trim()).filter((e) => e.length > 0);
4906
4914
  return n.length > 0 ? n : void 0;
4907
- }, pp = (e) => {
4915
+ }, gp = (e) => {
4908
4916
  let t = /* @__PURE__ */ new Map();
4909
4917
  return Array.from(e.querySelectorAll(".info-section-container")).forEach((e) => {
4910
4918
  let n = e.querySelector(".info-section-header .info-section-title")?.textContent.trim().toLowerCase();
@@ -4912,34 +4920,34 @@ var cp = ({ url: e, document: t }) => {
4912
4920
  let r = Array.from(e.querySelectorAll(".term-info-section-item")).map((e) => e.textContent.replace(",", "").trim()).filter((e) => !!e);
4913
4921
  r.length && t.set(n, r);
4914
4922
  }), t;
4915
- }, mp = ({ url: e, document: t }) => {
4916
- let n = pp(t);
4923
+ }, _p = ({ url: e, document: t }) => {
4924
+ let n = gp(t);
4917
4925
  return B(R({
4918
- au: fp(t) ?? n.get("director"),
4926
+ au: hp(t) ?? n.get("director"),
4919
4927
  date: ou(t, "div.product-release-year"),
4920
4928
  pub: ou(t, "div.studio-section div.term-info-section-item") ?? gu(n.get("supplier")),
4921
4929
  title: ou(t, ".product-title") ?? ou(t, ".movie-title"),
4922
4930
  uri: e
4923
4931
  }));
4924
- }, hp = (e) => {
4932
+ }, vp = (e) => {
4925
4933
  if (V(e, "property", "og:type") === "article") return U.Article;
4926
4934
  };
4927
- function gp(e) {
4935
+ function yp(e) {
4928
4936
  let t = {}, n = e.querySelector("[data-id=layout-form]");
4929
4937
  return n && Array.from(n.getElementsByTagName("h2")).forEach((e) => {
4930
4938
  let n = e.textContent.toLowerCase(), r = Array.from(e.parentElement?.getElementsByTagName("span") ?? []).map((e) => e.textContent || "");
4931
4939
  n && (t[n] = r[0]);
4932
4940
  }), t;
4933
4941
  }
4934
- function _p(e, t, n) {
4942
+ function bp(e, t, n) {
4935
4943
  return n.includes("publisher") ? t.publisher : n.includes("place of publication, exhibition, or creation") ? t["place of publication, exhibition, or creation"] : V(e, "name", "DC.publisher");
4936
4944
  }
4937
- function vp(e) {
4945
+ function xp(e) {
4938
4946
  let t = V(e, "name", "citation_publication_date");
4939
4947
  return t ? t.substring(0, 4) : V(e, "name", "citation_online_date")?.substring(0, 4);
4940
4948
  }
4941
- var yp = (e) => {
4942
- let t = gp(e), n = V(e, "name", "DataCite.title"), r = H(e, "name", "DataCite.contributor"), i = vp(e), a = V(e, "name", "DC.identifier.DOI"), o = Object.keys(t), s = _p(e, t, o), c = o.includes("journal") ? t.journal : void 0, l = o.includes("volume") ? t.volume : void 0, u = o.includes("issue") ? t.issue : void 0, d = o.includes("issn") ? t.issn : void 0, f = o.includes("electronic location (url)") ? t["electronic location (url)"] : void 0;
4949
+ var Sp = (e) => {
4950
+ let t = yp(e), n = V(e, "name", "DataCite.title"), r = H(e, "name", "DataCite.contributor"), i = xp(e), a = V(e, "name", "DC.identifier.DOI"), o = Object.keys(t), s = bp(e, t, o), c = o.includes("journal") ? t.journal : void 0, l = o.includes("volume") ? t.volume : void 0, u = o.includes("issue") ? t.issue : void 0, d = o.includes("issn") ? t.issn : void 0, f = o.includes("electronic location (url)") ? t["electronic location (url)"] : void 0;
4943
4951
  return L(F.Article, {
4944
4952
  jtitle: c,
4945
4953
  atitle: n,
@@ -4952,43 +4960,43 @@ var yp = (e) => {
4952
4960
  issn: d,
4953
4961
  uri: f
4954
4962
  });
4955
- }, bp = ({ document: e }) => {
4956
- switch (hp(e)) {
4957
- case U.Article: return B(yp(e));
4963
+ }, Cp = ({ document: e }) => {
4964
+ switch (vp(e)) {
4965
+ case U.Article: return B(Sp(e));
4958
4966
  default: return z();
4959
4967
  }
4960
4968
  }, J = /* @__PURE__ */ function(e) {
4961
4969
  return e.ISSN = "issn (print)", e.EISSN = "issn (electronic)", e.ISBN = "isbn (print)", e.VOLUME = "volume", e.ISSUE = "issue", e.PUBLISHER = "publisher", e.DATE_OF_PUBLICATION = "date of publication", e.RESOURCE_TYPE = "resource type", e.JOURNAL_TITLE = "journal", e.BOOK_TITLE = "book title", e.PAGE_RANGE = "page range", e;
4962
- }(J || {}), xp = (e) => {
4970
+ }(J || {}), wp = (e) => {
4963
4971
  let t = Y(e, J.RESOURCE_TYPE);
4964
4972
  return t ? t === "Other Journal Article" || t === "Journal Article" || t === "Journal Item" || t === "Book Review" ? U.Article : t === "Book Chapter" || t === "Book Part" || t === "Conference Abstract" || t === "Book ChapterConference Paper" || t === "Conference Paper" || t === "Other Book Part" ? U.Document : U.None : U.None;
4965
- }, Sp = (e) => e.replace(":", "").replace(" | ", "").trim().toLowerCase(), Cp = (e) => {
4973
+ }, Tp = (e) => e.replace(":", "").replace(" | ", "").trim().toLowerCase(), Ep = (e) => {
4966
4974
  let t = /* @__PURE__ */ new Map(), n = e.querySelector("ul.rlist.publication-details__list");
4967
4975
  return n && Array.from(n.querySelectorAll("li")).forEach((e) => {
4968
4976
  let n = Array.from(e.querySelectorAll("span.label")), r = Array.from(e.querySelectorAll("span.info"));
4969
4977
  n.forEach((e, n) => {
4970
- let i = Sp(e.textContent), a = r[n]?.textContent?.trim();
4978
+ let i = Tp(e.textContent), a = r[n]?.textContent?.trim();
4971
4979
  i && a && (t.has(i) || t.set(i, []), t.get(i)?.push(a));
4972
4980
  });
4973
4981
  }), t;
4974
4982
  }, Y = (e, t) => {
4975
4983
  let n = e.get(t);
4976
4984
  if (n) return ru(n);
4977
- }, wp = (e) => H(e, "name", "dc.Creator").map((e) => e.trim()), Tp = (e) => {
4985
+ }, Dp = (e) => H(e, "name", "dc.Creator").map((e) => e.trim()), Op = (e) => {
4978
4986
  let t = au(e, [".loa-accordion a.author-name"]);
4979
4987
  if (t) return t.map((e) => e.replace("Authors:", "").trim());
4980
- }, Ep = (e) => {
4981
- let t = wp(e);
4982
- return t.length > 0 ? t : Tp(e);
4983
- }, Dp = (e) => V(e, "name", "dc.Title") ?? V(e, "property", "og:title"), Op = (e) => V(e, "name", "publication_doi"), kp = (e, t) => Y(t, J.DATE_OF_PUBLICATION) ?? V(e, "name", "dc.Date"), Ap = (e) => {
4988
+ }, kp = (e) => {
4989
+ let t = Dp(e);
4990
+ return t.length > 0 ? t : Op(e);
4991
+ }, Ap = (e) => V(e, "name", "dc.Title") ?? V(e, "property", "og:title"), jp = (e) => V(e, "name", "publication_doi"), Mp = (e, t) => Y(t, J.DATE_OF_PUBLICATION) ?? V(e, "name", "dc.Date"), Np = (e) => {
4984
4992
  let t = Y(e, J.PAGE_RANGE), n, r;
4985
4993
  return t?.includes("-") && (n = t ? t.split("-")[0].trim() : void 0, r = t ? t.split("-")[1].trim() : void 0), {
4986
4994
  pages: t,
4987
4995
  spage: n,
4988
4996
  epage: r
4989
4997
  };
4990
- }, jp = (e, t, n) => {
4991
- let r = Dp(e), i = Y(t, J.JOURNAL_TITLE), a = V(e, "name", "citation_journal_title"), o = i ?? a, s = Op(e), c = kp(e, t), l = Y(t, J.PUBLISHER), u = Ep(e), d = Y(t, J.VOLUME), f = Y(t, J.ISSUE), p = Ap(t), m = Y(t, J.ISSN), h = Y(t, J.EISSN);
4998
+ }, Pp = (e, t, n) => {
4999
+ let r = Ap(e), i = Y(t, J.JOURNAL_TITLE), a = V(e, "name", "citation_journal_title"), o = i ?? a, s = jp(e), c = Mp(e, t), l = Y(t, J.PUBLISHER), u = kp(e), d = Y(t, J.VOLUME), f = Y(t, J.ISSUE), p = Np(t), m = Y(t, J.ISSN), h = Y(t, J.EISSN);
4992
5000
  return L(F.Article, {
4993
5001
  title: r,
4994
5002
  jtitle: o,
@@ -5005,8 +5013,8 @@ var yp = (e) => {
5005
5013
  eissn: h,
5006
5014
  uri: n
5007
5015
  });
5008
- }, Mp = (e, t, n) => {
5009
- let r = Dp(e), i = Y(t, J.BOOK_TITLE), a = Op(e), o = kp(e, t), s = Y(t, J.PUBLISHER), c = Ep(e), l = Ap(t), u = Y(t, J.ISBN);
5016
+ }, Fp = (e, t, n) => {
5017
+ let r = Ap(e), i = Y(t, J.BOOK_TITLE), a = jp(e), o = Mp(e, t), s = Y(t, J.PUBLISHER), c = kp(e), l = Np(t), u = Y(t, J.ISBN);
5010
5018
  return I(F.Conference, {
5011
5019
  title: r,
5012
5020
  btitle: i,
@@ -5020,8 +5028,8 @@ var yp = (e) => {
5020
5028
  isbn: u,
5021
5029
  uri: n
5022
5030
  });
5023
- }, Np = (e, t, n) => {
5024
- let r = Dp(e), i = Op(e), a = kp(e, t), o = Y(t, J.PUBLISHER), s = Ep(e), c = Y(t, J.ISBN);
5031
+ }, Ip = (e, t, n) => {
5032
+ let r = Ap(e), i = jp(e), a = Mp(e, t), o = Y(t, J.PUBLISHER), s = kp(e), c = Y(t, J.ISBN);
5025
5033
  return I(F.Document, {
5026
5034
  title: r,
5027
5035
  doi: i,
@@ -5031,16 +5039,16 @@ var yp = (e) => {
5031
5039
  uri: n,
5032
5040
  isbn: c
5033
5041
  });
5034
- }, Pp = ({ url: e, document: t }) => {
5035
- let n = Cp(t);
5036
- switch (xp(n)) {
5037
- case U.Article: return B(jp(t, n, e));
5038
- case U.Document: return B(Mp(t, n, e));
5039
- case U.None: return B(Np(t, n, e));
5042
+ }, Lp = ({ url: e, document: t }) => {
5043
+ let n = Ep(t);
5044
+ switch (wp(n)) {
5045
+ case U.Article: return B(Pp(t, n, e));
5046
+ case U.Document: return B(Fp(t, n, e));
5047
+ case U.None: return B(Ip(t, n, e));
5040
5048
  default: return z();
5041
5049
  }
5042
- }, Fp = (e) => V(e, "property", "og:title")?.trim() ?? void 0, Ip = (e) => V(e, "name", "dc.identifier") ?? V(e, "name", "citation_doi"), Lp = (e) => {
5043
- let t = Fp(e), n = t, r = Up(e), i = Hp(e), a = Bp(e), o = Vp(e), { issn: s, eissn: c } = zp(e);
5050
+ }, Rp = (e) => V(e, "property", "og:title")?.trim() ?? void 0, zp = (e) => V(e, "name", "dc.identifier") ?? V(e, "name", "citation_doi"), Bp = (e) => {
5051
+ let t = Rp(e), n = t, r = Kp(e), i = Gp(e), a = Up(e), o = Wp(e), { issn: s, eissn: c } = Hp(e);
5044
5052
  return B(L(F.Journal, {
5045
5053
  date: r,
5046
5054
  eissn: c,
@@ -5051,11 +5059,11 @@ var yp = (e) => {
5051
5059
  title: t,
5052
5060
  volume: o
5053
5061
  }));
5054
- }, Rp = (e) => e.includes("/journals/") && e.includes("issue"), zp = (e) => ({
5062
+ }, Vp = (e) => e.includes("/journals/") && e.includes("issue"), Hp = (e) => ({
5055
5063
  issn: e.querySelector("dd.printissn.text-metadata-value > span")?.textContent.trim(),
5056
5064
  eissn: e.querySelector("dd.onlineissn.text-metadata-value > span")?.textContent.trim()
5057
- }), Bp = (e) => e.querySelector("dd.publisher.text-metadata-value span")?.textContent.trim() ?? void 0, Vp = (e) => Fp(e)?.match(/Volume\s+(\d+)/i)?.[1], Hp = (e) => Fp(e)?.match(/Issue\s+(\d+)/i)?.[1], Up = (e) => Fp(e)?.match(/\((\d{4})\)/)?.[1], Wp = (e) => {
5058
- let t = Fp(e), n = V(e, "name", "citation_title") ?? t, r = H(e, "property", "article:author"), i = Gp(e), a = Ip(e), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_issn"), c = V(e, "name", "citation_issue"), l = V(e, "name", "citation_journal_title"), u = V(e, "name", "citation_publisher"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_volume");
5065
+ }), Up = (e) => e.querySelector("dd.publisher.text-metadata-value span")?.textContent.trim() ?? void 0, Wp = (e) => Rp(e)?.match(/Volume\s+(\d+)/i)?.[1], Gp = (e) => Rp(e)?.match(/Issue\s+(\d+)/i)?.[1], Kp = (e) => Rp(e)?.match(/\((\d{4})\)/)?.[1], qp = (e) => {
5066
+ let t = Rp(e), n = V(e, "name", "citation_title") ?? t, r = H(e, "property", "article:author"), i = Jp(e), a = zp(e), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_issn"), c = V(e, "name", "citation_issue"), l = V(e, "name", "citation_journal_title"), u = V(e, "name", "citation_publisher"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_volume");
5059
5067
  return B(L(F.Article, {
5060
5068
  atitle: n,
5061
5069
  au: r,
@@ -5070,8 +5078,8 @@ var yp = (e) => {
5070
5078
  title: t,
5071
5079
  volume: f
5072
5080
  }));
5073
- }, Gp = (e) => V(e, "property", "article:published_time") ?? V(e, "name", "citation_publication_date"), Kp = (e) => {
5074
- let t = Fp(e), n = V(e, "name", "citation_title") ?? t, r = qp(e), i = Yp(e), a = Ip(e), o = Xp(e), s = V(e, "name", "citation_publisher");
5081
+ }, Jp = (e) => V(e, "property", "article:published_time") ?? V(e, "name", "citation_publication_date"), Yp = (e) => {
5082
+ let t = Rp(e), n = V(e, "name", "citation_title") ?? t, r = Xp(e), i = Qp(e), a = zp(e), o = $p(e), s = V(e, "name", "citation_publisher");
5075
5083
  return B(I(F.Book, {
5076
5084
  au: r,
5077
5085
  btitle: n,
@@ -5081,59 +5089,59 @@ var yp = (e) => {
5081
5089
  pub: s,
5082
5090
  title: t
5083
5091
  }));
5084
- }, qp = (e) => {
5092
+ }, Xp = (e) => {
5085
5093
  let t = H(e, "property", "book:author");
5086
5094
  if (t.length > 0) return t;
5087
5095
  let n = H(e, "name", "citation_author");
5088
- return n.length > 0 ? n : Jp(e);
5089
- }, Jp = (e) => Array.from(e.querySelectorAll(".contributor-details span[data-testid=\"author-name\"]")).map((e) => (e.textContent || "").trim()).filter((e) => e.length > 0), Yp = (e) => V(e, "property", "book:release_date") ?? V(e, "name", "citation_publication_date"), Xp = (e) => V(e, "property", "book:isbn") ?? V(e, "name", "citation_isbn"), Zp = (e, t) => {
5096
+ return n.length > 0 ? n : Zp(e);
5097
+ }, Zp = (e) => Array.from(e.querySelectorAll(".contributor-details span[data-testid=\"author-name\"]")).map((e) => (e.textContent || "").trim()).filter((e) => e.length > 0), Qp = (e) => V(e, "property", "book:release_date") ?? V(e, "name", "citation_publication_date"), $p = (e) => V(e, "property", "book:isbn") ?? V(e, "name", "citation_isbn"), em = (e, t) => {
5090
5098
  switch (V(e, "property", "og:type")) {
5091
5099
  case "article": return U.Article;
5092
5100
  case "book": return U.Book;
5093
5101
  default: break;
5094
5102
  }
5095
- return Rp(t) ? U.Journal : U.None;
5096
- }, Qp = ({ document: e, url: t }) => {
5097
- switch (Zp(e, t)) {
5098
- case U.Article: return Wp(e);
5099
- case U.Journal: return Lp(e);
5100
- case U.Book: return Kp(e);
5103
+ return Vp(t) ? U.Journal : U.None;
5104
+ }, tm = ({ document: e, url: t }) => {
5105
+ switch (em(e, t)) {
5106
+ case U.Article: return qp(e);
5107
+ case U.Journal: return Bp(e);
5108
+ case U.Book: return Yp(e);
5101
5109
  default: return z();
5102
5110
  }
5103
- }, $p = (e) => {
5111
+ }, nm = (e) => {
5104
5112
  let t = e.getAttribute("title");
5105
5113
  return t ? Do(t) : null;
5106
- }, em = ({ url: e, document: t }) => {
5114
+ }, rm = ({ url: e, document: t }) => {
5107
5115
  let n = t.querySelector(".Z3988");
5108
5116
  if (!n) return z();
5109
- let r = $p(n);
5117
+ let r = nm(n);
5110
5118
  return r ? (r.genre === F.Article && !r.jtitle && r.title && (r.jtitle = r.title), B({
5111
5119
  ...r,
5112
5120
  uri: e
5113
5121
  })) : z();
5114
- }, tm = (e) => `[data-qa="detail_${e}"]`, nm = (e, t) => {
5115
- let n = e.querySelector(tm(t));
5122
+ }, im = (e) => `[data-qa="detail_${e}"]`, am = (e, t) => {
5123
+ let n = e.querySelector(im(t));
5116
5124
  return n ? Array.from(n.querySelectorAll("nde-highlight")).map((e) => e.textContent.trim()).filter((e) => !!e) : [];
5117
- }, rm = (e, t) => {
5118
- let n = nm(e, t);
5125
+ }, om = (e, t) => {
5126
+ let n = am(e, t);
5119
5127
  return n.length > 0 ? n[0] : void 0;
5120
- }, im = (e) => {
5121
- let t = e.querySelector(tm("creator"));
5128
+ }, sm = (e) => {
5129
+ let t = e.querySelector(im("creator"));
5122
5130
  if (!t) return [];
5123
5131
  let n = Array.from(t.querySelectorAll("nde-highlight")).map((e) => e.textContent.trim()).filter((e) => !!e).map((e) => e.replace(/,?\s*author\s*$/i, "").trim());
5124
5132
  return n.length > 0 ? n : [];
5125
- }, am = (e) => {
5126
- let t = nm(e, "identifier"), n = nm(e, "ispartof"), r = t.find((e) => e.startsWith("LC:"));
5133
+ }, cm = (e) => {
5134
+ let t = am(e, "identifier"), n = am(e, "ispartof"), r = t.find((e) => e.startsWith("LC:"));
5127
5135
  return qu({
5128
- authors: im(e),
5129
- title: rm(e, "title"),
5130
- publisher: rm(e, "publisher"),
5131
- creationDate: rm(e, "creationdate"),
5136
+ authors: sm(e),
5137
+ title: om(e, "title"),
5138
+ publisher: om(e, "publisher"),
5139
+ creationDate: om(e, "creationdate"),
5132
5140
  isPartOf: n.length > 0 ? n[0] : void 0,
5133
5141
  identifierValues: t,
5134
5142
  lcn: r?.replace("LC:", "").trim()
5135
5143
  });
5136
- }, om = {
5144
+ }, lm = {
5137
5145
  Article: q.Article,
5138
5146
  Audio: q.Audio,
5139
5147
  Book: q.Book,
@@ -5144,28 +5152,28 @@ var yp = (e) => {
5144
5152
  "Magazine Article": q.Article,
5145
5153
  Newspaper: q.Journal,
5146
5154
  Video: q.Video
5147
- }, sm = {
5155
+ }, um = {
5148
5156
  CreativeWork: q.Audio,
5149
5157
  Movie: q.Video,
5150
5158
  Periodical: q.Journal,
5151
5159
  Thesis: q.Dissertation
5152
- }, cm = {
5153
- ...om,
5154
- ...sm
5155
- }, lm = (e) => {
5160
+ }, dm = {
5161
+ ...lm,
5162
+ ...um
5163
+ }, fm = (e) => {
5156
5164
  if (e) return e.mainEntity["@type"];
5157
- }, um = (e) => e.querySelector(".record-type")?.textContent.trim() ?? void 0, dm = hd(am, (e, t) => {
5158
- let n = um(e) ?? lm(t);
5159
- return n ? cm[n] : void 0;
5160
- }), fm = (e) => {
5165
+ }, pm = (e) => e.querySelector(".record-type")?.textContent.trim() ?? void 0, mm = hd(cm, (e, t) => {
5166
+ let n = pm(e) ?? fm(t);
5167
+ return n ? dm[n] : void 0;
5168
+ }), hm = (e) => {
5161
5169
  let t = V(e, "name", "bepress_citation_doi");
5162
5170
  if (t) return t.replace("https://doi.org/", "").trim();
5163
- }, pm = (e) => {
5171
+ }, gm = (e) => {
5164
5172
  let { document: t } = e, n = ns(e);
5165
5173
  if (!qc(n)) return n;
5166
- let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a = fm(t);
5174
+ let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a = hm(t);
5167
5175
  return r && (n.resource.date = r), i && (n.resource.uri = i), a && (n.resource.rft_id = [a]), n;
5168
- }, mm = (e) => {
5176
+ }, _m = (e) => {
5169
5177
  let t = {}, n = Array.from(e.querySelectorAll("#bibliographic-data .bib-label"));
5170
5178
  for (let e of n) {
5171
5179
  let n = e.querySelector("h6")?.textContent.trim().toLowerCase(), r = e.nextElementSibling?.classList.contains("bib-field") ? e.nextElementSibling.textContent.trim() : void 0;
@@ -5176,16 +5184,16 @@ var yp = (e) => {
5176
5184
  n && (t.title = n.textContent.trim());
5177
5185
  }
5178
5186
  return t;
5179
- }, hm = (e) => {
5187
+ }, vm = (e) => {
5180
5188
  if (e.title) return e.subtitle ? `${e.title}: ${e.subtitle}` : e.title;
5181
- }, gm = (e) => {
5189
+ }, ym = (e) => {
5182
5190
  let t = e["print pub date"];
5183
5191
  if (t) return t.split("-")[0];
5184
- }, _m = (e) => e.author ? [e.author] : e.authors ? vm(e.authors) : void 0, vm = (e) => {
5192
+ }, bm = (e) => e.author ? [e.author] : e.authors ? xm(e.authors) : void 0, xm = (e) => {
5185
5193
  let t = e.split(",").map((e) => e.trim()).filter(Boolean), n = t[t.length - 1];
5186
5194
  return n.startsWith("and ") && (t[t.length - 1] = n.replace(/^and\s/, "").trim()), t;
5187
- }, ym = (e, t) => e.querySelector("a.ga_detail_bt_readonline")?.getAttribute("href") ?? t, bm = ({ document: e, url: t }) => {
5188
- let n = mm(e), r = hm(n), i = n.edition, a = n["ebook isbn"], o = _m(n), s = n.publisher, c = n.series, l = gm(n), u = ym(e, t);
5195
+ }, Sm = (e, t) => e.querySelector("a.ga_detail_bt_readonline")?.getAttribute("href") ?? t, Cm = ({ document: e, url: t }) => {
5196
+ let n = _m(e), r = vm(n), i = n.edition, a = n["ebook isbn"], o = bm(n), s = n.publisher, c = n.series, l = ym(n), u = Sm(e, t);
5189
5197
  return B(I(F.Book, {
5190
5198
  atitle: r,
5191
5199
  edition: i,
@@ -5196,7 +5204,7 @@ var yp = (e) => {
5196
5204
  date: l,
5197
5205
  uri: u
5198
5206
  }));
5199
- }, xm = W.extend({
5207
+ }, wm = W.extend({
5200
5208
  "@type": N("VideoObject"),
5201
5209
  name: O(),
5202
5210
  url: O(),
@@ -5208,56 +5216,56 @@ var yp = (e) => {
5208
5216
  "@type": N("Person"),
5209
5217
  name: O()
5210
5218
  }))]))
5211
- }), Sm = (e) => {
5219
+ }), Tm = (e) => {
5212
5220
  let t = Zs(e);
5213
5221
  if (!t) return null;
5214
- let n = Qs(t), r = xm.safeParse(n);
5222
+ let n = Qs(t), r = wm.safeParse(n);
5215
5223
  return r.success ? r.data : null;
5216
- }, Cm = (e) => {
5224
+ }, Em = (e) => {
5217
5225
  if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
5218
- }, wm = ({ document: e }) => {
5219
- let t = Sm(e);
5226
+ }, Dm = ({ document: e }) => {
5227
+ let t = Tm(e);
5220
5228
  if (!t) return z();
5221
- let n = Cm(t);
5229
+ let n = Em(t);
5222
5230
  return B(R({
5223
5231
  title: t.name,
5224
5232
  date: t.datePublished,
5225
5233
  au: n,
5226
5234
  uri: t.url
5227
5235
  }));
5228
- }, Tm = W.extend({ publisher: j({
5236
+ }, Om = W.extend({ publisher: j({
5229
5237
  "@type": N("Organization"),
5230
5238
  name: O()
5231
- }) }), Em = W.extend({
5239
+ }) }), km = W.extend({
5232
5240
  "@type": N("WebSite"),
5233
5241
  issn: O(),
5234
5242
  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);
5243
+ }), Am = (e) => {
5244
+ let t = Mm(e), n = e.querySelector(".article-issue-info a")?.getAttribute("href") ?? "", r = /\/v(\d+)/i.exec(n), i = /\/n(\d+)/i.exec(n);
5237
5245
  return {
5238
5246
  jtitle: t?.name ?? void 0,
5239
5247
  issn: t?.issn ?? void 0,
5240
5248
  volume: r ? r[1] : void 0,
5241
5249
  issue: i ? i[1] : void 0
5242
5250
  };
5243
- }, Om = (e) => {
5251
+ }, jm = (e) => {
5244
5252
  let t = Xs(e);
5245
5253
  return t.length === 0 ? null : t.map((e) => Qs(e)).filter((e) => e !== null);
5246
- }, km = (e) => {
5247
- let t = Om(e);
5254
+ }, Mm = (e) => {
5255
+ let t = jm(e);
5248
5256
  if (!t) return;
5249
- let n = t.map((e) => Em.safeParse(e)).find((e) => e.success);
5257
+ let n = t.map((e) => km.safeParse(e)).find((e) => e.success);
5250
5258
  return n ? n.data : void 0;
5251
- }, Am = (e) => {
5252
- let t = Om(e);
5259
+ }, Nm = (e) => {
5260
+ let t = jm(e);
5253
5261
  if (!t) return;
5254
- let n = t.map((e) => Tm.safeParse(e)).find((e) => e.success);
5262
+ let n = t.map((e) => Om.safeParse(e)).find((e) => e.success);
5255
5263
  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) => {
5264
+ }, Pm = (e) => V(e, "property", "article:author"), Fm = (e) => V(e, "property", "og:title"), Im = (e) => {
5257
5265
  let t = V(e, "property", "article:published_time");
5258
5266
  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);
5267
+ }, Lm = (e) => V(e, "property", "og:url"), Rm = (e) => {
5268
+ let t = Pm(e), n = Fm(e), r = Lm(e), i = Im(e), a = Nm(e), { volume: o, issue: s, issn: c, jtitle: l } = Am(e);
5261
5269
  return L(F.Article, {
5262
5270
  au: t ? [t] : void 0,
5263
5271
  pub: a,
@@ -5269,8 +5277,8 @@ var yp = (e) => {
5269
5277
  volume: o,
5270
5278
  issue: s
5271
5279
  });
5272
- }, Im = (e) => {
5273
- let t = jm(e), n = Mm(e), r = Pm(e), i = Nm(e), a = Am(e);
5280
+ }, zm = (e) => {
5281
+ let t = Pm(e), n = Fm(e), r = Lm(e), i = Im(e), a = Nm(e);
5274
5282
  return R({
5275
5283
  au: t ? [t] : void 0,
5276
5284
  pub: a,
@@ -5278,42 +5286,42 @@ var yp = (e) => {
5278
5286
  title: n,
5279
5287
  date: i
5280
5288
  });
5281
- }, Lm = (e) => {
5289
+ }, Bm = (e) => {
5282
5290
  switch (V(e, "property", "og:type")) {
5283
5291
  case "article": return U.Article;
5284
5292
  case "podcast":
5285
5293
  case "film": return U.AudioVisual;
5286
5294
  default: return null;
5287
5295
  }
5288
- }, Rm = (e) => {
5289
- switch (Lm(e)) {
5290
- case U.Article: return Fm(e);
5291
- case U.AudioVisual: return Im(e);
5296
+ }, Vm = (e) => {
5297
+ switch (Bm(e)) {
5298
+ case U.Article: return Rm(e);
5299
+ case U.AudioVisual: return zm(e);
5292
5300
  default: return null;
5293
5301
  }
5294
- }, zm = ({ document: e }) => {
5295
- let t = Rm(e);
5302
+ }, Hm = ({ document: e }) => {
5303
+ let t = Vm(e);
5296
5304
  return t ? B(t) : z();
5297
- }, Bm = (e) => {
5305
+ }, Um = (e) => {
5298
5306
  let t = /\/books\/([^/]+)/.exec(e);
5299
5307
  return t ? t[1] : void 0;
5300
- }, Vm = (e) => {
5308
+ }, Wm = (e) => {
5301
5309
  let t = e.querySelector(".sc-epFoly")?.textContent.trim();
5302
5310
  if (t) return t.split(";").map((e) => e.trim());
5303
- }, Hm = (e) => {
5311
+ }, Gm = (e) => {
5304
5312
  let t = e.querySelector("h3.sc-eEvSnX")?.textContent.trim();
5305
5313
  if (t) return t;
5306
5314
  let n = e.title.split("Ref:").pop();
5307
5315
  return n ? n.trim() : void 0;
5308
- }, Um = ({ document: e, url: t }) => {
5309
- let n = Hm(e), r = Bm(t), i = Vm(e);
5316
+ }, Km = ({ document: e, url: t }) => {
5317
+ let n = Gm(e), r = Um(t), i = Wm(e);
5310
5318
  return !n && !i && !r ? z() : B(I(F.Book, {
5311
5319
  title: n,
5312
5320
  au: i,
5313
5321
  isbn: r,
5314
5322
  uri: t
5315
5323
  }));
5316
- }, Wm = (e) => {
5324
+ }, qm = (e) => {
5317
5325
  let t = V(e, "name", "citation_title");
5318
5326
  if (!t) return null;
5319
5327
  let n = H(e, "name", "citation_author"), r = V(e, "name", "citation_journal_title"), i = V(e, "name", "citation_issn"), a = fs(V(e, "name", "citation_date")), o = V(e, "name", "citation_volume"), s = V(e, "name", "citation_issue"), c = V(e, "name", "citation_firstpage"), l = V(e, "name", "citation_lastpage"), u = V(e, "name", "citation_doi"), d = V(e, "name", "citation_fulltext_html_url") ?? V(e, "name", "citation_pdf_url");
@@ -5330,12 +5338,12 @@ var yp = (e) => {
5330
5338
  doi: u,
5331
5339
  uri: d
5332
5340
  });
5333
- }, Gm = (e) => {
5334
- let t = Wm(e.document);
5341
+ }, Jm = (e) => {
5342
+ let t = qm(e.document);
5335
5343
  return t ? B(t) : ns(e);
5336
5344
  }, X = /* @__PURE__ */ function(e) {
5337
5345
  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;
5338
- }({}), Km = {
5346
+ }({}), Ym = {
5339
5347
  [X.NoResourceFound]: sc,
5340
5348
  [X.Z3988]: ns,
5341
5349
  [X.Z3988SearchResult]: nu,
@@ -5352,35 +5360,35 @@ var yp = (e) => {
5352
5360
  [X.VuFind]: $c,
5353
5361
  [X.ClinicalKey]: qs,
5354
5362
  [X.DOAJ]: pc,
5355
- [X.Primo]: Sd,
5356
- [X.IngentaConnect]: jd,
5357
- [X.Ebscohost]: tf,
5358
- [X.OpenStax]: of,
5359
- [X.OpenTextbook]: lf,
5360
- [X.Milne]: ff,
5361
- [X.CambridgeJournalsOnline]: pf,
5362
- [X.AhaJournals]: Df,
5363
- [X.Ijees]: jf,
5364
- [X.BloomsburyCollections]: qf,
5365
- [X.HeritageCirqa]: Zf,
5366
- [X.BritishMedicalJournal]: tp,
5367
- [X.SummonSearchResult]: np,
5368
- [X.ApplePodcasts]: cp,
5369
- [X.Arxiv]: dp,
5370
- [X.KanopyVideo]: mp,
5371
- [X.LaTrobeOpal]: bp,
5363
+ [X.Primo]: Td,
5364
+ [X.IngentaConnect]: Pd,
5365
+ [X.Ebscohost]: af,
5366
+ [X.OpenStax]: lf,
5367
+ [X.OpenTextbook]: ff,
5368
+ [X.Milne]: hf,
5369
+ [X.CambridgeJournalsOnline]: gf,
5370
+ [X.AhaJournals]: Af,
5371
+ [X.Ijees]: Pf,
5372
+ [X.BloomsburyCollections]: Xf,
5373
+ [X.HeritageCirqa]: ep,
5374
+ [X.BritishMedicalJournal]: ip,
5375
+ [X.SummonSearchResult]: ap,
5376
+ [X.ApplePodcasts]: dp,
5377
+ [X.Arxiv]: mp,
5378
+ [X.KanopyVideo]: _p,
5379
+ [X.LaTrobeOpal]: Cp,
5372
5380
  [X.BYUScholarsArchive]: Ds,
5373
- [X.Informit]: Pp,
5374
- [X.Brill]: Qp,
5375
- [X.HeinOnline]: em,
5376
- [X.PrimoNde]: dm,
5377
- [X.MichiganLaw]: pm,
5378
- [X.EbookCentral]: bm,
5379
- [X.AlexanderStreetPress]: wm,
5380
- [X.LondonReviewOfBooks]: zm,
5381
- [X.VitalSource]: Um,
5382
- [X.Icono14]: Gm
5383
- }, qm = "5.44.0", Jm = () => qm, Ym = [
5381
+ [X.Informit]: Lp,
5382
+ [X.Brill]: tm,
5383
+ [X.HeinOnline]: rm,
5384
+ [X.PrimoNde]: mm,
5385
+ [X.MichiganLaw]: gm,
5386
+ [X.EbookCentral]: Cm,
5387
+ [X.AlexanderStreetPress]: Dm,
5388
+ [X.LondonReviewOfBooks]: Hm,
5389
+ [X.VitalSource]: Km,
5390
+ [X.Icono14]: Jm
5391
+ }, Xm = "5.45.0", Zm = () => Xm, Qm = [
5384
5392
  "com.au",
5385
5393
  "com",
5386
5394
  "ca",
@@ -5388,8 +5396,8 @@ var yp = (e) => {
5388
5396
  "de",
5389
5397
  "fr",
5390
5398
  "nl"
5391
- ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), Xm = {
5392
- version: Jm(),
5399
+ ].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), $m = {
5400
+ version: Zm(),
5393
5401
  siteRegistrations: [
5394
5402
  {
5395
5403
  matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
@@ -5417,7 +5425,7 @@ var yp = (e) => {
5417
5425
  parsers: [X.ScienceDirect]
5418
5426
  },
5419
5427
  {
5420
- matcher: { hostnames: Ym },
5428
+ matcher: { hostnames: Qm },
5421
5429
  name: "Amazon",
5422
5430
  parsers: [X.Amazon]
5423
5431
  },
@@ -5622,18 +5630,18 @@ var yp = (e) => {
5622
5630
  parsers: [X.VitalSource]
5623
5631
  }
5624
5632
  ]
5625
- }, Zm = j({ hostnames: A(O()).min(1) }), Qm = j({ regexp: O() }), $m = M([Zm, Qm]), eh = j({
5626
- matcher: $m,
5633
+ }, eh = j({ hostnames: A(O()).min(1) }), th = j({ regexp: O() }), nh = M([eh, th]), rh = j({
5634
+ matcher: nh,
5627
5635
  name: O(),
5628
5636
  parsers: A(O()),
5629
5637
  libraryVersionRange: O().optional()
5630
- }), th = j({
5631
- siteRegistrations: A(eh),
5638
+ }), ih = j({
5639
+ siteRegistrations: A(rh),
5632
5640
  version: O()
5633
- }), nh = (e) => th.safeParse(e).success, rh = (e) => eh.safeParse(e).success, ih = (e) => $m.safeParse(e).success, ah = (e) => Object.values(X).includes(e), oh = j({
5641
+ }), ah = (e) => ih.safeParse(e).success, oh = (e) => rh.safeParse(e).success, sh = (e) => nh.safeParse(e).success, ch = (e) => Object.values(X).includes(e), lh = j({
5634
5642
  url: O(),
5635
5643
  document: eo((e) => typeof e == "object" && !!e)
5636
- }), sh = (e) => oh.safeParse(e).success, ch = /* @__PURE__ */ e(((e, t) => {
5644
+ }), uh = (e) => lh.safeParse(e).success, dh = /* @__PURE__ */ e(((e, t) => {
5637
5645
  var n = "2.0.0", r = 256;
5638
5646
  t.exports = {
5639
5647
  MAX_LENGTH: r,
@@ -5653,10 +5661,10 @@ var yp = (e) => {
5653
5661
  FLAG_INCLUDE_PRERELEASE: 1,
5654
5662
  FLAG_LOOSE: 2
5655
5663
  };
5656
- })), lh = /* @__PURE__ */ e(((e, t) => {
5664
+ })), fh = /* @__PURE__ */ e(((e, t) => {
5657
5665
  t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
5658
- })), uh = /* @__PURE__ */ e(((e, t) => {
5659
- var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = ch(), a = lh();
5666
+ })), ph = /* @__PURE__ */ e(((e, t) => {
5667
+ var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = dh(), a = fh();
5660
5668
  e = t.exports = {};
5661
5669
  var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
5662
5670
  ["\\s", 1],
@@ -5670,10 +5678,10 @@ var yp = (e) => {
5670
5678
  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);
5671
5679
  };
5672
5680
  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*$");
5673
- })), dh = /* @__PURE__ */ e(((e, t) => {
5681
+ })), mh = /* @__PURE__ */ e(((e, t) => {
5674
5682
  var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
5675
5683
  t.exports = (e) => e ? typeof e == "object" ? e : n : r;
5676
- })), fh = /* @__PURE__ */ e(((e, t) => {
5684
+ })), hh = /* @__PURE__ */ e(((e, t) => {
5677
5685
  var n = /^[0-9]+$/, r = (e, t) => {
5678
5686
  if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
5679
5687
  let r = n.test(e), i = n.test(t);
@@ -5684,7 +5692,7 @@ var yp = (e) => {
5684
5692
  rcompareIdentifiers: (e, t) => r(t, e)
5685
5693
  };
5686
5694
  })), Z = /* @__PURE__ */ e(((e, t) => {
5687
- var n = lh(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = ch(), { safeRe: a, t: o } = uh(), s = dh(), { compareIdentifiers: c } = fh();
5695
+ var n = fh(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = dh(), { safeRe: a, t: o } = ph(), s = mh(), { compareIdentifiers: c } = hh();
5688
5696
  t.exports = class e {
5689
5697
  constructor(t, c) {
5690
5698
  if (c = s(c), t instanceof e) {
@@ -5804,7 +5812,7 @@ var yp = (e) => {
5804
5812
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
5805
5813
  }
5806
5814
  };
5807
- })), ph = /* @__PURE__ */ e(((e, t) => {
5815
+ })), gh = /* @__PURE__ */ e(((e, t) => {
5808
5816
  var n = Z();
5809
5817
  t.exports = (e, t, r = !1) => {
5810
5818
  if (e instanceof n) return e;
@@ -5815,19 +5823,19 @@ var yp = (e) => {
5815
5823
  throw e;
5816
5824
  }
5817
5825
  };
5818
- })), mh = /* @__PURE__ */ e(((e, t) => {
5819
- var n = ph();
5826
+ })), _h = /* @__PURE__ */ e(((e, t) => {
5827
+ var n = gh();
5820
5828
  t.exports = (e, t) => {
5821
5829
  let r = n(e, t);
5822
5830
  return r ? r.version : null;
5823
5831
  };
5824
- })), hh = /* @__PURE__ */ e(((e, t) => {
5825
- var n = ph();
5832
+ })), vh = /* @__PURE__ */ e(((e, t) => {
5833
+ var n = gh();
5826
5834
  t.exports = (e, t) => {
5827
5835
  let r = n(e.trim().replace(/^[=v]+/, ""), t);
5828
5836
  return r ? r.version : null;
5829
5837
  };
5830
- })), gh = /* @__PURE__ */ e(((e, t) => {
5838
+ })), yh = /* @__PURE__ */ e(((e, t) => {
5831
5839
  var n = Z();
5832
5840
  t.exports = (e, t, r, i, a) => {
5833
5841
  typeof r == "string" && (a = i, i = r, r = void 0);
@@ -5837,8 +5845,8 @@ var yp = (e) => {
5837
5845
  return null;
5838
5846
  }
5839
5847
  };
5840
- })), _h = /* @__PURE__ */ e(((e, t) => {
5841
- var n = ph();
5848
+ })), bh = /* @__PURE__ */ e(((e, t) => {
5849
+ var n = gh();
5842
5850
  t.exports = (e, t) => {
5843
5851
  let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
5844
5852
  if (a === 0) return null;
@@ -5850,17 +5858,17 @@ var yp = (e) => {
5850
5858
  let u = l ? "pre" : "";
5851
5859
  return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
5852
5860
  };
5853
- })), vh = /* @__PURE__ */ e(((e, t) => {
5861
+ })), xh = /* @__PURE__ */ e(((e, t) => {
5854
5862
  var n = Z();
5855
5863
  t.exports = (e, t) => new n(e, t).major;
5856
- })), yh = /* @__PURE__ */ e(((e, t) => {
5864
+ })), Sh = /* @__PURE__ */ e(((e, t) => {
5857
5865
  var n = Z();
5858
5866
  t.exports = (e, t) => new n(e, t).minor;
5859
- })), bh = /* @__PURE__ */ e(((e, t) => {
5867
+ })), Ch = /* @__PURE__ */ e(((e, t) => {
5860
5868
  var n = Z();
5861
5869
  t.exports = (e, t) => new n(e, t).patch;
5862
- })), xh = /* @__PURE__ */ e(((e, t) => {
5863
- var n = ph();
5870
+ })), wh = /* @__PURE__ */ e(((e, t) => {
5871
+ var n = gh();
5864
5872
  t.exports = (e, t) => {
5865
5873
  let r = n(e, t);
5866
5874
  return r && r.prerelease.length ? r.prerelease : null;
@@ -5868,44 +5876,44 @@ var yp = (e) => {
5868
5876
  })), Q = /* @__PURE__ */ e(((e, t) => {
5869
5877
  var n = Z();
5870
5878
  t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
5871
- })), Sh = /* @__PURE__ */ e(((e, t) => {
5879
+ })), Th = /* @__PURE__ */ e(((e, t) => {
5872
5880
  var n = Q();
5873
5881
  t.exports = (e, t, r) => n(t, e, r);
5874
- })), Ch = /* @__PURE__ */ e(((e, t) => {
5882
+ })), Eh = /* @__PURE__ */ e(((e, t) => {
5875
5883
  var n = Q();
5876
5884
  t.exports = (e, t) => n(e, t, !0);
5877
- })), wh = /* @__PURE__ */ e(((e, t) => {
5885
+ })), Dh = /* @__PURE__ */ e(((e, t) => {
5878
5886
  var n = Z();
5879
5887
  t.exports = (e, t, r) => {
5880
5888
  let i = new n(e, r), a = new n(t, r);
5881
5889
  return i.compare(a) || i.compareBuild(a);
5882
5890
  };
5883
- })), Th = /* @__PURE__ */ e(((e, t) => {
5884
- var n = wh();
5891
+ })), Oh = /* @__PURE__ */ e(((e, t) => {
5892
+ var n = Dh();
5885
5893
  t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
5886
- })), Eh = /* @__PURE__ */ e(((e, t) => {
5887
- var n = wh();
5894
+ })), kh = /* @__PURE__ */ e(((e, t) => {
5895
+ var n = Dh();
5888
5896
  t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
5889
- })), Dh = /* @__PURE__ */ e(((e, t) => {
5897
+ })), Ah = /* @__PURE__ */ e(((e, t) => {
5890
5898
  var n = Q();
5891
5899
  t.exports = (e, t, r) => n(e, t, r) > 0;
5892
- })), Oh = /* @__PURE__ */ e(((e, t) => {
5900
+ })), jh = /* @__PURE__ */ e(((e, t) => {
5893
5901
  var n = Q();
5894
5902
  t.exports = (e, t, r) => n(e, t, r) < 0;
5895
- })), kh = /* @__PURE__ */ e(((e, t) => {
5903
+ })), Mh = /* @__PURE__ */ e(((e, t) => {
5896
5904
  var n = Q();
5897
5905
  t.exports = (e, t, r) => n(e, t, r) === 0;
5898
- })), Ah = /* @__PURE__ */ e(((e, t) => {
5906
+ })), Nh = /* @__PURE__ */ e(((e, t) => {
5899
5907
  var n = Q();
5900
5908
  t.exports = (e, t, r) => n(e, t, r) !== 0;
5901
- })), jh = /* @__PURE__ */ e(((e, t) => {
5909
+ })), Ph = /* @__PURE__ */ e(((e, t) => {
5902
5910
  var n = Q();
5903
5911
  t.exports = (e, t, r) => n(e, t, r) >= 0;
5904
- })), Mh = /* @__PURE__ */ e(((e, t) => {
5912
+ })), Fh = /* @__PURE__ */ e(((e, t) => {
5905
5913
  var n = Q();
5906
5914
  t.exports = (e, t, r) => n(e, t, r) <= 0;
5907
- })), Nh = /* @__PURE__ */ e(((e, t) => {
5908
- var n = kh(), r = Ah(), i = Dh(), a = jh(), o = Oh(), s = Mh();
5915
+ })), Ih = /* @__PURE__ */ e(((e, t) => {
5916
+ var n = Mh(), r = Nh(), i = Ah(), a = Ph(), o = jh(), s = Fh();
5909
5917
  t.exports = (e, t, c, l) => {
5910
5918
  switch (t) {
5911
5919
  case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
@@ -5921,8 +5929,8 @@ var yp = (e) => {
5921
5929
  default: throw TypeError(`Invalid operator: ${t}`);
5922
5930
  }
5923
5931
  };
5924
- })), Ph = /* @__PURE__ */ e(((e, t) => {
5925
- var n = Z(), r = ph(), { safeRe: i, t: a } = uh();
5932
+ })), Lh = /* @__PURE__ */ e(((e, t) => {
5933
+ var n = Z(), r = gh(), { safeRe: i, t: a } = ph();
5926
5934
  t.exports = (e, t) => {
5927
5935
  if (e instanceof n) return e;
5928
5936
  if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
@@ -5938,7 +5946,7 @@ var yp = (e) => {
5938
5946
  let s = o[2];
5939
5947
  return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
5940
5948
  };
5941
- })), Fh = /* @__PURE__ */ e(((e, t) => {
5949
+ })), Rh = /* @__PURE__ */ e(((e, t) => {
5942
5950
  t.exports = class {
5943
5951
  constructor() {
5944
5952
  this.max = 1e3, this.map = /* @__PURE__ */ new Map();
@@ -6028,7 +6036,7 @@ var yp = (e) => {
6028
6036
  return !1;
6029
6037
  }
6030
6038
  };
6031
- var r = new (Fh())(), i = dh(), a = Ih(), o = lh(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = uh(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = ch(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
6039
+ var r = new (Rh())(), i = mh(), a = zh(), o = fh(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = ph(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = dh(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
6032
6040
  let n = !0, r = e.slice(), i = r.pop();
6033
6041
  for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
6034
6042
  return n;
@@ -6066,7 +6074,7 @@ var yp = (e) => {
6066
6074
  }
6067
6075
  return !0;
6068
6076
  };
6069
- })), Ih = /* @__PURE__ */ e(((e, t) => {
6077
+ })), zh = /* @__PURE__ */ e(((e, t) => {
6070
6078
  var n = Symbol("SemVer ANY");
6071
6079
  t.exports = class e {
6072
6080
  static get ANY() {
@@ -6101,8 +6109,8 @@ var yp = (e) => {
6101
6109
  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(">")));
6102
6110
  }
6103
6111
  };
6104
- var r = dh(), { safeRe: i, t: a } = uh(), o = Nh(), s = lh(), c = Z(), l = $();
6105
- })), Lh = /* @__PURE__ */ e(((e, t) => {
6112
+ var r = mh(), { safeRe: i, t: a } = ph(), o = Ih(), s = fh(), c = Z(), l = $();
6113
+ })), Bh = /* @__PURE__ */ e(((e, t) => {
6106
6114
  var n = $();
6107
6115
  t.exports = (e, t, r) => {
6108
6116
  try {
@@ -6112,10 +6120,10 @@ var yp = (e) => {
6112
6120
  }
6113
6121
  return t.test(e);
6114
6122
  };
6115
- })), Rh = /* @__PURE__ */ e(((e, t) => {
6123
+ })), Vh = /* @__PURE__ */ e(((e, t) => {
6116
6124
  var n = $();
6117
6125
  t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
6118
- })), zh = /* @__PURE__ */ e(((e, t) => {
6126
+ })), Hh = /* @__PURE__ */ e(((e, t) => {
6119
6127
  var n = Z(), r = $();
6120
6128
  t.exports = (e, t, i) => {
6121
6129
  let a = null, o = null, s = null;
@@ -6128,7 +6136,7 @@ var yp = (e) => {
6128
6136
  s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
6129
6137
  }), a;
6130
6138
  };
6131
- })), Bh = /* @__PURE__ */ e(((e, t) => {
6139
+ })), Uh = /* @__PURE__ */ e(((e, t) => {
6132
6140
  var n = Z(), r = $();
6133
6141
  t.exports = (e, t, i) => {
6134
6142
  let a = null, o = null, s = null;
@@ -6141,8 +6149,8 @@ var yp = (e) => {
6141
6149
  s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
6142
6150
  }), a;
6143
6151
  };
6144
- })), Vh = /* @__PURE__ */ e(((e, t) => {
6145
- var n = Z(), r = $(), i = Dh();
6152
+ })), Wh = /* @__PURE__ */ e(((e, t) => {
6153
+ var n = Z(), r = $(), i = Ah();
6146
6154
  t.exports = (e, t) => {
6147
6155
  e = new r(e, t);
6148
6156
  let a = new n("0.0.0");
@@ -6166,7 +6174,7 @@ var yp = (e) => {
6166
6174
  }
6167
6175
  return a && e.test(a) ? a : null;
6168
6176
  };
6169
- })), Hh = /* @__PURE__ */ e(((e, t) => {
6177
+ })), Gh = /* @__PURE__ */ e(((e, t) => {
6170
6178
  var n = $();
6171
6179
  t.exports = (e, t) => {
6172
6180
  try {
@@ -6175,8 +6183,8 @@ var yp = (e) => {
6175
6183
  return null;
6176
6184
  }
6177
6185
  };
6178
- })), Uh = /* @__PURE__ */ e(((e, t) => {
6179
- var n = Z(), r = Ih(), { ANY: i } = r, a = $(), o = Lh(), s = Dh(), c = Oh(), l = Mh(), u = jh();
6186
+ })), Kh = /* @__PURE__ */ e(((e, t) => {
6187
+ var n = Z(), r = zh(), { ANY: i } = r, a = $(), o = Bh(), s = Ah(), c = jh(), l = Fh(), u = Ph();
6180
6188
  t.exports = (e, t, d, f) => {
6181
6189
  e = new n(e, f), t = new a(t, f);
6182
6190
  let p, m, h, g, _;
@@ -6198,17 +6206,17 @@ var yp = (e) => {
6198
6206
  }
6199
6207
  return !0;
6200
6208
  };
6201
- })), Wh = /* @__PURE__ */ e(((e, t) => {
6202
- var n = Uh();
6209
+ })), qh = /* @__PURE__ */ e(((e, t) => {
6210
+ var n = Kh();
6203
6211
  t.exports = (e, t, r) => n(e, t, ">", r);
6204
- })), Gh = /* @__PURE__ */ e(((e, t) => {
6205
- var n = Uh();
6212
+ })), Jh = /* @__PURE__ */ e(((e, t) => {
6213
+ var n = Kh();
6206
6214
  t.exports = (e, t, r) => n(e, t, "<", r);
6207
- })), Kh = /* @__PURE__ */ e(((e, t) => {
6215
+ })), Yh = /* @__PURE__ */ e(((e, t) => {
6208
6216
  var n = $();
6209
6217
  t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
6210
- })), qh = /* @__PURE__ */ e(((e, t) => {
6211
- var n = Lh(), r = Q();
6218
+ })), Xh = /* @__PURE__ */ e(((e, t) => {
6219
+ var n = Bh(), r = Q();
6212
6220
  t.exports = (e, t, i) => {
6213
6221
  let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
6214
6222
  for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
@@ -6218,8 +6226,8 @@ var yp = (e) => {
6218
6226
  let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
6219
6227
  return u.length < d.length ? u : t;
6220
6228
  };
6221
- })), Jh = /* @__PURE__ */ e(((e, t) => {
6222
- var n = $(), r = Ih(), { ANY: i } = r, a = Lh(), o = Q(), s = (e, t, r = {}) => {
6229
+ })), Zh = /* @__PURE__ */ e(((e, t) => {
6230
+ var n = $(), r = zh(), { ANY: i } = r, a = Bh(), o = Q(), s = (e, t, r = {}) => {
6223
6231
  if (e === t) return !0;
6224
6232
  e = new n(e, r), t = new n(t, r);
6225
6233
  let i = !1;
@@ -6277,46 +6285,46 @@ var yp = (e) => {
6277
6285
  return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
6278
6286
  };
6279
6287
  t.exports = s;
6280
- })), Yh = (/* @__PURE__ */ e(((e, t) => {
6281
- var n = uh(), r = ch(), i = Z(), a = fh();
6288
+ })), Qh = (/* @__PURE__ */ e(((e, t) => {
6289
+ var n = ph(), r = dh(), i = Z(), a = hh();
6282
6290
  t.exports = {
6283
- parse: ph(),
6284
- valid: mh(),
6285
- clean: hh(),
6286
- inc: gh(),
6287
- diff: _h(),
6288
- major: vh(),
6289
- minor: yh(),
6290
- patch: bh(),
6291
- prerelease: xh(),
6291
+ parse: gh(),
6292
+ valid: _h(),
6293
+ clean: vh(),
6294
+ inc: yh(),
6295
+ diff: bh(),
6296
+ major: xh(),
6297
+ minor: Sh(),
6298
+ patch: Ch(),
6299
+ prerelease: wh(),
6292
6300
  compare: Q(),
6293
- rcompare: Sh(),
6294
- compareLoose: Ch(),
6295
- compareBuild: wh(),
6296
- sort: Th(),
6297
- rsort: Eh(),
6298
- gt: Dh(),
6299
- lt: Oh(),
6300
- eq: kh(),
6301
- neq: Ah(),
6302
- gte: jh(),
6303
- lte: Mh(),
6304
- cmp: Nh(),
6305
- coerce: Ph(),
6306
- Comparator: Ih(),
6301
+ rcompare: Th(),
6302
+ compareLoose: Eh(),
6303
+ compareBuild: Dh(),
6304
+ sort: Oh(),
6305
+ rsort: kh(),
6306
+ gt: Ah(),
6307
+ lt: jh(),
6308
+ eq: Mh(),
6309
+ neq: Nh(),
6310
+ gte: Ph(),
6311
+ lte: Fh(),
6312
+ cmp: Ih(),
6313
+ coerce: Lh(),
6314
+ Comparator: zh(),
6307
6315
  Range: $(),
6308
- satisfies: Lh(),
6309
- toComparators: Rh(),
6310
- maxSatisfying: zh(),
6311
- minSatisfying: Bh(),
6312
- minVersion: Vh(),
6313
- validRange: Hh(),
6314
- outside: Uh(),
6315
- gtr: Wh(),
6316
- ltr: Gh(),
6317
- intersects: Kh(),
6318
- simplifyRange: qh(),
6319
- subset: Jh(),
6316
+ satisfies: Bh(),
6317
+ toComparators: Vh(),
6318
+ maxSatisfying: Hh(),
6319
+ minSatisfying: Uh(),
6320
+ minVersion: Wh(),
6321
+ validRange: Gh(),
6322
+ outside: Kh(),
6323
+ gtr: qh(),
6324
+ ltr: Jh(),
6325
+ intersects: Yh(),
6326
+ simplifyRange: Xh(),
6327
+ subset: Zh(),
6320
6328
  SemVer: i,
6321
6329
  re: n.re,
6322
6330
  src: n.src,
@@ -6326,12 +6334,12 @@ var yp = (e) => {
6326
6334
  compareIdentifiers: a.compareIdentifiers,
6327
6335
  rcompareIdentifiers: a.rcompareIdentifiers
6328
6336
  };
6329
- })))(), Xh = (e, t) => Zh(t) ? t.hostnames.includes(new URL(e).hostname) : Qh(t) ? !!e.match(t.regexp) : !1, Zh = (e) => Zm.safeParse(e).success, Qh = (e) => Qm.safeParse(e).success, $h = (e, t) => t ? (0, Yh.satisfies)(e, t) : !0, eg = (e, t, n) => $h(t, n.libraryVersionRange) && Xh(e, n.matcher), tg = (e, t) => e.siteRegistrations.filter((e) => eg(t, Jm(), e)), ng = (e, t) => tg(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => ah(e) && e in Km).map((e) => ({
6330
- parser: Km[e],
6337
+ })))(), $h = (e, t) => eg(t) ? t.hostnames.includes(new URL(e).hostname) : tg(t) ? !!e.match(t.regexp) : !1, eg = (e) => eh.safeParse(e).success, tg = (e) => th.safeParse(e).success, ng = (e, t) => t ? (0, Qh.satisfies)(e, t) : !0, rg = (e, t, n) => ng(t, n.libraryVersionRange) && $h(e, n.matcher), ig = (e, t) => e.siteRegistrations.filter((e) => rg(t, Zm(), e)), ag = (e, t) => ig(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => ch(e) && e in Ym).map((e) => ({
6338
+ parser: Ym[e],
6331
6339
  parserType: e,
6332
6340
  name: t
6333
- }))), rg = (e, t) => {
6334
- let n = ng(e, t.url);
6341
+ }))), og = (e, t) => {
6342
+ let n = ag(e, t.url);
6335
6343
  for (let { parser: e, parserType: r, name: i } of n) {
6336
6344
  let n = e(t);
6337
6345
  if (qc(n) || Jc(n) || Yc(n)) return {
@@ -6351,19 +6359,19 @@ var yp = (e) => {
6351
6359
  referrer: t.url
6352
6360
  }
6353
6361
  };
6354
- }, ig = (e, t) => {
6362
+ }, sg = (e, t) => {
6355
6363
  switch (t) {
6356
6364
  case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
6357
6365
  default: return new URL(`https://${e}.rl.talis.com`);
6358
6366
  }
6359
- }, ag = (e, t) => {
6360
- let n = ig(e, t);
6367
+ }, cg = (e, t) => {
6368
+ let n = sg(e, t);
6361
6369
  return new URL("/ui/forms/bookmarklet.html", n);
6362
- }, og = (e, t, n) => {
6370
+ }, lg = (e, t, n) => {
6363
6371
  let r = To(t);
6364
6372
  r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
6365
6373
  let i = new URL(e.toString());
6366
6374
  return i.search = r.toString(), i;
6367
6375
  };
6368
6376
  //#endregion
6369
- export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, Zm 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, Km as PARSERS, th as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, Xm as REGISTRY, Qm as RegExpMatcherSchema, oh as ResourceDataSchema, mo as ResourceSchema, eh as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, $m 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, ag as getBaseBookmarkingUrl, Jm as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Kc as isDirectLinkOnlyResult, ko as isGenre, Xc as isNothingParsedResult, qc as isOpenUrlResult, nh as isParserRegistry, ah as isParserType, Gc as isParsingMetadata, Fo as isParsingRequest, Wc as isParsingResponse, Uc as isParsingResult, sh as isResourceData, rh as isSiteRegistration, Yc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, ih as isUrlMatcher, Jc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, rg as parseResource, es as summonSearchResult, og as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };
6377
+ export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, eh 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, Ym as PARSERS, ih as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, $m as REGISTRY, th as RegExpMatcherSchema, lh as ResourceDataSchema, mo as ResourceSchema, rh as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, nh 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, cg as getBaseBookmarkingUrl, Zm as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Kc as isDirectLinkOnlyResult, ko as isGenre, Xc as isNothingParsedResult, qc as isOpenUrlResult, ah as isParserRegistry, ch as isParserType, Gc as isParsingMetadata, Fo as isParsingRequest, Wc as isParsingResponse, Uc as isParsingResult, uh as isResourceData, oh as isSiteRegistration, Yc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, sh as isUrlMatcher, Jc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, og as parseResource, es as summonSearchResult, lg as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };