@talisdev/bibliographic-resource-parsers-lib 5.43.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([
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
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
|
-
},
|
|
4446
|
+
}, Td = hd(Cd, (e, t) => {
|
|
4439
4447
|
let n = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
|
|
4440
|
-
return n ?
|
|
4441
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4468
|
-
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r =
|
|
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
|
-
},
|
|
4482
|
-
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r =
|
|
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
|
-
},
|
|
4489
|
-
switch (
|
|
4490
|
-
case U.Article: return B(
|
|
4491
|
-
case U.Journal: return B(
|
|
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
|
-
},
|
|
4495
|
-
let t = e.filter(
|
|
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
|
-
},
|
|
4505
|
+
}, Rd = (e) => {
|
|
4498
4506
|
let t = H(e, "name", "citation_author");
|
|
4499
4507
|
return t.length ? t : void 0;
|
|
4500
|
-
},
|
|
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
|
-
},
|
|
4504
|
-
atitle:
|
|
4505
|
-
au:
|
|
4506
|
-
date:
|
|
4507
|
-
doi:
|
|
4508
|
-
issn:
|
|
4509
|
-
issue:
|
|
4510
|
-
jtitle:
|
|
4511
|
-
pub:
|
|
4512
|
-
volume:
|
|
4513
|
-
spage:
|
|
4514
|
-
epage:
|
|
4515
|
-
}),
|
|
4516
|
-
atitle:
|
|
4517
|
-
au:
|
|
4518
|
-
btitle:
|
|
4519
|
-
date:
|
|
4520
|
-
isbn:
|
|
4521
|
-
pub:
|
|
4522
|
-
spage:
|
|
4523
|
-
epage:
|
|
4524
|
-
}),
|
|
4525
|
-
title:
|
|
4526
|
-
au:
|
|
4527
|
-
date:
|
|
4528
|
-
pub:
|
|
4529
|
-
spage:
|
|
4530
|
-
epage:
|
|
4531
|
-
}),
|
|
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:
|
|
4534
|
-
isbn:
|
|
4535
|
-
issn:
|
|
4536
|
-
journalTitle:
|
|
4537
|
-
title:
|
|
4541
|
+
type: Kd(e),
|
|
4542
|
+
isbn: Vd(e),
|
|
4543
|
+
issn: Hd(e),
|
|
4544
|
+
journalTitle: Ud(e),
|
|
4545
|
+
title: Gd(e)
|
|
4538
4546
|
};
|
|
4539
|
-
return
|
|
4540
|
-
},
|
|
4541
|
-
let n =
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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 (
|
|
4572
|
+
if (sf(e)) return e;
|
|
4565
4573
|
} catch {
|
|
4566
4574
|
return null;
|
|
4567
4575
|
}
|
|
4568
4576
|
return null;
|
|
4569
|
-
},
|
|
4577
|
+
}, lf = ({ document: e }) => {
|
|
4570
4578
|
let t = Zs(e);
|
|
4571
4579
|
if (!t) return z();
|
|
4572
|
-
let n =
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
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 || !
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4615
|
-
let n = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, r =
|
|
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
|
-
},
|
|
4625
|
-
switch (
|
|
4626
|
-
case U.Chapter: return B(
|
|
4627
|
-
case U.Book: return B(
|
|
4628
|
-
case U.Article: return B(
|
|
4629
|
-
case U.Journal: return B(
|
|
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
|
-
},
|
|
4640
|
+
}, _f = /* @__PURE__ */ function(e) {
|
|
4633
4641
|
return e.Print = "Print", e.Online = "Online", e;
|
|
4634
|
-
}(
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
4653
|
-
let t =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
4695
|
+
}, Tf = (e) => {
|
|
4688
4696
|
let t = H(e, "name", "citation_author");
|
|
4689
4697
|
return t.length ? t : void 0;
|
|
4690
|
-
},
|
|
4698
|
+
}, Ef = /* @__PURE__ */ function(e) {
|
|
4691
4699
|
return e.Journal = "Journal", e.Article = "Article", e;
|
|
4692
|
-
}(
|
|
4700
|
+
}(Ef || {}), Df = (e) => {
|
|
4693
4701
|
switch (V(e, "property", "og:type")) {
|
|
4694
|
-
case "Article": return
|
|
4695
|
-
case "Journal": return
|
|
4702
|
+
case "Article": return Ef.Article;
|
|
4703
|
+
case "Journal": return Ef.Journal;
|
|
4696
4704
|
default: return;
|
|
4697
4705
|
}
|
|
4698
4706
|
};
|
|
4699
|
-
function
|
|
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
|
|
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
|
|
4719
|
-
switch (
|
|
4720
|
-
case
|
|
4721
|
-
case
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4739
|
+
}, Mf = (e) => {
|
|
4732
4740
|
let { pathname: t } = new URL(e);
|
|
4733
4741
|
if (t.includes("/article/")) return U.Article;
|
|
4734
|
-
},
|
|
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 ?
|
|
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
|
-
},
|
|
4749
|
-
switch (
|
|
4750
|
-
case U.Article: return B(
|
|
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
|
-
},
|
|
4761
|
+
}, Ff = /* @__PURE__ */ function(e) {
|
|
4754
4762
|
return e.Book = "Book", e.Chapter = "Chapter", e;
|
|
4755
|
-
}(
|
|
4756
|
-
switch (
|
|
4757
|
-
case "eBook": return
|
|
4758
|
-
case "Reference": return
|
|
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
|
-
},
|
|
4762
|
-
function
|
|
4763
|
-
let n =
|
|
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
|
|
4778
|
-
let n =
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4805
|
-
switch (
|
|
4806
|
-
case
|
|
4807
|
-
case
|
|
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
|
-
},
|
|
4811
|
-
switch (
|
|
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
|
-
},
|
|
4825
|
+
}, $f = (e) => {
|
|
4818
4826
|
delete e.rft_id;
|
|
4819
|
-
},
|
|
4827
|
+
}, ep = (e) => {
|
|
4820
4828
|
let t = ns(e);
|
|
4821
4829
|
if (qc(t)) {
|
|
4822
|
-
let n =
|
|
4823
|
-
t.resource.genre = n,
|
|
4830
|
+
let n = Qf(e.document);
|
|
4831
|
+
t.resource.genre = n, $f(t.resource);
|
|
4824
4832
|
}
|
|
4825
4833
|
return t;
|
|
4826
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4851
|
+
}, rp = (e, t) => _o({
|
|
4844
4852
|
uri: e,
|
|
4845
4853
|
title: V(t, "name", "twitter:title")
|
|
4846
|
-
}),
|
|
4847
|
-
switch (
|
|
4848
|
-
case U.Article: return B(
|
|
4849
|
-
case U.Webpage: return B(
|
|
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
|
-
},
|
|
4853
|
-
function
|
|
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 =
|
|
4863
|
+
let t = op.exec(e);
|
|
4856
4864
|
if (t && t.length > 1) return t[1];
|
|
4857
4865
|
}
|
|
4858
|
-
function
|
|
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
|
|
4870
|
+
function lp(e) {
|
|
4863
4871
|
return Array.from(e.getElementsByTagName("li")).reduce((e, t) => {
|
|
4864
|
-
let n =
|
|
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
|
|
4876
|
+
function up(e) {
|
|
4869
4877
|
let t = e.getElementsByClassName("information");
|
|
4870
4878
|
if (t.length === 0) return {};
|
|
4871
|
-
let n =
|
|
4879
|
+
let n = lp(t[0]);
|
|
4872
4880
|
return {
|
|
4873
|
-
date:
|
|
4881
|
+
date: sp(n.Published),
|
|
4874
4882
|
series: n.Show
|
|
4875
4883
|
};
|
|
4876
4884
|
}
|
|
4877
|
-
var
|
|
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
|
-
...
|
|
4893
|
+
...up(t)
|
|
4886
4894
|
});
|
|
4887
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4894
|
-
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_pdf_url"), r = H(e, "name", "citation_author"), i =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4916
|
-
let n =
|
|
4923
|
+
}, _p = ({ url: e, document: t }) => {
|
|
4924
|
+
let n = gp(t);
|
|
4917
4925
|
return B(R({
|
|
4918
|
-
au:
|
|
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
|
-
},
|
|
4932
|
+
}, vp = (e) => {
|
|
4925
4933
|
if (V(e, "property", "og:type") === "article") return U.Article;
|
|
4926
4934
|
};
|
|
4927
|
-
function
|
|
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
|
|
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
|
|
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
|
|
4942
|
-
let t =
|
|
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
|
-
},
|
|
4956
|
-
switch (
|
|
4957
|
-
case U.Article: return B(
|
|
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 || {}),
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
4981
|
-
let t =
|
|
4982
|
-
return t.length > 0 ? t :
|
|
4983
|
-
},
|
|
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
|
-
},
|
|
4991
|
-
let r =
|
|
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
|
-
},
|
|
5009
|
-
let r =
|
|
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
|
-
},
|
|
5024
|
-
let r =
|
|
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
|
-
},
|
|
5035
|
-
let n =
|
|
5036
|
-
switch (
|
|
5037
|
-
case U.Article: return B(
|
|
5038
|
-
case U.Document: return B(
|
|
5039
|
-
case U.None: return B(
|
|
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
|
-
},
|
|
5043
|
-
let t =
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
5058
|
-
let t =
|
|
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
|
-
},
|
|
5074
|
-
let t =
|
|
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
|
-
},
|
|
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 :
|
|
5089
|
-
},
|
|
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
|
|
5096
|
-
},
|
|
5097
|
-
switch (
|
|
5098
|
-
case U.Article: return
|
|
5099
|
-
case U.Journal: return
|
|
5100
|
-
case U.Book: return
|
|
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
|
-
},
|
|
5111
|
+
}, nm = (e) => {
|
|
5104
5112
|
let t = e.getAttribute("title");
|
|
5105
5113
|
return t ? Do(t) : null;
|
|
5106
|
-
},
|
|
5114
|
+
}, rm = ({ url: e, document: t }) => {
|
|
5107
5115
|
let n = t.querySelector(".Z3988");
|
|
5108
5116
|
if (!n) return z();
|
|
5109
|
-
let r =
|
|
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
|
-
},
|
|
5115
|
-
let n = e.querySelector(
|
|
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
|
-
},
|
|
5118
|
-
let n =
|
|
5125
|
+
}, om = (e, t) => {
|
|
5126
|
+
let n = am(e, t);
|
|
5119
5127
|
return n.length > 0 ? n[0] : void 0;
|
|
5120
|
-
},
|
|
5121
|
-
let t = e.querySelector(
|
|
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
|
-
},
|
|
5126
|
-
let t =
|
|
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:
|
|
5129
|
-
title:
|
|
5130
|
-
publisher:
|
|
5131
|
-
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
|
-
},
|
|
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
|
-
},
|
|
5155
|
+
}, um = {
|
|
5148
5156
|
CreativeWork: q.Audio,
|
|
5149
5157
|
Movie: q.Video,
|
|
5150
5158
|
Periodical: q.Journal,
|
|
5151
5159
|
Thesis: q.Dissertation
|
|
5152
|
-
},
|
|
5153
|
-
...
|
|
5154
|
-
...
|
|
5155
|
-
},
|
|
5160
|
+
}, dm = {
|
|
5161
|
+
...lm,
|
|
5162
|
+
...um
|
|
5163
|
+
}, fm = (e) => {
|
|
5156
5164
|
if (e) return e.mainEntity["@type"];
|
|
5157
|
-
},
|
|
5158
|
-
let n =
|
|
5159
|
-
return n ?
|
|
5160
|
-
}),
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
5187
|
+
}, vm = (e) => {
|
|
5180
5188
|
if (e.title) return e.subtitle ? `${e.title}: ${e.subtitle}` : e.title;
|
|
5181
|
-
},
|
|
5189
|
+
}, ym = (e) => {
|
|
5182
5190
|
let t = e["print pub date"];
|
|
5183
5191
|
if (t) return t.split("-")[0];
|
|
5184
|
-
},
|
|
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
|
-
},
|
|
5188
|
-
let n =
|
|
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
|
-
},
|
|
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
|
-
}),
|
|
5219
|
+
}), Tm = (e) => {
|
|
5212
5220
|
let t = Zs(e);
|
|
5213
5221
|
if (!t) return null;
|
|
5214
|
-
let n = Qs(t), r =
|
|
5222
|
+
let n = Qs(t), r = wm.safeParse(n);
|
|
5215
5223
|
return r.success ? r.data : null;
|
|
5216
|
-
},
|
|
5224
|
+
}, Em = (e) => {
|
|
5217
5225
|
if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
|
|
5218
|
-
},
|
|
5219
|
-
let t =
|
|
5226
|
+
}, Dm = ({ document: e }) => {
|
|
5227
|
+
let t = Tm(e);
|
|
5220
5228
|
if (!t) return z();
|
|
5221
|
-
let n =
|
|
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
|
-
},
|
|
5236
|
+
}, Om = W.extend({ publisher: j({
|
|
5229
5237
|
"@type": N("Organization"),
|
|
5230
5238
|
name: O()
|
|
5231
|
-
}) }),
|
|
5239
|
+
}) }), km = W.extend({
|
|
5232
5240
|
"@type": N("WebSite"),
|
|
5233
5241
|
issn: O(),
|
|
5234
5242
|
name: O()
|
|
5235
|
-
}),
|
|
5236
|
-
let t =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
5247
|
-
let t =
|
|
5254
|
+
}, Mm = (e) => {
|
|
5255
|
+
let t = jm(e);
|
|
5248
5256
|
if (!t) return;
|
|
5249
|
-
let n = t.map((e) =>
|
|
5257
|
+
let n = t.map((e) => km.safeParse(e)).find((e) => e.success);
|
|
5250
5258
|
return n ? n.data : void 0;
|
|
5251
|
-
},
|
|
5252
|
-
let t =
|
|
5259
|
+
}, Nm = (e) => {
|
|
5260
|
+
let t = jm(e);
|
|
5253
5261
|
if (!t) return;
|
|
5254
|
-
let n = t.map((e) =>
|
|
5262
|
+
let n = t.map((e) => Om.safeParse(e)).find((e) => e.success);
|
|
5255
5263
|
return n ? n.data.publisher.name : void 0;
|
|
5256
|
-
},
|
|
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
|
-
},
|
|
5260
|
-
let t =
|
|
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
|
-
},
|
|
5273
|
-
let t =
|
|
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,44 +5286,64 @@ var yp = (e) => {
|
|
|
5278
5286
|
title: n,
|
|
5279
5287
|
date: i
|
|
5280
5288
|
});
|
|
5281
|
-
},
|
|
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
|
-
},
|
|
5289
|
-
switch (
|
|
5290
|
-
case U.Article: return
|
|
5291
|
-
case U.AudioVisual: return
|
|
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
|
-
},
|
|
5295
|
-
let t =
|
|
5302
|
+
}, Hm = ({ document: e }) => {
|
|
5303
|
+
let t = Vm(e);
|
|
5296
5304
|
return t ? B(t) : z();
|
|
5297
|
-
},
|
|
5305
|
+
}, Um = (e) => {
|
|
5298
5306
|
let t = /\/books\/([^/]+)/.exec(e);
|
|
5299
5307
|
return t ? t[1] : void 0;
|
|
5300
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
5309
|
-
let n =
|
|
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
|
}));
|
|
5324
|
+
}, qm = (e) => {
|
|
5325
|
+
let t = V(e, "name", "citation_title");
|
|
5326
|
+
if (!t) return null;
|
|
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");
|
|
5328
|
+
return L(F.Article, {
|
|
5329
|
+
atitle: t,
|
|
5330
|
+
jtitle: r,
|
|
5331
|
+
au: n,
|
|
5332
|
+
issn: i,
|
|
5333
|
+
date: a,
|
|
5334
|
+
volume: o,
|
|
5335
|
+
issue: s,
|
|
5336
|
+
spage: c,
|
|
5337
|
+
epage: l,
|
|
5338
|
+
doi: u,
|
|
5339
|
+
uri: d
|
|
5340
|
+
});
|
|
5341
|
+
}, Jm = (e) => {
|
|
5342
|
+
let t = qm(e.document);
|
|
5343
|
+
return t ? B(t) : ns(e);
|
|
5316
5344
|
}, X = /* @__PURE__ */ function(e) {
|
|
5317
|
-
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;
|
|
5318
|
-
}({}),
|
|
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;
|
|
5346
|
+
}({}), Ym = {
|
|
5319
5347
|
[X.NoResourceFound]: sc,
|
|
5320
5348
|
[X.Z3988]: ns,
|
|
5321
5349
|
[X.Z3988SearchResult]: nu,
|
|
@@ -5332,34 +5360,35 @@ var yp = (e) => {
|
|
|
5332
5360
|
[X.VuFind]: $c,
|
|
5333
5361
|
[X.ClinicalKey]: qs,
|
|
5334
5362
|
[X.DOAJ]: pc,
|
|
5335
|
-
[X.Primo]:
|
|
5336
|
-
[X.IngentaConnect]:
|
|
5337
|
-
[X.Ebscohost]:
|
|
5338
|
-
[X.OpenStax]:
|
|
5339
|
-
[X.OpenTextbook]:
|
|
5340
|
-
[X.Milne]:
|
|
5341
|
-
[X.CambridgeJournalsOnline]:
|
|
5342
|
-
[X.AhaJournals]:
|
|
5343
|
-
[X.Ijees]:
|
|
5344
|
-
[X.BloomsburyCollections]:
|
|
5345
|
-
[X.HeritageCirqa]:
|
|
5346
|
-
[X.BritishMedicalJournal]:
|
|
5347
|
-
[X.SummonSearchResult]:
|
|
5348
|
-
[X.ApplePodcasts]:
|
|
5349
|
-
[X.Arxiv]:
|
|
5350
|
-
[X.KanopyVideo]:
|
|
5351
|
-
[X.LaTrobeOpal]:
|
|
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,
|
|
5352
5380
|
[X.BYUScholarsArchive]: Ds,
|
|
5353
|
-
[X.Informit]:
|
|
5354
|
-
[X.Brill]:
|
|
5355
|
-
[X.HeinOnline]:
|
|
5356
|
-
[X.PrimoNde]:
|
|
5357
|
-
[X.MichiganLaw]:
|
|
5358
|
-
[X.EbookCentral]:
|
|
5359
|
-
[X.AlexanderStreetPress]:
|
|
5360
|
-
[X.LondonReviewOfBooks]:
|
|
5361
|
-
[X.VitalSource]:
|
|
5362
|
-
|
|
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 = [
|
|
5363
5392
|
"com.au",
|
|
5364
5393
|
"com",
|
|
5365
5394
|
"ca",
|
|
@@ -5367,8 +5396,8 @@ var yp = (e) => {
|
|
|
5367
5396
|
"de",
|
|
5368
5397
|
"fr",
|
|
5369
5398
|
"nl"
|
|
5370
|
-
].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]),
|
|
5371
|
-
version:
|
|
5399
|
+
].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), $m = {
|
|
5400
|
+
version: Zm(),
|
|
5372
5401
|
siteRegistrations: [
|
|
5373
5402
|
{
|
|
5374
5403
|
matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
|
|
@@ -5396,7 +5425,7 @@ var yp = (e) => {
|
|
|
5396
5425
|
parsers: [X.ScienceDirect]
|
|
5397
5426
|
},
|
|
5398
5427
|
{
|
|
5399
|
-
matcher: { hostnames:
|
|
5428
|
+
matcher: { hostnames: Qm },
|
|
5400
5429
|
name: "Amazon",
|
|
5401
5430
|
parsers: [X.Amazon]
|
|
5402
5431
|
},
|
|
@@ -5490,6 +5519,11 @@ var yp = (e) => {
|
|
|
5490
5519
|
name: "AHA Journals",
|
|
5491
5520
|
parsers: [X.AhaJournals]
|
|
5492
5521
|
},
|
|
5522
|
+
{
|
|
5523
|
+
matcher: { hostnames: ["icono14.net"] },
|
|
5524
|
+
name: "ICONO 14",
|
|
5525
|
+
parsers: [X.Icono14]
|
|
5526
|
+
},
|
|
5493
5527
|
{
|
|
5494
5528
|
matcher: { regexp: "www[.-]cambridge[.-]org" },
|
|
5495
5529
|
name: "Cambridge Journals Online",
|
|
@@ -5596,18 +5630,18 @@ var yp = (e) => {
|
|
|
5596
5630
|
parsers: [X.VitalSource]
|
|
5597
5631
|
}
|
|
5598
5632
|
]
|
|
5599
|
-
},
|
|
5600
|
-
matcher:
|
|
5633
|
+
}, eh = j({ hostnames: A(O()).min(1) }), th = j({ regexp: O() }), nh = M([eh, th]), rh = j({
|
|
5634
|
+
matcher: nh,
|
|
5601
5635
|
name: O(),
|
|
5602
5636
|
parsers: A(O()),
|
|
5603
5637
|
libraryVersionRange: O().optional()
|
|
5604
|
-
}),
|
|
5605
|
-
siteRegistrations: A(
|
|
5638
|
+
}), ih = j({
|
|
5639
|
+
siteRegistrations: A(rh),
|
|
5606
5640
|
version: O()
|
|
5607
|
-
}),
|
|
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({
|
|
5608
5642
|
url: O(),
|
|
5609
5643
|
document: eo((e) => typeof e == "object" && !!e)
|
|
5610
|
-
}),
|
|
5644
|
+
}), uh = (e) => lh.safeParse(e).success, dh = /* @__PURE__ */ e(((e, t) => {
|
|
5611
5645
|
var n = "2.0.0", r = 256;
|
|
5612
5646
|
t.exports = {
|
|
5613
5647
|
MAX_LENGTH: r,
|
|
@@ -5627,10 +5661,10 @@ var yp = (e) => {
|
|
|
5627
5661
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
5628
5662
|
FLAG_LOOSE: 2
|
|
5629
5663
|
};
|
|
5630
|
-
})),
|
|
5664
|
+
})), fh = /* @__PURE__ */ e(((e, t) => {
|
|
5631
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) : () => {};
|
|
5632
|
-
})),
|
|
5633
|
-
var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } =
|
|
5666
|
+
})), ph = /* @__PURE__ */ e(((e, t) => {
|
|
5667
|
+
var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = dh(), a = fh();
|
|
5634
5668
|
e = t.exports = {};
|
|
5635
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 = [
|
|
5636
5670
|
["\\s", 1],
|
|
@@ -5644,10 +5678,10 @@ var yp = (e) => {
|
|
|
5644
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);
|
|
5645
5679
|
};
|
|
5646
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*$");
|
|
5647
|
-
})),
|
|
5681
|
+
})), mh = /* @__PURE__ */ e(((e, t) => {
|
|
5648
5682
|
var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
|
|
5649
5683
|
t.exports = (e) => e ? typeof e == "object" ? e : n : r;
|
|
5650
|
-
})),
|
|
5684
|
+
})), hh = /* @__PURE__ */ e(((e, t) => {
|
|
5651
5685
|
var n = /^[0-9]+$/, r = (e, t) => {
|
|
5652
5686
|
if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
|
|
5653
5687
|
let r = n.test(e), i = n.test(t);
|
|
@@ -5658,7 +5692,7 @@ var yp = (e) => {
|
|
|
5658
5692
|
rcompareIdentifiers: (e, t) => r(t, e)
|
|
5659
5693
|
};
|
|
5660
5694
|
})), Z = /* @__PURE__ */ e(((e, t) => {
|
|
5661
|
-
var n =
|
|
5695
|
+
var n = fh(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = dh(), { safeRe: a, t: o } = ph(), s = mh(), { compareIdentifiers: c } = hh();
|
|
5662
5696
|
t.exports = class e {
|
|
5663
5697
|
constructor(t, c) {
|
|
5664
5698
|
if (c = s(c), t instanceof e) {
|
|
@@ -5778,7 +5812,7 @@ var yp = (e) => {
|
|
|
5778
5812
|
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
5779
5813
|
}
|
|
5780
5814
|
};
|
|
5781
|
-
})),
|
|
5815
|
+
})), gh = /* @__PURE__ */ e(((e, t) => {
|
|
5782
5816
|
var n = Z();
|
|
5783
5817
|
t.exports = (e, t, r = !1) => {
|
|
5784
5818
|
if (e instanceof n) return e;
|
|
@@ -5789,19 +5823,19 @@ var yp = (e) => {
|
|
|
5789
5823
|
throw e;
|
|
5790
5824
|
}
|
|
5791
5825
|
};
|
|
5792
|
-
})),
|
|
5793
|
-
var n =
|
|
5826
|
+
})), _h = /* @__PURE__ */ e(((e, t) => {
|
|
5827
|
+
var n = gh();
|
|
5794
5828
|
t.exports = (e, t) => {
|
|
5795
5829
|
let r = n(e, t);
|
|
5796
5830
|
return r ? r.version : null;
|
|
5797
5831
|
};
|
|
5798
|
-
})),
|
|
5799
|
-
var n =
|
|
5832
|
+
})), vh = /* @__PURE__ */ e(((e, t) => {
|
|
5833
|
+
var n = gh();
|
|
5800
5834
|
t.exports = (e, t) => {
|
|
5801
5835
|
let r = n(e.trim().replace(/^[=v]+/, ""), t);
|
|
5802
5836
|
return r ? r.version : null;
|
|
5803
5837
|
};
|
|
5804
|
-
})),
|
|
5838
|
+
})), yh = /* @__PURE__ */ e(((e, t) => {
|
|
5805
5839
|
var n = Z();
|
|
5806
5840
|
t.exports = (e, t, r, i, a) => {
|
|
5807
5841
|
typeof r == "string" && (a = i, i = r, r = void 0);
|
|
@@ -5811,8 +5845,8 @@ var yp = (e) => {
|
|
|
5811
5845
|
return null;
|
|
5812
5846
|
}
|
|
5813
5847
|
};
|
|
5814
|
-
})),
|
|
5815
|
-
var n =
|
|
5848
|
+
})), bh = /* @__PURE__ */ e(((e, t) => {
|
|
5849
|
+
var n = gh();
|
|
5816
5850
|
t.exports = (e, t) => {
|
|
5817
5851
|
let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
|
|
5818
5852
|
if (a === 0) return null;
|
|
@@ -5824,17 +5858,17 @@ var yp = (e) => {
|
|
|
5824
5858
|
let u = l ? "pre" : "";
|
|
5825
5859
|
return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
|
|
5826
5860
|
};
|
|
5827
|
-
})),
|
|
5861
|
+
})), xh = /* @__PURE__ */ e(((e, t) => {
|
|
5828
5862
|
var n = Z();
|
|
5829
5863
|
t.exports = (e, t) => new n(e, t).major;
|
|
5830
|
-
})),
|
|
5864
|
+
})), Sh = /* @__PURE__ */ e(((e, t) => {
|
|
5831
5865
|
var n = Z();
|
|
5832
5866
|
t.exports = (e, t) => new n(e, t).minor;
|
|
5833
|
-
})),
|
|
5867
|
+
})), Ch = /* @__PURE__ */ e(((e, t) => {
|
|
5834
5868
|
var n = Z();
|
|
5835
5869
|
t.exports = (e, t) => new n(e, t).patch;
|
|
5836
|
-
})),
|
|
5837
|
-
var n =
|
|
5870
|
+
})), wh = /* @__PURE__ */ e(((e, t) => {
|
|
5871
|
+
var n = gh();
|
|
5838
5872
|
t.exports = (e, t) => {
|
|
5839
5873
|
let r = n(e, t);
|
|
5840
5874
|
return r && r.prerelease.length ? r.prerelease : null;
|
|
@@ -5842,44 +5876,44 @@ var yp = (e) => {
|
|
|
5842
5876
|
})), Q = /* @__PURE__ */ e(((e, t) => {
|
|
5843
5877
|
var n = Z();
|
|
5844
5878
|
t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
|
|
5845
|
-
})),
|
|
5879
|
+
})), Th = /* @__PURE__ */ e(((e, t) => {
|
|
5846
5880
|
var n = Q();
|
|
5847
5881
|
t.exports = (e, t, r) => n(t, e, r);
|
|
5848
|
-
})),
|
|
5882
|
+
})), Eh = /* @__PURE__ */ e(((e, t) => {
|
|
5849
5883
|
var n = Q();
|
|
5850
5884
|
t.exports = (e, t) => n(e, t, !0);
|
|
5851
|
-
})),
|
|
5885
|
+
})), Dh = /* @__PURE__ */ e(((e, t) => {
|
|
5852
5886
|
var n = Z();
|
|
5853
5887
|
t.exports = (e, t, r) => {
|
|
5854
5888
|
let i = new n(e, r), a = new n(t, r);
|
|
5855
5889
|
return i.compare(a) || i.compareBuild(a);
|
|
5856
5890
|
};
|
|
5857
|
-
})),
|
|
5858
|
-
var n =
|
|
5891
|
+
})), Oh = /* @__PURE__ */ e(((e, t) => {
|
|
5892
|
+
var n = Dh();
|
|
5859
5893
|
t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
|
|
5860
|
-
})),
|
|
5861
|
-
var n =
|
|
5894
|
+
})), kh = /* @__PURE__ */ e(((e, t) => {
|
|
5895
|
+
var n = Dh();
|
|
5862
5896
|
t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
|
|
5863
|
-
})),
|
|
5897
|
+
})), Ah = /* @__PURE__ */ e(((e, t) => {
|
|
5864
5898
|
var n = Q();
|
|
5865
5899
|
t.exports = (e, t, r) => n(e, t, r) > 0;
|
|
5866
|
-
})),
|
|
5900
|
+
})), jh = /* @__PURE__ */ e(((e, t) => {
|
|
5867
5901
|
var n = Q();
|
|
5868
5902
|
t.exports = (e, t, r) => n(e, t, r) < 0;
|
|
5869
|
-
})),
|
|
5903
|
+
})), Mh = /* @__PURE__ */ e(((e, t) => {
|
|
5870
5904
|
var n = Q();
|
|
5871
5905
|
t.exports = (e, t, r) => n(e, t, r) === 0;
|
|
5872
|
-
})),
|
|
5906
|
+
})), Nh = /* @__PURE__ */ e(((e, t) => {
|
|
5873
5907
|
var n = Q();
|
|
5874
5908
|
t.exports = (e, t, r) => n(e, t, r) !== 0;
|
|
5875
|
-
})),
|
|
5909
|
+
})), Ph = /* @__PURE__ */ e(((e, t) => {
|
|
5876
5910
|
var n = Q();
|
|
5877
5911
|
t.exports = (e, t, r) => n(e, t, r) >= 0;
|
|
5878
|
-
})),
|
|
5912
|
+
})), Fh = /* @__PURE__ */ e(((e, t) => {
|
|
5879
5913
|
var n = Q();
|
|
5880
5914
|
t.exports = (e, t, r) => n(e, t, r) <= 0;
|
|
5881
|
-
})),
|
|
5882
|
-
var n =
|
|
5915
|
+
})), Ih = /* @__PURE__ */ e(((e, t) => {
|
|
5916
|
+
var n = Mh(), r = Nh(), i = Ah(), a = Ph(), o = jh(), s = Fh();
|
|
5883
5917
|
t.exports = (e, t, c, l) => {
|
|
5884
5918
|
switch (t) {
|
|
5885
5919
|
case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
|
|
@@ -5895,8 +5929,8 @@ var yp = (e) => {
|
|
|
5895
5929
|
default: throw TypeError(`Invalid operator: ${t}`);
|
|
5896
5930
|
}
|
|
5897
5931
|
};
|
|
5898
|
-
})),
|
|
5899
|
-
var n = Z(), r =
|
|
5932
|
+
})), Lh = /* @__PURE__ */ e(((e, t) => {
|
|
5933
|
+
var n = Z(), r = gh(), { safeRe: i, t: a } = ph();
|
|
5900
5934
|
t.exports = (e, t) => {
|
|
5901
5935
|
if (e instanceof n) return e;
|
|
5902
5936
|
if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
|
|
@@ -5912,7 +5946,7 @@ var yp = (e) => {
|
|
|
5912
5946
|
let s = o[2];
|
|
5913
5947
|
return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
|
|
5914
5948
|
};
|
|
5915
|
-
})),
|
|
5949
|
+
})), Rh = /* @__PURE__ */ e(((e, t) => {
|
|
5916
5950
|
t.exports = class {
|
|
5917
5951
|
constructor() {
|
|
5918
5952
|
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
@@ -6002,7 +6036,7 @@ var yp = (e) => {
|
|
|
6002
6036
|
return !1;
|
|
6003
6037
|
}
|
|
6004
6038
|
};
|
|
6005
|
-
var r = new (
|
|
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) => {
|
|
6006
6040
|
let n = !0, r = e.slice(), i = r.pop();
|
|
6007
6041
|
for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
|
|
6008
6042
|
return n;
|
|
@@ -6040,7 +6074,7 @@ var yp = (e) => {
|
|
|
6040
6074
|
}
|
|
6041
6075
|
return !0;
|
|
6042
6076
|
};
|
|
6043
|
-
})),
|
|
6077
|
+
})), zh = /* @__PURE__ */ e(((e, t) => {
|
|
6044
6078
|
var n = Symbol("SemVer ANY");
|
|
6045
6079
|
t.exports = class e {
|
|
6046
6080
|
static get ANY() {
|
|
@@ -6075,8 +6109,8 @@ var yp = (e) => {
|
|
|
6075
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(">")));
|
|
6076
6110
|
}
|
|
6077
6111
|
};
|
|
6078
|
-
var r =
|
|
6079
|
-
})),
|
|
6112
|
+
var r = mh(), { safeRe: i, t: a } = ph(), o = Ih(), s = fh(), c = Z(), l = $();
|
|
6113
|
+
})), Bh = /* @__PURE__ */ e(((e, t) => {
|
|
6080
6114
|
var n = $();
|
|
6081
6115
|
t.exports = (e, t, r) => {
|
|
6082
6116
|
try {
|
|
@@ -6086,10 +6120,10 @@ var yp = (e) => {
|
|
|
6086
6120
|
}
|
|
6087
6121
|
return t.test(e);
|
|
6088
6122
|
};
|
|
6089
|
-
})),
|
|
6123
|
+
})), Vh = /* @__PURE__ */ e(((e, t) => {
|
|
6090
6124
|
var n = $();
|
|
6091
6125
|
t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
|
|
6092
|
-
})),
|
|
6126
|
+
})), Hh = /* @__PURE__ */ e(((e, t) => {
|
|
6093
6127
|
var n = Z(), r = $();
|
|
6094
6128
|
t.exports = (e, t, i) => {
|
|
6095
6129
|
let a = null, o = null, s = null;
|
|
@@ -6102,7 +6136,7 @@ var yp = (e) => {
|
|
|
6102
6136
|
s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
|
|
6103
6137
|
}), a;
|
|
6104
6138
|
};
|
|
6105
|
-
})),
|
|
6139
|
+
})), Uh = /* @__PURE__ */ e(((e, t) => {
|
|
6106
6140
|
var n = Z(), r = $();
|
|
6107
6141
|
t.exports = (e, t, i) => {
|
|
6108
6142
|
let a = null, o = null, s = null;
|
|
@@ -6115,8 +6149,8 @@ var yp = (e) => {
|
|
|
6115
6149
|
s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
|
|
6116
6150
|
}), a;
|
|
6117
6151
|
};
|
|
6118
|
-
})),
|
|
6119
|
-
var n = Z(), r = $(), i =
|
|
6152
|
+
})), Wh = /* @__PURE__ */ e(((e, t) => {
|
|
6153
|
+
var n = Z(), r = $(), i = Ah();
|
|
6120
6154
|
t.exports = (e, t) => {
|
|
6121
6155
|
e = new r(e, t);
|
|
6122
6156
|
let a = new n("0.0.0");
|
|
@@ -6140,7 +6174,7 @@ var yp = (e) => {
|
|
|
6140
6174
|
}
|
|
6141
6175
|
return a && e.test(a) ? a : null;
|
|
6142
6176
|
};
|
|
6143
|
-
})),
|
|
6177
|
+
})), Gh = /* @__PURE__ */ e(((e, t) => {
|
|
6144
6178
|
var n = $();
|
|
6145
6179
|
t.exports = (e, t) => {
|
|
6146
6180
|
try {
|
|
@@ -6149,8 +6183,8 @@ var yp = (e) => {
|
|
|
6149
6183
|
return null;
|
|
6150
6184
|
}
|
|
6151
6185
|
};
|
|
6152
|
-
})),
|
|
6153
|
-
var n = Z(), r =
|
|
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();
|
|
6154
6188
|
t.exports = (e, t, d, f) => {
|
|
6155
6189
|
e = new n(e, f), t = new a(t, f);
|
|
6156
6190
|
let p, m, h, g, _;
|
|
@@ -6172,17 +6206,17 @@ var yp = (e) => {
|
|
|
6172
6206
|
}
|
|
6173
6207
|
return !0;
|
|
6174
6208
|
};
|
|
6175
|
-
})),
|
|
6176
|
-
var n =
|
|
6209
|
+
})), qh = /* @__PURE__ */ e(((e, t) => {
|
|
6210
|
+
var n = Kh();
|
|
6177
6211
|
t.exports = (e, t, r) => n(e, t, ">", r);
|
|
6178
|
-
})),
|
|
6179
|
-
var n =
|
|
6212
|
+
})), Jh = /* @__PURE__ */ e(((e, t) => {
|
|
6213
|
+
var n = Kh();
|
|
6180
6214
|
t.exports = (e, t, r) => n(e, t, "<", r);
|
|
6181
|
-
})),
|
|
6215
|
+
})), Yh = /* @__PURE__ */ e(((e, t) => {
|
|
6182
6216
|
var n = $();
|
|
6183
6217
|
t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
|
|
6184
|
-
})),
|
|
6185
|
-
var n =
|
|
6218
|
+
})), Xh = /* @__PURE__ */ e(((e, t) => {
|
|
6219
|
+
var n = Bh(), r = Q();
|
|
6186
6220
|
t.exports = (e, t, i) => {
|
|
6187
6221
|
let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
|
|
6188
6222
|
for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
|
|
@@ -6192,8 +6226,8 @@ var yp = (e) => {
|
|
|
6192
6226
|
let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
|
|
6193
6227
|
return u.length < d.length ? u : t;
|
|
6194
6228
|
};
|
|
6195
|
-
})),
|
|
6196
|
-
var n = $(), r =
|
|
6229
|
+
})), Zh = /* @__PURE__ */ e(((e, t) => {
|
|
6230
|
+
var n = $(), r = zh(), { ANY: i } = r, a = Bh(), o = Q(), s = (e, t, r = {}) => {
|
|
6197
6231
|
if (e === t) return !0;
|
|
6198
6232
|
e = new n(e, r), t = new n(t, r);
|
|
6199
6233
|
let i = !1;
|
|
@@ -6251,46 +6285,46 @@ var yp = (e) => {
|
|
|
6251
6285
|
return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
|
|
6252
6286
|
};
|
|
6253
6287
|
t.exports = s;
|
|
6254
|
-
})),
|
|
6255
|
-
var n =
|
|
6288
|
+
})), Qh = (/* @__PURE__ */ e(((e, t) => {
|
|
6289
|
+
var n = ph(), r = dh(), i = Z(), a = hh();
|
|
6256
6290
|
t.exports = {
|
|
6257
|
-
parse:
|
|
6258
|
-
valid:
|
|
6259
|
-
clean:
|
|
6260
|
-
inc:
|
|
6261
|
-
diff:
|
|
6262
|
-
major:
|
|
6263
|
-
minor:
|
|
6264
|
-
patch:
|
|
6265
|
-
prerelease:
|
|
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(),
|
|
6266
6300
|
compare: Q(),
|
|
6267
|
-
rcompare:
|
|
6268
|
-
compareLoose:
|
|
6269
|
-
compareBuild:
|
|
6270
|
-
sort:
|
|
6271
|
-
rsort:
|
|
6272
|
-
gt:
|
|
6273
|
-
lt:
|
|
6274
|
-
eq:
|
|
6275
|
-
neq:
|
|
6276
|
-
gte:
|
|
6277
|
-
lte:
|
|
6278
|
-
cmp:
|
|
6279
|
-
coerce:
|
|
6280
|
-
Comparator:
|
|
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(),
|
|
6281
6315
|
Range: $(),
|
|
6282
|
-
satisfies:
|
|
6283
|
-
toComparators:
|
|
6284
|
-
maxSatisfying:
|
|
6285
|
-
minSatisfying:
|
|
6286
|
-
minVersion:
|
|
6287
|
-
validRange:
|
|
6288
|
-
outside:
|
|
6289
|
-
gtr:
|
|
6290
|
-
ltr:
|
|
6291
|
-
intersects:
|
|
6292
|
-
simplifyRange:
|
|
6293
|
-
subset:
|
|
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(),
|
|
6294
6328
|
SemVer: i,
|
|
6295
6329
|
re: n.re,
|
|
6296
6330
|
src: n.src,
|
|
@@ -6300,12 +6334,12 @@ var yp = (e) => {
|
|
|
6300
6334
|
compareIdentifiers: a.compareIdentifiers,
|
|
6301
6335
|
rcompareIdentifiers: a.rcompareIdentifiers
|
|
6302
6336
|
};
|
|
6303
|
-
})))(),
|
|
6304
|
-
parser:
|
|
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],
|
|
6305
6339
|
parserType: e,
|
|
6306
6340
|
name: t
|
|
6307
|
-
}))),
|
|
6308
|
-
let n =
|
|
6341
|
+
}))), og = (e, t) => {
|
|
6342
|
+
let n = ag(e, t.url);
|
|
6309
6343
|
for (let { parser: e, parserType: r, name: i } of n) {
|
|
6310
6344
|
let n = e(t);
|
|
6311
6345
|
if (qc(n) || Jc(n) || Yc(n)) return {
|
|
@@ -6325,19 +6359,19 @@ var yp = (e) => {
|
|
|
6325
6359
|
referrer: t.url
|
|
6326
6360
|
}
|
|
6327
6361
|
};
|
|
6328
|
-
},
|
|
6362
|
+
}, sg = (e, t) => {
|
|
6329
6363
|
switch (t) {
|
|
6330
6364
|
case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
|
|
6331
6365
|
default: return new URL(`https://${e}.rl.talis.com`);
|
|
6332
6366
|
}
|
|
6333
|
-
},
|
|
6334
|
-
let n =
|
|
6367
|
+
}, cg = (e, t) => {
|
|
6368
|
+
let n = sg(e, t);
|
|
6335
6369
|
return new URL("/ui/forms/bookmarklet.html", n);
|
|
6336
|
-
},
|
|
6370
|
+
}, lg = (e, t, n) => {
|
|
6337
6371
|
let r = To(t);
|
|
6338
6372
|
r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
|
|
6339
6373
|
let i = new URL(e.toString());
|
|
6340
6374
|
return i.search = r.toString(), i;
|
|
6341
6375
|
};
|
|
6342
6376
|
//#endregion
|
|
6343
|
-
export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre,
|
|
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 };
|