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