@iblai/web-containers 1.44.2 → 1.44.3
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/cjs/_virtual/index.js +2 -2
- package/dist/cjs/_virtual/index2.js +2 -2
- package/dist/cjs/_virtual/index4.js +2 -2
- package/dist/cjs/_virtual/index5.js +2 -2
- package/dist/cjs/components/modals/user-profile-modal.js +1 -1
- package/dist/cjs/components/platform-sidebar/index.js +1 -1
- package/dist/cjs/components/profile/chat-history/chat-history-tab.js +2 -2
- package/dist/cjs/components/profile/chat-history/chat-history-tab.js.map +1 -1
- package/dist/cjs/components/profile/index.js +2 -2
- package/dist/cjs/components/profile/index.js.map +1 -1
- package/dist/cjs/components/skills-profile/user-avatar.js +2 -2
- package/dist/cjs/components/skills-profile/user-avatar.js.map +1 -1
- package/dist/cjs/components/user-profile-dropdown/index.js +4 -4
- package/dist/cjs/components/user-profile-dropdown/index.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +74 -65
- package/dist/cjs/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -4
- package/dist/cjs/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/react-responsive@10.0.1_react@19.1.0/node_modules/react-responsive/dist/esm/index.js +29 -29
- package/dist/cjs/node_modules/.pnpm/react-responsive@10.0.1_react@19.1.0/node_modules/react-responsive/dist/esm/index.js.map +1 -1
- package/dist/cjs/node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/cjs/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.1.0/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/cjs/web-containers/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/_virtual/index.js +2 -2
- package/dist/esm/_virtual/index2.js +2 -2
- package/dist/esm/_virtual/index4.js +2 -2
- package/dist/esm/_virtual/index5.js +2 -2
- package/dist/esm/components/modals/user-profile-modal.js +1 -1
- package/dist/esm/components/platform-sidebar/index.js +1 -1
- package/dist/esm/components/profile/chat-history/chat-history-tab.js +1 -1
- package/dist/esm/components/profile/chat-history/chat-history-tab.js.map +1 -1
- package/dist/esm/components/profile/index.js +1 -1
- package/dist/esm/components/profile/index.js.map +1 -1
- package/dist/esm/components/skills-profile/user-avatar.js +1 -1
- package/dist/esm/components/skills-profile/user-avatar.js.map +1 -1
- package/dist/esm/components/user-profile-dropdown/index.js +1 -1
- package/dist/esm/components/user-profile-dropdown/index.js.map +1 -1
- package/dist/esm/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js +74 -65
- package/dist/esm/node_modules/.pnpm/object-assign@4.1.1/node_modules/object-assign/index.js.map +1 -1
- package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js +2 -2
- package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -1
- package/dist/esm/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/style-to-js@1.1.21/node_modules/style-to-js/cjs/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/style-to-object@1.0.14/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/esm/node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.1.0/node_modules/use-sync-external-store/shim/index.js +1 -1
- package/dist/esm/web-containers/tsconfig.tsbuildinfo +1 -1
- package/dist/package.json +1 -1
- package/package.json +3 -3
- package/dist/cjs/_virtual/crypt.js +0 -6
- package/dist/cjs/_virtual/crypt.js.map +0 -1
- package/dist/cjs/_virtual/index6.js +0 -6
- package/dist/cjs/_virtual/index6.js.map +0 -1
- package/dist/cjs/_virtual/md5.js +0 -6
- package/dist/cjs/_virtual/md5.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/charenc@0.0.2/node_modules/charenc/charenc.js +0 -38
- package/dist/cjs/node_modules/.pnpm/charenc@0.0.2/node_modules/charenc/charenc.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/crypt@0.0.2/node_modules/crypt/crypt.js +0 -105
- package/dist/cjs/node_modules/.pnpm/crypt@0.0.2/node_modules/crypt/crypt.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/is-buffer@1.1.6/node_modules/is-buffer/index.js +0 -26
- package/dist/cjs/node_modules/.pnpm/is-buffer@1.1.6/node_modules/is-buffer/index.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/is-retina@1.0.3/node_modules/is-retina/index.js +0 -18
- package/dist/cjs/node_modules/.pnpm/is-retina@1.0.3/node_modules/is-retina/index.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/md5@2.3.0/node_modules/md5/md5.js +0 -172
- package/dist/cjs/node_modules/.pnpm/md5@2.3.0/node_modules/md5/md5.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/query-string@4.3.4/node_modules/query-string/index.js +0 -213
- package/dist/cjs/node_modules/.pnpm/query-string@4.3.4/node_modules/query-string/index.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/react-gravatar@2.6.3_react@19.1.0/node_modules/react-gravatar/dist/index.js +0 -163
- package/dist/cjs/node_modules/.pnpm/react-gravatar@2.6.3_react@19.1.0/node_modules/react-gravatar/dist/index.js.map +0 -1
- package/dist/cjs/node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js +0 -10
- package/dist/cjs/node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js.map +0 -1
- package/dist/esm/_virtual/crypt.js +0 -4
- package/dist/esm/_virtual/crypt.js.map +0 -1
- package/dist/esm/_virtual/index6.js +0 -4
- package/dist/esm/_virtual/index6.js.map +0 -1
- package/dist/esm/_virtual/md5.js +0 -4
- package/dist/esm/_virtual/md5.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/charenc@0.0.2/node_modules/charenc/charenc.js +0 -36
- package/dist/esm/node_modules/.pnpm/charenc@0.0.2/node_modules/charenc/charenc.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/crypt@0.0.2/node_modules/crypt/crypt.js +0 -103
- package/dist/esm/node_modules/.pnpm/crypt@0.0.2/node_modules/crypt/crypt.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/is-buffer@1.1.6/node_modules/is-buffer/index.js +0 -24
- package/dist/esm/node_modules/.pnpm/is-buffer@1.1.6/node_modules/is-buffer/index.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/is-retina@1.0.3/node_modules/is-retina/index.js +0 -16
- package/dist/esm/node_modules/.pnpm/is-retina@1.0.3/node_modules/is-retina/index.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/md5@2.3.0/node_modules/md5/md5.js +0 -170
- package/dist/esm/node_modules/.pnpm/md5@2.3.0/node_modules/md5/md5.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/query-string@4.3.4/node_modules/query-string/index.js +0 -211
- package/dist/esm/node_modules/.pnpm/query-string@4.3.4/node_modules/query-string/index.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/react-gravatar@2.6.3_react@19.1.0/node_modules/react-gravatar/dist/index.js +0 -161
- package/dist/esm/node_modules/.pnpm/react-gravatar@2.6.3_react@19.1.0/node_modules/react-gravatar/dist/index.js.map +0 -1
- package/dist/esm/node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js +0 -8
- package/dist/esm/node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js.map +0 -1
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('../../../../../_virtual/index.js');
|
|
4
|
-
var index$2 = require('../../../strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js');
|
|
5
|
-
var index$1 = require('../../../object-assign@4.1.1/node_modules/object-assign/index.js');
|
|
6
|
-
|
|
7
|
-
var strictUriEncode = index$2.strictUriEncode;
|
|
8
|
-
var objectAssign = index$1.objectAssign;
|
|
9
|
-
|
|
10
|
-
function encoderForArrayFormat(opts) {
|
|
11
|
-
switch (opts.arrayFormat) {
|
|
12
|
-
case 'index':
|
|
13
|
-
return function (key, value, index) {
|
|
14
|
-
return value === null ? [
|
|
15
|
-
encode(key, opts),
|
|
16
|
-
'[',
|
|
17
|
-
index,
|
|
18
|
-
']'
|
|
19
|
-
].join('') : [
|
|
20
|
-
encode(key, opts),
|
|
21
|
-
'[',
|
|
22
|
-
encode(index, opts),
|
|
23
|
-
']=',
|
|
24
|
-
encode(value, opts)
|
|
25
|
-
].join('');
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
case 'bracket':
|
|
29
|
-
return function (key, value) {
|
|
30
|
-
return value === null ? encode(key, opts) : [
|
|
31
|
-
encode(key, opts),
|
|
32
|
-
'[]=',
|
|
33
|
-
encode(value, opts)
|
|
34
|
-
].join('');
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
default:
|
|
38
|
-
return function (key, value) {
|
|
39
|
-
return value === null ? encode(key, opts) : [
|
|
40
|
-
encode(key, opts),
|
|
41
|
-
'=',
|
|
42
|
-
encode(value, opts)
|
|
43
|
-
].join('');
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function parserForArrayFormat(opts) {
|
|
49
|
-
var result;
|
|
50
|
-
|
|
51
|
-
switch (opts.arrayFormat) {
|
|
52
|
-
case 'index':
|
|
53
|
-
return function (key, value, accumulator) {
|
|
54
|
-
result = /\[(\d*)\]$/.exec(key);
|
|
55
|
-
|
|
56
|
-
key = key.replace(/\[\d*\]$/, '');
|
|
57
|
-
|
|
58
|
-
if (!result) {
|
|
59
|
-
accumulator[key] = value;
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (accumulator[key] === undefined) {
|
|
64
|
-
accumulator[key] = {};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
accumulator[key][result[1]] = value;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
case 'bracket':
|
|
71
|
-
return function (key, value, accumulator) {
|
|
72
|
-
result = /(\[\])$/.exec(key);
|
|
73
|
-
key = key.replace(/\[\]$/, '');
|
|
74
|
-
|
|
75
|
-
if (!result) {
|
|
76
|
-
accumulator[key] = value;
|
|
77
|
-
return;
|
|
78
|
-
} else if (accumulator[key] === undefined) {
|
|
79
|
-
accumulator[key] = [value];
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
accumulator[key] = [].concat(accumulator[key], value);
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
default:
|
|
87
|
-
return function (key, value, accumulator) {
|
|
88
|
-
if (accumulator[key] === undefined) {
|
|
89
|
-
accumulator[key] = value;
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
accumulator[key] = [].concat(accumulator[key], value);
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function encode(value, opts) {
|
|
99
|
-
if (opts.encode) {
|
|
100
|
-
return opts.strict ? strictUriEncode(value) : encodeURIComponent(value);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
return value;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function keysSorter(input) {
|
|
107
|
-
if (Array.isArray(input)) {
|
|
108
|
-
return input.sort();
|
|
109
|
-
} else if (typeof input === 'object') {
|
|
110
|
-
return keysSorter(Object.keys(input)).sort(function (a, b) {
|
|
111
|
-
return Number(a) - Number(b);
|
|
112
|
-
}).map(function (key) {
|
|
113
|
-
return input[key];
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return input;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
index.__exports.extract = function (str) {
|
|
121
|
-
return str.split('?')[1] || '';
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
index.__exports.parse = function (str, opts) {
|
|
125
|
-
opts = objectAssign({arrayFormat: 'none'}, opts);
|
|
126
|
-
|
|
127
|
-
var formatter = parserForArrayFormat(opts);
|
|
128
|
-
|
|
129
|
-
// Create an object with no prototype
|
|
130
|
-
// https://github.com/sindresorhus/query-string/issues/47
|
|
131
|
-
var ret = Object.create(null);
|
|
132
|
-
|
|
133
|
-
if (typeof str !== 'string') {
|
|
134
|
-
return ret;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
str = str.trim().replace(/^(\?|#|&)/, '');
|
|
138
|
-
|
|
139
|
-
if (!str) {
|
|
140
|
-
return ret;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
str.split('&').forEach(function (param) {
|
|
144
|
-
var parts = param.replace(/\+/g, ' ').split('=');
|
|
145
|
-
// Firefox (pre 40) decodes `%3D` to `=`
|
|
146
|
-
// https://github.com/sindresorhus/query-string/pull/37
|
|
147
|
-
var key = parts.shift();
|
|
148
|
-
var val = parts.length > 0 ? parts.join('=') : undefined;
|
|
149
|
-
|
|
150
|
-
// missing `=` should be `null`:
|
|
151
|
-
// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters
|
|
152
|
-
val = val === undefined ? null : decodeURIComponent(val);
|
|
153
|
-
|
|
154
|
-
formatter(decodeURIComponent(key), val, ret);
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
return Object.keys(ret).sort().reduce(function (result, key) {
|
|
158
|
-
var val = ret[key];
|
|
159
|
-
if (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {
|
|
160
|
-
// Sort object keys, not values
|
|
161
|
-
result[key] = keysSorter(val);
|
|
162
|
-
} else {
|
|
163
|
-
result[key] = val;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return result;
|
|
167
|
-
}, Object.create(null));
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
index.__exports.stringify = function (obj, opts) {
|
|
171
|
-
var defaults = {
|
|
172
|
-
encode: true,
|
|
173
|
-
strict: true,
|
|
174
|
-
arrayFormat: 'none'
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
opts = objectAssign(defaults, opts);
|
|
178
|
-
|
|
179
|
-
var formatter = encoderForArrayFormat(opts);
|
|
180
|
-
|
|
181
|
-
return obj ? Object.keys(obj).sort().map(function (key) {
|
|
182
|
-
var val = obj[key];
|
|
183
|
-
|
|
184
|
-
if (val === undefined) {
|
|
185
|
-
return '';
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (val === null) {
|
|
189
|
-
return encode(key, opts);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (Array.isArray(val)) {
|
|
193
|
-
var result = [];
|
|
194
|
-
|
|
195
|
-
val.slice().forEach(function (val2) {
|
|
196
|
-
if (val2 === undefined) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
result.push(formatter(key, val2, result.length));
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
return result.join('&');
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
return encode(key, opts) + '=' + encode(val, opts);
|
|
207
|
-
}).filter(function (x) {
|
|
208
|
-
return x.length > 0;
|
|
209
|
-
}).join('&') : '';
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
module.exports = index.__exports;
|
|
213
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/node_modules/.pnpm/query-string@4.3.4/node_modules/query-string/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/query-string@4.3.4/node_modules/query-string/index.js"],"sourcesContent":["'use strict';\nvar strictUriEncode = require('strict-uri-encode');\nvar objectAssign = require('object-assign');\n\nfunction encoderForArrayFormat(opts) {\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, index) {\n\t\t\t\treturn value === null ? [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tindex,\n\t\t\t\t\t']'\n\t\t\t\t].join('') : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[',\n\t\t\t\t\tencode(index, opts),\n\t\t\t\t\t']=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'[]=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value) {\n\t\t\t\treturn value === null ? encode(key, opts) : [\n\t\t\t\t\tencode(key, opts),\n\t\t\t\t\t'=',\n\t\t\t\t\tencode(value, opts)\n\t\t\t\t].join('');\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(opts) {\n\tvar result;\n\n\tswitch (opts.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t} else if (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn function (key, value, accumulator) {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction encode(value, opts) {\n\tif (opts.encode) {\n\t\treturn opts.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t} else if (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input)).sort(function (a, b) {\n\t\t\treturn Number(a) - Number(b);\n\t\t}).map(function (key) {\n\t\t\treturn input[key];\n\t\t});\n\t}\n\n\treturn input;\n}\n\nexports.extract = function (str) {\n\treturn str.split('?')[1] || '';\n};\n\nexports.parse = function (str, opts) {\n\topts = objectAssign({arrayFormat: 'none'}, opts);\n\n\tvar formatter = parserForArrayFormat(opts);\n\n\t// Create an object with no prototype\n\t// https://github.com/sindresorhus/query-string/issues/47\n\tvar ret = Object.create(null);\n\n\tif (typeof str !== 'string') {\n\t\treturn ret;\n\t}\n\n\tstr = str.trim().replace(/^(\\?|#|&)/, '');\n\n\tif (!str) {\n\t\treturn ret;\n\t}\n\n\tstr.split('&').forEach(function (param) {\n\t\tvar parts = param.replace(/\\+/g, ' ').split('=');\n\t\t// Firefox (pre 40) decodes `%3D` to `=`\n\t\t// https://github.com/sindresorhus/query-string/pull/37\n\t\tvar key = parts.shift();\n\t\tvar val = parts.length > 0 ? parts.join('=') : undefined;\n\n\t\t// missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tval = val === undefined ? null : decodeURIComponent(val);\n\n\t\tformatter(decodeURIComponent(key), val, ret);\n\t});\n\n\treturn Object.keys(ret).sort().reduce(function (result, key) {\n\t\tvar val = ret[key];\n\t\tif (Boolean(val) && typeof val === 'object' && !Array.isArray(val)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(val);\n\t\t} else {\n\t\t\tresult[key] = val;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n};\n\nexports.stringify = function (obj, opts) {\n\tvar defaults = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none'\n\t};\n\n\topts = objectAssign(defaults, opts);\n\n\tvar formatter = encoderForArrayFormat(opts);\n\n\treturn obj ? Object.keys(obj).sort().map(function (key) {\n\t\tvar val = obj[key];\n\n\t\tif (val === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (val === null) {\n\t\t\treturn encode(key, opts);\n\t\t}\n\n\t\tif (Array.isArray(val)) {\n\t\t\tvar result = [];\n\n\t\t\tval.slice().forEach(function (val2) {\n\t\t\t\tif (val2 === undefined) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tresult.push(formatter(key, val2, result.length));\n\t\t\t});\n\n\t\t\treturn result.join('&');\n\t\t}\n\n\t\treturn encode(key, opts) + '=' + encode(val, opts);\n\t}).filter(function (x) {\n\t\treturn x.length > 0;\n\t}).join('&') : '';\n};\n"],"names":["require$$0","require$$1","queryString"],"mappings":";;;;;;AACA,IAAI,eAAe,GAAGA,uBAA4B;AAClD,IAAI,YAAY,GAAGC,oBAAwB;;AAE3C,SAAS,qBAAqB,CAAC,IAAI,EAAE;AACrC,CAAC,QAAQ,IAAI,CAAC,WAAW;AACzB,EAAE,KAAK,OAAO;AACd,GAAG,OAAO,UAAU,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE;AACvC,IAAI,OAAO,KAAK,KAAK,IAAI,GAAG;AAC5B,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;AACtB,KAAK,GAAG;AACR,KAAK,KAAK;AACV,KAAK;AACL,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG;AACjB,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;AACtB,KAAK,GAAG;AACR,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC;AACxB,KAAK,IAAI;AACT,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI;AACvB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;AACd,GAAA,CAAI;;AAEJ,EAAE,KAAK,SAAS;AAChB,GAAG,OAAO,UAAU,GAAG,EAAE,KAAK,EAAE;AAChC,IAAI,OAAO,KAAK,KAAK,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG;AAChD,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;AACtB,KAAK,KAAK;AACV,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI;AACvB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;AACd,GAAA,CAAI;;AAEJ,EAAE;AACF,GAAG,OAAO,UAAU,GAAG,EAAE,K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EAAE,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;;AAEpB,EAAE,IAAI,GAAG,KAAK,SAAS,EAAE;AACzB,GAAG,OAAO,EAAE;AACZ,EAAA;;AAEA,EAAE,IAAI,GAAG,KAAK,IAAI,EAAE;AACpB,GAAG,OAAO,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;AAC3B,EAAA;;AAEA,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;AAC1B,GAAG,IAAI,MAAM,GAAG,EAAE;;AAElB,GAAG,GAAG,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE;AACvC,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;AAC5B,KAAK;AACL,IAAA;;AAEA,IAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;AACpD,GAAA,CAAI,CAAC;;AAEL,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AAC1B,EAAA;;AAEA,EAAE,OAAO,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;AACpD,CAAA,CAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;AACxB,EAAE,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC;AACrB,CAAA,CAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;AAClB;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _commonjsHelpers = require('../../../../../../_virtual/_commonjsHelpers.js');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var md5 = require('../../../../md5@2.3.0/node_modules/md5/md5.js');
|
|
6
|
-
require('../../../../query-string@4.3.4/node_modules/query-string/index.js');
|
|
7
|
-
var index$1 = require('../../../../is-retina@1.0.3/node_modules/is-retina/index.js');
|
|
8
|
-
var index$2 = require('../../../../prop-types@15.8.1/node_modules/prop-types/index.js');
|
|
9
|
-
var index = require('../../../../../../_virtual/index.js');
|
|
10
|
-
|
|
11
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
12
|
-
|
|
13
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
14
|
-
|
|
15
|
-
var _react = React;
|
|
16
|
-
|
|
17
|
-
var _react2 = _interopRequireDefault(_react);
|
|
18
|
-
|
|
19
|
-
var _md = md5.md5Exports;
|
|
20
|
-
|
|
21
|
-
var _md2 = _interopRequireDefault(_md);
|
|
22
|
-
|
|
23
|
-
var _queryString = index.__exports;
|
|
24
|
-
|
|
25
|
-
var _queryString2 = _interopRequireDefault(_queryString);
|
|
26
|
-
|
|
27
|
-
var _isRetina = index$1.isRetina;
|
|
28
|
-
|
|
29
|
-
var _isRetina2 = _interopRequireDefault(_isRetina);
|
|
30
|
-
|
|
31
|
-
var _propTypes = index$2.propTypesExports;
|
|
32
|
-
|
|
33
|
-
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
34
|
-
|
|
35
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
36
|
-
|
|
37
|
-
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
38
|
-
|
|
39
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
40
|
-
|
|
41
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
42
|
-
|
|
43
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
44
|
-
|
|
45
|
-
var Gravatar = function (_React$Component) {
|
|
46
|
-
_inherits(Gravatar, _React$Component);
|
|
47
|
-
|
|
48
|
-
function Gravatar() {
|
|
49
|
-
_classCallCheck(this, Gravatar);
|
|
50
|
-
|
|
51
|
-
return _possibleConstructorReturn(this, (Gravatar.__proto__ || Object.getPrototypeOf(Gravatar)).apply(this, arguments));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
_createClass(Gravatar, [{
|
|
55
|
-
key: 'render',
|
|
56
|
-
value: function render() {
|
|
57
|
-
var base = this.props.protocol + 'www.gravatar.com/avatar/';
|
|
58
|
-
|
|
59
|
-
var query = _queryString2.default.stringify({
|
|
60
|
-
s: this.props.size,
|
|
61
|
-
r: this.props.rating,
|
|
62
|
-
d: this.props.default
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
var retinaQuery = _queryString2.default.stringify({
|
|
66
|
-
s: this.props.size * 2,
|
|
67
|
-
r: this.props.rating,
|
|
68
|
-
d: this.props.default
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
// Gravatar service currently trims and lowercases all registered emails
|
|
72
|
-
var formattedEmail = ('' + this.props.email).trim().toLowerCase();
|
|
73
|
-
|
|
74
|
-
var hash = void 0;
|
|
75
|
-
if (this.props.md5) {
|
|
76
|
-
hash = this.props.md5;
|
|
77
|
-
} else if (typeof this.props.email === 'string') {
|
|
78
|
-
hash = (0, _md2.default)(formattedEmail, { encoding: "binary" });
|
|
79
|
-
} else {
|
|
80
|
-
console.warn('Gravatar image can not be fetched. Either the "email" or "md5" prop must be specified.');
|
|
81
|
-
return _react2.default.createElement('script', null);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
var src = '' + base + hash + '?' + query;
|
|
85
|
-
var retinaSrc = '' + base + hash + '?' + retinaQuery;
|
|
86
|
-
|
|
87
|
-
var modernBrowser = true; // server-side, we render for modern browsers
|
|
88
|
-
|
|
89
|
-
if (typeof window !== 'undefined') {
|
|
90
|
-
// this is not NodeJS
|
|
91
|
-
modernBrowser = 'srcset' in document.createElement('img');
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
var className = 'react-gravatar';
|
|
95
|
-
if (this.props.className) {
|
|
96
|
-
className = className + ' ' + this.props.className;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Clone this.props and then delete Component specific props so we can
|
|
100
|
-
// spread the rest into the img.
|
|
101
|
-
|
|
102
|
-
var rest = _objectWithoutProperties(this.props, []);
|
|
103
|
-
|
|
104
|
-
delete rest.md5;
|
|
105
|
-
delete rest.email;
|
|
106
|
-
delete rest.protocol;
|
|
107
|
-
delete rest.rating;
|
|
108
|
-
delete rest.size;
|
|
109
|
-
delete rest.style;
|
|
110
|
-
delete rest.className;
|
|
111
|
-
delete rest.default;
|
|
112
|
-
if (!modernBrowser && (0, _isRetina2.default)()) {
|
|
113
|
-
return _react2.default.createElement('img', _extends({
|
|
114
|
-
alt: 'Gravatar for ' + formattedEmail,
|
|
115
|
-
style: this.props.style,
|
|
116
|
-
src: retinaSrc,
|
|
117
|
-
height: this.props.size,
|
|
118
|
-
width: this.props.size
|
|
119
|
-
}, rest, {
|
|
120
|
-
className: className
|
|
121
|
-
}));
|
|
122
|
-
}
|
|
123
|
-
return _react2.default.createElement('img', _extends({
|
|
124
|
-
alt: 'Gravatar for ' + formattedEmail,
|
|
125
|
-
style: this.props.style,
|
|
126
|
-
src: src,
|
|
127
|
-
srcSet: retinaSrc + ' 2x',
|
|
128
|
-
height: this.props.size,
|
|
129
|
-
width: this.props.size
|
|
130
|
-
}, rest, {
|
|
131
|
-
className: className
|
|
132
|
-
}));
|
|
133
|
-
}
|
|
134
|
-
}]);
|
|
135
|
-
|
|
136
|
-
return Gravatar;
|
|
137
|
-
}(_react2.default.Component);
|
|
138
|
-
|
|
139
|
-
Gravatar.displayName = 'Gravatar';
|
|
140
|
-
Gravatar.propTypes = {
|
|
141
|
-
email: _propTypes2.default.string,
|
|
142
|
-
md5: _propTypes2.default.string,
|
|
143
|
-
size: _propTypes2.default.number,
|
|
144
|
-
rating: _propTypes2.default.string,
|
|
145
|
-
default: _propTypes2.default.string,
|
|
146
|
-
className: _propTypes2.default.string,
|
|
147
|
-
protocol: _propTypes2.default.string,
|
|
148
|
-
style: _propTypes2.default.object
|
|
149
|
-
};
|
|
150
|
-
Gravatar.defaultProps = {
|
|
151
|
-
size: 50,
|
|
152
|
-
rating: 'g',
|
|
153
|
-
default: 'retro',
|
|
154
|
-
protocol: '//'
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
var dist = Gravatar;
|
|
159
|
-
|
|
160
|
-
var Gravatar$1 = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(dist);
|
|
161
|
-
|
|
162
|
-
module.exports = Gravatar$1;
|
|
163
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../../node_modules/.pnpm/react-gravatar@2.6.3_react@19.1.0/node_modules/react-gravatar/dist/index.js"],"sourcesContent":["'use strict';\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _md = require('md5');\n\nvar _md2 = _interopRequireDefault(_md);\n\nvar _queryString = require('query-string');\n\nvar _queryString2 = _interopRequireDefault(_queryString);\n\nvar _isRetina = require('is-retina');\n\nvar _isRetina2 = _interopRequireDefault(_isRetina);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar Gravatar = function (_React$Component) {\n _inherits(Gravatar, _React$Component);\n\n function Gravatar() {\n _classCallCheck(this, Gravatar);\n\n return _possibleConstructorReturn(this, (Gravatar.__proto__ || Object.getPrototypeOf(Gravatar)).apply(this, arguments));\n }\n\n _createClass(Gravatar, [{\n key: 'render',\n value: function render() {\n var base = this.props.protocol + 'www.gravatar.com/avatar/';\n\n var query = _queryString2.default.stringify({\n s: this.props.size,\n r: this.props.rating,\n d: this.props.default\n });\n\n var retinaQuery = _queryString2.default.stringify({\n s: this.props.size * 2,\n r: this.props.rating,\n d: this.props.default\n });\n\n // Gravatar service currently trims and lowercases all registered emails\n var formattedEmail = ('' + this.props.email).trim().toLowerCase();\n\n var hash = void 0;\n if (this.props.md5) {\n hash = this.props.md5;\n } else if (typeof this.props.email === 'string') {\n hash = (0, _md2.default)(formattedEmail, { encoding: \"binary\" });\n } else {\n console.warn('Gravatar image can not be fetched. Either the \"email\" or \"md5\" prop must be specified.');\n return _react2.default.createElement('script', null);\n }\n\n var src = '' + base + hash + '?' + query;\n var retinaSrc = '' + base + hash + '?' + retinaQuery;\n\n var modernBrowser = true; // server-side, we render for modern browsers\n\n if (typeof window !== 'undefined') {\n // this is not NodeJS\n modernBrowser = 'srcset' in document.createElement('img');\n }\n\n var className = 'react-gravatar';\n if (this.props.className) {\n className = className + ' ' + this.props.className;\n }\n\n // Clone this.props and then delete Component specific props so we can\n // spread the rest into the img.\n\n var rest = _objectWithoutProperties(this.props, []);\n\n delete rest.md5;\n delete rest.email;\n delete rest.protocol;\n delete rest.rating;\n delete rest.size;\n delete rest.style;\n delete rest.className;\n delete rest.default;\n if (!modernBrowser && (0, _isRetina2.default)()) {\n return _react2.default.createElement('img', _extends({\n alt: 'Gravatar for ' + formattedEmail,\n style: this.props.style,\n src: retinaSrc,\n height: this.props.size,\n width: this.props.size\n }, rest, {\n className: className\n }));\n }\n return _react2.default.createElement('img', _extends({\n alt: 'Gravatar for ' + formattedEmail,\n style: this.props.style,\n src: src,\n srcSet: retinaSrc + ' 2x',\n height: this.props.size,\n width: this.props.size\n }, rest, {\n className: className\n }));\n }\n }]);\n\n return Gravatar;\n}(_react2.default.Component);\n\nGravatar.displayName = 'Gravatar';\nGravatar.propTypes = {\n email: _propTypes2.default.string,\n md5: _propTypes2.default.string,\n size: _propTypes2.default.number,\n rating: _propTypes2.default.string,\n default: _propTypes2.default.string,\n className: _propTypes2.default.string,\n protocol: _propTypes2.default.string,\n style: _propTypes2.default.object\n};\nGravatar.defaultProps = {\n size: 50,\n rating: 'g',\n default: 'retro',\n protocol: '//'\n};\n\n\nmodule.exports = Gravatar;"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4"],"mappings":";;;;;;;;;;AAEA,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,UAAU,MAAM,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA,CAAE,EAAE,CAAA,CAAE,CAAC,OAAO,MAAM,CAAC,CAAA,CAAE;;AAEhQ,IAAI,YAAY,GAAG,YAAY,EAAE,SAAS,gBAAgB,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,IAAI,KAAK,CAAC,CAAC,UAAU,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC,IAAI,OAAO,IAAI,UAAU,EAAE,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KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM;AACnC,EAAE,GAAG,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM;AACjC,EAAE,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM;AAClC,EAAE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM;AACpC,EAAE,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM;AACrC,EAAE,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM;AACvC,EAAE,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,MAAM;AACtC,EAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;AAC7B,CAAC;AACD,QAAQ,CAAC,YAAY,GAAG;AACxB,EAAE,IAAI,EAAE,EAAE;AACV,EAAE,MAAM,EAAE,GAAG;AACb,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,QAAQ,EAAE;AACZ,CAAC;;;AAGD,IAAA,IAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
|
package/dist/cjs/node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var strictUriEncode = function (str) {
|
|
4
|
-
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) {
|
|
5
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase();
|
|
6
|
-
});
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
exports.strictUriEncode = strictUriEncode;
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../../node_modules/.pnpm/strict-uri-encode@1.1.0/node_modules/strict-uri-encode/index.js"],"sourcesContent":["'use strict';\nmodule.exports = function (str) {\n\treturn encodeURIComponent(str).replace(/[!'()*]/g, function (c) {\n\t\treturn '%' + c.charCodeAt(0).toString(16).toUpperCase();\n\t});\n};\n"],"names":[],"mappings":";;IACA,eAAc,GAAG,UAAU,GAAG,EAAE;AAChC,CAAC,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,UAAU,CAAC,EAAE;AACjE,EAAE,OAAO,GAAG,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE;AACzD,CAAA,CAAE,CAAC;AACH;;;;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crypt.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/esm/_virtual/md5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"md5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var charenc = {
|
|
2
|
-
// UTF-8 encoding
|
|
3
|
-
utf8: {
|
|
4
|
-
// Convert a string to a byte array
|
|
5
|
-
stringToBytes: function(str) {
|
|
6
|
-
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
// Convert a byte array to a string
|
|
10
|
-
bytesToString: function(bytes) {
|
|
11
|
-
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
// Binary encoding
|
|
16
|
-
bin: {
|
|
17
|
-
// Convert a string to a byte array
|
|
18
|
-
stringToBytes: function(str) {
|
|
19
|
-
for (var bytes = [], i = 0; i < str.length; i++)
|
|
20
|
-
bytes.push(str.charCodeAt(i) & 0xFF);
|
|
21
|
-
return bytes;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
// Convert a byte array to a string
|
|
25
|
-
bytesToString: function(bytes) {
|
|
26
|
-
for (var str = [], i = 0; i < bytes.length; i++)
|
|
27
|
-
str.push(String.fromCharCode(bytes[i]));
|
|
28
|
-
return str.join('');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
var charenc_1 = charenc;
|
|
34
|
-
|
|
35
|
-
export { charenc_1 as c };
|
|
36
|
-
//# sourceMappingURL=charenc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"charenc.js","sources":["../../../../../../../../../node_modules/.pnpm/charenc@0.0.2/node_modules/charenc/charenc.js"],"sourcesContent":["var charenc = {\n // UTF-8 encoding\n utf8: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));\n }\n },\n\n // Binary encoding\n bin: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n for (var bytes = [], i = 0; i < str.length; i++)\n bytes.push(str.charCodeAt(i) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n for (var str = [], i = 0; i < bytes.length; i++)\n str.push(String.fromCharCode(bytes[i]));\n return str.join('');\n }\n }\n};\n\nmodule.exports = charenc;\n"],"names":[],"mappings":"AAAA,IAAI,OAAO,GAAG;AACd;AACA,EAAE,IAAI,EAAE;AACR;AACA,IAAI,aAAa,EAAE,SAAS,GAAG,EAAE;AACjC,MAAM,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;AACzE,IAAA,CAAK;;AAEL;AACA,IAAI,aAAa,EAAE,SAAS,KAAK,EAAE;AACnC,MAAM,OAAO,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;AACzE,IAAA;AACA,GAAG;;AAEH;AACA,EAAE,GAAG,EAAE;AACP;AACA,IAAI,aAAa,EAAE,SAAS,GAAG,EAAE;AACjC,MAAM,KAAK,IAAI,KAAK,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE;AACrD,QAAQ,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAC5C,MAAM,OAAO,KAAK;AAClB,IAAA,CAAK;;AAEL;AACA,IAAI,aAAa,EAAE,SAAS,KAAK,EAAE;AACnC,MAAM,KAAK,IAAI,GAAG,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE;AACrD,QAAQ,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/C,MAAM,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;AACzB,IAAA;AACA;AACA,CAAC;;AAED,IAAA,SAAc,GAAG;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { __module as crypt } from '../../../../../_virtual/crypt.js';
|
|
2
|
-
|
|
3
|
-
(function() {
|
|
4
|
-
var base64map
|
|
5
|
-
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
|
6
|
-
|
|
7
|
-
crypt$1 = {
|
|
8
|
-
// Bit-wise rotation left
|
|
9
|
-
rotl: function(n, b) {
|
|
10
|
-
return (n << b) | (n >>> (32 - b));
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
// Bit-wise rotation right
|
|
14
|
-
rotr: function(n, b) {
|
|
15
|
-
return (n << (32 - b)) | (n >>> b);
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
// Swap big-endian to little-endian and vice versa
|
|
19
|
-
endian: function(n) {
|
|
20
|
-
// If number given, swap endian
|
|
21
|
-
if (n.constructor == Number) {
|
|
22
|
-
return crypt$1.rotl(n, 8) & 0x00FF00FF | crypt$1.rotl(n, 24) & 0xFF00FF00;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Else, assume array and swap all items
|
|
26
|
-
for (var i = 0; i < n.length; i++)
|
|
27
|
-
n[i] = crypt$1.endian(n[i]);
|
|
28
|
-
return n;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
// Generate an array of any length of random bytes
|
|
32
|
-
randomBytes: function(n) {
|
|
33
|
-
for (var bytes = []; n > 0; n--)
|
|
34
|
-
bytes.push(Math.floor(Math.random() * 256));
|
|
35
|
-
return bytes;
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
// Convert a byte array to big-endian 32-bit words
|
|
39
|
-
bytesToWords: function(bytes) {
|
|
40
|
-
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)
|
|
41
|
-
words[b >>> 5] |= bytes[i] << (24 - b % 32);
|
|
42
|
-
return words;
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
// Convert big-endian 32-bit words to a byte array
|
|
46
|
-
wordsToBytes: function(words) {
|
|
47
|
-
for (var bytes = [], b = 0; b < words.length * 32; b += 8)
|
|
48
|
-
bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);
|
|
49
|
-
return bytes;
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
// Convert a byte array to a hex string
|
|
53
|
-
bytesToHex: function(bytes) {
|
|
54
|
-
for (var hex = [], i = 0; i < bytes.length; i++) {
|
|
55
|
-
hex.push((bytes[i] >>> 4).toString(16));
|
|
56
|
-
hex.push((bytes[i] & 0xF).toString(16));
|
|
57
|
-
}
|
|
58
|
-
return hex.join('');
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
// Convert a hex string to a byte array
|
|
62
|
-
hexToBytes: function(hex) {
|
|
63
|
-
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
64
|
-
bytes.push(parseInt(hex.substr(c, 2), 16));
|
|
65
|
-
return bytes;
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
// Convert a byte array to a base-64 string
|
|
69
|
-
bytesToBase64: function(bytes) {
|
|
70
|
-
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
|
71
|
-
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
|
72
|
-
for (var j = 0; j < 4; j++)
|
|
73
|
-
if (i * 8 + j * 6 <= bytes.length * 8)
|
|
74
|
-
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
|
75
|
-
else
|
|
76
|
-
base64.push('=');
|
|
77
|
-
}
|
|
78
|
-
return base64.join('');
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
// Convert a base-64 string to a byte array
|
|
82
|
-
base64ToBytes: function(base64) {
|
|
83
|
-
// Remove non-base-64 characters
|
|
84
|
-
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
|
85
|
-
|
|
86
|
-
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
|
87
|
-
imod4 = ++i % 4) {
|
|
88
|
-
if (imod4 == 0) continue;
|
|
89
|
-
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
|
90
|
-
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
|
91
|
-
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
|
92
|
-
}
|
|
93
|
-
return bytes;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
crypt.exports = crypt$1;
|
|
98
|
-
})();
|
|
99
|
-
|
|
100
|
-
var cryptExports = crypt.exports;
|
|
101
|
-
|
|
102
|
-
export { cryptExports as c };
|
|
103
|
-
//# sourceMappingURL=crypt.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"crypt.js","sources":["../../../../../../../../../node_modules/.pnpm/crypt@0.0.2/node_modules/crypt/crypt.js"],"sourcesContent":["(function() {\n var base64map\n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',\n\n crypt = {\n // Bit-wise rotation left\n rotl: function(n, b) {\n return (n << b) | (n >>> (32 - b));\n },\n\n // Bit-wise rotation right\n rotr: function(n, b) {\n return (n << (32 - b)) | (n >>> b);\n },\n\n // Swap big-endian to little-endian and vice versa\n endian: function(n) {\n // If number given, swap endian\n if (n.constructor == Number) {\n return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;\n }\n\n // Else, assume array and swap all items\n for (var i = 0; i < n.length; i++)\n n[i] = crypt.endian(n[i]);\n return n;\n },\n\n // Generate an array of any length of random bytes\n randomBytes: function(n) {\n for (var bytes = []; n > 0; n--)\n bytes.push(Math.floor(Math.random() * 256));\n return bytes;\n },\n\n // Convert a byte array to big-endian 32-bit words\n bytesToWords: function(bytes) {\n for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)\n words[b >>> 5] |= bytes[i] << (24 - b % 32);\n return words;\n },\n\n // Convert big-endian 32-bit words to a byte array\n wordsToBytes: function(words) {\n for (var bytes = [], b = 0; b < words.length * 32; b += 8)\n bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a hex string\n bytesToHex: function(bytes) {\n for (var hex = [], i = 0; i < bytes.length; i++) {\n hex.push((bytes[i] >>> 4).toString(16));\n hex.push((bytes[i] & 0xF).toString(16));\n }\n return hex.join('');\n },\n\n // Convert a hex string to a byte array\n hexToBytes: function(hex) {\n for (var bytes = [], c = 0; c < hex.length; c += 2)\n bytes.push(parseInt(hex.substr(c, 2), 16));\n return bytes;\n },\n\n // Convert a byte array to a base-64 string\n bytesToBase64: function(bytes) {\n for (var base64 = [], i = 0; i < bytes.length; i += 3) {\n var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\n for (var j = 0; j < 4; j++)\n if (i * 8 + j * 6 <= bytes.length * 8)\n base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));\n else\n base64.push('=');\n }\n return base64.join('');\n },\n\n // Convert a base-64 string to a byte array\n base64ToBytes: function(base64) {\n // Remove non-base-64 characters\n base64 = base64.replace(/[^A-Z0-9+\\/]/ig, '');\n\n for (var bytes = [], i = 0, imod4 = 0; i < base64.length;\n imod4 = ++i % 4) {\n if (imod4 == 0) continue;\n bytes.push(((base64map.indexOf(base64.charAt(i - 1))\n & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))\n | (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));\n }\n return bytes;\n }\n };\n\n module.exports = crypt;\n})();\n"],"names":["crypt","cryptModule"],"mappings":";;AAAA,CAAC,WAAW;AACZ,EAAE,IAAI;AACN,QAAQ,kEAAkE;;AAE1E,EAAEA,OAAK,GAAG;AACV;AACA,IAAI,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE;AACzB,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AACxC,IAAA,CAAK;;AAEL;AACA,IAAI,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE;AACzB,MAAM,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACxC,IAAA,CAAK;;AAEL;AACA,IAAI,MAAM,EAAE,SAAS,CAAC,EAAE;AACxB;AACA,MAAM,IAAI,CAAC,CAAC,WAAW,IAAI,MAAM,EAAE;AACnC,QAAQ,OAAOA,OAAK,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,UAAU,GAAGA,OAAK,CAAC,IAAI,CA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K,GAAG,CAAC,CAAC,CAAC,CAAC;AACxE,MAAA;AACA,MAAM,OAAO,KAAK;AAClB,IAAA;AACA,GAAG;;AAEH,EAAEC,KAAA,CAAA,OAAc,GAAGD,OAAK;AACxB,CAAC,GAAG;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Determine if an object is a Buffer
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
9
|
-
// Object.prototype.constructor. Remove this eventually
|
|
10
|
-
var isBuffer_1 = function (obj) {
|
|
11
|
-
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
function isBuffer (obj) {
|
|
15
|
-
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// For Node v0.10 support. Remove this eventually.
|
|
19
|
-
function isSlowBuffer (obj) {
|
|
20
|
-
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { isBuffer_1 as i };
|
|
24
|
-
//# sourceMappingURL=index.js.map
|