@talisdev/bibliographic-resource-parsers-lib 5.28.0 → 5.29.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.
@@ -25,7 +25,7 @@ function m(e, t, r) {
25
25
  value: (a) => r?.Parent && a instanceof r.Parent ? !0 : a?._zod?.traits?.has(e)
26
26
  }), Object.defineProperty(i, "name", { value: e }), i;
27
27
  }
28
- class Oe extends Error {
28
+ class xe extends Error {
29
29
  constructor() {
30
30
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
31
31
  }
@@ -368,7 +368,7 @@ function ai(e, t = (r) => r.message) {
368
368
  const Ar = (e) => (t, r, n, o) => {
369
369
  const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
370
370
  if (i instanceof Promise)
371
- throw new Oe();
371
+ throw new xe();
372
372
  if (i.issues.length) {
373
373
  const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, me())));
374
374
  throw So(a, o?.callee), a;
@@ -385,7 +385,7 @@ const Ar = (e) => (t, r, n, o) => {
385
385
  }, st = (e) => (t, r, n) => {
386
386
  const o = n ? { ...n, async: !1 } : { async: !1 }, s = t._zod.run({ value: r, issues: [] }, o);
387
387
  if (s instanceof Promise)
388
- throw new Oe();
388
+ throw new xe();
389
389
  return s.issues.length ? {
390
390
  success: !1,
391
391
  error: new (e ?? wo)(s.issues.map((i) => ge(i, o, me())))
@@ -400,10 +400,10 @@ const Ar = (e) => (t, r, n, o) => {
400
400
  }, ui = /* @__PURE__ */ it(Ro), li = (e) => (t, r, n) => {
401
401
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
402
402
  return Ar(e)(t, r, o);
403
- }, pi = (e) => (t, r, n) => Ar(e)(t, r, n), hi = (e) => async (t, r, n) => {
403
+ }, pi = (e) => (t, r, n) => Ar(e)(t, r, n), fi = (e) => async (t, r, n) => {
404
404
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
405
405
  return wr(e)(t, r, o);
406
- }, fi = (e) => async (t, r, n) => wr(e)(t, r, n), di = (e) => (t, r, n) => {
406
+ }, hi = (e) => async (t, r, n) => wr(e)(t, r, n), di = (e) => (t, r, n) => {
407
407
  const o = n ? Object.assign(n, { direction: "backward" }) : { direction: "backward" };
408
408
  return st(e)(t, r, o);
409
409
  }, mi = (e) => (t, r, n) => st(e)(t, r, n), gi = (e) => async (t, r, n) => {
@@ -413,7 +413,7 @@ const Ar = (e) => (t, r, n, o) => {
413
413
  function ki() {
414
414
  return new RegExp(Ii, "u");
415
415
  }
416
- const Ci = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Oi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, xi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ni = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Io = /^[A-Za-z0-9_-]*$/, zi = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Li = /^\+(?:[0-9]){6,14}[0-9]$/, ko = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ti = /* @__PURE__ */ new RegExp(`^${ko}$`);
416
+ const Ci = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Pi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, xi = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Oi = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ni = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Io = /^[A-Za-z0-9_-]*$/, zi = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Li = /^\+(?:[0-9]){6,14}[0-9]$/, ko = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Ti = /* @__PURE__ */ new RegExp(`^${ko}$`);
417
417
  function Co(e) {
418
418
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
419
419
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
@@ -437,7 +437,7 @@ const ji = (e) => {
437
437
  number: "number",
438
438
  bigint: "bigint",
439
439
  object: "date"
440
- }, Oo = /* @__PURE__ */ m("$ZodCheckLessThan", (e, t) => {
440
+ }, xo = /* @__PURE__ */ m("$ZodCheckLessThan", (e, t) => {
441
441
  se.init(e, t);
442
442
  const r = Po[typeof t.value];
443
443
  e._zod.onattach.push((n) => {
@@ -454,7 +454,7 @@ const ji = (e) => {
454
454
  continue: !t.abort
455
455
  });
456
456
  };
457
- }), xo = /* @__PURE__ */ m("$ZodCheckGreaterThan", (e, t) => {
457
+ }), Oo = /* @__PURE__ */ m("$ZodCheckGreaterThan", (e, t) => {
458
458
  se.init(e, t);
459
459
  const r = Po[typeof t.value];
460
460
  e._zod.onattach.push((n) => {
@@ -744,15 +744,15 @@ const oa = {
744
744
  else {
745
745
  const o = (i, a, c) => {
746
746
  let u = Ce(i), l;
747
- for (const f of a) {
748
- if (f._zod.def.when) {
749
- if (!f._zod.def.when(i))
747
+ for (const h of a) {
748
+ if (h._zod.def.when) {
749
+ if (!h._zod.def.when(i))
750
750
  continue;
751
751
  } else if (u)
752
752
  continue;
753
- const d = i.issues.length, g = f._zod.check(i);
753
+ const d = i.issues.length, g = h._zod.check(i);
754
754
  if (g instanceof Promise && c?.async === !1)
755
- throw new Oe();
755
+ throw new xe();
756
756
  if (l || g instanceof Promise)
757
757
  l = (l ?? Promise.resolve()).then(async () => {
758
758
  await g, i.issues.length !== d && (u || (u = Ce(i, d)));
@@ -770,7 +770,7 @@ const oa = {
770
770
  const u = o(a, n, c);
771
771
  if (u instanceof Promise) {
772
772
  if (c.async === !1)
773
- throw new Oe();
773
+ throw new xe();
774
774
  return u.then((l) => e._zod.parse(l, c));
775
775
  }
776
776
  return e._zod.parse(u, c);
@@ -785,7 +785,7 @@ const oa = {
785
785
  const c = e._zod.parse(i, a);
786
786
  if (c instanceof Promise) {
787
787
  if (a.async === !1)
788
- throw new Oe();
788
+ throw new xe();
789
789
  return c.then((u) => o(u, n, a));
790
790
  }
791
791
  return o(c, n, a);
@@ -879,9 +879,9 @@ const oa = {
879
879
  t.pattern ?? (t.pattern = $i), M.init(e, t);
880
880
  }), pa = /* @__PURE__ */ m("$ZodCUID", (e, t) => {
881
881
  t.pattern ?? (t.pattern = bi), M.init(e, t);
882
- }), ha = /* @__PURE__ */ m("$ZodCUID2", (e, t) => {
882
+ }), fa = /* @__PURE__ */ m("$ZodCUID2", (e, t) => {
883
883
  t.pattern ?? (t.pattern = _i), M.init(e, t);
884
- }), fa = /* @__PURE__ */ m("$ZodULID", (e, t) => {
884
+ }), ha = /* @__PURE__ */ m("$ZodULID", (e, t) => {
885
885
  t.pattern ?? (t.pattern = yi), M.init(e, t);
886
886
  }), da = /* @__PURE__ */ m("$ZodXID", (e, t) => {
887
887
  t.pattern ?? (t.pattern = Ei), M.init(e, t);
@@ -918,9 +918,9 @@ const oa = {
918
918
  }
919
919
  };
920
920
  }), Sa = /* @__PURE__ */ m("$ZodCIDRv4", (e, t) => {
921
- t.pattern ?? (t.pattern = Oi), M.init(e, t);
921
+ t.pattern ?? (t.pattern = xi), M.init(e, t);
922
922
  }), $a = /* @__PURE__ */ m("$ZodCIDRv6", (e, t) => {
923
- t.pattern ?? (t.pattern = xi), M.init(e, t), e._zod.check = (r) => {
923
+ t.pattern ?? (t.pattern = Oi), M.init(e, t), e._zod.check = (r) => {
924
924
  const n = r.value.split("/");
925
925
  try {
926
926
  if (n.length !== 2)
@@ -1035,7 +1035,7 @@ const Ca = /* @__PURE__ */ m("$ZodJWT", (e, t) => {
1035
1035
  };
1036
1036
  }), Pa = /* @__PURE__ */ m("$ZodNumber", (e, t) => {
1037
1037
  Mi.init(e, t), zo.init(e, t);
1038
- }), Oa = /* @__PURE__ */ m("$ZodNull", (e, t) => {
1038
+ }), xa = /* @__PURE__ */ m("$ZodNull", (e, t) => {
1039
1039
  W.init(e, t), e._zod.pattern = Ui, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1040
1040
  const o = r.value;
1041
1041
  return o === null || r.issues.push({
@@ -1045,7 +1045,7 @@ const Ca = /* @__PURE__ */ m("$ZodJWT", (e, t) => {
1045
1045
  inst: e
1046
1046
  }), r;
1047
1047
  };
1048
- }), xa = /* @__PURE__ */ m("$ZodUnknown", (e, t) => {
1048
+ }), Oa = /* @__PURE__ */ m("$ZodUnknown", (e, t) => {
1049
1049
  W.init(e, t), e._zod.parse = (r) => r;
1050
1050
  }), Na = /* @__PURE__ */ m("$ZodNever", (e, t) => {
1051
1051
  W.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
@@ -1106,8 +1106,8 @@ function To(e, t, r, n, o, s) {
1106
1106
  i.push(l);
1107
1107
  continue;
1108
1108
  }
1109
- const f = c.run({ value: t[l], issues: [] }, n);
1110
- f instanceof Promise ? e.push(f.then((d) => rt(d, r, l, t))) : rt(f, r, l, t);
1109
+ const h = c.run({ value: t[l], issues: [] }, n);
1110
+ h instanceof Promise ? e.push(h.then((d) => rt(d, r, l, t))) : rt(h, r, l, t);
1111
1111
  }
1112
1112
  return i.length && r.issues.push({
1113
1113
  code: "unrecognized_keys",
@@ -1135,8 +1135,8 @@ const La = /* @__PURE__ */ m("$ZodObject", (e, t) => {
1135
1135
  const l = a[u]._zod;
1136
1136
  if (l.values) {
1137
1137
  c[u] ?? (c[u] = /* @__PURE__ */ new Set());
1138
- for (const f of l.values)
1139
- c[u].add(f);
1138
+ for (const h of l.values)
1139
+ c[u].add(h);
1140
1140
  }
1141
1141
  }
1142
1142
  return c;
@@ -1154,9 +1154,9 @@ const La = /* @__PURE__ */ m("$ZodObject", (e, t) => {
1154
1154
  inst: e
1155
1155
  }), a;
1156
1156
  a.value = {};
1157
- const l = [], f = i.shape;
1157
+ const l = [], h = i.shape;
1158
1158
  for (const d of i.keys) {
1159
- const C = f[d]._zod.run({ value: u[d], issues: [] }, c);
1159
+ const C = h[d]._zod.run({ value: u[d], issues: [] }, c);
1160
1160
  C instanceof Promise ? l.push(C.then((v) => rt(v, a, d, u))) : rt(C, a, d, u);
1161
1161
  }
1162
1162
  return s ? To(l, u, a, c, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
@@ -1201,11 +1201,11 @@ const La = /* @__PURE__ */ m("$ZodObject", (e, t) => {
1201
1201
  };
1202
1202
  let s;
1203
1203
  const i = tt, a = !Eo.jitless, u = a && Xs.value, l = t.catchall;
1204
- let f;
1204
+ let h;
1205
1205
  e._zod.parse = (d, g) => {
1206
- f ?? (f = n.value);
1206
+ h ?? (h = n.value);
1207
1207
  const C = d.value;
1208
- return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), d = s(d, g), l ? To([], C, d, g, f, e) : d) : r(d, g) : (d.issues.push({
1208
+ return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), d = s(d, g), l ? To([], C, d, g, h, e) : d) : r(d, g) : (d.issues.push({
1209
1209
  expected: "object",
1210
1210
  code: "invalid_type",
1211
1211
  input: C,
@@ -1394,7 +1394,7 @@ const ja = /* @__PURE__ */ m("$ZodRecord", (e, t) => {
1394
1394
  if (n.async)
1395
1395
  return (o instanceof Promise ? o : Promise.resolve(o)).then((i) => (r.value = i, r));
1396
1396
  if (o instanceof Promise)
1397
- throw new Oe();
1397
+ throw new xe();
1398
1398
  return r.value = o, r;
1399
1399
  };
1400
1400
  });
@@ -1679,7 +1679,7 @@ function pc(e, t) {
1679
1679
  ...S(t)
1680
1680
  });
1681
1681
  }
1682
- function hc(e, t) {
1682
+ function fc(e, t) {
1683
1683
  return new e({
1684
1684
  type: "string",
1685
1685
  format: "ksuid",
@@ -1688,7 +1688,7 @@ function hc(e, t) {
1688
1688
  ...S(t)
1689
1689
  });
1690
1690
  }
1691
- function fc(e, t) {
1691
+ function hc(e, t) {
1692
1692
  return new e({
1693
1693
  type: "string",
1694
1694
  format: "ipv4",
@@ -1830,7 +1830,7 @@ function Cc(e, t) {
1830
1830
  });
1831
1831
  }
1832
1832
  function un(e, t) {
1833
- return new Oo({
1833
+ return new xo({
1834
1834
  check: "less_than",
1835
1835
  ...S(t),
1836
1836
  value: e,
@@ -1838,7 +1838,7 @@ function un(e, t) {
1838
1838
  });
1839
1839
  }
1840
1840
  function $t(e, t) {
1841
- return new Oo({
1841
+ return new xo({
1842
1842
  check: "less_than",
1843
1843
  ...S(t),
1844
1844
  value: e,
@@ -1846,7 +1846,7 @@ function $t(e, t) {
1846
1846
  });
1847
1847
  }
1848
1848
  function ln(e, t) {
1849
- return new xo({
1849
+ return new Oo({
1850
1850
  check: "greater_than",
1851
1851
  ...S(t),
1852
1852
  value: e,
@@ -1854,7 +1854,7 @@ function ln(e, t) {
1854
1854
  });
1855
1855
  }
1856
1856
  function At(e, t) {
1857
- return new xo({
1857
+ return new Oo({
1858
1858
  check: "greater_than",
1859
1859
  ...S(t),
1860
1860
  value: e,
@@ -1897,14 +1897,14 @@ function Pc(e, t) {
1897
1897
  pattern: e
1898
1898
  });
1899
1899
  }
1900
- function Oc(e) {
1900
+ function xc(e) {
1901
1901
  return new Yi({
1902
1902
  check: "string_format",
1903
1903
  format: "lowercase",
1904
1904
  ...S(e)
1905
1905
  });
1906
1906
  }
1907
- function xc(e) {
1907
+ function Oc(e) {
1908
1908
  return new Ki({
1909
1909
  check: "string_format",
1910
1910
  format: "uppercase",
@@ -2053,7 +2053,7 @@ const Qc = (e, t) => {
2053
2053
  });
2054
2054
  }, ie = m("ZodError", Qc, {
2055
2055
  Parent: Error
2056
- }), eu = /* @__PURE__ */ Ar(ie), tu = /* @__PURE__ */ wr(ie), ru = /* @__PURE__ */ st(ie), nu = /* @__PURE__ */ it(ie), ou = /* @__PURE__ */ li(ie), su = /* @__PURE__ */ pi(ie), iu = /* @__PURE__ */ hi(ie), au = /* @__PURE__ */ fi(ie), cu = /* @__PURE__ */ di(ie), uu = /* @__PURE__ */ mi(ie), lu = /* @__PURE__ */ gi(ie), pu = /* @__PURE__ */ vi(ie), X = /* @__PURE__ */ m("ZodType", (e, t) => (W.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(Ae(t, {
2056
+ }), eu = /* @__PURE__ */ Ar(ie), tu = /* @__PURE__ */ wr(ie), ru = /* @__PURE__ */ st(ie), nu = /* @__PURE__ */ it(ie), ou = /* @__PURE__ */ li(ie), su = /* @__PURE__ */ pi(ie), iu = /* @__PURE__ */ fi(ie), au = /* @__PURE__ */ hi(ie), cu = /* @__PURE__ */ di(ie), uu = /* @__PURE__ */ mi(ie), lu = /* @__PURE__ */ gi(ie), pu = /* @__PURE__ */ vi(ie), X = /* @__PURE__ */ m("ZodType", (e, t) => (W.init(e, t), e.def = t, e.type = t.type, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(Ae(t, {
2057
2057
  checks: [
2058
2058
  ...t.checks ?? [],
2059
2059
  ...r.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
@@ -2074,18 +2074,18 @@ const Qc = (e, t) => {
2074
2074
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Do = /* @__PURE__ */ m("_ZodString", (e, t) => {
2075
2075
  Rr.init(e, t), X.init(e, t);
2076
2076
  const r = e._zod.bag;
2077
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Pc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(zc(...n)), e.endsWith = (...n) => e.check(Lc(...n)), e.min = (...n) => e.check(nt(...n)), e.max = (...n) => e.check(Zo(...n)), e.length = (...n) => e.check(jo(...n)), e.nonempty = (...n) => e.check(nt(1, ...n)), e.lowercase = (n) => e.check(Oc(n)), e.uppercase = (n) => e.check(xc(n)), e.trim = () => e.check(qc()), e.normalize = (...n) => e.check(Tc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(jc());
2078
- }), hu = /* @__PURE__ */ m("ZodString", (e, t) => {
2079
- Rr.init(e, t), Do.init(e, t), e.email = (r) => e.check(tc(fu, r)), e.url = (r) => e.check(qo(Bo, r)), e.jwt = (r) => e.check(yc(Cu, r)), e.emoji = (r) => e.check(ic(mu, r)), e.guid = (r) => e.check(cn(hn, r)), e.uuid = (r) => e.check(rc(Ke, r)), e.uuidv4 = (r) => e.check(nc(Ke, r)), e.uuidv6 = (r) => e.check(oc(Ke, r)), e.uuidv7 = (r) => e.check(sc(Ke, r)), e.nanoid = (r) => e.check(ac(gu, r)), e.guid = (r) => e.check(cn(hn, r)), e.cuid = (r) => e.check(cc(vu, r)), e.cuid2 = (r) => e.check(uc(bu, r)), e.ulid = (r) => e.check(lc(_u, r)), e.base64 = (r) => e.check(vc(Ru, r)), e.base64url = (r) => e.check(bc(Iu, r)), e.xid = (r) => e.check(pc(yu, r)), e.ksuid = (r) => e.check(hc(Eu, r)), e.ipv4 = (r) => e.check(fc(Su, r)), e.ipv6 = (r) => e.check(dc($u, r)), e.cidrv4 = (r) => e.check(mc(Au, r)), e.cidrv6 = (r) => e.check(gc(wu, r)), e.e164 = (r) => e.check(_c(ku, r)), e.datetime = (r) => e.check(Mc(r)), e.date = (r) => e.check(Gc(r)), e.time = (r) => e.check(Hc(r)), e.duration = (r) => e.check(Kc(r));
2077
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Pc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(zc(...n)), e.endsWith = (...n) => e.check(Lc(...n)), e.min = (...n) => e.check(nt(...n)), e.max = (...n) => e.check(Zo(...n)), e.length = (...n) => e.check(jo(...n)), e.nonempty = (...n) => e.check(nt(1, ...n)), e.lowercase = (n) => e.check(xc(n)), e.uppercase = (n) => e.check(Oc(n)), e.trim = () => e.check(qc()), e.normalize = (...n) => e.check(Tc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(jc());
2078
+ }), fu = /* @__PURE__ */ m("ZodString", (e, t) => {
2079
+ Rr.init(e, t), Do.init(e, t), e.email = (r) => e.check(tc(hu, r)), e.url = (r) => e.check(qo(Bo, r)), e.jwt = (r) => e.check(yc(Cu, r)), e.emoji = (r) => e.check(ic(mu, r)), e.guid = (r) => e.check(cn(fn, r)), e.uuid = (r) => e.check(rc(Ke, r)), e.uuidv4 = (r) => e.check(nc(Ke, r)), e.uuidv6 = (r) => e.check(oc(Ke, r)), e.uuidv7 = (r) => e.check(sc(Ke, r)), e.nanoid = (r) => e.check(ac(gu, r)), e.guid = (r) => e.check(cn(fn, r)), e.cuid = (r) => e.check(cc(vu, r)), e.cuid2 = (r) => e.check(uc(bu, r)), e.ulid = (r) => e.check(lc(_u, r)), e.base64 = (r) => e.check(vc(Ru, r)), e.base64url = (r) => e.check(bc(Iu, r)), e.xid = (r) => e.check(pc(yu, r)), e.ksuid = (r) => e.check(fc(Eu, r)), e.ipv4 = (r) => e.check(hc(Su, r)), e.ipv6 = (r) => e.check(dc($u, r)), e.cidrv4 = (r) => e.check(mc(Au, r)), e.cidrv6 = (r) => e.check(gc(wu, r)), e.e164 = (r) => e.check(_c(ku, r)), e.datetime = (r) => e.check(Mc(r)), e.date = (r) => e.check(Gc(r)), e.time = (r) => e.check(Hc(r)), e.duration = (r) => e.check(Kc(r));
2080
2080
  });
2081
2081
  function p(e) {
2082
- return ec(hu, e);
2082
+ return ec(fu, e);
2083
2083
  }
2084
2084
  const G = /* @__PURE__ */ m("ZodStringFormat", (e, t) => {
2085
2085
  M.init(e, t), Do.init(e, t);
2086
- }), fu = /* @__PURE__ */ m("ZodEmail", (e, t) => {
2086
+ }), hu = /* @__PURE__ */ m("ZodEmail", (e, t) => {
2087
2087
  aa.init(e, t), G.init(e, t);
2088
- }), hn = /* @__PURE__ */ m("ZodGUID", (e, t) => {
2088
+ }), fn = /* @__PURE__ */ m("ZodGUID", (e, t) => {
2089
2089
  sa.init(e, t), G.init(e, t);
2090
2090
  }), Ke = /* @__PURE__ */ m("ZodUUID", (e, t) => {
2091
2091
  ia.init(e, t), G.init(e, t);
@@ -2102,9 +2102,9 @@ const mu = /* @__PURE__ */ m("ZodEmoji", (e, t) => {
2102
2102
  }), vu = /* @__PURE__ */ m("ZodCUID", (e, t) => {
2103
2103
  pa.init(e, t), G.init(e, t);
2104
2104
  }), bu = /* @__PURE__ */ m("ZodCUID2", (e, t) => {
2105
- ha.init(e, t), G.init(e, t);
2106
- }), _u = /* @__PURE__ */ m("ZodULID", (e, t) => {
2107
2105
  fa.init(e, t), G.init(e, t);
2106
+ }), _u = /* @__PURE__ */ m("ZodULID", (e, t) => {
2107
+ ha.init(e, t), G.init(e, t);
2108
2108
  }), yu = /* @__PURE__ */ m("ZodXID", (e, t) => {
2109
2109
  da.init(e, t), G.init(e, t);
2110
2110
  }), Eu = /* @__PURE__ */ m("ZodKSUID", (e, t) => {
@@ -2126,7 +2126,7 @@ const mu = /* @__PURE__ */ m("ZodEmoji", (e, t) => {
2126
2126
  }), Cu = /* @__PURE__ */ m("ZodJWT", (e, t) => {
2127
2127
  Ca.init(e, t), G.init(e, t);
2128
2128
  }), Uo = /* @__PURE__ */ m("ZodNumber", (e, t) => {
2129
- zo.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(ln(n, o)), e.gte = (n, o) => e.check(At(n, o)), e.min = (n, o) => e.check(At(n, o)), e.lt = (n, o) => e.check(un(n, o)), e.lte = (n, o) => e.check($t(n, o)), e.max = (n, o) => e.check($t(n, o)), e.int = (n) => e.check(fn(n)), e.safe = (n) => e.check(fn(n)), e.positive = (n) => e.check(ln(0, n)), e.nonnegative = (n) => e.check(At(0, n)), e.negative = (n) => e.check(un(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(pn(n, o)), e.step = (n, o) => e.check(pn(n, o)), e.finite = () => e;
2129
+ zo.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(ln(n, o)), e.gte = (n, o) => e.check(At(n, o)), e.min = (n, o) => e.check(At(n, o)), e.lt = (n, o) => e.check(un(n, o)), e.lte = (n, o) => e.check($t(n, o)), e.max = (n, o) => e.check($t(n, o)), e.int = (n) => e.check(hn(n)), e.safe = (n) => e.check(hn(n)), e.positive = (n) => e.check(ln(0, n)), e.nonnegative = (n) => e.check(At(0, n)), e.negative = (n) => e.check(un(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(pn(n, o)), e.step = (n, o) => e.check(pn(n, o)), e.finite = () => e;
2130
2130
  const r = e._zod.bag;
2131
2131
  e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null;
2132
2132
  });
@@ -2136,20 +2136,20 @@ function Vo(e) {
2136
2136
  const Pu = /* @__PURE__ */ m("ZodNumberFormat", (e, t) => {
2137
2137
  Pa.init(e, t), Uo.init(e, t);
2138
2138
  });
2139
- function fn(e) {
2139
+ function hn(e) {
2140
2140
  return Rc(Pu, e);
2141
2141
  }
2142
- const Ou = /* @__PURE__ */ m("ZodNull", (e, t) => {
2143
- Oa.init(e, t), X.init(e, t);
2142
+ const xu = /* @__PURE__ */ m("ZodNull", (e, t) => {
2143
+ xa.init(e, t), X.init(e, t);
2144
2144
  });
2145
2145
  function ot(e) {
2146
- return Ic(Ou, e);
2146
+ return Ic(xu, e);
2147
2147
  }
2148
- const xu = /* @__PURE__ */ m("ZodUnknown", (e, t) => {
2149
- xa.init(e, t), X.init(e, t);
2148
+ const Ou = /* @__PURE__ */ m("ZodUnknown", (e, t) => {
2149
+ Oa.init(e, t), X.init(e, t);
2150
2150
  });
2151
2151
  function dn() {
2152
- return kc(xu);
2152
+ return kc(Ou);
2153
2153
  }
2154
2154
  const Nu = /* @__PURE__ */ m("ZodNever", (e, t) => {
2155
2155
  Na.init(e, t), X.init(e, t);
@@ -2598,8 +2598,8 @@ const Sm = pe([
2598
2598
  }, vn = (e, t, r, n) => {
2599
2599
  const o = t.getAll(r).filter((s) => !!s).map((s) => s.trim());
2600
2600
  return o.length === 0 ? e : { ...e, [n]: o };
2601
- }, hl = (e) => {
2602
- const t = fl(e), r = (o, s) => {
2601
+ }, fl = (e) => {
2602
+ const t = hl(e), r = (o, s) => {
2603
2603
  if (s === "au")
2604
2604
  return vn(o, t, "rft.au", "au");
2605
2605
  if (s === "rft_id")
@@ -2611,7 +2611,7 @@ const Sm = pe([
2611
2611
  ...Ho
2612
2612
  ].reduce(r, {});
2613
2613
  return Object.keys(n).length === 0 ? null : n;
2614
- }, fl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
2614
+ }, hl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
2615
2615
  function Pm(e) {
2616
2616
  return typeof e != "string" ? !1 : Object.values(E).includes(e);
2617
2617
  }
@@ -2620,7 +2620,7 @@ const Ko = R({
2620
2620
  id: p(),
2621
2621
  name: p(),
2622
2622
  region: Ve(Se)
2623
- }), Om = R({
2623
+ }), xm = R({
2624
2624
  tenants: j(Ko)
2625
2625
  }), bn = 9 * 1024 * 1024, dl = R({
2626
2626
  url: du({
@@ -2640,7 +2640,7 @@ const Ko = R({
2640
2640
  error: (e) => e.input === void 0 ? 'should have the required string property "region"' : '"region" must be a string of EUAPAC or CA'
2641
2641
  })
2642
2642
  });
2643
- function xm(e) {
2643
+ function Om(e) {
2644
2644
  return dl.safeParse(e).success;
2645
2645
  }
2646
2646
  const Qo = R({
@@ -2717,7 +2717,7 @@ function $l() {
2717
2717
  }
2718
2718
  const Al = (e) => {
2719
2719
  const t = e.getAttribute("title");
2720
- return t ? hl(t) : null;
2720
+ return t ? fl(t) : null;
2721
2721
  }, Cr = ({ document: e }) => {
2722
2722
  const t = Array.from(e.querySelectorAll(".Z3988"));
2723
2723
  if (t.length === 0)
@@ -2747,13 +2747,13 @@ const Al = (e) => {
2747
2747
  "#rpi-attribute-book_details-publisher > .rpi-attribute-value > span"
2748
2748
  )?.textContent ?? void 0, Pl = (e) => e.querySelector(
2749
2749
  "#rpi-attribute-book_details-series > .rpi-attribute-value > a"
2750
- )?.textContent ?? void 0, Ol = (e) => {
2750
+ )?.textContent ?? void 0, xl = (e) => {
2751
2751
  const t = e.querySelector(
2752
2752
  "#rpi-attribute-book_details-fiona_pages > .rpi-attribute-value > span"
2753
2753
  )?.textContent ?? void 0;
2754
2754
  return (t ? /\d+/.exec(t)?.[0] : null) ?? void 0;
2755
- }, xl = ({ url: e, document: t }) => {
2756
- const r = wl(t), n = Rl(t), o = Il(t), s = kl(t), i = Cl(t), a = Pl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u = Ol(t);
2755
+ }, Ol = ({ url: e, document: t }) => {
2756
+ const r = wl(t), n = Rl(t), o = Il(t), s = kl(t), i = Cl(t), a = Pl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u = xl(t);
2757
2757
  return {
2758
2758
  bookmarkingWorkflowUrl: null,
2759
2759
  resource: Q(E.Book, {
@@ -2768,7 +2768,7 @@ const Al = (e) => {
2768
2768
  uri: e
2769
2769
  })
2770
2770
  };
2771
- }, he = (e) => {
2771
+ }, fe = (e) => {
2772
2772
  if (e)
2773
2773
  return e.replace(/[^0-9]/g, "");
2774
2774
  }, as = (e) => Array.from(e.querySelectorAll(".author-source-list li a")).filter((t) => t.childNodes.length > 0).map((t) => t.childNodes[0].textContent?.trim()).filter((t) => !!t), cs = (e) => e.querySelector(".article-header")?.querySelector("h1 span")?.textContent.trim(), us = (e) => ({ date: e?.textContent.match(/\d{4}/)?.[0], pub: "Elsevier Inc." }), Nl = (e) => {
@@ -2779,8 +2779,8 @@ const Al = (e) => {
2779
2779
  (i) => i.trim()
2780
2780
  );
2781
2781
  return {
2782
- volume: he(o),
2783
- issue: he(s),
2782
+ volume: fe(o),
2783
+ issue: fe(s),
2784
2784
  jtitle: n
2785
2785
  };
2786
2786
  }, zl = (e) => {
@@ -2862,15 +2862,15 @@ const Al = (e) => {
2862
2862
  const [a, c, u] = r.textContent.split(",").map((l) => l.trim());
2863
2863
  return {
2864
2864
  date: a,
2865
- volume: he(c),
2866
- issue: he(u)
2865
+ volume: fe(c),
2866
+ issue: fe(u)
2867
2867
  };
2868
2868
  }
2869
2869
  const n = t?.querySelector("p")?.textContent, [o, s] = n?.split(",") ?? [];
2870
2870
  return {
2871
2871
  date: t?.querySelector(".source span")?.textContent ?? void 0,
2872
- volume: he(o),
2873
- issue: he(s)
2872
+ volume: fe(o),
2873
+ issue: fe(s)
2874
2874
  };
2875
2875
  }, Ul = (e) => {
2876
2876
  const { date: t, volume: r, issue: n } = Bl(e);
@@ -2913,7 +2913,7 @@ const Vl = (e) => Object.values(ps).includes(
2913
2913
  }
2914
2914
  }, we = R({
2915
2915
  "@context": p()
2916
- }), Ml = (e) => we.safeParse(e).success, hs = 'script[type="application/ld+json"]', fs = (e) => Array.from(e.querySelectorAll(hs)), ct = (e) => e.querySelector(hs), Fe = (e) => {
2916
+ }), Ml = (e) => we.safeParse(e).success, fs = 'script[type="application/ld+json"]', hs = (e) => Array.from(e.querySelectorAll(fs)), ct = (e) => e.querySelector(fs), Fe = (e) => {
2917
2917
  const t = e.textContent;
2918
2918
  if (!t)
2919
2919
  return null;
@@ -2943,7 +2943,7 @@ const Vl = (e) => Object.values(ps).includes(
2943
2943
  }), Gl = we.extend({
2944
2944
  "@graph": j(Wl)
2945
2945
  }), Xl = (e) => Gl.safeParse(e).success, Hl = (e) => {
2946
- const t = fs(e);
2946
+ const t = hs(e);
2947
2947
  if (t.length === 0)
2948
2948
  return null;
2949
2949
  const r = t.map(Fe).filter(Xl).map((n) => n["@graph"]);
@@ -2964,7 +2964,7 @@ const Vl = (e) => Object.values(ps).includes(
2964
2964
  bookmarkingWorkflowUrl: null,
2965
2965
  resource: Ql(t)
2966
2966
  } : T();
2967
- }, ds = () => T(), h = (e, t, r) => {
2967
+ }, ds = () => T(), f = (e, t, r) => {
2968
2968
  const n = te(e, t, r);
2969
2969
  return n.length > 0 ? n[0] : void 0;
2970
2970
  }, te = (e, t, r) => Array.from(
@@ -2999,7 +2999,7 @@ const Vl = (e) => Object.values(ps).includes(
2999
2999
  const n = te(e, "name", "citation_issn");
3000
3000
  return n.length === 2 ? (t = n[1], r = n[0]) : t = n[0], { eissn: t, issn: r };
3001
3001
  }, op = (e) => {
3002
- const t = h(e, "name", "citation_journal_title"), r = h(e, "name", "citation_title"), n = te(e, "name", "citation_author"), o = h(e, "name", "citation_doi"), { eissn: s, issn: i } = np(e), a = h(e, "name", "citation_publisher"), c = h(e, "name", "citation_publication_date"), u = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), d = h(e, "name", "citation_lastpage");
3002
+ const t = f(e, "name", "citation_journal_title"), r = f(e, "name", "citation_title"), n = te(e, "name", "citation_author"), o = f(e, "name", "citation_doi"), { eissn: s, issn: i } = np(e), a = f(e, "name", "citation_publisher"), c = f(e, "name", "citation_publication_date"), u = f(e, "name", "citation_volume"), l = f(e, "name", "citation_issue"), h = f(e, "name", "citation_firstpage"), d = f(e, "name", "citation_lastpage");
3003
3003
  return w(
3004
3004
  D(E.Article, {
3005
3005
  jtitle: t,
@@ -3012,7 +3012,7 @@ const Vl = (e) => Object.values(ps).includes(
3012
3012
  date: c,
3013
3013
  volume: u,
3014
3014
  issue: l,
3015
- spage: f,
3015
+ spage: h,
3016
3016
  epage: d
3017
3017
  })
3018
3018
  );
@@ -3028,7 +3028,7 @@ const Vl = (e) => Object.values(ps).includes(
3028
3028
  };
3029
3029
  var y = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Book = 1] = "Book", e[e.Chapter = 2] = "Chapter", e[e.Journal = 3] = "Journal", e[e.Article = 4] = "Article", e[e.AudioVisual = 5] = "AudioVisual", e[e.Webpage = 6] = "Webpage", e))(y || {});
3030
3030
  const ip = (e) => {
3031
- const t = h(e, "name", "pbContext");
3031
+ const t = f(e, "name", "pbContext");
3032
3032
  if (!t)
3033
3033
  return y.None;
3034
3034
  const r = ms(t);
@@ -3052,19 +3052,19 @@ const ip = (e) => {
3052
3052
  'span[property="isPartOf"][typeof="PublicationVolume"] > span[property="volumeNumber"]'
3053
3053
  )?.textContent ?? void 0, up = (e) => e.querySelector(
3054
3054
  'span[property="isPartOf"][typeof="PublicationIssue"] > span[property="issueNumber"]'
3055
- )?.textContent ?? void 0, lp = (e) => e.querySelector('meta[name="dc.Identifier"][scheme="doi"]')?.getAttribute("content") ?? void 0, pp = (e) => e.querySelector("h1")?.textContent ?? void 0, hp = (e) => {
3055
+ )?.textContent ?? void 0, lp = (e) => e.querySelector('meta[name="dc.Identifier"][scheme="doi"]')?.getAttribute("content") ?? void 0, pp = (e) => e.querySelector("h1")?.textContent ?? void 0, fp = (e) => {
3056
3056
  const t = /* @__PURE__ */ new Map(), r = e.querySelector("h2.heading-m")?.textContent, n = r?.match(/Issue\s+(\d+(?:-\d+)?)/);
3057
3057
  n && t.set("issue", n[1]);
3058
3058
  const o = r?.match(/Volume\s+(\d+)/);
3059
3059
  o && t.set("volume", o[1]);
3060
3060
  const s = r?.match(/(\d{4})$/);
3061
3061
  return s && t.set("date", s[1]), t;
3062
- }, fp = (e) => {
3063
- const t = ap(e.document), r = h(e.document, "name", "dc.Date"), n = lp(e.document), o = gs(e.document), s = o.get("issn"), i = o.get("eissn"), a = up(e.document), c = h(
3062
+ }, hp = (e) => {
3063
+ const t = ap(e.document), r = f(e.document, "name", "dc.Date"), n = lp(e.document), o = gs(e.document), s = o.get("issn"), i = o.get("eissn"), a = up(e.document), c = f(
3064
3064
  e.document,
3065
3065
  "name",
3066
3066
  "citation_journal_title"
3067
- ), u = h(e.document, "name", "dc.Publisher"), l = h(e.document, "name", "dc.Title"), f = cp(e.document);
3067
+ ), u = f(e.document, "name", "dc.Publisher"), l = f(e.document, "name", "dc.Title"), h = cp(e.document);
3068
3068
  return D(E.Article, {
3069
3069
  au: t,
3070
3070
  date: r,
@@ -3074,11 +3074,11 @@ const ip = (e) => {
3074
3074
  jtitle: c,
3075
3075
  pub: u,
3076
3076
  title: l,
3077
- volume: f,
3077
+ volume: h,
3078
3078
  doi: n
3079
3079
  });
3080
3080
  }, dp = (e) => {
3081
- const t = gs(e.document), r = t.get("issn"), n = t.get("eissn"), o = pp(e.document), s = hp(e.document), i = s.get("issue"), a = s.get("volume"), c = s.get("date");
3081
+ const t = gs(e.document), r = t.get("issn"), n = t.get("eissn"), o = pp(e.document), s = fp(e.document), i = s.get("issue"), a = s.get("volume"), c = s.get("date");
3082
3082
  return D(E.Journal, {
3083
3083
  eissn: n,
3084
3084
  issn: r,
@@ -3091,20 +3091,20 @@ const ip = (e) => {
3091
3091
  }, mp = (e) => {
3092
3092
  switch (ip(e.document)) {
3093
3093
  case y.Article:
3094
- return w(fp(e));
3094
+ return w(hp(e));
3095
3095
  case y.Journal:
3096
3096
  return w(dp(e));
3097
3097
  default:
3098
3098
  return T();
3099
3099
  }
3100
3100
  }, gp = (e) => {
3101
- const t = h(e, "name", "citation_type"), r = h(
3101
+ const t = f(e, "name", "citation_type"), r = f(
3102
3102
  e,
3103
3103
  "name",
3104
3104
  "citation_article_type"
3105
3105
  );
3106
3106
  return t === "JOUR" && r ? y.Article : t === "CHP" ? y.Chapter : e.querySelector(".book-edition-year")?.textContent.includes("Book") ? y.Book : e.getElementById("journal-title") ? y.Journal : y.None;
3107
- }, Or = (e) => h(e, "name", "citation_doi") ?? h(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, vp = (e) => {
3107
+ }, xr = (e) => f(e, "name", "citation_doi") ?? f(e, "name", "dc.identifier") ?? e.querySelector(".doi .anchor-text")?.textContent ?? void 0, vp = (e) => {
3108
3108
  const t = Array.from(
3109
3109
  e.querySelectorAll(".kf-details .kf-detail-item:has(h3)")
3110
3110
  ), r = /* @__PURE__ */ new Map();
@@ -3113,7 +3113,7 @@ const ip = (e) => {
3113
3113
  o && s && r.set(o, s);
3114
3114
  }
3115
3115
  return r;
3116
- }, xr = (e, t) => {
3116
+ }, Or = (e, t) => {
3117
3117
  const r = Array.from(e.querySelectorAll(t)).map((n) => n.textContent).filter((n) => !!n);
3118
3118
  return r.length > 0 ? r : void 0;
3119
3119
  }, bp = (e) => {
@@ -3125,7 +3125,7 @@ const ip = (e) => {
3125
3125
  if (t)
3126
3126
  return URL.canParse(t) ? new URL(t).pathname.substring(1) : t;
3127
3127
  }, yp = (e) => {
3128
- const t = vp(e), r = h(e, "property", "og:title"), n = h(e, "property", "og:book:isbn"), o = t.get("Published"), s = xr(e, ".authors-container .author-detail h3"), i = Or(e) ?? _p(t);
3128
+ const t = vp(e), r = f(e, "property", "og:title"), n = f(e, "property", "og:book:isbn"), o = t.get("Published"), s = Or(e, ".authors-container .author-detail h3"), i = xr(e) ?? _p(t);
3129
3129
  return Q(E.Book, {
3130
3130
  au: s,
3131
3131
  date: o,
@@ -3134,7 +3134,7 @@ const ip = (e) => {
3134
3134
  title: r
3135
3135
  });
3136
3136
  }, Ep = (e) => {
3137
- const t = h(e, "property", "og:title"), r = h(e, "property", "og:book:isbn"), n = h(e, "name", "citation_publication_date"), o = xr(e, ".author-group .button-link-text"), s = h(e, "name", "citation_firstpage"), i = h(e, "name", "citation_lastpage"), a = h(e, "name", "citation_publisher"), c = Or(e), u = h(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3137
+ const t = f(e, "property", "og:title"), r = f(e, "property", "og:book:isbn"), n = f(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = f(e, "name", "citation_firstpage"), i = f(e, "name", "citation_lastpage"), a = f(e, "name", "citation_publisher"), c = xr(e), u = f(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3138
3138
  return Q(E.Bookitem, {
3139
3139
  au: o,
3140
3140
  btitle: u,
@@ -3147,7 +3147,7 @@ const ip = (e) => {
3147
3147
  title: t
3148
3148
  });
3149
3149
  }, Sp = (e) => {
3150
- const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o = xr(e, ".author-group .button-link-text"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_issue"), c = h(e, "name", "citation_volume"), u = Or(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3150
+ const t = f(e, "property", "og:title"), r = f(e, "name", "citation_issn"), n = f(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = f(e, "name", "citation_publisher"), i = f(e, "name", "citation_firstpage"), a = f(e, "name", "citation_issue"), c = f(e, "name", "citation_volume"), u = xr(e), l = f(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3151
3151
  return D(E.Article, {
3152
3152
  au: o,
3153
3153
  jtitle: l,
@@ -3180,7 +3180,7 @@ const ip = (e) => {
3180
3180
  return T();
3181
3181
  }
3182
3182
  }, wp = (e) => {
3183
- const t = h(e, "name", "pbContext");
3183
+ const t = f(e, "name", "pbContext");
3184
3184
  return t && ms(t).has("article") ? y.Article : y.Journal;
3185
3185
  }, Rp = (e) => {
3186
3186
  const t = e.querySelector(".itemPageRangeHistory");
@@ -3200,7 +3200,7 @@ const ip = (e) => {
3200
3200
  )?.textContent;
3201
3201
  return t ? t.replace("Issue", "").trim() : void 0;
3202
3202
  }, Cp = (e) => {
3203
- const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "dc.Date"), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = te(e, "name", "dc.Creator"), a = Ip(e), c = kp(e), u = Rp(e), l = u?.includes("-") ? u.split("-")[0] : u, f = u?.includes("-") ? u.split("-")[1] : u;
3203
+ const t = f(e, "property", "og:title"), r = f(e, "name", "dc.Publisher"), n = f(e, "name", "dc.Date"), o = f(e, "name", "publication_doi"), s = f(e, "name", "citation_journal_title"), i = te(e, "name", "dc.Creator"), a = Ip(e), c = kp(e), u = Rp(e), l = u?.includes("-") ? u.split("-")[0] : u, h = u?.includes("-") ? u.split("-")[1] : u;
3204
3204
  return D(E.Article, {
3205
3205
  au: i,
3206
3206
  jtitle: s,
@@ -3209,17 +3209,17 @@ const ip = (e) => {
3209
3209
  issue: c,
3210
3210
  pub: r,
3211
3211
  spage: l,
3212
- epage: f,
3212
+ epage: h,
3213
3213
  title: t,
3214
3214
  volume: a
3215
3215
  });
3216
3216
  }, Pp = (e) => {
3217
- const t = h(e, "property", "og:title"), r = h(e, "name", "publication_doi");
3217
+ const t = f(e, "property", "og:title"), r = f(e, "name", "publication_doi");
3218
3218
  return D(E.Journal, {
3219
3219
  doi: r,
3220
3220
  title: t
3221
3221
  });
3222
- }, Op = ({ document: e }) => {
3222
+ }, xp = ({ document: e }) => {
3223
3223
  switch (wp(e)) {
3224
3224
  case y.Article:
3225
3225
  return w(Cp(e));
@@ -3235,7 +3235,7 @@ function Bm(e) {
3235
3235
  function Nr(e) {
3236
3236
  return os.safeParse(e).success;
3237
3237
  }
3238
- function xp(e) {
3238
+ function Op(e) {
3239
3239
  return ss.safeParse(e).success;
3240
3240
  }
3241
3241
  function Np(e) {
@@ -3264,7 +3264,7 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
3264
3264
  duration: p(),
3265
3265
  thumbnailUrl: j(p())
3266
3266
  }), Zp = (e) => qp.safeParse(e).success, jp = (e) => {
3267
- const t = fs(e);
3267
+ const t = hs(e);
3268
3268
  if (t.length === 0)
3269
3269
  return null;
3270
3270
  const r = t.map(Fe).filter(Zp);
@@ -3283,7 +3283,7 @@ const zp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
3283
3283
  uri: e
3284
3284
  })
3285
3285
  } : T();
3286
- }, vs = (e) => h(e, "name", "doi") ?? h(e, "name", "DOI") ?? h(e, "name", "citation_doi") ?? h(e, "name", "dc.identifier") ?? h(e, "name", "prism.doi") ?? void 0, bs = (e) => {
3286
+ }, vs = (e) => f(e, "name", "doi") ?? f(e, "name", "DOI") ?? f(e, "name", "citation_doi") ?? f(e, "name", "dc.identifier") ?? f(e, "name", "prism.doi") ?? void 0, bs = (e) => {
3287
3287
  const t = e.editor?.map((o) => o.name) ?? [], n = [...e.author?.map((o) => o.name) ?? [], ...t];
3288
3288
  if (n.length !== 0)
3289
3289
  return n;
@@ -3327,8 +3327,8 @@ const _s = R({
3327
3327
  name: p().optional(),
3328
3328
  issn: j(p()),
3329
3329
  volumeNumber: p().optional()
3330
- }), _n = (e) => Vp.safeParse(e).success, Fp = (e, t) => h(e, "name", "citation_issn") ?? h(e, "name", "prism.issn") ?? (ys(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), yn = (e, t) => {
3331
- const r = bs(t), n = h(e, "name", "citation_online_date"), o = vs(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = _n(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, u = t.pageEnd, l = t.headline, f = t.isPartOf.name, d = _n(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3330
+ }), _n = (e) => Vp.safeParse(e).success, Fp = (e, t) => f(e, "name", "citation_issn") ?? f(e, "name", "prism.issn") ?? (ys(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), yn = (e, t) => {
3331
+ const r = bs(t), n = f(e, "name", "citation_online_date"), o = vs(e), s = f(e, "name", "citation_issue"), i = Fp(e, t), a = _n(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, c = t.pageStart, u = t.pageEnd, l = t.headline, h = t.isPartOf.name, d = _n(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3332
3332
  return D(E.Article, {
3333
3333
  au: r,
3334
3334
  date: n,
@@ -3339,7 +3339,7 @@ const _s = R({
3339
3339
  spage: c,
3340
3340
  epage: u,
3341
3341
  atitle: l,
3342
- jtitle: f,
3342
+ jtitle: h,
3343
3343
  volume: d
3344
3344
  });
3345
3345
  }, Jp = we.extend({
@@ -3432,36 +3432,36 @@ const _s = R({
3432
3432
  uploadDate: p().optional(),
3433
3433
  contentUrl: p().optional(),
3434
3434
  duration: p().optional()
3435
- }), Qp = (e) => Kp.safeParse(e).success, eh = (e, t) => {
3435
+ }), Qp = (e) => Kp.safeParse(e).success, ef = (e, t) => {
3436
3436
  const r = Array.from(
3437
3437
  e.querySelectorAll('dd[data-test="video-segment-author"]')
3438
- ).map((i) => i.textContent.trim()).filter((i) => !!i), n = t?.uploadDate ? new Date(t.uploadDate).getFullYear().toString() : void 0, o = t?.name ?? h(e, "property", "og:title") ?? void 0, s = e.querySelector("video-about-doi")?.textContent ?? void 0;
3438
+ ).map((i) => i.textContent.trim()).filter((i) => !!i), n = t?.uploadDate ? new Date(t.uploadDate).getFullYear().toString() : void 0, o = t?.name ?? f(e, "property", "og:title") ?? void 0, s = e.querySelector("video-about-doi")?.textContent ?? void 0;
3439
3439
  return _e({
3440
3440
  au: r.length > 0 ? r : void 0,
3441
3441
  date: n,
3442
3442
  doi: s,
3443
3443
  title: o
3444
3444
  });
3445
- }, th = (e) => {
3446
- const t = h(e, "property", "og:title");
3445
+ }, tf = (e) => {
3446
+ const t = f(e, "property", "og:title");
3447
3447
  return Ir({
3448
3448
  title: t
3449
3449
  });
3450
- }, rh = (e, t) => {
3451
- const r = h(t, "property", "og:type");
3450
+ }, rf = (e, t) => {
3451
+ const r = f(t, "property", "og:type");
3452
3452
  return r === de.Article && e.includes(ae.Article) ? y.Article : r === de.Book && (e.includes(ae.Book) || e.includes(ae.ReferenceWork)) ? y.Book : r === de.Paper && e.includes(ae.Chapter) ? y.Chapter : r === de.Paper && (e.includes(ae.ReferenceWorkEntry) || e.includes(ae.Protocol)) ? y.Article : r === de.Video && e.includes(ae.Video) ? y.AudioVisual : r === de.Website && (e.includes(ae.Collections) || e.includes(ae.JournalIssue)) ? y.Webpage : r === de.Website && e.includes(ae.Journal) ? y.Journal : y.None;
3453
- }, nh = (e, t, r) => e === y.AudioVisual && Qp(r) ? w(eh(t, r)) : e === y.Book && Mp(r) ? w(Gp(t, r)) : (e === y.Chapter || e === y.Article) && ys(r) ? w(yn(t, r)) : e === y.Article && Up(r) ? w(
3453
+ }, nf = (e, t, r) => e === y.AudioVisual && Qp(r) ? w(ef(t, r)) : e === y.Book && Mp(r) ? w(Gp(t, r)) : (e === y.Chapter || e === y.Article) && ys(r) ? w(yn(t, r)) : e === y.Article && Up(r) ? w(
3454
3454
  yn(t, r.mainEntity)
3455
- ) : e === y.Journal && Hp(r) ? w(Yp(r)) : T(), oh = ({ url: e, document: t }) => {
3456
- const r = rh(e, t);
3455
+ ) : e === y.Journal && Hp(r) ? w(Yp(r)) : T(), of = ({ url: e, document: t }) => {
3456
+ const r = rf(e, t);
3457
3457
  if (r === y.Webpage)
3458
- return w(th(t));
3458
+ return w(tf(t));
3459
3459
  const n = ct(t);
3460
3460
  if (!n)
3461
3461
  return T();
3462
3462
  const o = Fe(n);
3463
- return o ? nh(r, t, o) : T();
3464
- }, sh = /* @__PURE__ */ new Set([
3463
+ return o ? nf(r, t, o) : T();
3464
+ }, sf = /* @__PURE__ */ new Set([
3465
3465
  "Print ISBN",
3466
3466
  "Online ISBN",
3467
3467
  "DOI",
@@ -3469,7 +3469,7 @@ const _s = R({
3469
3469
  "Online ISSN",
3470
3470
  "Print ISSN"
3471
3471
  /* PrintIssn */
3472
- ]), ih = R({
3472
+ ]), af = R({
3473
3473
  content: R({
3474
3474
  item: R({
3475
3475
  title: p(),
@@ -3494,7 +3494,7 @@ const _s = R({
3494
3494
  const r = /\d+/.exec(e);
3495
3495
  if (r?.[0])
3496
3496
  return r[0];
3497
- }, ah = (e) => {
3497
+ }, cf = (e) => {
3498
3498
  const t = e.querySelectorAll("script"), n = Array.from(t).find(
3499
3499
  (o) => o.textContent.includes("adobeDataLayerJson")
3500
3500
  )?.textContent.match(
@@ -3503,12 +3503,12 @@ const _s = R({
3503
3503
  if (!(!n || n.length !== 2))
3504
3504
  try {
3505
3505
  const o = JSON.parse(n[1]);
3506
- return ih.parse(o);
3506
+ return af.parse(o);
3507
3507
  } catch {
3508
3508
  return;
3509
3509
  }
3510
- }, ch = (e, t) => {
3511
- const r = h(e, "property", "og:type"), n = t.includes("epdf");
3510
+ }, uf = (e, t) => {
3511
+ const r = f(e, "property", "og:type"), n = t.includes("epdf");
3512
3512
  return r === "Book" || r === "books.book" ? y.Book : r === "Chapter" ? y.Chapter : r === "Journal" ? y.Journal : r === "Article" || n ? y.Article : y.None;
3513
3513
  }, ut = (e) => {
3514
3514
  const t = te(
@@ -3519,7 +3519,7 @@ const _s = R({
3519
3519
  e.querySelectorAll("#product-details-content .product-authors")
3520
3520
  ).map((o) => o.textContent).filter((o) => !!o), n = /* @__PURE__ */ new Set([...t, ...r]);
3521
3521
  return n.size > 0 ? [...n] : void 0;
3522
- }, uh = (e) => {
3522
+ }, lf = (e) => {
3523
3523
  const t = Array.from(
3524
3524
  e.querySelectorAll("#product-details-content .text-piped p")
3525
3525
  ).map((r) => r.textContent).find((r) => r.endsWith(" pages"));
@@ -3534,19 +3534,19 @@ const _s = R({
3534
3534
  if (!o?.classList.contains("info_value"))
3535
3535
  continue;
3536
3536
  const s = En(n.textContent, ":"), i = En(o.textContent, ":");
3537
- !s || !i || sh.has(s) && t.set(s, i);
3537
+ !s || !i || sf.has(s) && t.set(s, i);
3538
3538
  }
3539
3539
  return t;
3540
- }, pt = (e, t) => h(e, "property", "books:release_date") ?? h(e, "name", "citation_online_date") ?? t.get(
3540
+ }, pt = (e, t) => f(e, "property", "books:release_date") ?? f(e, "name", "citation_online_date") ?? t.get(
3541
3541
  "First published"
3542
3542
  /* FirstPublished */
3543
- ) ?? void 0, zr = (e, t) => h(e, "name", "dc.identifier") ?? h(e, "name", "citation_doi") ?? h(e, "name", "publication_doi") ?? t.get(
3543
+ ) ?? void 0, zr = (e, t) => f(e, "name", "dc.identifier") ?? f(e, "name", "citation_doi") ?? f(e, "name", "publication_doi") ?? t.get(
3544
3544
  "DOI"
3545
3545
  /* Doi */
3546
3546
  ) ?? void 0, Es = (e, t) => {
3547
3547
  const r = new Set(
3548
3548
  [
3549
- h(e, "property", "books:isbn"),
3549
+ f(e, "property", "books:isbn"),
3550
3550
  t.get(
3551
3551
  "Print ISBN"
3552
3552
  /* PrintIsbn */
@@ -3558,7 +3558,7 @@ const _s = R({
3558
3558
  ].filter((n) => !!n)
3559
3559
  );
3560
3560
  return r.size > 0 ? [...r].join(",") : void 0;
3561
- }, lh = (e) => {
3561
+ }, pf = (e) => {
3562
3562
  let t, r;
3563
3563
  const n = e.querySelector(
3564
3564
  ".cover-image__details div:first-of-type"
@@ -3568,12 +3568,12 @@ const _s = R({
3568
3568
  o.textContent && (t = br(o.textContent)), s.textContent && (r = br(s.textContent));
3569
3569
  }
3570
3570
  return { volume: t, issue: r };
3571
- }, ph = (e) => {
3571
+ }, ff = (e) => {
3572
3572
  const r = Array.from(
3573
3573
  e.querySelectorAll(".authors .author")
3574
3574
  ).map((n) => n.textContent.trim().replace(",", "")).filter((n) => !!n);
3575
3575
  return r.length > 0 ? r : void 0;
3576
- }, hh = (e) => {
3576
+ }, hf = (e) => {
3577
3577
  const t = Array.from(
3578
3578
  e.querySelectorAll(".details-section .details-entry")
3579
3579
  ), r = t.find(
@@ -3586,12 +3586,12 @@ const _s = R({
3586
3586
  issn: o,
3587
3587
  eissn: s
3588
3588
  };
3589
- }, fh = (e) => {
3589
+ }, df = (e) => {
3590
3590
  if (!e?.content?.group)
3591
3591
  return { volume: void 0, issue: void 0 };
3592
3592
  const t = e.content.group.volume, r = e.content.group.issue;
3593
3593
  return r === "0" && t === "0" ? { volume: void 0, issue: void 0 } : { volume: t, issue: r };
3594
- }, dh = (e) => {
3594
+ }, mf = (e) => {
3595
3595
  const n = Array.from(
3596
3596
  e.querySelectorAll(".details-section .details-entry")
3597
3597
  ).find(
@@ -3600,8 +3600,8 @@ const _s = R({
3600
3600
  (i) => i?.trim()
3601
3601
  );
3602
3602
  return o?.toLowerCase() === "n/a" && s?.toLowerCase() === "n/a" ? { spage: void 0, epage: void 0 } : { spage: o, epage: s };
3603
- }, mh = (e) => {
3604
- const t = lt(e), r = ut(e), n = h(e, "property", "og:title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = uh(e);
3603
+ }, gf = (e) => {
3604
+ const t = lt(e), r = ut(e), n = f(e, "property", "og:title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = lf(e);
3605
3605
  return Q(E.Book, {
3606
3606
  au: r,
3607
3607
  date: o,
@@ -3610,8 +3610,8 @@ const _s = R({
3610
3610
  pages: a,
3611
3611
  title: n
3612
3612
  });
3613
- }, gh = (e) => {
3614
- const t = lt(e), r = ut(e), n = h(e, "name", "citation_book_title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = h(e, "name", "citation_publisher"), c = h(e, "property", "og:title");
3613
+ }, vf = (e) => {
3614
+ const t = lt(e), r = ut(e), n = f(e, "name", "citation_book_title"), o = pt(e, t), s = zr(e, t), i = Es(e, t), a = f(e, "name", "citation_publisher"), c = f(e, "property", "og:title");
3615
3615
  return Q(E.Bookitem, {
3616
3616
  au: r,
3617
3617
  btitle: n,
@@ -3621,14 +3621,14 @@ const _s = R({
3621
3621
  pub: a,
3622
3622
  title: c
3623
3623
  });
3624
- }, vh = (e) => {
3624
+ }, bf = (e) => {
3625
3625
  const t = lt(e), r = ut(e), n = pt(e, t), o = t.get(
3626
3626
  "Online ISSN"
3627
3627
  /* OnlineIssn */
3628
3628
  ), s = t.get(
3629
3629
  "Print ISSN"
3630
3630
  /* PrintIssn */
3631
- ), i = h(e, "property", "og:title"), { volume: a, issue: c } = lh(e);
3631
+ ), i = f(e, "property", "og:title"), { volume: a, issue: c } = pf(e);
3632
3632
  return D(E.Journal, {
3633
3633
  au: r,
3634
3634
  date: n,
@@ -3638,39 +3638,39 @@ const _s = R({
3638
3638
  title: i,
3639
3639
  volume: a
3640
3640
  });
3641
- }, bh = (e) => {
3642
- const t = lt(e), r = ah(e), n = ut(e) ?? ph(e), o = pt(e, t) ?? r?.content?.item["published-date"], s = zr(e, t), { issn: i, eissn: a } = hh(e), { volume: c, issue: u } = fh(r), l = h(e, "property", "og:title") ?? r?.content?.item.title, f = h(e, "name", "citation_journal_title") ?? r?.content?.series.title, { spage: d, epage: g } = dh(e);
3641
+ }, _f = (e) => {
3642
+ const t = lt(e), r = cf(e), n = ut(e) ?? ff(e), o = pt(e, t) ?? r?.content?.item["published-date"], s = zr(e, t), { issn: i, eissn: a } = hf(e), { volume: c, issue: u } = df(r), l = f(e, "property", "og:title") ?? r?.content?.item.title, h = f(e, "name", "citation_journal_title") ?? r?.content?.series.title, { spage: d, epage: g } = mf(e);
3643
3643
  return D(E.Article, {
3644
3644
  au: n,
3645
3645
  date: o,
3646
3646
  doi: s,
3647
3647
  eissn: a,
3648
- issn: i ?? h(e, "name", "citation_issn"),
3648
+ issn: i ?? f(e, "name", "citation_issn"),
3649
3649
  issue: u,
3650
- jtitle: f,
3650
+ jtitle: h,
3651
3651
  title: l,
3652
3652
  volume: c,
3653
3653
  spage: d,
3654
3654
  epage: g
3655
3655
  });
3656
- }, _h = ({ document: e, url: t }) => {
3657
- switch (ch(e, t)) {
3656
+ }, yf = ({ document: e, url: t }) => {
3657
+ switch (uf(e, t)) {
3658
3658
  case y.Book:
3659
- return w(mh(e));
3659
+ return w(gf(e));
3660
3660
  case y.Chapter:
3661
- return w(gh(e));
3661
+ return w(vf(e));
3662
3662
  case y.Journal:
3663
- return w(vh(e));
3663
+ return w(bf(e));
3664
3664
  case y.Article:
3665
- return w(bh(e));
3665
+ return w(_f(e));
3666
3666
  default:
3667
3667
  return T();
3668
3668
  }
3669
- }, yh = (e) => {
3669
+ }, Ef = (e) => {
3670
3670
  const t = te(e, "name", "citation_author");
3671
3671
  return t.length > 0 ? t : void 0;
3672
- }, Eh = ({ document: e }) => {
3673
- const t = yh(e), r = h(e, "name", "citation_publication_date"), n = h(e, "name", "citation_doi"), o = h(e, "name", "citation_isbn"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_title") ?? e.title, a = _e({
3672
+ }, Sf = ({ document: e }) => {
3673
+ const t = Ef(e), r = f(e, "name", "citation_publication_date"), n = f(e, "name", "citation_doi"), o = f(e, "name", "citation_isbn"), s = f(e, "name", "citation_publisher"), i = f(e, "name", "citation_title") ?? e.title, a = _e({
3674
3674
  au: t,
3675
3675
  date: r,
3676
3676
  doi: n,
@@ -3679,7 +3679,7 @@ const _s = R({
3679
3679
  title: i
3680
3680
  });
3681
3681
  return w(a);
3682
- }, Sh = ({
3682
+ }, $f = ({
3683
3683
  document: e
3684
3684
  }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? T() : Sl(), Lr = (e) => {
3685
3685
  if (!(!e || e.length === 0))
@@ -3693,38 +3693,38 @@ function Tr(e, t) {
3693
3693
  }).filter((n) => n);
3694
3694
  return Lr(r) ?? null;
3695
3695
  }
3696
- const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3696
+ const je = (e, t) => Tr(e, [t])?.trim(), Af = (e) => {
3697
3697
  const t = e.querySelector(
3698
3698
  ".content-meta-data__authors"
3699
3699
  )?.textContent;
3700
3700
  if (t)
3701
3701
  return t.split(/,\s+|\s+and\s+/).filter((r) => !!r);
3702
- }, Ah = (e) => {
3702
+ }, wf = (e) => {
3703
3703
  const t = Array.from(
3704
3704
  e.querySelectorAll('.tombstone-metadata [data-qa="item-authors"]')
3705
3705
  ).map((r) => r.textContent).filter((r) => !!r);
3706
3706
  return t.length ? t : void 0;
3707
- }, wh = (e) => {
3707
+ }, Rf = (e) => {
3708
3708
  const t = Array.from(
3709
3709
  e.querySelectorAll(
3710
3710
  '.item-authors [data-qa="item-contributors"], .item-authors [data-qa="item-creators"]'
3711
3711
  )
3712
3712
  ).map((r) => r.textContent).filter((r) => !!r);
3713
3713
  return t.length ? t : void 0;
3714
- }, Rh = (e) => {
3714
+ }, If = (e) => {
3715
3715
  const t = Array.from(
3716
3716
  e.querySelectorAll(".contrib-type-author .name")
3717
3717
  ).map((r) => r.textContent).filter((r) => !!r);
3718
3718
  return t.length ? t : void 0;
3719
3719
  }, Re = (e) => {
3720
3720
  const t = /* @__PURE__ */ new Set([
3721
- ...wh(e) ?? [],
3722
- ...$h(e) ?? [],
3723
- ...Rh(e) ?? [],
3724
- ...Ah(e) ?? []
3721
+ ...Rf(e) ?? [],
3722
+ ...Af(e) ?? [],
3723
+ ...If(e) ?? [],
3724
+ ...wf(e) ?? []
3725
3725
  ]);
3726
3726
  return t.size ? [...t] : void 0;
3727
- }, Ie = (e, t) => e.querySelector('[data-qa="published-date"]')?.textContent ?? e.querySelector(".summary-image")?.textContent ?? xe(t?.get("date")) ?? xe(t?.get("copyright date")) ?? xe(t?.get("published date")), Ss = (e) => {
3727
+ }, Ie = (e, t) => e.querySelector('[data-qa="published-date"]')?.textContent ?? e.querySelector(".summary-image")?.textContent ?? Oe(t?.get("date")) ?? Oe(t?.get("copyright date")) ?? Oe(t?.get("published date")), Ss = (e) => {
3728
3728
  const t = e.find((r) => r.startsWith("https://doi.org/"));
3729
3729
  if (t)
3730
3730
  return t.replace("https://doi.org/", "");
@@ -3732,7 +3732,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3732
3732
  const t = e.get("local identifier");
3733
3733
  if (t?.length)
3734
3734
  return Ss(t);
3735
- }, Ih = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, xe = (e) => {
3735
+ }, kf = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, Oe = (e) => {
3736
3736
  if (e?.length)
3737
3737
  return e[0];
3738
3738
  }, ke = (e) => {
@@ -3744,24 +3744,24 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3744
3744
  !r || !n.length || t.set(r, n);
3745
3745
  }), t;
3746
3746
  }, As = (e) => {
3747
- const t = ke(e), r = e.querySelector(".summary-journal"), n = Array.from(r?.childNodes ?? []), o = n[0]?.textContent ?? e.querySelector(".journal-link")?.textContent ?? void 0, s = n[2]?.textContent?.replace(/Published By:\s+?/i, "") ?? xe(t.get("publisher")) ?? e.querySelector(".publisher-link")?.textContent ?? void 0;
3747
+ const t = ke(e), r = e.querySelector(".summary-journal"), n = Array.from(r?.childNodes ?? []), o = n[0]?.textContent ?? e.querySelector(".journal-link")?.textContent ?? void 0, s = n[2]?.textContent?.replace(/Published By:\s+?/i, "") ?? Oe(t.get("publisher")) ?? e.querySelector(".publisher-link")?.textContent ?? void 0;
3748
3748
  return {
3749
3749
  pub: s && s.trim() !== "" ? s : void 0,
3750
3750
  jtitle: o && o.trim() !== "" ? o : void 0
3751
3751
  };
3752
- }, kh = (e) => {
3752
+ }, Cf = (e) => {
3753
3753
  const t = Tr(e, [
3754
3754
  '[data-qa="journal"]:first-child cite',
3755
3755
  '[data-qa="copyright-statement"] > cite',
3756
3756
  '[data-qa="collection-links"] mfe-content-details-pharos-link'
3757
3757
  ]);
3758
3758
  return t && t.trim() !== "" ? t : void 0;
3759
- }, ht = (e) => he(e.querySelector('[data-qa="page-count"]')?.textContent), Me = (e, t) => e.querySelector(".publisher-link")?.textContent ?? xe(t?.get("publisher")), ye = (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, Ee = (e) => {
3759
+ }, ft = (e) => fe(e.querySelector('[data-qa="page-count"]')?.textContent), Me = (e, t) => e.querySelector(".publisher-link")?.textContent ?? Oe(t?.get("publisher")), ye = (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, Ee = (e) => {
3760
3760
  if (!URL.canParse(e))
3761
3761
  return;
3762
3762
  const t = new URL(e);
3763
3763
  return t.origin + t.pathname;
3764
- }, Ch = (e) => {
3764
+ }, Pf = (e) => {
3765
3765
  const t = e.querySelector(
3766
3766
  ".ccda-container > :first-child"
3767
3767
  );
@@ -3769,18 +3769,18 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3769
3769
  if (t?.textContent.includes("Volume") || t?.textContent.includes("Issue")) {
3770
3770
  const o = t.textContent.trim().split(/,\s+/);
3771
3771
  for (const s of o)
3772
- s.startsWith("Volume") ? n = he(s) : s.startsWith("Issue") && (r = he(s));
3772
+ s.startsWith("Volume") ? n = fe(s) : s.startsWith("Issue") && (r = fe(s));
3773
3773
  }
3774
3774
  return { issue: r, volume: n };
3775
- }, Ph = (e) => {
3776
- const t = e.querySelector('[data-qa="item-src-info"]')?.textContent ?? h(e, "property", "og:description") ?? h(e, "name", "description");
3775
+ }, xf = (e) => {
3776
+ const t = e.querySelector('[data-qa="item-src-info"]')?.textContent ?? f(e, "property", "og:description") ?? f(e, "name", "description");
3777
3777
  if (!t)
3778
3778
  return {};
3779
3779
  const r = /Vol\.\s*(\d+)/.exec(t), n = r ? r[1] : void 0, o = /No\.\s*(\d+)/.exec(t), s = o ? o[1] : void 0, i = /pp\.\s*(\d+)-(\d+)/.exec(t), a = i ? i[1] : void 0, c = i ? i[2] : void 0, u = /pp\.\s*\d+-\d+\s*\((\d+)\s*pages\)/.exec(
3780
3780
  t
3781
3781
  ), l = u ? u[1] : void 0;
3782
3782
  return { issue: s, volume: n, spage: a, epage: c, pages: l };
3783
- }, Oh = (e) => {
3783
+ }, Of = (e) => {
3784
3784
  const t = Tr(e, [
3785
3785
  "mfe-turnaway-pharos-link",
3786
3786
  '[data-qa="item-src-info"]'
@@ -3792,12 +3792,12 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3792
3792
  return s ? s[0] : void 0;
3793
3793
  });
3794
3794
  return Lr(n);
3795
- }, xh = (e, t) => {
3796
- const r = ye(e), n = Re(e), o = Ie(e) ?? Oh(e), s = As(e), i = s.jtitle ?? kh(e) ?? void 0, a = s.pub, c = Ch(e), u = Ph(e), l = c.issue ?? u.issue, f = c.volume ?? u.volume, d = ht(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = Ss(
3795
+ }, Nf = (e, t) => {
3796
+ const r = ye(e), n = Re(e), o = Ie(e) ?? Of(e), s = As(e), i = s.jtitle ?? Cf(e) ?? void 0, a = s.pub, c = Pf(e), u = xf(e), l = c.issue ?? u.issue, h = c.volume ?? u.volume, d = ft(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = Ss(
3797
3797
  Array.from(
3798
3798
  e.querySelector(".content-meta-data-stables")?.childNodes ?? []
3799
3799
  ).map((q) => q.textContent ?? "")
3800
- ) ?? Ih(e);
3800
+ ) ?? kf(e);
3801
3801
  return D(E.Article, {
3802
3802
  atitle: r,
3803
3803
  au: n,
@@ -3810,9 +3810,9 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3810
3810
  pub: a,
3811
3811
  spage: g,
3812
3812
  uri: v,
3813
- volume: f
3813
+ volume: h
3814
3814
  });
3815
- }, Nh = (e, t) => {
3815
+ }, zf = (e, t) => {
3816
3816
  const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Me(e, r), a = Ee(t);
3817
3817
  return _e({
3818
3818
  au: n,
@@ -3821,8 +3821,8 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3821
3821
  title: s,
3822
3822
  uri: a
3823
3823
  });
3824
- }, zh = (e, t) => {
3825
- const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ht(e), a = Me(e, r), c = Ee(t), u = $s(r);
3824
+ }, Lf = (e, t) => {
3825
+ const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ft(e), a = Me(e, r), c = Ee(t), u = $s(r);
3826
3826
  return Q(E.Book, {
3827
3827
  au: n,
3828
3828
  date: s,
@@ -3832,10 +3832,10 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3832
3832
  title: o,
3833
3833
  uri: c
3834
3834
  });
3835
- }, Lh = (e, t) => {
3835
+ }, Tf = (e, t) => {
3836
3836
  const r = ke(e), n = Re(e), o = ye(e), s = e.querySelector(".book-title-link")?.textContent ?? void 0, i = Ie(e, r), a = Array.from(
3837
3837
  e.querySelectorAll('[data-qa="book"] > span')
3838
- ).map((d) => d.textContent), c = ht(e), u = a.find((d) => d.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Me(e, r), f = Ee(t);
3838
+ ).map((d) => d.textContent), c = ft(e), u = a.find((d) => d.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Me(e, r), h = Ee(t);
3839
3839
  return Q(E.Bookitem, {
3840
3840
  atitle: o,
3841
3841
  au: n,
@@ -3845,10 +3845,10 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3845
3845
  pub: l,
3846
3846
  pages: c,
3847
3847
  spage: u?.[1],
3848
- uri: f
3848
+ uri: h
3849
3849
  });
3850
- }, Th = (e, t) => {
3851
- const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ht(e), a = Me(e, r), c = Ee(t), u = $s(r);
3850
+ }, qf = (e, t) => {
3851
+ const r = ke(e), n = Re(e), o = ye(e), s = Ie(e), i = ft(e), a = Me(e, r), c = Ee(t), u = $s(r);
3852
3852
  return Q(E.Document, {
3853
3853
  au: n,
3854
3854
  date: s,
@@ -3858,7 +3858,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3858
3858
  title: o,
3859
3859
  uri: c
3860
3860
  });
3861
- }, qh = (e, t) => {
3861
+ }, Zf = (e, t) => {
3862
3862
  const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Ee(t);
3863
3863
  return sl({
3864
3864
  au: n,
@@ -3866,7 +3866,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3866
3866
  title: s,
3867
3867
  uri: i
3868
3868
  });
3869
- }, Zh = (e, t) => {
3869
+ }, jf = (e, t) => {
3870
3870
  const { pub: r } = As(e), n = ye(e), o = e.querySelector(".eissn")?.textContent.replace(/EISSN\s+/, "").trim() ?? void 0, s = e.querySelector(".issn")?.textContent.replace(/ISSN\s+/, "").trim() ?? void 0, i = Ee(t);
3871
3871
  return D(E.Journal, {
3872
3872
  eissn: o,
@@ -3877,7 +3877,7 @@ const je = (e, t) => Tr(e, [t])?.trim(), $h = (e) => {
3877
3877
  });
3878
3878
  };
3879
3879
  var oe = /* @__PURE__ */ ((e) => (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))(oe || {});
3880
- const jh = (e, t) => {
3880
+ const Df = (e, t) => {
3881
3881
  const r = ke(e), n = Re(e), o = Ie(e, r), s = ye(e), i = Me(e, r), a = Ee(t);
3882
3882
  return _e({
3883
3883
  au: n,
@@ -3886,38 +3886,38 @@ const jh = (e, t) => {
3886
3886
  title: s,
3887
3887
  uri: a
3888
3888
  });
3889
- }, Dh = (e) => Object.values(oe).includes(e), Bh = (e) => {
3889
+ }, Bf = (e) => Object.values(oe).includes(e), Uf = (e) => {
3890
3890
  if (e.querySelector(".journal_header-title"))
3891
3891
  return oe.Journal;
3892
3892
  if (e.querySelector(".journal-link"))
3893
3893
  return oe.Article;
3894
3894
  const n = e.querySelector(".content-type > span")?.textContent.toLowerCase().trim() ?? e.querySelector(".content-meta-data-label")?.textContent.toLowerCase().trim();
3895
- return Dh(n) ? n : null;
3896
- }, Uh = (e, t) => {
3897
- switch (Bh(e)) {
3895
+ return Bf(n) ? n : null;
3896
+ }, Vf = (e, t) => {
3897
+ switch (Uf(e)) {
3898
3898
  case oe.Article:
3899
3899
  case oe.Serial:
3900
- return xh(e, t);
3900
+ return Nf(e, t);
3901
3901
  case oe.Audio:
3902
- return Nh(e, t);
3902
+ return zf(e, t);
3903
3903
  case oe.Book:
3904
- return zh(e, t);
3904
+ return Lf(e, t);
3905
3905
  case oe.Chapter:
3906
3906
  case oe.ResearchReport:
3907
- return Lh(e, t);
3907
+ return Tf(e, t);
3908
3908
  case oe.Document:
3909
- return Th(e, t);
3909
+ return qf(e, t);
3910
3910
  case oe.Image:
3911
- return qh(e, t);
3911
+ return Zf(e, t);
3912
3912
  case oe.Journal:
3913
- return Zh(e, t);
3913
+ return jf(e, t);
3914
3914
  case oe.Video:
3915
- return jh(e, t);
3915
+ return Df(e, t);
3916
3916
  default:
3917
3917
  return null;
3918
3918
  }
3919
- }, Vh = ({ document: e, url: t }) => {
3920
- const r = Uh(e, t);
3919
+ }, Ff = ({ document: e, url: t }) => {
3920
+ const r = Vf(e, t);
3921
3921
  return r ? w(r) : T();
3922
3922
  }, De = (e) => {
3923
3923
  if (e) {
@@ -3933,7 +3933,7 @@ const jh = (e, t) => {
3933
3933
  const t = new Set(e.filter((r) => !!r));
3934
3934
  if (t.size !== 0)
3935
3935
  return [...t];
3936
- }, Fh = (e) => {
3936
+ }, Jf = (e) => {
3937
3937
  const t = ws(e.mainEntity.creator);
3938
3938
  return t ? [t] : void 0;
3939
3939
  }, We = ({
@@ -3942,9 +3942,9 @@ const jh = (e, t) => {
3942
3942
  }) => ({
3943
3943
  bibid: e,
3944
3944
  title: t
3945
- }), Jh = (e, t) => {
3945
+ }), Mf = (e, t) => {
3946
3946
  const r = Qe(
3947
- ...(e && Fh(e)) ?? [],
3947
+ ...(e && Jf(e)) ?? [],
3948
3948
  ...t.authors ?? []
3949
3949
  ), n = Qe(...t.eissns ?? []), o = Qe(
3950
3950
  e?.mainEntity.isbn ? Pr(e.mainEntity.isbn) : void 0,
@@ -3970,7 +3970,7 @@ const jh = (e, t) => {
3970
3970
  title: e?.name ?? t.title,
3971
3971
  volume: e?.mainEntity.volumeNumber
3972
3972
  };
3973
- }, Mh = (e) => D(E.Article, {
3973
+ }, Wf = (e) => D(E.Article, {
3974
3974
  ...We(e),
3975
3975
  au: e.authors,
3976
3976
  doi: e.doi,
@@ -3982,12 +3982,12 @@ const jh = (e, t) => {
3982
3982
  pub: e.publisher,
3983
3983
  spage: e.spage,
3984
3984
  volume: e.volume
3985
- }), Wh = (e) => _e({
3985
+ }), Gf = (e) => _e({
3986
3986
  ...We(e),
3987
3987
  au: e.authors,
3988
3988
  date: e.date,
3989
3989
  pub: e.publisher
3990
- }), Gh = (e) => Q(E.Book, {
3990
+ }), Xf = (e) => Q(E.Book, {
3991
3991
  ...We(e),
3992
3992
  au: e.authors,
3993
3993
  date: e.date,
@@ -3997,7 +3997,7 @@ const jh = (e, t) => {
3997
3997
  isbn: e.isbn,
3998
3998
  pub: e.publisher,
3999
3999
  spage: e.spage
4000
- }), Xh = (e) => D(E.Journal, {
4000
+ }), Hf = (e) => D(E.Journal, {
4001
4001
  ...We(e),
4002
4002
  date: e.date,
4003
4003
  doi: e.doi,
@@ -4010,7 +4010,7 @@ const jh = (e, t) => {
4010
4010
  }), $n = R({
4011
4011
  "@type": J("Person"),
4012
4012
  name: pe([p(), j(p())])
4013
- }), Hh = we.extend({
4013
+ }), Yf = we.extend({
4014
4014
  identifier: R({
4015
4015
  "@type": p(),
4016
4016
  propertyID: p(),
@@ -4037,24 +4037,24 @@ const jh = (e, t) => {
4037
4037
  volumeNumber: le(p())
4038
4038
  }),
4039
4039
  name: p()
4040
- }), Yh = (e) => {
4040
+ }), Kf = (e) => {
4041
4041
  const t = ct(e);
4042
4042
  if (!t)
4043
4043
  return null;
4044
- const r = Fe(t), n = Hh.safeParse(r);
4044
+ const r = Fe(t), n = Yf.safeParse(r);
4045
4045
  return n.success ? n.data : null;
4046
- }, Kh = (e) => _e({
4046
+ }, Qf = (e) => _e({
4047
4047
  ...We(e),
4048
4048
  au: e.authors,
4049
4049
  date: e.date,
4050
4050
  pub: e.publisher
4051
- }), Qh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, An = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, qr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, ef = (e) => {
4051
+ }), eh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, An = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, qr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, th = (e) => {
4052
4052
  if (!e)
4053
4053
  return;
4054
- const t = Qh.exec(e);
4054
+ const t = eh.exec(e);
4055
4055
  if (t)
4056
4056
  return t.length > 1 ? t[1] : void 0;
4057
- }, tf = (e) => {
4057
+ }, rh = (e) => {
4058
4058
  const t = Array.from(
4059
4059
  e.querySelectorAll(qr("Identifier"))
4060
4060
  ), r = {};
@@ -4071,13 +4071,13 @@ const jh = (e, t) => {
4071
4071
  r[i] ??= [], r[i].push(n.substring(a, o[c + 1]?.index));
4072
4072
  });
4073
4073
  }), r;
4074
- }, rf = (e) => Array.from(e.querySelectorAll(qr("Author"))).filter(
4074
+ }, nh = (e) => Array.from(e.querySelectorAll(qr("Author"))).filter(
4075
4075
  (t) => !!t.textContent && t.parentElement !== null && t.parentElement.getAttribute("aria-hidden") !== "true"
4076
- ).map((t) => t.textContent.trim()), fe = (e, t) => e.querySelector(qr(t))?.textContent.trim(), nf = (e) => {
4077
- const t = fe(e, "Creation Date"), r = fe(e, "Edition"), n = fe(e, "Publication Date"), o = fe(e, "Is Part Of"), s = fe(e, "Publisher"), i = fe(e, "Title"), a = fe(e, "MMS ID") ?? fe(e, "Record ID"), c = rf(e), u = tf(e), [l] = o?.split(",") ?? [], f = ef(n ?? t), d = [...u.isbn ?? [], ...u.eisbn ?? []].map((g) => Pr(g)).filter((g) => !!g);
4076
+ ).map((t) => t.textContent.trim()), he = (e, t) => e.querySelector(qr(t))?.textContent.trim(), oh = (e) => {
4077
+ const t = he(e, "Creation Date"), r = he(e, "Edition"), n = he(e, "Publication Date"), o = he(e, "Is Part Of"), s = he(e, "Publisher"), i = he(e, "Title"), a = he(e, "MMS ID") ?? he(e, "Record ID"), c = nh(e), u = rh(e), [l] = o?.split(",") ?? [], h = th(n ?? t), d = [...u.isbn ?? [], ...u.eisbn ?? []].map((g) => Pr(g)).filter((g) => !!g);
4078
4078
  return {
4079
4079
  authors: c,
4080
- date: f,
4080
+ date: h,
4081
4081
  dois: u.doi,
4082
4082
  edition: r,
4083
4083
  eissns: u.eissn,
@@ -4090,34 +4090,34 @@ const jh = (e, t) => {
4090
4090
  };
4091
4091
  };
4092
4092
  var Rs = /* @__PURE__ */ ((e) => (e.Article = "Article", e.Book = "Book", e.Periodical = "Periodical", e.Journal = "Journal", e.AudioCD = "Audio CD", e.CreativeWork = "CreativeWork", e.Movie = "Movie", e.Video = "Video", e))(Rs || {});
4093
- const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4093
+ const sh = (e) => Object.values(Rs).includes(e), ih = (e, t) => {
4094
4094
  const r = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
4095
- if (of(r))
4095
+ if (sh(r))
4096
4096
  return r;
4097
- }, af = ({ document: e }) => {
4098
- const t = Yh(e), r = nf(e), n = Jh(t, r);
4099
- switch (sf(e, t)) {
4097
+ }, ah = ({ document: e }) => {
4098
+ const t = Kf(e), r = oh(e), n = Mf(t, r);
4099
+ switch (ih(e, t)) {
4100
4100
  case "Article":
4101
- return w(Mh(n));
4101
+ return w(Wf(n));
4102
4102
  case "Book":
4103
- return w(Gh(n));
4103
+ return w(Xf(n));
4104
4104
  case "Periodical":
4105
4105
  case "Journal":
4106
- return w(Xh(n));
4106
+ return w(Hf(n));
4107
4107
  case "Audio CD":
4108
4108
  case "CreativeWork":
4109
- return w(Wh(n));
4109
+ return w(Gf(n));
4110
4110
  case "Movie":
4111
4111
  case "Video":
4112
- return w(Kh(n));
4112
+ return w(Qf(n));
4113
4113
  default:
4114
4114
  return T();
4115
4115
  }
4116
- }, cf = (e) => {
4117
- const t = e.querySelectorAll('[id="Info"] > p'), n = Array.from(t).find((s) => s.textContent.includes("Document Type"))?.textContent, o = h(e, "name", "DC.identifier");
4116
+ }, ch = (e) => {
4117
+ const t = e.querySelectorAll('[id="Info"] > p'), n = Array.from(t).find((s) => s.textContent.includes("Document Type"))?.textContent, o = f(e, "name", "DC.identifier");
4118
4118
  return o?.startsWith("info:doi/") || n?.includes("Article") ? y.Article : o?.startsWith("urn:issn:") ? y.Journal : void 0;
4119
- }, uf = (e) => {
4120
- const t = h(
4119
+ }, uh = (e) => {
4120
+ const t = f(
4121
4121
  e,
4122
4122
  "name",
4123
4123
  "DCTERMS.bibliographicCitation"
@@ -4128,31 +4128,31 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4128
4128
  issue: o,
4129
4129
  pages: s
4130
4130
  };
4131
- }, lf = (e) => {
4132
- const t = h(e, "name", "DC.identifier");
4131
+ }, lh = (e) => {
4132
+ const t = f(e, "name", "DC.identifier");
4133
4133
  return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
4134
- }, pf = (e) => e.evaluate(
4134
+ }, ph = (e) => e.evaluate(
4135
4135
  '//*[@id="altLayoutPublisherLogo"]/p/a[1]',
4136
4136
  e,
4137
4137
  null,
4138
4138
  XPathResult.STRING_TYPE,
4139
4139
  null
4140
- ).stringValue, hf = (e) => {
4140
+ ).stringValue, fh = (e) => {
4141
4141
  const [t, r] = e ? e.trim().split("-") : [void 0, void 0], n = r?.replace(/\(\d+\)/, "").trim();
4142
4142
  return {
4143
4143
  spage: t,
4144
4144
  epage: n
4145
4145
  };
4146
- }, ff = (e) => {
4147
- const t = h(e, "name", "DCTERMS.issued");
4146
+ }, hh = (e) => {
4147
+ const t = f(e, "name", "DCTERMS.issued");
4148
4148
  if (!t)
4149
4149
  return;
4150
4150
  const n = /\d{4}/.exec(t);
4151
4151
  return n ? n[0] : void 0;
4152
- }, df = (e) => {
4153
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = ff(e), o = uf(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), c = o.pages ? hf(o.pages) : void 0, u = c?.spage, l = c?.epage, f = te(e, "name", "DC.creator"), d = lf(e);
4152
+ }, dh = (e) => {
4153
+ const t = f(e, "name", "DC.title"), r = f(e, "name", "DC.publisher"), n = hh(e), o = uh(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), c = o.pages ? fh(o.pages) : void 0, u = c?.spage, l = c?.epage, h = te(e, "name", "DC.creator"), d = lh(e);
4154
4154
  return D(E.Article, {
4155
- au: f,
4155
+ au: h,
4156
4156
  jtitle: s,
4157
4157
  date: n,
4158
4158
  doi: d,
@@ -4163,47 +4163,47 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4163
4163
  atitle: t,
4164
4164
  volume: i
4165
4165
  });
4166
- }, mf = (e) => {
4167
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = pf(e);
4166
+ }, mh = (e) => {
4167
+ const t = f(e, "name", "DC.title"), r = f(e, "name", "DC.publisher"), n = ph(e);
4168
4168
  return D(E.Journal, {
4169
4169
  issn: n,
4170
4170
  title: t,
4171
4171
  pub: r
4172
4172
  });
4173
- }, gf = ({
4173
+ }, gh = ({
4174
4174
  document: e
4175
4175
  }) => {
4176
- switch (cf(e)) {
4176
+ switch (ch(e)) {
4177
4177
  case y.Article:
4178
- return w(df(e));
4178
+ return w(dh(e));
4179
4179
  case y.Journal:
4180
- return w(mf(e));
4180
+ return w(mh(e));
4181
4181
  default:
4182
4182
  return T();
4183
4183
  }
4184
- }, vf = /^\d{4}-\d{3}[\dX]$/i, bf = (e) => vf.test(e), Is = (e) => {
4185
- const t = e.filter(bf);
4184
+ }, vh = /^\d{4}-\d{3}[\dX]$/i, bh = (e) => vh.test(e), Is = (e) => {
4185
+ const t = e.filter(bh);
4186
4186
  return t.length ? t : void 0;
4187
4187
  }, Zr = (e) => {
4188
4188
  const t = te(e, "name", "citation_author");
4189
4189
  return t.length ? t : void 0;
4190
- }, jr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], _f = (e) => h(e, "name", "citation_doi"), ks = (e) => {
4190
+ }, jr = (e) => f(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], _h = (e) => f(e, "name", "citation_doi"), ks = (e) => {
4191
4191
  const t = te(e, "name", "citation_isbn");
4192
4192
  return t.length ? t.join(",") : void 0;
4193
- }, Cs = (e) => Is(te(e, "name", "citation_issn")), Dr = (e) => h(e, "name", "citation_journal_title"), Br = (e) => h(e, "name", "citation_publisher"), ft = (e) => h(e, "name", "citation_title"), yf = (e) => h(e, "name", "citation_doi"), Ur = (e) => h(e, "name", "citation_firstpage"), Vr = (e) => h(e, "name", "citation_lastpage"), Ef = (e) => h(e, "name", "citation_issue"), Sf = (e) => h(e, "name", "citation_volume"), $f = (e) => D(E.Article, {
4194
- atitle: ft(e),
4193
+ }, Cs = (e) => Is(te(e, "name", "citation_issn")), Dr = (e) => f(e, "name", "citation_journal_title"), Br = (e) => f(e, "name", "citation_publisher"), ht = (e) => f(e, "name", "citation_title"), yh = (e) => f(e, "name", "citation_doi"), Ur = (e) => f(e, "name", "citation_firstpage"), Vr = (e) => f(e, "name", "citation_lastpage"), Eh = (e) => f(e, "name", "citation_issue"), Sh = (e) => f(e, "name", "citation_volume"), $h = (e) => D(E.Article, {
4194
+ atitle: ht(e),
4195
4195
  au: Zr(e),
4196
4196
  date: jr(e),
4197
- doi: _f(e),
4197
+ doi: _h(e),
4198
4198
  issn: Cs(e)?.[0],
4199
- issue: Ef(e),
4199
+ issue: Eh(e),
4200
4200
  jtitle: Dr(e),
4201
4201
  pub: Br(e),
4202
- volume: Sf(e),
4202
+ volume: Sh(e),
4203
4203
  spage: Ur(e),
4204
4204
  epage: Vr(e)
4205
- }), Af = (e) => Q(E.Bookitem, {
4206
- atitle: ft(e),
4205
+ }), Ah = (e) => Q(E.Bookitem, {
4206
+ atitle: ht(e),
4207
4207
  au: Zr(e),
4208
4208
  btitle: Dr(e),
4209
4209
  date: jr(e),
@@ -4211,26 +4211,26 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4211
4211
  pub: Br(e),
4212
4212
  spage: Ur(e),
4213
4213
  epage: Vr(e)
4214
- }), wf = (e) => il({
4215
- title: ft(e),
4214
+ }), wh = (e) => il({
4215
+ title: ht(e),
4216
4216
  au: Zr(e),
4217
4217
  date: jr(e),
4218
4218
  pub: Br(e),
4219
4219
  spage: Ur(e),
4220
4220
  epage: Vr(e)
4221
- }), Ps = (e) => !!e.isbn, Rf = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Ps(e) && !!e.journalTitle, If = (e) => !!e.title, kf = (e) => {
4221
+ }), Ps = (e) => !!e.isbn, Rh = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Ps(e) && !!e.journalTitle, Ih = (e) => !!e.title, kh = (e) => {
4222
4222
  const t = {
4223
- type: yf(e),
4223
+ type: yh(e),
4224
4224
  isbn: ks(e),
4225
4225
  issn: Cs(e),
4226
4226
  journalTitle: Dr(e),
4227
- title: ft(e)
4227
+ title: ht(e)
4228
4228
  };
4229
- return Ps(t) ? Af(e) : Rf(t) ? $f(e) : If(t) ? wf(e) : null;
4230
- }, Cf = ({ document: e }) => {
4231
- const t = kf(e);
4229
+ return Ps(t) ? Ah(e) : Rh(t) ? $h(e) : Ih(t) ? wh(e) : null;
4230
+ }, Ch = ({ document: e }) => {
4231
+ const t = kh(e);
4232
4232
  return t ? w(t) : T();
4233
- }, Pf = R({
4233
+ }, Ph = R({
4234
4234
  "@content": p(),
4235
4235
  datePublished: p().optional(),
4236
4236
  mainEntity: R({
@@ -4247,23 +4247,23 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4247
4247
  }).optional(),
4248
4248
  isbn: p().optional()
4249
4249
  })
4250
- }), Of = (e) => Pf.safeParse(e).success, xf = (e) => {
4250
+ }), xh = (e) => Ph.safeParse(e).success, Oh = (e) => {
4251
4251
  const t = e.textContent;
4252
4252
  if (!t)
4253
4253
  return null;
4254
4254
  try {
4255
4255
  const r = JSON.parse(t);
4256
- if (Of(r))
4256
+ if (xh(r))
4257
4257
  return r;
4258
4258
  } catch {
4259
4259
  return null;
4260
4260
  }
4261
4261
  return null;
4262
- }, Nf = ({ document: e }) => {
4262
+ }, Nh = ({ document: e }) => {
4263
4263
  const t = ct(e);
4264
4264
  if (!t)
4265
4265
  return T();
4266
- const r = xf(t);
4266
+ const r = Oh(t);
4267
4267
  if (!r)
4268
4268
  return T();
4269
4269
  const n = r.mainEntity.type, o = r.mainEntity.author?.map((u) => u.name), s = r.datePublished?.substring(0, 4), i = r.mainEntity.name, a = r.mainEntity.isbn, c = r.mainEntity.publisher?.name;
@@ -4281,7 +4281,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4281
4281
  default:
4282
4282
  return T();
4283
4283
  }
4284
- }, zf = we.extend({
4284
+ }, zh = we.extend({
4285
4285
  "@type": p().optional(),
4286
4286
  name: p().optional(),
4287
4287
  copyrightYear: Vo().optional(),
@@ -4295,7 +4295,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4295
4295
  name: p()
4296
4296
  })
4297
4297
  ).optional()
4298
- }), Lf = (e) => zf.safeParse(e).success, Tf = ({
4298
+ }), Lh = (e) => zh.safeParse(e).success, Th = ({
4299
4299
  document: e,
4300
4300
  url: t
4301
4301
  }) => {
@@ -4303,9 +4303,9 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4303
4303
  if (!r)
4304
4304
  return T();
4305
4305
  const n = Fe(r);
4306
- if (!n || !Lf(n))
4306
+ if (!n || !Lh(n))
4307
4307
  return T();
4308
- const o = n["@type"], s = n.author?.map((l) => l.name), i = n.copyrightYear?.toString() ?? h(e, "property", "og:book:release_date"), a = n.name, c = Lr(n.publisher?.map((l) => l.name)), u = h(e, "property", "og:book:isbn");
4308
+ const o = n["@type"], s = n.author?.map((l) => l.name), i = n.copyrightYear?.toString() ?? f(e, "property", "og:book:release_date"), a = n.name, c = Lr(n.publisher?.map((l) => l.name)), u = f(e, "property", "og:book:isbn");
4309
4309
  switch (o) {
4310
4310
  case "Book":
4311
4311
  return w(
@@ -4321,15 +4321,15 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4321
4321
  default:
4322
4322
  return T();
4323
4323
  }
4324
- }, qf = (e) => {
4324
+ }, qh = (e) => {
4325
4325
  const t = Array.from(e.querySelectorAll("a[rel=author]")).map((r) => r.textContent.trim()).filter(Boolean);
4326
4326
  return t.length ? t : void 0;
4327
- }, Zf = (e) => {
4327
+ }, Zh = (e) => {
4328
4328
  const t = Array.from(e.querySelectorAll("strong")).filter((r) => r.textContent.startsWith("ISBN")).map((r) => r.nextElementSibling?.textContent.trim());
4329
4329
  if (t.length !== 0)
4330
4330
  return t[0]?.replace(/\s+/, ",");
4331
- }, jf = ({ url: e, document: t }) => {
4332
- const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = qf(t), o = h(t, "property", "article:published_time"), s = Zf(t), i = Q(E.Book, {
4331
+ }, jh = ({ url: e, document: t }) => {
4332
+ const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = qh(t), o = f(t, "property", "article:published_time"), s = Zh(t), i = Q(E.Book, {
4333
4333
  au: n,
4334
4334
  date: o?.substring(0, 4),
4335
4335
  isbn: s,
@@ -4338,31 +4338,31 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4338
4338
  uri: e
4339
4339
  });
4340
4340
  return w(i);
4341
- }, Df = ({
4341
+ }, Dh = ({
4342
4342
  document: e,
4343
4343
  url: t
4344
4344
  }) => {
4345
- switch (Bf(t)) {
4345
+ switch (Bh(t)) {
4346
4346
  case y.Chapter:
4347
- return w(Mf(e));
4347
+ return w(Mh(e));
4348
4348
  case y.Book:
4349
- return w(Wf(e));
4349
+ return w(Wh(e));
4350
4350
  case y.Article:
4351
- return w(Uf(e));
4351
+ return w(Uh(e));
4352
4352
  case y.Journal:
4353
- return w(Vf(e));
4353
+ return w(Vh(e));
4354
4354
  default:
4355
4355
  return T();
4356
4356
  }
4357
- }, Bf = (e) => {
4357
+ }, Bh = (e) => {
4358
4358
  const { pathname: t } = new URL(e);
4359
4359
  return t.includes("/books/abs/") ? y.Chapter : t.includes("/books/") ? y.Book : /\/journals\/.+\/article\//.exec(t) != null ? y.Article : t.includes("/journals/") ? y.Journal : y.None;
4360
- }, Uf = (e) => {
4361
- const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_journal_title"), n = h(e, "name", "citation_doi"), o = h(e, "name", "citation_volume"), s = h(e, "name", "citation_issue"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_lastpage"), c = h(
4360
+ }, Uh = (e) => {
4361
+ const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_journal_title"), n = f(e, "name", "citation_doi"), o = f(e, "name", "citation_volume"), s = f(e, "name", "citation_issue"), i = f(e, "name", "citation_firstpage"), a = f(e, "name", "citation_lastpage"), c = f(
4362
4362
  e,
4363
4363
  "name",
4364
4364
  "citation_publication_date"
4365
- )?.substring(0, 4), u = h(e, "name", "citation_publisher"), l = Os(e), f = Is(
4365
+ )?.substring(0, 4), u = f(e, "name", "citation_publisher"), l = xs(e), h = Is(
4366
4366
  te(e, "name", "citation_issn")
4367
4367
  );
4368
4368
  return D(E.Article, {
@@ -4372,14 +4372,14 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4372
4372
  doi: n,
4373
4373
  volume: o,
4374
4374
  issue: s,
4375
- issn: f?.[0],
4375
+ issn: h?.[0],
4376
4376
  spage: i,
4377
4377
  epage: a,
4378
4378
  date: c,
4379
4379
  pub: u
4380
4380
  });
4381
- }, Vf = (e) => {
4382
- const t = Ff(e), r = Jf(e), n = r.find(
4381
+ }, Vh = (e) => {
4382
+ const t = Fh(e), r = Jh(e), n = r.find(
4383
4383
  (a) => a.type === "Print"
4384
4384
  /* Print */
4385
4385
  ), o = r.find(
@@ -4391,7 +4391,7 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4391
4391
  issn: s,
4392
4392
  eissn: i
4393
4393
  });
4394
- }, Ff = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Jf = (e) => {
4394
+ }, Fh = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Jh = (e) => {
4395
4395
  const r = Array.from(e.querySelectorAll("span.bold")).find(
4396
4396
  (s) => s.textContent.trim() === "ISSN:"
4397
4397
  ), n = /^([0-9]{4}-[0-9]{3}[0-9X]) \((Print|Online)\)/, o = [];
@@ -4399,12 +4399,12 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4399
4399
  const a = i.textContent.trim(), c = n.exec(a);
4400
4400
  c && o.push({ value: c[1], type: c[2] });
4401
4401
  }), o;
4402
- }, Mf = (e) => {
4403
- const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_inbook_title"), n = h(e, "name", "citation_doi"), o = h(
4402
+ }, Mh = (e) => {
4403
+ const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_inbook_title"), n = f(e, "name", "citation_doi"), o = f(
4404
4404
  e,
4405
4405
  "name",
4406
4406
  "citation_publication_date"
4407
- )?.substring(0, 4), s = h(e, "name", "citation_publisher");
4407
+ )?.substring(0, 4), s = f(e, "name", "citation_publisher");
4408
4408
  return Q(E.Bookitem, {
4409
4409
  atitle: t,
4410
4410
  btitle: r,
@@ -4412,12 +4412,12 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4412
4412
  date: o,
4413
4413
  pub: s
4414
4414
  });
4415
- }, Wf = (e) => {
4416
- const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_doi"), n = h(e, "name", "citation_isbn"), o = h(
4415
+ }, Wh = (e) => {
4416
+ const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_doi"), n = f(e, "name", "citation_isbn"), o = f(
4417
4417
  e,
4418
4418
  "name",
4419
4419
  "citation_publication_date"
4420
- )?.substring(0, 4), s = h(e, "name", "citation_publisher"), i = Os(e);
4420
+ )?.substring(0, 4), s = f(e, "name", "citation_publisher"), i = xs(e);
4421
4421
  return Q(E.Book, {
4422
4422
  title: t,
4423
4423
  au: i,
@@ -4426,11 +4426,11 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4426
4426
  date: o,
4427
4427
  pub: s
4428
4428
  });
4429
- }, Os = (e) => {
4429
+ }, xs = (e) => {
4430
4430
  const t = te(e, "name", "citation_author");
4431
4431
  return t.length ? t : void 0;
4432
- }, Gf = (e) => {
4433
- switch (h(e, "property", "og:type")) {
4432
+ }, Gh = (e) => {
4433
+ switch (f(e, "property", "og:type")) {
4434
4434
  case "Article":
4435
4435
  return "Article";
4436
4436
  case "Journal":
@@ -4439,8 +4439,8 @@ const of = (e) => Object.values(Rs).includes(e), sf = (e, t) => {
4439
4439
  return;
4440
4440
  }
4441
4441
  };
4442
- function Xf(e) {
4443
- const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "publication_doi");
4442
+ function Xh(e) {
4443
+ const t = f(e, "property", "og:title"), r = f(e, "name", "dc.Publisher"), n = f(e, "name", "publication_doi");
4444
4444
  return w(
4445
4445
  D(E.Journal, {
4446
4446
  jtitle: t,
@@ -4449,8 +4449,8 @@ function Xf(e) {
4449
4449
  })
4450
4450
  );
4451
4451
  }
4452
- function Hf(e) {
4453
- const t = h(e, "name", "dc.Title"), r = te(e, "name", "dc.Creator"), n = h(e, "name", "dc.Date")?.substring(0, 4), o = h(e, "name", "publication_doi"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "dc.Publisher");
4452
+ function Hh(e) {
4453
+ const t = f(e, "name", "dc.Title"), r = te(e, "name", "dc.Creator"), n = f(e, "name", "dc.Date")?.substring(0, 4), o = f(e, "name", "publication_doi"), s = f(e, "name", "citation_journal_title"), i = f(e, "name", "dc.Publisher");
4454
4454
  return w(
4455
4455
  D(E.Article, {
4456
4456
  atitle: t,
@@ -4462,16 +4462,16 @@ function Hf(e) {
4462
4462
  })
4463
4463
  );
4464
4464
  }
4465
- const Yf = ({ document: e }) => {
4466
- switch (Gf(e)) {
4465
+ const Yh = ({ document: e }) => {
4466
+ switch (Gh(e)) {
4467
4467
  case "Journal":
4468
- return Xf(e);
4468
+ return Xh(e);
4469
4469
  case "Article":
4470
- return Hf(e);
4470
+ return Hh(e);
4471
4471
  default:
4472
4472
  return T();
4473
4473
  }
4474
- }, Kf = (e) => {
4474
+ }, Kh = (e) => {
4475
4475
  if (!e)
4476
4476
  return;
4477
4477
  const [t, r] = e.trim().split("-");
@@ -4479,33 +4479,33 @@ const Yf = ({ document: e }) => {
4479
4479
  spage: t,
4480
4480
  epage: r
4481
4481
  };
4482
- }, Qf = (e) => {
4482
+ }, Qh = (e) => {
4483
4483
  const { pathname: t } = new URL(e);
4484
4484
  if (t.includes("/article/"))
4485
4485
  return y.Article;
4486
4486
  }, ed = (e) => {
4487
- const t = h(e, "name", "DC.Source"), r = h(e, "name", "DC.Title"), n = te(e, "name", "DC.Creator.PersonalName"), o = h(e, "name", "DC.Source.ISSN"), s = h(e, "name", "citation_date")?.substring(
4487
+ const t = f(e, "name", "DC.Source"), r = f(e, "name", "DC.Title"), n = te(e, "name", "DC.Creator.PersonalName"), o = f(e, "name", "DC.Source.ISSN"), s = f(e, "name", "citation_date")?.substring(
4488
4488
  0,
4489
4489
  4
4490
- ), i = h(e, "name", "DC.Source.Volume"), a = h(e, "name", "DC.Source.Issue"), c = h(e, "name", "DC.Identifier.URI"), u = h(
4490
+ ), i = f(e, "name", "DC.Source.Volume"), a = f(e, "name", "DC.Source.Issue"), c = f(e, "name", "DC.Identifier.URI"), u = f(
4491
4491
  e,
4492
4492
  "name",
4493
4493
  "DC.Identifier.pageNumber"
4494
- ), l = u ? Kf(u) : void 0, f = l?.spage, d = l?.epage;
4494
+ ), l = u ? Kh(u) : void 0, h = l?.spage, d = l?.epage;
4495
4495
  return D(E.Article, {
4496
4496
  jtitle: t,
4497
4497
  atitle: r,
4498
4498
  au: n,
4499
4499
  issn: o,
4500
4500
  date: s,
4501
- spage: f,
4501
+ spage: h,
4502
4502
  epage: d,
4503
4503
  volume: i,
4504
4504
  issue: a,
4505
4505
  uri: c
4506
4506
  });
4507
4507
  }, td = ({ document: e, url: t }) => {
4508
- switch (Qf(t)) {
4508
+ switch (Qh(t)) {
4509
4509
  case y.Article:
4510
4510
  return w(ed(e));
4511
4511
  default:
@@ -4522,14 +4522,14 @@ const Yf = ({ document: e }) => {
4522
4522
  }
4523
4523
  }, nd = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4524
4524
  function od(e, t) {
4525
- const r = xs(e), n = _r(e), o = Ns(e), s = zs(e), i = Ls(e), a = Ts(e), c = _r(e), u = t, { startPage: l, endPage: f } = qs(e) ?? {};
4525
+ const r = Os(e), n = _r(e), o = Ns(e), s = zs(e), i = Ls(e), a = Ts(e), c = _r(e), u = t, { startPage: l, endPage: h } = qs(e) ?? {};
4526
4526
  return w(
4527
4527
  Q(E.Book, {
4528
4528
  au: r,
4529
4529
  btitle: n,
4530
4530
  date: o,
4531
4531
  doi: s,
4532
- epage: f,
4532
+ epage: h,
4533
4533
  isbn: i,
4534
4534
  pub: a,
4535
4535
  spage: l,
@@ -4539,7 +4539,7 @@ function od(e, t) {
4539
4539
  );
4540
4540
  }
4541
4541
  function sd(e, t) {
4542
- const r = xs(e), n = wn(e), o = _r(e), s = Ns(e), i = zs(e), a = Ls(e), c = Ts(e), u = wn(e), l = t, { startPage: f, endPage: d } = qs(e) ?? {};
4542
+ const r = Os(e), n = wn(e), o = _r(e), s = Ns(e), i = zs(e), a = Ls(e), c = Ts(e), u = wn(e), l = t, { startPage: h, endPage: d } = qs(e) ?? {};
4543
4543
  return w(
4544
4544
  Q(E.Book, {
4545
4545
  au: r,
@@ -4550,18 +4550,18 @@ function sd(e, t) {
4550
4550
  epage: d,
4551
4551
  isbn: a,
4552
4552
  pub: c,
4553
- spage: f,
4553
+ spage: h,
4554
4554
  title: u,
4555
4555
  uri: l
4556
4556
  })
4557
4557
  );
4558
4558
  }
4559
- const xs = (e) => {
4559
+ const Os = (e) => {
4560
4560
  const t = e.querySelectorAll(
4561
4561
  "div#article_author p.author-bio b"
4562
4562
  ), r = Array.from(t).map((n) => n.textContent).filter((n) => !!n).map((n) => n.trim());
4563
4563
  return r.length > 0 ? r : void 0;
4564
- }, Le = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, id = (e) => h(e, "property", "og:title"), _r = (e) => Le(e, "titlevalue") ?? id(e), wn = (e) => Le(e, "chapter-title-squid"), Ns = (e) => Le(e, "pubdate-squid"), zs = (e) => Le(e, "doi-squid"), Ls = (e) => Le(e, "isbn-squid"), Ts = (e) => Le(e, "pubname-squid"), qs = (e) => {
4564
+ }, Le = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, id = (e) => f(e, "property", "og:title"), _r = (e) => Le(e, "titlevalue") ?? id(e), wn = (e) => Le(e, "chapter-title-squid"), Ns = (e) => Le(e, "pubdate-squid"), zs = (e) => Le(e, "doi-squid"), Ls = (e) => Le(e, "isbn-squid"), Ts = (e) => Le(e, "pubname-squid"), qs = (e) => {
4565
4565
  const t = e.querySelector("#pageRange")?.textContent ?? void 0;
4566
4566
  if (!t) return;
4567
4567
  const n = /(\d+)–(\d+)/.exec(t);
@@ -4603,19 +4603,19 @@ const xs = (e) => {
4603
4603
  t.resource.genre = r, ld(t.resource);
4604
4604
  }
4605
4605
  return t;
4606
- }, hd = (e) => {
4607
- const t = h(e, "name", "type")?.toLowerCase(), r = h(e, "name", "og:type")?.toLowerCase(), n = h(
4606
+ }, fd = (e) => {
4607
+ const t = f(e, "name", "type")?.toLowerCase(), r = f(e, "name", "og:type")?.toLowerCase(), n = f(
4608
4608
  e,
4609
4609
  "name",
4610
4610
  "citation_article_type"
4611
4611
  )?.toLowerCase();
4612
4612
  if (t === "article" || n === "article" || r === "article")
4613
4613
  return y.Article;
4614
- const o = h(e, "name", "twitter:title")?.trim(), s = h(e, "name", "description")?.trim();
4614
+ const o = f(e, "name", "twitter:title")?.trim(), s = f(e, "name", "description")?.trim();
4615
4615
  if (o || s)
4616
4616
  return y.Webpage;
4617
- }, fd = (e) => {
4618
- const t = h(e, "name", "DC.Title"), r = h(e, "name", "DC.Publisher"), n = h(e, "name", "DC.Date"), o = h(e, "name", "DC.Identifier"), s = h(e, "name", "citation_journal_title"), i = h(e, "name", "citation_volume"), a = h(e, "name", "citation_issn"), c = te(e, "name", "citation_author");
4617
+ }, hd = (e) => {
4618
+ const t = f(e, "name", "DC.Title"), r = f(e, "name", "DC.Publisher"), n = f(e, "name", "DC.Date"), o = f(e, "name", "DC.Identifier"), s = f(e, "name", "citation_journal_title"), i = f(e, "name", "citation_volume"), a = f(e, "name", "citation_issn"), c = te(e, "name", "citation_author");
4619
4619
  return D(E.Article, {
4620
4620
  au: c,
4621
4621
  jtitle: s,
@@ -4627,7 +4627,7 @@ const xs = (e) => {
4627
4627
  volume: i
4628
4628
  });
4629
4629
  }, dd = (e, t) => {
4630
- const r = h(t, "name", "twitter:title");
4630
+ const r = f(t, "name", "twitter:title");
4631
4631
  return Ir({
4632
4632
  uri: e,
4633
4633
  title: r
@@ -4636,9 +4636,9 @@ const xs = (e) => {
4636
4636
  url: e,
4637
4637
  document: t
4638
4638
  }) => {
4639
- switch (hd(t)) {
4639
+ switch (fd(t)) {
4640
4640
  case y.Article:
4641
- return w(fd(t));
4641
+ return w(hd(t));
4642
4642
  case y.Webpage:
4643
4643
  return w(dd(e, t));
4644
4644
  }
@@ -4688,7 +4688,7 @@ const Ed = ({
4688
4688
  }) => {
4689
4689
  if (!new URL(e).searchParams.has("i"))
4690
4690
  return T();
4691
- const n = E.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = yd(t);
4691
+ const n = E.AudioDocument, o = f(t, "property", "og:site_name"), s = f(t, "property", "og:title"), i = yd(t);
4692
4692
  return w({
4693
4693
  genre: n,
4694
4694
  pub: o,
@@ -4697,13 +4697,13 @@ const Ed = ({
4697
4697
  ...i
4698
4698
  });
4699
4699
  }, Sd = (e) => {
4700
- const t = h(e, "name", "citation_date");
4700
+ const t = f(e, "name", "citation_date");
4701
4701
  return t ? t.split("/").find((o) => /^\d{4}/.test(o)) ?? void 0 : void 0;
4702
4702
  }, $d = (e) => {
4703
4703
  const t = e.querySelector("#arxiv-doi-link")?.textContent;
4704
4704
  return t ? t.replace("https://doi.org/", "").trim() : void 0;
4705
4705
  }, Ad = ({ document: e }) => {
4706
- const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = Sd(e), s = $d(e);
4706
+ const t = f(e, "name", "citation_title"), r = f(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = Sd(e), s = $d(e);
4707
4707
  return !t && n.length === 0 && !o && !s ? T() : w(
4708
4708
  D(E.Article, {
4709
4709
  au: n,
@@ -4742,7 +4742,7 @@ const Ed = ({
4742
4742
  const r = Rd(t), n = wd(t) ?? r.get("director"), o = je(t, "div.product-release-year"), s = je(
4743
4743
  t,
4744
4744
  "div.studio-section div.term-info-section-item"
4745
- ) ?? xe(r.get("supplier")), i = je(t, ".product-title") ?? je(t, ".movie-title"), a = _e({
4745
+ ) ?? Oe(r.get("supplier")), i = je(t, ".product-title") ?? je(t, ".movie-title"), a = _e({
4746
4746
  au: n,
4747
4747
  date: o,
4748
4748
  pub: s,
@@ -4751,7 +4751,7 @@ const Ed = ({
4751
4751
  });
4752
4752
  return w(a);
4753
4753
  }, kd = (e) => {
4754
- if (h(e, "property", "og:type") === "article")
4754
+ if (f(e, "property", "og:type") === "article")
4755
4755
  return y.Article;
4756
4756
  };
4757
4757
  function Cd(e) {
@@ -4764,21 +4764,21 @@ function Cd(e) {
4764
4764
  }), t;
4765
4765
  }
4766
4766
  function Pd(e, t, r) {
4767
- return r.includes("publisher") ? t.publisher : r.includes("place of publication, exhibition, or creation") ? t["place of publication, exhibition, or creation"] : h(e, "name", "DC.publisher");
4767
+ return r.includes("publisher") ? t.publisher : r.includes("place of publication, exhibition, or creation") ? t["place of publication, exhibition, or creation"] : f(e, "name", "DC.publisher");
4768
4768
  }
4769
- function Od(e) {
4770
- const t = h(
4769
+ function xd(e) {
4770
+ const t = f(
4771
4771
  e,
4772
4772
  "name",
4773
4773
  "citation_publication_date"
4774
4774
  );
4775
- return t ? t.substring(0, 4) : h(e, "name", "citation_online_date")?.substring(
4775
+ return t ? t.substring(0, 4) : f(e, "name", "citation_online_date")?.substring(
4776
4776
  0,
4777
4777
  4
4778
4778
  );
4779
4779
  }
4780
- const xd = (e) => {
4781
- const t = Cd(e), r = h(e, "name", "DataCite.title"), n = te(e, "name", "DataCite.contributor"), o = Od(e), s = h(e, "name", "DC.identifier.DOI"), i = Object.keys(t), a = Pd(e, t, i), c = i.includes("journal") ? t.journal : void 0, u = i.includes("volume") ? t.volume : void 0, l = i.includes("issue") ? t.issue : void 0, f = i.includes("issn") ? t.issn : void 0, d = i.includes("electronic location (url)") ? t["electronic location (url)"] : void 0;
4780
+ const Od = (e) => {
4781
+ const t = Cd(e), r = f(e, "name", "DataCite.title"), n = te(e, "name", "DataCite.contributor"), o = xd(e), s = f(e, "name", "DC.identifier.DOI"), i = Object.keys(t), a = Pd(e, t, i), c = i.includes("journal") ? t.journal : void 0, u = i.includes("volume") ? t.volume : void 0, l = i.includes("issue") ? t.issue : void 0, h = i.includes("issn") ? t.issn : void 0, d = i.includes("electronic location (url)") ? t["electronic location (url)"] : void 0;
4782
4782
  return D(E.Article, {
4783
4783
  jtitle: c,
4784
4784
  atitle: r,
@@ -4788,13 +4788,13 @@ const xd = (e) => {
4788
4788
  doi: s,
4789
4789
  volume: u,
4790
4790
  issue: l,
4791
- issn: f,
4791
+ issn: h,
4792
4792
  uri: d
4793
4793
  });
4794
4794
  }, Nd = ({ document: e }) => {
4795
4795
  switch (kd(e)) {
4796
4796
  case y.Article:
4797
- return w(xd(e));
4797
+ return w(Od(e));
4798
4798
  default:
4799
4799
  return T();
4800
4800
  }
@@ -4803,28 +4803,28 @@ var L = /* @__PURE__ */ ((e) => (e.NoResourceFound = "NoResourceFound", e.Z3988
4803
4803
  const In = {
4804
4804
  NoResourceFound: ds,
4805
4805
  Z3988: Cr,
4806
- Z3988SearchResult: Sh,
4807
- Amazon: xl,
4806
+ Z3988SearchResult: $f,
4807
+ Amazon: Ol,
4808
4808
  CupOfJo: ep,
4809
- Jstor: Vh,
4809
+ Jstor: Ff,
4810
4810
  Youtube: Dp,
4811
4811
  SagePub: mp,
4812
- SageVideo: Eh,
4812
+ SageVideo: Sf,
4813
4813
  ScienceDirect: Ap,
4814
- Springer: oh,
4815
- TaylorFrancis: Op,
4816
- Wiley: _h,
4814
+ Springer: of,
4815
+ TaylorFrancis: xp,
4816
+ Wiley: yf,
4817
4817
  VuFind: Tp,
4818
4818
  ClinicalKey: Jl,
4819
4819
  DOAJ: sp,
4820
- Primo: af,
4821
- IngentaConnect: gf,
4822
- Ebscohost: Cf,
4823
- OpenStax: Nf,
4824
- OpenTextbook: Tf,
4825
- Milne: jf,
4826
- CambridgeJournalsOnline: Df,
4827
- AhaJournals: Yf,
4820
+ Primo: ah,
4821
+ IngentaConnect: gh,
4822
+ Ebscohost: Ch,
4823
+ OpenStax: Nh,
4824
+ OpenTextbook: Th,
4825
+ Milne: jh,
4826
+ CambridgeJournalsOnline: Dh,
4827
+ AhaJournals: Yh,
4828
4828
  Ijees: td,
4829
4829
  BloomsburyCollections: ad,
4830
4830
  HeritageCirqa: pd,
@@ -4834,7 +4834,7 @@ const In = {
4834
4834
  Arxiv: Ad,
4835
4835
  KanopyVideo: Id,
4836
4836
  LaTrobeOpal: Nd
4837
- }, zd = "5.28.0", Zs = () => zd, Ld = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], Td = Ld.flatMap((e) => [
4837
+ }, zd = "5.29.0", Zs = () => zd, Ld = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], Td = Ld.flatMap((e) => [
4838
4838
  `amazon.${e}`,
4839
4839
  `www.amazon.${e}`
4840
4840
  ]), Vm = {
@@ -4855,7 +4855,7 @@ const In = {
4855
4855
  parsers: [L.SummonSearchResult]
4856
4856
  },
4857
4857
  {
4858
- matcher: { hostnames: ["cupofjo.com"] },
4858
+ matcher: { regexp: "cupofjo[.-]com" },
4859
4859
  name: "Cup of Jo",
4860
4860
  parsers: [L.CupOfJo]
4861
4861
  },
@@ -4865,7 +4865,7 @@ const In = {
4865
4865
  parsers: [L.Youtube]
4866
4866
  },
4867
4867
  {
4868
- matcher: { hostnames: ["www.sciencedirect.com"] },
4868
+ matcher: { regexp: "www[-.]sciencedirect[.-]com" },
4869
4869
  name: "Science Direct",
4870
4870
  parsers: [L.ScienceDirect]
4871
4871
  },
@@ -4874,21 +4874,26 @@ const In = {
4874
4874
  name: "Amazon",
4875
4875
  parsers: [L.Amazon]
4876
4876
  },
4877
+ {
4878
+ matcher: { regexp: "^https://sk\\.sagepub\\.com/video/" },
4879
+ name: "Sage Video",
4880
+ parsers: [L.SageVideo]
4881
+ },
4877
4882
  {
4878
4883
  matcher: {
4879
- hostnames: ["sagepub.com", "www.sagepub.com", "journals.sagepub.com"]
4884
+ regexp: "[/.-]((www|journals)[.-])?sagepub[.-]com"
4880
4885
  },
4881
4886
  name: "Sage Publishing",
4882
4887
  parsers: [L.SagePub]
4883
4888
  },
4884
4889
  {
4885
- matcher: { hostnames: ["www.tandfonline.com"] },
4890
+ matcher: { regexp: "www[.-]tandfonline[.-]com" },
4886
4891
  name: "Taylor & Francis",
4887
4892
  parsers: [L.TaylorFrancis]
4888
4893
  },
4889
4894
  {
4890
4895
  matcher: {
4891
- hostnames: ["wiley.com", "www.wiley.com", "onlinelibrary.wiley.com"]
4896
+ regexp: "[/.-]((www|onlinelibrary)[.-])?wiley[.-]com"
4892
4897
  },
4893
4898
  name: "Wiley",
4894
4899
  parsers: [L.Wiley]
@@ -4906,15 +4911,10 @@ const In = {
4906
4911
  parsers: [L.Z3988]
4907
4912
  },
4908
4913
  {
4909
- matcher: { hostnames: ["link.springer.com"] },
4914
+ matcher: { regexp: "link[.-]springer[.-]com" },
4910
4915
  name: "Springer",
4911
4916
  parsers: [L.Springer]
4912
4917
  },
4913
- {
4914
- matcher: { regexp: "^https://sk\\.sagepub\\.com/video/" },
4915
- name: "Sage Video",
4916
- parsers: [L.SageVideo]
4917
- },
4918
4918
  {
4919
4919
  matcher: {
4920
4920
  regexp: "^https://vufind\\.lboro\\.ac\\.uk/(Record|PrimoRecord)"
@@ -4923,128 +4923,128 @@ const In = {
4923
4923
  parsers: [L.VuFind]
4924
4924
  },
4925
4925
  {
4926
- matcher: { hostnames: ["www.clinicalkey.com", "www.clinicalkey.com.au"] },
4926
+ matcher: { regexp: "www[.-]clinicalkey[.-]com" },
4927
4927
  name: "ClinicalKey",
4928
4928
  parsers: [L.ClinicalKey]
4929
4929
  },
4930
4930
  {
4931
4931
  matcher: {
4932
- hostnames: ["www.jstor.org"]
4932
+ regexp: "www[.-]jstor[.-]org"
4933
4933
  },
4934
4934
  name: "JSTOR",
4935
4935
  parsers: [L.Jstor]
4936
4936
  },
4937
4937
  {
4938
- matcher: { hostnames: ["doaj.org"] },
4938
+ matcher: { regexp: "doaj[.-]org" },
4939
4939
  name: "DOAJ",
4940
4940
  parsers: [L.DOAJ]
4941
4941
  },
4942
4942
  {
4943
4943
  matcher: {
4944
- regexp: "/.*ingentaconnect.com/"
4944
+ regexp: "[/.-]ingentaconnect[.-]com"
4945
4945
  },
4946
4946
  name: "IngentaConnect",
4947
4947
  parsers: [L.IngentaConnect]
4948
4948
  },
4949
4949
  {
4950
4950
  matcher: {
4951
- hostnames: ["research.ebsco.com"]
4951
+ regexp: "research[.-]ebsco[.-]com"
4952
4952
  },
4953
4953
  name: "EBSCOHost",
4954
4954
  parsers: [L.Ebscohost]
4955
4955
  },
4956
4956
  {
4957
4957
  matcher: {
4958
- hostnames: ["openstax.org"]
4958
+ regexp: "openstax[-.]org"
4959
4959
  },
4960
4960
  name: "OpenStax",
4961
4961
  parsers: [L.OpenStax]
4962
4962
  },
4963
4963
  {
4964
4964
  matcher: {
4965
- hostnames: ["open.umn.edu"]
4965
+ regexp: "open[.-]umn[.-]edu"
4966
4966
  },
4967
4967
  name: "OpenTextbook",
4968
4968
  parsers: [L.OpenTextbook]
4969
4969
  },
4970
4970
  {
4971
4971
  matcher: {
4972
- hostnames: ["milneopentextbooks.org"]
4972
+ regexp: "milneopentextbooks[-.]org"
4973
4973
  },
4974
4974
  name: "Milne Open Textbooks",
4975
4975
  parsers: [L.Milne]
4976
4976
  },
4977
4977
  {
4978
4978
  matcher: {
4979
- hostnames: ["www.perlego.com"]
4979
+ regexp: "www[.-]perlego[.-]com"
4980
4980
  },
4981
4981
  name: "Perlego",
4982
4982
  parsers: [L.Z3988]
4983
4983
  },
4984
4984
  {
4985
4985
  matcher: {
4986
- hostnames: ["www.ahajournals.org"]
4986
+ regexp: "www[.-]ahajournals[.-]org"
4987
4987
  },
4988
4988
  name: "AHA Journals",
4989
4989
  parsers: [L.AhaJournals]
4990
4990
  },
4991
4991
  {
4992
4992
  matcher: {
4993
- hostnames: ["www.cambridge.org"]
4993
+ regexp: "www[.-]cambridge[.-]org"
4994
4994
  },
4995
4995
  name: "Cambridge Journals Online",
4996
4996
  parsers: [L.CambridgeJournalsOnline]
4997
4997
  },
4998
4998
  {
4999
4999
  matcher: {
5000
- hostnames: ["www.nieindia.org"]
5000
+ regexp: "www[.-]nieindia[.-]org"
5001
5001
  },
5002
5002
  name: "International Journal of Ecology and Environmental Sciences",
5003
5003
  parsers: [L.Ijees]
5004
5004
  },
5005
5005
  {
5006
5006
  matcher: {
5007
- hostnames: ["www.bloomsburycollections.com"]
5007
+ regexp: "www[.-]bloomsburycollections[.-]com"
5008
5008
  },
5009
5009
  name: "Bloomsbury Collections",
5010
5010
  parsers: [L.BloomsburyCollections]
5011
5011
  },
5012
5012
  {
5013
5013
  matcher: {
5014
- hostnames: ["regwem.cirqahosting.com", "buddy.cirqahosting.com"]
5014
+ regexp: "cirqahosting[.-]com"
5015
5015
  },
5016
5016
  name: "Heritage Cirqa",
5017
5017
  parsers: [L.HeritageCirqa]
5018
5018
  },
5019
5019
  {
5020
5020
  matcher: {
5021
- hostnames: ["www.bmj.com"]
5021
+ regexp: "www[.-]bmj[.-]com"
5022
5022
  },
5023
5023
  name: "British Medical Journal",
5024
5024
  parsers: [L.BritishMedicalJournal]
5025
5025
  },
5026
5026
  {
5027
5027
  matcher: {
5028
- hostnames: ["podcasts.apple.com"]
5028
+ regexp: "podcasts[.-]apple[.-]com"
5029
5029
  },
5030
5030
  name: "Apple Podcasts",
5031
5031
  parsers: [L.ApplePodcasts]
5032
5032
  },
5033
5033
  {
5034
5034
  matcher: {
5035
- hostnames: ["arxiv.org"]
5035
+ regexp: "arxiv[.-]org"
5036
5036
  },
5037
5037
  name: "arxiv",
5038
5038
  parsers: [L.Arxiv]
5039
5039
  },
5040
5040
  {
5041
- matcher: { hostnames: ["kanopy.com", "www.kanopy.com"] },
5041
+ matcher: { regexp: "kanopy[.-]com" },
5042
5042
  name: "Kanopy Video",
5043
5043
  parsers: [L.KanopyVideo]
5044
5044
  },
5045
5045
  {
5046
5046
  matcher: {
5047
- hostnames: ["opal.latrobe.edu.au"]
5047
+ regexp: "opal[.-]latrobe[.-]edu[.-]au"
5048
5048
  },
5049
5049
  name: "La Trobe Opal",
5050
5050
  parsers: [L.LaTrobeOpal]
@@ -5109,7 +5109,7 @@ function Ge() {
5109
5109
  } = dt(), s = mt();
5110
5110
  t = e.exports = {};
5111
5111
  const i = t.re = [], a = t.safeRe = [], c = t.src = [], u = t.safeSrc = [], l = t.t = {};
5112
- let f = 0;
5112
+ let h = 0;
5113
5113
  const d = "[a-zA-Z0-9-]", g = [
5114
5114
  ["\\s", 1],
5115
5115
  ["\\d", o],
@@ -5119,23 +5119,23 @@ function Ge() {
5119
5119
  P = P.split(`${q}*`).join(`${q}{0,${H}}`).split(`${q}+`).join(`${q}{1,${H}}`);
5120
5120
  return P;
5121
5121
  }, v = (P, q, H) => {
5122
- const N = C(q), B = f++;
5122
+ const N = C(q), B = h++;
5123
5123
  s(P, B, q), l[P] = B, c[B] = q, u[B] = N, i[B] = new RegExp(q, H ? "g" : void 0), a[B] = new RegExp(N, H ? "g" : void 0);
5124
5124
  };
5125
5125
  v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${d}*`), v("MAINVERSION", `(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`), v("MAINVERSIONLOOSE", `(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASEIDENTIFIER", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIER]})`), v("PRERELEASEIDENTIFIERLOOSE", `(?:${c[l.NONNUMERICIDENTIFIER]}|${c[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASE", `(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`), v("PRERELEASELOOSE", `(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`), v("BUILDIDENTIFIER", `${d}+`), v("BUILD", `(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`), v("FULLPLAIN", `v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`), v("FULL", `^${c[l.FULLPLAIN]}$`), v("LOOSEPLAIN", `[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`), v("LOOSE", `^${c[l.LOOSEPLAIN]}$`), v("GTLT", "((?:<|>)?=?)"), v("XRANGEIDENTIFIERLOOSE", `${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), v("XRANGEIDENTIFIER", `${c[l.NUMERICIDENTIFIER]}|x|X|\\*`), v("XRANGEPLAIN", `[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`), v("XRANGEPLAINLOOSE", `[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`), v("XRANGE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`), v("XRANGELOOSE", `^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`), v("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), v("COERCE", `${c[l.COERCEPLAIN]}(?:$|[^\\d])`), v("COERCEFULL", c[l.COERCEPLAIN] + `(?:${c[l.PRERELEASE]})?(?:${c[l.BUILD]})?(?:$|[^\\d])`), v("COERCERTL", c[l.COERCE], !0), v("COERCERTLFULL", c[l.COERCEFULL], !0), v("LONETILDE", "(?:~>?)"), v("TILDETRIM", `(\\s*)${c[l.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", v("TILDE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`), v("TILDELOOSE", `^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`), v("LONECARET", "(?:\\^)"), v("CARETTRIM", `(\\s*)${c[l.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", v("CARET", `^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`), v("CARETLOOSE", `^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`), v("COMPARATORLOOSE", `^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`), v("COMPARATOR", `^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`), v("COMPARATORTRIM", `(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", v("HYPHENRANGE", `^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`), v("HYPHENRANGELOOSE", `^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`), v("STAR", "(<|>)?=?\\s*\\*"), v("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), v("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
5126
5126
  })(et, et.exports)), et.exports;
5127
5127
  }
5128
- var It, On;
5128
+ var It, xn;
5129
5129
  function Fr() {
5130
- if (On) return It;
5131
- On = 1;
5130
+ if (xn) return It;
5131
+ xn = 1;
5132
5132
  const e = Object.freeze({ loose: !0 }), t = Object.freeze({});
5133
5133
  return It = (n) => n ? typeof n != "object" ? e : n : t, It;
5134
5134
  }
5135
- var kt, xn;
5135
+ var kt, On;
5136
5136
  function Vs() {
5137
- if (xn) return kt;
5138
- xn = 1;
5137
+ if (On) return kt;
5138
+ On = 1;
5139
5139
  const e = /^[0-9]+$/, t = (n, o) => {
5140
5140
  if (typeof n == "number" && typeof o == "number")
5141
5141
  return n === o ? 0 : n < o ? -1 : 1;
@@ -5165,23 +5165,23 @@ function ne() {
5165
5165
  `version is longer than ${t} characters`
5166
5166
  );
5167
5167
  e("SemVer", u, l), this.options = l, this.loose = !!l.loose, this.includePrerelease = !!l.includePrerelease;
5168
- const f = u.trim().match(l.loose ? n[o.LOOSE] : n[o.FULL]);
5169
- if (!f)
5168
+ const h = u.trim().match(l.loose ? n[o.LOOSE] : n[o.FULL]);
5169
+ if (!h)
5170
5170
  throw new TypeError(`Invalid Version: ${u}`);
5171
- if (this.raw = u, this.major = +f[1], this.minor = +f[2], this.patch = +f[3], this.major > r || this.major < 0)
5171
+ if (this.raw = u, this.major = +h[1], this.minor = +h[2], this.patch = +h[3], this.major > r || this.major < 0)
5172
5172
  throw new TypeError("Invalid major version");
5173
5173
  if (this.minor > r || this.minor < 0)
5174
5174
  throw new TypeError("Invalid minor version");
5175
5175
  if (this.patch > r || this.patch < 0)
5176
5176
  throw new TypeError("Invalid patch version");
5177
- f[4] ? this.prerelease = f[4].split(".").map((d) => {
5177
+ h[4] ? this.prerelease = h[4].split(".").map((d) => {
5178
5178
  if (/^[0-9]+$/.test(d)) {
5179
5179
  const g = +d;
5180
5180
  if (g >= 0 && g < r)
5181
5181
  return g;
5182
5182
  }
5183
5183
  return d;
5184
- }) : this.prerelease = [], this.build = f[5] ? f[5].split(".") : [], this.format();
5184
+ }) : this.prerelease = [], this.build = h[5] ? h[5].split(".") : [], this.format();
5185
5185
  }
5186
5186
  format() {
5187
5187
  return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
@@ -5209,39 +5209,39 @@ function ne() {
5209
5209
  return 0;
5210
5210
  let l = 0;
5211
5211
  do {
5212
- const f = this.prerelease[l], d = u.prerelease[l];
5213
- if (e("prerelease compare", l, f, d), f === void 0 && d === void 0)
5212
+ const h = this.prerelease[l], d = u.prerelease[l];
5213
+ if (e("prerelease compare", l, h, d), h === void 0 && d === void 0)
5214
5214
  return 0;
5215
5215
  if (d === void 0)
5216
5216
  return 1;
5217
- if (f === void 0)
5217
+ if (h === void 0)
5218
5218
  return -1;
5219
- if (f === d)
5219
+ if (h === d)
5220
5220
  continue;
5221
- return i(f, d);
5221
+ return i(h, d);
5222
5222
  } while (++l);
5223
5223
  }
5224
5224
  compareBuild(u) {
5225
5225
  u instanceof a || (u = new a(u, this.options));
5226
5226
  let l = 0;
5227
5227
  do {
5228
- const f = this.build[l], d = u.build[l];
5229
- if (e("build compare", l, f, d), f === void 0 && d === void 0)
5228
+ const h = this.build[l], d = u.build[l];
5229
+ if (e("build compare", l, h, d), h === void 0 && d === void 0)
5230
5230
  return 0;
5231
5231
  if (d === void 0)
5232
5232
  return 1;
5233
- if (f === void 0)
5233
+ if (h === void 0)
5234
5234
  return -1;
5235
- if (f === d)
5235
+ if (h === d)
5236
5236
  continue;
5237
- return i(f, d);
5237
+ return i(h, d);
5238
5238
  } while (++l);
5239
5239
  }
5240
5240
  // preminor will bump the version up to the next minor release, and immediately
5241
5241
  // down to pre-release. premajor and prepatch work the same way.
5242
- inc(u, l, f) {
5242
+ inc(u, l, h) {
5243
5243
  if (u.startsWith("pre")) {
5244
- if (!l && f === !1)
5244
+ if (!l && h === !1)
5245
5245
  throw new Error("invalid increment argument: identifier is empty");
5246
5246
  if (l) {
5247
5247
  const d = `-${l}`.match(this.options.loose ? n[o.PRERELEASELOOSE] : n[o.PRERELEASE]);
@@ -5251,18 +5251,18 @@ function ne() {
5251
5251
  }
5252
5252
  switch (u) {
5253
5253
  case "premajor":
5254
- this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", l, f);
5254
+ this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", l, h);
5255
5255
  break;
5256
5256
  case "preminor":
5257
- this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", l, f);
5257
+ this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", l, h);
5258
5258
  break;
5259
5259
  case "prepatch":
5260
- this.prerelease.length = 0, this.inc("patch", l, f), this.inc("pre", l, f);
5260
+ this.prerelease.length = 0, this.inc("patch", l, h), this.inc("pre", l, h);
5261
5261
  break;
5262
5262
  // If the input is a non-prerelease version, this acts the same as
5263
5263
  // prepatch.
5264
5264
  case "prerelease":
5265
- this.prerelease.length === 0 && this.inc("patch", l, f), this.inc("pre", l, f);
5265
+ this.prerelease.length === 0 && this.inc("patch", l, h), this.inc("pre", l, h);
5266
5266
  break;
5267
5267
  case "release":
5268
5268
  if (this.prerelease.length === 0)
@@ -5281,7 +5281,7 @@ function ne() {
5281
5281
  // This probably shouldn't be used publicly.
5282
5282
  // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
5283
5283
  case "pre": {
5284
- const d = Number(f) ? 1 : 0;
5284
+ const d = Number(h) ? 1 : 0;
5285
5285
  if (this.prerelease.length === 0)
5286
5286
  this.prerelease = [d];
5287
5287
  else {
@@ -5289,14 +5289,14 @@ function ne() {
5289
5289
  for (; --g >= 0; )
5290
5290
  typeof this.prerelease[g] == "number" && (this.prerelease[g]++, g = -2);
5291
5291
  if (g === -1) {
5292
- if (l === this.prerelease.join(".") && f === !1)
5292
+ if (l === this.prerelease.join(".") && h === !1)
5293
5293
  throw new Error("invalid increment argument: identifier already exists");
5294
5294
  this.prerelease.push(d);
5295
5295
  }
5296
5296
  }
5297
5297
  if (l) {
5298
5298
  let g = [l, d];
5299
- f === !1 && (g = [l]), i(this.prerelease[0], l) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = g) : this.prerelease = g;
5299
+ h === !1 && (g = [l]), i(this.prerelease[0], l) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = g) : this.prerelease = g;
5300
5300
  }
5301
5301
  break;
5302
5302
  }
@@ -5325,25 +5325,25 @@ function Te() {
5325
5325
  }
5326
5326
  }, Pt;
5327
5327
  }
5328
- var Ot, Ln;
5328
+ var xt, Ln;
5329
5329
  function Bd() {
5330
- if (Ln) return Ot;
5330
+ if (Ln) return xt;
5331
5331
  Ln = 1;
5332
5332
  const e = Te();
5333
- return Ot = (r, n) => {
5333
+ return xt = (r, n) => {
5334
5334
  const o = e(r, n);
5335
5335
  return o ? o.version : null;
5336
- }, Ot;
5336
+ }, xt;
5337
5337
  }
5338
- var xt, Tn;
5338
+ var Ot, Tn;
5339
5339
  function Ud() {
5340
- if (Tn) return xt;
5340
+ if (Tn) return Ot;
5341
5341
  Tn = 1;
5342
5342
  const e = Te();
5343
- return xt = (r, n) => {
5343
+ return Ot = (r, n) => {
5344
5344
  const o = e(r.trim().replace(/^[=v]+/, ""), n);
5345
5345
  return o ? o.version : null;
5346
- }, xt;
5346
+ }, Ot;
5347
5347
  }
5348
5348
  var Nt, qn;
5349
5349
  function Vd() {
@@ -5553,8 +5553,8 @@ function Qd() {
5553
5553
  }
5554
5554
  if (a === null)
5555
5555
  return null;
5556
- const c = a[2], u = a[3] || "0", l = a[4] || "0", f = i.includePrerelease && a[5] ? `-${a[5]}` : "", d = i.includePrerelease && a[6] ? `+${a[6]}` : "";
5557
- return t(`${c}.${u}.${l}${f}${d}`, i);
5556
+ const c = a[2], u = a[3] || "0", l = a[4] || "0", h = i.includePrerelease && a[5] ? `-${a[5]}` : "", d = i.includePrerelease && a[6] ? `+${a[6]}` : "";
5557
+ return t(`${c}.${u}.${l}${h}${d}`, i);
5558
5558
  }, Kt;
5559
5559
  }
5560
5560
  var Qt, no;
@@ -5635,8 +5635,8 @@ function ue() {
5635
5635
  const $ = ((this.options.includePrerelease && g) | (this.options.loose && C)) + ":" + b, k = n.get($);
5636
5636
  if (k)
5637
5637
  return k;
5638
- const A = this.options.loose, O = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
5639
- b = b.replace(O, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(c[u.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(c[u.TILDETRIM], f), i("tilde trim", b), b = b.replace(c[u.CARETTRIM], d), i("caret trim", b);
5638
+ const A = this.options.loose, x = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
5639
+ b = b.replace(x, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(c[u.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(c[u.TILDETRIM], h), i("tilde trim", b), b = b.replace(c[u.CARETTRIM], d), i("caret trim", b);
5640
5640
  let Z = b.split(" ").map((K) => H(K, this.options)).join(" ").split(/\s+/).map((K) => yt(K, this.options));
5641
5641
  A && (Z = Z.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(c[u.COMPARATORLOOSE])))), i("range list", Z);
5642
5642
  const z = /* @__PURE__ */ new Map(), V = Z.map((K) => new s(K, this.options));
@@ -5652,7 +5652,7 @@ function ue() {
5652
5652
  intersects(b, I) {
5653
5653
  if (!(b instanceof t))
5654
5654
  throw new TypeError("a Range is required");
5655
- return this.set.some(($) => q($, I) && b.set.some((k) => q(k, I) && $.every((A) => k.every((O) => A.intersects(O, I)))));
5655
+ return this.set.some(($) => q($, I) && b.set.some((k) => q(k, I) && $.every((A) => k.every((x) => A.intersects(x, I)))));
5656
5656
  }
5657
5657
  // if ANY of the sets match ALL of its comparators, then pass
5658
5658
  test(b) {
@@ -5675,7 +5675,7 @@ function ue() {
5675
5675
  safeRe: c,
5676
5676
  t: u,
5677
5677
  comparatorTrimReplace: l,
5678
- tildeTrimReplace: f,
5678
+ tildeTrimReplace: h,
5679
5679
  caretTrimReplace: d
5680
5680
  } = Ge(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = dt(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", q = (_, b) => {
5681
5681
  let I = !0;
@@ -5684,30 +5684,30 @@ function ue() {
5684
5684
  for (; I && $.length; )
5685
5685
  I = $.every((A) => k.intersects(A, b)), k = $.pop();
5686
5686
  return I;
5687
- }, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = F(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = x(_, b), i("xrange", _), _ = _t(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((I) => Y(I, b)).join(" "), Y = (_, b) => {
5687
+ }, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = F(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = O(_, b), i("xrange", _), _ = _t(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((I) => Y(I, b)).join(" "), Y = (_, b) => {
5688
5688
  const I = b.loose ? c[u.TILDELOOSE] : c[u.TILDE];
5689
- return _.replace(I, ($, k, A, O, Z) => {
5690
- i("tilde", _, $, k, A, O, Z);
5689
+ return _.replace(I, ($, k, A, x, Z) => {
5690
+ i("tilde", _, $, k, A, x, Z);
5691
5691
  let z;
5692
- return N(k) ? z = "" : N(A) ? z = `>=${k}.0.0 <${+k + 1}.0.0-0` : N(O) ? z = `>=${k}.${A}.0 <${k}.${+A + 1}.0-0` : Z ? (i("replaceTilde pr", Z), z = `>=${k}.${A}.${O}-${Z} <${k}.${+A + 1}.0-0`) : z = `>=${k}.${A}.${O} <${k}.${+A + 1}.0-0`, i("tilde return", z), z;
5692
+ return N(k) ? z = "" : N(A) ? z = `>=${k}.0.0 <${+k + 1}.0.0-0` : N(x) ? z = `>=${k}.${A}.0 <${k}.${+A + 1}.0-0` : Z ? (i("replaceTilde pr", Z), z = `>=${k}.${A}.${x}-${Z} <${k}.${+A + 1}.0-0`) : z = `>=${k}.${A}.${x} <${k}.${+A + 1}.0-0`, i("tilde return", z), z;
5693
5693
  });
5694
5694
  }, F = (_, b) => _.trim().split(/\s+/).map((I) => ee(I, b)).join(" "), ee = (_, b) => {
5695
5695
  i("caret", _, b);
5696
5696
  const I = b.loose ? c[u.CARETLOOSE] : c[u.CARET], $ = b.includePrerelease ? "-0" : "";
5697
- return _.replace(I, (k, A, O, Z, z) => {
5698
- i("caret", _, k, A, O, Z, z);
5697
+ return _.replace(I, (k, A, x, Z, z) => {
5698
+ i("caret", _, k, A, x, Z, z);
5699
5699
  let V;
5700
- return N(A) ? V = "" : N(O) ? V = `>=${A}.0.0${$} <${+A + 1}.0.0-0` : N(Z) ? A === "0" ? V = `>=${A}.${O}.0${$} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.0${$} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? O === "0" ? V = `>=${A}.${O}.${Z}-${z} <${A}.${O}.${+Z + 1}-0` : V = `>=${A}.${O}.${Z}-${z} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.${Z}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? O === "0" ? V = `>=${A}.${O}.${Z}${$} <${A}.${O}.${+Z + 1}-0` : V = `>=${A}.${O}.${Z}${$} <${A}.${+O + 1}.0-0` : V = `>=${A}.${O}.${Z} <${+A + 1}.0.0-0`), i("caret return", V), V;
5700
+ return N(A) ? V = "" : N(x) ? V = `>=${A}.0.0${$} <${+A + 1}.0.0-0` : N(Z) ? A === "0" ? V = `>=${A}.${x}.0${$} <${A}.${+x + 1}.0-0` : V = `>=${A}.${x}.0${$} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? x === "0" ? V = `>=${A}.${x}.${Z}-${z} <${A}.${x}.${+Z + 1}-0` : V = `>=${A}.${x}.${Z}-${z} <${A}.${+x + 1}.0-0` : V = `>=${A}.${x}.${Z}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? x === "0" ? V = `>=${A}.${x}.${Z}${$} <${A}.${x}.${+Z + 1}-0` : V = `>=${A}.${x}.${Z}${$} <${A}.${+x + 1}.0-0` : V = `>=${A}.${x}.${Z} <${+A + 1}.0.0-0`), i("caret return", V), V;
5701
5701
  });
5702
- }, x = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((I) => qe(I, b)).join(" ")), qe = (_, b) => {
5702
+ }, O = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((I) => qe(I, b)).join(" ")), qe = (_, b) => {
5703
5703
  _ = _.trim();
5704
5704
  const I = b.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
5705
- return _.replace(I, ($, k, A, O, Z, z) => {
5706
- i("xRange", _, $, k, A, O, Z, z);
5707
- const V = N(A), re = V || N(O), K = re || N(Z), Ze = K;
5708
- return k === "=" && Ze && (k = ""), z = b.includePrerelease ? "-0" : "", V ? k === ">" || k === "<" ? $ = "<0.0.0-0" : $ = "*" : k && Ze ? (re && (O = 0), Z = 0, k === ">" ? (k = ">=", re ? (A = +A + 1, O = 0, Z = 0) : (O = +O + 1, Z = 0)) : k === "<=" && (k = "<", re ? A = +A + 1 : O = +O + 1), k === "<" && (z = "-0"), $ = `${k + A}.${O}.${Z}${z}`) : re ? $ = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && ($ = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", $), $;
5705
+ return _.replace(I, ($, k, A, x, Z, z) => {
5706
+ i("xRange", _, $, k, A, x, Z, z);
5707
+ const V = N(A), re = V || N(x), K = re || N(Z), Ze = K;
5708
+ return k === "=" && Ze && (k = ""), z = b.includePrerelease ? "-0" : "", V ? k === ">" || k === "<" ? $ = "<0.0.0-0" : $ = "*" : k && Ze ? (re && (x = 0), Z = 0, k === ">" ? (k = ">=", re ? (A = +A + 1, x = 0, Z = 0) : (x = +x + 1, Z = 0)) : k === "<=" && (k = "<", re ? A = +A + 1 : x = +x + 1), k === "<" && (z = "-0"), $ = `${k + A}.${x}.${Z}${z}`) : re ? $ = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && ($ = `>=${A}.${x}.0${z} <${A}.${+x + 1}.0-0`), i("xRange return", $), $;
5709
5709
  });
5710
- }, _t = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), yt = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, I, $, k, A, O, Z, z, V, re, K, Ze) => (N($) ? I = "" : N(k) ? I = `>=${$}.0.0${_ ? "-0" : ""}` : N(A) ? I = `>=${$}.${k}.0${_ ? "-0" : ""}` : O ? I = `>=${I}` : I = `>=${I}${_ ? "-0" : ""}`, N(V) ? z = "" : N(re) ? z = `<${+V + 1}.0.0-0` : N(K) ? z = `<${V}.${+re + 1}.0-0` : Ze ? z = `<=${V}.${re}.${K}-${Ze}` : _ ? z = `<${V}.${re}.${+K + 1}-0` : z = `<=${z}`, `${I} ${z}`.trim()), St = (_, b, I) => {
5710
+ }, _t = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), yt = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, I, $, k, A, x, Z, z, V, re, K, Ze) => (N($) ? I = "" : N(k) ? I = `>=${$}.0.0${_ ? "-0" : ""}` : N(A) ? I = `>=${$}.${k}.0${_ ? "-0" : ""}` : x ? I = `>=${I}` : I = `>=${I}${_ ? "-0" : ""}`, N(V) ? z = "" : N(re) ? z = `<${+V + 1}.0.0-0` : N(K) ? z = `<${V}.${+re + 1}.0-0` : Ze ? z = `<=${V}.${re}.${K}-${Ze}` : _ ? z = `<${V}.${re}.${+K + 1}-0` : z = `<=${z}`, `${I} ${z}`.trim()), St = (_, b, I) => {
5711
5711
  for (let $ = 0; $ < _.length; $++)
5712
5712
  if (!_[$].test(b))
5713
5713
  return !1;
@@ -5733,16 +5733,16 @@ function vt() {
5733
5733
  static get ANY() {
5734
5734
  return e;
5735
5735
  }
5736
- constructor(l, f) {
5737
- if (f = r(f), l instanceof t) {
5738
- if (l.loose === !!f.loose)
5736
+ constructor(l, h) {
5737
+ if (h = r(h), l instanceof t) {
5738
+ if (l.loose === !!h.loose)
5739
5739
  return l;
5740
5740
  l = l.value;
5741
5741
  }
5742
- l = l.trim().split(/\s+/).join(" "), i("comparator", l, f), this.options = f, this.loose = !!f.loose, this.parse(l), this.semver === e ? this.value = "" : this.value = this.operator + this.semver.version, i("comp", this);
5742
+ l = l.trim().split(/\s+/).join(" "), i("comparator", l, h), this.options = h, this.loose = !!h.loose, this.parse(l), this.semver === e ? this.value = "" : this.value = this.operator + this.semver.version, i("comp", this);
5743
5743
  }
5744
5744
  parse(l) {
5745
- const f = this.options.loose ? n[o.COMPARATORLOOSE] : n[o.COMPARATOR], d = l.match(f);
5745
+ const h = this.options.loose ? n[o.COMPARATORLOOSE] : n[o.COMPARATOR], d = l.match(h);
5746
5746
  if (!d)
5747
5747
  throw new TypeError(`Invalid comparator: ${l}`);
5748
5748
  this.operator = d[1] !== void 0 ? d[1] : "", this.operator === "=" && (this.operator = ""), d[2] ? this.semver = new a(d[2], this.options.loose) : this.semver = e;
@@ -5761,10 +5761,10 @@ function vt() {
5761
5761
  }
5762
5762
  return s(l, this.operator, this.semver, this.options);
5763
5763
  }
5764
- intersects(l, f) {
5764
+ intersects(l, h) {
5765
5765
  if (!(l instanceof t))
5766
5766
  throw new TypeError("a Comparator is required");
5767
- return this.operator === "" ? this.value === "" ? !0 : new c(l.value, f).test(this.value) : l.operator === "" ? l.value === "" ? !0 : new c(this.value, f).test(l.semver) : (f = r(f), f.includePrerelease && (this.value === "<0.0.0-0" || l.value === "<0.0.0-0") || !f.includePrerelease && (this.value.startsWith("<0.0.0") || l.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && l.operator.startsWith(">") || this.operator.startsWith("<") && l.operator.startsWith("<") || this.semver.version === l.semver.version && this.operator.includes("=") && l.operator.includes("=") || s(this.semver, "<", l.semver, f) && this.operator.startsWith(">") && l.operator.startsWith("<") || s(this.semver, ">", l.semver, f) && this.operator.startsWith("<") && l.operator.startsWith(">")));
5767
+ return this.operator === "" ? this.value === "" ? !0 : new c(l.value, h).test(this.value) : l.operator === "" ? l.value === "" ? !0 : new c(this.value, h).test(l.semver) : (h = r(h), h.includePrerelease && (this.value === "<0.0.0-0" || l.value === "<0.0.0-0") || !h.includePrerelease && (this.value.startsWith("<0.0.0") || l.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && l.operator.startsWith(">") || this.operator.startsWith("<") && l.operator.startsWith("<") || this.semver.version === l.semver.version && this.operator.includes("=") && l.operator.includes("=") || s(this.semver, "<", l.semver, h) && this.operator.startsWith(">") && l.operator.startsWith("<") || s(this.semver, ">", l.semver, h) && this.operator.startsWith("<") && l.operator.startsWith(">")));
5768
5768
  }
5769
5769
  }
5770
5770
  tr = t;
@@ -5841,14 +5841,14 @@ function om() {
5841
5841
  const c = o.set[a];
5842
5842
  let u = null;
5843
5843
  c.forEach((l) => {
5844
- const f = new e(l.semver.version);
5844
+ const h = new e(l.semver.version);
5845
5845
  switch (l.operator) {
5846
5846
  case ">":
5847
- f.prerelease.length === 0 ? f.patch++ : f.prerelease.push(0), f.raw = f.format();
5847
+ h.prerelease.length === 0 ? h.patch++ : h.prerelease.push(0), h.raw = h.format();
5848
5848
  /* fallthrough */
5849
5849
  case "":
5850
5850
  case ">=":
5851
- (!u || r(f, u)) && (u = f);
5851
+ (!u || r(h, u)) && (u = h);
5852
5852
  break;
5853
5853
  case "<":
5854
5854
  case "<=":
@@ -5875,13 +5875,13 @@ function sm() {
5875
5875
  }
5876
5876
  }, ar;
5877
5877
  }
5878
- var cr, ho;
5878
+ var cr, fo;
5879
5879
  function Xr() {
5880
- if (ho) return cr;
5881
- ho = 1;
5880
+ if (fo) return cr;
5881
+ fo = 1;
5882
5882
  const e = ne(), t = vt(), { ANY: r } = t, n = ue(), o = bt(), s = gt(), i = Mr(), a = Gr(), c = Wr();
5883
- return cr = (l, f, d, g) => {
5884
- l = new e(l, g), f = new n(f, g);
5883
+ return cr = (l, h, d, g) => {
5884
+ l = new e(l, g), h = new n(h, g);
5885
5885
  let C, v, P, q, H;
5886
5886
  switch (d) {
5887
5887
  case ">":
@@ -5893,10 +5893,10 @@ function Xr() {
5893
5893
  default:
5894
5894
  throw new TypeError('Must provide a hilo val of "<" or ">"');
5895
5895
  }
5896
- if (o(l, f, g))
5896
+ if (o(l, h, g))
5897
5897
  return !1;
5898
- for (let N = 0; N < f.set.length; ++N) {
5899
- const B = f.set[N];
5898
+ for (let N = 0; N < h.set.length; ++N) {
5899
+ const B = h.set[N];
5900
5900
  let Y = null, F = null;
5901
5901
  if (B.forEach((ee) => {
5902
5902
  ee.semver === r && (ee = new t(">=0.0.0")), Y = Y || ee, F = F || ee, C(ee.semver, Y.semver, g) ? Y = ee : P(ee.semver, F.semver, g) && (F = ee);
@@ -5908,10 +5908,10 @@ function Xr() {
5908
5908
  return !0;
5909
5909
  }, cr;
5910
5910
  }
5911
- var ur, fo;
5911
+ var ur, ho;
5912
5912
  function im() {
5913
- if (fo) return ur;
5914
- fo = 1;
5913
+ if (ho) return ur;
5914
+ ho = 1;
5915
5915
  const e = Xr();
5916
5916
  return ur = (r, n, o) => e(r, n, ">", o), ur;
5917
5917
  }
@@ -5929,12 +5929,12 @@ function cm() {
5929
5929
  const e = ue();
5930
5930
  return pr = (r, n, o) => (r = new e(r, o), n = new e(n, o), r.intersects(n, o)), pr;
5931
5931
  }
5932
- var hr, vo;
5932
+ var fr, vo;
5933
5933
  function um() {
5934
- if (vo) return hr;
5934
+ if (vo) return fr;
5935
5935
  vo = 1;
5936
5936
  const e = bt(), t = ce();
5937
- return hr = (r, n, o) => {
5937
+ return fr = (r, n, o) => {
5938
5938
  const s = [];
5939
5939
  let i = null, a = null;
5940
5940
  const c = r.sort((d, g) => t(d, g, o));
@@ -5944,20 +5944,20 @@ function um() {
5944
5944
  const u = [];
5945
5945
  for (const [d, g] of s)
5946
5946
  d === g ? u.push(d) : !g && d === c[0] ? u.push("*") : g ? d === c[0] ? u.push(`<=${g}`) : u.push(`${d} - ${g}`) : u.push(`>=${d}`);
5947
- const l = u.join(" || "), f = typeof n.raw == "string" ? n.raw : String(n);
5948
- return l.length < f.length ? l : n;
5949
- }, hr;
5947
+ const l = u.join(" || "), h = typeof n.raw == "string" ? n.raw : String(n);
5948
+ return l.length < h.length ? l : n;
5949
+ }, fr;
5950
5950
  }
5951
- var fr, bo;
5951
+ var hr, bo;
5952
5952
  function lm() {
5953
- if (bo) return fr;
5953
+ if (bo) return hr;
5954
5954
  bo = 1;
5955
- const e = ue(), t = vt(), { ANY: r } = t, n = bt(), o = ce(), s = (f, d, g = {}) => {
5956
- if (f === d)
5955
+ const e = ue(), t = vt(), { ANY: r } = t, n = bt(), o = ce(), s = (h, d, g = {}) => {
5956
+ if (h === d)
5957
5957
  return !0;
5958
- f = new e(f, g), d = new e(d, g);
5958
+ h = new e(h, g), d = new e(d, g);
5959
5959
  let C = !1;
5960
- e: for (const v of f.set) {
5960
+ e: for (const v of h.set) {
5961
5961
  for (const P of d.set) {
5962
5962
  const q = c(v, P, g);
5963
5963
  if (C = C || q !== null, q)
@@ -5967,13 +5967,13 @@ function lm() {
5967
5967
  return !1;
5968
5968
  }
5969
5969
  return !0;
5970
- }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (f, d, g) => {
5971
- if (f === d)
5970
+ }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (h, d, g) => {
5971
+ if (h === d)
5972
5972
  return !0;
5973
- if (f.length === 1 && f[0].semver === r) {
5973
+ if (h.length === 1 && h[0].semver === r) {
5974
5974
  if (d.length === 1 && d[0].semver === r)
5975
5975
  return !0;
5976
- g.includePrerelease ? f = i : f = a;
5976
+ g.includePrerelease ? h = i : h = a;
5977
5977
  }
5978
5978
  if (d.length === 1 && d[0].semver === r) {
5979
5979
  if (g.includePrerelease)
@@ -5982,8 +5982,8 @@ function lm() {
5982
5982
  }
5983
5983
  const C = /* @__PURE__ */ new Set();
5984
5984
  let v, P;
5985
- for (const x of f)
5986
- x.operator === ">" || x.operator === ">=" ? v = u(v, x, g) : x.operator === "<" || x.operator === "<=" ? P = l(P, x, g) : C.add(x.semver);
5985
+ for (const O of h)
5986
+ O.operator === ">" || O.operator === ">=" ? v = u(v, O, g) : O.operator === "<" || O.operator === "<=" ? P = l(P, O, g) : C.add(O.semver);
5987
5987
  if (C.size > 1)
5988
5988
  return null;
5989
5989
  let q;
@@ -5993,53 +5993,53 @@ function lm() {
5993
5993
  if (q === 0 && (v.operator !== ">=" || P.operator !== "<="))
5994
5994
  return null;
5995
5995
  }
5996
- for (const x of C) {
5997
- if (v && !n(x, String(v), g) || P && !n(x, String(P), g))
5996
+ for (const O of C) {
5997
+ if (v && !n(O, String(v), g) || P && !n(O, String(P), g))
5998
5998
  return null;
5999
5999
  for (const qe of d)
6000
- if (!n(x, String(qe), g))
6000
+ if (!n(O, String(qe), g))
6001
6001
  return !1;
6002
6002
  return !0;
6003
6003
  }
6004
6004
  let H, N, B, Y, F = P && !g.includePrerelease && P.semver.prerelease.length ? P.semver : !1, ee = v && !g.includePrerelease && v.semver.prerelease.length ? v.semver : !1;
6005
6005
  F && F.prerelease.length === 1 && P.operator === "<" && F.prerelease[0] === 0 && (F = !1);
6006
- for (const x of d) {
6007
- if (Y = Y || x.operator === ">" || x.operator === ">=", B = B || x.operator === "<" || x.operator === "<=", v) {
6008
- if (ee && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === ee.major && x.semver.minor === ee.minor && x.semver.patch === ee.patch && (ee = !1), x.operator === ">" || x.operator === ">=") {
6009
- if (H = u(v, x, g), H === x && H !== v)
6006
+ for (const O of d) {
6007
+ if (Y = Y || O.operator === ">" || O.operator === ">=", B = B || O.operator === "<" || O.operator === "<=", v) {
6008
+ if (ee && O.semver.prerelease && O.semver.prerelease.length && O.semver.major === ee.major && O.semver.minor === ee.minor && O.semver.patch === ee.patch && (ee = !1), O.operator === ">" || O.operator === ">=") {
6009
+ if (H = u(v, O, g), H === O && H !== v)
6010
6010
  return !1;
6011
- } else if (v.operator === ">=" && !n(v.semver, String(x), g))
6011
+ } else if (v.operator === ">=" && !n(v.semver, String(O), g))
6012
6012
  return !1;
6013
6013
  }
6014
6014
  if (P) {
6015
- if (F && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === F.major && x.semver.minor === F.minor && x.semver.patch === F.patch && (F = !1), x.operator === "<" || x.operator === "<=") {
6016
- if (N = l(P, x, g), N === x && N !== P)
6015
+ if (F && O.semver.prerelease && O.semver.prerelease.length && O.semver.major === F.major && O.semver.minor === F.minor && O.semver.patch === F.patch && (F = !1), O.operator === "<" || O.operator === "<=") {
6016
+ if (N = l(P, O, g), N === O && N !== P)
6017
6017
  return !1;
6018
- } else if (P.operator === "<=" && !n(P.semver, String(x), g))
6018
+ } else if (P.operator === "<=" && !n(P.semver, String(O), g))
6019
6019
  return !1;
6020
6020
  }
6021
- if (!x.operator && (P || v) && q !== 0)
6021
+ if (!O.operator && (P || v) && q !== 0)
6022
6022
  return !1;
6023
6023
  }
6024
6024
  return !(v && B && !P && q !== 0 || P && Y && !v && q !== 0 || ee || F);
6025
- }, u = (f, d, g) => {
6026
- if (!f)
6025
+ }, u = (h, d, g) => {
6026
+ if (!h)
6027
6027
  return d;
6028
- const C = o(f.semver, d.semver, g);
6029
- return C > 0 ? f : C < 0 || d.operator === ">" && f.operator === ">=" ? d : f;
6030
- }, l = (f, d, g) => {
6031
- if (!f)
6028
+ const C = o(h.semver, d.semver, g);
6029
+ return C > 0 ? h : C < 0 || d.operator === ">" && h.operator === ">=" ? d : h;
6030
+ }, l = (h, d, g) => {
6031
+ if (!h)
6032
6032
  return d;
6033
- const C = o(f.semver, d.semver, g);
6034
- return C < 0 ? f : C > 0 || d.operator === "<" && f.operator === "<=" ? d : f;
6033
+ const C = o(h.semver, d.semver, g);
6034
+ return C < 0 ? h : C > 0 || d.operator === "<" && h.operator === "<=" ? d : h;
6035
6035
  };
6036
- return fr = s, fr;
6036
+ return hr = s, hr;
6037
6037
  }
6038
6038
  var dr, _o;
6039
6039
  function pm() {
6040
6040
  if (_o) return dr;
6041
6041
  _o = 1;
6042
- const e = Ge(), t = dt(), r = ne(), n = Vs(), o = Te(), s = Bd(), i = Ud(), a = Vd(), c = Fd(), u = Jd(), l = Md(), f = Wd(), d = Gd(), g = ce(), C = Xd(), v = Hd(), P = Jr(), q = Yd(), H = Kd(), N = gt(), B = Mr(), Y = Fs(), F = Js(), ee = Wr(), x = Gr(), qe = Ms(), _t = Qd(), yt = vt(), Et = ue(), St = bt(), _ = tm(), b = rm(), I = nm(), $ = om(), k = sm(), A = Xr(), O = im(), Z = am(), z = cm(), V = um(), re = lm();
6042
+ const e = Ge(), t = dt(), r = ne(), n = Vs(), o = Te(), s = Bd(), i = Ud(), a = Vd(), c = Fd(), u = Jd(), l = Md(), h = Wd(), d = Gd(), g = ce(), C = Xd(), v = Hd(), P = Jr(), q = Yd(), H = Kd(), N = gt(), B = Mr(), Y = Fs(), F = Js(), ee = Wr(), O = Gr(), qe = Ms(), _t = Qd(), yt = vt(), Et = ue(), St = bt(), _ = tm(), b = rm(), I = nm(), $ = om(), k = sm(), A = Xr(), x = im(), Z = am(), z = cm(), V = um(), re = lm();
6043
6043
  return dr = {
6044
6044
  parse: o,
6045
6045
  valid: s,
@@ -6048,7 +6048,7 @@ function pm() {
6048
6048
  diff: c,
6049
6049
  major: u,
6050
6050
  minor: l,
6051
- patch: f,
6051
+ patch: h,
6052
6052
  prerelease: d,
6053
6053
  compare: g,
6054
6054
  rcompare: C,
@@ -6061,7 +6061,7 @@ function pm() {
6061
6061
  eq: Y,
6062
6062
  neq: F,
6063
6063
  gte: ee,
6064
- lte: x,
6064
+ lte: O,
6065
6065
  cmp: qe,
6066
6066
  coerce: _t,
6067
6067
  Comparator: yt,
@@ -6073,7 +6073,7 @@ function pm() {
6073
6073
  minVersion: $,
6074
6074
  validRange: k,
6075
6075
  outside: A,
6076
- gtr: O,
6076
+ gtr: x,
6077
6077
  ltr: Z,
6078
6078
  intersects: z,
6079
6079
  simplifyRange: V,
@@ -6088,11 +6088,11 @@ function pm() {
6088
6088
  rcompareIdentifiers: n.rcompareIdentifiers
6089
6089
  }, dr;
6090
6090
  }
6091
- var hm = pm();
6092
- const fm = (e, t) => dm(t) ? t.hostnames.includes(new URL(e).hostname) : mm(t) ? !!e.match(t.regexp) : !1, dm = (e) => js.safeParse(e).success, mm = (e) => Ds.safeParse(e).success, gm = (e, t) => t ? hm.satisfies(e, t) : !0, vm = (e, t, r) => gm(
6091
+ var fm = pm();
6092
+ const hm = (e, t) => dm(t) ? t.hostnames.includes(new URL(e).hostname) : mm(t) ? !!e.match(t.regexp) : !1, dm = (e) => js.safeParse(e).success, mm = (e) => Ds.safeParse(e).success, gm = (e, t) => t ? fm.satisfies(e, t) : !0, vm = (e, t, r) => gm(
6093
6093
  t,
6094
6094
  r.libraryVersionRange
6095
- ) && fm(e, r.matcher), bm = (e, t) => e.siteRegistrations.filter(
6095
+ ) && hm(e, r.matcher), bm = (e, t) => e.siteRegistrations.filter(
6096
6096
  (r) => vm(t, Zs(), r)
6097
6097
  ), _m = (e, t) => bm(e, t).flatMap(
6098
6098
  ({ parsers: o, name: s }) => o.filter(
@@ -6102,7 +6102,7 @@ const fm = (e, t) => dm(t) ? t.hostnames.includes(new URL(e).hostname) : mm(t) ?
6102
6102
  const r = _m(e, t.url);
6103
6103
  for (const { parser: n, parserType: o, name: s } of r) {
6104
6104
  const i = n(t);
6105
- if (Nr(i) || xp(i) || Np(i))
6105
+ if (Nr(i) || Op(i) || Np(i))
6106
6106
  return {
6107
6107
  ...i,
6108
6108
  meta: {
@@ -6180,7 +6180,7 @@ export {
6180
6180
  Us as SiteRegistrationSchema,
6181
6181
  is as SummonSearchResultSchema,
6182
6182
  Se as TenantRegion,
6183
- Om as TenantRegistrySchema,
6183
+ xm as TenantRegistrySchema,
6184
6184
  Ko as TenantSchema,
6185
6185
  Bs as UrlMatcherSchema,
6186
6186
  ss as Z3988SearchResultSchema,
@@ -6192,7 +6192,7 @@ export {
6192
6192
  D as createJournal,
6193
6193
  Ir as createWebpage,
6194
6194
  Lm as directLinkOnly,
6195
- hl as fromOpenUrl,
6195
+ fl as fromOpenUrl,
6196
6196
  Xm as getBaseBookmarkingUrl,
6197
6197
  Zs as getLibraryVersion,
6198
6198
  gl as isCustomer,
@@ -6205,7 +6205,7 @@ export {
6205
6205
  Zd as isParserType,
6206
6206
  jm as isParsingMetadata,
6207
6207
  Dm as isParsingMetadataV2,
6208
- xm as isParsingRequest,
6208
+ Om as isParsingRequest,
6209
6209
  qm as isParsingResponse,
6210
6210
  Zm as isParsingResponseV2,
6211
6211
  Tm as isParsingResult,
@@ -6215,7 +6215,7 @@ export {
6215
6215
  bl as isTenant,
6216
6216
  Nm as isTenantRegion,
6217
6217
  Mm as isUrlMatcher,
6218
- xp as isZ3988SearchResult,
6218
+ Op as isZ3988SearchResult,
6219
6219
  T as nothingParsed,
6220
6220
  w as openUrlResource,
6221
6221
  ym as parseResource,