@itcase/ui 1.9.60 → 1.9.64
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.
- package/dist/{Avatar_cjs_rB8eleZS.js → Avatar_cjs_7PvPci1g.js} +2 -2
- package/dist/{Avatar_es_eDWRG48M.js → Avatar_es_C9vlvHtG.js} +2 -2
- package/dist/{Button_cjs_cNwSkY7f.js → Button_cjs_Cvjl36t2.js} +2 -2
- package/dist/{Button_es_egCg1YEe.js → Button_es_6QV9VBPf.js} +2 -2
- package/dist/{ChipsGroup_cjs_DvFJapnM.js → ChipsGroup_cjs_Cd3lDJj2.js} +1 -1
- package/dist/{ChipsGroup_es_C7tQ_vNa.js → ChipsGroup_es_BMj4Jk0l.js} +1 -1
- package/dist/{DatePicker_cjs_B03pbJ0K.js → DatePicker_cjs_BzZeE49Y.js} +4 -4
- package/dist/{DatePicker_es_DIuTzpna.js → DatePicker_es_Cl-fOLGY.js} +4 -4
- package/dist/{Group_cjs_DtBLfpiv.js → Group_cjs__Eja_1P4.js} +1 -1
- package/dist/{Group_es_BUkLNi2_.js → Group_es_cz4hL9nk.js} +1 -1
- package/dist/{Image_cjs_BSwaz7r5.js → Image_cjs_CBFxErjT.js} +1 -1
- package/dist/{Image_es_DhPg4srf.js → Image_es_B1l0a1fo.js} +1 -1
- package/dist/{Input_cjs_Cr6u1JXB.js → Input_cjs_B-Z-UP2J.js} +1 -1
- package/dist/{Input_es_Da2Yhzcz.js → Input_es_DIpx6BYc.js} +1 -1
- package/dist/{Label_cjs_DMOG-8Eu.js → Label_cjs_COgNWNhP.js} +1 -1
- package/dist/{Label_es_DZn7Ulmk.js → Label_es_fV671Jew.js} +1 -1
- package/dist/{Loader_cjs_Bi6IoQFb.js → Loader_cjs_CfVJYf4T.js} +1 -1
- package/dist/{Loader_es_BZMRBcgn.js → Loader_es_C-sMV0xq.js} +1 -1
- package/dist/{Overlay_cjs_bR_cRWP3.js → Overlay_cjs_D4cisoCb.js} +1 -1
- package/dist/{Overlay_es_BVxlUWXu.js → Overlay_es_mVEoIoz5.js} +1 -1
- package/dist/{SelectContainer_cjs_DSMCeePO.js → SelectContainer_cjs_BLM8NQNa.js} +3 -3
- package/dist/{SelectContainer_es_D2Yz1Qwi.js → SelectContainer_es_CNxXsYuI.js} +3 -3
- package/dist/cjs/components/Accordion.js +1 -1
- package/dist/cjs/components/Avatar.js +3 -3
- package/dist/cjs/components/AvatarStack.js +4 -4
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +3 -3
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Checkbox.js +1 -1
- package/dist/cjs/components/Checkmark.js +1 -1
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice.js +2 -2
- package/dist/cjs/components/Code.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +3 -3
- package/dist/cjs/components/Dadata.js +2 -2
- package/dist/cjs/components/DatePeriod.js +9 -9
- package/dist/cjs/components/DatePicker.js +6 -6
- package/dist/cjs/components/Divider.js +1 -1
- package/dist/cjs/components/Dot.js +1 -1
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown.js +1 -1
- package/dist/cjs/components/Dropzone.js +3 -4
- package/dist/cjs/components/Flex.js +1 -1
- package/dist/cjs/components/Grid.js +1 -1
- package/dist/cjs/components/Group.js +2 -2
- package/dist/cjs/components/HTMLContent.js +1 -1
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/Image.js +2 -2
- package/dist/cjs/components/Input.js +2 -2
- package/dist/cjs/components/InputNumber.js +3 -3
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/Link.js +1 -1
- package/dist/cjs/components/List.js +1 -1
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo.js +1 -1
- package/dist/cjs/components/MenuItem.js +1 -1
- package/dist/cjs/components/Modal.js +3 -3
- package/dist/cjs/components/ModalSheetBottom.js +1 -1
- package/dist/cjs/components/Notification.js +3 -3
- package/dist/cjs/components/Overlay.js +2 -2
- package/dist/cjs/components/Pagination.js +1 -1
- package/dist/cjs/components/Radio.js +1 -1
- package/dist/cjs/components/RangeSlider.js +1 -1
- package/dist/cjs/components/Response.js +4 -4
- package/dist/cjs/components/SVGContent.js +1 -1
- package/dist/cjs/components/ScrollOnDrag.js +1 -1
- package/dist/cjs/components/ScrollToView.js +1 -1
- package/dist/cjs/components/Search.js +1 -1
- package/dist/cjs/components/Segmented.js +1 -1
- package/dist/cjs/components/Select.js +4 -4
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/cjs/components/Video.js +1 -1
- package/dist/cjs/components/Warning.js +1 -1
- package/dist/cjs/context/Notifications.js +1 -1
- package/dist/cjs/context/UIContext.js +1 -1
- package/dist/cjs/context/UrlAssetPrefix.js +1 -1
- package/dist/cjs/hoc/urlWithAssetPrefix.js +1 -1
- package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +1 -1
- package/dist/cjs/hooks/useAppearanceConfig.js +1 -1
- package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +1 -1
- package/dist/cjs/hooks/useDevicePropsGenerator.js +1 -1
- package/dist/cjs/hooks/useDeviceTargetClass.js +1 -1
- package/dist/cjs/hooks/useDropzoneFieldFiles.js +258 -294
- package/dist/cjs/hooks/useMediaQueries/useMediaQueries.js +1 -1
- package/dist/cjs/hooks/useMediaQueries.js +1 -1
- package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
- package/dist/cjs/hooks/useStyles/useStyles.js +1 -1
- package/dist/cjs/hooks/useStyles.js +1 -1
- package/dist/cjs/hooks.js +1 -1
- package/dist/cjs/utils/mergeAppearanceKeys.js +1 -1
- package/dist/cjs/utils/setViewportProperty.js +1 -1
- package/dist/cjs/utils.js +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/Avatar.js +3 -3
- package/dist/components/AvatarStack.js +4 -4
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +3 -3
- package/dist/components/Cell.js +2 -2
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Checkmark.js +1 -1
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice.js +2 -2
- package/dist/components/Code.js +1 -1
- package/dist/components/CookiesWarning.js +3 -3
- package/dist/components/Dadata.js +2 -2
- package/dist/components/DatePeriod.js +9 -9
- package/dist/components/DatePicker.js +6 -6
- package/dist/components/Divider.js +1 -1
- package/dist/components/Dot.js +1 -1
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown.js +1 -1
- package/dist/components/Dropzone.js +3 -4
- package/dist/components/Flex.js +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Group.js +2 -2
- package/dist/components/HTMLContent.js +1 -1
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/Image.js +2 -2
- package/dist/components/Input.js +2 -2
- package/dist/components/InputNumber.js +3 -3
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Link.js +1 -1
- package/dist/components/List.js +1 -1
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo.js +1 -1
- package/dist/components/MenuItem.js +1 -1
- package/dist/components/Modal.js +3 -3
- package/dist/components/ModalSheetBottom.js +1 -1
- package/dist/components/Notification.js +3 -3
- package/dist/components/Overlay.js +2 -2
- package/dist/components/Pagination.js +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/RangeSlider.js +1 -1
- package/dist/components/Response.js +4 -4
- package/dist/components/SVGContent.js +1 -1
- package/dist/components/ScrollOnDrag.js +1 -1
- package/dist/components/ScrollToView.js +1 -1
- package/dist/components/Search.js +1 -1
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Select.js +4 -4
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Video.js +1 -1
- package/dist/components/Warning.js +1 -1
- package/dist/css/styles/bundles.css +2 -2
- package/dist/hooks/useAppearanceConfig.js +1 -1
- package/dist/hooks/useDevicePropsGenerator.js +1 -1
- package/dist/hooks/useMediaQueries.js +1 -1
- package/dist/hooks/useStyles/useStyles.js +1 -1
- package/dist/hooks/useStyles.js +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{primitives_cjs_CnyJ13MJ.js → primitives_cjs_B0VJShTC.js} +1 -1
- package/dist/{primitives_es_BjyEnscF.js → primitives_es_dSATude_.js} +1 -1
- package/dist/utils.js +1 -1
- package/package.json +20 -20
|
@@ -12,8 +12,7 @@ var require$$6 = require('fs');
|
|
|
12
12
|
var require$$8 = require('crypto');
|
|
13
13
|
var http2 = require('http2');
|
|
14
14
|
var require$$4$1 = require('assert');
|
|
15
|
-
var require$$
|
|
16
|
-
var require$$0$2 = require('os');
|
|
15
|
+
var require$$0$2 = require('tty');
|
|
17
16
|
var zlib = require('zlib');
|
|
18
17
|
var events = require('events');
|
|
19
18
|
var common$1 = require('@itcase/common');
|
|
@@ -33,30 +32,30 @@ function bind(fn, thisArg) {
|
|
|
33
32
|
|
|
34
33
|
// utils is a library of generic helper functions non-specific to axios
|
|
35
34
|
|
|
36
|
-
const {toString} = Object.prototype;
|
|
37
|
-
const {getPrototypeOf} = Object;
|
|
38
|
-
const {iterator, toStringTag} = Symbol;
|
|
35
|
+
const { toString } = Object.prototype;
|
|
36
|
+
const { getPrototypeOf } = Object;
|
|
37
|
+
const { iterator, toStringTag } = Symbol;
|
|
39
38
|
|
|
40
|
-
const kindOf = (cache => thing => {
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
const kindOf = ((cache) => (thing) => {
|
|
40
|
+
const str = toString.call(thing);
|
|
41
|
+
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
43
42
|
})(Object.create(null));
|
|
44
43
|
|
|
45
44
|
const kindOfTest = (type) => {
|
|
46
45
|
type = type.toLowerCase();
|
|
47
|
-
return (thing) => kindOf(thing) === type
|
|
46
|
+
return (thing) => kindOf(thing) === type;
|
|
48
47
|
};
|
|
49
48
|
|
|
50
|
-
const typeOfTest = type => thing => typeof thing === type;
|
|
49
|
+
const typeOfTest = (type) => (thing) => typeof thing === type;
|
|
51
50
|
|
|
52
51
|
/**
|
|
53
|
-
* Determine if a value is
|
|
52
|
+
* Determine if a value is a non-null object
|
|
54
53
|
*
|
|
55
54
|
* @param {Object} val The value to test
|
|
56
55
|
*
|
|
57
56
|
* @returns {boolean} True if value is an Array, otherwise false
|
|
58
57
|
*/
|
|
59
|
-
const {isArray} = Array;
|
|
58
|
+
const { isArray } = Array;
|
|
60
59
|
|
|
61
60
|
/**
|
|
62
61
|
* Determine if a value is undefined
|
|
@@ -65,7 +64,7 @@ const {isArray} = Array;
|
|
|
65
64
|
*
|
|
66
65
|
* @returns {boolean} True if the value is undefined, otherwise false
|
|
67
66
|
*/
|
|
68
|
-
const isUndefined = typeOfTest(
|
|
67
|
+
const isUndefined = typeOfTest("undefined");
|
|
69
68
|
|
|
70
69
|
/**
|
|
71
70
|
* Determine if a value is a Buffer
|
|
@@ -75,8 +74,14 @@ const isUndefined = typeOfTest('undefined');
|
|
|
75
74
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
76
75
|
*/
|
|
77
76
|
function isBuffer(val) {
|
|
78
|
-
return
|
|
79
|
-
|
|
77
|
+
return (
|
|
78
|
+
val !== null &&
|
|
79
|
+
!isUndefined(val) &&
|
|
80
|
+
val.constructor !== null &&
|
|
81
|
+
!isUndefined(val.constructor) &&
|
|
82
|
+
isFunction$1(val.constructor.isBuffer) &&
|
|
83
|
+
val.constructor.isBuffer(val)
|
|
84
|
+
);
|
|
80
85
|
}
|
|
81
86
|
|
|
82
87
|
/**
|
|
@@ -86,8 +91,7 @@ function isBuffer(val) {
|
|
|
86
91
|
*
|
|
87
92
|
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
|
88
93
|
*/
|
|
89
|
-
const isArrayBuffer = kindOfTest(
|
|
90
|
-
|
|
94
|
+
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
91
95
|
|
|
92
96
|
/**
|
|
93
97
|
* Determine if a value is a view on an ArrayBuffer
|
|
@@ -98,10 +102,10 @@ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
|
|
98
102
|
*/
|
|
99
103
|
function isArrayBufferView(val) {
|
|
100
104
|
let result;
|
|
101
|
-
if (
|
|
105
|
+
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
102
106
|
result = ArrayBuffer.isView(val);
|
|
103
107
|
} else {
|
|
104
|
-
result =
|
|
108
|
+
result = val && val.buffer && isArrayBuffer(val.buffer);
|
|
105
109
|
}
|
|
106
110
|
return result;
|
|
107
111
|
}
|
|
@@ -113,7 +117,7 @@ function isArrayBufferView(val) {
|
|
|
113
117
|
*
|
|
114
118
|
* @returns {boolean} True if value is a String, otherwise false
|
|
115
119
|
*/
|
|
116
|
-
const isString = typeOfTest(
|
|
120
|
+
const isString = typeOfTest("string");
|
|
117
121
|
|
|
118
122
|
/**
|
|
119
123
|
* Determine if a value is a Function
|
|
@@ -121,7 +125,7 @@ const isString = typeOfTest('string');
|
|
|
121
125
|
* @param {*} val The value to test
|
|
122
126
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
123
127
|
*/
|
|
124
|
-
const isFunction$1 = typeOfTest(
|
|
128
|
+
const isFunction$1 = typeOfTest("function");
|
|
125
129
|
|
|
126
130
|
/**
|
|
127
131
|
* Determine if a value is a Number
|
|
@@ -130,7 +134,7 @@ const isFunction$1 = typeOfTest('function');
|
|
|
130
134
|
*
|
|
131
135
|
* @returns {boolean} True if value is a Number, otherwise false
|
|
132
136
|
*/
|
|
133
|
-
const isNumber = typeOfTest(
|
|
137
|
+
const isNumber = typeOfTest("number");
|
|
134
138
|
|
|
135
139
|
/**
|
|
136
140
|
* Determine if a value is an Object
|
|
@@ -139,7 +143,7 @@ const isNumber = typeOfTest('number');
|
|
|
139
143
|
*
|
|
140
144
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
141
145
|
*/
|
|
142
|
-
const isObject = (thing) => thing !== null && typeof thing ===
|
|
146
|
+
const isObject = (thing) => thing !== null && typeof thing === "object";
|
|
143
147
|
|
|
144
148
|
/**
|
|
145
149
|
* Determine if a value is a Boolean
|
|
@@ -147,7 +151,7 @@ const isObject = (thing) => thing !== null && typeof thing === 'object';
|
|
|
147
151
|
* @param {*} thing The value to test
|
|
148
152
|
* @returns {boolean} True if value is a Boolean, otherwise false
|
|
149
153
|
*/
|
|
150
|
-
const isBoolean = thing => thing === true || thing === false;
|
|
154
|
+
const isBoolean = (thing) => thing === true || thing === false;
|
|
151
155
|
|
|
152
156
|
/**
|
|
153
157
|
* Determine if a value is a plain Object
|
|
@@ -157,12 +161,18 @@ const isBoolean = thing => thing === true || thing === false;
|
|
|
157
161
|
* @returns {boolean} True if value is a plain Object, otherwise false
|
|
158
162
|
*/
|
|
159
163
|
const isPlainObject = (val) => {
|
|
160
|
-
if (kindOf(val) !==
|
|
164
|
+
if (kindOf(val) !== "object") {
|
|
161
165
|
return false;
|
|
162
166
|
}
|
|
163
167
|
|
|
164
168
|
const prototype = getPrototypeOf(val);
|
|
165
|
-
return (
|
|
169
|
+
return (
|
|
170
|
+
(prototype === null ||
|
|
171
|
+
prototype === Object.prototype ||
|
|
172
|
+
Object.getPrototypeOf(prototype) === null) &&
|
|
173
|
+
!(toStringTag in val) &&
|
|
174
|
+
!(iterator in val)
|
|
175
|
+
);
|
|
166
176
|
};
|
|
167
177
|
|
|
168
178
|
/**
|
|
@@ -179,7 +189,10 @@ const isEmptyObject = (val) => {
|
|
|
179
189
|
}
|
|
180
190
|
|
|
181
191
|
try {
|
|
182
|
-
return
|
|
192
|
+
return (
|
|
193
|
+
Object.keys(val).length === 0 &&
|
|
194
|
+
Object.getPrototypeOf(val) === Object.prototype
|
|
195
|
+
);
|
|
183
196
|
} catch (e) {
|
|
184
197
|
// Fallback for any other objects that might cause RangeError with Object.keys()
|
|
185
198
|
return false;
|
|
@@ -193,7 +206,7 @@ const isEmptyObject = (val) => {
|
|
|
193
206
|
*
|
|
194
207
|
* @returns {boolean} True if value is a Date, otherwise false
|
|
195
208
|
*/
|
|
196
|
-
const isDate = kindOfTest(
|
|
209
|
+
const isDate = kindOfTest("Date");
|
|
197
210
|
|
|
198
211
|
/**
|
|
199
212
|
* Determine if a value is a File
|
|
@@ -202,7 +215,7 @@ const isDate = kindOfTest('Date');
|
|
|
202
215
|
*
|
|
203
216
|
* @returns {boolean} True if value is a File, otherwise false
|
|
204
217
|
*/
|
|
205
|
-
const isFile = kindOfTest(
|
|
218
|
+
const isFile = kindOfTest("File");
|
|
206
219
|
|
|
207
220
|
/**
|
|
208
221
|
* Determine if a value is a Blob
|
|
@@ -211,7 +224,7 @@ const isFile = kindOfTest('File');
|
|
|
211
224
|
*
|
|
212
225
|
* @returns {boolean} True if value is a Blob, otherwise false
|
|
213
226
|
*/
|
|
214
|
-
const isBlob = kindOfTest(
|
|
227
|
+
const isBlob = kindOfTest("Blob");
|
|
215
228
|
|
|
216
229
|
/**
|
|
217
230
|
* Determine if a value is a FileList
|
|
@@ -220,7 +233,7 @@ const isBlob = kindOfTest('Blob');
|
|
|
220
233
|
*
|
|
221
234
|
* @returns {boolean} True if value is a File, otherwise false
|
|
222
235
|
*/
|
|
223
|
-
const isFileList = kindOfTest(
|
|
236
|
+
const isFileList = kindOfTest("FileList");
|
|
224
237
|
|
|
225
238
|
/**
|
|
226
239
|
* Determine if a value is a Stream
|
|
@@ -240,15 +253,16 @@ const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
|
240
253
|
*/
|
|
241
254
|
const isFormData = (thing) => {
|
|
242
255
|
let kind;
|
|
243
|
-
return
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
256
|
+
return (
|
|
257
|
+
thing &&
|
|
258
|
+
((typeof FormData === "function" && thing instanceof FormData) ||
|
|
259
|
+
(isFunction$1(thing.append) &&
|
|
260
|
+
((kind = kindOf(thing)) === "formdata" ||
|
|
261
|
+
// detect form-data instance
|
|
262
|
+
(kind === "object" &&
|
|
263
|
+
isFunction$1(thing.toString) &&
|
|
264
|
+
thing.toString() === "[object FormData]"))))
|
|
265
|
+
);
|
|
252
266
|
};
|
|
253
267
|
|
|
254
268
|
/**
|
|
@@ -258,9 +272,14 @@ const isFormData = (thing) => {
|
|
|
258
272
|
*
|
|
259
273
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
|
260
274
|
*/
|
|
261
|
-
const isURLSearchParams = kindOfTest(
|
|
275
|
+
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
262
276
|
|
|
263
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
277
|
+
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
278
|
+
"ReadableStream",
|
|
279
|
+
"Request",
|
|
280
|
+
"Response",
|
|
281
|
+
"Headers",
|
|
282
|
+
].map(kindOfTest);
|
|
264
283
|
|
|
265
284
|
/**
|
|
266
285
|
* Trim excess whitespace off the beginning and end of a string
|
|
@@ -269,8 +288,8 @@ const [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream',
|
|
|
269
288
|
*
|
|
270
289
|
* @returns {String} The String freed of excess whitespace
|
|
271
290
|
*/
|
|
272
|
-
const trim = (str) =>
|
|
273
|
-
str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
|
291
|
+
const trim = (str) =>
|
|
292
|
+
str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
274
293
|
|
|
275
294
|
/**
|
|
276
295
|
* Iterate over an Array or an Object invoking a function for each item.
|
|
@@ -288,9 +307,9 @@ const trim = (str) => str.trim ?
|
|
|
288
307
|
* @param {Boolean} [options.allOwnKeys = false]
|
|
289
308
|
* @returns {any}
|
|
290
309
|
*/
|
|
291
|
-
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
310
|
+
function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
|
292
311
|
// Don't bother if no value provided
|
|
293
|
-
if (obj === null || typeof obj ===
|
|
312
|
+
if (obj === null || typeof obj === "undefined") {
|
|
294
313
|
return;
|
|
295
314
|
}
|
|
296
315
|
|
|
@@ -298,7 +317,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
298
317
|
let l;
|
|
299
318
|
|
|
300
319
|
// Force an array if not already something iterable
|
|
301
|
-
if (typeof obj !==
|
|
320
|
+
if (typeof obj !== "object") {
|
|
302
321
|
/*eslint no-param-reassign:0*/
|
|
303
322
|
obj = [obj];
|
|
304
323
|
}
|
|
@@ -315,7 +334,9 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
315
334
|
}
|
|
316
335
|
|
|
317
336
|
// Iterate over object keys
|
|
318
|
-
const keys = allOwnKeys
|
|
337
|
+
const keys = allOwnKeys
|
|
338
|
+
? Object.getOwnPropertyNames(obj)
|
|
339
|
+
: Object.keys(obj);
|
|
319
340
|
const len = keys.length;
|
|
320
341
|
let key;
|
|
321
342
|
|
|
@@ -327,7 +348,7 @@ function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
|
327
348
|
}
|
|
328
349
|
|
|
329
350
|
function findKey(obj, key) {
|
|
330
|
-
if (isBuffer(obj)){
|
|
351
|
+
if (isBuffer(obj)) {
|
|
331
352
|
return null;
|
|
332
353
|
}
|
|
333
354
|
|
|
@@ -347,10 +368,15 @@ function findKey(obj, key) {
|
|
|
347
368
|
const _global = (() => {
|
|
348
369
|
/*eslint no-undef:0*/
|
|
349
370
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
350
|
-
return typeof self !== "undefined"
|
|
371
|
+
return typeof self !== "undefined"
|
|
372
|
+
? self
|
|
373
|
+
: typeof window !== "undefined"
|
|
374
|
+
? window
|
|
375
|
+
: global;
|
|
351
376
|
})();
|
|
352
377
|
|
|
353
|
-
const isContextDefined = (context) =>
|
|
378
|
+
const isContextDefined = (context) =>
|
|
379
|
+
!isUndefined(context) && context !== _global;
|
|
354
380
|
|
|
355
381
|
/**
|
|
356
382
|
* Accepts varargs expecting each argument to be an object, then
|
|
@@ -371,10 +397,15 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
371
397
|
* @returns {Object} Result of all merge properties
|
|
372
398
|
*/
|
|
373
399
|
function merge(/* obj1, obj2, obj3, ... */) {
|
|
374
|
-
const {caseless, skipUndefined} = isContextDefined(this) && this || {};
|
|
400
|
+
const { caseless, skipUndefined } = (isContextDefined(this) && this) || {};
|
|
375
401
|
const result = {};
|
|
376
402
|
const assignValue = (val, key) => {
|
|
377
|
-
|
|
403
|
+
// Skip dangerous property names to prevent prototype pollution
|
|
404
|
+
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
const targetKey = (caseless && findKey(result, key)) || key;
|
|
378
409
|
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
379
410
|
result[targetKey] = merge(result[targetKey], val);
|
|
380
411
|
} else if (isPlainObject(val)) {
|
|
@@ -403,24 +434,28 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
403
434
|
* @param {Boolean} [options.allOwnKeys]
|
|
404
435
|
* @returns {Object} The resulting value of object a
|
|
405
436
|
*/
|
|
406
|
-
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
407
|
-
forEach(
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
437
|
+
const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
|
|
438
|
+
forEach(
|
|
439
|
+
b,
|
|
440
|
+
(val, key) => {
|
|
441
|
+
if (thisArg && isFunction$1(val)) {
|
|
442
|
+
Object.defineProperty(a, key, {
|
|
443
|
+
value: bind(val, thisArg),
|
|
444
|
+
writable: true,
|
|
445
|
+
enumerable: true,
|
|
446
|
+
configurable: true,
|
|
447
|
+
});
|
|
448
|
+
} else {
|
|
449
|
+
Object.defineProperty(a, key, {
|
|
450
|
+
value: val,
|
|
451
|
+
writable: true,
|
|
452
|
+
enumerable: true,
|
|
453
|
+
configurable: true,
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{ allOwnKeys },
|
|
458
|
+
);
|
|
424
459
|
return a;
|
|
425
460
|
};
|
|
426
461
|
|
|
@@ -432,7 +467,7 @@ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
|
432
467
|
* @returns {string} content value without BOM
|
|
433
468
|
*/
|
|
434
469
|
const stripBOM = (content) => {
|
|
435
|
-
if (content.charCodeAt(0) ===
|
|
470
|
+
if (content.charCodeAt(0) === 0xfeff) {
|
|
436
471
|
content = content.slice(1);
|
|
437
472
|
}
|
|
438
473
|
return content;
|
|
@@ -448,15 +483,18 @@ const stripBOM = (content) => {
|
|
|
448
483
|
* @returns {void}
|
|
449
484
|
*/
|
|
450
485
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
451
|
-
constructor.prototype = Object.create(
|
|
452
|
-
|
|
486
|
+
constructor.prototype = Object.create(
|
|
487
|
+
superConstructor.prototype,
|
|
488
|
+
descriptors,
|
|
489
|
+
);
|
|
490
|
+
Object.defineProperty(constructor.prototype, "constructor", {
|
|
453
491
|
value: constructor,
|
|
454
492
|
writable: true,
|
|
455
493
|
enumerable: false,
|
|
456
|
-
configurable: true
|
|
494
|
+
configurable: true,
|
|
457
495
|
});
|
|
458
|
-
Object.defineProperty(constructor,
|
|
459
|
-
value: superConstructor.prototype
|
|
496
|
+
Object.defineProperty(constructor, "super", {
|
|
497
|
+
value: superConstructor.prototype,
|
|
460
498
|
});
|
|
461
499
|
props && Object.assign(constructor.prototype, props);
|
|
462
500
|
};
|
|
@@ -485,13 +523,20 @@ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
|
|
|
485
523
|
i = props.length;
|
|
486
524
|
while (i-- > 0) {
|
|
487
525
|
prop = props[i];
|
|
488
|
-
if (
|
|
526
|
+
if (
|
|
527
|
+
(!propFilter || propFilter(prop, sourceObj, destObj)) &&
|
|
528
|
+
!merged[prop]
|
|
529
|
+
) {
|
|
489
530
|
destObj[prop] = sourceObj[prop];
|
|
490
531
|
merged[prop] = true;
|
|
491
532
|
}
|
|
492
533
|
}
|
|
493
534
|
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
|
494
|
-
} while (
|
|
535
|
+
} while (
|
|
536
|
+
sourceObj &&
|
|
537
|
+
(!filter || filter(sourceObj, destObj)) &&
|
|
538
|
+
sourceObj !== Object.prototype
|
|
539
|
+
);
|
|
495
540
|
|
|
496
541
|
return destObj;
|
|
497
542
|
};
|
|
@@ -515,7 +560,6 @@ const endsWith = (str, searchString, position) => {
|
|
|
515
560
|
return lastIndex !== -1 && lastIndex === position;
|
|
516
561
|
};
|
|
517
562
|
|
|
518
|
-
|
|
519
563
|
/**
|
|
520
564
|
* Returns new array from array like object or null if failed
|
|
521
565
|
*
|
|
@@ -544,12 +588,12 @@ const toArray = (thing) => {
|
|
|
544
588
|
* @returns {Array}
|
|
545
589
|
*/
|
|
546
590
|
// eslint-disable-next-line func-names
|
|
547
|
-
const isTypedArray = (TypedArray => {
|
|
591
|
+
const isTypedArray = ((TypedArray) => {
|
|
548
592
|
// eslint-disable-next-line func-names
|
|
549
|
-
return thing => {
|
|
593
|
+
return (thing) => {
|
|
550
594
|
return TypedArray && thing instanceof TypedArray;
|
|
551
595
|
};
|
|
552
|
-
})(typeof Uint8Array !==
|
|
596
|
+
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
553
597
|
|
|
554
598
|
/**
|
|
555
599
|
* For each entry in the object, call the function with the key and value.
|
|
@@ -592,18 +636,22 @@ const matchAll = (regExp, str) => {
|
|
|
592
636
|
};
|
|
593
637
|
|
|
594
638
|
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
|
|
595
|
-
const isHTMLForm = kindOfTest(
|
|
639
|
+
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
596
640
|
|
|
597
|
-
const toCamelCase = str => {
|
|
598
|
-
return str
|
|
599
|
-
|
|
641
|
+
const toCamelCase = (str) => {
|
|
642
|
+
return str
|
|
643
|
+
.toLowerCase()
|
|
644
|
+
.replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
600
645
|
return p1.toUpperCase() + p2;
|
|
601
|
-
}
|
|
602
|
-
);
|
|
646
|
+
});
|
|
603
647
|
};
|
|
604
648
|
|
|
605
649
|
/* Creating a function that will check if an object has a property. */
|
|
606
|
-
const hasOwnProperty = (
|
|
650
|
+
const hasOwnProperty = (
|
|
651
|
+
({ hasOwnProperty }) =>
|
|
652
|
+
(obj, prop) =>
|
|
653
|
+
hasOwnProperty.call(obj, prop)
|
|
654
|
+
)(Object.prototype);
|
|
607
655
|
|
|
608
656
|
/**
|
|
609
657
|
* Determine if a value is a RegExp object
|
|
@@ -612,7 +660,7 @@ const hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call
|
|
|
612
660
|
*
|
|
613
661
|
* @returns {boolean} True if value is a RegExp object, otherwise false
|
|
614
662
|
*/
|
|
615
|
-
const isRegExp = kindOfTest(
|
|
663
|
+
const isRegExp = kindOfTest("RegExp");
|
|
616
664
|
|
|
617
665
|
const reduceDescriptors = (obj, reducer) => {
|
|
618
666
|
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
@@ -636,7 +684,10 @@ const reduceDescriptors = (obj, reducer) => {
|
|
|
636
684
|
const freezeMethods = (obj) => {
|
|
637
685
|
reduceDescriptors(obj, (descriptor, name) => {
|
|
638
686
|
// skip restricted props in strict mode
|
|
639
|
-
if (
|
|
687
|
+
if (
|
|
688
|
+
isFunction$1(obj) &&
|
|
689
|
+
["arguments", "caller", "callee"].indexOf(name) !== -1
|
|
690
|
+
) {
|
|
640
691
|
return false;
|
|
641
692
|
}
|
|
642
693
|
|
|
@@ -646,14 +697,14 @@ const freezeMethods = (obj) => {
|
|
|
646
697
|
|
|
647
698
|
descriptor.enumerable = false;
|
|
648
699
|
|
|
649
|
-
if (
|
|
700
|
+
if ("writable" in descriptor) {
|
|
650
701
|
descriptor.writable = false;
|
|
651
702
|
return;
|
|
652
703
|
}
|
|
653
704
|
|
|
654
705
|
if (!descriptor.set) {
|
|
655
706
|
descriptor.set = () => {
|
|
656
|
-
throw Error(
|
|
707
|
+
throw Error("Can not rewrite read-only method '" + name + "'");
|
|
657
708
|
};
|
|
658
709
|
}
|
|
659
710
|
});
|
|
@@ -663,12 +714,14 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
663
714
|
const obj = {};
|
|
664
715
|
|
|
665
716
|
const define = (arr) => {
|
|
666
|
-
arr.forEach(value => {
|
|
717
|
+
arr.forEach((value) => {
|
|
667
718
|
obj[value] = true;
|
|
668
719
|
});
|
|
669
720
|
};
|
|
670
721
|
|
|
671
|
-
isArray(arrayOrString)
|
|
722
|
+
isArray(arrayOrString)
|
|
723
|
+
? define(arrayOrString)
|
|
724
|
+
: define(String(arrayOrString).split(delimiter));
|
|
672
725
|
|
|
673
726
|
return obj;
|
|
674
727
|
};
|
|
@@ -676,11 +729,11 @@ const toObjectSet = (arrayOrString, delimiter) => {
|
|
|
676
729
|
const noop = () => {};
|
|
677
730
|
|
|
678
731
|
const toFiniteNumber = (value, defaultValue) => {
|
|
679
|
-
return value != null && Number.isFinite(value = +value)
|
|
732
|
+
return value != null && Number.isFinite((value = +value))
|
|
733
|
+
? value
|
|
734
|
+
: defaultValue;
|
|
680
735
|
};
|
|
681
736
|
|
|
682
|
-
|
|
683
|
-
|
|
684
737
|
/**
|
|
685
738
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
686
739
|
*
|
|
@@ -689,14 +742,18 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
689
742
|
* @returns {boolean}
|
|
690
743
|
*/
|
|
691
744
|
function isSpecCompliantForm(thing) {
|
|
692
|
-
return !!(
|
|
745
|
+
return !!(
|
|
746
|
+
thing &&
|
|
747
|
+
isFunction$1(thing.append) &&
|
|
748
|
+
thing[toStringTag] === "FormData" &&
|
|
749
|
+
thing[iterator]
|
|
750
|
+
);
|
|
693
751
|
}
|
|
694
752
|
|
|
695
753
|
const toJSONObject = (obj) => {
|
|
696
754
|
const stack = new Array(10);
|
|
697
755
|
|
|
698
756
|
const visit = (source, i) => {
|
|
699
|
-
|
|
700
757
|
if (isObject(source)) {
|
|
701
758
|
if (stack.indexOf(source) >= 0) {
|
|
702
759
|
return;
|
|
@@ -707,7 +764,7 @@ const toJSONObject = (obj) => {
|
|
|
707
764
|
return source;
|
|
708
765
|
}
|
|
709
766
|
|
|
710
|
-
if(!(
|
|
767
|
+
if (!("toJSON" in source)) {
|
|
711
768
|
stack[i] = source;
|
|
712
769
|
const target = isArray(source) ? [] : {};
|
|
713
770
|
|
|
@@ -728,10 +785,13 @@ const toJSONObject = (obj) => {
|
|
|
728
785
|
return visit(obj, 0);
|
|
729
786
|
};
|
|
730
787
|
|
|
731
|
-
const isAsyncFn = kindOfTest(
|
|
788
|
+
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
732
789
|
|
|
733
790
|
const isThenable = (thing) =>
|
|
734
|
-
thing &&
|
|
791
|
+
thing &&
|
|
792
|
+
(isObject(thing) || isFunction$1(thing)) &&
|
|
793
|
+
isFunction$1(thing.then) &&
|
|
794
|
+
isFunction$1(thing.catch);
|
|
735
795
|
|
|
736
796
|
// original code
|
|
737
797
|
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
|
@@ -741,32 +801,35 @@ const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
|
741
801
|
return setImmediate;
|
|
742
802
|
}
|
|
743
803
|
|
|
744
|
-
return postMessageSupported
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
804
|
+
return postMessageSupported
|
|
805
|
+
? ((token, callbacks) => {
|
|
806
|
+
_global.addEventListener(
|
|
807
|
+
"message",
|
|
808
|
+
({ source, data }) => {
|
|
809
|
+
if (source === _global && data === token) {
|
|
810
|
+
callbacks.length && callbacks.shift()();
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
false,
|
|
814
|
+
);
|
|
750
815
|
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
isFunction$1(_global.postMessage)
|
|
759
|
-
);
|
|
816
|
+
return (cb) => {
|
|
817
|
+
callbacks.push(cb);
|
|
818
|
+
_global.postMessage(token, "*");
|
|
819
|
+
};
|
|
820
|
+
})(`axios@${Math.random()}`, [])
|
|
821
|
+
: (cb) => setTimeout(cb);
|
|
822
|
+
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
760
823
|
|
|
761
|
-
const asap =
|
|
762
|
-
|
|
824
|
+
const asap =
|
|
825
|
+
typeof queueMicrotask !== "undefined"
|
|
826
|
+
? queueMicrotask.bind(_global)
|
|
827
|
+
: (typeof process !== "undefined" && process.nextTick) || _setImmediate;
|
|
763
828
|
|
|
764
829
|
// *********************
|
|
765
830
|
|
|
766
|
-
|
|
767
831
|
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
768
832
|
|
|
769
|
-
|
|
770
833
|
var utils$1 = {
|
|
771
834
|
isArray,
|
|
772
835
|
isArrayBuffer,
|
|
@@ -824,7 +887,7 @@ var utils$1 = {
|
|
|
824
887
|
isThenable,
|
|
825
888
|
setImmediate: _setImmediate,
|
|
826
889
|
asap,
|
|
827
|
-
isIterable
|
|
890
|
+
isIterable,
|
|
828
891
|
};
|
|
829
892
|
|
|
830
893
|
let AxiosError$1 = class AxiosError extends Error {
|
|
@@ -14613,7 +14676,8 @@ class InterceptorManager {
|
|
|
14613
14676
|
var transitionalDefaults = {
|
|
14614
14677
|
silentJSONParsing: true,
|
|
14615
14678
|
forcedJSONParsing: true,
|
|
14616
|
-
clarifyTimeoutError: false
|
|
14679
|
+
clarifyTimeoutError: false,
|
|
14680
|
+
legacyInterceptorReqResOrdering: true
|
|
14617
14681
|
};
|
|
14618
14682
|
|
|
14619
14683
|
var URLSearchParams = require$$0$1.URLSearchParams;
|
|
@@ -15404,6 +15468,10 @@ function isAbsoluteURL(url) {
|
|
|
15404
15468
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
|
15405
15469
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
|
15406
15470
|
// by any combination of letters, digits, plus, period, or hyphen.
|
|
15471
|
+
if (typeof url !== 'string') {
|
|
15472
|
+
return false;
|
|
15473
|
+
}
|
|
15474
|
+
|
|
15407
15475
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
15408
15476
|
}
|
|
15409
15477
|
|
|
@@ -15563,7 +15631,7 @@ var followRedirects$1 = {exports: {}};
|
|
|
15563
15631
|
|
|
15564
15632
|
var src = {exports: {}};
|
|
15565
15633
|
|
|
15566
|
-
var browser = {exports: {}};
|
|
15634
|
+
var browser$1 = {exports: {}};
|
|
15567
15635
|
|
|
15568
15636
|
/**
|
|
15569
15637
|
* Helpers.
|
|
@@ -16038,11 +16106,11 @@ function requireCommon () {
|
|
|
16038
16106
|
|
|
16039
16107
|
/* eslint-env browser */
|
|
16040
16108
|
|
|
16041
|
-
var hasRequiredBrowser;
|
|
16109
|
+
var hasRequiredBrowser$1;
|
|
16042
16110
|
|
|
16043
|
-
function requireBrowser () {
|
|
16044
|
-
if (hasRequiredBrowser) return browser.exports;
|
|
16045
|
-
hasRequiredBrowser = 1;
|
|
16111
|
+
function requireBrowser$1 () {
|
|
16112
|
+
if (hasRequiredBrowser$1) return browser$1.exports;
|
|
16113
|
+
hasRequiredBrowser$1 = 1;
|
|
16046
16114
|
(function (module, exports$1) {
|
|
16047
16115
|
/**
|
|
16048
16116
|
* This is the web browser implementation of `debug()`.
|
|
@@ -16314,169 +16382,43 @@ function requireBrowser () {
|
|
|
16314
16382
|
return '[UnexpectedJSONParseError]: ' + error.message;
|
|
16315
16383
|
}
|
|
16316
16384
|
};
|
|
16317
|
-
} (browser, browser.exports));
|
|
16318
|
-
return browser.exports;
|
|
16385
|
+
} (browser$1, browser$1.exports));
|
|
16386
|
+
return browser$1.exports;
|
|
16319
16387
|
}
|
|
16320
16388
|
|
|
16321
16389
|
var node = {exports: {}};
|
|
16322
16390
|
|
|
16323
|
-
|
|
16324
|
-
var hasRequiredHasFlag;
|
|
16325
|
-
|
|
16326
|
-
function requireHasFlag () {
|
|
16327
|
-
if (hasRequiredHasFlag) return hasFlag;
|
|
16328
|
-
hasRequiredHasFlag = 1;
|
|
16329
|
-
|
|
16330
|
-
hasFlag = (flag, argv = process.argv) => {
|
|
16331
|
-
const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
|
|
16332
|
-
const position = argv.indexOf(prefix + flag);
|
|
16333
|
-
const terminatorPosition = argv.indexOf('--');
|
|
16334
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
16335
|
-
};
|
|
16336
|
-
return hasFlag;
|
|
16337
|
-
}
|
|
16338
|
-
|
|
16339
|
-
var supportsColor_1;
|
|
16340
|
-
var hasRequiredSupportsColor;
|
|
16341
|
-
|
|
16342
|
-
function requireSupportsColor () {
|
|
16343
|
-
if (hasRequiredSupportsColor) return supportsColor_1;
|
|
16344
|
-
hasRequiredSupportsColor = 1;
|
|
16345
|
-
const os = require$$0$2;
|
|
16346
|
-
const tty = require$$1$2;
|
|
16347
|
-
const hasFlag = requireHasFlag();
|
|
16348
|
-
|
|
16349
|
-
const {env} = process;
|
|
16350
|
-
|
|
16351
|
-
let forceColor;
|
|
16352
|
-
if (hasFlag('no-color') ||
|
|
16353
|
-
hasFlag('no-colors') ||
|
|
16354
|
-
hasFlag('color=false') ||
|
|
16355
|
-
hasFlag('color=never')) {
|
|
16356
|
-
forceColor = 0;
|
|
16357
|
-
} else if (hasFlag('color') ||
|
|
16358
|
-
hasFlag('colors') ||
|
|
16359
|
-
hasFlag('color=true') ||
|
|
16360
|
-
hasFlag('color=always')) {
|
|
16361
|
-
forceColor = 1;
|
|
16362
|
-
}
|
|
16363
|
-
|
|
16364
|
-
if ('FORCE_COLOR' in env) {
|
|
16365
|
-
if (env.FORCE_COLOR === 'true') {
|
|
16366
|
-
forceColor = 1;
|
|
16367
|
-
} else if (env.FORCE_COLOR === 'false') {
|
|
16368
|
-
forceColor = 0;
|
|
16369
|
-
} else {
|
|
16370
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
16371
|
-
}
|
|
16372
|
-
}
|
|
16373
|
-
|
|
16374
|
-
function translateLevel(level) {
|
|
16375
|
-
if (level === 0) {
|
|
16376
|
-
return false;
|
|
16377
|
-
}
|
|
16378
|
-
|
|
16379
|
-
return {
|
|
16380
|
-
level,
|
|
16381
|
-
hasBasic: true,
|
|
16382
|
-
has256: level >= 2,
|
|
16383
|
-
has16m: level >= 3
|
|
16384
|
-
};
|
|
16385
|
-
}
|
|
16386
|
-
|
|
16387
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
16388
|
-
if (forceColor === 0) {
|
|
16389
|
-
return 0;
|
|
16390
|
-
}
|
|
16391
|
-
|
|
16392
|
-
if (hasFlag('color=16m') ||
|
|
16393
|
-
hasFlag('color=full') ||
|
|
16394
|
-
hasFlag('color=truecolor')) {
|
|
16395
|
-
return 3;
|
|
16396
|
-
}
|
|
16397
|
-
|
|
16398
|
-
if (hasFlag('color=256')) {
|
|
16399
|
-
return 2;
|
|
16400
|
-
}
|
|
16401
|
-
|
|
16402
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
16403
|
-
return 0;
|
|
16404
|
-
}
|
|
16405
|
-
|
|
16406
|
-
const min = forceColor || 0;
|
|
16407
|
-
|
|
16408
|
-
if (env.TERM === 'dumb') {
|
|
16409
|
-
return min;
|
|
16410
|
-
}
|
|
16411
|
-
|
|
16412
|
-
if (process.platform === 'win32') {
|
|
16413
|
-
// Windows 10 build 10586 is the first Windows release that supports 256 colors.
|
|
16414
|
-
// Windows 10 build 14931 is the first release that supports 16m/TrueColor.
|
|
16415
|
-
const osRelease = os.release().split('.');
|
|
16416
|
-
if (
|
|
16417
|
-
Number(osRelease[0]) >= 10 &&
|
|
16418
|
-
Number(osRelease[2]) >= 10586
|
|
16419
|
-
) {
|
|
16420
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
16421
|
-
}
|
|
16422
|
-
|
|
16423
|
-
return 1;
|
|
16424
|
-
}
|
|
16425
|
-
|
|
16426
|
-
if ('CI' in env) {
|
|
16427
|
-
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
16428
|
-
return 1;
|
|
16429
|
-
}
|
|
16430
|
-
|
|
16431
|
-
return min;
|
|
16432
|
-
}
|
|
16433
|
-
|
|
16434
|
-
if ('TEAMCITY_VERSION' in env) {
|
|
16435
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
16436
|
-
}
|
|
16437
|
-
|
|
16438
|
-
if (env.COLORTERM === 'truecolor') {
|
|
16439
|
-
return 3;
|
|
16440
|
-
}
|
|
16441
|
-
|
|
16442
|
-
if ('TERM_PROGRAM' in env) {
|
|
16443
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
16391
|
+
/* eslint-env browser */
|
|
16444
16392
|
|
|
16445
|
-
|
|
16446
|
-
|
|
16447
|
-
return version >= 3 ? 3 : 2;
|
|
16448
|
-
case 'Apple_Terminal':
|
|
16449
|
-
return 2;
|
|
16450
|
-
// No default
|
|
16451
|
-
}
|
|
16452
|
-
}
|
|
16393
|
+
var browser;
|
|
16394
|
+
var hasRequiredBrowser;
|
|
16453
16395
|
|
|
16454
|
-
|
|
16455
|
-
|
|
16456
|
-
|
|
16396
|
+
function requireBrowser () {
|
|
16397
|
+
if (hasRequiredBrowser) return browser;
|
|
16398
|
+
hasRequiredBrowser = 1;
|
|
16457
16399
|
|
|
16458
|
-
|
|
16459
|
-
|
|
16460
|
-
}
|
|
16400
|
+
function getChromeVersion() {
|
|
16401
|
+
const matches = /(Chrome|Chromium)\/(?<chromeVersion>\d+)\./.exec(navigator.userAgent);
|
|
16461
16402
|
|
|
16462
|
-
if (
|
|
16463
|
-
return
|
|
16403
|
+
if (!matches) {
|
|
16404
|
+
return;
|
|
16464
16405
|
}
|
|
16465
16406
|
|
|
16466
|
-
return
|
|
16407
|
+
return Number.parseInt(matches.groups.chromeVersion, 10);
|
|
16467
16408
|
}
|
|
16468
16409
|
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
|
|
16410
|
+
const colorSupport = getChromeVersion() >= 69 ? {
|
|
16411
|
+
level: 1,
|
|
16412
|
+
hasBasic: true,
|
|
16413
|
+
has256: false,
|
|
16414
|
+
has16m: false
|
|
16415
|
+
} : false;
|
|
16473
16416
|
|
|
16474
|
-
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
16417
|
+
browser = {
|
|
16418
|
+
stdout: colorSupport,
|
|
16419
|
+
stderr: colorSupport
|
|
16478
16420
|
};
|
|
16479
|
-
return
|
|
16421
|
+
return browser;
|
|
16480
16422
|
}
|
|
16481
16423
|
|
|
16482
16424
|
/**
|
|
@@ -16489,7 +16431,7 @@ function requireNode () {
|
|
|
16489
16431
|
if (hasRequiredNode) return node.exports;
|
|
16490
16432
|
hasRequiredNode = 1;
|
|
16491
16433
|
(function (module, exports$1) {
|
|
16492
|
-
const tty = require$$
|
|
16434
|
+
const tty = require$$0$2;
|
|
16493
16435
|
const util = require$$1;
|
|
16494
16436
|
|
|
16495
16437
|
/**
|
|
@@ -16516,7 +16458,7 @@ function requireNode () {
|
|
|
16516
16458
|
try {
|
|
16517
16459
|
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
16518
16460
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
16519
|
-
const supportsColor =
|
|
16461
|
+
const supportsColor = requireBrowser();
|
|
16520
16462
|
|
|
16521
16463
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
16522
16464
|
exports$1.colors = [
|
|
@@ -16763,7 +16705,7 @@ function requireSrc () {
|
|
|
16763
16705
|
if (hasRequiredSrc) return src.exports;
|
|
16764
16706
|
hasRequiredSrc = 1;
|
|
16765
16707
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
|
16766
|
-
src.exports = requireBrowser();
|
|
16708
|
+
src.exports = requireBrowser$1();
|
|
16767
16709
|
} else {
|
|
16768
16710
|
src.exports = requireNode();
|
|
16769
16711
|
}
|
|
@@ -17491,7 +17433,7 @@ function requireFollowRedirects () {
|
|
|
17491
17433
|
var followRedirectsExports = requireFollowRedirects();
|
|
17492
17434
|
var followRedirects = /*@__PURE__*/getDefaultExportFromCjs(followRedirectsExports);
|
|
17493
17435
|
|
|
17494
|
-
const VERSION$1 = "1.13.
|
|
17436
|
+
const VERSION$1 = "1.13.5";
|
|
17495
17437
|
|
|
17496
17438
|
function parseProtocol(url) {
|
|
17497
17439
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
@@ -18978,7 +18920,8 @@ var cookies = platform.hasStandardBrowserEnv ?
|
|
|
18978
18920
|
remove() {}
|
|
18979
18921
|
};
|
|
18980
18922
|
|
|
18981
|
-
const headersToObject = (thing) =>
|
|
18923
|
+
const headersToObject = (thing) =>
|
|
18924
|
+
thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
18982
18925
|
|
|
18983
18926
|
/**
|
|
18984
18927
|
* Config-specific merge-function which creates a new config-object
|
|
@@ -19067,14 +19010,27 @@ function mergeConfig$1(config1, config2) {
|
|
|
19067
19010
|
socketPath: defaultToConfig2,
|
|
19068
19011
|
responseEncoding: defaultToConfig2,
|
|
19069
19012
|
validateStatus: mergeDirectKeys,
|
|
19070
|
-
headers: (a, b, prop) =>
|
|
19013
|
+
headers: (a, b, prop) =>
|
|
19014
|
+
mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true),
|
|
19071
19015
|
};
|
|
19072
19016
|
|
|
19073
|
-
utils$1.forEach(
|
|
19074
|
-
|
|
19075
|
-
|
|
19076
|
-
|
|
19077
|
-
|
|
19017
|
+
utils$1.forEach(
|
|
19018
|
+
Object.keys({ ...config1, ...config2 }),
|
|
19019
|
+
function computeConfigValue(prop) {
|
|
19020
|
+
if (
|
|
19021
|
+
prop === "__proto__" ||
|
|
19022
|
+
prop === "constructor" ||
|
|
19023
|
+
prop === "prototype"
|
|
19024
|
+
)
|
|
19025
|
+
return;
|
|
19026
|
+
const merge = utils$1.hasOwnProp(mergeMap, prop)
|
|
19027
|
+
? mergeMap[prop]
|
|
19028
|
+
: mergeDeepProperties;
|
|
19029
|
+
const configValue = merge(config1[prop], config2[prop], prop);
|
|
19030
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) ||
|
|
19031
|
+
(config[prop] = configValue);
|
|
19032
|
+
},
|
|
19033
|
+
);
|
|
19078
19034
|
|
|
19079
19035
|
return config;
|
|
19080
19036
|
}
|
|
@@ -19690,14 +19646,14 @@ const factory = (env) => {
|
|
|
19690
19646
|
|
|
19691
19647
|
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
|
19692
19648
|
throw Object.assign(
|
|
19693
|
-
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request),
|
|
19649
|
+
new AxiosError$1('Network Error', AxiosError$1.ERR_NETWORK, config, request, err && err.response),
|
|
19694
19650
|
{
|
|
19695
19651
|
cause: err.cause || err
|
|
19696
19652
|
}
|
|
19697
19653
|
)
|
|
19698
19654
|
}
|
|
19699
19655
|
|
|
19700
|
-
throw AxiosError$1.from(err, err && err.code, config, request);
|
|
19656
|
+
throw AxiosError$1.from(err, err && err.code, config, request, err && err.response);
|
|
19701
19657
|
}
|
|
19702
19658
|
}
|
|
19703
19659
|
};
|
|
@@ -20088,7 +20044,8 @@ let Axios$1 = class Axios {
|
|
|
20088
20044
|
validator.assertOptions(transitional, {
|
|
20089
20045
|
silentJSONParsing: validators.transitional(validators.boolean),
|
|
20090
20046
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
20091
|
-
clarifyTimeoutError: validators.transitional(validators.boolean)
|
|
20047
|
+
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
20048
|
+
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
|
20092
20049
|
}, false);
|
|
20093
20050
|
}
|
|
20094
20051
|
|
|
@@ -20145,7 +20102,14 @@ let Axios$1 = class Axios {
|
|
|
20145
20102
|
|
|
20146
20103
|
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
20147
20104
|
|
|
20148
|
-
|
|
20105
|
+
const transitional = config.transitional || transitionalDefaults;
|
|
20106
|
+
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
|
20107
|
+
|
|
20108
|
+
if (legacyInterceptorReqResOrdering) {
|
|
20109
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
20110
|
+
} else {
|
|
20111
|
+
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
20112
|
+
}
|
|
20149
20113
|
});
|
|
20150
20114
|
|
|
20151
20115
|
const responseInterceptorChain = [];
|