@quoreadmin/ui 1.10.25 → 1.10.27

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 (212) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index10.js +209 -180
  3. package/dist/index149.js +11 -5
  4. package/dist/index15.js +26 -26
  5. package/dist/index16.js +32 -22
  6. package/dist/index182.js +14 -14
  7. package/dist/index183.js +3 -3
  8. package/dist/index186.js +4 -4
  9. package/dist/index193.js +2 -2
  10. package/dist/index195.js +9 -9
  11. package/dist/index198.js +17 -17
  12. package/dist/index201.js +25 -25
  13. package/dist/index202.js +2 -2
  14. package/dist/index203.js +2 -2
  15. package/dist/index204.js +1 -1
  16. package/dist/index206.js +2 -2
  17. package/dist/index208.js +14 -14
  18. package/dist/index209.js +1 -1
  19. package/dist/index210.js +1 -1
  20. package/dist/index211.js +3 -3
  21. package/dist/index212.js +6 -6
  22. package/dist/index213.js +29 -84
  23. package/dist/index214.js +109 -400
  24. package/dist/index215.js +36 -22
  25. package/dist/index216.js +26 -33
  26. package/dist/index217.js +31 -111
  27. package/dist/index218.js +50 -35
  28. package/dist/index219.js +43 -26
  29. package/dist/index220.js +3 -35
  30. package/dist/index221.js +9 -51
  31. package/dist/index222.js +18 -42
  32. package/dist/index223.js +10 -4
  33. package/dist/index224.js +10 -9
  34. package/dist/index225.js +38 -18
  35. package/dist/index226.js +21 -10
  36. package/dist/index227.js +88 -10
  37. package/dist/index228.js +403 -35
  38. package/dist/index229.js +22 -21
  39. package/dist/index230.js +4 -4
  40. package/dist/index231.js +1 -1
  41. package/dist/index232.js +1 -1
  42. package/dist/index233.js +1 -1
  43. package/dist/index234.js +7 -7
  44. package/dist/index235.js +2 -2
  45. package/dist/index236.js +1 -1
  46. package/dist/index237.js +2 -2
  47. package/dist/index238.js +126 -21
  48. package/dist/index239.js +37 -21
  49. package/dist/index240.js +80 -20
  50. package/dist/index241.js +20 -836
  51. package/dist/index242.js +19 -701
  52. package/dist/index243.js +19 -175
  53. package/dist/index244.js +11 -11
  54. package/dist/index245.js +160 -19
  55. package/dist/index246.js +228 -22
  56. package/dist/index247.js +36 -19
  57. package/dist/index248.js +10 -20
  58. package/dist/index249.js +22 -3
  59. package/dist/index250.js +21 -186
  60. package/dist/index251.js +19 -132
  61. package/dist/index252.js +744 -1131
  62. package/dist/index253.js +679 -104
  63. package/dist/index254.js +176 -20
  64. package/dist/index255.js +11 -11
  65. package/dist/index256.js +13 -15
  66. package/dist/index257.js +19 -37
  67. package/dist/index258.js +3 -29
  68. package/dist/index259.js +186 -19
  69. package/dist/index260.js +131 -18
  70. package/dist/index261.js +1223 -2
  71. package/dist/index262.js +20 -2
  72. package/dist/index263.js +22 -3709
  73. package/dist/index264.js +22 -60
  74. package/dist/index265.js +29 -83
  75. package/dist/index266.js +20 -52
  76. package/dist/index267.js +20 -215
  77. package/dist/index268.js +2 -10
  78. package/dist/index269.js +2 -57
  79. package/dist/index270.js +241 -49
  80. package/dist/index271.js +7 -53
  81. package/dist/index272.js +133 -76
  82. package/dist/index273.js +74 -719
  83. package/dist/index274.js +51 -44
  84. package/dist/index275.js +77 -62
  85. package/dist/index276.js +26 -11
  86. package/dist/index277.js +22 -705
  87. package/dist/index278.js +22 -820
  88. package/dist/index279.js +16 -253
  89. package/dist/index280.js +16 -7
  90. package/dist/index281.js +22 -137
  91. package/dist/index282.js +3 -83
  92. package/dist/index283.js +26 -53
  93. package/dist/index284.js +3692 -62
  94. package/dist/index285.js +60 -26
  95. package/dist/index286.js +83 -22
  96. package/dist/index287.js +52 -22
  97. package/dist/index288.js +214 -15
  98. package/dist/index289.js +9 -16
  99. package/dist/index290.js +55 -21
  100. package/dist/index291.js +60 -79
  101. package/dist/index292.js +54 -20
  102. package/dist/index293.js +81 -20
  103. package/dist/index294.js +722 -155
  104. package/dist/index295.js +44 -225
  105. package/dist/index296.js +64 -37
  106. package/dist/index297.js +11 -10
  107. package/dist/index298.js +705 -3
  108. package/dist/index299.js +814 -21
  109. package/dist/index300.js +2 -265
  110. package/dist/index301.js +78 -5
  111. package/dist/index302.js +21 -149
  112. package/dist/index303.js +929 -63
  113. package/dist/index304.js +21 -90
  114. package/dist/index305.js +19 -28
  115. package/dist/index306.js +19 -15
  116. package/dist/index307.js +67 -73
  117. package/dist/index308.js +19 -4
  118. package/dist/index309.js +19 -2
  119. package/dist/index310.js +21 -83
  120. package/dist/index311.js +21 -57
  121. package/dist/index312.js +63 -6
  122. package/dist/index313.js +264 -4
  123. package/dist/index314.js +5 -185
  124. package/dist/index315.js +143 -56
  125. package/dist/index316.js +69 -75
  126. package/dist/index317.js +82 -1525
  127. package/dist/index318.js +26 -383
  128. package/dist/index319.js +13 -2728
  129. package/dist/index320.js +72 -83
  130. package/dist/index321.js +3 -3797
  131. package/dist/index322.js +2 -60
  132. package/dist/index323.js +84 -15
  133. package/dist/index324.js +56 -82
  134. package/dist/index325.js +4 -200
  135. package/dist/index326.js +4 -245
  136. package/dist/index327.js +181 -74
  137. package/dist/index328.js +62 -21
  138. package/dist/index329.js +74 -934
  139. package/dist/index330.js +36 -21
  140. package/dist/index331.js +8 -19
  141. package/dist/index332.js +12 -19
  142. package/dist/index333.js +54 -68
  143. package/dist/index334.js +12 -19
  144. package/dist/index335.js +14 -19
  145. package/dist/index336.js +57 -21
  146. package/dist/index337.js +51 -21
  147. package/dist/index338.js +31 -63
  148. package/dist/index339.js +2 -2
  149. package/dist/index340.js +5 -37
  150. package/dist/index341.js +2 -9
  151. package/dist/index342.js +23 -13
  152. package/dist/index343.js +38 -52
  153. package/dist/index344.js +2 -12
  154. package/dist/index345.js +11 -14
  155. package/dist/index346.js +16 -54
  156. package/dist/index347.js +10 -52
  157. package/dist/index348.js +10 -31
  158. package/dist/index349.js +17 -2
  159. package/dist/index350.js +2 -5
  160. package/dist/index351.js +9 -2
  161. package/dist/index352.js +10 -23
  162. package/dist/index353.js +12 -39
  163. package/dist/index354.js +1534 -2
  164. package/dist/index355.js +384 -9
  165. package/dist/index356.js +2727 -16
  166. package/dist/index357.js +86 -10
  167. package/dist/index358.js +3797 -9
  168. package/dist/index359.js +58 -15
  169. package/dist/index360.js +15 -2
  170. package/dist/index361.js +84 -9
  171. package/dist/index362.js +201 -9
  172. package/dist/index363.js +245 -13
  173. package/dist/index364.js +19 -18
  174. package/dist/index365.js +19 -56
  175. package/dist/index366.js +61 -22
  176. package/dist/index367.js +37 -7
  177. package/dist/index368.js +16 -52
  178. package/dist/index369.js +57 -7
  179. package/dist/index370.js +23 -10
  180. package/dist/index371.js +7 -7
  181. package/dist/index372.js +54 -27
  182. package/dist/index373.js +7 -2
  183. package/dist/index374.js +11 -81
  184. package/dist/index375.js +6 -179
  185. package/dist/index376.js +28 -20
  186. package/dist/index377.js +2 -20
  187. package/dist/index378.js +79 -61
  188. package/dist/index379.js +179 -36
  189. package/dist/index38.js +2 -2
  190. package/dist/index380.js +17 -31
  191. package/dist/index381.js +30 -10
  192. package/dist/index382.js +10 -3
  193. package/dist/index383.js +3 -3
  194. package/dist/index384.js +4 -13
  195. package/dist/index385.js +13 -7
  196. package/dist/index386.js +7 -14
  197. package/dist/index387.js +13 -4
  198. package/dist/index388.js +5 -36
  199. package/dist/index389.js +36 -37
  200. package/dist/index390.js +35 -28
  201. package/dist/index391.js +28 -62
  202. package/dist/index392.js +62 -96
  203. package/dist/index393.js +100 -16
  204. package/dist/index394.js +90 -100
  205. package/dist/index395.js +98 -91
  206. package/dist/index396.js +1 -1
  207. package/dist/index401.js +1 -1
  208. package/dist/index402.js +2 -2
  209. package/dist/index79.js +218 -129
  210. package/dist/src/components/calendar/calendar.d.ts +18 -1
  211. package/package.json +1 -1
  212. package/src/assets/illustrations/pending-to-do.png +0 -0
package/dist/index380.js CHANGED
@@ -1,33 +1,19 @@
1
- import p from "./index310.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("&");
30
- };
1
+ import n from "./index272.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
+ });
31
17
  export {
32
- a as default
18
+ r as default
33
19
  };
package/dist/index381.js CHANGED
@@ -1,13 +1,33 @@
1
- import i from "./index300.js";
2
- import m from "./index304.js";
3
- import s from "./index314.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;
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
+ });
10
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("&");
30
+ };
11
31
  export {
12
- h as default
32
+ a as default
13
33
  };
package/dist/index382.js CHANGED
@@ -1,6 +1,13 @@
1
- function e(t) {
2
- return typeof t != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
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;
3
10
  }
4
11
  export {
5
- e as default
12
+ h as default
6
13
  };
package/dist/index383.js CHANGED
@@ -1,6 +1,6 @@
1
- function n(e, c) {
2
- return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
1
+ function e(t) {
2
+ return typeof t != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
3
3
  }
4
4
  export {
5
- n as default
5
+ e as default
6
6
  };
package/dist/index384.js CHANGED
@@ -1,15 +1,6 @@
1
- import o from "./index396.js";
2
- import r from "./index397.js";
3
- import t from "./index398.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
- };
1
+ function n(e, c) {
2
+ return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
3
+ }
13
4
  export {
14
- l as default
5
+ n as default
15
6
  };
package/dist/index385.js CHANGED
@@ -1,9 +1,15 @@
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 o from "./index396.js";
2
+ import r from "./index397.js";
3
+ import t from "./index398.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
+ };
3
13
  export {
4
- e as hasBrowserEnv,
5
- n as hasStandardBrowserEnv,
6
- t as hasStandardBrowserWebWorkerEnv,
7
- o as navigator,
8
- r as origin
14
+ l as default
9
15
  };
package/dist/index386.js CHANGED
@@ -1,16 +1,9 @@
1
- import a from "./index311.js";
2
- function E(i, f, t) {
3
- const u = t.config.validateStatus;
4
- !t.status || !u || u(t.status) ? i(t) : f(
5
- new a(
6
- "Request failed with status code " + t.status,
7
- [a.ERR_BAD_REQUEST, a.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
8
- t.config,
9
- t.request,
10
- t
11
- )
12
- );
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";
14
3
  export {
15
- E as default
4
+ e as hasBrowserEnv,
5
+ n as hasStandardBrowserEnv,
6
+ t as hasStandardBrowserWebWorkerEnv,
7
+ o as navigator,
8
+ r as origin
16
9
  };
package/dist/index387.js CHANGED
@@ -1,7 +1,16 @@
1
- function o(e) {
2
- const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3
- return t && t[1] || "";
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(
5
+ new a(
6
+ "Request failed with status code " + t.status,
7
+ [a.ERR_BAD_REQUEST, a.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
8
+ t.config,
9
+ t.request,
10
+ t
11
+ )
12
+ );
4
13
  }
5
14
  export {
6
- o as default
15
+ E as default
7
16
  };
package/dist/index388.js CHANGED
@@ -1,38 +1,7 @@
1
- import i from "./index399.js";
2
- import m from "./index400.js";
3
- import f from "./index300.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 [
26
- (r) => o[0]({
27
- lengthComputable: a,
28
- total: t,
29
- loaded: r
30
- }),
31
- o[1]
32
- ];
33
- }, C = (t) => (...o) => f.asap(() => t(...o));
1
+ function o(e) {
2
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3
+ return t && t[1] || "";
4
+ }
34
5
  export {
35
- C as asyncDecorator,
36
- v as progressEventDecorator,
37
- h as progressEventReducer
6
+ o as default
38
7
  };
package/dist/index389.js CHANGED
@@ -1,39 +1,38 @@
1
- import n from "./index371.js";
2
- import m from "./index300.js";
3
- import c from "./index401.js";
4
- import h from "./index402.js";
5
- import w from "./index367.js";
6
- import b from "./index303.js";
7
- import C from "./index314.js";
8
- import g from "./index364.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(
13
- w(e.baseURL, e.url, e.allowAbsoluteUrls),
14
- a.params,
15
- a.paramsSerializer
16
- ), s && o.set(
17
- "Authorization",
18
- "Basic " + btoa(
19
- (s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : "")
20
- )
21
- ), m.isFormData(i)) {
22
- if (n.hasStandardBrowserEnv || n.hasStandardBrowserWebWorkerEnv)
23
- o.setContentType(void 0);
24
- else if (m.isFunction(i.getHeaders)) {
25
- const t = i.getHeaders(), u = ["content-type", "content-length"];
26
- Object.entries(t).forEach(([l, p]) => {
27
- u.includes(l.toLowerCase()) && o.set(l, p);
28
- });
29
- }
30
- }
31
- if (n.hasStandardBrowserEnv && (r && m.isFunction(r) && (r = r(e)), r || r !== !1 && c(e.url))) {
32
- const t = f && d && h.read(d);
33
- t && o.set(f, t);
34
- }
35
- return e;
36
- };
1
+ import i from "./index399.js";
2
+ import m from "./index400.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 [
26
+ (r) => o[0]({
27
+ lengthComputable: a,
28
+ total: t,
29
+ loaded: r
30
+ }),
31
+ o[1]
32
+ ];
33
+ }, C = (t) => (...o) => f.asap(() => t(...o));
37
34
  export {
38
- E as default
35
+ C as asyncDecorator,
36
+ v as progressEventDecorator,
37
+ h as progressEventReducer
39
38
  };
package/dist/index390.js CHANGED
@@ -1,32 +1,39 @@
1
- import a from "./index306.js";
2
- import s from "./index311.js";
3
- import m from "./index300.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(
13
- o instanceof s ? o : new a(o instanceof Error ? o.message : o)
14
- );
15
- }
16
- };
17
- let c = t && setTimeout(() => {
18
- c = null, n(new s(`timeout of ${t}ms exceeded`, s.ETIMEDOUT));
19
- }, t);
20
- const i = () => {
21
- e && (c && clearTimeout(c), c = null, e.forEach((r) => {
22
- r.unsubscribe ? r.unsubscribe(n) : r.removeEventListener("abort", n);
23
- }), e = null);
24
- };
25
- e.forEach((r) => r.addEventListener("abort", n));
26
- const { signal: b } = u;
27
- return b.unsubscribe = () => m.asap(i), b;
1
+ import n from "./index375.js";
2
+ import m from "./index313.js";
3
+ import c from "./index401.js";
4
+ import h from "./index402.js";
5
+ import w from "./index371.js";
6
+ import b from "./index316.js";
7
+ import C from "./index327.js";
8
+ import g from "./index368.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(
13
+ w(e.baseURL, e.url, e.allowAbsoluteUrls),
14
+ a.params,
15
+ a.paramsSerializer
16
+ ), s && o.set(
17
+ "Authorization",
18
+ "Basic " + btoa(
19
+ (s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : "")
20
+ )
21
+ ), m.isFormData(i)) {
22
+ if (n.hasStandardBrowserEnv || n.hasStandardBrowserWebWorkerEnv)
23
+ o.setContentType(void 0);
24
+ else if (m.isFunction(i.getHeaders)) {
25
+ const t = i.getHeaders(), u = ["content-type", "content-length"];
26
+ Object.entries(t).forEach(([l, p]) => {
27
+ u.includes(l.toLowerCase()) && o.set(l, p);
28
+ });
29
+ }
28
30
  }
31
+ if (n.hasStandardBrowserEnv && (r && m.isFunction(r) && (r = r(e)), r || r !== !1 && c(e.url))) {
32
+ const t = f && d && h.read(d);
33
+ t && o.set(f, t);
34
+ }
35
+ return e;
29
36
  };
30
37
  export {
31
- h as default
38
+ E as default
32
39
  };
package/dist/index391.js CHANGED
@@ -1,66 +1,32 @@
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
- {
36
- async pull(l) {
37
- try {
38
- const { done: i, value: y } = await r.next();
39
- if (i) {
40
- c(), l.close();
41
- return;
42
- }
43
- let s = y.byteLength;
44
- if (n) {
45
- let u = d += s;
46
- n(u);
47
- }
48
- l.enqueue(new Uint8Array(y));
49
- } catch (i) {
50
- throw c(i), i;
51
- }
52
- },
53
- cancel(l) {
54
- return c(l), r.return();
1
+ import a from "./index319.js";
2
+ import s from "./index324.js";
3
+ import m from "./index313.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(
13
+ o instanceof s ? o : new a(o instanceof Error ? o.message : o)
14
+ );
55
15
  }
56
- },
57
- {
58
- highWaterMark: 2
59
- }
60
- );
16
+ };
17
+ let c = t && setTimeout(() => {
18
+ c = null, n(new s(`timeout of ${t}ms exceeded`, s.ETIMEDOUT));
19
+ }, t);
20
+ const i = () => {
21
+ e && (c && clearTimeout(c), c = null, e.forEach((r) => {
22
+ r.unsubscribe ? r.unsubscribe(n) : r.removeEventListener("abort", n);
23
+ }), e = null);
24
+ };
25
+ e.forEach((r) => r.addEventListener("abort", n));
26
+ const { signal: b } = u;
27
+ return b.unsubscribe = () => m.asap(i), b;
28
+ }
61
29
  };
62
30
  export {
63
- w as readBytes,
64
- f as streamChunk,
65
- h as trackStream
31
+ h as default
66
32
  };