@talisdev/bibliographic-resource-parsers-lib 5.24.0 → 5.26.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.
@@ -1,25 +1,25 @@
1
1
  function d(e, t, r) {
2
- function n(a, u) {
3
- var c;
2
+ function n(a, c) {
3
+ var u;
4
4
  Object.defineProperty(a, "_zod", {
5
5
  value: a._zod ?? {},
6
6
  enumerable: !1
7
- }), (c = a._zod).traits ?? (c.traits = /* @__PURE__ */ new Set()), a._zod.traits.add(e), t(a, u);
7
+ }), (u = a._zod).traits ?? (u.traits = /* @__PURE__ */ new Set()), a._zod.traits.add(e), t(a, c);
8
8
  for (const l in i.prototype)
9
9
  l in a || Object.defineProperty(a, l, { value: i.prototype[l].bind(a) });
10
- a._zod.constr = i, a._zod.def = u;
10
+ a._zod.constr = i, a._zod.def = c;
11
11
  }
12
12
  const o = r?.Parent ?? Object;
13
13
  class s extends o {
14
14
  }
15
15
  Object.defineProperty(s, "name", { value: e });
16
16
  function i(a) {
17
- var u;
18
- const c = r?.Parent ? new s() : this;
19
- n(c, a), (u = c._zod).deferred ?? (u.deferred = []);
20
- for (const l of c._zod.deferred)
17
+ var c;
18
+ const u = r?.Parent ? new s() : this;
19
+ n(u, a), (c = u._zod).deferred ?? (c.deferred = []);
20
+ for (const l of u._zod.deferred)
21
21
  l();
22
- return c;
22
+ return u;
23
23
  }
24
24
  return Object.defineProperty(i, "init", { value: n }), Object.defineProperty(i, Symbol.hasInstance, {
25
25
  value: (a) => r?.Parent && a instanceof r.Parent ? !0 : a?._zod?.traits?.has(e)
@@ -67,8 +67,8 @@ function Ws(e, t) {
67
67
  const r = (e.toString().split(".")[1] || "").length, n = t.toString();
68
68
  let o = (n.split(".")[1] || "").length;
69
69
  if (o === 0 && /\d?e-\d?/.test(n)) {
70
- const u = n.match(/\d?e-(\d?)/);
71
- u?.[1] && (o = Number.parseInt(u[1]));
70
+ const c = n.match(/\d?e-(\d?)/);
71
+ c?.[1] && (o = Number.parseInt(c[1]));
72
72
  }
73
73
  const s = r > o ? r : o, i = Number.parseInt(e.toFixed(s).replace(".", "")), a = Number.parseInt(t.toFixed(s).replace(".", ""));
74
74
  return i % a / 10 ** s;
@@ -124,7 +124,7 @@ const Gs = _r(() => {
124
124
  return !1;
125
125
  }
126
126
  });
127
- function Ne(e) {
127
+ function xe(e) {
128
128
  if (et(e) === !1)
129
129
  return !1;
130
130
  const t = e.constructor;
@@ -134,10 +134,10 @@ function Ne(e) {
134
134
  return !(et(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
135
135
  }
136
136
  function yo(e) {
137
- return Ne(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
137
+ return xe(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
138
138
  }
139
139
  const Xs = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
140
- function xe(e) {
140
+ function Ne(e) {
141
141
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
142
142
  }
143
143
  function ve(e, t, r) {
@@ -198,7 +198,7 @@ function Qs(e, t) {
198
198
  return ve(e, n);
199
199
  }
200
200
  function ei(e, t) {
201
- if (!Ne(t))
201
+ if (!xe(t))
202
202
  throw new Error("Invalid input to extend: expected a plain object");
203
203
  const r = e._zod.def.checks;
204
204
  if (r && r.length > 0)
@@ -213,7 +213,7 @@ function ei(e, t) {
213
213
  return ve(e, o);
214
214
  }
215
215
  function ti(e, t) {
216
- if (!Ne(t))
216
+ if (!xe(t))
217
217
  throw new Error("Invalid input to safeExtend: expected a plain object");
218
218
  const r = {
219
219
  ...e._zod.def,
@@ -344,35 +344,33 @@ function si(e, t = (r) => r.message) {
344
344
  o.path.length > 0 ? (r[o.path[0]] = r[o.path[0]] || [], r[o.path[0]].push(t(o))) : n.push(t(o));
345
345
  return { formErrors: n, fieldErrors: r };
346
346
  }
347
- function ii(e, t) {
348
- const r = t || function(s) {
349
- return s.message;
350
- }, n = { _errors: [] }, o = (s) => {
351
- for (const i of s.issues)
352
- if (i.code === "invalid_union" && i.errors.length)
353
- i.errors.map((a) => o({ issues: a }));
354
- else if (i.code === "invalid_key")
355
- o({ issues: i.issues });
356
- else if (i.code === "invalid_element")
357
- o({ issues: i.issues });
358
- else if (i.path.length === 0)
359
- n._errors.push(r(i));
347
+ function ii(e, t = (r) => r.message) {
348
+ const r = { _errors: [] }, n = (o) => {
349
+ for (const s of o.issues)
350
+ if (s.code === "invalid_union" && s.errors.length)
351
+ s.errors.map((i) => n({ issues: i }));
352
+ else if (s.code === "invalid_key")
353
+ n({ issues: s.issues });
354
+ else if (s.code === "invalid_element")
355
+ n({ issues: s.issues });
356
+ else if (s.path.length === 0)
357
+ r._errors.push(t(s));
360
358
  else {
361
- let a = n, u = 0;
362
- for (; u < i.path.length; ) {
363
- const c = i.path[u];
364
- u === i.path.length - 1 ? (a[c] = a[c] || { _errors: [] }, a[c]._errors.push(r(i))) : a[c] = a[c] || { _errors: [] }, a = a[c], u++;
359
+ let i = r, a = 0;
360
+ for (; a < s.path.length; ) {
361
+ const c = s.path[a];
362
+ a === s.path.length - 1 ? (i[c] = i[c] || { _errors: [] }, i[c]._errors.push(t(s))) : i[c] = i[c] || { _errors: [] }, i = i[c], a++;
365
363
  }
366
364
  }
367
365
  };
368
- return o(e), n;
366
+ return n(e), r;
369
367
  }
370
368
  const Sr = (e) => (t, r, n, o) => {
371
369
  const s = n ? Object.assign(n, { async: !1 }) : { async: !1 }, i = t._zod.run({ value: r, issues: [] }, s);
372
370
  if (i instanceof Promise)
373
371
  throw new Oe();
374
372
  if (i.issues.length) {
375
- const a = new (o?.Err ?? e)(i.issues.map((u) => ge(u, s, de())));
373
+ const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, de())));
376
374
  throw Eo(a, o?.callee), a;
377
375
  }
378
376
  return i.value;
@@ -380,7 +378,7 @@ const Sr = (e) => (t, r, n, o) => {
380
378
  const s = n ? Object.assign(n, { async: !0 }) : { async: !0 };
381
379
  let i = t._zod.run({ value: r, issues: [] }, s);
382
380
  if (i instanceof Promise && (i = await i), i.issues.length) {
383
- const a = new (o?.Err ?? e)(i.issues.map((u) => ge(u, s, de())));
381
+ const a = new (o?.Err ?? e)(i.issues.map((c) => ge(c, s, de())));
384
382
  throw Eo(a, o?.callee), a;
385
383
  }
386
384
  return i.value;
@@ -415,7 +413,7 @@ const Sr = (e) => (t, r, n, o) => {
415
413
  function Ii() {
416
414
  return new RegExp(Ri, "u");
417
415
  }
418
- const ki = /^(?:(?: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])$/, Ci = /^(([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}|:))$/, Pi = /^((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}=))?$/, wo = /^[A-Za-z0-9_-]*$/, xi = /^(?=.{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])?)*\.?$/, zi = /^\+(?:[0-9]){6,14}[0-9]$/, Ro = "(?:(?:\\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])))", Li = /* @__PURE__ */ new RegExp(`^${Ro}$`);
416
+ const ki = /^(?:(?: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])$/, Ci = /^(([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}|:))$/, Pi = /^((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])$/, xi = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, wo = /^[A-Za-z0-9_-]*$/, Ni = /^(?=.{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])?)*\.?$/, zi = /^\+(?:[0-9]){6,14}[0-9]$/, Ro = "(?:(?:\\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])))", Li = /* @__PURE__ */ new RegExp(`^${Ro}$`);
419
417
  function Io(e) {
420
418
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
421
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+)?)?`;
@@ -650,7 +648,7 @@ const qi = (e) => {
650
648
  t.pattern ?? (t.pattern = Fi), it.init(e, t);
651
649
  }), Ki = /* @__PURE__ */ d("$ZodCheckIncludes", (e, t) => {
652
650
  se.init(e, t);
653
- const r = xe(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
651
+ const r = Ne(t.includes), n = new RegExp(typeof t.position == "number" ? `^.{${t.position}}${r}` : r);
654
652
  t.pattern = n, e._zod.onattach.push((o) => {
655
653
  const s = o._zod.bag;
656
654
  s.patterns ?? (s.patterns = /* @__PURE__ */ new Set()), s.patterns.add(n);
@@ -667,7 +665,7 @@ const qi = (e) => {
667
665
  };
668
666
  }), Qi = /* @__PURE__ */ d("$ZodCheckStartsWith", (e, t) => {
669
667
  se.init(e, t);
670
- const r = new RegExp(`^${xe(t.prefix)}.*`);
668
+ const r = new RegExp(`^${Ne(t.prefix)}.*`);
671
669
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
672
670
  const o = n._zod.bag;
673
671
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -684,7 +682,7 @@ const qi = (e) => {
684
682
  };
685
683
  }), ea = /* @__PURE__ */ d("$ZodCheckEndsWith", (e, t) => {
686
684
  se.init(e, t);
687
- const r = new RegExp(`.*${xe(t.suffix)}$`);
685
+ const r = new RegExp(`.*${Ne(t.suffix)}$`);
688
686
  t.pattern ?? (t.pattern = r), e._zod.onattach.push((n) => {
689
687
  const o = n._zod.bag;
690
688
  o.patterns ?? (o.patterns = /* @__PURE__ */ new Set()), o.patterns.add(r);
@@ -730,7 +728,7 @@ class ra {
730
728
  const na = {
731
729
  major: 4,
732
730
  minor: 1,
733
- patch: 11
731
+ patch: 12
734
732
  }, W = /* @__PURE__ */ d("$ZodType", (e, t) => {
735
733
  var r;
736
734
  e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = na;
@@ -744,53 +742,53 @@ const na = {
744
742
  e._zod.run = e._zod.parse;
745
743
  });
746
744
  else {
747
- const o = (i, a, u) => {
748
- let c = Ce(i), l;
745
+ const o = (i, a, c) => {
746
+ let u = Ce(i), l;
749
747
  for (const f of a) {
750
748
  if (f._zod.def.when) {
751
749
  if (!f._zod.def.when(i))
752
750
  continue;
753
- } else if (c)
751
+ } else if (u)
754
752
  continue;
755
753
  const m = i.issues.length, g = f._zod.check(i);
756
- if (g instanceof Promise && u?.async === !1)
754
+ if (g instanceof Promise && c?.async === !1)
757
755
  throw new Oe();
758
756
  if (l || g instanceof Promise)
759
757
  l = (l ?? Promise.resolve()).then(async () => {
760
- await g, i.issues.length !== m && (c || (c = Ce(i, m)));
758
+ await g, i.issues.length !== m && (u || (u = Ce(i, m)));
761
759
  });
762
760
  else {
763
761
  if (i.issues.length === m)
764
762
  continue;
765
- c || (c = Ce(i, m));
763
+ u || (u = Ce(i, m));
766
764
  }
767
765
  }
768
766
  return l ? l.then(() => i) : i;
769
- }, s = (i, a, u) => {
767
+ }, s = (i, a, c) => {
770
768
  if (Ce(i))
771
769
  return i.aborted = !0, i;
772
- const c = o(a, n, u);
773
- if (c instanceof Promise) {
774
- if (u.async === !1)
770
+ const u = o(a, n, c);
771
+ if (u instanceof Promise) {
772
+ if (c.async === !1)
775
773
  throw new Oe();
776
- return c.then((l) => e._zod.parse(l, u));
774
+ return u.then((l) => e._zod.parse(l, c));
777
775
  }
778
- return e._zod.parse(c, u);
776
+ return e._zod.parse(u, c);
779
777
  };
780
778
  e._zod.run = (i, a) => {
781
779
  if (a.skipChecks)
782
780
  return e._zod.parse(i, a);
783
781
  if (a.direction === "backward") {
784
- const c = e._zod.parse({ value: i.value, issues: [] }, { ...a, skipChecks: !0 });
785
- return c instanceof Promise ? c.then((l) => s(l, i, a)) : s(c, i, a);
782
+ const u = e._zod.parse({ value: i.value, issues: [] }, { ...a, skipChecks: !0 });
783
+ return u instanceof Promise ? u.then((l) => s(l, i, a)) : s(u, i, a);
786
784
  }
787
- const u = e._zod.parse(i, a);
788
- if (u instanceof Promise) {
785
+ const c = e._zod.parse(i, a);
786
+ if (c instanceof Promise) {
789
787
  if (a.async === !1)
790
788
  throw new Oe();
791
- return u.then((c) => o(c, n, a));
789
+ return c.then((u) => o(u, n, a));
792
790
  }
793
- return o(u, n, a);
791
+ return o(c, n, a);
794
792
  };
795
793
  }
796
794
  e["~standard"] = {
@@ -851,7 +849,7 @@ const na = {
851
849
  code: "invalid_format",
852
850
  format: "url",
853
851
  note: "Invalid hostname",
854
- pattern: xi.source,
852
+ pattern: Ni.source,
855
853
  input: r.value,
856
854
  inst: e,
857
855
  continue: !t.abort
@@ -959,7 +957,7 @@ function Oo(e) {
959
957
  }
960
958
  }
961
959
  const Sa = /* @__PURE__ */ d("$ZodBase64", (e, t) => {
962
- t.pattern ?? (t.pattern = Ni), M.init(e, t), e._zod.onattach.push((r) => {
960
+ t.pattern ?? (t.pattern = xi), M.init(e, t), e._zod.onattach.push((r) => {
963
961
  r._zod.bag.contentEncoding = "base64";
964
962
  }), e._zod.check = (r) => {
965
963
  Oo(r.value) || r.issues.push({
@@ -1016,7 +1014,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1016
1014
  continue: !t.abort
1017
1015
  });
1018
1016
  };
1019
- }), No = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1017
+ }), xo = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1020
1018
  W.init(e, t), e._zod.pattern = e._zod.bag.pattern ?? Di, e._zod.parse = (r, n) => {
1021
1019
  if (t.coerce)
1022
1020
  try {
@@ -1036,7 +1034,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1036
1034
  }), r;
1037
1035
  };
1038
1036
  }), Ca = /* @__PURE__ */ d("$ZodNumber", (e, t) => {
1039
- Ji.init(e, t), No.init(e, t);
1037
+ Ji.init(e, t), xo.init(e, t);
1040
1038
  }), Pa = /* @__PURE__ */ d("$ZodNull", (e, t) => {
1041
1039
  W.init(e, t), e._zod.pattern = Bi, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, n) => {
1042
1040
  const o = r.value;
@@ -1049,7 +1047,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1049
1047
  };
1050
1048
  }), Oa = /* @__PURE__ */ d("$ZodUnknown", (e, t) => {
1051
1049
  W.init(e, t), e._zod.parse = (r) => r;
1052
- }), Na = /* @__PURE__ */ d("$ZodNever", (e, t) => {
1050
+ }), xa = /* @__PURE__ */ d("$ZodNever", (e, t) => {
1053
1051
  W.init(e, t), e._zod.parse = (r, n) => (r.issues.push({
1054
1052
  expected: "never",
1055
1053
  code: "invalid_type",
@@ -1060,7 +1058,7 @@ const ka = /* @__PURE__ */ d("$ZodJWT", (e, t) => {
1060
1058
  function Yr(e, t, r) {
1061
1059
  e.issues.length && t.issues.push(...Pe(r, e.issues)), t.value[r] = e.value;
1062
1060
  }
1063
- const xa = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1061
+ const Na = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1064
1062
  W.init(e, t), e._zod.parse = (r, n) => {
1065
1063
  const o = r.value;
1066
1064
  if (!Array.isArray(o))
@@ -1073,11 +1071,11 @@ const xa = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1073
1071
  r.value = Array(o.length);
1074
1072
  const s = [];
1075
1073
  for (let i = 0; i < o.length; i++) {
1076
- const a = o[i], u = t.element._zod.run({
1074
+ const a = o[i], c = t.element._zod.run({
1077
1075
  value: a,
1078
1076
  issues: []
1079
1077
  }, n);
1080
- u instanceof Promise ? s.push(u.then((c) => Yr(c, r, i))) : Yr(u, r, i);
1078
+ c instanceof Promise ? s.push(c.then((u) => Yr(u, r, i))) : Yr(c, r, i);
1081
1079
  }
1082
1080
  return s.length ? Promise.all(s).then(() => r) : r;
1083
1081
  };
@@ -1085,7 +1083,7 @@ const xa = /* @__PURE__ */ d("$ZodArray", (e, t) => {
1085
1083
  function tt(e, t, r, n) {
1086
1084
  e.issues.length && t.issues.push(...Pe(r, e.issues)), e.value === void 0 ? r in n && (t.value[r] = void 0) : t.value[r] = e.value;
1087
1085
  }
1088
- function xo(e) {
1086
+ function No(e) {
1089
1087
  const t = Object.keys(e.shape);
1090
1088
  for (const n of t)
1091
1089
  if (!e.shape?.[n]?._zod?.traits?.has("$ZodType"))
@@ -1100,15 +1098,15 @@ function xo(e) {
1100
1098
  };
1101
1099
  }
1102
1100
  function zo(e, t, r, n, o, s) {
1103
- const i = [], a = o.keySet, u = o.catchall._zod, c = u.def.type;
1101
+ const i = [], a = o.keySet, c = o.catchall._zod, u = c.def.type;
1104
1102
  for (const l of Object.keys(t)) {
1105
1103
  if (a.has(l))
1106
1104
  continue;
1107
- if (c === "never") {
1105
+ if (u === "never") {
1108
1106
  i.push(l);
1109
1107
  continue;
1110
1108
  }
1111
- const f = u.run({ value: t[l], issues: [] }, n);
1109
+ const f = c.run({ value: t[l], issues: [] }, n);
1112
1110
  f instanceof Promise ? e.push(f.then((m) => tt(m, r, l, t))) : tt(f, r, l, t);
1113
1111
  }
1114
1112
  return i.length && r.issues.push({
@@ -1123,91 +1121,91 @@ const za = /* @__PURE__ */ d("$ZodObject", (e, t) => {
1123
1121
  const a = t.shape;
1124
1122
  Object.defineProperty(t, "shape", {
1125
1123
  get: () => {
1126
- const u = { ...a };
1124
+ const c = { ...a };
1127
1125
  return Object.defineProperty(t, "shape", {
1128
- value: u
1129
- }), u;
1126
+ value: c
1127
+ }), c;
1130
1128
  }
1131
1129
  });
1132
1130
  }
1133
- const n = _r(() => xo(t));
1131
+ const n = _r(() => No(t));
1134
1132
  U(e._zod, "propValues", () => {
1135
- const a = t.shape, u = {};
1136
- for (const c in a) {
1137
- const l = a[c]._zod;
1133
+ const a = t.shape, c = {};
1134
+ for (const u in a) {
1135
+ const l = a[u]._zod;
1138
1136
  if (l.values) {
1139
- u[c] ?? (u[c] = /* @__PURE__ */ new Set());
1137
+ c[u] ?? (c[u] = /* @__PURE__ */ new Set());
1140
1138
  for (const f of l.values)
1141
- u[c].add(f);
1139
+ c[u].add(f);
1142
1140
  }
1143
1141
  }
1144
- return u;
1142
+ return c;
1145
1143
  });
1146
1144
  const o = et, s = t.catchall;
1147
1145
  let i;
1148
- e._zod.parse = (a, u) => {
1146
+ e._zod.parse = (a, c) => {
1149
1147
  i ?? (i = n.value);
1150
- const c = a.value;
1151
- if (!o(c))
1148
+ const u = a.value;
1149
+ if (!o(u))
1152
1150
  return a.issues.push({
1153
1151
  expected: "object",
1154
1152
  code: "invalid_type",
1155
- input: c,
1153
+ input: u,
1156
1154
  inst: e
1157
1155
  }), a;
1158
1156
  a.value = {};
1159
1157
  const l = [], f = i.shape;
1160
1158
  for (const m of i.keys) {
1161
- const C = f[m]._zod.run({ value: c[m], issues: [] }, u);
1162
- C instanceof Promise ? l.push(C.then((v) => tt(v, a, m, c))) : tt(C, a, m, c);
1159
+ const C = f[m]._zod.run({ value: u[m], issues: [] }, c);
1160
+ C instanceof Promise ? l.push(C.then((v) => tt(v, a, m, u))) : tt(C, a, m, u);
1163
1161
  }
1164
- return s ? zo(l, c, a, u, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
1162
+ return s ? zo(l, u, a, c, n.value, e) : l.length ? Promise.all(l).then(() => a) : a;
1165
1163
  };
1166
1164
  }), La = /* @__PURE__ */ d("$ZodObjectJIT", (e, t) => {
1167
1165
  za.init(e, t);
1168
- const r = e._zod.parse, n = _r(() => xo(t)), o = (m) => {
1169
- const g = new ra(["shape", "payload", "ctx"]), C = n.value, v = (x) => {
1170
- const D = Xr(x);
1171
- return `shape[${D}]._zod.run({ value: input[${D}], issues: [] }, ctx)`;
1166
+ const r = e._zod.parse, n = _r(() => No(t)), o = (m) => {
1167
+ const g = new ra(["shape", "payload", "ctx"]), C = n.value, v = (N) => {
1168
+ const B = Xr(N);
1169
+ return `shape[${B}]._zod.run({ value: input[${B}], issues: [] }, ctx)`;
1172
1170
  };
1173
1171
  g.write("const input = payload.value;");
1174
1172
  const P = /* @__PURE__ */ Object.create(null);
1175
- let L = 0;
1176
- for (const x of C.keys)
1177
- P[x] = `key_${L++}`;
1173
+ let Z = 0;
1174
+ for (const N of C.keys)
1175
+ P[N] = `key_${Z++}`;
1178
1176
  g.write("const newResult = {};");
1179
- for (const x of C.keys) {
1180
- const D = P[x], Y = Xr(x);
1181
- g.write(`const ${D} = ${v(x)};`), g.write(`
1182
- if (${D}.issues.length) {
1183
- payload.issues = payload.issues.concat(${D}.issues.map(iss => ({
1177
+ for (const N of C.keys) {
1178
+ const B = P[N], Y = Xr(N);
1179
+ g.write(`const ${B} = ${v(N)};`), g.write(`
1180
+ if (${B}.issues.length) {
1181
+ payload.issues = payload.issues.concat(${B}.issues.map(iss => ({
1184
1182
  ...iss,
1185
1183
  path: iss.path ? [${Y}, ...iss.path] : [${Y}]
1186
1184
  })));
1187
1185
  }
1188
1186
 
1189
1187
 
1190
- if (${D}.value === undefined) {
1188
+ if (${B}.value === undefined) {
1191
1189
  if (${Y} in input) {
1192
1190
  newResult[${Y}] = undefined;
1193
1191
  }
1194
1192
  } else {
1195
- newResult[${Y}] = ${D}.value;
1193
+ newResult[${Y}] = ${B}.value;
1196
1194
  }
1197
1195
 
1198
1196
  `);
1199
1197
  }
1200
1198
  g.write("payload.value = newResult;"), g.write("return payload;");
1201
1199
  const H = g.compile();
1202
- return (x, D) => H(m, x, D);
1200
+ return (N, B) => H(m, N, B);
1203
1201
  };
1204
1202
  let s;
1205
- const i = et, a = !_o.jitless, c = a && Gs.value, l = t.catchall;
1203
+ const i = et, a = !_o.jitless, u = a && Gs.value, l = t.catchall;
1206
1204
  let f;
1207
1205
  e._zod.parse = (m, g) => {
1208
1206
  f ?? (f = n.value);
1209
1207
  const C = m.value;
1210
- return i(C) ? a && c && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), m = s(m, g), l ? zo([], C, m, g, f, e) : m) : r(m, g) : (m.issues.push({
1208
+ return i(C) ? a && u && g?.async === !1 && g.jitless !== !0 ? (s || (s = o(t.shape)), m = s(m, g), l ? zo([], C, m, g, f, e) : m) : r(m, g) : (m.issues.push({
1211
1209
  expected: "object",
1212
1210
  code: "invalid_type",
1213
1211
  input: C,
@@ -1243,25 +1241,25 @@ const Ta = /* @__PURE__ */ d("$ZodUnion", (e, t) => {
1243
1241
  return n(o, s);
1244
1242
  let i = !1;
1245
1243
  const a = [];
1246
- for (const u of t.options) {
1247
- const c = u._zod.run({
1244
+ for (const c of t.options) {
1245
+ const u = c._zod.run({
1248
1246
  value: o.value,
1249
1247
  issues: []
1250
1248
  }, s);
1251
- if (c instanceof Promise)
1252
- a.push(c), i = !0;
1249
+ if (u instanceof Promise)
1250
+ a.push(u), i = !0;
1253
1251
  else {
1254
- if (c.issues.length === 0)
1255
- return c;
1256
- a.push(c);
1252
+ if (u.issues.length === 0)
1253
+ return u;
1254
+ a.push(u);
1257
1255
  }
1258
1256
  }
1259
- return i ? Promise.all(a).then((u) => Kr(u, o, e, s)) : Kr(a, o, e, s);
1257
+ return i ? Promise.all(a).then((c) => Kr(c, o, e, s)) : Kr(a, o, e, s);
1260
1258
  };
1261
1259
  }), Za = /* @__PURE__ */ d("$ZodIntersection", (e, t) => {
1262
1260
  W.init(e, t), e._zod.parse = (r, n) => {
1263
1261
  const o = r.value, s = t.left._zod.run({ value: o, issues: [] }, n), i = t.right._zod.run({ value: o, issues: [] }, n);
1264
- return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([u, c]) => Qr(r, u, c)) : Qr(r, s, i);
1262
+ return s instanceof Promise || i instanceof Promise ? Promise.all([s, i]).then(([c, u]) => Qr(r, c, u)) : Qr(r, s, i);
1265
1263
  };
1266
1264
  });
1267
1265
  function dr(e, t) {
@@ -1269,7 +1267,7 @@ function dr(e, t) {
1269
1267
  return { valid: !0, data: e };
1270
1268
  if (e instanceof Date && t instanceof Date && +e == +t)
1271
1269
  return { valid: !0, data: e };
1272
- if (Ne(e) && Ne(t)) {
1270
+ if (xe(e) && xe(t)) {
1273
1271
  const r = Object.keys(t), n = Object.keys(e).filter((s) => r.indexOf(s) !== -1), o = { ...e, ...t };
1274
1272
  for (const s of n) {
1275
1273
  const i = dr(e[s], t[s]);
@@ -1310,7 +1308,7 @@ function Qr(e, t, r) {
1310
1308
  const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1311
1309
  W.init(e, t), e._zod.parse = (r, n) => {
1312
1310
  const o = r.value;
1313
- if (!Ne(o))
1311
+ if (!xe(o))
1314
1312
  return r.issues.push({
1315
1313
  expected: "record",
1316
1314
  code: "invalid_type",
@@ -1321,16 +1319,16 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1321
1319
  if (t.keyType._zod.values) {
1322
1320
  const i = t.keyType._zod.values;
1323
1321
  r.value = {};
1324
- for (const u of i)
1325
- if (typeof u == "string" || typeof u == "number" || typeof u == "symbol") {
1326
- const c = t.valueType._zod.run({ value: o[u], issues: [] }, n);
1327
- c instanceof Promise ? s.push(c.then((l) => {
1328
- l.issues.length && r.issues.push(...Pe(u, l.issues)), r.value[u] = l.value;
1329
- })) : (c.issues.length && r.issues.push(...Pe(u, c.issues)), r.value[u] = c.value);
1322
+ for (const c of i)
1323
+ if (typeof c == "string" || typeof c == "number" || typeof c == "symbol") {
1324
+ const u = t.valueType._zod.run({ value: o[c], issues: [] }, n);
1325
+ u instanceof Promise ? s.push(u.then((l) => {
1326
+ l.issues.length && r.issues.push(...Pe(c, l.issues)), r.value[c] = l.value;
1327
+ })) : (u.issues.length && r.issues.push(...Pe(c, u.issues)), r.value[c] = u.value);
1330
1328
  }
1331
1329
  let a;
1332
- for (const u in o)
1333
- i.has(u) || (a = a ?? [], a.push(u));
1330
+ for (const c in o)
1331
+ i.has(c) || (a = a ?? [], a.push(c));
1334
1332
  a && a.length > 0 && r.issues.push({
1335
1333
  code: "unrecognized_keys",
1336
1334
  input: o,
@@ -1349,17 +1347,17 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1349
1347
  r.issues.push({
1350
1348
  code: "invalid_key",
1351
1349
  origin: "record",
1352
- issues: a.issues.map((c) => ge(c, n, de())),
1350
+ issues: a.issues.map((u) => ge(u, n, de())),
1353
1351
  input: i,
1354
1352
  path: [i],
1355
1353
  inst: e
1356
1354
  }), r.value[a.value] = a.value;
1357
1355
  continue;
1358
1356
  }
1359
- const u = t.valueType._zod.run({ value: o[i], issues: [] }, n);
1360
- u instanceof Promise ? s.push(u.then((c) => {
1361
- c.issues.length && r.issues.push(...Pe(i, c.issues)), r.value[a.value] = c.value;
1362
- })) : (u.issues.length && r.issues.push(...Pe(i, u.issues)), r.value[a.value] = u.value);
1357
+ const c = t.valueType._zod.run({ value: o[i], issues: [] }, n);
1358
+ c instanceof Promise ? s.push(c.then((u) => {
1359
+ u.issues.length && r.issues.push(...Pe(i, u.issues)), r.value[a.value] = u.value;
1360
+ })) : (c.issues.length && r.issues.push(...Pe(i, c.issues)), r.value[a.value] = c.value);
1363
1361
  }
1364
1362
  }
1365
1363
  return s.length ? Promise.all(s).then(() => r) : r;
@@ -1367,7 +1365,7 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1367
1365
  }), ja = /* @__PURE__ */ d("$ZodEnum", (e, t) => {
1368
1366
  W.init(e, t);
1369
1367
  const r = Ms(t.entries), n = new Set(r);
1370
- e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => Xs.has(typeof o)).map((o) => typeof o == "string" ? xe(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1368
+ e._zod.values = n, e._zod.pattern = new RegExp(`^(${r.filter((o) => Xs.has(typeof o)).map((o) => typeof o == "string" ? Ne(o) : o.toString()).join("|")})$`), e._zod.parse = (o, s) => {
1371
1369
  const i = o.value;
1372
1370
  return n.has(i) || o.issues.push({
1373
1371
  code: "invalid_value",
@@ -1379,7 +1377,7 @@ const qa = /* @__PURE__ */ d("$ZodRecord", (e, t) => {
1379
1377
  }), Da = /* @__PURE__ */ d("$ZodLiteral", (e, t) => {
1380
1378
  if (W.init(e, t), t.values.length === 0)
1381
1379
  throw new Error("Cannot create literal schema with no valid values");
1382
- e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? xe(r) : r ? xe(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1380
+ e._zod.values = new Set(t.values), e._zod.pattern = new RegExp(`^(${t.values.map((r) => typeof r == "string" ? Ne(r) : r ? Ne(r.toString()) : String(r)).join("|")})$`), e._zod.parse = (r, n) => {
1383
1381
  const o = r.value;
1384
1382
  return e._zod.values.has(o) || r.issues.push({
1385
1383
  code: "invalid_value",
@@ -1913,7 +1911,7 @@ function Oc(e) {
1913
1911
  ...$(e)
1914
1912
  });
1915
1913
  }
1916
- function Nc(e, t) {
1914
+ function xc(e, t) {
1917
1915
  return new Ki({
1918
1916
  check: "string_format",
1919
1917
  format: "includes",
@@ -1921,7 +1919,7 @@ function Nc(e, t) {
1921
1919
  includes: e
1922
1920
  });
1923
1921
  }
1924
- function xc(e, t) {
1922
+ function Nc(e, t) {
1925
1923
  return new Qi({
1926
1924
  check: "string_format",
1927
1925
  format: "starts_with",
@@ -2076,7 +2074,7 @@ const Kc = (e, t) => {
2076
2074
  }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), qo = /* @__PURE__ */ d("_ZodString", (e, t) => {
2077
2075
  wr.init(e, t), X.init(e, t);
2078
2076
  const r = e._zod.bag;
2079
- e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Cc(...n)), e.includes = (...n) => e.check(Nc(...n)), e.startsWith = (...n) => e.check(xc(...n)), e.endsWith = (...n) => e.check(zc(...n)), e.min = (...n) => e.check(rt(...n)), e.max = (...n) => e.check(To(...n)), e.length = (...n) => e.check(Zo(...n)), e.nonempty = (...n) => e.check(rt(1, ...n)), e.lowercase = (n) => e.check(Pc(n)), e.uppercase = (n) => e.check(Oc(n)), e.trim = () => e.check(Tc()), e.normalize = (...n) => e.check(Lc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(qc());
2077
+ e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(Cc(...n)), e.includes = (...n) => e.check(xc(...n)), e.startsWith = (...n) => e.check(Nc(...n)), e.endsWith = (...n) => e.check(zc(...n)), e.min = (...n) => e.check(rt(...n)), e.max = (...n) => e.check(To(...n)), e.length = (...n) => e.check(Zo(...n)), e.nonempty = (...n) => e.check(rt(1, ...n)), e.lowercase = (n) => e.check(Pc(n)), e.uppercase = (n) => e.check(Oc(n)), e.trim = () => e.check(Tc()), e.normalize = (...n) => e.check(Lc(...n)), e.toLowerCase = () => e.check(Zc()), e.toUpperCase = () => e.check(qc());
2080
2078
  }), pu = /* @__PURE__ */ d("ZodString", (e, t) => {
2081
2079
  wr.init(e, t), qo.init(e, t), e.email = (r) => e.check(ec(hu, r)), e.url = (r) => e.check(Lo(jo, r)), e.jwt = (r) => e.check(_c(ku, r)), e.emoji = (r) => e.check(sc(mu, r)), e.guid = (r) => e.check(sn(ln, r)), e.uuid = (r) => e.check(tc(Ye, r)), e.uuidv4 = (r) => e.check(rc(Ye, r)), e.uuidv6 = (r) => e.check(nc(Ye, r)), e.uuidv7 = (r) => e.check(oc(Ye, r)), e.nanoid = (r) => e.check(ic(du, r)), e.guid = (r) => e.check(sn(ln, r)), e.cuid = (r) => e.check(ac(gu, r)), e.cuid2 = (r) => e.check(cc(vu, r)), e.ulid = (r) => e.check(uc(bu, r)), e.base64 = (r) => e.check(gc(wu, r)), e.base64url = (r) => e.check(vc(Ru, r)), e.xid = (r) => e.check(lc(_u, r)), e.ksuid = (r) => e.check(pc(Eu, r)), e.ipv4 = (r) => e.check(hc(yu, r)), e.ipv6 = (r) => e.check(fc($u, r)), e.cidrv4 = (r) => e.check(mc(Su, r)), e.cidrv6 = (r) => e.check(dc(Au, r)), e.e164 = (r) => e.check(bc(Iu, r)), e.datetime = (r) => e.check(Jc(r)), e.date = (r) => e.check(Wc(r)), e.time = (r) => e.check(Xc(r)), e.duration = (r) => e.check(Yc(r));
2082
2080
  });
@@ -2128,7 +2126,7 @@ const mu = /* @__PURE__ */ d("ZodEmoji", (e, t) => {
2128
2126
  }), ku = /* @__PURE__ */ d("ZodJWT", (e, t) => {
2129
2127
  ka.init(e, t), G.init(e, t);
2130
2128
  }), Do = /* @__PURE__ */ d("ZodNumber", (e, t) => {
2131
- No.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(cn(n, o)), e.gte = (n, o) => e.check(St(n, o)), e.min = (n, o) => e.check(St(n, o)), e.lt = (n, o) => e.check(an(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(pn(n)), e.safe = (n) => e.check(pn(n)), e.positive = (n) => e.check(cn(0, n)), e.nonnegative = (n) => e.check(St(0, n)), e.negative = (n) => e.check(an(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(un(n, o)), e.step = (n, o) => e.check(un(n, o)), e.finite = () => e;
2129
+ xo.init(e, t), X.init(e, t), e.gt = (n, o) => e.check(cn(n, o)), e.gte = (n, o) => e.check(St(n, o)), e.min = (n, o) => e.check(St(n, o)), e.lt = (n, o) => e.check(an(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(pn(n)), e.safe = (n) => e.check(pn(n)), e.positive = (n) => e.check(cn(0, n)), e.nonnegative = (n) => e.check(St(0, n)), e.negative = (n) => e.check(an(0, n)), e.nonpositive = (n) => e.check($t(0, n)), e.multipleOf = (n, o) => e.check(un(n, o)), e.step = (n, o) => e.check(un(n, o)), e.finite = () => e;
2132
2130
  const r = e._zod.bag;
2133
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;
2134
2132
  });
@@ -2153,20 +2151,20 @@ const Ou = /* @__PURE__ */ d("ZodUnknown", (e, t) => {
2153
2151
  function hn() {
2154
2152
  return Ic(Ou);
2155
2153
  }
2156
- const Nu = /* @__PURE__ */ d("ZodNever", (e, t) => {
2157
- Na.init(e, t), X.init(e, t);
2154
+ const xu = /* @__PURE__ */ d("ZodNever", (e, t) => {
2155
+ xa.init(e, t), X.init(e, t);
2158
2156
  });
2159
- function xu(e) {
2160
- return kc(Nu, e);
2157
+ function Nu(e) {
2158
+ return kc(xu, e);
2161
2159
  }
2162
2160
  const zu = /* @__PURE__ */ d("ZodArray", (e, t) => {
2163
- xa.init(e, t), X.init(e, t), e.element = t.element, e.min = (r, n) => e.check(rt(r, n)), e.nonempty = (r) => e.check(rt(1, r)), e.max = (r, n) => e.check(To(r, n)), e.length = (r, n) => e.check(Zo(r, n)), e.unwrap = () => e.element;
2161
+ Na.init(e, t), X.init(e, t), e.element = t.element, e.min = (r, n) => e.check(rt(r, n)), e.nonempty = (r) => e.check(rt(1, r)), e.max = (r, n) => e.check(To(r, n)), e.length = (r, n) => e.check(Zo(r, n)), e.unwrap = () => e.element;
2164
2162
  });
2165
2163
  function j(e, t) {
2166
2164
  return jc(zu, e, t);
2167
2165
  }
2168
2166
  const Lu = /* @__PURE__ */ d("ZodObject", (e, t) => {
2169
- La.init(e, t), X.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Ue(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: hn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: hn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: xu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ei(e, r), e.safeExtend = (r) => ti(e, r), e.merge = (r) => ri(e, r), e.pick = (r) => Ks(e, r), e.omit = (r) => Qs(e, r), e.partial = (...r) => ni(Fo, e, r[0]), e.required = (...r) => oi(Vo, e, r[0]);
2167
+ La.init(e, t), X.init(e, t), U(e, "shape", () => t.shape), e.keyof = () => Ue(Object.keys(e._zod.def.shape)), e.catchall = (r) => e.clone({ ...e._zod.def, catchall: r }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: hn() }), e.loose = () => e.clone({ ...e._zod.def, catchall: hn() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Nu() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (r) => ei(e, r), e.safeExtend = (r) => ti(e, r), e.merge = (r) => ri(e, r), e.pick = (r) => Ks(e, r), e.omit = (r) => Qs(e, r), e.partial = (...r) => ni(Fo, e, r[0]), e.required = (...r) => oi(Vo, e, r[0]);
2170
2168
  });
2171
2169
  function k(e, t) {
2172
2170
  const r = {
@@ -2379,7 +2377,7 @@ function rl(e) {
2379
2377
  return Uc(e);
2380
2378
  }
2381
2379
  var y = /* @__PURE__ */ ((e) => (e.Article = "article", e.AudioDocument = "audiodocument", e.AudioVisualDocument = "audiovisualdocument", e.Book = "book", e.Bookitem = "bookitem", e.Conference = "conference", e.Document = "document", e.Image = "image", e.Issue = "issue", e.Journal = "journal", e.Preprint = "preprint", e.Proceeding = "proceeding", e.Report = "report", e.Unknown = "unknown", e.Webpage = "webpage", e))(y || {});
2382
- const rd = pe([
2380
+ const id = pe([
2383
2381
  J(
2384
2382
  "book"
2385
2383
  /* Book */
@@ -2408,7 +2406,7 @@ const rd = pe([
2408
2406
  "unknown"
2409
2407
  /* Unknown */
2410
2408
  )
2411
- ]), nd = pe([
2409
+ ]), ad = pe([
2412
2410
  J(
2413
2411
  "article"
2414
2412
  /* Article */
@@ -2482,7 +2480,7 @@ const rd = pe([
2482
2480
  bibid: p(),
2483
2481
  doi: p(),
2484
2482
  uri: p()
2485
- }).partial(), od = be.pick({
2483
+ }).partial(), cd = be.pick({
2486
2484
  atitle: !0,
2487
2485
  aufirst: !0,
2488
2486
  aulast: !0,
@@ -2508,7 +2506,7 @@ const rd = pe([
2508
2506
  tpages: !0,
2509
2507
  series: !0,
2510
2508
  spage: !0
2511
- }).partial(), sd = be.pick({
2509
+ }).partial(), ud = be.pick({
2512
2510
  artnum: !0,
2513
2511
  atitle: !0,
2514
2512
  aufirst: !0,
@@ -2540,25 +2538,25 @@ const rd = pe([
2540
2538
  ssn: !0,
2541
2539
  quarter: !0,
2542
2540
  volume: !0
2543
- }).partial(), id = be.pick({
2541
+ }).partial(), ld = be.pick({
2544
2542
  au: !0,
2545
2543
  date: !0,
2546
2544
  isbn: !0,
2547
2545
  pub: !0,
2548
2546
  title: !0
2549
- }).partial(), ad = be.pick({
2547
+ }).partial(), pd = be.pick({
2550
2548
  au: !0,
2551
2549
  date: !0,
2552
2550
  pub: !0,
2553
2551
  title: !0
2554
- }).partial(), cd = be.pick({
2552
+ }).partial(), hd = be.pick({
2555
2553
  au: !0,
2556
2554
  date: !0,
2557
2555
  pub: !0,
2558
2556
  title: !0,
2559
2557
  spage: !0,
2560
2558
  epage: !0
2561
- }).partial(), ud = be.pick({
2559
+ }).partial(), fd = be.pick({
2562
2560
  au: !0,
2563
2561
  date: !0,
2564
2562
  title: !0
@@ -2568,7 +2566,7 @@ const rd = pe([
2568
2566
  }), Q = (e, t) => ({
2569
2567
  ...t,
2570
2568
  genre: e
2571
- }), B = (e, t) => ({
2569
+ }), D = (e, t) => ({
2572
2570
  ...t,
2573
2571
  genre: e
2574
2572
  }), Ae = (e) => ({
@@ -2614,7 +2612,7 @@ const rd = pe([
2614
2612
  ].reduce(r, {});
2615
2613
  return Object.keys(n).length === 0 ? null : n;
2616
2614
  }, hl = (e) => URL.canParse(e) ? new URL(e).searchParams : new URLSearchParams(e);
2617
- function ld(e) {
2615
+ function md(e) {
2618
2616
  return typeof e != "string" ? !1 : Object.values(y).includes(e);
2619
2617
  }
2620
2618
  var ye = /* @__PURE__ */ ((e) => (e.CA = "CA", e.EUAPAC = "EUAPAC", e))(ye || {});
@@ -2622,7 +2620,7 @@ const Ho = k({
2622
2620
  id: p(),
2623
2621
  name: p(),
2624
2622
  region: Ue(ye)
2625
- }), pd = k({
2623
+ }), dd = k({
2626
2624
  tenants: j(Ho)
2627
2625
  }), gn = 9 * 1024 * 1024, fl = k({
2628
2626
  url: fu({
@@ -2642,7 +2640,7 @@ const Ho = k({
2642
2640
  error: (e) => e.input === void 0 ? 'should have the required string property "region"' : '"region" must be a string of EUAPAC or CA'
2643
2641
  })
2644
2642
  });
2645
- function hd(e) {
2643
+ function gd(e) {
2646
2644
  return fl.safeParse(e).success;
2647
2645
  }
2648
2646
  const Yo = k({
@@ -2653,10 +2651,10 @@ const Yo = k({
2653
2651
  function vl(e) {
2654
2652
  return Ho.safeParse(e).success;
2655
2653
  }
2656
- function fd(e) {
2654
+ function vd(e) {
2657
2655
  return typeof e == "string" && Object.keys(ye).includes(e);
2658
2656
  }
2659
- const md = (e) => {
2657
+ const bd = (e) => {
2660
2658
  if (!gl(e))
2661
2659
  throw new Error("Error: the customer list data is invalid.");
2662
2660
  return { tenants: Object.entries(e).map(
@@ -2702,10 +2700,10 @@ const md = (e) => {
2702
2700
  }).and(Ir), El = k({
2703
2701
  meta: Qo
2704
2702
  }).and(Ir);
2705
- function dd(e) {
2703
+ function _d(e) {
2706
2704
  return { bookmarkingWorkflowUrl: e, resource: null };
2707
2705
  }
2708
- function Z() {
2706
+ function T() {
2709
2707
  return { bookmarkingWorkflowUrl: null, resource: null };
2710
2708
  }
2711
2709
  function w(e) {
@@ -2723,9 +2721,9 @@ const Sl = (e) => {
2723
2721
  }, kr = ({ document: e }) => {
2724
2722
  const t = Array.from(e.querySelectorAll(".Z3988"));
2725
2723
  if (t.length === 0)
2726
- return Z();
2724
+ return T();
2727
2725
  const r = t.map(Sl).find((n) => n !== null);
2728
- return r ? w(r) : Z();
2726
+ return r ? w(r) : T();
2729
2727
  }, Al = (e) => {
2730
2728
  const t = Array.from(e.querySelectorAll(".author > a")).map((r) => r.textContent.trim()).filter(Boolean);
2731
2729
  return t.length ? t : void 0;
@@ -2755,7 +2753,7 @@ const Sl = (e) => {
2755
2753
  )?.textContent ?? void 0;
2756
2754
  return (t ? /\d+/.exec(t)?.[0] : null) ?? void 0;
2757
2755
  }, Ol = ({ url: e, document: t }) => {
2758
- const r = Al(t), n = wl(t), o = Rl(t), s = Il(t), i = kl(t), a = Cl(t), u = t.getElementById("productTitle")?.textContent.trim() ?? void 0, c = Pl(t);
2756
+ const r = Al(t), n = wl(t), o = Rl(t), s = Il(t), i = kl(t), a = Cl(t), c = t.getElementById("productTitle")?.textContent.trim() ?? void 0, u = Pl(t);
2759
2757
  return {
2760
2758
  bookmarkingWorkflowUrl: null,
2761
2759
  resource: Q(y.Book, {
@@ -2765,15 +2763,15 @@ const Sl = (e) => {
2765
2763
  isbn: o,
2766
2764
  pub: i,
2767
2765
  series: a,
2768
- title: u,
2769
- tpages: c,
2766
+ title: c,
2767
+ tpages: u,
2770
2768
  uri: e
2771
2769
  })
2772
2770
  };
2773
2771
  }, he = (e) => {
2774
2772
  if (e)
2775
2773
  return e.replace(/[^0-9]/g, "");
2776
- }, ss = (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), is = (e) => e.querySelector(".article-header")?.querySelector("h1 span")?.textContent.trim(), as = (e) => ({ date: e?.textContent.match(/\d{4}/)?.[0], pub: "Elsevier Inc." }), Nl = (e) => {
2774
+ }, ss = (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), is = (e) => e.querySelector(".article-header")?.querySelector("h1 span")?.textContent.trim(), as = (e) => ({ date: e?.textContent.match(/\d{4}/)?.[0], pub: "Elsevier Inc." }), xl = (e) => {
2777
2775
  const t = e.querySelector(".article-meta");
2778
2776
  if (!t)
2779
2777
  return {};
@@ -2785,10 +2783,10 @@ const Sl = (e) => {
2785
2783
  issue: he(s),
2786
2784
  jtitle: n
2787
2785
  };
2788
- }, xl = (e) => {
2789
- const t = e.querySelector(".article-header .source")?.textContent, r = t?.match(/\d{4}-\d{2}-\d{2}/)?.[0], n = t?.match(/Pages (\d+-\d+)/), [o, s] = (n?.[1].split("-") ?? []).map((c) => c.trim()), { jtitle: i, volume: a, issue: u } = Nl(e);
2786
+ }, Nl = (e) => {
2787
+ const t = e.querySelector(".article-header .source")?.textContent, r = t?.match(/\d{4}-\d{2}-\d{2}/)?.[0], n = t?.match(/Pages (\d+-\d+)/), [o, s] = (n?.[1].split("-") ?? []).map((u) => u.trim()), { jtitle: i, volume: a, issue: c } = xl(e);
2790
2788
  return w(
2791
- B(y.Article, {
2789
+ D(y.Article, {
2792
2790
  au: ss(e),
2793
2791
  atitle: is(e),
2794
2792
  spage: o,
@@ -2796,11 +2794,11 @@ const Sl = (e) => {
2796
2794
  date: r,
2797
2795
  jtitle: i,
2798
2796
  volume: a,
2799
- issue: u
2797
+ issue: c
2800
2798
  })
2801
2799
  );
2802
2800
  }, zl = (e) => {
2803
- const [t, r] = e.querySelectorAll(".source"), { date: n, pub: o } = as(r), s = e.querySelector(".browse__book-toc"), [i, a] = (s?.querySelector("h1")?.textContent.split(",") ?? []).map((u) => u.trim());
2801
+ const [t, r] = e.querySelectorAll(".source"), { date: n, pub: o } = as(r), s = e.querySelector(".browse__book-toc"), [i, a] = (s?.querySelector("h1")?.textContent.split(",") ?? []).map((c) => c.trim());
2804
2802
  return w(
2805
2803
  Q(y.Book, {
2806
2804
  btitle: i,
@@ -2822,7 +2820,7 @@ const Sl = (e) => {
2822
2820
  pub: i
2823
2821
  };
2824
2822
  }, Tl = (e) => {
2825
- const { edition: t, btitle: r, date: n, pub: o } = Ll(e), s = e.querySelector(".article-header .source")?.textContent, i = /(\d+-\d+|[IVXLCDM]+-[IVXLCDM]+)/i, a = s?.match(i), [u, c] = (a?.[1].split("-") ?? []).map((l) => l.trim());
2823
+ const { edition: t, btitle: r, date: n, pub: o } = Ll(e), s = e.querySelector(".article-header .source")?.textContent, i = /(\d+-\d+|[IVXLCDM]+-[IVXLCDM]+)/i, a = s?.match(i), [c, u] = (a?.[1].split("-") ?? []).map((l) => l.trim());
2826
2824
  return w(
2827
2825
  Q(y.Bookitem, {
2828
2826
  au: ss(e),
@@ -2831,8 +2829,8 @@ const Sl = (e) => {
2831
2829
  edition: t,
2832
2830
  pub: o,
2833
2831
  date: n,
2834
- spage: u,
2835
- epage: c
2832
+ spage: c,
2833
+ epage: u
2836
2834
  })
2837
2835
  );
2838
2836
  }, Zl = /^[0-9X]$/, Cr = (e) => {
@@ -2861,11 +2859,11 @@ const Sl = (e) => {
2861
2859
  }, cs = (e) => e.querySelector(".browse-toc") ?? e.querySelector(".browse__journal"), jl = (e) => cs(e)?.querySelector("h1")?.firstElementChild?.textContent.trim(), Dl = (e) => {
2862
2860
  const t = cs(e), r = t?.querySelector("figure figcaption.source");
2863
2861
  if (r) {
2864
- const [a, u, c] = r.textContent.split(",").map((l) => l.trim());
2862
+ const [a, c, u] = r.textContent.split(",").map((l) => l.trim());
2865
2863
  return {
2866
2864
  date: a,
2867
- volume: he(u),
2868
- issue: he(c)
2865
+ volume: he(c),
2866
+ issue: he(u)
2869
2867
  };
2870
2868
  }
2871
2869
  const n = t?.querySelector("p")?.textContent, [o, s] = n?.split(",") ?? [];
@@ -2877,7 +2875,7 @@ const Sl = (e) => {
2877
2875
  }, Bl = (e) => {
2878
2876
  const { date: t, volume: r, issue: n } = Dl(e);
2879
2877
  return w(
2880
- B(y.Journal, {
2878
+ D(y.Journal, {
2881
2879
  jtitle: jl(e),
2882
2880
  date: t,
2883
2881
  volume: r,
@@ -2905,13 +2903,13 @@ const Ul = (e) => Object.values(us).includes(
2905
2903
  case "Book Chapter":
2906
2904
  return Tl(t);
2907
2905
  case "Full Text Article":
2908
- return xl(t);
2906
+ return Nl(t);
2909
2907
  case "Journal":
2910
2908
  return Bl(t);
2911
2909
  case "Guideline":
2912
2910
  return ql(t, e);
2913
2911
  case void 0:
2914
- return Z();
2912
+ return T();
2915
2913
  }
2916
2914
  }, we = k({
2917
2915
  "@context": p()
@@ -2965,11 +2963,11 @@ const Ul = (e) => Object.values(us).includes(
2965
2963
  return t ? {
2966
2964
  bookmarkingWorkflowUrl: null,
2967
2965
  resource: Kl(t)
2968
- } : Z();
2969
- }, hs = () => Z(), h = (e, t, r) => {
2970
- const n = re(e, t, r);
2966
+ } : T();
2967
+ }, hs = () => T(), h = (e, t, r) => {
2968
+ const n = te(e, t, r);
2971
2969
  return n.length > 0 ? n[0] : void 0;
2972
- }, re = (e, t, r) => Array.from(
2970
+ }, te = (e, t, r) => Array.from(
2973
2971
  e.querySelectorAll(`meta[${t}='${r}']`)
2974
2972
  ).map((n) => n.getAttribute("content")).filter((n) => !!n?.trim()), fs = (e) => {
2975
2973
  const t = /* @__PURE__ */ new Map(), r = e.split(";").filter((n) => !!n);
@@ -2989,7 +2987,7 @@ const Ul = (e) => Object.values(us).includes(
2989
2987
  XPathResult.STRING_TYPE
2990
2988
  ).stringValue.trim();
2991
2989
  return w(
2992
- B(y.Journal, {
2990
+ D(y.Journal, {
2993
2991
  pub: a,
2994
2992
  jtitle: t,
2995
2993
  issn: s,
@@ -2998,12 +2996,12 @@ const Ul = (e) => Object.values(us).includes(
2998
2996
  );
2999
2997
  }, rp = (e) => {
3000
2998
  let t, r;
3001
- const n = re(e, "name", "citation_issn");
2999
+ const n = te(e, "name", "citation_issn");
3002
3000
  return n.length === 2 ? (t = n[1], r = n[0]) : t = n[0], { eissn: t, issn: r };
3003
3001
  }, np = (e) => {
3004
- const t = h(e, "name", "citation_journal_title"), r = h(e, "name", "citation_title"), n = re(e, "name", "citation_author"), o = h(e, "name", "citation_doi"), { eissn: s, issn: i } = rp(e), a = h(e, "name", "citation_publisher"), u = h(e, "name", "citation_publication_date"), c = h(e, "name", "citation_volume"), l = h(e, "name", "citation_issue"), f = h(e, "name", "citation_firstpage"), m = h(e, "name", "citation_lastpage");
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 } = rp(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"), m = h(e, "name", "citation_lastpage");
3005
3003
  return w(
3006
- B(y.Article, {
3004
+ D(y.Article, {
3007
3005
  jtitle: t,
3008
3006
  atitle: r,
3009
3007
  au: n,
@@ -3011,8 +3009,8 @@ const Ul = (e) => Object.values(us).includes(
3011
3009
  eissn: s,
3012
3010
  issn: i,
3013
3011
  pub: a,
3014
- date: u,
3015
- volume: c,
3012
+ date: c,
3013
+ volume: u,
3016
3014
  issue: l,
3017
3015
  spage: f,
3018
3016
  epage: m
@@ -3025,7 +3023,7 @@ const Ul = (e) => Object.values(us).includes(
3025
3023
  case "article":
3026
3024
  return np(e);
3027
3025
  case void 0:
3028
- return Z();
3026
+ return T();
3029
3027
  }
3030
3028
  };
3031
3029
  var E = /* @__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))(E || {});
@@ -3062,33 +3060,33 @@ const sp = (e) => {
3062
3060
  const s = r?.match(/(\d{4})$/);
3063
3061
  return s && t.set("date", s[1]), t;
3064
3062
  }, hp = (e) => {
3065
- const t = ip(e.document), r = h(e.document, "name", "dc.Date"), n = up(e.document), o = ms(e.document), s = o.get("issn"), i = o.get("eissn"), a = cp(e.document), u = h(
3063
+ const t = ip(e.document), r = h(e.document, "name", "dc.Date"), n = up(e.document), o = ms(e.document), s = o.get("issn"), i = o.get("eissn"), a = cp(e.document), c = h(
3066
3064
  e.document,
3067
3065
  "name",
3068
3066
  "citation_journal_title"
3069
- ), c = h(e.document, "name", "dc.Publisher"), l = h(e.document, "name", "dc.Title"), f = ap(e.document);
3070
- return B(y.Article, {
3067
+ ), u = h(e.document, "name", "dc.Publisher"), l = h(e.document, "name", "dc.Title"), f = ap(e.document);
3068
+ return D(y.Article, {
3071
3069
  au: t,
3072
3070
  date: r,
3073
3071
  eissn: i,
3074
3072
  issn: s,
3075
3073
  issue: a,
3076
- jtitle: u,
3077
- pub: c,
3074
+ jtitle: c,
3075
+ pub: u,
3078
3076
  title: l,
3079
3077
  volume: f,
3080
3078
  doi: n
3081
3079
  });
3082
3080
  }, fp = (e) => {
3083
- const t = ms(e.document), r = t.get("issn"), n = t.get("eissn"), o = lp(e.document), s = pp(e.document), i = s.get("issue"), a = s.get("volume"), u = s.get("date");
3084
- return B(y.Journal, {
3081
+ const t = ms(e.document), r = t.get("issn"), n = t.get("eissn"), o = lp(e.document), s = pp(e.document), i = s.get("issue"), a = s.get("volume"), c = s.get("date");
3082
+ return D(y.Journal, {
3085
3083
  eissn: n,
3086
3084
  issn: r,
3087
3085
  jtitle: o,
3088
3086
  title: o,
3089
3087
  issue: i,
3090
3088
  volume: a,
3091
- date: u
3089
+ date: c
3092
3090
  });
3093
3091
  }, mp = (e) => {
3094
3092
  switch (sp(e.document)) {
@@ -3097,7 +3095,7 @@ const sp = (e) => {
3097
3095
  case E.Journal:
3098
3096
  return w(fp(e));
3099
3097
  default:
3100
- return Z();
3098
+ return T();
3101
3099
  }
3102
3100
  }, dp = (e) => {
3103
3101
  const t = h(e, "name", "citation_type"), r = h(
@@ -3136,12 +3134,12 @@ const sp = (e) => {
3136
3134
  title: r
3137
3135
  });
3138
3136
  }, Ep = (e) => {
3139
- const t = h(e, "property", "og:title"), r = h(e, "property", "og:book:isbn"), n = h(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = h(e, "name", "citation_firstpage"), i = h(e, "name", "citation_lastpage"), a = h(e, "name", "citation_publisher"), u = Pr(e), c = h(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3137
+ const t = h(e, "property", "og:title"), r = h(e, "property", "og:book:isbn"), n = h(e, "name", "citation_publication_date"), o = Or(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 = Pr(e), u = h(e, "name", "citation_inbook_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3140
3138
  return Q(y.Bookitem, {
3141
3139
  au: o,
3142
- btitle: c,
3140
+ btitle: u,
3143
3141
  date: n,
3144
- doi: u,
3142
+ doi: c,
3145
3143
  epage: i,
3146
3144
  isbn: r,
3147
3145
  pub: a,
@@ -3149,22 +3147,22 @@ const sp = (e) => {
3149
3147
  title: t
3150
3148
  });
3151
3149
  }, yp = (e) => {
3152
- const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o = Or(e, ".author-group .button-link-text"), s = h(e, "name", "citation_publisher"), i = h(e, "name", "citation_firstpage"), a = h(e, "name", "citation_issue"), u = h(e, "name", "citation_volume"), c = Pr(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3153
- return B(y.Article, {
3150
+ const t = h(e, "property", "og:title"), r = h(e, "name", "citation_issn"), n = h(e, "name", "citation_publication_date"), o = Or(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 = Pr(e), l = h(e, "name", "citation_journal_title") ?? e.querySelector(".publication-title")?.textContent ?? void 0;
3151
+ return D(y.Article, {
3154
3152
  au: o,
3155
3153
  jtitle: l,
3156
3154
  date: n,
3157
- doi: c,
3155
+ doi: u,
3158
3156
  issn: r,
3159
3157
  issue: a,
3160
3158
  pub: s,
3161
3159
  spage: i,
3162
3160
  title: t,
3163
- volume: u
3161
+ volume: c
3164
3162
  });
3165
3163
  }, $p = (e) => {
3166
3164
  const t = e.getElementById("journal-title")?.textContent ?? void 0, r = vp(e);
3167
- return B(y.Journal, {
3165
+ return D(y.Journal, {
3168
3166
  issn: r,
3169
3167
  title: t
3170
3168
  });
@@ -3179,7 +3177,7 @@ const sp = (e) => {
3179
3177
  case E.Journal:
3180
3178
  return w($p(e));
3181
3179
  default:
3182
- return Z();
3180
+ return T();
3183
3181
  }
3184
3182
  }, Ap = (e) => {
3185
3183
  const t = h(e, "name", "pbContext");
@@ -3202,13 +3200,13 @@ const sp = (e) => {
3202
3200
  )?.textContent;
3203
3201
  return t ? t.replace("Issue", "").trim() : void 0;
3204
3202
  }, kp = (e) => {
3205
- 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 = re(e, "name", "dc.Creator"), a = Rp(e), u = Ip(e), c = wp(e), l = c?.includes("-") ? c.split("-")[0] : c, f = c?.includes("-") ? c.split("-")[1] : c;
3206
- return B(y.Article, {
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 = Rp(e), c = Ip(e), u = wp(e), l = u?.includes("-") ? u.split("-")[0] : u, f = u?.includes("-") ? u.split("-")[1] : u;
3204
+ return D(y.Article, {
3207
3205
  au: i,
3208
3206
  jtitle: s,
3209
3207
  date: n,
3210
3208
  doi: o,
3211
- issue: u,
3209
+ issue: c,
3212
3210
  pub: r,
3213
3211
  spage: l,
3214
3212
  epage: f,
@@ -3217,7 +3215,7 @@ const sp = (e) => {
3217
3215
  });
3218
3216
  }, Cp = (e) => {
3219
3217
  const t = h(e, "property", "og:title"), r = h(e, "name", "publication_doi");
3220
- return B(y.Journal, {
3218
+ return D(y.Journal, {
3221
3219
  doi: r,
3222
3220
  title: t
3223
3221
  });
@@ -3228,33 +3226,33 @@ const sp = (e) => {
3228
3226
  case E.Journal:
3229
3227
  return w(Cp(e));
3230
3228
  default:
3231
- return Z();
3229
+ return T();
3232
3230
  }
3233
- }, gd = (e) => Ir.safeParse(e).success, vd = (e) => _l.safeParse(e).success, bd = (e) => El.safeParse(e).success, _d = (e) => Ko.safeParse(e).success, Ed = (e) => Qo.safeParse(e).success;
3234
- function yd(e) {
3231
+ }, Ed = (e) => Ir.safeParse(e).success, yd = (e) => _l.safeParse(e).success, $d = (e) => El.safeParse(e).success, Sd = (e) => Ko.safeParse(e).success, Ad = (e) => Qo.safeParse(e).success;
3232
+ function wd(e) {
3235
3233
  return ts.safeParse(e).success;
3236
3234
  }
3237
- function Nr(e) {
3235
+ function xr(e) {
3238
3236
  return rs.safeParse(e).success;
3239
3237
  }
3240
3238
  function Op(e) {
3241
3239
  return ns.safeParse(e).success;
3242
3240
  }
3243
- function Np(e) {
3241
+ function xp(e) {
3244
3242
  return os.safeParse(e).success;
3245
3243
  }
3246
- function $d(e) {
3244
+ function Rd(e) {
3247
3245
  return es.safeParse(e).success;
3248
3246
  }
3249
- const xp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector('span[property="identifier"]')?.textContent ?? void 0, zp = (e) => {
3247
+ const Np = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textContent.trim() === "DOI:")?.nextElementSibling?.querySelector('span[property="identifier"]')?.textContent ?? void 0, zp = (e) => {
3250
3248
  const t = /Record\/(\d+)/.exec(e);
3251
3249
  if (t && t.length > 1)
3252
3250
  return t[1];
3253
3251
  }, Lp = (e) => {
3254
3252
  const { url: t, document: r } = e, n = kr(e);
3255
- if (!Nr(n))
3253
+ if (!xr(n))
3256
3254
  return n;
3257
- const o = xp(r);
3255
+ const o = Np(r);
3258
3256
  return o && (n.resource.rft_id = [`info:doi/${o}`]), n.resource.bibid = zp(t), n;
3259
3257
  }, Tp = we.extend({
3260
3258
  "@type": J("VideoObject"),
@@ -3284,7 +3282,7 @@ const xp = (e) => Array.from(e.querySelectorAll("tr th")).find((n) => n.textCont
3284
3282
  title: r.name,
3285
3283
  uri: e
3286
3284
  })
3287
- } : Z();
3285
+ } : T();
3288
3286
  }, ds = (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, gs = (e) => {
3289
3287
  const t = e.editor?.map((o) => o.name) ?? [], n = [...e.author?.map((o) => o.name) ?? [], ...t];
3290
3288
  if (n.length !== 0)
@@ -3330,16 +3328,16 @@ const vs = k({
3330
3328
  issn: j(p()),
3331
3329
  volumeNumber: p().optional()
3332
3330
  }), vn = (e) => Up.safeParse(e).success, Fp = (e, t) => h(e, "name", "citation_issn") ?? h(e, "name", "prism.issn") ?? (bs(t.isPartOf) ? t.isPartOf.issn?.[0] : void 0), bn = (e, t) => {
3333
- const r = gs(t), n = h(e, "name", "citation_online_date"), o = ds(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = vn(t.isPartOf) && t.isPartOf.issn.length > 0 ? t.isPartOf.issn[1] : void 0, u = t.pageStart, c = t.pageEnd, l = t.headline, f = t.isPartOf.name, m = vn(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3334
- return B(y.Article, {
3331
+ const r = gs(t), n = h(e, "name", "citation_online_date"), o = ds(e), s = h(e, "name", "citation_issue"), i = Fp(e, t), a = vn(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, m = vn(t.isPartOf) ? t.isPartOf.volumeNumber : void 0;
3332
+ return D(y.Article, {
3335
3333
  au: r,
3336
3334
  date: n,
3337
3335
  doi: o,
3338
3336
  issue: s,
3339
3337
  eissn: i,
3340
3338
  issn: a,
3341
- spage: u,
3342
- epage: c,
3339
+ spage: c,
3340
+ epage: u,
3343
3341
  atitle: l,
3344
3342
  jtitle: f,
3345
3343
  volume: m
@@ -3384,10 +3382,10 @@ const vs = k({
3384
3382
  ), a = t.isbn ?? r.get(
3385
3383
  "Softcover ISBN"
3386
3384
  /* SOFTCOVER_ISBN */
3387
- ), u = t.numberOfPages?.toString() ?? r.get(
3385
+ ), c = t.numberOfPages?.toString() ?? r.get(
3388
3386
  "Number of Pages"
3389
3387
  /* NUMBER_OF_PAGES */
3390
- ), c = t.publisher?.name ?? r.get(
3388
+ ), u = t.publisher?.name ?? r.get(
3391
3389
  "Publisher"
3392
3390
  /* PUBLISHER */
3393
3391
  );
@@ -3397,8 +3395,8 @@ const vs = k({
3397
3395
  doi: s,
3398
3396
  title: i,
3399
3397
  isbn: a,
3400
- tpages: u,
3401
- pub: c
3398
+ tpages: c,
3399
+ pub: u
3402
3400
  });
3403
3401
  }, Gp = k({
3404
3402
  "@type": J("Periodical"),
@@ -3419,7 +3417,7 @@ const vs = k({
3419
3417
  const t = e.editor.map(
3420
3418
  ({ givenName: i, familyName: a }) => `${i} ${a}`
3421
3419
  ), r = e.name, [n, o] = e.issn, s = e.publisher.name;
3422
- return B(y.Journal, {
3420
+ return D(y.Journal, {
3423
3421
  au: t,
3424
3422
  jtitle: r,
3425
3423
  eissn: n,
@@ -3454,15 +3452,15 @@ const vs = k({
3454
3452
  return r === me.Article && e.includes(ae.Article) ? E.Article : r === me.Book && (e.includes(ae.Book) || e.includes(ae.ReferenceWork)) ? E.Book : r === me.Paper && e.includes(ae.Chapter) ? E.Chapter : r === me.Paper && (e.includes(ae.ReferenceWorkEntry) || e.includes(ae.Protocol)) ? E.Article : r === me.Video && e.includes(ae.Video) ? E.AudioVisual : r === me.Website && (e.includes(ae.Collections) || e.includes(ae.JournalIssue)) ? E.Webpage : r === me.Website && e.includes(ae.Journal) ? E.Journal : E.None;
3455
3453
  }, rh = (e, t, r) => e === E.AudioVisual && Kp(r) ? w(Qp(t, r)) : e === E.Book && Jp(r) ? w(Wp(t, r)) : (e === E.Chapter || e === E.Article) && bs(r) ? w(bn(t, r)) : e === E.Article && Bp(r) ? w(
3456
3454
  bn(t, r.mainEntity)
3457
- ) : e === E.Journal && Xp(r) ? w(Hp(r)) : Z(), nh = ({ url: e, document: t }) => {
3455
+ ) : e === E.Journal && Xp(r) ? w(Hp(r)) : T(), nh = ({ url: e, document: t }) => {
3458
3456
  const r = th(e, t);
3459
3457
  if (r === E.Webpage)
3460
3458
  return w(eh(t));
3461
3459
  const n = at(t);
3462
3460
  if (!n)
3463
- return Z();
3461
+ return T();
3464
3462
  const o = Fe(n);
3465
- return o ? rh(r, t, o) : Z();
3463
+ return o ? rh(r, t, o) : T();
3466
3464
  }, oh = /* @__PURE__ */ new Set([
3467
3465
  "Print ISBN",
3468
3466
  "Online ISBN",
@@ -3484,7 +3482,7 @@ const vs = k({
3484
3482
  const t = h(e, "property", "og:type");
3485
3483
  return t === "Book" || t === "books.book" ? E.Book : t === "Chapter" ? E.Chapter : t === "Journal" ? E.Journal : t === "Article" ? E.Article : E.None;
3486
3484
  }, ct = (e) => {
3487
- const t = re(
3485
+ const t = te(
3488
3486
  e,
3489
3487
  "name",
3490
3488
  "citation_author"
@@ -3513,7 +3511,7 @@ const vs = k({
3513
3511
  }, lt = (e, t) => h(e, "property", "books:release_date") ?? h(e, "name", "citation_online_date") ?? t.get(
3514
3512
  "First published"
3515
3513
  /* FirstPublished */
3516
- ) ?? void 0, xr = (e, t) => h(e, "name", "dc.identifier") ?? h(e, "name", "citation_doi") ?? h(e, "name", "publication_doi") ?? t.get(
3514
+ ) ?? void 0, Nr = (e, t) => h(e, "name", "dc.identifier") ?? h(e, "name", "citation_doi") ?? h(e, "name", "publication_doi") ?? t.get(
3517
3515
  "DOI"
3518
3516
  /* Doi */
3519
3517
  ) ?? void 0, _s = (e, t) => {
@@ -3542,7 +3540,7 @@ const vs = k({
3542
3540
  }
3543
3541
  return { volume: t, issue: r };
3544
3542
  }, ch = (e) => {
3545
- const t = ut(e), r = ct(e), n = h(e, "property", "og:title"), o = lt(e, t), s = xr(e, t), i = _s(e, t), a = ih(e);
3543
+ const t = ut(e), r = ct(e), n = h(e, "property", "og:title"), o = lt(e, t), s = Nr(e, t), i = _s(e, t), a = ih(e);
3546
3544
  return Q(y.Book, {
3547
3545
  au: r,
3548
3546
  date: o,
@@ -3552,7 +3550,7 @@ const vs = k({
3552
3550
  title: n
3553
3551
  });
3554
3552
  }, uh = (e) => {
3555
- const t = ut(e), r = ct(e), n = h(e, "name", "citation_book_title"), o = lt(e, t), s = xr(e, t), i = _s(e, t), a = h(e, "name", "citation_publisher"), u = h(e, "property", "og:title");
3553
+ const t = ut(e), r = ct(e), n = h(e, "name", "citation_book_title"), o = lt(e, t), s = Nr(e, t), i = _s(e, t), a = h(e, "name", "citation_publisher"), c = h(e, "property", "og:title");
3556
3554
  return Q(y.Bookitem, {
3557
3555
  au: r,
3558
3556
  btitle: n,
@@ -3560,7 +3558,7 @@ const vs = k({
3560
3558
  doi: s,
3561
3559
  isbn: i,
3562
3560
  pub: a,
3563
- title: u
3561
+ title: c
3564
3562
  });
3565
3563
  }, lh = (e) => {
3566
3564
  const t = ut(e), r = ct(e), n = lt(e, t), o = t.get(
@@ -3569,19 +3567,19 @@ const vs = k({
3569
3567
  ), s = t.get(
3570
3568
  "Print ISSN"
3571
3569
  /* PrintIssn */
3572
- ), i = h(e, "property", "og:title"), { volume: a, issue: u } = ah(e);
3573
- return B(y.Journal, {
3570
+ ), i = h(e, "property", "og:title"), { volume: a, issue: c } = ah(e);
3571
+ return D(y.Journal, {
3574
3572
  au: r,
3575
3573
  date: n,
3576
3574
  eissn: o,
3577
3575
  issn: s,
3578
- issue: u,
3576
+ issue: c,
3579
3577
  title: i,
3580
3578
  volume: a
3581
3579
  });
3582
3580
  }, ph = (e) => {
3583
- const t = ut(e), r = ct(e), n = lt(e, t), o = xr(e, t), s = h(e, "name", "citation_issn"), i = h(e, "name", "citation_journal_title"), a = h(e, "property", "og:title");
3584
- return B(y.Article, {
3581
+ const t = ut(e), r = ct(e), n = lt(e, t), o = Nr(e, t), s = h(e, "name", "citation_issn"), i = h(e, "name", "citation_journal_title"), a = h(e, "property", "og:title");
3582
+ return D(y.Article, {
3585
3583
  au: r,
3586
3584
  date: n,
3587
3585
  doi: o,
@@ -3600,10 +3598,10 @@ const vs = k({
3600
3598
  case E.Article:
3601
3599
  return w(ph(e));
3602
3600
  default:
3603
- return Z();
3601
+ return T();
3604
3602
  }
3605
3603
  }, fh = (e) => {
3606
- const t = re(e, "name", "citation_author");
3604
+ const t = te(e, "name", "citation_author");
3607
3605
  return t.length > 0 ? t : void 0;
3608
3606
  }, mh = ({ document: e }) => {
3609
3607
  const t = fh(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 = Ae({
@@ -3617,7 +3615,7 @@ const vs = k({
3617
3615
  return w(a);
3618
3616
  }, dh = ({
3619
3617
  document: e
3620
- }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? Z() : yl(), zr = (e) => {
3618
+ }) => Array.from(e.querySelectorAll(".Z3988")).length <= 1 ? T() : yl(), zr = (e) => {
3621
3619
  if (!(!e || e.length === 0))
3622
3620
  return e[0];
3623
3621
  };
@@ -3668,7 +3666,7 @@ const gh = (e) => {
3668
3666
  const t = e.get("local identifier");
3669
3667
  if (t?.length)
3670
3668
  return ys(t);
3671
- }, qe = (e) => {
3669
+ }, Eh = (e) => e.querySelector(".doi")?.getAttribute("href") ?? void 0, qe = (e) => {
3672
3670
  if (e?.length)
3673
3671
  return e[0];
3674
3672
  }, ke = (e) => {
@@ -3685,7 +3683,7 @@ const gh = (e) => {
3685
3683
  pub: s && s.trim() !== "" ? s : void 0,
3686
3684
  jtitle: o && o.trim() !== "" ? o : void 0
3687
3685
  };
3688
- }, Eh = (e) => {
3686
+ }, yh = (e) => {
3689
3687
  const t = Es(e, [
3690
3688
  '[data-qa="journal"]:first-child cite',
3691
3689
  '[data-qa="copyright-statement"] > cite',
@@ -3697,7 +3695,7 @@ const gh = (e) => {
3697
3695
  return;
3698
3696
  const t = new URL(e);
3699
3697
  return t.origin + t.pathname;
3700
- }, yh = (e) => {
3698
+ }, $h = (e) => {
3701
3699
  const t = e.querySelector(
3702
3700
  ".ccda-container > :first-child"
3703
3701
  );
@@ -3708,15 +3706,15 @@ const gh = (e) => {
3708
3706
  s.startsWith("Volume") ? n = he(s) : s.startsWith("Issue") && (r = he(s));
3709
3707
  }
3710
3708
  return { issue: r, volume: n };
3711
- }, $h = (e) => {
3709
+ }, Sh = (e) => {
3712
3710
  const t = e.querySelector('[data-qa="item-src-info"]')?.textContent ?? h(e, "property", "og:description") ?? h(e, "name", "description");
3713
3711
  if (!t)
3714
3712
  return {};
3715
- 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, u = i ? i[2] : void 0, c = /pp\.\s*\d+-\d+\s*\((\d+)\s*pages\)/.exec(
3713
+ 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(
3716
3714
  t
3717
- ), l = c ? c[1] : void 0;
3718
- return { issue: s, volume: n, spage: a, epage: u, pages: l };
3719
- }, Sh = (e) => {
3715
+ ), l = u ? u[1] : void 0;
3716
+ return { issue: s, volume: n, spage: a, epage: c, pages: l };
3717
+ }, Ah = (e) => {
3720
3718
  const t = Es(e, [
3721
3719
  "mfe-turnaway-pharos-link",
3722
3720
  '[data-qa="item-src-info"]'
@@ -3728,13 +3726,13 @@ const gh = (e) => {
3728
3726
  return s ? s[0] : void 0;
3729
3727
  });
3730
3728
  return zr(n);
3731
- }, Ah = (e, t) => {
3732
- const r = _e(e), n = Re(e), o = Ie(e) ?? Sh(e), s = Ss(e), i = s.jtitle ?? Eh(e) ?? void 0, a = s.pub, u = yh(e), c = $h(e), l = u.issue ?? c.issue, f = u.volume ?? c.volume, m = pt(e) ?? c.pages, g = c.spage, C = c.epage, v = Ee(t), P = ys(
3729
+ }, wh = (e, t) => {
3730
+ const r = _e(e), n = Re(e), o = Ie(e) ?? Ah(e), s = Ss(e), i = s.jtitle ?? yh(e) ?? void 0, a = s.pub, c = $h(e), u = Sh(e), l = c.issue ?? u.issue, f = c.volume ?? u.volume, m = pt(e) ?? u.pages, g = u.spage, C = u.epage, v = Ee(t), P = ys(
3733
3731
  Array.from(
3734
3732
  e.querySelector(".content-meta-data-stables")?.childNodes ?? []
3735
- ).map((L) => L.textContent ?? "")
3736
- );
3737
- return B(y.Article, {
3733
+ ).map((Z) => Z.textContent ?? "")
3734
+ ) ?? Eh(e);
3735
+ return D(y.Article, {
3738
3736
  atitle: r,
3739
3737
  au: n,
3740
3738
  date: o,
@@ -3748,7 +3746,7 @@ const gh = (e) => {
3748
3746
  uri: v,
3749
3747
  volume: f
3750
3748
  });
3751
- }, wh = (e, t) => {
3749
+ }, Rh = (e, t) => {
3752
3750
  const r = ke(e), n = Re(e), o = Ie(e, r), s = _e(e), i = Je(e, r), a = Ee(t);
3753
3751
  return Ae({
3754
3752
  au: n,
@@ -3757,44 +3755,44 @@ const gh = (e) => {
3757
3755
  title: s,
3758
3756
  uri: a
3759
3757
  });
3760
- }, Rh = (e, t) => {
3761
- const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), u = Ee(t), c = $s(r);
3758
+ }, Ih = (e, t) => {
3759
+ const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), c = Ee(t), u = $s(r);
3762
3760
  return Q(y.Book, {
3763
3761
  au: n,
3764
3762
  date: s,
3765
- doi: c,
3763
+ doi: u,
3766
3764
  pages: i,
3767
3765
  pub: a,
3768
3766
  title: o,
3769
- uri: u
3767
+ uri: c
3770
3768
  });
3771
- }, Ih = (e, t) => {
3769
+ }, kh = (e, t) => {
3772
3770
  const r = ke(e), n = Re(e), o = _e(e), s = e.querySelector(".book-title-link")?.textContent ?? void 0, i = Ie(e, r), a = Array.from(
3773
3771
  e.querySelectorAll('[data-qa="book"] > span')
3774
- ).map((m) => m.textContent), u = pt(e), c = a.find((m) => m.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Je(e, r), f = Ee(t);
3772
+ ).map((m) => m.textContent), c = pt(e), u = a.find((m) => m.includes("pp."))?.match(/(\d+)-(\d+)/) ?? void 0, l = Je(e, r), f = Ee(t);
3775
3773
  return Q(y.Bookitem, {
3776
3774
  atitle: o,
3777
3775
  au: n,
3778
3776
  btitle: s,
3779
3777
  date: i,
3780
- epage: c?.[2],
3778
+ epage: u?.[2],
3781
3779
  pub: l,
3782
- pages: u,
3783
- spage: c?.[1],
3780
+ pages: c,
3781
+ spage: u?.[1],
3784
3782
  uri: f
3785
3783
  });
3786
- }, kh = (e, t) => {
3787
- const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), u = Ee(t), c = $s(r);
3784
+ }, Ch = (e, t) => {
3785
+ const r = ke(e), n = Re(e), o = _e(e), s = Ie(e), i = pt(e), a = Je(e, r), c = Ee(t), u = $s(r);
3788
3786
  return Q(y.Document, {
3789
3787
  au: n,
3790
3788
  date: s,
3791
- doi: c,
3789
+ doi: u,
3792
3790
  pages: i,
3793
3791
  pub: a,
3794
3792
  title: o,
3795
- uri: u
3793
+ uri: c
3796
3794
  });
3797
- }, Ch = (e, t) => {
3795
+ }, Ph = (e, t) => {
3798
3796
  const r = ke(e), n = Re(e), o = Ie(e, r), s = _e(e), i = Ee(t);
3799
3797
  return ol({
3800
3798
  au: n,
@@ -3802,9 +3800,9 @@ const gh = (e) => {
3802
3800
  title: s,
3803
3801
  uri: i
3804
3802
  });
3805
- }, Ph = (e, t) => {
3803
+ }, Oh = (e, t) => {
3806
3804
  const { pub: r } = Ss(e), n = _e(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);
3807
- return B(y.Journal, {
3805
+ return D(y.Journal, {
3808
3806
  eissn: o,
3809
3807
  issn: s,
3810
3808
  jtitle: n,
@@ -3813,7 +3811,7 @@ const gh = (e) => {
3813
3811
  });
3814
3812
  };
3815
3813
  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 || {});
3816
- const Oh = (e, t) => {
3814
+ const xh = (e, t) => {
3817
3815
  const r = ke(e), n = Re(e), o = Ie(e, r), s = _e(e), i = Je(e, r), a = Ee(t);
3818
3816
  return Ae({
3819
3817
  au: n,
@@ -3822,39 +3820,39 @@ const Oh = (e, t) => {
3822
3820
  title: s,
3823
3821
  uri: a
3824
3822
  });
3825
- }, Nh = (e) => Object.values(oe).includes(e), xh = (e) => {
3823
+ }, Nh = (e) => Object.values(oe).includes(e), zh = (e) => {
3826
3824
  if (e.querySelector(".journal_header-title"))
3827
3825
  return oe.Journal;
3828
3826
  if (e.querySelector(".journal-link"))
3829
3827
  return oe.Article;
3830
3828
  const n = e.querySelector(".content-type > span")?.textContent.toLowerCase().trim() ?? e.querySelector(".content-meta-data-label")?.textContent.toLowerCase().trim();
3831
3829
  return Nh(n) ? n : null;
3832
- }, zh = (e, t) => {
3833
- switch (xh(e)) {
3830
+ }, Lh = (e, t) => {
3831
+ switch (zh(e)) {
3834
3832
  case oe.Article:
3835
3833
  case oe.Serial:
3836
- return Ah(e, t);
3837
- case oe.Audio:
3838
3834
  return wh(e, t);
3839
- case oe.Book:
3835
+ case oe.Audio:
3840
3836
  return Rh(e, t);
3837
+ case oe.Book:
3838
+ return Ih(e, t);
3841
3839
  case oe.Chapter:
3842
3840
  case oe.ResearchReport:
3843
- return Ih(e, t);
3844
- case oe.Document:
3845
3841
  return kh(e, t);
3846
- case oe.Image:
3842
+ case oe.Document:
3847
3843
  return Ch(e, t);
3848
- case oe.Journal:
3844
+ case oe.Image:
3849
3845
  return Ph(e, t);
3850
- case oe.Video:
3846
+ case oe.Journal:
3851
3847
  return Oh(e, t);
3848
+ case oe.Video:
3849
+ return xh(e, t);
3852
3850
  default:
3853
3851
  return null;
3854
3852
  }
3855
- }, Lh = ({ document: e, url: t }) => {
3856
- const r = zh(e, t);
3857
- return r ? w(r) : Z();
3853
+ }, Th = ({ document: e, url: t }) => {
3854
+ const r = Lh(e, t);
3855
+ return r ? w(r) : T();
3858
3856
  }, je = (e) => {
3859
3857
  if (e) {
3860
3858
  if (typeof e == "string")
@@ -3869,7 +3867,7 @@ const Oh = (e, t) => {
3869
3867
  const t = new Set(e.filter((r) => !!r));
3870
3868
  if (t.size !== 0)
3871
3869
  return [...t];
3872
- }, Th = (e) => {
3870
+ }, Zh = (e) => {
3873
3871
  const t = As(e.mainEntity.creator);
3874
3872
  return t ? [t] : void 0;
3875
3873
  }, Me = ({
@@ -3878,9 +3876,9 @@ const Oh = (e, t) => {
3878
3876
  }) => ({
3879
3877
  bibid: e,
3880
3878
  title: t
3881
- }), Zh = (e, t) => {
3879
+ }), qh = (e, t) => {
3882
3880
  const r = Ke(
3883
- ...(e && Th(e)) ?? [],
3881
+ ...(e && Zh(e)) ?? [],
3884
3882
  ...t.authors ?? []
3885
3883
  ), n = Ke(...t.eissns ?? []), o = Ke(
3886
3884
  e?.mainEntity.isbn ? Cr(e.mainEntity.isbn) : void 0,
@@ -3906,7 +3904,7 @@ const Oh = (e, t) => {
3906
3904
  title: e?.name ?? t.title,
3907
3905
  volume: e?.mainEntity.volumeNumber
3908
3906
  };
3909
- }, qh = (e) => B(y.Article, {
3907
+ }, jh = (e) => D(y.Article, {
3910
3908
  ...Me(e),
3911
3909
  au: e.authors,
3912
3910
  doi: e.doi,
@@ -3918,12 +3916,12 @@ const Oh = (e, t) => {
3918
3916
  pub: e.publisher,
3919
3917
  spage: e.spage,
3920
3918
  volume: e.volume
3921
- }), jh = (e) => Ae({
3919
+ }), Dh = (e) => Ae({
3922
3920
  ...Me(e),
3923
3921
  au: e.authors,
3924
3922
  date: e.date,
3925
3923
  pub: e.publisher
3926
- }), Dh = (e) => Q(y.Book, {
3924
+ }), Bh = (e) => Q(y.Book, {
3927
3925
  ...Me(e),
3928
3926
  au: e.authors,
3929
3927
  date: e.date,
@@ -3933,7 +3931,7 @@ const Oh = (e, t) => {
3933
3931
  isbn: e.isbn,
3934
3932
  pub: e.publisher,
3935
3933
  spage: e.spage
3936
- }), Bh = (e) => B(y.Journal, {
3934
+ }), Uh = (e) => D(y.Journal, {
3937
3935
  ...Me(e),
3938
3936
  date: e.date,
3939
3937
  doi: e.doi,
@@ -3946,7 +3944,7 @@ const Oh = (e, t) => {
3946
3944
  }), yn = k({
3947
3945
  "@type": J("Person"),
3948
3946
  name: pe([p(), j(p())])
3949
- }), Uh = we.extend({
3947
+ }), Fh = we.extend({
3950
3948
  identifier: k({
3951
3949
  "@type": p(),
3952
3950
  propertyID: p(),
@@ -3973,24 +3971,24 @@ const Oh = (e, t) => {
3973
3971
  volumeNumber: le(p())
3974
3972
  }),
3975
3973
  name: p()
3976
- }), Fh = (e) => {
3974
+ }), Vh = (e) => {
3977
3975
  const t = at(e);
3978
3976
  if (!t)
3979
3977
  return null;
3980
- const r = Fe(t), n = Uh.safeParse(r);
3978
+ const r = Fe(t), n = Fh.safeParse(r);
3981
3979
  return n.success ? n.data : null;
3982
- }, Vh = (e) => Ae({
3980
+ }, Jh = (e) => Ae({
3983
3981
  ...Me(e),
3984
3982
  au: e.authors,
3985
3983
  date: e.date,
3986
3984
  pub: e.publisher
3987
- }), Jh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, $n = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, Lr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, Mh = (e) => {
3985
+ }), Mh = /([0-9]{4}-[0-9]{1,2}-[0-9]{1,2}|[0-9]{4}-[0-9]{1,2}|[0-9]{4})/, $n = /(E?ISBN|E?ISSN|DOI)\s*:\s*/g, Lr = (e) => `*:has([title*="${e}" i]) + .item-details-element-container prm-highlight`, Wh = (e) => {
3988
3986
  if (!e)
3989
3987
  return;
3990
- const t = Jh.exec(e);
3988
+ const t = Mh.exec(e);
3991
3989
  if (t)
3992
3990
  return t.length > 1 ? t[1] : void 0;
3993
- }, Wh = (e) => {
3991
+ }, Gh = (e) => {
3994
3992
  const t = Array.from(
3995
3993
  e.querySelectorAll(Lr("Identifier"))
3996
3994
  ), r = {};
@@ -4003,22 +4001,22 @@ const Oh = (e, t) => {
4003
4001
  index: s.index,
4004
4002
  start: $n.lastIndex
4005
4003
  });
4006
- o.forEach(({ id: i, start: a }, u) => {
4007
- r[i] ??= [], r[i].push(n.substring(a, o[u + 1]?.index));
4004
+ o.forEach(({ id: i, start: a }, c) => {
4005
+ r[i] ??= [], r[i].push(n.substring(a, o[c + 1]?.index));
4008
4006
  });
4009
4007
  }), r;
4010
- }, Gh = (e) => Array.from(e.querySelectorAll(Lr("Author"))).filter(
4008
+ }, Xh = (e) => Array.from(e.querySelectorAll(Lr("Author"))).filter(
4011
4009
  (t) => !!t.textContent && t.parentElement !== null && t.parentElement.getAttribute("aria-hidden") !== "true"
4012
- ).map((t) => t.textContent.trim()), fe = (e, t) => e.querySelector(Lr(t))?.textContent.trim(), Xh = (e) => {
4013
- 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"), u = Gh(e), c = Wh(e), [l] = o?.split(",") ?? [], f = Mh(n ?? t), m = [...c.isbn ?? [], ...c.eisbn ?? []].map((g) => Cr(g)).filter((g) => !!g);
4010
+ ).map((t) => t.textContent.trim()), fe = (e, t) => e.querySelector(Lr(t))?.textContent.trim(), Hh = (e) => {
4011
+ 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 = Xh(e), u = Gh(e), [l] = o?.split(",") ?? [], f = Wh(n ?? t), m = [...u.isbn ?? [], ...u.eisbn ?? []].map((g) => Cr(g)).filter((g) => !!g);
4014
4012
  return {
4015
- authors: u,
4013
+ authors: c,
4016
4014
  date: f,
4017
- dois: c.doi,
4015
+ dois: u.doi,
4018
4016
  edition: r,
4019
- eissns: c.eissn,
4017
+ eissns: u.eissn,
4020
4018
  isbns: m,
4021
- issns: c.issn,
4019
+ issns: u.issn,
4022
4020
  jtitle: l,
4023
4021
  lcn: a,
4024
4022
  publisher: s,
@@ -4026,33 +4024,33 @@ const Oh = (e, t) => {
4026
4024
  };
4027
4025
  };
4028
4026
  var ws = /* @__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))(ws || {});
4029
- const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4027
+ const Yh = (e) => Object.values(ws).includes(e), Kh = (e, t) => {
4030
4028
  const r = t?.mainEntity["@type"] ?? e.querySelector(".media-content-type")?.textContent ?? void 0;
4031
- if (Hh(r))
4029
+ if (Yh(r))
4032
4030
  return r;
4033
- }, Kh = ({ document: e }) => {
4034
- const t = Fh(e), r = Xh(e), n = Zh(t, r);
4035
- switch (Yh(e, t)) {
4031
+ }, Qh = ({ document: e }) => {
4032
+ const t = Vh(e), r = Hh(e), n = qh(t, r);
4033
+ switch (Kh(e, t)) {
4036
4034
  case "Article":
4037
- return w(qh(n));
4035
+ return w(jh(n));
4038
4036
  case "Book":
4039
- return w(Dh(n));
4037
+ return w(Bh(n));
4040
4038
  case "Periodical":
4041
4039
  case "Journal":
4042
- return w(Bh(n));
4040
+ return w(Uh(n));
4043
4041
  case "Audio CD":
4044
4042
  case "CreativeWork":
4045
- return w(jh(n));
4043
+ return w(Dh(n));
4046
4044
  case "Movie":
4047
4045
  case "Video":
4048
- return w(Vh(n));
4046
+ return w(Jh(n));
4049
4047
  default:
4050
- return Z();
4048
+ return T();
4051
4049
  }
4052
- }, Qh = (e) => {
4050
+ }, ef = (e) => {
4053
4051
  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");
4054
4052
  return o?.startsWith("info:doi/") || n?.includes("Article") ? E.Article : o?.startsWith("urn:issn:") ? E.Journal : void 0;
4055
- }, ef = (e) => {
4053
+ }, tf = (e) => {
4056
4054
  const t = h(
4057
4055
  e,
4058
4056
  "name",
@@ -4064,81 +4062,81 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4064
4062
  issue: o,
4065
4063
  pages: s
4066
4064
  };
4067
- }, tf = (e) => {
4065
+ }, rf = (e) => {
4068
4066
  const t = h(e, "name", "DC.identifier");
4069
4067
  return (t ? t.split("info:doi/") : null)?.[1] ?? void 0;
4070
- }, rf = (e) => e.evaluate(
4068
+ }, nf = (e) => e.evaluate(
4071
4069
  '//*[@id="altLayoutPublisherLogo"]/p/a[1]',
4072
4070
  e,
4073
4071
  null,
4074
4072
  XPathResult.STRING_TYPE,
4075
4073
  null
4076
- ).stringValue, nf = (e) => {
4074
+ ).stringValue, of = (e) => {
4077
4075
  const [t, r] = e ? e.trim().split("-") : [void 0, void 0], n = r?.replace(/\(\d+\)/, "").trim();
4078
4076
  return {
4079
4077
  spage: t,
4080
4078
  epage: n
4081
4079
  };
4082
- }, of = (e) => {
4080
+ }, sf = (e) => {
4083
4081
  const t = h(e, "name", "DCTERMS.issued");
4084
4082
  if (!t)
4085
4083
  return;
4086
4084
  const n = /\d{4}/.exec(t);
4087
4085
  return n ? n[0] : void 0;
4088
- }, sf = (e) => {
4089
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = of(e), o = ef(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), u = o.pages ? nf(o.pages) : void 0, c = u?.spage, l = u?.epage, f = re(e, "name", "DC.creator"), m = tf(e);
4090
- return B(y.Article, {
4086
+ }, af = (e) => {
4087
+ const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = sf(e), o = tf(e), s = o.journalTitle?.trim(), i = o.volume?.trim(), a = o.issue?.trim(), c = o.pages ? of(o.pages) : void 0, u = c?.spage, l = c?.epage, f = te(e, "name", "DC.creator"), m = rf(e);
4088
+ return D(y.Article, {
4091
4089
  au: f,
4092
4090
  jtitle: s,
4093
4091
  date: n,
4094
4092
  doi: m,
4095
4093
  issue: a,
4096
4094
  pub: r,
4097
- spage: c,
4095
+ spage: u,
4098
4096
  epage: l,
4099
4097
  atitle: t,
4100
4098
  volume: i
4101
4099
  });
4102
- }, af = (e) => {
4103
- const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = rf(e);
4104
- return B(y.Journal, {
4100
+ }, cf = (e) => {
4101
+ const t = h(e, "name", "DC.title"), r = h(e, "name", "DC.publisher"), n = nf(e);
4102
+ return D(y.Journal, {
4105
4103
  issn: n,
4106
4104
  title: t,
4107
4105
  pub: r
4108
4106
  });
4109
- }, cf = ({
4107
+ }, uf = ({
4110
4108
  document: e
4111
4109
  }) => {
4112
- switch (Qh(e)) {
4110
+ switch (ef(e)) {
4113
4111
  case E.Article:
4114
- return w(sf(e));
4115
- case E.Journal:
4116
4112
  return w(af(e));
4113
+ case E.Journal:
4114
+ return w(cf(e));
4117
4115
  default:
4118
- return Z();
4116
+ return T();
4119
4117
  }
4120
- }, uf = /^\d{4}-\d{3}[\dX]$/i, lf = (e) => uf.test(e), Rs = (e) => {
4121
- const t = e.filter(lf);
4118
+ }, lf = /^\d{4}-\d{3}[\dX]$/i, pf = (e) => lf.test(e), Rs = (e) => {
4119
+ const t = e.filter(pf);
4122
4120
  return t.length ? t : void 0;
4123
4121
  }, Tr = (e) => {
4124
- const t = re(e, "name", "citation_author");
4122
+ const t = te(e, "name", "citation_author");
4125
4123
  return t.length ? t : void 0;
4126
- }, Zr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], pf = (e) => h(e, "name", "citation_doi"), Is = (e) => {
4127
- const t = re(e, "name", "citation_isbn");
4124
+ }, Zr = (e) => h(e, "name", "citation_publication_date")?.match(/^\d{4}/)?.[0], hf = (e) => h(e, "name", "citation_doi"), Is = (e) => {
4125
+ const t = te(e, "name", "citation_isbn");
4128
4126
  return t.length ? t.join(",") : void 0;
4129
- }, ks = (e) => Rs(re(e, "name", "citation_issn")), qr = (e) => h(e, "name", "citation_journal_title"), jr = (e) => h(e, "name", "citation_publisher"), ht = (e) => h(e, "name", "citation_title"), hf = (e) => h(e, "name", "citation_doi"), Dr = (e) => h(e, "name", "citation_firstpage"), Br = (e) => h(e, "name", "citation_lastpage"), ff = (e) => h(e, "name", "citation_issue"), mf = (e) => h(e, "name", "citation_volume"), df = (e) => B(y.Article, {
4127
+ }, ks = (e) => Rs(te(e, "name", "citation_issn")), qr = (e) => h(e, "name", "citation_journal_title"), jr = (e) => h(e, "name", "citation_publisher"), ht = (e) => h(e, "name", "citation_title"), ff = (e) => h(e, "name", "citation_doi"), Dr = (e) => h(e, "name", "citation_firstpage"), Br = (e) => h(e, "name", "citation_lastpage"), mf = (e) => h(e, "name", "citation_issue"), df = (e) => h(e, "name", "citation_volume"), gf = (e) => D(y.Article, {
4130
4128
  atitle: ht(e),
4131
4129
  au: Tr(e),
4132
4130
  date: Zr(e),
4133
- doi: pf(e),
4131
+ doi: hf(e),
4134
4132
  issn: ks(e)?.[0],
4135
- issue: ff(e),
4133
+ issue: mf(e),
4136
4134
  jtitle: qr(e),
4137
4135
  pub: jr(e),
4138
- volume: mf(e),
4136
+ volume: df(e),
4139
4137
  spage: Dr(e),
4140
4138
  epage: Br(e)
4141
- }), gf = (e) => Q(y.Bookitem, {
4139
+ }), vf = (e) => Q(y.Bookitem, {
4142
4140
  atitle: ht(e),
4143
4141
  au: Tr(e),
4144
4142
  btitle: qr(e),
@@ -4147,26 +4145,26 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4147
4145
  pub: jr(e),
4148
4146
  spage: Dr(e),
4149
4147
  epage: Br(e)
4150
- }), vf = (e) => sl({
4148
+ }), bf = (e) => sl({
4151
4149
  title: ht(e),
4152
4150
  au: Tr(e),
4153
4151
  date: Zr(e),
4154
4152
  pub: jr(e),
4155
4153
  spage: Dr(e),
4156
4154
  epage: Br(e)
4157
- }), Cs = (e) => !!e.isbn, bf = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Cs(e) && !!e.journalTitle, _f = (e) => !!e.title, Ef = (e) => {
4155
+ }), Cs = (e) => !!e.isbn, _f = (e) => !!e.issn || e.type === "Article" && !!e.journalTitle || !Cs(e) && !!e.journalTitle, Ef = (e) => !!e.title, yf = (e) => {
4158
4156
  const t = {
4159
- type: hf(e),
4157
+ type: ff(e),
4160
4158
  isbn: Is(e),
4161
4159
  issn: ks(e),
4162
4160
  journalTitle: qr(e),
4163
4161
  title: ht(e)
4164
4162
  };
4165
- return Cs(t) ? gf(e) : bf(t) ? df(e) : _f(t) ? vf(e) : null;
4166
- }, yf = ({ document: e }) => {
4167
- const t = Ef(e);
4168
- return t ? w(t) : Z();
4169
- }, $f = k({
4163
+ return Cs(t) ? vf(e) : _f(t) ? gf(e) : Ef(t) ? bf(e) : null;
4164
+ }, $f = ({ document: e }) => {
4165
+ const t = yf(e);
4166
+ return t ? w(t) : T();
4167
+ }, Sf = k({
4170
4168
  "@content": p(),
4171
4169
  datePublished: p().optional(),
4172
4170
  mainEntity: k({
@@ -4183,26 +4181,26 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4183
4181
  }).optional(),
4184
4182
  isbn: p().optional()
4185
4183
  })
4186
- }), Sf = (e) => $f.safeParse(e).success, Af = (e) => {
4184
+ }), Af = (e) => Sf.safeParse(e).success, wf = (e) => {
4187
4185
  const t = e.textContent;
4188
4186
  if (!t)
4189
4187
  return null;
4190
4188
  try {
4191
4189
  const r = JSON.parse(t);
4192
- if (Sf(r))
4190
+ if (Af(r))
4193
4191
  return r;
4194
4192
  } catch {
4195
4193
  return null;
4196
4194
  }
4197
4195
  return null;
4198
- }, wf = ({ document: e }) => {
4196
+ }, Rf = ({ document: e }) => {
4199
4197
  const t = at(e);
4200
4198
  if (!t)
4201
- return Z();
4202
- const r = Af(t);
4199
+ return T();
4200
+ const r = wf(t);
4203
4201
  if (!r)
4204
- return Z();
4205
- const n = r.mainEntity.type, o = r.mainEntity.author?.map((c) => c.name), s = r.datePublished?.substring(0, 4), i = r.mainEntity.name, a = r.mainEntity.isbn, u = r.mainEntity.publisher?.name;
4202
+ return T();
4203
+ 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;
4206
4204
  switch (n) {
4207
4205
  case "Book":
4208
4206
  return w(
@@ -4211,13 +4209,13 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4211
4209
  date: s,
4212
4210
  title: i,
4213
4211
  isbn: a,
4214
- pub: u
4212
+ pub: c
4215
4213
  })
4216
4214
  );
4217
4215
  default:
4218
- return Z();
4216
+ return T();
4219
4217
  }
4220
- }, Rf = we.extend({
4218
+ }, If = we.extend({
4221
4219
  "@type": p().optional(),
4222
4220
  name: p().optional(),
4223
4221
  copyrightYear: Bo().optional(),
@@ -4231,17 +4229,17 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4231
4229
  name: p()
4232
4230
  })
4233
4231
  ).optional()
4234
- }), If = (e) => Rf.safeParse(e).success, kf = ({
4232
+ }), kf = (e) => If.safeParse(e).success, Cf = ({
4235
4233
  document: e,
4236
4234
  url: t
4237
4235
  }) => {
4238
4236
  const r = at(e);
4239
4237
  if (!r)
4240
- return Z();
4238
+ return T();
4241
4239
  const n = Fe(r);
4242
- if (!n || !If(n))
4243
- return Z();
4244
- 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, u = zr(n.publisher?.map((l) => l.name)), c = h(e, "property", "og:book:isbn");
4240
+ if (!n || !kf(n))
4241
+ return T();
4242
+ 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 = zr(n.publisher?.map((l) => l.name)), u = h(e, "property", "og:book:isbn");
4245
4243
  switch (o) {
4246
4244
  case "Book":
4247
4245
  return w(
@@ -4249,23 +4247,23 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4249
4247
  au: s,
4250
4248
  date: i,
4251
4249
  title: a,
4252
- isbn: c,
4253
- pub: u,
4250
+ isbn: u,
4251
+ pub: c,
4254
4252
  uri: t
4255
4253
  })
4256
4254
  );
4257
4255
  default:
4258
- return Z();
4256
+ return T();
4259
4257
  }
4260
- }, Cf = (e) => {
4258
+ }, Pf = (e) => {
4261
4259
  const t = Array.from(e.querySelectorAll("a[rel=author]")).map((r) => r.textContent.trim()).filter(Boolean);
4262
4260
  return t.length ? t : void 0;
4263
- }, Pf = (e) => {
4261
+ }, Of = (e) => {
4264
4262
  const t = Array.from(e.querySelectorAll("strong")).filter((r) => r.textContent.startsWith("ISBN")).map((r) => r.nextElementSibling?.textContent.trim());
4265
4263
  if (t.length !== 0)
4266
4264
  return t[0]?.replace(/\s+/, ",");
4267
- }, Of = ({ url: e, document: t }) => {
4268
- const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = Cf(t), o = h(t, "property", "article:published_time"), s = Pf(t), i = Q(y.Book, {
4265
+ }, xf = ({ url: e, document: t }) => {
4266
+ const r = t.querySelector("h3.page-title")?.textContent.trim() ?? void 0, n = Pf(t), o = h(t, "property", "article:published_time"), s = Of(t), i = Q(y.Book, {
4269
4267
  au: n,
4270
4268
  date: o?.substring(0, 4),
4271
4269
  isbn: s,
@@ -4278,30 +4276,30 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4278
4276
  document: e,
4279
4277
  url: t
4280
4278
  }) => {
4281
- switch (xf(t)) {
4279
+ switch (zf(t)) {
4282
4280
  case E.Chapter:
4283
- return w(qf(e));
4284
- case E.Book:
4285
4281
  return w(jf(e));
4282
+ case E.Book:
4283
+ return w(Df(e));
4286
4284
  case E.Article:
4287
- return w(zf(e));
4288
- case E.Journal:
4289
4285
  return w(Lf(e));
4286
+ case E.Journal:
4287
+ return w(Tf(e));
4290
4288
  default:
4291
- return Z();
4289
+ return T();
4292
4290
  }
4293
- }, xf = (e) => {
4291
+ }, zf = (e) => {
4294
4292
  const { pathname: t } = new URL(e);
4295
4293
  return t.includes("/books/abs/") ? E.Chapter : t.includes("/books/") ? E.Book : /\/journals\/.+\/article\//.exec(t) != null ? E.Article : t.includes("/journals/") ? E.Journal : E.None;
4296
- }, zf = (e) => {
4297
- 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"), u = h(
4294
+ }, Lf = (e) => {
4295
+ 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(
4298
4296
  e,
4299
4297
  "name",
4300
4298
  "citation_publication_date"
4301
- )?.substring(0, 4), c = h(e, "name", "citation_publisher"), l = Ps(e), f = Rs(
4302
- re(e, "name", "citation_issn")
4299
+ )?.substring(0, 4), u = h(e, "name", "citation_publisher"), l = Ps(e), f = Rs(
4300
+ te(e, "name", "citation_issn")
4303
4301
  );
4304
- return B(y.Article, {
4302
+ return D(y.Article, {
4305
4303
  atitle: t,
4306
4304
  au: l,
4307
4305
  jtitle: r,
@@ -4311,31 +4309,31 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4311
4309
  issn: f?.[0],
4312
4310
  spage: i,
4313
4311
  epage: a,
4314
- date: u,
4315
- pub: c
4312
+ date: c,
4313
+ pub: u
4316
4314
  });
4317
- }, Lf = (e) => {
4318
- const t = Tf(e), r = Zf(e), n = r.find(
4315
+ }, Tf = (e) => {
4316
+ const t = Zf(e), r = qf(e), n = r.find(
4319
4317
  (a) => a.type === "Print"
4320
4318
  /* Print */
4321
4319
  ), o = r.find(
4322
4320
  (a) => a.type === "Online"
4323
4321
  /* Online */
4324
4322
  ), s = n ? n.value : void 0, i = o ? o.value : void 0;
4325
- return B(y.Journal, {
4323
+ return D(y.Journal, {
4326
4324
  title: t,
4327
4325
  issn: s,
4328
4326
  eissn: i
4329
4327
  });
4330
- }, Tf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, Zf = (e) => {
4328
+ }, Zf = (e) => e.querySelector("h1.title")?.textContent.trim() ?? void 0, qf = (e) => {
4331
4329
  const r = Array.from(e.querySelectorAll("span.bold")).find(
4332
4330
  (s) => s.textContent.trim() === "ISSN:"
4333
4331
  ), n = /^([0-9]{4}-[0-9]{3}[0-9X]) \((Print|Online)\)/, o = [];
4334
4332
  return r && r.parentElement?.querySelectorAll("span.value")?.forEach((i) => {
4335
- const a = i.textContent.trim(), u = n.exec(a);
4336
- u && o.push({ value: u[1], type: u[2] });
4333
+ const a = i.textContent.trim(), c = n.exec(a);
4334
+ c && o.push({ value: c[1], type: c[2] });
4337
4335
  }), o;
4338
- }, qf = (e) => {
4336
+ }, jf = (e) => {
4339
4337
  const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_inbook_title"), n = h(e, "name", "citation_doi"), o = h(
4340
4338
  e,
4341
4339
  "name",
@@ -4348,7 +4346,7 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4348
4346
  date: o,
4349
4347
  pub: s
4350
4348
  });
4351
- }, jf = (e) => {
4349
+ }, Df = (e) => {
4352
4350
  const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_doi"), n = h(e, "name", "citation_isbn"), o = h(
4353
4351
  e,
4354
4352
  "name",
@@ -4363,9 +4361,9 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4363
4361
  pub: s
4364
4362
  });
4365
4363
  }, Ps = (e) => {
4366
- const t = re(e, "name", "citation_author");
4364
+ const t = te(e, "name", "citation_author");
4367
4365
  return t.length ? t : void 0;
4368
- }, Df = (e) => {
4366
+ }, Bf = (e) => {
4369
4367
  switch (h(e, "property", "og:type")) {
4370
4368
  case "Article":
4371
4369
  return "Article";
@@ -4375,20 +4373,20 @@ const Hh = (e) => Object.values(ws).includes(e), Yh = (e, t) => {
4375
4373
  return;
4376
4374
  }
4377
4375
  };
4378
- function Bf(e) {
4376
+ function Uf(e) {
4379
4377
  const t = h(e, "property", "og:title"), r = h(e, "name", "dc.Publisher"), n = h(e, "name", "publication_doi");
4380
4378
  return w(
4381
- B(y.Journal, {
4379
+ D(y.Journal, {
4382
4380
  jtitle: t,
4383
4381
  pub: r,
4384
4382
  doi: n
4385
4383
  })
4386
4384
  );
4387
4385
  }
4388
- function Uf(e) {
4389
- const t = h(e, "name", "dc.Title"), r = re(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");
4386
+ function Ff(e) {
4387
+ 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");
4390
4388
  return w(
4391
- B(y.Article, {
4389
+ D(y.Article, {
4392
4390
  atitle: t,
4393
4391
  au: r,
4394
4392
  date: n,
@@ -4398,16 +4396,16 @@ function Uf(e) {
4398
4396
  })
4399
4397
  );
4400
4398
  }
4401
- const Ff = ({ document: e }) => {
4402
- switch (Df(e)) {
4399
+ const Vf = ({ document: e }) => {
4400
+ switch (Bf(e)) {
4403
4401
  case "Journal":
4404
- return Bf(e);
4405
- case "Article":
4406
4402
  return Uf(e);
4403
+ case "Article":
4404
+ return Ff(e);
4407
4405
  default:
4408
- return Z();
4406
+ return T();
4409
4407
  }
4410
- }, Vf = (e) => {
4408
+ }, Jf = (e) => {
4411
4409
  if (!e)
4412
4410
  return;
4413
4411
  const [t, r] = e.trim().split("-");
@@ -4415,20 +4413,20 @@ const Ff = ({ document: e }) => {
4415
4413
  spage: t,
4416
4414
  epage: r
4417
4415
  };
4418
- }, Jf = (e) => {
4416
+ }, Mf = (e) => {
4419
4417
  const { pathname: t } = new URL(e);
4420
4418
  if (t.includes("/article/"))
4421
4419
  return E.Article;
4422
- }, Mf = (e) => {
4423
- const t = h(e, "name", "DC.Source"), r = h(e, "name", "DC.Title"), n = re(e, "name", "DC.Creator.PersonalName"), o = h(e, "name", "DC.Source.ISSN"), s = h(e, "name", "citation_date")?.substring(
4420
+ }, Wf = (e) => {
4421
+ 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(
4424
4422
  0,
4425
4423
  4
4426
- ), i = h(e, "name", "DC.Source.Volume"), a = h(e, "name", "DC.Source.Issue"), u = h(e, "name", "DC.Identifier.URI"), c = h(
4424
+ ), i = h(e, "name", "DC.Source.Volume"), a = h(e, "name", "DC.Source.Issue"), c = h(e, "name", "DC.Identifier.URI"), u = h(
4427
4425
  e,
4428
4426
  "name",
4429
4427
  "DC.Identifier.pageNumber"
4430
- ), l = c ? Vf(c) : void 0, f = l?.spage, m = l?.epage;
4431
- return B(y.Article, {
4428
+ ), l = u ? Jf(u) : void 0, f = l?.spage, m = l?.epage;
4429
+ return D(y.Article, {
4432
4430
  jtitle: t,
4433
4431
  atitle: r,
4434
4432
  au: n,
@@ -4438,17 +4436,17 @@ const Ff = ({ document: e }) => {
4438
4436
  epage: m,
4439
4437
  volume: i,
4440
4438
  issue: a,
4441
- uri: u
4439
+ uri: c
4442
4440
  });
4443
- }, Wf = ({ document: e, url: t }) => {
4444
- switch (Jf(t)) {
4441
+ }, Gf = ({ document: e, url: t }) => {
4442
+ switch (Mf(t)) {
4445
4443
  case E.Article:
4446
- return w(Mf(e));
4444
+ return w(Wf(e));
4447
4445
  default:
4448
- return Z();
4446
+ return T();
4449
4447
  }
4450
- }, Gf = (e) => {
4451
- switch (Xf(e)) {
4448
+ }, Xf = (e) => {
4449
+ switch (Hf(e)) {
4452
4450
  case "eBook":
4453
4451
  return "Book";
4454
4452
  case "Reference":
@@ -4456,9 +4454,9 @@ const Ff = ({ document: e }) => {
4456
4454
  default:
4457
4455
  return;
4458
4456
  }
4459
- }, Xf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4460
- function Hf(e, t) {
4461
- const r = Os(e), n = br(e), o = Ns(e), s = xs(e), i = zs(e), a = Ls(e), u = br(e), c = t, { startPage: l, endPage: f } = Ts(e) ?? {};
4457
+ }, Hf = (e) => e.querySelector("#vol-contentType a")?.textContent ?? void 0;
4458
+ function Yf(e, t) {
4459
+ const r = Os(e), n = br(e), o = xs(e), s = Ns(e), i = zs(e), a = Ls(e), c = br(e), u = t, { startPage: l, endPage: f } = Ts(e) ?? {};
4462
4460
  return w(
4463
4461
  Q(y.Book, {
4464
4462
  au: r,
@@ -4469,13 +4467,13 @@ function Hf(e, t) {
4469
4467
  isbn: i,
4470
4468
  pub: a,
4471
4469
  spage: l,
4472
- title: u,
4473
- uri: c
4470
+ title: c,
4471
+ uri: u
4474
4472
  })
4475
4473
  );
4476
4474
  }
4477
- function Yf(e, t) {
4478
- const r = Os(e), n = Sn(e), o = br(e), s = Ns(e), i = xs(e), a = zs(e), u = Ls(e), c = Sn(e), l = t, { startPage: f, endPage: m } = Ts(e) ?? {};
4475
+ function Kf(e, t) {
4476
+ const r = Os(e), n = Sn(e), o = br(e), s = xs(e), i = Ns(e), a = zs(e), c = Ls(e), u = Sn(e), l = t, { startPage: f, endPage: m } = Ts(e) ?? {};
4479
4477
  return w(
4480
4478
  Q(y.Book, {
4481
4479
  au: r,
@@ -4485,9 +4483,9 @@ function Yf(e, t) {
4485
4483
  doi: i,
4486
4484
  epage: m,
4487
4485
  isbn: a,
4488
- pub: u,
4486
+ pub: c,
4489
4487
  spage: f,
4490
- title: c,
4488
+ title: u,
4491
4489
  uri: l
4492
4490
  })
4493
4491
  );
@@ -4497,31 +4495,31 @@ const Os = (e) => {
4497
4495
  "div#article_author p.author-bio b"
4498
4496
  ), r = Array.from(t).map((n) => n.textContent).filter((n) => !!n).map((n) => n.trim());
4499
4497
  return r.length > 0 ? r : void 0;
4500
- }, ze = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Kf = (e) => h(e, "property", "og:title"), br = (e) => ze(e, "titlevalue") ?? Kf(e), Sn = (e) => ze(e, "chapter-title-squid"), Ns = (e) => ze(e, "pubdate-squid"), xs = (e) => ze(e, "doi-squid"), zs = (e) => ze(e, "isbn-squid"), Ls = (e) => ze(e, "pubname-squid"), Ts = (e) => {
4498
+ }, ze = (e, t) => e.querySelector(`input#${t}`)?.getAttribute("value") ?? void 0, Qf = (e) => h(e, "property", "og:title"), br = (e) => ze(e, "titlevalue") ?? Qf(e), Sn = (e) => ze(e, "chapter-title-squid"), xs = (e) => ze(e, "pubdate-squid"), Ns = (e) => ze(e, "doi-squid"), zs = (e) => ze(e, "isbn-squid"), Ls = (e) => ze(e, "pubname-squid"), Ts = (e) => {
4501
4499
  const t = e.querySelector("#pageRange")?.textContent ?? void 0;
4502
4500
  if (!t) return;
4503
4501
  const n = /(\d+)–(\d+)/.exec(t);
4504
4502
  if (n)
4505
4503
  return { startPage: n[1], endPage: n[2] };
4506
- }, Qf = ({
4504
+ }, em = ({
4507
4505
  document: e,
4508
4506
  url: t
4509
4507
  }) => {
4510
- switch (Gf(e)) {
4508
+ switch (Xf(e)) {
4511
4509
  case "Book":
4512
- return Hf(e, t);
4513
- case "Chapter":
4514
4510
  return Yf(e, t);
4511
+ case "Chapter":
4512
+ return Kf(e, t);
4515
4513
  default:
4516
- return Z();
4514
+ return T();
4517
4515
  }
4518
- }, em = (e, t) => e.evaluate(
4516
+ }, tm = (e, t) => e.evaluate(
4519
4517
  `//*[@class="singleRecord_view_label"][contains(text(), "${t}")]/following-sibling::*[@class="singleRecord_view_data"]`,
4520
4518
  e,
4521
4519
  null,
4522
4520
  XPathResult.STRING_TYPE
4523
- ).stringValue.toLowerCase().trim(), tm = (e) => {
4524
- switch (em(e, "Medium")) {
4521
+ ).stringValue.toLowerCase().trim(), rm = (e) => {
4522
+ switch (tm(e, "Medium")) {
4525
4523
  case "book":
4526
4524
  case "e-book":
4527
4525
  return y.Book;
@@ -4530,16 +4528,16 @@ const Os = (e) => {
4530
4528
  default:
4531
4529
  return y.Unknown;
4532
4530
  }
4533
- }, rm = (e) => {
4534
- delete e.rft_id;
4535
4531
  }, nm = (e) => {
4532
+ delete e.rft_id;
4533
+ }, om = (e) => {
4536
4534
  const t = kr(e);
4537
- if (Nr(t)) {
4538
- const r = tm(e.document);
4539
- t.resource.genre = r, rm(t.resource);
4535
+ if (xr(t)) {
4536
+ const r = rm(e.document);
4537
+ t.resource.genre = r, nm(t.resource);
4540
4538
  }
4541
4539
  return t;
4542
- }, om = (e) => {
4540
+ }, sm = (e) => {
4543
4541
  const t = h(e, "name", "type")?.toLowerCase(), r = h(e, "name", "og:type")?.toLowerCase(), n = h(
4544
4542
  e,
4545
4543
  "name",
@@ -4550,10 +4548,10 @@ const Os = (e) => {
4550
4548
  const o = h(e, "name", "twitter:title")?.trim(), s = h(e, "name", "description")?.trim();
4551
4549
  if (o || s)
4552
4550
  return E.Webpage;
4553
- }, sm = (e) => {
4554
- 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"), u = re(e, "name", "citation_author");
4555
- return B(y.Article, {
4556
- au: u,
4551
+ }, im = (e) => {
4552
+ 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");
4553
+ return D(y.Article, {
4554
+ au: c,
4557
4555
  jtitle: s,
4558
4556
  date: n,
4559
4557
  doi: o,
@@ -4562,34 +4560,34 @@ const Os = (e) => {
4562
4560
  title: t,
4563
4561
  volume: i
4564
4562
  });
4565
- }, im = (e, t) => {
4563
+ }, am = (e, t) => {
4566
4564
  const r = h(t, "name", "twitter:title");
4567
4565
  return Rr({
4568
4566
  uri: e,
4569
4567
  title: r
4570
4568
  });
4571
- }, am = ({
4569
+ }, cm = ({
4572
4570
  url: e,
4573
4571
  document: t
4574
4572
  }) => {
4575
- switch (om(t)) {
4573
+ switch (sm(t)) {
4576
4574
  case E.Article:
4577
- return w(sm(t));
4575
+ return w(im(t));
4578
4576
  case E.Webpage:
4579
- return w(im(e, t));
4577
+ return w(am(e, t));
4580
4578
  }
4581
- return Z();
4582
- }, cm = ({
4579
+ return T();
4580
+ }, um = ({
4583
4581
  document: e
4584
4582
  }) => Array.from(
4585
4583
  e.querySelectorAll(
4586
4584
  ".availability.documentSummaryAvailability.availabilityContent"
4587
4585
  )
4588
- ).length <= 1 ? Z() : $l(), um = /([0-9]{4})\s+at/;
4589
- function lm(e) {
4586
+ ).length <= 1 ? T() : $l(), lm = /([0-9]{4})\s+at/;
4587
+ function pm(e) {
4590
4588
  if (!e)
4591
4589
  return;
4592
- const t = um.exec(e);
4590
+ const t = lm.exec(e);
4593
4591
  if (t && t.length > 1)
4594
4592
  return t[1];
4595
4593
  }
@@ -4598,7 +4596,7 @@ function An(e, t) {
4598
4596
  if (r.length !== 0)
4599
4597
  return r[0].textContent;
4600
4598
  }
4601
- function pm(e) {
4599
+ function hm(e) {
4602
4600
  const t = {};
4603
4601
  return Array.from(e.getElementsByTagName("li")).reduce(
4604
4602
  (r, n) => {
@@ -4608,23 +4606,23 @@ function pm(e) {
4608
4606
  t
4609
4607
  );
4610
4608
  }
4611
- function hm(e) {
4609
+ function fm(e) {
4612
4610
  const t = e.getElementsByClassName("information");
4613
4611
  if (t.length === 0)
4614
4612
  return {};
4615
- const r = pm(t[0]), n = lm(r.Published), o = r.Show;
4613
+ const r = hm(t[0]), n = pm(r.Published), o = r.Show;
4616
4614
  return {
4617
4615
  date: n,
4618
4616
  series: o
4619
4617
  };
4620
4618
  }
4621
- const fm = ({
4619
+ const mm = ({
4622
4620
  url: e,
4623
4621
  document: t
4624
4622
  }) => {
4625
4623
  if (!new URL(e).searchParams.has("i"))
4626
- return Z();
4627
- const n = y.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = hm(t);
4624
+ return T();
4625
+ const n = y.AudioDocument, o = h(t, "property", "og:site_name"), s = h(t, "property", "og:title"), i = fm(t);
4628
4626
  return w({
4629
4627
  genre: n,
4630
4628
  pub: o,
@@ -4632,15 +4630,32 @@ const fm = ({
4632
4630
  uri: e,
4633
4631
  ...i
4634
4632
  });
4633
+ }, dm = (e) => {
4634
+ const t = h(e, "name", "citation_date");
4635
+ return t ? t.split("/").find((o) => /^\d{4}/.test(o)) ?? void 0 : void 0;
4636
+ }, gm = (e) => {
4637
+ const t = e.querySelector("#arxiv-doi-link")?.textContent;
4638
+ return t ? t.replace("https://doi.org/", "").trim() : void 0;
4639
+ }, vm = ({ document: e }) => {
4640
+ const t = h(e, "name", "citation_title"), r = h(e, "name", "citation_pdf_url"), n = te(e, "name", "citation_author"), o = dm(e), s = gm(e);
4641
+ return !t && n.length === 0 && !o && !s ? T() : w(
4642
+ D(y.Article, {
4643
+ au: n,
4644
+ date: o,
4645
+ doi: s,
4646
+ title: t,
4647
+ uri: r
4648
+ })
4649
+ );
4635
4650
  };
4636
- var T = /* @__PURE__ */ ((e) => (e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e))(T || {});
4651
+ var L = /* @__PURE__ */ ((e) => (e.NoResourceFound = "NoResourceFound", e.Z3988 = "Z3988", e.Z3988SearchResult = "Z3988SearchResult", e.Amazon = "Amazon", e.CupOfJo = "CupOfJo", e.IngentaConnect = "IngentaConnect", e.Jstor = "Jstor", e.Milne = "Milne", e.Primo = "Primo", e.SagePub = "SagePub", e.SageVideo = "SageVideo", e.ScienceDirect = "ScienceDirect", e.Springer = "Springer", e.Youtube = "Youtube", e.TaylorFrancis = "TaylorFrancis", e.Wiley = "Wiley", e.VuFind = "VuFind", e.ClinicalKey = "ClinicalKey", e.DOAJ = "DOAJ", e.Ebscohost = "Ebscohost", e.OpenStax = "OpenStax", e.CambridgeJournalsOnline = "CambridgeJournalsOnline", e.OpenTextbook = "OpenTextbook", e.AhaJournals = "AhaJournals", e.Ijees = "Ijees", e.BloomsburyCollections = "BloomsburyCollections", e.HeritageCirqa = "HeritageCirqa", e.BritishMedicalJournal = "BritishMedicalJournal", e.SummonSearchResult = "SummonSearchResult", e.ApplePodcasts = "ApplePodcasts", e.Arxiv = "Arxiv", e))(L || {});
4637
4652
  const wn = {
4638
4653
  NoResourceFound: hs,
4639
4654
  Z3988: kr,
4640
4655
  Z3988SearchResult: dh,
4641
4656
  Amazon: Ol,
4642
4657
  CupOfJo: Ql,
4643
- Jstor: Lh,
4658
+ Jstor: Th,
4644
4659
  Youtube: jp,
4645
4660
  SagePub: mp,
4646
4661
  SageVideo: mh,
@@ -4651,24 +4666,25 @@ const wn = {
4651
4666
  VuFind: Lp,
4652
4667
  ClinicalKey: Vl,
4653
4668
  DOAJ: op,
4654
- Primo: Kh,
4655
- IngentaConnect: cf,
4656
- Ebscohost: yf,
4657
- OpenStax: wf,
4658
- OpenTextbook: kf,
4659
- Milne: Of,
4669
+ Primo: Qh,
4670
+ IngentaConnect: uf,
4671
+ Ebscohost: $f,
4672
+ OpenStax: Rf,
4673
+ OpenTextbook: Cf,
4674
+ Milne: xf,
4660
4675
  CambridgeJournalsOnline: Nf,
4661
- AhaJournals: Ff,
4662
- Ijees: Wf,
4663
- BloomsburyCollections: Qf,
4664
- HeritageCirqa: nm,
4665
- BritishMedicalJournal: am,
4666
- SummonSearchResult: cm,
4667
- ApplePodcasts: fm
4668
- }, mm = "5.24.0", Zs = () => mm, dm = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], gm = dm.flatMap((e) => [
4676
+ AhaJournals: Vf,
4677
+ Ijees: Gf,
4678
+ BloomsburyCollections: em,
4679
+ HeritageCirqa: om,
4680
+ BritishMedicalJournal: cm,
4681
+ SummonSearchResult: um,
4682
+ ApplePodcasts: mm,
4683
+ Arxiv: vm
4684
+ }, bm = "5.26.0", Zs = () => bm, _m = ["com.au", "com", "ca", "co.uk", "de", "fr", "nl"], Em = _m.flatMap((e) => [
4669
4685
  `amazon.${e}`,
4670
4686
  `www.amazon.${e}`
4671
- ]), Sd = {
4687
+ ]), Id = {
4672
4688
  version: Zs(),
4673
4689
  siteRegistrations: [
4674
4690
  {
@@ -4676,190 +4692,197 @@ const wn = {
4676
4692
  regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/search"
4677
4693
  },
4678
4694
  name: "Worldcat Search Results",
4679
- parsers: [T.Z3988SearchResult]
4695
+ parsers: [L.Z3988SearchResult]
4680
4696
  },
4681
4697
  {
4682
4698
  matcher: {
4683
4699
  regexp: "^https://[a-z0-9\\-]+\\.summon\\.serialssolutions\\.com/"
4684
4700
  },
4685
4701
  name: "Summon Search Results",
4686
- parsers: [T.SummonSearchResult]
4702
+ parsers: [L.SummonSearchResult]
4687
4703
  },
4688
4704
  {
4689
4705
  matcher: { hostnames: ["cupofjo.com"] },
4690
4706
  name: "Cup of Jo",
4691
- parsers: [T.CupOfJo]
4707
+ parsers: [L.CupOfJo]
4692
4708
  },
4693
4709
  {
4694
4710
  matcher: { hostnames: ["youtube.com", "www.youtube.com"] },
4695
4711
  name: "Youtube",
4696
- parsers: [T.Youtube]
4712
+ parsers: [L.Youtube]
4697
4713
  },
4698
4714
  {
4699
4715
  matcher: { hostnames: ["www.sciencedirect.com"] },
4700
4716
  name: "Science Direct",
4701
- parsers: [T.ScienceDirect]
4717
+ parsers: [L.ScienceDirect]
4702
4718
  },
4703
4719
  {
4704
- matcher: { hostnames: gm },
4720
+ matcher: { hostnames: Em },
4705
4721
  name: "Amazon",
4706
- parsers: [T.Amazon]
4722
+ parsers: [L.Amazon]
4707
4723
  },
4708
4724
  {
4709
4725
  matcher: {
4710
4726
  hostnames: ["sagepub.com", "www.sagepub.com", "journals.sagepub.com"]
4711
4727
  },
4712
4728
  name: "Sage Publishing",
4713
- parsers: [T.SagePub]
4729
+ parsers: [L.SagePub]
4714
4730
  },
4715
4731
  {
4716
4732
  matcher: { hostnames: ["www.tandfonline.com"] },
4717
4733
  name: "Taylor & Francis",
4718
- parsers: [T.TaylorFrancis]
4734
+ parsers: [L.TaylorFrancis]
4719
4735
  },
4720
4736
  {
4721
4737
  matcher: {
4722
4738
  hostnames: ["wiley.com", "www.wiley.com", "onlinelibrary.wiley.com"]
4723
4739
  },
4724
4740
  name: "Wiley",
4725
- parsers: [T.Wiley]
4741
+ parsers: [L.Wiley]
4726
4742
  },
4727
4743
  {
4728
4744
  matcher: {
4729
4745
  regexp: "^https://[a-z0-9\\-]+\\.on\\.worldcat\\.org/"
4730
4746
  },
4731
4747
  name: "Worldcat",
4732
- parsers: [T.Z3988]
4748
+ parsers: [L.Z3988]
4733
4749
  },
4734
4750
  {
4735
4751
  matcher: { hostnames: ["catalogue.rau.ac.uk"] },
4736
4752
  name: "Royal Agricultural University Library",
4737
- parsers: [T.Z3988]
4753
+ parsers: [L.Z3988]
4738
4754
  },
4739
4755
  {
4740
4756
  matcher: { hostnames: ["link.springer.com"] },
4741
4757
  name: "Springer",
4742
- parsers: [T.Springer]
4758
+ parsers: [L.Springer]
4743
4759
  },
4744
4760
  {
4745
4761
  matcher: { regexp: "^https://sk\\.sagepub\\.com/video/" },
4746
4762
  name: "Sage Video",
4747
- parsers: [T.SageVideo]
4763
+ parsers: [L.SageVideo]
4748
4764
  },
4749
4765
  {
4750
4766
  matcher: {
4751
4767
  regexp: "^https://vufind\\.lboro\\.ac\\.uk/(Record|PrimoRecord)"
4752
4768
  },
4753
4769
  name: "VuFind",
4754
- parsers: [T.VuFind]
4770
+ parsers: [L.VuFind]
4755
4771
  },
4756
4772
  {
4757
4773
  matcher: { hostnames: ["www.clinicalkey.com", "www.clinicalkey.com.au"] },
4758
4774
  name: "ClinicalKey",
4759
- parsers: [T.ClinicalKey]
4775
+ parsers: [L.ClinicalKey]
4760
4776
  },
4761
4777
  {
4762
4778
  matcher: {
4763
4779
  hostnames: ["www.jstor.org"]
4764
4780
  },
4765
4781
  name: "JSTOR",
4766
- parsers: [T.Jstor]
4782
+ parsers: [L.Jstor]
4767
4783
  },
4768
4784
  {
4769
4785
  matcher: { hostnames: ["doaj.org"] },
4770
4786
  name: "DOAJ",
4771
- parsers: [T.DOAJ]
4787
+ parsers: [L.DOAJ]
4772
4788
  },
4773
4789
  {
4774
4790
  matcher: {
4775
4791
  regexp: "/.*ingentaconnect.com/"
4776
4792
  },
4777
4793
  name: "IngentaConnect",
4778
- parsers: [T.IngentaConnect]
4794
+ parsers: [L.IngentaConnect]
4779
4795
  },
4780
4796
  {
4781
4797
  matcher: {
4782
4798
  hostnames: ["research.ebsco.com"]
4783
4799
  },
4784
4800
  name: "EBSCOHost",
4785
- parsers: [T.Ebscohost]
4801
+ parsers: [L.Ebscohost]
4786
4802
  },
4787
4803
  {
4788
4804
  matcher: {
4789
4805
  hostnames: ["openstax.org"]
4790
4806
  },
4791
4807
  name: "OpenStax",
4792
- parsers: [T.OpenStax]
4808
+ parsers: [L.OpenStax]
4793
4809
  },
4794
4810
  {
4795
4811
  matcher: {
4796
4812
  hostnames: ["open.umn.edu"]
4797
4813
  },
4798
4814
  name: "OpenTextbook",
4799
- parsers: [T.OpenTextbook]
4815
+ parsers: [L.OpenTextbook]
4800
4816
  },
4801
4817
  {
4802
4818
  matcher: {
4803
4819
  hostnames: ["milneopentextbooks.org"]
4804
4820
  },
4805
4821
  name: "Milne Open Textbooks",
4806
- parsers: [T.Milne]
4822
+ parsers: [L.Milne]
4807
4823
  },
4808
4824
  {
4809
4825
  matcher: {
4810
4826
  hostnames: ["www.perlego.com"]
4811
4827
  },
4812
4828
  name: "Perlego",
4813
- parsers: [T.Z3988]
4829
+ parsers: [L.Z3988]
4814
4830
  },
4815
4831
  {
4816
4832
  matcher: {
4817
4833
  hostnames: ["www.ahajournals.org"]
4818
4834
  },
4819
4835
  name: "AHA Journals",
4820
- parsers: [T.AhaJournals]
4836
+ parsers: [L.AhaJournals]
4821
4837
  },
4822
4838
  {
4823
4839
  matcher: {
4824
4840
  hostnames: ["www.cambridge.org"]
4825
4841
  },
4826
4842
  name: "Cambridge Journals Online",
4827
- parsers: [T.CambridgeJournalsOnline]
4843
+ parsers: [L.CambridgeJournalsOnline]
4828
4844
  },
4829
4845
  {
4830
4846
  matcher: {
4831
4847
  hostnames: ["www.nieindia.org"]
4832
4848
  },
4833
4849
  name: "International Journal of Ecology and Environmental Sciences",
4834
- parsers: [T.Ijees]
4850
+ parsers: [L.Ijees]
4835
4851
  },
4836
4852
  {
4837
4853
  matcher: {
4838
4854
  hostnames: ["www.bloomsburycollections.com"]
4839
4855
  },
4840
4856
  name: "Bloomsbury Collections",
4841
- parsers: [T.BloomsburyCollections]
4857
+ parsers: [L.BloomsburyCollections]
4842
4858
  },
4843
4859
  {
4844
4860
  matcher: {
4845
4861
  hostnames: ["regwem.cirqahosting.com", "buddy.cirqahosting.com"]
4846
4862
  },
4847
4863
  name: "Heritage Cirqa",
4848
- parsers: [T.HeritageCirqa]
4864
+ parsers: [L.HeritageCirqa]
4849
4865
  },
4850
4866
  {
4851
4867
  matcher: {
4852
4868
  hostnames: ["www.bmj.com"]
4853
4869
  },
4854
4870
  name: "British Medical Journal",
4855
- parsers: [T.BritishMedicalJournal]
4871
+ parsers: [L.BritishMedicalJournal]
4856
4872
  },
4857
4873
  {
4858
4874
  matcher: {
4859
4875
  hostnames: ["podcasts.apple.com"]
4860
4876
  },
4861
4877
  name: "Apple Podcasts",
4862
- parsers: [T.ApplePodcasts]
4878
+ parsers: [L.ApplePodcasts]
4879
+ },
4880
+ {
4881
+ matcher: {
4882
+ hostnames: ["arxiv.org"]
4883
+ },
4884
+ name: "arxiv",
4885
+ parsers: [L.Arxiv]
4863
4886
  }
4864
4887
  ]
4865
4888
  }, qs = k({
@@ -4874,13 +4897,13 @@ const wn = {
4874
4897
  name: p(),
4875
4898
  parsers: j(p()),
4876
4899
  libraryVersionRange: p().optional()
4877
- }), vm = k({
4900
+ }), ym = k({
4878
4901
  siteRegistrations: j(Bs),
4879
4902
  version: p()
4880
- }), Ad = (e) => vm.safeParse(e).success, wd = (e) => Bs.safeParse(e).success, Rd = (e) => Ds.safeParse(e).success, bm = (e) => Object.values(T).includes(e), _m = (e) => typeof e == "object" && e !== null, Em = k({
4903
+ }), kd = (e) => ym.safeParse(e).success, Cd = (e) => Bs.safeParse(e).success, Pd = (e) => Ds.safeParse(e).success, $m = (e) => Object.values(L).includes(e), Sm = (e) => typeof e == "object" && e !== null, Am = k({
4881
4904
  url: p(),
4882
- document: el(_m)
4883
- }), Id = (e) => Em.safeParse(e).success;
4905
+ document: el(Sm)
4906
+ }), Od = (e) => Am.safeParse(e).success;
4884
4907
  var Qe = { exports: {} }, At, Rn;
4885
4908
  function ft() {
4886
4909
  if (Rn) return At;
@@ -4920,21 +4943,21 @@ function We() {
4920
4943
  MAX_LENGTH: o
4921
4944
  } = ft(), s = mt();
4922
4945
  t = e.exports = {};
4923
- const i = t.re = [], a = t.safeRe = [], u = t.src = [], c = t.safeSrc = [], l = t.t = {};
4946
+ const i = t.re = [], a = t.safeRe = [], c = t.src = [], u = t.safeSrc = [], l = t.t = {};
4924
4947
  let f = 0;
4925
4948
  const m = "[a-zA-Z0-9-]", g = [
4926
4949
  ["\\s", 1],
4927
4950
  ["\\d", o],
4928
4951
  [m, n]
4929
4952
  ], C = (P) => {
4930
- for (const [L, H] of g)
4931
- P = P.split(`${L}*`).join(`${L}{0,${H}}`).split(`${L}+`).join(`${L}{1,${H}}`);
4953
+ for (const [Z, H] of g)
4954
+ P = P.split(`${Z}*`).join(`${Z}{0,${H}}`).split(`${Z}+`).join(`${Z}{1,${H}}`);
4932
4955
  return P;
4933
- }, v = (P, L, H) => {
4934
- const x = C(L), D = f++;
4935
- s(P, D, L), l[P] = D, u[D] = L, c[D] = x, i[D] = new RegExp(L, H ? "g" : void 0), a[D] = new RegExp(x, H ? "g" : void 0);
4956
+ }, v = (P, Z, H) => {
4957
+ const N = C(Z), B = f++;
4958
+ s(P, B, Z), l[P] = B, c[B] = Z, u[B] = N, i[B] = new RegExp(Z, H ? "g" : void 0), a[B] = new RegExp(N, H ? "g" : void 0);
4936
4959
  };
4937
- v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${m}*`), v("MAINVERSION", `(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`), v("MAINVERSIONLOOSE", `(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASEIDENTIFIER", `(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIER]})`), v("PRERELEASEIDENTIFIERLOOSE", `(?:${u[l.NONNUMERICIDENTIFIER]}|${u[l.NUMERICIDENTIFIERLOOSE]})`), v("PRERELEASE", `(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`), v("PRERELEASELOOSE", `(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`), v("BUILDIDENTIFIER", `${m}+`), v("BUILD", `(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`), v("FULLPLAIN", `v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`), v("FULL", `^${u[l.FULLPLAIN]}$`), v("LOOSEPLAIN", `[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`), v("LOOSE", `^${u[l.LOOSEPLAIN]}$`), v("GTLT", "((?:<|>)?=?)"), v("XRANGEIDENTIFIERLOOSE", `${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), v("XRANGEIDENTIFIER", `${u[l.NUMERICIDENTIFIER]}|x|X|\\*`), v("XRANGEPLAIN", `[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`), v("XRANGEPLAINLOOSE", `[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`), v("XRANGE", `^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`), v("XRANGELOOSE", `^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`), v("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), v("COERCE", `${u[l.COERCEPLAIN]}(?:$|[^\\d])`), v("COERCEFULL", u[l.COERCEPLAIN] + `(?:${u[l.PRERELEASE]})?(?:${u[l.BUILD]})?(?:$|[^\\d])`), v("COERCERTL", u[l.COERCE], !0), v("COERCERTLFULL", u[l.COERCEFULL], !0), v("LONETILDE", "(?:~>?)"), v("TILDETRIM", `(\\s*)${u[l.LONETILDE]}\\s+`, !0), t.tildeTrimReplace = "$1~", v("TILDE", `^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`), v("TILDELOOSE", `^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`), v("LONECARET", "(?:\\^)"), v("CARETTRIM", `(\\s*)${u[l.LONECARET]}\\s+`, !0), t.caretTrimReplace = "$1^", v("CARET", `^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`), v("CARETLOOSE", `^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`), v("COMPARATORLOOSE", `^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`), v("COMPARATOR", `^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`), v("COMPARATORTRIM", `(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`, !0), t.comparatorTrimReplace = "$1$2$3", v("HYPHENRANGE", `^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`), v("HYPHENRANGELOOSE", `^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`), v("STAR", "(<|>)?=?\\s*\\*"), v("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), v("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
4960
+ v("NUMERICIDENTIFIER", "0|[1-9]\\d*"), v("NUMERICIDENTIFIERLOOSE", "\\d+"), v("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${m}*`), 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", `${m}+`), 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*$");
4938
4961
  })(Qe, Qe.exports)), Qe.exports;
4939
4962
  }
4940
4963
  var Rt, Cn;
@@ -4949,6 +4972,8 @@ function Us() {
4949
4972
  if (Pn) return It;
4950
4973
  Pn = 1;
4951
4974
  const e = /^[0-9]+$/, t = (n, o) => {
4975
+ if (typeof n == "number" && typeof o == "number")
4976
+ return n === o ? 0 : n < o ? -1 : 1;
4952
4977
  const s = e.test(n), i = e.test(o);
4953
4978
  return s && i && (n = +n, o = +o), n === o ? 0 : s && !i ? -1 : i && !s ? 1 : n < o ? -1 : 1;
4954
4979
  };
@@ -4963,22 +4988,22 @@ function ne() {
4963
4988
  On = 1;
4964
4989
  const e = mt(), { MAX_LENGTH: t, MAX_SAFE_INTEGER: r } = ft(), { safeRe: n, t: o } = We(), s = Ur(), { compareIdentifiers: i } = Us();
4965
4990
  class a {
4966
- constructor(c, l) {
4967
- if (l = s(l), c instanceof a) {
4968
- if (c.loose === !!l.loose && c.includePrerelease === !!l.includePrerelease)
4969
- return c;
4970
- c = c.version;
4971
- } else if (typeof c != "string")
4972
- throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);
4973
- if (c.length > t)
4991
+ constructor(u, l) {
4992
+ if (l = s(l), u instanceof a) {
4993
+ if (u.loose === !!l.loose && u.includePrerelease === !!l.includePrerelease)
4994
+ return u;
4995
+ u = u.version;
4996
+ } else if (typeof u != "string")
4997
+ throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);
4998
+ if (u.length > t)
4974
4999
  throw new TypeError(
4975
5000
  `version is longer than ${t} characters`
4976
5001
  );
4977
- e("SemVer", c, l), this.options = l, this.loose = !!l.loose, this.includePrerelease = !!l.includePrerelease;
4978
- const f = c.trim().match(l.loose ? n[o.LOOSE] : n[o.FULL]);
5002
+ e("SemVer", u, l), this.options = l, this.loose = !!l.loose, this.includePrerelease = !!l.includePrerelease;
5003
+ const f = u.trim().match(l.loose ? n[o.LOOSE] : n[o.FULL]);
4979
5004
  if (!f)
4980
- throw new TypeError(`Invalid Version: ${c}`);
4981
- if (this.raw = c, this.major = +f[1], this.minor = +f[2], this.patch = +f[3], this.major > r || this.major < 0)
5005
+ throw new TypeError(`Invalid Version: ${u}`);
5006
+ if (this.raw = u, this.major = +f[1], this.minor = +f[2], this.patch = +f[3], this.major > r || this.major < 0)
4982
5007
  throw new TypeError("Invalid major version");
4983
5008
  if (this.minor > r || this.minor < 0)
4984
5009
  throw new TypeError("Invalid minor version");
@@ -4999,27 +5024,27 @@ function ne() {
4999
5024
  toString() {
5000
5025
  return this.version;
5001
5026
  }
5002
- compare(c) {
5003
- if (e("SemVer.compare", this.version, this.options, c), !(c instanceof a)) {
5004
- if (typeof c == "string" && c === this.version)
5027
+ compare(u) {
5028
+ if (e("SemVer.compare", this.version, this.options, u), !(u instanceof a)) {
5029
+ if (typeof u == "string" && u === this.version)
5005
5030
  return 0;
5006
- c = new a(c, this.options);
5031
+ u = new a(u, this.options);
5007
5032
  }
5008
- return c.version === this.version ? 0 : this.compareMain(c) || this.comparePre(c);
5033
+ return u.version === this.version ? 0 : this.compareMain(u) || this.comparePre(u);
5009
5034
  }
5010
- compareMain(c) {
5011
- return c instanceof a || (c = new a(c, this.options)), i(this.major, c.major) || i(this.minor, c.minor) || i(this.patch, c.patch);
5035
+ compareMain(u) {
5036
+ return u instanceof a || (u = new a(u, this.options)), this.major < u.major ? -1 : this.major > u.major ? 1 : this.minor < u.minor ? -1 : this.minor > u.minor ? 1 : this.patch < u.patch ? -1 : this.patch > u.patch ? 1 : 0;
5012
5037
  }
5013
- comparePre(c) {
5014
- if (c instanceof a || (c = new a(c, this.options)), this.prerelease.length && !c.prerelease.length)
5038
+ comparePre(u) {
5039
+ if (u instanceof a || (u = new a(u, this.options)), this.prerelease.length && !u.prerelease.length)
5015
5040
  return -1;
5016
- if (!this.prerelease.length && c.prerelease.length)
5041
+ if (!this.prerelease.length && u.prerelease.length)
5017
5042
  return 1;
5018
- if (!this.prerelease.length && !c.prerelease.length)
5043
+ if (!this.prerelease.length && !u.prerelease.length)
5019
5044
  return 0;
5020
5045
  let l = 0;
5021
5046
  do {
5022
- const f = this.prerelease[l], m = c.prerelease[l];
5047
+ const f = this.prerelease[l], m = u.prerelease[l];
5023
5048
  if (e("prerelease compare", l, f, m), f === void 0 && m === void 0)
5024
5049
  return 0;
5025
5050
  if (m === void 0)
@@ -5031,11 +5056,11 @@ function ne() {
5031
5056
  return i(f, m);
5032
5057
  } while (++l);
5033
5058
  }
5034
- compareBuild(c) {
5035
- c instanceof a || (c = new a(c, this.options));
5059
+ compareBuild(u) {
5060
+ u instanceof a || (u = new a(u, this.options));
5036
5061
  let l = 0;
5037
5062
  do {
5038
- const f = this.build[l], m = c.build[l];
5063
+ const f = this.build[l], m = u.build[l];
5039
5064
  if (e("build compare", l, f, m), f === void 0 && m === void 0)
5040
5065
  return 0;
5041
5066
  if (m === void 0)
@@ -5049,8 +5074,8 @@ function ne() {
5049
5074
  }
5050
5075
  // preminor will bump the version up to the next minor release, and immediately
5051
5076
  // down to pre-release. premajor and prepatch work the same way.
5052
- inc(c, l, f) {
5053
- if (c.startsWith("pre")) {
5077
+ inc(u, l, f) {
5078
+ if (u.startsWith("pre")) {
5054
5079
  if (!l && f === !1)
5055
5080
  throw new Error("invalid increment argument: identifier is empty");
5056
5081
  if (l) {
@@ -5059,7 +5084,7 @@ function ne() {
5059
5084
  throw new Error(`invalid identifier: ${l}`);
5060
5085
  }
5061
5086
  }
5062
- switch (c) {
5087
+ switch (u) {
5063
5088
  case "premajor":
5064
5089
  this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", l, f);
5065
5090
  break;
@@ -5111,17 +5136,17 @@ function ne() {
5111
5136
  break;
5112
5137
  }
5113
5138
  default:
5114
- throw new Error(`invalid increment argument: ${c}`);
5139
+ throw new Error(`invalid increment argument: ${u}`);
5115
5140
  }
5116
5141
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
5117
5142
  }
5118
5143
  }
5119
5144
  return kt = a, kt;
5120
5145
  }
5121
- var Ct, Nn;
5146
+ var Ct, xn;
5122
5147
  function Le() {
5123
- if (Nn) return Ct;
5124
- Nn = 1;
5148
+ if (xn) return Ct;
5149
+ xn = 1;
5125
5150
  const e = ne();
5126
5151
  return Ct = (r, n, o = !1) => {
5127
5152
  if (r instanceof e)
@@ -5135,10 +5160,10 @@ function Le() {
5135
5160
  }
5136
5161
  }, Ct;
5137
5162
  }
5138
- var Pt, xn;
5139
- function ym() {
5140
- if (xn) return Pt;
5141
- xn = 1;
5163
+ var Pt, Nn;
5164
+ function wm() {
5165
+ if (Nn) return Pt;
5166
+ Nn = 1;
5142
5167
  const e = Le();
5143
5168
  return Pt = (r, n) => {
5144
5169
  const o = e(r, n);
@@ -5146,7 +5171,7 @@ function ym() {
5146
5171
  }, Pt;
5147
5172
  }
5148
5173
  var Ot, zn;
5149
- function $m() {
5174
+ function Rm() {
5150
5175
  if (zn) return Ot;
5151
5176
  zn = 1;
5152
5177
  const e = Le();
@@ -5155,12 +5180,12 @@ function $m() {
5155
5180
  return o ? o.version : null;
5156
5181
  }, Ot;
5157
5182
  }
5158
- var Nt, Ln;
5159
- function Sm() {
5160
- if (Ln) return Nt;
5183
+ var xt, Ln;
5184
+ function Im() {
5185
+ if (Ln) return xt;
5161
5186
  Ln = 1;
5162
5187
  const e = ne();
5163
- return Nt = (r, n, o, s, i) => {
5188
+ return xt = (r, n, o, s, i) => {
5164
5189
  typeof o == "string" && (i = s, s = o, o = void 0);
5165
5190
  try {
5166
5191
  return new e(
@@ -5170,51 +5195,51 @@ function Sm() {
5170
5195
  } catch {
5171
5196
  return null;
5172
5197
  }
5173
- }, Nt;
5198
+ }, xt;
5174
5199
  }
5175
- var xt, Tn;
5176
- function Am() {
5177
- if (Tn) return xt;
5200
+ var Nt, Tn;
5201
+ function km() {
5202
+ if (Tn) return Nt;
5178
5203
  Tn = 1;
5179
5204
  const e = Le();
5180
- return xt = (r, n) => {
5205
+ return Nt = (r, n) => {
5181
5206
  const o = e(r, null, !0), s = e(n, null, !0), i = o.compare(s);
5182
5207
  if (i === 0)
5183
5208
  return null;
5184
- const a = i > 0, u = a ? o : s, c = a ? s : o, l = !!u.prerelease.length;
5185
- if (!!c.prerelease.length && !l) {
5186
- if (!c.patch && !c.minor)
5209
+ const a = i > 0, c = a ? o : s, u = a ? s : o, l = !!c.prerelease.length;
5210
+ if (!!u.prerelease.length && !l) {
5211
+ if (!u.patch && !u.minor)
5187
5212
  return "major";
5188
- if (c.compareMain(u) === 0)
5189
- return c.minor && !c.patch ? "minor" : "patch";
5213
+ if (u.compareMain(c) === 0)
5214
+ return u.minor && !u.patch ? "minor" : "patch";
5190
5215
  }
5191
5216
  const m = l ? "pre" : "";
5192
5217
  return o.major !== s.major ? m + "major" : o.minor !== s.minor ? m + "minor" : o.patch !== s.patch ? m + "patch" : "prerelease";
5193
- }, xt;
5218
+ }, Nt;
5194
5219
  }
5195
5220
  var zt, Zn;
5196
- function wm() {
5221
+ function Cm() {
5197
5222
  if (Zn) return zt;
5198
5223
  Zn = 1;
5199
5224
  const e = ne();
5200
5225
  return zt = (r, n) => new e(r, n).major, zt;
5201
5226
  }
5202
5227
  var Lt, qn;
5203
- function Rm() {
5228
+ function Pm() {
5204
5229
  if (qn) return Lt;
5205
5230
  qn = 1;
5206
5231
  const e = ne();
5207
5232
  return Lt = (r, n) => new e(r, n).minor, Lt;
5208
5233
  }
5209
5234
  var Tt, jn;
5210
- function Im() {
5235
+ function Om() {
5211
5236
  if (jn) return Tt;
5212
5237
  jn = 1;
5213
5238
  const e = ne();
5214
5239
  return Tt = (r, n) => new e(r, n).patch, Tt;
5215
5240
  }
5216
5241
  var Zt, Dn;
5217
- function km() {
5242
+ function xm() {
5218
5243
  if (Dn) return Zt;
5219
5244
  Dn = 1;
5220
5245
  const e = Le();
@@ -5231,14 +5256,14 @@ function ce() {
5231
5256
  return qt = (r, n, o) => new e(r, o).compare(new e(n, o)), qt;
5232
5257
  }
5233
5258
  var jt, Un;
5234
- function Cm() {
5259
+ function Nm() {
5235
5260
  if (Un) return jt;
5236
5261
  Un = 1;
5237
5262
  const e = ce();
5238
5263
  return jt = (r, n, o) => e(n, r, o), jt;
5239
5264
  }
5240
5265
  var Dt, Fn;
5241
- function Pm() {
5266
+ function zm() {
5242
5267
  if (Fn) return Dt;
5243
5268
  Fn = 1;
5244
5269
  const e = ce();
@@ -5255,14 +5280,14 @@ function Fr() {
5255
5280
  }, Bt;
5256
5281
  }
5257
5282
  var Ut, Jn;
5258
- function Om() {
5283
+ function Lm() {
5259
5284
  if (Jn) return Ut;
5260
5285
  Jn = 1;
5261
5286
  const e = Fr();
5262
5287
  return Ut = (r, n) => r.sort((o, s) => e(o, s, n)), Ut;
5263
5288
  }
5264
5289
  var Ft, Mn;
5265
- function Nm() {
5290
+ function Tm() {
5266
5291
  if (Mn) return Ft;
5267
5292
  Mn = 1;
5268
5293
  const e = Fr();
@@ -5315,33 +5340,33 @@ function Js() {
5315
5340
  if (Qn) return Ht;
5316
5341
  Qn = 1;
5317
5342
  const e = Fs(), t = Vs(), r = dt(), n = Jr(), o = Vr(), s = Mr();
5318
- return Ht = (a, u, c, l) => {
5319
- switch (u) {
5343
+ return Ht = (a, c, u, l) => {
5344
+ switch (c) {
5320
5345
  case "===":
5321
- return typeof a == "object" && (a = a.version), typeof c == "object" && (c = c.version), a === c;
5346
+ return typeof a == "object" && (a = a.version), typeof u == "object" && (u = u.version), a === u;
5322
5347
  case "!==":
5323
- return typeof a == "object" && (a = a.version), typeof c == "object" && (c = c.version), a !== c;
5348
+ return typeof a == "object" && (a = a.version), typeof u == "object" && (u = u.version), a !== u;
5324
5349
  case "":
5325
5350
  case "=":
5326
5351
  case "==":
5327
- return e(a, c, l);
5352
+ return e(a, u, l);
5328
5353
  case "!=":
5329
- return t(a, c, l);
5354
+ return t(a, u, l);
5330
5355
  case ">":
5331
- return r(a, c, l);
5356
+ return r(a, u, l);
5332
5357
  case ">=":
5333
- return n(a, c, l);
5358
+ return n(a, u, l);
5334
5359
  case "<":
5335
- return o(a, c, l);
5360
+ return o(a, u, l);
5336
5361
  case "<=":
5337
- return s(a, c, l);
5362
+ return s(a, u, l);
5338
5363
  default:
5339
- throw new TypeError(`Invalid operator: ${u}`);
5364
+ throw new TypeError(`Invalid operator: ${c}`);
5340
5365
  }
5341
5366
  }, Ht;
5342
5367
  }
5343
5368
  var Yt, eo;
5344
- function xm() {
5369
+ function Zm() {
5345
5370
  if (eo) return Yt;
5346
5371
  eo = 1;
5347
5372
  const e = ne(), t = Le(), { safeRe: r, t: n } = We();
@@ -5363,12 +5388,12 @@ function xm() {
5363
5388
  }
5364
5389
  if (a === null)
5365
5390
  return null;
5366
- const u = a[2], c = a[3] || "0", l = a[4] || "0", f = i.includePrerelease && a[5] ? `-${a[5]}` : "", m = i.includePrerelease && a[6] ? `+${a[6]}` : "";
5367
- return t(`${u}.${c}.${l}${f}${m}`, i);
5391
+ const c = a[2], u = a[3] || "0", l = a[4] || "0", f = i.includePrerelease && a[5] ? `-${a[5]}` : "", m = i.includePrerelease && a[6] ? `+${a[6]}` : "";
5392
+ return t(`${c}.${u}.${l}${f}${m}`, i);
5368
5393
  }, Yt;
5369
5394
  }
5370
5395
  var Kt, to;
5371
- function zm() {
5396
+ function qm() {
5372
5397
  if (to) return Kt;
5373
5398
  to = 1;
5374
5399
  class e {
@@ -5445,10 +5470,10 @@ function ue() {
5445
5470
  const S = ((this.options.includePrerelease && g) | (this.options.loose && C)) + ":" + b, I = n.get(S);
5446
5471
  if (I)
5447
5472
  return I;
5448
- const A = this.options.loose, O = A ? u[c.HYPHENRANGELOOSE] : u[c.HYPHENRANGE];
5449
- b = b.replace(O, Et(this.options.includePrerelease)), i("hyphen replace", b), b = b.replace(u[c.COMPARATORTRIM], l), i("comparator trim", b), b = b.replace(u[c.TILDETRIM], f), i("tilde trim", b), b = b.replace(u[c.CARETTRIM], m), i("caret trim", b);
5473
+ const A = this.options.loose, O = A ? c[u.HYPHENRANGELOOSE] : c[u.HYPHENRANGE];
5474
+ 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], m), i("caret trim", b);
5450
5475
  let q = b.split(" ").map((K) => H(K, this.options)).join(" ").split(/\s+/).map((K) => _t(K, this.options));
5451
- A && (q = q.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(u[c.COMPARATORLOOSE])))), i("range list", q);
5476
+ A && (q = q.filter((K) => (i("loose invalid filter", K, this.options), !!K.match(c[u.COMPARATORLOOSE])))), i("range list", q);
5452
5477
  const z = /* @__PURE__ */ new Map(), F = q.map((K) => new s(K, this.options));
5453
5478
  for (const K of F) {
5454
5479
  if (v(K))
@@ -5456,13 +5481,13 @@ function ue() {
5456
5481
  z.set(K.value, K);
5457
5482
  }
5458
5483
  z.size > 1 && z.has("") && z.delete("");
5459
- const te = [...z.values()];
5460
- return n.set(S, te), te;
5484
+ const re = [...z.values()];
5485
+ return n.set(S, re), re;
5461
5486
  }
5462
5487
  intersects(b, R) {
5463
5488
  if (!(b instanceof t))
5464
5489
  throw new TypeError("a Range is required");
5465
- return this.set.some((S) => L(S, R) && b.set.some((I) => L(I, R) && S.every((A) => I.every((O) => A.intersects(O, R)))));
5490
+ return this.set.some((S) => Z(S, R) && b.set.some((I) => Z(I, R) && S.every((A) => I.every((O) => A.intersects(O, R)))));
5466
5491
  }
5467
5492
  // if ANY of the sets match ALL of its comparators, then pass
5468
5493
  test(b) {
@@ -5481,43 +5506,43 @@ function ue() {
5481
5506
  }
5482
5507
  }
5483
5508
  Qt = t;
5484
- const r = zm(), n = new r(), o = Ur(), s = gt(), i = mt(), a = ne(), {
5485
- safeRe: u,
5486
- t: c,
5509
+ const r = qm(), n = new r(), o = Ur(), s = gt(), i = mt(), a = ne(), {
5510
+ safeRe: c,
5511
+ t: u,
5487
5512
  comparatorTrimReplace: l,
5488
5513
  tildeTrimReplace: f,
5489
5514
  caretTrimReplace: m
5490
- } = We(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = ft(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", L = (_, b) => {
5515
+ } = We(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: C } = ft(), v = (_) => _.value === "<0.0.0-0", P = (_) => _.value === "", Z = (_, b) => {
5491
5516
  let R = !0;
5492
5517
  const S = _.slice();
5493
5518
  let I = S.pop();
5494
5519
  for (; R && S.length; )
5495
5520
  R = S.every((A) => I.intersects(A, b)), I = S.pop();
5496
5521
  return R;
5497
- }, H = (_, b) => (i("comp", _, b), _ = V(_, b), i("caret", _), _ = D(_, b), i("tildes", _), _ = N(_, b), i("xrange", _), _ = bt(_, b), i("stars", _), _), x = (_) => !_ || _.toLowerCase() === "x" || _ === "*", D = (_, b) => _.trim().split(/\s+/).map((R) => Y(R, b)).join(" "), Y = (_, b) => {
5498
- const R = b.loose ? u[c.TILDELOOSE] : u[c.TILDE];
5522
+ }, H = (_, b) => (_ = _.replace(c[u.BUILD], ""), i("comp", _, b), _ = V(_, b), i("caret", _), _ = B(_, b), i("tildes", _), _ = x(_, b), i("xrange", _), _ = bt(_, b), i("stars", _), _), N = (_) => !_ || _.toLowerCase() === "x" || _ === "*", B = (_, b) => _.trim().split(/\s+/).map((R) => Y(R, b)).join(" "), Y = (_, b) => {
5523
+ const R = b.loose ? c[u.TILDELOOSE] : c[u.TILDE];
5499
5524
  return _.replace(R, (S, I, A, O, q) => {
5500
5525
  i("tilde", _, S, I, A, O, q);
5501
5526
  let z;
5502
- return x(I) ? z = "" : x(A) ? z = `>=${I}.0.0 <${+I + 1}.0.0-0` : x(O) ? z = `>=${I}.${A}.0 <${I}.${+A + 1}.0-0` : q ? (i("replaceTilde pr", q), z = `>=${I}.${A}.${O}-${q} <${I}.${+A + 1}.0-0`) : z = `>=${I}.${A}.${O} <${I}.${+A + 1}.0-0`, i("tilde return", z), z;
5527
+ return N(I) ? z = "" : N(A) ? z = `>=${I}.0.0 <${+I + 1}.0.0-0` : N(O) ? z = `>=${I}.${A}.0 <${I}.${+A + 1}.0-0` : q ? (i("replaceTilde pr", q), z = `>=${I}.${A}.${O}-${q} <${I}.${+A + 1}.0-0`) : z = `>=${I}.${A}.${O} <${I}.${+A + 1}.0-0`, i("tilde return", z), z;
5503
5528
  });
5504
5529
  }, V = (_, b) => _.trim().split(/\s+/).map((R) => ee(R, b)).join(" "), ee = (_, b) => {
5505
5530
  i("caret", _, b);
5506
- const R = b.loose ? u[c.CARETLOOSE] : u[c.CARET], S = b.includePrerelease ? "-0" : "";
5531
+ const R = b.loose ? c[u.CARETLOOSE] : c[u.CARET], S = b.includePrerelease ? "-0" : "";
5507
5532
  return _.replace(R, (I, A, O, q, z) => {
5508
5533
  i("caret", _, I, A, O, q, z);
5509
5534
  let F;
5510
- return x(A) ? F = "" : x(O) ? F = `>=${A}.0.0${S} <${+A + 1}.0.0-0` : x(q) ? A === "0" ? F = `>=${A}.${O}.0${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.0${S} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}-${z} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}-${z} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}${S} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q} <${+A + 1}.0.0-0`), i("caret return", F), F;
5535
+ return N(A) ? F = "" : N(O) ? F = `>=${A}.0.0${S} <${+A + 1}.0.0-0` : N(q) ? A === "0" ? F = `>=${A}.${O}.0${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.0${S} <${+A + 1}.0.0-0` : z ? (i("replaceCaret pr", z), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}-${z} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}-${z} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q}-${z} <${+A + 1}.0.0-0`) : (i("no pr"), A === "0" ? O === "0" ? F = `>=${A}.${O}.${q}${S} <${A}.${O}.${+q + 1}-0` : F = `>=${A}.${O}.${q}${S} <${A}.${+O + 1}.0-0` : F = `>=${A}.${O}.${q} <${+A + 1}.0.0-0`), i("caret return", F), F;
5511
5536
  });
5512
- }, N = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((R) => Te(R, b)).join(" ")), Te = (_, b) => {
5537
+ }, x = (_, b) => (i("replaceXRanges", _, b), _.split(/\s+/).map((R) => Te(R, b)).join(" ")), Te = (_, b) => {
5513
5538
  _ = _.trim();
5514
- const R = b.loose ? u[c.XRANGELOOSE] : u[c.XRANGE];
5539
+ const R = b.loose ? c[u.XRANGELOOSE] : c[u.XRANGE];
5515
5540
  return _.replace(R, (S, I, A, O, q, z) => {
5516
5541
  i("xRange", _, S, I, A, O, q, z);
5517
- const F = x(A), te = F || x(O), K = te || x(q), Ze = K;
5518
- return I === "=" && Ze && (I = ""), z = b.includePrerelease ? "-0" : "", F ? I === ">" || I === "<" ? S = "<0.0.0-0" : S = "*" : I && Ze ? (te && (O = 0), q = 0, I === ">" ? (I = ">=", te ? (A = +A + 1, O = 0, q = 0) : (O = +O + 1, q = 0)) : I === "<=" && (I = "<", te ? A = +A + 1 : O = +O + 1), I === "<" && (z = "-0"), S = `${I + A}.${O}.${q}${z}`) : te ? S = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && (S = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", S), S;
5542
+ const F = N(A), re = F || N(O), K = re || N(q), Ze = K;
5543
+ return I === "=" && Ze && (I = ""), z = b.includePrerelease ? "-0" : "", F ? I === ">" || I === "<" ? S = "<0.0.0-0" : S = "*" : I && Ze ? (re && (O = 0), q = 0, I === ">" ? (I = ">=", re ? (A = +A + 1, O = 0, q = 0) : (O = +O + 1, q = 0)) : I === "<=" && (I = "<", re ? A = +A + 1 : O = +O + 1), I === "<" && (z = "-0"), S = `${I + A}.${O}.${q}${z}`) : re ? S = `>=${A}.0.0${z} <${+A + 1}.0.0-0` : K && (S = `>=${A}.${O}.0${z} <${A}.${+O + 1}.0-0`), i("xRange return", S), S;
5519
5544
  });
5520
- }, bt = (_, b) => (i("replaceStars", _, b), _.trim().replace(u[c.STAR], "")), _t = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(u[b.includePrerelease ? c.GTE0PRE : c.GTE0], "")), Et = (_) => (b, R, S, I, A, O, q, z, F, te, K, Ze) => (x(S) ? R = "" : x(I) ? R = `>=${S}.0.0${_ ? "-0" : ""}` : x(A) ? R = `>=${S}.${I}.0${_ ? "-0" : ""}` : O ? R = `>=${R}` : R = `>=${R}${_ ? "-0" : ""}`, x(F) ? z = "" : x(te) ? z = `<${+F + 1}.0.0-0` : x(K) ? z = `<${F}.${+te + 1}.0-0` : Ze ? z = `<=${F}.${te}.${K}-${Ze}` : _ ? z = `<${F}.${te}.${+K + 1}-0` : z = `<=${z}`, `${R} ${z}`.trim()), yt = (_, b, R) => {
5545
+ }, bt = (_, b) => (i("replaceStars", _, b), _.trim().replace(c[u.STAR], "")), _t = (_, b) => (i("replaceGTE0", _, b), _.trim().replace(c[b.includePrerelease ? u.GTE0PRE : u.GTE0], "")), Et = (_) => (b, R, S, I, A, O, q, z, F, re, K, Ze) => (N(S) ? R = "" : N(I) ? R = `>=${S}.0.0${_ ? "-0" : ""}` : N(A) ? R = `>=${S}.${I}.0${_ ? "-0" : ""}` : O ? R = `>=${R}` : R = `>=${R}${_ ? "-0" : ""}`, N(F) ? z = "" : N(re) ? z = `<${+F + 1}.0.0-0` : N(K) ? z = `<${F}.${+re + 1}.0-0` : Ze ? z = `<=${F}.${re}.${K}-${Ze}` : _ ? z = `<${F}.${re}.${+K + 1}-0` : z = `<=${z}`, `${R} ${z}`.trim()), yt = (_, b, R) => {
5521
5546
  for (let S = 0; S < _.length; S++)
5522
5547
  if (!_[S].test(b))
5523
5548
  return !1;
@@ -5574,11 +5599,11 @@ function gt() {
5574
5599
  intersects(l, f) {
5575
5600
  if (!(l instanceof t))
5576
5601
  throw new TypeError("a Comparator is required");
5577
- return this.operator === "" ? this.value === "" ? !0 : new u(l.value, f).test(this.value) : l.operator === "" ? l.value === "" ? !0 : new u(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(">")));
5602
+ 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(">")));
5578
5603
  }
5579
5604
  }
5580
5605
  er = t;
5581
- const r = Ur(), { safeRe: n, t: o } = We(), s = Js(), i = mt(), a = ne(), u = ue();
5606
+ const r = Ur(), { safeRe: n, t: o } = We(), s = Js(), i = mt(), a = ne(), c = ue();
5582
5607
  return er;
5583
5608
  }
5584
5609
  var tr, oo;
@@ -5596,48 +5621,48 @@ function vt() {
5596
5621
  }, tr;
5597
5622
  }
5598
5623
  var rr, so;
5599
- function Lm() {
5624
+ function jm() {
5600
5625
  if (so) return rr;
5601
5626
  so = 1;
5602
5627
  const e = ue();
5603
5628
  return rr = (r, n) => new e(r, n).set.map((o) => o.map((s) => s.value).join(" ").trim().split(" ")), rr;
5604
5629
  }
5605
5630
  var nr, io;
5606
- function Tm() {
5631
+ function Dm() {
5607
5632
  if (io) return nr;
5608
5633
  io = 1;
5609
5634
  const e = ne(), t = ue();
5610
5635
  return nr = (n, o, s) => {
5611
- let i = null, a = null, u = null;
5636
+ let i = null, a = null, c = null;
5612
5637
  try {
5613
- u = new t(o, s);
5638
+ c = new t(o, s);
5614
5639
  } catch {
5615
5640
  return null;
5616
5641
  }
5617
- return n.forEach((c) => {
5618
- u.test(c) && (!i || a.compare(c) === -1) && (i = c, a = new e(i, s));
5642
+ return n.forEach((u) => {
5643
+ c.test(u) && (!i || a.compare(u) === -1) && (i = u, a = new e(i, s));
5619
5644
  }), i;
5620
5645
  }, nr;
5621
5646
  }
5622
5647
  var or, ao;
5623
- function Zm() {
5648
+ function Bm() {
5624
5649
  if (ao) return or;
5625
5650
  ao = 1;
5626
5651
  const e = ne(), t = ue();
5627
5652
  return or = (n, o, s) => {
5628
- let i = null, a = null, u = null;
5653
+ let i = null, a = null, c = null;
5629
5654
  try {
5630
- u = new t(o, s);
5655
+ c = new t(o, s);
5631
5656
  } catch {
5632
5657
  return null;
5633
5658
  }
5634
- return n.forEach((c) => {
5635
- u.test(c) && (!i || a.compare(c) === 1) && (i = c, a = new e(i, s));
5659
+ return n.forEach((u) => {
5660
+ c.test(u) && (!i || a.compare(u) === 1) && (i = u, a = new e(i, s));
5636
5661
  }), i;
5637
5662
  }, or;
5638
5663
  }
5639
5664
  var sr, co;
5640
- function qm() {
5665
+ function Um() {
5641
5666
  if (co) return sr;
5642
5667
  co = 1;
5643
5668
  const e = ne(), t = ue(), r = dt();
@@ -5648,9 +5673,9 @@ function qm() {
5648
5673
  return i;
5649
5674
  i = null;
5650
5675
  for (let a = 0; a < o.set.length; ++a) {
5651
- const u = o.set[a];
5652
- let c = null;
5653
- u.forEach((l) => {
5676
+ const c = o.set[a];
5677
+ let u = null;
5678
+ c.forEach((l) => {
5654
5679
  const f = new e(l.semver.version);
5655
5680
  switch (l.operator) {
5656
5681
  case ">":
@@ -5658,7 +5683,7 @@ function qm() {
5658
5683
  /* fallthrough */
5659
5684
  case "":
5660
5685
  case ">=":
5661
- (!c || r(f, c)) && (c = f);
5686
+ (!u || r(f, u)) && (u = f);
5662
5687
  break;
5663
5688
  case "<":
5664
5689
  case "<=":
@@ -5667,13 +5692,13 @@ function qm() {
5667
5692
  default:
5668
5693
  throw new Error(`Unexpected operation: ${l.operator}`);
5669
5694
  }
5670
- }), c && (!i || r(i, c)) && (i = c);
5695
+ }), u && (!i || r(i, u)) && (i = u);
5671
5696
  }
5672
5697
  return i && o.test(i) ? i : null;
5673
5698
  }, sr;
5674
5699
  }
5675
5700
  var ir, uo;
5676
- function jm() {
5701
+ function Fm() {
5677
5702
  if (uo) return ir;
5678
5703
  uo = 1;
5679
5704
  const e = ue();
@@ -5689,28 +5714,28 @@ var ar, lo;
5689
5714
  function Wr() {
5690
5715
  if (lo) return ar;
5691
5716
  lo = 1;
5692
- const e = ne(), t = gt(), { ANY: r } = t, n = ue(), o = vt(), s = dt(), i = Vr(), a = Mr(), u = Jr();
5717
+ const e = ne(), t = gt(), { ANY: r } = t, n = ue(), o = vt(), s = dt(), i = Vr(), a = Mr(), c = Jr();
5693
5718
  return ar = (l, f, m, g) => {
5694
5719
  l = new e(l, g), f = new n(f, g);
5695
- let C, v, P, L, H;
5720
+ let C, v, P, Z, H;
5696
5721
  switch (m) {
5697
5722
  case ">":
5698
- C = s, v = a, P = i, L = ">", H = ">=";
5723
+ C = s, v = a, P = i, Z = ">", H = ">=";
5699
5724
  break;
5700
5725
  case "<":
5701
- C = i, v = u, P = s, L = "<", H = "<=";
5726
+ C = i, v = c, P = s, Z = "<", H = "<=";
5702
5727
  break;
5703
5728
  default:
5704
5729
  throw new TypeError('Must provide a hilo val of "<" or ">"');
5705
5730
  }
5706
5731
  if (o(l, f, g))
5707
5732
  return !1;
5708
- for (let x = 0; x < f.set.length; ++x) {
5709
- const D = f.set[x];
5733
+ for (let N = 0; N < f.set.length; ++N) {
5734
+ const B = f.set[N];
5710
5735
  let Y = null, V = null;
5711
- if (D.forEach((ee) => {
5736
+ if (B.forEach((ee) => {
5712
5737
  ee.semver === r && (ee = new t(">=0.0.0")), Y = Y || ee, V = V || ee, C(ee.semver, Y.semver, g) ? Y = ee : P(ee.semver, V.semver, g) && (V = ee);
5713
- }), Y.operator === L || Y.operator === H || (!V.operator || V.operator === L) && v(l, V.semver))
5738
+ }), Y.operator === Z || Y.operator === H || (!V.operator || V.operator === Z) && v(l, V.semver))
5714
5739
  return !1;
5715
5740
  if (V.operator === H && P(l, V.semver))
5716
5741
  return !1;
@@ -5719,47 +5744,47 @@ function Wr() {
5719
5744
  }, ar;
5720
5745
  }
5721
5746
  var cr, po;
5722
- function Dm() {
5747
+ function Vm() {
5723
5748
  if (po) return cr;
5724
5749
  po = 1;
5725
5750
  const e = Wr();
5726
5751
  return cr = (r, n, o) => e(r, n, ">", o), cr;
5727
5752
  }
5728
5753
  var ur, ho;
5729
- function Bm() {
5754
+ function Jm() {
5730
5755
  if (ho) return ur;
5731
5756
  ho = 1;
5732
5757
  const e = Wr();
5733
5758
  return ur = (r, n, o) => e(r, n, "<", o), ur;
5734
5759
  }
5735
5760
  var lr, fo;
5736
- function Um() {
5761
+ function Mm() {
5737
5762
  if (fo) return lr;
5738
5763
  fo = 1;
5739
5764
  const e = ue();
5740
5765
  return lr = (r, n, o) => (r = new e(r, o), n = new e(n, o), r.intersects(n, o)), lr;
5741
5766
  }
5742
5767
  var pr, mo;
5743
- function Fm() {
5768
+ function Wm() {
5744
5769
  if (mo) return pr;
5745
5770
  mo = 1;
5746
5771
  const e = vt(), t = ce();
5747
5772
  return pr = (r, n, o) => {
5748
5773
  const s = [];
5749
5774
  let i = null, a = null;
5750
- const u = r.sort((m, g) => t(m, g, o));
5751
- for (const m of u)
5775
+ const c = r.sort((m, g) => t(m, g, o));
5776
+ for (const m of c)
5752
5777
  e(m, n, o) ? (a = m, i || (i = m)) : (a && s.push([i, a]), a = null, i = null);
5753
5778
  i && s.push([i, null]);
5754
- const c = [];
5779
+ const u = [];
5755
5780
  for (const [m, g] of s)
5756
- m === g ? c.push(m) : !g && m === u[0] ? c.push("*") : g ? m === u[0] ? c.push(`<=${g}`) : c.push(`${m} - ${g}`) : c.push(`>=${m}`);
5757
- const l = c.join(" || "), f = typeof n.raw == "string" ? n.raw : String(n);
5781
+ m === g ? u.push(m) : !g && m === c[0] ? u.push("*") : g ? m === c[0] ? u.push(`<=${g}`) : u.push(`${m} - ${g}`) : u.push(`>=${m}`);
5782
+ const l = u.join(" || "), f = typeof n.raw == "string" ? n.raw : String(n);
5758
5783
  return l.length < f.length ? l : n;
5759
5784
  }, pr;
5760
5785
  }
5761
5786
  var hr, go;
5762
- function Vm() {
5787
+ function Gm() {
5763
5788
  if (go) return hr;
5764
5789
  go = 1;
5765
5790
  const e = ue(), t = gt(), { ANY: r } = t, n = vt(), o = ce(), s = (f, m, g = {}) => {
@@ -5769,15 +5794,15 @@ function Vm() {
5769
5794
  let C = !1;
5770
5795
  e: for (const v of f.set) {
5771
5796
  for (const P of m.set) {
5772
- const L = u(v, P, g);
5773
- if (C = C || L !== null, L)
5797
+ const Z = c(v, P, g);
5798
+ if (C = C || Z !== null, Z)
5774
5799
  continue e;
5775
5800
  }
5776
5801
  if (C)
5777
5802
  return !1;
5778
5803
  }
5779
5804
  return !0;
5780
- }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], u = (f, m, g) => {
5805
+ }, i = [new t(">=0.0.0-0")], a = [new t(">=0.0.0")], c = (f, m, g) => {
5781
5806
  if (f === m)
5782
5807
  return !0;
5783
5808
  if (f.length === 1 && f[0].semver === r) {
@@ -5792,47 +5817,47 @@ function Vm() {
5792
5817
  }
5793
5818
  const C = /* @__PURE__ */ new Set();
5794
5819
  let v, P;
5795
- for (const N of f)
5796
- N.operator === ">" || N.operator === ">=" ? v = c(v, N, g) : N.operator === "<" || N.operator === "<=" ? P = l(P, N, g) : C.add(N.semver);
5820
+ for (const x of f)
5821
+ x.operator === ">" || x.operator === ">=" ? v = u(v, x, g) : x.operator === "<" || x.operator === "<=" ? P = l(P, x, g) : C.add(x.semver);
5797
5822
  if (C.size > 1)
5798
5823
  return null;
5799
- let L;
5824
+ let Z;
5800
5825
  if (v && P) {
5801
- if (L = o(v.semver, P.semver, g), L > 0)
5826
+ if (Z = o(v.semver, P.semver, g), Z > 0)
5802
5827
  return null;
5803
- if (L === 0 && (v.operator !== ">=" || P.operator !== "<="))
5828
+ if (Z === 0 && (v.operator !== ">=" || P.operator !== "<="))
5804
5829
  return null;
5805
5830
  }
5806
- for (const N of C) {
5807
- if (v && !n(N, String(v), g) || P && !n(N, String(P), g))
5831
+ for (const x of C) {
5832
+ if (v && !n(x, String(v), g) || P && !n(x, String(P), g))
5808
5833
  return null;
5809
5834
  for (const Te of m)
5810
- if (!n(N, String(Te), g))
5835
+ if (!n(x, String(Te), g))
5811
5836
  return !1;
5812
5837
  return !0;
5813
5838
  }
5814
- let H, x, D, Y, V = P && !g.includePrerelease && P.semver.prerelease.length ? P.semver : !1, ee = v && !g.includePrerelease && v.semver.prerelease.length ? v.semver : !1;
5839
+ let H, N, B, Y, V = P && !g.includePrerelease && P.semver.prerelease.length ? P.semver : !1, ee = v && !g.includePrerelease && v.semver.prerelease.length ? v.semver : !1;
5815
5840
  V && V.prerelease.length === 1 && P.operator === "<" && V.prerelease[0] === 0 && (V = !1);
5816
- for (const N of m) {
5817
- if (Y = Y || N.operator === ">" || N.operator === ">=", D = D || N.operator === "<" || N.operator === "<=", v) {
5818
- if (ee && N.semver.prerelease && N.semver.prerelease.length && N.semver.major === ee.major && N.semver.minor === ee.minor && N.semver.patch === ee.patch && (ee = !1), N.operator === ">" || N.operator === ">=") {
5819
- if (H = c(v, N, g), H === N && H !== v)
5841
+ for (const x of m) {
5842
+ if (Y = Y || x.operator === ">" || x.operator === ">=", B = B || x.operator === "<" || x.operator === "<=", v) {
5843
+ 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 === ">=") {
5844
+ if (H = u(v, x, g), H === x && H !== v)
5820
5845
  return !1;
5821
- } else if (v.operator === ">=" && !n(v.semver, String(N), g))
5846
+ } else if (v.operator === ">=" && !n(v.semver, String(x), g))
5822
5847
  return !1;
5823
5848
  }
5824
5849
  if (P) {
5825
- if (V && N.semver.prerelease && N.semver.prerelease.length && N.semver.major === V.major && N.semver.minor === V.minor && N.semver.patch === V.patch && (V = !1), N.operator === "<" || N.operator === "<=") {
5826
- if (x = l(P, N, g), x === N && x !== P)
5850
+ if (V && x.semver.prerelease && x.semver.prerelease.length && x.semver.major === V.major && x.semver.minor === V.minor && x.semver.patch === V.patch && (V = !1), x.operator === "<" || x.operator === "<=") {
5851
+ if (N = l(P, x, g), N === x && N !== P)
5827
5852
  return !1;
5828
- } else if (P.operator === "<=" && !n(P.semver, String(N), g))
5853
+ } else if (P.operator === "<=" && !n(P.semver, String(x), g))
5829
5854
  return !1;
5830
5855
  }
5831
- if (!N.operator && (P || v) && L !== 0)
5856
+ if (!x.operator && (P || v) && Z !== 0)
5832
5857
  return !1;
5833
5858
  }
5834
- return !(v && D && !P && L !== 0 || P && Y && !v && L !== 0 || ee || V);
5835
- }, c = (f, m, g) => {
5859
+ return !(v && B && !P && Z !== 0 || P && Y && !v && Z !== 0 || ee || V);
5860
+ }, u = (f, m, g) => {
5836
5861
  if (!f)
5837
5862
  return m;
5838
5863
  const C = o(f.semver, m.semver, g);
@@ -5846,17 +5871,17 @@ function Vm() {
5846
5871
  return hr = s, hr;
5847
5872
  }
5848
5873
  var fr, vo;
5849
- function Jm() {
5874
+ function Xm() {
5850
5875
  if (vo) return fr;
5851
5876
  vo = 1;
5852
- const e = We(), t = ft(), r = ne(), n = Us(), o = Le(), s = ym(), i = $m(), a = Sm(), u = Am(), c = wm(), l = Rm(), f = Im(), m = km(), g = ce(), C = Cm(), v = Pm(), P = Fr(), L = Om(), H = Nm(), x = dt(), D = Vr(), Y = Fs(), V = Vs(), ee = Jr(), N = Mr(), Te = Js(), bt = xm(), _t = gt(), Et = ue(), yt = vt(), _ = Lm(), b = Tm(), R = Zm(), S = qm(), I = jm(), A = Wr(), O = Dm(), q = Bm(), z = Um(), F = Fm(), te = Vm();
5877
+ const e = We(), t = ft(), r = ne(), n = Us(), o = Le(), s = wm(), i = Rm(), a = Im(), c = km(), u = Cm(), l = Pm(), f = Om(), m = xm(), g = ce(), C = Nm(), v = zm(), P = Fr(), Z = Lm(), H = Tm(), N = dt(), B = Vr(), Y = Fs(), V = Vs(), ee = Jr(), x = Mr(), Te = Js(), bt = Zm(), _t = gt(), Et = ue(), yt = vt(), _ = jm(), b = Dm(), R = Bm(), S = Um(), I = Fm(), A = Wr(), O = Vm(), q = Jm(), z = Mm(), F = Wm(), re = Gm();
5853
5878
  return fr = {
5854
5879
  parse: o,
5855
5880
  valid: s,
5856
5881
  clean: i,
5857
5882
  inc: a,
5858
- diff: u,
5859
- major: c,
5883
+ diff: c,
5884
+ major: u,
5860
5885
  minor: l,
5861
5886
  patch: f,
5862
5887
  prerelease: m,
@@ -5864,14 +5889,14 @@ function Jm() {
5864
5889
  rcompare: C,
5865
5890
  compareLoose: v,
5866
5891
  compareBuild: P,
5867
- sort: L,
5892
+ sort: Z,
5868
5893
  rsort: H,
5869
- gt: x,
5870
- lt: D,
5894
+ gt: N,
5895
+ lt: B,
5871
5896
  eq: Y,
5872
5897
  neq: V,
5873
5898
  gte: ee,
5874
- lte: N,
5899
+ lte: x,
5875
5900
  cmp: Te,
5876
5901
  coerce: bt,
5877
5902
  Comparator: _t,
@@ -5887,7 +5912,7 @@ function Jm() {
5887
5912
  ltr: q,
5888
5913
  intersects: z,
5889
5914
  simplifyRange: F,
5890
- subset: te,
5915
+ subset: re,
5891
5916
  SemVer: r,
5892
5917
  re: e.re,
5893
5918
  src: e.src,
@@ -5898,21 +5923,21 @@ function Jm() {
5898
5923
  rcompareIdentifiers: n.rcompareIdentifiers
5899
5924
  }, fr;
5900
5925
  }
5901
- var Mm = Jm();
5902
- const Wm = (e, t) => Gm(t) ? t.hostnames.includes(new URL(e).hostname) : Xm(t) ? !!e.match(t.regexp) : !1, Gm = (e) => qs.safeParse(e).success, Xm = (e) => js.safeParse(e).success, Hm = (e, t) => t ? Mm.satisfies(e, t) : !0, Ym = (e, t, r) => Hm(
5926
+ var Hm = Xm();
5927
+ const Ym = (e, t) => Km(t) ? t.hostnames.includes(new URL(e).hostname) : Qm(t) ? !!e.match(t.regexp) : !1, Km = (e) => qs.safeParse(e).success, Qm = (e) => js.safeParse(e).success, ed = (e, t) => t ? Hm.satisfies(e, t) : !0, td = (e, t, r) => ed(
5903
5928
  t,
5904
5929
  r.libraryVersionRange
5905
- ) && Wm(e, r.matcher), Km = (e, t) => e.siteRegistrations.filter(
5906
- (r) => Ym(t, Zs(), r)
5907
- ), Qm = (e, t) => Km(e, t).flatMap(
5930
+ ) && Ym(e, r.matcher), rd = (e, t) => e.siteRegistrations.filter(
5931
+ (r) => td(t, Zs(), r)
5932
+ ), nd = (e, t) => rd(e, t).flatMap(
5908
5933
  ({ parsers: o, name: s }) => o.filter(
5909
- (i) => bm(i) && i in wn
5934
+ (i) => $m(i) && i in wn
5910
5935
  ).map((i) => ({ parser: wn[i], parserType: i, name: s }))
5911
- ), ed = (e, t) => {
5912
- const r = Qm(e, t.url);
5936
+ ), od = (e, t) => {
5937
+ const r = nd(e, t.url);
5913
5938
  for (const { parser: n, parserType: o, name: s } of r) {
5914
5939
  const i = n(t);
5915
- if (Nr(i) || Op(i) || Np(i))
5940
+ if (xr(i) || Op(i) || xp(i))
5916
5941
  return {
5917
5942
  ...i,
5918
5943
  meta: {
@@ -5927,111 +5952,111 @@ const Wm = (e, t) => Gm(t) ? t.hostnames.includes(new URL(e).hostname) : Xm(t) ?
5927
5952
  ...hs(),
5928
5953
  meta: {
5929
5954
  parserName: null,
5930
- parserType: T.NoResourceFound,
5955
+ parserType: L.NoResourceFound,
5931
5956
  uri: t.url,
5932
5957
  referrer: t.url
5933
5958
  }
5934
5959
  };
5935
- }, kd = (e, t) => {
5936
- const r = ed(e, t), { uri: n, ...o } = r.meta;
5960
+ }, xd = (e, t) => {
5961
+ const r = od(e, t), { uri: n, ...o } = r.meta;
5937
5962
  return {
5938
5963
  ...r,
5939
5964
  meta: o
5940
5965
  };
5941
- }, td = (e, t) => {
5966
+ }, sd = (e, t) => {
5942
5967
  switch (t) {
5943
5968
  case ye.CA:
5944
5969
  return new URL(`https://${e}.rl.ca.talis.com`);
5945
5970
  default:
5946
5971
  return new URL(`https://${e}.rl.talis.com`);
5947
5972
  }
5948
- }, Cd = (e, t) => {
5949
- const r = td(e, t);
5973
+ }, Nd = (e, t) => {
5974
+ const r = sd(e, t);
5950
5975
  return new URL("/ui/forms/bookmarklet.html", r);
5951
- }, Pd = (e, t, r) => {
5976
+ }, zd = (e, t, r) => {
5952
5977
  const n = ll(t);
5953
5978
  n.append("fast", "true"), n.append("breakout", "true"), r && (r.parserName && n.append("targetTitle", r.parserName), n.append("referrer", r.referrer));
5954
5979
  const o = new URL(e.toString());
5955
5980
  return o.search = n.toString(), o;
5956
5981
  };
5957
5982
  export {
5958
- rd as BookGenresSchema,
5983
+ id as BookGenresSchema,
5959
5984
  ml as CustomerListSchema,
5960
5985
  Yo as CustomerSchema,
5961
5986
  ts as DirectLinkOnlyResultSchema,
5962
5987
  y as Genre,
5963
5988
  qs as HostnamesMatcherSchema,
5964
- nd as JournalGenresSchema,
5989
+ ad as JournalGenresSchema,
5965
5990
  Go as NON_OPENURL_PROPERTIES,
5966
5991
  Mo as NonOpenUrlPropertiesSchema,
5967
5992
  es as NothingParsedResultSchema,
5968
5993
  il as OPENURL_KEYS,
5969
- id as OpenUrlAudioVisualResourceSchema,
5970
- od as OpenUrlBookResourceSchema,
5971
- cd as OpenUrlDocumentResourceSchema,
5972
- ad as OpenUrlImageResourceSchema,
5973
- sd as OpenUrlJournalResourceSchema,
5994
+ ld as OpenUrlAudioVisualResourceSchema,
5995
+ cd as OpenUrlBookResourceSchema,
5996
+ hd as OpenUrlDocumentResourceSchema,
5997
+ pd as OpenUrlImageResourceSchema,
5998
+ ud as OpenUrlJournalResourceSchema,
5974
5999
  be as OpenUrlResourceSchema,
5975
6000
  rs as OpenUrlResultSchema,
5976
- ud as OpenUrlWebpageResourceSchema,
6001
+ fd as OpenUrlWebpageResourceSchema,
5977
6002
  wn as PARSERS,
5978
- vm as ParserRegistrySchema,
5979
- T as ParserType,
6003
+ ym as ParserRegistrySchema,
6004
+ L as ParserType,
5980
6005
  Ko as ParsingMetadataSchema,
5981
6006
  Qo as ParsingMetadataV2Schema,
5982
6007
  fl as ParsingRequestSchema,
5983
6008
  _l as ParsingResponseSchema,
5984
6009
  El as ParsingResponseV2Schema,
5985
6010
  Ir as ParsingResultSchema,
5986
- Sd as REGISTRY,
6011
+ Id as REGISTRY,
5987
6012
  js as RegExpMatcherSchema,
5988
- Em as ResourceDataSchema,
6013
+ Am as ResourceDataSchema,
5989
6014
  nl as ResourceSchema,
5990
6015
  Bs as SiteRegistrationSchema,
5991
6016
  os as SummonSearchResultSchema,
5992
6017
  ye as TenantRegion,
5993
- pd as TenantRegistrySchema,
6018
+ dd as TenantRegistrySchema,
5994
6019
  Ho as TenantSchema,
5995
6020
  Ds as UrlMatcherSchema,
5996
6021
  ns as Z3988SearchResultSchema,
5997
- md as convertCustomerListToTenantRegistry,
6022
+ bd as convertCustomerListToTenantRegistry,
5998
6023
  Ae as createAudioVisual,
5999
6024
  Q as createBook,
6000
6025
  sl as createDocument,
6001
6026
  ol as createImage,
6002
- B as createJournal,
6027
+ D as createJournal,
6003
6028
  Rr as createWebpage,
6004
- dd as directLinkOnly,
6029
+ _d as directLinkOnly,
6005
6030
  pl as fromOpenUrl,
6006
- Cd as getBaseBookmarkingUrl,
6031
+ Nd as getBaseBookmarkingUrl,
6007
6032
  Zs as getLibraryVersion,
6008
6033
  dl as isCustomer,
6009
6034
  gl as isCustomerList,
6010
- yd as isDirectLinkOnlyResult,
6011
- ld as isGenre,
6012
- $d as isNothingParsedResult,
6013
- Nr as isOpenUrlResult,
6014
- Ad as isParserRegistry,
6015
- bm as isParserType,
6016
- _d as isParsingMetadata,
6017
- Ed as isParsingMetadataV2,
6018
- hd as isParsingRequest,
6019
- vd as isParsingResponse,
6020
- bd as isParsingResponseV2,
6021
- gd as isParsingResult,
6022
- Id as isResourceData,
6023
- wd as isSiteRegistration,
6024
- Np as isSummonSearchResult,
6035
+ wd as isDirectLinkOnlyResult,
6036
+ md as isGenre,
6037
+ Rd as isNothingParsedResult,
6038
+ xr as isOpenUrlResult,
6039
+ kd as isParserRegistry,
6040
+ $m as isParserType,
6041
+ Sd as isParsingMetadata,
6042
+ Ad as isParsingMetadataV2,
6043
+ gd as isParsingRequest,
6044
+ yd as isParsingResponse,
6045
+ $d as isParsingResponseV2,
6046
+ Ed as isParsingResult,
6047
+ Od as isResourceData,
6048
+ Cd as isSiteRegistration,
6049
+ xp as isSummonSearchResult,
6025
6050
  vl as isTenant,
6026
- fd as isTenantRegion,
6027
- Rd as isUrlMatcher,
6051
+ vd as isTenantRegion,
6052
+ Pd as isUrlMatcher,
6028
6053
  Op as isZ3988SearchResult,
6029
- Z as nothingParsed,
6054
+ T as nothingParsed,
6030
6055
  w as openUrlResource,
6031
- ed as parseResource,
6032
- kd as parseResourceV2,
6056
+ od as parseResource,
6057
+ xd as parseResourceV2,
6033
6058
  $l as summonSearchResult,
6034
- Pd as toBookmarkingWorkflowUrl,
6059
+ zd as toBookmarkingWorkflowUrl,
6035
6060
  ll as toOpenUrl,
6036
6061
  yl as z3988SearchResult
6037
6062
  };