@quoreadmin/ui 1.7.19 → 1.7.20

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.
Files changed (170) hide show
  1. package/dist/index140.js +2 -2
  2. package/dist/index142.js +1 -1
  3. package/dist/index173.js +3 -3
  4. package/dist/index183.js +10 -10
  5. package/dist/index185.js +10 -10
  6. package/dist/index187.js +36 -1190
  7. package/dist/{index190.js → index188.js} +17 -17
  8. package/dist/index189.js +1190 -36
  9. package/dist/index191.js +9 -9
  10. package/dist/index192.js +1 -1
  11. package/dist/index193.js +1 -1
  12. package/dist/index194.js +1 -1
  13. package/dist/index202.js +4 -4
  14. package/dist/index206.js +2 -2
  15. package/dist/index207.js +1 -1
  16. package/dist/index208.js +1 -1
  17. package/dist/index209.js +1 -1
  18. package/dist/index210.js +1 -1
  19. package/dist/index211.js +4 -4
  20. package/dist/index213.js +4 -4
  21. package/dist/index216.js +1 -1
  22. package/dist/index217.js +67 -106
  23. package/dist/index218.js +395 -26
  24. package/dist/index219.js +21 -406
  25. package/dist/index220.js +157 -76
  26. package/dist/index221.js +10 -10
  27. package/dist/index222.js +19 -87
  28. package/dist/index223.js +15 -13
  29. package/dist/index224.js +198 -19
  30. package/dist/index225.js +68 -18
  31. package/dist/index226.js +34 -20
  32. package/dist/index227.js +39 -21
  33. package/dist/index228.js +121 -155
  34. package/dist/index229.js +37 -19
  35. package/dist/index230.js +80 -22
  36. package/dist/index231.js +19 -198
  37. package/dist/index232.js +18 -68
  38. package/dist/index233.js +20 -34
  39. package/dist/index234.js +19 -39
  40. package/dist/index239.js +6 -6
  41. package/dist/index240.js +1 -1
  42. package/dist/index241.js +1 -1
  43. package/dist/index254.js +2 -2
  44. package/dist/index255.js +1 -1
  45. package/dist/index256.js +1 -1
  46. package/dist/index257.js +1 -1
  47. package/dist/index258.js +8 -8
  48. package/dist/index259.js +2 -2
  49. package/dist/index261.js +1 -1
  50. package/dist/index262.js +1 -1
  51. package/dist/index263.js +1 -1
  52. package/dist/index265.js +2 -2
  53. package/dist/index266.js +2 -2
  54. package/dist/index267.js +8 -8
  55. package/dist/index268.js +1 -1
  56. package/dist/index269.js +1 -1
  57. package/dist/index270.js +1 -1
  58. package/dist/index271.js +1 -1
  59. package/dist/index272.js +1 -1
  60. package/dist/index273.js +1 -1
  61. package/dist/index280.js +3 -2
  62. package/dist/index281.js +25 -77
  63. package/dist/index283.js +78 -25
  64. package/dist/index284.js +19 -15
  65. package/dist/index285.js +10 -10
  66. package/dist/index286.js +22 -16
  67. package/dist/index287.js +14 -15
  68. package/dist/index288.js +15 -21
  69. package/dist/index289.js +22 -261
  70. package/dist/index290.js +2 -6
  71. package/dist/index291.js +1508 -130
  72. package/dist/index292.js +378 -65
  73. package/dist/index293.js +2725 -81
  74. package/dist/index294.js +83 -26
  75. package/dist/index295.js +3767 -13
  76. package/dist/index296.js +57 -72
  77. package/dist/index297.js +15 -4
  78. package/dist/index298.js +84 -2
  79. package/dist/index299.js +193 -74
  80. package/dist/index300.js +246 -53
  81. package/dist/index301.js +78 -5
  82. package/dist/index302.js +21 -4
  83. package/dist/index303.js +920 -164
  84. package/dist/index304.js +21 -62
  85. package/dist/index305.js +20 -75
  86. package/dist/index306.js +20 -1518
  87. package/dist/index307.js +59 -376
  88. package/dist/index308.js +19 -2731
  89. package/dist/index309.js +19 -86
  90. package/dist/index310.js +22 -3770
  91. package/dist/index311.js +21 -59
  92. package/dist/index312.js +63 -15
  93. package/dist/index313.js +254 -76
  94. package/dist/index314.js +4 -200
  95. package/dist/index315.js +129 -235
  96. package/dist/index316.js +73 -3
  97. package/dist/index317.js +85 -25
  98. package/dist/index318.js +25 -75
  99. package/dist/index319.js +14 -20
  100. package/dist/index320.js +66 -926
  101. package/dist/index321.js +3 -21
  102. package/dist/index322.js +2 -20
  103. package/dist/index323.js +82 -19
  104. package/dist/index324.js +52 -68
  105. package/dist/index325.js +6 -19
  106. package/dist/index326.js +5 -19
  107. package/dist/index327.js +178 -21
  108. package/dist/index328.js +62 -21
  109. package/dist/index329.js +74 -62
  110. package/dist/index330.js +8 -36
  111. package/dist/index331.js +12 -18
  112. package/dist/index332.js +53 -55
  113. package/dist/index333.js +10 -27
  114. package/dist/index334.js +13 -6
  115. package/dist/index335.js +54 -48
  116. package/dist/index336.js +52 -7
  117. package/dist/index337.js +30 -11
  118. package/dist/index338.js +2 -7
  119. package/dist/index339.js +4 -27
  120. package/dist/index340.js +2 -2
  121. package/dist/index341.js +22 -69
  122. package/dist/index342.js +38 -164
  123. package/dist/index343.js +2 -9
  124. package/dist/index344.js +11 -13
  125. package/dist/index345.js +16 -51
  126. package/dist/index346.js +16 -11
  127. package/dist/index347.js +10 -14
  128. package/dist/index348.js +10 -58
  129. package/dist/index349.js +2 -52
  130. package/dist/index350.js +9 -31
  131. package/dist/index351.js +10 -2
  132. package/dist/index352.js +13 -4
  133. package/dist/index353.js +37 -2
  134. package/dist/index354.js +20 -23
  135. package/dist/index355.js +19 -40
  136. package/dist/index356.js +64 -2
  137. package/dist/index357.js +36 -10
  138. package/dist/index358.js +16 -17
  139. package/dist/index359.js +56 -16
  140. package/dist/index360.js +29 -10
  141. package/dist/index361.js +7 -10
  142. package/dist/index362.js +52 -2
  143. package/dist/index363.js +6 -8
  144. package/dist/index364.js +11 -9
  145. package/dist/index365.js +6 -13
  146. package/dist/index366.js +28 -20
  147. package/dist/index367.js +2 -20
  148. package/dist/index368.js +67 -61
  149. package/dist/index369.js +166 -36
  150. package/dist/index370.js +98 -28
  151. package/dist/index371.js +90 -10
  152. package/dist/index372.js +98 -4
  153. package/dist/index373.js +17 -4
  154. package/dist/index374.js +30 -12
  155. package/dist/index375.js +11 -7
  156. package/dist/index376.js +3 -11
  157. package/dist/index377.js +3 -4
  158. package/dist/index378.js +13 -33
  159. package/dist/index379.js +7 -31
  160. package/dist/index380.js +12 -28
  161. package/dist/index381.js +5 -61
  162. package/dist/index382.js +33 -98
  163. package/dist/index383.js +29 -99
  164. package/dist/index384.js +28 -91
  165. package/dist/index385.js +60 -16
  166. package/dist/index386.js +1 -1
  167. package/dist/index391.js +1 -1
  168. package/dist/index392.js +2 -2
  169. package/dist/index43.js +18 -16
  170. package/package.json +1 -1
package/dist/index372.js CHANGED
@@ -1,6 +1,100 @@
1
- function e(t) {
2
- return typeof t != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
3
- }
1
+ var l = 200, p = function() {
2
+ };
3
+ p.prototype.append = function(t) {
4
+ return t.length ? (t = p.from(t), !this.length && t || t.length < l && this.leafAppend(t) || this.length < l && t.leafPrepend(this) || this.appendInner(t)) : this;
5
+ };
6
+ p.prototype.prepend = function(t) {
7
+ return t.length ? p.from(t).append(this) : this;
8
+ };
9
+ p.prototype.appendInner = function(t) {
10
+ return new u(this, t);
11
+ };
12
+ p.prototype.slice = function(t, r) {
13
+ return t === void 0 && (t = 0), r === void 0 && (r = this.length), t >= r ? p.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, r));
14
+ };
15
+ p.prototype.get = function(t) {
16
+ if (!(t < 0 || t >= this.length))
17
+ return this.getInner(t);
18
+ };
19
+ p.prototype.forEach = function(t, r, e) {
20
+ r === void 0 && (r = 0), e === void 0 && (e = this.length), r <= e ? this.forEachInner(t, r, e, 0) : this.forEachInvertedInner(t, r, e, 0);
21
+ };
22
+ p.prototype.map = function(t, r, e) {
23
+ r === void 0 && (r = 0), e === void 0 && (e = this.length);
24
+ var n = [];
25
+ return this.forEach(function(i, s) {
26
+ return n.push(t(i, s));
27
+ }, r, e), n;
28
+ };
29
+ p.from = function(t) {
30
+ return t instanceof p ? t : t && t.length ? new o(t) : p.empty;
31
+ };
32
+ var o = /* @__PURE__ */ (function(h) {
33
+ function t(e) {
34
+ h.call(this), this.values = e;
35
+ }
36
+ h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t;
37
+ var r = { length: { configurable: !0 }, depth: { configurable: !0 } };
38
+ return t.prototype.flatten = function() {
39
+ return this.values;
40
+ }, t.prototype.sliceInner = function(n, i) {
41
+ return n == 0 && i == this.length ? this : new t(this.values.slice(n, i));
42
+ }, t.prototype.getInner = function(n) {
43
+ return this.values[n];
44
+ }, t.prototype.forEachInner = function(n, i, s, f) {
45
+ for (var a = i; a < s; a++)
46
+ if (n(this.values[a], f + a) === !1)
47
+ return !1;
48
+ }, t.prototype.forEachInvertedInner = function(n, i, s, f) {
49
+ for (var a = i - 1; a >= s; a--)
50
+ if (n(this.values[a], f + a) === !1)
51
+ return !1;
52
+ }, t.prototype.leafAppend = function(n) {
53
+ if (this.length + n.length <= l)
54
+ return new t(this.values.concat(n.flatten()));
55
+ }, t.prototype.leafPrepend = function(n) {
56
+ if (this.length + n.length <= l)
57
+ return new t(n.flatten().concat(this.values));
58
+ }, r.length.get = function() {
59
+ return this.values.length;
60
+ }, r.depth.get = function() {
61
+ return 0;
62
+ }, Object.defineProperties(t.prototype, r), t;
63
+ })(p);
64
+ p.empty = new o([]);
65
+ var u = /* @__PURE__ */ (function(h) {
66
+ function t(r, e) {
67
+ h.call(this), this.left = r, this.right = e, this.length = r.length + e.length, this.depth = Math.max(r.depth, e.depth) + 1;
68
+ }
69
+ return h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
70
+ return this.left.flatten().concat(this.right.flatten());
71
+ }, t.prototype.getInner = function(e) {
72
+ return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
73
+ }, t.prototype.forEachInner = function(e, n, i, s) {
74
+ var f = this.left.length;
75
+ if (n < f && this.left.forEachInner(e, n, Math.min(i, f), s) === !1 || i > f && this.right.forEachInner(e, Math.max(n - f, 0), Math.min(this.length, i) - f, s + f) === !1)
76
+ return !1;
77
+ }, t.prototype.forEachInvertedInner = function(e, n, i, s) {
78
+ var f = this.left.length;
79
+ if (n > f && this.right.forEachInvertedInner(e, n - f, Math.max(i, f) - f, s + f) === !1 || i < f && this.left.forEachInvertedInner(e, Math.min(n, f), i, s) === !1)
80
+ return !1;
81
+ }, t.prototype.sliceInner = function(e, n) {
82
+ if (e == 0 && n == this.length)
83
+ return this;
84
+ var i = this.left.length;
85
+ return n <= i ? this.left.slice(e, n) : e >= i ? this.right.slice(e - i, n - i) : this.left.slice(e, i).append(this.right.slice(0, n - i));
86
+ }, t.prototype.leafAppend = function(e) {
87
+ var n = this.right.leafAppend(e);
88
+ if (n)
89
+ return new t(this.left, n);
90
+ }, t.prototype.leafPrepend = function(e) {
91
+ var n = this.left.leafPrepend(e);
92
+ if (n)
93
+ return new t(n, this.right);
94
+ }, t.prototype.appendInner = function(e) {
95
+ return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
96
+ }, t;
97
+ })(p);
4
98
  export {
5
- e as default
99
+ p as default
6
100
  };
package/dist/index373.js CHANGED
@@ -1,6 +1,19 @@
1
- function n(e, c) {
2
- return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
3
- }
1
+ import n from "./index278.js";
2
+ var l = {
3
+ root: function(e) {
4
+ var i = e.instance, t = e.props;
5
+ return ["p-inputtext p-component", {
6
+ "p-filled": i.filled,
7
+ "p-inputtext-sm": t.size === "small",
8
+ "p-inputtext-lg": t.size === "large",
9
+ "p-invalid": t.invalid,
10
+ "p-variant-filled": t.variant ? t.variant === "filled" : i.$primevue.config.inputStyle === "filled"
11
+ }];
12
+ }
13
+ }, r = n.extend({
14
+ name: "inputtext",
15
+ classes: l
16
+ });
4
17
  export {
5
- n as default
18
+ r as default
6
19
  };
package/dist/index374.js CHANGED
@@ -1,15 +1,33 @@
1
- import o from "./index386.js";
2
- import r from "./index387.js";
3
- import t from "./index388.js";
4
- const l = {
5
- isBrowser: !0,
6
- classes: {
7
- URLSearchParams: o,
8
- FormData: r,
9
- Blob: t
10
- },
11
- protocols: ["http", "https", "file", "blob", "url", "data"]
1
+ import p from "./index323.js";
2
+ function i(n) {
3
+ const t = {
4
+ "!": "%21",
5
+ "'": "%27",
6
+ "(": "%28",
7
+ ")": "%29",
8
+ "~": "%7E",
9
+ "%20": "+",
10
+ "%00": "\0"
11
+ };
12
+ return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
13
+ return t[r];
14
+ });
15
+ }
16
+ function a(n, t) {
17
+ this._pairs = [], n && p(n, this, t);
18
+ }
19
+ const c = a.prototype;
20
+ c.append = function(t, o) {
21
+ this._pairs.push([t, o]);
22
+ };
23
+ c.toString = function(t) {
24
+ const o = t ? function(r) {
25
+ return t.call(this, r, i);
26
+ } : i;
27
+ return this._pairs.map(function(e) {
28
+ return o(e[0]) + "=" + o(e[1]);
29
+ }, "").join("&");
12
30
  };
13
31
  export {
14
- l as default
32
+ a as default
15
33
  };
package/dist/index375.js CHANGED
@@ -1,9 +1,13 @@
1
- const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2
- self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
1
+ import i from "./index313.js";
2
+ import m from "./index317.js";
3
+ import s from "./index327.js";
4
+ function h(f, t) {
5
+ const o = this || m, r = t || o, n = s.from(r.headers);
6
+ let a = r.data;
7
+ return i.forEach(f, function(e) {
8
+ a = e.call(o, a, n.normalize(), t ? t.status : void 0);
9
+ }), n.normalize(), a;
10
+ }
3
11
  export {
4
- e as hasBrowserEnv,
5
- n as hasStandardBrowserEnv,
6
- t as hasStandardBrowserWebWorkerEnv,
7
- o as navigator,
8
- r as origin
12
+ h as default
9
13
  };
package/dist/index376.js CHANGED
@@ -1,14 +1,6 @@
1
- import a from "./index300.js";
2
- function E(i, f, t) {
3
- const u = t.config.validateStatus;
4
- !t.status || !u || u(t.status) ? i(t) : f(new a(
5
- "Request failed with status code " + t.status,
6
- [a.ERR_BAD_REQUEST, a.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
7
- t.config,
8
- t.request,
9
- t
10
- ));
1
+ function e(t) {
2
+ return typeof t != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
11
3
  }
12
4
  export {
13
- E as default
5
+ e as default
14
6
  };
package/dist/index377.js CHANGED
@@ -1,7 +1,6 @@
1
- function o(e) {
2
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3
- return t && t[1] || "";
1
+ function n(e, c) {
2
+ return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
4
3
  }
5
4
  export {
6
- o as default
5
+ n as default
7
6
  };
package/dist/index378.js CHANGED
@@ -1,35 +1,15 @@
1
- import i from "./index389.js";
2
- import m from "./index390.js";
3
- import f from "./index289.js";
4
- const h = (t, o, a = 3) => {
5
- let r = 0;
6
- const c = i(50, 250);
7
- return m((s) => {
8
- const n = s.loaded, e = s.lengthComputable ? s.total : void 0, l = n - r, d = c(l), p = n <= e;
9
- r = n;
10
- const u = {
11
- loaded: n,
12
- total: e,
13
- progress: e ? n / e : void 0,
14
- bytes: l,
15
- rate: d || void 0,
16
- estimated: d && e && p ? (e - n) / d : void 0,
17
- event: s,
18
- lengthComputable: e != null,
19
- [o ? "download" : "upload"]: !0
20
- };
21
- t(u);
22
- }, a);
23
- }, v = (t, o) => {
24
- const a = t != null;
25
- return [(r) => o[0]({
26
- lengthComputable: a,
27
- total: t,
28
- loaded: r
29
- }), o[1]];
30
- }, C = (t) => (...o) => f.asap(() => t(...o));
1
+ import o from "./index386.js";
2
+ import r from "./index387.js";
3
+ import t from "./index388.js";
4
+ const l = {
5
+ isBrowser: !0,
6
+ classes: {
7
+ URLSearchParams: o,
8
+ FormData: r,
9
+ Blob: t
10
+ },
11
+ protocols: ["http", "https", "file", "blob", "url", "data"]
12
+ };
31
13
  export {
32
- C as asyncDecorator,
33
- v as progressEventDecorator,
34
- h as progressEventReducer
14
+ l as default
35
15
  };
package/dist/index379.js CHANGED
@@ -1,33 +1,9 @@
1
- import n from "./index338.js";
2
- import m from "./index289.js";
3
- import c from "./index391.js";
4
- import h from "./index392.js";
5
- import w from "./index334.js";
6
- import b from "./index292.js";
7
- import C from "./index303.js";
8
- import g from "./index331.js";
9
- const E = (a) => {
10
- const e = b({}, a);
11
- let { data: i, withXSRFToken: r, xsrfHeaderName: f, xsrfCookieName: d, headers: o, auth: s } = e;
12
- if (e.headers = o = C.from(o), e.url = g(w(e.baseURL, e.url, e.allowAbsoluteUrls), a.params, a.paramsSerializer), s && o.set(
13
- "Authorization",
14
- "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
15
- ), m.isFormData(i)) {
16
- if (n.hasStandardBrowserEnv || n.hasStandardBrowserWebWorkerEnv)
17
- o.setContentType(void 0);
18
- else if (m.isFunction(i.getHeaders)) {
19
- const t = i.getHeaders(), u = ["content-type", "content-length"];
20
- Object.entries(t).forEach(([l, p]) => {
21
- u.includes(l.toLowerCase()) && o.set(l, p);
22
- });
23
- }
24
- }
25
- if (n.hasStandardBrowserEnv && (r && m.isFunction(r) && (r = r(e)), r || r !== !1 && c(e.url))) {
26
- const t = f && d && h.read(d);
27
- t && o.set(f, t);
28
- }
29
- return e;
30
- };
1
+ const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
31
3
  export {
32
- E as default
4
+ e as hasBrowserEnv,
5
+ n as hasStandardBrowserEnv,
6
+ t as hasStandardBrowserWebWorkerEnv,
7
+ o as navigator,
8
+ r as origin
33
9
  };
package/dist/index380.js CHANGED
@@ -1,30 +1,14 @@
1
- import a from "./index295.js";
2
- import s from "./index300.js";
3
- import m from "./index289.js";
4
- const h = (e, t) => {
5
- const { length: l } = e = e ? e.filter(Boolean) : [];
6
- if (t || l) {
7
- let u = new AbortController(), f;
8
- const n = function(r) {
9
- if (!f) {
10
- f = !0, i();
11
- const o = r instanceof Error ? r : this.reason;
12
- u.abort(o instanceof s ? o : new a(o instanceof Error ? o.message : o));
13
- }
14
- };
15
- let c = t && setTimeout(() => {
16
- c = null, n(new s(`timeout of ${t}ms exceeded`, s.ETIMEDOUT));
17
- }, t);
18
- const i = () => {
19
- e && (c && clearTimeout(c), c = null, e.forEach((r) => {
20
- r.unsubscribe ? r.unsubscribe(n) : r.removeEventListener("abort", n);
21
- }), e = null);
22
- };
23
- e.forEach((r) => r.addEventListener("abort", n));
24
- const { signal: b } = u;
25
- return b.unsubscribe = () => m.asap(i), b;
26
- }
27
- };
1
+ import a from "./index324.js";
2
+ function E(i, f, t) {
3
+ const u = t.config.validateStatus;
4
+ !t.status || !u || u(t.status) ? i(t) : f(new a(
5
+ "Request failed with status code " + t.status,
6
+ [a.ERR_BAD_REQUEST, a.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
7
+ t.config,
8
+ t.request,
9
+ t
10
+ ));
11
+ }
28
12
  export {
29
- h as default
13
+ E as default
30
14
  };
package/dist/index381.js CHANGED
@@ -1,63 +1,7 @@
1
- const f = function* (e, t) {
2
- let n = e.byteLength;
3
- if (n < t) {
4
- yield e;
5
- return;
6
- }
7
- let a = 0, r;
8
- for (; a < n; )
9
- r = a + t, yield e.slice(a, r), a = r;
10
- }, w = async function* (e, t) {
11
- for await (const n of b(e))
12
- yield* f(n, t);
13
- }, b = async function* (e) {
14
- if (e[Symbol.asyncIterator]) {
15
- yield* e;
16
- return;
17
- }
18
- const t = e.getReader();
19
- try {
20
- for (; ; ) {
21
- const { done: n, value: a } = await t.read();
22
- if (n)
23
- break;
24
- yield a;
25
- }
26
- } finally {
27
- await t.cancel();
28
- }
29
- }, h = (e, t, n, a) => {
30
- const r = w(e, t);
31
- let d = 0, o, c = (l) => {
32
- o || (o = !0, a && a(l));
33
- };
34
- return new ReadableStream({
35
- async pull(l) {
36
- try {
37
- const { done: i, value: y } = await r.next();
38
- if (i) {
39
- c(), l.close();
40
- return;
41
- }
42
- let s = y.byteLength;
43
- if (n) {
44
- let u = d += s;
45
- n(u);
46
- }
47
- l.enqueue(new Uint8Array(y));
48
- } catch (i) {
49
- throw c(i), i;
50
- }
51
- },
52
- cancel(l) {
53
- return c(l), r.return();
54
- }
55
- }, {
56
- highWaterMark: 2
57
- });
58
- };
1
+ function o(e) {
2
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3
+ return t && t[1] || "";
4
+ }
59
5
  export {
60
- w as readBytes,
61
- f as streamChunk,
62
- h as trackStream
6
+ o as default
63
7
  };
package/dist/index382.js CHANGED
@@ -1,100 +1,35 @@
1
- var l = 200, p = function() {
2
- };
3
- p.prototype.append = function(t) {
4
- return t.length ? (t = p.from(t), !this.length && t || t.length < l && this.leafAppend(t) || this.length < l && t.leafPrepend(this) || this.appendInner(t)) : this;
5
- };
6
- p.prototype.prepend = function(t) {
7
- return t.length ? p.from(t).append(this) : this;
8
- };
9
- p.prototype.appendInner = function(t) {
10
- return new u(this, t);
11
- };
12
- p.prototype.slice = function(t, r) {
13
- return t === void 0 && (t = 0), r === void 0 && (r = this.length), t >= r ? p.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, r));
14
- };
15
- p.prototype.get = function(t) {
16
- if (!(t < 0 || t >= this.length))
17
- return this.getInner(t);
18
- };
19
- p.prototype.forEach = function(t, r, e) {
20
- r === void 0 && (r = 0), e === void 0 && (e = this.length), r <= e ? this.forEachInner(t, r, e, 0) : this.forEachInvertedInner(t, r, e, 0);
21
- };
22
- p.prototype.map = function(t, r, e) {
23
- r === void 0 && (r = 0), e === void 0 && (e = this.length);
24
- var n = [];
25
- return this.forEach(function(i, s) {
26
- return n.push(t(i, s));
27
- }, r, e), n;
28
- };
29
- p.from = function(t) {
30
- return t instanceof p ? t : t && t.length ? new o(t) : p.empty;
31
- };
32
- var o = /* @__PURE__ */ (function(h) {
33
- function t(e) {
34
- h.call(this), this.values = e;
35
- }
36
- h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t;
37
- var r = { length: { configurable: !0 }, depth: { configurable: !0 } };
38
- return t.prototype.flatten = function() {
39
- return this.values;
40
- }, t.prototype.sliceInner = function(n, i) {
41
- return n == 0 && i == this.length ? this : new t(this.values.slice(n, i));
42
- }, t.prototype.getInner = function(n) {
43
- return this.values[n];
44
- }, t.prototype.forEachInner = function(n, i, s, f) {
45
- for (var a = i; a < s; a++)
46
- if (n(this.values[a], f + a) === !1)
47
- return !1;
48
- }, t.prototype.forEachInvertedInner = function(n, i, s, f) {
49
- for (var a = i - 1; a >= s; a--)
50
- if (n(this.values[a], f + a) === !1)
51
- return !1;
52
- }, t.prototype.leafAppend = function(n) {
53
- if (this.length + n.length <= l)
54
- return new t(this.values.concat(n.flatten()));
55
- }, t.prototype.leafPrepend = function(n) {
56
- if (this.length + n.length <= l)
57
- return new t(n.flatten().concat(this.values));
58
- }, r.length.get = function() {
59
- return this.values.length;
60
- }, r.depth.get = function() {
61
- return 0;
62
- }, Object.defineProperties(t.prototype, r), t;
63
- })(p);
64
- p.empty = new o([]);
65
- var u = /* @__PURE__ */ (function(h) {
66
- function t(r, e) {
67
- h.call(this), this.left = r, this.right = e, this.length = r.length + e.length, this.depth = Math.max(r.depth, e.depth) + 1;
68
- }
69
- return h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
70
- return this.left.flatten().concat(this.right.flatten());
71
- }, t.prototype.getInner = function(e) {
72
- return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
73
- }, t.prototype.forEachInner = function(e, n, i, s) {
74
- var f = this.left.length;
75
- if (n < f && this.left.forEachInner(e, n, Math.min(i, f), s) === !1 || i > f && this.right.forEachInner(e, Math.max(n - f, 0), Math.min(this.length, i) - f, s + f) === !1)
76
- return !1;
77
- }, t.prototype.forEachInvertedInner = function(e, n, i, s) {
78
- var f = this.left.length;
79
- if (n > f && this.right.forEachInvertedInner(e, n - f, Math.max(i, f) - f, s + f) === !1 || i < f && this.left.forEachInvertedInner(e, Math.min(n, f), i, s) === !1)
80
- return !1;
81
- }, t.prototype.sliceInner = function(e, n) {
82
- if (e == 0 && n == this.length)
83
- return this;
84
- var i = this.left.length;
85
- return n <= i ? this.left.slice(e, n) : e >= i ? this.right.slice(e - i, n - i) : this.left.slice(e, i).append(this.right.slice(0, n - i));
86
- }, t.prototype.leafAppend = function(e) {
87
- var n = this.right.leafAppend(e);
88
- if (n)
89
- return new t(this.left, n);
90
- }, t.prototype.leafPrepend = function(e) {
91
- var n = this.left.leafPrepend(e);
92
- if (n)
93
- return new t(n, this.right);
94
- }, t.prototype.appendInner = function(e) {
95
- return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
96
- }, t;
97
- })(p);
1
+ import i from "./index389.js";
2
+ import m from "./index390.js";
3
+ import f from "./index313.js";
4
+ const h = (t, o, a = 3) => {
5
+ let r = 0;
6
+ const c = i(50, 250);
7
+ return m((s) => {
8
+ const n = s.loaded, e = s.lengthComputable ? s.total : void 0, l = n - r, d = c(l), p = n <= e;
9
+ r = n;
10
+ const u = {
11
+ loaded: n,
12
+ total: e,
13
+ progress: e ? n / e : void 0,
14
+ bytes: l,
15
+ rate: d || void 0,
16
+ estimated: d && e && p ? (e - n) / d : void 0,
17
+ event: s,
18
+ lengthComputable: e != null,
19
+ [o ? "download" : "upload"]: !0
20
+ };
21
+ t(u);
22
+ }, a);
23
+ }, v = (t, o) => {
24
+ const a = t != null;
25
+ return [(r) => o[0]({
26
+ lengthComputable: a,
27
+ total: t,
28
+ loaded: r
29
+ }), o[1]];
30
+ }, C = (t) => (...o) => f.asap(() => t(...o));
98
31
  export {
99
- p as default
32
+ C as asyncDecorator,
33
+ v as progressEventDecorator,
34
+ h as progressEventReducer
100
35
  };