ipx 4.0.0-alpha.2 → 4.0.0-beta.1

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.
@@ -44,6 +44,60 @@ Repository: https://github.com/fb55/boolbase
44
44
 
45
45
  ---------------------------------------
46
46
 
47
+ ## crossws
48
+
49
+ License: MIT
50
+ Repository: https://github.com/h3js/crossws
51
+
52
+ > MIT License
53
+ >
54
+ > Copyright (c) Pooya Parsa <pooya@pi0.io>
55
+ >
56
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
57
+ > of this software and associated documentation files (the "Software"), to deal
58
+ > in the Software without restriction, including without limitation the rights
59
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
60
+ > copies of the Software, and to permit persons to whom the Software is
61
+ > furnished to do so, subject to the following conditions:
62
+ >
63
+ > The above copyright notice and this permission notice shall be included in all
64
+ > copies or substantial portions of the Software.
65
+ >
66
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
67
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
68
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
69
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
70
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
71
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
72
+ > SOFTWARE.
73
+ >
74
+ > ---
75
+ >
76
+ > Bundled with https://github.com/websockets/ws
77
+ >
78
+ > Copyright (c) 2011 Einar Otto Stangvik <einaros@gmail.com>
79
+ > Copyright (c) 2013 Arnout Kazemier and contributors
80
+ > Copyright (c) 2016 Luigi Pinca and contributors
81
+ >
82
+ > Permission is hereby granted, free of charge, to any person obtaining a copy of
83
+ > this software and associated documentation files (the "Software"), to deal in
84
+ > the Software without restriction, including without limitation the rights to
85
+ > use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
86
+ > the Software, and to permit persons to whom the Software is furnished to do so,
87
+ > subject to the following conditions:
88
+ >
89
+ > The above copyright notice and this permission notice shall be included in all
90
+ > copies or substantial portions of the Software.
91
+ >
92
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
93
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
94
+ > FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
95
+ > COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
96
+ > IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
97
+ > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
98
+
99
+ ---------------------------------------
100
+
47
101
  ## css-select, css-what, domelementtype, domhandler, domutils, entities, nth-check
48
102
 
49
103
  License: BSD-2-Clause
@@ -23,7 +23,7 @@ var t = e(((e, t) => {
23
23
  let n = ``, r, i = 0;
24
24
  for (let a = 0, o = e.length; a < o; ++a) {
25
25
  let o = e[a];
26
- if (!(o === ` ` || o === ` `)) {
26
+ if (o !== ` ` && o !== ` `) {
27
27
  if (o === `;`) {
28
28
  i === 1 && (i = 2, r = ``);
29
29
  continue;
@@ -0,0 +1 @@
1
+ export {}
@@ -2861,7 +2861,7 @@ var a = e(((e) => {
2861
2861
  }
2862
2862
  function c(e, t) {
2863
2863
  var n = o(e);
2864
- return n ? n(t) : !0;
2864
+ return !n || n(t);
2865
2865
  }
2866
2866
  function l(e, t, r, i) {
2867
2867
  i === void 0 && (i = Infinity);
@@ -3821,7 +3821,7 @@ var W, G, K, q, J, ae = t((() => {
3821
3821
  if (h === r.default.falseFunc) return r.default.falseFunc;
3822
3822
  var g = o(h, f);
3823
3823
  if (m && h !== r.default.trueFunc) {
3824
- var _ = h.shouldTestNextSiblings, v = _ === void 0 ? !1 : _;
3824
+ var _ = h.shouldTestNextSiblings, v = _ !== void 0 && _;
3825
3825
  return function(e) {
3826
3826
  if (!n(e)) return !1;
3827
3827
  m[0] = e;
@@ -39,7 +39,7 @@ var t = e(((e) => {
39
39
  return !(e !== 92 || u(t) || t === 0);
40
40
  }
41
41
  function p(e, t, n) {
42
- return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 ? f(e, t) : !1;
42
+ return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 && f(e, t);
43
43
  }
44
44
  function m(e, n, r) {
45
45
  return e === 43 || e === 45 ? t(n) ? 2 : n === 46 && t(r) ? 3 : 0 : e === 46 ? t(n) ? 2 : 0 : +!!t(e);
@@ -234,7 +234,7 @@ var t = e(((e) => {
234
234
  return c.EOF;
235
235
  }
236
236
  lookupValue(e, t) {
237
- return e += this.tokenIndex, e < this.tokenCount ? o.cmpStr(this.source, this.offsetAndType[e - 1] & l, this.offsetAndType[e] & l, t) : !1;
237
+ return e += this.tokenIndex, e < this.tokenCount && o.cmpStr(this.source, this.offsetAndType[e - 1] & l, this.offsetAndType[e] & l, t);
238
238
  }
239
239
  getTokenStart(e) {
240
240
  return e === this.tokenIndex ? this.tokenStart : e > 0 ? e < this.tokenCount ? this.offsetAndType[e - 1] & l : this.offsetAndType[this.tokenCount] & l : this.firstCharOffset;
@@ -260,8 +260,8 @@ var t = e(((e) => {
260
260
  let n = this.balance[e], r = this.getTokenType(n);
261
261
  return u[t] === r ? n : -1;
262
262
  } else if (d[t] === 2) {
263
- let n = this.balance[e];
264
- return u[this.getTokenType(n)] === t ? n : -1;
263
+ let n = this.balance[e], r = this.getTokenType(n);
264
+ return u[r] === t ? n : -1;
265
265
  }
266
266
  return -1;
267
267
  }
@@ -364,7 +364,6 @@ var t = e(((e) => {
364
364
  if (f === e.length - 1) break;
365
365
  let i = n(f + 1);
366
366
  c.isNewline(i) ? f += l.getNewlineLength(e, f + 1, i) : c.isValidEscape(r, i) && (f = l.consumeEscaped(e, f) - 1);
367
- break;
368
367
  }
369
368
  }
370
369
  }
@@ -886,9 +885,7 @@ var t = e(((e) => {
886
885
  case _.Hash:
887
886
  this.isDelim(35) && (this.next(), r++, n = `Name is expected`);
888
887
  break;
889
- case _.Percentage:
890
- this.tokenType === _.Number && (r = this.tokenEnd, n = `Percent sign is expected`);
891
- break;
888
+ case _.Percentage: this.tokenType === _.Number && (r = this.tokenEnd, n = `Percent sign is expected`);
892
889
  }
893
890
  this.error(n, r);
894
891
  }
@@ -932,7 +929,7 @@ var t = e(((e) => {
932
929
  getRangeLocation: (e, t) => s.getLocationRange(e, t, n)
933
930
  });
934
931
  return Object.assign(function(e, a) {
935
- t = e, a ||= {}, c.setSource(t, u.tokenize), s.setSource(t, a.offset, a.line, a.column), n = a.filename || `<unknown>`, r = !!a.positions, i = typeof a.onParseError == `function` ? a.onParseError : y, o = !1, c.parseAtrulePrelude = `parseAtrulePrelude` in a ? !!a.parseAtrulePrelude : !0, c.parseRulePrelude = `parseRulePrelude` in a ? !!a.parseRulePrelude : !0, c.parseValue = `parseValue` in a ? !!a.parseValue : !0, c.parseCustomProperty = `parseCustomProperty` in a ? !!a.parseCustomProperty : !1;
932
+ t = e, a ||= {}, c.setSource(t, u.tokenize), s.setSource(t, a.offset, a.line, a.column), n = a.filename || `<unknown>`, r = !!a.positions, i = typeof a.onParseError == `function` ? a.onParseError : y, o = !1, c.parseAtrulePrelude = `parseAtrulePrelude` in a ? !!a.parseAtrulePrelude : !0, c.parseRulePrelude = `parseRulePrelude` in a ? !!a.parseRulePrelude : !0, c.parseValue = `parseValue` in a ? !!a.parseValue : !0, c.parseCustomProperty = `parseCustomProperty` in a && !!a.parseCustomProperty;
936
933
  let { context: d = `default`, list: f = !0, onComment: p, onToken: m } = a;
937
934
  if (!(d in c.context)) throw Error("Unknown context `" + d + "`");
938
935
  Object.assign(c, f ? x : b), Array.isArray(m) ? c.forEachToken((e, t, n) => {
@@ -943,8 +940,8 @@ var t = e(((e) => {
943
940
  });
944
941
  }) : typeof m == `function` && c.forEachToken(m.bind(l())), typeof p == `function` && c.forEachToken((e, n, r) => {
945
942
  if (e === _.Comment) {
946
- let e = c.getLocation(n, r);
947
- p(g.cmpStr(t, r - 2, r, `*/`) ? t.slice(n + 2, r - 2) : t.slice(n + 2, r), e);
943
+ let e = c.getLocation(n, r), i = g.cmpStr(t, r - 2, r, `*/`) ? t.slice(n + 2, r - 2) : t.slice(n + 2, r);
944
+ p(i, e);
948
945
  }
949
946
  });
950
947
  let h = c.context[d].call(c, a);
@@ -1580,7 +1577,7 @@ var t = e(((e) => {
1580
1577
  let p = c(l), m = c(u), h = function(e, t) {
1581
1578
  function o(e, t, n) {
1582
1579
  let r = s.call(_, e, t, n);
1583
- return r === d ? !0 : r === f ? !1 : !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
1580
+ return r === d || r !== f && !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
1584
1581
  }
1585
1582
  let s = n, c = n, h = l, g = (e, t, n, r) => e || o(t, n, r), _ = {
1586
1583
  break: d,
@@ -1948,7 +1945,7 @@ var t = e(((e) => {
1948
1945
  return !1;
1949
1946
  }
1950
1947
  function T(e, t) {
1951
- return t === e.length - 2 ? S(e, t) === 92 && s.isDigit(S(e, t + 1)) : !1;
1948
+ return t === e.length - 2 && S(e, t) === 92 && s.isDigit(S(e, t + 1));
1952
1949
  }
1953
1950
  function E(e, t, n) {
1954
1951
  if (e && e.type === `Range`) {
@@ -1973,9 +1970,7 @@ var t = e(((e) => {
1973
1970
  case c.Function:
1974
1971
  case c.LeftParenthesis:
1975
1972
  case c.LeftSquareBracket:
1976
- case c.LeftCurlyBracket:
1977
- r.push(n), n = x.get(e.type);
1978
- break;
1973
+ case c.LeftCurlyBracket: r.push(n), n = x.get(e.type);
1979
1974
  }
1980
1975
  i++;
1981
1976
  } while (e = t(i));
@@ -2034,9 +2029,7 @@ var t = e(((e) => {
2034
2029
  case c.Function:
2035
2030
  case c.LeftParenthesis:
2036
2031
  case c.LeftSquareBracket:
2037
- case c.LeftCurlyBracket:
2038
- r.push(n), n = x.get(e.type);
2039
- break;
2032
+ case c.LeftCurlyBracket: r.push(n), n = x.get(e.type);
2040
2033
  }
2041
2034
  i++;
2042
2035
  } while (e = t(i));
@@ -2058,9 +2051,7 @@ var t = e(((e) => {
2058
2051
  case c.Function:
2059
2052
  case c.LeftParenthesis:
2060
2053
  case c.LeftSquareBracket:
2061
- case c.LeftCurlyBracket:
2062
- r.push(n), n = x.get(e.type);
2063
- break;
2054
+ case c.LeftCurlyBracket: r.push(n), n = x.get(e.type);
2064
2055
  }
2065
2056
  i++;
2066
2057
  } while (e = t(i));
@@ -2772,13 +2763,13 @@ var t = e(((e) => {
2772
2763
  return !0;
2773
2764
  }
2774
2765
  function c(e) {
2775
- return e.type === r.Delim ? e.value !== `?` : !1;
2766
+ return e.type === r.Delim && e.value !== `?`;
2776
2767
  }
2777
2768
  function l(e) {
2778
- return e === null ? !0 : e.type === r.Comma || e.type === r.Function || e.type === r.LeftParenthesis || e.type === r.LeftSquareBracket || e.type === r.LeftCurlyBracket || c(e);
2769
+ return e === null || e.type === r.Comma || e.type === r.Function || e.type === r.LeftParenthesis || e.type === r.LeftSquareBracket || e.type === r.LeftCurlyBracket || c(e);
2779
2770
  }
2780
2771
  function u(e) {
2781
- return e === null ? !0 : e.type === r.RightParenthesis || e.type === r.RightSquareBracket || e.type === r.RightCurlyBracket || e.type === r.Delim && e.value === `/`;
2772
+ return e === null || e.type === r.RightParenthesis || e.type === r.RightSquareBracket || e.type === r.RightCurlyBracket || e.type === r.Delim && e.value === `/`;
2782
2773
  }
2783
2774
  function d(e, t, o) {
2784
2775
  function c() {
@@ -3018,12 +3009,10 @@ var t = e(((e) => {
3018
3009
  syntax: e.syntax
3019
3010
  });
3020
3011
  break;
3021
- default:
3022
- r.match.push({
3023
- token: e.token.value,
3024
- node: e.token.node
3025
- });
3026
- break;
3012
+ default: r.match.push({
3013
+ token: e.token.value,
3014
+ node: e.token.node
3015
+ });
3027
3016
  }
3028
3017
  e = e.prev;
3029
3018
  }
@@ -3084,7 +3073,7 @@ var t = e(((e) => {
3084
3073
  }
3085
3074
  function a(e, n, r) {
3086
3075
  let i = t.call(e, n);
3087
- return i === null ? !1 : i.some(r);
3076
+ return i !== null && i.some(r);
3088
3077
  }
3089
3078
  e.getTrace = t, e.isKeyword = i, e.isProperty = r, e.isType = n;
3090
3079
  })), B = e(((e) => {
@@ -15270,9 +15259,7 @@ var t = e(((e) => {
15270
15259
  case 110:
15271
15260
  n = `N is expected`;
15272
15261
  break;
15273
- case 45:
15274
- n = `HyphenMinus is expected`;
15275
- break;
15262
+ case 45: n = `HyphenMinus is expected`;
15276
15263
  }
15277
15264
  this.error(n, this.tokenStart + e);
15278
15265
  }
@@ -15365,9 +15352,7 @@ var t = e(((e) => {
15365
15352
  case n.Semicolon:
15366
15353
  this.next();
15367
15354
  break;
15368
- case n.LeftCurlyBracket:
15369
- c = hasOwnProperty.call(this.atrule, o) && typeof this.atrule[o].block == `function` ? this.atrule[o].block.call(this, e) : this.Block(i.call(this));
15370
- break;
15355
+ case n.LeftCurlyBracket: c = hasOwnProperty.call(this.atrule, o) && typeof this.atrule[o].block == `function` ? this.atrule[o].block.call(this, e) : this.Block(i.call(this));
15371
15356
  }
15372
15357
  return {
15373
15358
  type: `Atrule`,
@@ -15556,7 +15541,6 @@ var t = e(((e) => {
15556
15541
  default: this.error(`Combinator is expected`);
15557
15542
  }
15558
15543
  t = this.substrToCursor(e);
15559
- break;
15560
15544
  }
15561
15545
  return {
15562
15546
  type: `Combinator`,
@@ -15707,7 +15691,7 @@ var t = e(((e) => {
15707
15691
  function d() {
15708
15692
  this.eat(r.Delim), this.skipSC();
15709
15693
  let e = this.consume(r.Ident);
15710
- return e === `important` ? !0 : e;
15694
+ return e === `important` || e;
15711
15695
  }
15712
15696
  e.generate = l, e.name = `Declaration`, e.parse = c, e.structure = s, e.walkContext = `declaration`;
15713
15697
  })), _e = e(((e) => {
@@ -16683,19 +16667,17 @@ var t = e(((e) => {
16683
16667
  case r.Dimension:
16684
16668
  this.charCodeAt(this.tokenStart) === 46 && this.error(`Identifier is expected`, this.tokenStart + 1);
16685
16669
  break;
16686
- case r.Delim:
16687
- switch (this.charCodeAt(this.tokenStart)) {
16688
- case 43:
16689
- case 62:
16690
- case 126:
16691
- case 47: return this.Combinator();
16692
- case 46: return this.ClassSelector();
16693
- case 42:
16694
- case 124: return this.TypeSelector();
16695
- case 35: return this.IdSelector();
16696
- case 38: return this.NestingSelector();
16697
- }
16698
- break;
16670
+ case r.Delim: switch (this.charCodeAt(this.tokenStart)) {
16671
+ case 43:
16672
+ case 62:
16673
+ case 126:
16674
+ case 47: return this.Combinator();
16675
+ case 46: return this.ClassSelector();
16676
+ case 42:
16677
+ case 124: return this.TypeSelector();
16678
+ case 35: return this.IdSelector();
16679
+ case 38: return this.NestingSelector();
16680
+ }
16699
16681
  }
16700
16682
  }
16701
16683
  n.exports = {
@@ -17206,7 +17188,7 @@ var t = e(((e) => {
17206
17188
  return !(e !== 92 || u(t) || t === 0);
17207
17189
  }
17208
17190
  function p(e, t, n) {
17209
- return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 ? f(e, t) : !1;
17191
+ return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 && f(e, t);
17210
17192
  }
17211
17193
  function m(e, n, r) {
17212
17194
  return e === 43 || e === 45 ? t(n) ? 2 : n === 46 && t(r) ? 3 : 0 : e === 46 ? t(n) ? 2 : 0 : +!!t(e);
@@ -17402,9 +17384,7 @@ var t = e(((e) => {
17402
17384
  case i.LeftParenthesis:
17403
17385
  case i.Function:
17404
17386
  case i.LeftSquareBracket:
17405
- case i.LeftCurlyBracket:
17406
- c[l] = d, u = o.get(e), d = u << 24 | l;
17407
- break;
17387
+ case i.LeftCurlyBracket: c[l] = d, u = o.get(e), d = u << 24 | l;
17408
17388
  }
17409
17389
  s[l++] = e << 24 | n, f === -1 && (f = t);
17410
17390
  }), s[l] = i.EOF << 24 | r, c[l] = r, c[r] = r; d !== 0;) {
@@ -17420,7 +17400,7 @@ var t = e(((e) => {
17420
17400
  return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & a : this.source.length;
17421
17401
  }
17422
17402
  lookupValue(e, t) {
17423
- return e += this.tokenIndex, e < this.tokenCount ? n.cmpStr(this.source, this.offsetAndType[e - 1] & a, this.offsetAndType[e] & a, t) : !1;
17403
+ return e += this.tokenIndex, e < this.tokenCount && n.cmpStr(this.source, this.offsetAndType[e - 1] & a, this.offsetAndType[e] & a, t);
17424
17404
  }
17425
17405
  getTokenStart(e) {
17426
17406
  return e === this.tokenIndex ? this.tokenStart : e > 0 ? e < this.tokenCount ? this.offsetAndType[e - 1] & a : this.offsetAndType[this.tokenCount] & a : this.firstCharOffset;
@@ -17527,7 +17507,6 @@ var t = e(((e) => {
17527
17507
  if (f === e.length - 1) break;
17528
17508
  let s = a(f + 1);
17529
17509
  n.isNewline(s) ? f += r.getNewlineLength(e, f + 1, s) : n.isValidEscape(o, s) && (f = r.consumeEscaped(e, f) - 1);
17530
- break;
17531
17510
  }
17532
17511
  }
17533
17512
  }
@@ -18024,9 +18003,7 @@ var t = e(((e) => {
18024
18003
  case c.Hash:
18025
18004
  this.isDelim(35) && (this.next(), r++, n = `Name is expected`);
18026
18005
  break;
18027
- case c.Percentage:
18028
- this.tokenType === c.Number && (r = this.tokenEnd, n = `Percent sign is expected`);
18029
- break;
18006
+ case c.Percentage: this.tokenType === c.Number && (r = this.tokenEnd, n = `Percent sign is expected`);
18030
18007
  }
18031
18008
  this.error(n, r);
18032
18009
  }
@@ -18054,13 +18031,13 @@ var t = e(((e) => {
18054
18031
  }
18055
18032
  });
18056
18033
  return Object.assign(function(e, t) {
18057
- d = e, t ||= {}, v.setSource(d, r.tokenize), _.setSource(d, t.offset, t.line, t.column), f = t.filename || `<unknown>`, m = !!t.positions, h = typeof t.onParseError == `function` ? t.onParseError : u, g = !1, v.parseAtrulePrelude = `parseAtrulePrelude` in t ? !!t.parseAtrulePrelude : !0, v.parseRulePrelude = `parseRulePrelude` in t ? !!t.parseRulePrelude : !0, v.parseValue = `parseValue` in t ? !!t.parseValue : !0, v.parseCustomProperty = `parseCustomProperty` in t ? !!t.parseCustomProperty : !1;
18034
+ d = e, t ||= {}, v.setSource(d, r.tokenize), _.setSource(d, t.offset, t.line, t.column), f = t.filename || `<unknown>`, m = !!t.positions, h = typeof t.onParseError == `function` ? t.onParseError : u, g = !1, v.parseAtrulePrelude = `parseAtrulePrelude` in t ? !!t.parseAtrulePrelude : !0, v.parseRulePrelude = `parseRulePrelude` in t ? !!t.parseRulePrelude : !0, v.parseValue = `parseValue` in t ? !!t.parseValue : !0, v.parseCustomProperty = `parseCustomProperty` in t && !!t.parseCustomProperty;
18058
18035
  let { context: n = `default`, onComment: i } = t;
18059
18036
  if (!(n in v.context)) throw Error("Unknown context `" + n + "`");
18060
18037
  typeof i == `function` && v.forEachToken((e, t, n) => {
18061
18038
  if (e === c.Comment) {
18062
- let e = v.getLocation(t, n);
18063
- i(s.cmpStr(d, n - 2, n, `*/`) ? d.slice(t + 2, n - 2) : d.slice(t + 2, n), e);
18039
+ let e = v.getLocation(t, n), r = s.cmpStr(d, n - 2, n, `*/`) ? d.slice(t + 2, n - 2) : d.slice(t + 2, n);
18040
+ i(r, e);
18064
18041
  }
18065
18042
  });
18066
18043
  let a = v.context[n].call(v, t);
@@ -18376,7 +18353,7 @@ var t = e(((e) => {
18376
18353
  let p = c(l), m = c(u), h = function(e, t) {
18377
18354
  function o(e, t, n) {
18378
18355
  let r = s.call(_, e, t, n);
18379
- return r === d ? !0 : r === f ? !1 : !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
18356
+ return r === d || r !== f && !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
18380
18357
  }
18381
18358
  let s = n, c = n, h = l, g = (e, t, n, r) => e || o(t, n, r), _ = {
18382
18359
  break: d,
@@ -18707,7 +18684,7 @@ var t = e(((e) => {
18707
18684
  return !1;
18708
18685
  }
18709
18686
  function x(e, t) {
18710
- return t === e.length - 2 ? v(e, t) === 92 && o.isDigit(v(e, t + 1)) : !1;
18687
+ return t === e.length - 2 && v(e, t) === 92 && o.isDigit(v(e, t + 1));
18711
18688
  }
18712
18689
  function S(e, t, n) {
18713
18690
  if (e && e.type === `Range`) {
@@ -18732,9 +18709,7 @@ var t = e(((e) => {
18732
18709
  case a.Function:
18733
18710
  case a.LeftParenthesis:
18734
18711
  case a.LeftSquareBracket:
18735
- case a.LeftCurlyBracket:
18736
- r.push(n), n = l.get(e.type);
18737
- break;
18712
+ case a.LeftCurlyBracket: r.push(n), n = l.get(e.type);
18738
18713
  }
18739
18714
  i++;
18740
18715
  } while (e = t(i));
@@ -18790,9 +18765,7 @@ var t = e(((e) => {
18790
18765
  case a.Function:
18791
18766
  case a.LeftParenthesis:
18792
18767
  case a.LeftSquareBracket:
18793
- case a.LeftCurlyBracket:
18794
- r.push(n), n = l.get(e.type);
18795
- break;
18768
+ case a.LeftCurlyBracket: r.push(n), n = l.get(e.type);
18796
18769
  }
18797
18770
  i++;
18798
18771
  } while (e = t(i));
@@ -18814,9 +18787,7 @@ var t = e(((e) => {
18814
18787
  case a.Function:
18815
18788
  case a.LeftParenthesis:
18816
18789
  case a.LeftSquareBracket:
18817
- case a.LeftCurlyBracket:
18818
- r.push(n), n = l.get(e.type);
18819
- break;
18790
+ case a.LeftCurlyBracket: r.push(n), n = l.get(e.type);
18820
18791
  }
18821
18792
  i++;
18822
18793
  } while (e = t(i));
@@ -19370,13 +19341,13 @@ var t = e(((e) => {
19370
19341
  return !0;
19371
19342
  }
19372
19343
  function s(e) {
19373
- return e.type === n.Delim ? e.value !== `?` : !1;
19344
+ return e.type === n.Delim && e.value !== `?`;
19374
19345
  }
19375
19346
  function c(e) {
19376
- return e === null ? !0 : e.type === n.Comma || e.type === n.Function || e.type === n.LeftParenthesis || e.type === n.LeftSquareBracket || e.type === n.LeftCurlyBracket || s(e);
19347
+ return e === null || e.type === n.Comma || e.type === n.Function || e.type === n.LeftParenthesis || e.type === n.LeftSquareBracket || e.type === n.LeftCurlyBracket || s(e);
19377
19348
  }
19378
19349
  function l(e) {
19379
- return e === null ? !0 : e.type === n.RightParenthesis || e.type === n.RightSquareBracket || e.type === n.RightCurlyBracket || e.type === n.Delim && e.value === `/`;
19350
+ return e === null || e.type === n.RightParenthesis || e.type === n.RightSquareBracket || e.type === n.RightCurlyBracket || e.type === n.Delim && e.value === `/`;
19380
19351
  }
19381
19352
  function u(e, a, s) {
19382
19353
  function u() {
@@ -19616,12 +19587,10 @@ var t = e(((e) => {
19616
19587
  syntax: e.syntax
19617
19588
  });
19618
19589
  break;
19619
- default:
19620
- r.match.push({
19621
- token: e.token.value,
19622
- node: e.token.node
19623
- });
19624
- break;
19590
+ default: r.match.push({
19591
+ token: e.token.value,
19592
+ node: e.token.node
19593
+ });
19625
19594
  }
19626
19595
  e = e.prev;
19627
19596
  }
@@ -19682,7 +19651,7 @@ var t = e(((e) => {
19682
19651
  }
19683
19652
  function a(e, n, r) {
19684
19653
  let i = t.call(e, n);
19685
- return i === null ? !1 : i.some(r);
19654
+ return i !== null && i.some(r);
19686
19655
  }
19687
19656
  e.getTrace = t, e.isKeyword = i, e.isProperty = r, e.isType = n;
19688
19657
  })), on = e(((e) => {
@@ -29639,9 +29608,7 @@ var t = e(((e) => {
29639
29608
  case 110:
29640
29609
  n = `N is expected`;
29641
29610
  break;
29642
- case 45:
29643
- n = `HyphenMinus is expected`;
29644
- break;
29611
+ case 45: n = `HyphenMinus is expected`;
29645
29612
  }
29646
29613
  this.error(n, this.tokenStart + e);
29647
29614
  }
@@ -29734,9 +29701,7 @@ var t = e(((e) => {
29734
29701
  case t.Semicolon:
29735
29702
  this.next();
29736
29703
  break;
29737
- case t.LeftCurlyBracket:
29738
- s = hasOwnProperty.call(this.atrule, a) && typeof this.atrule[a].block == `function` ? this.atrule[a].block.call(this) : this.Block(r.call(this));
29739
- break;
29704
+ case t.LeftCurlyBracket: s = hasOwnProperty.call(this.atrule, a) && typeof this.atrule[a].block == `function` ? this.atrule[a].block.call(this) : this.Block(r.call(this));
29740
29705
  }
29741
29706
  return {
29742
29707
  type: `Atrule`,
@@ -29925,7 +29890,6 @@ var t = e(((e) => {
29925
29890
  default: this.error(`Combinator is expected`);
29926
29891
  }
29927
29892
  n = this.substrToCursor(e);
29928
- break;
29929
29893
  }
29930
29894
  return {
29931
29895
  type: `Combinator`,
@@ -30012,7 +29976,7 @@ var t = e(((e) => {
30012
29976
  function u() {
30013
29977
  this.eat(n.Delim), this.skipSC();
30014
29978
  let e = this.consume(n.Ident);
30015
- return e === `important` ? !0 : e;
29979
+ return e === `important` || e;
30016
29980
  }
30017
29981
  e.generate = c, e.name = `Declaration`, e.parse = s, e.structure = o, e.walkContext = `declaration`;
30018
29982
  })), An = e(((e) => {
@@ -30754,18 +30718,16 @@ var t = e(((e) => {
30754
30718
  case n.Dimension:
30755
30719
  this.charCodeAt(this.tokenStart) === 46 && this.error(`Identifier is expected`, this.tokenStart + 1);
30756
30720
  break;
30757
- case n.Delim:
30758
- switch (this.charCodeAt(this.tokenStart)) {
30759
- case 43:
30760
- case 62:
30761
- case 126:
30762
- case 47: return this.Combinator();
30763
- case 46: return this.ClassSelector();
30764
- case 42:
30765
- case 124: return this.TypeSelector();
30766
- case 35: return this.IdSelector();
30767
- }
30768
- break;
30721
+ case n.Delim: switch (this.charCodeAt(this.tokenStart)) {
30722
+ case 43:
30723
+ case 62:
30724
+ case 126:
30725
+ case 47: return this.Combinator();
30726
+ case 46: return this.ClassSelector();
30727
+ case 42:
30728
+ case 124: return this.TypeSelector();
30729
+ case 35: return this.IdSelector();
30730
+ }
30769
30731
  }
30770
30732
  }
30771
30733
  t.exports = {
@@ -151,7 +151,7 @@ var n = e(((e, t) => {
151
151
  return;
152
152
  }
153
153
  n.prevUntil(t.prev, function(e) {
154
- if (!(e.type === `Atrule` && (e.name === `import` || e.name === `charset`))) return this.root.firstAtrulesAllowed = !1, n.remove(t), !0;
154
+ if (e.type !== `Atrule` || e.name !== `import` && e.name !== `charset`) return this.root.firstAtrulesAllowed = !1, n.remove(t), !0;
155
155
  }, this);
156
156
  break;
157
157
  default: {
@@ -347,7 +347,7 @@ var n = e(((e, t) => {
347
347
  t(), n.push(e);
348
348
  return;
349
349
  }
350
- e.type === `Identifier` && (e.name === `transparent` || e.name === `none` || e.name === `repeat` || e.name === `scroll`) || i.push(e);
350
+ (e.type !== `Identifier` || e.name !== `transparent` && e.name !== `none` && e.name !== `repeat` && e.name !== `scroll`) && i.push(e);
351
351
  }), t(), e.children = new r.List().fromArray(n);
352
352
  }
353
353
  n.exports = i;
@@ -878,9 +878,7 @@ var n = e(((e, t) => {
878
878
  case `TypeSelector`:
879
879
  e.name.endsWith(`*`) || r++;
880
880
  break;
881
- case `PseudoElementSelector`:
882
- r++;
883
- break;
881
+ case `PseudoElementSelector`: r++;
884
882
  }
885
883
  }), [
886
884
  t,
@@ -934,12 +932,10 @@ var n = e(((e, t) => {
934
932
  case `AttributeSelector`:
935
933
  i.flags && n.add(`[${i.flags.toLowerCase()}]`);
936
934
  break;
937
- case `Combinator`:
938
- s = `*`;
939
- break;
935
+ case `Combinator`: s = `*`;
940
936
  }
941
937
  }), e.compareMarker = i(e).toString(), e.id = null, e.id = r.generate(e), c && (e.compareMarker += `:` + c), s !== `*` && (e.compareMarker += `,` + s);
942
- }), e.pseudoSignature = n.size > 0 ? [...n].sort().join(`,`) : !1;
938
+ }), e.pseudoSignature = n.size > 0 && [...n].sort().join(`,`);
943
939
  }
944
940
  n.exports = s;
945
941
  })), j = e(((e, n) => {
@@ -978,12 +974,10 @@ var n = e(((e, t) => {
978
974
  case `keyframes`:
979
975
  a(n, o, s, !0);
980
976
  return;
981
- case `media`:
982
- if (t.forceMediaMerge) {
983
- a(n, o, s, !1);
984
- return;
985
- }
986
- break;
977
+ case `media`: if (t.forceMediaMerge) {
978
+ a(n, o, s, !1);
979
+ return;
980
+ }
987
981
  }
988
982
  i === null && c !== `charset` && c !== `import` && (i = o);
989
983
  } else i === null && (i = o);
@@ -1200,9 +1194,7 @@ var n = e(((e, t) => {
1200
1194
  case `inherit`:
1201
1195
  case `initial`:
1202
1196
  case `unset`:
1203
- case `revert`:
1204
- i = t.name;
1205
- break;
1197
+ case `revert`: i = t.name;
1206
1198
  }
1207
1199
  break;
1208
1200
  case `Dimension`:
@@ -1212,9 +1204,7 @@ var n = e(((e, t) => {
1212
1204
  case `vh`:
1213
1205
  case `vmin`:
1214
1206
  case `vmax`:
1215
- case `vm`:
1216
- i = t.unit;
1217
- break;
1207
+ case `vm`: i = t.unit;
1218
1208
  }
1219
1209
  break;
1220
1210
  case `Hash`:
@@ -1256,9 +1246,7 @@ var n = e(((e, t) => {
1256
1246
  case 2:
1257
1247
  e[2] = e[0], e[3] = e[1];
1258
1248
  break;
1259
- case 3:
1260
- e[3] = e[1];
1261
- break;
1249
+ case 3: e[3] = e[1];
1262
1250
  }
1263
1251
  for (let t = 0; t < 4; t++) for (let r in n) if (n[r] !== null && n[r].special !== e[t].special) return !1;
1264
1252
  for (let t = 0; t < 4; t++) this.canOverride(i[t], e[t]) && (n[i[t]] = e[t]);
@@ -1508,9 +1496,7 @@ var n = e(((e, t) => {
1508
1496
  case `vh`:
1509
1497
  case `vmin`:
1510
1498
  case `vmax`:
1511
- case `vm`:
1512
- e[t] = !0;
1513
- break;
1499
+ case `vm`: e[t] = !0;
1514
1500
  }
1515
1501
  break;
1516
1502
  }
@@ -1577,7 +1563,8 @@ var n = e(((e, t) => {
1577
1563
  if (i.isEqualDeclarations(a, u)) {
1578
1564
  let e = l.data.id;
1579
1565
  r.some((t, n) => {
1580
- if (e < t.id) return r.insert(l, n), !0;
1566
+ let i = t.id;
1567
+ if (e < i) return r.insert(l, n), !0;
1581
1568
  if (!n.next) return r.insert(l), !0;
1582
1569
  }), n.remove(c);
1583
1570
  return;
@@ -1604,7 +1591,7 @@ var n = e(((e, t) => {
1604
1591
  return t + e.length - 1;
1605
1592
  }
1606
1593
  function s(e, t, n) {
1607
- let s = this.block === null ? !1 : this.block.avoidRulesMerge, c = e.prelude.children, l = e.block, u = Object.create(null), d = !0, f = !0;
1594
+ let s = this.block !== null && this.block.avoidRulesMerge, c = e.prelude.children, l = e.block, u = Object.create(null), d = !0, f = !0;
1608
1595
  n.prevUntil(t.prev, function(p, m) {
1609
1596
  let h = p.block, g = p.type;
1610
1597
  if (g !== `Rule`) {
@@ -15,7 +15,7 @@ var n = e(((e, n) => {
15
15
  return r ? `W/` + i : i;
16
16
  }
17
17
  function c(e) {
18
- return typeof i == `function` && e instanceof i ? !0 : e && typeof e == `object` && `ctime` in e && a.call(e.ctime) === `[object Date]` && `mtime` in e && a.call(e.mtime) === `[object Date]` && `ino` in e && typeof e.ino == `number` && `size` in e && typeof e.size == `number`;
18
+ return typeof i == `function` && e instanceof i || e && typeof e == `object` && `ctime` in e && a.call(e.ctime) === `[object Date]` && `mtime` in e && a.call(e.mtime) === `[object Date]` && `ino` in e && typeof e.ino == `number` && `size` in e && typeof e.size == `number`;
19
19
  }
20
20
  function l(e) {
21
21
  var t = e.mtime.getTime().toString(16);
@@ -0,0 +1,3 @@
1
+ import "./crossws.mjs";
2
+ import "srvx";
3
+ export { r as HTTPError };