@talisdev/bibliographic-resource-parsers-lib 5.45.2 → 5.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3334,13 +3334,16 @@ var ts = (e) => {
|
|
|
3334
3334
|
spage: a,
|
|
3335
3335
|
epage: o
|
|
3336
3336
|
}));
|
|
3337
|
-
}, Ls = /^[0-9X]$/, Rs = (e) => {
|
|
3337
|
+
}, Ls = /^[0-9X]$/, Rs = ",", zs = (e) => {
|
|
3338
3338
|
if (!e) return;
|
|
3339
3339
|
let t = "";
|
|
3340
3340
|
for (let n of e) Ls.test(n) && (t += n);
|
|
3341
3341
|
if (t) return t;
|
|
3342
|
-
},
|
|
3343
|
-
let
|
|
3342
|
+
}, Bs = (e) => {
|
|
3343
|
+
let t = new Set(e.flatMap((e) => e?.split(Rs) ?? []).map((e) => zs(e)).filter((e) => !!e));
|
|
3344
|
+
return t.size > 0 ? [...t].join(Rs) : void 0;
|
|
3345
|
+
}, Vs = (e, t) => {
|
|
3346
|
+
let n = e.querySelector(".c-cksc-content-header__title")?.textContent.trim(), r = e.querySelector(".c-cksc-content-nice__button")?.textContent.trim(), i = e.querySelector(".c-cksc-content-nice__date")?.textContent.trim(), a = zs(e.evaluate("//p[contains(text(), \"ISBN\")]", e, null, XPathResult.ANY_TYPE).iterateNext()?.textContent);
|
|
3344
3347
|
return B({
|
|
3345
3348
|
genre: F.Document,
|
|
3346
3349
|
title: n,
|
|
@@ -3349,8 +3352,8 @@ var ts = (e) => {
|
|
|
3349
3352
|
uri: t,
|
|
3350
3353
|
isbn: a
|
|
3351
3354
|
});
|
|
3352
|
-
},
|
|
3353
|
-
let t =
|
|
3355
|
+
}, Hs = (e) => e.querySelector(".browse-toc") ?? e.querySelector(".browse__journal"), Us = (e) => (Hs(e)?.querySelector("h1")?.firstElementChild)?.textContent.trim(), Ws = (e) => {
|
|
3356
|
+
let t = Hs(e), n = t?.querySelector("figure figcaption.source");
|
|
3354
3357
|
if (n) {
|
|
3355
3358
|
let [e, t, r] = n.textContent.split(",").map((e) => e.trim());
|
|
3356
3359
|
return {
|
|
@@ -3365,41 +3368,41 @@ var ts = (e) => {
|
|
|
3365
3368
|
volume: Os(r),
|
|
3366
3369
|
issue: Os(i)
|
|
3367
3370
|
};
|
|
3368
|
-
},
|
|
3369
|
-
let { date: t, volume: n, issue: r } =
|
|
3371
|
+
}, Gs = (e) => {
|
|
3372
|
+
let { date: t, volume: n, issue: r } = Ws(e);
|
|
3370
3373
|
return B(L(F.Journal, {
|
|
3371
|
-
jtitle:
|
|
3374
|
+
jtitle: Us(e),
|
|
3372
3375
|
date: t,
|
|
3373
3376
|
volume: n,
|
|
3374
3377
|
issue: r
|
|
3375
3378
|
}));
|
|
3376
|
-
},
|
|
3379
|
+
}, Ks = /* @__PURE__ */ function(e) {
|
|
3377
3380
|
return e.Book = "Book", e.Chapter = "Book Chapter", e.Article = "Full Text Article", e.Journal = "Journal", e.Guideline = "Guideline", e;
|
|
3378
|
-
}(
|
|
3381
|
+
}(Ks || {}), qs = (e) => Object.values(Ks).includes(e), Js = (e, t) => {
|
|
3379
3382
|
let n = e.querySelector(".content-type") ?? e.querySelector(".c-cksc-content-header__content-type");
|
|
3380
|
-
if (!n) return t.includes("journal") ?
|
|
3383
|
+
if (!n) return t.includes("journal") ? Ks.Journal : void 0;
|
|
3381
3384
|
let r = n.textContent;
|
|
3382
|
-
if (r &&
|
|
3383
|
-
},
|
|
3384
|
-
switch (
|
|
3385
|
-
case
|
|
3386
|
-
case
|
|
3387
|
-
case
|
|
3388
|
-
case
|
|
3389
|
-
case
|
|
3385
|
+
if (r && qs(r)) return r;
|
|
3386
|
+
}, Ys = ({ url: e, document: t }) => {
|
|
3387
|
+
switch (Js(t, e)) {
|
|
3388
|
+
case Ks.Book: return Ps(t);
|
|
3389
|
+
case Ks.Chapter: return Is(t);
|
|
3390
|
+
case Ks.Article: return Ns(t);
|
|
3391
|
+
case Ks.Journal: return Gs(t);
|
|
3392
|
+
case Ks.Guideline: return Vs(t, e);
|
|
3390
3393
|
case void 0: return z();
|
|
3391
3394
|
}
|
|
3392
|
-
},
|
|
3395
|
+
}, Xs = j({ "@context": O() }), Zs = (e) => Xs.safeParse(e).success, Qs = "script[type=\"application/ld+json\"]", $s = (e) => Array.from(e.querySelectorAll(Qs)), ec = (e) => e.querySelector(Qs), tc = (e) => {
|
|
3393
3396
|
let t = e.textContent;
|
|
3394
3397
|
if (!t) return null;
|
|
3395
3398
|
try {
|
|
3396
3399
|
let e = JSON.parse(t);
|
|
3397
|
-
if (
|
|
3400
|
+
if (Zs(e)) return e;
|
|
3398
3401
|
} catch {
|
|
3399
3402
|
return null;
|
|
3400
3403
|
}
|
|
3401
3404
|
return null;
|
|
3402
|
-
},
|
|
3405
|
+
}, nc = j({
|
|
3403
3406
|
"@id": O(),
|
|
3404
3407
|
"@type": O(),
|
|
3405
3408
|
author: j({ "@id": O() }).optional(),
|
|
@@ -3410,33 +3413,33 @@ var ts = (e) => {
|
|
|
3410
3413
|
isPartOf: j({ "@id": O() }).optional(),
|
|
3411
3414
|
name: O().optional(),
|
|
3412
3415
|
url: O().optional()
|
|
3413
|
-
}),
|
|
3414
|
-
let t =
|
|
3416
|
+
}), rc = Xs.extend({ "@graph": A(nc) }), ic = (e) => rc.safeParse(e).success, ac = (e) => {
|
|
3417
|
+
let t = $s(e);
|
|
3415
3418
|
if (t.length === 0) return null;
|
|
3416
|
-
let n = t.map(
|
|
3419
|
+
let n = t.map(tc).filter(ic).map((e) => e["@graph"]);
|
|
3417
3420
|
return n.length === 1 ? n[0] : null;
|
|
3418
|
-
},
|
|
3419
|
-
let t =
|
|
3421
|
+
}, oc = (e, t) => e.find((e) => e["@type"] === t) ?? null, sc = (e, t) => e.find((e) => e["@id"] === t) ?? null, cc = (e) => {
|
|
3422
|
+
let t = oc(e, "WebPage");
|
|
3420
3423
|
if (!t) return null;
|
|
3421
|
-
let n = t.author ?
|
|
3424
|
+
let n = t.author ? sc(e, t.author["@id"]) : void 0;
|
|
3422
3425
|
return _o({
|
|
3423
3426
|
au: n?.name ? [n.name] : void 0,
|
|
3424
3427
|
date: t.datePublished,
|
|
3425
3428
|
title: t.name
|
|
3426
3429
|
});
|
|
3427
|
-
},
|
|
3428
|
-
let t =
|
|
3430
|
+
}, lc = ({ document: e }) => {
|
|
3431
|
+
let t = ac(e);
|
|
3429
3432
|
return t ? {
|
|
3430
3433
|
bookmarkingWorkflowUrl: null,
|
|
3431
|
-
resource:
|
|
3434
|
+
resource: cc(t)
|
|
3432
3435
|
} : z();
|
|
3433
|
-
},
|
|
3436
|
+
}, uc = () => z(), dc = /* @__PURE__ */ function(e) {
|
|
3434
3437
|
return e.Journal = "journal", e.Article = "article", e;
|
|
3435
|
-
}(
|
|
3438
|
+
}(dc || {}), fc = (e) => {
|
|
3436
3439
|
let { pathname: t } = new URL(e);
|
|
3437
|
-
if (t.startsWith("/toc/")) return
|
|
3438
|
-
if (t.startsWith("/article/")) return
|
|
3439
|
-
},
|
|
3440
|
+
if (t.startsWith("/toc/")) return dc.Journal;
|
|
3441
|
+
if (t.startsWith("/article/")) return dc.Article;
|
|
3442
|
+
}, pc = (e) => {
|
|
3440
3443
|
let t = e.querySelector("header h1 span")?.firstChild?.textContent?.trim(), n = (e.querySelector("header p span")?.textContent.trim())?.match(/\d{4}-\d{3}[\dX]/g) ?? [], [r, i] = [n[0], n[1]], a = e.evaluate("//dt[contains(text(), \"Publisher\")]/following-sibling::dd/a", e, null, XPathResult.STRING_TYPE).stringValue.trim();
|
|
3441
3444
|
return B(L(F.Journal, {
|
|
3442
3445
|
pub: a,
|
|
@@ -3444,14 +3447,14 @@ var ts = (e) => {
|
|
|
3444
3447
|
issn: r,
|
|
3445
3448
|
eissn: i
|
|
3446
3449
|
}));
|
|
3447
|
-
},
|
|
3450
|
+
}, mc = (e) => {
|
|
3448
3451
|
let t, n, r = H(e, "name", "citation_issn");
|
|
3449
3452
|
return r.length === 2 ? (t = r[1], n = r[0]) : t = r[0], {
|
|
3450
3453
|
eissn: t,
|
|
3451
3454
|
issn: n
|
|
3452
3455
|
};
|
|
3453
|
-
},
|
|
3454
|
-
let t = V(e, "name", "citation_journal_title"), n = V(e, "name", "citation_title"), r = H(e, "name", "citation_author"), i = V(e, "name", "citation_doi"), { eissn: a, issn: o } =
|
|
3456
|
+
}, hc = (e) => {
|
|
3457
|
+
let t = V(e, "name", "citation_journal_title"), n = V(e, "name", "citation_title"), r = H(e, "name", "citation_author"), i = V(e, "name", "citation_doi"), { eissn: a, issn: o } = mc(e), s = V(e, "name", "citation_publisher"), c = V(e, "name", "citation_publication_date"), l = V(e, "name", "citation_volume"), u = V(e, "name", "citation_issue"), d = V(e, "name", "citation_firstpage"), f = V(e, "name", "citation_lastpage");
|
|
3455
3458
|
return B(L(F.Article, {
|
|
3456
3459
|
jtitle: t,
|
|
3457
3460
|
atitle: n,
|
|
@@ -3466,13 +3469,13 @@ var ts = (e) => {
|
|
|
3466
3469
|
spage: d,
|
|
3467
3470
|
epage: f
|
|
3468
3471
|
}));
|
|
3469
|
-
},
|
|
3470
|
-
switch (
|
|
3471
|
-
case
|
|
3472
|
-
case
|
|
3472
|
+
}, gc = ({ document: e, url: t }) => {
|
|
3473
|
+
switch (fc(t)) {
|
|
3474
|
+
case dc.Journal: return pc(e);
|
|
3475
|
+
case dc.Article: return hc(e);
|
|
3473
3476
|
case void 0: return z();
|
|
3474
3477
|
}
|
|
3475
|
-
},
|
|
3478
|
+
}, _c = (e) => {
|
|
3476
3479
|
let t = V(e, "name", "pbContext");
|
|
3477
3480
|
if (!t) return U.None;
|
|
3478
3481
|
let n = ds(t);
|
|
@@ -3481,23 +3484,23 @@ var ts = (e) => {
|
|
|
3481
3484
|
case "Table of Contents": return U.Journal;
|
|
3482
3485
|
default: return U.None;
|
|
3483
3486
|
}
|
|
3484
|
-
},
|
|
3487
|
+
}, vc = (e) => {
|
|
3485
3488
|
let t = e.querySelector("meta[property=\"article:author\"]")?.getAttribute("content")?.split(",").map((e) => e.trim());
|
|
3486
3489
|
return t && t.length > 0 ? t : void 0;
|
|
3487
|
-
},
|
|
3490
|
+
}, yc = (e) => {
|
|
3488
3491
|
let t = /* @__PURE__ */ new Map(), n = Array.from(e.querySelectorAll(".rlist>li>span")).map((e) => e.textContent.trim()).join(""), r = /^ISSN:\s(\d{4}-\d{3}(?:\d|X))/.exec(n);
|
|
3489
3492
|
r && t.set("issn", r[1]);
|
|
3490
3493
|
let i = /Online ISSN:\s(\d{4}-\d{3}(?:\d|X))/.exec(n);
|
|
3491
3494
|
return i && t.set("eissn", i[1]), t;
|
|
3492
|
-
},
|
|
3495
|
+
}, bc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationVolume\"] > span[property=\"volumeNumber\"]")?.textContent ?? void 0, xc = (e) => e.querySelector("span[property=\"isPartOf\"][typeof=\"PublicationIssue\"] > span[property=\"issueNumber\"]")?.textContent ?? void 0, Sc = (e) => e.querySelector("meta[name=\"dc.Identifier\"][scheme=\"doi\"]")?.getAttribute("content") ?? void 0, Cc = (e) => e.querySelector("h1")?.textContent ?? void 0, wc = (e) => {
|
|
3493
3496
|
let t = /* @__PURE__ */ new Map(), n = e.querySelector("h2.heading-m")?.textContent, r = n?.match(/Issue\s+(\d+(?:-\d+)?)/);
|
|
3494
3497
|
r && t.set("issue", r[1]);
|
|
3495
3498
|
let i = n?.match(/Volume\s+(\d+)/);
|
|
3496
3499
|
i && t.set("volume", i[1]);
|
|
3497
3500
|
let a = n?.match(/(\d{4})$/);
|
|
3498
3501
|
return a && t.set("date", a[1]), t;
|
|
3499
|
-
},
|
|
3500
|
-
let t =
|
|
3502
|
+
}, Tc = (e) => {
|
|
3503
|
+
let t = vc(e.document), n = V(e.document, "name", "dc.Date"), r = Sc(e.document), i = yc(e.document), a = i.get("issn"), o = i.get("eissn"), s = xc(e.document), c = V(e.document, "name", "citation_journal_title"), l = V(e.document, "name", "dc.Publisher"), u = V(e.document, "name", "dc.Title"), d = bc(e.document);
|
|
3501
3504
|
return L(F.Article, {
|
|
3502
3505
|
au: t,
|
|
3503
3506
|
date: n,
|
|
@@ -3510,8 +3513,8 @@ var ts = (e) => {
|
|
|
3510
3513
|
volume: d,
|
|
3511
3514
|
doi: r
|
|
3512
3515
|
});
|
|
3513
|
-
},
|
|
3514
|
-
let t =
|
|
3516
|
+
}, Ec = (e) => {
|
|
3517
|
+
let t = yc(e.document), n = t.get("issn"), r = t.get("eissn"), i = Cc(e.document), a = wc(e.document), o = a.get("issue"), s = a.get("volume"), c = a.get("date");
|
|
3515
3518
|
return L(F.Journal, {
|
|
3516
3519
|
eissn: r,
|
|
3517
3520
|
issn: n,
|
|
@@ -3521,33 +3524,33 @@ var ts = (e) => {
|
|
|
3521
3524
|
volume: s,
|
|
3522
3525
|
date: c
|
|
3523
3526
|
});
|
|
3524
|
-
},
|
|
3525
|
-
switch (
|
|
3526
|
-
case U.Article: return B(
|
|
3527
|
-
case U.Journal: return B(
|
|
3527
|
+
}, Dc = (e) => {
|
|
3528
|
+
switch (_c(e.document)) {
|
|
3529
|
+
case U.Article: return B(Tc(e));
|
|
3530
|
+
case U.Journal: return B(Ec(e));
|
|
3528
3531
|
default: return z();
|
|
3529
3532
|
}
|
|
3530
|
-
},
|
|
3533
|
+
}, Oc = (e) => {
|
|
3531
3534
|
let t = V(e, "name", "citation_type"), n = V(e, "name", "citation_article_type");
|
|
3532
3535
|
return t === "JOUR" && n ? U.Article : t === "CHP" ? U.Chapter : e.querySelector(".book-edition-year")?.textContent.includes("Book") ? U.Book : e.getElementById("journal-title") ? U.Journal : U.None;
|
|
3533
|
-
},
|
|
3536
|
+
}, kc = (e) => V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, Ac = (e) => {
|
|
3534
3537
|
let t = Array.from(e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")), n = /* @__PURE__ */ new Map();
|
|
3535
3538
|
for (let e of t) {
|
|
3536
3539
|
let t = e.querySelector("h3")?.textContent, r = e.querySelector("p")?.textContent;
|
|
3537
3540
|
t && r && n.set(t, r);
|
|
3538
3541
|
}
|
|
3539
3542
|
return n;
|
|
3540
|
-
},
|
|
3543
|
+
}, jc = (e, t) => {
|
|
3541
3544
|
let n = Array.from(e.querySelectorAll(t)).map((e) => e.textContent).filter((e) => !!e);
|
|
3542
3545
|
return n.length > 0 ? n : void 0;
|
|
3543
|
-
},
|
|
3546
|
+
}, Mc = (e) => {
|
|
3544
3547
|
let t = e.querySelector(".js-issn")?.textContent;
|
|
3545
3548
|
if (t) return t.replace("Online ISSN: ", "");
|
|
3546
|
-
},
|
|
3549
|
+
}, Nc = (e) => {
|
|
3547
3550
|
let t = e.get("DOI");
|
|
3548
3551
|
if (t) return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
|
|
3549
|
-
},
|
|
3550
|
-
let t =
|
|
3552
|
+
}, Pc = (e) => {
|
|
3553
|
+
let t = Ac(e), n = V(e, "property", "og:title"), r = V(e, "property", "og:book:isbn"), i = t.get("Published"), a = jc(e, ".authors-container .author-detail h3"), o = kc(e) ?? Nc(t);
|
|
3551
3554
|
return I(F.Book, {
|
|
3552
3555
|
au: a,
|
|
3553
3556
|
date: i,
|
|
@@ -3555,8 +3558,8 @@ var ts = (e) => {
|
|
|
3555
3558
|
isbn: r,
|
|
3556
3559
|
title: n
|
|
3557
3560
|
});
|
|
3558
|
-
},
|
|
3559
|
-
let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i =
|
|
3561
|
+
}, Fc = (e) => {
|
|
3562
|
+
let t = V(e, "property", "og:title"), n = V(e, "property", "og:book:isbn"), r = V(e, "name", "citation_publication_date"), i = jc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_firstpage"), o = V(e, "name", "citation_lastpage"), s = V(e, "name", "citation_publisher"), c = kc(e), l = V(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
|
|
3560
3563
|
return I(F.Bookitem, {
|
|
3561
3564
|
au: i,
|
|
3562
3565
|
btitle: l,
|
|
@@ -3568,8 +3571,8 @@ var ts = (e) => {
|
|
|
3568
3571
|
spage: a,
|
|
3569
3572
|
title: t
|
|
3570
3573
|
});
|
|
3571
|
-
},
|
|
3572
|
-
let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i =
|
|
3574
|
+
}, Ic = (e) => {
|
|
3575
|
+
let t = V(e, "property", "og:title"), n = V(e, "name", "citation_issn"), r = V(e, "name", "citation_publication_date"), i = jc(e, ".author-group .button-link-text"), a = V(e, "name", "citation_publisher"), o = V(e, "name", "citation_firstpage"), s = V(e, "name", "citation_issue"), c = V(e, "name", "citation_volume"), l = kc(e), u = V(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
|
|
3573
3576
|
return L(F.Article, {
|
|
3574
3577
|
au: i,
|
|
3575
3578
|
jtitle: u,
|
|
@@ -3582,36 +3585,36 @@ var ts = (e) => {
|
|
|
3582
3585
|
title: t,
|
|
3583
3586
|
volume: c
|
|
3584
3587
|
});
|
|
3585
|
-
},
|
|
3586
|
-
let t = e.getElementById("journal-title")?.textContent ?? void 0, n =
|
|
3588
|
+
}, Lc = (e) => {
|
|
3589
|
+
let t = e.getElementById("journal-title")?.textContent ?? void 0, n = Mc(e);
|
|
3587
3590
|
return L(F.Journal, {
|
|
3588
3591
|
issn: n,
|
|
3589
3592
|
title: t
|
|
3590
3593
|
});
|
|
3591
|
-
},
|
|
3592
|
-
switch (
|
|
3593
|
-
case U.Book: return B(
|
|
3594
|
-
case U.Chapter: return B(
|
|
3595
|
-
case U.Article: return B(
|
|
3596
|
-
case U.Journal: return B(
|
|
3594
|
+
}, Rc = ({ document: e }) => {
|
|
3595
|
+
switch (Oc(e)) {
|
|
3596
|
+
case U.Book: return B(Pc(e));
|
|
3597
|
+
case U.Chapter: return B(Fc(e));
|
|
3598
|
+
case U.Article: return B(Ic(e));
|
|
3599
|
+
case U.Journal: return B(Lc(e));
|
|
3597
3600
|
default: return z();
|
|
3598
3601
|
}
|
|
3599
|
-
},
|
|
3602
|
+
}, zc = (e) => {
|
|
3600
3603
|
let t = V(e, "name", "pbContext");
|
|
3601
3604
|
return t && ds(t).has("article") ? U.Article : U.Journal;
|
|
3602
|
-
},
|
|
3605
|
+
}, Bc = (e) => {
|
|
3603
3606
|
let t = e.querySelector(".itemPageRangeHistory");
|
|
3604
3607
|
if (!t) return;
|
|
3605
3608
|
let n = Array.from(t.childNodes).find((e) => e.textContent?.trim().startsWith("Page"));
|
|
3606
3609
|
if (n) return n.textContent?.replace(/Pages?/, "").trim() ?? void 0;
|
|
3607
|
-
},
|
|
3610
|
+
}, Vc = (e) => {
|
|
3608
3611
|
let t = e.querySelector(".issue-heading")?.textContent;
|
|
3609
3612
|
if (t) return t.split(",")[0]?.replace("Volume", "").trim();
|
|
3610
|
-
},
|
|
3613
|
+
}, Hc = (e) => {
|
|
3611
3614
|
let t = e.querySelector(".issue-heading .nav-toc-list")?.textContent;
|
|
3612
3615
|
if (t) return t.replace("Issue", "").trim();
|
|
3613
|
-
},
|
|
3614
|
-
let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "dc.Date"), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = H(e, "name", "dc.Creator"), s =
|
|
3616
|
+
}, Uc = (e) => {
|
|
3617
|
+
let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "dc.Date"), i = V(e, "name", "publication_doi"), a = V(e, "name", "citation_journal_title"), o = H(e, "name", "dc.Creator"), s = Vc(e), c = Hc(e), l = Bc(e), u = l?.includes("-") ? l.split("-")[0] : l, d = l?.includes("-") ? l.split("-")[1] : l;
|
|
3615
3618
|
return L(F.Article, {
|
|
3616
3619
|
au: o,
|
|
3617
3620
|
jtitle: a,
|
|
@@ -3624,45 +3627,45 @@ var ts = (e) => {
|
|
|
3624
3627
|
title: t,
|
|
3625
3628
|
volume: s
|
|
3626
3629
|
});
|
|
3627
|
-
},
|
|
3630
|
+
}, Wc = (e) => {
|
|
3628
3631
|
let t = V(e, "property", "og:title"), n = V(e, "name", "publication_doi");
|
|
3629
3632
|
return L(F.Journal, {
|
|
3630
3633
|
doi: n,
|
|
3631
3634
|
title: t
|
|
3632
3635
|
});
|
|
3633
|
-
},
|
|
3634
|
-
switch (
|
|
3635
|
-
case U.Article: return B(
|
|
3636
|
-
case U.Journal: return B(
|
|
3636
|
+
}, Gc = ({ document: e }) => {
|
|
3637
|
+
switch (zc(e)) {
|
|
3638
|
+
case U.Article: return B(Uc(e));
|
|
3639
|
+
case U.Journal: return B(Wc(e));
|
|
3637
3640
|
default: return z();
|
|
3638
3641
|
}
|
|
3639
|
-
},
|
|
3640
|
-
function
|
|
3642
|
+
}, Kc = (e) => Xo.safeParse(e).success, qc = (e) => Zo.safeParse(e).success, Jc = (e) => Wo.safeParse(e).success;
|
|
3643
|
+
function Yc(e) {
|
|
3641
3644
|
return Ko.safeParse(e).success;
|
|
3642
3645
|
}
|
|
3643
|
-
function
|
|
3646
|
+
function Xc(e) {
|
|
3644
3647
|
return qo.safeParse(e).success;
|
|
3645
3648
|
}
|
|
3646
|
-
function
|
|
3649
|
+
function Zc(e) {
|
|
3647
3650
|
return Jo.safeParse(e).success;
|
|
3648
3651
|
}
|
|
3649
|
-
function
|
|
3652
|
+
function Qc(e) {
|
|
3650
3653
|
return Yo.safeParse(e).success;
|
|
3651
3654
|
}
|
|
3652
|
-
function
|
|
3655
|
+
function $c(e) {
|
|
3653
3656
|
return Go.safeParse(e).success;
|
|
3654
3657
|
}
|
|
3655
3658
|
//#endregion
|
|
3656
3659
|
//#region src/parsers/site/vu-find-parser.ts
|
|
3657
|
-
var
|
|
3660
|
+
var el = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector("span[property=\"identifier\"]")?.textContent ?? void 0, tl = (e) => {
|
|
3658
3661
|
let t = /Record\/(\d+)/.exec(e);
|
|
3659
3662
|
if (t && t.length > 1) return t[1];
|
|
3660
|
-
},
|
|
3663
|
+
}, nl = (e) => {
|
|
3661
3664
|
let { url: t, document: n } = e, r = ns(e);
|
|
3662
|
-
if (!
|
|
3663
|
-
let i =
|
|
3664
|
-
return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid =
|
|
3665
|
-
},
|
|
3665
|
+
if (!Xc(r)) return r;
|
|
3666
|
+
let i = el(n);
|
|
3667
|
+
return i && (r.resource.rft_id = [`info:doi/${i}`]), r.resource.bibid = tl(t), r;
|
|
3668
|
+
}, rl = Xs.extend({
|
|
3666
3669
|
"@type": N("VideoObject"),
|
|
3667
3670
|
name: O(),
|
|
3668
3671
|
author: O(),
|
|
@@ -3671,13 +3674,13 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3671
3674
|
uploadDate: O(),
|
|
3672
3675
|
duration: O(),
|
|
3673
3676
|
thumbnailUrl: A(O())
|
|
3674
|
-
}),
|
|
3675
|
-
let t =
|
|
3677
|
+
}), il = (e) => rl.safeParse(e).success, al = (e) => {
|
|
3678
|
+
let t = $s(e);
|
|
3676
3679
|
if (t.length === 0) return null;
|
|
3677
|
-
let n = t.map(
|
|
3680
|
+
let n = t.map(tc).filter(il);
|
|
3678
3681
|
return n.length === 1 ? n[0] : null;
|
|
3679
|
-
},
|
|
3680
|
-
let n =
|
|
3682
|
+
}, ol = ({ url: e, document: t }) => {
|
|
3683
|
+
let n = al(t);
|
|
3681
3684
|
return n ? {
|
|
3682
3685
|
bookmarkingWorkflowUrl: null,
|
|
3683
3686
|
resource: R({
|
|
@@ -3687,17 +3690,17 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3687
3690
|
uri: e
|
|
3688
3691
|
})
|
|
3689
3692
|
} : z();
|
|
3690
|
-
},
|
|
3693
|
+
}, sl = (e) => V(e, "name", "doi") ?? V(e, "name", "DOI") ?? V(e, "name", "citation_doi") ?? V(e, "name", "dc.identifier") ?? V(e, "name", "prism.doi") ?? void 0, cl = (e) => {
|
|
3691
3694
|
let t = e.editor?.map((e) => e.name) ?? [], n = [...e.author?.map((e) => e.name) ?? [], ...t];
|
|
3692
3695
|
if (n.length !== 0) return n;
|
|
3693
|
-
},
|
|
3696
|
+
}, ll = /* @__PURE__ */ function(e) {
|
|
3694
3697
|
return e.Book = "Book", e.Journal = "Journal", e.Periodical = "Periodical", e.PublicationVolume = "PublicationVolume", e.ScholarlyArticle = "ScholarlyArticle", e.VideoObject = "VideoObject", e.WebPage = "WebPage", e;
|
|
3695
|
-
}({}),
|
|
3698
|
+
}({}), ul = /* @__PURE__ */ function(e) {
|
|
3696
3699
|
return e.Article = "article", e.Book = "book", e.Paper = "Paper", e.Video = "video.other", e.Website = "website", e;
|
|
3697
|
-
}({}),
|
|
3700
|
+
}({}), dl = /* @__PURE__ */ function(e) {
|
|
3698
3701
|
return e.Article = "/article/", e.Book = "/book/", e.Chapter = "/chapter/", e.Video = "/video/", e.ReferenceWorkEntry = "/referenceworkentry/", e.ReferenceWork = "/referencework/", e.Protocol = "/protocol/", e.Collections = "/collections/", e.Journal = "/journal/", e.JournalIssue = "/volumes-and-issues/", e;
|
|
3699
|
-
}({}),
|
|
3700
|
-
"@type": N(
|
|
3702
|
+
}({}), fl = j({
|
|
3703
|
+
"@type": N(ll.ScholarlyArticle),
|
|
3701
3704
|
author: A(j({
|
|
3702
3705
|
"@type": O(),
|
|
3703
3706
|
name: O()
|
|
@@ -3722,16 +3725,16 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3722
3725
|
"@type": O(),
|
|
3723
3726
|
name: O()
|
|
3724
3727
|
}).optional()
|
|
3725
|
-
}),
|
|
3726
|
-
"@type": N(
|
|
3727
|
-
mainEntity:
|
|
3728
|
-
}),
|
|
3728
|
+
}), pl = (e) => fl.safeParse(e).success, ml = Xs.extend({
|
|
3729
|
+
"@type": N(ll.WebPage),
|
|
3730
|
+
mainEntity: fl
|
|
3731
|
+
}), hl = (e) => ml.safeParse(e).success, gl = j({
|
|
3729
3732
|
"@type": A(O()),
|
|
3730
3733
|
name: O().optional(),
|
|
3731
3734
|
issn: A(O()),
|
|
3732
3735
|
volumeNumber: O().optional()
|
|
3733
|
-
}),
|
|
3734
|
-
let n =
|
|
3736
|
+
}), _l = (e) => gl.safeParse(e).success, vl = (e, t) => V(e, "name", "citation_issn") ?? V(e, "name", "prism.issn") ?? (pl(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), yl = (e, t) => {
|
|
3737
|
+
let n = cl(t), r = V(e, "name", "citation_online_date"), i = sl(e), a = V(e, "name", "citation_issue"), o = vl(e, t), s = _l(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, l = t.pageEnd, u = t.headline, d = t.isPartOf.name, f = _l(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
|
|
3735
3738
|
return L(F.Article, {
|
|
3736
3739
|
au: n,
|
|
3737
3740
|
date: r,
|
|
@@ -3745,8 +3748,8 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3745
3748
|
jtitle: d,
|
|
3746
3749
|
volume: f
|
|
3747
3750
|
});
|
|
3748
|
-
},
|
|
3749
|
-
"@type": N(
|
|
3751
|
+
}, bl = Xs.extend({
|
|
3752
|
+
"@type": N(ll.Book),
|
|
3750
3753
|
copyrightYear: O().optional(),
|
|
3751
3754
|
author: A(j({
|
|
3752
3755
|
"@type": O(),
|
|
@@ -3763,16 +3766,16 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3763
3766
|
"@type": O(),
|
|
3764
3767
|
name: O()
|
|
3765
3768
|
}).optional()
|
|
3766
|
-
}),
|
|
3769
|
+
}), xl = (e) => bl.safeParse(e).success, Sl = /* @__PURE__ */ function(e) {
|
|
3767
3770
|
return e.BOOK_TITLE = "Book Title", e.AUTHORS = "Authors", e.SERIES_TITLE = "Series Title", e.DOI = "DOI", e.PUBLISHER = "Publisher", e.SOFTCOVER_ISBN = "Softcover ISBN", e.EBOOK_ISBN = "eBook ISBN", e.SERIES_ISSN = "Series ISSN", e.SERIES_EISSN = "Series E-ISSN", e.EDITION_NUMBER = "Edition Number", e.NUMBER_OF_PAGES = "Number of Pages", e;
|
|
3768
|
-
}(
|
|
3771
|
+
}(Sl || {}), Cl = (e) => {
|
|
3769
3772
|
let t = e.querySelectorAll(".c-bibliographic-information__list-item"), n = /* @__PURE__ */ new Map();
|
|
3770
3773
|
return t.forEach((e) => {
|
|
3771
3774
|
let t = e.querySelector(".u-text-bold")?.textContent.trim(), r = e.querySelector(".c-bibliographic-information__value")?.textContent.trim();
|
|
3772
3775
|
t && r && n.set(t, r);
|
|
3773
3776
|
}), n;
|
|
3774
|
-
},
|
|
3775
|
-
let n =
|
|
3777
|
+
}, wl = (e, t) => {
|
|
3778
|
+
let n = Cl(e), r = cl(t), i = t.copyrightYear?.toString(), a = sl(e) ?? n.get(Sl.DOI), o = t.name ?? n.get(Sl.BOOK_TITLE), s = t.isbn ?? n.get(Sl.SOFTCOVER_ISBN), c = t.numberOfPages?.toString() ?? n.get(Sl.NUMBER_OF_PAGES), l = t.publisher?.name ?? n.get(Sl.PUBLISHER);
|
|
3776
3779
|
return I(F.Book, {
|
|
3777
3780
|
au: r,
|
|
3778
3781
|
date: i,
|
|
@@ -3782,7 +3785,7 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3782
3785
|
tpages: c,
|
|
3783
3786
|
pub: l
|
|
3784
3787
|
});
|
|
3785
|
-
},
|
|
3788
|
+
}, Tl = j({
|
|
3786
3789
|
"@type": N("Periodical"),
|
|
3787
3790
|
name: O(),
|
|
3788
3791
|
url: O(),
|
|
@@ -3793,7 +3796,7 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3793
3796
|
})),
|
|
3794
3797
|
publisher: j({ name: O() }),
|
|
3795
3798
|
description: O()
|
|
3796
|
-
}),
|
|
3799
|
+
}), El = (e) => Tl.safeParse(e).success, Dl = (e) => {
|
|
3797
3800
|
let t = e.editor.map(({ givenName: e, familyName: t }) => `${e} ${t}`), n = e.name, [r, i] = e.issn, a = e.publisher.name;
|
|
3798
3801
|
return L(F.Journal, {
|
|
3799
3802
|
au: t,
|
|
@@ -3802,15 +3805,15 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3802
3805
|
issn: i,
|
|
3803
3806
|
pub: a
|
|
3804
3807
|
});
|
|
3805
|
-
},
|
|
3806
|
-
"@type": N(
|
|
3808
|
+
}, Ol = j({
|
|
3809
|
+
"@type": N(ll.VideoObject),
|
|
3807
3810
|
name: O().optional(),
|
|
3808
3811
|
description: O().optional(),
|
|
3809
3812
|
thumbnailUrl: O().optional(),
|
|
3810
3813
|
uploadDate: O().optional(),
|
|
3811
3814
|
contentUrl: O().optional(),
|
|
3812
3815
|
duration: O().optional()
|
|
3813
|
-
}),
|
|
3816
|
+
}), kl = (e) => Ol.safeParse(e).success, Al = (e, t) => {
|
|
3814
3817
|
let n = Array.from(e.querySelectorAll("dd[data-test=\"video-segment-author\"]")).map((e) => e.textContent.trim()).filter((e) => !!e), r = t?.uploadDate ? new Date(t.uploadDate).getFullYear().toString() : void 0, i = t?.name ?? V(e, "property", "og:title") ?? void 0, a = e.querySelector("video-about-doi")?.textContent ?? void 0;
|
|
3815
3818
|
return R({
|
|
3816
3819
|
au: n.length > 0 ? n : void 0,
|
|
@@ -3818,26 +3821,26 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3818
3821
|
doi: a,
|
|
3819
3822
|
title: i
|
|
3820
3823
|
});
|
|
3821
|
-
},
|
|
3824
|
+
}, jl = (e) => _o({ title: V(e, "property", "og:title") }), Ml = (e, t) => {
|
|
3822
3825
|
let n = V(t, "property", "og:type");
|
|
3823
|
-
return n ===
|
|
3824
|
-
},
|
|
3825
|
-
let n =
|
|
3826
|
-
if (n === U.Webpage) return B(
|
|
3827
|
-
let r =
|
|
3826
|
+
return n === ul.Article && e.includes(dl.Article) ? U.Article : n === ul.Book && (e.includes(dl.Book) || e.includes(dl.ReferenceWork)) ? U.Book : n === ul.Paper && e.includes(dl.Chapter) ? U.Chapter : n === ul.Paper && (e.includes(dl.ReferenceWorkEntry) || e.includes(dl.Protocol)) ? U.Article : n === ul.Video && e.includes(dl.Video) ? U.AudioVisual : n === ul.Website && (e.includes(dl.Collections) || e.includes(dl.JournalIssue)) ? U.Webpage : n === ul.Website && e.includes(dl.Journal) ? U.Journal : U.None;
|
|
3827
|
+
}, Nl = (e, t, n) => e === U.AudioVisual && kl(n) ? B(Al(t, n)) : e === U.Book && xl(n) ? B(wl(t, n)) : (e === U.Chapter || e === U.Article) && pl(n) ? B(yl(t, n)) : e === U.Article && hl(n) ? B(yl(t, n.mainEntity)) : e === U.Journal && El(n) ? B(Dl(n)) : z(), Pl = ({ url: e, document: t }) => {
|
|
3828
|
+
let n = Ml(e, t);
|
|
3829
|
+
if (n === U.Webpage) return B(jl(t));
|
|
3830
|
+
let r = ec(t);
|
|
3828
3831
|
if (!r) return z();
|
|
3829
|
-
let i =
|
|
3830
|
-
return i ?
|
|
3831
|
-
},
|
|
3832
|
+
let i = tc(r);
|
|
3833
|
+
return i ? Nl(n, t, i) : z();
|
|
3834
|
+
}, W = /* @__PURE__ */ function(e) {
|
|
3832
3835
|
return e.PrintIsbn = "Print ISBN", e.OnlineIsbn = "Online ISBN", e.Doi = "DOI", e.FirstPublished = "First published", e.OnlineIssn = "Online ISSN", e.PrintIssn = "Print ISSN", e;
|
|
3833
|
-
}(
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
]),
|
|
3836
|
+
}(W || {}), Fl = new Set([
|
|
3837
|
+
W.PrintIsbn,
|
|
3838
|
+
W.OnlineIsbn,
|
|
3839
|
+
W.Doi,
|
|
3840
|
+
W.FirstPublished,
|
|
3841
|
+
W.OnlineIssn,
|
|
3842
|
+
W.PrintIssn
|
|
3843
|
+
]), Il = j({ content: j({
|
|
3841
3844
|
item: j({
|
|
3842
3845
|
title: O(),
|
|
3843
3846
|
"published-date": O()
|
|
@@ -3851,66 +3854,66 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3851
3854
|
type: O(),
|
|
3852
3855
|
eissn: O()
|
|
3853
3856
|
})
|
|
3854
|
-
}).optional() }),
|
|
3857
|
+
}).optional() }), Ll = (e, t) => {
|
|
3855
3858
|
if (!e) return;
|
|
3856
3859
|
let n = e.indexOf(t);
|
|
3857
3860
|
return n > -1 ? e.substring(0, n) : e;
|
|
3858
|
-
},
|
|
3861
|
+
}, Rl = (e) => {
|
|
3859
3862
|
let t = /\d+/.exec(e);
|
|
3860
3863
|
if (t?.[0]) return t[0];
|
|
3861
|
-
},
|
|
3864
|
+
}, zl = (e) => {
|
|
3862
3865
|
let t = e.querySelectorAll("script"), n = Array.from(t).find((e) => e.textContent.includes("adobeDataLayerJson"))?.textContent.match(/var adobeDataLayerJson = (\{.*?});/s);
|
|
3863
3866
|
if (n?.length === 2) try {
|
|
3864
3867
|
let e = JSON.parse(n[1]);
|
|
3865
|
-
return
|
|
3868
|
+
return Il.parse(e);
|
|
3866
3869
|
} catch {
|
|
3867
3870
|
return;
|
|
3868
3871
|
}
|
|
3869
|
-
},
|
|
3872
|
+
}, Bl = (e, t) => {
|
|
3870
3873
|
let n = V(e, "property", "og:type"), r = t.includes("epdf");
|
|
3871
3874
|
return n === "Book" || n === "books.book" ? U.Book : n === "Chapter" ? U.Chapter : n === "Journal" ? U.Journal : n === "Article" || r ? U.Article : U.None;
|
|
3872
|
-
},
|
|
3875
|
+
}, Vl = (e) => {
|
|
3873
3876
|
let t = H(e, "name", "citation_author"), n = Array.from(e.querySelectorAll("#product-details-content .product-authors")).map((e) => e.textContent).filter((e) => !!e), r = new Set([...t, ...n]);
|
|
3874
3877
|
return r.size > 0 ? [...r] : void 0;
|
|
3875
|
-
},
|
|
3878
|
+
}, Hl = (e) => {
|
|
3876
3879
|
let t = Array.from(e.querySelectorAll("#product-details-content .text-piped p")).map((e) => e.textContent).find((e) => e.endsWith(" pages"));
|
|
3877
|
-
if (t) return
|
|
3878
|
-
},
|
|
3880
|
+
if (t) return Rl(t);
|
|
3881
|
+
}, Ul = (e) => {
|
|
3879
3882
|
let t = /* @__PURE__ */ new Map(), n = Array.from(e.querySelectorAll(".journal-info-container .info-block")).flatMap((e) => Array.from(e.querySelectorAll(".info_label")));
|
|
3880
3883
|
for (let e of n) {
|
|
3881
3884
|
let n = e.nextElementSibling;
|
|
3882
3885
|
if (!n?.classList.contains("info_value")) continue;
|
|
3883
|
-
let r =
|
|
3884
|
-
!r || !i ||
|
|
3886
|
+
let r = Ll(e.textContent, ":"), i = Ll(n.textContent, ":");
|
|
3887
|
+
!r || !i || Fl.has(r) && t.set(r, i);
|
|
3885
3888
|
}
|
|
3886
3889
|
return t;
|
|
3887
|
-
},
|
|
3890
|
+
}, Wl = (e, t) => V(e, "property", "books:release_date") ?? V(e, "name", "citation_online_date") ?? t.get(W.FirstPublished) ?? void 0, Gl = (e, t) => V(e, "name", "dc.identifier") ?? V(e, "name", "citation_doi") ?? V(e, "name", "publication_doi") ?? t.get(W.Doi) ?? void 0, Kl = (e, t) => {
|
|
3888
3891
|
let n = new Set([
|
|
3889
3892
|
V(e, "property", "books:isbn"),
|
|
3890
|
-
t.get(
|
|
3891
|
-
t.get(
|
|
3893
|
+
t.get(W.PrintIsbn),
|
|
3894
|
+
t.get(W.OnlineIsbn)
|
|
3892
3895
|
].filter((e) => !!e));
|
|
3893
3896
|
return n.size > 0 ? [...n].join(",") : void 0;
|
|
3894
|
-
},
|
|
3897
|
+
}, ql = (e) => {
|
|
3895
3898
|
let t, n, r = e.querySelector(".cover-image__details div:first-of-type");
|
|
3896
3899
|
if (r?.childNodes.length === 2) {
|
|
3897
3900
|
let [e, i] = r.childNodes;
|
|
3898
|
-
e.textContent && (t =
|
|
3901
|
+
e.textContent && (t = Rl(e.textContent)), i.textContent && (n = Rl(i.textContent));
|
|
3899
3902
|
}
|
|
3900
3903
|
return {
|
|
3901
3904
|
volume: t,
|
|
3902
3905
|
issue: n
|
|
3903
3906
|
};
|
|
3904
|
-
},
|
|
3907
|
+
}, Jl = (e) => {
|
|
3905
3908
|
let t = Array.from(e.querySelectorAll(".authors .author")).map((e) => e.textContent.trim().replace(",", "")).filter((e) => !!e);
|
|
3906
3909
|
return t.length > 0 ? t : void 0;
|
|
3907
|
-
},
|
|
3910
|
+
}, Yl = (e) => {
|
|
3908
3911
|
let t = Array.from(e.querySelectorAll(".details-section .details-entry")), n = t.find((e) => e.querySelector(".details-label")?.textContent.trim() === "ISSN"), r = t.find((e) => e.querySelector(".details-label")?.textContent.trim() === "eISSN"), i, a;
|
|
3909
3912
|
return n && (i = n.querySelector(".details-value")?.textContent.trim()), r && (a = r.querySelector(".details-value")?.textContent.trim()), {
|
|
3910
3913
|
issn: i,
|
|
3911
3914
|
eissn: a
|
|
3912
3915
|
};
|
|
3913
|
-
},
|
|
3916
|
+
}, Xl = (e) => {
|
|
3914
3917
|
if (!e?.content?.group) return {
|
|
3915
3918
|
volume: void 0,
|
|
3916
3919
|
issue: void 0
|
|
@@ -3923,7 +3926,7 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3923
3926
|
volume: t,
|
|
3924
3927
|
issue: n
|
|
3925
3928
|
};
|
|
3926
|
-
},
|
|
3929
|
+
}, Zl = (e) => {
|
|
3927
3930
|
let [t, n] = ((Array.from(e.querySelectorAll(".details-section .details-entry")).find((e) => e.querySelector(".details-label")?.textContent.trim() === "Pages")?.querySelector(".details-value")?.textContent.trim())?.split("-") ?? [void 0, void 0]).map((e) => e?.trim());
|
|
3928
3931
|
return t?.toLowerCase() === "n/a" && n?.toLowerCase() === "n/a" ? {
|
|
3929
3932
|
spage: void 0,
|
|
@@ -3932,8 +3935,8 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3932
3935
|
spage: t,
|
|
3933
3936
|
epage: n
|
|
3934
3937
|
};
|
|
3935
|
-
},
|
|
3936
|
-
let t =
|
|
3938
|
+
}, Ql = (e) => {
|
|
3939
|
+
let t = Ul(e), n = Vl(e), r = V(e, "property", "og:title"), i = Wl(e, t), a = Gl(e, t), o = Kl(e, t), s = Hl(e);
|
|
3937
3940
|
return I(F.Book, {
|
|
3938
3941
|
au: n,
|
|
3939
3942
|
date: i,
|
|
@@ -3942,8 +3945,8 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3942
3945
|
pages: s,
|
|
3943
3946
|
title: r
|
|
3944
3947
|
});
|
|
3945
|
-
},
|
|
3946
|
-
let t =
|
|
3948
|
+
}, $l = (e) => {
|
|
3949
|
+
let t = Ul(e), n = Vl(e), r = V(e, "name", "citation_book_title"), i = Wl(e, t), a = Gl(e, t), o = Kl(e, t), s = V(e, "name", "citation_publisher"), c = V(e, "property", "og:title");
|
|
3947
3950
|
return I(F.Bookitem, {
|
|
3948
3951
|
au: n,
|
|
3949
3952
|
btitle: r,
|
|
@@ -3953,8 +3956,8 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3953
3956
|
pub: s,
|
|
3954
3957
|
title: c
|
|
3955
3958
|
});
|
|
3956
|
-
},
|
|
3957
|
-
let t =
|
|
3959
|
+
}, eu = (e) => {
|
|
3960
|
+
let t = Ul(e), n = Vl(e), r = Wl(e, t), i = t.get(W.OnlineIssn), a = t.get(W.PrintIssn), o = V(e, "property", "og:title"), { volume: s, issue: c } = ql(e);
|
|
3958
3961
|
return L(F.Journal, {
|
|
3959
3962
|
au: n,
|
|
3960
3963
|
date: r,
|
|
@@ -3964,8 +3967,8 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3964
3967
|
title: o,
|
|
3965
3968
|
volume: s
|
|
3966
3969
|
});
|
|
3967
|
-
},
|
|
3968
|
-
let t =
|
|
3970
|
+
}, tu = (e) => {
|
|
3971
|
+
let t = Ul(e), n = zl(e), r = Vl(e) ?? Jl(e), i = Wl(e, t) ?? n?.content?.item["published-date"], a = Gl(e, t), { issn: o, eissn: s } = Yl(e), { volume: c, issue: l } = Xl(n), u = V(e, "property", "og:title") ?? n?.content?.item.title, d = V(e, "name", "citation_journal_title") ?? n?.content?.series.title, { spage: f, epage: p } = Zl(e);
|
|
3969
3972
|
return L(F.Article, {
|
|
3970
3973
|
au: r,
|
|
3971
3974
|
date: i,
|
|
@@ -3979,71 +3982,71 @@ var Zc = (e) => Array.from(e.querySelectorAll("tr th")).find((e) => e.textConten
|
|
|
3979
3982
|
spage: f,
|
|
3980
3983
|
epage: p
|
|
3981
3984
|
});
|
|
3982
|
-
},
|
|
3983
|
-
switch (
|
|
3984
|
-
case U.Book: return B(
|
|
3985
|
-
case U.Chapter: return B(
|
|
3986
|
-
case U.Journal: return B(
|
|
3987
|
-
case U.Article: return B(
|
|
3985
|
+
}, nu = ({ document: e, url: t }) => {
|
|
3986
|
+
switch (Bl(e, t)) {
|
|
3987
|
+
case U.Book: return B(Ql(e));
|
|
3988
|
+
case U.Chapter: return B($l(e));
|
|
3989
|
+
case U.Journal: return B(eu(e));
|
|
3990
|
+
case U.Article: return B(tu(e));
|
|
3988
3991
|
default: return z();
|
|
3989
3992
|
}
|
|
3990
|
-
},
|
|
3993
|
+
}, ru = (e) => {
|
|
3991
3994
|
let t = H(e, "name", "citation_author");
|
|
3992
3995
|
return t.length > 0 ? t : void 0;
|
|
3993
|
-
},
|
|
3994
|
-
au:
|
|
3996
|
+
}, iu = ({ document: e }) => B(R({
|
|
3997
|
+
au: ru(e),
|
|
3995
3998
|
date: V(e, "name", "citation_publication_date"),
|
|
3996
3999
|
doi: V(e, "name", "citation_doi"),
|
|
3997
4000
|
isbn: V(e, "name", "citation_isbn"),
|
|
3998
4001
|
pub: V(e, "name", "citation_publisher"),
|
|
3999
4002
|
title: V(e, "name", "citation_title") ?? e.title
|
|
4000
|
-
})),
|
|
4003
|
+
})), au = ({ document: e }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? z() : $o(), ou = (e) => {
|
|
4001
4004
|
if (!(!e || e.length === 0)) return e[0];
|
|
4002
4005
|
};
|
|
4003
4006
|
//#endregion
|
|
4004
4007
|
//#region src/parsers/shared/parsing-utils.ts
|
|
4005
|
-
function
|
|
4006
|
-
return
|
|
4008
|
+
function su(e, t) {
|
|
4009
|
+
return ou(t.map((t) => {
|
|
4007
4010
|
let n = e.querySelector(t)?.textContent ?? null;
|
|
4008
4011
|
if (n && n.trim() !== "") return n;
|
|
4009
4012
|
}).filter((e) => e)) ?? null;
|
|
4010
4013
|
}
|
|
4011
|
-
function
|
|
4014
|
+
function cu(e, t) {
|
|
4012
4015
|
let n = t.flatMap((t) => Array.from(e.querySelectorAll(t)).flatMap((e) => {
|
|
4013
4016
|
let t = e.textContent;
|
|
4014
4017
|
return t && t.trim() !== "" ? t.split(";").map((e) => e.trim()).filter((e) => e.length > 0) : [];
|
|
4015
4018
|
}));
|
|
4016
4019
|
return n.length > 0 ? n : null;
|
|
4017
4020
|
}
|
|
4018
|
-
var
|
|
4021
|
+
var G = (e, t) => su(e, [t])?.trim(), lu = (e) => {
|
|
4019
4022
|
let t = e.querySelector(".content-meta-data__authors")?.textContent;
|
|
4020
4023
|
if (t) return t.split(/,\s+|\s+and\s+/).filter((e) => !!e);
|
|
4021
|
-
},
|
|
4024
|
+
}, uu = (e) => {
|
|
4022
4025
|
let t = Array.from(e.querySelectorAll(".tombstone-metadata [data-qa=\"item-authors\"]")).map((e) => e.textContent).filter((e) => !!e);
|
|
4023
4026
|
return t.length ? t : void 0;
|
|
4024
|
-
},
|
|
4027
|
+
}, du = (e) => {
|
|
4025
4028
|
let t = Array.from(e.querySelectorAll(".item-authors [data-qa=\"item-contributors\"], .item-authors [data-qa=\"item-creators\"]")).map((e) => e.textContent).filter((e) => !!e);
|
|
4026
4029
|
return t.length ? t : void 0;
|
|
4027
|
-
},
|
|
4030
|
+
}, fu = (e) => {
|
|
4028
4031
|
let t = Array.from(e.querySelectorAll(".contrib-type-author .name")).map((e) => e.textContent).filter((e) => !!e);
|
|
4029
4032
|
return t.length ? t : void 0;
|
|
4030
|
-
},
|
|
4033
|
+
}, pu = (e) => {
|
|
4031
4034
|
let t = new Set([
|
|
4035
|
+
...du(e) ?? [],
|
|
4032
4036
|
...lu(e) ?? [],
|
|
4033
|
-
...
|
|
4034
|
-
...uu(e) ?? []
|
|
4035
|
-
...cu(e) ?? []
|
|
4037
|
+
...fu(e) ?? [],
|
|
4038
|
+
...uu(e) ?? []
|
|
4036
4039
|
]);
|
|
4037
4040
|
return t.size ? [...t] : void 0;
|
|
4038
|
-
},
|
|
4041
|
+
}, mu = (e, t) => e.querySelector("[data-qa=\"published-date\"]")?.textContent ?? e.querySelector(".summary-image")?.textContent ?? vu(t?.get("date")) ?? vu(t?.get("copyright date")) ?? vu(t?.get("published date")), hu = (e) => {
|
|
4039
4042
|
let t = e.find((e) => e.startsWith("https://doi.org/"));
|
|
4040
4043
|
if (t) return t.replace("https://doi.org/", "");
|
|
4041
|
-
},
|
|
4044
|
+
}, gu = (e) => {
|
|
4042
4045
|
let t = e.get("local identifier");
|
|
4043
|
-
if (t?.length) return
|
|
4044
|
-
},
|
|
4046
|
+
if (t?.length) return hu(t);
|
|
4047
|
+
}, _u = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, vu = (e) => {
|
|
4045
4048
|
if (e?.length) return e[0];
|
|
4046
|
-
},
|
|
4049
|
+
}, yu = (e) => {
|
|
4047
4050
|
let t = /* @__PURE__ */ new Map();
|
|
4048
4051
|
return Array.from(e.querySelectorAll(".metadata-element, .metadata")).map((e) => ({
|
|
4049
4052
|
name: e.querySelector(".metadata-label")?.textContent.trim().toLowerCase(),
|
|
@@ -4051,24 +4054,24 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4051
4054
|
})).forEach(({ name: e, values: n }) => {
|
|
4052
4055
|
!e || !n.length || t.set(e, n);
|
|
4053
4056
|
}), t;
|
|
4054
|
-
},
|
|
4055
|
-
let t =
|
|
4057
|
+
}, bu = (e) => {
|
|
4058
|
+
let t = yu(e), n = e.querySelector(".summary-journal"), r = Array.from(n?.childNodes ?? []), i = r[0]?.textContent ?? e.querySelector(".journal-link")?.textContent ?? void 0, a = r[2]?.textContent?.replace(/Published By:\s+?/i, "") ?? vu(t.get("publisher")) ?? e.querySelector(".publisher-link")?.textContent ?? void 0;
|
|
4056
4059
|
return {
|
|
4057
4060
|
pub: a && a.trim() !== "" ? a : void 0,
|
|
4058
4061
|
jtitle: i && i.trim() !== "" ? i : void 0
|
|
4059
4062
|
};
|
|
4060
|
-
},
|
|
4061
|
-
let t =
|
|
4063
|
+
}, xu = (e) => {
|
|
4064
|
+
let t = su(e, [
|
|
4062
4065
|
"[data-qa=\"journal\"]:first-child cite",
|
|
4063
4066
|
"[data-qa=\"copyright-statement\"] > cite",
|
|
4064
4067
|
"[data-qa=\"collection-links\"] mfe-content-details-pharos-link"
|
|
4065
4068
|
]);
|
|
4066
4069
|
return t && t.trim() !== "" ? t : void 0;
|
|
4067
|
-
},
|
|
4070
|
+
}, Su = (e) => Os(e.querySelector("[data-qa=\"page-count\"]")?.textContent), Cu = (e, t) => e.querySelector(".publisher-link")?.textContent ?? vu(t?.get("publisher")), wu = (e) => e.querySelector("[data-qa=\"item-title\"]")?.textContent.trim() ?? e.querySelector("mfe-turnaway-pharos-heading")?.textContent.trim() ?? e.querySelector(".metadata mfe-toc-pharos-heading")?.textContent.trim() ?? e.querySelector(".journal_header-title")?.textContent.trim() ?? void 0, Tu = (e) => {
|
|
4068
4071
|
if (!URL.canParse(e)) return;
|
|
4069
4072
|
let t = new URL(e);
|
|
4070
4073
|
return t.origin + t.pathname;
|
|
4071
|
-
},
|
|
4074
|
+
}, Eu = (e) => {
|
|
4072
4075
|
let t = e.querySelector(".ccda-container > :first-child"), n, r;
|
|
4073
4076
|
if (t?.textContent.includes("Volume") || t?.textContent.includes("Issue")) {
|
|
4074
4077
|
let e = t.textContent.trim().split(/,\s+/);
|
|
@@ -4078,7 +4081,7 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4078
4081
|
issue: n,
|
|
4079
4082
|
volume: r
|
|
4080
4083
|
};
|
|
4081
|
-
},
|
|
4084
|
+
}, Du = (e) => {
|
|
4082
4085
|
let t = e.querySelector("[data-qa=\"item-src-info\"]")?.textContent ?? V(e, "property", "og:description") ?? V(e, "name", "description");
|
|
4083
4086
|
if (!t) return {};
|
|
4084
4087
|
let n = /Vol\.\s*(\d+)/.exec(t), r = n ? n[1] : void 0, i = /No\.\s*(\d+)/.exec(t), a = i ? i[1] : void 0, o = /pp\.\s*(\d+)-(\d+)/.exec(t), s = o ? o[1] : void 0, c = o ? o[2] : void 0, l = /pp\.\s*\d+-\d+\s*\((\d+)\s*pages\)/.exec(t);
|
|
@@ -4089,16 +4092,16 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4089
4092
|
epage: c,
|
|
4090
4093
|
pages: l ? l[1] : void 0
|
|
4091
4094
|
};
|
|
4092
|
-
},
|
|
4093
|
-
let t =
|
|
4095
|
+
}, Ou = (e) => {
|
|
4096
|
+
let t = su(e, ["mfe-turnaway-pharos-link", "[data-qa=\"item-src-info\"]"]);
|
|
4094
4097
|
if (!t) return;
|
|
4095
4098
|
let n = /\(.+\)/.exec(t)?.map((e) => {
|
|
4096
4099
|
let t = /\d{4}/.exec(e);
|
|
4097
4100
|
return t ? t[0] : void 0;
|
|
4098
4101
|
});
|
|
4099
|
-
return
|
|
4100
|
-
},
|
|
4101
|
-
let n =
|
|
4102
|
+
return ou(n);
|
|
4103
|
+
}, ku = (e, t) => {
|
|
4104
|
+
let n = wu(e), r = pu(e), i = mu(e) ?? Ou(e), a = bu(e), o = a.jtitle ?? xu(e) ?? void 0, s = a.pub, c = Eu(e), l = Du(e), u = c.issue ?? l.issue, d = c.volume ?? l.volume, f = Su(e) ?? l.pages, p = l.spage, m = l.epage, h = Tu(t), g = hu(Array.from(e.querySelector(".content-meta-data-stables")?.childNodes ?? []).map((e) => e.textContent ?? "")) ?? _u(e);
|
|
4102
4105
|
return L(F.Article, {
|
|
4103
4106
|
atitle: n,
|
|
4104
4107
|
au: r,
|
|
@@ -4113,17 +4116,17 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4113
4116
|
uri: h,
|
|
4114
4117
|
volume: d
|
|
4115
4118
|
});
|
|
4116
|
-
},
|
|
4117
|
-
let n =
|
|
4119
|
+
}, Au = (e, t) => {
|
|
4120
|
+
let n = yu(e), r = pu(e), i = mu(e, n), a = wu(e);
|
|
4118
4121
|
return R({
|
|
4119
4122
|
au: r,
|
|
4120
4123
|
date: i,
|
|
4121
|
-
pub:
|
|
4124
|
+
pub: Cu(e, n),
|
|
4122
4125
|
title: a,
|
|
4123
|
-
uri:
|
|
4126
|
+
uri: Tu(t)
|
|
4124
4127
|
});
|
|
4125
|
-
},
|
|
4126
|
-
let n =
|
|
4128
|
+
}, ju = (e, t) => {
|
|
4129
|
+
let n = yu(e), r = pu(e), i = wu(e), a = mu(e), o = Su(e), s = Cu(e, n), c = Tu(t), l = gu(n);
|
|
4127
4130
|
return I(F.Book, {
|
|
4128
4131
|
au: r,
|
|
4129
4132
|
date: a,
|
|
@@ -4133,8 +4136,8 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4133
4136
|
title: i,
|
|
4134
4137
|
uri: c
|
|
4135
4138
|
});
|
|
4136
|
-
},
|
|
4137
|
-
let n =
|
|
4139
|
+
}, Mu = (e, t) => {
|
|
4140
|
+
let n = yu(e), r = pu(e), i = wu(e), a = e.querySelector(".book-title-link")?.textContent ?? void 0, o = mu(e, n), s = Array.from(e.querySelectorAll("[data-qa=\"book\"] > span")).map((e) => e.textContent), c = Su(e), l = s.find((e) => e.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, u = Cu(e, n), d = Tu(t);
|
|
4138
4141
|
return I(F.Bookitem, {
|
|
4139
4142
|
atitle: i,
|
|
4140
4143
|
au: r,
|
|
@@ -4146,8 +4149,8 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4146
4149
|
spage: l?.[1],
|
|
4147
4150
|
uri: d
|
|
4148
4151
|
});
|
|
4149
|
-
},
|
|
4150
|
-
let n =
|
|
4152
|
+
}, Nu = (e, t) => {
|
|
4153
|
+
let n = yu(e), r = pu(e), i = wu(e), a = mu(e), o = Su(e), s = Cu(e, n), c = Tu(t), l = gu(n);
|
|
4151
4154
|
return I(F.Document, {
|
|
4152
4155
|
au: r,
|
|
4153
4156
|
date: a,
|
|
@@ -4157,16 +4160,16 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4157
4160
|
title: i,
|
|
4158
4161
|
uri: c
|
|
4159
4162
|
});
|
|
4160
|
-
},
|
|
4161
|
-
let n =
|
|
4163
|
+
}, Pu = (e, t) => {
|
|
4164
|
+
let n = yu(e);
|
|
4162
4165
|
return ho({
|
|
4163
|
-
au:
|
|
4164
|
-
date:
|
|
4165
|
-
title:
|
|
4166
|
-
uri:
|
|
4166
|
+
au: pu(e),
|
|
4167
|
+
date: mu(e, n),
|
|
4168
|
+
title: wu(e),
|
|
4169
|
+
uri: Tu(t)
|
|
4167
4170
|
});
|
|
4168
|
-
},
|
|
4169
|
-
let { pub: n } =
|
|
4171
|
+
}, Fu = (e, t) => {
|
|
4172
|
+
let { pub: n } = bu(e), r = wu(e), i = e.querySelector(".eissn")?.textContent.replace(/EISSN\s+/, "").trim() ?? void 0, a = e.querySelector(".issn")?.textContent.replace(/ISSN\s+/, "").trim() ?? void 0, o = Tu(t);
|
|
4170
4173
|
return L(F.Journal, {
|
|
4171
4174
|
eissn: i,
|
|
4172
4175
|
issn: a,
|
|
@@ -4176,66 +4179,66 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4176
4179
|
});
|
|
4177
4180
|
}, K = /* @__PURE__ */ function(e) {
|
|
4178
4181
|
return e.Article = "journal article", e.Audio = "audio", e.Book = "book", e.Chapter = "book chapter", e.Document = "document", e.Image = "image", e.Journal = "journal", e.ResearchReport = "research report", e.Serial = "serial", e.Video = "video", e;
|
|
4179
|
-
}({}),
|
|
4180
|
-
let n =
|
|
4182
|
+
}({}), Iu = (e, t) => {
|
|
4183
|
+
let n = yu(e), r = pu(e), i = mu(e, n), a = wu(e);
|
|
4181
4184
|
return R({
|
|
4182
4185
|
au: r,
|
|
4183
4186
|
date: i,
|
|
4184
|
-
pub:
|
|
4187
|
+
pub: Cu(e, n),
|
|
4185
4188
|
title: a,
|
|
4186
|
-
uri:
|
|
4189
|
+
uri: Tu(t)
|
|
4187
4190
|
});
|
|
4188
|
-
},
|
|
4191
|
+
}, Lu = (e) => Object.values(K).includes(e), Ru = (e) => {
|
|
4189
4192
|
if (e.querySelector(".journal_header-title")) return K.Journal;
|
|
4190
4193
|
if (e.querySelector(".journal-link")) return K.Article;
|
|
4191
4194
|
let t = e.querySelector(".content-type > span")?.textContent.toLowerCase().trim() ?? e.querySelector(".content-meta-data-label")?.textContent.toLowerCase().trim();
|
|
4192
|
-
return
|
|
4193
|
-
},
|
|
4194
|
-
switch (
|
|
4195
|
+
return Lu(t) ? t : null;
|
|
4196
|
+
}, zu = (e, t) => {
|
|
4197
|
+
switch (Ru(e)) {
|
|
4195
4198
|
case K.Article:
|
|
4196
|
-
case K.Serial: return
|
|
4197
|
-
case K.Audio: return
|
|
4198
|
-
case K.Book: return
|
|
4199
|
+
case K.Serial: return ku(e, t);
|
|
4200
|
+
case K.Audio: return Au(e, t);
|
|
4201
|
+
case K.Book: return ju(e, t);
|
|
4199
4202
|
case K.Chapter:
|
|
4200
|
-
case K.ResearchReport: return
|
|
4201
|
-
case K.Document: return
|
|
4202
|
-
case K.Image: return
|
|
4203
|
-
case K.Journal: return
|
|
4204
|
-
case K.Video: return
|
|
4203
|
+
case K.ResearchReport: return Mu(e, t);
|
|
4204
|
+
case K.Document: return Nu(e, t);
|
|
4205
|
+
case K.Image: return Pu(e, t);
|
|
4206
|
+
case K.Journal: return Fu(e, t);
|
|
4207
|
+
case K.Video: return Iu(e, t);
|
|
4205
4208
|
default: return null;
|
|
4206
4209
|
}
|
|
4207
|
-
},
|
|
4208
|
-
let n =
|
|
4210
|
+
}, Bu = ({ document: e, url: t }) => {
|
|
4211
|
+
let n = zu(e, t);
|
|
4209
4212
|
return n ? B(n) : z();
|
|
4210
|
-
},
|
|
4213
|
+
}, Vu = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, Hu = /(E?ISBN|E?ISSN|DOI)\s*:\s*/gi, Uu = (e) => {
|
|
4211
4214
|
if (!e) return;
|
|
4212
|
-
let t =
|
|
4215
|
+
let t = Vu.exec(e);
|
|
4213
4216
|
if (t) return t.length > 1 ? t[1] : void 0;
|
|
4214
|
-
},
|
|
4217
|
+
}, Wu = (e) => {
|
|
4215
4218
|
let t = {};
|
|
4216
4219
|
return e.forEach((e) => {
|
|
4217
4220
|
let n = [], r;
|
|
4218
|
-
for (
|
|
4221
|
+
for (Hu.lastIndex = 0; (r = Hu.exec(e)) !== null;) n.push({
|
|
4219
4222
|
id: r[1].toLowerCase(),
|
|
4220
4223
|
index: r.index,
|
|
4221
|
-
start:
|
|
4224
|
+
start: Hu.lastIndex
|
|
4222
4225
|
});
|
|
4223
4226
|
n.forEach(({ id: r, start: i }, a) => {
|
|
4224
4227
|
t[r] ??= [], t[r].push(e.substring(i, n[a + 1]?.index).trim());
|
|
4225
4228
|
});
|
|
4226
4229
|
}), t;
|
|
4227
|
-
},
|
|
4230
|
+
}, Gu = (e) => [...e.isbn ?? [], ...e.eisbn ?? []].map((e) => zs(e)).filter((e) => !!e), Ku = (e) => {
|
|
4228
4231
|
if (e) {
|
|
4229
4232
|
if (typeof e == "string") return e;
|
|
4230
4233
|
if (e.length > 0) return e[0];
|
|
4231
4234
|
}
|
|
4232
|
-
},
|
|
4233
|
-
if (e) return typeof e == "string" ? e : Array.isArray(e) ? e.length === 0 ? void 0 :
|
|
4234
|
-
},
|
|
4235
|
+
}, qu = (e) => {
|
|
4236
|
+
if (e) return typeof e == "string" ? e : Array.isArray(e) ? e.length === 0 ? void 0 : Ku(e[0].name) : Ku(e.name);
|
|
4237
|
+
}, Ju = (...e) => {
|
|
4235
4238
|
let t = new Set(e.filter((e) => !!e));
|
|
4236
4239
|
if (t.size !== 0) return [...t];
|
|
4237
|
-
},
|
|
4238
|
-
let t =
|
|
4240
|
+
}, Yu = (e) => {
|
|
4241
|
+
let t = Wu(e.identifierValues), [n] = e.isPartOf?.split(",") ?? [], r = Uu(e.publicationDate ?? e.creationDate), i = Gu(t);
|
|
4239
4242
|
return {
|
|
4240
4243
|
authors: e.authors,
|
|
4241
4244
|
date: r,
|
|
@@ -4249,62 +4252,62 @@ var ou = (e, t) => iu(e, [t])?.trim(), su = (e) => {
|
|
|
4249
4252
|
publisher: e.publisher,
|
|
4250
4253
|
title: e.title
|
|
4251
4254
|
};
|
|
4252
|
-
},
|
|
4255
|
+
}, Xu = ({ lcn: e, title: t }) => ({
|
|
4253
4256
|
bibid: e,
|
|
4254
4257
|
title: t
|
|
4255
|
-
}),
|
|
4258
|
+
}), Zu = /_ALMA(_|$)/, Qu = (e) => {
|
|
4256
4259
|
let t = e.mainEntity.creator;
|
|
4257
|
-
if (t) return typeof t == "string" ? [t] : Array.isArray(t) ? t.map((e) =>
|
|
4258
|
-
},
|
|
4260
|
+
if (t) return typeof t == "string" ? [t] : Array.isArray(t) ? t.map((e) => Ku(e.name)).filter((e) => !!e) : [Ku(t.name)].filter((e) => !!e);
|
|
4261
|
+
}, $u = (e) => {
|
|
4259
4262
|
let t = e.mainEntity.issn;
|
|
4260
4263
|
return t ? typeof t == "string" ? [t] : t : [];
|
|
4261
|
-
},
|
|
4264
|
+
}, ed = (e) => {
|
|
4262
4265
|
let t = e.mainEntity.datePublished;
|
|
4263
4266
|
if (t) return t.replace(/-$/, "") || void 0;
|
|
4264
|
-
},
|
|
4265
|
-
let n =
|
|
4267
|
+
}, td = (e) => e.replace(/[.,;]+$/, "").trim(), nd = (e, t) => {
|
|
4268
|
+
let n = td(e), r = td(t);
|
|
4266
4269
|
return n.startsWith(r) || r.startsWith(n);
|
|
4267
|
-
},
|
|
4270
|
+
}, rd = (e) => {
|
|
4268
4271
|
let t = [];
|
|
4269
|
-
for (let n of e) n && (t.some((e) =>
|
|
4272
|
+
for (let n of e) n && (t.some((e) => nd(e, n)) || t.push(n));
|
|
4270
4273
|
return t.length > 0 ? t : void 0;
|
|
4271
4274
|
};
|
|
4272
|
-
function
|
|
4273
|
-
if (e) return
|
|
4275
|
+
function id(e) {
|
|
4276
|
+
if (e) return Zu.test(e) ? e.replace(Zu, "") : e.startsWith("alma") ? e.replace("alma", "") : e;
|
|
4274
4277
|
}
|
|
4275
|
-
var
|
|
4276
|
-
let n =
|
|
4278
|
+
var ad = (e, t) => {
|
|
4279
|
+
let n = rd([...(e && Qu(e)) ?? [], ...t.authors ?? []]), r = Ju(...t.eissns ?? []), i = Ju(e?.mainEntity.isbn ? zs(e.mainEntity.isbn) : void 0, ...t.isbns ?? []), a = Ju(...e ? $u(e) : [], ...t.issns ?? []), [o, s] = e?.mainEntity.pagination?.split("-") ?? [];
|
|
4277
4280
|
return {
|
|
4278
4281
|
authors: n,
|
|
4279
4282
|
btitle: e?.mainEntity.isPartOf?.name ?? t.jtitle,
|
|
4280
|
-
date: t.date ?? (e ?
|
|
4281
|
-
doi:
|
|
4283
|
+
date: t.date ?? (e ? ed(e) : void 0),
|
|
4284
|
+
doi: Ku(t.dois),
|
|
4282
4285
|
edition: e?.mainEntity.edition ?? t.edition,
|
|
4283
|
-
eissn:
|
|
4286
|
+
eissn: Ku(r),
|
|
4284
4287
|
epage: s,
|
|
4285
4288
|
isbn: i?.join(","),
|
|
4286
|
-
issn:
|
|
4289
|
+
issn: Ku(a),
|
|
4287
4290
|
issue: e?.mainEntity.issueNumber,
|
|
4288
4291
|
jtitle: t.jtitle,
|
|
4289
|
-
lcn:
|
|
4290
|
-
publisher: t.publisher ??
|
|
4292
|
+
lcn: id(t.lcn ?? e?.identifier.value),
|
|
4293
|
+
publisher: t.publisher ?? qu(e?.mainEntity.publisher),
|
|
4291
4294
|
spage: o,
|
|
4292
4295
|
title: e?.name ?? t.title,
|
|
4293
4296
|
volume: e?.mainEntity.volumeNumber
|
|
4294
4297
|
};
|
|
4295
|
-
},
|
|
4298
|
+
}, od = j({
|
|
4296
4299
|
"@type": N("Organization"),
|
|
4297
4300
|
name: M([O(), A(O())])
|
|
4298
|
-
}),
|
|
4301
|
+
}), sd = j({
|
|
4299
4302
|
"@type": N("Person"),
|
|
4300
4303
|
name: M([O(), A(O())])
|
|
4301
|
-
}),
|
|
4304
|
+
}), cd = j({
|
|
4302
4305
|
"@type": M([O(), A(O())]),
|
|
4303
4306
|
"@id": O().optional(),
|
|
4304
4307
|
issn: O().optional(),
|
|
4305
4308
|
name: O().optional(),
|
|
4306
4309
|
volume: O().optional()
|
|
4307
|
-
}),
|
|
4310
|
+
}), ld = Xs.extend({
|
|
4308
4311
|
identifier: j({
|
|
4309
4312
|
"@type": O(),
|
|
4310
4313
|
propertyID: O(),
|
|
@@ -4316,8 +4319,8 @@ var rd = (e, t) => {
|
|
|
4316
4319
|
bookFormat: P(O()),
|
|
4317
4320
|
creator: P(M([
|
|
4318
4321
|
O(),
|
|
4319
|
-
|
|
4320
|
-
A(
|
|
4322
|
+
sd,
|
|
4323
|
+
A(sd)
|
|
4321
4324
|
])),
|
|
4322
4325
|
datePublished: P(O()),
|
|
4323
4326
|
description: P(M([O(), A(O())])),
|
|
@@ -4325,24 +4328,24 @@ var rd = (e, t) => {
|
|
|
4325
4328
|
inLanguage: P(O()),
|
|
4326
4329
|
isbn: P(O()),
|
|
4327
4330
|
issn: P(M([O(), A(O())])),
|
|
4328
|
-
isPartOf: P(
|
|
4331
|
+
isPartOf: P(cd),
|
|
4329
4332
|
issueNumber: P(O()),
|
|
4330
4333
|
pagination: P(O()),
|
|
4331
4334
|
publisher: P(M([
|
|
4332
4335
|
O(),
|
|
4333
|
-
|
|
4334
|
-
A(
|
|
4336
|
+
od,
|
|
4337
|
+
A(od)
|
|
4335
4338
|
])),
|
|
4336
4339
|
volumeNumber: P(O())
|
|
4337
4340
|
}),
|
|
4338
4341
|
name: O()
|
|
4339
|
-
}),
|
|
4340
|
-
let t =
|
|
4342
|
+
}), ud = (e) => {
|
|
4343
|
+
let t = ec(e);
|
|
4341
4344
|
if (!t) return null;
|
|
4342
|
-
let n =
|
|
4345
|
+
let n = tc(t), r = ld.safeParse(n);
|
|
4343
4346
|
return r.success ? r.data : null;
|
|
4344
|
-
},
|
|
4345
|
-
...
|
|
4347
|
+
}, dd = (e) => L(F.Article, {
|
|
4348
|
+
...Xu(e),
|
|
4346
4349
|
au: e.authors,
|
|
4347
4350
|
doi: e.doi,
|
|
4348
4351
|
eissn: e.eissn,
|
|
@@ -4353,8 +4356,8 @@ var rd = (e, t) => {
|
|
|
4353
4356
|
pub: e.publisher,
|
|
4354
4357
|
spage: e.spage,
|
|
4355
4358
|
volume: e.volume
|
|
4356
|
-
}),
|
|
4357
|
-
...
|
|
4359
|
+
}), fd = (e) => I(F.Book, {
|
|
4360
|
+
...Xu(e),
|
|
4358
4361
|
au: e.authors,
|
|
4359
4362
|
date: e.date,
|
|
4360
4363
|
doi: e.doi,
|
|
@@ -4363,7 +4366,7 @@ var rd = (e, t) => {
|
|
|
4363
4366
|
isbn: e.isbn,
|
|
4364
4367
|
pub: e.publisher,
|
|
4365
4368
|
spage: e.spage
|
|
4366
|
-
}),
|
|
4369
|
+
}), pd = (e) => I(F.Bookitem, {
|
|
4367
4370
|
bibid: e.lcn,
|
|
4368
4371
|
atitle: e.title,
|
|
4369
4372
|
btitle: e.btitle,
|
|
@@ -4374,69 +4377,69 @@ var rd = (e, t) => {
|
|
|
4374
4377
|
isbn: e.isbn,
|
|
4375
4378
|
pub: e.publisher,
|
|
4376
4379
|
spage: e.spage
|
|
4377
|
-
}),
|
|
4378
|
-
...
|
|
4380
|
+
}), md = (e) => I(F.Conference, {
|
|
4381
|
+
...Xu(e),
|
|
4379
4382
|
au: e.authors,
|
|
4380
4383
|
date: e.date,
|
|
4381
4384
|
doi: e.doi,
|
|
4382
4385
|
isbn: e.isbn,
|
|
4383
4386
|
pub: e.publisher
|
|
4384
|
-
}),
|
|
4385
|
-
...
|
|
4387
|
+
}), hd = (e) => go({
|
|
4388
|
+
...Xu(e),
|
|
4386
4389
|
au: e.authors,
|
|
4387
4390
|
date: e.date,
|
|
4388
4391
|
pub: e.publisher
|
|
4389
|
-
}),
|
|
4390
|
-
...
|
|
4392
|
+
}), gd = (e) => L(F.Journal, {
|
|
4393
|
+
...Xu(e),
|
|
4391
4394
|
date: e.date,
|
|
4392
4395
|
doi: e.doi,
|
|
4393
4396
|
eissn: e.eissn,
|
|
4394
4397
|
issn: e.issn,
|
|
4395
4398
|
pub: e.publisher
|
|
4396
|
-
}),
|
|
4397
|
-
...
|
|
4399
|
+
}), _d = (e) => R({
|
|
4400
|
+
...Xu(e),
|
|
4398
4401
|
au: e.authors,
|
|
4399
4402
|
date: e.date,
|
|
4400
4403
|
pub: e.publisher
|
|
4401
|
-
}),
|
|
4402
|
-
...
|
|
4404
|
+
}), vd = (e) => R({
|
|
4405
|
+
...Xu(e),
|
|
4403
4406
|
au: e.authors,
|
|
4404
4407
|
date: e.date,
|
|
4405
4408
|
pub: e.publisher
|
|
4406
4409
|
}), q = /* @__PURE__ */ function(e) {
|
|
4407
4410
|
return e.Article = "Article", e.Audio = "Audio", e.Book = "Book", e.BookChapter = "BookChapter", e.Conference = "Conference", e.Dissertation = "Dissertation", e.Journal = "Journal", e.Video = "Video", e;
|
|
4408
|
-
}({}),
|
|
4409
|
-
let r =
|
|
4411
|
+
}({}), yd = (e, t) => ({ document: n }) => {
|
|
4412
|
+
let r = ud(n), i = ad(r, e(n));
|
|
4410
4413
|
switch (t(n, r)) {
|
|
4411
|
-
case q.Article: return B(
|
|
4412
|
-
case q.Book: return B(
|
|
4413
|
-
case q.BookChapter: return B(
|
|
4414
|
-
case q.Conference: return B(
|
|
4415
|
-
case q.Dissertation: return B(
|
|
4416
|
-
case q.Journal: return B(
|
|
4417
|
-
case q.Audio: return B(
|
|
4418
|
-
case q.Video: return B(
|
|
4414
|
+
case q.Article: return B(dd(i));
|
|
4415
|
+
case q.Book: return B(fd(i));
|
|
4416
|
+
case q.BookChapter: return B(pd(i));
|
|
4417
|
+
case q.Conference: return B(md(i));
|
|
4418
|
+
case q.Dissertation: return B(hd(i));
|
|
4419
|
+
case q.Journal: return B(gd(i));
|
|
4420
|
+
case q.Audio: return B(vd(i));
|
|
4421
|
+
case q.Video: return B(_d(i));
|
|
4419
4422
|
default: return z();
|
|
4420
4423
|
}
|
|
4421
|
-
},
|
|
4424
|
+
}, bd = (e) => `*:has([data-details-label="${e}"]) + .item-details-element-container prm-highlight`, xd = (e, t) => {
|
|
4422
4425
|
for (let n of t) {
|
|
4423
4426
|
let t = e.querySelector(n)?.textContent.trim();
|
|
4424
4427
|
if (t) return t;
|
|
4425
4428
|
}
|
|
4426
|
-
},
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
]),
|
|
4431
|
-
authors:
|
|
4432
|
-
title:
|
|
4433
|
-
publisher:
|
|
4434
|
-
creationDate:
|
|
4435
|
-
edition:
|
|
4436
|
-
isPartOf:
|
|
4437
|
-
identifierValues:
|
|
4438
|
-
lcn:
|
|
4439
|
-
}),
|
|
4429
|
+
}, Sd = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, Cd = (e) => Array.from(e.querySelectorAll(bd("identifier"))).map((e) => e.textContent).filter((e) => !!e), wd = (e) => Array.from(e.querySelectorAll(bd("creator"))).filter((e) => !!e.textContent && e.parentElement !== null && e.parentElement.getAttribute("aria-hidden") !== "true").map((e) => e.textContent.trim()), Td = (e, t) => e.querySelector(bd(t))?.textContent.trim(), Ed = (e) => Td(e, "mms") ?? xd(e, [
|
|
4430
|
+
Sd("MMS ID"),
|
|
4431
|
+
Sd("ID MMS"),
|
|
4432
|
+
Sd("Record ID")
|
|
4433
|
+
]), Dd = (e) => Yu({
|
|
4434
|
+
authors: wd(e),
|
|
4435
|
+
title: Td(e, "title"),
|
|
4436
|
+
publisher: Td(e, "publisher"),
|
|
4437
|
+
creationDate: Td(e, "creationdate"),
|
|
4438
|
+
edition: Td(e, "edition"),
|
|
4439
|
+
isPartOf: Td(e, "ispartof"),
|
|
4440
|
+
identifierValues: Cd(e),
|
|
4441
|
+
lcn: Ed(e)
|
|
4442
|
+
}), Od = {
|
|
4440
4443
|
Article: q.Article,
|
|
4441
4444
|
Book: q.Book,
|
|
4442
4445
|
"Book Chapter": q.BookChapter,
|
|
@@ -4447,14 +4450,14 @@ var rd = (e, t) => {
|
|
|
4447
4450
|
CreativeWork: q.Audio,
|
|
4448
4451
|
Movie: q.Video,
|
|
4449
4452
|
Video: q.Video
|
|
4450
|
-
},
|
|
4453
|
+
}, kd = yd(Dd, (e, t) => {
|
|
4451
4454
|
let n = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
|
|
4452
|
-
return n ?
|
|
4453
|
-
}),
|
|
4455
|
+
return n ? Od[n] : void 0;
|
|
4456
|
+
}), Ad = (e) => {
|
|
4454
4457
|
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");
|
|
4455
4458
|
if (r?.startsWith("info:doi/") || n?.includes("Article")) return U.Article;
|
|
4456
4459
|
if (r?.startsWith("urn:issn:")) return U.Journal;
|
|
4457
|
-
},
|
|
4460
|
+
}, jd = (e) => {
|
|
4458
4461
|
let [t, n, r, i] = V(e, "name", "DCTERMS.bibliographicCitation")?.split(",") ?? [];
|
|
4459
4462
|
return {
|
|
4460
4463
|
journalTitle: t,
|
|
@@ -4462,22 +4465,22 @@ var rd = (e, t) => {
|
|
|
4462
4465
|
issue: r,
|
|
4463
4466
|
pages: i
|
|
4464
4467
|
};
|
|
4465
|
-
},
|
|
4468
|
+
}, Md = (e) => {
|
|
4466
4469
|
let t = V(e, "name", "DC.identifier");
|
|
4467
4470
|
return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
|
|
4468
|
-
},
|
|
4471
|
+
}, Nd = (e) => e.evaluate("//*[@id=\"altLayoutPublisherLogo\"]/p/a[1]", e, null, XPathResult.STRING_TYPE, null).stringValue, Pd = (e) => {
|
|
4469
4472
|
let [t, n] = e ? e.trim().split("-") : [void 0, void 0];
|
|
4470
4473
|
return {
|
|
4471
4474
|
spage: t,
|
|
4472
4475
|
epage: n?.replace(/\(\d+\)/, "").trim()
|
|
4473
4476
|
};
|
|
4474
|
-
},
|
|
4477
|
+
}, Fd = (e) => {
|
|
4475
4478
|
let t = V(e, "name", "DCTERMS.issued");
|
|
4476
4479
|
if (!t) return;
|
|
4477
4480
|
let n = /\d{4}/.exec(t);
|
|
4478
4481
|
return n ? n[0] : void 0;
|
|
4479
|
-
},
|
|
4480
|
-
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r =
|
|
4482
|
+
}, Id = (e) => {
|
|
4483
|
+
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = Fd(e), i = jd(e), a = i.journalTitle?.trim(), o = i.volume?.trim(), s = i.issue?.trim(), c = i.pages ? Pd(i.pages) : void 0, l = c?.spage, u = c?.epage, d = H(e, "name", "DC.creator"), f = Md(e);
|
|
4481
4484
|
return L(F.Article, {
|
|
4482
4485
|
au: d,
|
|
4483
4486
|
jtitle: a,
|
|
@@ -4490,72 +4493,72 @@ var rd = (e, t) => {
|
|
|
4490
4493
|
atitle: t,
|
|
4491
4494
|
volume: o
|
|
4492
4495
|
});
|
|
4493
|
-
},
|
|
4494
|
-
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r =
|
|
4496
|
+
}, Ld = (e) => {
|
|
4497
|
+
let t = V(e, "name", "DC.title"), n = V(e, "name", "DC.publisher"), r = Nd(e);
|
|
4495
4498
|
return L(F.Journal, {
|
|
4496
4499
|
issn: r,
|
|
4497
4500
|
title: t,
|
|
4498
4501
|
pub: n
|
|
4499
4502
|
});
|
|
4500
|
-
},
|
|
4501
|
-
switch (
|
|
4502
|
-
case U.Article: return B(
|
|
4503
|
-
case U.Journal: return B(
|
|
4503
|
+
}, Rd = ({ document: e }) => {
|
|
4504
|
+
switch (Ad(e)) {
|
|
4505
|
+
case U.Article: return B(Id(e));
|
|
4506
|
+
case U.Journal: return B(Ld(e));
|
|
4504
4507
|
default: return z();
|
|
4505
4508
|
}
|
|
4506
|
-
},
|
|
4507
|
-
let t = e.filter(
|
|
4509
|
+
}, zd = /^\d{4}-\d{3}[\dX]$/i, Bd = (e) => zd.test(e), Vd = (e) => {
|
|
4510
|
+
let t = e.filter(Bd);
|
|
4508
4511
|
return t.length ? t : void 0;
|
|
4509
|
-
},
|
|
4512
|
+
}, Hd = (e) => {
|
|
4510
4513
|
let t = H(e, "name", "citation_author");
|
|
4511
4514
|
return t.length ? t : void 0;
|
|
4512
|
-
},
|
|
4515
|
+
}, Ud = (e) => V(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], Wd = (e) => V(e, "name", "citation_doi"), Gd = (e) => {
|
|
4513
4516
|
let t = H(e, "name", "citation_isbn");
|
|
4514
4517
|
return t.length ? t.join(",") : void 0;
|
|
4515
|
-
},
|
|
4516
|
-
atitle:
|
|
4517
|
-
au:
|
|
4518
|
-
date:
|
|
4519
|
-
doi:
|
|
4520
|
-
issn:
|
|
4521
|
-
issue:
|
|
4522
|
-
jtitle:
|
|
4523
|
-
pub:
|
|
4524
|
-
volume:
|
|
4525
|
-
spage:
|
|
4526
|
-
epage:
|
|
4527
|
-
}),
|
|
4528
|
-
atitle:
|
|
4529
|
-
au:
|
|
4530
|
-
btitle:
|
|
4531
|
-
date:
|
|
4532
|
-
isbn:
|
|
4533
|
-
pub:
|
|
4534
|
-
spage:
|
|
4535
|
-
epage:
|
|
4536
|
-
}),
|
|
4537
|
-
title:
|
|
4538
|
-
au:
|
|
4539
|
-
date:
|
|
4540
|
-
pub:
|
|
4541
|
-
spage:
|
|
4542
|
-
epage:
|
|
4543
|
-
}),
|
|
4518
|
+
}, Kd = (e) => Vd(H(e, "name", "citation_issn")), qd = (e) => V(e, "name", "citation_journal_title"), Jd = (e) => V(e, "name", "citation_publisher"), Yd = (e) => V(e, "name", "citation_title"), Xd = (e) => V(e, "name", "citation_doi"), Zd = (e) => V(e, "name", "citation_firstpage"), Qd = (e) => V(e, "name", "citation_lastpage"), $d = (e) => V(e, "name", "citation_issue"), ef = (e) => V(e, "name", "citation_volume"), tf = (e) => L(F.Article, {
|
|
4519
|
+
atitle: Yd(e),
|
|
4520
|
+
au: Hd(e),
|
|
4521
|
+
date: Ud(e),
|
|
4522
|
+
doi: Wd(e),
|
|
4523
|
+
issn: Kd(e)?.[0],
|
|
4524
|
+
issue: $d(e),
|
|
4525
|
+
jtitle: qd(e),
|
|
4526
|
+
pub: Jd(e),
|
|
4527
|
+
volume: ef(e),
|
|
4528
|
+
spage: Zd(e),
|
|
4529
|
+
epage: Qd(e)
|
|
4530
|
+
}), nf = (e) => I(F.Bookitem, {
|
|
4531
|
+
atitle: Yd(e),
|
|
4532
|
+
au: Hd(e),
|
|
4533
|
+
btitle: qd(e),
|
|
4534
|
+
date: Ud(e),
|
|
4535
|
+
isbn: Gd(e),
|
|
4536
|
+
pub: Jd(e),
|
|
4537
|
+
spage: Zd(e),
|
|
4538
|
+
epage: Qd(e)
|
|
4539
|
+
}), rf = (e) => go({
|
|
4540
|
+
title: Yd(e),
|
|
4541
|
+
au: Hd(e),
|
|
4542
|
+
date: Ud(e),
|
|
4543
|
+
pub: Jd(e),
|
|
4544
|
+
spage: Zd(e),
|
|
4545
|
+
epage: Qd(e)
|
|
4546
|
+
}), af = (e) => !!e.isbn, of = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !af(e) && !!e.journalTitle, sf = (e) => !!e.title, cf = (e) => {
|
|
4544
4547
|
let t = {
|
|
4545
|
-
type:
|
|
4546
|
-
isbn:
|
|
4547
|
-
issn:
|
|
4548
|
-
journalTitle:
|
|
4549
|
-
title:
|
|
4548
|
+
type: Xd(e),
|
|
4549
|
+
isbn: Gd(e),
|
|
4550
|
+
issn: Kd(e),
|
|
4551
|
+
journalTitle: qd(e),
|
|
4552
|
+
title: Yd(e)
|
|
4550
4553
|
};
|
|
4551
|
-
return
|
|
4552
|
-
},
|
|
4553
|
-
let n =
|
|
4554
|
+
return af(t) ? nf(e) : of(t) ? tf(e) : sf(t) ? rf(e) : null;
|
|
4555
|
+
}, lf = ({ url: e, document: t }) => {
|
|
4556
|
+
let n = cf(t);
|
|
4554
4557
|
return n ? B({
|
|
4555
4558
|
...n,
|
|
4556
4559
|
uri: e
|
|
4557
4560
|
}) : z();
|
|
4558
|
-
},
|
|
4561
|
+
}, uf = j({
|
|
4559
4562
|
"@content": O(),
|
|
4560
4563
|
datePublished: O().optional(),
|
|
4561
4564
|
mainEntity: j({
|
|
@@ -4568,20 +4571,20 @@ var rd = (e, t) => {
|
|
|
4568
4571
|
}).optional(),
|
|
4569
4572
|
isbn: O().optional()
|
|
4570
4573
|
})
|
|
4571
|
-
}),
|
|
4574
|
+
}), df = (e) => uf.safeParse(e).success, ff = (e) => {
|
|
4572
4575
|
let t = e.textContent;
|
|
4573
4576
|
if (!t) return null;
|
|
4574
4577
|
try {
|
|
4575
4578
|
let e = JSON.parse(t);
|
|
4576
|
-
if (
|
|
4579
|
+
if (df(e)) return e;
|
|
4577
4580
|
} catch {
|
|
4578
4581
|
return null;
|
|
4579
4582
|
}
|
|
4580
4583
|
return null;
|
|
4581
|
-
},
|
|
4582
|
-
let t =
|
|
4584
|
+
}, pf = ({ document: e }) => {
|
|
4585
|
+
let t = ec(e);
|
|
4583
4586
|
if (!t) return z();
|
|
4584
|
-
let n =
|
|
4587
|
+
let n = ff(t);
|
|
4585
4588
|
if (!n) return z();
|
|
4586
4589
|
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;
|
|
4587
4590
|
switch (r) {
|
|
@@ -4594,18 +4597,18 @@ var rd = (e, t) => {
|
|
|
4594
4597
|
}));
|
|
4595
4598
|
default: return z();
|
|
4596
4599
|
}
|
|
4597
|
-
},
|
|
4600
|
+
}, mf = Xs.extend({
|
|
4598
4601
|
"@type": O().optional(),
|
|
4599
4602
|
name: O().optional(),
|
|
4600
4603
|
copyrightYear: ha().optional(),
|
|
4601
4604
|
author: A(j({ name: O() })).optional(),
|
|
4602
4605
|
publisher: A(j({ name: O() })).optional()
|
|
4603
|
-
}),
|
|
4604
|
-
let n =
|
|
4606
|
+
}), hf = (e) => mf.safeParse(e).success, gf = ({ document: e, url: t }) => {
|
|
4607
|
+
let n = ec(e);
|
|
4605
4608
|
if (!n) return z();
|
|
4606
|
-
let r =
|
|
4607
|
-
if (!r || !
|
|
4608
|
-
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 =
|
|
4609
|
+
let r = tc(n);
|
|
4610
|
+
if (!r || !hf(r)) return z();
|
|
4611
|
+
let i = r["@type"], a = r.author?.map((e) => e.name), o = r.copyrightYear?.toString() ?? V(e, "property", "og:book:release_date"), s = r.name, c = ou(r.publisher?.map((e) => e.name)), l = V(e, "property", "og:book:isbn");
|
|
4609
4612
|
switch (i) {
|
|
4610
4613
|
case "Book": return B(I(F.Book, {
|
|
4611
4614
|
au: a,
|
|
@@ -4617,14 +4620,14 @@ var rd = (e, t) => {
|
|
|
4617
4620
|
}));
|
|
4618
4621
|
default: return z();
|
|
4619
4622
|
}
|
|
4620
|
-
},
|
|
4623
|
+
}, _f = (e) => {
|
|
4621
4624
|
let t = Array.from(e.querySelectorAll("a[rel=author]")).map((e) => e.textContent.trim()).filter(Boolean);
|
|
4622
4625
|
return t.length ? t : void 0;
|
|
4623
|
-
},
|
|
4626
|
+
}, vf = (e) => {
|
|
4624
4627
|
let t = Array.from(e.querySelectorAll("strong")).filter((e) => e.textContent.startsWith("ISBN")).map((e) => e.nextElementSibling?.textContent.trim());
|
|
4625
4628
|
if (t.length !== 0) return t[0]?.replace(/\s+/, ",");
|
|
4626
|
-
},
|
|
4627
|
-
let n = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, r =
|
|
4629
|
+
}, yf = ({ url: e, document: t }) => {
|
|
4630
|
+
let n = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, r = _f(t), i = V(t, "property", "article:published_time"), a = vf(t);
|
|
4628
4631
|
return B(I(F.Book, {
|
|
4629
4632
|
au: r,
|
|
4630
4633
|
date: i?.substring(0, 4),
|
|
@@ -4633,21 +4636,21 @@ var rd = (e, t) => {
|
|
|
4633
4636
|
title: n,
|
|
4634
4637
|
uri: e
|
|
4635
4638
|
}));
|
|
4636
|
-
},
|
|
4637
|
-
switch (
|
|
4638
|
-
case U.Chapter: return B(
|
|
4639
|
-
case U.Book: return B(
|
|
4640
|
-
case U.Article: return B(
|
|
4641
|
-
case U.Journal: return B(
|
|
4639
|
+
}, bf = ({ document: e, url: t }) => {
|
|
4640
|
+
switch (Sf(t)) {
|
|
4641
|
+
case U.Chapter: return B(Df(e));
|
|
4642
|
+
case U.Book: return B(Of(e));
|
|
4643
|
+
case U.Article: return B(Cf(e));
|
|
4644
|
+
case U.Journal: return B(wf(e));
|
|
4642
4645
|
default: return z();
|
|
4643
4646
|
}
|
|
4644
|
-
},
|
|
4647
|
+
}, xf = /* @__PURE__ */ function(e) {
|
|
4645
4648
|
return e.Print = "Print", e.Online = "Online", e;
|
|
4646
|
-
}(
|
|
4649
|
+
}(xf || {}), Sf = (e) => {
|
|
4647
4650
|
let { pathname: t } = new URL(e);
|
|
4648
4651
|
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;
|
|
4649
|
-
},
|
|
4650
|
-
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 =
|
|
4652
|
+
}, Cf = (e) => {
|
|
4653
|
+
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 = kf(e), d = Vd(H(e, "name", "citation_issn"));
|
|
4651
4654
|
return L(F.Article, {
|
|
4652
4655
|
atitle: t,
|
|
4653
4656
|
au: u,
|
|
@@ -4661,14 +4664,14 @@ var rd = (e, t) => {
|
|
|
4661
4664
|
date: c,
|
|
4662
4665
|
pub: l
|
|
4663
4666
|
});
|
|
4664
|
-
},
|
|
4665
|
-
let t =
|
|
4667
|
+
}, wf = (e) => {
|
|
4668
|
+
let t = Tf(e), n = Ef(e), r = n.find((e) => e.type === xf.Print), i = n.find((e) => e.type === xf.Online), a = r ? r.value : void 0, o = i ? i.value : void 0;
|
|
4666
4669
|
return L(F.Journal, {
|
|
4667
4670
|
title: t,
|
|
4668
4671
|
issn: a,
|
|
4669
4672
|
eissn: o
|
|
4670
4673
|
});
|
|
4671
|
-
},
|
|
4674
|
+
}, Tf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Ef = (e) => {
|
|
4672
4675
|
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 = [];
|
|
4673
4676
|
return t && (t.parentElement?.querySelectorAll("span.value"))?.forEach((e) => {
|
|
4674
4677
|
let t = e.textContent.trim(), i = n.exec(t);
|
|
@@ -4677,7 +4680,7 @@ var rd = (e, t) => {
|
|
|
4677
4680
|
type: i[2]
|
|
4678
4681
|
});
|
|
4679
4682
|
}), r;
|
|
4680
|
-
},
|
|
4683
|
+
}, Df = (e) => {
|
|
4681
4684
|
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");
|
|
4682
4685
|
return I(F.Bookitem, {
|
|
4683
4686
|
atitle: t,
|
|
@@ -4686,8 +4689,8 @@ var rd = (e, t) => {
|
|
|
4686
4689
|
date: i,
|
|
4687
4690
|
pub: a
|
|
4688
4691
|
});
|
|
4689
|
-
},
|
|
4690
|
-
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 =
|
|
4692
|
+
}, Of = (e) => {
|
|
4693
|
+
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 = kf(e);
|
|
4691
4694
|
return I(F.Book, {
|
|
4692
4695
|
title: t,
|
|
4693
4696
|
au: o,
|
|
@@ -4696,19 +4699,19 @@ var rd = (e, t) => {
|
|
|
4696
4699
|
date: i,
|
|
4697
4700
|
pub: a
|
|
4698
4701
|
});
|
|
4699
|
-
},
|
|
4702
|
+
}, kf = (e) => {
|
|
4700
4703
|
let t = H(e, "name", "citation_author");
|
|
4701
4704
|
return t.length ? t : void 0;
|
|
4702
|
-
},
|
|
4705
|
+
}, Af = /* @__PURE__ */ function(e) {
|
|
4703
4706
|
return e.Journal = "Journal", e.Article = "Article", e;
|
|
4704
|
-
}(
|
|
4707
|
+
}(Af || {}), jf = (e) => {
|
|
4705
4708
|
switch (V(e, "property", "og:type")) {
|
|
4706
|
-
case "Article": return
|
|
4707
|
-
case "Journal": return
|
|
4709
|
+
case "Article": return Af.Article;
|
|
4710
|
+
case "Journal": return Af.Journal;
|
|
4708
4711
|
default: return;
|
|
4709
4712
|
}
|
|
4710
4713
|
};
|
|
4711
|
-
function
|
|
4714
|
+
function Mf(e) {
|
|
4712
4715
|
let t = V(e, "property", "og:title"), n = V(e, "name", "dc.Publisher"), r = V(e, "name", "publication_doi");
|
|
4713
4716
|
return B(L(F.Journal, {
|
|
4714
4717
|
jtitle: t,
|
|
@@ -4716,7 +4719,7 @@ function Af(e) {
|
|
|
4716
4719
|
doi: r
|
|
4717
4720
|
}));
|
|
4718
4721
|
}
|
|
4719
|
-
function
|
|
4722
|
+
function Nf(e) {
|
|
4720
4723
|
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");
|
|
4721
4724
|
return B(L(F.Article, {
|
|
4722
4725
|
atitle: t,
|
|
@@ -4727,24 +4730,24 @@ function jf(e) {
|
|
|
4727
4730
|
pub: o
|
|
4728
4731
|
}));
|
|
4729
4732
|
}
|
|
4730
|
-
var
|
|
4731
|
-
switch (
|
|
4732
|
-
case
|
|
4733
|
-
case
|
|
4733
|
+
var Pf = ({ document: e }) => {
|
|
4734
|
+
switch (jf(e)) {
|
|
4735
|
+
case Af.Journal: return Mf(e);
|
|
4736
|
+
case Af.Article: return Nf(e);
|
|
4734
4737
|
default: return z();
|
|
4735
4738
|
}
|
|
4736
|
-
},
|
|
4739
|
+
}, Ff = (e) => {
|
|
4737
4740
|
if (!e) return;
|
|
4738
4741
|
let [t, n] = e.trim().split("-");
|
|
4739
4742
|
return {
|
|
4740
4743
|
spage: t,
|
|
4741
4744
|
epage: n
|
|
4742
4745
|
};
|
|
4743
|
-
},
|
|
4746
|
+
}, If = (e) => {
|
|
4744
4747
|
let { pathname: t } = new URL(e);
|
|
4745
4748
|
if (t.includes("/article/")) return U.Article;
|
|
4746
|
-
},
|
|
4747
|
-
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 ?
|
|
4749
|
+
}, Lf = (e) => {
|
|
4750
|
+
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 ? Ff(l) : void 0, d = u?.spage, f = u?.epage;
|
|
4748
4751
|
return L(F.Article, {
|
|
4749
4752
|
jtitle: t,
|
|
4750
4753
|
atitle: n,
|
|
@@ -4757,22 +4760,22 @@ var Mf = ({ document: e }) => {
|
|
|
4757
4760
|
issue: s,
|
|
4758
4761
|
uri: c
|
|
4759
4762
|
});
|
|
4760
|
-
},
|
|
4761
|
-
switch (
|
|
4762
|
-
case U.Article: return B(
|
|
4763
|
+
}, Rf = ({ document: e, url: t }) => {
|
|
4764
|
+
switch (If(t)) {
|
|
4765
|
+
case U.Article: return B(Lf(e));
|
|
4763
4766
|
default: return z();
|
|
4764
4767
|
}
|
|
4765
|
-
},
|
|
4768
|
+
}, zf = /* @__PURE__ */ function(e) {
|
|
4766
4769
|
return e.Book = "Book", e.Chapter = "Chapter", e;
|
|
4767
|
-
}(
|
|
4768
|
-
switch (
|
|
4769
|
-
case "eBook": return
|
|
4770
|
-
case "Reference": return
|
|
4770
|
+
}(zf || {}), Bf = (e) => {
|
|
4771
|
+
switch (Vf(e)) {
|
|
4772
|
+
case "eBook": return zf.Book;
|
|
4773
|
+
case "Reference": return zf.Chapter;
|
|
4771
4774
|
default: return;
|
|
4772
4775
|
}
|
|
4773
|
-
},
|
|
4774
|
-
function
|
|
4775
|
-
let n =
|
|
4776
|
+
}, Vf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
|
|
4777
|
+
function Hf(e, t) {
|
|
4778
|
+
let n = Wf(e), r = qf(e), i = Yf(e), a = Xf(e), o = Zf(e), s = Qf(e), c = qf(e), l = t, { startPage: u, endPage: d } = $f(e) ?? {};
|
|
4776
4779
|
return B(I(F.Book, {
|
|
4777
4780
|
au: n,
|
|
4778
4781
|
btitle: r,
|
|
@@ -4786,8 +4789,8 @@ function Bf(e, t) {
|
|
|
4786
4789
|
uri: l
|
|
4787
4790
|
}));
|
|
4788
4791
|
}
|
|
4789
|
-
function
|
|
4790
|
-
let n =
|
|
4792
|
+
function Uf(e, t) {
|
|
4793
|
+
let n = Wf(e), r = Jf(e), i = qf(e), a = Yf(e), o = Xf(e), s = Zf(e), c = Qf(e), l = Jf(e), u = t, { startPage: d, endPage: f } = $f(e) ?? {};
|
|
4791
4794
|
return B(I(F.Book, {
|
|
4792
4795
|
au: n,
|
|
4793
4796
|
atitle: r,
|
|
@@ -4802,10 +4805,10 @@ function Vf(e, t) {
|
|
|
4802
4805
|
uri: u
|
|
4803
4806
|
}));
|
|
4804
4807
|
}
|
|
4805
|
-
var
|
|
4808
|
+
var Wf = (e) => {
|
|
4806
4809
|
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());
|
|
4807
4810
|
return n.length > 0 ? n : void 0;
|
|
4808
|
-
},
|
|
4811
|
+
}, Gf = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Kf = (e) => V(e, "property", "og:title"), qf = (e) => Gf(e, "titlevalue") ?? Kf(e), Jf = (e) => Gf(e, "chapter-title-squid"), Yf = (e) => Gf(e, "pubdate-squid"), Xf = (e) => Gf(e, "doi-squid"), Zf = (e) => Gf(e, "isbn-squid"), Qf = (e) => Gf(e, "pubname-squid"), $f = (e) => {
|
|
4809
4812
|
let t = e.querySelector("#pageRange")?.textContent ?? void 0;
|
|
4810
4813
|
if (!t) return;
|
|
4811
4814
|
let n = /(\d+)–(\d+)/.exec(t);
|
|
@@ -4813,34 +4816,34 @@ var Hf = (e) => {
|
|
|
4813
4816
|
startPage: n[1],
|
|
4814
4817
|
endPage: n[2]
|
|
4815
4818
|
};
|
|
4816
|
-
},
|
|
4817
|
-
switch (
|
|
4818
|
-
case
|
|
4819
|
-
case
|
|
4819
|
+
}, ep = ({ document: e, url: t }) => {
|
|
4820
|
+
switch (Bf(e)) {
|
|
4821
|
+
case zf.Book: return Hf(e, t);
|
|
4822
|
+
case zf.Chapter: return Uf(e, t);
|
|
4820
4823
|
default: return z();
|
|
4821
4824
|
}
|
|
4822
|
-
},
|
|
4823
|
-
switch (
|
|
4825
|
+
}, tp = (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(), np = (e) => {
|
|
4826
|
+
switch (tp(e, "Medium")) {
|
|
4824
4827
|
case "book":
|
|
4825
4828
|
case "e-book": return F.Book;
|
|
4826
4829
|
case "e-journal": return F.Journal;
|
|
4827
4830
|
default: return F.Unknown;
|
|
4828
4831
|
}
|
|
4829
|
-
},
|
|
4832
|
+
}, rp = (e) => {
|
|
4830
4833
|
delete e.rft_id;
|
|
4831
|
-
},
|
|
4834
|
+
}, ip = (e) => {
|
|
4832
4835
|
let t = ns(e);
|
|
4833
|
-
if (
|
|
4834
|
-
let n =
|
|
4835
|
-
t.resource.genre = n,
|
|
4836
|
+
if (Xc(t)) {
|
|
4837
|
+
let n = np(e.document);
|
|
4838
|
+
t.resource.genre = n, rp(t.resource);
|
|
4836
4839
|
}
|
|
4837
4840
|
return t;
|
|
4838
|
-
},
|
|
4841
|
+
}, ap = (e) => {
|
|
4839
4842
|
let t = V(e, "name", "type")?.toLowerCase(), n = V(e, "name", "og:type")?.toLowerCase(), r = V(e, "name", "citation_article_type")?.toLowerCase();
|
|
4840
4843
|
if (t === "article" || r === "article" || n === "article") return U.Article;
|
|
4841
4844
|
let i = V(e, "name", "twitter:title")?.trim(), a = V(e, "name", "description")?.trim();
|
|
4842
4845
|
if (i || a) return U.Webpage;
|
|
4843
|
-
},
|
|
4846
|
+
}, op = (e) => {
|
|
4844
4847
|
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");
|
|
4845
4848
|
return L(F.Article, {
|
|
4846
4849
|
au: c,
|
|
@@ -4852,41 +4855,41 @@ var Hf = (e) => {
|
|
|
4852
4855
|
title: t,
|
|
4853
4856
|
volume: o
|
|
4854
4857
|
});
|
|
4855
|
-
},
|
|
4858
|
+
}, sp = (e, t) => _o({
|
|
4856
4859
|
uri: e,
|
|
4857
4860
|
title: V(t, "name", "twitter:title")
|
|
4858
|
-
}),
|
|
4859
|
-
switch (
|
|
4860
|
-
case U.Article: return B(
|
|
4861
|
-
case U.Webpage: return B(
|
|
4861
|
+
}), cp = ({ url: e, document: t }) => {
|
|
4862
|
+
switch (ap(t)) {
|
|
4863
|
+
case U.Article: return B(op(t));
|
|
4864
|
+
case U.Webpage: return B(sp(e, t));
|
|
4862
4865
|
}
|
|
4863
4866
|
return z();
|
|
4864
|
-
},
|
|
4865
|
-
function
|
|
4867
|
+
}, lp = ({ document: e }) => Array.from(e.querySelectorAll(".availability.documentSummaryAvailability.availabilityContent")).length === 0 ? z() : es(), up = /([0-9]{4})\s+at/;
|
|
4868
|
+
function dp(e) {
|
|
4866
4869
|
if (!e) return;
|
|
4867
|
-
let t =
|
|
4870
|
+
let t = up.exec(e);
|
|
4868
4871
|
if (t && t.length > 1) return t[1];
|
|
4869
4872
|
}
|
|
4870
|
-
function
|
|
4873
|
+
function fp(e, t) {
|
|
4871
4874
|
let n = e.getElementsByClassName(t);
|
|
4872
4875
|
if (n.length !== 0) return n[0].textContent;
|
|
4873
4876
|
}
|
|
4874
|
-
function
|
|
4877
|
+
function pp(e) {
|
|
4875
4878
|
return Array.from(e.getElementsByTagName("li")).reduce((e, t) => {
|
|
4876
|
-
let n =
|
|
4879
|
+
let n = fp(t, "title"), r = fp(t, "content");
|
|
4877
4880
|
return n && r && (e[n] = r), e;
|
|
4878
4881
|
}, {});
|
|
4879
4882
|
}
|
|
4880
|
-
function
|
|
4883
|
+
function mp(e) {
|
|
4881
4884
|
let t = e.getElementsByClassName("information");
|
|
4882
4885
|
if (t.length === 0) return {};
|
|
4883
|
-
let n =
|
|
4886
|
+
let n = pp(t[0]);
|
|
4884
4887
|
return {
|
|
4885
|
-
date:
|
|
4888
|
+
date: dp(n.Published),
|
|
4886
4889
|
series: n.Show
|
|
4887
4890
|
};
|
|
4888
4891
|
}
|
|
4889
|
-
var
|
|
4892
|
+
var hp = ({ url: e, document: t }) => {
|
|
4890
4893
|
if (!new URL(e).searchParams.has("i")) return z();
|
|
4891
4894
|
let n = F.AudioDocument;
|
|
4892
4895
|
return B({
|
|
@@ -4894,16 +4897,16 @@ var pp = ({ url: e, document: t }) => {
|
|
|
4894
4897
|
pub: V(t, "property", "og:site_name"),
|
|
4895
4898
|
title: V(t, "property", "og:title"),
|
|
4896
4899
|
uri: e,
|
|
4897
|
-
...
|
|
4900
|
+
...mp(t)
|
|
4898
4901
|
});
|
|
4899
|
-
},
|
|
4902
|
+
}, gp = (e) => {
|
|
4900
4903
|
let t = V(e, "name", "citation_date");
|
|
4901
4904
|
if (t) return t.split("/").find((e) => /^\d{4}/.test(e)) ?? void 0;
|
|
4902
|
-
},
|
|
4905
|
+
}, _p = (e) => {
|
|
4903
4906
|
let t = e.querySelector("#arxiv-doi-link")?.textContent;
|
|
4904
4907
|
if (t) return t.replace("https://doi.org/", "").trim();
|
|
4905
|
-
},
|
|
4906
|
-
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_pdf_url"), r = H(e, "name", "citation_author"), i =
|
|
4908
|
+
}, vp = ({ document: e }) => {
|
|
4909
|
+
let t = V(e, "name", "citation_title"), n = V(e, "name", "citation_pdf_url"), r = H(e, "name", "citation_author"), i = gp(e), a = _p(e);
|
|
4907
4910
|
return !t && r.length === 0 && !i && !a ? z() : B(L(F.Article, {
|
|
4908
4911
|
au: r,
|
|
4909
4912
|
date: i,
|
|
@@ -4911,12 +4914,12 @@ var pp = ({ url: e, document: t }) => {
|
|
|
4911
4914
|
title: t,
|
|
4912
4915
|
uri: n
|
|
4913
4916
|
}));
|
|
4914
|
-
},
|
|
4915
|
-
let t =
|
|
4917
|
+
}, yp = (e) => {
|
|
4918
|
+
let t = G(e, "div.director-section div.term-info-section-items");
|
|
4916
4919
|
if (!t) return;
|
|
4917
4920
|
let n = t.split(",").map((e) => e.replace(/\s+/g, " ").trim()).filter((e) => e.length > 0);
|
|
4918
4921
|
return n.length > 0 ? n : void 0;
|
|
4919
|
-
},
|
|
4922
|
+
}, bp = (e) => {
|
|
4920
4923
|
let t = /* @__PURE__ */ new Map();
|
|
4921
4924
|
return Array.from(e.querySelectorAll(".info-section-container")).forEach((e) => {
|
|
4922
4925
|
let n = e.querySelector(".info-section-header .info-section-title")?.textContent.trim().toLowerCase();
|
|
@@ -4924,34 +4927,34 @@ var pp = ({ url: e, document: t }) => {
|
|
|
4924
4927
|
let r = Array.from(e.querySelectorAll(".term-info-section-item")).map((e) => e.textContent.replace(",", "").trim()).filter((e) => !!e);
|
|
4925
4928
|
r.length && t.set(n, r);
|
|
4926
4929
|
}), t;
|
|
4927
|
-
},
|
|
4928
|
-
let n =
|
|
4930
|
+
}, xp = ({ url: e, document: t }) => {
|
|
4931
|
+
let n = bp(t);
|
|
4929
4932
|
return B(R({
|
|
4930
|
-
au:
|
|
4931
|
-
date:
|
|
4932
|
-
pub:
|
|
4933
|
-
title:
|
|
4933
|
+
au: yp(t) ?? n.get("director"),
|
|
4934
|
+
date: G(t, "div.product-release-year"),
|
|
4935
|
+
pub: G(t, "div.studio-section div.term-info-section-item") ?? vu(n.get("supplier")),
|
|
4936
|
+
title: G(t, ".product-title") ?? G(t, ".movie-title"),
|
|
4934
4937
|
uri: e
|
|
4935
4938
|
}));
|
|
4936
|
-
},
|
|
4939
|
+
}, Sp = (e) => {
|
|
4937
4940
|
if (V(e, "property", "og:type") === "article") return U.Article;
|
|
4938
4941
|
};
|
|
4939
|
-
function
|
|
4942
|
+
function Cp(e) {
|
|
4940
4943
|
let t = {}, n = e.querySelector("[data-id=layout-form]");
|
|
4941
4944
|
return n && Array.from(n.getElementsByTagName("h2")).forEach((e) => {
|
|
4942
4945
|
let n = e.textContent.toLowerCase(), r = Array.from(e.parentElement?.getElementsByTagName("span") ?? []).map((e) => e.textContent || "");
|
|
4943
4946
|
n && (t[n] = r[0]);
|
|
4944
4947
|
}), t;
|
|
4945
4948
|
}
|
|
4946
|
-
function
|
|
4949
|
+
function wp(e, t, n) {
|
|
4947
4950
|
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");
|
|
4948
4951
|
}
|
|
4949
|
-
function
|
|
4952
|
+
function Tp(e) {
|
|
4950
4953
|
let t = V(e, "name", "citation_publication_date");
|
|
4951
4954
|
return t ? t.substring(0, 4) : V(e, "name", "citation_online_date")?.substring(0, 4);
|
|
4952
4955
|
}
|
|
4953
|
-
var
|
|
4954
|
-
let t =
|
|
4956
|
+
var Ep = (e) => {
|
|
4957
|
+
let t = Cp(e), n = V(e, "name", "DataCite.title"), r = H(e, "name", "DataCite.contributor"), i = Tp(e), a = V(e, "name", "DC.identifier.DOI"), o = Object.keys(t), s = wp(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;
|
|
4955
4958
|
return L(F.Article, {
|
|
4956
4959
|
jtitle: c,
|
|
4957
4960
|
atitle: n,
|
|
@@ -4964,43 +4967,43 @@ var wp = (e) => {
|
|
|
4964
4967
|
issn: d,
|
|
4965
4968
|
uri: f
|
|
4966
4969
|
});
|
|
4967
|
-
},
|
|
4968
|
-
switch (
|
|
4969
|
-
case U.Article: return B(
|
|
4970
|
+
}, Dp = ({ document: e }) => {
|
|
4971
|
+
switch (Sp(e)) {
|
|
4972
|
+
case U.Article: return B(Ep(e));
|
|
4970
4973
|
default: return z();
|
|
4971
4974
|
}
|
|
4972
4975
|
}, J = /* @__PURE__ */ function(e) {
|
|
4973
4976
|
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;
|
|
4974
|
-
}(J || {}),
|
|
4977
|
+
}(J || {}), Op = (e) => {
|
|
4975
4978
|
let t = Y(e, J.RESOURCE_TYPE);
|
|
4976
4979
|
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;
|
|
4977
|
-
},
|
|
4980
|
+
}, kp = (e) => e.replace(":", "").replace(" | ", "").trim().toLowerCase(), Ap = (e) => {
|
|
4978
4981
|
let t = /* @__PURE__ */ new Map(), n = e.querySelector("ul.rlist.publication-details__list");
|
|
4979
4982
|
return n && Array.from(n.querySelectorAll("li")).forEach((e) => {
|
|
4980
4983
|
let n = Array.from(e.querySelectorAll("span.label")), r = Array.from(e.querySelectorAll("span.info"));
|
|
4981
4984
|
n.forEach((e, n) => {
|
|
4982
|
-
let i =
|
|
4985
|
+
let i = kp(e.textContent), a = r[n]?.textContent?.trim();
|
|
4983
4986
|
i && a && (t.has(i) || t.set(i, []), t.get(i)?.push(a));
|
|
4984
4987
|
});
|
|
4985
4988
|
}), t;
|
|
4986
4989
|
}, Y = (e, t) => {
|
|
4987
4990
|
let n = e.get(t);
|
|
4988
|
-
if (n) return
|
|
4989
|
-
},
|
|
4990
|
-
let t =
|
|
4991
|
+
if (n) return ou(n);
|
|
4992
|
+
}, jp = (e) => H(e, "name", "dc.Creator").map((e) => e.trim()), Mp = (e) => {
|
|
4993
|
+
let t = cu(e, [".loa-accordion a.author-name"]);
|
|
4991
4994
|
if (t) return t.map((e) => e.replace("Authors:", "").trim());
|
|
4992
|
-
},
|
|
4993
|
-
let t =
|
|
4994
|
-
return t.length > 0 ? t :
|
|
4995
|
-
},
|
|
4995
|
+
}, Np = (e) => {
|
|
4996
|
+
let t = jp(e);
|
|
4997
|
+
return t.length > 0 ? t : Mp(e);
|
|
4998
|
+
}, Pp = (e) => V(e, "name", "dc.Title") ?? V(e, "property", "og:title"), Fp = (e) => V(e, "name", "publication_doi"), Ip = (e, t) => Y(t, J.DATE_OF_PUBLICATION) ?? V(e, "name", "dc.Date"), Lp = (e) => {
|
|
4996
4999
|
let t = Y(e, J.PAGE_RANGE), n, r;
|
|
4997
5000
|
return t?.includes("-") && (n = t ? t.split("-")[0].trim() : void 0, r = t ? t.split("-")[1].trim() : void 0), {
|
|
4998
5001
|
pages: t,
|
|
4999
5002
|
spage: n,
|
|
5000
5003
|
epage: r
|
|
5001
5004
|
};
|
|
5002
|
-
},
|
|
5003
|
-
let r =
|
|
5005
|
+
}, Rp = (e, t, n) => {
|
|
5006
|
+
let r = Pp(e), i = Y(t, J.JOURNAL_TITLE), a = V(e, "name", "citation_journal_title"), o = i ?? a, s = Fp(e), c = Ip(e, t), l = Y(t, J.PUBLISHER), u = Np(e), d = Y(t, J.VOLUME), f = Y(t, J.ISSUE), p = Lp(t), m = Y(t, J.ISSN), h = Y(t, J.EISSN);
|
|
5004
5007
|
return L(F.Article, {
|
|
5005
5008
|
title: r,
|
|
5006
5009
|
jtitle: o,
|
|
@@ -5017,8 +5020,8 @@ var wp = (e) => {
|
|
|
5017
5020
|
eissn: h,
|
|
5018
5021
|
uri: n
|
|
5019
5022
|
});
|
|
5020
|
-
},
|
|
5021
|
-
let r =
|
|
5023
|
+
}, zp = (e, t, n) => {
|
|
5024
|
+
let r = Pp(e), i = Y(t, J.BOOK_TITLE), a = Fp(e), o = Ip(e, t), s = Y(t, J.PUBLISHER), c = Np(e), l = Lp(t), u = Y(t, J.ISBN);
|
|
5022
5025
|
return I(F.Conference, {
|
|
5023
5026
|
title: r,
|
|
5024
5027
|
btitle: i,
|
|
@@ -5032,8 +5035,8 @@ var wp = (e) => {
|
|
|
5032
5035
|
isbn: u,
|
|
5033
5036
|
uri: n
|
|
5034
5037
|
});
|
|
5035
|
-
},
|
|
5036
|
-
let r =
|
|
5038
|
+
}, Bp = (e, t, n) => {
|
|
5039
|
+
let r = Pp(e), i = Fp(e), a = Ip(e, t), o = Y(t, J.PUBLISHER), s = Np(e), c = Y(t, J.ISBN);
|
|
5037
5040
|
return I(F.Document, {
|
|
5038
5041
|
title: r,
|
|
5039
5042
|
doi: i,
|
|
@@ -5043,16 +5046,16 @@ var wp = (e) => {
|
|
|
5043
5046
|
uri: n,
|
|
5044
5047
|
isbn: c
|
|
5045
5048
|
});
|
|
5046
|
-
},
|
|
5047
|
-
let n =
|
|
5048
|
-
switch (
|
|
5049
|
-
case U.Article: return B(
|
|
5050
|
-
case U.Document: return B(
|
|
5051
|
-
case U.None: return B(
|
|
5049
|
+
}, Vp = ({ url: e, document: t }) => {
|
|
5050
|
+
let n = Ap(t);
|
|
5051
|
+
switch (Op(n)) {
|
|
5052
|
+
case U.Article: return B(Rp(t, n, e));
|
|
5053
|
+
case U.Document: return B(zp(t, n, e));
|
|
5054
|
+
case U.None: return B(Bp(t, n, e));
|
|
5052
5055
|
default: return z();
|
|
5053
5056
|
}
|
|
5054
|
-
},
|
|
5055
|
-
let t =
|
|
5057
|
+
}, Hp = (e) => V(e, "property", "og:title")?.trim() ?? void 0, Up = (e) => V(e, "name", "dc.identifier") ?? V(e, "name", "citation_doi"), Wp = (e) => {
|
|
5058
|
+
let t = Hp(e), n = t, r = Xp(e), i = Yp(e), a = qp(e), o = Jp(e), { issn: s, eissn: c } = Kp(e);
|
|
5056
5059
|
return B(L(F.Journal, {
|
|
5057
5060
|
date: r,
|
|
5058
5061
|
eissn: c,
|
|
@@ -5063,11 +5066,11 @@ var wp = (e) => {
|
|
|
5063
5066
|
title: t,
|
|
5064
5067
|
volume: o
|
|
5065
5068
|
}));
|
|
5066
|
-
},
|
|
5069
|
+
}, Gp = (e) => e.includes("/journals/") && e.includes("issue"), Kp = (e) => ({
|
|
5067
5070
|
issn: e.querySelector("dd.printissn.text-metadata-value > span")?.textContent.trim(),
|
|
5068
5071
|
eissn: e.querySelector("dd.onlineissn.text-metadata-value > span")?.textContent.trim()
|
|
5069
|
-
}),
|
|
5070
|
-
let t =
|
|
5072
|
+
}), qp = (e) => e.querySelector("dd.publisher.text-metadata-value span")?.textContent.trim() ?? void 0, Jp = (e) => Hp(e)?.match(/Volume\s+(\d+)/i)?.[1], Yp = (e) => Hp(e)?.match(/Issue\s+(\d+)/i)?.[1], Xp = (e) => Hp(e)?.match(/\((\d{4})\)/)?.[1], Zp = (e) => {
|
|
5073
|
+
let t = Hp(e), n = V(e, "name", "citation_title") ?? t, r = H(e, "property", "article:author"), i = Qp(e), a = Up(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");
|
|
5071
5074
|
return B(L(F.Article, {
|
|
5072
5075
|
atitle: n,
|
|
5073
5076
|
au: r,
|
|
@@ -5082,8 +5085,8 @@ var wp = (e) => {
|
|
|
5082
5085
|
title: t,
|
|
5083
5086
|
volume: f
|
|
5084
5087
|
}));
|
|
5085
|
-
},
|
|
5086
|
-
let t =
|
|
5088
|
+
}, Qp = (e) => V(e, "property", "article:published_time") ?? V(e, "name", "citation_publication_date"), $p = (e) => {
|
|
5089
|
+
let t = Hp(e), n = V(e, "name", "citation_title") ?? t, r = em(e), i = nm(e), a = Up(e), o = rm(e), s = V(e, "name", "citation_publisher");
|
|
5087
5090
|
return B(I(F.Book, {
|
|
5088
5091
|
au: r,
|
|
5089
5092
|
btitle: n,
|
|
@@ -5093,59 +5096,59 @@ var wp = (e) => {
|
|
|
5093
5096
|
pub: s,
|
|
5094
5097
|
title: t
|
|
5095
5098
|
}));
|
|
5096
|
-
},
|
|
5099
|
+
}, em = (e) => {
|
|
5097
5100
|
let t = H(e, "property", "book:author");
|
|
5098
5101
|
if (t.length > 0) return t;
|
|
5099
5102
|
let n = H(e, "name", "citation_author");
|
|
5100
|
-
return n.length > 0 ? n :
|
|
5101
|
-
},
|
|
5103
|
+
return n.length > 0 ? n : tm(e);
|
|
5104
|
+
}, tm = (e) => Array.from(e.querySelectorAll(".contributor-details span[data-testid=\"author-name\"]")).map((e) => (e.textContent || "").trim()).filter((e) => e.length > 0), nm = (e) => V(e, "property", "book:release_date") ?? V(e, "name", "citation_publication_date"), rm = (e) => V(e, "property", "book:isbn") ?? V(e, "name", "citation_isbn"), im = (e, t) => {
|
|
5102
5105
|
switch (V(e, "property", "og:type")) {
|
|
5103
5106
|
case "article": return U.Article;
|
|
5104
5107
|
case "book": return U.Book;
|
|
5105
5108
|
default: break;
|
|
5106
5109
|
}
|
|
5107
|
-
return
|
|
5108
|
-
},
|
|
5109
|
-
switch (
|
|
5110
|
-
case U.Article: return
|
|
5111
|
-
case U.Journal: return
|
|
5112
|
-
case U.Book: return
|
|
5110
|
+
return Gp(t) ? U.Journal : U.None;
|
|
5111
|
+
}, am = ({ document: e, url: t }) => {
|
|
5112
|
+
switch (im(e, t)) {
|
|
5113
|
+
case U.Article: return Zp(e);
|
|
5114
|
+
case U.Journal: return Wp(e);
|
|
5115
|
+
case U.Book: return $p(e);
|
|
5113
5116
|
default: return z();
|
|
5114
5117
|
}
|
|
5115
|
-
},
|
|
5118
|
+
}, om = (e) => {
|
|
5116
5119
|
let t = e.getAttribute("title");
|
|
5117
5120
|
return t ? Do(t) : null;
|
|
5118
|
-
},
|
|
5121
|
+
}, sm = ({ url: e, document: t }) => {
|
|
5119
5122
|
let n = t.querySelector(".Z3988");
|
|
5120
5123
|
if (!n) return z();
|
|
5121
|
-
let r =
|
|
5124
|
+
let r = om(n);
|
|
5122
5125
|
return r ? (r.genre === F.Article && !r.jtitle && r.title && (r.jtitle = r.title), B({
|
|
5123
5126
|
...r,
|
|
5124
5127
|
uri: e
|
|
5125
5128
|
})) : z();
|
|
5126
|
-
},
|
|
5127
|
-
let n = e.querySelector(
|
|
5129
|
+
}, cm = (e) => `[data-qa="detail_${e}"]`, lm = (e, t) => {
|
|
5130
|
+
let n = e.querySelector(cm(t));
|
|
5128
5131
|
return n ? Array.from(n.querySelectorAll("nde-highlight")).map((e) => e.textContent.trim()).filter((e) => !!e) : [];
|
|
5129
|
-
},
|
|
5130
|
-
let n =
|
|
5132
|
+
}, um = (e, t) => {
|
|
5133
|
+
let n = lm(e, t);
|
|
5131
5134
|
return n.length > 0 ? n[0] : void 0;
|
|
5132
|
-
},
|
|
5133
|
-
let t = e.querySelector(
|
|
5135
|
+
}, dm = (e) => {
|
|
5136
|
+
let t = e.querySelector(cm("creator"));
|
|
5134
5137
|
if (!t) return [];
|
|
5135
5138
|
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());
|
|
5136
5139
|
return n.length > 0 ? n : [];
|
|
5137
|
-
},
|
|
5138
|
-
let t =
|
|
5139
|
-
return
|
|
5140
|
-
authors:
|
|
5141
|
-
title:
|
|
5142
|
-
publisher:
|
|
5143
|
-
creationDate:
|
|
5140
|
+
}, fm = (e) => {
|
|
5141
|
+
let t = lm(e, "identifier"), n = lm(e, "ispartof"), r = t.find((e) => e.startsWith("LC:"));
|
|
5142
|
+
return Yu({
|
|
5143
|
+
authors: dm(e),
|
|
5144
|
+
title: um(e, "title"),
|
|
5145
|
+
publisher: um(e, "publisher"),
|
|
5146
|
+
creationDate: um(e, "creationdate"),
|
|
5144
5147
|
isPartOf: n.length > 0 ? n[0] : void 0,
|
|
5145
5148
|
identifierValues: t,
|
|
5146
5149
|
lcn: r?.replace("LC:", "").trim()
|
|
5147
5150
|
});
|
|
5148
|
-
},
|
|
5151
|
+
}, pm = {
|
|
5149
5152
|
Article: q.Article,
|
|
5150
5153
|
Audio: q.Audio,
|
|
5151
5154
|
Book: q.Book,
|
|
@@ -5156,28 +5159,28 @@ var wp = (e) => {
|
|
|
5156
5159
|
"Magazine Article": q.Article,
|
|
5157
5160
|
Newspaper: q.Journal,
|
|
5158
5161
|
Video: q.Video
|
|
5159
|
-
},
|
|
5162
|
+
}, mm = {
|
|
5160
5163
|
CreativeWork: q.Audio,
|
|
5161
5164
|
Movie: q.Video,
|
|
5162
5165
|
Periodical: q.Journal,
|
|
5163
5166
|
Thesis: q.Dissertation
|
|
5164
|
-
},
|
|
5165
|
-
...
|
|
5166
|
-
...
|
|
5167
|
-
},
|
|
5167
|
+
}, hm = {
|
|
5168
|
+
...pm,
|
|
5169
|
+
...mm
|
|
5170
|
+
}, gm = (e) => {
|
|
5168
5171
|
if (e) return e.mainEntity["@type"];
|
|
5169
|
-
},
|
|
5170
|
-
let n =
|
|
5171
|
-
return n ?
|
|
5172
|
-
}),
|
|
5172
|
+
}, _m = (e) => e.querySelector(".record-type")?.textContent.trim() ?? void 0, vm = yd(fm, (e, t) => {
|
|
5173
|
+
let n = _m(e) ?? gm(t);
|
|
5174
|
+
return n ? hm[n] : void 0;
|
|
5175
|
+
}), ym = (e) => {
|
|
5173
5176
|
let t = V(e, "name", "bepress_citation_doi");
|
|
5174
5177
|
if (t) return t.replace("https://doi.org/", "").trim();
|
|
5175
|
-
},
|
|
5178
|
+
}, bm = (e) => {
|
|
5176
5179
|
let { document: t } = e, n = ns(e);
|
|
5177
|
-
if (!
|
|
5178
|
-
let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a =
|
|
5180
|
+
if (!Xc(n)) return n;
|
|
5181
|
+
let r = V(t, "name", "bepress_citation_date"), i = V(t, "name", "bepress_citation_pdf_url"), a = ym(t);
|
|
5179
5182
|
return r && (n.resource.date = r), i && (n.resource.uri = i), a && (n.resource.rft_id = [a]), n;
|
|
5180
|
-
},
|
|
5183
|
+
}, xm = (e) => {
|
|
5181
5184
|
let t = {}, n = Array.from(e.querySelectorAll("#bibliographic-data .bib-label"));
|
|
5182
5185
|
for (let e of n) {
|
|
5183
5186
|
let n = e.querySelector("h6")?.textContent.trim().toLowerCase(), r = e.nextElementSibling?.classList.contains("bib-field") ? e.nextElementSibling.textContent.trim() : void 0;
|
|
@@ -5188,16 +5191,16 @@ var wp = (e) => {
|
|
|
5188
5191
|
n && (t.title = n.textContent.trim());
|
|
5189
5192
|
}
|
|
5190
5193
|
return t;
|
|
5191
|
-
},
|
|
5194
|
+
}, Sm = (e) => {
|
|
5192
5195
|
if (e.title) return e.subtitle ? `${e.title}: ${e.subtitle}` : e.title;
|
|
5193
|
-
},
|
|
5196
|
+
}, Cm = (e) => {
|
|
5194
5197
|
let t = e["print pub date"];
|
|
5195
5198
|
if (t) return t.split("-")[0];
|
|
5196
|
-
},
|
|
5199
|
+
}, wm = (e) => e.author ? [e.author] : e.authors ? Tm(e.authors) : void 0, Tm = (e) => {
|
|
5197
5200
|
let t = e.split(",").map((e) => e.trim()).filter(Boolean), n = t[t.length - 1];
|
|
5198
5201
|
return n.startsWith("and ") && (t[t.length - 1] = n.replace(/^and\s/, "").trim()), t;
|
|
5199
|
-
},
|
|
5200
|
-
let n =
|
|
5202
|
+
}, Em = (e, t) => e.querySelector("a.ga_detail_bt_readonline")?.getAttribute("href") ?? t, Dm = ({ document: e, url: t }) => {
|
|
5203
|
+
let n = xm(e), r = Sm(n), i = n.edition, a = n["ebook isbn"], o = wm(n), s = n.publisher, c = n.series, l = Cm(n), u = Em(e, t);
|
|
5201
5204
|
return B(I(F.Book, {
|
|
5202
5205
|
atitle: r,
|
|
5203
5206
|
edition: i,
|
|
@@ -5208,7 +5211,7 @@ var wp = (e) => {
|
|
|
5208
5211
|
date: l,
|
|
5209
5212
|
uri: u
|
|
5210
5213
|
}));
|
|
5211
|
-
},
|
|
5214
|
+
}, Om = Xs.extend({
|
|
5212
5215
|
"@type": N("VideoObject"),
|
|
5213
5216
|
name: O(),
|
|
5214
5217
|
url: O(),
|
|
@@ -5220,56 +5223,56 @@ var wp = (e) => {
|
|
|
5220
5223
|
"@type": N("Person"),
|
|
5221
5224
|
name: O()
|
|
5222
5225
|
}))]))
|
|
5223
|
-
}),
|
|
5224
|
-
let t =
|
|
5226
|
+
}), km = (e) => {
|
|
5227
|
+
let t = ec(e);
|
|
5225
5228
|
if (!t) return null;
|
|
5226
|
-
let n =
|
|
5229
|
+
let n = tc(t), r = Om.safeParse(n);
|
|
5227
5230
|
return r.success ? r.data : null;
|
|
5228
|
-
},
|
|
5231
|
+
}, Am = (e) => {
|
|
5229
5232
|
if (e.creator) return Array.isArray(e.creator) ? e.creator.map((e) => e.name) : [e.creator.name];
|
|
5230
|
-
},
|
|
5231
|
-
let t =
|
|
5233
|
+
}, jm = ({ document: e }) => {
|
|
5234
|
+
let t = km(e);
|
|
5232
5235
|
if (!t) return z();
|
|
5233
|
-
let n =
|
|
5236
|
+
let n = Am(t);
|
|
5234
5237
|
return B(R({
|
|
5235
5238
|
title: t.name,
|
|
5236
5239
|
date: t.datePublished,
|
|
5237
5240
|
au: n,
|
|
5238
5241
|
uri: t.url
|
|
5239
5242
|
}));
|
|
5240
|
-
},
|
|
5243
|
+
}, Mm = Xs.extend({ publisher: j({
|
|
5241
5244
|
"@type": N("Organization"),
|
|
5242
5245
|
name: O()
|
|
5243
|
-
}) }),
|
|
5246
|
+
}) }), Nm = Xs.extend({
|
|
5244
5247
|
"@type": N("WebSite"),
|
|
5245
5248
|
issn: O(),
|
|
5246
5249
|
name: O()
|
|
5247
|
-
}),
|
|
5248
|
-
let t =
|
|
5250
|
+
}), Pm = (e) => {
|
|
5251
|
+
let t = Im(e), n = e.querySelector(".article-issue-info a")?.getAttribute("href") ?? "", r = /\/v(\d+)/i.exec(n), i = /\/n(\d+)/i.exec(n);
|
|
5249
5252
|
return {
|
|
5250
5253
|
jtitle: t?.name ?? void 0,
|
|
5251
5254
|
issn: t?.issn ?? void 0,
|
|
5252
5255
|
volume: r ? r[1] : void 0,
|
|
5253
5256
|
issue: i ? i[1] : void 0
|
|
5254
5257
|
};
|
|
5255
|
-
},
|
|
5256
|
-
let t =
|
|
5257
|
-
return t.length === 0 ? null : t.map((e) =>
|
|
5258
|
-
},
|
|
5259
|
-
let t =
|
|
5258
|
+
}, Fm = (e) => {
|
|
5259
|
+
let t = $s(e);
|
|
5260
|
+
return t.length === 0 ? null : t.map((e) => tc(e)).filter((e) => e !== null);
|
|
5261
|
+
}, Im = (e) => {
|
|
5262
|
+
let t = Fm(e);
|
|
5260
5263
|
if (!t) return;
|
|
5261
|
-
let n = t.map((e) =>
|
|
5264
|
+
let n = t.map((e) => Nm.safeParse(e)).find((e) => e.success);
|
|
5262
5265
|
return n ? n.data : void 0;
|
|
5263
|
-
},
|
|
5264
|
-
let t =
|
|
5266
|
+
}, Lm = (e) => {
|
|
5267
|
+
let t = Fm(e);
|
|
5265
5268
|
if (!t) return;
|
|
5266
|
-
let n = t.map((e) =>
|
|
5269
|
+
let n = t.map((e) => Mm.safeParse(e)).find((e) => e.success);
|
|
5267
5270
|
return n ? n.data.publisher.name : void 0;
|
|
5268
|
-
},
|
|
5271
|
+
}, Rm = (e) => V(e, "property", "article:author"), zm = (e) => V(e, "property", "og:title"), Bm = (e) => {
|
|
5269
5272
|
let t = V(e, "property", "article:published_time");
|
|
5270
5273
|
return t ? t.split("T")[0] : void 0;
|
|
5271
|
-
},
|
|
5272
|
-
let t =
|
|
5274
|
+
}, Vm = (e) => V(e, "property", "og:url"), Hm = (e) => {
|
|
5275
|
+
let t = Rm(e), n = zm(e), r = Vm(e), i = Bm(e), a = Lm(e), { volume: o, issue: s, issn: c, jtitle: l } = Pm(e);
|
|
5273
5276
|
return L(F.Article, {
|
|
5274
5277
|
au: t ? [t] : void 0,
|
|
5275
5278
|
pub: a,
|
|
@@ -5281,8 +5284,8 @@ var wp = (e) => {
|
|
|
5281
5284
|
volume: o,
|
|
5282
5285
|
issue: s
|
|
5283
5286
|
});
|
|
5284
|
-
},
|
|
5285
|
-
let t =
|
|
5287
|
+
}, Um = (e) => {
|
|
5288
|
+
let t = Rm(e), n = zm(e), r = Vm(e), i = Bm(e), a = Lm(e);
|
|
5286
5289
|
return R({
|
|
5287
5290
|
au: t ? [t] : void 0,
|
|
5288
5291
|
pub: a,
|
|
@@ -5290,42 +5293,42 @@ var wp = (e) => {
|
|
|
5290
5293
|
title: n,
|
|
5291
5294
|
date: i
|
|
5292
5295
|
});
|
|
5293
|
-
},
|
|
5296
|
+
}, Wm = (e) => {
|
|
5294
5297
|
switch (V(e, "property", "og:type")) {
|
|
5295
5298
|
case "article": return U.Article;
|
|
5296
5299
|
case "podcast":
|
|
5297
5300
|
case "film": return U.AudioVisual;
|
|
5298
5301
|
default: return null;
|
|
5299
5302
|
}
|
|
5300
|
-
},
|
|
5301
|
-
switch (
|
|
5302
|
-
case U.Article: return
|
|
5303
|
-
case U.AudioVisual: return
|
|
5303
|
+
}, Gm = (e) => {
|
|
5304
|
+
switch (Wm(e)) {
|
|
5305
|
+
case U.Article: return Hm(e);
|
|
5306
|
+
case U.AudioVisual: return Um(e);
|
|
5304
5307
|
default: return null;
|
|
5305
5308
|
}
|
|
5306
|
-
},
|
|
5307
|
-
let t =
|
|
5309
|
+
}, Km = ({ document: e }) => {
|
|
5310
|
+
let t = Gm(e);
|
|
5308
5311
|
return t ? B(t) : z();
|
|
5309
|
-
},
|
|
5312
|
+
}, qm = (e) => {
|
|
5310
5313
|
let t = /\/books\/([^/]+)/.exec(e);
|
|
5311
5314
|
return t ? t[1] : void 0;
|
|
5312
|
-
},
|
|
5315
|
+
}, Jm = (e) => {
|
|
5313
5316
|
let t = e.querySelector(".sc-epFoly")?.textContent.trim();
|
|
5314
5317
|
if (t) return t.split(";").map((e) => e.trim());
|
|
5315
|
-
},
|
|
5318
|
+
}, Ym = (e) => {
|
|
5316
5319
|
let t = e.querySelector("h3.sc-eEvSnX")?.textContent.trim();
|
|
5317
5320
|
if (t) return t;
|
|
5318
5321
|
let n = e.title.split("Ref:").pop();
|
|
5319
5322
|
return n ? n.trim() : void 0;
|
|
5320
|
-
},
|
|
5321
|
-
let n =
|
|
5323
|
+
}, Xm = ({ document: e, url: t }) => {
|
|
5324
|
+
let n = Ym(e), r = qm(t), i = Jm(e);
|
|
5322
5325
|
return !n && !i && !r ? z() : B(I(F.Book, {
|
|
5323
5326
|
title: n,
|
|
5324
5327
|
au: i,
|
|
5325
5328
|
isbn: r,
|
|
5326
5329
|
uri: t
|
|
5327
5330
|
}));
|
|
5328
|
-
},
|
|
5331
|
+
}, Zm = (e) => {
|
|
5329
5332
|
let t = V(e, "name", "citation_title");
|
|
5330
5333
|
if (!t) return null;
|
|
5331
5334
|
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");
|
|
@@ -5342,57 +5345,248 @@ var wp = (e) => {
|
|
|
5342
5345
|
doi: u,
|
|
5343
5346
|
uri: d
|
|
5344
5347
|
});
|
|
5345
|
-
},
|
|
5346
|
-
let t =
|
|
5348
|
+
}, Qm = (e) => {
|
|
5349
|
+
let t = Zm(e.document);
|
|
5347
5350
|
return t ? B(t) : ns(e);
|
|
5351
|
+
}, $m = "[data-auto=\"record-staff-view-title\"]", eh = 3, th = /\$([a-z0-9])\s*([^$]*)/g, nh = /[\s,:;/=]+$/, rh = "001", ih = "007", ah = ["020"], oh = ["100", "700"], sh = ["245"], ch = ["250"], lh = ["260", "264"], uh = [
|
|
5352
|
+
"440",
|
|
5353
|
+
"490",
|
|
5354
|
+
"830"
|
|
5355
|
+
], dh = ["856"], fh = "LEA", ph = 6, mh = new Set(["m", "v"]), hh = new Set(["i", "j"]), gh = (e) => e.trim().replace(nh, ""), _h = (e) => {
|
|
5356
|
+
let t = /* @__PURE__ */ new Map();
|
|
5357
|
+
for (let [, n, r] of e.matchAll(th)) {
|
|
5358
|
+
let e = gh(r);
|
|
5359
|
+
e && !t.has(n) && t.set(n, e);
|
|
5360
|
+
}
|
|
5361
|
+
return t;
|
|
5362
|
+
}, vh = (e) => {
|
|
5363
|
+
let t = e.querySelector($m);
|
|
5364
|
+
if (!t) return;
|
|
5365
|
+
let n = /* @__PURE__ */ new Map();
|
|
5366
|
+
for (let e of t.querySelectorAll("tr")) {
|
|
5367
|
+
let t = e.querySelectorAll("td");
|
|
5368
|
+
if (t.length < 2) continue;
|
|
5369
|
+
let r = t[0].textContent.trim().slice(0, eh), i = t[1].textContent.trim();
|
|
5370
|
+
if (!r || !i) continue;
|
|
5371
|
+
let a = n.get(r) ?? [];
|
|
5372
|
+
a.push(i), n.set(r, a);
|
|
5373
|
+
}
|
|
5374
|
+
return n.size > 0 ? n : void 0;
|
|
5375
|
+
}, yh = (e, t) => ou(e.get(t)), bh = (e, t, n) => t.flatMap((t) => e.get(t) ?? []).map((e) => _h(e).get(n)).filter((e) => !!e), xh = (e, t, n) => ou(bh(e, t, n)), Sh = (e) => {
|
|
5376
|
+
let t = xh(e, sh, "a");
|
|
5377
|
+
if (!t) return;
|
|
5378
|
+
let n = xh(e, sh, "b");
|
|
5379
|
+
return n ? `${t} : ${n}` : t;
|
|
5380
|
+
}, Ch = (e) => {
|
|
5381
|
+
let t = bh(e, oh, "a");
|
|
5382
|
+
return t.length > 0 ? t : void 0;
|
|
5383
|
+
}, wh = (e) => {
|
|
5384
|
+
let t = yh(e, fh)?.charAt(ph);
|
|
5385
|
+
if (hh.has(t ?? "")) return F.AudioDocument;
|
|
5386
|
+
let n = yh(e, ih)?.charAt(0);
|
|
5387
|
+
if (mh.has(n ?? "")) return F.AudioVisualDocument;
|
|
5388
|
+
}, Th = (e) => {
|
|
5389
|
+
let t = vh(e);
|
|
5390
|
+
return t ? {
|
|
5391
|
+
genre: wh(t),
|
|
5392
|
+
title: Sh(t),
|
|
5393
|
+
au: Ch(t),
|
|
5394
|
+
pub: xh(t, lh, "b"),
|
|
5395
|
+
place: xh(t, lh, "a"),
|
|
5396
|
+
isbn: Bs(bh(t, ah, "a")),
|
|
5397
|
+
date: fs(xh(t, lh, "c")),
|
|
5398
|
+
edition: xh(t, ch, "a"),
|
|
5399
|
+
series: xh(t, uh, "a"),
|
|
5400
|
+
bibid: yh(t, rh),
|
|
5401
|
+
uri: xh(t, dh, "u")
|
|
5402
|
+
} : {};
|
|
5403
|
+
}, Eh = "[data-auto=\"record-summary\"]", Dh = "[data-auto=\"record-summary-title\"]", Oh = "[data-auto=\"record-publisher-content\"]", kh = "[data-auto=\"record-isbn-content\"] li", Ah = "[data-auto=\"record-document-type-content\"]", jh = ".instanceDetailsPage__externalLink [data-auto=\"eb-hyperlink\"]", Mh = ["By", "Contributors"], Nh = "Published", Ph = new Map([
|
|
5404
|
+
["paperback", F.Book],
|
|
5405
|
+
["hardback", F.Book],
|
|
5406
|
+
["re-bound", F.Book],
|
|
5407
|
+
["spiral", F.Book],
|
|
5408
|
+
["boxed", F.Book],
|
|
5409
|
+
["pack", F.Book],
|
|
5410
|
+
["ebook", F.Book],
|
|
5411
|
+
["dvd", F.AudioVisualDocument],
|
|
5412
|
+
["compact disc", F.AudioDocument],
|
|
5413
|
+
["sound disc", F.AudioDocument],
|
|
5414
|
+
["audio cassette", F.AudioDocument],
|
|
5415
|
+
["e-audio", F.AudioDocument],
|
|
5416
|
+
["other -- unknown", F.Unknown]
|
|
5417
|
+
]), Fh = (e, t) => {
|
|
5418
|
+
let n = e.querySelector(Eh);
|
|
5419
|
+
return Array.from(n?.querySelectorAll("span") ?? []).find((e) => e.textContent.trim() === `${t}:`);
|
|
5420
|
+
}, Ih = (e) => e.split("/")[0].trim(), Lh = (e) => {
|
|
5421
|
+
let t = G(e, Dh);
|
|
5422
|
+
return t ? Ih(t) : void 0;
|
|
5423
|
+
}, Rh = (e) => {
|
|
5424
|
+
let t = Mh.flatMap((t) => Array.from(Fh(e, t)?.parentElement?.querySelectorAll("a") ?? [])).map((e) => e.textContent.trim()).filter((e) => e.length > 0);
|
|
5425
|
+
return t.length > 0 ? t : void 0;
|
|
5426
|
+
}, zh = (e) => Fh(e, Nh)?.nextElementSibling?.textContent.trim(), Bh = (e) => {
|
|
5427
|
+
let t = G(e, Oh);
|
|
5428
|
+
if (!t) return {};
|
|
5429
|
+
let n = t.lastIndexOf(",");
|
|
5430
|
+
return n === -1 ? { publisher: t } : {
|
|
5431
|
+
publisher: t.slice(0, n).trim() || void 0,
|
|
5432
|
+
place: t.slice(n + 1).trim() || void 0
|
|
5433
|
+
};
|
|
5434
|
+
}, Vh = (e) => Array.from(e.querySelectorAll(kh)).map((e) => e.textContent.trim()).filter((e) => e.length > 0), Hh = (e) => {
|
|
5435
|
+
let t = e.querySelector(jh)?.getAttribute("href")?.trim() ?? "";
|
|
5436
|
+
return t.length > 0 ? t : void 0;
|
|
5437
|
+
}, Uh = (e) => {
|
|
5438
|
+
let t = G(e, Ah)?.toLowerCase();
|
|
5439
|
+
return t ? Ph.get(t) ?? F.Unknown : F.Book;
|
|
5440
|
+
}, Wh = (e) => {
|
|
5441
|
+
let { publisher: t, place: n } = Bh(e);
|
|
5442
|
+
return {
|
|
5443
|
+
genre: Uh(e),
|
|
5444
|
+
title: Lh(e),
|
|
5445
|
+
au: Rh(e),
|
|
5446
|
+
pub: t,
|
|
5447
|
+
place: n,
|
|
5448
|
+
isbn: Bs(Vh(e)),
|
|
5449
|
+
date: fs(zh(e)),
|
|
5450
|
+
uri: Hh(e)
|
|
5451
|
+
};
|
|
5452
|
+
}, Gh = /(^|[\s.])\p{Lu}\.$/u, Kh = /,\s*\d{4}[^,]*$/, qh = /\s*\([^)]*\)$/, Jh = (e) => Gh.test(e) ? e : e.replace(/\.$/, ""), Yh = (e) => e.replace(Kh, ""), Xh = (e) => e.replace(qh, ""), Zh = (e) => e?.map((e) => Jh(Yh(Xh(e)))), Qh = (e) => ({
|
|
5453
|
+
...R(e),
|
|
5454
|
+
genre: F.AudioDocument
|
|
5455
|
+
}), $h = (e) => ro.safeParse(e).success, eg = (e) => $h(e) ? e : F.Unknown, tg = (e) => {
|
|
5456
|
+
let t = Wh(e), n = Th(e), r = n.title ?? t.title;
|
|
5457
|
+
if (!r) return null;
|
|
5458
|
+
let i = {
|
|
5459
|
+
title: r,
|
|
5460
|
+
au: Zh(n.au ?? t.au),
|
|
5461
|
+
pub: n.pub ?? t.pub,
|
|
5462
|
+
isbn: Bs([t.isbn, n.isbn]),
|
|
5463
|
+
date: n.date ?? t.date,
|
|
5464
|
+
bibid: n.bibid ?? t.bibid,
|
|
5465
|
+
uri: n.uri ?? t.uri
|
|
5466
|
+
}, a = n.genre ?? t.genre ?? F.Book;
|
|
5467
|
+
return a === F.AudioDocument ? Qh(i) : a === F.AudioVisualDocument ? R(i) : I(eg(a), {
|
|
5468
|
+
...i,
|
|
5469
|
+
place: n.place ?? t.place,
|
|
5470
|
+
edition: n.edition ?? t.edition,
|
|
5471
|
+
series: n.series ?? t.series
|
|
5472
|
+
});
|
|
5473
|
+
}, ng = (e) => {
|
|
5474
|
+
let t = tg(e.document);
|
|
5475
|
+
return t ? B(t) : z();
|
|
5476
|
+
}, rg = ".widget-body.publication", ig = `${rg} .publication-title-details`, ag = `${rg} .publication-primary-identifiers`, og = `${rg} .publication-title`, sg = `${rg} .publication-tags .pub-type`, cg = `${rg} .my-profile-menu`, lg = `${rg} .publication-publisher > div`, ug = `${ig} ul.authors[name="all-authors"] > li > span:first-child`, dg = `${ig} .publication-name`, fg = `${ig} .date:not(.init-date)`, pg = `${ag} a[href*="doi.org"]`, mg = `${ag} a[href*="q=issn%3A"]`, hg = `${ag} a[href*="q=eissn%3A"]`, gg = `${ag} a[title^="http"]`, _g = (e) => {
|
|
5477
|
+
let t = e?.trim();
|
|
5478
|
+
if (t) return t;
|
|
5479
|
+
}, vg = (e, t, n) => _g(e.querySelector(t)?.getAttribute(n)), yg = (e) => G(e, og), bg = (e) => G(e, sg)?.toLowerCase(), xg = (e) => vg(e, cg, "data-type")?.toLowerCase(), Sg = (e) => {
|
|
5480
|
+
let t = Array.from(e.querySelectorAll(ug)).map((e) => e.textContent.trim()).filter((e) => e.length > 0);
|
|
5481
|
+
return t.length > 0 ? t : void 0;
|
|
5482
|
+
}, Cg = (e) => fs(G(e, fg)), wg = (e) => G(e, lg), Tg = (e) => G(e, pg), Eg = (e) => G(e, dg), Dg = (e) => vg(e, cg, "data-issn") ?? G(e, mg), Og = (e) => G(e, hg), kg = (e) => vg(e, gg, "title"), Ag = `${ig} .edition`, jg = `${ag} a[href*="isbn%3A"]`, Mg = /^\((.*)\)$/, Ng = (e) => {
|
|
5483
|
+
let t = G(e, Ag), n = t ? Mg.exec(t) : null;
|
|
5484
|
+
return n ? n[1] : t;
|
|
5485
|
+
}, Pg = (e, t) => I(t, {
|
|
5486
|
+
au: Sg(e),
|
|
5487
|
+
date: Cg(e),
|
|
5488
|
+
doi: Tg(e),
|
|
5489
|
+
pub: wg(e),
|
|
5490
|
+
title: yg(e),
|
|
5491
|
+
series: Eg(e),
|
|
5492
|
+
edition: Ng(e),
|
|
5493
|
+
isbn: Bs([G(e, jg)]),
|
|
5494
|
+
uri: kg(e)
|
|
5495
|
+
}), Fg = `${ig} .volissue .volume`, Ig = `${ig} .volissue .issue`, Lg = `${ig} .volissue .pages`, Rg = (e) => {
|
|
5496
|
+
let t = yg(e), n = Eg(e);
|
|
5497
|
+
return n ? {
|
|
5498
|
+
atitle: t,
|
|
5499
|
+
jtitle: n
|
|
5500
|
+
} : { jtitle: t };
|
|
5501
|
+
}, zg = (e, t) => {
|
|
5502
|
+
if (e) return _g(e.toLowerCase().startsWith(t) ? e.slice(t.length) : e);
|
|
5503
|
+
}, Bg = (e, t, n) => zg(G(e, t), n), Vg = (e) => {
|
|
5504
|
+
let [t, n] = Bg(e, Lg, "pages")?.split("-") ?? [];
|
|
5505
|
+
return {
|
|
5506
|
+
spage: t,
|
|
5507
|
+
epage: n
|
|
5508
|
+
};
|
|
5509
|
+
}, Hg = (e, t) => L(t, {
|
|
5510
|
+
au: Sg(e),
|
|
5511
|
+
date: Cg(e),
|
|
5512
|
+
doi: Tg(e),
|
|
5513
|
+
pub: wg(e),
|
|
5514
|
+
...Vg(e),
|
|
5515
|
+
...Rg(e),
|
|
5516
|
+
volume: Bg(e, Fg, "volume"),
|
|
5517
|
+
issue: Bg(e, Ig, "issue"),
|
|
5518
|
+
issn: Dg(e),
|
|
5519
|
+
eissn: Og(e),
|
|
5520
|
+
uri: kg(e)
|
|
5521
|
+
}), Ug = /* @__PURE__ */ function(e) {
|
|
5522
|
+
return e.Article = "article", e.Book = "book", e.EBook = "e-book", e.Ebook = "ebook", e.Journal = "journal", e.PrintedPhysicalItem = "printed physical item", e;
|
|
5523
|
+
}({}), Wg = "journal", Gg = (e) => Object.values(Ug).includes(e), Kg = (e) => {
|
|
5524
|
+
let t = bg(e);
|
|
5525
|
+
return Gg(t) ? t : null;
|
|
5526
|
+
}, qg = (e) => xg(e) === Wg ? Hg(e, F.Unknown) : Pg(e, F.Unknown), Jg = (e) => {
|
|
5527
|
+
if (!yg(e)) return null;
|
|
5528
|
+
switch (Kg(e)) {
|
|
5529
|
+
case Ug.Article: return Hg(e, F.Article);
|
|
5530
|
+
case Ug.Journal: return Hg(e, F.Journal);
|
|
5531
|
+
case Ug.Book:
|
|
5532
|
+
case Ug.EBook:
|
|
5533
|
+
case Ug.Ebook:
|
|
5534
|
+
case Ug.PrintedPhysicalItem: return Pg(e, F.Book);
|
|
5535
|
+
default: return qg(e);
|
|
5536
|
+
}
|
|
5537
|
+
}, Yg = ({ document: e }) => {
|
|
5538
|
+
let t = Jg(e);
|
|
5539
|
+
return t ? B(t) : z();
|
|
5348
5540
|
}, X = /* @__PURE__ */ function(e) {
|
|
5349
|
-
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;
|
|
5350
|
-
}({}),
|
|
5351
|
-
[X.NoResourceFound]:
|
|
5541
|
+
return e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e.KanopyVideo = "KanopyVideo", e.LaTrobeOpal = "LaTrobeOpal", e.BYUScholarsArchive = "BYUScholarsArchive", e.Informit = "Informit", e.Brill = "Brill", e.HeinOnline = "HeinOnline", e.PrimoNde = "PrimoNde", e.MichiganLaw = "MichiganLaw", e.EbookCentral = "EbookCentral", e.AlexanderStreetPress = "AlexanderStreetPress", e.LondonReviewOfBooks = "LondonReviewOfBooks", e.VitalSource = "VitalSource", e.Icono14 = "Icono14", e.EbscoLocate = "EbscoLocate", e.TdnetDiscover = "TdnetDiscover", e;
|
|
5542
|
+
}({}), Xg = {
|
|
5543
|
+
[X.NoResourceFound]: uc,
|
|
5352
5544
|
[X.Z3988]: ns,
|
|
5353
|
-
[X.Z3988SearchResult]:
|
|
5545
|
+
[X.Z3988SearchResult]: au,
|
|
5354
5546
|
[X.Amazon]: us,
|
|
5355
|
-
[X.CupOfJo]:
|
|
5356
|
-
[X.Jstor]:
|
|
5357
|
-
[X.Youtube]:
|
|
5358
|
-
[X.SagePub]:
|
|
5359
|
-
[X.SageVideo]:
|
|
5360
|
-
[X.ScienceDirect]:
|
|
5361
|
-
[X.Springer]:
|
|
5362
|
-
[X.TaylorFrancis]:
|
|
5363
|
-
[X.Wiley]:
|
|
5364
|
-
[X.VuFind]:
|
|
5365
|
-
[X.ClinicalKey]:
|
|
5366
|
-
[X.DOAJ]:
|
|
5367
|
-
[X.Primo]:
|
|
5368
|
-
[X.IngentaConnect]:
|
|
5369
|
-
[X.Ebscohost]:
|
|
5370
|
-
[X.OpenStax]:
|
|
5371
|
-
[X.OpenTextbook]:
|
|
5372
|
-
[X.Milne]:
|
|
5373
|
-
[X.CambridgeJournalsOnline]:
|
|
5374
|
-
[X.AhaJournals]:
|
|
5375
|
-
[X.Ijees]:
|
|
5376
|
-
[X.BloomsburyCollections]:
|
|
5377
|
-
[X.HeritageCirqa]:
|
|
5378
|
-
[X.BritishMedicalJournal]:
|
|
5379
|
-
[X.SummonSearchResult]:
|
|
5380
|
-
[X.ApplePodcasts]:
|
|
5381
|
-
[X.Arxiv]:
|
|
5382
|
-
[X.KanopyVideo]:
|
|
5383
|
-
[X.LaTrobeOpal]:
|
|
5547
|
+
[X.CupOfJo]: lc,
|
|
5548
|
+
[X.Jstor]: Bu,
|
|
5549
|
+
[X.Youtube]: ol,
|
|
5550
|
+
[X.SagePub]: Dc,
|
|
5551
|
+
[X.SageVideo]: iu,
|
|
5552
|
+
[X.ScienceDirect]: Rc,
|
|
5553
|
+
[X.Springer]: Pl,
|
|
5554
|
+
[X.TaylorFrancis]: Gc,
|
|
5555
|
+
[X.Wiley]: nu,
|
|
5556
|
+
[X.VuFind]: nl,
|
|
5557
|
+
[X.ClinicalKey]: Ys,
|
|
5558
|
+
[X.DOAJ]: gc,
|
|
5559
|
+
[X.Primo]: kd,
|
|
5560
|
+
[X.IngentaConnect]: Rd,
|
|
5561
|
+
[X.Ebscohost]: lf,
|
|
5562
|
+
[X.OpenStax]: pf,
|
|
5563
|
+
[X.OpenTextbook]: gf,
|
|
5564
|
+
[X.Milne]: yf,
|
|
5565
|
+
[X.CambridgeJournalsOnline]: bf,
|
|
5566
|
+
[X.AhaJournals]: Pf,
|
|
5567
|
+
[X.Ijees]: Rf,
|
|
5568
|
+
[X.BloomsburyCollections]: ep,
|
|
5569
|
+
[X.HeritageCirqa]: ip,
|
|
5570
|
+
[X.BritishMedicalJournal]: cp,
|
|
5571
|
+
[X.SummonSearchResult]: lp,
|
|
5572
|
+
[X.ApplePodcasts]: hp,
|
|
5573
|
+
[X.Arxiv]: vp,
|
|
5574
|
+
[X.KanopyVideo]: xp,
|
|
5575
|
+
[X.LaTrobeOpal]: Dp,
|
|
5384
5576
|
[X.BYUScholarsArchive]: Ds,
|
|
5385
|
-
[X.Informit]:
|
|
5386
|
-
[X.Brill]:
|
|
5387
|
-
[X.HeinOnline]:
|
|
5388
|
-
[X.PrimoNde]:
|
|
5389
|
-
[X.MichiganLaw]:
|
|
5390
|
-
[X.EbookCentral]:
|
|
5391
|
-
[X.AlexanderStreetPress]:
|
|
5392
|
-
[X.LondonReviewOfBooks]:
|
|
5393
|
-
[X.VitalSource]:
|
|
5394
|
-
[X.Icono14]:
|
|
5395
|
-
|
|
5577
|
+
[X.Informit]: Vp,
|
|
5578
|
+
[X.Brill]: am,
|
|
5579
|
+
[X.HeinOnline]: sm,
|
|
5580
|
+
[X.PrimoNde]: vm,
|
|
5581
|
+
[X.MichiganLaw]: bm,
|
|
5582
|
+
[X.EbookCentral]: Dm,
|
|
5583
|
+
[X.AlexanderStreetPress]: jm,
|
|
5584
|
+
[X.LondonReviewOfBooks]: Km,
|
|
5585
|
+
[X.VitalSource]: Xm,
|
|
5586
|
+
[X.Icono14]: Qm,
|
|
5587
|
+
[X.EbscoLocate]: ng,
|
|
5588
|
+
[X.TdnetDiscover]: Yg
|
|
5589
|
+
}, Zg = "5.47.0", Qg = () => Zg, $g = [
|
|
5396
5590
|
"com.au",
|
|
5397
5591
|
"com",
|
|
5398
5592
|
"ca",
|
|
@@ -5400,8 +5594,8 @@ var wp = (e) => {
|
|
|
5400
5594
|
"de",
|
|
5401
5595
|
"fr",
|
|
5402
5596
|
"nl"
|
|
5403
|
-
].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]),
|
|
5404
|
-
version:
|
|
5597
|
+
].flatMap((e) => [`amazon.${e}`, `www.amazon.${e}`]), e_ = {
|
|
5598
|
+
version: Qg(),
|
|
5405
5599
|
siteRegistrations: [
|
|
5406
5600
|
{
|
|
5407
5601
|
matcher: { regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search" },
|
|
@@ -5429,7 +5623,7 @@ var wp = (e) => {
|
|
|
5429
5623
|
parsers: [X.ScienceDirect]
|
|
5430
5624
|
},
|
|
5431
5625
|
{
|
|
5432
|
-
matcher: { hostnames:
|
|
5626
|
+
matcher: { hostnames: $g },
|
|
5433
5627
|
name: "Amazon",
|
|
5434
5628
|
parsers: [X.Amazon]
|
|
5435
5629
|
},
|
|
@@ -5632,20 +5826,30 @@ var wp = (e) => {
|
|
|
5632
5826
|
matcher: { regexp: "^https://bookshelf-ref[.-]vitalsource[.-]com/reader/books" },
|
|
5633
5827
|
name: "Vital Source Bookshelf",
|
|
5634
5828
|
parsers: [X.VitalSource]
|
|
5829
|
+
},
|
|
5830
|
+
{
|
|
5831
|
+
matcher: { regexp: "locate[.-]ebsco[.-]com/instances/" },
|
|
5832
|
+
name: "EBSCO Locate",
|
|
5833
|
+
parsers: [X.EbscoLocate]
|
|
5834
|
+
},
|
|
5835
|
+
{
|
|
5836
|
+
matcher: { hostnames: ["librarysearch.worc.ac.uk"] },
|
|
5837
|
+
name: "TDNet Discover",
|
|
5838
|
+
parsers: [X.TdnetDiscover]
|
|
5635
5839
|
}
|
|
5636
5840
|
]
|
|
5637
|
-
},
|
|
5638
|
-
matcher:
|
|
5841
|
+
}, t_ = j({ hostnames: A(O()).min(1) }), n_ = j({ regexp: O() }), r_ = M([t_, n_]), i_ = j({
|
|
5842
|
+
matcher: r_,
|
|
5639
5843
|
name: O(),
|
|
5640
5844
|
parsers: A(O()),
|
|
5641
5845
|
libraryVersionRange: O().optional()
|
|
5642
|
-
}),
|
|
5643
|
-
siteRegistrations: A(
|
|
5846
|
+
}), a_ = j({
|
|
5847
|
+
siteRegistrations: A(i_),
|
|
5644
5848
|
version: O()
|
|
5645
|
-
}),
|
|
5849
|
+
}), o_ = (e) => a_.safeParse(e).success, s_ = (e) => i_.safeParse(e).success, c_ = (e) => r_.safeParse(e).success, l_ = (e) => Object.values(X).includes(e), u_ = j({
|
|
5646
5850
|
url: O(),
|
|
5647
5851
|
document: eo((e) => typeof e == "object" && !!e)
|
|
5648
|
-
}),
|
|
5852
|
+
}), d_ = (e) => u_.safeParse(e).success, f_ = /* @__PURE__ */ e(((e, t) => {
|
|
5649
5853
|
var n = "2.0.0", r = 256;
|
|
5650
5854
|
t.exports = {
|
|
5651
5855
|
MAX_LENGTH: r,
|
|
@@ -5665,10 +5869,10 @@ var wp = (e) => {
|
|
|
5665
5869
|
FLAG_INCLUDE_PRERELEASE: 1,
|
|
5666
5870
|
FLAG_LOOSE: 2
|
|
5667
5871
|
};
|
|
5668
|
-
})),
|
|
5872
|
+
})), p_ = /* @__PURE__ */ e(((e, t) => {
|
|
5669
5873
|
t.exports = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {};
|
|
5670
|
-
})),
|
|
5671
|
-
var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } =
|
|
5874
|
+
})), m_ = /* @__PURE__ */ e(((e, t) => {
|
|
5875
|
+
var { MAX_SAFE_COMPONENT_LENGTH: n, MAX_SAFE_BUILD_LENGTH: r, MAX_LENGTH: i } = f_(), a = p_();
|
|
5672
5876
|
e = t.exports = {};
|
|
5673
5877
|
var o = e.re = [], s = e.safeRe = [], c = e.src = [], l = e.safeSrc = [], u = e.t = {}, d = 0, f = "[a-zA-Z0-9-]", p = [
|
|
5674
5878
|
["\\s", 1],
|
|
@@ -5682,10 +5886,10 @@ var wp = (e) => {
|
|
|
5682
5886
|
a(e, i, t), u[e] = i, c[i] = t, l[i] = r, o[i] = new RegExp(t, n ? "g" : void 0), s[i] = new RegExp(r, n ? "g" : void 0);
|
|
5683
5887
|
};
|
|
5684
5888
|
h("NUMERICIDENTIFIER", "0|[1-9]\\d*"), h("NUMERICIDENTIFIERLOOSE", "\\d+"), h("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${f}*`), h("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), h("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASEIDENTIFIER", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`), h("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), h("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), h("BUILDIDENTIFIER", `${f}+`), h("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), h("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), h("FULL", `^${c[u.FULLPLAIN]}$`), h("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), h("LOOSE", `^${c[u.LOOSEPLAIN]}$`), h("GTLT", "((?:<|>)?=?)"), h("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), h("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), h("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), h("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), h("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), h("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), h("COERCEPLAIN", `(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`), h("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), h("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), h("COERCERTL", c[u.COERCE], !0), h("COERCERTLFULL", c[u.COERCEFULL], !0), h("LONETILDE", "(?:~>?)"), h("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", h("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), h("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), h("LONECARET", "(?:\\^)"), h("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", h("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), h("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), h("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), h("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), h("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", h("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), h("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), h("STAR", "(<|>)?=?\\s*\\*"), h("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), h("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
5685
|
-
})),
|
|
5889
|
+
})), h_ = /* @__PURE__ */ e(((e, t) => {
|
|
5686
5890
|
var n = Object.freeze({ loose: !0 }), r = Object.freeze({});
|
|
5687
5891
|
t.exports = (e) => e ? typeof e == "object" ? e : n : r;
|
|
5688
|
-
})),
|
|
5892
|
+
})), g_ = /* @__PURE__ */ e(((e, t) => {
|
|
5689
5893
|
var n = /^[0-9]+$/, r = (e, t) => {
|
|
5690
5894
|
if (typeof e == "number" && typeof t == "number") return e === t ? 0 : e < t ? -1 : 1;
|
|
5691
5895
|
let r = n.test(e), i = n.test(t);
|
|
@@ -5696,7 +5900,7 @@ var wp = (e) => {
|
|
|
5696
5900
|
rcompareIdentifiers: (e, t) => r(t, e)
|
|
5697
5901
|
};
|
|
5698
5902
|
})), Z = /* @__PURE__ */ e(((e, t) => {
|
|
5699
|
-
var n =
|
|
5903
|
+
var n = p_(), { MAX_LENGTH: r, MAX_SAFE_INTEGER: i } = f_(), { safeRe: a, t: o } = m_(), s = h_(), { compareIdentifiers: c } = g_();
|
|
5700
5904
|
t.exports = class e {
|
|
5701
5905
|
constructor(t, c) {
|
|
5702
5906
|
if (c = s(c), t instanceof e) {
|
|
@@ -5816,7 +6020,7 @@ var wp = (e) => {
|
|
|
5816
6020
|
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
5817
6021
|
}
|
|
5818
6022
|
};
|
|
5819
|
-
})),
|
|
6023
|
+
})), __ = /* @__PURE__ */ e(((e, t) => {
|
|
5820
6024
|
var n = Z();
|
|
5821
6025
|
t.exports = (e, t, r = !1) => {
|
|
5822
6026
|
if (e instanceof n) return e;
|
|
@@ -5827,19 +6031,19 @@ var wp = (e) => {
|
|
|
5827
6031
|
throw e;
|
|
5828
6032
|
}
|
|
5829
6033
|
};
|
|
5830
|
-
})),
|
|
5831
|
-
var n =
|
|
6034
|
+
})), v_ = /* @__PURE__ */ e(((e, t) => {
|
|
6035
|
+
var n = __();
|
|
5832
6036
|
t.exports = (e, t) => {
|
|
5833
6037
|
let r = n(e, t);
|
|
5834
6038
|
return r ? r.version : null;
|
|
5835
6039
|
};
|
|
5836
|
-
})),
|
|
5837
|
-
var n =
|
|
6040
|
+
})), y_ = /* @__PURE__ */ e(((e, t) => {
|
|
6041
|
+
var n = __();
|
|
5838
6042
|
t.exports = (e, t) => {
|
|
5839
6043
|
let r = n(e.trim().replace(/^[=v]+/, ""), t);
|
|
5840
6044
|
return r ? r.version : null;
|
|
5841
6045
|
};
|
|
5842
|
-
})),
|
|
6046
|
+
})), b_ = /* @__PURE__ */ e(((e, t) => {
|
|
5843
6047
|
var n = Z();
|
|
5844
6048
|
t.exports = (e, t, r, i, a) => {
|
|
5845
6049
|
typeof r == "string" && (a = i, i = r, r = void 0);
|
|
@@ -5849,8 +6053,8 @@ var wp = (e) => {
|
|
|
5849
6053
|
return null;
|
|
5850
6054
|
}
|
|
5851
6055
|
};
|
|
5852
|
-
})),
|
|
5853
|
-
var n =
|
|
6056
|
+
})), x_ = /* @__PURE__ */ e(((e, t) => {
|
|
6057
|
+
var n = __();
|
|
5854
6058
|
t.exports = (e, t) => {
|
|
5855
6059
|
let r = n(e, null, !0), i = n(t, null, !0), a = r.compare(i);
|
|
5856
6060
|
if (a === 0) return null;
|
|
@@ -5862,17 +6066,17 @@ var wp = (e) => {
|
|
|
5862
6066
|
let u = l ? "pre" : "";
|
|
5863
6067
|
return r.major === i.major ? r.minor === i.minor ? r.patch === i.patch ? "prerelease" : u + "patch" : u + "minor" : u + "major";
|
|
5864
6068
|
};
|
|
5865
|
-
})),
|
|
6069
|
+
})), S_ = /* @__PURE__ */ e(((e, t) => {
|
|
5866
6070
|
var n = Z();
|
|
5867
6071
|
t.exports = (e, t) => new n(e, t).major;
|
|
5868
|
-
})),
|
|
6072
|
+
})), C_ = /* @__PURE__ */ e(((e, t) => {
|
|
5869
6073
|
var n = Z();
|
|
5870
6074
|
t.exports = (e, t) => new n(e, t).minor;
|
|
5871
|
-
})),
|
|
6075
|
+
})), w_ = /* @__PURE__ */ e(((e, t) => {
|
|
5872
6076
|
var n = Z();
|
|
5873
6077
|
t.exports = (e, t) => new n(e, t).patch;
|
|
5874
|
-
})),
|
|
5875
|
-
var n =
|
|
6078
|
+
})), T_ = /* @__PURE__ */ e(((e, t) => {
|
|
6079
|
+
var n = __();
|
|
5876
6080
|
t.exports = (e, t) => {
|
|
5877
6081
|
let r = n(e, t);
|
|
5878
6082
|
return r && r.prerelease.length ? r.prerelease : null;
|
|
@@ -5880,44 +6084,44 @@ var wp = (e) => {
|
|
|
5880
6084
|
})), Q = /* @__PURE__ */ e(((e, t) => {
|
|
5881
6085
|
var n = Z();
|
|
5882
6086
|
t.exports = (e, t, r) => new n(e, r).compare(new n(t, r));
|
|
5883
|
-
})),
|
|
6087
|
+
})), E_ = /* @__PURE__ */ e(((e, t) => {
|
|
5884
6088
|
var n = Q();
|
|
5885
6089
|
t.exports = (e, t, r) => n(t, e, r);
|
|
5886
|
-
})),
|
|
6090
|
+
})), D_ = /* @__PURE__ */ e(((e, t) => {
|
|
5887
6091
|
var n = Q();
|
|
5888
6092
|
t.exports = (e, t) => n(e, t, !0);
|
|
5889
|
-
})),
|
|
6093
|
+
})), O_ = /* @__PURE__ */ e(((e, t) => {
|
|
5890
6094
|
var n = Z();
|
|
5891
6095
|
t.exports = (e, t, r) => {
|
|
5892
6096
|
let i = new n(e, r), a = new n(t, r);
|
|
5893
6097
|
return i.compare(a) || i.compareBuild(a);
|
|
5894
6098
|
};
|
|
5895
|
-
})),
|
|
5896
|
-
var n =
|
|
6099
|
+
})), k_ = /* @__PURE__ */ e(((e, t) => {
|
|
6100
|
+
var n = O_();
|
|
5897
6101
|
t.exports = (e, t) => e.sort((e, r) => n(e, r, t));
|
|
5898
|
-
})),
|
|
5899
|
-
var n =
|
|
6102
|
+
})), A_ = /* @__PURE__ */ e(((e, t) => {
|
|
6103
|
+
var n = O_();
|
|
5900
6104
|
t.exports = (e, t) => e.sort((e, r) => n(r, e, t));
|
|
5901
|
-
})),
|
|
6105
|
+
})), j_ = /* @__PURE__ */ e(((e, t) => {
|
|
5902
6106
|
var n = Q();
|
|
5903
6107
|
t.exports = (e, t, r) => n(e, t, r) > 0;
|
|
5904
|
-
})),
|
|
6108
|
+
})), M_ = /* @__PURE__ */ e(((e, t) => {
|
|
5905
6109
|
var n = Q();
|
|
5906
6110
|
t.exports = (e, t, r) => n(e, t, r) < 0;
|
|
5907
|
-
})),
|
|
6111
|
+
})), N_ = /* @__PURE__ */ e(((e, t) => {
|
|
5908
6112
|
var n = Q();
|
|
5909
6113
|
t.exports = (e, t, r) => n(e, t, r) === 0;
|
|
5910
|
-
})),
|
|
6114
|
+
})), P_ = /* @__PURE__ */ e(((e, t) => {
|
|
5911
6115
|
var n = Q();
|
|
5912
6116
|
t.exports = (e, t, r) => n(e, t, r) !== 0;
|
|
5913
|
-
})),
|
|
6117
|
+
})), F_ = /* @__PURE__ */ e(((e, t) => {
|
|
5914
6118
|
var n = Q();
|
|
5915
6119
|
t.exports = (e, t, r) => n(e, t, r) >= 0;
|
|
5916
|
-
})),
|
|
6120
|
+
})), I_ = /* @__PURE__ */ e(((e, t) => {
|
|
5917
6121
|
var n = Q();
|
|
5918
6122
|
t.exports = (e, t, r) => n(e, t, r) <= 0;
|
|
5919
|
-
})),
|
|
5920
|
-
var n =
|
|
6123
|
+
})), L_ = /* @__PURE__ */ e(((e, t) => {
|
|
6124
|
+
var n = N_(), r = P_(), i = j_(), a = F_(), o = M_(), s = I_();
|
|
5921
6125
|
t.exports = (e, t, c, l) => {
|
|
5922
6126
|
switch (t) {
|
|
5923
6127
|
case "===": return typeof e == "object" && (e = e.version), typeof c == "object" && (c = c.version), e === c;
|
|
@@ -5933,8 +6137,8 @@ var wp = (e) => {
|
|
|
5933
6137
|
default: throw TypeError(`Invalid operator: ${t}`);
|
|
5934
6138
|
}
|
|
5935
6139
|
};
|
|
5936
|
-
})),
|
|
5937
|
-
var n = Z(), r =
|
|
6140
|
+
})), R_ = /* @__PURE__ */ e(((e, t) => {
|
|
6141
|
+
var n = Z(), r = __(), { safeRe: i, t: a } = m_();
|
|
5938
6142
|
t.exports = (e, t) => {
|
|
5939
6143
|
if (e instanceof n) return e;
|
|
5940
6144
|
if (typeof e == "number" && (e = String(e)), typeof e != "string") return null;
|
|
@@ -5950,7 +6154,7 @@ var wp = (e) => {
|
|
|
5950
6154
|
let s = o[2];
|
|
5951
6155
|
return r(`${s}.${o[3] || "0"}.${o[4] || "0"}${t.includePrerelease && o[5] ? `-${o[5]}` : ""}${t.includePrerelease && o[6] ? `+${o[6]}` : ""}`, t);
|
|
5952
6156
|
};
|
|
5953
|
-
})),
|
|
6157
|
+
})), z_ = /* @__PURE__ */ e(((e, t) => {
|
|
5954
6158
|
t.exports = class {
|
|
5955
6159
|
constructor() {
|
|
5956
6160
|
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
@@ -6040,7 +6244,7 @@ var wp = (e) => {
|
|
|
6040
6244
|
return !1;
|
|
6041
6245
|
}
|
|
6042
6246
|
};
|
|
6043
|
-
var r = new (
|
|
6247
|
+
var r = new (z_())(), i = h_(), a = B_(), o = p_(), s = Z(), { safeRe: c, t: l, comparatorTrimReplace: u, tildeTrimReplace: d, caretTrimReplace: f } = m_(), { FLAG_INCLUDE_PRERELEASE: p, FLAG_LOOSE: m } = f_(), h = (e) => e.value === "<0.0.0-0", g = (e) => e.value === "", _ = (e, t) => {
|
|
6044
6248
|
let n = !0, r = e.slice(), i = r.pop();
|
|
6045
6249
|
for (; n && r.length;) n = r.every((e) => i.intersects(e, t)), i = r.pop();
|
|
6046
6250
|
return n;
|
|
@@ -6078,7 +6282,7 @@ var wp = (e) => {
|
|
|
6078
6282
|
}
|
|
6079
6283
|
return !0;
|
|
6080
6284
|
};
|
|
6081
|
-
})),
|
|
6285
|
+
})), B_ = /* @__PURE__ */ e(((e, t) => {
|
|
6082
6286
|
var n = Symbol("SemVer ANY");
|
|
6083
6287
|
t.exports = class e {
|
|
6084
6288
|
static get ANY() {
|
|
@@ -6113,8 +6317,8 @@ var wp = (e) => {
|
|
|
6113
6317
|
return this.operator === "" ? this.value === "" ? !0 : new l(t.value, n).test(this.value) : t.operator === "" ? t.value === "" ? !0 : new l(this.value, n).test(t.semver) : (n = r(n), n.includePrerelease && (this.value === "<0.0.0-0" || t.value === "<0.0.0-0") || !n.includePrerelease && (this.value.startsWith("<0.0.0") || t.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && t.operator.startsWith(">") || this.operator.startsWith("<") && t.operator.startsWith("<") || this.semver.version === t.semver.version && this.operator.includes("=") && t.operator.includes("=") || o(this.semver, "<", t.semver, n) && this.operator.startsWith(">") && t.operator.startsWith("<") || o(this.semver, ">", t.semver, n) && this.operator.startsWith("<") && t.operator.startsWith(">")));
|
|
6114
6318
|
}
|
|
6115
6319
|
};
|
|
6116
|
-
var r =
|
|
6117
|
-
})),
|
|
6320
|
+
var r = h_(), { safeRe: i, t: a } = m_(), o = L_(), s = p_(), c = Z(), l = $();
|
|
6321
|
+
})), V_ = /* @__PURE__ */ e(((e, t) => {
|
|
6118
6322
|
var n = $();
|
|
6119
6323
|
t.exports = (e, t, r) => {
|
|
6120
6324
|
try {
|
|
@@ -6124,10 +6328,10 @@ var wp = (e) => {
|
|
|
6124
6328
|
}
|
|
6125
6329
|
return t.test(e);
|
|
6126
6330
|
};
|
|
6127
|
-
})),
|
|
6331
|
+
})), H_ = /* @__PURE__ */ e(((e, t) => {
|
|
6128
6332
|
var n = $();
|
|
6129
6333
|
t.exports = (e, t) => new n(e, t).set.map((e) => e.map((e) => e.value).join(" ").trim().split(" "));
|
|
6130
|
-
})),
|
|
6334
|
+
})), U_ = /* @__PURE__ */ e(((e, t) => {
|
|
6131
6335
|
var n = Z(), r = $();
|
|
6132
6336
|
t.exports = (e, t, i) => {
|
|
6133
6337
|
let a = null, o = null, s = null;
|
|
@@ -6140,7 +6344,7 @@ var wp = (e) => {
|
|
|
6140
6344
|
s.test(e) && (!a || o.compare(e) === -1) && (a = e, o = new n(a, i));
|
|
6141
6345
|
}), a;
|
|
6142
6346
|
};
|
|
6143
|
-
})),
|
|
6347
|
+
})), W_ = /* @__PURE__ */ e(((e, t) => {
|
|
6144
6348
|
var n = Z(), r = $();
|
|
6145
6349
|
t.exports = (e, t, i) => {
|
|
6146
6350
|
let a = null, o = null, s = null;
|
|
@@ -6153,8 +6357,8 @@ var wp = (e) => {
|
|
|
6153
6357
|
s.test(e) && (!a || o.compare(e) === 1) && (a = e, o = new n(a, i));
|
|
6154
6358
|
}), a;
|
|
6155
6359
|
};
|
|
6156
|
-
})),
|
|
6157
|
-
var n = Z(), r = $(), i =
|
|
6360
|
+
})), G_ = /* @__PURE__ */ e(((e, t) => {
|
|
6361
|
+
var n = Z(), r = $(), i = j_();
|
|
6158
6362
|
t.exports = (e, t) => {
|
|
6159
6363
|
e = new r(e, t);
|
|
6160
6364
|
let a = new n("0.0.0");
|
|
@@ -6178,7 +6382,7 @@ var wp = (e) => {
|
|
|
6178
6382
|
}
|
|
6179
6383
|
return a && e.test(a) ? a : null;
|
|
6180
6384
|
};
|
|
6181
|
-
})),
|
|
6385
|
+
})), K_ = /* @__PURE__ */ e(((e, t) => {
|
|
6182
6386
|
var n = $();
|
|
6183
6387
|
t.exports = (e, t) => {
|
|
6184
6388
|
try {
|
|
@@ -6187,8 +6391,8 @@ var wp = (e) => {
|
|
|
6187
6391
|
return null;
|
|
6188
6392
|
}
|
|
6189
6393
|
};
|
|
6190
|
-
})),
|
|
6191
|
-
var n = Z(), r =
|
|
6394
|
+
})), q_ = /* @__PURE__ */ e(((e, t) => {
|
|
6395
|
+
var n = Z(), r = B_(), { ANY: i } = r, a = $(), o = V_(), s = j_(), c = M_(), l = I_(), u = F_();
|
|
6192
6396
|
t.exports = (e, t, d, f) => {
|
|
6193
6397
|
e = new n(e, f), t = new a(t, f);
|
|
6194
6398
|
let p, m, h, g, _;
|
|
@@ -6210,17 +6414,17 @@ var wp = (e) => {
|
|
|
6210
6414
|
}
|
|
6211
6415
|
return !0;
|
|
6212
6416
|
};
|
|
6213
|
-
})),
|
|
6214
|
-
var n =
|
|
6417
|
+
})), J_ = /* @__PURE__ */ e(((e, t) => {
|
|
6418
|
+
var n = q_();
|
|
6215
6419
|
t.exports = (e, t, r) => n(e, t, ">", r);
|
|
6216
|
-
})),
|
|
6217
|
-
var n =
|
|
6420
|
+
})), Y_ = /* @__PURE__ */ e(((e, t) => {
|
|
6421
|
+
var n = q_();
|
|
6218
6422
|
t.exports = (e, t, r) => n(e, t, "<", r);
|
|
6219
|
-
})),
|
|
6423
|
+
})), X_ = /* @__PURE__ */ e(((e, t) => {
|
|
6220
6424
|
var n = $();
|
|
6221
6425
|
t.exports = (e, t, r) => (e = new n(e, r), t = new n(t, r), e.intersects(t, r));
|
|
6222
|
-
})),
|
|
6223
|
-
var n =
|
|
6426
|
+
})), Z_ = /* @__PURE__ */ e(((e, t) => {
|
|
6427
|
+
var n = V_(), r = Q();
|
|
6224
6428
|
t.exports = (e, t, i) => {
|
|
6225
6429
|
let a = [], o = null, s = null, c = e.sort((e, t) => r(e, t, i));
|
|
6226
6430
|
for (let e of c) n(e, t, i) ? (s = e, o ||= e) : (s && a.push([o, s]), s = null, o = null);
|
|
@@ -6230,8 +6434,8 @@ var wp = (e) => {
|
|
|
6230
6434
|
let u = l.join(" || "), d = typeof t.raw == "string" ? t.raw : String(t);
|
|
6231
6435
|
return u.length < d.length ? u : t;
|
|
6232
6436
|
};
|
|
6233
|
-
})),
|
|
6234
|
-
var n = $(), r =
|
|
6437
|
+
})), Q_ = /* @__PURE__ */ e(((e, t) => {
|
|
6438
|
+
var n = $(), r = B_(), { ANY: i } = r, a = V_(), o = Q(), s = (e, t, r = {}) => {
|
|
6235
6439
|
if (e === t) return !0;
|
|
6236
6440
|
e = new n(e, r), t = new n(t, r);
|
|
6237
6441
|
let i = !1;
|
|
@@ -6289,46 +6493,46 @@ var wp = (e) => {
|
|
|
6289
6493
|
return r < 0 ? e : r > 0 || t.operator === "<" && e.operator === "<=" ? t : e;
|
|
6290
6494
|
};
|
|
6291
6495
|
t.exports = s;
|
|
6292
|
-
})),
|
|
6293
|
-
var n =
|
|
6496
|
+
})), $_ = (/* @__PURE__ */ e(((e, t) => {
|
|
6497
|
+
var n = m_(), r = f_(), i = Z(), a = g_();
|
|
6294
6498
|
t.exports = {
|
|
6295
|
-
parse:
|
|
6296
|
-
valid:
|
|
6297
|
-
clean:
|
|
6298
|
-
inc:
|
|
6299
|
-
diff:
|
|
6300
|
-
major:
|
|
6301
|
-
minor:
|
|
6302
|
-
patch:
|
|
6303
|
-
prerelease:
|
|
6499
|
+
parse: __(),
|
|
6500
|
+
valid: v_(),
|
|
6501
|
+
clean: y_(),
|
|
6502
|
+
inc: b_(),
|
|
6503
|
+
diff: x_(),
|
|
6504
|
+
major: S_(),
|
|
6505
|
+
minor: C_(),
|
|
6506
|
+
patch: w_(),
|
|
6507
|
+
prerelease: T_(),
|
|
6304
6508
|
compare: Q(),
|
|
6305
|
-
rcompare:
|
|
6306
|
-
compareLoose:
|
|
6307
|
-
compareBuild:
|
|
6308
|
-
sort:
|
|
6309
|
-
rsort:
|
|
6310
|
-
gt:
|
|
6311
|
-
lt:
|
|
6312
|
-
eq:
|
|
6313
|
-
neq:
|
|
6314
|
-
gte:
|
|
6315
|
-
lte:
|
|
6316
|
-
cmp:
|
|
6317
|
-
coerce:
|
|
6318
|
-
Comparator:
|
|
6509
|
+
rcompare: E_(),
|
|
6510
|
+
compareLoose: D_(),
|
|
6511
|
+
compareBuild: O_(),
|
|
6512
|
+
sort: k_(),
|
|
6513
|
+
rsort: A_(),
|
|
6514
|
+
gt: j_(),
|
|
6515
|
+
lt: M_(),
|
|
6516
|
+
eq: N_(),
|
|
6517
|
+
neq: P_(),
|
|
6518
|
+
gte: F_(),
|
|
6519
|
+
lte: I_(),
|
|
6520
|
+
cmp: L_(),
|
|
6521
|
+
coerce: R_(),
|
|
6522
|
+
Comparator: B_(),
|
|
6319
6523
|
Range: $(),
|
|
6320
|
-
satisfies:
|
|
6321
|
-
toComparators:
|
|
6322
|
-
maxSatisfying:
|
|
6323
|
-
minSatisfying:
|
|
6324
|
-
minVersion:
|
|
6325
|
-
validRange:
|
|
6326
|
-
outside:
|
|
6327
|
-
gtr:
|
|
6328
|
-
ltr:
|
|
6329
|
-
intersects:
|
|
6330
|
-
simplifyRange:
|
|
6331
|
-
subset:
|
|
6524
|
+
satisfies: V_(),
|
|
6525
|
+
toComparators: H_(),
|
|
6526
|
+
maxSatisfying: U_(),
|
|
6527
|
+
minSatisfying: W_(),
|
|
6528
|
+
minVersion: G_(),
|
|
6529
|
+
validRange: K_(),
|
|
6530
|
+
outside: q_(),
|
|
6531
|
+
gtr: J_(),
|
|
6532
|
+
ltr: Y_(),
|
|
6533
|
+
intersects: X_(),
|
|
6534
|
+
simplifyRange: Z_(),
|
|
6535
|
+
subset: Q_(),
|
|
6332
6536
|
SemVer: i,
|
|
6333
6537
|
re: n.re,
|
|
6334
6538
|
src: n.src,
|
|
@@ -6338,15 +6542,15 @@ var wp = (e) => {
|
|
|
6338
6542
|
compareIdentifiers: a.compareIdentifiers,
|
|
6339
6543
|
rcompareIdentifiers: a.rcompareIdentifiers
|
|
6340
6544
|
};
|
|
6341
|
-
})))(),
|
|
6342
|
-
parser:
|
|
6545
|
+
})))(), ev = (e, t) => tv(t) ? t.hostnames.includes(new URL(e).hostname) : nv(t) ? !!e.match(t.regexp) : !1, tv = (e) => t_.safeParse(e).success, nv = (e) => n_.safeParse(e).success, rv = (e, t) => t ? (0, $_.satisfies)(e, t) : !0, iv = (e, t, n) => rv(t, n.libraryVersionRange) && ev(e, n.matcher), av = (e, t) => e.siteRegistrations.filter((e) => iv(t, Qg(), e)), ov = (e, t) => av(e, t).flatMap(({ parsers: e, name: t }) => e.filter((e) => l_(e) && e in Xg).map((e) => ({
|
|
6546
|
+
parser: Xg[e],
|
|
6343
6547
|
parserType: e,
|
|
6344
6548
|
name: t
|
|
6345
|
-
}))),
|
|
6346
|
-
let n =
|
|
6549
|
+
}))), sv = (e, t) => {
|
|
6550
|
+
let n = ov(e, t.url);
|
|
6347
6551
|
for (let { parser: e, parserType: r, name: i } of n) {
|
|
6348
6552
|
let n = e(t);
|
|
6349
|
-
if (
|
|
6553
|
+
if (Xc(n) || Zc(n) || Qc(n)) return {
|
|
6350
6554
|
...n,
|
|
6351
6555
|
meta: {
|
|
6352
6556
|
parserName: i,
|
|
@@ -6356,26 +6560,26 @@ var wp = (e) => {
|
|
|
6356
6560
|
};
|
|
6357
6561
|
}
|
|
6358
6562
|
return {
|
|
6359
|
-
...
|
|
6563
|
+
...uc(t),
|
|
6360
6564
|
meta: {
|
|
6361
6565
|
parserName: null,
|
|
6362
6566
|
parserType: X.NoResourceFound,
|
|
6363
6567
|
referrer: t.url
|
|
6364
6568
|
}
|
|
6365
6569
|
};
|
|
6366
|
-
},
|
|
6570
|
+
}, cv = (e, t) => {
|
|
6367
6571
|
switch (t) {
|
|
6368
6572
|
case Ao.CA: return new URL(`https://${e}.rl.ca.talis.com`);
|
|
6369
6573
|
default: return new URL(`https://${e}.rl.talis.com`);
|
|
6370
6574
|
}
|
|
6371
|
-
},
|
|
6372
|
-
let n =
|
|
6575
|
+
}, lv = (e, t) => {
|
|
6576
|
+
let n = cv(e, t);
|
|
6373
6577
|
return new URL("/ui/forms/bookmarklet.html", n);
|
|
6374
|
-
},
|
|
6578
|
+
}, uv = (e, t, n) => {
|
|
6375
6579
|
let r = To(t);
|
|
6376
6580
|
r.append("fast", "true"), r.append("breakout", "true"), n && (n.parserName && r.append("targetTitle", n.parserName), r.append("referrer", n.referrer));
|
|
6377
6581
|
let i = new URL(e.toString());
|
|
6378
6582
|
return i.search = r.toString(), i;
|
|
6379
6583
|
};
|
|
6380
6584
|
//#endregion
|
|
6381
|
-
export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre,
|
|
6585
|
+
export { ro as BookGenresSchema, Lo as CustomerListSchema, Io as CustomerSchema, Ko as DirectLinkOnlyResultSchema, F as Genre, t_ as HostnamesMatcherSchema, io as JournalGenresSchema, bo as NON_OPENURL_PROPERTIES, oo as NonOpenUrlPropertiesSchema, Go as NothingParsedResultSchema, yo as OPENURL_KEYS, lo as OpenUrlAudioVisualResourceSchema, so as OpenUrlBookResourceSchema, fo as OpenUrlDocumentResourceSchema, uo as OpenUrlImageResourceSchema, co as OpenUrlJournalResourceSchema, ao as OpenUrlResourceSchema, qo as OpenUrlResultSchema, po as OpenUrlWebpageResourceSchema, Xg as PARSERS, a_ as ParserRegistrySchema, X as ParserType, Wo as ParsingMetadataSchema, Po as ParsingRequestSchema, Zo as ParsingResponseSchema, Xo as ParsingResultSchema, e_ as REGISTRY, n_ as RegExpMatcherSchema, u_ as ResourceDataSchema, mo as ResourceSchema, i_ as SiteRegistrationSchema, Yo as SummonSearchResultSchema, Ao as TenantRegion, Mo as TenantRegistrySchema, jo as TenantSchema, r_ as UrlMatcherSchema, Jo as Z3988SearchResultSchema, Ho as convertCustomerListToTenantRegistry, R as createAudioVisual, I as createBook, go as createDocument, ho as createImage, L as createJournal, _o as createWebpage, Qo as directLinkOnly, Do as fromOpenUrl, lv as getBaseBookmarkingUrl, Qg as getLibraryVersion, Ro as isCustomer, zo as isCustomerList, Yc as isDirectLinkOnlyResult, ko as isGenre, $c as isNothingParsedResult, Xc as isOpenUrlResult, o_ as isParserRegistry, l_ as isParserType, Jc as isParsingMetadata, Fo as isParsingRequest, qc as isParsingResponse, Kc as isParsingResult, d_ as isResourceData, s_ as isSiteRegistration, Qc as isSummonSearchResult, Bo as isTenant, Vo as isTenantRegion, c_ as isUrlMatcher, Zc as isZ3988SearchResult, z as nothingParsed, B as openUrlResource, sv as parseResource, es as summonSearchResult, uv as toBookmarkingWorkflowUrl, To as toOpenUrl, $o as z3988SearchResult };
|